/* ==========================================================================
   LIACC Design System — hand-authored CSS (no build step required)
   Mirrors the tokens approved in Sprint 3.
   ========================================================================== */

:root {
  /* Brand palette */
  --brand-50:  #eef4fb;
  --brand-100: #d6e4f3;
  --brand-200: #adc8e7;
  --brand-300: #7ba4d6;
  --brand-400: #4d80c2;
  --brand-500: #2c60a8;
  --brand-600: #1f4a88;
  --brand-700: #1a3c6e;
  --brand-800: #172f56;
  --brand-900: #112440;
  --brand-950: #0a172a;

  --accent-50:  #eafbf6;
  --accent-100: #cff5e9;
  --accent-200: #a1ecd3;
  --accent-300: #6ddbb8;
  --accent-400: #3fc49a;
  --accent-500: #22a67f;
  --accent-600: #178566;
  --accent-700: #146a53;
  --accent-800: #135443;

  --ink:        #0b1220;
  --ink-soft:   #28334a;
  --ink-muted:  #5b6678;

  --surface:    #ffffff;
  --surface-alt:#f6f8fc;
  --surface-mute:#eef1f7;
  --surface-dark:#0a1324;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow-card: 0 1px 2px rgba(15,23,42,.04), 0 4px 12px rgba(15,23,42,.06);
  --shadow-pop: 0 10px 40px -12px rgba(15,23,42,.25);

  --ease: cubic-bezier(.2,.8,.2,1);

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;

  --container: 1200px;
  --container-prose: 68ch;

  color-scheme: light;
}

