/*!
 * Trust All America — Static site stylesheet
 * Hand-built to replicate the original design system 1:1 (colors, type, spacing, shadows).
 * No build step required — pure CSS custom properties + utility/component classes.
 */

/* ============================= DESIGN TOKENS ============================= */
:root {
  --radius: 0.375rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);

  --background: oklch(0.993 0.003 250);
  --foreground: oklch(0.19 0.035 262);
  --ink: oklch(0.15 0.03 262);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.19 0.035 262);

  --primary: oklch(0.255 0.075 264);
  --primary-foreground: oklch(0.985 0.004 250);
  --primary-glow: oklch(0.53 0.095 252);

  --accent: oklch(0.52 0.19 27);
  --accent-foreground: oklch(0.99 0 0);

  --gold: oklch(0.78 0.1 84);

  --surface: oklch(0.975 0.006 250);
  --surface-2: oklch(0.945 0.011 250);
  --secondary: oklch(0.955 0.01 250);
  --secondary-foreground: oklch(0.24 0.05 262);
  --muted: oklch(0.96 0.008 250);
  --muted-foreground: oklch(0.47 0.028 258);

  --border: oklch(0.905 0.012 252);
  --input: oklch(0.905 0.012 252);
  --ring: oklch(0.53 0.095 252);

  --cat-automotive: oklch(0.52 0.16 32);
  --cat-education: oklch(0.46 0.11 158);
  --cat-health: oklch(0.48 0.1 210);
  --cat-insurance: oklch(0.38 0.11 260);
  --cat-lawyers: oklch(0.42 0.11 285);
  --cat-realestate: oklch(0.5 0.11 62);

  --shadow-xs: 0 1px 1px 0 oklch(0.2 0.04 262 / 0.05);
  --shadow-sm: 0 1px 2px 0 oklch(0.2 0.04 262 / 0.06), 0 1px 8px -4px oklch(0.2 0.04 262 / 0.06);
  --shadow-md: 0 10px 28px -14px oklch(0.2 0.04 262 / 0.18), 0 2px 6px -3px oklch(0.2 0.04 262 / 0.08);
  --shadow-lg: 0 30px 60px -24px oklch(0.2 0.04 262 / 0.24), 0 6px 16px -8px oklch(0.2 0.04 262 / 0.1);

  --gradient-hero: linear-gradient(135deg, oklch(0.3 0.085 262) 0%, oklch(0.22 0.07 264) 55%, oklch(0.16 0.05 266) 100%);
  --gradient-brand: linear-gradient(90deg, var(--primary), var(--primary-glow));
  --gradient-gold: linear-gradient(90deg, transparent, var(--gold) 35%, var(--gold) 65%, transparent);
  --gradient-overlay: linear-gradient(180deg, oklch(0.14 0.04 264 / 0) 28%, oklch(0.13 0.04 264 / 0.55) 62%, oklch(0.1 0.035 264 / 0.92) 100%);

  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "DM Sans", system-ui, -apple-system, sans-serif;

  --container-max: 1280px;
}

/* ============================= RESET / BASE ============================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1;
  line-height: 1.5;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, button { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; }
h1, h2 { letter-spacing: -0.015em; text-wrap: balance; }
h3, h4 { letter-spacing: -0.015em; text-wrap: pretty; }
p { margin: 0; }
svg { display: block; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--primary); color: var(--primary-foreground);
  padding: 10px 16px; border-radius: var(--radius-md); font-weight: 700; font-size: 13px;
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; }

/* ============================= UTILITIES ============================= */
.eyebrow { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; color: var(--accent); }
.eyebrow--gold { color: var(--gold); }
.rule-gold { height: 2px; background: var(--gradient-gold); }
.grain-hairline { border-top: 1px solid oklch(1 0 0 / .1); border-bottom: 1px solid oklch(0 0 0 / .25); }
.dark-section {
  background: radial-gradient(120% 90% at 12% 0%, oklch(0.34 0.09 258 / .55) 0%, transparent 60%), var(--gradient-hero);
  color: var(--primary-foreground);
}
.media-frame { position: relative; overflow: hidden; background: var(--surface-2); }
.media-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px oklch(0.2 0.04 262 / .08); pointer-events: none; }
.media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.media-frame:hover img { transform: scale(1.05); }

.card-premium {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-sm);
  transition: box-shadow .35s cubic-bezier(.22,1,.36,1), transform .35s cubic-bezier(.22,1,.36,1), border-color .35s ease;
}
.card-premium:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: color-mix(in oklab, var(--primary) 26%, var(--border)); }

.panel-premium {
  background: linear-gradient(180deg, var(--card) 0%, var(--surface) 100%);
  border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-sm);
}
.topline-gold { position: relative; }
.topline-gold::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-glow) 55%, var(--gold)); border-radius: inherit;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-md); font-weight: 600; font-size: 14px; padding: 10px 20px;
  border: 1px solid transparent; transition: opacity .2s ease, background-color .2s ease, border-color .2s ease;
  min-height: 44px; cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: .9; }
