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

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* --- Brand color seeds (from build placeholders) --- */
  --brand-primary:   #12776A;
  --brand-secondary: #0C3B3C;
  --brand-accent:    #E9A23B;

  /* --- 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-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);

  /* --- 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;

  /* --- Semantic surface / text --- */
  --bg:            var(--neutral-0);
  --bg-alt:        var(--neutral-50);
  --bg-elevated:   var(--neutral-0);
  --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 --- */
  --font-heading: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-ui:      "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: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --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
   ------------------------------------------------------------------------- */
.wrap, .container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--container-narrow); }
.wrap--wide { max-width: var(--container-wide); }
.container--wide   { max-width: var(--container-wide); }
.container--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); }

.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 {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: var(--step--1); color: var(--text-muted);
  list-style: none; padding: 0; margin: 0;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--neutral-400); }
.breadcrumbs a { color: inherit; text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { color: var(--link); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 700; }
.archive-hero .breadcrumbs, .archive-hero .breadcrumbs a,
.archive-hero .breadcrumbs [aria-current="page"] { color: rgba(255,255,255,.9); }
.archive-hero .breadcrumbs li:not(:last-child)::after { color: rgba(255,255,255,.5); }

/* -------------------------------------------------------------------------
   6. TAGS / PILLS / BADGES
   ------------------------------------------------------------------------- */
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
/* Scoped to .tag-list: bare `.tag` also matches <body class="tag"> on tag archives,
   which turned the page into an inline-flex row. */
.tag-list .tag {
  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-list .tag::before { content: "#"; color: var(--primary-300); }
.tag-list .tag: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;
}

/* -------------------------------------------------------------------------
   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(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out);
}
.site-header--scrolled {
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

.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 { height: 34px; width: auto; display: block; }
.brand__logo svg, .brand__logo img { height: 100%; width: auto; }
.brand:focus-visible { outline-offset: 4px; }

/* 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 .55rem; border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-weight: 700; font-size: var(--step--1);
  letter-spacing: -.01em; 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; }

/* Hamburger — hidden on desktop, shown at the breakpoint */
.nav-toggle {
  display: none; flex: 0 0 auto; margin-left: auto;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg);
  align-items: center; justify-content: center;
}
.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); }

/* Mobile drawer — off-canvas slide-in */
.mobile-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px);
  z-index: var(--z-drawer); background: var(--bg);
  box-shadow: var(--shadow-xl); padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  transform: translateX(100%); visibility: hidden;
  transition: transform var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3);
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-drawer--open { transform: translateX(0); visibility: visible; transition: transform var(--dur-3) var(--ease-out); }
.mobile-drawer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.mobile-drawer__link {
  display: block; padding: .9rem 1rem; border-radius: var(--radius-md);
  font-family: var(--font-heading); font-weight: 700; font-size: var(--step-1);
  color: var(--neutral-800); text-decoration: none;
}
.mobile-drawer__link:hover, .mobile-drawer__link.is-active { background: var(--primary-50); color: var(--primary-800); }
.drawer-backdrop {
  position: fixed; inset: 0; z-index: calc(var(--z-drawer) - 1);
  background: rgba(11,15,21,.5); opacity: 0; visibility: hidden;
  transition: opacity var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
}
.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 2)
   ------------------------------------------------------------------------- */
.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); }
.category-card {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3; text-decoration: none; color: #fff; isolation: isolate;
  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(-5px); box-shadow: var(--shadow-lg); }
.category-card__media { position: absolute; inset: 0; z-index: -1; }
.category-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-4) var(--ease-out);
}
.category-card:hover .category-card__media img { transform: scale(1.08); }
.category-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,15,21,.05) 0%, rgba(11,15,21,.78) 100%);
}
.category-card__body { position: absolute; inset: auto 0 0 0; padding: var(--space-md); }
.category-card__title { font-size: var(--step-1); color: #fff; margin: 0; }
.category-card__count { display: inline-block; margin-top: .35rem; font-size: var(--step--1); font-weight: 600; color: rgba(255,255,255,.82); }
.category-card__arrow {
  position: absolute; top: var(--space-md); right: var(--space-md);
  width: 38px; height: 38px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  display: grid; place-items: center; transition: background var(--dur-2), transform var(--dur-2);
}
.category-card:hover .category-card__arrow { background: var(--grad-brand); transform: rotate(-45deg); }

/* -------------------------------------------------------------------------
   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; }
.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 { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: var(--space-2xl); align-items: center; }
.trust-band__author { text-align: center; }
.trust-band__portrait {
  width: 180px; height: 180px; border-radius: 50%; object-fit: cover; margin-inline: auto;
  border: 4px solid var(--bg); box-shadow: 0 0 0 4px var(--primary-300), var(--shadow-lg);
}
.trust-band__name { font-size: var(--step-2); margin-top: 1rem; }
.section--ink .trust-band__name { color: #fff; }
.trust-band__role { color: var(--accent-400); font-weight: 700; font-size: var(--step--1); letter-spacing: .04em; text-transform: uppercase; }
.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 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-md) var(--space-xl); list-style: none; padding: 0; margin: 0; }
.trending__item {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-md); align-items: center;
  padding: var(--space-sm) 0; border-bottom: 1px solid var(--border);
}
.trending__rank {
  font-family: var(--font-heading); font-weight: 800; font-size: var(--step-4); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--primary-300);
  min-width: 1.6ch; font-variant-numeric: tabular-nums;
}
.trending__item:hover .trending__rank { -webkit-text-stroke-color: var(--primary-500); }
.trending__link { font-family: var(--font-heading); font-weight: 700; font-size: var(--step-1); color: var(--neutral-900); text-decoration: none; display: block; }
.trending__link:hover { color: var(--primary-700); }
.trending__meta { color: var(--text-muted); font-size: var(--step--1); margin-top: .25rem; }

/* -------------------------------------------------------------------------
   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; }

/* -------------------------------------------------------------------------
   17. FAQ accordion
   ------------------------------------------------------------------------- */
/* NOTE: `.faq` is the full-width <section>, NOT the list. The list is `.faq__list`
   (styled below) — constraining `.faq` here shrink-wrapped the whole section and
   its --bg-alt background into a narrow centered panel. */
.faq__item {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-elevated); overflow: hidden;
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.faq__item[open] { border-color: var(--primary-200); box-shadow: var(--shadow-sm); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: var(--space-md); cursor: pointer; list-style: none;
  font-family: var(--font-heading); font-weight: 700; font-size: var(--step-1); color: var(--neutral-900);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px;
  border-right: 2px solid var(--primary-600); border-bottom: 2px solid var(--primary-600);
  transform: rotate(45deg); transition: transform var(--dur-2) var(--ease-out);
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); }
.faq__a { padding: 0 var(--space-md) var(--space-md); color: var(--text-soft); }
.faq__a p { margin-bottom: .75rem; }

/* -------------------------------------------------------------------------
   18. POST CARD + CARD GRID
   ------------------------------------------------------------------------- */
.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; -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; -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 */
/* Sized to match .hero--split .hero__subtitle: --step-1 saturated at a flat 23.2px on
   every desktop, making this larger than the article body copy it introduces. */
.archive-hero__desc { font-size: clamp(1.05rem, 1rem + .35vw, 1.24rem); line-height: 1.6; color: rgba(255,255,255,.9); max-width: 62ch; margin-top: 1rem; }
.archive-hero__desc p { margin: 0; }
.archive-hero__desc p + p { margin-top: .6em; }
.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)
   ------------------------------------------------------------------------- */