/* -------------------------------------------------- Dark mode */
html[data-theme="dark"] {
  --ink:        #e6ecf5;
  --ink-soft:   #b4c2d6;
  --ink-muted:  #7e8ea8;

  --surface:    #0a1324;
  --surface-alt:#0d1a32;
  --surface-mute:#132243;
  --surface-dark:#05101f;

  --brand-50:  #132243;
  --brand-100: #17295a;
  --brand-200: #203877;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-card: 0 2px 6px rgba(0,0,0,.35), 0 10px 24px rgba(0,0,0,.35);
  --shadow-pop: 0 14px 50px -12px rgba(0,0,0,.65);

  color-scheme: dark;
}
html[data-theme="dark"] body { background: var(--surface); color: var(--ink); }
html[data-theme="dark"] .header { background: rgba(10,19,36,.82); }
html[data-theme="dark"] .header.is-scrolled { background: rgba(10,19,36,.95); border-bottom-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .logo-text .name { color: var(--ink); }
html[data-theme="dark"] .logo-text .sub { color: var(--accent-400); }
html[data-theme="dark"] .nav-primary a { color: var(--ink-soft); }
html[data-theme="dark"] .nav-primary a:hover { background: rgba(255,255,255,.06); color: var(--ink); }
html[data-theme="dark"] .nav-primary a[aria-current="page"] { background: rgba(63,196,154,.12); color: var(--accent-300); }
html[data-theme="dark"] .nav-dropdown { background: #0d1a32; border-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .nav-dropdown a { color: var(--ink); }
html[data-theme="dark"] .nav-dropdown a:hover { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .nav-dropdown a .desc { color: var(--ink-muted); }
html[data-theme="dark"] .btn-collab { background: var(--accent-500); color: var(--brand-950); }
html[data-theme="dark"] .btn-collab:hover { background: var(--accent-400); }
html[data-theme="dark"] .mobile-menu { background: #0d1a32; border-color: rgba(255,255,255,.06); }
html[data-theme="dark"] .mobile-menu a { color: var(--ink); }
html[data-theme="dark"] .mobile-menu a:hover { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .card { background: #0d1a32; border-color: rgba(255,255,255,.06); }
html[data-theme="dark"] .card-title { color: var(--ink); }
html[data-theme="dark"] .card-desc { color: var(--ink-soft); }
html[data-theme="dark"] .card-meta { color: var(--ink-muted); }
html[data-theme="dark"] .person-card { background: #0d1a32; border-color: rgba(255,255,255,.06); }
html[data-theme="dark"] .person-card .name { color: var(--ink); }
html[data-theme="dark"] .person-card:hover .name { color: var(--accent-300); }
html[data-theme="dark"] .filterbar { background: #0d1a32; border-color: rgba(255,255,255,.06); }
html[data-theme="dark"] .filterbar .search input { background: #0a1324; border-color: rgba(255,255,255,.1); color: var(--ink); }
html[data-theme="dark"] .filterbar select, html[data-theme="dark"] .selects select { background: #0a1324; color: var(--ink); border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .chip { background: #0a1324; border-color: rgba(255,255,255,.1); color: var(--ink-soft); }
html[data-theme="dark"] .chip:hover { background: #132243; }
html[data-theme="dark"] .chip[aria-pressed="true"], html[data-theme="dark"] .chip.is-active { background: var(--accent-500); color: var(--brand-950); border-color: var(--accent-500); }
html[data-theme="dark"] .pub-list { background: #0d1a32; border-color: rgba(255,255,255,.06); }
html[data-theme="dark"] .pub-item { border-top-color: rgba(255,255,255,.06); }
html[data-theme="dark"] .pub-item:hover { background: rgba(255,255,255,.03); }
html[data-theme="dark"] .pub-title { color: var(--ink); }
html[data-theme="dark"] .pub-meta { color: var(--ink-soft); }
html[data-theme="dark"] .page-header { background: #0d1a32; border-bottom-color: rgba(255,255,255,.06); }
html[data-theme="dark"] .page-header .lead { color: var(--ink-soft); }
html[data-theme="dark"] .sidebar-card { background: #0d1a32; border-color: rgba(255,255,255,.06); }
html[data-theme="dark"] .sidebar-section h3 { color: var(--ink); }
html[data-theme="dark"] .sidebar-section a { color: var(--ink-soft); }
html[data-theme="dark"] .sidebar-section a:hover { color: var(--accent-300); }
html[data-theme="dark"] .prose h2, html[data-theme="dark"] .prose h3 { color: var(--ink); }
html[data-theme="dark"] .prose p, html[data-theme="dark"] .prose ul li { color: var(--ink-soft); }
html[data-theme="dark"] .prose strong { color: var(--ink); }
html[data-theme="dark"] .prose a { color: var(--accent-300); }
html[data-theme="dark"] .badge-brand { background: rgba(63,196,154,.12); color: var(--accent-300); }
html[data-theme="dark"] .badge-neutral { background: rgba(255,255,255,.06); color: var(--ink-soft); }
html[data-theme="dark"] .badge-outline { border-color: rgba(255,255,255,.15); color: var(--ink-soft); }
html[data-theme="dark"] .meta-block { background: #0d1a32; border-color: rgba(255,255,255,.06); }
html[data-theme="dark"] .meta-block .value { color: var(--ink); }
html[data-theme="dark"] .impact-item { background: rgba(63,196,154,.06); border-color: rgba(63,196,154,.35); color: var(--ink); }
html[data-theme="dark"] .btn-outline { border-color: var(--accent-400); color: var(--accent-300); }
html[data-theme="dark"] .btn-outline:hover { background: rgba(63,196,154,.1); }
html[data-theme="dark"] .btn-primary { background: var(--accent-500); color: var(--brand-950); }
html[data-theme="dark"] .btn-primary:hover { background: var(--accent-400); }
html[data-theme="dark"] .stats { background: #0d1a32; border-color: rgba(255,255,255,.06); }
html[data-theme="dark"] .form input, html[data-theme="dark"] .form textarea, html[data-theme="dark"] .form select { background: #0a1324; border-color: rgba(255,255,255,.1); color: var(--ink); }
html[data-theme="dark"] .icon-btn:hover { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .icon-btn { color: var(--ink-soft); }
html[data-theme="dark"] .cart-empty { background: #0d1a32; border-color: rgba(255,255,255,.1); color: var(--ink-soft); }
html[data-theme="dark"] .cart-table th, html[data-theme="dark"] .cart-table td { border-bottom-color: rgba(255,255,255,.06); }
html[data-theme="dark"] .product-cta { background: #0d1a32; border-color: rgba(255,255,255,.06); }
html[data-theme="dark"] .product-cta .price { color: var(--ink); }
html[data-theme="dark"] .product-cta .options label { background: #0a1324; border-color: rgba(255,255,255,.1); color: var(--ink); }
html[data-theme="dark"] .product-cta .options input:checked + label { background: var(--accent-500); color: var(--brand-950); border-color: var(--accent-500); }
html[data-theme="dark"] .empty-state { background: #0d1a32; border-color: rgba(255,255,255,.1); }

/* Font size scale (accessibility) — applied on <html> */
html[data-font-size="sm"] { font-size: 14px; }
html[data-font-size="md"] { font-size: 16px; }
html[data-font-size="lg"] { font-size: 18px; }
html[data-font-size="xl"] { font-size: 20px; }

/* Respect user OS preference if nothing stored */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    /* tokens will be switched in JS if user hasn't chosen — CSS-only fallback is the light theme */
  }
}

/* -------------------------------------------------- Base */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02","cv03","cv11";
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.serif { font-family: var(--font-serif); letter-spacing: -0.015em; }

:where(a, button, [role="button"], input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: var(--brand-200); color: var(--brand-900); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* -------------------------------------------------- Utility atoms */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

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

.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 50;
  transform: translateY(-120%);
  background: var(--brand-900); color: #fff;
  padding: .5rem 1rem; border-radius: 10px;
  font-weight: 600; font-size: 14px;
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* -------------------------------------------------- Header */

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.header.is-scrolled {
  background: rgba(255,255,255,.94);
  border-bottom-color: rgba(10,23,42,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 64px;
}
.logo { display: inline-flex; align-items: center; gap: .75rem; }
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text { line-height: 1; }
.logo-text .name { display: block; font-family: var(--font-serif); font-size: 20px; font-weight: 600; color: var(--ink); }
.logo-text .sub { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .2em; color: var(--brand-700); margin-top: 2px; }

.nav-primary { display: none; align-items: center; gap: 4px; }
@media (min-width: 1024px) { .nav-primary { display: flex; } }
.nav-primary a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: var(--radius-full);
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-primary a:hover { background: var(--surface-mute); color: var(--ink); }
.nav-primary a[aria-current="page"] { background: var(--brand-50); color: var(--brand-800); }

.nav-group { position: relative; }
.nav-group > button,
.nav-group > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; width: 320px;
  background: #fff; border: 1px solid rgba(10,23,42,.06);
  border-radius: var(--radius-xl); padding: 8px;
  box-shadow: var(--shadow-pop);
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: opacity .15s var(--ease), transform .15s var(--ease);
}
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.nav-dropdown a {
  display: block; padding: 10px 12px; border-radius: 12px;
  color: var(--ink); font-size: 14px;
}
.nav-dropdown a:hover { background: var(--surface-mute); }
.nav-dropdown a .label { display: block; font-weight: 600; }
.nav-dropdown a .desc { display: block; font-size: 12px; color: var(--ink-muted); margin-top: 2px; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 9999px; color: var(--ink-soft);
  position: relative;
}
.icon-btn:hover { background: var(--surface-mute); color: var(--ink); }
.cart-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9999px;
  background: var(--accent-500); color: var(--brand-950);
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
[hidden] { display: none !important; }
.btn-collab {
  display: none; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: 9999px; background: var(--brand-800); color: #fff;
  font-size: 14px; font-weight: 500;
}
@media (min-width: 1024px) { .btn-collab { display: inline-flex; } }
.btn-collab:hover { background: var(--brand-900); }

/* -------------------------------------------------- A11y menu */

.a11y-menu { position: relative; }
.a11y-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 300px; padding: 16px;
  background: #fff; border: 1px solid rgba(10,23,42,.06); border-radius: 16px;
  box-shadow: var(--shadow-pop); z-index: 50;
}
html[data-theme="dark"] .a11y-panel { background: #0d1a32; border-color: rgba(255,255,255,.08); }
.a11y-panel[hidden] { display: none; }
.a11y-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-muted); font-weight: 600; margin: 0;
}
.a11y-label + .a11y-row { margin-top: 6px; }
.a11y-row { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.a11y-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: 1px solid rgba(10,23,42,.1); background: #fff;
  border-radius: 9999px; font-size: 13px; color: var(--ink-soft);
  cursor: pointer; transition: background .12s, color .12s, border-color .12s;
}
html[data-theme="dark"] .a11y-btn { background: #0a1324; border-color: rgba(255,255,255,.12); color: var(--ink-soft); }
.a11y-btn:hover { background: var(--surface-mute); }
.a11y-btn[aria-checked="true"] {
  background: var(--brand-800); color: #fff; border-color: var(--brand-800);
}
html[data-theme="dark"] .a11y-btn[aria-checked="true"] { background: var(--accent-500); color: var(--brand-950); border-color: var(--accent-500); }
.a11y-reset {
  width: 100%; padding: 8px; border-radius: 9999px;
  background: transparent; color: var(--ink-muted); font-size: 12px;
  border: 1px dashed rgba(10,23,42,.15); cursor: pointer;
}
.a11y-reset:hover { color: var(--ink); border-color: var(--ink-muted); }

.a11y-btn-wide { flex: 1; justify-content: center; }
.a11y-divider {
  height: 1px; background: rgba(10,23,42,.08);
  margin: 14px 0 12px;
}
html[data-theme="dark"] .a11y-divider { background: rgba(255,255,255,.08); }
.a11y-cta {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 14px; border-radius: 9999px;
  background: var(--brand-800); color: #fff;
  font-size: 13.5px; font-weight: 500;
  margin-bottom: 10px;
  transition: background .12s;
}
.a11y-cta:hover { background: var(--brand-900); color: #fff; }
html[data-theme="dark"] .a11y-cta { background: var(--accent-500); color: var(--brand-950); }
html[data-theme="dark"] .a11y-cta:hover { background: var(--accent-400); color: var(--brand-950); }

.menu-toggle { display: inline-flex; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-menu {
  display: none; border-top: 1px solid rgba(10,23,42,.06); background: #fff;
}
.mobile-menu.is-open { display: block; }
.mobile-menu .m-nav { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.mobile-menu a { padding: 10px 12px; border-radius: 12px; color: var(--ink); font-size: 15px; }
.mobile-menu a:hover { background: var(--surface-mute); }
.mobile-menu a[aria-current="page"] { background: var(--brand-50); color: var(--brand-800); font-weight: 600; }
.mobile-menu .m-sep { height: 1px; background: rgba(10,23,42,.08); margin: 8px 4px; }
.mobile-menu .m-secondary a { color: var(--ink-soft); font-size: 13.5px; }
.mobile-menu .m-cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin: 6px 4px 0; padding: 10px; border-radius: 9999px;
  background: var(--brand-800); color: #fff; font-weight: 500;
}

/* -------------------------------------------------- Hero */

.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 80% at 20% 20%, rgba(34,166,127,.35) 0%, transparent 60%),
    radial-gradient(50% 60% at 80% 0%, rgba(44,96,168,.55) 0%, transparent 60%),
    linear-gradient(180deg, #0a172a 0%, #112440 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .3;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-inner { position: relative; padding: 72px 0 96px; display: grid; gap: 44px; }
@media (min-width: 900px) {
  .hero-inner { align-items: center; padding: 104px 0 120px; }
  .hero-inner:has(.hero-figure) { grid-template-columns: 1.05fr .95fr; }
}
.hero-copy { min-width: 0; }
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.4vw, 3.85rem);
  line-height: 1.06; letter-spacing: -0.02em;
  margin-top: 22px; max-width: 20ch;
}
.hero h1 .accent { color: var(--accent-300); }
.hero p { margin-top: 22px; max-width: 52ch; font-size: 18px; color: rgba(255,255,255,.86); line-height: 1.65; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Full-bleed background image; copy + buttons overlay the left, clear of the globe on the right */
.hero--cover { position: relative; overflow: hidden; }
.hero--cover::before { display: none; }
.hero--cover .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center; z-index: 0;
}
.hero--cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(7,17,31,.94) 0%, rgba(7,17,31,.85) 32%, rgba(7,17,31,.45) 55%, rgba(7,17,31,0) 74%);
}
.hero--cover .hero-inner { position: relative; z-index: 2; }
.hero--cover .hero-copy { max-width: 560px; }
@media (min-width: 900px) {
  .hero--cover .hero-copy { max-width: 52%; }
}
.hero-figure {
  margin: 0; border-radius: var(--radius-2xl); overflow: hidden;
  aspect-ratio: 4 / 3; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10); box-shadow: var(--shadow-pop);
}
.hero-figure img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 899px) { .hero-figure { aspect-ratio: 16 / 9; } }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 9999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15);
  font-size: 12px; font-weight: 500; color: var(--accent-200);
}

/* -------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 9999px; font-weight: 500;
  font-size: 15px; line-height: 1; letter-spacing: -0.01em;
  transition: transform .12s var(--ease), box-shadow .18s var(--ease), background-color .15s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }

.btn-primary { background: var(--brand-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-800); box-shadow: var(--shadow-card); }

.btn-accent { background: var(--accent-500); color: var(--brand-950); box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--accent-400); }

.btn-outline { border: 1px solid var(--brand-700); color: var(--brand-700); }
.btn-outline:hover { background: var(--brand-50); }

.btn-secondary-dark { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.btn-secondary-dark:hover { background: rgba(255,255,255,.15); }

.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--surface-mute); }

/* -------------------------------------------------- Stats */

.stats {
  border-top: 1px solid rgba(10,23,42,.06);
  border-bottom: 1px solid rgba(10,23,42,.06);
  background: var(--surface-alt);
  padding: 48px 0;
}
.stats-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(6, 1fr); } }
.stat .value {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1; color: var(--accent-600);
  letter-spacing: -0.015em;
}
html[data-theme="dark"] .stat .value { color: var(--accent-300); }
.stat .label { margin-top: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--ink); }
.stat .sub { margin-top: 4px; font-size: 13px; color: var(--ink-muted); }

/* -------------------------------------------------- Section */

.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--surface-dark); color: #fff; }

.section-head { max-width: 820px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em;
  color: var(--brand-700); margin-bottom: 14px;
}
.section-eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: currentColor; opacity: .65;
}
.section-head.center .section-eyebrow { justify-content: center; }
.section-dark .section-eyebrow { color: var(--accent-300); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.12; letter-spacing: -0.018em;
}
.section-lead { margin-top: 18px; font-size: 18px; max-width: 60ch; color: var(--ink-soft); line-height: 1.65; }
.section-head.center .section-lead { margin-inline: auto; }
.section-dark .section-lead { color: rgba(255,255,255,.8); }

/* -------------------------------------------------- Cards */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid rgba(10,23,42,.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .2s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(10,23,42,.14);
}
html[data-theme="dark"] .card:hover { border-color: rgba(255,255,255,.16); }
.card-body { padding: 24px; }
.card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--brand-800), var(--brand-950));
  position: relative; overflow: hidden;
}
.card-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.card-media::after {
  content: ""; position: absolute; inset: 0; opacity: .3;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 32px 32px;
}
.card-media.thematic { background: linear-gradient(135deg, var(--accent-500), var(--brand-800)); }
.card-media.product { aspect-ratio: 1 / 1; background: linear-gradient(135deg, var(--brand-100), var(--accent-50)); }
.card-media.news { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-100), var(--accent-100)); }
.card-media .media-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.82);
}
.card-media .media-foot {
  position: absolute; inset: auto 0 0 0; padding: 16px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.card-meta { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-muted); }
.card-title { font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-top: 8px; }
.card-desc { font-size: 14.5px; color: var(--ink-soft); margin-top: 8px; line-height: 1.55; }
.card-arrow {
  position: absolute; top: 24px; right: 24px; opacity: 0;
  transition: opacity .15s, transform .15s;
}
.card:hover .card-arrow { opacity: 1; transform: translate(2px, -2px); }

.area-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-700);
}
.area-icon.thematic { background: var(--accent-50); color: var(--accent-700); }

.kw-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* -------------------------------------------------- Badge */

