/* ============================================================
   CSS Custom Properties — set per-subdomain via inline <style>
   ============================================================ */
:root {
	/* Colors — defaults only for vars not set by the inline skin */
	--tfdb6b7-color-text-muted: #64748b;
	--tfdb6b7-color-border: #e2e8f0;
	--tfdb6b7-color-link: var(--tfdb6b7-color-primary);
	--tfdb6b7-color-link-hover: var(--tfdb6b7-color-secondary);

	/* Typography — non-skin defaults */
	--tfdb6b7-font-size-base: 16px;
	--tfdb6b7-line-height: 1.7;

	/* Layout */
	--tfdb6b7-content-width: 1200px;
	--tfdb6b7-sidebar-width: 320px;
	--tfdb6b7-gap: 30px;
	--tfdb6b7-radius: 6px;

	/* Elevation / Shadows */
	--tfdb6b7-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
	--tfdb6b7-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
	--tfdb6b7-shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
	--tfdb6b7-shadow-xl: 0 24px 60px rgba(0,0,0,0.16);

	/* Spacing scale (8pt grid) */
	--tfdb6b7-space-1: 4px;
	--tfdb6b7-space-2: 8px;
	--tfdb6b7-space-3: 12px;
	--tfdb6b7-space-4: 16px;
	--tfdb6b7-space-5: 24px;
	--tfdb6b7-space-6: 32px;
	--tfdb6b7-space-8: 48px;
	--tfdb6b7-space-10: 64px;

	/* Border radius scale */
	--tfdb6b7-radius-sm: 4px;
	--tfdb6b7-radius-md: 8px;
	--tfdb6b7-radius-lg: 12px;
	--tfdb6b7-radius-xl: 16px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--tfdb6b7-font-body);
	font-size: var(--tfdb6b7-font-size-base);
	line-height: var(--tfdb6b7-line-height);
	color: var(--tfdb6b7-color-text);
	background-color: var(--tfdb6b7-color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--tfdb6b7-font-heading);
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 0.5em;
	color: var(--tfdb6b7-color-text);
}

h1 { font-size: 2.25em; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.375em; }
h4 { font-size: 1.125em; }

a {
	color: var(--tfdb6b7-color-link);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--tfdb6b7-color-link-hover);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ============================================================
   Layout: Site Structure
   ============================================================ */
.tfdb6b7-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.tfdb6b7-site-content {
	flex: 1;
	width: 100%;
	max-width: var(--tfdb6b7-content-width);
	margin: 0 auto;
	padding: var(--tfdb6b7-gap);
}

/* Layout: Full Width */
.tfdb6b7-layout-full .tfdb6b7-content-area {
	width: 100%;
}

/* Layout: Sidebar Right */
.tfdb6b7-layout-sidebar-right .tfdb6b7-site-content {
	display: flex;
	gap: var(--tfdb6b7-gap);
}
.tfdb6b7-layout-sidebar-right .tfdb6b7-content-area {
	flex: 1;
	min-width: 0;
}
.tfdb6b7-layout-sidebar-right .tfdb6b7-sidebar {
	width: var(--tfdb6b7-sidebar-width);
	flex-shrink: 0;
}

/* Layout: Sidebar Left */
.tfdb6b7-layout-sidebar-left .tfdb6b7-site-content {
	display: flex;
	gap: var(--tfdb6b7-gap);
}
.tfdb6b7-layout-sidebar-left .tfdb6b7-content-area {
	flex: 1;
	min-width: 0;
	order: 2;
}
.tfdb6b7-layout-sidebar-left .tfdb6b7-sidebar {
	width: var(--tfdb6b7-sidebar-width);
	flex-shrink: 0;
	order: 1;
}

/* ============================================================
   Header
   ============================================================ */
.tfdb6b7-site-header {
	background: linear-gradient(135deg, var(--tfdb6b7-color-primary), var(--tfdb6b7-color-secondary));
	border-bottom: none;
	box-shadow: var(--tfdb6b7-shadow-sm);
}

