/* ============================================================================
   SUPER FEELS COA — components
   Everything below is built from the variables in tokens.css. Mobile first, and
   here that is not a nicety: the entire premise of the site is someone holding
   a product in one hand and a phone in the other.
   ========================================================================== */

/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::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(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* The `hidden` attribute must win over component display rules. Without this,
   a `.doc__status { display: flex }` keeps showing after JS sets `hidden`,
   because the attribute's UA `display:none` has near-zero specificity. */
[hidden] { display: none !important; }

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: var(--lh-tight); letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
hr { border: 0; border-top: var(--bd); margin: var(--s-6) 0; }
table { border-collapse: collapse; }

main { flex: 1 0 auto; }

.sr {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: var(--s-3) var(--s-5); font-size: 13px;
}
.skip:focus { left: var(--s-2); top: var(--s-2); }

:focus-visible { outline: 2px solid var(--o); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); width: 100%; }
.wrap--narrow { max-width: 820px; }
.section { padding-block: var(--sec); }
.section--tight { padding-block: clamp(44px, 5vw, 72px); }

/* Background alternation, the way the main site separates bands. */
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.bg-ink   { background: var(--ink); color: #fff; }
.bg-sand  { background: var(--sand); }

/* ── Shared type ──────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--o-deep);
}
.bg-ink .eyebrow { color: var(--o-soft); }

.page-h {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-head);
}

.dek {
  color: var(--ink-2);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}
.bg-ink .dek { color: rgba(255, 255, 255, .72); }

/* The main site's asymmetric section head, with its 56px orange rule. */
.shead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-5) var(--s-7);
  align-items: end;
  margin-bottom: clamp(28px, 3.4vw, 52px);
}
.shead::after {
  content: '';
  grid-column: 1 / -1;
  height: 2px;
  background: var(--o);
  width: 56px;
  order: -1;
}
.shead__h { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: var(--ls-head); margin-top: var(--s-3); }
.shead__d { color: var(--ink-2); font-size: clamp(.98rem, 1.3vw, 1.08rem); margin-top: var(--s-3); max-width: 56ch; }
.bg-ink .shead__d { color: rgba(255, 255, 255, .72); }

