/* Advanced Biology Post — "Exploded View / Parts Manual"
   Technical-manual look: cool drafting paper, graphite ink, signal-orange callouts,
   brushed-aluminum spec plates. Fonts: Schibsted Grotesk (display), Atkinson Hyperlegible (body),
   IBM Plex Mono (part numbers, callouts, labels). */

@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #EEF0EE;        /* drafting paper */
  --sheet: #FFFFFF;        /* panels */
  --ink: #14181C;          /* graphite */
  --ink-2: #2B3239;
  --steel: #4B5763;        /* secondary text, AA on white and paper */
  --rule: #C6CDD3;
  --hair: #DDE2E6;
  --plate: #DFE4E8;        /* aluminum */
  --plate-2: #C9D1D8;
  --signal: #C9471B;       /* callout fills / large marks */
  --signal-ink: #B23A10;   /* signal text on light grounds */
  --signal-tint: #FCE9E1;
  --sleep: #33507E;        /* group codes */
  --sleep-tint: #E4EAF3;
  --massage: #B23A10;
  --massage-tint: #FCE9E1;
  --feet: #4C6626;
  --feet-tint: #E9EFDF;
  --supp: #1F6467;
  --supp-tint: #DCEEEE;
  --direct: #6A3A86;       /* DC: direct-sale products, checked */
  --direct-tint: #EFE7F4;
  --ok: #2F6B2F;
  --err: #B3261E;
  --display: "Schibsted Grotesk", "Arial Narrow", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --wrap: 1200px;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--signal-ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
h1, h2, h3, h4, h5 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--signal-ink); margin: 0 0 10px; }

