/* =========================================================================
   Warm Flow Lab - theme.css
   Premium design system for a full custom classic PHP theme.
   Token-driven, WCAG-AA, compositor-only animations, zero-CLS.

   Brand seeds:
     Primary   #0F4C5C  (deep teal - water/tank, trust)
     Secondary #0A3540  (near-black teal - header/footer)
     Accent    #E4572E  (ember orange - heat, CTAs)
   Fonts: Poppins (headings) / Inter (body) - enqueued in PHP, NOT @imported here.

   Contents
     1.  Design tokens (:root)
     2.  Base / reset
     3.  Layout primitives
     4.  Buttons
     5.  Breadcrumbs
     6.  Tags / pills / badges
     7.  Pagination
     8.  Header / primary nav (FIX 1 - single line, no overflow)
     9.  Animated hero (FIX 2a)
     10. Stats strip (count-up)
     11. Category cards
     12. Featured block
     13. Trust / E-E-A-T band
     14. Trending / popular
     15. Testimonials
     16. Newsletter
     17. FAQ accordion
     18. Post card + card grid
     19. Archive / category hero (FIX 3)
     20. Author box (FIX 4)
     21. Article / entry-content typography
     22. Table of contents
     23. Single layout
     24. Footer
     25. Forms
     26. Scroll-reveal + count-up
     27. Ad slots (zero-CLS reserved space)
     28. Responsive breakpoints
     29. Reduced motion
     30. Print
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* --- Brand color seeds (design seed: Warm Flow Lab, modern tech clean) --- */
  --brand-primary:   #1E3A8A; /* indigo, primary + links */
  --brand-secondary: #0B1324; /* near-black slate, header/footer depth */
  --brand-accent:    #3B82F6; /* vivid blue, the one accent (CTAs, highlights) */

  /* --- Primary scale (tint/shade ramp derived from brand primary) --- */
  --primary-50:  color-mix(in srgb, var(--brand-primary) 8%,  #ffffff);
  --primary-100: color-mix(in srgb, var(--brand-primary) 16%, #ffffff);
  --primary-200: color-mix(in srgb, var(--brand-primary) 32%, #ffffff);
  --primary-300: color-mix(in srgb, var(--brand-primary) 50%, #ffffff);
  --primary-400: color-mix(in srgb, var(--brand-primary) 72%, #ffffff);
  --primary-500: var(--brand-primary);
  --primary-600: color-mix(in srgb, var(--brand-primary) 82%, #000000);
  --primary-700: color-mix(in srgb, var(--brand-primary) 66%, #000000);
  --primary-800: color-mix(in srgb, var(--brand-primary) 50%, #000000);
  --primary-900: color-mix(in srgb, var(--brand-primary) 34%, #000000);

  /* --- Secondary / accent --- */
  --secondary-400: color-mix(in srgb, var(--brand-secondary) 72%, #ffffff);
  --secondary-500: var(--brand-secondary);
  --secondary-600: color-mix(in srgb, var(--brand-secondary) 82%, #000000);
  --accent-50:     color-mix(in srgb, var(--brand-accent) 8%,  #ffffff);
  --accent-100:    color-mix(in srgb, var(--brand-accent) 15%, #ffffff);
  --accent-200:    color-mix(in srgb, var(--brand-accent) 28%, #ffffff);
  --accent-300:    color-mix(in srgb, var(--brand-accent) 48%, #ffffff);
  --accent-400:    color-mix(in srgb, var(--brand-accent) 78%, #ffffff);
  --accent-500:    var(--brand-accent);
  --accent-600:    color-mix(in srgb, var(--brand-accent) 82%, #000000);
  /* Darker accent for small text on white (AA-safe; raw #E4572E on #fff is ~3.6:1) */
  --accent-ink:    color-mix(in srgb, var(--brand-accent) 62%, #000000);

  /* --- Neutrals (WCAG-AA text on white >= 700) --- */
  --neutral-0:   #ffffff;
  --neutral-50:  #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e6ebf1;
  --neutral-300: #d3dbe4;
  --neutral-400: #9aa7b6;
  --neutral-500: #6b7787;
  --neutral-600: #4b5565;
  --neutral-700: #333c49;
  --neutral-800: #1f2732;
  --neutral-900: #131820;
  --neutral-950: #0b0f15;

  /* --- Cool clean surfaces (design seed: modern tech) --- */
  --paper:         #FBFCFE; /* crisp cool off-white page */
  --paper-alt:     #F1F5F9; /* cool light band (slate-100) */
  --bg:            var(--paper);
  --bg-alt:        var(--paper-alt);
  --bg-elevated:   #ffffff;
  --surface-ink:   var(--neutral-950);
  --text:          var(--neutral-800);
  --text-soft:     var(--neutral-600);
  --text-muted:    var(--neutral-500);
  --text-invert:   var(--neutral-0);
  --border:        var(--neutral-200);
  --border-strong: var(--neutral-300);
  --link:          var(--primary-700);
  --link-hover:    var(--primary-900);
  --focus-ring:    color-mix(in srgb, var(--brand-primary) 55%, #ffffff);

  --success: #1a7f4b;
  --warning: #b4690e;
  --danger:  #b42318;

  /* --- Signature gradients --- */
  --grad-brand: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 55%, var(--accent-500) 100%);
  --grad-ink:   linear-gradient(160deg, var(--neutral-950) 0%, var(--primary-900) 100%);
  --grad-text:  linear-gradient(92deg, var(--primary-500), var(--accent-500));
  --grad-sheen: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0));

  /* --- Fluid type scale (clamp: min / preferred / max) --- */
  --step--2: clamp(0.72rem, 0.70rem + 0.10vw, 0.79rem);
  --step--1: clamp(0.84rem, 0.80rem + 0.18vw, 0.94rem);
  --step-0:  clamp(1.00rem, 0.95rem + 0.24vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.10rem + 0.45vw, 1.45rem);
  --step-2:  clamp(1.44rem, 1.26rem + 0.80vw, 1.90rem);
  --step-3:  clamp(1.73rem, 1.44rem + 1.30vw, 2.55rem);
  --step-4:  clamp(2.07rem, 1.62rem + 2.05vw, 3.40rem);
  --step-5:  clamp(2.49rem, 1.80rem + 3.10vw, 4.55rem);
  --step-6:  clamp(2.99rem, 1.95rem + 4.60vw, 6.00rem);

  /* --- Font stacks (Space Grotesk geometric headings / Inter body) --- */
  --font-heading: "Space Grotesk", ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --leading-tight: 1.12;
  --leading-snug:  1.32;
  --leading-body:  1.68;
  --tracking-tight: -0.02em;
  --tracking-wide:  0.12em;

  /* --- Spacing scale (8px base, fluid at the top) --- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: clamp(3rem, 2rem + 4vw, 5rem);
  --space-3xl: clamp(4rem, 2.5rem + 6vw, 7.5rem);

  /* --- Radii --- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* --- Shadows (soft, layered) --- */
  --shadow-xs: 0 1px 2px rgba(16,24,40,.06);
  --shadow-sm: 0 2px 6px rgba(16,24,40,.07), 0 1px 2px rgba(16,24,40,.05);
  --shadow-md: 0 8px 22px -8px rgba(16,24,40,.18), 0 2px 6px rgba(16,24,40,.06);
  --shadow-lg: 0 22px 48px -16px rgba(16,24,40,.24), 0 6px 14px rgba(16,24,40,.08);
  --shadow-xl: 0 40px 80px -24px rgba(16,24,40,.32);
  --shadow-glow: 0 10px 40px -8px color-mix(in srgb, var(--brand-primary) 45%, transparent);
  --shadow-focus: 0 0 0 3px var(--bg), 0 0 0 6px var(--focus-ring);

  /* --- Layout / container --- */
  --container:        1200px;
  --container-wide:   1360px;
  --container-narrow: 760px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --header-h: 72px;

  /* --- z-index scale --- */
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 100;
  --z-header: 900;
  --z-drawer: 1000;
  --z-overlay: 1100;
  --z-toast: 1200;

  /* --- Motion tokens --- */
  --dur-1: 120ms;
  --dur-2: 220ms;
  --dur-3: 360ms;
  --dur-4: 560ms;
  --dur-5: 820ms;
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --reveal-shift: 26px;
}

/* -------------------------------------------------------------------------
   2. BASE / RESET
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--neutral-900);
  text-wrap: balance;
}

p, ul, ol, blockquote, figure, table { margin: 0; }
p { text-wrap: pretty; }

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color var(--dur-1) var(--ease-out); }
a:hover { color: var(--link-hover); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

::selection { background: color-mix(in srgb, var(--brand-primary) 24%, transparent); color: var(--neutral-900); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-lg) 0; }

/* Accessible focus - visible only for keyboard users */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
:focus:not(:focus-visible) { outline: none; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: var(--z-toast);
  background: var(--neutral-900); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   ------------------------------------------------------------------------- */
.container, .wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide   { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }
.wrap--wide   { max-width: var(--container-wide); }
.wrap--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-3xl); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--grad-ink); color: var(--text-invert); }
.section--tight { padding-block: var(--space-2xl); }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-xl);
}
.section__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-heading); font-size: var(--step--1); font-weight: 700;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--primary-700);
}
.section__eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--grad-brand); border-radius: 2px; }
.section--ink .section__eyebrow { color: var(--accent-400); }
.section__title { font-size: var(--step-3); margin-top: .35rem; }
.section--ink .section__title { color: #fff; }
.section__link {
  font-weight: 700; font-family: var(--font-heading); display: inline-flex; align-items: center; gap: .4rem;
  color: var(--primary-700); text-decoration: none; white-space: nowrap;
}
.section__link svg { transition: transform var(--dur-2) var(--ease-out); }
.section__link:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--primary-600);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-heading); font-weight: 700; font-size: var(--step-0);
  line-height: 1; text-decoration: none; white-space: nowrap;
  padding: .85em 1.5em; min-height: 44px; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              background var(--dur-2) var(--ease-out);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { box-shadow: var(--shadow-glow), var(--shadow-md); }

/* Solid ember-accent CTA - white bold text (>=16px) on the darkened accent,
   contrast verified >= 4.5:1 for large/bold labels. */
.btn--accent { background: var(--accent-600); color: #fff; }
.btn--accent:hover { background: var(--accent-500); }

.btn--ghost {
  background: transparent; color: var(--neutral-900);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--neutral-100); border-color: var(--neutral-400); }
.section--ink .btn--ghost, .hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.section--ink .btn--ghost:hover, .hero .btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn--sm { padding: .6em 1.1em; min-height: 38px; font-size: var(--step--1); }
.btn--lg { padding: 1em 1.9em; font-size: var(--step-1); }
.btn--block { width: 100%; }

/* -------------------------------------------------------------------------
   5. BREADCRUMBS
   ------------------------------------------------------------------------- */
.breadcrumbs { font-size: var(--step--1); color: var(--text-muted); margin: 0; }
.breadcrumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center;
}
.breadcrumbs__item { display: inline-flex; align-items: center; min-width: 0; line-height: 1.5; }
/* Single chevron separator before each item after the first */
.breadcrumbs__item + .breadcrumbs__item::before {
  content: ""; flex: 0 0 auto; width: 5px; height: 5px; margin: 0 .6rem;
  border-right: 1.6px solid var(--neutral-400);
  border-top: 1.6px solid var(--neutral-400);
  transform: rotate(45deg); opacity: .8;
}
.breadcrumbs a {
  display: inline-flex; align-items: center; gap: .32rem;
  color: var(--text-muted); text-decoration: none; font-weight: 600;
  border-radius: var(--radius-xs);
  transition: color var(--dur-1) var(--ease-out);
}
.breadcrumbs a:hover { color: var(--accent-ink); }
.breadcrumbs a:focus-visible { outline: 2px solid var(--accent-400); outline-offset: 3px; }
.breadcrumbs__ico { flex: 0 0 auto; }
.breadcrumbs__current {
  color: var(--text); font-weight: 700;
  max-width: min(52ch, 48vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Dark archive-hero variant */
.archive-hero .breadcrumbs, .archive-hero .breadcrumbs a { color: rgba(255,255,255,.75); }
.archive-hero .breadcrumbs a:hover { color: #fff; }
.archive-hero .breadcrumbs__current { color: #fff; }
.archive-hero .breadcrumbs__item + .breadcrumbs__item::before { border-color: rgba(255,255,255,.55); }
/* Mobile: collapse Home to icon only */
@media (max-width: 460px) {
  .breadcrumbs__item--home .breadcrumbs__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .breadcrumbs__current { max-width: 62vw; }
}

/* -------------------------------------------------------------------------
   6. TAGS / PILLS / BADGES
   ------------------------------------------------------------------------- */
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.tag:not(body) {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: var(--step--1); font-weight: 600; line-height: 1;
  padding: .5em .9em; border-radius: var(--radius-pill);
  background: var(--neutral-100); color: var(--neutral-700);
  text-decoration: none; border: 1px solid var(--border);
  transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.tag:not(body)::before { content: "#"; color: var(--primary-300); }
.tag:not(body):hover { background: var(--primary-50); color: var(--primary-800); border-color: var(--primary-200); }
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-heading); font-size: var(--step--2); font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .4em .75em; border-radius: var(--radius-pill);
  background: var(--grad-brand); color: #fff;
}
.badge--accent { background: var(--accent-600); }

/* -------------------------------------------------------------------------
   7. PAGINATION
   ------------------------------------------------------------------------- */
.pagination { margin-top: var(--space-2xl); }
.pagination .nav-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem;
}
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 .5rem;
  border-radius: var(--radius-md); border: 1px solid var(--border);
  font-family: var(--font-heading); font-weight: 700; text-decoration: none;
  color: var(--neutral-700); background: var(--bg);
  transition: all var(--dur-1) var(--ease-out);
}
.pagination .page-numbers:hover { border-color: var(--primary-400); color: var(--primary-800); transform: translateY(-1px); }
.pagination .page-numbers.current { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.pagination .page-numbers.dots { border: 0; min-width: auto; }

/* -------------------------------------------------------------------------
   8. HEADER / PRIMARY NAV  (FIX 1 - single line, no overflow, no wrap)
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              backdrop-filter var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out);
}
.site-header--scrolled {
  /* Glassmorphism on scroll */
  background: color-mix(in srgb, #ffffff 68%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 8px 28px -14px rgba(20,30,50,.30);
  border-bottom-color: color-mix(in srgb, var(--brand-primary) 12%, transparent);
}

.site-header__inner {
  display: flex; align-items: center; gap: clamp(.75rem, 2vw, 2rem);
  min-height: var(--header-h);
  max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter);
}

/* Brand / logo - fixed, never shrinks below its content */
.brand { display: inline-flex; align-items: center; gap: .6rem; flex: 0 0 auto; text-decoration: none; }
.brand__logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mark {
  width: 38px; height: 38px; flex: 0 0 auto; display: block; line-height: 0;
  filter: drop-shadow(0 5px 12px color-mix(in srgb, var(--accent-500) 45%, transparent));
  transition: transform var(--dur-2) var(--ease-out);
}
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand__logo:hover .brand__mark { transform: rotate(-5deg) scale(1.06); }
.brand__text { font-family: var(--font-heading); font-weight: 500; font-size: 1.32rem; letter-spacing: -.02em; color: var(--brand-primary); line-height: 1; white-space: nowrap; }
.brand__text-strong { font-weight: 700; }
.site-header--scrolled .brand__text { color: var(--brand-primary); }
.site-footer .brand__text { color: #fff; }
.brand__logo svg, .brand__logo img { display: block; }
.brand:focus-visible, .brand__logo:focus-visible { outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .brand__logo:hover .brand__mark { transform: none; } }

/* Primary nav - the anti-overflow engine.
   flex + nowrap + short labels => single line, ALWAYS. */
.primary-nav { margin-left: auto; min-width: 0; }
.primary-nav__list {
  display: flex;
  flex-wrap: nowrap;            /* NEVER wrap to a second line */
  white-space: nowrap;          /* labels never break internally */
  align-items: center;
  gap: clamp(.25rem, 1.1vw, 1.1rem); /* condensed but comfortable - fits ~9 items */
  list-style: none; margin: 0; padding: 0;
}
.primary-nav__item { flex: 0 0 auto; }
.primary-nav__link {
  position: relative; display: inline-flex; align-items: center;
  padding: .55rem .6rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: var(--step--1);
  letter-spacing: .005em; color: var(--neutral-700); text-decoration: none;
  white-space: nowrap;          /* redundant safety: never wrap a label */
  transition: color var(--dur-1) var(--ease-out);
}
.primary-nav__link::after {
  content: ""; position: absolute; left: .55rem; right: .55rem; bottom: .28rem;
  height: 2px; border-radius: 2px; background: var(--grad-brand);
  transform: scaleX(0); transform-origin: left; opacity: 0;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out);
}
.primary-nav__link:hover { color: var(--primary-800); }
.primary-nav__link:hover::after,
.primary-nav__item.is-active > .primary-nav__link::after,
.primary-nav__link.is-active::after { transform: scaleX(1); opacity: 1; }
.primary-nav__item.is-active > .primary-nav__link,
.primary-nav__link.is-active { color: var(--primary-800); }

/* Search affordance at the far right */
.nav-search {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-pill);
  color: var(--neutral-700); background: var(--neutral-100);
  border: 1px solid var(--border); margin-left: .5rem;
  transition: background var(--dur-1), color var(--dur-1), transform var(--dur-1);
}
.nav-search:hover { background: var(--primary-50); color: var(--primary-800); transform: scale(1.05); }
.nav-search svg { width: 18px; height: 18px; }

.header-actions { display: inline-flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
/* Menu toggle (pill: animated icon + label), hidden on desktop */
.nav-toggle {
  display: none; flex: 0 0 auto; align-items: center; gap: .55rem;
  height: 42px; padding: 0 .95rem; cursor: pointer;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--bg-elevated);
  color: var(--brand-primary);
  transition: background var(--dur-1) var(--ease-out), border-color var(--dur-1), box-shadow var(--dur-1);
}
.nav-toggle:hover { background: var(--primary-50); border-color: var(--primary-200); box-shadow: 0 8px 20px -10px rgba(30,58,138,.45); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent-400); outline-offset: 2px; }
.nav-toggle__label { font-family: var(--font-heading); font-weight: 600; font-size: .92rem; letter-spacing: .01em; color: var(--brand-primary); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--neutral-800); transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle__bars::after  { position: absolute; top:  6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* Slide-down search panel: give it vertical breathing room */
.header-search {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 18px 34px -24px rgba(20,30,50,.55);
  padding-block: clamp(1.2rem, 3vw, 2.1rem);
  animation: hdrSearchIn var(--dur-3) var(--ease-out);
}
@keyframes hdrSearchIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.header-search .wrap { display: flex; }
.header-search .search-form { flex: 1; max-width: 760px; margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { .header-search { animation: none; } }

/* Mobile drawer - premium off-canvas menu */
.mobile-drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  visibility: hidden; transition: visibility 0s linear var(--dur-3);
}
.mobile-drawer--open { visibility: visible; transition: visibility 0s; }
.mobile-drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(9,15,28,.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity var(--dur-3) var(--ease-out);
}
.mobile-drawer--open .mobile-drawer__backdrop { opacity: 1; }
.mobile-drawer__panel {
  position: absolute; inset: 0 0 0 auto;
  width: min(88vw, 380px);
  display: flex; flex-direction: column;
  background: var(--bg-elevated);
  box-shadow: -24px 0 64px -24px rgba(9,15,28,.55);
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  padding: 1.1rem 1.25rem 1.4rem;
  transform: translateX(100%);
  transition: transform var(--dur-3) var(--ease-out);
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-drawer--open .mobile-drawer__panel { transform: translateX(0); }

/* Head: brand + close */
.mobile-drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-bottom: 1rem; margin-bottom: .35rem; border-bottom: 1px solid var(--border);
}
.mobile-drawer__head .brand__mark { width: 32px; height: 32px; }
.mobile-drawer__head .brand__text { font-size: 1.12rem; }
.mobile-drawer__close {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--bg); color: var(--neutral-700);
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1), transform var(--dur-2);
}
.mobile-drawer__close svg { pointer-events: none; }
.mobile-drawer__close:hover { background: var(--primary-50); color: var(--primary-800); transform: rotate(90deg); }
.mobile-drawer__close:focus-visible { outline: 2px solid var(--accent-400); outline-offset: 2px; }

/* Nav links */
.mobile-drawer__list { list-style: none; margin: .25rem 0; padding: 0; display: flex; flex-direction: column; }
.mobile-drawer__list li { border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent); }
.mobile-drawer__list li:last-child { border-bottom: 0; }
.mobile-drawer__list a {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: .92rem .55rem; border-radius: var(--radius-md);
  font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem;
  color: var(--neutral-800); text-decoration: none;
  transition: color var(--dur-1), background var(--dur-1), padding-left var(--dur-1);
}
/* No marker on drawer links (kills the inherited .primary-nav__link::after too) */
.mobile-drawer__list a::after,
.mobile-drawer__list a:hover::after,
.mobile-drawer__list a:focus-visible::after { content: none; }
.mobile-drawer__list a:hover, .mobile-drawer__list a:focus-visible {
  color: var(--primary-800); background: var(--primary-50); padding-left: .95rem;
}
.mobile-drawer__list .current-menu-item > a,
.mobile-drawer__list .current_page_item > a,
.mobile-drawer__list .current-menu-parent > a { color: var(--accent-ink); }
.mobile-drawer__list .current-menu-item > a::before,
.mobile-drawer__list .current_page_item > a::before {
  content: ""; position: absolute; left: -.5rem; top: 50%; transform: translateY(-50%);
  width: 3px; height: 58%; border-radius: 999px; background: var(--grad-brand);
}

/* Search + tagline */
.mobile-drawer__search { margin-top: 1.1rem; }
.mobile-drawer__note {
  margin: auto 0 0; padding-top: 1.25rem;
  color: var(--text-muted); font-size: var(--step--1); line-height: 1.5;
}

/* Staggered entrance for links */
.mobile-drawer--open .mobile-drawer__list li { animation: drawerItemIn var(--dur-3) var(--ease-out) both; }
.mobile-drawer--open .mobile-drawer__list li:nth-child(1) { animation-delay: .04s; }
.mobile-drawer--open .mobile-drawer__list li:nth-child(2) { animation-delay: .08s; }
.mobile-drawer--open .mobile-drawer__list li:nth-child(3) { animation-delay: .12s; }
.mobile-drawer--open .mobile-drawer__list li:nth-child(4) { animation-delay: .16s; }
.mobile-drawer--open .mobile-drawer__list li:nth-child(5) { animation-delay: .2s; }
.mobile-drawer--open .mobile-drawer__list li:nth-child(6) { animation-delay: .24s; }
.mobile-drawer--open .mobile-drawer__list li:nth-child(7) { animation-delay: .28s; }
.mobile-drawer--open .mobile-drawer__list li:nth-child(8) { animation-delay: .32s; }
.mobile-drawer--open .mobile-drawer__list li:nth-child(n+9) { animation-delay: .36s; }
@keyframes drawerItemIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .mobile-drawer__panel, .mobile-drawer__backdrop, .mobile-drawer__close { transition: none; }
  .mobile-drawer--open .mobile-drawer__list li { animation: none; }
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur-2) var(--ease-out); }
body.drawer-open { overflow: hidden; }

