/* =========================================================
   Neurogan Health - PEA Pro evidence page
   Palette: white / soft nature green / cobalt
   ========================================================= */

:root {
  /* Brand */
  --cobalt-900: #0f2a86;
  --cobalt-700: #1b46d4;
  --cobalt-600: #2a58ec;
  --cobalt-100: #e6ecff;
  --cobalt-050: #f2f5ff;

  --green-900: #06301f;
  --green-800: #0b5537;
  --green-700: #0e7a4e;
  --green-500: #1aa568;
  --green-300: #7fe0b0;
  --green-100: #e2f6ec;
  --green-050: #f2fbf6;

  --amber-700: #9a5b06;
  --amber-500: #d98214;
  --amber-100: #fdf1de;

  --ink-900: #08101f;
  --ink-800: #14203a;
  --ink-700: #29344c;
  --ink-500: #576179;
  --ink-400: #626c82;
  --ink-200: #d9dee8;
  --ink-100: #eceff5;
  --paper: #ffffff;
  --paper-soft: #f7faf8;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(8, 16, 31, .06), 0 2px 8px rgba(8, 16, 31, .04);
  --shadow: 0 2px 6px rgba(8, 16, 31, .05), 0 14px 34px -14px rgba(8, 16, 31, .16);
  --shadow-lg: 0 4px 12px rgba(8, 16, 31, .06), 0 30px 70px -28px rgba(15, 42, 134, .30);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-num: "SF Mono", ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", monospace;

  --wrap: 1160px;
  --topbar-h: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-800);
  background: var(--paper);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.022em; }
p { margin: 0 0 1em; }
a { color: var(--cobalt-700); }
ol, ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--cobalt-600);
  outline-offset: 3px;
  border-radius: 6px;
}

