/* ─── TSD Base Theme Styles ────────────────────────────────
   Professional, clean design. Uses t47dd0e- classes that are
   rewritten per-site by the Go renderer.
   ============================================================ */

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	padding: 0;
	font-family: var(--t47dd0e-font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
	font-size: 16px;
	line-height: 1.7;
	color: var(--t47dd0e-color-text, #1e293b);
	background: var(--t47dd0e-color-bg, #ffffff);
	-webkit-font-smoothing: antialiased;
}
a { color: var(--t47dd0e-color-primary, #2563eb); text-decoration: none; }
a:hover { color: var(--t47dd0e-color-primary, #1e40af); text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--t47dd0e-font-heading, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
	line-height: 1.3;
	margin: 0 0 0.5em;
	color: var(--t47dd0e-color-text, #1e293b);
}
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.5em; margin-bottom: 1em; }
li { margin-bottom: 0.25em; }

/* ─── Layout ──────────────────────────────────────────── */
/* Top-level body wrapper. The legacy published theme supplied this rule; the
   served stylesheet must keep it so the bare `t47dd0e-site` body class has a
   matching rule (test-css-live-alignment.php). */
.t47dd0e-site {
	display: block;
	min-height: 60vh;
}
/* The sidebar grid lives on .site-content (the wrapper that contains BOTH
   <main class="content-area"> and <aside class="sidebar"> as siblings).
   Applying it to .content-area instead squeezes the article into the
   300px sidebar column and pushes all content to the right. */
.t47dd0e-site-content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem;
	min-height: 60vh;
}
.t47dd0e-content-area {
	min-width: 0; /* allow content column to shrink within the grid */
}

/* Sidebar layouts handled by body class JS or inline styles */
.t47dd0e-layout-sidebar-right .t47dd0e-site-content {
	grid-template-columns: 1fr 300px;
}
.t47dd0e-layout-sidebar-left .t47dd0e-site-content {
	grid-template-columns: 300px 1fr;
}
/* DOM order is main-then-aside (base.gohtml); sidebar-left must flip the
 * placement so MAIN takes the wide column and the sidebar takes the 300px
 * one. Without this, main auto-places into the narrow first column. */
.t47dd0e-layout-sidebar-left .t47dd0e-site-content > main {
	grid-column: 2;
	grid-row: 1;
}
.t47dd0e-layout-sidebar-left .t47dd0e-site-content > aside {
	grid-column: 1;
	grid-row: 1;
}
.t47dd0e-layout-full .t47dd0e-site-content,
.t47dd0e-layout-full-width .t47dd0e-site-content {
	grid-template-columns: 1fr;
}
.t47dd0e-layout-narrow .t47dd0e-site-content {
	grid-template-columns: 1fr;
	max-width: 820px;
}

@media (max-width: 768px) {
	.t47dd0e-layout-sidebar-right .t47dd0e-site-content,
	.t47dd0e-layout-sidebar-left .t47dd0e-site-content {
		grid-template-columns: 1fr;
	}
}

/* ─── Site Header ──────────────────────────────────────── */
.t47dd0e-site-header {
	background: var(--t47dd0e-color-bg, #fff);
	border-bottom: 1px solid var(--t47dd0e-color-border, #e2e8f0);
	position: relative;
}
.t47dd0e-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}
.t47dd0e-site-branding { flex: 1; }
.t47dd0e-site-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	font-family: var(--t47dd0e-font-heading, 'Inter', sans-serif);
}
.t47dd0e-site-title a { color: var(--t47dd0e-color-text, #1e293b); text-decoration: none; }
.t47dd0e-site-title a:hover { color: var(--t47dd0e-color-primary, #2563eb); }
.t47dd0e-site-description {
	margin: 0.25rem 0 0;
	font-size: 0.9rem;
	color: var(--t47dd0e-color-text, #1e293b); opacity: 0.75;
}
.t47dd0e-menu-toggle { display: none; background: none; border: 1px solid #e2e8f0; padding: 0.5rem 0.75rem; border-radius: 0.375rem; cursor: pointer; font-size: 1.25rem; line-height: 1; color: var(--t47dd0e-color-text, #1e293b); opacity: 0.75; }
.t47dd0e-menu-toggle:hover { background: var(--t47dd0e-color-bg-alt, #f8fafc); }

@media (max-width: 768px) {
	.t47dd0e-menu-toggle { display: block; }
	.t47dd0e-main-nav { display: none; width: 100%; }
	.t47dd0e-main-nav.t47dd0e-nav-open { display: block; }
}

/* ─── Navigation ────────────────────────────────────────── */
.t47dd0e-main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.t47dd0e-main-nav li { position: relative; margin: 0; }
.t47dd0e-main-nav a {
	display: block;
	padding: 0.5rem 0.75rem;
	color: var(--t47dd0e-color-text, #1e293b);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 0.375rem;
	transition: background 0.15s, color 0.15s;
}
.t47dd0e-main-nav a:hover { background: var(--t47dd0e-color-bg-alt, #f1f5f9); color: var(--t47dd0e-color-primary, #2563eb); }
.t47dd0e-main-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--t47dd0e-color-bg, #fff);
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	min-width: 200px;
	z-index: 100;
	padding: 0.5rem;
}
.t47dd0e-main-nav .menu-item-has-children:hover > .sub-menu { display: block; }
.t47dd0e-main-nav .sub-menu a { padding: 0.4rem 0.75rem; white-space: nowrap; }
@media (max-width: 768px) {
	.t47dd0e-main-nav ul { flex-direction: column; }
	.t47dd0e-main-nav .sub-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; display: block; }
}

/* ─── Post Cards (listing) ──────────────────────────────── */
.t47dd0e-post {
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--t47dd0e-color-border, #e2e8f0);
}
.t47dd0e-post:first-child { padding-top: 0; }
.t47dd0e-post:last-child { border-bottom: none; }
.t47dd0e-post-thumbnail { margin-bottom: 1rem; border-radius: 0.5rem; overflow: hidden; }
.t47dd0e-post-thumbnail img { display: block; width: 100%; border-radius: 0.5rem; }
.t47dd0e-post-title { margin: 0 0 0.5rem; font-size: 1.25rem; }
.t47dd0e-post-title a { color: var(--t47dd0e-color-text, #1e293b); text-decoration: none; }
.t47dd0e-post-title a:hover { color: var(--t47dd0e-color-primary, #2563eb); }
.t47dd0e-post-meta {
	font-size: 0.85rem;
	color: var(--t47dd0e-color-text, #1e293b); opacity: 0.75;
	margin-bottom: 0.75rem;
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}
.t47dd0e-post-meta a { color: var(--t47dd0e-color-text, #1e293b); opacity: 0.75; text-decoration: none; }
.t47dd0e-post-meta a:hover { color: var(--t47dd0e-color-primary, #2563eb); }
.t47dd0e-post-excerpt { font-size: 0.95rem; line-height: 1.7; color: var(--t47dd0e-color-text, #1e293b); opacity: 0.85; margin-bottom: 0.75rem; }
.t47dd0e-read-more {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--t47dd0e-color-primary, #2563eb);
	text-decoration: none;
}
.t47dd0e-read-more:hover { text-decoration: underline; }

/* ─── Single Post ───────────────────────────────────────── */
.t47dd0e-single-post { border-bottom: none; padding-top: 0; }
.t47dd0e-single-post .t47dd0e-post-title { font-size: 1.75rem; margin-bottom: 0.75rem; }
.t47dd0e-single-post .t47dd0e-post-meta { margin-bottom: 1.5rem; }
.t47dd0e-post-content { font-size: 1rem; line-height: 1.8; color: var(--t47dd0e-color-text, #1e293b); }
.t47dd0e-post-content p { margin-bottom: 1.25em; }
.t47dd0e-post-content h2 { margin-top: 1.5em; }
.t47dd0e-post-content h3 { margin-top: 1.25em; }
.t47dd0e-post-content img { border-radius: 0.5rem; margin: 1.5em 0; }
.t47dd0e-post-content blockquote {
	margin: 1.5em 0;
	padding: 1em 1.5em;
	border-left: 4px solid var(--t47dd0e-color-primary, #2563eb);
	background: var(--t47dd0e-color-bg-alt, #f8fafc);
	border-radius: 0 0.5rem 0.5rem 0;
	font-style: italic;
	color: var(--t47dd0e-color-text, #1e293b); opacity: 0.85;
}

/* ─── Sidebar ────────────────────────────────────────────── */
.t47dd0e-sidebar { font-size: 0.9rem; }
.t47dd0e-sidebar .t47dd0e-widget {
	margin-bottom: 2rem;
	padding: 1.25rem;
	background: var(--t47dd0e-color-bg-alt, #f8fafc);
	border-radius: 0.5rem;
	border: 1px solid var(--t47dd0e-color-border, #e2e8f0);
}
.t47dd0e-sidebar .t47dd0e-widget-title {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--t47dd0e-color-primary, #2563eb);
}
.t47dd0e-sidebar ul { list-style: none; padding: 0; margin: 0; }
.t47dd0e-sidebar li { padding: 0.35rem 0; border-bottom: 1px solid var(--t47dd0e-color-border, #f1f5f9); }
.t47dd0e-sidebar li:last-child { border-bottom: none; }
.t47dd0e-sidebar a { color: var(--t47dd0e-color-text, #1e293b); opacity: 0.85; }
.t47dd0e-sidebar a:hover { color: var(--t47dd0e-color-primary, #2563eb); }

/* ─── Footer ─────────────────────────────────────────────── */
.t47dd0e-site-footer {
	background: var(--t47dd0e-color-bg-alt, #f8fafc);
	border-top: 1px solid var(--t47dd0e-color-border, #e2e8f0);
	margin-top: 2rem;
}
.t47dd0e-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem;
}
.t47dd0e-footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.85rem;
	color: var(--t47dd0e-color-text, #1e293b); opacity: 0.75;
	border-top: 1px solid #e2e8f0;
	padding-top: 1.5rem;
	margin-top: 1.5rem;
}
.t47dd0e-footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.t47dd0e-footer-nav a { color: var(--t47dd0e-color-text, #1e293b); opacity: 0.75; font-size: 0.85rem; }
.t47dd0e-footer-nav a:hover { color: var(--t47dd0e-color-primary, #2563eb); }

/* ─── Breadcrumbs ────────────────────────────────────────── */
.t47dd0e-breadcrumbs {
	font-size: 0.85rem;
	color: var(--t47dd0e-color-text, #1e293b); opacity: 0.75;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--t47dd0e-color-border, #e2e8f0);
}
.t47dd0e-breadcrumbs a { color: var(--t47dd0e-color-text, #1e293b); opacity: 0.75; }
.t47dd0e-breadcrumbs a:hover { color: var(--t47dd0e-color-primary, #2563eb); }
.t47dd0e-breadcrumbs .separator { padding: 0 0.5rem; color: var(--t47dd0e-color-text, #cbd5e1); opacity: 0.6; }

/* ─── Pagination ─────────────────────────────────────────── */
.t47dd0e-pagination {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	padding: 2rem 0 0;
	flex-wrap: wrap;
}
.t47dd0e-pagination a, .t47dd0e-pagination span {
	padding: 0.5rem 0.875rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	color: var(--t47dd0e-color-text, #1e293b); opacity: 0.85;
	text-decoration: none;
	transition: all 0.15s;
}
.t47dd0e-pagination a:hover {
	background: var(--t47dd0e-color-primary, #2563eb);
	color: #fff;
	border-color: var(--t47dd0e-color-primary, #2563eb);
}
.t47dd0e-pagination .current {
	background: var(--t47dd0e-color-primary, #2563eb);
	color: #fff;
	border-color: var(--t47dd0e-color-primary, #2563eb);
	font-weight: 600;
}

/* ─── No Results / 404 ───────────────────────────────────── */
.t47dd0e-no-results {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--t47dd0e-color-text, #1e293b); opacity: 0.75;
}

/* ─── Archive header ─────────────────────────────────────── */
.t47dd0e-archive-header { margin-bottom: 2rem; }
.t47dd0e-archive-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.t47dd0e-archive-desc { font-size: 0.95rem; color: var(--t47dd0e-color-text, #1e293b); opacity: 0.75; }

/* ─── Utility ────────────────────────────────────────────── */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal; }

/* ─── Comments ───────────────────────────────────────────── */
.t47dd0e-comments { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--t47dd0e-color-border, #e2e8f0); }
.t47dd0e-comments-title { font-size: 1.25rem; margin-bottom: 1rem; }
.t47dd0e-comment-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.t47dd0e-comment { padding: 1rem; background: var(--t47dd0e-color-bg-alt, #f8fafc); border: 1px solid var(--t47dd0e-color-border, #e2e8f0); border-radius: 8px; }
.t47dd0e-comment-child { margin-left: 2rem; }
.t47dd0e-comment-meta { font-size: 0.85rem; color: var(--t47dd0e-color-text, #1e293b); opacity: 0.75; margin-bottom: 0.5rem; }
.t47dd0e-comment-author { font-weight: 600; color: var(--t47dd0e-color-text, #1e293b); margin-right: 0.5rem; }
.t47dd0e-comment-content p { margin: 0; }
.t47dd0e-respond { margin-top: 1.5rem; }
.t47dd0e-reply-title { font-size: 1.15rem; margin-bottom: 1rem; }
.t47dd0e-comment-form p { margin-bottom: 0.85rem; display: flex; flex-direction: column; gap: 0.3rem; }
.t47dd0e-comment-form label { font-size: 0.85rem; font-weight: 600; color: var(--t47dd0e-color-text, #1e293b); }
.t47dd0e-comment-form input[type="text"],
.t47dd0e-comment-form input[type="email"],
.t47dd0e-comment-form input[type="url"],
.t47dd0e-comment-form textarea { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--t47dd0e-color-border, #e2e8f0); border-radius: 6px; font: inherit; color: var(--t47dd0e-color-text, #1e293b); background: var(--t47dd0e-color-bg, #fff); box-sizing: border-box; }
.t47dd0e-comment-form textarea { resize: vertical; }
.t47dd0e-form-submit { flex-direction: row; }
.t47dd0e-form-submit input[type="submit"] { background: var(--t47dd0e-color-primary, #2563eb); color: #fff; border: 0; padding: 0.65rem 1.5rem; border-radius: 6px; font-weight: 600; cursor: pointer; }
.t47dd0e-form-submit input[type="submit"]:hover { background: var(--t47dd0e-color-secondary, #1e40af); }

/* ─── Listing variants ──────────────────────────────────── */
/* Grid (cards) */
div.t47dd0e-listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.t47dd0e-listing-grid .t47dd0e-post { border-bottom: none; padding: 1rem; background: var(--t47dd0e-color-bg-alt, #f8fafc); border-radius: 0.5rem; border: 1px solid var(--t47dd0e-color-border, #e2e8f0); }

/* Magazine: hero + grid */
div.t47dd0e-listing-magazine { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.t47dd0e-listing-magazine .t47dd0e-post-hero { grid-column: 1 / -1; }
.t47dd0e-listing-magazine .t47dd0e-post-hero .t47dd0e-post-title { font-size: 2rem; }

/* News: horizontal thumbnail + text */
.t47dd0e-listing-news .t47dd0e-post-news { display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem; align-items: start; }
.t47dd0e-listing-news .t47dd0e-post-news .t47dd0e-post-thumbnail { margin-bottom: 0; }
/* No featured image ⇒ news-body is the first grid item and would land in the
 * 220px thumbnail column, cramping all text. Span the full card instead. */
.t47dd0e-listing-news .t47dd0e-post-news > .t47dd0e-news-body:first-child { grid-column: 1 / -1; }
.t47dd0e-listing-news .t47dd0e-post-title { font-size: 1.1rem; }

/* Minimal: title + date only */
.t47dd0e-listing-minimal .t47dd0e-post-minimal { padding: 0.85rem 0; }
.t47dd0e-listing-minimal .t47dd0e-post-title { font-size: 1.05rem; margin-bottom: 0.25rem; }

/* Masonry: CSS columns */
div.t47dd0e-listing-masonry { columns: 3 280px; column-gap: 1.5rem; }
.t47dd0e-listing-masonry .t47dd0e-post-masonry { break-inside: avoid; padding: 1rem 0; }

/* Zigzag: alternating image side */
.t47dd0e-listing-zigzag .t47dd0e-post-zigzag { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; padding: 1.25rem 0; }
.t47dd0e-listing-zigzag .t47dd0e-post-zigzag:nth-child(even) .t47dd0e-post-thumbnail { order: 2; }
/* No featured image ⇒ zigzag-body is the first grid item and would take half
 * the card. Span the full card instead. */
.t47dd0e-listing-zigzag .t47dd0e-post-zigzag > .t47dd0e-zigzag-body:first-child { grid-column: 1 / -1; }
.t47dd0e-listing-zigzag .t47dd0e-post-thumbnail { margin-bottom: 0; }

/* Feature: large hero image, full-width */
.t47dd0e-listing-feature .t47dd0e-post-feature { padding: 1.5rem 0; }
.t47dd0e-listing-feature .t47dd0e-post-feature .t47dd0e-post-title { font-size: 1.5rem; }
.t47dd0e-listing-feature .t47dd0e-post-thumbnail { max-height: 420px; overflow: hidden; }

@media (max-width: 768px) {
	div.t47dd0e-listing-magazine, .t47dd0e-listing-news .t47dd0e-post-news, .t47dd0e-listing-zigzag .t47dd0e-post-zigzag { grid-template-columns: 1fr; }
	.t47dd0e-listing-news .t47dd0e-post-news .t47dd0e-post-thumbnail { margin-bottom: 0.75rem; }
	div.t47dd0e-listing-masonry { columns: 1; }
}

/* ─── Header variants ───────────────────────────────────── */
header.t47dd0e-header-top-bar { border-bottom: 3px solid var(--t47dd0e-color-primary, #2563eb); }
.t47dd0e-header-top-bar .t47dd0e-topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0.5rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.t47dd0e-header-top-bar .t47dd0e-site-title { font-size: 1.15rem; }
.t47dd0e-header-top-bar .t47dd0e-main-nav a { padding: 0.35rem 0.6rem; }

.t47dd0e-header-split .t47dd0e-main-nav { border-top: 1px solid var(--t47dd0e-color-border, #e2e8f0); }
.t47dd0e-header-split .t47dd0e-main-nav > ul { max-width: 1200px; margin: 0 auto; padding: 0.5rem 1rem; }

header.t47dd0e-header-transparent { background: transparent; border-bottom: none; }

/* ─── Footer variants ───────────────────────────────────── */

.t47dd0e-footer-centered .t47dd0e-footer-inner { text-align: center; }
.t47dd0e-footer-centered .t47dd0e-footer-nav ul { justify-content: center; }
.t47dd0e-footer-centered .t47dd0e-footer-copy { margin-top: 1rem; color: var(--t47dd0e-color-text, #1e293b); opacity: 0.75; }

/* ─── Style genes (scoped; body carries the classes) ─────────── */
/* hero_style */
.t47dd0e-hero-solid-block .t47dd0e-archive-header:not(.t47dd0e-hero-band),
.t47dd0e-hero-gradient-band .t47dd0e-archive-header:not(.t47dd0e-hero-band) {
	padding: 3rem 1.5rem;
	border-radius: 0.75rem;
	margin-bottom: 2rem;
}
.t47dd0e-hero-solid-block .t47dd0e-archive-header { background: var(--t47dd0e-color-primary, #2563eb); }
.t47dd0e-hero-solid-block .t47dd0e-archive-header .t47dd0e-post-title,
.t47dd0e-hero-solid-block .t47dd0e-archive-header .t47dd0e-archive-description { color: #fff; }
.t47dd0e-hero-gradient-band .t47dd0e-archive-header {
	background: linear-gradient(135deg, var(--t47dd0e-color-primary, #2563eb), var(--t47dd0e-color-secondary, #1e40af));
}
.t47dd0e-hero-gradient-band .t47dd0e-archive-header .t47dd0e-post-title,
.t47dd0e-hero-gradient-band .t47dd0e-archive-header .t47dd0e-archive-description { color: #fff; }
.t47dd0e-hero-oversized-title .t47dd0e-archive-header .t47dd0e-post-title,
.t47dd0e-hero-oversized-title .t47dd0e-post-title { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.05; }
/* card_style */
.t47dd0e-card-shadow article.t47dd0e-post { box-shadow: 0 10px 30px rgba(0,0,0,0.12); border-radius: 0.75rem; padding: 1.25rem; }
.t47dd0e-card-bordered article.t47dd0e-post { border: 2px solid var(--t47dd0e-color-primary, #2563eb); border-radius: 0.75rem; padding: 1.25rem; }
.t47dd0e-card-tile article.t47dd0e-post { background: var(--t47dd0e-color-bg-alt, #f8fafc); border-radius: 0.5rem; padding: 1.5rem; border-bottom: none; }
/* type_scale */
.t47dd0e-scale-compact .t47dd0e-post-title { font-size: 1.05rem; }
.t47dd0e-scale-compact h1.t47dd0e-post-title { font-size: 1.5rem; }
.t47dd0e-scale-display .t47dd0e-post-title { font-size: 1.75rem; }
.t47dd0e-scale-display h1.t47dd0e-post-title { font-size: 3rem; }
/* heading_case */
.t47dd0e-case-uppercase .t47dd0e-post-title,
.t47dd0e-case-uppercase .t47dd0e-site-title { text-transform: uppercase; letter-spacing: 0.04em; }
/* radius */
.t47dd0e-radius-none article.t47dd0e-post,
.t47dd0e-radius-none .t47dd0e-post-thumbnail img,
.t47dd0e-radius-none .t47dd0e-site-header,
.t47dd0e-radius-none .t47dd0e-site-footer { border-radius: 0; }
.t47dd0e-radius-rounded .t47dd0e-post-thumbnail img,
.t47dd0e-radius-rounded article.t47dd0e-post { border-radius: 1rem; }
.t47dd0e-radius-pill .t47dd0e-read-more { border-radius: 999px; padding: 0.5rem 1.25rem; }
/* section_banding */
.t47dd0e-band-alternate .t47dd0e-site-content > main { background: var(--t47dd0e-color-bg-alt, #f8fafc); }
/* Banding colors the column only — never pad or round it: a padded box
 * shrinks main's content (listing no longer spans the column) which reads
 * as broken layout in sidebar/full pages. */
/* link_style */
.t47dd0e-link-bold-color a { font-weight: 600; }
.t47dd0e-link-bold-color .t47dd0e-read-more { font-weight: 700; }
.t47dd0e-link-button .t47dd0e-read-more {
	display: inline-block; background: var(--t47dd0e-color-primary, #2563eb); color: #fff;
	padding: 0.5rem 1.1rem; border-radius: 0.5rem; text-decoration: none;
}
.t47dd0e-link-button .t47dd0e-read-more:hover { background: var(--t47dd0e-color-secondary, #1e40af); }
/* density */
.t47dd0e-density-tight .t47dd0e-post { padding: 0.75rem 0; }
.t47dd0e-density-tight .t47dd0e-post-excerpt { margin-bottom: 0.4rem; }
.t47dd0e-density-airy .t47dd0e-post { padding: 2.25rem 0; }
.t47dd0e-density-airy .t47dd0e-site-content { gap: 3rem; }
/* title_deco */
.t47dd0e-deco-accent-bar .t47dd0e-post-title::before {
	content: ""; display: inline-block; width: 4px; height: 0.9em;
	background: var(--t47dd0e-color-accent, #f59e0b); margin-right: 0.5rem;
	border-radius: 2px; vertical-align: baseline;
}
.t47dd0e-deco-underline .t47dd0e-post-title { border-bottom: 3px solid var(--t47dd0e-color-accent, #f59e0b); padding-bottom: 0.25rem; display: inline-block; }

/* ─── Premium: hero bands (scoped; body carries the classes) ─── */
.t47dd0e-site .t47dd0e-hero-band { margin: 0 0 2rem; border-radius: 0.75rem; overflow: hidden; }
.t47dd0e-site .t47dd0e-hero-band .t47dd0e-hero-inner { padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem); }
.t47dd0e-hero-solid-block .t47dd0e-site-content > main .t47dd0e-hero-band,
.t47dd0e-hero-solid-block .t47dd0e-hero-band { background: var(--t47dd0e-color-primary, #2563eb); }
.t47dd0e-hero-gradient-band .t47dd0e-hero-band { background: linear-gradient(135deg, var(--t47dd0e-color-primary, #2563eb), var(--t47dd0e-color-secondary, #1e40af)); }
.t47dd0e-site .t47dd0e-hero-band .t47dd0e-post-title,
.t47dd0e-site .t47dd0e-hero-band .t47dd0e-hero-title { color: #fff; }
.t47dd0e-site .t47dd0e-hero-band .t47dd0e-hero-title { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.1; margin: 0 0 0.5rem; }
.t47dd0e-site .t47dd0e-hero-band .t47dd0e-hero-desc { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 60ch; margin-bottom: 1rem; }
.t47dd0e-site .t47dd0e-hero-band .t47dd0e-archive-description a,
.t47dd0e-site .t47dd0e-hero-band nav a,
.t47dd0e-site .t47dd0e-hero-band .t47dd0e-breadcrumbs a,
.t47dd0e-site .t47dd0e-hero-band .t47dd0e-breadcrumbs { color: rgba(255,255,255,0.75); }
.t47dd0e-site .t47dd0e-hero-band .t47dd0e-breadcrumbs .separator { color: rgba(255,255,255,0.5); }
/* oversized-title: no band, display-scale title in-page */
.t47dd0e-hero-oversized-title .t47dd0e-archive-header .t47dd0e-post-title { font-size: clamp(2.75rem, 6vw, 4.25rem); line-height: 1.05; letter-spacing: -0.01em; }
/* display type scale: hero + titles follow type_scale/display fonts */
.t47dd0e-scale-display .t47dd0e-hero-band .t47dd0e-hero-title, .t47dd0e-scale-display .t47dd0e-hero-title { font-size: clamp(2.75rem, 6vw, 4.25rem); }
.t47dd0e-scale-compact .t47dd0e-hero-band .t47dd0e-hero-title, .t47dd0e-scale-compact .t47dd0e-hero-title { font-size: clamp(1.75rem, 4vw, 2.5rem); }
/* meta separators */
.t47dd0e-site .t47dd0e-post-meta > span + span::before { content: "·"; margin-right: 0.5rem; }

/* ─── Premium: image treatment + card depth ─── */
.t47dd0e-site .t47dd0e-post-thumbnail { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: inherit; }
.t47dd0e-site .t47dd0e-post-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.t47dd0e-site .t47dd0e-post:hover .t47dd0e-post-thumbnail img { transform: scale(1.03); }
/* scrim on image-forward listings (magazine hero / feature / grid) */
div.t47dd0e-listing-magazine .t47dd0e-post-thumbnail::after,
div.t47dd0e-listing-feature .t47dd0e-post-thumbnail::after,
div.t47dd0e-listing-grid .t47dd0e-post-thumbnail::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 55%);
	border-radius: inherit;
	pointer-events: none;
}
/* card hover depth (card-shadow gene). Gene class is body-carried, so it
 * leads the selector — `.t47dd0e-site .t47dd0e-card-shadow …` would be dead
 * (both classes live on <body>). */
.t47dd0e-card-shadow article.t47dd0e-post { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.t47dd0e-card-shadow article.t47dd0e-post:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,0.16); }
/* radius gene applies to image boxes too (gene class body-carried — leads).
 * These follow the generic `border-radius: inherit` above so they win the
 * equal-specificity tie by source order when a radius gene is active. */
.t47dd0e-radius-rounded .t47dd0e-post-thumbnail { border-radius: 1rem; }
.t47dd0e-radius-pill .t47dd0e-post-thumbnail { border-radius: 999px; }
.t47dd0e-radius-none .t47dd0e-post-thumbnail { border-radius: 0; }
/* NOTE: the brief's trailing `.t47dd0e-site .t47dd0e-post-thumbnail
 * { margin-bottom: 1rem; }` is intentionally NOT appended. It only duplicates
 * the base rule (see "Post Cards" section) at equal (0,2,0) specificity, and —
 * later in source order — would silently override the zigzag listing's
 * `margin-bottom: 0` (see "Listing variants"), a visible regression the
 * classic-only goldens cannot catch. */

/* ─── Premium: substantive fat footer ─── */
.t47dd0e-site-footer.t47dd0e-footer-fat { border-top: 3px solid var(--t47dd0e-color-primary, #2563eb); }
.t47dd0e-site .t47dd0e-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.t47dd0e-site .t47dd0e-footer-col-title { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.75rem; color: var(--t47dd0e-color-text, #1e293b); }
.t47dd0e-site .t47dd0e-footer-col-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.t47dd0e-site .t47dd0e-footer-col-list a { color: var(--t47dd0e-color-text, #1e293b); }
.t47dd0e-site .t47dd0e-footer-col-list a:hover { color: var(--t47dd0e-color-primary, #2563eb); }
.t47dd0e-site .t47dd0e-footer-col-count { color: var(--t47dd0e-color-text, #1e293b); opacity: 0.6; font-size: 0.85rem; }
.t47dd0e-site .t47dd0e-footer-brand p { color: var(--t47dd0e-color-text, #1e293b); opacity: 0.8; margin: 0; }
.t47dd0e-site .t47dd0e-footer-fat .t47dd0e-footer-nav ul { flex-direction: column; gap: 0.4rem; }

/* ─── band-contrast: palette-tinted footer band ─── */
/* Gene class is body-carried (leads the selector); the footer is a real
 * descendant. Group extends the brief's selector list with footer-brand p
 * and footer-col-count: both carry explicit dark-color rules above that
 * would otherwise stay dark on the primary band. */
.t47dd0e-band-contrast .t47dd0e-site-footer { background: var(--t47dd0e-color-primary, #2563eb); }
.t47dd0e-band-contrast .t47dd0e-site-footer .t47dd0e-footer-inner,
.t47dd0e-band-contrast .t47dd0e-site-footer a,
.t47dd0e-band-contrast .t47dd0e-site-footer .t47dd0e-footer-bottom,
.t47dd0e-band-contrast .t47dd0e-site-footer .t47dd0e-footer-copy,
.t47dd0e-band-contrast .t47dd0e-site-footer .t47dd0e-footer-col-title,
.t47dd0e-band-contrast .t47dd0e-site-footer .t47dd0e-footer-brand p,
.t47dd0e-band-contrast .t47dd0e-site-footer .t47dd0e-footer-col-count { color: #fff; }
.t47dd0e-band-contrast .t47dd0e-site-footer a:hover { color: rgba(255,255,255,0.85); }

/* ─── breadcrumb separators in palette-secondary ─── */
/* (0,3,0) beats the base .t47dd0e-breadcrumbs .separator (0,2,0); the
 * hero-band override (0,4,0) still wins inside hero bands. */
.t47dd0e-site .t47dd0e-breadcrumbs .separator { color: var(--t47dd0e-color-secondary, #cbd5e1); }

/* ─── 404 page ─── */
/* 404.gohtml renders .t47dd0e-404 (h1 + plain home link) — subjects target
 * that markup (the .t47dd0e-no-results rule above has no template user). */
.t47dd0e-site .t47dd0e-404 { text-align: center; padding: 4rem 1rem; }
.t47dd0e-site .t47dd0e-404 h1 { font-size: clamp(2rem, 5vw, 3rem); }
.t47dd0e-site .t47dd0e-404 a { display: inline-block; margin-top: 1rem; padding: 0.6rem 1.5rem; background: var(--t47dd0e-color-primary, #2563eb); color: #fff; border-radius: 0.5rem; text-decoration: none; }
.t47dd0e-site .t47dd0e-404 a:hover { background: var(--t47dd0e-color-secondary, #1e40af); }

/* ─── per-font display sizing (hero titles scale to the face) ─── */
/* Font class is body-carried (leads the selector); hero-title is a
 * descendant. Mirrors theme.json variants.font_display_sizes — the guard in
 * tests/test-theme-premium-css.php keeps the two in sync. No font class ⇒
 * the generic clamp sizes above apply. */
.t47dd0e-font-bebas_punch .t47dd0e-hero-band .t47dd0e-hero-title, .t47dd0e-font-bebas_punch .t47dd0e-hero-title { font-size: clamp(2.75rem, 7vw, 4rem); }
.t47dd0e-font-archivo_black .t47dd0e-hero-band .t47dd0e-hero-title, .t47dd0e-font-archivo_black .t47dd0e-hero-title { font-size: clamp(2.75rem, 7vw, 4rem); }
.t47dd0e-font-anton_impact .t47dd0e-hero-band .t47dd0e-hero-title, .t47dd0e-font-anton_impact .t47dd0e-hero-title { font-size: clamp(2.75rem, 7vw, 4rem); }
.t47dd0e-font-bold_statement .t47dd0e-hero-band .t47dd0e-hero-title, .t47dd0e-font-bold_statement .t47dd0e-hero-title { font-size: clamp(2.5rem, 6vw, 3.5rem); }
.t47dd0e-font-fraunces_fresh .t47dd0e-hero-band .t47dd0e-hero-title, .t47dd0e-font-fraunces_fresh .t47dd0e-hero-title { font-size: clamp(2.5rem, 6vw, 3.5rem); }
.t47dd0e-font-playfair_grand .t47dd0e-hero-band .t47dd0e-hero-title, .t47dd0e-font-playfair_grand .t47dd0e-hero-title { font-size: clamp(2.5rem, 6vw, 3.5rem); }