/* -------------------------------------------------------------------------
   9. ANIMATED HERO  (FIX 2a)
   All animations are transform / opacity / background-position only (zero CLS).
   ------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: min(92vh, 780px); display: grid; align-items: center;
  color: #fff; padding-block: clamp(4rem, 8vw, 8rem);
}
/* Layer 1: animated mesh gradient */
.hero__bg { position: absolute; inset: 0; z-index: -3; background: var(--grad-ink); }
.hero__mesh {
  position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(42% 46% at 22% 28%, color-mix(in srgb, var(--primary-500) 65%, transparent) 0%, transparent 60%),
    radial-gradient(38% 44% at 82% 22%, color-mix(in srgb, var(--secondary-500) 55%, transparent) 0%, transparent 62%),
    radial-gradient(46% 48% at 68% 84%, color-mix(in srgb, var(--accent-500) 48%, transparent) 0%, transparent 64%);
  background-size: 180% 180%;
  filter: saturate(120%);
  animation: gradientShift 22s var(--ease-in-out) infinite alternate;
}
@keyframes gradientShift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 60%; }
  100% { background-position: 30% 100%; }
}
/* Layer 2: floating blobs */
.hero__blob {
  position: absolute; z-index: -2; border-radius: 50%;
  filter: blur(38px); opacity: .55; mix-blend-mode: screen;
  animation: float 16s var(--ease-in-out) infinite alternate;
}
.hero__blob--1 { width: 34vmax; height: 34vmax; top: -8vmax; left: -6vmax; background: radial-gradient(circle, var(--primary-400), transparent 70%); }
.hero__blob--2 { width: 26vmax; height: 26vmax; bottom: -8vmax; right: -4vmax; background: radial-gradient(circle, var(--accent-500), transparent 70%); animation-delay: -6s; animation-duration: 20s; }
.hero__blob--3 { width: 20vmax; height: 20vmax; top: 40%; right: 24%; background: radial-gradient(circle, var(--secondary-500), transparent 70%); animation-delay: -3s; animation-duration: 24s; }
@keyframes float {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(3vmax,-4vmax,0) scale(1.08); }
  100% { transform: translate3d(-2vmax,3vmax,0) scale(.96); }
}
/* Layer 3: real hero image with Ken-Burns + dark scrim */
.hero__image { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: .32; transform: scale(1.06);
  animation: kenBurns 26s var(--ease-in-out) infinite alternate;
}
.hero__image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,15,21,.28) 0%, rgba(11,15,21,.62) 100%);
}
@keyframes kenBurns {
  0%   { transform: scale(1.06) translate3d(0,0,0); }
  100% { transform: scale(1.16) translate3d(-2%,-2%,0); }
}