.tfdb6b7-header-inner {
	max-width: var(--tfdb6b7-content-width);
	margin: 0 auto;
	padding: 15px var(--tfdb6b7-gap);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tfdb6b7-site-branding {
	flex-shrink: 0;
}

.tfdb6b7-site-title {
	font-size: 1.5em;
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
}

.tfdb6b7-site-title a {
	color: #fff;
}

.tfdb6b7-site-title a:hover {
	color: rgba(255,255,255,0.85);
}

.tfdb6b7-site-description {
	font-size: 0.85em;
	color: rgba(255,255,255,0.7);
	margin: 2px 0 0;
}

/* Header: Centered */
.tfdb6b7-header-centered .tfdb6b7-header-inner {
	flex-direction: column;
	text-align: center;
	gap: 12px;
}

/* Header: Top Bar */
.tfdb6b7-top-bar {
	background: var(--tfdb6b7-color-primary);
	color: #fff;
	font-size: 0.8em;
}

.tfdb6b7-top-bar-inner {
	max-width: var(--tfdb6b7-content-width);
	margin: 0 auto;
	padding: 6px var(--tfdb6b7-gap);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.tfdb6b7-top-bar a {
	color: rgba(255,255,255,0.85);
}

.tfdb6b7-top-bar a:hover {
	color: #fff;
}

/* ============================================================
   Navigation
   ============================================================ */
.tfdb6b7-main-nav {
	font-size: 0.9em;
}

.tfdb6b7-main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0;
}

/* WP wraps menus in a container div — make it transparent */
.tfdb6b7-main-nav > div {
	display: contents;
}

.tfdb6b7-main-nav li {
	position: relative;
}

.tfdb6b7-main-nav a {
	display: block;
	padding: 10px 16px;
	color: rgba(255,255,255,0.9);
	font-weight: 500;
	transition: background 0.2s, color 0.2s;
}

.tfdb6b7-main-nav a:hover,
.tfdb6b7-main-nav .current-menu-item > a {
	color: #fff;
	background: rgba(255,255,255,0.15);
}

/* Dropdown */
.tfdb6b7-main-nav ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--tfdb6b7-color-bg);
	border: 1px solid var(--tfdb6b7-color-border);
	border-radius: var(--tfdb6b7-radius);
	min-width: 200px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	z-index: 100;
	flex-direction: column;
}

.tfdb6b7-main-nav li:hover > ul {
	display: flex;
}

/* Mobile toggle */
.tfdb6b7-menu-toggle {
	display: none;
	background: none;
	border: 1px solid rgba(255,255,255,0.4);
	border-radius: var(--tfdb6b7-radius);
	padding: 8px 12px;
	cursor: pointer;
	font-size: 1.2em;
	color: #fff;
}

@media (max-width: 768px) {
	.tfdb6b7-menu-toggle {
		display: block;
	}
	.tfdb6b7-main-nav ul {
		display: none;
		flex-direction: column;
		width: 100%;
	}
	.tfdb6b7-main-nav.tfdb6b7-nav-open ul {
		display: flex;
	}
	.tfdb6b7-header-inner {
		flex-wrap: wrap;
	}
	.tfdb6b7-main-nav {
		width: 100%;
	}
	.tfdb6b7-main-nav ul ul {
		position: static;
		box-shadow: none;
		border: none;
		padding-left: 20px;
	}
}

/* ============================================================
   Content: Posts & Pages
   ============================================================ */
.tfdb6b7-post {
	margin-bottom: var(--tfdb6b7-gap);
	padding-bottom: var(--tfdb6b7-gap);
	border-bottom: 1px solid var(--tfdb6b7-color-border);
}

.tfdb6b7-post:last-child {
	border-bottom: none;
}

