/* ==========================================================================
   Retatrutide India — Research Resource
   Shared stylesheet. Vanilla CSS3, no build step, no external dependencies.
   Zero webfont requests by design: the type stack is system-resident so that
   first paint is not blocked on a network round trip.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* ---------------------------------------------------------------------
     Palette: cool navy structure + warm bronze accent, on a light base.
     Navy and red are sampled from the supplied logo artwork
     (assets/img/logo-wordmark.webp). The warm bronze and cream surfaces take
     their cue from the reference palette — the warm/cool interplay is what
     makes the scheme read as a publication rather than a product page.
     Red is held back for the mark and primary actions so it never competes
     with the semantic "stop" colour used for prohibitions.
     --------------------------------------------------------------------- */
  --brand-navy: #0f3246;
  --brand-red: #e0222a;
  --brand-red-dark: #b31a21;

  --ink-900: #0a2231;
  --ink-800: #143046;
  --ink-700: #1d4660;
  --ink-600: #2a5a78;
  --ink-500: #3c7196;

  /* Warm bronze — eyebrows, section rules, premium detail */
  --gold-700: #96713f;
  --gold-600: #b99058;
  --gold-400: #d9bc8e;
  --gold-100: #efe3d2;

  /* Links and primary actions: drawn out of the brand navy, so they keep
     authority without reading as an error state. */
  --accent-700: #1a5c80;
  --accent-600: #216f98;
  --accent-500: #2d88b6;
  --accent-400: #5fb0d4;
  --accent-100: #e4eff6;

  /* Semantic evidence colours */
  --verified-600: #15704a;
  --verified-100: #e3f5ec;
  --caution-700: #8a4b06;
  --caution-600: #a85c08;
  --caution-100: #fdf1e0;
  --limit-700: #5b4397;
  --limit-100: #efeafb;
  --stop-700: #9a1c2b;
  --stop-100: #fdeaec;

  /* Surfaces. Cool and warm panels alternate down the page; the warm cream is
     what stops a navy-and-grey site feeling clinical. */
  --paper: #ffffff;
  --paper-alt: #f5f7f9;
  --paper-warm: #faf6f0;
  --paper-sunk: #e9eef3;
  --rule: #e2e7ec;
  --rule-warm: #e8dcc8;
  --rule-strong: #c5d0da;
  --text: #0d2131;
  --text-soft: #5b6b7a;
  --text-faint: #6b7c8c;
  /* Decorative only — too light for body copy */
  --slate-300: #93a1ae;

  /* Type scale */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.07rem);
  --step-1: clamp(1.16rem, 1.1rem + 0.3vw, 1.33rem);
  --step-2: clamp(1.38rem, 1.28rem + 0.5vw, 1.72rem);
  --step-3: clamp(1.64rem, 1.48rem + 0.8vw, 2.18rem);
  --step-4: clamp(1.95rem, 1.68rem + 1.3vw, 2.85rem);
  --step-5: clamp(2.25rem, 1.8rem + 2.2vw, 3.6rem);

  /* Space + shape */
  --gutter: 1rem;
  --measure: 72ch;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(8, 18, 31, 0.06),
    0 2px 8px rgba(8, 18, 31, 0.045);
  --shadow-md: 0 2px 4px rgba(8, 18, 31, 0.06),
    0 10px 28px rgba(8, 18, 31, 0.08);

  --header-h: 68px;
}