.btn-outline { background: var(--background); color: var(--foreground); border-color: var(--input); }
.btn-outline:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-gold { background: var(--gold); color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.btn-gold:hover { opacity: .9; }
.btn-block { width: 100%; }

/* ============================= HEADER ============================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  border-bottom: 1px solid var(--border); background: oklch(0.993 0.003 250 / .92);
  box-shadow: var(--shadow-xs); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.header-topbar { display: none; color: var(--primary-foreground); background: var(--gradient-hero); }
.header-topbar-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 8px 24px; display: flex; align-items: center;
  justify-content: space-between; font-size: 11px; font-weight: 500; letter-spacing: .12em;
}
.header-topbar-left { text-transform: uppercase; color: oklch(0.985 0.004 250 / .85); }
.header-topbar-right { display: flex; align-items: center; gap: 12px; text-transform: uppercase; color: oklch(0.985 0.004 250 / .85); }
.dot-gold { height: 4px; width: 4px; border-radius: 999px; background: var(--gold); }

.header-main { max-width: var(--container-max); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-link img { height: 40px; width: auto; }

.main-nav { display: none; align-items: center; gap: 2px; }
.nav-link {
  position: relative; border-radius: var(--radius-md); padding: 8px 12px; font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; color: var(--foreground); transition: color .2s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--primary); }
.nav-link.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: grid; place-items: center; height: 40px; width: 40px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); color: var(--muted-foreground);
  box-shadow: var(--shadow-xs); transition: border-color .2s ease, color .2s ease;
}
.icon-btn:hover { border-color: color-mix(in oklab, var(--primary) 40%, var(--border)); color: var(--primary); }
.menu-btn { display: grid; color: var(--foreground); }

.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--surface); }
.mobile-nav.is-open { display: block; }
.mobile-nav-inner { max-width: var(--container-max); margin: 0 auto; padding: 8px 16px; display: flex; flex-direction: column; }
.mobile-nav-link {
  border-radius: var(--radius-md); border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  padding: 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--foreground);
}
.mobile-nav-link:last-child { border-bottom: 0; }
.mobile-nav-link:hover { background: var(--secondary); }
.header-spacer { height: 72px; }

/* ============================= SECTION HEADING ============================= */
.section-heading { margin-bottom: 28px; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-heading-title { display: flex; align-items: center; gap: 12px; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 900; line-height: 1.15; color: var(--foreground); }
.section-heading-title .bar { height: 28px; width: 3px; border-radius: 999px; background: var(--primary); }
.section-heading-title .bar--accent { background: var(--accent); }
.section-heading-title .bar--gold { background: var(--gold); }
.section-heading--dark .section-heading-title { color: var(--primary-foreground); }
.section-heading-viewall { flex-shrink: 0; white-space: nowrap; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--primary); }
.section-heading-viewall:hover { color: var(--accent); }
.section-heading--dark .section-heading-viewall { color: var(--primary-foreground); }
.section-heading--dark .section-heading-viewall:hover { color: var(--gold); }
.section-heading-rule { margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.section-heading-rule .line { height: 1px; flex: 1; background: var(--border); }
.section-heading-rule .stub { height: 1px; width: 64px; background: color-mix(in oklab, var(--accent) 70%, transparent); }
.section-heading--dark .section-heading-rule .line { background: oklch(1 0 0 / .15); }
.section-heading--dark .section-heading-rule .stub { background: color-mix(in oklab, var(--gold) 70%, transparent); }

/* ============================= CATEGORY BADGE ============================= */
.category-badge {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid oklch(1 0 0 / .2);
  padding: 4px 12px; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em;
  color: var(--primary-foreground); box-shadow: var(--shadow-sm); backdrop-filter: blur(2px); transition: filter .2s ease;
  background: var(--primary);
}
.category-badge:hover { filter: brightness(1.1); }
.badge-automotive { background: var(--cat-automotive); }
.badge-education { background: var(--cat-education); }
.badge-health-plans { background: var(--cat-health); }
.badge-insurance { background: var(--cat-insurance); }
.badge-lawyers { background: var(--cat-lawyers); }
.badge-real-estate { background: var(--cat-realestate); }
.dot-automotive { background: var(--cat-automotive); }
.dot-education { background: var(--cat-education); }
.dot-health-plans { background: var(--cat-health); }
.dot-insurance { background: var(--cat-insurance); }
.dot-lawyers { background: var(--cat-lawyers); }
.dot-real-estate { background: var(--cat-realestate); }

/* ============================= BREADCRUMBS ============================= */
.breadcrumbs { font-size: 12px; color: var(--muted-foreground); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 500; letter-spacing: .01em; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: .5; }
.breadcrumbs .current { max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: currentColor; }
.breadcrumbs--center ol { justify-content: center; }
.breadcrumbs--onDark { color: oklch(0.985 0.004 250 / .8); }
.breadcrumbs--onDark a:hover { color: var(--gold); }

/* ============================= POST CARDS ============================= */
.post-grid { display: grid; gap: 24px; }
.post-grid--2 { grid-template-columns: repeat(1, 1fr); }
.post-grid--3 { grid-template-columns: repeat(1, 1fr); }
.post-grid--4 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) { .post-grid--2, .post-grid--3, .post-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid--3 { grid-template-columns: repeat(3, 1fr); } .post-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.post-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.post-card-media { aspect-ratio: 16/10; position: relative; }
.post-card-badge-pos { position: absolute; left: 14px; top: 14px; z-index: 2; }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px 24px; }
.post-card-title { font-family: var(--font-serif); font-size: 1.075rem; font-weight: 700; line-height: 1.3; color: var(--foreground); }
.post-card:hover .post-card-title { color: var(--primary); }
.post-card-excerpt { margin-top: 10px; flex: 1; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-meta { margin-top: 20px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 14px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); }
.post-card-meta svg { color: var(--accent); }
.post-card-read { margin-left: auto; font-weight: 700; color: var(--primary); }
.post-card:hover .post-card-read { color: var(--accent); }

.post-card-compact { display: flex; min-width: 0; flex: 1; gap: 14px; }
.post-card-compact-media { position: relative; height: 64px; width: 80px; flex-shrink: 0; border-radius: var(--radius-md); }
.post-card-compact-body { min-width: 0; flex: 1; }
.post-card-compact-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--foreground); }
.post-card-compact:hover .post-card-compact-title { color: var(--primary); }
.post-card-compact-date { margin-top: 6px; font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-foreground); }
.compact-list { display: flex; flex-direction: column; gap: 20px; }

.post-card-list { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; border-bottom: 1px solid var(--border); padding: 24px 0; }
@media (min-width: 640px) { .post-card-list { grid-template-columns: 1fr 190px; } }
.post-card-list-title { font-family: var(--font-serif); font-size: 20px; font-weight: 700; line-height: 1.35; color: var(--foreground); }
.post-card-list:hover .post-card-list-title { color: var(--primary); }
.post-card-list-excerpt { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-list-meta { margin-top: 14px; display: flex; align-items: center; gap: 16px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); }
.post-card-list-meta span { display: flex; align-items: center; gap: 4px; }
.post-card-list-media { position: relative; aspect-ratio: 4/3; width: 128px; flex-shrink: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
@media (min-width: 640px) { .post-card-list-media { width: 190px; } }

.post-card-featured { position: relative; display: block; height: 100%; min-height: 400px; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.post-card-featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.post-card-featured:hover img { transform: scale(1.05); }
.post-card-featured-overlay { position: absolute; inset: 0; background: var(--gradient-overlay); }
.post-card-featured-body { position: relative; z-index: 2; display: flex; height: 100%; flex-direction: column; justify-content: flex-end; padding: 24px; }
@media (min-width: 768px) { .post-card-featured-body { padding: 32px; } }
.post-card-featured-title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 900; line-height: 1.2; color: var(--primary-foreground); }
@media (min-width: 768px) { .post-card-featured-title { font-size: 2rem; } }
.post-card-featured-excerpt { margin-top: 10px; display: none; font-size: 14px; line-height: 1.6; color: oklch(0.985 0.004 250 / .85); }
@media (min-width: 768px) { .post-card-featured-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
.post-card-featured-date-row { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.post-card-featured-date-row .stub { height: 1px; width: 40px; background: var(--gold); }
.post-card-featured-date-row .date { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: oklch(0.985 0.004 250 / .8); }

/* ============================= HOME HERO ============================= */
.hero-section { border-bottom: 1px solid var(--border); background: linear-gradient(to bottom, var(--surface), var(--background)); }
.hero-top { max-width: var(--container-max); margin: 0 auto; padding: 40px 24px 20px; }
.hero-title { margin-top: 8px; max-width: 56rem; font-family: var(--font-serif); font-size: 1.75rem; font-weight: 900; line-height: 1.2; color: var(--foreground); }
@media (min-width: 768px) { .hero-title { font-size: 2.4rem; } }
.hero-divider { margin-top: 16px; display: flex; align-items: center; gap: 8px; }
.hero-divider .bar1 { height: 3px; width: 56px; border-radius: 999px; background: var(--accent); }
.hero-divider .bar2 { height: 3px; width: 24px; border-radius: 999px; background: var(--gold); }
.hero-grid { max-width: var(--container-max); margin: 0 auto; padding: 0 24px 32px; display: grid; gap: 16px; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 2fr 1fr; } }
.hero-side-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 1024px) { .hero-side-grid { grid-template-columns: 1fr; } }
.mini-card { position: relative; display: block; aspect-ratio: 16/10; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
@media (min-width: 1024px) { .mini-card { aspect-ratio: 16/9; } }
.mini-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mini-card:hover img { transform: scale(1.05); }
.mini-card-overlay { position: absolute; inset: 0; background: var(--gradient-overlay); }
.mini-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px; }
.mini-card-cat { margin-bottom: 6px; display: inline-block; border-radius: 999px; background: var(--accent); padding: 2px 10px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--accent-foreground); }
.mini-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--font-serif); font-size: 13.5px; font-weight: 700; line-height: 1.25; color: var(--primary-foreground); }

