/* ============================================================
   Valence Wealth — Insights section preview
   Tokens copied verbatim from the production design-system bundle
   (dist/_ds/valence-wealth-design-system-30b6b5.../tokens/*.css).
   Section-specific styles below follow Brand Guidelines v1.0.
   Standalone: no dependencies outside this folder except
   Google Fonts (Poppins 400/500/600) and YouTube embeds.
   ============================================================ */

/* Poppins, self-hosted from the same files the rest of the site uses. The
   site's Content-Security-Policy is font-src 'self', so a Google Fonts link
   is blocked in production and the page would silently fall back. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("../assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("../assets/fonts/poppins-700.woff2") format("woff2"); }

/* ---- Tokens: color (production values) ---- */
:root {
  --cream:        #EFE8DA;
  --cream-deep:   #E7DECC;
  --surface:      #FBF8F2;
  --surface-2:    #F4EEE2;

  --ink:          #23211F;
  --ink-soft:     #5C564C;
  --ink-faint:    #8B8478;

  --terracotta:      #B5532E;
  --terracotta-deep: #97411F;
  --terracotta-tint: #EFD9CC;
  --ember:           #D2885E;

  --sage:        #83997F;
  --sage-deep:   #566B58;
  --sage-tint:   #DEE5DA;
  --sage-on-ink: #A9C0A4;

  --line:        #DAD1BF;
  --line-strong: #C9BEA8;
  --line-onink:  rgba(239, 232, 218, 0.14);

  --on-ink:        #F3EDE1;
  --on-ink-soft:   #B6AE9F;
  --on-ink-faint:  #837C6E;

  --focus-ring: rgba(181, 83, 46, 0.40);

  --bg:                 var(--cream);
  --bg-banded:          var(--cream-deep);
  --surface-card:       var(--surface);
  --surface-raised:     var(--surface-2);
  --surface-inverse:    var(--ink);

  --text-strong:        var(--ink);
  --text-body:          var(--ink);
  --text-muted:         var(--ink-soft);
  --text-faint:         var(--ink-faint);
  --text-on-inverse:    var(--on-ink);
  --text-on-inverse-muted: var(--on-ink-soft);

  --accent:             var(--terracotta);
  --accent-hover:       var(--terracotta-deep);
  --accent-on-inverse:  var(--ember);
  /* The React app overrides this design-system token at runtime with the
     Terracotta theme's wash, so the static section has to match it or the
     active nav pill reads a different colour from the rest of the site. */
  --accent-wash:        rgba(181, 83, 46, .10);

  --border:             var(--line);
  --border-strong:      var(--line-strong);
  --border-on-inverse:  var(--line-onink);
  --link:               var(--terracotta);

  /* ---- Tokens: typography (production values; weights capped at 600 per brand) ---- */
  --font-sans: "Poppins", "Sofia Pro", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --text-display-l:  58px;
  --text-display-m:  44px;
  --text-h2:         28px;
  --text-h3:         22px;
  --text-title:      19px;
  --text-body-l:     19px;
  --text-body-size:  17px;
  --text-body-s:     15px;
  --text-caption:    13px;
  --text-eyebrow:    13px;

  --leading-tight:   1.04;
  --leading-snug:    1.16;
  --leading-normal:  1.5;
  --leading-relaxed: 1.62;

  --tracking-display: -0.02em;
  --tracking-heading: -0.012em;
  --tracking-eyebrow: 0.14em;

  /* ---- Tokens: spacing (production values) ---- */
  --gutter: 24px;
  --section-y: 112px;
  --section-y-tight: 72px;
  --card-pad: 32px;
  --card-pad-s: 20px;
  --container: 1200px;
  --container-wide: 1320px;
  --container-text: 720px;
  --page-pad: 32px;

  /* ---- Tokens: effects (production values) ---- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --border-w: 1px;
  --border-w-strong: 1.5px;
  --shadow-xs: 0 1px 2px rgba(35, 33, 31, 0.05);
  --shadow-sm: 0 2px 8px rgba(35, 33, 31, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(35, 33, 31, 0.18);
  --shadow-accent: 0 14px 30px -12px rgba(151, 65, 31, 0.40);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 140ms;
  --dur: 220ms;
}

/* ---- Base (mirrors production base.css) ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--text-body-size);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  color: var(--text-strong);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-heading);
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--link); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--accent-hover); }
strong { font-weight: var(--weight-semibold); }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-wash); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-xs); }

/* ---- Layout primitives ---- */
.v-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--page-pad); }
.v-container--wide { max-width: var(--container-wide); }
.v-container--text { max-width: var(--container-text); }
.v-section { background: var(--bg); padding-block: var(--section-y); }
.v-section--tight { padding-block: var(--section-y-tight); }
.v-section--ink { background: var(--ink); color: var(--on-ink); }
.v-section--ink h2, .v-section--ink h3 { color: var(--on-ink); }