.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; 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;
}
.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
   ------------------------------------------------------------------------- */
.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-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
@media (min-width: 1080px) { .single-layout--toc { grid-template-columns: 260px minmax(0, 1fr); } }

/* -------------------------------------------------------------------------
   24. FOOTER
   ------------------------------------------------------------------------- */
.site-footer { background: var(--grad-ink); color: rgba(255,255,255,.8); padding-block: var(--space-3xl) var(--space-lg); margin-top: var(--space-3xl); }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--space-xl); }
/* :not(.brand__mark-svg) — this rule whitens a MONOCHROME logo against the dark footer,
   but a CSS fill beats the fill="" presentation attribute, so it was also flattening the
   full-colour brand mark's gradient tile into a white blob. The mark must stay identical
   in header, footer and favicon. */
.site-footer__brand .brand__logo svg:not(.brand__mark-svg) *[fill] { fill: #fff; }
.site-footer__tagline { margin-top: .75rem; max-width: 40ch; color: rgba(255,255,255,.65); }
.footer-col__title { font-family: var(--font-heading); font-weight: 800; font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid rgba(255,255,255,.14); font-size: var(--step--1); color: rgba(255,255,255,.6); }
.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 in Section 7 toggles .is-visible)
   ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(var(--reveal-shift)); will-change: opacity, transform; }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out);
}
.reveal--left  { transform: translateX(calc(-1 * var(--reveal-shift))); }
.reveal--right { transform: translateX(var(--reveal-shift)); }
.reveal--scale { transform: scale(.94); }
.reveal--left.is-visible, .reveal--right.is-visible, .reveal--scale.is-visible { transform: none; }
.no-js .reveal { opacity: 1; 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. 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__grid { grid-template-columns: 1fr 1fr; }
}

/* Header collapses to the hamburger below this width.
   Measured: the 9 nav items need 842px intrinsic + brand 147 + actions 50 + padding/gaps
   = 1160px minimum. The old 900px breakpoint left a ~260px zone (900-1160) where the nav
   was shown but could not fit, so items burst out of the list, ran under the search
   button and pushed ~46px of horizontal page overflow. 1200 gives headroom over 1160. */
@media (max-width: 1200px) {
  .primary-nav, .nav-search { display: none; }
  .nav-toggle { display: inline-flex; }
}
/* The push-right lived on .primary-nav (margin-left:auto, L393); once the nav is
   display:none that auto margin vanishes and .header-actions collapsed next to the
   brand. Anchor it on the actions instead so the toggle is right-aligned at every width. */
.header-actions { margin-left: auto; }

@media (max-width: 900px) {
  .trust-band { grid-template-columns: 1fr; text-align: center; }
  .trust-band__portrait { width: 150px; height: 150px; }
}

@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__grid { 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; } }

/* -------------------------------------------------------------------------
   28. 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; }
}

/* -------------------------------------------------------------------------
   29. PRINT
   ------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .hero__blob, .hero__mesh, .newsletter, .author-box__social,
  .nav-toggle, .nav-search, .pagination, .toc, .breadcrumbs, .search-overlay { 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; }
}

/* ============================================================
   POST-QA VISUAL ENHANCEMENTS (design QA pass, 2026-07-02)
   ============================================================ */
/* Hero: stack brand line + tagline, never clip/overflow on mobile */
.hero__title { overflow-wrap: break-word; hyphens: auto; text-wrap: balance; max-width: 18ch; }
.hero__title > span { display: block; }
.hero__title-accent { color: var(--accent-400, #F2B65A); }
/* Directional scrim so hero copy is always legible over any photo */
.hero__image::after {
  background: linear-gradient(105deg, rgba(9,13,18,.88) 0%, rgba(9,13,18,.60) 46%, rgba(9,13,18,.26) 100%);
}
@media (max-width: 900px) {
  .hero__title { font-size: clamp(2.2rem, 7.2vw, 3.4rem); max-width: 16ch; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; padding-block: clamp(3rem, 12vw, 4.75rem); }
  .hero__title { font-size: clamp(1.95rem, 8.4vw, 2.6rem); letter-spacing: -.02em; max-width: none; }
  .hero__subtitle { font-size: var(--step-0); }
  .hero__image::after { background: linear-gradient(180deg, rgba(9,13,18,.74) 0%, rgba(9,13,18,.84) 100%); }
  .hero__search { max-width: 100%; }
}

/* ============================================================
   POST-QA STRUCTURAL FIXES — template(§6) ↔ CSS(§8) class bridges
   ============================================================ */
/* Trust band: the 2-col layout belongs on __inner (template), not the section */
.trust-band { display: block; }
.trust-band__inner { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: var(--space-2xl); align-items: center; }
.trust-band__props { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.trust-band__props .value-prop { display: flex; gap: .9rem; align-items: flex-start; }
.trust-band__props .value-prop h3 { margin: 0 0 .25rem; font-size: var(--step-0); }
.trust-band__props .value-prop p { margin: 0; color: var(--text-soft); }
.value-prop__icon { font-size: 1.5rem; line-height: 1; flex: 0 0 auto; }
/* Avatar ring is an inline <span>; give it a box so its fixed size applies (was ballooning) */
.author-box__ring { display: inline-flex; }
.trust-band__author .author-box__ring { width: 120px; height: 120px; }
.trust-band__author-name { display: block; font-family: var(--font-heading); }
.trust-band__author-role { display: block; color: var(--accent-500); font-weight: 700; font-size: var(--step--1); }

/* Footer: template uses __cols (CSS only defined __grid); titles were dark-on-dark */
.site-footer__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr; gap: var(--space-xl); }
.footer__col-title { color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: var(--step-0); margin: 0 0 .9rem; letter-spacing: .01em; }
.site-footer__col ul, .site-footer__cols .menu--footer, .site-footer__col .children { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer__col li { margin: 0; }
.site-footer__newsletter p { color: rgba(255,255,255,.65); margin: 0 0 .9rem; }
.site-footer__bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }

@media (max-width: 900px) {
  .trust-band__inner { grid-template-columns: 1fr; text-align: center; }
  .trust-band__author .author-box__ring { width: 104px; height: 104px; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer__cols { grid-template-columns: 1fr; }
  .site-footer__bar-inner { justify-content: center; text-align: center; }
}

/* ============================================================
   POST-QA: hero is above the fold — never gate its visibility on scroll-JS
   (title spans used .reveal, which stays opacity:0 until an IntersectionObserver
   fires; on slow JS the H1 could vanish). Force hero content visible; other hero
   elements keep their auto-playing heroIn entrance animation.
   ============================================================ */
.hero .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero .reveal { opacity: 1; transform: none; animation: none; }
}

/* ============================================================
   POST-QA v2 — comprehensive design pass (user tasks 1-8)
   Bridges undefined template classes + targeted enhancements.
   ============================================================ */

/* --- TASK 1: hero bg image covers whole section, never repeats --- */
.hero__image { background-size: cover; background-position: center; background-repeat: no-repeat; }

/* --- generic cover-image helper (featured img, category img, etc.) --- */
.tt-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- TASK 2: category-card title + count --- */
.category-card__body { padding: var(--space-lg); display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.category-card__title { font-family: var(--font-heading); font-weight: 800; font-size: var(--step-2); color: #fff; margin: 0; letter-spacing: -.01em; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.category-card__count { display: inline-flex; align-items: center; gap: .4rem; margin: 0; padding: .3rem .75rem; border-radius: var(--radius-pill); background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.32); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: var(--step--2); letter-spacing: .02em; text-transform: uppercase; }

/* --- TASK 3: footer subscribe (clean stacked field on dark) --- */
.site-footer__newsletter .newsletter__form { background: transparent; border: 0; border-radius: 0; padding: 0; margin: 0; max-width: none; display: grid; gap: .6rem; }
.site-footer__newsletter .newsletter__form input { flex: none; width: 100%; min-width: 0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-md); color: #fff; padding: .75rem 1rem; font-size: var(--step-0); }
.site-footer__newsletter .newsletter__form input::placeholder { color: rgba(255,255,255,.5); }
.site-footer__newsletter .newsletter__form input:focus { outline: none; border-color: var(--accent-400); background: rgba(255,255,255,.12); }
.site-footer__newsletter .newsletter__form .btn { width: 100%; justify-content: center; background: var(--accent-500); color: #17110a; border: 0; }
.site-footer__newsletter .newsletter__form .btn:hover { background: var(--accent-400); }

/* --- TASK 4: single post header (premium, centered) --- */
.single__head { padding-block: var(--space-2xl) var(--space-lg); text-align: center; }
.single__head .breadcrumbs { justify-content: center; }
.single__head .category-badge { margin-bottom: .5rem; }
.single__title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.9rem, 1.15rem + 3.2vw, 3.1rem); line-height: 1.12; letter-spacing: -.02em; margin: .7rem auto 0; max-width: 24ch; color: var(--neutral-900); }
.single__meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .55rem; margin-top: 1.15rem; color: var(--text-muted); font-size: var(--step--1); }
.single__byline a { color: var(--text-soft); font-weight: 600; text-decoration: none; }
.single__byline a:hover { color: var(--primary-700); }
.author-box__ring--sm { width: 40px; height: 40px; padding: 2px; }

/* --- single layout: sticky TOC + content --- */
.single__layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.single__toc-col { position: sticky; top: calc(var(--header-h, 68px) + 1rem); }
.single__content-col { min-width: 0; }
.single__tags { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.single__tags a { display: inline-block; padding: .3rem .8rem; border-radius: var(--radius-pill); background: var(--bg-alt); color: var(--text-soft); font-size: var(--step--1); text-decoration: none; }
.single__tags a:hover { background: var(--primary-50); color: var(--primary-800); }
.tag-label { font-family: var(--font-heading); font-weight: 700; color: var(--text-soft); margin-right: .35rem; }

/* --- TASK 5: featured image (contained, rounded, shadow) + hide ALL captions --- */
.single__hero { max-width: 1120px; margin: 0 auto var(--space-2xl); padding-inline: var(--gutter); }
.single__hero img, .single__hero .tt-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; }
.entry-content figcaption, .single__hero figcaption, .wp-element-caption, figure.wp-block-image figcaption { display: none !important; }

/* --- TASK 6: author box enhancement (photo set separately) --- */
.author-box { position: relative; overflow: hidden; }
.author-box::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-brand); }