.muted { color: var(--ink-3); }
.mono-meta {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Buttons: hard corners, inverting hover ───────────────────────────────── */
.btn {
  --bg: var(--o); --fg: #fff; --bd-c: var(--o);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 26px;
  border: 1px solid var(--bd-c);
  background: var(--bg); color: var(--fg);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: var(--fs-btn);
  font-weight: 600;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-base) var(--ease-ff), color var(--t-base) var(--ease-ff);
}
.btn--solid:hover { background: #fff; color: var(--o); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd-c: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { --bg: #fff; --fg: var(--ink); --bd-c: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--mute { --bg: var(--hair); --fg: var(--ink-2); --bd-c: var(--hair); }
.btn--mute:hover { background: transparent; }
.btn--danger { --bg: var(--fail); --fg: #fff; --bd-c: var(--fail); }
.btn--danger:hover { background: transparent; color: var(--fail); }
.btn--wide { width: 100%; }
.btn--lg { min-height: 56px; font-size: 13px; }
.btn--sm { min-height: 36px; padding: 0 var(--s-4); font-size: var(--fs-label); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn__spinner {
  width: 13px; height: 13px; border: 2px solid currentColor; border-top-color: transparent;
  border-radius: var(--radius-pill); animation: spin .7s linear infinite; display: none;
}
.btn.is-busy .btn__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.tlink {
  font-family: var(--mono);
  font-size: var(--fs-btn);
  font-weight: 600;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--o-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: color var(--t-base), border-color var(--t-base);
}
.tlink:hover { color: var(--ink); }
.bg-ink .tlink { color: var(--o-soft); }

/* ── Header ───────────────────────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 120;
  background: var(--paper);
  border-bottom: var(--bd);
}
.hdr__in {
  max-width: 1720px; margin: 0 auto;
  padding-inline: clamp(16px, 3vw, 34px);
  min-height: var(--hdr-h);
  display: flex; align-items: center; gap: var(--s-5);
}
/* The lockup is a near-square badge, not a horizontal wordmark, so it is sized
   by height to sit inside the 66px header rather than by width. */
.hdr__logo { display: flex; gap: var(--s-3); text-decoration: none; flex: 0 0 auto; align-items: center; }
.hdr__mark { height: 48px; width: auto; display: block; }
.hdr__label {
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--ink-3); border-left: var(--bd); padding-left: var(--s-3);
  align-self: center;
}
@media (max-width: 900px) { .hdr__mark { height: 40px; } }
.hdr__spacer { flex: 1 1 auto; }
.hdr__nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); flex-wrap: wrap; }
.hdr__link {
  display: flex; align-items: center; height: var(--hdr-h);
  text-decoration: none;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: var(--ls-label); text-transform: uppercase; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.hdr__link:hover { color: var(--o); }
.hdr__link.is-active { color: var(--o); border-color: var(--o); }

@media (max-width: 760px) {
  .hdr__in { flex-wrap: wrap; gap: var(--s-3); padding-block: var(--s-3); }
  .hdr__nav { gap: var(--s-4); width: 100%; border-top: var(--bd); padding-top: var(--s-2); }
  .hdr__link { height: auto; padding-block: 4px; }
  .hdr__label { display: none; }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.ft {
  background: var(--ink); color: #fff;
  padding: clamp(40px, 5vw, 60px) var(--pad) clamp(28px, 3vw, 40px);
  margin-top: auto;
}
.ft__in {
  max-width: var(--max); margin: 0 auto;
  display: grid; gap: var(--s-6);
  grid-template-columns: 1fr;
}
.ft__logo { display: inline-flex; text-decoration: none; margin-bottom: var(--s-4); }
.ft__logo img { height: 56px; width: auto; display: block; }
.ft__tag { color: rgba(255, 255, 255, .62); font-size: var(--fs-sm); max-width: 44ch; }
.ft__links { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); }
.ft__links a {
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .13em;
  text-transform: uppercase; color: rgba(255, 255, 255, .62); text-decoration: none;
}
.ft__links a:hover { color: var(--o-soft); }
.ft__legal {
  max-width: var(--max); margin: var(--s-6) auto 0; padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .1em;
  color: rgba(255, 255, 255, .4);
}
@media (min-width: 760px) {
  .ft__in { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .ft__links { justify-content: flex-end; }
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form { display: grid; gap: var(--s-4); }
.field { display: block; }
.field > label,
.field__label {
  display: block;
  font-family: var(--mono); font-size: var(--fs-label);
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: var(--bd);
  background: var(--paper);
  padding: 13px 14px;
  font: inherit; font-size: 16px; /* 16px stops iOS zooming the page on focus */
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color var(--t-fast);
}
.field textarea { min-height: 140px; resize: vertical; font-size: 15px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B7280' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 38px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--o); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--fail); background: var(--fail-wash); }

.field__error {
  display: none;
  margin-top: 6px;
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .06em;
  color: var(--fail);
}
.field.is-invalid .field__error { display: block; }
.field__hint { margin-top: 6px; font-size: var(--fs-xs); color: var(--ink-3); }

.form__row { display: grid; gap: var(--s-4); }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

/* ── Notices ──────────────────────────────────────────────────────────────── */
.notice {
  border-left: 3px solid var(--o);
  background: var(--o-wash);
  padding: var(--s-3) var(--s-4);
  font-size: var(--fs-xs);
  color: var(--ink-2);
}
.notice--error { border-color: var(--fail); background: var(--fail-wash); color: var(--fail); }
.notice--ok { border-color: var(--pass); background: var(--pass-wash); color: var(--olive); }
.notice strong {
  display: block; font-family: var(--mono); font-size: var(--fs-label);
  letter-spacing: var(--ls-label); text-transform: uppercase; margin-bottom: 4px;
}

/* ── Status: the one place colour carries meaning ─────────────────────────── */
/* Always paired with its own word, never colour alone. */
.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 700;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  padding: 5px 9px; border: 1px solid var(--ink-4); color: var(--ink-2);
  background: var(--paper-2);
  white-space: nowrap;
}
.status::before { content: ''; width: 7px; height: 7px; background: currentColor; flex: 0 0 auto; }
.status--ok   { border-color: var(--pass); color: var(--olive); background: var(--pass-wash); }
.status--bad  { border-color: var(--fail); color: var(--fail); background: var(--fail-wash); }
.status--wait { border-color: var(--ink-4); color: var(--ink-3); background: var(--wait-wash); }
.status--none { border-color: var(--hair); color: var(--ink-4); background: transparent; }
.status--lg { font-size: var(--fs-btn); padding: 9px var(--s-4); }
.status--lg::before { width: 9px; height: 9px; }

/* ── Lookup: the reason the site exists ───────────────────────────────────── */
/* One field, one button, above the fold, and nothing competing with it. */
.hero { position: relative; border-bottom: var(--bd); }
.hero__in {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(36px, 6vw, 76px) var(--pad) clamp(44px, 7vw, 84px);
  display: grid; gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (min-width: 940px) {
  .hero__in { grid-template-columns: 1fr minmax(430px, 500px); gap: clamp(40px, 5vw, 80px); }
}
.hero__copy { max-width: 46ch; }
.hero__h {
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: var(--ls-head);
  margin-top: var(--s-4);
}
.hero__h em { font-style: normal; color: var(--o); }
.hero__d { margin-top: var(--s-5); font-size: clamp(1rem, 1.5vw, 1.14rem); color: var(--ink-2); }

.hero__stats { display: flex; flex-wrap: wrap; gap: var(--s-6); margin-top: var(--s-7); }
.hero__stat { display: grid; gap: 4px; }
.hero__stat b { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: var(--ls-head); line-height: 1; }
.hero__stat span {
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--ls-label);
  text-transform: uppercase; color: var(--ink-3);
}

/* The age gate's treatment on the main site: a heavy orange frame, because
   this is the one thing on the page a visitor must not miss. */
.lookup {
  background: var(--paper);
  border: 4px solid var(--o);
  padding: clamp(22px, 3.4vw, 34px);
}
.lookup__h { font-size: 1.35rem; letter-spacing: var(--ls-head); }
.lookup__d { margin-top: 6px; margin-bottom: var(--s-5); font-size: var(--fs-xs); color: var(--ink-3); }

/* The input is mono, large and letterspaced because what goes in it is a code,
   not prose — and because a code typed into a proportional face is materially
   harder to check against a label. `text-transform` is display only; the value
   is normalised on the server regardless of what arrives. */
.lookup__field { display: grid; gap: var(--s-3); }
.lookup__input {
  width: 100%;
  border: var(--bd-ink);
  background: var(--paper);
  padding: 16px var(--s-4);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.lookup__input::placeholder { color: var(--ink-4); letter-spacing: .12em; font-weight: 400; }
.lookup__input:focus { outline: none; border-color: var(--o); box-shadow: var(--shadow-focus); }
@media (max-width: 520px) { .lookup__input { font-size: 18px; padding: 14px var(--s-3); } }

.lookup__hint {
  margin-top: var(--s-4); padding-top: var(--s-4); border-top: var(--bd);
  font-size: var(--fs-xs); color: var(--ink-3);
}

/* ── How it works ─────────────────────────────────────────────────────────── */
.steps { display: grid; gap: var(--s-5); counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }
.step { border-top: 2px solid var(--o); padding-top: var(--s-4); counter-increment: step; }
.step__n {
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 700;
  letter-spacing: var(--ls-label); color: var(--o-deep);
}
.step__n::before { content: '0' counter(step) ' — '; }
.step__h { font-size: 1.1rem; margin-top: var(--s-2); letter-spacing: var(--ls-head); }
.step__d { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--fs-sm); }

/* ── Panel list (what gets tested) ────────────────────────────────────────── */
.panels { display: grid; gap: 0; border-top: var(--bd-ink); }
.panels__row {
  display: grid; grid-template-columns: 1fr; gap: 4px;
  padding: var(--s-4) 0; border-bottom: var(--bd);
}
@media (min-width: 700px) {
  .panels__row { grid-template-columns: 220px 1fr; gap: var(--s-5); align-items: baseline; }
}
.panels__n {
  font-family: var(--mono); font-size: var(--fs-btn); font-weight: 600;
  letter-spacing: var(--ls-label); text-transform: uppercase;
}
.panels__d { color: var(--ink-2); font-size: var(--fs-sm); }

/* ── Product strip ────────────────────────────────────────────────────────── */
.prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-4); }
.prod { border: var(--bd); background: var(--paper); display: flex; flex-direction: column; }
.prod__img {
  aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden;
  display: grid; place-items: center;
}
/* `contain`: these are product renders, and a cropped slice of a jar is not a
   recognisable product. */
.prod__img img { width: 100%; height: 100%; object-fit: contain; padding: var(--s-3); }
.prod__fallback {
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--ls-label);
  color: var(--ink-4); text-transform: uppercase;
}
.prod__b { padding: var(--s-3) var(--s-4) var(--s-4); display: grid; gap: 4px; }
.prod__n { font-size: .98rem; font-weight: 700; line-height: 1.25; }
.prod__m {
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ── The report ───────────────────────────────────────────────────────────── */
.rpt__top { border-bottom: var(--bd); background: var(--paper); padding-block: var(--s-6) var(--s-5); }
.rpt__crumb { margin-bottom: var(--s-4); }
.rpt__head { display: grid; gap: var(--s-4); align-items: start; }
@media (min-width: 820px) {
  .rpt__head { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6); align-items: center; }
}
.rpt__prod { font-size: clamp(1.5rem, 3.4vw, 2.3rem); letter-spacing: var(--ls-head); }
/* The batch code is the identifier the reader is checking against a label, so
   it is set in mono at a size that can be compared at arm's length. */