.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 9999px;
  font-size: 11.5px; font-weight: 500; letter-spacing: -0.005em;
}
.badge-brand { background: var(--brand-50); color: var(--brand-800); }
.badge-accent { background: var(--accent-50); color: var(--accent-800); }
.badge-neutral { background: var(--surface-mute); color: var(--ink-soft); }
.badge-outline { border: 1px solid rgba(10,23,42,.15); color: var(--ink-soft); }
.badge-warn { background: #fef3c7; color: #92400e; }

/* -------------------------------------------------- Page header */

.page-header {
  border-bottom: 1px solid rgba(10,23,42,.06);
  background: var(--surface-alt);
  padding: 56px 0 72px;
}
.page-header-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .page-header-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
}
.page-header-copy { min-width: 0; }
.page-header-figure {
  margin: 0; border-radius: var(--radius-2xl); overflow: hidden;
  aspect-ratio: 16 / 10; box-shadow: var(--shadow-card);
  border: 1px solid rgba(10,23,42,.08); background: var(--surface-mute);
}
.page-header.dark .page-header-figure { border-color: rgba(255,255,255,.10); }
.page-header-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 899px) { .page-header-figure { aspect-ratio: 16 / 9; } }
.page-header.dark {
  background:
    radial-gradient(60% 80% at 20% 20%, rgba(34,166,127,.25) 0%, transparent 60%),
    radial-gradient(50% 60% at 80% 0%, rgba(44,96,168,.5) 0%, transparent 60%),
    linear-gradient(180deg, #0a172a 0%, #112440 100%);
  color: #fff; border-bottom: 0;
}
.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1; letter-spacing: -0.02em;
  margin-top: 12px; max-width: 960px;
}
.page-header .lead { margin-top: 20px; max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.page-header.dark .lead { color: rgba(255,255,255,.8); }
.page-header .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--brand-700); }
.page-header .eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; opacity: .65; }
.page-header.dark .eyebrow { color: var(--accent-300); }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-muted); }
.page-header.dark .crumbs { color: rgba(255,255,255,.7); }
.crumbs .sep { opacity: .5; }
.crumbs a:hover { color: var(--brand-700); }
.page-header.dark .crumbs a:hover { color: #fff; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }
.page-header.dark .crumbs [aria-current="page"] { color: #fff; }

/* -------------------------------------------------- Sidebar layout */

.with-sidebar {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  padding: 48px 0;
}
@media (min-width: 1024px) {
  .with-sidebar { grid-template-columns: minmax(0,1fr) 320px; gap: 56px; padding: 64px 0; }
}
.sidebar-card {
  background: var(--surface-alt); border: 1px solid rgba(10,23,42,.06);
  border-radius: var(--radius-2xl); padding: 24px;
  position: sticky; top: 88px;
}
.sidebar-title {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em;
  color: var(--brand-700);
}
.sidebar-section { margin-top: 20px; }
.sidebar-section:first-of-type { margin-top: 20px; }
.sidebar-section h3 { font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.sidebar-section ul { display: flex; flex-direction: column; gap: 4px; }
.sidebar-section a {
  display: flex; align-items: baseline; gap: 10px; justify-content: space-between;
  padding: 4px 4px; border-radius: 6px;
  font-size: 13.5px; color: var(--ink-soft);
  transition: color .12s;
}
.sidebar-section a:hover { color: var(--brand-800); }
.sidebar-section a .label { text-transform: capitalize; }
.sidebar-section a:hover .label { text-decoration: underline; text-underline-offset: 4px; }
.sidebar-section a .meta { font-size: 11px; color: var(--ink-muted); flex-shrink: 0; }
.sidebar-section .empty { font-size: 13px; color: var(--ink-muted); }

/* -------------------------------------------------- Prose */

.prose { max-width: var(--container-prose); color: var(--ink); font-size: 17px; line-height: 1.75; }
.prose h2, .prose h3 { font-family: var(--font-serif); letter-spacing: -0.015em; color: var(--ink); }
.prose h2 { font-size: 28px; margin-top: 40px; margin-bottom: 12px; }
.prose h3 { font-size: 22px; margin-top: 32px; margin-bottom: 10px; }
.prose p + p { margin-top: 16px; }
.prose > p:first-child { font-size: 18px; color: var(--ink-soft); }
.prose ul { margin-top: 12px; padding-left: 20px; }
.prose ul li { list-style: disc; margin-top: 6px; color: var(--ink-soft); }
.prose a { color: var(--brand-700); font-weight: 500; text-underline-offset: 4px; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--ink); font-weight: 600; }

/* -------------------------------------------------- Avatar */

.avatar {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px; flex-shrink: 0; user-select: none;
  background: linear-gradient(135deg, var(--brand-100), var(--accent-100));
  color: var(--brand-800); font-weight: 500;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.member-directory { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 18px 12px; }
.dir-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; color: var(--ink); padding: 8px 4px; border-radius: var(--radius-lg); transition: background .15s; }
.dir-card:hover { background: var(--surface-mute); }
.dir-name { font-size: 13px; line-height: 1.3; color: var(--ink-soft); }
.dir-card:hover .dir-name { color: var(--ink); }
.avatar.sm { width: 36px; height: 36px; font-size: 12px; }
.avatar.md { width: 48px; height: 48px; font-size: 14px; }
.avatar.lg { width: 76px; height: 76px; font-size: 20px; }
.avatar.xl { width: 112px; height: 112px; font-size: 28px; }

/* -------------------------------------------------- Person card */

.person-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px; border-radius: var(--radius-2xl);
  background: #fff; border: 1px solid rgba(10,23,42,.06);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease);
}
.person-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.person-card .top { display: flex; gap: 16px; align-items: flex-start; }
.person-card .name { font-weight: 600; color: var(--ink); }
.person-card:hover .name { color: var(--brand-800); }
.person-card .role { font-size: 12.5px; color: var(--ink-muted); }
.person-card .bio { font-size: 14px; color: var(--ink-soft); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* -------------------------------------------------- Filters */

.filterbar {
  background: #fff; border: 1px solid rgba(10,23,42,.06);
  border-radius: var(--radius-2xl); box-shadow: var(--shadow-card);
  padding: 16px; display: flex; flex-direction: column; gap: 14px;
}
.filterbar .search {
  position: relative;
}
.filterbar .search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--ink-muted); pointer-events: none;
}
.filterbar .search input {
  width: 100%; padding: 10px 12px 10px 36px;
  border-radius: 12px; border: 1px solid rgba(10,23,42,.1);
  background: var(--surface-alt); font-size: 14px;
}
.filterbar .search input:focus {
  outline: 2px solid var(--brand-500); outline-offset: 0; border-color: var(--brand-500);
}
.filterbar .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 14px; border-radius: 9999px; border: 1px solid rgba(10,23,42,.1);
  background: #fff; color: var(--ink-soft); font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: background .12s, color .12s, border-color .12s;
}
.chip:hover { background: var(--surface-mute); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--brand-800); color: #fff; border-color: var(--brand-800); }
.filterbar .selects { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .filterbar .selects { grid-template-columns: repeat(3, 1fr); } }
.selects label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-muted);
}
.selects select, .filterbar select {
  padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(10,23,42,.1);
  background: #fff; font-size: 14px; color: var(--ink); text-transform: none; letter-spacing: normal;
}

.result-count { margin-top: 24px; font-size: 13.5px; color: var(--ink-muted); }

/* -------------------------------------------------- Publication list */

.pub-list {
  margin-top: 16px; border: 1px solid rgba(10,23,42,.06);
  border-radius: var(--radius-2xl); background: #fff; overflow: hidden;
}
.pub-item { padding: 20px; border-top: 1px solid rgba(10,23,42,.06); }
.pub-item:first-child { border-top: 0; }
.pub-item:hover { background: rgba(246,248,252,.5); }
.pub-top { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.pub-title { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.pub-title:hover { text-decoration: underline; text-underline-offset: 4px; }
.pub-meta { margin-top: 4px; font-size: 13.5px; color: var(--ink-soft); }
.pub-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }

/* -------------------------------------------------- Meta grid (project details) */

.meta-grid {
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .meta-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .meta-grid { grid-template-columns: repeat(4, 1fr); } }
.meta-block {
  background: #fff; border: 1px solid rgba(10,23,42,.06);
  border-radius: 16px; padding: 16px;
}
.meta-block .label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-muted);
}
.meta-block .value { margin-top: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink); }

/* -------------------------------------------------- Impact cards */

.impact-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 16px; }
@media (min-width: 640px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }
.impact-item {
  background: rgba(207,245,233,.35);
  border: 1px solid var(--accent-200);
  border-radius: 12px; padding: 12px 16px;
  color: var(--brand-900); font-size: 14.5px;
}

/* -------------------------------------------------- Footer */