/* --- TASK 7: previous / next post navigation --- */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-block: var(--space-2xl); }
.post-nav__link { display: flex; flex-direction: column; gap: .35rem; padding: var(--space-md) var(--space-lg); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elevated); text-decoration: none; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2); }
.post-nav__link:hover { border-color: var(--primary-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-nav__prev { grid-column: 1; }
.post-nav__next { grid-column: 2; text-align: right; align-items: flex-end; }
.post-nav__dir { font-family: var(--font-heading); font-weight: 700; font-size: var(--step--1); color: var(--primary-700); text-transform: uppercase; letter-spacing: .04em; }
.post-nav__t { color: var(--text-soft); font-weight: 600; line-height: 1.35; }
.post-nav__link:hover .post-nav__t { color: var(--primary-800); }

/* --- header: hamburger bars (markup uses .nav-toggle__bar) + actions/search --- */
.header-actions { display: flex; align-items: center; gap: .4rem; }
.nav-toggle__bar { display: block; width: 22px; height: 2px; background: var(--neutral-900); border-radius: 2px; transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2); }
.nav-toggle__bar + .nav-toggle__bar { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.header-search { border-top: 1px solid var(--border); background: var(--bg); }
.header-search .wrap { padding-block: .8rem; }

/* --- mobile drawer internals --- */
.mobile-drawer__panel { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.mobile-drawer__close { position: absolute; top: .7rem; right: 1rem; width: 40px; height: 40px; border: 0; background: var(--bg-alt); border-radius: var(--radius-pill); font-size: 1.6rem; line-height: 1; color: var(--neutral-900); cursor: pointer; }
.mobile-drawer__close:hover { background: var(--primary-50); color: var(--primary-800); }
.mobile-drawer__backdrop { display: none; }
.mobile-drawer__search { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }

/* --- trending body/title (rest of .trending already styled) --- */
.trending__body { min-width: 0; }
.trending__title { font-size: var(--step-0); margin: .15rem 0 0; line-height: 1.32; }
.trending__title a { color: var(--neutral-900); text-decoration: none; }
.trending__title a:hover { color: var(--primary-700); }

/* --- stat suffix + post-card variants --- */
.stat__suffix { font-family: var(--font-heading); font-weight: 800; font-size: var(--step-2); color: var(--primary-600); vertical-align: top; }
.post-card__date, .post-card__rt { white-space: nowrap; }
.post-card--row { display: grid; grid-template-columns: 118px 1fr; gap: var(--space-md); align-items: center; }
.post-card--row .post-card__media { aspect-ratio: 1 / 1; border-radius: var(--radius-md); overflow: hidden; margin: 0; }
.post-card--row .post-card__excerpt { display: none; }
.post-card--row .post-card__title { font-size: var(--step-0); }

/* --- brand mark/text, page headers, search form, faq, comments, widgets, misc --- */
.brand__logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand__mark { width: 15px; height: 15px; background: var(--grad-brand); border-radius: 50% 50% 50% 0; transform: rotate(45deg); flex: 0 0 auto; }
.brand__text { font-family: var(--font-heading); font-weight: 800; font-size: var(--step-1); color: var(--primary-700); letter-spacing: -.02em; }
.page-article__head { padding-block: var(--space-2xl) var(--space-md); text-align: center; }
.page-article__title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2rem, 1.3rem + 3vw, 3rem); letter-spacing: -.02em; }
.search-form__input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: .7rem 1.1rem; background: var(--bg); color: var(--neutral-900); font-size: var(--step-0); }
.search-form__btn { flex: 0 0 auto; }
.faq__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.comments-area { margin-top: var(--space-2xl); }
.comments-title, .comment-reply-title { font-family: var(--font-heading); font-weight: 800; font-size: var(--step-2); margin-bottom: var(--space-md); }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); }
.comment-list .comment { padding: var(--space-md); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-elevated); }
.no-comments, .no-results { color: var(--text-muted); }
.widget { margin-bottom: var(--space-lg); }
.widget__title { font-family: var(--font-heading); font-weight: 700; font-size: var(--step-1); margin-bottom: .6rem; }
.site-footer__copy { margin: 0; }
.site-footer__social { display: flex; gap: .5rem; margin-top: 1rem; }
.site-footer__social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.site-footer__social a:hover { background: var(--accent-500); color: #17110a; }

/* --- responsive --- */
@media (max-width: 980px) {
  .single__layout { grid-template-columns: 1fr; }
  .single__toc-col { display: none; }
}
@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__prev, .post-nav__next { grid-column: 1; text-align: left; align-items: flex-start; }
  .single__hero img, .single__hero .tt-cover { border-radius: var(--radius-md); }
}