/* Hero content */
.hero__inner { position: relative; z-index: 1; max-width: 820px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .9rem; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--font-heading); font-weight: 700; font-size: var(--step--1);
  letter-spacing: .06em; text-transform: uppercase; color: #fff;
  opacity: 0; transform: translateY(12px); animation: heroIn var(--dur-4) var(--ease-out) .05s forwards;
}
.hero__title {
  font-size: var(--step-6); color: #fff; margin: 1rem 0 0;
  letter-spacing: -.03em;
}
/* staggered word entrance - Section 6 wraps words in <span class="hero__word"> */
.hero__word { display: inline-block; opacity: 0; transform: translateY(28px);
  animation: heroIn var(--dur-4) var(--ease-out) forwards; }
.hero__word:nth-child(1){ animation-delay:.12s } .hero__word:nth-child(2){ animation-delay:.20s }
.hero__word:nth-child(3){ animation-delay:.28s } .hero__word:nth-child(4){ animation-delay:.36s }
.hero__word:nth-child(5){ animation-delay:.44s } .hero__word:nth-child(6){ animation-delay:.52s }
.hero__word--grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.hero__subtitle {
  font-size: var(--step-1); color: rgba(255,255,255,.86); max-width: 60ch; margin-top: 1.1rem;
  opacity: 0; transform: translateY(16px); animation: heroIn var(--dur-4) var(--ease-out) .6s forwards;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem;
  opacity: 0; transform: translateY(16px); animation: heroIn var(--dur-4) var(--ease-out) .72s forwards;
}
.hero__search {
  display: flex; align-items: center; gap: .5rem; margin-top: 1.75rem;
  max-width: 520px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius-pill); padding: .35rem .35rem .35rem 1.1rem;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(16px); animation: heroIn var(--dur-4) var(--ease-out) .84s forwards;
}
.hero__search input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: #fff;
  font-size: var(--step-0); padding: .5rem 0;
}
.hero__search input::placeholder { color: rgba(255,255,255,.7); }
.hero__search input:focus { outline: none; }
.hero__search button { flex: 0 0 auto; }
.hero__badges {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.75rem;
  font-size: var(--step--1); color: rgba(255,255,255,.8);
  opacity: 0; animation: heroIn var(--dur-4) var(--ease-out) .96s forwards;
}
.hero__badges span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__badges svg { width: 18px; height: 18px; color: var(--accent-400); }

/* -------------------------------------------------------------------------
   10. STATS STRIP (count-up)
   ------------------------------------------------------------------------- */
.stats-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md); text-align: center;
}
.stat {
  padding: var(--space-lg) var(--space-md); border-radius: var(--radius-lg);
  background: var(--bg-elevated); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat__num {
  font-family: var(--font-heading); font-weight: 800; font-size: var(--step-4); line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: .5rem; color: var(--text-soft); font-size: var(--step--1); font-weight: 600; letter-spacing: .02em; }

/* -------------------------------------------------------------------------
   11. EXPLORE BY TOPIC - category cards
   ------------------------------------------------------------------------- */
.category-grid, .card-grid.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-md); }
/* ============================================================
   Explore by topic, category photo cards (magazine style)
   Bottom-anchored content over gradient scrim, glass arrow chip,
   blue-glow hover lift, gradient border-accent, focus-visible ring.
   ============================================================ */

.topic-grid {
  gap: var(--space-lg);
}

.category-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  color: #fff;
  isolation: isolate;
  background: var(--neutral-900);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 44px -14px rgba(59, 130, 246, .5),
    var(--shadow-lg);
}

/* Gradient border-accent glow, revealed on hover and focus */
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-brand);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
  pointer-events: none;
}

.category-card:hover::after,
.category-card:focus-visible::after {
  opacity: 1;
}

/* Media */
.category-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
}

.category-card__media img,
.category-card .tt-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-4) var(--ease-out);
}

.category-card:hover .tt-cover {
  transform: scale(1.08);
}

/* Scrim: dedicated element for reliable legibility */
.category-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0) 30%,
      rgba(15, 23, 42, .55) 68%,
      rgba(11, 15, 21, .88) 100%
    );
  transition: background var(--dur-2) var(--ease-out);
}

.category-card:hover .category-card__scrim {
  background:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0) 24%,
      rgba(15, 23, 42, .58) 64%,
      rgba(11, 15, 21, .9) 100%
    );
}

/* Bottom-anchored body */
.category-card__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-md);
}

.category-card__title {
  font-family: var(--font-heading);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 12px rgba(11, 15, 21, .4);
}

/* Count as a subtle glass pill, not clashing inline */
.category-card__count {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, .92);
  padding: .34em .7em;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  transition:
    background var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out);
}

.category-card:hover .category-card__count {
  background: rgba(59, 130, 246, .28);
  border-color: rgba(147, 197, 253, .45);
}

/* Glass arrow chip, top-right */
.category-card__arrow {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  transition:
    background var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}

.category-card__arrow svg {
  display: block;
}

.category-card:hover .category-card__arrow,
.category-card:focus-visible .category-card__arrow {
  background: var(--grad-brand);
  border-color: transparent;
  transform: translate(3px, -3px);
  box-shadow: 0 8px 20px -6px rgba(59, 130, 246, .6);
}

/* Focus-visible ring on the interactive anchor.
   outline guarantees a visible ring in forced-colors mode,
   box-shadow layers the branded glow on normal displays. */
.category-card:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 3px;
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 6px var(--accent-500),
    0 18px 44px -14px rgba(59, 130, 246, .5);
}

/* Responsive */
@media (max-width: 768px) {
  .topic-grid {
    gap: var(--space-md);
  }
  .category-card__body {
    padding: var(--space-sm);
  }
  .category-card__title {
    font-size: var(--step-1);
  }
  .category-card__arrow {
    top: var(--space-sm);
    right: var(--space-sm);
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 520px) {
  .category-card {
    aspect-ratio: 16 / 10;
  }
  .category-card__title {
    font-size: var(--step-1);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .category-card,
  .category-card::after,
  .category-card__media img,
  .category-card .tt-cover,
  .category-card__scrim,
  .category-card__count,
  .category-card__arrow {
    transition: none;
  }
  .category-card:hover {
    transform: none;
  }
  .category-card:hover .tt-cover {
    transform: none;
  }
  .category-card:hover .category-card__arrow,
  .category-card:focus-visible .category-card__arrow {
    transform: none;
  }
}

/* -------------------------------------------------------------------------
   12. EDITOR'S PICKS - featured block (1 large + side)
   ------------------------------------------------------------------------- */
.featured-block { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-md); }
.featured-block__main { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; display: flex; }
.featured-block__main .post-card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.featured-block__main .post-card__body {
  position: relative; z-index: 1; margin-top: auto; padding: var(--space-xl);
  color: #fff; background: linear-gradient(180deg, transparent, rgba(11,15,21,.85));
}
.featured-block__main .post-card__title { color: #fff; font-size: var(--step-3); -webkit-line-clamp: 3; line-clamp: 3; }
.featured-block__main .post-card__title a { color: #fff; }
.featured-block__main .post-card__excerpt { color: rgba(255,255,255,.85); }
.featured-block__side { display: grid; gap: var(--space-md); grid-auto-rows: 1fr; }
.featured-block__side .post-card { display: grid; grid-template-columns: 40% 1fr; }
.featured-block__side .post-card__media { aspect-ratio: auto; height: 100%; }

/* -------------------------------------------------------------------------
   13. TRUST / E-E-A-T band
   ------------------------------------------------------------------------- */
.trust-band__inner { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: var(--space-2xl); align-items: center; }
.trust-band__lead { align-self: center; }
.trust-band__author { display: flex; align-items: center; gap: 1rem; margin-top: var(--space-lg); text-align: left; }
.trust-band__author-name { display: block; font-family: var(--font-heading); font-weight: 800; font-size: var(--step-1); }
.trust-band__author-role { display: block; color: var(--accent-400); font-weight: 700; font-size: var(--step--1); letter-spacing: .04em; text-transform: uppercase; }
.trust-band__props { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--space-md); list-style: none; margin: 0; padding: 0; }
.value-prop h3 { font-size: var(--step-1); margin: 0 0 .35rem; }
.value-prop p { color: var(--text-soft); font-size: var(--step--1); margin: 0; }
.value-props { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-md); }
.value-prop {
  padding: var(--space-md); border-radius: var(--radius-md);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
}
.section:not(.section--ink) .value-prop { background: var(--bg-elevated); border-color: var(--border); box-shadow: var(--shadow-xs); }
.value-prop__icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  display: grid; place-items: center; background: var(--grad-brand); color: #fff; margin-bottom: .75rem;
}
.value-prop__title { font-size: var(--step-1); margin-bottom: .35rem; }
.section--ink .value-prop__title { color: #fff; }
.value-prop__text { color: var(--text-soft); font-size: var(--step--1); }
.section--ink .value-prop__text { color: rgba(255,255,255,.78); }

/* -------------------------------------------------------------------------
   14. TRENDING / POPULAR numbered list
   ------------------------------------------------------------------------- */
/* Trending now, premium numbered post cards (Warm Flow Lab) */

.trending {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Card */
.trending__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out);
}