/* ============================= LAYOUT SECTIONS ============================= */
.section { max-width: var(--container-max); margin: 0 auto; padding: 64px 24px; }
.section--tight { padding-top: 64px; padding-bottom: 64px; }
.trending-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .trending-grid { grid-template-columns: 1fr 320px; } }
.trending-sidebar { display: none; }
@media (min-width: 1024px) { .trending-sidebar { display: block; } }

.top-articles-head { margin-bottom: 28px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 1px solid oklch(1 0 0 / .1); padding-bottom: 16px; }
.top-articles-chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; }
.chip {
  border-radius: 999px; border: 1px solid oklch(1 0 0 / .15); background: oklch(1 0 0 / .05); padding: 6px 14px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: oklch(0.985 0.004 250 / .85); transition: border-color .2s ease, color .2s ease;
}
.chip:hover { border-color: color-mix(in oklab, var(--gold) 50%, transparent); color: var(--gold); }
.chip.is-active { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }

.top-articles-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .top-articles-grid { grid-template-columns: 1fr 1fr; } }
.big-feature { position: relative; display: block; aspect-ratio: 16/10; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.big-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.big-feature:hover img { transform: scale(1.05); }
.big-feature-overlay { position: absolute; inset: 0; background: var(--gradient-overlay); }
.big-feature-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px; }
@media (min-width: 768px) { .big-feature-body { padding: 28px; } }
.big-feature-cat { margin-bottom: 10px; display: inline-block; border-radius: 999px; background: var(--accent); padding: 4px 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: #fff; }
.big-feature-title { font-family: var(--font-serif); font-size: 24px; font-weight: 900; line-height: 1.2; color: var(--primary-foreground); }
.side-feature-list { display: grid; gap: 12px; }
.side-feature-item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; border-radius: var(--radius-lg); border: 1px solid oklch(1 0 0 / .05); padding: 10px; transition: border-color .2s ease, background-color .2s ease; }
.side-feature-item:hover { border-color: oklch(1 0 0 / .15); background: oklch(1 0 0 / .05); }
.side-feature-media { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-md); background: oklch(0 0 0 / .3); }
.side-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.side-feature-item:hover .side-feature-media img { transform: scale(1.05); }
.side-feature-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); }
.side-feature-title { margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--font-serif); font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--primary-foreground); }

.category-cols { display: grid; gap: 40px; }
@media (min-width: 768px) { .category-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .category-cols { grid-template-columns: repeat(3, 1fr); } }
.category-col-feature { display: block; }
.category-col-feature .media-frame { margin-bottom: 14px; aspect-ratio: 16/10; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.category-col-feature-title { font-family: var(--font-serif); font-size: 1.075rem; font-weight: 700; line-height: 1.35; color: var(--foreground); }
.category-col-feature:hover .category-col-feature-title { color: var(--primary); }
.category-col-list { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }

.investigation-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .investigation-layout { grid-template-columns: 1fr 320px; } }

/* ============================= SIDEBAR ============================= */
.sidebar { display: flex; flex-direction: column; gap: 40px; }
.most-viewed-list { display: flex; flex-direction: column; gap: 20px; }
.most-viewed-item { display: flex; align-items: flex-start; gap: 14px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.most-viewed-item:last-child { border-bottom: 0; padding-bottom: 0; }
.most-viewed-rank { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 900; line-height: 1; color: color-mix(in oklab, var(--primary) 35%, transparent); }
.newsletter-panel { padding: 24px 24px 28px; }
.newsletter-panel-icon { margin-bottom: 16px; display: grid; place-items: center; height: 44px; width: 44px; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--accent) 20%, transparent); background: color-mix(in oklab, var(--accent) 10%, transparent); color: var(--accent); }
.newsletter-panel h3 { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--foreground); }
.newsletter-panel p { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.categories-list { overflow: hidden; }
.categories-list li + li { border-top: 1px solid var(--border); }
.categories-list a { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--foreground); transition: background-color .2s ease; }
.categories-list a:hover { background: var(--secondary); }
.categories-list-label { display: flex; align-items: center; gap: 10px; }
.cat-dot { height: 8px; width: 8px; border-radius: 999px; box-shadow: 0 0 0 2px inset oklch(1 0 0 / .4); }
.categories-list-count { border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); padding: 2px 10px; font-size: 11px; font-weight: 700; color: var(--primary); }

/* ============================= NEWSLETTER FORM ============================= */
.newsletter-form { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.newsletter-form label { display: block; }
.newsletter-form input[type="email"] {
  width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--background);
  padding: 10px 14px; font-size: 14px; color: var(--foreground);
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in oklab, var(--ring) 20%, transparent); }
.newsletter-form--dark input[type="email"] { border-color: oklch(1 0 0 / .15); background: oklch(1 0 0 / .05); color: var(--primary-foreground); }
.newsletter-form--dark input[type="email"]::placeholder { color: oklch(0.985 0.004 250 / .6); }
.newsletter-form--dark input[type="email"]:focus { border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in oklab, var(--gold) 25%, transparent); }
.newsletter-success { margin-top: 20px; border-radius: var(--radius-md); border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent); background: var(--secondary); padding: 12px 14px; font-size: 14px; color: var(--foreground); }
.newsletter-success--dark { border-color: color-mix(in oklab, var(--gold) 40%, transparent); background: oklch(1 0 0 / .05); color: var(--primary-foreground); }