@media (min-width: 640px) {
  :root {
    --gutter: 1.5rem;
  }
}
@media (min-width: 1024px) {
  :root {
    --gutter: 2rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1420;
    --paper-alt: #101d2c;
    --paper-warm: #16202b;
    --paper-sunk: #16263a;
    --rule: #24384f;
    --rule-warm: #3a3426;
    --rule-strong: #35506d;
    --text: #e6edf4;
    --text-soft: #a8bbcd;
    --text-faint: #8ba0b5;
    --slate-300: #7589a0;

    /* On dark, bronze carries the warmth that the cream panels carry on light */
    --gold-700: #d9bc8e;
    --gold-600: #e2caa2;
    --gold-400: #b99058;
    --gold-100: #2a2317;

    --accent-700: #5bc0e8;
    --accent-600: #76cdef;
    --accent-500: #93daf5;
    --accent-100: #0e3348;

    --verified-600: #4cc38a;
    --verified-100: #0f2a20;
    --caution-700: #e0a158;
    --caution-600: #e8b374;
    --caution-100: #2e2113;
    --limit-700: #ab93e8;
    --limit-100: #211b35;
    --stop-700: #f08a96;
    --stop-100: #2d1419;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  --paper: #0b1420;
  --paper-alt: #101d2c;
  --paper-warm: #16202b;
  --paper-sunk: #16263a;
  --rule: #24384f;
  --rule-warm: #3a3426;
  --rule-strong: #35506d;
  --text: #e6edf4;
  --text-soft: #a8bbcd;
  --text-faint: #8ba0b5;
  --slate-300: #7589a0;
  --gold-700: #d9bc8e;
  --gold-600: #e2caa2;
  --gold-400: #b99058;
  --gold-100: #2a2317;
  --accent-700: #5bc0e8;
  --accent-600: #76cdef;
  --accent-500: #93daf5;
  --accent-100: #0e3348;
  --verified-600: #4cc38a;
  --verified-100: #0f2a20;
  --caution-700: #e0a158;
  --caution-600: #e8b374;
  --caution-100: #2e2113;
  --limit-700: #ab93e8;
  --limit-100: #211b35;
  --stop-700: #f08a96;
  --stop-100: #2d1419;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
}
h2 {
  font-size: var(--step-3);
  margin-top: 2.2em;
}
h3 {
  font-size: var(--step-2);
  margin-top: 1.8em;
}
h4 {
  font-size: var(--step-1);
  margin-top: 1.5em;
}

p,
ul,
ol,
dl {
  margin: 0 0 1.1em;
}

ul,
ol {
  padding-left: 1.4em;
}

li + li {
  margin-top: 0.4em;
}

a {
  color: var(--accent-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

strong,
b {
  font-weight: 650;
}

code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--paper-sunk);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 3px solid var(--accent-500);
  color: var(--text-soft);
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 0.6em;
  font-style: normal;
  font-size: var(--step--1);
  color: var(--text-faint);
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

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

::selection {
  background: var(--accent-100);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 820px;
}

.section {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.section--alt {
  background: var(--paper-alt);
  border-block: 1px solid var(--rule);
}

.section--sunk {
  background: var(--paper-sunk);
  border-block: 1px solid var(--rule);
}

/* Warm cream band. Alternating warm and cool keeps a navy-and-grey page from
   reading as clinical, and gives long pages a legible rhythm. */
.section--warm {
  background: var(--paper-warm);
  border-block: 1px solid var(--rule-warm);
}

.section--warm .card {
  background: var(--paper);
  border-color: var(--rule-warm);
}

.section__head {
  max-width: 68ch;
  margin-bottom: 2rem;
}

.section__head > :last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 26px;
  height: 2px;
  background: var(--brand-red);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-soft);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink-800);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid--sidebar {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3rem;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   4. Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  border-top: 3px solid var(--brand-red);
}

@supports not (backdrop-filter: blur(10px)) {
  .site-header {
    background: var(--paper);
  }
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

/* The wordmark is the supplied artwork. A <picture> swaps in a variant whose
   "INDIA" glyphs are repainted white for dark surfaces, because the supplied
   file sets them in navy on transparency and they would otherwise vanish. */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  min-width: 0;
}

.brand__wordmark,
.brand picture {
  display: block;
}

.brand__wordmark {
  width: auto;
  height: 30px;
  max-width: 62vw;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 480px) {
  .brand__wordmark {
    height: 34px;
  }
}

@media (min-width: 1024px) {
  .brand__wordmark {
    height: 38px;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle__bars {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before {
  top: -5px;
}
.nav-toggle__bars::after {
  top: 5px;
}

.site-nav {
  display: none;
}

.site-nav[data-open="true"] {
  display: block;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-md);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 1rem var(--gutter) 1.5rem;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  display: block;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--text);
  text-decoration: none;
  font-weight: 550;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--accent-700);
}

.site-nav__group > span {
  display: block;
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin: 1.25rem 0 0.35rem;
}

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

  .site-nav {
    display: block;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .site-nav__list > li + li {
    margin-top: 0;
  }

  .site-nav__list a {
    border: 0;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius);
    font-size: 0.93rem;
  }

  .site-nav__list a:hover {
    background: var(--paper-sunk);
  }

  .site-nav__list a[aria-current="page"] {
    background: var(--accent-100);
    color: var(--accent-700);
  }

  .site-nav__group > span {
    display: none;
  }

  /* Desktop dropdown */
  .has-sub {
    position: relative;
  }

  .has-sub > .sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 290px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    list-style: none;
    margin: 0.3rem 0 0;
  }

  .has-sub:hover > .sub,
  .has-sub:focus-within > .sub {
    display: block;
  }

  .has-sub > .sub a {
    white-space: normal;
    font-size: 0.9rem;
  }
}