/* Accent top edge that reveals on hover/focus-within */
.trending__item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
  z-index: 1;
}

.trending__item:hover,
.trending__item:focus-within {
  transform: translateY(-4px);
  border-color: var(--accent-400);
  box-shadow: 0 16px 44px -14px rgba(59, 130, 246, .38);
}

.trending__item:hover::before,
.trending__item:focus-within::before {
  transform: scaleX(1);
}

/* Ghost stroked number that fills with the brand gradient on hover.
   Uses an animatable background-size wipe on the single text node,
   so it works with the existing markup (no data attribute needed). */
.trending__rank {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-300);
  background-image: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0% 100%;
  transition:
    background-size var(--dur-2) var(--ease-out),
    -webkit-text-stroke-color var(--dur-2) var(--ease-out);
}

.trending__item:hover .trending__rank,
.trending__item:focus-within .trending__rank {
  background-size: 100% 100%;
  -webkit-text-stroke-color: transparent;
}

/* Body */
.trending__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
}

/* Category badge, scoped and minimal (assumes global .badge styling exists) */
.trending .badge {
  align-self: flex-start;
  max-width: 100%;
}

/* Title */
.trending__title {
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.trending__title a {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--neutral-900);
  text-decoration: none;
  background-image: linear-gradient(var(--accent-500), var(--accent-500));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition:
    color var(--dur-1) var(--ease-out),
    background-size var(--dur-2) var(--ease-out);
}
.trending__title a:hover {
  color: var(--accent-ink);
  background-size: 100% 2px;
}

/* Meta with a drawn clock affordance (no assets) */
.trending__meta {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  margin-top: auto;
  color: var(--text-muted);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}
.trending__meta::before {
  content: "";
  flex: none;
  inline-size: .95em;
  block-size: .95em;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: .85;
  background:
    linear-gradient(currentColor 0 0) no-repeat 50% 26%/1.4px 30%,
    linear-gradient(currentColor 0 0) no-repeat 68% 50%/26% 1.4px;
}

/* Focus-visible rings */
.trending__title a:focus-visible,
.trending .badge:focus-visible {
  outline: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 3px var(--bg-elevated), 0 0 0 5px var(--accent-400);
}

/* Responsive */
@media (max-width: 900px) {
  .trending {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .trending {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .trending__item {
    padding: var(--space-md);
  }
}
@media (max-width: 520px) {
  .trending__rank {
    font-size: var(--step-3);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .trending__item,
  .trending__item::before,
  .trending__rank,
  .trending__title a {
    transition: none;
  }
  .trending__item:hover,
  .trending__item:focus-within {
    transform: none;
  }
  .trending__item::before {
    transform: scaleX(1);
  }
}

/* -------------------------------------------------------------------------
   15. TESTIMONIALS / reader-value band
   ------------------------------------------------------------------------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
.testimonial {
  padding: var(--space-lg); border-radius: var(--radius-lg);
  background: var(--bg-elevated); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: var(--space-sm);
}
.testimonial__quote { font-size: var(--step-1); line-height: var(--leading-snug); color: var(--neutral-800); }
.testimonial__quote::before { content: "\201C"; font-family: var(--font-heading); font-size: 2.4em; line-height: 0; color: var(--primary-300); vertical-align: -.35em; margin-right: .1em; }
.testimonial__author { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial__name { font-weight: 700; font-family: var(--font-heading); }
.testimonial__stars { color: var(--warning); letter-spacing: .1em; }

/* -------------------------------------------------------------------------
   16. NEWSLETTER band
   ------------------------------------------------------------------------- */
.newsletter { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: var(--space-2xl); background: var(--grad-brand); color: #fff; text-align: center; }
.newsletter::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 120% at 50% 0%, rgba(255,255,255,.22), transparent 60%); }
.newsletter__inner { position: relative; max-width: 620px; margin-inline: auto; }
.newsletter__title { font-size: var(--step-3); color: #fff; }
.newsletter__text { color: rgba(255,255,255,.9); margin-top: .5rem; }
.newsletter__form {
  display: flex; gap: .5rem; margin-top: 1.75rem; flex-wrap: wrap; justify-content: center;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-pill); padding: .35rem; max-width: 480px; margin-inline: auto;
}
.newsletter__form input {
  flex: 1; min-width: 200px; border: 0; background: transparent; color: #fff;
  padding: .75rem 1.1rem; font-size: var(--step-0);
}
.newsletter__form input::placeholder { color: rgba(255,255,255,.75); }
.newsletter__form input:focus { outline: none; }
.newsletter__form .btn { background: #fff; color: var(--primary-800); }
.newsletter__form .btn:hover { background: var(--neutral-100); }
.newsletter__note { font-size: var(--step--2); color: rgba(255,255,255,.75); margin-top: .9rem; }
/* Inline subscribe feedback (footer + homepage forms, both on dark surfaces) */
.newsletter__msg { margin: .65rem 0 0; font-size: var(--step--1); line-height: 1.5; color: rgba(255,255,255,.85); }
.newsletter__msg:empty { margin: 0; }
.newsletter__msg.is-ok { color: #86efac; }
.newsletter__msg.is-err { color: #fca5a5; }
/* Newsletter (Stay in the loop): readable text on the gradient + polish */
.newsletter__icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px;
  margin: 0 auto 1rem; border-radius: var(--radius-lg); color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.45);
}
.newsletter .section__eyebrow { justify-content: center; color: rgba(255,255,255,.92); }
.newsletter .section__eyebrow::before { background: rgba(255,255,255,.55); }
.newsletter .section__title { color: #fff; }
.newsletter__lead { color: rgba(255,255,255,.9); margin: .55rem auto 0; max-width: 46ch; }
/* --- Premium form: dark-tinted glass pill + readable field --- */
.newsletter .newsletter__form {
  display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
  max-width: 520px; margin: 1.9rem auto 0;
  padding: .45rem .45rem .45rem .6rem;
  background: rgba(9,16,32,.34);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.newsletter .newsletter__form:focus-within {
  border-color: rgba(147,197,253,.6);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.8), 0 0 0 4px rgba(59,130,246,.3), inset 0 1px 0 rgba(255,255,255,.12);
}
.newsletter .newsletter__form input,
.newsletter .newsletter__form input[type="email"] {
  flex: 1 1 200px; min-width: 0; min-height: 0;
  background: transparent; border: 0; box-shadow: none; border-radius: 0;
  color: #fff; font-family: inherit; font-size: var(--step-0); font-weight: 500;
  padding: .8rem .5rem .8rem 1rem;
}
.newsletter .newsletter__form input::placeholder { color: rgba(255,255,255,.62); }
.newsletter .newsletter__form input:focus,
.newsletter .newsletter__form input:focus-visible { outline: none; box-shadow: none; }
.newsletter .newsletter__form .btn {
  flex: 0 0 auto; font-weight: 700;
  background: #fff; color: var(--primary-800);
  border: 0; border-radius: var(--radius-pill);
  padding: .8rem 1.7rem;
  box-shadow: 0 8px 20px -8px rgba(2,8,26,.6);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background var(--dur-2);
}
.newsletter .newsletter__form .btn:hover {
  background: #fff; transform: translateY(-1px);
  box-shadow: 0 13px 28px -8px rgba(2,8,26,.75);
}
@media (max-width: 680px) {
  .newsletter { padding: var(--space-xl) var(--space-md); border-radius: var(--radius-lg); }
  .newsletter .newsletter__form { flex-direction: column; align-items: stretch; border-radius: var(--radius-xl); padding: .6rem; gap: .55rem; max-width: 440px; }
  .newsletter .newsletter__form input,
  .newsletter .newsletter__form input[type="email"] { flex: 0 0 auto; width: 100%; height: auto; text-align: center; padding: .9rem; }
  .newsletter .newsletter__form .btn { width: 100%; justify-content: center; padding: .9rem; }
}

/* -------------------------------------------------------------------------
   17. FAQ accordion
   ------------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
/* ============ 17. FAQ accordion (premium, unified indicator) ============ */
/* One indicator only: the .faq__icon "+" rotates 45deg into an "x" on open.
   The old .faq__q::after chevron is dropped entirely. Open state is driven by
   aria-expanded (items are div + button, not <details>). */

.faq__list {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: var(--space-sm);
}

/* Card */
.faq__item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}

.faq__item:hover {
  border-color: var(--accent-400);
  box-shadow: 0 12px 34px -14px rgba(59, 130, 246, .35);
}

/* Open item: accent border + faint blue glow + accent left bar via inset shadow */
.faq__item:has(.faq__q[aria-expanded="true"]) {
  border-color: var(--accent-400);
  box-shadow:
    inset 3px 0 0 var(--accent-500),
    0 16px 40px -16px rgba(59, 130, 246, .4);
}

/* Question / trigger */
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-md);
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.3;
  color: var(--neutral-900);
  border-radius: var(--radius-lg);
  transition:
    background var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out);
}

.faq__q > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

/* Tinted header when open */
.faq__q[aria-expanded="true"] {
  background: var(--accent-50);
  color: var(--accent-ink);
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}

.faq__q:hover {
  color: var(--accent-600);
}

.faq__q:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 3px;
}

/* Unified circular indicator token ("+" that rotates into "x") */
.faq__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--accent-50);
  color: var(--accent-600);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1;
  user-select: none;
  transition:
    transform var(--dur-2) var(--ease-out),
    background var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out);
}

.faq__q:hover .faq__icon {
  background: var(--accent-100, var(--accent-50));
  color: var(--accent-600);
}

.faq__q[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
  background: var(--accent-500);
  color: #ffffff;
}

/* Answer */
.faq__a {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  color: var(--text-soft);
  font-size: var(--step-0);
  line-height: 1.7;
}

.faq__a p {
  margin-bottom: .75rem;
}

.faq__a p:last-child {
  margin-bottom: 0;
}

/* Gentle fade/slide on the answer text (display:none prevents height anim) */
.faq__a:not([hidden]) p {
  animation: faqReveal var(--dur-3, 320ms) var(--ease-out) both;
}

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .faq__q { font-size: var(--step-0); padding: var(--space-sm) var(--space-md); }
  .faq__a { font-size: var(--step--1); }
}