/* Classic listing post cardification */
.tfdb6b7-listing-classic .tfdb6b7-post,
.tfdb6b7-listing-news .tfdb6b7-post {
	background: var(--tfdb6b7-color-bg);
	border-radius: var(--tfdb6b7-radius-lg);
	padding: var(--tfdb6b7-space-6);
	box-shadow: var(--tfdb6b7-shadow-sm);
	border-bottom: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tfdb6b7-listing-classic .tfdb6b7-post:hover,
.tfdb6b7-listing-news .tfdb6b7-post:hover {
	transform: translateY(-3px);
	box-shadow: var(--tfdb6b7-shadow-md);
}

.tfdb6b7-post-thumbnail {
	margin-bottom: 16px;
	border-radius: var(--tfdb6b7-radius-md);
	overflow: hidden;
}

.tfdb6b7-post-thumbnail img {
	width: 100%;
	object-fit: cover;
	aspect-ratio: 16 / 9;
	transition: transform 0.4s ease;
}

.tfdb6b7-post:hover .tfdb6b7-post-thumbnail img {
	transform: scale(1.04);
}

.tfdb6b7-post-title {
	margin-bottom: 8px;
}

.tfdb6b7-post-title a {
	color: var(--tfdb6b7-color-text);
}

.tfdb6b7-post-title a:hover {
	color: var(--tfdb6b7-color-primary);
}

.tfdb6b7-post-meta {
	font-size: 0.85em;
	color: var(--tfdb6b7-color-text-muted);
	margin-bottom: 12px;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.tfdb6b7-post-meta a {
	color: var(--tfdb6b7-color-text-muted);
}

.tfdb6b7-post-excerpt {
	color: var(--tfdb6b7-color-text);
}

.tfdb6b7-read-more {
	display: inline-block;
	margin-top: 8px;
	font-weight: 600;
	font-size: 0.9em;
	color: var(--tfdb6b7-color-primary);
}

.tfdb6b7-read-more:hover {
	color: var(--tfdb6b7-color-secondary);
}

/* Single post content */
.tfdb6b7-post-content {
	line-height: var(--tfdb6b7-line-height);
}

.tfdb6b7-post-content p {
	margin: 0 0 1.2em;
}

.tfdb6b7-post-content ul,
.tfdb6b7-post-content ol {
	margin: 0 0 1.2em;
	padding-left: 1.5em;
}

.tfdb6b7-post-content blockquote {
	border-left: 4px solid var(--tfdb6b7-color-primary);
	margin: 1.5em 0;
	padding: 1em 1.5em;
	background: var(--tfdb6b7-color-bg-alt);
	border-radius: 0 var(--tfdb6b7-radius) var(--tfdb6b7-radius) 0;
	font-style: italic;
}

.tfdb6b7-post-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
}

.tfdb6b7-post-content th,
.tfdb6b7-post-content td {
	border: 1px solid var(--tfdb6b7-color-border);
	padding: 10px 14px;
	text-align: left;
}

.tfdb6b7-post-content th {
	background: var(--tfdb6b7-color-bg-alt);
	font-weight: 600;
}

/* ============================================================
   Content: Card Grid Layout
   ============================================================ */
.tfdb6b7-post-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
 gap: var(--tfdb6b7-gap);
}