.sub {
  list-style: none;
  padding-left: 0.9rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

/* Primary actions carry the brand red. It always takes white text, in either
   theme, so no per-theme override is needed. */
.btn--primary {
  background: var(--brand-red);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-red-dark);
  color: #fff;
}

.btn--navy {
  background: var(--ink-800);
  color: #fff;
}

.btn--navy:hover {
  background: var(--ink-700);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--rule-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--paper-sunk);
  color: var(--text);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(
      ellipse 70% 60% at 80% 0%,
      rgba(26, 135, 180, 0.22),
      transparent 70%
    ),
    linear-gradient(180deg, var(--ink-800), var(--ink-700));
  color: #e8f1f6;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem);
  overflow: hidden;
}

.hero h1,
.hero h2 {
  color: #fff;
}

.hero p {
  color: #c3d6e2;
}

.hero .lede {
  color: #cfe0ea;
  max-width: 62ch;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.5rem;
  }
}

.hero__art {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* The hero is dark in both themes, so its eyebrow takes a fixed light bronze
   rather than the theme-dependent token. */
.hero .eyebrow {
  color: #d9bc8e;
}

.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero .btn--primary {
  background: var(--brand-red);
  color: #fff;
}

.hero .btn--primary:hover {
  background: var(--brand-red-dark);
  color: #fff;
}

/* --------------------------------------------------------------------------
   7. Status banner — investigational notice
   -------------------------------------------------------------------------- */
.status-strip {
  background: var(--caution-100);
  border-bottom: 1px solid
    color-mix(in srgb, var(--caution-600) 35%, transparent);
  color: var(--caution-700);
  font-size: var(--step--1);
  font-weight: 600;
}

.status-strip__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding-block: 0.6rem;
  line-height: 1.45;
}

.status-strip svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.status-strip a {
  color: inherit;
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.card > :last-child {
  margin-bottom: 0;
}

.card h3,
.card h4 {
  margin-top: 0;
}

.card--link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease;
}

.card--link:hover {
  border-color: var(--accent-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.card--link h3 {
  color: var(--accent-700);
}

.card__meta {
  font-size: var(--step--1);
  color: var(--text-faint);
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
}

.card__more {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--accent-700);
}

.card__num {
  font-family: var(--font-head);
  font-size: var(--step-4);
  line-height: 1;
  color: var(--gold-600);
  display: block;
  margin-bottom: 0.35rem;
}

/* --------------------------------------------------------------------------
   9. Evidence callouts
   -------------------------------------------------------------------------- */
.note {
  border: 1px solid var(--rule);
  border-left-width: 4px;
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  margin: 1.8rem 0;
  background: var(--paper-alt);
  font-size: 0.97rem;
}

.note > :last-child {
  margin-bottom: 0;
}

.note__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 0.6rem;
}