/* ============================= ARTICLE PAGE ============================= */
.article-header { border-bottom: 1px solid var(--border); background: linear-gradient(to bottom, var(--surface-2), var(--background)); }
.article-header-inner { max-width: 56rem; margin: 0 auto; padding: 64px 24px; text-align: center; }
.article-title { margin: 20px auto 0; max-width: 48rem; font-family: var(--font-serif); font-size: 1.85rem; font-weight: 900; line-height: 1.15; color: var(--foreground); }
@media (min-width: 768px) { .article-title { font-size: 3rem; } }
.article-divider { margin: 24px auto 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.article-divider .bar1 { height: 3px; width: 48px; border-radius: 999px; background: var(--accent); }
.article-divider .bar2 { height: 3px; width: 20px; border-radius: 999px; background: var(--gold); }
.article-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.article-updated { margin-top: 12px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-foreground); }

.author-inline { margin: 24px auto 0; display: inline-flex; max-width: 32rem; align-items: center; justify-content: center; gap: 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); padding: 8px 16px; box-shadow: var(--shadow-xs); }
.author-inline img { height: 40px; width: 40px; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 1px var(--border); }
.author-inline-text { text-align: left; font-size: 12px; }
.author-inline-text .name { font-weight: 600; color: var(--foreground); }
.author-inline-text .name:hover { color: var(--primary); }
.author-inline-text .date { margin-top: 2px; font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); }

.article-hero-figure { max-width: 64rem; margin: 40px auto 0; padding: 0 24px; }
.article-hero-figure .media-frame { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.article-hero-figure img { position: static; aspect-ratio: 16/9; width: 100%; object-fit: cover; }

.article-body-grid { max-width: var(--container-max); margin: 0 auto; padding: 56px 24px; display: grid; gap: 48px; }
@media (min-width: 1024px) { .article-body-grid { grid-template-columns: 1fr 320px; } }
.article-main { min-width: 0; }

/* Prose (article content) */
.prose { max-width: none; color: var(--foreground); font-size: 17px; line-height: 1.78; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 1.25em 0; }
.prose h2 {
  position: relative; margin-top: 2.75em; margin-bottom: .75em; padding-bottom: .35em; border-bottom: 1px solid var(--border);
  font-family: var(--font-serif); font-size: 1.5em; font-weight: 900; letter-spacing: -.02em; color: var(--foreground);
}
.prose h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 3.5rem; height: 2px; background: var(--accent); }
.prose h3 { margin-top: 1.6em; margin-bottom: .6em; font-family: var(--font-serif); font-size: 1.25em; font-weight: 800; letter-spacing: -.015em; color: var(--foreground); }
.prose h4 { margin-top: 1.4em; margin-bottom: .5em; font-weight: 700; }
.prose a { color: var(--primary); font-weight: 600; text-decoration underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--primary) 40%, transparent); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong { font-weight: 700; background: linear-gradient(to top, color-mix(in oklab, var(--gold) 42%, transparent) 0 .34em, transparent .34em); padding: 0 .08em; }
.prose ul, .prose ol { margin: 1.25em 0; padding-left: 1.5em; }
.prose li { margin: .5em 0; }
.prose ul > li { list-style: disc; }
.prose ul > li::marker { color: var(--accent); }
.prose ol > li { list-style: decimal; }
.prose ol > li::marker { color: var(--primary); font-weight: 700; }
.prose blockquote { margin: 1.5em 0; border-left: 0; padding: 1.25rem 1.5rem; background: linear-gradient(180deg, var(--surface) 0%, var(--card) 100%); border-radius: calc(var(--radius) + 4px); box-shadow: inset 3px 0 0 0 var(--accent), var(--shadow-xs); font-style: normal; color: var(--foreground); }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow-sm); font-size: .9375rem; margin: 1.5em 0; display: block; max-width: 100%; overflow-x: auto; }
.prose thead { background: var(--primary); }
.prose th { color: var(--primary-foreground); text-align: left; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .85rem 1rem; border: 0; }
.prose td { padding: .85rem 1rem; border: 0; border-top: 1px solid var(--border); vertical-align: top; }
.prose tbody tr:nth-child(even) { background: var(--surface); }
.prose hr { border: 0; height: 2px; background: var(--gradient-gold); opacity: .55; margin: 3em 0; }
.prose img { border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-md); margin: 1.5em 0; }
.prose figcaption { font-size: .75rem; color: var(--muted-foreground); text-align: center; }
.prose code { background: var(--surface-2); padding: .15em .4em; border-radius: 4px; font-size: .9em; }
.prose :where(p, li, h1, h2, h3, h4, h5, h6, a, blockquote) { overflow-wrap: anywhere; word-break: break-word; }

/* Article sources */
.article-sources { margin: 56px auto 0; max-width: 48rem; padding: 24px; }
@media (min-width: 768px) { .article-sources { padding: 32px; } }
.article-sources h2 { margin-top: 6px; font-family: var(--font-serif); font-size: 20px; font-weight: 900; color: var(--foreground); }
.article-sources .rule { margin-top: 12px; height: 1px; width: 100%; background: var(--border); }
.article-sources p.lead { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.sources-grid { margin-top: 20px; display: grid; gap: 8px; font-size: 14px; }
@media (min-width: 640px) { .sources-grid { grid-template-columns: 1fr 1fr; } }
.sources-grid li { border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--card); padding: 10px 12px; transition: border-color .2s ease; }
.sources-grid li:hover { border-color: color-mix(in oklab, var(--primary) 30%, transparent); }
.sources-grid a { display: inline-flex; align-items: flex-start; gap: 8px; font-weight: 500; color: var(--primary); }
.sources-grid a:hover { color: var(--accent); }
.sources-grid svg { margin-top: 2px; flex-shrink: 0; color: var(--accent); }

/* Author bio */
.author-bio { margin: 56px auto 0; max-width: 48rem; padding: 32px 24px; }
@media (min-width: 768px) { .author-bio { padding: 40px 36px; } }
.author-bio-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
@media (min-width: 768px) { .author-bio-inner { flex-direction: row; align-items: flex-start; text-align: left; } }
.author-bio img { height: 128px; width: 128px; flex-shrink: 0; border-radius: 999px; object-fit: cover; box-shadow: var(--shadow-md); outline: 1px solid var(--border); outline-offset: 4px; }
@media (min-width: 768px) { .author-bio img { height: 144px; width: 144px; } }
.author-bio h3 { margin-top: 6px; font-family: var(--font-serif); font-size: 24px; font-weight: 900; color: var(--foreground); }
.author-bio h3:hover { color: var(--primary); }
.author-bio .role { margin-top: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--primary); }
.author-bio .bio-text { margin-top: 16px; font-size: 14px; line-height: 1.7; color: var(--muted-foreground); }