.tfdb6b7-post-grid .tfdb6b7-post {
 border-bottom: none;
 padding-bottom: 0;
 background: var(--tfdb6b7-color-bg);
 border: 1px solid var(--tfdb6b7-color-border);
 border-radius: var(--tfdb6b7-radius-lg);
 overflow: hidden;
 box-shadow: var(--tfdb6b7-shadow-sm);
 transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tfdb6b7-post-grid .tfdb6b7-post:hover {
 transform: translateY(-4px);
 box-shadow: var(--tfdb6b7-shadow-md);
}

.tfdb6b7-post-grid .tfdb6b7-post-thumbnail img {
 aspect-ratio: 16 / 9;
 border-radius: 0;
}

.tfdb6b7-post-grid .tfdb6b7-post:hover .tfdb6b7-post-thumbnail img {
 transform: scale(1.05);
}

.tfdb6b7-post-grid .tfdb6b7-post-body {
	padding: 16px;
}

.tfdb6b7-post-grid .tfdb6b7-post-thumbnail {
	margin-bottom: 0;
	border-radius: 0;
}

/* ============================================================
   Content: Masonry Layout
   ============================================================ */
.tfdb6b7-post-masonry {
 columns: 2;
 column-gap: var(--tfdb6b7-gap);
}
.tfdb6b7-post-masonry .tfdb6b7-post {
 break-inside: avoid;
 margin-bottom: var(--tfdb6b7-gap);
 padding-bottom: 0;
 border-bottom: none;
 background: var(--tfdb6b7-color-bg);
 border: 1px solid var(--tfdb6b7-color-border);
 border-radius: var(--tfdb6b7-radius-lg);
 overflow: hidden;
 box-shadow: var(--tfdb6b7-shadow-sm);
 transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tfdb6b7-post-masonry .tfdb6b7-post:hover {
 transform: translateY(-3px);
 box-shadow: var(--tfdb6b7-shadow-md);
}

.tfdb6b7-post-masonry .tfdb6b7-post-thumbnail img {
 aspect-ratio: 3 / 4;
 border-radius: 0;
}

.tfdb6b7-post-masonry .tfdb6b7-post:hover .tfdb6b7-post-thumbnail img {
 transform: scale(1.04);
}
.tfdb6b7-post-masonry .tfdb6b7-post-body {
	padding: 16px;
}
.tfdb6b7-post-masonry .tfdb6b7-post-thumbnail {
	margin-bottom: 0;
	border-radius: 0;
}

/* ============================================================
   Content: Zigzag Layout
   ============================================================ */
.tfdb6b7-post-zigzag .tfdb6b7-post {
 display: flex;
 gap: var(--tfdb6b7-gap);
 align-items: flex-start;
 border-bottom: none;
 padding: var(--tfdb6b7-space-6);
 margin-bottom: var(--tfdb6b7-gap);
 background: var(--tfdb6b7-color-bg);
 border-radius: var(--tfdb6b7-radius-lg);
 box-shadow: var(--tfdb6b7-shadow-sm);
 transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tfdb6b7-post-zigzag .tfdb6b7-post:hover {
 transform: translateY(-3px);
 box-shadow: var(--tfdb6b7-shadow-md);
}

.tfdb6b7-post-zigzag .tfdb6b7-post-thumbnail img {
 aspect-ratio: 16 / 10;
 border-radius: var(--tfdb6b7-radius-md);
}

.tfdb6b7-post-zigzag .tfdb6b7-post:hover .tfdb6b7-post-thumbnail img {
 transform: scale(1.03);
}
.tfdb6b7-post-zigzag .tfdb6b7-post:nth-child(even) {
	flex-direction: row-reverse;
}
.tfdb6b7-post-zigzag .tfdb6b7-post-thumbnail {
	flex: 0 0 40%;
	margin-bottom: 0;
}
.tfdb6b7-post-zigzag .tfdb6b7-post-body {
	flex: 1;
	min-width: 0;
}
.tfdb6b7-post-zigzag .tfdb6b7-post:last-child {
	border-bottom: none;
}

/* ============================================================
   Content: Feature Layout (hero + list)
   ============================================================ */
.tfdb6b7-feature-hero {
 margin-bottom: var(--tfdb6b7-gap);
}
.tfdb6b7-feature-hero .tfdb6b7-post {
 border-bottom: none;
 padding-bottom: 0;
 border-radius: var(--tfdb6b7-radius-xl);
 overflow: hidden;
 box-shadow: var(--tfdb6b7-shadow-md);
}
.tfdb6b7-feature-hero .tfdb6b7-post-thumbnail img {
 max-height: 420px;
 width: 100%;
 object-fit: cover;
 border-radius: 0;
 aspect-ratio: 21 / 9;
 transition: transform 0.5s ease;
}
.tfdb6b7-feature-hero .tfdb6b7-post:hover .tfdb6b7-post-thumbnail img {
 transform: scale(1.02);
}
.tfdb6b7-feature-hero .tfdb6b7-post-title {
	font-size: 2em;
}
.tfdb6b7-feature-list .tfdb6b7-post {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: var(--tfdb6b7-color-bg);
	padding: var(--tfdb6b7-space-4);
	border-radius: var(--tfdb6b7-radius-lg);
	box-shadow: var(--tfdb6b7-shadow-sm);
	border-bottom: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tfdb6b7-feature-list .tfdb6b7-post:hover {
	transform: translateY(-2px);
	box-shadow: var(--tfdb6b7-shadow-md);
}

.tfdb6b7-feature-list .tfdb6b7-post-thumbnail img {
	aspect-ratio: 1 / 1;
}
.tfdb6b7-feature-list .tfdb6b7-post-thumbnail {
	flex: 0 0 120px;
	margin-bottom: 0;
}
.tfdb6b7-feature-list .tfdb6b7-post-thumbnail img {
	height: 80px;
	object-fit: cover;
	border-radius: var(--tfdb6b7-radius);
}
.tfdb6b7-feature-list .tfdb6b7-post-body {
	flex: 1;
	min-width: 0;
}
.tfdb6b7-feature-list .tfdb6b7-post-title {
	font-size: 1.1em;
}

/* ============================================================
   Content: News Layout (compact headlines)
   ============================================================ */
.tfdb6b7-post-news .tfdb6b7-post {
 display: flex;
 gap: 16px;
 align-items: center;
 padding: var(--tfdb6b7-space-4);
 margin-bottom: var(--tfdb6b7-space-3);
 background: var(--tfdb6b7-color-bg);
 border-radius: var(--tfdb6b7-radius-md);
 box-shadow: var(--tfdb6b7-shadow-sm);
 transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tfdb6b7-post-news .tfdb6b7-post:hover {
 transform: translateX(4px);
 box-shadow: var(--tfdb6b7-shadow-md);
}

.tfdb6b7-post-news .tfdb6b7-post-thumbnail img {
 aspect-ratio: 1 / 1;
 border-radius: var(--tfdb6b7-radius-sm);
}
.tfdb6b7-post-news .tfdb6b7-post-thumbnail {
	flex: 0 0 100px;
	margin-bottom: 0;
}
.tfdb6b7-post-news .tfdb6b7-post-thumbnail img {
	height: 70px;
	object-fit: cover;
	border-radius: var(--tfdb6b7-radius);
}
.tfdb6b7-post-news .tfdb6b7-post-body {
	flex: 1;
	min-width: 0;
}
.tfdb6b7-post-news .tfdb6b7-post-title {
	font-size: 1em;
	margin-bottom: 4px;
}
.tfdb6b7-post-news .tfdb6b7-post-excerpt {
	font-size: 0.85em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tfdb6b7-post-news .tfdb6b7-read-more {
	display: none;
}

/* ============================================================
   Content: Minimal Layout (text only, clean)
   ============================================================ */
.tfdb6b7-post-minimal .tfdb6b7-post {
 padding: var(--tfdb6b7-space-4) var(--tfdb6b7-space-5);
 margin-bottom: var(--tfdb6b7-space-3);
 background: var(--tfdb6b7-color-bg);
 border-radius: var(--tfdb6b7-radius-md);
 box-shadow: var(--tfdb6b7-shadow-sm);
 border-bottom: none;
 transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tfdb6b7-post-minimal .tfdb6b7-post:hover {
 transform: translateX(4px);
 box-shadow: var(--tfdb6b7-shadow-md);
}
.tfdb6b7-post-minimal .tfdb6b7-post-thumbnail {
	display: none;
}
.tfdb6b7-post-minimal .tfdb6b7-post-title {
	font-size: 1.15em;
	margin-bottom: 4px;
}
.tfdb6b7-post-minimal .tfdb6b7-post-excerpt {
	font-size: 0.9em;
	color: var(--tfdb6b7-color-text-muted);
}
.tfdb6b7-post-minimal .tfdb6b7-read-more {
	font-size: 0.8em;
}

/* ============================================================
   Content: Magazine Layout
   ============================================================ */
.tfdb6b7-magazine-hero {
 margin-bottom: var(--tfdb6b7-gap);
}

.tfdb6b7-magazine-hero .tfdb6b7-post {
 border-bottom: none;
 padding-bottom: 0;
 border-radius: var(--tfdb6b7-radius-xl);
 overflow: hidden;
 box-shadow: var(--tfdb6b7-shadow-md);
 position: relative;
}

.tfdb6b7-magazine-hero .tfdb6b7-post-thumbnail {
 margin-bottom: 0;
 border-radius: 0;
}

.tfdb6b7-magazine-hero .tfdb6b7-post-thumbnail img {
 max-height: 480px;
 width: 100%;
 object-fit: cover;
 aspect-ratio: 21 / 9;
 transition: transform 0.5s ease;
}

.tfdb6b7-magazine-hero .tfdb6b7-post:hover .tfdb6b7-post-thumbnail img {
 transform: scale(1.03);
}

.tfdb6b7-magazine-hero .tfdb6b7-post-body {
 position: absolute;
 bottom: 0;
 left: 0;
 right: 0;
 padding: var(--tfdb6b7-space-8) var(--tfdb6b7-space-6) var(--tfdb6b7-space-6);
 background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
 color: #fff;
}

.tfdb6b7-magazine-hero .tfdb6b7-post-title {
 font-size: 2em;
 margin-bottom: var(--tfdb6b7-space-2);
}

.tfdb6b7-magazine-hero .tfdb6b7-post-title a {
 color: #fff;
}

.tfdb6b7-magazine-hero .tfdb6b7-post-meta {
 color: rgba(255,255,255,0.8);
}

/* ============================================================
   Layout: Boxed
   ============================================================ */
.tfdb6b7-layout-boxed .tfdb6b7-site {
	max-width: 1100px;
	margin: 20px auto;
	box-shadow: 0 0 20px rgba(0,0,0,0.08);
	border-radius: var(--tfdb6b7-radius);
	overflow: hidden;
}

.tfdb6b7-layout-boxed .tfdb6b7-site-header,
.tfdb6b7-layout-boxed .tfdb6b7-site-footer {
	border-radius: 0;
}

/* Layout: Narrow/Reading */
.tfdb6b7-layout-narrow .tfdb6b7-site-content {
	max-width: 720px;
}

.tfdb6b7-layout-narrow .tfdb6b7-post-title {
	font-size: 2.5em;
}

.tfdb6b7-layout-narrow .tfdb6b7-post-content {
	font-size: 1.1em;
	line-height: 1.85;
}

/* ============================================================
   Header: Transparent
   ============================================================ */
.tfdb6b7-header-transparent .tfdb6b7-main-nav a,
.tfdb6b7-nav-light a {
	color: rgba(255,255,255,0.9) !important;
}
.tfdb6b7-header-transparent .tfdb6b7-main-nav a:hover,
.tfdb6b7-nav-light a:hover {
	color: #fff !important;
	background: rgba(255,255,255,0.1);
}

/* Header: Split */
.tfdb6b7-header-split .tfdb6b7-header-inner {
	justify-content: center;
}

/* ============================================================
   Footer: Fat
   ============================================================ */
.tfdb6b7-footer-fat .tfdb6b7-footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 16px;
}

.tfdb6b7-footer-fat .tfdb6b7-footer-nav a {
	color: rgba(255,255,255,0.7);
	font-size: 0.85em;
}

/* Footer: Centered Stack */
.tfdb6b7-footer-centered-stack .tfdb6b7-footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 16px;
	justify-content: center;
}

.tfdb6b7-footer-centered-stack .tfdb6b7-footer-nav a {
	color: rgba(255,255,255,0.7);
	font-size: 0.9em;
}

/* ============================================================
   Sidebar
   ============================================================ */
.tfdb6b7-sidebar .widget {
	margin-bottom: var(--tfdb6b7-gap);
	padding: var(--tfdb6b7-space-5);
	background: var(--tfdb6b7-color-bg);
	border-radius: var(--tfdb6b7-radius-lg);
	box-shadow: var(--tfdb6b7-shadow-sm);
	border: 1px solid var(--tfdb6b7-color-border);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tfdb6b7-sidebar .widget:hover {
	transform: translateY(-2px);
	box-shadow: var(--tfdb6b7-shadow-md);
}

.tfdb6b7-sidebar .widget-title {
	font-size: 1em;
	font-weight: 700;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 3px solid var(--tfdb6b7-color-accent);
}

.tfdb6b7-sidebar .widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.tfdb6b7-sidebar .widget li {
	padding: 6px 0;
	border-bottom: 1px solid var(--tfdb6b7-color-border);
}

.tfdb6b7-sidebar .widget li:last-child {
	border-bottom: none;
}

/* ============================================================
   Footer
   ============================================================ */
.tfdb6b7-site-footer {
	background: var(--tfdb6b7-color-text);
	color: rgba(255,255,255,0.7);
	padding: 48px 0 24px;
	margin-top: auto;
	box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.tfdb6b7-footer-inner {
	max-width: var(--tfdb6b7-content-width);
	margin: 0 auto;
	padding: 0 var(--tfdb6b7-gap);
}

.tfdb6b7-footer-widgets {
	display: grid;
	grid-template-columns: repeat(var(--tfdb6b7-footer-columns, 3), 1fr);
	gap: var(--tfdb6b7-gap);
	margin-bottom: 30px;
}

.tfdb6b7-footer-widgets .widget-title {
	color: #fff;
	font-size: 1em;
	margin-bottom: 12px;
}

.tfdb6b7-footer-widgets a {
	color: rgba(255,255,255,0.7);
}

.tfdb6b7-footer-widgets a:hover {
	color: #fff;
}

.tfdb6b7-footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: 20px;
	text-align: center;
	font-size: 0.85em;
}

/* Footer: minimal (1 column) */
.tfdb6b7-footer-minimal .tfdb6b7-footer-widgets {
	grid-template-columns: 1fr;
	text-align: center;
}

/* ============================================================
   Pagination
   ============================================================ */
.tfdb6b7-pagination {
	display: flex;
	gap: 4px;
	justify-content: center;
	padding: var(--tfdb6b7-gap) 0;
}

.tfdb6b7-pagination a,
.tfdb6b7-pagination span {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--tfdb6b7-color-border);
	border-radius: var(--tfdb6b7-radius);
	font-size: 0.9em;
}

.tfdb6b7-pagination .current {
	background: var(--tfdb6b7-color-primary);
	color: #fff;
	border-color: var(--tfdb6b7-color-primary);
}

/* ============================================================
   Breadcrumbs
   ============================================================ */
.tfdb6b7-breadcrumbs {
	font-size: 0.8em;
	color: var(--tfdb6b7-color-text-muted);
	padding: 12px 0;
	margin-bottom: 16px;
}

.tfdb6b7-breadcrumbs a {
	color: var(--tfdb6b7-color-text-muted);
}

.tfdb6b7-breadcrumbs a:hover {
	color: var(--tfdb6b7-color-primary);
}

.tfdb6b7-breadcrumbs .separator {
	margin: 0 6px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
	.tfdb6b7-layout-sidebar-right .tfdb6b7-site-content,
	.tfdb6b7-layout-sidebar-left .tfdb6b7-site-content {
		flex-direction: column;
	}
	.tfdb6b7-layout-sidebar-right .tfdb6b7-sidebar,
	.tfdb6b7-layout-sidebar-left .tfdb6b7-sidebar {
		width: 100%;
		order: 3;
	}
	.tfdb6b7-layout-sidebar-left .tfdb6b7-content-area {
		order: 1;
	}
	.tfdb6b7-footer-widgets {
		grid-template-columns: 1fr;
	}
	.tfdb6b7-post-grid {
		grid-template-columns: 1fr;
	}
	.tfdb6b7-post-masonry {
		columns: 1;
	}
	.tfdb6b7-post-zigzag .tfdb6b7-post,
	.tfdb6b7-post-zigzag .tfdb6b7-post:nth-child(even) {
		flex-direction: column;
	}
	.tfdb6b7-post-zigzag .tfdb6b7-post-thumbnail {
		flex: none;
		width: 100%;
	}
	.tfdb6b7-post-news .tfdb6b7-post-thumbnail {
		flex: 0 0 80px;
	}
	.tfdb6b7-post-news .tfdb6b7-post-thumbnail img {
		height: 55px;
	}
	.tfdb6b7-feature-list .tfdb6b7-post {
		flex-direction: column;
	}
	.tfdb6b7-feature-list .tfdb6b7-post-thumbnail {
		flex: none;
		width: 100%;
	}
	.tfdb6b7-feature-list .tfdb6b7-post-thumbnail img {
		height: auto;
	}
	.tfdb6b7-feature-hero .tfdb6b7-post-title {
		font-size: 1.5em;
	}
	h1 { font-size: 1.75em; }
	h2 { font-size: 1.4em; }
}

/* ── Mobile-First PWA Tap Targets ──────────────────────────────────────── */
/* Google requires 48px minimum for interactive elements on mobile.        */
/* Applied to navigation/CTA elements only — NOT inline text links.       */
.tfdb6b7-nav a, .tfdb6b7-sidebar a, .tfdb6b7-footer a,
button, [role="button"],
.tfdb6b7-cta, .tfdb6b7-btn, .tfdb6b7-tag-chip,
.tfdb6b7-pagination a, .tfdb6b7-breadcrumb a {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	padding: 12px 16px;
}

/* ── 480px Small Phone Breakpoint ──────────────────────────────────────── */
@media (max-width: 480px) {
	.tfdb6b7-cta, .tfdb6b7-btn { width: 100%; text-align: center; justify-content: center; }
	.tfdb6b7-post-grid { grid-template-columns: 1fr; }
	body { font-size: 16px; } /* Prevents iOS zoom on input focus */
	.tfdb6b7-post-meta { flex-direction: column; gap: 4px; }
}

/* ============================================================
	  Entrance Animations
	  ============================================================ */
@keyframes tsd-fade-up {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes tsd-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.tfdb6b7-post {
	animation: tsd-fade-up 0.5s ease both;
}

/* Staggered delays for listing layouts */
.tfdb6b7-listing-classic .tfdb6b7-post:nth-child(1),
.tfdb6b7-listing-news .tfdb6b7-post:nth-child(1),
.tfdb6b7-post-grid .tfdb6b7-post:nth-child(1),
.tfdb6b7-post-masonry .tfdb6b7-post:nth-child(1) { animation-delay: 0.04s; }

.tfdb6b7-listing-classic .tfdb6b7-post:nth-child(2),
.tfdb6b7-listing-news .tfdb6b7-post:nth-child(2),
.tfdb6b7-post-grid .tfdb6b7-post:nth-child(2),
.tfdb6b7-post-masonry .tfdb6b7-post:nth-child(2) { animation-delay: 0.08s; }

.tfdb6b7-listing-classic .tfdb6b7-post:nth-child(3),
.tfdb6b7-listing-news .tfdb6b7-post:nth-child(3),
.tfdb6b7-post-grid .tfdb6b7-post:nth-child(3),
.tfdb6b7-post-masonry .tfdb6b7-post:nth-child(3) { animation-delay: 0.12s; }

.tfdb6b7-listing-classic .tfdb6b7-post:nth-child(4),
.tfdb6b7-listing-news .tfdb6b7-post:nth-child(4),
.tfdb6b7-post-grid .tfdb6b7-post:nth-child(4),
.tfdb6b7-post-masonry .tfdb6b7-post:nth-child(4) { animation-delay: 0.16s; }

.tfdb6b7-listing-classic .tfdb6b7-post:nth-child(5),
.tfdb6b7-listing-news .tfdb6b7-post:nth-child(5),
.tfdb6b7-post-grid .tfdb6b7-post:nth-child(5),
.tfdb6b7-post-masonry .tfdb6b7-post:nth-child(5) { animation-delay: 0.20s; }

.tfdb6b7-listing-classic .tfdb6b7-post:nth-child(6),
.tfdb6b7-listing-news .tfdb6b7-post:nth-child(6),
.tfdb6b7-post-grid .tfdb6b7-post:nth-child(6),
.tfdb6b7-post-masonry .tfdb6b7-post:nth-child(6) { animation-delay: 0.24s; }

/* Sidebar widgets entrance */
.tfdb6b7-sidebar .widget {
	animation: tsd-fade-up 0.4s ease both;
}
.tfdb6b7-sidebar .widget:nth-child(1) { animation-delay: 0.05s; }
.tfdb6b7-sidebar .widget:nth-child(2) { animation-delay: 0.10s; }
.tfdb6b7-sidebar .widget:nth-child(3) { animation-delay: 0.15s; }
.tfdb6b7-sidebar .widget:nth-child(4) { animation-delay: 0.20s; }
.tfdb6b7-sidebar .widget:nth-child(5) { animation-delay: 0.25s; }

/* ============================================================
	  Back to Top Button
	  ============================================================ */
.tfdb6b7-back-to-top {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 44px;
	height: 44px;
	background: var(--tfdb6b7-color-primary);
	color: #fff;
	border: none;
	border-radius: 50%;
	box-shadow: var(--tfdb6b7-shadow-md);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2em;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
	z-index: 999;
}

.tfdb6b7-back-to-top.tfdb6b7-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tfdb6b7-back-to-top:hover {
	background: var(--tfdb6b7-color-secondary);
	transform: translateY(-2px);
	box-shadow: var(--tfdb6b7-shadow-lg);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