/* ---------- Header ---------- */
.topbar { background: var(--sheet); border-bottom: 1px solid var(--ink); position: relative; z-index: 20; }
.topbar-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 16px; }
.strip { background: var(--ink); color: #E8ECEF; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.strip .topbar-inner { justify-content: space-between; min-height: 32px; }
.strip-r { color: #AEB8C1; }
.topbar-main { min-height: 70px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; white-space: nowrap; }
.wm-accent { color: var(--signal-ink); }
.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { font-family: var(--mono); font-size: 12px; font-weight: 500; text-decoration: none; padding: 8px 6px; border: 1px solid transparent; color: var(--ink-2); }
.nav a:hover { border-color: var(--rule); color: var(--ink); }
.nav a[aria-current="page"] { border-color: var(--ink); background: var(--paper); color: var(--ink); }
.nav-toggle { display: none; font-family: var(--mono); font-size: 13px; font-weight: 600; background: var(--sheet); border: 1px solid var(--ink); padding: 8px 14px; cursor: pointer; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--mono); font-weight: 600; font-size: 14px; letter-spacing: .02em; text-decoration: none; padding: 12px 18px; border: 2px solid var(--ink); border-radius: var(--radius); cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--sheet); color: var(--ink); }
.btn-amazon, .btn-accent { background: #C9471B; border-color: #9E3510; color: #fff; }
.btn-amazon:hover, .btn-accent:hover { background: #A93A12; color: #fff; }
.btn-amazon::after, .btn-accent::after { content: "\2197"; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 9px 12px; font-size: 13px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; cursor: pointer; text-align: left; }

/* ---------- Tags / part numbers ---------- */
.partno { display: inline-block; font-family: var(--mono); font-weight: 600; font-size: 12.5px; letter-spacing: .08em; padding: 3px 8px; border: 1.5px solid var(--ink); background: var(--sheet); color: var(--ink); white-space: nowrap; }
.tag { display: inline-block; font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; white-space: nowrap; }
.tag-sleep { background: var(--sleep-tint); color: var(--sleep); box-shadow: inset 3px 0 0 var(--sleep); }
.tag-massage { background: var(--massage-tint); color: var(--massage); box-shadow: inset 3px 0 0 var(--massage); }
.tag-feet { background: var(--feet-tint); color: var(--feet); box-shadow: inset 3px 0 0 var(--feet); }
.tag-supplements { background: var(--supp-tint); color: var(--supp); box-shadow: inset 3px 0 0 var(--supp); }
.tag-direct { background: var(--direct-tint); color: var(--direct); box-shadow: inset 3px 0 0 var(--direct); }
.tag-guide { background: var(--ink); color: #fff; }
.chip { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 3px 8px; border: 1px solid var(--rule); background: var(--sheet); color: var(--steel); white-space: nowrap; }
.reg { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 3px 8px; border: 1.5px dashed var(--steel); color: var(--ink-2); background: var(--sheet); }
.reg::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--steel); }
.reg-cleared { border-style: solid; border-color: var(--ink); }
.reg-cleared::before { background: var(--ok); }
.reg-exempt::before { background: var(--sleep); }
.reg-none::before { background: var(--plate-2); border: 1px solid var(--steel); }
.reg-supplement::before { background: var(--supp); }

/* ---------- Crumbs ---------- */
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--steel); display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 6px; }
.crumbs a { color: var(--steel); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Home: hero ---------- */
.hero { border-bottom: 1px solid var(--ink); background:
  linear-gradient(var(--paper), var(--paper)) padding-box; padding: 48px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-title { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 18px; }
.hero-title .hl { color: var(--signal-ink); }
.hero-lede { font-size: 18.5px; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 26px; }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ink); background: var(--sheet); }
.hero-facts span { padding: 10px 12px; font-family: var(--mono); font-size: 12px; color: var(--steel); border-right: 1px solid var(--rule); line-height: 1.35; }
.hero-facts span:last-child { border-right: 0; }
.hero-facts b { display: block; font-family: var(--display); font-size: 24px; color: var(--ink); letter-spacing: -0.02em; }
.xv-hero { background: var(--sheet); border: 1px solid var(--ink); position: relative; padding: 18px; margin: 0; }
.xv-hero::before, .xv-hero::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--signal); }
.xv-hero::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.xv-hero::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }
.xv-hero svg { width: 100%; height: auto; display: block; }
.xv-hero figcaption { font-family: var(--mono); font-size: 12px; color: var(--steel); border-top: 1px solid var(--hair); margin-top: 10px; padding-top: 10px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Home: parts index ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-flag { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 18px; }
.section-flag h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin: 0; }
.flag-code { font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .1em; color: #fff; background: var(--ink); padding: 4px 9px; align-self: center; }
.flag-code.is-sleep { background: var(--sleep); }
.flag-code.is-massage { background: var(--massage); }
.flag-code.is-feet { background: var(--feet); }
.flag-code.is-supplements { background: var(--supp); }
.flag-code.is-direct { background: var(--direct); }
.flag-meta { font-family: var(--mono); font-size: 13px; color: var(--steel); margin-left: auto; }
.section-lede { max-width: 46em; color: var(--ink-2); font-size: 17.5px; margin-bottom: 28px; }
.section-foot { margin-top: 24px; font-family: var(--mono); font-size: 14px; }
.parts-wrap { overflow-x: auto; border: 1px solid var(--ink); background: var(--sheet); -webkit-overflow-scrolling: touch; }
.parts-index { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.parts-index th, .parts-index td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.parts-index thead th { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); background: var(--paper); border-bottom: 1px solid var(--ink); }
.parts-index td.no { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.parts-index td.leader { width: 30%; }
.parts-index tbody tr:hover { background: #F7F8F7; }
.parts-index a { font-weight: 700; }
.parts-index .pg { font-family: var(--mono); font-size: 13px; white-space: nowrap; }

/* ---------- Home: product tiles ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.tiles > li { min-width: 0; }
.tile { height: 100%; display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--ink); position: relative; }
.section-alt .tile { background: var(--paper); }
.tile-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; min-height: 0; background: #fff; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; padding: 18px; }
.tile-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.tile-photo .partno { position: absolute; top: 10px; left: 10px; }
.tile-photo .tag { position: absolute; top: 10px; right: 10px; }
.tile-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.tile-cat { font-family: var(--mono); font-size: 12px; color: var(--steel); letter-spacing: .04em; margin: 0 0 6px; text-transform: uppercase; }
.tile-title { font-size: 21px; font-weight: 800; margin: 0 0 8px; }
.tile-title a { text-decoration: none; }
.tile-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile-title a:hover { color: var(--signal-ink); }
.tile-sub { color: var(--ink-2); font-size: 15.5px; margin: 0 0 14px; }
.tile-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.tile-actions .go { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.tile-note { font-family: var(--mono); font-size: 11.5px; color: var(--steel); margin: 10px 0 0; position: relative; z-index: 2; }

/* ---------- Home: guides ---------- */
.front { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; }
.front > * { min-width: 0; }
.lead-story, .story { text-decoration: none; color: var(--ink); background: var(--sheet); border: 1px solid var(--ink); display: block; }
.lead-story img { border-bottom: 1px solid var(--ink); width: 100%; }
.lead-story .story-meta, .lead-story .story-title, .lead-story .story-dek { padding: 0 20px; }
.lead-story .story-meta { padding-top: 16px; }
.lead-story .story-dek { padding-bottom: 20px; }
.story-list { display: grid; gap: 14px; }
.story { display: grid; grid-template-columns: 150px 1fr; gap: 0; }
.story img { width: 150px; height: 100%; object-fit: cover; object-position: left top; border-right: 1px solid var(--ink); }
.story > div { padding: 12px 16px; min-width: 0; }
.story-meta { font-family: var(--mono); font-size: 12px; color: var(--signal-ink); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
.story-title { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.lead-story .story-title { font-size: 28px; }
.story-dek { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.lead-story:hover .story-title, .story:hover .story-title { color: var(--signal-ink); text-decoration: underline; text-decoration-color: var(--signal); }

/* ---------- How grid ---------- */
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--ink); background: var(--sheet); margin: 18px 0 8px; counter-reset: how; }
.how-item { padding: 20px; border-right: 1px solid var(--rule); counter-increment: how; position: relative; }
.how-item:last-child { border-right: 0; }
.how-item::before { content: counter(how, decimal-leading-zero); display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 12px; border: 1.5px solid var(--ink); margin-bottom: 10px; }
.how-item.is-accent::before { background: var(--signal); border-color: var(--signal); color: #fff; }
.how-item h3 { font-size: 19px; margin-bottom: 6px; }
.how-item p { font-size: 15.5px; color: var(--ink-2); margin: 0; }

/* ---------- Newsletter ---------- */
.brief { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; border: 1px solid var(--ink); background: var(--sheet); padding: 30px; align-items: center; }
.brief > * { min-width: 0; }
.brief h2 { font-size: 30px; font-weight: 800; }
.nl-form { display: flex; gap: 8px; }
.nl-form input[type="email"] { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); }
.nl-form button { font-family: var(--mono); font-weight: 600; font-size: 14px; padding: 12px 18px; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; border-radius: var(--radius); }
.nl-msg { min-height: 1.4em; font-size: 14px; margin-top: 8px; }
.nl-note { font-size: 13px; color: var(--steel); margin: 6px 0 0; }

/* ---------- Product entry ---------- */
.entry-head { padding: 10px 0 24px; border-bottom: 2px solid var(--ink); margin-bottom: 28px; }
.entry-kicker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.entry-title { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; letter-spacing: -0.025em; max-width: 22em; }
.entry-deck { font-size: 19px; color: var(--ink-2); max-width: 40em; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 13px; color: var(--steel); }
.entry-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; padding-bottom: 64px; }
.entry-main { min-width: 0; }
.entry-main > h2, .prose > h2 { font-size: 28px; font-weight: 800; margin: 44px 0 14px; padding-top: 14px; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.entry-main > h2 .sec-no, .prose > h2 .sec-no { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--signal-ink); margin-right: 10px; vertical-align: 4px; }
.entry-main h3 { font-size: 19px; }
.entry-main ul, .entry-main ol, .prose ul, .prose ol { padding-left: 1.3em; }
.entry-main li, .prose li { margin-bottom: 6px; }

/* Exploded view: the signature device */
.exploded { margin: 0 0 30px; background: var(--sheet); border: 1px solid var(--ink); }
.xv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--ink); background: var(--paper); }
.xv-head h2 { font-size: 15px; font-family: var(--mono); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.xv-head span { font-family: var(--mono); font-size: 12px; color: var(--steel); }
.xv-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.xv-stage { position: relative; background: #fff;
  background-image: linear-gradient(var(--hair) 1px, transparent 1px), linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 100% 25%, 25% 100%; background-position: 0 0; border-right: 1px solid var(--rule); padding: 26px; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.xv-frame { position: relative; display: inline-block; max-width: 100%; }
.xv-frame img { max-height: 460px; width: auto; max-width: 100%; mix-blend-mode: multiply; }
.pin { position: absolute; left: var(--x, 50%); top: var(--y, 50%); transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; background: var(--signal); color: #fff; font-family: var(--mono); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--ink); z-index: 2; }
.pin::after { content: ""; position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 1px dashed var(--signal); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.xv-legend { list-style: none; margin: 0; padding: 8px 0; counter-reset: none; align-self: center; }
.xv-legend li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 12px; padding: 10px 18px; border-bottom: 1px dashed var(--rule); margin: 0; }
.xv-legend li:last-child { border-bottom: 0; }
.xv-legend .n { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); font-family: var(--mono); font-weight: 600; font-size: 12px; display: flex; align-items: center; justify-content: center; grid-row: span 2; }
.xv-legend b { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.xv-legend span { font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.xv-foot { margin: 0; padding: 10px 16px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--steel); font-family: var(--mono); }

/* Spec plate: owner's-manual nameplate */
.plate { position: relative; margin: 0 0 30px; background: linear-gradient(180deg, #E9EDF0 0%, var(--plate) 55%, #D3DAE0 100%); border: 1.5px solid #8C98A3; border-radius: 6px; padding: 22px 26px 18px; box-shadow: inset 0 1px 0 #fff, 0 1px 0 #fff; }
.plate::before, .plate::after, .plate .screws::before, .plate .screws::after { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0, #B7C0C8 45%, #7E8A95 100%); box-shadow: inset 0 0 0 1px #6F7B86; }
.plate::before { top: 9px; left: 9px; }
.plate::after { top: 9px; right: 9px; }
.plate .screws::before { bottom: 9px; left: 9px; }
.plate .screws::after { bottom: 9px; right: 9px; }
.plate-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; border-bottom: 2px solid var(--ink); padding: 0 8px 8px; margin-bottom: 4px; }
.plate-head h2 { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.plate-head span { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.plate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0 8px; }
.plate-grid > div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(20, 24, 28, .18); }
.plate-grid > div:nth-child(odd) { padding-right: 18px; }
.plate-grid dt { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding-top: 2px; }
.plate-grid dd { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.plate-grid .is-key { grid-column: 1 / -1; }
.plate-grid .is-key dd { color: var(--signal-ink); }
.plate-foot { font-size: 13px; color: var(--ink-2); margin: 10px 8px 0; }

/* Operating principle: numbered mechanism */
.mechanism { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: mech; border-left: 2px solid var(--ink); }
.mechanism > li { counter-increment: mech; position: relative; padding: 2px 0 18px 46px; margin: 0; }
.mechanism > li::before { content: counter(mech); position: absolute; left: -15px; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--ink); font-family: var(--mono); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.mechanism > li::after { content: ""; position: absolute; left: 13px; top: 13px; width: 26px; border-top: 1px dashed var(--steel); }
.mechanism h3 { font-size: 18px; margin: 0 0 4px; }
.mechanism p { margin: 0; color: var(--ink-2); }

/* Fit check */
.fit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); background: var(--sheet); margin: 0 0 26px; }
.fit-col { padding: 16px 18px; border-right: 1px solid var(--rule); min-width: 0; }
.fit-col:last-child { border-right: 0; }
.fit-col h3 { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 3px solid var(--ink); }
.fit-col.is-good h3 { border-color: var(--ok); }
.fit-col.is-poor h3 { border-color: var(--steel); }
.fit-col.is-check h3 { border-color: var(--signal); }
.fit-col ul { margin: 0; padding-left: 1.1em; font-size: 15.5px; }
.fit-col li { margin-bottom: 6px; }

/* Tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--ink); background: var(--sheet); margin: 0 0 22px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.data-table th, .data-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.data-table thead th { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); background: var(--paper); border-bottom: 1px solid var(--ink); }
.data-table td.num { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }

/* Callouts */
.callout { border: 1px solid var(--ink); background: var(--sheet); padding: 16px 18px 6px; margin: 0 0 24px; position: relative; }
.callout-label { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; padding: 2px 8px; background: var(--ink); color: #fff; }
.callout-watch { border-left: 6px solid var(--signal); }
.callout-watch .callout-label { background: var(--signal-ink); }
.callout-note { border-left: 6px solid var(--steel); }
.callout-key { border-left: 6px solid var(--ok); background: #F3F7F1; }
.callout-key .callout-label { background: var(--ok); }

/* Steps & checklists */
.steps { list-style: none; padding: 0 !important; margin: 0 0 24px; counter-reset: st; display: grid; gap: 10px; }
.steps > li { counter-increment: st; background: var(--sheet); border: 1px solid var(--rule); padding: 14px 16px 14px 62px; position: relative; margin: 0; }
.steps > li::before { content: "Step " counter(st); position: absolute; left: 0; top: 0; bottom: 0; width: 48px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .04em; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 4px; line-height: 1.2; }
.steps-accent > li::before { background: var(--signal-ink); }
.steps h3 { font-size: 17.5px; margin: 0 0 4px; }
.steps p { margin: 0; color: var(--ink-2); }
.step-time { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--signal-ink); margin-left: 6px; }
.checklist { list-style: none; padding: 0 !important; margin: 0 0 22px; }
.checklist li { position: relative; padding: 4px 0 4px 32px; margin-bottom: 6px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border: 2px solid var(--ink); background: var(--sheet); }
.checklist.all-done li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 6px; height: 11px; border: solid var(--signal-ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* Sources & disclosure */
.sources { font-size: 14.5px; color: var(--ink-2); padding-left: 1.6em !important; }
.sources li { margin-bottom: 8px; overflow-wrap: anywhere; }
.sources li:target { background: var(--signal-tint); }
.disclosure { font-size: 13.5px; color: var(--steel); }

/* Aside */
.entry-aside { position: sticky; top: 16px; display: grid; gap: 18px; min-width: 0; }
.buybox { background: var(--sheet); border: 1px solid var(--ink); }
.buybox-photo { background: #fff; border-bottom: 1px solid var(--rule); padding: 16px; display: flex; justify-content: center; }
.buybox-photo img { max-height: 240px; width: auto; }
.buybox-photo.fs-nophoto { font-family: var(--mono); font-size: 13px; color: var(--steel); min-height: 120px; align-items: center; }
.buybox-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px 0; }
.buybox-head h2 { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.bb-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 0; }
.bb-table th, .bb-table td { text-align: left; padding: 7px 16px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.bb-table th { font-family: var(--mono); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--steel); width: 42%; }
.buybox-cta { padding: 14px 16px 16px; }
.buybox-cta .disclosure { margin: 10px 0 0; font-size: 12.5px; }
.aside-block { background: var(--sheet); border: 1px solid var(--rule); padding: 14px 16px; }
.aside-block h2, .toc h2 { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
.related { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.related a { display: grid; gap: 4px; text-decoration: none; padding: 10px; border: 1px solid var(--hair); background: var(--paper); }
.related a:hover { border-color: var(--ink); }
.related a > span:last-child { font-weight: 700; font-size: 15px; }
.related small { display: block; font-weight: 400; color: var(--steel); font-size: 13px; }
.related .tag { justify-self: start; }

/* ---------- Guides (articles) ---------- */
.article-head { padding: 10px 0 22px; max-width: 900px; }
.article-title { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; letter-spacing: -0.025em; margin-top: 12px; }
.article-dek { font-size: 19.5px; color: var(--ink-2); }
.article-byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 13px; color: var(--steel); }
.article-cover { margin: 0 0 34px; border: 1px solid var(--ink); background: var(--sheet); }
.article-cover img { width: 100%; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 44px; align-items: start; padding-bottom: 64px; }
.prose { min-width: 0; max-width: 46em; font-size: 17.5px; }
.prose > h2:first-of-type { margin-top: 28px; }
.prose h3 { font-size: 20px; margin-top: 24px; }
.keyline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--ink); background: var(--sheet); margin: 0 0 28px; }
.keyline-head { grid-column: 1 / -1; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; background: var(--ink); color: #fff; }
.keyline > div:not(.keyline-head) { padding: 14px; border-right: 1px solid var(--rule); min-width: 0; }
.keyline > div:last-child { border-right: 0; }
.keyline b { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--signal-ink); letter-spacing: -0.02em; line-height: 1.1; }
.keyline span { font-size: 14px; color: var(--ink-2); }
.toc { position: sticky; top: 16px; background: var(--sheet); border: 1px solid var(--ink); padding: 16px; min-width: 0; }
.toc ol { margin: 0 0 14px; padding-left: 1.3em; font-size: 14.5px; }
.toc li { margin-bottom: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc-related { border-top: 1px solid var(--rule); padding-top: 12px; }

/* ---------- Docs ---------- */
.doc-head { padding: 12px 0 22px; border-bottom: 2px solid var(--ink); margin-bottom: 26px; }
.doc-head h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.025em; }
.doc-head > p:not(.eyebrow) { font-size: 18.5px; color: var(--ink-2); }
.doc-meta { font-family: var(--mono); font-size: 12.5px; color: var(--steel); }
.doc { padding-bottom: 64px; }
.doc h2 { font-size: 25px; font-weight: 800; margin: 36px 0 12px; }
.doc h3 { font-size: 19px; margin: 22px 0 8px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 7px; }
.doc .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.doc .how-item:nth-child(2) { border-right: 0; }
.doc .how-item:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
.doc-card { background: var(--sheet); border: 1px solid var(--ink); padding: 16px 20px; margin: 18px 0 24px; position: relative; }
.doc-card::before { content: "Nameplate"; position: absolute; top: -10px; left: 14px; background: var(--paper); padding: 0 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.doc-card dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.doc-card dt { font-family: var(--mono); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--steel); padding-top: 2px; }
.doc-card dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- 404 ---------- */
.nf { padding: 56px 24px 80px; max-width: 760px; }
.nf .big { font-family: var(--mono); font-weight: 600; font-size: 96px; line-height: 1; color: var(--signal-ink); margin: 0 0 10px; letter-spacing: -0.04em; }
.nf h1 { font-size: 36px; font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D6DCE1; margin-top: 0; }
.site-footer a { color: #fff; text-decoration-color: var(--signal); }
.site-footer .linklike { color: #fff; font-size: 15px; }
.footer-grid { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 28px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid > * { min-width: 0; }
.footer-grid h5 { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9FAAB4; margin: 0 0 12px; }
.footer-grid > div > a, .footer-grid > div > button { display: block; margin-bottom: 8px; font-size: 15px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand .brand-mark rect { stroke: #4B5763; stroke-width: 1; }
.footer-brand p { font-size: 15px; color: #BAC3CB; }
.footer-contact { font-style: normal; font-size: 15px; line-height: 1.7; }
.footer-contact strong { display: block; color: #fff; }
.footer-bottom { max-width: var(--wrap); margin: 0 auto; padding: 18px 24px 32px; border-top: 1px solid #36404A; font-size: 13.5px; color: #AEB8C1; }
.footer-bottom p { margin: 0 0 8px; }

/* ---------- Cookie banner ---------- */
#cookieBanner { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 760px; margin: 0 auto; background: var(--sheet); color: var(--ink); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--signal); padding: 16px 18px; gap: 16px; align-items: center; }
#cookieBanner.show { display: flex; }
#cookieBanner p { margin: 0; font-size: 14px; line-height: 1.5; }
.cookie-banner-actions { display: flex; gap: 8px; flex: none; }
.cookie-banner-actions button { font-family: var(--mono); font-weight: 600; font-size: 13px; padding: 10px 16px; border: 2px solid var(--ink); cursor: pointer; border-radius: var(--radius); }
#cbReject { background: var(--sheet); color: var(--ink); }
#cbAccept { background: var(--ink); color: #fff; }

/* ---------- Direct-sale entries (group DC) ---------- */
.redflags { list-style: none; padding: 0 !important; margin: 0 0 24px; counter-reset: rf; display: grid; gap: 10px; }
.redflags > li { counter-increment: rf; background: var(--sheet); border: 1px solid var(--rule); border-left: 6px solid var(--err); padding: 12px 16px 12px 58px; position: relative; margin: 0; }
.redflags > li::before { content: "RF-" counter(rf); position: absolute; left: 10px; top: 14px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--err); }
.redflags h3 { font-size: 17.5px; margin: 0 0 4px; }
.redflags p { margin: 0; color: var(--ink-2); }
.alts { display: grid; gap: 16px; margin: 0 0 24px; }
.alt-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; border: 1px solid var(--ink); background: var(--sheet); padding: 16px; }
.alt-card > * { min-width: 0; }
.alt-photo { background: #fff; border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; padding: 10px; align-self: start; }
.alt-photo img { max-height: 190px; width: auto; }
.alt-body h3 { font-size: 19px; margin: 4px 0 6px; }
.alt-body p { color: var(--ink-2); font-size: 16px; }
.alt-body .bb-table { margin: 4px 0 14px; }
.alt-body .bb-table th, .alt-body .bb-table td { padding: 6px 10px 6px 0; }
.alt-cta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.alt-cta .disclosure { margin: 0; font-size: 12.5px; }
.nobuy { padding: 14px 16px 16px; border-top: 1px solid var(--hair); }
.nobuy p { font-size: 14px; color: var(--ink-2); margin: 0 0 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 7px 5px; font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--sheet); border-bottom: 1px solid var(--ink); flex-direction: column; padding: 8px 16px 14px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 8px; font-size: 14px; border-bottom: 1px solid var(--hair); }
  .topbar-main { position: relative; }
  .hero-grid, .front, .brief { grid-template-columns: 1fr; }
  .entry-grid, .article-grid { grid-template-columns: 1fr; }
  .entry-aside, .toc { position: static; }
  /* product-forward on small screens: the buy box (price, seller, CTA) moves above the article; Related stays below */
  .entry-aside { display: contents; }
  .buybox { order: -1; }
  .buybox-photo { display: none; }
  .entry-aside .aside-block { order: 2; }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-item:nth-child(2) { border-right: 0; }
  .how-item:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .wrap, .wrap-narrow, .topbar-inner { padding-left: 16px; padding-right: 16px; }
  .strip-r { display: none; }
  .wordmark { font-size: 19px; }
  .hero { padding: 30px 0 40px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts span:nth-child(2) { border-right: 0; }
  .hero-facts span:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .section { padding: 44px 0; }
  .flag-meta { margin-left: 0; width: 100%; }
  .xv-body { grid-template-columns: 1fr; }
  .xv-stage { border-right: 0; border-bottom: 1px solid var(--rule); padding: 18px; }
  .plate { padding: 20px 14px 16px; }
  .plate-grid { grid-template-columns: 1fr; padding: 0 4px; }
  .plate-grid > div:nth-child(odd) { padding-right: 0; }
  .fit { grid-template-columns: 1fr; }
  .fit-col { border-right: 0; border-bottom: 1px solid var(--rule); }
  .fit-col:last-child { border-bottom: 0; }
  .how, .doc .how { grid-template-columns: 1fr; }
  .how-item { border-right: 0 !important; border-bottom: 1px solid var(--rule); }
  .how-item:last-child { border-bottom: 0; }
  .story { grid-template-columns: 100px 1fr; }
  .story img { width: 100px; }
  .story-title { font-size: 17px; }
  .story-dek { display: none; }
  .lead-story .story-title { font-size: 23px; }
  .brief { padding: 20px; }
  .nl-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; padding-top: 36px; }
  .doc-card dl { grid-template-columns: 1fr; gap: 2px; }
  .doc-card dd { margin-bottom: 8px; }
  #cookieBanner { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; }
  .cookie-banner-actions button { flex: 1; }
  .steps > li { padding-left: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .topbar, .site-footer, #cookieBanner, .entry-aside, .toc, .skip-link { display: none !important; }
  body { background: #fff; }
  .entry-grid, .article-grid { grid-template-columns: 1fr; }
}

/* Quoted terms and disclaimers (check_page.py exempts these from the claim-verb rule) */
q.term, q.disclaimer { quotes: "\201C" "\201D"; font-style: normal; }
q.term { font-family: var(--mono); font-size: .92em; background: var(--plate); padding: 0 4px; }
q.disclaimer { color: var(--ink-2); }
code { font-family: var(--mono); font-size: .9em; background: var(--plate); padding: 1px 4px; }

/* Direct-sale entries on small screens */
@media (max-width: 720px) {
  .alt-card { grid-template-columns: 1fr; }
  .alt-photo img { max-height: 210px; }
  .redflags > li { padding-left: 16px; padding-top: 34px; }
  .redflags > li::before { top: 10px; left: 16px; }
}
