/* Peptide Federation
   Layout: a reference-manual grid. Narrow reading column with a data rail beside it on
   wide screens; everything stacks to one column on phones.
   Color: cool paper with a faint mineral-green bias, ink-navy text, cobalt for action,
   amber reserved for safety notices. */

:root {
  --paper: #f4f7f6;
  --surface: #ffffff;
  --sunk: #e8eeec;
  --ink: #0f1c24;
  --ink-2: #3d4f59;
  --muted: #5d6e77;
  --line: #d3dcda;
  --accent: #2346c8;
  --accent-ink: #ffffff;
  --accent-soft: #e3e9fb;
  --caution: #8a5a00;
  --caution-bg: #fdf3dc;
  --caution-line: #e9cf8f;

  /* evidence scale */
  --ev-approved: #1d7a4d;
  --ev-rct: #2f6fb0;
  --ev-human: #6a5bb5;
  --ev-animal: #a46412;
  --ev-cell: #7c6f68;

  /* residue classes */
  --aa-h: #dce6f9;
  --aa-s: #e7e9ea;
  --aa-p: #dff0e6;
  --aa-b: #e8e0f7;
  --aa-a: #f9e1dc;
  --aa-ink: #1b2a33;

  --display: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Public Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.25rem, 5vw, 3.25rem);

  --radius: 6px;
  --wrap: 1180px;
  --read: 68ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c1316;
    --surface: #121c20;
    --sunk: #18252a;
    --ink: #e4ecee;
    --ink-2: #b6c4c9;
    --muted: #8fa1a8;
    --line: #26363c;
    --accent: #8ea6ff;
    --accent-ink: #0c1316;
    --accent-soft: #1b2650;
    --caution: #f2c46b;
    --caution-bg: #2a2110;
    --caution-line: #5c4615;
    --ev-approved: #5fd19a;
    --ev-rct: #79b3f0;
    --ev-human: #ab9df0;
    --ev-animal: #e3a75a;
    --ev-cell: #b9aca5;
    --aa-h: #22345a;
    --aa-s: #2a3337;
    --aa-p: #1f3a2c;
    --aa-b: #332a4d;
    --aa-a: #4a2a24;
    --aa-ink: #e4ecee;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c1316;
  --surface: #121c20;
  --sunk: #18252a;
  --ink: #e4ecee;
  --ink-2: #b6c4c9;
  --muted: #8fa1a8;
  --line: #26363c;
  --accent: #8ea6ff;
  --accent-ink: #0c1316;
  --accent-soft: #1b2650;
  --caution: #f2c46b;
  --caution-bg: #2a2110;
  --caution-line: #5c4615;
  --ev-approved: #5fd19a;
  --ev-rct: #79b3f0;
  --ev-human: #ab9df0;
  --ev-animal: #e3a75a;
  --ev-cell: #b9aca5;
  --aa-h: #22345a;
  --aa-s: #2a3337;
  --aa-p: #1f3a2c;
  --aa-b: #332a4d;
  --aa-a: #4a2a24;
  --aa-ink: #e4ecee;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--surface);
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-stretch: 82%;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-stretch: 90%; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font: 600 0.75rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- banner, header ---------- */
.banner { background: var(--caution-bg); color: var(--ink); border-bottom: 1px solid var(--caution-line); font-size: var(--step--1); }
.banner .wrap { padding-block: 8px; }
.banner strong { color: var(--caution); }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--ink); flex: none; }
.brand-word { font: 800 1.25rem/1 var(--display); font-stretch: 78%; letter-spacing: 0.01em; text-transform: uppercase; }
.brand-word span { color: var(--accent); margin-left: 0.18em; }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; }
.site-nav a { display: block; padding: 8px 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; border-radius: var(--radius); }
.site-nav a:hover { color: var(--ink); background: var(--sunk); }
.site-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-search input { width: 190px; }
.nav-toggle { display: none; margin-left: auto; font: 600 0.9rem var(--body); background: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 16px; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .nav-search input { width: 100%; }
}