.author-socials { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.author-socials a { display: grid; place-items: center; height: 36px; width: 36px; border-radius: 999px; border: 1px solid var(--border); background: var(--background); color: var(--foreground); transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.author-socials a:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-foreground); }
.author-socials--center { justify-content: center; }
@media (min-width: 768px) { .author-socials--md-start { justify-content: flex-start; } }

.related-section { border-top: 1px solid var(--border); background: var(--surface); padding: 64px 0; }

/* ============================= CATEGORY PAGE ============================= */
.category-hero { padding: 64px 0; }
@media (min-width: 768px) { .category-hero { padding: 80px 0; } }
.category-hero-title { margin-top: 10px; max-width: 56rem; font-family: var(--font-serif); font-size: 2.1rem; font-weight: 900; line-height: 1.1; }
@media (min-width: 768px) { .category-hero-title { font-size: 3.1rem; } }
.category-hero-divider { margin-top: 20px; display: flex; align-items: center; gap: 8px; }
.category-hero-divider .bar1 { height: 3px; width: 56px; border-radius: 999px; background: var(--gold); }
.category-hero-divider .bar2 { height: 3px; width: 24px; border-radius: 999px; background: var(--accent); }
.category-hero-desc { margin-top: 20px; max-width: 44rem; font-size: 14px; line-height: 1.7; color: oklch(0.985 0.004 250 / .85); }
.category-body { max-width: var(--container-max); margin: 0 auto; padding: 64px 24px; display: grid; gap: 40px; }
@media (min-width: 1024px) { .category-body { grid-template-columns: 1fr 320px; } }
.category-intro { margin-top: 64px; max-width: 48rem; border-top: 1px solid var(--border); padding-top: 40px; }
.category-intro p.intro-text { margin-top: 12px; font-size: 16px; line-height: 1.75; color: var(--foreground); }
@media (min-width: 768px) { .category-intro p.intro-text { font-size: 18px; } }
.highlight-cards { margin-top: 32px; display: grid; gap: 16px; }
@media (min-width: 640px) { .highlight-cards { grid-template-columns: 1fr 1fr; } }
.highlight-card { padding: 20px; }
.highlight-card-head { display: flex; align-items: center; gap: 8px; }
.highlight-card-head svg { color: var(--accent); flex-shrink: 0; }
.highlight-card h2 { font-family: var(--font-serif); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--foreground); }
.highlight-card p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }

/* ============================= GLOSSARY INDEX ============================= */
.glossary-hero { position: relative; overflow: hidden; border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent); background: linear-gradient(to bottom right, color-mix(in oklab, var(--secondary) 60%, transparent), var(--background), var(--background)); }
.glossary-hero-inner { position: relative; max-width: 64rem; margin: 0 auto; padding: 64px 24px; text-align: center; }
.glossary-hero-badge { margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent); background: color-mix(in oklab, var(--accent) 10%, transparent); padding: 4px 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; color: var(--accent); }
.glossary-hero h1 { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 900; line-height: 1.15; color: var(--foreground); }
@media (min-width: 768px) { .glossary-hero h1 { font-size: 3.2rem; } }
.glossary-hero-sub { margin: 20px auto 0; max-width: 42rem; font-size: 18px; color: var(--muted-foreground); }
.glossary-search-wrap { margin: 32px auto 0; max-width: 42rem; position: relative; }
.glossary-search-wrap input { height: 56px; width: 100%; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--card); padding: 0 20px 0 48px; font-size: 16px; color: var(--foreground); box-shadow: var(--shadow-md); }
.glossary-search-wrap input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 20%, transparent); }
.glossary-search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); pointer-events: none; }
#glossary-search-results { display: none; margin-top: 12px; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--card); text-align: left; box-shadow: var(--shadow-md); max-height: 60vh; overflow-y: auto; }
#glossary-search-results.is-visible { display: block; }
#glossary-search-results a { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent); }
#glossary-search-results a:last-child { border-bottom: 0; }
#glossary-search-results a:hover { background: var(--secondary); }
#glossary-search-results .cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
#glossary-search-results .term { font-family: var(--font-serif); font-size: 15px; font-weight: 700; color: var(--foreground); }
#glossary-search-results .def { font-size: 13px; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#glossary-search-empty { padding: 16px; font-size: 14px; color: var(--muted-foreground); }