@media (max-width: 520px) {
  .faq__q { gap: var(--space-sm); }
  .faq__icon { width: 26px; height: 26px; font-size: 1.2rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .faq__item,
  .faq__q,
  .faq__icon { transition: none; }
  .faq__a:not([hidden]) p { animation: none; }
}

/* -------------------------------------------------------------------------
   18. POST CARD + CARD GRID
   Featured-image-forward, 16:9 media, hover lift + image zoom, clamped title.
   ------------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-md); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.post-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.post-card__media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--neutral-100);
}
.post-card__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform var(--dur-4) var(--ease-out);
}
.post-card:hover .post-card__media img { transform: scale(1.06); }

.post-card__badge {
  position: absolute; top: .75rem; left: .75rem; z-index: 2;
  font-family: var(--font-heading); font-size: var(--step--2); font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: .4em .8em; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--neutral-950) 62%, transparent); color: #fff;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background var(--dur-1);
}
.post-card__badge:hover { background: var(--grad-brand); color: #fff; }

.post-card__body { display: flex; flex-direction: column; gap: .6rem; padding: var(--space-md); flex: 1; }
.post-card__title {
  font-size: var(--step-1); line-height: var(--leading-snug); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__title a { color: var(--neutral-900); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* full-card click target */
.post-card:hover .post-card__title a { color: var(--primary-700); }
.post-card__excerpt {
  color: var(--text-soft); font-size: var(--step--1);
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  margin-top: auto; padding-top: .75rem;
  font-size: var(--step--2); color: var(--text-muted);
}
.post-card__meta > * { display: inline-flex; align-items: center; gap: .35rem; }
.post-card__meta svg { width: 14px; height: 14px; }
.post-card__meta a { position: relative; z-index: 2; color: var(--text-soft); text-decoration: none; }
.post-card__meta a:hover { color: var(--link); }

/* -------------------------------------------------------------------------
   19. ARCHIVE / CATEGORY HERO  (FIX 3)
   ------------------------------------------------------------------------- */
.archive-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding-block: clamp(3.5rem, 7vw, 6.5rem); margin-bottom: var(--space-2xl);
}
.archive-hero__bg { position: absolute; inset: 0; z-index: -1; }
.archive-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.02); }
.archive-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,15,21,.35) 0%, rgba(11,15,21,.72) 100%),
    linear-gradient(100deg, color-mix(in srgb, var(--primary-900) 55%, transparent), transparent 70%);
}
.archive-hero__inner { position: relative; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.archive-hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .9rem;
  padding: .4rem .85rem; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.26);
  font-family: var(--font-heading); font-weight: 700; font-size: var(--step--1);
  letter-spacing: .1em; text-transform: uppercase; color: #fff;
}
.archive-hero__title { font-size: var(--step-5); color: #fff; margin: 0; max-width: 20ch; } /* topic name ONLY */
.archive-hero__desc { font-size: var(--step-1); color: rgba(255,255,255,.9); max-width: 62ch; margin-top: 1rem; }
.archive-hero__count {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem;
  font-family: var(--font-heading); font-weight: 700; font-size: var(--step--1);
  color: #fff; padding: .5rem 1rem; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
}
.archive-hero__count strong { color: var(--accent-400); }
.archive-hero .breadcrumbs { margin-bottom: 1.1rem; }

/* -------------------------------------------------------------------------
   20. AUTHOR BOX  (FIX 4 - real circular portrait + gradient ring)
   ------------------------------------------------------------------------- */
.author-box {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-lg); align-items: start;
  padding: var(--space-lg); border-radius: var(--radius-lg);
  background: var(--bg-elevated); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  margin-block: var(--space-2xl);
}
/* Circular portrait with a gradient ring */
.author-box__ring {
  position: relative; flex: 0 0 auto; display: grid; place-items: center; box-sizing: border-box;
  width: 96px; height: 96px; border-radius: 50%;
  padding: 3px; background: var(--grad-brand);
}
.author-box__ring::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: var(--grad-brand); opacity: .25; filter: blur(10px); z-index: -1;
}
.author-box__avatar {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bg-elevated); background: var(--neutral-100);
  display: block; image-rendering: auto;
}
/* Any avatar image placed inside a ring (e.g. get_avatar default 'avatar' class) fills it as a circle */
.author-box__ring img, .author-box__ring .avatar {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
  border: 3px solid var(--bg-elevated); background: var(--neutral-100);
}
.author-box__ring--sm { width: 54px; height: 54px; padding: 2px; }
.author-box__body { min-width: 0; }
.author-box__name { font-size: var(--step-2); margin: 0; }
.author-box__name a { color: var(--neutral-900); text-decoration: none; }
.author-box__name a:hover { color: var(--primary-700); }
.author-box__role {
  display: inline-block; margin-top: .25rem; font-family: var(--font-heading);
  font-weight: 700; font-size: var(--step--1); letter-spacing: .03em; text-transform: uppercase;
  color: var(--primary-700);
}
.author-box__bio { color: var(--text-soft); margin-top: .75rem; max-width: 68ch; }
.author-box__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  margin-top: 1rem; font-size: var(--step--1); color: var(--text-muted);
}
.author-box__meta strong { color: var(--neutral-800); }
.author-box__social { display: flex; gap: .5rem; margin-top: 1rem; }
.author-box__social a {
  width: 38px; height: 38px; border-radius: var(--radius-pill);
  display: grid; place-items: center; color: var(--neutral-600);
  background: var(--neutral-100); border: 1px solid var(--border);
  transition: all var(--dur-1) var(--ease-out);
}
.author-box__social a:hover { color: #fff; background: var(--grad-brand); border-color: transparent; transform: translateY(-2px); }
.author-box__social svg { width: 18px; height: 18px; }
.author-box__link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem;
  font-family: var(--font-heading); font-weight: 700; color: var(--primary-700); text-decoration: none;
}
.author-box__link:hover { color: var(--primary-900); }
.author-box__link svg { transition: transform var(--dur-2) var(--ease-out); }
.author-box__link:hover svg { transform: translateX(4px); }

/* Large variant - author archive header */
.author-box--lg {
  text-align: center; grid-template-columns: 1fr; justify-items: center;
  padding: var(--space-2xl); background: var(--bg-alt);
}
.author-box--lg .author-box__ring { width: 140px; height: 140px; }
.author-box--lg .author-box__name { font-size: var(--step-3); margin-top: 1rem; }
.author-box--lg .author-box__bio { margin-inline: auto; }
.author-box--lg .author-box__meta, .author-box--lg .author-box__social { justify-content: center; }

/* -------------------------------------------------------------------------
   21. ARTICLE / ENTRY CONTENT TYPOGRAPHY
   Readable measure ~68ch, lists, blockquote, callouts, tables, figures, code.
   ------------------------------------------------------------------------- */
.entry-content { font-size: var(--step-0); line-height: var(--leading-body); color: var(--text); }
.entry-content > * { max-width: var(--container-narrow); margin-inline: auto; }
.entry-content > .alignwide { max-width: 1040px; }
.entry-content > .alignfull { max-width: none; }

.entry-content p { margin-block: 0 var(--space-md); }
.entry-content h2 { font-size: var(--step-3); margin-block: var(--space-xl) var(--space-sm); scroll-margin-top: calc(var(--header-h) + 1rem); }
.entry-content h3 { font-size: var(--step-2); margin-block: var(--space-lg) var(--space-sm); scroll-margin-top: calc(var(--header-h) + 1rem); }
.entry-content h4 { font-size: var(--step-1); margin-block: var(--space-md) var(--space-2xs); }
.entry-content a { color: var(--link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); }
.entry-content a:hover { text-decoration-color: currentColor; }

.entry-content ul, .entry-content ol { padding-left: 1.4em; margin-block: 0 var(--space-md); }
.entry-content li { margin-block: .4em; }
.entry-content ul li::marker { color: var(--primary-500); }
.entry-content ol li::marker { color: var(--primary-600); font-weight: 700; }

.entry-content blockquote {
  margin-block: var(--space-lg); padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--primary-500); background: var(--bg-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--step-1); font-style: italic; color: var(--neutral-800);
}
.entry-content blockquote cite { display: block; margin-top: .5rem; font-size: var(--step--1); font-style: normal; color: var(--text-muted); }

/* Callouts (author with .callout .callout--note/tip/warning) */
.callout {
  margin-block: var(--space-lg); padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--bg-alt); display: grid; grid-template-columns: auto 1fr; gap: var(--space-sm);
}
.callout__icon { flex: 0 0 auto; width: 28px; height: 28px; }
.callout--note    { border-color: color-mix(in srgb, var(--primary-500) 40%, var(--border)); background: var(--primary-50); }
.callout--tip     { border-color: color-mix(in srgb, var(--success) 40%, var(--border)); background: color-mix(in srgb, var(--success) 8%, #fff); }
.callout--warning { border-color: color-mix(in srgb, var(--warning) 45%, var(--border)); background: color-mix(in srgb, var(--warning) 10%, #fff); }
.callout__title { font-family: var(--font-heading); font-weight: 800; margin-bottom: .2rem; }

.entry-content figure { margin-block: var(--space-lg); }
.entry-content figure img { border-radius: var(--radius-md); width: 100%; }
.entry-content figcaption, .figure-credit {
  margin-top: .6rem; font-size: var(--step--1); color: var(--text-muted); text-align: center;
}
.figure-credit a { color: var(--text-soft); }

/* Responsive tables */
.entry-content .table-wrap { overflow-x: auto; margin-block: var(--space-lg); border-radius: var(--radius-md); border: 1px solid var(--border); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.entry-content th, .entry-content td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.entry-content thead th { background: var(--bg-alt); font-family: var(--font-heading); font-weight: 700; color: var(--neutral-800); }
.entry-content tbody tr:hover { background: var(--primary-50); }

/* Code */
.entry-content code { font-family: var(--font-mono); font-size: .9em; background: var(--neutral-100); padding: .15em .4em; border-radius: var(--radius-xs); }
.entry-content pre { margin-block: var(--space-lg); padding: var(--space-md); border-radius: var(--radius-md); background: var(--neutral-950); color: #e6ebf1; overflow-x: auto; }
.entry-content pre code { background: none; padding: 0; color: inherit; }

/* Drop cap on the first paragraph (subtle) */
.entry-content > p.has-drop-cap::first-letter,
.entry-content > p:first-of-type::first-letter {
  font-family: var(--font-heading); font-size: 3.2em; line-height: .8; font-weight: 800;
  float: left; margin: .05em .12em 0 0; color: var(--primary-600);
}

/* -------------------------------------------------------------------------
   22. TABLE OF CONTENTS (sticky on desktop)
   ------------------------------------------------------------------------- */
.toc {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-alt); padding: var(--space-md);
}
.toc__title { font-family: var(--font-heading); font-weight: 800; font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .75rem; }
.toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.toc__list a { display: block; padding: .3rem .5rem; border-radius: var(--radius-xs); color: var(--text-soft); text-decoration: none; font-size: var(--step--1); border-left: 2px solid transparent; }
.toc__list a:hover { color: var(--primary-700); background: var(--bg); }
.toc__list a.is-active { color: var(--primary-800); border-left-color: var(--primary-500); font-weight: 700; }
@media (min-width: 1080px) { .toc { position: sticky; top: calc(var(--header-h) + 1.5rem); } }

/* -------------------------------------------------------------------------
   23. SINGLE LAYOUT
   ------------------------------------------------------------------------- */
.single__head { padding-block: var(--space-xl) var(--space-lg); }
.single__title { font-size: var(--step-4); line-height: 1.14; margin: .5rem 0 0; }
.single__meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: 1.1rem; color: var(--text-muted); font-size: var(--step--1); }
.single__meta a { color: var(--text-soft); font-weight: 600; text-decoration: none; }
.single__meta a:hover { color: var(--primary-700); }
.single__byline { font-weight: 500; }
.single__hero { margin: 0 auto var(--space-2xl); max-width: var(--container-wide); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); padding-inline: var(--gutter); }
.single__hero img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }
.single__hero figcaption { display: none; }
.single__tags { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.single__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.single__toc-col { min-width: 0; }
@media (min-width: 1080px) {
  .single__layout { grid-template-columns: 250px minmax(0, 1fr); }
  /* Sticky table-of-contents sidebar (desktop only, where the column exists) */
  .single__toc-col {
    position: sticky;
    top: calc(var(--header-h, 68px) + 1.25rem);
    align-self: start;
    max-height: calc(100vh - var(--header-h, 68px) - 2.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .single__toc-col::-webkit-scrollbar { width: 6px; }
  .single__toc-col::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
}

/* -------------------------------------------------------------------------
   24. FOOTER
   ------------------------------------------------------------------------- */
/* ============================================================
   Site Footer, Warm Flow Lab, premium dark treatment
   Drop-in replacement for .site-footer block.
   Dark navy (--grad-ink) + blue glow accents, glassmorphism.
   ============================================================ */

.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--grad-ink);
  color: rgba(255, 255, 255, .8);
  padding-block: var(--space-3xl) var(--space-lg);
  margin-top: var(--space-3xl);
  overflow: hidden;
}

/* Refined top hairline: a fading blue accent line */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, .55) 35%,
    rgba(59, 130, 246, .55) 65%,
    transparent
  );
  z-index: 2;
}

