/* ==========================================================
   BRO RESEARCH — shared stylesheet
   Source file: edit here (src/css), the build copies it to dist/.
   Inter + IBM Plex Mono · brand #2B50E0 · soft radius · light surfaces.
   Rules for every component: notes/DESIGN-SYSTEM.md
   ========================================================== */


/* Self-hosted fonts (no third-party requests). Latin subset.
   Inter: Copyright 2016 The Inter Project Authors. IBM Plex Mono: Copyright 2017 IBM Corp.
   Both licensed under the SIL Open Font License 1.1 (https://openfontlicense.org). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../assets/fonts/inter-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2'); }

:root {
  /* brand tokens (from bropeptides.com — Kennisbank theme) */
  --brand:      #2b50e0;
  --brand-dark: #1e3cc4;
  --brand-tint: #eef1fe;
  --ink:        #0e1626;
  --ink-2:      #0b1220;
  --ink-card:   #15203a;
  --muted:      #5a6474;
  --muted-2:    #8891a1;
  --line:       #e6e8ee;
  --line-soft:  #f0f2f7;
  --surface:    #ffffff;
  --soft:       #f4f5f8;
  --radius:     16px;
  --radius-sm:  10px;
  --radius-xs:  8px;
  --maxw:       1200px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* semantic */
  --green:  #16a34a;
  --amber:  #b45309;
  --amber-pale: #fdf3e3;
  --max: var(--maxw);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
:target { scroll-margin-top: 88px; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* main grows so short pages don't leave the footer floating mid-screen */
main { flex: 1 0 auto; display: block; }

.site-footer { margin-top: auto; }

img { max-width: 100%; display: block; }
svg { display: block; overflow: visible; }
svg.icon, .btn svg { flex: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  color: var(--ink);
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.08;
}

h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.035em; line-height: 1.06; }
h3 { font-size: clamp(21px, 2vw, 25px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; }

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

/* kicker: small uppercase mono label above card titles */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }

.lede {
  font-size: 17.5px;
  color: #3d4657;
  max-width: 640px;
  line-height: 1.7;
  letter-spacing: -0.005em;
  margin-top: 0;
}

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Layout ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(32px, 4vw, 52px) 0 clamp(48px, 6vw, 80px); }
.section--tight { padding: clamp(40px, 5vw, 72px) 0; }
.section--soft { background: var(--soft); }
.section-head { max-width: 640px; margin-bottom: clamp(34px, 4vw, 52px); }
.section-head h2 { margin: 18px 0 14px; }
.section-head p { color: var(--muted); }

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

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 72px;
}

.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-word { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.logo-word .logo-sub { color: var(--brand); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  padding: 9px 14px; border-radius: 9px; transition: background .16s, color .16s;
}
.main-nav a:hover { background: var(--soft); color: var(--brand); }
.main-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }

.nav-toggle {
  display: none; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 14px; font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .08em; cursor: pointer; color: var(--ink);
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15px; padding: 14px 24px; line-height: 1;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn, .btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(43,80,224,.22); }
.btn--primary:hover { background: var(--brand-dark); }

.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn svg { width: 18px; height: 18px; flex: none; }

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