.note--verified {
  border-left-color: var(--verified-600);
  background: var(--verified-100);
}
.note--verified .note__title {
  color: var(--verified-600);
}

.note--caution {
  border-left-color: var(--caution-600);
  background: var(--caution-100);
}
.note--caution .note__title {
  color: var(--caution-700);
}

.note--limit {
  border-left-color: var(--limit-700);
  background: var(--limit-100);
}
.note--limit .note__title {
  color: var(--limit-700);
}

.note--stop {
  border-left-color: var(--stop-700);
  background: var(--stop-100);
}
.note--stop .note__title {
  color: var(--stop-700);
}

.note--source {
  border-left-color: var(--accent-600);
  background: var(--accent-100);
}
.note--source .note__title {
  color: var(--accent-700);
}

/* Direct-answer block for AEO */
.answer {
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.65rem;
  margin: 0 0 2rem;
}

.answer > :last-child {
  margin-bottom: 0;
}

.answer__label {
  display: block;
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-700);
  margin-bottom: 0.6rem;
}

.answer p:first-of-type {
  font-size: var(--step-1);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   10. Badges and chips
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.badge--verified {
  color: var(--verified-600);
  background: var(--verified-100);
}
.badge--peer {
  color: var(--accent-700);
  background: var(--accent-100);
}
.badge--topline {
  color: var(--caution-700);
  background: var(--caution-100);
}
.badge--pending {
  color: var(--limit-700);
  background: var(--limit-100);
}
.badge--unverified {
  color: var(--text-faint);
  background: var(--paper-sunk);
}
.badge--phase {
  color: var(--ink-600);
  background: var(--paper-sunk);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge--phase {
    color: var(--text-soft);
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

/* Verification stamp */
.verify-stamp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  font-size: var(--step--1);
  color: var(--text-faint);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.verify-stamp strong {
  color: var(--text-soft);
  font-weight: 650;
}

/* --------------------------------------------------------------------------
   11. Tables
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.table-wrap:focus-visible {
  outline: 3px solid var(--accent-500);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 540px;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 0.9rem 1rem;
  font-size: var(--step--1);
  color: var(--text-soft);
  background: var(--paper-alt);
  border-bottom: 1px solid var(--rule);
  font-weight: 600;
}

th,
td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

thead th {
  background: var(--paper-sunk);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody th {
  font-weight: 600;
  background: var(--paper-alt);
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table-note {
  font-size: var(--step--1);
  color: var(--text-faint);
  margin-top: -0.6rem;
}

/* --------------------------------------------------------------------------
   12. FAQ accordion — native details/summary for built-in accessibility
   -------------------------------------------------------------------------- */
.faq {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
}

.faq__item + .faq__item {
  border-top: 1px solid var(--rule);
}

.faq__item > summary {
  cursor: pointer;
  padding: 1rem 2.75rem 1rem 1.15rem;
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
  list-style: none;
  background: var(--paper);
}

.faq__item > summary::-webkit-details-marker {
  display: none;
}

.faq__item > summary:hover {
  background: var(--paper-alt);
}

.faq__item > summary::after {
  content: "";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent-700);
  border-bottom: 2px solid var(--accent-700);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq__item[open] > summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq__item[open] > summary {
  background: var(--paper-alt);
}

.faq__body {
  padding: 0.3rem 1.15rem 1.25rem;
  border-top: 1px solid var(--rule);
}

.faq__body > :first-child {
  margin-top: 1rem;
}

.faq__body > :last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   13. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--rule);
  font-size: var(--step--1);
  background: var(--paper-alt);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  padding: 0;
  margin: 0;
  align-items: center;
}

.breadcrumbs li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-faint);
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--rule-strong);
}

.breadcrumbs a {
  color: var(--text-soft);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent-700);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   14. Article layout
   -------------------------------------------------------------------------- */