.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: -60px; z-index: 200;
  background: var(--cobalt-700); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--radius-xs) var(--radius-xs); text-decoration: none; font-weight: 650;
  transition: top .16s ease;
}
.skip-link:focus { top: 0; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.muted { color: var(--ink-500); }

/* ---------- Top bar / sticky mini nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.topbar.is-stuck {
  border-bottom-color: var(--ink-100);
  box-shadow: 0 6px 24px -18px rgba(8, 16, 31, .4);
}
.topbar__progress {
  position: absolute; left: 0; top: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--green-500), var(--cobalt-600));
  border-radius: 0 3px 3px 0;
  transition: width .08s linear;
}
.topbar__inner {
  display: flex; align-items: center; gap: 16px;
  height: var(--topbar-h);
  width: min(100% - 40px, var(--wrap)); margin-inline: auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink-900); flex: 0 0 auto;
}
.brand__mark { color: var(--cobalt-700); display: inline-flex; line-height: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 15px; letter-spacing: -.01em; }
.brand__text span { font-size: 11.5px; color: var(--ink-400); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }

.mininav { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.mininav a {
  position: relative;
  padding: 7px 12px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; letter-spacing: -.005em;
  color: var(--ink-500); text-decoration: none;
  transition: color .18s ease, background .18s ease;
  white-space: nowrap;
}
.mininav a:hover { color: var(--cobalt-700); background: var(--cobalt-050); }
.mininav a.is-active { color: var(--cobalt-700); background: var(--cobalt-100); }

.navtoggle {
  display: none; margin-left: auto;
  background: var(--paper); border: 1px solid var(--ink-200);
  border-radius: 10px; width: 42px; height: 40px; cursor: pointer;
  align-items: center; justify-content: center;
}
.navtoggle__bars { display: grid; gap: 4px; width: 18px; }
.navtoggle__bars i { height: 2px; background: var(--ink-800); border-radius: 2px; display: block; }
.navtoggle[aria-expanded="true"] { background: var(--cobalt-100); border-color: var(--cobalt-100); }

@media (max-width: 900px) {
  .navtoggle { display: inline-flex; }
  .mininav {
    position: absolute; left: 0; right: 0; top: var(--topbar-h);
    background: var(--paper); border-bottom: 1px solid var(--ink-100);
    box-shadow: var(--shadow);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px;
    display: none;
  }
  .mininav.is-open { display: flex; }
  .mininav a { padding: 12px 14px; border-radius: var(--radius-xs); font-size: 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 650; font-size: 15.5px; letter-spacing: -.008em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--primary {
  background: var(--cobalt-700); color: #fff;
  box-shadow: 0 10px 26px -12px rgba(27, 70, 212, .8);
}
.btn--primary:hover { background: var(--cobalt-600); transform: translateY(-2px); }
.btn--ghost { background: var(--paper); color: var(--ink-800); border-color: var(--ink-200); }
.btn--ghost:hover { border-color: var(--cobalt-700); color: var(--cobalt-700); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blob--green {
  width: 52vw; height: 52vw; max-width: 640px; max-height: 640px;
  background: radial-gradient(circle at 35% 35%, #a8f0cc, rgba(168, 240, 204, 0) 68%);
  top: -14%; right: -12%;
  animation: float1 22s ease-in-out infinite;
}
.blob--cobalt {
  width: 46vw; height: 46vw; max-width: 560px; max-height: 560px;
  background: radial-gradient(circle at 60% 40%, #bfd0ff, rgba(191, 208, 255, 0) 68%);
  bottom: -22%; left: -14%;
  animation: float2 26s ease-in-out infinite;
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(8, 16, 31, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(8, 16, 31, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 25%, transparent 78%);
}
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px, 26px) scale(1.06); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(26px, -22px) scale(1.05); } }

.hero__inner { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--paper); border: 1px solid var(--ink-200);
  color: var(--ink-700); font-size: 13px; font-weight: 650;
  letter-spacing: .02em; padding: 7px 15px 7px 12px; border-radius: 999px;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green-500);
  box-shadow: 0 0 0 4px var(--green-100);
}
.hero__title {
  font-size: clamp(38px, 7.2vw, 78px);
  letter-spacing: -.038em; font-weight: 800;
  margin: 0 0 22px; max-width: 17ch;
}
.grad {
  background: linear-gradient(100deg, var(--cobalt-700) 8%, var(--green-700) 92%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hero__lede { font-size: clamp(17px, 2.1vw, 21px); color: var(--ink-700); max-width: 62ch; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

.hero__headline {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-lg);
  max-width: 860px;
  position: relative; overflow: hidden;
}
.hero__headline::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--green-500), var(--cobalt-600));
}
.hero__headline-label {
  font-size: 11.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cobalt-700); margin-bottom: 14px;
}
.hero__headline-row { display: flex; gap: clamp(18px, 3vw, 34px); align-items: center; flex-wrap: wrap; }
.hero__headline-num {
  font-size: clamp(58px, 10vw, 104px); font-weight: 800; line-height: .92;
  letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  background: linear-gradient(160deg, var(--cobalt-700), var(--green-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
  flex: 0 0 auto;
}
.hero__headline-body { flex: 1 1 320px; }
.hero__headline-body p { margin-bottom: .5em; }
.hero__headline-body p:last-child { margin-bottom: 0; font-size: 14.5px; }

.hero__note {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 22px 0 0; font-size: 14.5px; color: var(--ink-500); max-width: 66ch;
}
.hero__note .ico { color: var(--green-700); flex: 0 0 auto; margin-top: 3px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding-top: clamp(40px, 5vw, 64px); }
.section--alt { background: var(--paper-soft); border-block: 1px solid var(--ink-100); }
.section--dark {
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(27, 70, 212, .38), transparent 60%),
    radial-gradient(900px 480px at 92% 108%, rgba(26, 165, 104, .3), transparent 62%),
    var(--ink-900);
  color: #d9e0ee;
}
.section--dark h2, .section--dark h3 { color: #fff; }

.sechead { max-width: 760px; margin-bottom: clamp(30px, 4vw, 50px); }
.sechead__kicker {
  display: inline-block; font-size: 12px; font-weight: 750; letter-spacing: .13em;
  text-transform: uppercase; color: var(--green-700); margin-bottom: 12px;
}
.sechead h2 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.032em; }
.sechead__sub { font-size: clamp(16px, 1.8vw, 18.5px); color: var(--ink-500); margin: 0; }
.sechead--onDark .sechead__kicker { color: var(--green-300); }
.sechead--onDark .sechead__sub { color: #a9b6cd; }

/* ---------- Big stats ---------- */
.statgrid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 28px;
}
.stat {
  background: var(--paper); border: 1px solid var(--ink-100);
  border-radius: var(--radius); padding: 26px 24px 22px;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--cobalt-100); }
.stat::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 180px; height: 180px;
  background: radial-gradient(circle, var(--green-100), transparent 70%); opacity: .8;
}
.stat > * { position: relative; }
.stat__icon { font-size: 24px; line-height: 1; margin-bottom: 12px; }
.stat__num {
  font-size: clamp(46px, 6.2vw, 66px); font-weight: 800; line-height: 1;
  letter-spacing: -.045em; color: var(--cobalt-700);
  font-variant-numeric: tabular-nums; margin-bottom: 8px;
}
.stat__label { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.015em; }
.stat__body { font-size: 14.5px; color: var(--ink-500); margin-bottom: 12px; }
.stat__src {
  font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  color: var(--green-700); margin: 0;
}