/* ---------- form controls ---------- */
input, select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 11px; width: 100%; min-height: 44px;
}
input:focus, select:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 0; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin: 14px 0 6px; color: var(--ink-2); }
label .unit { font: 500 0.75rem var(--mono); color: var(--muted); margin-left: 4px; }
.btn, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  font: 700 0.95rem var(--body); border-radius: var(--radius); cursor: pointer; text-decoration: none;
}
.btn { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- breadcrumbs ---------- */
.crumbs { padding-block: 16px 0; font-size: var(--step--1); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- page sections ---------- */
.page-head { padding-block: 32px 28px; display: grid; gap: 14px; }
.page-head .lede { font-size: var(--step-1); color: var(--ink-2); max-width: var(--read); }
.section { padding-block: 48px; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 8px; margin-bottom: 24px; }
.prose { max-width: var(--read); display: grid; gap: 16px; }
.prose h2 { margin-top: 20px; font-size: var(--step-2); }
.prose h3 { margin-top: 8px; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; background: var(--sunk); }
.table-scroll { overflow-x: auto; }
.prose blockquote { margin: 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--sunk); }

/* ---------- hero ---------- */
.hero { padding-block: 44px 40px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: 0; line-height: 0.98; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: var(--step-1); color: var(--ink-2); margin-top: 18px; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 20px 26px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-stats div { display: grid; }
.hero-stats strong { font: 800 1.75rem/1 var(--display); font-stretch: 80%; }
.hero-stats span { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 920px) { .hero { grid-template-columns: 1fr; gap: 28px; } }

/* sequence specimen in hero */
.specimen { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.specimen-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.specimen-head strong { font: 750 1.25rem var(--display); font-stretch: 85%; }

/* ---------- residues ---------- */
.residues { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; }
.aa { display: grid; place-items: center; width: 34px; height: 42px; border-radius: 4px; color: var(--aa-ink); font-family: var(--mono); }
.aa span { font-weight: 500; font-size: 1rem; line-height: 1; }
.aa small { font-size: 0.6rem; opacity: 0.7; line-height: 1; }
.aa-h { background: var(--aa-h); } .aa-s { background: var(--aa-s); } .aa-p { background: var(--aa-p); }
.aa-b { background: var(--aa-b); } .aa-a { background: var(--aa-a); }
.residue-key { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.75rem; color: var(--ink-2); }
.residue-key span { padding: 2px 8px; border-radius: 3px; color: var(--aa-ink); }

/* ---------- evidence badges ---------- */
.ev { display: inline-flex; align-items: center; gap: 6px; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.02em; color: var(--ink-2); white-space: nowrap; }
.ev-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ev-approved .ev-dot { background: var(--ev-approved); }
.ev-rct .ev-dot { background: var(--ev-rct); }
.ev-human .ev-dot { background: var(--ev-human); }
.ev-animal .ev-dot { background: var(--ev-animal); }
.ev-cell .ev-dot { background: var(--ev-cell); }
.ev-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ev-scale li { list-style: none; padding: 10px; border-top: 4px solid; background: var(--surface); font-size: var(--step--1); display: grid; gap: 4px; }
.ev-scale li strong { font-size: 0.9rem; }
.ev-scale .s-approved { border-color: var(--ev-approved); } .ev-scale .s-rct { border-color: var(--ev-rct); }
.ev-scale .s-human { border-color: var(--ev-human); } .ev-scale .s-animal { border-color: var(--ev-animal); }
.ev-scale .s-cell { border-color: var(--ev-cell); }
@media (max-width: 760px) { .ev-scale { grid-template-columns: 1fr 1fr; } }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; list-style: none; }
.card a {
  display: grid; gap: 8px; align-content: start; height: 100%;
  padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; transition: border-color .15s;
}
.card a:hover { border-color: var(--accent); }
.card-type { font: 500 0.7rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.card-name { font: 750 1.3rem/1.1 var(--display); font-stretch: 85%; }
.card-lede { font-size: 0.92rem; color: var(--ink-2); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; list-style: none; }
.cat-grid a { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; height: 100%; }
.cat-grid a:hover { border-color: var(--accent); }
.cat-grid strong { font: 750 1.2rem var(--display); font-stretch: 85%; }
.cat-grid span { font-size: 0.92rem; color: var(--ink-2); }
.cat-grid em { font: normal 500 0.75rem var(--mono); color: var(--muted); }

/* ---------- library filters ---------- */
.filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; margin-bottom: 14px; }
.filters label { margin-top: 0; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip {
  font: 600 0.85rem var(--body); padding: 6px 12px; min-height: 36px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line);
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lib-count { font: 500 0.8rem var(--mono); color: var(--muted); margin-bottom: 12px; }
@media (max-width: 640px) { .filters { grid-template-columns: 1fr; } }

/* ---------- profile ---------- */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-block: 8px 56px; }
.profile-main { display: grid; gap: 36px; min-width: 0; }
.profile-main > section { display: grid; gap: 14px; max-width: var(--read); }
.profile-main h2 { font-size: var(--step-2); }
.profile-head { display: grid; gap: 14px; padding-block: 24px 4px; }
.profile-head .aka { color: var(--muted); font-size: 0.95rem; }
.answer { font-size: var(--step-1); line-height: 1.55; color: var(--ink); max-width: var(--read); }
.uses { list-style: none; display: grid; gap: 8px; }
.uses li { padding-left: 22px; position: relative; }
.uses li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 10px; height: 2px; background: var(--accent); }
.finding { display: grid; gap: 6px; padding-left: 16px; border-left: 2px solid var(--line); }
.finding h3 { font-size: 1.05rem; }
.rail { display: grid; gap: 16px; align-content: start; position: sticky; top: 88px; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 0; }
.facts h2 { font-size: 0.8rem; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.facts dl { display: grid; gap: 0; margin: 0; }
.facts dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.rail-links { display: grid; gap: 8px; }
@media (max-width: 960px) {
  .profile { grid-template-columns: 1fr; gap: 28px; }
  .rail { position: static; }
}
.cite { font: 500 0.7rem var(--mono); margin-left: 1px; }
.cite a { text-decoration: none; }
.refs { padding-left: 1.4em; display: grid; gap: 8px; font-size: 0.92rem; color: var(--ink-2); }
.refs cite { font-style: italic; }

/* ---------- notice ---------- */
.notice {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px;
  padding: 14px 16px; background: var(--caution-bg); border: 1px solid var(--caution-line); border-radius: var(--radius);
  font-size: 0.9rem; color: var(--ink);
}
.notice-icon { width: 22px; height: 22px; color: var(--caution); }
.notice-title { font-weight: 700; color: var(--caution); margin-bottom: 2px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; max-width: var(--read); }
.faq h2 { margin-bottom: 12px; font-size: var(--step-2); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 500 1.25rem var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq-a { padding-bottom: 16px; color: var(--ink-2); }

/* ---------- calculator ---------- */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 0; }
.calc > .notice { margin: 0 16px 16px; }
.calc-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); }
.calc-tabs button {
  flex: 1 0 auto; font: 700 0.9rem var(--body); padding: 14px 16px; background: none; border: 0; cursor: pointer;
  color: var(--muted); border-bottom: 3px solid transparent; min-height: 48px;
}
.calc-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.calc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.calc-inputs { padding: 8px 20px 20px; border-right: 1px solid var(--line); min-width: 0; }
.calc-inputs fieldset { border: 0; padding: 0; margin: 0 0 6px; }
.calc-inputs legend { font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding-top: 14px; }
.calc-inputs .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.calc .row { display: flex; gap: 12px; align-items: end; }
.calc .row > div { min-width: 0; }
.calc .row .grow { flex: 1; }
.panel-intro { color: var(--ink-2); font-size: 0.92rem; padding-top: 14px; }
.hint { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
.calc-output { padding: 20px; display: grid; gap: 12px; align-content: start; background: var(--sunk); min-width: 0; }
.out-label { font: 500 0.75rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.out-big { font: 800 3rem/1 var(--display); font-stretch: 78%; font-variant-numeric: tabular-nums; }
.out-unit { font-size: 1.25rem; font-weight: 600; color: var(--ink-2); }
.out-sub { color: var(--ink-2); font-size: 0.92rem; }
.out-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 4px 0 0; }
.out-grid > div { background: var(--surface); padding: 10px 12px; }
.out-grid dt { font-size: 0.75rem; color: var(--muted); }
.out-grid dd { margin: 0; font: 600 1.05rem var(--mono); font-variant-numeric: tabular-nums; }
.warn { font-size: 0.88rem; color: var(--caution); background: var(--caution-bg); border: 1px solid var(--caution-line); padding: 8px 10px; border-radius: var(--radius); }
.syringe svg { width: 100%; height: auto; display: block; }
.syringe .barrel { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.syringe .fill { fill: var(--accent); opacity: 0.35; }
.syringe .fill.over { fill: var(--caution); opacity: 0.5; }
.syringe .tick { stroke: var(--ink-2); stroke-width: 1; }
.syringe .tick.major { stroke-width: 1.5; }
.syringe .tick-label { fill: var(--muted); font: 500 9px var(--mono); }
.syringe .plunger { fill: var(--ink); }
.syringe .needle { stroke: var(--ink-2); stroke-width: 1.5; }
.syringe .hub { fill: var(--line); }
.ref-table summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; padding: 6px 0; }
.ref-table table { width: 100%; border-collapse: collapse; font: 0.85rem var(--mono); font-variant-numeric: tabular-nums; background: var(--surface); }
.ref-table th, .ref-table td { padding: 6px 10px; text-align: right; border-bottom: 1px solid var(--line); }
.ref-table th:first-child, .ref-table td:first-child { text-align: left; }
.blend-row { display: flex; gap: 10px; align-items: end; }
.blend-row .grow { flex: 1; min-width: 0; }
.blend-row > div:last-child { width: 96px; flex: none; }
.blend-out { list-style: none; display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.blend-out li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); }
.blend-out li:first-child { border-top: 0; }
.blend-out strong { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.copy { justify-self: start; }
.btn-ghost + label { margin-top: 18px; }
@media (max-width: 820px) {
  .calc-body { grid-template-columns: 1fr; }
  .calc-inputs { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- learn ---------- */
.article-list { list-style: none; display: grid; gap: 0; }
.article-list li { border-top: 1px solid var(--line); }
.article-list a { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding: 18px 0; color: var(--ink); text-decoration: none; }
.article-list a:hover strong { color: var(--accent); }
.article-list .eyebrow { padding-top: 4px; }
.article-list strong { display: block; font: 750 1.25rem/1.2 var(--display); font-stretch: 85%; margin-bottom: 4px; }
.article-list span { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 640px) { .article-list a { grid-template-columns: 1fr; gap: 6px; } }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--step--1); color: var(--muted); }
.key-points { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; display: grid; gap: 8px; max-width: var(--read); }
.key-points h2 { font-size: 0.8rem !important; margin: 0 !important; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.key-points ul { padding-left: 1.2em; display: grid; gap: 6px; }

/* ---------- home bits ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.method { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: m; }
.method li { display: grid; gap: 8px; }
.method li::before { counter-increment: m; content: counter(m, decimal-leading-zero); font: 500 0.8rem var(--mono); color: var(--accent); }
@media (max-width: 760px) { .method { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; background: var(--surface); border-top: 1px solid var(--line); padding-block: 40px 28px; font-size: 0.92rem; }
.footer-disclaimer { display: grid; gap: 8px; padding: 18px 20px; border: 1px solid var(--caution-line); background: var(--caution-bg); border-radius: var(--radius); margin-bottom: 32px; }
.footer-disclaimer h2 { font-size: 1rem; color: var(--caution); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer-grid h2 { font: 500 0.75rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.footer-grid ul { list-style: none; display: grid; gap: 6px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.footer-brand { font: 800 1.1rem var(--display); font-stretch: 78%; text-transform: uppercase; margin-bottom: 6px; }
.footer-legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .site-header, .banner, .site-footer .footer-grid, .calc-tabs, .copy { display: none; }
  body { background: #fff; color: #000; }
}