/* ============================================================
   POST-QA v3 — responsive audit fixes
   ============================================================ */

/* Newsletter band uses .section__title/.section__eyebrow on a dark teal bg -> force light */
.newsletter .section__title, .newsletter__inner .section__title { color: #fff; }
.newsletter .section__eyebrow, .newsletter__inner .section__eyebrow { color: rgba(255,255,255,.85); }

/* Breadcrumbs: PHP already prints a "›" separator span; kill the duplicate CSS "/" */
.breadcrumbs li:not(:last-child)::after { content: none; }
.breadcrumbs__sep { color: var(--neutral-400); margin: 0 .1rem; }
.archive-hero .breadcrumbs__sep { color: rgba(255,255,255,.55); }

/* Hamburger: 3 .nav-toggle__bar spans must stack vertically */
.nav-toggle { flex-direction: column; }

/* Category badge is position:absolute (for card media overlay). In contexts with no
   media box (trending list, single header) make it flow inline so it can't overlap. */
.trending__body .post-card__badge,
.single__head .post-card__badge { position: static; display: inline-flex; margin: 0 0 .5rem; }
.single__head .post-card__badge { margin-bottom: .6rem; }

/* ---- tweaks: wider hero content + category title/count bottom spacing ---- */
.hero__inner { max-width: 1040px; }
.category-card__body { position: absolute; inset: auto 0 0 0; padding: var(--space-lg); display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.category-card__title { margin: 0; line-height: 1.1; }
.category-card__count { margin: 0; }

/* =====================================================================
   NEXT-LEVEL MODERN REDESIGN v4 — editorial serif + sans, glass header,
   refined cards/buttons/type. Premium authority-publisher look.
   ===================================================================== */

/* ---- refined tokens ---- */
:root {
  --bg-alt: #f5f8f8;
  --border: #e7edee;
  --border-strong: #d7e0e1;
  --radius-card: 18px;
  --shadow-card: 0 1px 3px rgba(11,46,42,.05), 0 14px 34px -20px rgba(11,46,42,.28);
  --shadow-card-hover: 0 24px 54px -22px rgba(11,46,42,.34), 0 6px 16px rgba(11,46,42,.08);
  --ink-900: #0c1d1b;
}

/* ---- Editorial type: serif headlines (Fraunces), sans UI/labels (Inter) ---- */
body { font-family: var(--font-body); font-optical-sizing: auto; }
h1, h2, h3, h4,
.hero__title, .single__title, .section__title, .archive-hero__title, .page-article__title,
.post-card__title, .author-box__name, .trending__title, .featured-block__main .post-card__title,
.newsletter .section__title, .comments-title {
  font-family: var(--font-heading); font-weight: 600; letter-spacing: -.015em; font-optical-sizing: auto;
}
.hero__title, .single__title, .archive-hero__title, .page-article__title { font-weight: 600; letter-spacing: -.022em; }
.hero__title { font-weight: 600; }
/* small UI + labels stay in the sans face */
.section__eyebrow, .hero__eyebrow, .post-card__badge, .cat-badge, .category-card__count,
.primary-nav__link, .btn, .stat__label, .stat__suffix, .trust-band__role, .author-box__role,
.tag-label, .single__tags a, .footer__col-title, .post-nav__dir, .breadcrumbs, .breadcrumbs *,
.trending__rank, .single__byline, .single__meta, .post-card__meta, .toc, .toc__title,
.brand__text, .search-form__btn, .newsletter__form .btn, .value-prop__label {
  font-family: var(--font-ui);
}
.stat__num { font-family: var(--font-heading); font-weight: 600; }

/* ---- Header: premium glassmorphism on scroll ---- */
.site-header { transition: background var(--dur-2) var(--ease-out), box-shadow var(--dur-2), border-color var(--dur-2); }
.site-header--scrolled {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(11,46,42,.05), 0 14px 34px -24px rgba(11,46,42,.4);
  border-bottom: 1px solid rgba(231,237,238,.7);
}
.primary-nav__list { gap: clamp(.4rem, .2rem + 1vw, 1.5rem); }
.primary-nav__link { position: relative; font-weight: 600; font-size: .95rem; letter-spacing: .004em; padding-block: .35rem; color: var(--neutral-700); }
.primary-nav__link:hover { color: var(--primary-700); }
.primary-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--grad-text); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.primary-nav__link:hover::after,
.primary-nav__item.current-menu-item .primary-nav__link::after,
.primary-nav__item.current-cat .primary-nav__link::after,
.primary-nav__link.is-active::after { transform: scaleX(1); }
.nav-search, .nav-toggle { border-radius: 12px; transition: background var(--dur-2), color var(--dur-2), transform var(--dur-2); }

/* ---- Buttons: modern, tactile ---- */
.btn { border-radius: 12px; font-weight: 600; letter-spacing: .008em; padding: .8rem 1.4rem; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2), background var(--dur-2), color var(--dur-2); }
.btn--primary { background: var(--primary-600); color: #fff; box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--brand-primary) 62%, transparent); }
.btn--primary:hover { transform: translateY(-2px); background: var(--primary-700); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--brand-primary) 68%, transparent); }
.btn--ghost { border: 1.5px solid var(--border-strong); background: transparent; color: var(--neutral-800); }
.btn--ghost:hover { border-color: var(--primary-500); color: var(--primary-700); transform: translateY(-2px); }

/* ---- Section heading system (eyebrow + serif title) ---- */
.section__head { margin-bottom: var(--space-lg); }
.section__eyebrow { display: inline-flex; align-items: center; gap: .55rem; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700; color: var(--primary-600); margin-bottom: .5rem; }
.section__eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent-500); border-radius: 2px; }
.section__title { font-size: var(--step-3); line-height: 1.1; }
.section__link { font-family: var(--font-ui); font-weight: 600; color: var(--primary-700); }