/* ---------- Callout ---------- */
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: var(--radius); padding: 20px 22px;
  font-size: 15px;
}
.callout p { margin: 0; }
.callout .ico { flex: 0 0 auto; margin-top: 2px; }
.callout--info { background: var(--cobalt-050); border: 1px solid var(--cobalt-100); color: var(--ink-700); }
.callout--info .ico { color: var(--cobalt-700); }

/* ---------- Timeline / evidence ladder ---------- */
.tierkey { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 30px; }
.tierkey__item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 650; color: var(--ink-500);
}
.tierkey__item i { width: 12px; height: 12px; border-radius: 4px; display: block; }
.tierkey__item--t1 i { background: var(--cobalt-700); }
.tierkey__item--t2 i { background: var(--green-500); }
.tierkey__item--t3 i { background: var(--amber-500); }

.timeline { position: relative; padding-left: 0; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, var(--ink-200), var(--cobalt-100), var(--green-100));
}
.tl {
  position: relative; padding: 0 0 22px 70px; min-height: 56px;
}
.tl__year {
  position: absolute; left: 0; top: 0;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink-200);
  display: grid; place-items: center;
  font-size: 13.5px; font-weight: 750; color: var(--ink-700);
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2,.9,.3,1.3), border-color .3s ease, color .3s ease;
}
.tl--t1 .tl__year { border-color: var(--cobalt-700); color: var(--cobalt-700); }
.tl--t2 .tl__year { border-color: var(--green-500); color: var(--green-700); }
.tl--t3 .tl__year { border-color: var(--amber-500); color: var(--amber-700); }
.tl:hover .tl__year { transform: scale(1.08); }

.tl__card {
  background: var(--paper); border: 1px solid var(--ink-100);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.tl:hover .tl__card { transform: translateX(4px); box-shadow: var(--shadow); }
.tl__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.tl__tier {
  font-size: 10.5px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}
.tl--t1 .tl__tier { background: var(--cobalt-100); color: var(--cobalt-900); }
.tl--t2 .tl__tier { background: var(--green-100); color: var(--green-800); }
.tl--t3 .tl__tier { background: var(--amber-100); color: var(--amber-700); }
.tl__num {
  font-size: 12px; font-weight: 750; color: var(--ink-500);
  background: var(--ink-100); padding: 4px 9px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.tl__title { font-size: 17px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.018em; }
.tl__desc { font-size: 14.5px; color: var(--ink-500); margin: 0 0 8px; }
.tl__cite { font-size: 12.5px; color: var(--ink-400); margin: 0; }

@media (max-width: 620px) {
  .timeline::before { left: 21px; }
  .tl { padding-left: 58px; }
  .tl__year { width: 44px; height: 44px; font-size: 12px; }
}

/* ---------- Chart explorer ---------- */
.explorer {
  background: var(--paper); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden;
}
.tabs {
  display: flex; gap: 6px; padding: 12px;
  border-bottom: 1px solid var(--ink-100);
  background: linear-gradient(180deg, var(--cobalt-050), var(--paper));
  overflow-x: auto; scrollbar-width: thin;
}
.tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid transparent;
  background: transparent; color: var(--ink-500); cursor: pointer;
  font-size: 13.5px; font-weight: 650; letter-spacing: -.005em; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.tab:hover { background: var(--paper); color: var(--cobalt-700); border-color: var(--ink-200); }
.tab[aria-selected="true"] {
  background: var(--cobalt-700); color: #fff; border-color: var(--cobalt-700);
  box-shadow: 0 8px 20px -10px rgba(27, 70, 212, .9);
}
.tab__ico { font-size: 15px; line-height: 1; }

.panel { padding: clamp(20px, 3.2vw, 34px); }
.panel[hidden] { display: none; }
.panel__head { margin-bottom: 18px; }
.panel__title { font-size: clamp(19px, 2.6vw, 25px); font-weight: 750; margin: 0 0 6px; letter-spacing: -.02em; }
.panel__sub { font-size: 15px; color: var(--ink-500); margin: 0; max-width: 72ch; }
.panel__chart { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.panel__chart svg { display: block; width: 100%; min-width: 720px; height: auto; overflow: visible; }
@media (max-width: 760px) { .panel__chart svg { width: 720px; } }
.panel__foot {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--ink-200);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.panel__cite { font-size: 13px; color: var(--ink-400); margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font-size: 12.5px; font-weight: 650; padding: 6px 12px; border-radius: 999px;
  background: var(--cobalt-050); color: var(--cobalt-900); border: 1px solid var(--cobalt-100);
  font-variant-numeric: tabular-nums;
}
.chip--green { background: var(--green-050); color: var(--green-800); border-color: var(--green-100); }
.chip--amber { background: var(--amber-100); color: var(--amber-700); border-color: #f6dfb8; }

details.datatable { margin-top: 18px; }
details.datatable > summary {
  cursor: pointer; font-size: 13.5px; font-weight: 650; color: var(--cobalt-700);
  list-style: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; background: var(--cobalt-050);
  border: 1px solid var(--cobalt-100);
}
details.datatable > summary::-webkit-details-marker { display: none; }
details.datatable > summary::before { content: "▸"; transition: transform .2s ease; }
details.datatable[open] > summary::before { transform: rotate(90deg); }
.datatable table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.datatable caption { text-align: left; font-size: 13px; color: var(--ink-400); padding-bottom: 8px; }
.datatable th, .datatable td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--ink-100); }
.datatable th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); }
.datatable td { font-variant-numeric: tabular-nums; }