.rpt__code {
  font-family: var(--mono); font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 600;
  letter-spacing: .1em; color: var(--o-deep); margin-top: var(--s-3);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: baseline;
}
.rpt__code span { color: var(--ink-3); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; }

/* Meta grid: product size, report date. */
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: var(--bd); }
.meta__i { padding: var(--s-4) var(--s-4) var(--s-4) 0; border-bottom: var(--bd); }
.meta__l {
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--ls-label);
  text-transform: uppercase; color: var(--ink-3);
}
.meta__v { margin-top: 5px; font-size: var(--fs-sm); font-weight: 700; word-break: break-word; }
.meta__v a { color: var(--o-deep); text-decoration: none; border-bottom: 1px solid currentColor; }

/* Download bar. Sticky at the bottom on a phone, like the main site's buy bar:
   the download is the second thing every visitor wants and it must never be a
   scroll away. */
.dl {
  display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center;
  justify-content: space-between;
  border: var(--bd-ink); background: var(--paper-2);
  padding: var(--s-4);
}
.dl__t { display: grid; gap: 3px; min-width: 0; }
.dl__h { font-family: var(--mono); font-size: var(--fs-btn); font-weight: 600; letter-spacing: var(--ls-label); text-transform: uppercase; }
.dl__m { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; }
.dl__a { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* ── Embedded lab document ────────────────────────────────────────────────── */
.doc { border: var(--bd-ink); background: var(--paper); }
.doc .dl { border: 0; border-bottom: var(--bd); }

/* The PDF.js render surface. A neutral trough so the white PDF pages sit on
   something, and it scrolls internally so a long report does not run the whole
   page to thousands of pixels. */
.doc__view { background: var(--paper-2); max-height: min(85vh, 960px); overflow-y: auto; }
.doc__pages { display: grid; gap: var(--s-3); padding: var(--s-4); justify-items: center; }
.doc__page {
  display: block;
  max-width: 100%;
  background: #fff;
  border: var(--bd);
  box-shadow: var(--shadow-menu);
}

.doc__status { display: flex; align-items: center; justify-content: center; gap: var(--s-3); padding: var(--s-8) var(--s-5); color: var(--ink-3); font-size: var(--fs-sm); text-align: center; flex-wrap: wrap; }
.doc__spin {
  width: 15px; height: 15px; border: 2px solid var(--hair); border-top-color: var(--o);
  border-radius: var(--radius-pill); animation: spin .7s linear infinite; flex: 0 0 auto;
}
.doc__fail-t, .doc__status p { width: 100%; margin-bottom: var(--s-3); color: var(--ink-2); }
.doc__fallback { padding: var(--s-7) var(--s-5); text-align: center; }
.doc__fallback p { color: var(--ink-2); font-size: var(--fs-sm); margin-bottom: var(--s-4); }

/* ── Report sections ──────────────────────────────────────────────────────── */
.rsec { margin-top: var(--s-7); }
.rsec__h {
  display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center;
  justify-content: space-between;
  padding-bottom: var(--s-3); border-bottom: 2px solid var(--o);
}
.rsec__t { font-size: 1.15rem; letter-spacing: var(--ls-head); }
.rsec__d { margin-top: var(--s-3); color: var(--ink-3); font-size: var(--fs-xs); max-width: 62ch; }

/* Wrapped so a wide table scrolls inside its own box instead of pushing the
   page sideways on a phone. */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Other batches of the same product. */
.sibs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.sib {
  display: inline-flex; align-items: center; gap: var(--s-2);
  border: var(--bd); background: var(--paper); padding: 8px var(--s-3);
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-2);
}
.sib:hover { border-color: var(--ink); }