.article {
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.article__head {
  max-width: var(--measure);
  margin-bottom: 2rem;
}

.prose {
  max-width: var(--measure);
}

.prose > h2:first-child,
.prose > h3:first-child {
  margin-top: 0;
}

.prose img {
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  margin-block: 1.8rem;
}

.prose figure {
  margin: 1.8rem 0;
}

.prose figcaption {
  font-size: var(--step--1);
  color: var(--text-faint);
  margin-top: 0.6rem;
  line-height: 1.5;
}

/* Table of contents */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  align-self: start;
  font-size: 0.92rem;
  border-left: 2px solid var(--rule);
  padding-left: 1.1rem;
}

.toc h2 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin: 0 0 0.8rem;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.toc li {
  margin: 0 0 0.5rem;
}

.toc a {
  color: var(--text-soft);
  text-decoration: none;
  display: block;
  line-height: 1.4;
}

.toc a:hover,
.toc a.is-active {
  color: var(--accent-700);
  font-weight: 600;
}

@media (max-width: 899px) {
  .toc {
    position: static;
    border-left: 0;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    margin-bottom: 2rem;
  }
}

/* Definition list for glossary */
.glossary dt {
  font-weight: 700;
  font-family: var(--font-head);
  font-size: var(--step-1);
  margin-top: 1.8rem;
  color: var(--text);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.glossary dd {
  margin: 0.4rem 0 0;
  color: var(--text-soft);
}

.glossary dd + dd {
  margin-top: 0.6rem;
}

/* Reference list */
.refs {
  list-style: none;
  padding: 0;
  counter-reset: ref;
  font-size: 0.93rem;
}

.refs li {
  counter-increment: ref;
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 1.1rem;
  line-height: 1.55;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.refs li::before {
  content: "[" counter(ref) "]";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-700);
}

.refs a {
  word-break: break-word;
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--rule);
}

.timeline li {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 1.6rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--gold-600);
}

.timeline time {
  display: block;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--gold-700);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.timeline h3 {
  margin: 0 0 0.35rem;
  font-size: var(--step-1);
}

.timeline p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   15. Forms
   -------------------------------------------------------------------------- */
.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.field .hint {
  display: block;
  font-size: var(--step--1);
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-size: 0.97rem;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-faint);
}

.req {
  color: var(--stop-700);
}

/* --------------------------------------------------------------------------
   16. Search (research library filter)
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.filter-bar .field {
  margin-bottom: 0;
  flex: 1 1 200px;
}

.filter-status {
  font-size: var(--step--1);
  color: var(--text-faint);
  margin-bottom: 1rem;
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-800);
  color: #b8cbd8;
  padding-block: 3rem 1.5rem;
  font-size: 0.93rem;
  margin-top: 4rem;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  margin: 0 0 0.9rem;
}

.site-footer a {
  color: #cfe0ea;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.footer-disclaimer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  color: #9ab0c1;
  line-height: 1.6;
}

.footer-disclaimer p {
  max-width: 90ch;
}

.footer-bottom {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9ab0c1;
}

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

.text-center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.measure {
  max-width: var(--measure);
}

.stack > * + * {
  margin-top: 1.1rem;
}

.cols-2 {
  columns: 2;
  column-gap: 2.5rem;
}

@media (max-width: 639px) {
  .cols-2 {
    columns: 1;
  }
}

/* 404 */
.error-page {
  text-align: center;
  padding-block: clamp(3rem, 2rem + 6vw, 7rem);
}

.error-page__art {
  max-width: 340px;
  margin: 0 auto 2rem;
}

/* --------------------------------------------------------------------------
   19. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .site-nav,
  .status-strip,
  .btn-row,
  .toc,
  .filter-bar {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .hero {
    background: #fff;
    color: #000;
    padding-block: 0;
  }

  .hero h1,
  .hero p,
  .hero .lede {
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    word-break: break-all;
  }

  .table-wrap {
    overflow: visible;
  }

  table {
    min-width: 0;
  }

  .faq__body {
    display: block !important;
  }

  .section {
    padding-block: 1rem;
  }
}