.v-eyebrow {
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- Buttons (mirrors production .vw-btn) ---- */
.vw-btn {
  --_bg: var(--accent); --_fg: #fff; --_bd: transparent; --_sh: var(--shadow-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-sans); font-weight: var(--weight-semibold);
  letter-spacing: -.005em; line-height: 1; text-decoration: none; cursor: pointer;
  border: var(--border-w-strong) solid var(--_bd); border-radius: var(--radius-pill);
  background: var(--_bg); color: var(--_fg); box-shadow: var(--_sh);
  transition: transform var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.vw-btn:hover { transform: translateY(-1px); color: var(--_fg); }
.vw-btn:active { transform: translateY(0); }
.vw-btn--sm { font-size: 14px; padding: 9px 16px; }
.vw-btn--md { font-size: 16px; padding: 13px 24px; }
.vw-btn--lg { font-size: 17px; padding: 17px 32px; }
.vw-btn--primary { --_bg: var(--accent); --_fg: #fff; --_bd: transparent; --_sh: var(--shadow-accent); }
.vw-btn--primary:hover { --_bg: var(--accent-hover); }
.vw-btn--secondary { --_bg: var(--surface); --_fg: var(--ink); --_bd: var(--border-strong); --_sh: var(--shadow-xs); }
.vw-btn--secondary:hover { --_bd: var(--ink); }
.vw-btn--ghost { --_bg: transparent; --_fg: var(--ink); --_bd: transparent; --_sh: none; }
.vw-btn--ghost:hover { --_bg: var(--surface-2); }
.vw-btn--on-ink.vw-btn--primary { --_bg: var(--ember); --_fg: var(--ink); --_sh: none; }
.vw-btn--on-ink.vw-btn--primary:hover { --_bg: #DB9A75; }

/* ---- Badges (mirrors production .vw-badge) ---- */
.vw-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-weight: var(--weight-semibold);
  font-size: 13px; line-height: 1; letter-spacing: .01em;
  padding: 7px 13px; border-radius: var(--radius-pill); white-space: nowrap;
}
.vw-badge--solid { background: var(--accent); color: #fff; }
.vw-badge--wash { background: var(--accent-wash); color: var(--terracotta-deep); }

/* ---- Header (mirrors production prerendered chrome) ---- */
.vw-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 18px; border-radius: 0 0 8px 0; font-weight: 600; text-decoration: none; }
.vw-skip:focus { left: 0; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239, 232, 218, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 80px; }
.site-logo { display: inline-flex; align-items: center; gap: 20px; text-decoration: none; }
.site-logo svg { display: block; flex: 0 0 auto; width: 47px; height: 30px; }
.site-footer .site-logo svg { width: 35px; height: 22px; }
.site-footer .site-logo { gap: 14px; }
.site-logo__word { font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; line-height: 1; font-size: 23px; color: var(--ink); white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.site-nav__link {
  font-family: var(--font-sans); font-size: 16.5px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-pill);
  color: var(--ink); background: transparent; transition: none;
}
.site-nav__link:hover { color: var(--accent); }
.site-nav__link[aria-current="page"] { color: var(--accent); background: var(--accent-wash); }

/* Equalize text-to-text spacing: the ghost pill's border + wider padding adds ~3px
   of perceived gap after "Insights" vs. the plain links' 36px rhythm */
.site-nav .vw-btn--ghost { margin-inline-start: -3px; }

/* ---- Insights hover dropdown (Blog / Video library) ---- */
.site-nav__item { position: relative; display: inline-flex; }
.site-nav__item > .site-nav__link { display: inline-flex; align-items: center; gap: 6px; }
.nav-caret { transition: transform 0.3s ease; flex: 0 0 auto; }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 10px; z-index: 60;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.nav-dropdown__panel {
  min-width: 176px; padding: 7px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(35, 33, 31, 0.08);
  display: flex; flex-direction: column; gap: 2px;
}
.site-nav__item:hover .nav-dropdown,
.site-nav__item:focus-within .nav-dropdown {
  opacity: 1; visibility: visible;
  transition: opacity 0.3s ease;
}
.site-nav__item:hover .nav-caret,
.site-nav__item:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown__panel a {
  display: block;
  padding: 9px 14px; border-radius: 9px; text-decoration: none;
  transition: background 0.3s ease;
}
.nav-dropdown__panel a:hover { background: var(--accent-wash); }
.nav-dropdown__panel a b { font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--ink); }
.nav-dropdown__panel a span { font-family: var(--font-sans); font-size: 13px; line-height: 1.4; color: var(--ink-soft); }

/* Simple hamburger-less mobile nav: secondary links hide, logo + CTA remain */
@media (max-width: 1060px) {
  .site-nav__link:not([aria-current="page"]), .site-nav .vw-btn--ghost { display: none; }
}
@media (max-width: 560px) {
  .site-header__inner { gap: 12px; }
  .site-nav__link[aria-current="page"], .site-nav__item { display: none; }
}

/* ---- Canonical site header (markup lifted from the built home page) ---- */
.vw-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 18px; border-radius: 0 0 8px 0; }
.vw-skip:focus { left: 0; }
.vw-burger { display: none; }
@media (max-width: 1060px) {
  .vw-nav { display: none !important; }
  .vw-burger { display: inline-flex !important; }
}
.vw-mobile-menu { border-top: 1px solid var(--border); background: var(--bg); }
.vw-mobile-menu__inner { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--page-pad); display: flex; flex-direction: column; padding-block: 12px; }
.vw-mobile-menu a { padding: 12px 4px; font-size: 17px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--border); text-decoration: none; }
.vw-mobile-menu .vw-btn { margin-top: 14px; width: 100%; }