.category-chips-row { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.chip-light { border-radius: 999px; border: 1px solid var(--border); background: var(--card); padding: 6px 16px; font-size: 14px; font-weight: 600; color: var(--foreground); transition: border-color .2s ease; }
.chip-light:hover { border-color: var(--primary); }
.chip-light.is-active { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }

.glossary-highlights { max-width: var(--container-max); margin: 0 auto; padding: 0 24px 56px; display: grid; gap: 20px; }
@media (min-width: 768px) { .glossary-highlights { grid-template-columns: repeat(3, 1fr); } }
.highlight-panel { position: relative; overflow: hidden; border-radius: var(--radius-2xl); border: 1px solid color-mix(in oklab, var(--border) 70%, transparent); background: linear-gradient(180deg, var(--secondary), transparent); padding: 24px; }
.highlight-panel-head { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--foreground); }
.highlight-panel-head .ic { display: grid; place-items: center; height: 32px; width: 32px; border-radius: 999px; background: var(--background); color: var(--accent); box-shadow: var(--shadow-sm); }
.highlight-panel ul { display: flex; flex-direction: column; gap: 8px; }
.highlight-panel a { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: var(--radius-md); border: 1px solid transparent; background: color-mix(in oklab, var(--background) 70%, transparent); padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--foreground); }
.highlight-panel a:hover { border-color: var(--primary); color: var(--primary); }
.highlight-panel a span.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.az-nav-sticky { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent); background: oklch(0.993 0.003 250 / .95); backdrop-filter: blur(8px); }
.az-nav-list { max-width: var(--container-max); margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.az-letter { display: inline-flex; height: 36px; min-width: 36px; align-items: center; justify-content: center; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--card); padding: 0 8px; font-size: 14px; font-weight: 700; color: var(--foreground); }
.az-letter:hover { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.az-letter.is-disabled { border-color: color-mix(in oklab, var(--border) 50%, transparent); color: color-mix(in oklab, var(--muted-foreground) 60%, transparent); font-weight: 600; pointer-events: none; }

.glossary-main-grid { max-width: var(--container-max); margin: 0 auto; padding: 56px 24px; display: grid; gap: 40px; }
@media (min-width: 1024px) { .glossary-main-grid { grid-template-columns: 220px minmax(0,1fr); } }
.glossary-aside { display: none; }
@media (min-width: 1024px) { .glossary-aside { display: block; } }
.glossary-aside-sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
.glossary-aside h3 { margin-bottom: 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--muted-foreground); }
.az-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.az-grid a, .az-grid span { display: flex; height: 32px; align-items: center; justify-content: center; border-radius: var(--radius-md); border: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--foreground); }
.az-grid a:hover { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.az-grid span { border-color: color-mix(in oklab, var(--border) 40%, transparent); color: color-mix(in oklab, var(--muted-foreground) 60%, transparent); font-weight: 600; }
.cat-filter-list { display: flex; flex-direction: column; gap: 6px; }
.cat-filter-list button, .cat-filter-list a { display: block; width: 100%; border-radius: var(--radius-md); padding: 6px 12px; text-align: left; font-size: 14px; font-weight: 600; color: var(--foreground); background: transparent; border: 0; }
.cat-filter-list a:hover { background: var(--secondary); }

.glossary-letter-section { margin-bottom: 56px; scroll-margin-top: 96px; }
.glossary-letter-head { margin-bottom: 24px; display: flex; align-items: baseline; gap: 16px; border-bottom: 2px solid color-mix(in oklab, var(--accent) 40%, transparent); padding-bottom: 8px; }
.glossary-letter-head h2 { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 900; color: var(--primary); }
.glossary-letter-head .count { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--muted-foreground); }
.glossary-term-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .glossary-term-grid { grid-template-columns: 1fr 1fr; } }
.glossary-term-card { display: block; height: 100%; border-radius: var(--radius-lg); border: 1px solid color-mix(in oklab, var(--border) 70%, transparent); background: var(--card); padding: 20px; transition: border-color .2s ease, box-shadow .2s ease; }
.glossary-term-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.glossary-term-card-head { margin-bottom: 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.glossary-term-card-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.trending-pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: color-mix(in oklab, var(--accent) 15%, transparent); padding: 2px 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.glossary-term-card-title { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--foreground); }
.glossary-term-card:hover .glossary-term-card-title { color: var(--primary); }
.glossary-term-card-def { margin-top: 8px; font-size: 14px; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.glossary-footer-bar { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-radius: var(--radius-lg); border: 1px solid color-mix(in oklab, var(--border) 60%, transparent); background: color-mix(in oklab, var(--secondary) 40%, transparent); padding: 20px; font-size: 14px; color: var(--muted-foreground); }
.glossary-footer-bar span { display: inline-flex; align-items: center; gap: 8px; }

/* ============================= GLOSSARY TERM PAGE ============================= */
.term-header { border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent); background: linear-gradient(to bottom, color-mix(in oklab, var(--secondary) 50%, transparent), var(--background)); }
.term-header-inner { max-width: 56rem; margin: 0 auto; padding: 56px 24px; }
.term-crumb { margin-bottom: 16px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--muted-foreground); }
.term-crumb a:hover { color: var(--primary); }
.term-crumb .sep { margin: 0 8px; color: color-mix(in oklab, var(--muted-foreground) 60%, transparent); }
.term-crumb .current { color: var(--foreground); }
.term-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; }
.term-cat-badge { border-radius: 999px; background: color-mix(in oklab, var(--accent) 15%, transparent); padding: 4px 10px; color: var(--accent); }
.term-trending-badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: color-mix(in oklab, var(--primary) 10%, transparent); padding: 4px 10px; color: var(--primary); }
.term-title { margin-top: 16px; font-family: var(--font-serif); font-size: 2.2rem; font-weight: 900; line-height: 1.15; color: var(--foreground); }
@media (min-width: 768px) { .term-title { font-size: 3.5rem; } }
.term-synonyms { margin-top: 12px; font-size: 14px; color: var(--muted-foreground); }
.term-synonyms strong { color: var(--foreground); font-weight: 600; }
.term-meta-row { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 8px; font-size: 12px; color: var(--muted-foreground); }
.term-meta-row .item { display: inline-flex; align-items: center; gap: 6px; }
.term-meta-row img { height: 24px; width: 24px; border-radius: 999px; object-fit: cover; }
.term-meta-row .author-name { font-weight: 600; color: var(--foreground); }