/* Faint radial glow for depth, sits behind content */
.site-footer::after {
  content: "";
  position: absolute;
  top: -35%;
  left: 50%;
  width: min(1100px, 120%);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, .18),
    rgba(59, 130, 246, 0) 68%
  );
  pointer-events: none;
  z-index: -1;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

/* Base link styling */
.site-footer a {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  transition: color var(--dur-2) var(--ease-out);
}
.site-footer a:hover { color: #fff; }

.site-footer a:focus-visible {
  outline: none;
  border-radius: var(--radius-xs);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .5);
}

/* ---- Footer layout: brand | links(3) | newsletter ---- */
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 2.1fr 1.3fr;
  gap: var(--space-2xl);
  align-items: start;
}
.site-footer__grid > * { min-width: 0; }
.site-footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg) var(--space-xl);
}
.site-footer__links > * { min-width: 0; }

/* ---- Brand block ---- */
.site-footer__brandcol .brand__logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.site-footer__tagline {
  margin-top: .75rem;
  max-width: 40ch;
  color: rgba(255, 255, 255, .65);
  line-height: 1.6;
}

/* ---- Column headings: geometric with accent dot + underline ---- */
.footer__col-title {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--step--1);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.15rem;
  padding-bottom: .55rem;
}
.footer__col-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
}
.footer__col-title::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-400);
  box-shadow: 0 0 8px rgba(59, 130, 246, .8);
}

/* ---- Link lists: kill bullets, add hover indent + accent bar ---- */
.site-footer__cols ul,
.menu--footer {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.site-footer__cols li { margin: 0; }

.site-footer__cols li a,
.menu--footer li a {
  position: relative;
  display: inline-block;
  padding: .18rem 0 .18rem .1rem;
  color: rgba(255, 255, 255, .72);
  transition:
    color var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out),
    padding-left var(--dur-2) var(--ease-out);
}
/* Left accent bar that grows in on hover */
.site-footer__cols li a::before,
.menu--footer li a::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  transform: translateY(-50%);
  opacity: 0;
  transition:
    width var(--dur-2) var(--ease-out),
    opacity var(--dur-2) var(--ease-out);
}
.site-footer__cols li a:hover,
.site-footer__cols li a:focus-visible,
.menu--footer li a:hover,
.menu--footer li a:focus-visible {
  color: #fff;
  transform: translateX(4px);
}
.site-footer__cols li a:hover::before,
.site-footer__cols li a:focus-visible::before,
.menu--footer li a:hover::before,
.menu--footer li a:focus-visible::before {
  width: 8px;
  opacity: 1;
}

/* ---- Social icons ---- */
.site-footer__social {
  display: flex;
  gap: .6rem;
  margin-top: 1.25rem;
}
.site-footer__social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .85);
  transition:
    background var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}
.site-footer__social a svg {
  width: 18px;
  height: 18px;
  display: block;
}
.site-footer__social a:hover {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 26px -8px rgba(59, 130, 246, .6);
}
.site-footer__social a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .5);
}

/* ---- Newsletter ---- */
.site-footer__newsletter p {
  color: rgba(255, 255, 255, .7);
  font-size: var(--step--1);
  line-height: 1.6;
  margin: 0 0 .9rem;
}
.site-footer__newsletter .newsletter__form {
  display: grid;
  gap: .55rem;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  max-width: none;
  margin: 0;
}
.site-footer__newsletter .newsletter__form input {
  box-sizing: border-box;
  width: 100%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  border-radius: var(--radius-md);
  padding: .72rem .9rem;
  font: inherit;
  transition:
    border-color var(--dur-2) var(--ease-out),
    background var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}
.site-footer__newsletter .newsletter__form input::placeholder {
  color: rgba(255, 255, 255, .45);
}
.site-footer__newsletter .newsletter__form input:hover {
  border-color: rgba(255, 255, 255, .28);
}
/* Fixed focus ring: blue, matching the new theme */
.site-footer__newsletter .newsletter__form input:focus,
.site-footer__newsletter .newsletter__form input:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, .1);
  border-color: var(--accent-400);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .25);
}
.site-footer__newsletter .newsletter__form .btn {
  box-sizing: border-box;
  width: 100%;
  justify-content: center;
  background: var(--grad-brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  transition:
    transform var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out),
    filter var(--dur-2) var(--ease-out);
}
.site-footer__newsletter .newsletter__form .btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 30px -8px rgba(59, 130, 246, .55);
}
.site-footer__newsletter .newsletter__form .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .5);
}

/* ---- Bottom bar ---- */
.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
}
.site-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, .6);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer__legal a { color: rgba(255, 255, 255, .6); }
.site-footer__legal a:hover { color: #fff; }

/* Bottom-bar utilities: made-note + Cookie settings */
.site-footer__bar-utils { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; }
.site-footer__made { color: rgba(255, 255, 255, .5); }
.site-footer__cookie {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: var(--step--1); color: rgba(255, 255, 255, .72);
  transition: color var(--dur-1) var(--ease-out);
}
.site-footer__cookie svg { width: 15px; height: 15px; flex: 0 0 auto; }
.site-footer__cookie:hover { color: #fff; }
.site-footer__cookie:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, .5); border-radius: var(--radius-xs); }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  .site-footer__brandcol { grid-column: 1; grid-row: 1; }
  .site-footer__newsletter { grid-column: 2; grid-row: 1; }
  .site-footer__links { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .site-footer__brandcol,
  .site-footer__newsletter,
  .site-footer__links { grid-column: 1; grid-row: auto; }
  .site-footer__links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .site-footer { padding-block: var(--space-2xl) var(--space-lg); }
  .site-footer__bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }
}

@media (max-width: 400px) {
  .site-footer__links { grid-template-columns: 1fr; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .site-footer *,
  .site-footer *::before,
  .site-footer *::after {
    transition: none !important;
    animation: none !important;
  }
  .site-footer__social a:hover,
  .site-footer__newsletter .newsletter__form .btn:hover,
  .site-footer__cols li a:hover,
  .site-footer__cols li a:focus-visible,
  .menu--footer li a:hover,
  .menu--footer li a:focus-visible {
    transform: none;
  }
}
.footer-social { display: flex; gap: .5rem; }
.footer-social a { width: 38px; height: 38px; border-radius: var(--radius-pill); display: grid; place-items: center; background: rgba(255,255,255,.1); transition: background var(--dur-1); }
.footer-social a:hover { background: var(--grad-brand); }

/* -------------------------------------------------------------------------
   25. FORMS (search + generic)
   ------------------------------------------------------------------------- */
.search-form { display: flex; gap: .5rem; }
.search-field, input[type="text"], input[type="email"], input[type="search"], textarea {
  width: 100%; padding: .8rem 1rem; min-height: 44px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); background: var(--bg); color: var(--text);
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.search-field:focus, input:focus, textarea:focus { outline: none; border-color: var(--primary-400); box-shadow: 0 0 0 3px var(--primary-100); }

/* Search overlay (opened by .nav-search) */
.search-overlay { position: fixed; inset: 0; z-index: var(--z-overlay); display: grid; place-items: start center; padding-top: 18vh; background: rgba(11,15,21,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity var(--dur-2), visibility 0s linear var(--dur-2); }
.search-overlay.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur-2); }
.search-overlay .search-form { width: min(92vw, 640px); background: var(--bg); border-radius: var(--radius-pill); padding: .4rem .4rem .4rem 1.25rem; box-shadow: var(--shadow-xl); }

/* -------------------------------------------------------------------------
   26. SCROLL-REVEAL + COUNT-UP  (JS toggles .is-visible / animates .count-up)
   Transform/opacity only => compositor-friendly, zero layout shift.
   ------------------------------------------------------------------------- */
/* Progressive enhancement: content is visible by default; only when JS is
   confirmed (<html class="js">) do we hide it and animate it in on scroll.
   This guarantees no blank sections for no-JS clients, crawlers, or slow JS. */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(var(--reveal-shift)); will-change: opacity, transform; }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out);
}
.js .reveal--left  { transform: translateX(calc(-1 * var(--reveal-shift))); }
.js .reveal--right { transform: translateX(var(--reveal-shift)); }
.js .reveal--scale { transform: scale(.94); }
.js .reveal--left.is-visible, .js .reveal--right.is-visible, .js .reveal--scale.is-visible { transform: none; }

/* Stagger utility - set on a container; children reveal in sequence */
.stagger > .reveal { transition-delay: 0ms; }
.stagger > .reveal:nth-child(1).is-visible { transition-delay: 40ms; }
.stagger > .reveal:nth-child(2).is-visible { transition-delay: 120ms; }
.stagger > .reveal:nth-child(3).is-visible { transition-delay: 200ms; }
.stagger > .reveal:nth-child(4).is-visible { transition-delay: 280ms; }
.stagger > .reveal:nth-child(5).is-visible { transition-delay: 360ms; }
.stagger > .reveal:nth-child(6).is-visible { transition-delay: 440ms; }

.count-up { font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------------------
   27. AD SLOTS - reserve space so ads never cause layout shift (CLS)
   Give every slot a min-height matching its unit before it paints.
   ------------------------------------------------------------------------- */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  margin-inline: auto; margin-block: var(--space-lg);
  max-width: 100%; overflow: hidden;
  background: var(--bg-alt); border: 1px dashed var(--border);
  border-radius: var(--radius-md); color: var(--text-muted);
  font-family: var(--font-heading); font-size: var(--step--2);
  letter-spacing: .1em; text-transform: uppercase;
}
.ad-slot::before { content: "Advertisement"; }
.ad-slot:not(:empty)::before { content: none; }
.ad-slot > * { margin: 0; max-width: 100%; }
/* Reserved heights per placement keep CLS at ~0 before the unit paints */
.ad-slot--leaderboard { min-height: 90px;  max-width: 728px; }  /* 728x90  */
.ad-slot--billboard   { min-height: 250px; max-width: 970px; }  /* 970x250 */
.ad-slot--rectangle   { min-height: 250px; max-width: 300px; }  /* 300x250 */
.ad-slot--half-page   { min-height: 600px; max-width: 300px; }  /* 300x600 */
.ad-slot--in-article  { min-height: 250px; max-width: var(--container-narrow); }
.ad-slot--mobile      { min-height: 100px; max-width: 320px; }  /* 320x100 */
@media (max-width: 680px) {
  .ad-slot--leaderboard, .ad-slot--billboard { min-height: 100px; }
}
.entry-content > .ad-slot { max-width: var(--container-narrow); }