/* ── Not found ────────────────────────────────────────────────────────────── */
/* This page is a real destination, not an error: a customer standing in a shop
   whose code returned nothing needs the next step, not an apology. */
.nf { padding-block: clamp(48px, 8vw, 96px); }
.nf__in { max-width: 640px; }
.nf__code {
  font-family: var(--mono); font-size: clamp(1.1rem, 2.6vw, 1.5rem); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  border: var(--bd-ink); background: var(--paper-2); padding: var(--s-3) var(--s-4);
  display: inline-block; margin-top: var(--s-4); word-break: break-all;
}
.nf__h { font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: var(--ls-head); margin-top: var(--s-5); }
.nf__list { margin-top: var(--s-5); display: grid; gap: var(--s-4); }
.nf__i { border-left: 3px solid var(--o); padding-left: var(--s-4); }
.nf__i b { display: block; font-size: var(--fs-sm); }
.nf__i span { color: var(--ink-2); font-size: var(--fs-sm); }
.nf__a { margin-top: var(--s-6); display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* ── Prose (content pages) ────────────────────────────────────────────────── */
.prose { max-width: 68ch; }
.prose h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  letter-spacing: var(--ls-head);
  margin-top: var(--s-7); margin-bottom: var(--s-3);
  padding-top: var(--s-4); border-top: 2px solid var(--o);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin-top: var(--s-5); margin-bottom: var(--s-2); }