/* SVG chart primitives */
.c-label { font: 650 14px var(--font); fill: var(--ink-800); }
.c-sub { font: 500 12px var(--font); fill: var(--ink-400); }
.c-axis { font: 600 11.5px var(--font); fill: var(--ink-400); }
.c-value { font: 750 13px var(--font); fill: var(--ink-900); font-variant-numeric: tabular-nums; }
.c-track { fill: var(--ink-100); }
.c-bar { transition: width .9s cubic-bezier(.22,.9,.28,1), transform .9s cubic-bezier(.22,.9,.28,1); }
.c-grid { stroke: var(--ink-100); stroke-width: 1; }
.c-thresh { stroke: var(--amber-500); stroke-width: 1.5; stroke-dasharray: 5 4; }
.c-row:hover .c-bar { filter: brightness(1.08); }

/* ---------- Study cards ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter {
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ink-200); background: var(--paper); color: var(--ink-700);
  font-size: 13.5px; font-weight: 650;
  transition: all .18s ease;
}
.filter:hover { border-color: var(--cobalt-700); color: var(--cobalt-700); }
.filter[aria-pressed="true"] {
  background: var(--ink-900); border-color: var(--ink-900); color: #fff;
}
.filters__empty { color: var(--ink-500); }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--ink-100);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 24px 22px 20px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--cobalt-100); }
.card[hidden] { display: none; }
.card--null { border-color: #f0dcc0; background: linear-gradient(180deg, #fffdf8, #fff); }

.card__head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 14px; }
.card__ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(150deg, var(--green-100), var(--cobalt-100));
  display: grid; place-items: center; font-size: 22px; line-height: 1;
}
.card--null .card__ico { background: linear-gradient(150deg, var(--amber-100), #fff2d9); }
.card__rank {
  margin-left: auto; flex: 0 0 auto;
  font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-400); background: var(--ink-100);
  padding: 4px 9px; border-radius: 999px;
}
.card__kicker { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--green-700); margin: 0 0 4px; }
.card__title { font-size: 19px; font-weight: 750; letter-spacing: -.022em; margin: 0 0 12px; }

.card__big {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  background: var(--cobalt-050); border: 1px solid var(--cobalt-100);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px;
}
.card--null .card__big { background: var(--amber-100); border-color: #f6dfb8; }
.card__big-num {
  font-size: clamp(20px, 3vw, 26px); font-weight: 800; letter-spacing: -.03em;
  color: var(--cobalt-900); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.card--null .card__big-num { color: var(--amber-700); }
.card__big-lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-500); }

.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-bottom: 14px; }
.meta div { min-width: 0; }
.meta dt { font-size: 10.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); }
.meta dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ink-800); }

.card__plain {
  background: var(--green-050); border-left: 3px solid var(--green-500);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  padding: 12px 14px; margin-bottom: 12px;
}
.card__plain h4 {
  font-size: 10.5px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase;
  color: var(--green-800); margin: 0 0 5px;
}
.card__plain p { margin: 0; font-size: 14.5px; color: var(--ink-800); }

.card__detail { margin-bottom: 12px; }
.card__detail summary {
  cursor: pointer; list-style: none; font-size: 13px; font-weight: 650; color: var(--cobalt-700);
  display: inline-flex; align-items: center; gap: 6px;
}
.card__detail summary::-webkit-details-marker { display: none; }
.card__detail summary::before { content: "▸"; transition: transform .2s ease; }
.card__detail[open] summary::before { transform: rotate(90deg); }
.card__detail p { font-size: 14px; color: var(--ink-700); margin: 10px 0 0; }
.card__detail .lane {
  font-size: 13px; color: var(--ink-500); margin-top: 8px;
  padding-top: 8px; border-top: 1px dashed var(--ink-200);
}

.card__caveat {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 13px; color: var(--amber-700);
  background: var(--amber-100); border-radius: var(--radius-xs);
  padding: 10px 12px; margin-bottom: 16px;
}
.card__caveat svg { flex: 0 0 auto; margin-top: 2px; }
.card__caveat span { color: #7a4a05; }

.card__cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding: 11px 18px; border-radius: 999px;
  background: var(--ink-900); color: #fff; text-decoration: none;
  font-size: 13.5px; font-weight: 650;
  transition: background .2s ease, transform .16s ease, gap .2s ease;
}
.card__cta:hover { background: var(--cobalt-700); transform: translateY(-2px); gap: 12px; }

/* ---------- Plain English ---------- */
.plaingrid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.plain {
  background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.plain:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plain__ico {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  font-size: 23px; margin-bottom: 14px;
  background: linear-gradient(150deg, var(--cobalt-100), var(--green-100));
}
.plain h3 { font-size: 19px; font-weight: 750; letter-spacing: -.022em; margin-bottom: 9px; }
.plain p { font-size: 15px; color: var(--ink-500); margin: 0; }

.glossary {
  margin-top: 24px; background: var(--cobalt-050); border: 1px solid var(--cobalt-100);
  border-radius: var(--radius); padding: 26px 24px;
}
.glossary__title { font-size: 17px; font-weight: 750; margin-bottom: 14px; }
.glossary__list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 0; }
.glossary__list dt { font-weight: 750; font-size: 15px; color: var(--cobalt-900); margin-bottom: 4px; }
.glossary__list dd { margin: 0; font-size: 14.5px; color: var(--ink-700); }