.term-layout { max-width: 72rem; margin: 0 auto; padding: 56px 24px; display: grid; gap: 40px; }
@media (min-width: 1024px) { .term-layout { grid-template-columns: minmax(0,1fr) 260px; } }
.term-main { min-width: 0; }
.term-section { margin-top: 48px; }
.term-section:first-child { margin-top: 0; }
.term-section h2 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 900; color: var(--foreground); margin-bottom: 12px; }
.term-section h2.with-icon { display: inline-flex; align-items: center; gap: 8px; }
.definition-box { border-radius: var(--radius-xl); border-left: 4px solid var(--accent); background: var(--card); padding: 24px; box-shadow: var(--shadow-md); }
.definition-box p { font-family: var(--font-serif); font-size: 20px; line-height: 1.6; color: var(--foreground); }
.tldr-box { border-radius: var(--radius-xl); border: 1px solid color-mix(in oklab, var(--border) 70%, transparent); background: color-mix(in oklab, var(--secondary) 40%, transparent); padding: 24px; }
.tldr-box h2 { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--primary); margin-bottom: 12px; }
.check-list { display: flex; flex-direction: column; gap: 8px; }
.check-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 16px; color: var(--foreground); }
.check-list svg { margin-top: 4px; flex-shrink: 0; color: var(--accent); }
.box-plain { border-radius: var(--radius-lg); border: 1px solid color-mix(in oklab, var(--border) 70%, transparent); background: var(--card); padding: 24px; }
.box-plain p { font-size: 16px; line-height: 1.7; color: var(--foreground); }
.box-primary { border-radius: var(--radius-lg); border-left: 4px solid var(--primary); background: color-mix(in oklab, var(--primary) 5%, transparent); padding: 24px; }
.box-primary p { font-size: 16px; line-height: 1.7; color: var(--foreground); }
.steps-list { display: flex; flex-direction: column; gap: 16px; }
.step-item { display: flex; gap: 16px; border-radius: var(--radius-lg); border: 1px solid color-mix(in oklab, var(--border) 70%, transparent); background: var(--card); padding: 20px; }
.step-num { display: grid; flex-shrink: 0; place-items: center; height: 36px; width: 36px; border-radius: 999px; background: var(--primary); font-family: var(--font-serif); font-size: 18px; font-weight: 900; color: var(--primary-foreground); }
.step-item h3 { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--foreground); }
.step-item p { margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.pros-cons-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .pros-cons-grid { grid-template-columns: 1fr 1fr; } }
.pros-box, .cons-box { border-radius: var(--radius-lg); padding: 20px; }
.pros-box { border: 1px solid color-mix(in oklab, #10b981 20%, transparent); background: color-mix(in oklab, #10b981 5%, transparent); }
.cons-box { border: 1px solid color-mix(in oklab, #f43f5e 20%, transparent); background: color-mix(in oklab, #f43f5e 5%, transparent); }
.pros-box h3, .cons-box h3 { margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pros-box h3 { color: #047857; }
.cons-box h3 { color: #be123c; }
.pros-box ul, .cons-box ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--foreground); }
.pros-box li, .cons-box li { display: flex; align-items: flex-start; gap: 8px; }
.pros-box svg { color: #059669; margin-top: 2px; flex-shrink: 0; }
.cons-box svg { color: #e11d48; margin-top: 2px; flex-shrink: 0; }
.mistakes-box { border-radius: var(--radius-lg); border-left: 4px solid #f59e0b; background: color-mix(in oklab, #f59e0b 5%, transparent); padding: 24px; }
.mistakes-box ul { display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--foreground); }
.mistakes-box li { display: flex; align-items: flex-start; gap: 8px; }
.mistakes-box svg { margin-top: 4px; flex-shrink: 0; color: #d97706; }

.faq-accordion { overflow: hidden; border-radius: var(--radius-lg); border: 1px solid color-mix(in oklab, var(--border) 70%, transparent); background: var(--card); }
.faq-item + .faq-item { border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent); }
.faq-item summary { display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px; text-align: left; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-family: var(--font-serif); font-size: 16px; font-weight: 700; color: var(--foreground); }
.faq-item summary .chev { margin-top: 2px; flex-shrink: 0; color: var(--muted-foreground); transition: transform .2s ease; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-a { padding: 0 20px 20px; margin-top: -4px; font-size: 14px; line-height: 1.7; color: var(--muted-foreground); }

.deepdive-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .deepdive-grid { grid-template-columns: 1fr 1fr; } }
.deepdive-card { display: block; border-radius: var(--radius-lg); border: 1px solid color-mix(in oklab, var(--border) 70%, transparent); background: var(--card); padding: 20px; transition: border-color .2s ease, box-shadow .2s ease; }
.deepdive-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.deepdive-card .kicker { margin-bottom: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.deepdive-card .title { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--foreground); }
.deepdive-card:hover .title { color: var(--primary); }
.deepdive-card p { margin-top: 8px; font-size: 14px; color: var(--muted-foreground); }

.refs-list { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted-foreground); }
.refs-list a { color: var(--primary); }
.refs-list a:hover { text-decoration: underline; }

.related-terms-list { display: flex; flex-wrap: wrap; gap: 8px; }
.related-terms-list a { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--border); background: var(--card); padding: 6px 16px; font-size: 14px; font-weight: 600; color: var(--foreground); }
.related-terms-list a:hover { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }

.term-aside { display: none; }
@media (min-width: 1024px) { .term-aside { display: block; } }
.term-aside-sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
.toc-box { border-radius: var(--radius-lg); border: 1px solid color-mix(in oklab, var(--border) 70%, transparent); background: var(--card); padding: 20px; }
.toc-box h3 { margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--muted-foreground); }
.toc-box ul { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.toc-box a { color: var(--foreground); }
.toc-box a:hover { color: var(--primary); }
.written-by-box { border-radius: var(--radius-lg); border: 1px solid color-mix(in oklab, var(--border) 70%, transparent); background: color-mix(in oklab, var(--secondary) 50%, transparent); padding: 20px; font-size: 14px; }
.written-by-box .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--muted-foreground); }
.written-by-box .who { margin-top: 8px; display: flex; align-items: center; gap: 12px; }
.written-by-box img { height: 44px; width: 44px; border-radius: 999px; object-fit: cover; }
.written-by-box .who-name { font-family: var(--font-serif); font-size: 16px; font-weight: 700; color: var(--foreground); }
.written-by-box .who-role { font-size: 12px; color: var(--muted-foreground); }
.term-back-link { margin-top: 40px; text-align: center; }
.term-back-link a { font-size: 14px; font-weight: 600; color: var(--primary); }
.term-back-link a:hover { text-decoration: underline; }

/* ============================= ABOUT / CONTACT / LEGAL PAGES ============================= */
.page-hero { border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent); background: color-mix(in oklab, var(--secondary) 40%, transparent); }
.page-hero-inner { max-width: 56rem; margin: 0 auto; padding: 64px 24px; text-align: center; }
.page-hero h1 { margin-top: 8px; font-family: var(--font-serif); font-size: 2.25rem; font-weight: 900; color: var(--foreground); }
@media (min-width: 768px) { .page-hero h1 { font-size: 3rem; } }
.page-hero p.lead { margin: 12px auto 0; max-width: 42rem; font-size: 16px; color: var(--muted-foreground); }
.page-hero p.small { margin-top: 12px; font-size: 12px; color: var(--muted-foreground); }

.about-body { max-width: 56rem; margin: 0 auto; padding: 56px 24px; }
.about-block { margin-bottom: 56px; }
.about-block .prose { font-size: 16px; margin-top: 20px; }
.about-info-grid { margin-top: 32px; display: grid; gap: 16px; }
@media (min-width: 640px) { .about-info-grid { grid-template-columns: 1fr 1fr; } }
.about-info-card { border-radius: var(--radius-xl); border: 1px solid color-mix(in oklab, var(--border) 60%, transparent); background: color-mix(in oklab, var(--secondary) 40%, transparent); padding: 20px; }
.about-info-card h3 { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--foreground); }
.about-info-card p { margin-top: 8px; font-size: 14px; color: var(--muted-foreground); }
.about-author-row { display: flex; flex-direction: column; align-items: center; gap: 32px; }
@media (min-width: 768px) { .about-author-row { flex-direction: row; align-items: flex-start; } }
.about-author-row img { height: 224px; width: 224px; flex-shrink: 0; border-radius: 999px; object-fit: cover; box-shadow: var(--shadow-md); }
@media (min-width: 768px) { .about-author-row img { height: 256px; width: 256px; } }
.about-author-row .prose { font-size: 16px; }

.contact-body { max-width: 64rem; margin: 0 auto; padding: 56px 24px; display: grid; gap: 40px; }
@media (min-width: 768px) { .contact-body { grid-template-columns: 1fr 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-info-item .ic { display: grid; flex-shrink: 0; place-items: center; height: 44px; width: 44px; border-radius: 999px; background: color-mix(in oklab, var(--accent) 15%, transparent); color: var(--accent); }
.contact-info-item h2 { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--foreground); }
.contact-info-item p, .contact-info-item a { margin-top: 2px; font-size: 14px; color: var(--muted-foreground); }
.contact-info-item a.email-link { color: var(--primary); }
.contact-info-item a.email-link:hover { text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 16px; border-radius: var(--radius-xl); border: 1px solid color-mix(in oklab, var(--border) 60%, transparent); background: var(--card); padding: 24px; }
.form-group label { margin-bottom: 4px; display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); }
.form-group input, .form-group textarea { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--background); padding: 10px 12px; font-size: 14px; color: var(--foreground); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .btn { width: 100%; }

.legal-body { max-width: 48rem; margin: 0 auto; padding: 56px 24px; }
.legal-body .prose h2 { border-left: 4px solid var(--accent); padding-left: 16px; margin-left: -20px; padding: 0 0 0 16px; border-bottom: 0; }
.legal-body .prose h2::after { display: none; }

.not-found-wrap { display: flex; min-height: 60vh; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.not-found-wrap h1 { font-size: 4.5rem; font-weight: 900; color: var(--foreground); }
.not-found-wrap h2 { margin-top: 16px; font-size: 20px; font-weight: 700; color: var(--foreground); }
.not-found-wrap p { margin-top: 8px; font-size: 14px; color: var(--muted-foreground); }
.not-found-wrap .btn { margin-top: 24px; }

/* ============================= FOOTER ============================= */
.site-footer { margin-top: 96px; color: var(--primary-foreground); }
.footer-grid { max-width: var(--container-max); margin: 0 auto; padding: 64px 24px; display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-logo img { height: 48px; width: auto; }
.footer-tagline { margin-top: 20px; max-width: 22rem; font-size: 14px; line-height: 1.6; color: oklch(0.985 0.004 250 / .75); }
.footer-badge { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid oklch(1 0 0 / .15); background: oklch(1 0 0 / .05); padding: 6px 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--gold); }
.footer-heading { margin-bottom: 16px; border-bottom: 1px solid oklch(1 0 0 / .1); padding-bottom: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; color: var(--gold); }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; color: oklch(0.985 0.004 250 / .8); }
.footer-links a:hover { color: var(--gold); }
.footer-links a .stub { height: 1px; width: 12px; background: oklch(1 0 0 / .25); transition: width .2s ease, background-color .2s ease; }
.footer-links a:hover .stub { width: 20px; background: var(--gold); }
.footer-contact-list { display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: oklch(0.985 0.004 250 / .85); }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact-list .ic { display: grid; flex-shrink: 0; place-items: center; height: 28px; width: 28px; border-radius: 999px; border: 1px solid oklch(1 0 0 / .15); background: oklch(1 0 0 / .05); }
.footer-contact-list .ic svg { color: var(--gold); }
.footer-newsletter p { margin-bottom: 12px; font-size: 14px; color: oklch(0.985 0.004 250 / .75); }
.footer-follow { margin-top: 24px; }
.footer-follow h4 { margin-bottom: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; color: oklch(0.985 0.004 250 / .8); }
.footer-bottom { border-top: 1px solid oklch(1 0 0 / .1); border-bottom: 1px solid oklch(0 0 0 / .25); }
.footer-bottom-inner { max-width: var(--container-max); margin: 0 auto; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: oklch(0.985 0.004 250 / .75); }
@media (min-width: 768px) { .footer-bottom-inner { flex-direction: row; } }
.footer-bottom-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; }
.footer-bottom-nav a:hover { color: var(--gold); }