.prose p { margin-bottom: var(--s-4); color: var(--ink-2); }
.prose ul { list-style: none; margin-bottom: var(--s-4); }
.prose ul li { position: relative; padding-left: var(--s-5); margin-bottom: var(--s-2); color: var(--ink-2); }
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 8px; height: 2px; background: var(--o);
}
.prose ol { list-style: decimal; padding-left: var(--s-5); margin-bottom: var(--s-4); color: var(--ink-2); }
.prose ol li { margin-bottom: var(--s-2); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose em { font-style: italic; }
.prose a { color: var(--o-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose code {
  font-family: var(--mono); font-size: .9em; background: var(--paper-2);
  border: var(--bd); padding: 1px 5px;
}

/* ── Message page ─────────────────────────────────────────────────────────── */
.msg { display: grid; place-items: center; padding-block: clamp(60px, 10vw, 140px); text-align: center; }
.msg__in { max-width: 48ch; }
.msg__h { font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: var(--ls-head); margin-top: var(--s-4); }
.msg__d { margin-top: var(--s-4); color: var(--ink-2); }
.msg__a { margin-top: var(--s-6); }

/* ── Toast ────────────────────────────────────────────────────────────────── */
.toast-wrap {
  position: fixed; left: 50%; bottom: var(--s-6); transform: translateX(-50%);
  z-index: 200; display: grid; gap: var(--s-2); width: min(520px, calc(100vw - 32px));
}
.toast {
  background: var(--ink); color: #fff;
  border-left: 3px solid var(--o);
  padding: var(--s-3) var(--s-4);
  font-size: var(--fs-xs);
  box-shadow: var(--shadow-menu);
  animation: toast-in var(--t-base) var(--ease) both;
}
.toast--error { border-color: var(--fail); }
.toast--ok { border-color: var(--lime); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Print ────────────────────────────────────────────────────────────────── */
/* Someone will print a report and file it. The PDF is the authoritative
   document, but a printed page that loses its verdict badge to a background
   colour is worse than useless, so status becomes a bordered label and every
   collapsed panel opens. */
@media print {
  .hdr, .ft, .dl, .doc__view, .sibs, .toast-wrap, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .pnl__b { display: block !important; }
  .status { background: transparent !important; border: 1px solid #000 !important; color: #000 !important; }
  .rsec, .pnl { break-inside: avoid; }
  .rtable { min-width: 0; }
  a[href^='/']::after { content: ' (superfeels.com' attr(href) ')'; font-size: 8pt; color: #555; }
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