/* ---- Hero ---- */
.hero { padding-block: 80px 40px; }
.hero__stack { display: flex; flex-direction: column; gap: 20px; max-width: 54ch; }
.hero h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
}
.hero__sub { font-size: var(--text-body-l); line-height: 1.5; color: var(--text-muted); max-width: 52ch; }

/* ---- Search + filter chips ---- */
.finder { display: flex; flex-direction: column; gap: 20px; padding-block: 0 48px; }
.search-wrap { position: relative; max-width: 520px; }
.search-wrap svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); stroke: var(--ink-faint); pointer-events: none; }
.search-input {
  width: 100%;
  font-family: var(--font-sans); font-size: 16px; color: var(--ink);
  padding: 14px 18px 14px 48px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.search-input::placeholder { color: var(--ink-faint); }
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-sans); font-size: 14px; font-weight: var(--weight-medium);
  letter-spacing: .01em; line-height: 1; cursor: pointer;
  padding: 10px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-soft);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- Cards & grids ---- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: var(--card-pad);
}
.card--flush { padding: 0; overflow: hidden; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .grid-3 { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column; gap: 14px;
  color: inherit; text-decoration: none;
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.post-card:hover { border-color: var(--border-strong); transform: translateY(-3px); color: inherit; }
.post-card__thumb {
  aspect-ratio: 16 / 9; border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: contain; background: #E7DECC; }
.post-card h3 { font-size: 20px; font-weight: var(--weight-semibold); letter-spacing: -.01em; line-height: 1.25; }
.post-card__excerpt { font-size: var(--text-body-s); line-height: 1.55; color: var(--text-muted); }
.post-card__meta { margin-top: auto; font-size: 14px; color: var(--text-faint); display: flex; gap: 8px; align-items: center; }

/* Featured card */
.featured { padding-top: 0; padding-bottom: 56px; }
.featured__link { display: grid; grid-template-columns: 1.05fr 0.95fr; text-decoration: none; color: inherit; }
.featured__link:hover { color: inherit; }
.featured__body { padding: 44px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.featured__body h2 { font-size: clamp(26px, 3vw, 36px); font-weight: var(--weight-semibold); letter-spacing: -.016em; line-height: 1.14; }
.featured__excerpt { font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.featured__meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-faint); }
.featured__cta { margin-top: 4px; font-size: 15.5px; font-weight: var(--weight-semibold); color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.featured__link:hover .featured__cta { color: var(--accent-hover); }
.featured__media { min-height: 320px; background: var(--ink); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.featured__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.featured__media--art { background: #E7DECC; }

/* Per-article editorial artwork: clear air above and below the panel */
.article-figure { margin: 40px 0 44px; }
.article-figure img { width: 100%; display: block; border-radius: 20px; border: 1px solid var(--border); background: #E7DECC; }

/* Disclosure reads as short paragraphs, not a wall */
.disclosure p { margin: 0; }
.disclosure p + p { margin-top: 12px; }
@media (max-width: 1000px) {
  .featured__link { grid-template-columns: 1fr; }
  .featured__media { min-height: 220px; order: -1; }
}
@media (max-width: 560px) { .featured__body { padding: 28px 24px; } }

/* Empty search state */
.empty-state {
  text-align: center; color: var(--text-muted); font-size: 17px;
  padding: 64px 24px; border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg); background: var(--surface);
}

/* ---- Video treatments ---- */
.video-thumb {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--ink); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-badge {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--cream); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.play-badge::after {
  content: ""; display: block; margin-left: 4px;
  border-style: solid; border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--terracotta);
}
.post-card:hover .play-badge { transform: translate(-50%, -50%) scale(1.06); }
.duration-chip {
  position: absolute; right: 10px; bottom: 10px;
  font-size: 12.5px; font-weight: var(--weight-medium); line-height: 1;
  color: var(--on-ink); background: rgba(35, 33, 31, 0.82);
  padding: 6px 10px; border-radius: var(--radius-pill);
}
.video-strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.video-strip-head h2 { font-size: var(--text-h2); }
.browse-link { font-size: 15.5px; font-weight: var(--weight-semibold); display: inline-flex; align-items: center; gap: 6px; }

/* Video page embed */
.embed-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--ink);
  border: 1px solid var(--border);
}
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px; text-align: center; padding: 24px;
}
.embed-placeholder .play-badge { position: static; transform: none; width: 72px; height: 72px; }
.embed-placeholder p { color: var(--on-ink-soft); font-size: var(--text-body-s); max-width: 40ch; }

/* Chapters */
.chapter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.chapter-list li { display: flex; gap: 16px; padding: 12px 4px; border-bottom: 1px solid var(--border); font-size: var(--text-body-s); }
.chapter-list li:last-child { border-bottom: none; }
.chapter-list .ts { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: var(--weight-medium); min-width: 48px; }

/* Transcript */
.transcript { position: relative; }
.transcript__body { position: relative; max-height: 340px; overflow: hidden; }
.transcript__body::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(to bottom, rgba(239, 232, 218, 0), var(--cream));
  pointer-events: none;
}
.transcript.is-open .transcript__body { max-height: none; }
.transcript.is-open .transcript__body::after { display: none; }
.transcript__toggle { margin-top: 20px; }
.transcript p { margin-bottom: 1.2em; }
.transcript .speaker { font-weight: var(--weight-semibold); color: var(--ink); }
.transcript .ts { font-variant-numeric: tabular-nums; color: var(--text-faint); font-size: 14px; margin-right: 8px; }

/* ---- Breadcrumb ---- */
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-faint); padding-block: 28px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--line-strong); }