/* -------------------------------------------------------------------------
   28. RESPONSIVE (mobile-first overrides)
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .featured-block { grid-template-columns: 1fr; }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}

/* Header collapses to hamburger below this width - guarantees no overflow */
@media (max-width: 1024px) {
  .primary-nav, .nav-search { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .trust-band__inner { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --header-h: 64px; }
  .card-grid, .card-grid--2, .card-grid--3 { grid-template-columns: 1fr; }
  .featured-block__side .post-card { grid-template-columns: 1fr; }
  .featured-block__side .post-card__media { aspect-ratio: 16 / 9; height: auto; }
  .author-box { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .author-box__meta, .author-box__social { justify-content: center; }
  .author-box__bio { max-width: none; }
  .site-footer__cols { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 78vh; }
  .newsletter__form { flex-direction: column; border-radius: var(--radius-lg); }
  .newsletter__form input { min-width: 0; }
}

@media (max-width: 400px) { .stats-strip { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   29. REDUCED MOTION - kill all non-essential animation
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .hero__mesh, .hero__blob, .hero__image img { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__eyebrow, .hero__word, .hero__subtitle, .hero__actions, .hero__search, .hero__badges { opacity: 1 !important; transform: none !important; animation: none !important; }
  .post-card:hover, .category-card:hover { transform: none; }
  .post-card:hover .post-card__media img, .category-card:hover .category-card__media img { transform: none; }
}

/* -------------------------------------------------------------------------
   30. PRINT
   ------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .hero__blob, .hero__mesh, .newsletter, .author-box__social,
  .nav-toggle, .nav-search, .pagination, .toc, .breadcrumbs, .search-overlay, .ad-slot { display: none !important; }
  body { color: #000; background: #fff; font-size: 12pt; }
  .entry-content > * { max-width: none; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
  .post-card, .section { break-inside: avoid; box-shadow: none; }
}

/* -------------------------------------------------------------------------
   31. STATIC PAGES (About, Privacy, Terms, Contact, …)
   ------------------------------------------------------------------------- */
.page-article__head { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding-block: var(--space-2xl) var(--space-xl); margin-bottom: var(--space-2xl); }
.page-article__title { font-size: var(--step-4); line-height: 1.14; margin: .4rem 0 0; }
.page-article .entry-content { padding-bottom: var(--space-3xl); }
.page-article .entry-content > h2 { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.page-article .entry-content > h2:first-of-type { border-top: 0; padding-top: 0; }
.page-article .entry-content > p:first-child em { display: inline-block; color: var(--text-muted); font-size: var(--step--1); background: var(--bg-alt); padding: .25rem .7rem; border-radius: var(--radius-pill); }

/* -------------------------------------------------------------------------
   32. CONTACT FORM  (mu-plugin shortcode [embertank_contact])
   ------------------------------------------------------------------------- */
.et-contact-wrap { display: grid; grid-template-columns: 1.5fr .9fr; gap: var(--space-2xl); align-items: start; margin: var(--space-lg) auto 0; max-width: 1040px; }
.entry-content > .et-contact-wrap { max-width: 1040px; }
.et-contact-side { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-lg); }
.et-contact-side h2 { font-size: var(--step-1); margin: 0 0 .8rem; }
.et-contact-side ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .7rem; }
.et-contact-side a { color: var(--primary-700); text-decoration: none; }
.et-form { max-width: 680px; }
.et-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.et-form__field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.et-form__field--full { grid-column: 1 / -1; }
.et-form label { font-weight: 600; font-size: var(--step--1); color: var(--text); }
.et-form input[type=text], .et-form input[type=email], .et-form textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg); color: var(--text); font: inherit; font-size: var(--step-0);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.et-form input:focus, .et-form textarea:focus { outline: none; border-color: var(--primary-400); box-shadow: 0 0 0 3px var(--primary-100); }
.et-form textarea { min-height: 160px; resize: vertical; }
.et-form__hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; overflow: hidden; }
.et-form__consent { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--step--1); color: var(--text-soft); margin-bottom: 1.2rem; }
.et-form__consent input { width: auto; margin-top: .25rem; }
.et-form .btn { width: 100%; justify-content: center; font-size: var(--step-0); padding-block: .85rem; }
.et-form__note { text-align: center; font-size: var(--step--2); color: var(--text-muted); margin-top: .9rem; }
.et-alert { padding: 1rem 1.2rem; border-radius: var(--radius-md); margin-bottom: 1.5rem; font-weight: 500; }
.et-alert--ok  { background: #e6f4ea; color: #14532d; border: 1px solid #b7e0c4; }
.et-alert--err { background: #fdecea; color: #7f1d1d; border: 1px solid #f5c2c0; }
@media (max-width: 820px) { .et-contact-wrap { grid-template-columns: 1fr; } .et-form__grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   33. Design-overhaul additions (hero accent, testimonial cite, categories hub)
   ------------------------------------------------------------------------- */
.hero__title-accent { background: linear-gradient(96deg, var(--accent-500), #7DD3FC); -webkit-background-clip: text; background-clip: text; color: transparent; }
.testimonial__cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; color: var(--accent-ink); font-size: var(--step--1); }
.section--ink .testimonial__cite { color: var(--accent-400); }

/* Categories hub page */
.cats-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-lg); }
.cat-hub-card { display: grid; grid-template-rows: auto 1fr; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.cat-hub-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cat-hub-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.cat-hub-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease-out); }
.cat-hub-card:hover .cat-hub-card__media img { transform: scale(1.06); }
.cat-hub-card__body { padding: var(--space-md); display: flex; flex-direction: column; gap: .45rem; }
.cat-hub-card__title { font-family: var(--font-heading); font-size: var(--step-2); margin: 0; color: var(--brand-primary); }
.cat-hub-card__count { font-size: var(--step--1); color: var(--accent-ink); font-weight: 700; letter-spacing: .02em; }
.cat-hub-card__desc { color: var(--text-soft); font-size: var(--step-0); margin: 0; line-height: 1.6; }
.cat-hub-card__more { margin-top: auto; font-weight: 700; color: var(--accent-ink); font-size: var(--step--1); }

/* Blog filter chips */
.blog-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--space-lg); }
.blog-filters a { padding: .45rem .95rem; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text-soft); font-size: var(--step--1); font-weight: 600; text-decoration: none;
  transition: all var(--dur-1) var(--ease-out); }
.blog-filters a:hover, .blog-filters a.is-active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.author-box__badge { display:inline-flex; align-items:center; padding:.2rem .7rem; border-radius:var(--radius-pill);
  background:color-mix(in srgb, var(--accent-500) 14%, transparent); color:var(--accent-ink); font-size:var(--step--2); font-weight:700; letter-spacing:.02em; }

/* -------------------------------------------------------------------------
   34. Mobile overflow safety + hero fit (design-overhaul)
   ------------------------------------------------------------------------- */
html, body { overflow-x: clip; max-width: 100%; }
.hero__title, .hero__title span, .hero__subtitle, .single__title, .archive-hero__title, .page-article__title, .cat-hub-card__title { overflow-wrap: break-word; }
@media (max-width: 560px) {
  .hero__title { font-size: clamp(1.9rem, 8.5vw, 2.7rem); }
  .hero__subtitle { font-size: 1rem; }
  .archive-hero__title { font-size: clamp(1.9rem, 9vw, 3rem); }
  .single__title { font-size: clamp(1.75rem, 8vw, 2.6rem); }
  .hero__badges { font-size: .82rem; gap: .5rem 1rem; flex-wrap: wrap; }
}
/* Mobile eyebrow wrap + visible hamburger bars on cream header */
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { background: var(--brand-primary); }
@media (max-width: 560px) { .hero__eyebrow { white-space: normal; font-size: .68rem; line-height: 1.4; } }

/* -------------------------------------------------------------------------
   35. EXTRAORDINARY HOMEPAGE - cinematic hero + bento featured grid
   ------------------------------------------------------------------------- */