.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgb(43 80 224 / .06) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.hero .wrap { position: relative; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 80px); }
.hero h1 { max-width: 19ch; margin: 22px 0 0; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { max-width: 560px; margin-top: 24px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Page head (editorial article header) ---------- */

.page-head { border-bottom: 0; padding-bottom: 0; }
.page-head .wrap { padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(16px, 2vw, 24px); }
.page-head h1 { margin: 0 0 20px; max-width: 22ch; }
.page-head .lede { font-size: 17.5px; line-height: 1.7; color: #3d4657; max-width: 640px; margin: 0; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--font); font-size: 15px; color: var(--muted-2);
  margin-bottom: 26px; letter-spacing: -0.01em;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span:not(:last-child) { color: var(--line); }

/* article meta line: date · updated · read time */
.meta-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px;
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .04em; color: var(--muted-2);
  padding: 0; margin: 24px 0 0;
}
.meta-bar span strong { color: var(--muted); font-weight: 500; }
.meta-bar span { display: inline-flex; align-items: center; gap: 8px; }
.meta-bar span + span::before {
  content: ""; width: 3px; height: 3px; border-radius: 50%;
  background: #c8cedb; margin-right: 9px;
}
.meta-bar strong { color: var(--ink); font-weight: 600; }

/* ---------- Cards (matches bropeptides.com .kb-card exactly) ---------- */

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px -24px rgb(14 22 38 / .28);
  border-color: #c4cdf1;
}
a.card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.card-media {
  display: flex; align-items: center; justify-content: center;
  height: 172px; padding: 14px;
  background: radial-gradient(ellipse 85% 75% at 50% 38%, #ffffff 0%, #eef0f4 74%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.card-media svg {
  display: block; width: auto; height: 132px; max-width: 100%;
  transition: transform .25s ease;
}
a.card:hover .card-media svg { transform: scale(1.045); }

.card-body {
  display: flex; flex-direction: column; gap: 7px;
  flex: 1 1 auto; padding: 16px 18px 18px;
}

.card-kicker {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .11em;
  text-transform: uppercase; color: var(--brand); font-weight: 600;
}

.card h3, .card h2 {
  font-size: 17px; font-weight: 800; letter-spacing: -.015em;
  color: var(--ink); line-height: 1.3; margin: 0;
}

.card p {
  font-size: 13.5px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; margin: 0;
}

.card-foot {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 12px;
  font-size: 13.5px; font-weight: 700; color: var(--brand);
}
.card-foot span:last-child { transition: transform .2s ease; }
a.card:hover .card-foot span:last-child { transform: translateX(3px); }
.card-foot .foot-note {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .04em; color: var(--muted-2); margin-left: auto;
}

/* ---------- Calculator: layout ---------- */

.calc-app {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(14,22,38,.06);
  background: var(--surface);
  overflow: clip;
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.calc-inputs { padding: clamp(22px, 3vw, 34px); border-right: 1px solid var(--line); }
.calc-output { padding: clamp(22px, 3vw, 34px); background: var(--soft); }

/* picker group */
.pick { margin-bottom: 28px; }
.pick:last-child { margin-bottom: 0; }

.pick-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.pick-head .pick-icon {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-tint); color: var(--brand);
}
.pick-head .pick-icon svg {
  width: 17px; height: 17px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.pick-head label, .pick-head .pick-label { font-weight: 700; font-size: 15px; color: var(--ink); }
.pick-head .pick-unit { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  padding: 8px 13px; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.chip--other { border-style: dashed; }

/* custom input row */
.custom-row { display: none; margin-top: 10px; }
.custom-row.is-open { display: flex; gap: 8px; align-items: center; }

.custom-row input {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: 16px; font-weight: 500; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff;
}
.custom-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43,80,224,.14); }

.custom-row .unit-pill {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  background: var(--soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 12px; white-space: nowrap;
}

/* ---------- Calculator: results ---------- */

.result-hero {
  background: var(--brand); color: #fff;
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: 0 14px 30px rgba(43,80,224,.26);
}
.result-hero .result-label {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.78); display: block; margin-bottom: 8px;
}
.result-hero .result-value {
  font-size: clamp(38px, 6vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  display: flex; align-items: baseline; gap: 8px;
}
.result-hero .result-value .unit { font-family: var(--mono); font-size: 18px; font-weight: 500; letter-spacing: 0; }
.result-hero .result-sub { font-family: var(--mono); font-size: 12.5px; color: rgba(255,255,255,.85); margin-top: 10px; }
.result-hero.is-error { background: var(--amber); box-shadow: 0 14px 30px rgba(180,83,9,.24); }

.syringe-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-top: 18px;
}
.syringe-box svg { width: 100%; height: auto; overflow: visible; }
.syringe-caption { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); margin-top: 8px; text-align: center; }

.result-rows { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.result-line {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--line);
}
.result-line:last-child { border-bottom: 0; }
.result-line span { color: var(--muted); }
.result-line strong { font-family: var(--mono); font-weight: 500; font-size: 13.5px; color: var(--ink); }

.warning-bar {
  display: none; margin-top: 16px; padding: 12px 14px;
  border-radius: var(--radius-sm); background: var(--amber-pale);
  border: 1px solid #f3d9b3; color: #7c4a10; font-size: 13.5px;
}
.warning-bar.is-visible { display: block; }

.formula-note {
  margin-top: 16px; padding: 14px 16px;
  background: var(--brand-tint); border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: 12px; color: #33406b; line-height: 1.7;
}

/* ---------- Article prose (Kennisbank style) ---------- */

.prose { max-width: 760px; margin: 0 auto; }
.prose > * + * { margin-top: 0; }
.prose h2 {
  font-size: clamp(21px, 2.4vw, 26px);
  letter-spacing: -0.025em;
  margin: 40px 0 12px;
  scroll-margin-top: 96px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18.5px; margin: 28px 0 8px; scroll-margin-top: 96px; }
.prose p { font-size: 16.5px; line-height: 1.78; color: #3a4354; margin-bottom: 18px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 22px; }
.prose li { font-size: 16px; line-height: 1.75; color: #3a4354; margin-bottom: 7px; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--brand); font-weight: 600; }
.prose a:hover { text-decoration: underline; }

/* steps */
.steps { display: grid; gap: 14px; margin: 24px 0 32px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px 24px 82px; position: relative;
}
.step::before {
  content: attr(data-n);
  position: absolute; left: 24px; top: 22px;
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
  font-family: var(--mono); font-size: 14px; font-weight: 600;
}
.step h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.step p { font-size: 16.5px; line-height: 1.65; color: #2c3648; margin-bottom: 0; }
.step .warn-inline {
  display: block; font-family: var(--mono); font-size: 12.5px;
  color: var(--amber); margin-top: 10px;
}

.callout {
  background: var(--brand-tint); border-radius: var(--radius);
  padding: 20px 24px; font-size: 15.5px; line-height: 1.65;
  margin: 28px 0; color: #29345c;
}
.callout strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 15px; letter-spacing: -0.01em; }
.callout--warn { background: var(--amber-pale); color: #7c4a10; }

/* ---------- Video ---------- */

.video-embed {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--ink-2); aspect-ratio: 16 / 9;
  width: 100%; max-width: 820px; margin: 0 auto;
}
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-credit { font-size: 13px; color: var(--muted); margin: 10px auto 0; max-width: 820px; text-align: center; }

/* ---------- FAQ (used on tools page) ---------- */

.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); color: var(--brand); font-size: 18px; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 18px; color: var(--muted); font-size: 15px; }

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

.site-footer { background: var(--ink-2); color: #aeb8c9; padding: 56px 0 36px; margin-top: auto; flex: none; }
.site-footer .wrap { display: grid; gap: 36px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer-brand { max-width: 340px; }
.footer-brand .logo-word { color: #fff; font-size: 21px; }
.footer-brand p { font-size: 14px; margin-top: 14px; line-height: 1.6; color: #8f9ab0; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols .footer-title {
  color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px;
}
.footer-cols a { display: block; color: #aeb8c9; font-size: 14px; padding: 4px 0; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1c2740; padding-top: 22px; font-family: var(--mono); font-size: 11px; line-height: 1.7; color: #6b768c; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-inputs { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: #fff;
    border-bottom: 1px solid var(--line); padding: 10px 16px 16px;
  }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .site-header .wrap { position: relative; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .footer-cols { gap: 36px; }
  .step { padding: 20px 18px 20px 66px; }
  .step::before { left: 18px; top: 18px; }
}

/* ---------- Dose unit toggle ---------- */

.unit-toggle {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--brand); background: #fff; border: 1.5px solid var(--line);
  border-radius: 999px; padding: 9px 14px; cursor: pointer; white-space: nowrap;
  transition: border-color .16s ease, background .16s ease;
}
.unit-toggle:hover { border-color: var(--brand); background: var(--brand-tint); }

/* ---------- Data tables (article style) ---------- */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 22px 0 26px;
  background: #fff;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 480px;
}

table.data th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--soft);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.data td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  color: #3a4354;
  line-height: 1.55;
}