.footer { position: relative; margin-top: 40px; overflow: hidden; background: var(--surface-dark); color: #fff; }
.footer::before {
  content: ""; position: absolute; inset: 0; opacity: .3;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.footer-inner { position: relative; padding: 64px 0 40px; }
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer .logo-text .name { color: #fff; }
.footer .logo-text .sub { color: var(--accent-400); }
.footer-about { font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.6; max-width: 440px; margin-top: 20px; }
.footer-about strong { color: #fff; }
.footer-address { margin-top: 22px; font-style: normal; font-size: 14px; color: rgba(255,255,255,.7); display: flex; flex-direction: column; gap: 8px; }
.footer-address .line { display: flex; gap: 8px; align-items: flex-start; }
.footer-address svg { color: var(--accent-400); flex-shrink: 0; margin-top: 2px; }
.footer-address a:hover { color: #fff; }

.footer-col h3 {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em;
  color: var(--accent-300);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-size: 14px; }
.footer-col a { color: rgba(255,255,255,.78); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  position: relative; border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 56px; padding-top: 32px;
  display: flex; flex-direction: column; gap: 16px;
  font-size: 12px; color: rgba(255,255,255,.6);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom nav a:hover { color: #fff; }

/* -------------------------------------------------- Governance cards */

.gov-card {
  display: flex; gap: 16px; align-items: center;
  padding: 20px; border-radius: var(--radius-2xl);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  transition: background .15s var(--ease);
}
.gov-card:hover { background: rgba(255,255,255,.1); }
.gov-card .name { font-weight: 600; color: #fff; }
.gov-card .role { font-size: 13.5px; color: rgba(255,255,255,.72); }
.gov-card .badge-role {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent-300); margin-top: 4px;
}

/* -------------------------------------------------- Shop */

.product-cta {
  background: #fff; border: 1px solid rgba(10,23,42,.06);
  border-radius: var(--radius-2xl); padding: 24px;
  position: sticky; top: 88px;
}
.product-cta .price { font-family: var(--font-serif); font-size: 28px; color: var(--ink); }
.product-cta .stock { margin-top: 6px; font-size: 13px; color: var(--accent-700); }
.product-cta fieldset { border: 0; padding: 16px 0 0; margin: 0; }
.product-cta legend { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-muted); }
.product-cta .options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.product-cta .options label {
  border: 1px solid rgba(10,23,42,.1); padding: 6px 12px; border-radius: 9999px;
  font-size: 13px; cursor: pointer; background: #fff;
}
.product-cta .options input { position: absolute; opacity: 0; pointer-events: none; }
.product-cta .options input:checked + label { background: var(--brand-800); color: #fff; border-color: var(--brand-800); }
.product-cta .qty-row { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.product-cta .qty-row input { width: 72px; padding: 8px; border-radius: 9999px; border: 1px solid rgba(10,23,42,.1); text-align: center; }
.product-cta .add { width: 100%; margin-top: 16px; }
.product-cta .disclaimer { margin-top: 12px; font-size: 12px; color: var(--ink-muted); text-align: center; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: 14px; border-bottom: 1px solid rgba(10,23,42,.06); }
.cart-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-muted); font-weight: 600; }
.cart-table .qty { width: 120px; }
.cart-table .qty input { width: 64px; padding: 6px; text-align: center; border-radius: 9999px; border: 1px solid rgba(10,23,42,.1); }
.cart-total { margin-top: 24px; display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.cart-total .big { font-family: var(--font-serif); font-size: 28px; }
.cart-empty { background: var(--surface-alt); border: 1px dashed rgba(10,23,42,.15); border-radius: var(--radius-2xl); padding: 48px; text-align: center; color: var(--ink-soft); }

/* -------------------------------------------------- Callouts / empty states */

.empty-state {
  background: var(--surface-alt); border: 1px dashed rgba(10,23,42,.15);
  border-radius: var(--radius-2xl); padding: 48px;
  text-align: center; color: var(--ink-soft);
  margin-top: 24px;
}

/* -------------------------------------------------- CTA band */

.cta-band { background: var(--brand-900); color: #fff; padding: 72px 0; text-align: center; }
.cta-band h2 { font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; margin-inline: auto; max-width: 780px; }
.cta-band p { margin-top: 16px; max-width: 640px; margin-inline: auto; color: rgba(255,255,255,.82); font-size: 17px; }
.cta-band .actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* -------------------------------------------------- Form */

.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink); font-weight: 500; }
.form input, .form textarea, .form select {
  padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(10,23,42,.12); background: #fff; font-size: 15px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 2px solid var(--brand-500); outline-offset: 0; border-color: var(--brand-500);
}

/* -------------------------------------------------- Print */

@media print {
  .header, .footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}

/* -------------------------------------------------- Report page */

.report-eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .22em;
  color: var(--accent-600);
}
.report-h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 8px;
  color: var(--ink);
}
.report-lead { margin-top: 12px; font-size: 17px; color: var(--ink-soft); line-height: 1.65; max-width: 66ch; }

.report-table {
  margin-top: 24px; border: 1px solid rgba(10,23,42,.06);
  border-radius: var(--radius-2xl); overflow: hidden; background: #fff;
}
html[data-theme="dark"] .report-table { background: #0d1a32; border-color: rgba(255,255,255,.08); }
.report-row {
  display: grid; grid-template-columns: 1.1fr 1.4fr 1.4fr;
  gap: 16px; padding: 14px 18px;
  border-top: 1px solid rgba(10,23,42,.06); font-size: 14.5px;
  color: var(--ink);
}
.report-row:first-child { border-top: 0; }
html[data-theme="dark"] .report-row { border-top-color: rgba(255,255,255,.06); color: var(--ink); }
.report-row.report-head {
  background: var(--surface-alt); font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-muted); font-weight: 600;
}
html[data-theme="dark"] .report-row.report-head { background: #0a1324; color: var(--ink-muted); }
.report-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
  background: var(--surface-mute); padding: 2px 6px; border-radius: 6px;
}
html[data-theme="dark"] .report-row code { background: rgba(255,255,255,.06); }
@media (max-width: 768px) {
  .report-row { grid-template-columns: 1fr; gap: 4px; }
  .report-row.report-head { display: none; }
  .report-row > div::before {
    display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .14em;
    color: var(--ink-muted); margin-bottom: 2px; font-weight: 600;
  }
  .report-row:not(.report-head) > div:nth-child(1)::before { content: "Blocker / Item"; }
  .report-row:not(.report-head) > div:nth-child(2)::before { content: "Cause / Proposed"; }
  .report-row:not(.report-head) > div:nth-child(3)::before { content: "Fix / Delivered"; }
  .report-compare .report-row { grid-template-columns: 1fr; }
}
.report-compare .report-row { grid-template-columns: 1fr 1.2fr 1.1fr 1.3fr; }

.report-three {
  display: grid; gap: 20px; margin-top: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .report-three { grid-template-columns: repeat(3, 1fr); } }
.report-card {
  padding: 24px; border-radius: var(--radius-2xl);
  border: 1px solid rgba(10,23,42,.06); background: #fff;
  box-shadow: var(--shadow-card);
}
html[data-theme="dark"] .report-card { background: #0d1a32; border-color: rgba(255,255,255,.08); }
.report-card h3 { font-size: 16px; font-weight: 600; color: var(--ink); }
.report-card-sub { font-size: 12.5px; color: var(--ink-muted); margin-top: 4px; }
.report-card-primary {
  border-color: var(--accent-400); box-shadow: 0 0 0 2px rgba(63,196,154,.18), var(--shadow-card);
}
html[data-theme="dark"] .report-card-primary { border-color: var(--accent-500); }
.report-steps {
  margin-top: 14px; padding: 0; list-style: none;
  counter-reset: steps;
  display: flex; flex-direction: column; gap: 8px;
}
.report-steps li {
  padding: 10px 12px; border-radius: 12px; background: var(--surface-alt);
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.5;
}
html[data-theme="dark"] .report-steps li { background: #0a1324; color: var(--ink-soft); }
.report-steps li strong { color: var(--ink); }
html[data-theme="dark"] .report-steps li strong { color: var(--ink); }
.report-next li { padding: 14px 16px; font-size: 14.5px; }
.tag-done {
  display: inline-block; padding: 1px 8px; border-radius: 9999px;
  background: var(--accent-100); color: var(--accent-800); font-size: 11px; font-weight: 600;
}
html[data-theme="dark"] .tag-done { background: rgba(63,196,154,.14); color: var(--accent-300); }

.report-grid-2 {
  display: grid; gap: 16px; margin-top: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .report-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.report-stack {
  padding: 22px; border: 1px solid rgba(10,23,42,.06); border-radius: var(--radius-2xl);
  background: #fff;
}
html[data-theme="dark"] .report-stack { background: #0d1a32; border-color: rgba(255,255,255,.08); }
.report-stack h3 { font-size: 15px; font-weight: 600; color: var(--ink); }
.report-stack ul { margin-top: 10px; padding-left: 18px; }
.report-stack ul li { list-style: disc; margin-top: 6px; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.report-note {
  margin-top: 18px; padding: 14px 18px; border-radius: 12px;
  background: rgba(63,196,154,.08); border-left: 3px solid var(--accent-500);
  font-size: 14px; color: var(--ink); line-height: 1.6;
}
html[data-theme="dark"] .report-note { background: rgba(63,196,154,.08); color: var(--ink); }
.report-checks {
  padding: 0; list-style: none; margin-top: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.report-checks li {
  padding: 12px 14px; border-radius: 12px; background: var(--surface-alt);
  font-size: 14.5px; color: var(--ink); line-height: 1.6;
}
html[data-theme="dark"] .report-checks li { background: #0a1324; color: var(--ink); }
.report-checks li strong { color: var(--ink); }

.report-shop-preview {
  display: grid; gap: 16px; margin-top: 24px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .report-shop-preview { grid-template-columns: repeat(4, 1fr); } }
.report-shop-preview figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface-alt); border: 1px solid rgba(10,23,42,.06); }
html[data-theme="dark"] .report-shop-preview figure { background: #0a1324; border-color: rgba(255,255,255,.08); }
.report-shop-preview img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; }
.report-shop-preview figcaption {
  padding: 8px 12px; font-size: 12px; color: var(--ink-muted);
  border-top: 1px solid rgba(10,23,42,.05);
}
html[data-theme="dark"] .report-shop-preview figcaption { border-top-color: rgba(255,255,255,.06); color: var(--ink-muted); }

.report-manifesto {
  margin-top: 18px; padding: 28px; border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(26,60,110,.05), rgba(63,196,154,.08));
  border: 1px solid var(--accent-200);
  font-size: 16.5px; line-height: 1.7; color: var(--ink);
}
html[data-theme="dark"] .report-manifesto {
  background: linear-gradient(135deg, rgba(26,60,110,.35), rgba(63,196,154,.15));
  border-color: rgba(63,196,154,.4);
}
.report-manifesto p + p { margin-top: 12px; }
.report-manifesto strong { color: var(--brand-700); font-family: var(--font-serif); font-size: 20px; }
html[data-theme="dark"] .report-manifesto strong { color: var(--accent-300); }

.swatch {
  display: inline-block; width: 12px; height: 12px; border-radius: 3px;
  margin: 0 1px; vertical-align: middle; border: 1px solid rgba(10,23,42,.12);
}

/* -------------------------------------------------- Blog */

.featured-card {
  display: grid; grid-template-columns: 1fr;
  border-radius: var(--radius-2xl); overflow: hidden;
  background: #fff; border: 1px solid rgba(10,23,42,.06);
  box-shadow: var(--shadow-card);
  transition: transform .18s var(--ease), box-shadow .2s var(--ease);
}
html[data-theme="dark"] .featured-card { background: #0d1a32; border-color: rgba(255,255,255,.08); }
.featured-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
@media (min-width: 900px) { .featured-card { grid-template-columns: 1.2fr 1fr; } }
.featured-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; display: block; }
.featured-body { padding: 28px 28px 32px; display: flex; flex-direction: column; justify-content: center; }
.featured-title {
  margin-top: 10px; font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.2; color: var(--ink);
  letter-spacing: -0.01em;
}
.featured-dek { margin-top: 14px; font-size: 16px; color: var(--ink-soft); line-height: 1.55; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud .chip { font-size: 11.5px; padding: 6px 12px; }
.tag-count { margin-left: 4px; opacity: .55; font-weight: 500; }

.blog-grid {
  display: grid; gap: 20px; margin-top: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { overflow: hidden; }
.blog-card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--brand-800); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-meta {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 9999px;
  background: rgba(10,23,42,.7); color: #fff;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .18em;
  backdrop-filter: blur(6px);
}

.save-btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  padding: 6px; border-radius: 9999px; background: transparent;
  border: 1px solid rgba(10,23,42,.1);
  color: var(--ink-muted); cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.save-btn-lg { padding: 8px 14px; font-size: 13px; font-weight: 500; }
.save-btn:hover { color: var(--brand-800); border-color: var(--brand-800); }
.save-btn.is-saved { color: var(--accent-600); border-color: var(--accent-500); background: var(--accent-50); }
html[data-theme="dark"] .save-btn { border-color: rgba(255,255,255,.12); color: var(--ink-soft); }
html[data-theme="dark"] .save-btn.is-saved { background: rgba(63,196,154,.12); border-color: var(--accent-500); color: var(--accent-300); }

.newsletter-inline {
  margin-top: 48px; padding: 32px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(26,60,110,.06), rgba(63,196,154,.10));
  border: 1px solid var(--accent-200);
  display: grid; gap: 20px; grid-template-columns: 1fr;
}
@media (min-width: 900px) { .newsletter-inline { grid-template-columns: 1.2fr 1fr; align-items: center; } }
html[data-theme="dark"] .newsletter-inline {
  background: linear-gradient(135deg, rgba(26,60,110,.35), rgba(63,196,154,.14));
  border-color: rgba(63,196,154,.35);
}
.newsletter-inline .eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: .18em;
  color: var(--brand-700); font-weight: 700; margin: 0;
}
html[data-theme="dark"] .newsletter-inline .eyebrow { color: var(--accent-300); }
.newsletter-inline h3 {
  margin-top: 6px; font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--ink); letter-spacing: -0.01em;
}
.newsletter-inline p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }
.subscribe { display: flex; flex-direction: column; gap: 10px; }
.subscribe input {
  padding: 12px 14px; border-radius: 9999px;
  border: 1px solid rgba(10,23,42,.1); background: #fff; font-size: 15px;
}
html[data-theme="dark"] .subscribe input { background: #0a1324; color: var(--ink); border-color: rgba(255,255,255,.12); }
.subscribe button { width: 100%; }
.subscribe [data-subscribe-success] { font-size: 13px; color: var(--accent-700); }
html[data-theme="dark"] .subscribe [data-subscribe-success] { color: var(--accent-300); }

/* ---- Article (blog detail)  */
.article-header { max-width: 720px; }
.article-title {
  margin-top: 10px; font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em; color: var(--ink);
}
.article-dek {
  margin-top: 14px; font-size: 18px; color: var(--ink-soft); line-height: 1.6;
}
.article-byline {
  display: flex; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap;
}
.article-byline a { color: var(--ink); font-weight: 600; }
html[data-theme="dark"] .article-byline a { color: var(--ink); }
.article-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.article-cover {
  margin: 32px 0; border-radius: var(--radius-2xl); overflow: hidden;
  border: 1px solid rgba(10,23,42,.06);
}
html[data-theme="dark"] .article-cover { border-color: rgba(255,255,255,.08); }
.article-cover img { width: 100%; height: auto; display: block; aspect-ratio: 12/5; object-fit: cover; }

.article-body { max-width: 720px; }
.article-body .lead { font-size: 19px; color: var(--ink); line-height: 1.7; margin-bottom: 20px; }
html[data-theme="dark"] .article-body .lead { color: var(--ink); }
.article-body h2 {
  margin-top: 40px; margin-bottom: 12px;
  font-family: var(--font-serif); font-size: 26px; line-height: 1.2; color: var(--ink); letter-spacing: -0.01em;
}
.article-body h3 { margin-top: 28px; margin-bottom: 10px; font-size: 20px; color: var(--ink); }
.article-body p { margin-top: 14px; font-size: 17px; color: var(--ink-soft); line-height: 1.75; }
.article-body ul, .article-body ol { margin-top: 14px; padding-left: 20px; color: var(--ink-soft); }
.article-body li { list-style: disc; margin-top: 6px; font-size: 16.5px; line-height: 1.65; }
.article-body ol li { list-style: decimal; }
.article-body a { color: var(--brand-700); text-underline-offset: 4px; font-weight: 500; }
.article-body a:hover { text-decoration: underline; }
.article-body strong { color: var(--ink); }
.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--surface-mute); padding: 1px 6px; border-radius: 6px; font-size: 14px;
}
html[data-theme="dark"] .article-body code { background: rgba(255,255,255,.06); }
.article-body pre {
  background: var(--surface-mute); padding: 16px 18px; border-radius: 12px;
  overflow: auto; margin-top: 14px; font-size: 13.5px; line-height: 1.6;
}
html[data-theme="dark"] .article-body pre { background: #0a1324; }
.article-body pre code { background: transparent; padding: 0; }

.article-footer {
  margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(10,23,42,.08);
  display: flex; flex-direction: column; gap: 20px; max-width: 720px;
}
html[data-theme="dark"] .article-footer { border-top-color: rgba(255,255,255,.08); }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.article-cta {
  padding: 22px; border-radius: 16px;
  background: var(--surface-alt); border: 1px solid rgba(10,23,42,.05);
}
html[data-theme="dark"] .article-cta { background: #0d1a32; border-color: rgba(255,255,255,.08); }
.article-cta p { font-weight: 600; color: var(--ink); }
.article-related { margin-top: 64px; }

/* -------------------------------------------------- Account */

.auth-card {
  max-width: 640px; margin: 0 auto; padding: 40px;
  background: #fff; border: 1px solid rgba(10,23,42,.06);
  border-radius: var(--radius-2xl); box-shadow: var(--shadow-card);
  text-align: left;
}
html[data-theme="dark"] .auth-card { background: #0d1a32; border-color: rgba(255,255,255,.08); }
.auth-benefits {
  margin-top: 24px; display: grid; gap: 12px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .auth-benefits { grid-template-columns: repeat(2, 1fr); } }
.auth-benefits > div {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 14px; border-radius: 12px;
  background: var(--surface-alt); color: var(--ink); font-size: 14.5px;
}
html[data-theme="dark"] .auth-benefits > div { background: #0a1324; color: var(--ink); }
.auth-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn-google {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 9999px;
  background: #fff; color: #3c4043;
  border: 1px solid rgba(10,23,42,.15); font-size: 15px; font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.btn-google:hover { background: #f8fafc; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.auth-note {
  margin-top: 20px; padding: 12px 14px; border-radius: 10px;
  background: var(--surface-alt); color: var(--ink-soft); font-size: 12.5px; line-height: 1.55;
}
html[data-theme="dark"] .auth-note { background: #0a1324; color: var(--ink-soft); }
.auth-note strong { color: var(--ink); }

.account-btn { position: relative; }
.account-badge {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px; border-radius: 9999px;
  background: var(--brand-800); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
html[data-theme="dark"] .account-badge { background: var(--accent-500); color: var(--brand-950); }

/* -------------------------------------------------- Tools menu item (Search) */

.tools-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; color: var(--ink);
  font-size: 14px; font-weight: 500;
  border: 1px solid rgba(10,23,42,.08); background: var(--surface-alt);
  margin-bottom: 10px;
}
.tools-item:hover { background: var(--surface-mute); }
html[data-theme="dark"] .tools-item { background: #0a1324; border-color: rgba(255,255,255,.1); color: var(--ink); }
html[data-theme="dark"] .tools-item:hover { background: rgba(255,255,255,.06); }
.tools-item svg { color: var(--ink-muted); }

/* -------------------------------------------------- Shop — help banner & sections */

.shop-help-banner {
  display: grid; gap: 18px; grid-template-columns: 1fr;
  padding: 28px 32px; border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(63,196,154,.12), rgba(243,156,82,.12));
  border: 1px solid rgba(34,166,127,.35);
  align-items: flex-start;
}
html[data-theme="dark"] .shop-help-banner {
  background: linear-gradient(135deg, rgba(63,196,154,.18), rgba(243,156,82,.1));
  border-color: rgba(63,196,154,.4);
}
@media (min-width: 768px) { .shop-help-banner { grid-template-columns: auto 1fr; gap: 20px; } }
.shop-help-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(239,68,68,.12); color: #dc2626; flex-shrink: 0;
}
html[data-theme="dark"] .shop-help-icon { background: rgba(239,68,68,.2); color: #fca5a5; }
.shop-help-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: .18em;
  color: var(--accent-700); font-weight: 700; margin: 0;
}
html[data-theme="dark"] .shop-help-eyebrow { color: var(--accent-300); }
.shop-help-title {
  font-family: var(--font-serif); font-size: 24px; color: var(--ink);
  margin-top: 6px; letter-spacing: -0.015em; line-height: 1.2;
}
.shop-help-body {
  margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6;
  max-width: 70ch;
}
.shop-help-body strong { color: var(--ink); }

.shop-section-head { margin-bottom: 24px; max-width: 640px; }
.shop-section-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.8rem); color: var(--ink);
  letter-spacing: -0.01em;
}
.shop-section-head p { margin-top: 4px; font-size: 14.5px; color: var(--ink-soft); }

.shop-footnote {
  margin-top: 40px; padding: 14px 18px; border-radius: 12px;
  border: 1px dashed rgba(10,23,42,.15); background: var(--surface-alt);
  font-size: 13px; color: var(--ink-muted); text-align: center;
}
html[data-theme="dark"] .shop-footnote { background: #0d1a32; border-color: rgba(255,255,255,.12); }

/* -------------------------------------------------- Shop — bundle cards */

.bundle-grid {
  display: grid; gap: 22px; grid-template-columns: 1fr;
}
@media (min-width: 900px) { .bundle-grid { grid-template-columns: repeat(2, 1fr); } }
.bundle-card {
  display: grid; grid-template-columns: 1fr;
  background: #fff; border: 1px solid rgba(10,23,42,.06);
  border-radius: var(--radius-2xl); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .18s var(--ease), box-shadow .2s var(--ease);
}
.bundle-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
html[data-theme="dark"] .bundle-card { background: #0d1a32; border-color: rgba(255,255,255,.08); }
@media (min-width: 640px) { .bundle-card { grid-template-columns: 260px 1fr; } }
.bundle-media {
  aspect-ratio: 4/3; background: linear-gradient(135deg, var(--brand-100), var(--accent-50));
  overflow: hidden; position: relative;
}
.bundle-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bundle-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.bundle-eyebrow {
  display: inline-block; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .18em; color: var(--accent-700); font-weight: 700;
}
html[data-theme="dark"] .bundle-eyebrow { color: var(--accent-300); }
.bundle-title {
  font-family: var(--font-serif); font-size: 22px; color: var(--ink);
  margin-top: 4px; letter-spacing: -0.01em;
}
.bundle-tagline { font-size: 14.5px; color: var(--ink-soft); margin-top: 4px; }
.bundle-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.bundle-chip {
  display: inline-flex; padding: 3px 10px; border-radius: 9999px;
  background: var(--surface-mute); color: var(--ink-soft);
  font-size: 11.5px; letter-spacing: -0.005em;
}
html[data-theme="dark"] .bundle-chip { background: rgba(255,255,255,.06); color: var(--ink-soft); }
.bundle-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.bundle-pricing {
  display: flex; gap: 14px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin-top: auto; padding-top: 10px;
  border-top: 1px solid rgba(10,23,42,.06);
}
html[data-theme="dark"] .bundle-pricing { border-top-color: rgba(255,255,255,.08); }
.bundle-prices { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.bundle-price-now {
  font-family: var(--font-serif); font-size: 26px; color: var(--ink);
  letter-spacing: -0.015em; font-weight: 600;
}
.bundle-price-was {
  font-size: 14px; color: var(--ink-muted); text-decoration: line-through;
}
.bundle-savings {
  display: inline-flex; padding: 3px 10px; border-radius: 9999px;
  background: #f39c52; color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: -0.005em;
}

.account-grid {
  display: grid; gap: 24px; grid-template-columns: 1fr;
}
@media (min-width: 900px) { .account-grid { grid-template-columns: 260px 1fr; } }

.account-nav { display: flex; flex-direction: column; gap: 4px; }
.account-hero {
  display: flex; gap: 12px; align-items: center;
  padding: 16px; border-radius: 16px; background: var(--surface-alt);
  border: 1px solid rgba(10,23,42,.06); margin-bottom: 16px;
}
html[data-theme="dark"] .account-hero { background: #0d1a32; border-color: rgba(255,255,255,.08); }
.account-avatar {
  width: 48px; height: 48px; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 18px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900));
}
.account-name { font-weight: 600; color: var(--ink); }
.account-email { font-size: 12.5px; color: var(--ink-muted); }

.account-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px; background: transparent;
  font-size: 14px; color: var(--ink-soft); cursor: pointer;
  border: 1px solid transparent; text-align: left; width: 100%;
}
.account-nav-item:hover { background: var(--surface-mute); color: var(--ink); }
.account-nav-item.is-active {
  background: var(--brand-50); color: var(--brand-800); border-color: rgba(26,60,110,.1); font-weight: 600;
}
html[data-theme="dark"] .account-nav-item { color: var(--ink-soft); }
html[data-theme="dark"] .account-nav-item:hover { background: rgba(255,255,255,.04); color: var(--ink); }
html[data-theme="dark"] .account-nav-item.is-active { background: rgba(63,196,154,.12); color: var(--accent-300); border-color: rgba(63,196,154,.2); }
.account-nav-item .count {
  margin-left: auto; background: rgba(10,23,42,.06); color: var(--ink-muted);
  font-size: 11px; padding: 2px 8px; border-radius: 9999px; font-weight: 500;
}
html[data-theme="dark"] .account-nav-item .count { background: rgba(255,255,255,.06); color: var(--ink-muted); }
.account-signout { color: var(--ink-muted); margin-top: 8px; }
.account-signout:hover { background: rgba(220,38,38,.08); color: #b91c1c; }
html[data-theme="dark"] .account-signout:hover { background: rgba(220,38,38,.12); color: #fca5a5; }

.account-content {
  background: #fff; border: 1px solid rgba(10,23,42,.06);
  border-radius: var(--radius-2xl); padding: 32px; min-height: 500px;
}
html[data-theme="dark"] .account-content { background: #0d1a32; border-color: rgba(255,255,255,.08); }

.avatar-picker { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.avatar-swatch {
  border: 2px solid transparent; background: transparent; border-radius: 9999px; padding: 2px; cursor: pointer;
}
.avatar-swatch span { display: block; width: 36px; height: 36px; border-radius: 9999px; }
.avatar-swatch.is-active { border-color: var(--brand-700); }
html[data-theme="dark"] .avatar-swatch.is-active { border-color: var(--accent-400); }

.check {
  display: flex; align-items: center; gap: 8px; font-weight: 400;
  color: var(--ink-soft); font-size: 14.5px;
}
.check input { margin: 0; width: 16px; height: 16px; }

.account-list {
  display: flex; flex-direction: column; gap: 8px; margin-top: 16px;
}
.account-list li {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 12px 16px; border-radius: 12px; background: var(--surface-alt);
  border: 1px solid rgba(10,23,42,.05);
}
html[data-theme="dark"] .account-list li { background: #0a1324; border-color: rgba(255,255,255,.06); }
.account-list a { color: var(--ink); font-size: 14.5px; text-transform: capitalize; }
.account-list a:hover { color: var(--brand-700); }
html[data-theme="dark"] .account-list a:hover { color: var(--accent-300); }
.account-empty {
  padding: 20px; border-radius: 12px; border: 1px dashed rgba(10,23,42,.15);
  background: var(--surface-alt); color: var(--ink-muted); font-size: 14px; margin-top: 14px;
}
html[data-theme="dark"] .account-empty { background: #0a1324; border-color: rgba(255,255,255,.1); color: var(--ink-muted); }
.account-empty a { color: var(--brand-700); }

.topic-grid {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.topic-chip {
  padding: 8px 14px; border-radius: 9999px;
  border: 1px solid rgba(10,23,42,.1); background: #fff;
  color: var(--ink-soft); font-size: 13.5px; cursor: pointer;
  transition: all .12s;
}
.topic-chip:hover { background: var(--surface-mute); }
.topic-chip.is-active { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }
html[data-theme="dark"] .topic-chip { background: #0a1324; border-color: rgba(255,255,255,.12); color: var(--ink-soft); }
html[data-theme="dark"] .topic-chip.is-active { background: var(--accent-500); color: var(--brand-950); border-color: var(--accent-500); }

/* Subscribe card on /newsletter/ */
.subscribe-card {
  display: grid; gap: 28px; grid-template-columns: 1fr;
  background: #fff; border: 1px solid rgba(10,23,42,.06);
  border-radius: var(--radius-2xl); padding: 32px; box-shadow: var(--shadow-card);
}
html[data-theme="dark"] .subscribe-card { background: #0d1a32; border-color: rgba(255,255,255,.08); }
@media (min-width: 900px) { .subscribe-card { grid-template-columns: 1fr 1fr; align-items: start; } }
.subscribe-fields { display: flex; flex-direction: column; gap: 14px; }
.subscribe-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink); font-weight: 500; }
.subscribe-fields input {
  padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(10,23,42,.1); font-size: 15px;
}
html[data-theme="dark"] .subscribe-fields input { background: #0a1324; border-color: rgba(255,255,255,.12); color: var(--ink); }
.subscribe-fields fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

/* Funnel stages */
.funnel-stages {
  display: grid; gap: 16px; margin-top: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .funnel-stages { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .funnel-stages { grid-template-columns: repeat(3, 1fr); } }
.funnel-stage {
  padding: 24px; border-radius: var(--radius-2xl);
  background: #fff; border: 1px solid rgba(10,23,42,.06);
  display: flex; flex-direction: column; gap: 8px;
}
html[data-theme="dark"] .funnel-stage { background: #0d1a32; border-color: rgba(255,255,255,.08); }
.funnel-step {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .18em;
  color: var(--accent-600); font-weight: 700;
}
html[data-theme="dark"] .funnel-step { color: var(--accent-300); }
.funnel-stage h3 {
  font-family: var(--font-serif); font-size: 20px; color: var(--ink); letter-spacing: -0.01em;
}
.funnel-stage ul { padding-left: 18px; margin-top: 6px; }
.funnel-stage ul li { list-style: disc; margin-top: 6px; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.funnel-kpi {
  margin-top: auto; padding: 10px 14px; border-radius: 10px;
  background: var(--surface-alt); font-size: 12.5px; color: var(--ink-muted); line-height: 1.5;
}
html[data-theme="dark"] .funnel-kpi { background: #0a1324; }
.funnel-kpi strong { color: var(--ink); }
.report-funnel .report-row { grid-template-columns: 1fr 2fr 1fr; }
@media (max-width: 768px) { .report-funnel .report-row { grid-template-columns: 1fr; } }

/* SEO scorecard */
.seo-grid {
  display: grid; gap: 14px; margin-top: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .seo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .seo-grid { grid-template-columns: repeat(4, 1fr); } }
.seo-card {
  padding: 22px; border-radius: 16px; background: #fff;
  border: 1px solid rgba(10,23,42,.06);
}
html[data-theme="dark"] .seo-card { background: #0d1a32; border-color: rgba(255,255,255,.08); }
.seo-card.seo-green { border-color: rgba(63,196,154,.5); }
.seo-card.seo-amber { border-color: rgba(243,156,82,.5); }
.seo-score { font-family: var(--font-serif); font-size: 40px; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.seo-label { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-muted); margin-top: 6px; font-weight: 600; }
.seo-card p { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.seo-table .report-row { grid-template-columns: 2fr 1.6fr 0.5fr; align-items: center; }
@media (max-width: 768px) { .seo-table .report-row { grid-template-columns: 1fr; } }

/* -------------------------------------------------- Source banner (publications, etc.) */

.source-banner {
  display: grid; gap: 16px; grid-template-columns: 1fr;
  padding: 20px 24px; border-radius: 16px;
  background: var(--surface-alt); border: 1px solid rgba(10,23,42,.06);
  align-items: center;
}
html[data-theme="dark"] .source-banner { background: #0d1a32; border-color: rgba(255,255,255,.08); }
@media (min-width: 768px) { .source-banner { grid-template-columns: 1fr auto; } }
.source-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .18em; color: var(--brand-700); font-weight: 700; margin: 0; }
html[data-theme="dark"] .source-label { color: var(--accent-300); }
.source-title { font-family: var(--font-serif); font-size: 19px; color: var(--ink); margin-top: 4px; letter-spacing: -0.01em; }
.source-title a { color: var(--brand-700); }
html[data-theme="dark"] .source-title a { color: var(--accent-300); }
.source-title a:hover { text-decoration: underline; }
.source-desc { margin-top: 6px; font-size: 14px; color: var(--ink-soft); line-height: 1.6; max-width: 70ch; }

/* -------------------------------------------------- Language toggle */

.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 9999px;
  border: 1px solid rgba(10,23,42,.1); background: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  color: var(--ink-soft);
}
html[data-theme="dark"] .lang-toggle { background: #0a1324; border-color: rgba(255,255,255,.1); color: var(--ink-soft); }
.lang-toggle:hover { background: var(--surface-mute); color: var(--ink); }
.lang-toggle[aria-pressed="true"] .lang-on { color: var(--brand-800); font-weight: 700; }
html[data-theme="dark"] .lang-toggle[aria-pressed="true"] .lang-on { color: var(--accent-300); }
.lang-sep { color: var(--ink-muted); padding: 0 2px; }

/* -------------------------------------------------- Academic report extras */

.report-id-card {
  background: var(--surface-alt); border: 1px solid rgba(10,23,42,.06);
  border-radius: var(--radius-2xl); padding: 24px 28px; margin-top: 18px;
}
html[data-theme="dark"] .report-id-card { background: #0d1a32; border-color: rgba(255,255,255,.08); }
.report-id-card dl {
  display: grid; gap: 10px 28px; grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .report-id-card dl { grid-template-columns: max-content 1fr; }
}
.report-id-card dt {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .18em;
  color: var(--ink-muted); font-weight: 600; padding-top: 4px;
}
.report-id-card dd {
  margin: 0; font-size: 15px; color: var(--ink); line-height: 1.55;
}

.report-stack-table {
  display: grid; gap: 8px; margin-top: 16px;
}
.report-stack-table > div {
  display: grid; grid-template-columns: 1fr; gap: 4px;
  padding: 14px 18px; border-radius: 12px;
  background: var(--surface-alt); border: 1px solid rgba(10,23,42,.05);
  font-size: 14.5px;
}
@media (min-width: 640px) {
  .report-stack-table > div { grid-template-columns: 240px 1fr; gap: 16px; align-items: baseline; }
}
html[data-theme="dark"] .report-stack-table > div { background: #0d1a32; border-color: rgba(255,255,255,.08); }
.report-stack-table strong { color: var(--ink); }
.report-stack-table span { color: var(--ink-soft); }

.report-two-col {
  column-count: 1; column-gap: 32px; padding-left: 18px;
}
@media (min-width: 720px) { .report-two-col { column-count: 2; } }
.report-two-col li { list-style: disc; margin: 0 0 8px; break-inside: avoid; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

.swatch-grid {
  display: grid; gap: 10px; margin-top: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .swatch-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .swatch-grid { grid-template-columns: repeat(5, 1fr); } }
.swatch-chip {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px 14px; border-radius: 14px; min-height: 88px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
}
.swatch-chip code { font-size: 10.5px; opacity: .75; font-family: ui-monospace, SFMono-Regular, monospace; }

.type-specimen {
  display: grid; gap: 20px; margin-top: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .type-specimen { grid-template-columns: repeat(2, 1fr); } }
.type-specimen > div {
  padding: 20px 22px; border-radius: 14px;
  background: var(--surface-alt); border: 1px solid rgba(10,23,42,.05);
}
html[data-theme="dark"] .type-specimen > div { background: #0d1a32; border-color: rgba(255,255,255,.08); }
.type-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .18em;
  color: var(--ink-muted); font-weight: 600; margin: 0 0 10px;
}
.type-sample { color: var(--ink); margin: 0; }

.logo-showcase {
  display: flex; gap: 40px; align-items: flex-end; flex-wrap: wrap;
  margin-top: 18px; padding: 24px 28px; border-radius: 14px;
  background: var(--surface-alt); border: 1px solid rgba(10,23,42,.05);
}
html[data-theme="dark"] .logo-showcase { background: #0d1a32; border-color: rgba(255,255,255,.08); }
.logo-showcase figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.logo-showcase figcaption { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-muted); }

/* -------------------------------------------------- Nav link styling (primary) */

.nav-primary .nav-link {
  /* base styling inherited via .nav-primary a, defined later below */
}

/* Shop nav link — regular nav item, carries the cart badge */
.nav-link-shop {
  display: inline-flex !important; align-items: center; gap: 6px;
  position: relative;
}
.nav-link-shop .cart-badge {
  position: static; margin-left: 2px;
  background: var(--accent-500); color: var(--brand-950);
  padding: 0 6px; height: 18px; min-width: 18px; font-size: 10.5px;
}
html[data-theme="dark"] .nav-link-shop .cart-badge { background: var(--accent-400); }

/* Project Report nav link — accent-coloured to indicate meta-work, but still
   part of the primary nav (not an isolated pill). */
.nav-link-report {
  color: var(--accent-700) !important;
  font-weight: 600 !important;
}
.nav-link-report:hover { background: var(--accent-50) !important; color: var(--accent-800) !important; }
.nav-link-report[aria-current="page"] { background: var(--accent-100) !important; color: var(--accent-800) !important; }
html[data-theme="dark"] .nav-link-report { color: var(--accent-300) !important; }
html[data-theme="dark"] .nav-link-report:hover { background: rgba(63,196,154,.1) !important; color: var(--accent-200) !important; }
html[data-theme="dark"] .nav-link-report[aria-current="page"] { background: rgba(63,196,154,.18) !important; color: var(--accent-200) !important; }

/* -------------------------------------------------- Isolated Report button */

.btn-report {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px 8px 12px; border-radius: 9999px;
  background: var(--accent-500); color: var(--brand-950);
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid var(--accent-500);
  box-shadow: 0 1px 2px rgba(34,166,127,.25);
  transition: background .12s, color .12s, transform .12s;
  position: relative;
  white-space: nowrap;
  margin-left: 4px;
}
.btn-report:hover { background: var(--accent-400); transform: translateY(-1px); }
.btn-report[aria-current="page"] { background: var(--accent-600); color: #fff; }
html[data-theme="dark"] .btn-report { background: var(--accent-500); color: var(--brand-950); }
html[data-theme="dark"] .btn-report:hover { background: var(--accent-300); }
.btn-report svg { margin-left: 2px; opacity: .7; }
.report-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 9999px;
  background: var(--brand-900); margin-right: 2px;
  box-shadow: 0 0 0 2px rgba(10,23,42,.12);
}
html[data-theme="dark"] .report-dot { background: var(--brand-950); }

.nav-report-group .nav-dropdown-report {
  width: 360px; right: 0; left: auto;
  max-height: 70vh; overflow-y: auto;
}
.nav-dropdown-report a { padding: 9px 12px; }
.nav-dropdown-heading {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .18em;
  color: var(--ink-muted); font-weight: 700; margin: 6px 12px 2px;
}
html[data-theme="dark"] .nav-dropdown-heading { color: var(--ink-muted); }
.nav-dropdown-chapters {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 4px;
  padding: 0 4px 8px;
}
.nav-dropdown-chapters a { padding: 6px 8px; font-size: 13px; }
.nav-dropdown-chapter { border-radius: 8px; }
.nav-dropdown-chapter .label { font-weight: 500; font-size: 13px; }
.nav-dropdown-divider {
  height: 1px; background: rgba(10,23,42,.08); margin: 6px 12px;
}
html[data-theme="dark"] .nav-dropdown-divider { background: rgba(255,255,255,.08); }

/* -------------------------------------------------- Meta disclosure banner */

.meta-disclosure {
  background: linear-gradient(180deg, rgba(243,156,82,.12), rgba(243,156,82,.04));
  border-bottom: 1px solid rgba(243,156,82,.35);
  color: var(--ink);
}
html[data-theme="dark"] .meta-disclosure {
  background: linear-gradient(180deg, rgba(243,156,82,.14), rgba(243,156,82,.04));
  border-bottom-color: rgba(243,156,82,.3);
}
.meta-disclosure-inner {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; max-width: var(--container);
}
.meta-disclosure-inner svg { color: #c07a36; flex-shrink: 0; margin-top: 2px; }
html[data-theme="dark"] .meta-disclosure-inner svg { color: #f39c52; }
.meta-disclosure-inner p {
  font-size: 13.5px; color: var(--ink); line-height: 1.55; margin: 0;
}
.meta-disclosure-inner strong { color: #7a4a1e; font-weight: 700; }
html[data-theme="dark"] .meta-disclosure-inner strong { color: #f9d0a7; }
.meta-disclosure-inner a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="dark"] .meta-disclosure-inner a { color: var(--accent-300); }

/* -------------------------------------------------- Public newsletter */

.newsletter-public-grid {
  display: grid; gap: 24px; grid-template-columns: 1fr;
}
@media (min-width: 900px) { .newsletter-public-grid { grid-template-columns: 1.4fr 1fr; } }
.newsletter-value {
  padding: 28px; border-radius: var(--radius-2xl);
  background: var(--surface-alt); border: 1px solid rgba(10,23,42,.06);
  align-self: start;
}
html[data-theme="dark"] .newsletter-value { background: #0d1a32; border-color: rgba(255,255,255,.08); }
.newsletter-value h3 { font-family: var(--font-serif); color: var(--ink); letter-spacing: -0.01em; }
.newsletter-value p { margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.newsletter-value ul { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; padding: 0; }
.newsletter-value ul li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--ink-soft); line-height: 1.5;
}
.newsletter-value ul li svg { color: var(--accent-600); flex-shrink: 0; margin-top: 3px; }
html[data-theme="dark"] .newsletter-value ul li svg { color: var(--accent-400); }

.m-nav-report {
  margin-top: 6px !important;
  background: var(--accent-500) !important;
  color: var(--brand-950) !important;
  font-weight: 600 !important;
}

/* -------------------------------------------------- Marketing hub */

.marketing-tiles {
  display: grid; gap: 16px; margin-top: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .marketing-tiles { grid-template-columns: repeat(3, 1fr); } }
.marketing-tile {
  padding: 28px; border-radius: var(--radius-2xl);
  background: #fff; border: 1px solid rgba(10,23,42,.06);
  box-shadow: var(--shadow-card); color: var(--ink);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease);
}
.marketing-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
html[data-theme="dark"] .marketing-tile { background: #0d1a32; border-color: rgba(255,255,255,.08); color: var(--ink); }
.marketing-tile-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.marketing-tile h3 { font-family: var(--font-serif); font-size: 22px; color: var(--ink); margin-top: 6px; letter-spacing: -0.01em; }
.marketing-tile p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; margin-top: 4px; }
.marketing-tile-cta {
  margin-top: auto; padding-top: 10px;
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--brand-700); font-weight: 600;
}
html[data-theme="dark"] .marketing-tile-cta { color: var(--accent-300); }

.callout-band {
  display: grid; gap: 20px; grid-template-columns: 1fr;
  padding: 28px 32px; border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(26,60,110,.06), rgba(63,196,154,.10));
  border: 1px solid var(--accent-200);
  align-items: center;
}
html[data-theme="dark"] .callout-band { background: linear-gradient(135deg, rgba(26,60,110,.35), rgba(63,196,154,.14)); border-color: rgba(63,196,154,.3); }
@media (min-width: 768px) { .callout-band { grid-template-columns: 1fr auto; } }
.callout-band .eyebrow {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .18em;
  color: var(--brand-700); font-weight: 700; margin: 0;
}
html[data-theme="dark"] .callout-band .eyebrow { color: var(--accent-300); }
.callout-band h3 {
  font-family: var(--font-serif); font-size: 22px; color: var(--ink); margin-top: 4px;
}
.callout-band p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; margin-top: 6px; }

/* -------------------------------------------------- Lead journey */

.journey-kpis {
  display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr);
  margin-top: 20px;
}
@media (min-width: 640px) { .journey-kpis { grid-template-columns: repeat(4, 1fr); } }
.journey-kpis > div {
  padding: 20px; border-radius: 14px; background: var(--surface-alt);
  border: 1px solid rgba(10,23,42,.05); text-align: center;
}
html[data-theme="dark"] .journey-kpis > div { background: #0d1a32; border-color: rgba(255,255,255,.08); }
.k-value { font-family: var(--font-serif); font-size: 28px; color: var(--accent-600); letter-spacing: -0.02em; }
html[data-theme="dark"] .k-value { color: var(--accent-300); }
.k-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-muted); margin-top: 4px; }

.journey-timeline {
  margin-top: 28px; padding-left: 0; list-style: none;
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
}
.journey-timeline::before {
  content: ''; position: absolute; left: 18px; top: 28px; bottom: 28px;
  width: 2px; background: rgba(34,166,127,.25); border-radius: 2px;
}
.journey-step {
  display: flex; gap: 20px; position: relative;
}
.journey-number {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 9999px;
  background: var(--accent-500); color: var(--brand-950);
  font-family: var(--font-serif); font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px var(--surface);
  margin-top: 4px;
}
html[data-theme="dark"] .journey-number { box-shadow: 0 0 0 6px var(--surface); }
.journey-content {
  flex: 1; padding: 18px 22px; border-radius: var(--radius-2xl);
  background: #fff; border: 1px solid rgba(10,23,42,.06);
  box-shadow: var(--shadow-sm);
}
html[data-theme="dark"] .journey-content { background: #0d1a32; border-color: rgba(255,255,255,.08); }
.journey-content h3 { font-family: var(--font-serif); font-size: 20px; color: var(--ink); letter-spacing: -0.01em; margin-top: 4px; }
.journey-meta { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-muted); font-weight: 600; }
.journey-subject {
  margin-top: 10px; padding: 8px 12px; border-radius: 8px;
  background: var(--surface-alt); font-size: 13.5px; color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
html[data-theme="dark"] .journey-subject { background: #0a1324; color: var(--ink); }
.journey-subject span {
  color: var(--ink-muted); margin-right: 8px;
  text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px;
  font-family: var(--font-sans); font-weight: 600;
}
.journey-intent { margin-top: 14px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.journey-intent strong { color: var(--ink); }
.journey-content ul { margin-top: 10px; padding-left: 20px; }
.journey-content ul li { list-style: disc; margin-top: 4px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.journey-kpi {
  margin-top: 14px; padding: 10px 14px; border-radius: 10px;
  background: rgba(34,166,127,.08); border-left: 3px solid var(--accent-500);
  font-size: 13px; color: var(--ink); line-height: 1.5;
}
.journey-kpi strong { color: var(--brand-700); }
html[data-theme="dark"] .journey-kpi strong { color: var(--accent-300); }

/* -------------------------------------------------- Report (rewrite) */

.report-article { min-width: 0; max-width: 780px; }
.report-article .report-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 1.75rem); color: var(--ink);
  margin-top: 44px; margin-bottom: 12px; letter-spacing: -0.01em; line-height: 1.2;
}
.report-article .report-h2:first-of-type { margin-top: 8px; }
.report-article .report-h3 {
  font-family: var(--font-serif); font-size: 1.15rem; color: var(--ink);
  margin-top: 28px; margin-bottom: 10px; letter-spacing: -0.01em;
}
.report-article p { margin-top: 12px; font-size: 16px; color: var(--ink-soft); line-height: 1.7; }
.report-article .report-list { padding-left: 20px; margin-top: 12px; color: var(--ink-soft); }
.report-article .report-list li { list-style: disc; margin-top: 6px; font-size: 15.5px; line-height: 1.6; }
.report-article ol.report-list li { list-style: decimal; }
.report-article strong { color: var(--ink); }
.report-article em { color: var(--ink); font-style: italic; }
.report-article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; padding: 1px 6px; border-radius: 5px;
  background: var(--surface-mute); color: var(--ink);
}
html[data-theme="dark"] .report-article code { background: rgba(255,255,255,.06); }

.report-toc .sidebar-section ul { gap: 2px; }
.report-toc .sidebar-section li.is-active a {
  color: var(--brand-800); font-weight: 600; background: var(--brand-50);
  border-radius: 6px; padding: 6px 10px;
}
html[data-theme="dark"] .report-toc .sidebar-section li.is-active a {
  color: var(--accent-300); background: rgba(63,196,154,.12);
}
.report-toc .sidebar-section li.is-active a .label { text-decoration: none; }

/* Report TOC as a hamburger-triggered side drawer */
.report-shell { padding: 28px 0 64px; }
.report-shell .report-article { margin: 0 auto; }
.report-nav-toggle {
  position: sticky; top: 80px; z-index: 6; margin: 0 0 24px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 9999px; cursor: pointer;
  background: var(--surface); color: var(--ink);
  border: 1px solid rgba(10,23,42,.14); box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 600;
}
.report-nav-toggle:hover { background: var(--surface-mute); }
.report-nav-backdrop {
  position: fixed; inset: 0; background: rgba(10,23,42,.45);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; z-index: 70;
}
.report-nav-backdrop.is-open { opacity: 1; visibility: visible; }
.report-nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 340px);
  background: var(--surface); border-right: 1px solid rgba(10,23,42,.1);
  box-shadow: var(--shadow-pop); z-index: 71;
  transform: translateX(-105%); visibility: hidden;
  transition: transform .28s ease, visibility .28s;
  overflow-y: auto; padding: 20px 22px 36px;
}
.report-nav-drawer.is-open { transform: none; visibility: visible; }
.report-nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 8px;
}
.report-nav-close {
  background: none; border: none; cursor: pointer; color: var(--ink-soft);
  padding: 6px; border-radius: 8px; line-height: 0;
}
.report-nav-close:hover { background: var(--surface-mute); color: var(--ink); }
.report-nav-group { margin-top: 18px; }
.report-nav-group h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .16em;
  color: var(--brand-700); margin-bottom: 8px;
}
.report-nav-group ul { display: flex; flex-direction: column; gap: 2px; }
.report-nav-group li a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-soft);
}
.report-nav-group li a:hover { background: var(--surface-mute); color: var(--ink); }
.report-nav-group li a .meta { font-size: 12px; color: var(--brand-700); font-weight: 600; }
html[data-theme="dark"] .report-nav-drawer { background: #0d1a32; border-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .report-nav-toggle { background: #0d1a32; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .report-nav-group h4 { color: var(--accent-300); }
html[data-theme="dark"] .report-nav-group li a .meta { color: var(--accent-300); }
@media (prefers-reduced-motion: reduce) {
  .report-nav-drawer, .report-nav-backdrop { transition: none; }
}

/* Cover (index) */
.report-cover {
  padding: 32px 0 8px;
}
.report-cover-title {
  margin-top: 4px; font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -0.015em;
  color: var(--ink);
}
.report-meta {
  margin-top: 24px; display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .report-meta { grid-template-columns: repeat(2, 1fr); } }
.report-meta > div {
  padding: 14px 16px; border: 1px solid rgba(10,23,42,.06);
  border-radius: 14px; background: var(--surface-alt);
}
html[data-theme="dark"] .report-meta > div { background: #0a1324; border-color: rgba(255,255,255,.06); }
.report-meta dt {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-muted); font-weight: 700; margin-bottom: 4px;
}
.report-meta dd { font-size: 14.5px; color: var(--ink); line-height: 1.5; margin: 0; }
.report-meta dd span { color: var(--ink-muted); font-size: 13px; }

.report-abstract {
  margin-top: 36px; padding: 24px; border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(26,60,110,.04), rgba(63,196,154,.06));
  border: 1px solid var(--accent-200);
}
html[data-theme="dark"] .report-abstract {
  background: linear-gradient(135deg, rgba(26,60,110,.32), rgba(63,196,154,.1));
  border-color: rgba(63,196,154,.3);
}
.report-abstract h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-700); margin-bottom: 10px; }
html[data-theme="dark"] .report-abstract h3 { color: var(--accent-300); }
.report-abstract p { font-size: 15.5px; color: var(--ink); line-height: 1.7; margin-top: 10px; }
.report-abstract p:first-of-type { margin-top: 0; }

.report-map {
  display: grid; gap: 10px; margin-top: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .report-map { grid-template-columns: repeat(2, 1fr); } }
.report-card-nav {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 12px;
  border: 1px solid rgba(10,23,42,.06); background: #fff;
  transition: background .12s, transform .12s, border-color .12s;
}
html[data-theme="dark"] .report-card-nav { background: #0d1a32; border-color: rgba(255,255,255,.08); }
.report-card-nav:hover { border-color: var(--accent-500); transform: translateX(2px); }
.report-card-num {
  width: 32px; height: 32px; border-radius: 9999px; background: var(--brand-50);
  color: var(--brand-800); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700;
}
html[data-theme="dark"] .report-card-num { background: rgba(63,196,154,.14); color: var(--accent-300); }
.report-card-title { font-size: 15px; color: var(--ink); font-weight: 500; }
.report-card-arrow { color: var(--ink-muted); transition: transform .15s, color .15s; }
.report-card-nav:hover .report-card-arrow { color: var(--brand-800); transform: translateX(2px); }
html[data-theme="dark"] .report-card-nav:hover .report-card-arrow { color: var(--accent-300); }

/* Prev/next footer */
.report-nav {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(10,23,42,.08);
  display: grid; gap: 12px; grid-template-columns: 1fr 1fr;
}
html[data-theme="dark"] .report-nav { border-top-color: rgba(255,255,255,.08); }
.report-nav-link {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(10,23,42,.06);
  background: var(--surface-alt); text-decoration: none;
  transition: background .12s, border-color .12s;
}
html[data-theme="dark"] .report-nav-link { background: #0a1324; border-color: rgba(255,255,255,.06); }
.report-nav-link:hover { border-color: var(--accent-500); }
.report-nav-link.report-nav-next { text-align: right; }
.report-nav-meta { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-muted); }
.report-nav-label { font-size: 15.5px; color: var(--ink); font-weight: 600; font-family: var(--font-serif); letter-spacing: -0.01em; }
@media (max-width: 640px) { .report-nav { grid-template-columns: 1fr; } }

/* Audit dots */
.audit-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 9999px;
  margin-right: 4px; vertical-align: middle;
}
.audit-ok { background: var(--accent-500); }
.audit-partial { background: #f39c52; }
.audit-gap { background: #c94a4a; }
.audit-table .report-row:nth-child(1) { grid-template-columns: 1.2fr 0.6fr 1.4fr; }
.audit-list { padding-left: 0; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.audit-list li {
  padding: 10px 14px; border-radius: 10px; background: var(--surface-alt);
  border: 1px solid rgba(10,23,42,.05); font-size: 14.5px; color: var(--ink);
}
html[data-theme="dark"] .audit-list li { background: #0a1324; border-color: rgba(255,255,255,.06); }

.report-signoff {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(10,23,42,.08);
}
html[data-theme="dark"] .report-signoff { border-top-color: rgba(255,255,255,.08); }
.report-signoff p { margin-top: 0; font-size: 14px; color: var(--ink-muted); }
.report-signoff p + p { margin-top: 2px; font-style: italic; }


/* -------------------------------------------------- Animations */

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim { animation: fade-in .5s var(--ease) both; }