/* ---------- Honest notes ---------- */
.honestgrid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.honest {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 24px 22px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.honest:hover { transform: translateY(-3px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); }
.honest__tag {
  display: inline-block; font-size: 10.5px; font-weight: 750; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
}
.honest--null .honest__tag { background: #ffdede; color: #8c1d1d; }
.honest--mixed .honest__tag { background: #ffeccd; color: #7a4a05; }
.honest--limit .honest__tag { background: #d9e3ff; color: #10287a; }
.honest h3 { font-size: 18px; font-weight: 750; letter-spacing: -.02em; margin-bottom: 10px; }
.honest p { font-size: 14.5px; color: #c3cddf; margin-bottom: .7em; }
.honest strong { color: #fff; }
.honest em { color: #e7edf7; }
.honest__src {
  font-size: 12px; color: #8f9db6; margin: 12px 0 0; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* ---------- Sources ---------- */
.sources { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.source {
  display: flex; gap: 14px; align-items: center;
  background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--radius);
  padding: 18px 20px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.source:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--cobalt-700); }
.source__ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  background: var(--cobalt-050); display: grid; place-items: center; font-size: 20px;
}
.source__body { min-width: 0; flex: 1; }
.source__cite { display:block; font-size: 15px; font-weight: 700; margin: 0 0 3px; letter-spacing: -.015em; }
.source__id { display:block; font-size: 12.5px; color: var(--ink-400); margin: 0; word-break: break-word; }
.source__arrow { flex: 0 0 auto; color: var(--cobalt-700); transition: transform .2s ease; }
.source:hover .source__arrow { transform: translateX(4px); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-900); color: #9aa7be;
  padding: clamp(46px, 6vw, 72px) 0 32px;
  font-size: 14px;
}
.footer__grid {
  display: grid; gap: 34px;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .brand__mark--lg { color: var(--cobalt-600); display: inline-flex; margin-bottom: 12px; }
.footer__brand p { color: #b6c1d5; }
.footer__brand strong { color: #fff; font-size: 16px; }
.footer__h { font-size: 13px; letter-spacing: .11em; text-transform: uppercase; color: #7e8ca5; font-weight: 750; margin-bottom: 14px; }
.footer p { margin-bottom: 1em; }
.footer strong { color: #e6ecf7; }
.footer a { color: #9ec0ff; }
.disclaimer {
  background: rgba(255,255,255,.06); border-left: 3px solid var(--green-500);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  padding: 14px 16px; color: #e6ecf7 !important;
}
.footer__meta { font-size: 13px; color: #7e8ca5; }
.footer__base { margin: 24px 0 0; font-size: 13px; color: #6f7d95; }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink-900); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.totop.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { background: var(--cobalt-700); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .totop, .tabs, .btn { display: none !important; }
  .panel[hidden] { display: block !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { font-size: 12pt; }
}