/* ---- Post cards: modern editorial ---- */
.post-card { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg); box-shadow: var(--shadow-card); overflow: hidden; transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3), border-color var(--dur-3); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: color-mix(in srgb, var(--brand-primary) 26%, var(--border)); }
.post-card__body { padding: 1.25rem 1.25rem 1.4rem; }
.post-card__title { font-size: var(--step-1); line-height: 1.24; margin: 0 0 .5rem; }
.post-card__title a { color: var(--ink-900); text-decoration: none; background-image: linear-gradient(var(--primary-600), var(--primary-600)); background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat; transition: color var(--dur-2), background-size var(--dur-3) var(--ease-out); }
.post-card__title a:hover { color: var(--primary-700); background-size: 100% 2px; }
.post-card__excerpt { color: var(--text-soft); font-size: var(--step-0); line-height: 1.6; }
.post-card__meta { color: var(--text-muted); font-size: .82rem; font-weight: 500; }
.post-card__badge, .cat-badge { border-radius: 999px; font-size: .68rem; letter-spacing: .06em; padding: .42em .85em; background: rgba(12,29,27,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-weight: 700; }

/* ---- Category cards: refined ---- */
.category-card { border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.category-card:hover { box-shadow: var(--shadow-card-hover); }
.category-card__title { font-family: var(--font-heading); font-weight: 600; }
.category-card__media::after { background: linear-gradient(180deg, rgba(9,20,18,.06) 0%, rgba(9,20,18,.5) 55%, rgba(9,20,18,.82) 100%); }

/* ---- Hero: editorial refinement ---- */
.hero__eyebrow { letter-spacing: .14em; font-weight: 700; font-size: .74rem; }
.hero__title { line-height: 1.04; }
.hero__subtitle { font-size: var(--step-1); line-height: 1.55; color: rgba(255,255,255,.9); }

/* ---- Article typography: serif headings, comfortable body ---- */
.entry-content { font-size: 1.12rem; line-height: 1.75; color: var(--neutral-800); }
.entry-content > p { margin-block: 1.15rem; }
.entry-content h2 { font-family: var(--font-heading); font-weight: 600; font-size: var(--step-2); letter-spacing: -.015em; margin-top: 2.4rem; margin-bottom: .9rem; line-height: 1.2; }
.entry-content h3 { font-family: var(--font-heading); font-weight: 600; font-size: var(--step-1); margin-top: 1.8rem; margin-bottom: .6rem; }
.entry-content a { color: var(--primary-700); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.entry-content strong { color: var(--ink-900); font-weight: 700; }
.entry-content blockquote { border-left: 3px solid var(--accent-500); background: var(--bg-alt); padding: 1rem 1.4rem; border-radius: 0 12px 12px 0; font-style: normal; }
.entry-content .wp-block-image img, .single__hero img { border-radius: 16px; }

/* ---- Callout groups (Key Takeaways / tips) ---- */
.is-style-callout, .wp-block-group.is-style-callout { border: 1px solid var(--border); border-left: 4px solid var(--primary-500); background: var(--bg-alt); border-radius: 14px; padding: 1.25rem 1.5rem; margin-block: 1.75rem; }
.is-style-callout.key-takeaways { border-left-color: var(--accent-500); background: color-mix(in srgb, var(--accent-500) 8%, #fff); }
.is-style-callout.tip { border-left-color: var(--success); }
.is-style-callout h2, .is-style-callout h3 { margin-top: 0; }

/* ---- FAQ / details ---- */
.wp-block-details, details.wp-block-details { border: 1px solid var(--border); border-radius: 14px; padding: .35rem 1.2rem; margin-block: .7rem; background: var(--bg); transition: border-color var(--dur-2), box-shadow var(--dur-2); }
.wp-block-details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.wp-block-details summary { font-family: var(--font-heading); font-weight: 600; font-size: 1.08rem; padding: .85rem 0; cursor: pointer; color: var(--ink-900); }

/* ---- Footer: premium dark ---- */
.site-footer { background: linear-gradient(180deg, #0c2422 0%, #081a18 100%); }
.footer__col-title { text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: 700; color: rgba(255,255,255,.55); }
.site-footer__col a { transition: color var(--dur-1), padding-left var(--dur-2); }
.site-footer__col a:hover { color: #fff; padding-left: 3px; }
.brand__text { letter-spacing: -.01em; }

/* ---- reveal: a touch smoother ---- */
.reveal { transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); }

/* ---- /categories hub ---- */
.cat-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-lg); }
.cat-hub-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; text-decoration: none; box-shadow: var(--shadow-card); transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3), border-color var(--dur-3); }
.cat-hub-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: color-mix(in srgb, var(--brand-primary) 26%, var(--border)); }
.cat-hub-card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.cat-hub-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease-out); }
.cat-hub-card:hover .cat-hub-card__media img { transform: scale(1.06); }
.cat-hub-card__badge { position: absolute; top: .8rem; left: .8rem; background: rgba(12,29,27,.72); color: #fff; font-family: var(--font-ui); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .4em .85em; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cat-hub-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.cat-hub-card__title { font-family: var(--font-heading); font-weight: 600; font-size: var(--step-2); color: var(--ink-900); letter-spacing: -.01em; }
.cat-hub-card__desc { color: var(--text-soft); font-size: .95rem; line-height: 1.55; }
.cat-hub-card__link { margin-top: .3rem; font-family: var(--font-ui); font-weight: 600; color: var(--primary-700); font-size: .9rem; }
.cat-hub-card:hover .cat-hub-card__link { color: var(--primary-900); }

/* ---- mobile drawer: full-screen overlay + dimmed blur backdrop + sliding panel ---- */
.mobile-drawer { position: fixed; inset: 0; width: auto; max-width: none; background: transparent; box-shadow: none; padding: 0; transform: none; visibility: hidden; pointer-events: none; overflow: visible; }
.mobile-drawer--open { transform: none; visibility: visible; pointer-events: auto; }
/* z-index 0/1 below: the backdrop is LAST in the DOM (header.php:90) and the panel FIRST
   (header.php:73). With both at z-index:auto they paint in DOM order, so the backdrop
   painted ON TOP of the panel — its backdrop-filter then sampled the panel itself and its
   rgba() tint washed over it, blurring the drawer's own menu. Both values are local to
   .mobile-drawer's stacking context (position:fixed + --z-drawer), so they cannot leak. */
.mobile-drawer__backdrop { display: block; position: absolute; inset: 0; z-index: 0; background: rgba(8,20,18,.52); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; transition: opacity var(--dur-3) var(--ease-out); }
.mobile-drawer--open .mobile-drawer__backdrop { opacity: 1; }
.mobile-drawer__panel { position: absolute; z-index: 1; top: 0; right: 0; height: 100%; width: min(86vw, 380px); background: var(--bg); box-shadow: -20px 0 60px -20px rgba(8,20,18,.5); padding: calc(var(--header-h, 72px) + 1.25rem) var(--gutter) 2rem; overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); transition: transform var(--dur-3) var(--ease-out); display: flex; flex-direction: column; gap: 1rem; }
.mobile-drawer--open .mobile-drawer__panel { transform: translateX(0); }
.mobile-drawer__list { display: flex; flex-direction: column; gap: .15rem; }
.mobile-drawer__list a, .mobile-drawer__panel .menu-item a { display: block; padding: .95rem 1rem; border-radius: 12px; font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem; color: var(--neutral-800); text-decoration: none; transition: background var(--dur-2), color var(--dur-2); }
.mobile-drawer__list a:hover, .mobile-drawer__panel .menu-item a:hover { background: var(--primary-50); color: var(--primary-800); }
@media (prefers-reduced-motion: reduce) { .mobile-drawer__panel, .mobile-drawer__backdrop { transition: none; } }

.mobile-drawer { overflow: hidden; }
.mobile-drawer--open { overflow: visible; }

/* hard guarantee: no horizontal scrollbar at any width */
html { overflow-x: clip; }

/* =====================================================================
   v5 — sticky fix + hero animations + FAQ + footer + newsletter polish
   ===================================================================== */

/* --- TASK 4: restore sticky header. overflow-x:clip on <html> breaks
   position:sticky; move the no-horizontal-scroll guard to <body>. --- */
html { overflow-x: visible; }
body { overflow-x: clip; }