/* ============================= COOKIE CONSENT ============================= */
.cookie-banner { position: fixed; inset: auto 0 0 0; z-index: 50; display: none; border-top: 1px solid var(--border); background: oklch(1 0 0 / .98); padding: 16px; box-shadow: var(--shadow-lg); backdrop-filter: blur(20px); }
.cookie-banner.is-visible { display: block; }
.cookie-banner-inner { max-width: var(--container-max); margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .cookie-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.cookie-banner p { font-size: 13px; line-height: 1.6; color: var(--foreground); }
.cookie-banner p a { font-weight: 600; color: var(--primary); text-decoration: underline; }
.cookie-actions { display: flex; flex-shrink: 0; gap: 8px; }
.cookie-actions button { min-height: 44px; border-radius: var(--radius-md); padding: 0 16px; font-size: 13px; font-weight: 600; }
.cookie-decline { border: 1px solid var(--border); background: var(--background); color: var(--foreground); }
.cookie-decline:hover { border-color: color-mix(in oklab, var(--primary) 40%, var(--border)); }
.cookie-accept { border: 0; background: var(--primary); color: var(--primary-foreground); font-weight: 700; }
.cookie-accept:hover { opacity: .9; }

/* ============================= SEARCH OVERLAY ============================= */
.search-overlay { position: fixed; inset: 0; z-index: 50; display: none; background: oklch(0 0 0 / .55); padding: 16px; backdrop-filter: blur(4px); }
.search-overlay.is-open { display: block; }
.search-modal { margin: 64px auto 0; max-width: 42rem; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-lg); }
.search-input-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); padding: 12px; }
.search-input-row input { min-height: 44px; width: 100%; background: transparent; border: 0; padding: 0 8px; font-size: 14px; color: var(--foreground); }
.search-input-row input:focus { outline: none; }
.search-close-btn { display: grid; flex-shrink: 0; place-items: center; height: 44px; width: 44px; border-radius: 999px; border: 1px solid var(--border); color: var(--foreground); background: transparent; }
.search-results-area { max-height: 60vh; overflow-y: auto; padding: 12px; }
.search-results-area .hint, .search-results-area .empty { padding: 12px; font-size: 14px; color: var(--muted-foreground); }
.search-group-label { padding: 8px 8px 4px; }
.search-results-area ul { margin-bottom: 12px; }
.search-results-area li a { display: block; border-radius: var(--radius-md); padding: 10px 8px; font-size: 13.5px; font-weight: 600; color: var(--foreground); }
.search-results-area li a:hover { background: var(--secondary); }

/* ============================= RESPONSIVE: DESKTOP NAV ============================= */
@media (min-width: 768px) { .header-topbar { display: block; } }
@media (min-width: 1024px) { .main-nav { display: flex; } .menu-btn { display: none; } .header-spacer { height: 114px; } }
@media (max-width: 1023px) { .mobile-menu-only { display: block; } }

/* ============================= PRINT ============================= */
@media print {
  .site-header, .site-footer, .cookie-banner, .search-overlay, .sidebar, .az-nav-sticky { display: none !important; }
}