/* ---- Article typography ---- */
.article-hero { padding-block: 40px 24px; }
.article-hero h1 { font-size: clamp(28px, 3.1vw, 35px); letter-spacing: var(--tracking-display); line-height: 1.16; }
.article-hero .v-eyebrow, .article-hero .vw-badge { margin-bottom: 4px; }
.article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14.5px; color: var(--text-muted); margin-top: 20px; }
.article-meta .dot { color: var(--line-strong); }
.article-meta .author { font-weight: var(--weight-medium); color: var(--ink); }
a.author { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); transition: color 0.3s ease, text-decoration-color 0.3s ease; }
a.author:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---- On-page sources (E-E-A-T: readers and crawlers both see the citations) ---- */
.sources { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--border); max-width: 68ch; }
.sources h2 { font-size: 15px; font-weight: var(--weight-semibold); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.source-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.source-list li { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; line-height: 1.45; }
.source-list a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.source-list a:hover { color: var(--accent-hover); }
.source-pub { font-size: 12.5px; color: var(--text-faint); }

/* ---- Author page ---- */
.author-hero { padding-block: 56px 8px; }
.author-card { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.author-cred { font-size: 14.5px; color: var(--text-muted); letter-spacing: .01em; }
.author-body { font-size: var(--text-body-size); line-height: var(--leading-relaxed); max-width: 68ch; }
.author-body > * + * { margin-top: 1.2em; }
.author-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.author-facts li { display: flex; gap: 12px; align-items: baseline; font-size: 15.5px; }
.author-facts .k { flex: 0 0 132px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }

.article-body { font-size: var(--text-body-size); line-height: var(--leading-relaxed); max-width: 68ch; }
.article-body > * + * { margin-top: 1.35em; }
.article-body h2 { font-size: var(--text-h2); margin-top: 2.2em; }
.article-body h3 { font-size: var(--text-h3); margin-top: 1.8em; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin-bottom: 0; }
.article-body li { margin-top: .5em; }
.article-body blockquote {
  margin: 2em 0; padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  font-size: 19px; line-height: 1.5; color: var(--ink);
  font-weight: var(--weight-medium); letter-spacing: -.005em;
}
.article-body blockquote p { margin: 0; }

/* Key-numbers stat callout */
.stat-callout {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 32px; margin: 2.2em 0;
}
.stat-callout__label {
  font-size: var(--text-eyebrow); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.stat-callout__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-callout .stat { display: flex; flex-direction: column; gap: 6px; }
.stat-callout .stat b {
  font-size: clamp(24px, 3vw, 32px); font-weight: var(--weight-medium);
  letter-spacing: -.01em; line-height: 1.1; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat-callout .stat span { font-size: 13.5px; color: var(--text-muted); line-height: 1.4; }
@media (max-width: 640px) { .stat-callout__grid { grid-template-columns: 1fr; gap: 18px; } }

/* Tables in article body */
.article-body .table-wrap { overflow-x: auto; margin: 2.2em 0; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.article-body table { width: 100%; border-collapse: collapse; font-size: var(--text-body-s); min-width: 480px; }
.article-body th {
  text-align: left; font-weight: var(--weight-semibold); color: var(--ink);
  font-size: 13.5px; letter-spacing: .02em;
  padding: 14px 18px; border-bottom: 1px solid var(--border-strong); background: var(--surface-2);
}
.article-body td { padding: 13px 18px; border-bottom: 1px solid var(--border); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.article-body tr:last-child td { border-bottom: none; }

/* Compliance disclosure */
.disclosure {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; line-height: 1.6; color: var(--ink-soft); max-width: 68ch;
}

/* Related row */
.related { padding-block: var(--section-y-tight); }
.related h2 { font-size: var(--text-h2); margin-bottom: 28px; }

/* ---- Email capture ink panel ---- */
.capture { text-align: center; }
.capture__stack { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.capture h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: var(--weight-semibold); letter-spacing: -.016em; max-width: 22ch; }
.capture p { font-size: 17px; color: var(--on-ink-soft); max-width: 48ch; }
.capture form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 480px; }
.capture input {
  flex: 1 1 240px; font-family: var(--font-sans); font-size: 16px;
  padding: 14px 16px; border-radius: var(--radius-md);
  border: 1px solid var(--border-on-inverse);
  background: rgba(243, 237, 225, .06); color: var(--on-ink);
}
.capture input::placeholder { color: var(--on-ink-faint); }
.capture input:focus { outline: none; border-color: var(--ember); }

/* ---- Soft CTA ---- */
.soft-cta { text-align: center; background: var(--surface-2); }
.soft-cta__stack { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 52ch; margin-inline: auto; }
.soft-cta h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: var(--weight-semibold); letter-spacing: -.016em; line-height: 1.12; }
.soft-cta p { font-size: 17.5px; line-height: 1.55; color: var(--text-muted); }

/* ---- Footer (mirrors production chrome) ---- */
.site-footer { background: var(--ink); color: var(--on-ink); border-top: 1px solid #3A342E; padding-block: 64px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-brand__line { font-size: 22px; line-height: 1.3; font-weight: var(--weight-semibold); letter-spacing: -.01em; color: var(--on-ink); margin: 0; }
.footer-brand__line em { font-style: normal; color: var(--ember); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col__title { font-size: 13px; font-weight: var(--weight-semibold); letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-faint); margin-bottom: 4px; }
.footer-col a { font-size: 15.5px; color: var(--on-ink-soft); text-decoration: none; display: inline-flex; align-items: center; min-height: 30px; }
.footer-col a:hover { color: var(--on-ink); }
.footer-col span.plain { font-size: 15.5px; color: var(--on-ink-soft); line-height: 1.5; }
.footer-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid #3A342E; display: flex; flex-direction: column; gap: 10px; }
.footer-legal p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--on-ink-faint); }
.footer-copy { margin-top: 14px; margin-bottom: 0; font-size: 12px; color: var(--on-ink-faint); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Preview ribbon ---- */
.preview-ribbon {
  position: fixed; left: 16px; bottom: 16px; z-index: 90;
  background: var(--ink); color: var(--ember);
  font-family: var(--font-sans); font-size: 11.5px; font-weight: var(--weight-semibold);
  letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1px solid #3A342E; pointer-events: none;
}

/* ---- Responsive section padding ---- */
@media (max-width: 760px) {
  .v-section { padding-block: 64px; }
  .v-section--tight { padding-block: 56px; }
  .hero { padding-block: 56px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* The footer is lifted verbatim from the built home page, and its only
   non-inline styling is this responsive grid, which lives in a <style> block
   on the React pages. Mirrored here so the two collapse identically. */
@media (max-width: 900px) {
  .vw-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 32px !important; }
}
@media (max-width: 520px) {
  .vw-footer-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; }
}