/* --- TASK 1: HERO, next-level modern animations --- */
/* shimmering gold accent headline */
.hero__title-accent {
  background: linear-gradient(100deg, #f3ba63 0%, #E9A23B 22%, #ffe7b3 50%, #E9A23B 78%, #f3ba63 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: heroShimmer 7s linear infinite;
}
@keyframes heroShimmer { to { background-position: -250% 0; } }
/* subtle dot-grid texture for depth */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(120% 90% at 30% 20%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 30% 20%, #000 30%, transparent 75%);
}
/* livelier floating orbs */
.hero__blob { opacity: .62; filter: blur(44px); }
.hero__blob--1 { animation-duration: 17s; }
.hero__blob--2 { animation-duration: 21s; }
/* animated scroll cue */
.hero__scroll { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; display: grid; justify-items: center; align-content: start; padding-top: 7px; transition: border-color var(--dur-2); }
.hero__scroll:hover { border-color: rgba(255,255,255,.9); }
.hero__scroll span { width: 4px; height: 8px; border-radius: 2px; background: #fff; animation: heroScrollDot 1.7s var(--ease-in-out) infinite; }
@keyframes heroScrollDot { 0% { opacity: 0; transform: translateY(0); } 35% { opacity: 1; } 75% { opacity: 0; transform: translateY(13px); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__title-accent { animation: none; } .hero__scroll span { animation: none; } }

/* --- TASK 2: FAQ accordion --- */
.faq__list { max-width: 780px; margin-inline: auto; display: grid; gap: .85rem; }
.faq__item { border: 1px solid var(--border); border-radius: 16px; background: var(--bg); overflow: hidden; transition: border-color var(--dur-2), box-shadow var(--dur-2); }
.faq__item:hover { border-color: color-mix(in srgb, var(--brand-primary) 20%, var(--border)); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; background: transparent; border: 0; cursor: pointer; text-align: left; font-family: var(--font-heading); font-weight: 600; font-size: 1.12rem; color: var(--ink-900); transition: color var(--dur-2); }
.faq__q::after { content: none; }
.faq__icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-primary) 10%, #fff); color: var(--primary-700); font-size: 1.35rem; font-weight: 400; line-height: 0; transition: transform var(--dur-3) var(--ease-spring), background var(--dur-2), color var(--dur-2); }
.faq__q[aria-expanded="true"] { color: var(--primary-800); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(135deg); background: var(--primary-600); color: #fff; }
.faq__item:has(.faq__q[aria-expanded="true"]) { border-color: var(--primary-300); box-shadow: var(--shadow-md); }
.faq__a { padding: 0 1.4rem; color: var(--text-soft); line-height: 1.68; }
.faq__a:not([hidden]) { animation: faqReveal .32s var(--ease-out); }
.faq__a p { margin: 0 0 1.2rem; }
@keyframes faqReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* --- TASK 5: NEWSLETTER "Stay in the loop" --- */
.newsletter { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(2.5rem, 2rem + 3vw, 4rem); background: linear-gradient(135deg, #0e5f54 0%, #12776A 46%, #0c3b3c 100%); color: #fff; text-align: center; box-shadow: 0 34px 70px -30px rgba(11,46,42,.6); }
.newsletter::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 110% at 50% -10%, rgba(233,162,59,.26), transparent 62%); }
.newsletter::after { content: ""; position: absolute; width: 360px; height: 360px; right: -90px; bottom: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(233,162,59,.32), transparent 70%); filter: blur(20px); pointer-events: none; }
.newsletter__inner { position: relative; max-width: 600px; margin-inline: auto; }
.newsletter .section__eyebrow { color: var(--accent-400); justify-content: center; }
.newsletter .section__eyebrow::before { background: var(--accent-400); }
.newsletter__text, .newsletter .section__title + p { color: rgba(255,255,255,.9); margin-top: .6rem; }
.newsletter__form { display: flex; gap: .5rem; margin-top: 1.9rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26); border-radius: 999px; padding: .4rem; max-width: 500px; margin-inline: auto; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.newsletter__form input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: .85rem 1.25rem; font-size: 1rem; }
.newsletter__form input::placeholder { color: rgba(255,255,255,.62); }
.newsletter__form input:focus { outline: none; }
.newsletter__form .btn { flex: 0 0 auto; background: var(--accent-500); color: #17110a; border: 0; border-radius: 999px; font-weight: 700; }
.newsletter__form .btn:hover { background: var(--accent-400); transform: translateY(-1px); }
.newsletter__note { position: relative; }
/* 680, not 560: the form is switched to flex-direction:column at <=680px (L1094), but the
   pill chrome (background/border/padding/999px radius) and the auto-width button were only
   dropped at <=560px — so between 561-680 it stacked while still wearing its horizontal
   pill. Both breakpoints must agree. */
@media (max-width: 680px) {
  .newsletter__form { flex-direction: column; background: transparent; border: 0; padding: 0; gap: .6rem; box-shadow: none; }
  .newsletter__form input { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26); border-radius: 12px; }
  .newsletter__form .btn { width: 100%; border-radius: 12px; }
}

/* --- TASK 3: FOOTER, structure + design --- */
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-brand); }
.site-footer__cols { padding-block: var(--space-2xl) var(--space-xl); gap: var(--space-2xl) var(--space-xl); align-items: start; }
.site-footer__brand .brand__logo { margin-bottom: .9rem; }
.site-footer__brand .brand__text { color: #fff; font-size: 1.45rem; }
.site-footer__brand .brand__mark { background: var(--grad-brand); }
.site-footer__tagline { color: rgba(255,255,255,.6); line-height: 1.6; max-width: 34ch; }
.footer__col-title { color: rgba(255,255,255,.5); margin-bottom: 1rem; }
.site-footer__col ul, .site-footer__cols .menu--footer { gap: .65rem; }
.site-footer__col a { color: rgba(255,255,255,.74); }
.site-footer__col a:hover { color: #fff; padding-left: 4px; }
.site-footer__newsletter { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 16px; padding: 1.5rem 1.4rem; }
.site-footer__newsletter p { color: rgba(255,255,255,.62); }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.18); }
.site-footer__bar-inner { padding-block: var(--space-md); }
.site-footer__copy { color: rgba(255,255,255,.5); }
.site-footer__legal { gap: 1.1rem 1.4rem; }
.site-footer__legal a { color: rgba(255,255,255,.6); }
.site-footer__legal a:hover { color: #fff; }

/* =====================================================================
   MODERN SPLIT HERO (full redesign) — overrides the old dark hero
   ===================================================================== */
.hero.hero--split {
  min-height: auto; color: var(--text); overflow: clip; display: block; isolation: isolate;
  position: relative;
  background: radial-gradient(120% 95% at 88% -10%, #e8f3f1 0%, transparent 55%),
              linear-gradient(180deg, #fbfdfd 0%, #eef6f5 100%);
  padding-block: clamp(2.5rem, 1.5rem + 6vw, 6rem) clamp(2.5rem, 1.5rem + 4vw, 5rem);
}
.hero.hero--split::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: radial-gradient(rgba(12,59,60,.06) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(130% 80% at 18% 8%, #000 22%, transparent 72%);
          mask-image: radial-gradient(130% 80% at 18% 8%, #000 22%, transparent 72%);
}
.hero--split .hero__aura { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero--split .hero__orb { position: absolute; border-radius: 50%; filter: blur(58px); opacity: .5; }
.hero--split .hero__orb--1 { width: 32vmax; height: 32vmax; top: -12vmax; right: -8vmax; background: radial-gradient(circle, rgba(18,119,106,.5), transparent 70%); animation: orbFloat 22s var(--ease-in-out) infinite alternate; }
.hero--split .hero__orb--2 { width: 24vmax; height: 24vmax; bottom: -10vmax; left: -8vmax; background: radial-gradient(circle, rgba(233,162,59,.42), transparent 70%); animation: orbFloat 28s var(--ease-in-out) infinite alternate-reverse; }
.hero--split .hero__orb--3 { width: 18vmax; height: 18vmax; top: 42%; left: 46%; background: radial-gradient(circle, rgba(12,59,60,.24), transparent 70%); animation: orbFloat 32s var(--ease-in-out) infinite alternate; }
@keyframes orbFloat { to { transform: translate3d(4vmax, -3vmax, 0) scale(1.12); } }

/* split grid */
.hero--split .hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero--split .hero__lead { max-width: 640px; }

/* eyebrow */
.hero--split .hero__eyebrow { display: inline-flex; align-items: center; gap: .55rem; padding: .42rem .95rem; border-radius: 999px; background: rgba(18,119,106,.09); border: 1px solid rgba(18,119,106,.2); color: var(--primary-700); font-family: var(--font-ui); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin: 0; opacity: 0; transform: none; animation: heroFade .7s var(--ease-out) .1s forwards; }
.hero--split .hero__eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-500); box-shadow: 0 0 0 4px rgba(233,162,59,.22); }

/* headline with masked line reveal */
.hero--split .hero__title { font-family: var(--font-heading); font-weight: 600; font-size: clamp(2.4rem, 1.3rem + 4.6vw, 4.5rem); line-height: 1.04; letter-spacing: -.026em; color: var(--ink-900); margin: 1.1rem 0 0; }
.hero--split .hero__line { display: block; overflow: hidden; padding-block: .03em; }
.hero--split .hero__line > span { display: block; transform: translateY(115%); animation: heroLineUp .95s var(--ease-out) forwards; }
.hero--split .hero__line:nth-child(1) > span { animation-delay: .16s; }
.hero--split .hero__line:nth-child(2) > span { animation-delay: .30s; }
@keyframes heroLineUp { to { transform: none; } }
.hero--split .hero__accent { font-style: normal; background: linear-gradient(100deg, #12776A 0%, #0ea089 30%, #E9A23B 60%, #12776A 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: heroShimmer 7s linear infinite; }

/* subtitle / actions / stats */
.hero--split .hero__subtitle { color: var(--text-soft); font-size: clamp(1.05rem, 1rem + .35vw, 1.24rem); line-height: 1.6; margin-top: 1.35rem; max-width: 52ch; opacity: 0; animation: heroFade .7s var(--ease-out) .48s forwards; }
.hero--split .hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; opacity: 0; animation: heroFade .7s var(--ease-out) .62s forwards; }
.hero--split .hero__actions .btn { display: inline-flex; align-items: center; gap: .5rem; }
.hero--split .hero__actions .btn svg { transition: transform var(--dur-2) var(--ease-out); }
.hero--split .hero__actions .btn:hover svg { transform: translateX(3px); }
/* ghost button belongs on a LIGHT hero now — override the old dark-hero white styling */
.hero.hero--split .btn--ghost { color: var(--primary-800); border-color: rgba(18,119,106,.34); background: transparent; }
.hero.hero--split .btn--ghost:hover { color: #fff; background: var(--primary-700); border-color: var(--primary-700); transform: translateY(-2px); }
.hero--split .hero__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; margin: 2.4rem 0 0; padding-top: 1.8rem; border-top: 1px solid var(--border); opacity: 0; animation: heroFade .7s var(--ease-out) .78s forwards; }
.hero--split .hero__stats li { display: flex; flex-direction: column; }
.hero--split .hero__stats strong { font-family: var(--font-heading); font-weight: 600; font-size: 1.75rem; color: var(--primary-700); line-height: 1; }
.hero--split .hero__stats span { font-family: var(--font-ui); font-size: .8rem; color: var(--text-muted); margin-top: .4rem; }
@keyframes heroFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* showcase cards */
.hero--split .hero__showcase { position: relative; transform-style: preserve-3d; transition: transform .25s var(--ease-out); }
.hero-card { position: relative; display: block; text-decoration: none; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); }
.hero-card--feature { aspect-ratio: 4 / 3; opacity: 0; transform: translateY(26px) scale(.97); animation: heroCardIn .9s var(--ease-out) .38s forwards; }
.hero-card--feature .hero-card__media { position: absolute; inset: 0; }
.hero-card--feature img, .hero-card--feature .tt-cover { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.hero-card--feature:hover img, .hero-card--feature:hover .tt-cover { transform: scale(1.06); }
.hero-card__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,20,18,0) 28%, rgba(8,20,18,.86) 100%); z-index: 1; }
.hero-card__meta { position: absolute; top: 1rem; left: 1rem; z-index: 2; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.hero-card__kicker { background: var(--accent-500); color: #17110a; font-family: var(--font-ui); font-weight: 700; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; padding: .38em .75em; border-radius: 999px; }
.hero-card__title { position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1.2rem; z-index: 2; color: #fff; font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.2rem, 1rem + .8vw, 1.65rem); line-height: 1.2; letter-spacing: -.01em; }
.hero-card__meta .post-card__badge, .hero-card__mini-body .post-card__badge { position: static; }
.hero-card__mini-body .post-card__badge { background: rgba(18,119,106,.1); color: var(--primary-700); -webkit-backdrop-filter: none; backdrop-filter: none; align-self: flex-start; }
.hero__stack { display: grid; gap: .8rem; margin-top: .8rem; }
.hero-card--mini { display: grid; grid-template-columns: 96px 1fr; gap: .95rem; align-items: center; background: #fff; border: 1px solid var(--border); padding: .55rem; border-radius: 16px; box-shadow: var(--shadow-xs); opacity: 0; transform: translateY(14px); animation: heroMiniIn .7s var(--ease-out) var(--d, .4s) forwards; transition: border-color var(--dur-2), box-shadow var(--dur-2), transform var(--dur-2); }
.hero-card--mini:hover { border-color: var(--primary-300); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.hero-card--mini .hero-card__thumb { width: 96px; height: 72px; border-radius: 11px; overflow: hidden; flex: 0 0 auto; }
.hero-card--mini .hero-card__thumb img, .hero-card--mini .hero-card__thumb .tt-cover { width: 100%; height: 100%; object-fit: cover; }
.hero-card__mini-body { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.hero-card__mini-title { font-family: var(--font-heading); font-weight: 600; font-size: .98rem; line-height: 1.24; color: var(--ink-900); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes heroCardIn { to { opacity: 1; transform: none; } }
@keyframes heroMiniIn { to { opacity: 1; transform: none; } }

/* scroll cue (light) */
.hero--split .hero__scroll { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); border-color: rgba(12,59,60,.28); }
.hero--split .hero__scroll span { background: var(--primary-600); }

/* responsive */
@media (max-width: 900px) {
  .hero--split .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  /* Once stacked, the two-column caps (lead 640 / showcase 540) just leave dead space —
     e.g. at 830px the container offers 762px but the showcase filled only 540. */
  .hero--split .hero__lead,
  .hero--split .hero__showcase { max-width: none; }
  .hero--split .hero__scroll { display: none; }
}
@media (max-width: 480px) {
  .hero-card--mini { grid-template-columns: 80px 1fr; }
  .hero-card--mini .hero-card__thumb { width: 80px; height: 62px; }
  .hero--split .hero__stats { gap: 1.2rem 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--split .hero__orb, .hero--split .hero__line > span, .hero-card--feature, .hero-card--mini,
  .hero--split .hero__eyebrow, .hero--split .hero__subtitle, .hero--split .hero__actions,
  .hero--split .hero__stats, .hero--split .hero__accent, .hero--split .hero__scroll span {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}

/* =====================================================================
   v6 — brand mark, footer redesign, author box, single head
   (final layer: wins on source order)
   ===================================================================== */

/* --- TASK 2: unified brand mark (header + footer + favicon all one artwork) --- */
.brand__logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mark-svg { display: block; flex: 0 0 auto; border-radius: 8px; }
.brand__text { font-family: var(--font-heading); font-weight: 700; letter-spacing: -.02em; color: var(--primary-800); }
.site-footer .brand__text { color: #fff; }
.site-footer .brand__logo:hover .brand__mark-svg,
.site-header .brand__logo:hover .brand__mark-svg { transform: rotate(-6deg) scale(1.06); }
.brand__mark-svg { transition: transform var(--dur-2) var(--ease-spring); }

/* --- TASK 1: FOOTER, modern redesign --- */
.site-footer {
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(18,119,106,.30) 0%, transparent 58%),
    radial-gradient(70% 100% at 92% 8%, rgba(233,162,59,.12) 0%, transparent 60%),
    linear-gradient(180deg, #0c2422 0%, #071614 100%);
  color: rgba(255,255,255,.72);
  padding-block: 0;
  margin-top: var(--space-3xl);
}
.site-footer::before { height: 2px; opacity: .9; }

.site-footer__cols {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.4fr;
  gap: var(--space-2xl) var(--space-xl);
  padding-block: var(--space-3xl) var(--space-2xl);
  align-items: start;
}
.site-footer__brand .brand__logo { margin-bottom: 1rem; }
.site-footer__brand .brand__text { font-size: 1.4rem; }
.site-footer__tagline { color: rgba(255,255,255,.58); line-height: 1.65; max-width: 34ch; margin: 0; }

/* column headings: small uppercase micro-labels */
.footer__col-title {
  font-family: var(--font-ui); font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.42);
  margin: 0 0 1.1rem;
}

/* link columns — .footer__links (categories) and .menu--footer (nav menu) share this */
.footer__links, .site-footer .menu--footer {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .6rem;
}
.footer__links li, .site-footer .menu--footer li { margin: 0; }
.footer__links a, .site-footer .menu--footer a {
  display: inline-block;
  color: rgba(255,255,255,.72); text-decoration: none; font-size: .93rem;
  transition: color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.footer__links a:hover, .site-footer .menu--footer a:hover {
  color: #fff; transform: translateX(4px);
}
/* wp_list_categories emits a post count in a <span> when show_count is on; keep it quiet */
.footer__links .cat-item { list-style: none; }

/* newsletter card */
.site-footer__newsletter {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
}
.site-footer__newsletter p { color: rgba(255,255,255,.6); font-size: .9rem; line-height: 1.6; margin: 0 0 1rem; }
.footer-subscribe { display: grid; gap: .55rem; }
.footer-subscribe input {
  width: 100%; min-width: 0;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  padding: .7rem .9rem;
  color: #fff; font-size: .92rem;
  transition: border-color var(--dur-2), background var(--dur-2);
}
.footer-subscribe input::placeholder { color: rgba(255,255,255,.4); }
.footer-subscribe input:focus {
  outline: none; background: rgba(255,255,255,.1);
  border-color: var(--accent-500);
}
.footer-subscribe .btn {
  width: 100%; justify-content: center;
  background: var(--accent-500); color: #17110a; border: 0;
  border-radius: 10px; font-weight: 700; padding: .7rem 1rem;
}
.footer-subscribe .btn:hover { background: var(--accent-400); transform: translateY(-1px); }

/* social chips (only render when a real URL is supplied) */
.site-footer__social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.site-footer__social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  transition: background var(--dur-2), color var(--dur-2), transform var(--dur-2);
}
.site-footer__social a:hover { background: var(--accent-500); color: #17110a; transform: translateY(-2px); }

/* bottom bar */
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.22); }
.site-footer__bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 1.5rem; flex-wrap: wrap;
  padding-block: var(--space-md);
}
.site-footer__copy { color: rgba(255,255,255,.45); font-size: .85rem; margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; }
.site-footer__legal a { color: rgba(255,255,255,.55); font-size: .85rem; text-decoration: none; transition: color var(--dur-2); }
.site-footer__legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1024px) {
  .site-footer__cols { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer__newsletter { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  /* the old rule targeted .site-footer__grid, which does not exist in the markup,
     so the footer never actually collapsed on mobile */
  .site-footer__cols { grid-template-columns: 1fr; gap: var(--space-xl); }
  .site-footer__newsletter { grid-column: auto; }
  .site-footer__bar-inner { flex-direction: column; align-items: flex-start; }
  .site-footer__tagline { max-width: none; }
}

/* --- TASK 10: author box --- */
/* .author-box__img had NO rule anywhere; this also rescues the unclassed byline avatar. */
.author-box__ring > img,
.author-box__img {
  width: 100%; height: 100%; display: block;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bg-elevated);
  background: var(--neutral-100);
}
.author-box__ring--sm > img { border-width: 2px; }
/* Scoped modifier: never resize the BASE .author-box__ring — it is shared by the
   front-page trust band (120px) and the single byline (40px). */
.author-box__ring--lg { width: 128px; height: 128px; }
.author-box__ring { box-shadow: 0 10px 30px -12px rgba(11,46,42,.5); }
.author-box__ring::after { display: none; } /* dead halo: clipped by .author-box overflow */

.author-box {
  border-radius: 20px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(18,119,106,.06) 0%, transparent 55%),
    var(--bg-elevated);
  transition: box-shadow var(--dur-2) var(--ease-out);
}
.author-box:hover { box-shadow: var(--shadow-md); }
.author-box__name { font-family: var(--font-heading); font-weight: 600; font-size: 1.35rem; color: var(--ink-900); margin: 0; }
.author-box__role {
  display: inline-block; margin-top: .45rem;
  padding: .22rem .65rem; border-radius: 999px;
  background: rgba(18,119,106,.1); color: var(--primary-800);
  font-family: var(--font-ui); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.author-box__bio { color: var(--text-soft); line-height: 1.68; margin-top: .9rem; max-width: 68ch; }
.author-box__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1.1rem; }
.author-box__meta > .author-box__social,
.author-box__meta > .author-box__link { margin-top: 0; }
.author-box__link { margin-left: auto; }
/* social markup uses text glyphs, not <svg> */
.author-box__social { display: flex; gap: .4rem; }
.author-box__social a {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(18,119,106,.08); color: var(--primary-700);
  font-family: var(--font-ui); font-weight: 700; font-size: .9rem; line-height: 1;
  text-decoration: none; transition: background var(--dur-2), color var(--dur-2), transform var(--dur-2);
}
.author-box__social a:hover { background: var(--primary-700); color: #fff; transform: translateY(-2px); }
@media (max-width: 680px) { .author-box__link { margin-left: 0; } }

/* --- TASK 9: full-width single post header --- */
/* .single__head is ALREADY full-bleed; the 760px cap is .wrap--narrow INSIDE it,
   and .single__title additionally caps at 24ch. Both must lift. */
.single__head > .wrap { max-width: none; }
.single__head .single__title { max-width: none; }

/* --- subscribe forms: honeypot + status messages --- */
/* Off-canvas, not display:none — some bots skip hidden fields, and this must stay fillable by them. */
.sn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: .7rem 0 0; font-size: .88rem; line-height: 1.5; min-height: 0; }
.form-status:empty { display: none; }
.newsletter .form-status { text-align: center; }
.form-status.is-success { color: #7ee0c4; }
.form-status.is-error   { color: #ffb4a8; }
.site-footer__newsletter .form-status { font-size: .82rem; }