table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fafbfd; }
table.data td:first-child { font-weight: 600; color: var(--ink); }
table.data a { color: var(--brand); font-weight: 600; }

/* ---------- Storage page: mixed vs unmixed ---------- */

.state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 44px;
}

.state-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.state-card--mixed { border-color: #cfd9f8; }

.state-art {
  display: flex; align-items: center; justify-content: center;
  height: 168px; min-height: 168px; flex: none; padding: 14px;
  background: radial-gradient(ellipse 85% 75% at 50% 38%, #ffffff 0%, #f2f4f8 74%);
  border-bottom: 1px solid var(--line);
}
.state-art svg { width: auto; height: 128px; }
.state-art--liquid { background: radial-gradient(ellipse 85% 75% at 50% 38%, #f7f9ff 0%, #e7ecfb 74%); }

.state-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.state-badge {
  align-self: flex-start;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); background: var(--soft);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 11px;
  line-height: 1.2;
}
.state-badge--mixed { color: var(--brand); background: var(--brand-tint); border-color: #d4ddfa; }
.state-card--mixed .state-art { border-bottom-color: #dde3f7; }

.state-body h2 { font-size: 23px; letter-spacing: -0.025em; margin: 2px 0 0; }
.state-lead { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0 0 6px; }

.fact-table { border-top: 1px solid var(--line); margin-top: 4px; }
.fact-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
}
.fact-row:last-child { border-bottom: 0; }
.fact-row span { color: var(--muted); flex: none; }
.fact-row strong { font-weight: 600; color: var(--ink); text-align: right; }

.compare { margin-bottom: 44px; }
.compare h2, .reject h2 { margin-bottom: 18px; }

.compare-table th:first-child { width: 26%; }
.compare-table td:nth-child(2) { color: var(--ink); }
.compare-table td:nth-child(3) { color: var(--brand); font-weight: 600; }

.reject { margin-bottom: 8px; }

.reject-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reject-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--amber-pale);
  border: 1px solid #f3ddba;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 15px; color: #7c4a10; line-height: 1.5;
}
.reject-item svg { width: 20px; height: 20px; flex: none; color: var(--amber); }

@media (max-width: 820px) {
  .state-grid, .reject-grid { grid-template-columns: 1fr; }
  .fact-row strong { text-align: right; }
}


/* ==========================================================
   Added in the rebuild. Keep new components below this line.
   ========================================================== */

/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  a.card:hover { transform: none; }
}

/* ---------- Language switch (EN | NL) ---------- */

.lang-switch {
  display: inline-flex; margin-left: 8px;
  border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden;
}
.main-nav .lang-switch a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  padding: 7px 12px; border-radius: 0; color: var(--muted);
}
.main-nav .lang-switch a:hover { background: var(--brand-tint); color: var(--brand); }
.main-nav .lang-switch a[aria-current="true"],
.main-nav .lang-switch a[aria-current="true"]:hover { background: var(--brand); color: #fff; }

/* ---------- Tags and evidence labels ---------- */

.tag {
  display: inline-flex; align-items: center; vertical-align: middle; white-space: nowrap;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; line-height: 1.2; padding: 4px 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--soft); color: var(--muted);
}
.tag--common { background: var(--brand-tint); border-color: #d4ddfa; color: var(--brand); }
.tag--vitro  { background: var(--soft); color: var(--muted); }
.tag--animal { background: var(--brand-tint); border-color: #d4ddfa; color: var(--brand); }
.tag--human  { background: var(--brand); border-color: var(--brand); color: #fff; }
.tag--review { background: #fff; border-color: var(--ink); color: var(--ink); }

/* ---------- Quick answer (top of every guide) ---------- */

.quick {
  border: 1px solid #cfd9f8; border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, var(--brand-tint) 100%);
  padding: 20px 24px; margin: 0 0 36px;
}
.quick-label {
  display: block; margin-bottom: 8px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.prose .quick-text { font-size: 18px; line-height: 1.6; font-weight: 500; color: var(--ink); margin: 0; }

/* ---------- Figures (diagrams inside guides) ---------- */

.figure {
  margin: 28px 0; padding: 22px 20px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(ellipse 85% 75% at 50% 38%, #ffffff 0%, #eef0f4 74%);
}
.figure svg { width: 100%; height: auto; max-width: 640px; margin: 0 auto; }
.figure figcaption {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.6;
  color: var(--muted-2); text-align: center; margin-top: 12px;
}

/* ---------- Glossary ---------- */

.terms { margin: 24px 0; }
.terms dt {
  font-weight: 800; font-size: 17px; letter-spacing: -.015em; color: var(--ink);
  padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: 96px;
}
.terms dt:first-child { border-top: 0; padding-top: 0; }
.terms dd { margin: 6px 0 20px; font-size: 16px; line-height: 1.7; color: #3a4354; }

/* ---------- Home: hero art, research-use banner, pillar cards ---------- */

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero-art {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(ellipse 85% 75% at 50% 38%, #ffffff 0%, #eef0f4 74%);
  padding: 28px;
}
.hero-art svg { width: 100%; height: auto; max-width: 380px; margin: 0 auto; }


.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Callout variant, helpers ---------- */

.callout--note { background: var(--soft); border: 1px solid var(--line); color: #3a4354; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 44px; }
.link-strong { color: var(--brand); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.prose a.btn { color: #fff; font-weight: 600; }
.prose a.btn--ghost { color: var(--ink); }
.prose a.btn:hover { text-decoration: none; }
.table-wrap + .table-note { font-size: 13px; color: var(--muted); margin-top: -12px; }

/* ---------- Calculator additions ---------- */

.pick-help { font-size: 13px; color: var(--muted); margin: -4px 0 12px; line-height: 1.55; }
.result-sentence {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-top: 18px; font-size: 15px; line-height: 1.65; color: var(--ink);
}
.formula-note { white-space: pre-line; }
.calc-notes { display: grid; gap: 16px; margin-top: 28px; }
.calc-notes .callout { margin: 0; }

/* ---------- Print: guides print clean, no chrome ---------- */

@media print {
  .site-header, .site-footer, .skip-link, .hero-actions, .video-embed, .cta-row { display: none !important; }
  body { font-size: 12pt; }
  .prose { max-width: none; }
  .card, .step, .callout, .figure { break-inside: avoid; }
}

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art--photo { max-width: 420px; }
}
@media (max-width: 720px) {
  .grid--4 { grid-template-columns: 1fr; }
  .main-nav .lang-switch { margin: 8px 0 0; align-self: flex-start; }
}

/* ---------- Calculator: sticky answer on small screens ---------- */

.calc-sticky { display: none; }
@media (max-width: 900px) {
  .calc-sticky {
    display: flex; position: sticky; top: 72px; z-index: 20;
    justify-content: space-between; align-items: baseline;
    background: var(--brand); color: #fff; padding: 10px 18px;
    font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  }
  .calc-sticky-value { font-family: var(--font); font-size: 22px; font-weight: 800; letter-spacing: -.02em; text-transform: none; }
  .calc-sticky-value span { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0; margin-left: 4px; }
}

/* ---------- Spacing between guide sections ---------- */

.compare, .reject { margin-top: 44px; }

/* Two-column tables fit a phone without sideways scrolling */
table.data--narrow { min-width: 0; }
table.data--narrow td, table.data--narrow th { padding-left: 12px; padding-right: 12px; }

/* ---------- Supply calculator ---------- */
.pick[hidden] { display: none; }
.vgroup + .vgroup { margin-top: 16px; }
.vial-card { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px 16px; margin-bottom: 12px; background: #fff; }
.vial-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.vial-card-title { font-weight: 700; font-size: 14px; color: var(--ink); }
.vial-remove { border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.vial-remove:hover { color: var(--amber); }
#vial-rows:has(.vial-card:only-child) .vial-remove { display: none; }
.vial-cap { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
#add-vial[hidden] { display: none; }
#day-chips .chip--day { min-width: 52px; text-transform: capitalize; }

/* Two-state switch (mcg | mg, per dose | per week) */
.seg { display: inline-flex; flex: none; gap: 2px; padding: 3px; background: var(--soft); border: 1.5px solid var(--line); border-radius: 999px; }
.seg--wide { display: flex; }
.seg--wide .seg-btn { flex: 1; }
.seg-btn { font-family: var(--mono); font-size: 12.5px; font-weight: 500; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: background .16s, color .16s; }
.seg-btn:hover { color: var(--brand); }
.seg-btn[aria-pressed="true"] { background: var(--brand); color: #fff; box-shadow: 0 2px 6px rgba(43,80,224,.25); }

.supply-box { margin-top: 18px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.supply-bar { display: flex; height: 34px; border-radius: 8px; overflow: hidden; background: var(--line-soft); }
.supply-seg { display: flex; align-items: center; justify-content: center; min-width: 6px; font-family: var(--mono); font-size: 12px; font-weight: 600; color: #fff; }
.supply-seg--0 { background: var(--brand); }
.supply-seg--1 { background: #5d7be8; }
.supply-seg + .supply-seg { border-left: 2px solid #fff; }
.supply-list { list-style: none; margin-top: 12px; display: grid; gap: 6px; }
.supply-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.supply-list strong { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--ink); text-align: right; }
.supply-box:has(.supply-bar:empty) { display: none; }

/* ---------- Photo figure ---------- */
.figure--photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
ol.parts { margin: 0 0 14px 1.2em; display: grid; gap: 6px; }

/* ---------- Fold-down choice (details) ---------- */
.paths { display: grid; gap: 14px; margin: 18px 0 8px; }
.path { border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; overflow: clip; transition: border-color .16s, box-shadow .16s; }
.path:hover { border-color: #b9c6f6; }
.path[open] { border-color: var(--brand); box-shadow: 0 10px 28px rgba(43,80,224,.10); }
.path > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; }
.path > summary::-webkit-details-marker { display: none; }
.path > summary::after { content: "+"; margin-left: auto; font-family: var(--mono); font-size: 22px; color: var(--brand); line-height: 1; }
.path[open] > summary::after { content: "\2013"; }
.path-num { flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand); font-weight: 800; }
.path[open] .path-num { background: var(--brand); color: #fff; }
.path-title strong { display: block; font-size: 16.5px; color: var(--ink); }
.path-title small { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.path-body { padding: 6px 22px 22px; border-top: 1px solid var(--line-soft); }
.path-body > p { margin-top: 14px; }
.path-body .steps { margin-top: 16px; }

/* ---------- Menu dropdowns ---------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { padding-right: 6px; }
.sub-toggle { width: 26px; height: 34px; margin: 0 4px 0 -2px; border: 0; border-radius: 8px; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.sub-toggle:hover { background: var(--soft); color: var(--brand); }
.sub-toggle span { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); transition: transform .16s; }
.has-sub.is-open .sub-toggle span { transform: rotate(225deg) translate(-1px, -1px); }
.nav-item::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; display: none; }
.has-sub:hover::after, .has-sub.is-open::after { display: block; }
.submenu {
  list-style: none; display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 18px 40px rgba(14,22,38,.12); z-index: 60;
}
.submenu a { display: block; font-weight: 500; white-space: nowrap; }
.has-sub:hover > .submenu, .has-sub.is-open > .submenu, .has-sub:has(.submenu a:focus-visible) > .submenu { display: block; }
@media (max-width: 720px) {
  .nav-item { flex-wrap: wrap; }
  .nav-item > a { flex: 1; }
  .sub-toggle { display: none; }
  .nav-item::after { display: none !important; }
  .submenu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; width: 100%; }
  .submenu a { white-space: normal; font-size: 14px; color: var(--muted); }
}

/* Text under a card grid on a listing page lines up with the cards, not the page centre. */
.grid + .prose { margin-left: 0; }

/* Theme rule: a link inside body text is bold and accent blue, everywhere (prose, FAQ, tables, callouts).
   Buttons and cards keep their own styles. */
main :is(p, li, dd, td) a:not(.btn):not(.card) { color: var(--brand); font-weight: 600; }
main :is(p, li, dd, td) a:not(.btn):not(.card):hover { text-decoration: underline; }

/* ---------- Touch targets ----------
   On phones and tablets every button, chip and menu link is at least 44px tall, with room between them.
   Links inside a sentence are left alone. */
@media (pointer: coarse), (max-width: 720px) {
  .nav-toggle { min-height: 44px; padding: 0 16px; }
  .main-nav a, .submenu a { display: flex; align-items: center; min-height: 44px; }
  .main-nav .lang-switch a { justify-content: center; min-width: 44px; }
  .chips { gap: 10px; }
  .chip { min-height: 44px; min-width: 44px; padding: 8px 16px; font-size: 13px; }
  .seg-btn { min-height: 42px; padding: 8px 18px; font-size: 13px; }
  .custom-row input { min-height: 48px; }
  .custom-row .unit-pill { min-height: 44px; display: inline-flex; align-items: center; }
  .vial-remove { min-height: 44px; padding: 0 8px; }
  .faq-item summary, .path > summary { min-height: 56px; }
  .site-footer .footer-cols a { display: flex; align-items: center; min-height: 44px; }
  .btn { min-height: 48px; }
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- Previous / next pages ---------- */
.pager-section { padding-top: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager-link {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.pager-link:hover { border-color: var(--brand); box-shadow: 0 8px 22px rgba(43,80,224,.10); }
.pager-next { grid-column: 2; text-align: right; }
.pager-dir { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.pager-title { font-size: 17px; font-weight: 800; letter-spacing: -.015em; line-height: 1.3; }
@media (max-width: 720px) {
  .pager { grid-template-columns: 1fr; }
  .pager-next { grid-column: auto; text-align: left; }
}

/* ---------- Start path (homepage flow) ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; counter-reset: flow; }
.flow-step { position: relative; display: flex; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -46px; width: 36px; height: 36px; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M4 16h21M18 8l8 8-8 8' stroke='%237f93e8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.flow-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%;
  padding: 26px 24px 22px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.flow-card:hover { border-color: var(--brand); box-shadow: 0 12px 28px rgba(43,80,224,.12); transform: translateY(-2px); }
.flow-num {
  position: absolute; top: 18px; left: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 14px; font-weight: 600;
}
.flow-art { align-self: center; width: 104px; height: 104px; margin-bottom: 4px; }
.flow-art svg { width: 100%; height: 100%; display: block; }
.flow-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 0; }
.flow-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0; }
.flow-link { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 14.5px; color: var(--brand); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 52px; }
  .flow-step:not(:last-child)::after { top: auto; bottom: -46px; right: auto; left: 50%; transform: translateX(-50%) rotate(90deg); }
}

/* Hero photo (homepage). The picture fills the frame; on phones it sits under the text. */
.hero-art--photo { padding: 0; overflow: hidden; background: var(--soft); box-shadow: 0 18px 44px rgba(14,22,38,.10); }
.hero-art--photo img { display: block; width: 100%; height: auto; aspect-ratio: 801 / 615; object-fit: cover; }
@media (max-width: 900px) {
  .hero-art--photo { margin: 0 auto; width: 100%; }
}

/* ---------- Research-use banner (homepage, under the hero) ---------- */
.ruo-banner { background: var(--brand-tint); border-top: 1px solid #d4ddfa; border-bottom: 1px solid #d4ddfa; padding: 22px 0; }
.ruo-banner .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 36px; align-items: baseline; }
.ruo-banner p { margin: 0; }
.ruo-banner-lead { font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: var(--ink); }
.ruo-banner-text { font-size: 15.5px; line-height: 1.6; color: #3a4354; }
@media (max-width: 900px) { .ruo-banner .wrap { grid-template-columns: 1fr; } }