/* ---- Cinematic hero ---- */
.hero-x {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4.5rem, 8vw, 9rem) clamp(3.5rem, 6vw, 6.5rem);
  color: #fff;
  background:
    radial-gradient(130% 130% at 78% -10%, #24408a 0%, #12224a 45%, #0a1224 100%);
  text-align: center;
}
.hero-x__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-x__photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .14; filter: grayscale(.35) contrast(1.05);
  mix-blend-mode: luminosity;
}
.hero-x__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 85% at 50% 0%, #000 25%, transparent 72%);
          mask-image: radial-gradient(120% 85% at 50% 0%, #000 25%, transparent 72%);
}
.hero-x__fade {
  position: absolute; inset: auto 0 0 0; height: 20%;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-x__blob {
  position: absolute; border-radius: 50%;
  filter: blur(72px); opacity: .5; will-change: transform;
}
.hero-x__blob--1 { width: 540px; height: 540px; left: -140px; top: -160px; background: radial-gradient(circle, #3b82f6, transparent 68%); animation: heroFloatA 17s ease-in-out infinite; }
.hero-x__blob--2 { width: 480px; height: 480px; right: -120px; top: 20px; background: radial-gradient(circle, #22d3ee, transparent 68%); animation: heroFloatB 21s ease-in-out infinite; }
.hero-x__blob--3 { width: 420px; height: 420px; left: 42%; bottom: -200px; background: radial-gradient(circle, #6366f1, transparent 68%); animation: heroFloatA 24s ease-in-out infinite reverse; }
@keyframes heroFloatA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(44px,-34px) scale(1.06); } }
@keyframes heroFloatB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-34px,42px) scale(1.05); } }

.hero-x__inner { position: relative; max-width: 940px; margin-inline: auto; }
.hero-x__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem 1rem; margin: 0 0 1.4rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
.hero-x__dot { width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34,211,238,.2), 0 0 14px #22d3ee; }
.hero-x__title {
  font-family: var(--font-heading);
  font-weight: 700; letter-spacing: -.035em; line-height: 1.05;
  font-size: clamp(2.6rem, 6.6vw, 5.3rem);
  margin: 0; color: #fff;
}
.hero-x__title span { display: block; max-width: 100%; overflow-wrap: break-word; }
.hero-x__title .grad,
.hero-x__accent {
  background: linear-gradient(100deg, #60a5fa, #22d3ee 55%, #a78bfa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-x__sub {
  max-width: 62ch; margin: 1.5rem auto 0;
  font-size: clamp(1.02rem, 1.5vw, 1.28rem); line-height: 1.6;
  color: rgba(255,255,255,.82);
}
.hero-x__actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 2.1rem; }
.btn--glow { box-shadow: 0 12px 42px -8px rgba(59,130,246,.75); }
.btn--glow:hover { box-shadow: 0 16px 52px -6px rgba(59,130,246,.9); transform: translateY(-2px); }
.btn--glass {
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn--glass:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

.hero-x__search {
  display: flex; align-items: center; gap: .4rem;
  max-width: 560px; margin: 2.1rem auto 0;
  padding: .4rem .4rem .4rem 1.1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.24);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px -30px rgba(0,0,0,.8);
}
.hero-x__search-icon { width: 20px; height: 20px; color: rgba(255,255,255,.7); flex: 0 0 auto; }
.hero-x__search input {
  flex: 1; min-width: 0; background: transparent; border: 0;
  color: #fff; font-size: 1rem; padding: .65rem .4rem;
}
.hero-x__search input::placeholder { color: rgba(255,255,255,.62); }
.hero-x__search input:focus { outline: none; }
.hero-x__search .btn { flex: 0 0 auto; }

.hero-x__stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem;
  list-style: none; padding: 0; margin: 2.5rem auto 0;
}
.hero-x__stats li {
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  min-width: 96px; padding: .75rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(9,16,31,.30);
  border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-x__stats strong {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.7rem;
  background: linear-gradient(180deg, #fff, #93c5fd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-x__stats span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.82); }

/* ---- Hero animations (JS-gated, reduced-motion safe) ---- */
.js .hero-x__accent, .js .hero-x__title .grad {
  background-size: 220% auto;
  animation: heroGrad 7s ease-in-out infinite;
}
@keyframes heroGrad { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.js .hero-x__dot { animation: heroDot 2.4s ease-in-out infinite; }
@keyframes heroDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,211,238,.55), 0 0 14px #22d3ee; }
  50%      { box-shadow: 0 0 0 7px rgba(34,211,238,0), 0 0 22px #22d3ee; }
}
.js .hero-x__stats li { animation: heroFloat 5s ease-in-out infinite; }
.js .hero-x__stats li:nth-child(2) { animation-delay: .5s; }
.js .hero-x__stats li:nth-child(3) { animation-delay: 1s; }
.js .hero-x__stats li:nth-child(4) { animation-delay: 1.5s; }
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.js .hero-x__grid { animation: heroGridDrift 28s linear infinite; }
@keyframes heroGridDrift { from { background-position: 0 0; } to { background-position: 46px 46px; } }
.js .btn--glow { animation: heroGlow 3.6s ease-in-out infinite; }
@keyframes heroGlow {
  0%, 100% { box-shadow: 0 12px 42px -8px rgba(59,130,246,.7); }
  50%      { box-shadow: 0 14px 50px -6px rgba(59,130,246,.95); }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero-x__accent, .js .hero-x__title .grad, .js .hero-x__dot,
  .js .hero-x__stats li, .js .hero-x__grid, .js .btn--glow { animation: none; }
}

/* ---- Bento featured grid ---- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 194px;
  gap: 1rem;
}
.bento__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: block; text-decoration: none; color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.bento__card--lg { grid-column: span 2; grid-row: span 2; }
.bento__media {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transition: transform .55s var(--ease-out, cubic-bezier(.22,.61,.36,1));
}
.bento__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(9,15,30,0) 28%, rgba(9,15,30,.55) 62%, rgba(9,15,30,.9) 100%);
}
.bento__card:hover .bento__media { transform: scale(1.07); }
.bento__card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1.5px solid transparent; transition: border-color .3s, box-shadow .3s; pointer-events: none;
}
.bento__card:hover::after { border-color: rgba(96,165,250,.75); box-shadow: inset 0 0 0 4px rgba(59,130,246,.18); }
.bento__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: .55rem;
  padding: 1.15rem;
}
.bento__badge {
  font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .28rem .65rem; border-radius: 999px;
  background: var(--accent-500); color: #fff;
  box-shadow: 0 4px 14px -4px rgba(59,130,246,.8);
}
.bento__title { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; line-height: 1.25; color: #fff; }
/* Keep card text white on hover/focus (global a:hover would darken the inherited color) */
.bento__card:hover, .bento__card:focus, .bento__card:focus-visible { color: #fff; }
.bento__card:hover .bento__title, .bento__card:focus-visible .bento__title, .bento__meta { color: #fff; }
.bento__card--lg .bento__title { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.bento__meta { font-size: .82rem; color: rgba(255,255,255,.78); }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .bento__card--lg { grid-column: span 2; grid-row: span 2; }
  .bento__card--lg .bento__title { font-size: clamp(1.35rem, 3.4vw, 1.9rem); }
}
@media (max-width: 680px) {
  .bento { grid-auto-rows: 172px; gap: .8rem; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento__card, .bento__card--lg { grid-column: span 1; grid-row: span 1; height: 210px; }
  .hero-x__stats li { min-width: 72px; padding: .6rem .85rem; }
  .hero-x__stats strong { font-size: 1.35rem; }
}

/* ---- Hero-x mobile fit (prevent horizontal overflow) ---- */
@media (max-width: 600px) {
  .hero-x { padding-block: 3.2rem 2.6rem; }
  .hero-x__inner { max-width: 100%; }
  .hero-x__eyebrow { white-space: normal; text-align: center; font-size: .62rem; line-height: 1.5; letter-spacing: .05em; padding: .4rem .8rem; }
  .hero-x__title { font-size: clamp(1.6rem, 7vw, 2.4rem); letter-spacing: -.02em; max-width: 100%; }
  .hero-x__title span { display: block; width: 100%; overflow-wrap: break-word; word-break: break-word; }
  .hero-x__sub { font-size: 1rem; max-width: 100%; }
  .hero-x__search { max-width: 100%; padding-left: .9rem; }
  .hero-x__search input { font-size: .95rem; }
  .hero-x__stats { gap: .5rem; width: 100%; }
  .hero-x__stats li { min-width: 0; flex: 1 1 42%; padding: .6rem .5rem; }
  .hero-x__stats strong { font-size: 1.35rem; }
  .hero-x__stats span { font-size: .6rem; letter-spacing: .04em; }
}

/* Reduced motion: freeze hero orbs + card zoom */
@media (prefers-reduced-motion: reduce) {
  .hero-x__blob { animation: none !important; }
  .bento__media { transition: none !important; }
}

/* -------------------------------------------------------------------------
   36. POST NAVIGATION (prev/next) - editorial keep-reading cards
   ------------------------------------------------------------------------- */
/* ============================================================
   Post navigation (prev / next), "Keep reading" editorial cards
   Warm Flow Lab, modern-tech system, drop-in block
   ============================================================ */

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  margin: var(--space-2xl) 0 var(--space-lg);
}

/* Card */
.post-nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0; /* allow line-clamp + prevent overflow inside grid */
  padding: clamp(var(--space-md), 3vw, var(--space-lg));
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out);
}

/* Prev sits left, Next sits right (and stays right when prev is absent) */
.post-nav__prev {
  text-align: left;
  align-items: flex-start;
}
.post-nav__next {
  text-align: right;
  align-items: flex-end;
  margin-left: auto;
}

/* Soft gradient wash that fades in on hover */
.post-nav__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--accent-50), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}
.post-nav__next::before {
  background: linear-gradient(225deg, var(--accent-50), transparent 70%);
}

/* Direction label */
.post-nav__dir {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition:
    color var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}

/* Title */
.post-nav__t {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-heading);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.25;
  color: var(--neutral-900);
  transition: color var(--dur-2) var(--ease-out);
}

/* Hover + focus lift + blue glow */
.post-nav__link:hover,
.post-nav__link:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent-400);
  box-shadow:
    0 12px 40px -10px rgba(59, 130, 246, .35),
    var(--shadow-md);
}
.post-nav__link:hover::before,
.post-nav__link:focus-visible::before {
  opacity: 1;
}

.post-nav__link:hover .post-nav__dir,
.post-nav__link:focus-visible .post-nav__dir {
  color: var(--accent-ink);
}

.post-nav__link:hover .post-nav__t,
.post-nav__link:focus-visible .post-nav__t {
  color: var(--accent-ink);
}

/* Arrow slide: the arrow glyph lives inside .post-nav__dir.
   The prev/next class is on the same <a> as .post-nav__link,
   so target the label directly on hover/focus of each card. */
.post-nav__prev:hover .post-nav__dir,
.post-nav__prev:focus-visible .post-nav__dir {
  transform: translateX(-4px);
}
.post-nav__next:hover .post-nav__dir,
.post-nav__next:focus-visible .post-nav__dir {
  transform: translateX(4px);
}

/* Focus ring (takes over box-shadow on keyboard focus, keeps the glow) */
.post-nav__link:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--bg-elevated),
    0 0 0 5px var(--accent-500),
    0 12px 40px -10px rgba(59, 130, 246, .35);
}

/* Responsive */
@media (max-width: 768px) {
  .post-nav {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .post-nav__prev,
  .post-nav__next {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .post-nav {
    margin-top: var(--space-xl);
  }
  .post-nav__t {
    font-size: var(--step-0);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .post-nav__link,
  .post-nav__dir,
  .post-nav__link::before,
  .post-nav__t {
    transition: none;
  }
  .post-nav__link:hover,
  .post-nav__link:focus-visible {
    transform: none;
  }
  .post-nav__prev:hover .post-nav__dir,
  .post-nav__prev:focus-visible .post-nav__dir,
  .post-nav__next:hover .post-nav__dir,
  .post-nav__next:focus-visible .post-nav__dir {
    transform: none;
  }
}

/* -------------------------------------------------------------------------
   37. IN-POST FAQ (Gutenberg <details> disclosure) - premium accordion
   ------------------------------------------------------------------------- */
.entry-content .wp-block-details {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  margin: 0 0 .75rem;
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.entry-content .wp-block-details:hover {
  border-color: var(--accent-400);
  box-shadow: 0 12px 34px -14px rgba(59, 130, 246, .35);
}
.entry-content .wp-block-details[open] {
  border-color: var(--accent-400);
  box-shadow: inset 3px 0 0 var(--accent-500), 0 16px 40px -16px rgba(59, 130, 246, .4);
}
.entry-content .wp-block-details > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding: var(--space-md);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.35;
  color: var(--neutral-900);
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.entry-content .wp-block-details > summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details > summary::marker { content: ""; }
/* Single circular indicator: "+" that rotates into "x" on open */
.entry-content .wp-block-details > summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: var(--radius-pill);
  background: var(--accent-50);
  color: var(--accent-600);
  font-family: var(--font-body); font-weight: 500; font-size: 1.35rem; line-height: 1;
  transition: transform var(--dur-2) var(--ease-out), background var(--dur-2), color var(--dur-2);
}
.entry-content .wp-block-details > summary:hover { color: var(--accent-600); }
.entry-content .wp-block-details > summary:focus-visible {
  outline: 2px solid var(--accent-500); outline-offset: -2px;
}
.entry-content .wp-block-details[open] > summary {
  background: var(--accent-50);
  color: var(--accent-ink);
}
.entry-content .wp-block-details[open] > summary::after {
  transform: rotate(45deg);
  background: var(--accent-500);
  color: #fff;
}
.entry-content .wp-block-details > *:not(summary) {
  margin-left: var(--space-md);
  margin-right: var(--space-md);
}
.entry-content .wp-block-details > summary + * { margin-top: .6rem; }
.entry-content .wp-block-details > *:last-child { margin-bottom: var(--space-md); }
.entry-content .wp-block-details[open] > *:not(summary) {
  animation: faqReveal var(--dur-3, 320ms) var(--ease-out) both;
}
@media (prefers-reduced-motion: reduce) {
  .entry-content .wp-block-details,
  .entry-content .wp-block-details > summary,
  .entry-content .wp-block-details > summary::after { transition: none; }
  .entry-content .wp-block-details[open] > *:not(summary) { animation: none; }
}

