/* Workouti tool pages. Self-sufficient: a tool page loads this stylesheet and
   nothing else. Same tokens, same rhythm and same footer as index.html and
   legal.css; fonts are self-hosted because this site makes zero external
   requests and says so in its own privacy policy. */

@font-face { font-family: "Archivo"; src: url("fonts/Archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #070907;
  --surface: #101510;
  --surface-2: #141a14;
  --card: #101510;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  /* form-control boundaries only: 3.17:1 against --card, clearing the WCAG
     1.4.11 3:1 floor. Decorative card hairlines keep the quiet --line look. */
  --ctrl-line: rgba(255, 255, 255, 0.35);
  --rest-ctrl: rgba(255, 138, 117, 0.60);
  --volt: #00ff88;
  --volt-deep: #00c96b;
  --volt-dim: rgba(0, 255, 136, 0.12);
  --volt-line: rgba(0, 255, 136, 0.35);
  --rest: #ff8a75;
  /* alpha derivatives of --rest, matching how --volt-dim / --volt-line derive
     from --volt. No new hue is introduced. */
  --rest-dim: rgba(255, 138, 117, 0.10);
  --rest-line: rgba(255, 138, 117, 0.35);
  --text: #eef2ee;
  --muted: #939e93;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Archivo', -apple-system, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--volt); color: #000; }

.hidden { display: none !important; }

/* One spoken line for a screen reader when an answer lands. Off-screen rather
   than display:none, so the announcement is not written into a hidden subtree.
   One class name for all six tool pages. */
.tool-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible, label:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 2px;
}

/* ---------- LAYOUT ---------- */
.wrap {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 60px) clamp(18px, 5vw, 32px) clamp(48px, 8vw, 80px);
}

/* ---------- HEAD ---------- */
/* the old .tool-home back-link was retired when the site header (nav.css)
   arrived 2026-08-23; the head now opens straight with the h1 */
.tool-head { margin-bottom: clamp(22px, 4vw, 34px); padding-top: clamp(14px, 3vw, 24px); }

.tool-head h1 {
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 10px;
}

.tool-promise {
  color: var(--muted);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  max-width: 54ch;
}

/* ---------- BASE TYPE ---------- */
h2 {
  font-size: clamp(1.1rem, 3.2vw, 1.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: clamp(12px, 2.6vw, 18px);
}

h3 {
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  line-height: 1.2;
}

p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }
p.mut { color: var(--muted); }

ul, ol { margin: 0 0 14px 20px; }
li { margin-bottom: 8px; }

a { color: var(--volt); }

strong { font-weight: 700; }

/* ---------- CARDS ---------- */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(18px, 4.5vw, 30px);
  margin-bottom: clamp(16px, 3vw, 24px);
}

.tool-result {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--volt);
  border-radius: 4px;
  padding: clamp(18px, 4.5vw, 30px);
  margin-bottom: clamp(16px, 3vw, 24px);
}

.card-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: clamp(14px, 3vw, 20px);
}

.card-head h2 { margin-bottom: 0; }

.card-meta {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: auto;
}

/* ---------- FORM ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* direct child only: a .check-row label nested inside a field keeps sentence
   case and the sans face */
.field > label,
.field .field-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field > label .opt { color: var(--muted); text-transform: none; letter-spacing: 0.04em; }

.field input[type="number"],
.field input[type="text"] {
  width: 100%;
  appearance: textfield;
  background: var(--card);
  border: 1px solid var(--ctrl-line);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 16px;
  transition: border-color 0.18s ease;
}

.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.field input:hover { border-color: var(--line-strong); }
.field input:focus { outline: none; border-color: var(--volt-line); }
.field input[aria-invalid="true"] { border-color: var(--rest-ctrl); }

.select-wrap { position: relative; }

.select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--volt);
  border-bottom: 1.5px solid var(--volt);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field select {
  width: 100%;
  appearance: none;
  background: var(--card);
  border: 1px solid var(--ctrl-line);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 40px 14px 16px;
  cursor: pointer;
  transition: border-color 0.18s ease;
}

.field select:hover { border-color: var(--line-strong); }
.field select:focus { outline: none; border-color: var(--volt-line); }
.field select option { background: #141a14; color: var(--text); }

/* number plus unit, exactly as the generator's body-weight field */
.weight-wrap { display: flex; gap: 8px; }
.weight-wrap input { flex: 1; min-width: 0; }

.weight-wrap select {
  width: 84px;
  flex-shrink: 0;
  appearance: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--volt);
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 14px 12px;
  cursor: pointer;
  text-align: center;
}

.weight-wrap select:focus { outline: none; border-color: var(--volt-line); }

/* The three :focus rules above drop the outline for a pointer, which also takes
   the keyboard ring with them: they outrank the base :focus-visible rule on
   specificity. Restating the ring here at matching specificity gives it back,
   and a border tint alone measures 2.65:1, under the 3:1 floor in WCAG 1.4.11. */
.field input:focus-visible,
.field select:focus-visible,
.weight-wrap select:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 2px;
}

.field-hint {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 7px;
}

.field-error {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--rest);
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin-top: 7px;
}

/* checkbox rows: the label is the hit area, the box is the state */
.check-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 13px 14px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.check-row:hover { border-color: var(--line-strong); }

.check-row input[type="checkbox"],
.check-row input[type="radio"] {
  appearance: none;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  background: transparent;
  border: 1px solid var(--ctrl-line);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.check-row input[type="radio"] { border-radius: 50%; }

.check-row input:checked {
  background: var(--volt);
  border-color: var(--volt);
}

.check-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border-right: 2px solid #041008;
  border-bottom: 2px solid #041008;
  transform: rotate(45deg);
}

.check-row:has(input:checked) { border-color: var(--volt-line); background: var(--volt-dim); }

.check-text { font-size: 0.9rem; line-height: 1.4; }
.check-sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

/* ---------- BUTTONS ---------- */
.btn-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: clamp(18px, 3.5vw, 26px);
}

.action-btn, .copy-link {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 15px 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.action-btn:hover, .copy-link:hover { border-color: var(--volt-line); color: var(--volt); }

.action-btn.primary {
  background: var(--volt);
  color: #041008;
  border-color: var(--volt);
  font-weight: 900;
}

.action-btn.primary:hover { background: var(--volt-deep); border-color: var(--volt-deep); color: #041008; }

/* the clipboard fallback needs a real focusable node off the visible page */
.copy-sink { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* ---------- RESULT FURNITURE ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: clamp(16px, 3vw, 24px);
  background: var(--card);
}

.stat-cell { padding: clamp(14px, 3vw, 20px); border-right: 1px solid var(--line); min-width: 0; }
.stat-cell:nth-child(2n) { border-right: none; }
.stat-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

/* A grid column has a min-width of auto by default, so a long value pushed the
   strip wider than its own overflow:hidden box and the right-hand figure was
   clipped with no way to scroll to it. Under 360px the strip goes to one column. */
.stat-value, .stat-label { overflow-wrap: anywhere; }

@media (max-width: 359px) {
  .stat-strip { grid-template-columns: minmax(0, 1fr); }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .stat-cell:last-child { border-bottom: none; }
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-value {
  font-weight: 900;
  font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  margin-top: 4px;
  line-height: 1.1;
}

.stat-value .unit {
  font-family: var(--mono);
  font-size: 0.62em;
  font-weight: 400;
  color: var(--volt);
}

/* verdict rows: a named thing on the left, its state on the right */
.verdict-list { display: grid; gap: 8px; margin-bottom: clamp(14px, 3vw, 20px); }

.verdict-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
  padding: 12px 14px;
}

.verdict-name { font-size: 0.92rem; font-weight: 700; flex: 1 1 auto; min-width: 0; }

.verdict-note {
  flex: 1 0 100%;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

.verdict-pass, .verdict-tight, .verdict-fail {
  font-family: var(--mono);
  /* 0.74rem: these chips carry load-bearing numbers (the band-assist kg on
     pull-up), so they must stay legible at 390px, not shrink below the footer. */
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 5px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

.verdict-pass { color: var(--volt); border-color: var(--volt-line); background: var(--volt-dim); }
/* dashed edge so the borderline state reads without relying on colour */
.verdict-tight { color: var(--muted); border-style: dashed; background: transparent; }
.verdict-fail { color: var(--rest); border-color: var(--rest-line); background: var(--rest-dim); }

.note-list { display: grid; gap: 10px; }

.note-row {
  border: 1px solid var(--line);
  border-left: 2px solid var(--volt);
  border-radius: 3px;
  background: var(--card);
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.health-note {
  border: 1px solid var(--line);
  border-left: 2px solid var(--rest);
  border-radius: 3px;
  background: var(--surface);
  padding: clamp(13px, 3vw, 16px) clamp(14px, 3vw, 18px);
  margin: clamp(16px, 3vw, 22px) 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.health-note a { color: var(--text); }

.disclaimer {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
  line-height: 1.7;
  letter-spacing: 0.03em;
  margin-top: clamp(18px, 3.5vw, 26px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.disclaimer a { color: var(--muted); }

/* ---------- WIDE CONTENT ---------- */
/* Anything wider than a phone lives inside one of these two wrappers, and every
   narrow-screen rule below is scoped to them. A bare table at 390px has run a
   page off-screen on this portfolio before. */
.grid-wrap, .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: clamp(14px, 3vw, 20px);
}

.table-wrap table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.table-wrap th, .table-wrap td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table-wrap th {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
}

.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* opt-in: .table-wrap.stack turns rows into cards on a phone and restores the
   table at the breakpoint. Scoped to .table-wrap, never to a bare table. */
.table-wrap.stack table { min-width: 0; }
.table-wrap.stack thead { position: absolute; left: -9999px; }
.table-wrap.stack tr {
  display: block;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.table-wrap.stack td { display: flex; gap: 12px; border-bottom: none; padding: 4px 0; }
.table-wrap.stack td::before {
  content: attr(data-label);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 9ch;
  flex-shrink: 0;
}

.grid-wrap .cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  min-width: 280px;
}

.cover-cell {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
  padding: 10px 12px;
}

.cover-name {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cover-state { font-weight: 900; font-size: 0.95rem; margin-top: 2px; }
.cover-cell.on { border-color: var(--volt-line); }
.cover-cell.on .cover-state { color: var(--volt); }
.cover-cell.part .cover-state { color: var(--text); }
.cover-cell.off .cover-state { color: var(--rest); }

/* ---------- NEXT STEP ---------- */
/* Sits under the answer, never above or between the inputs and the answer.
   Nothing in here reaches a calculation. */
.next-step-title { margin-top: clamp(22px, 4vw, 32px); }

.next-step {
  border-top: 1px solid var(--line);
  padding-top: clamp(14px, 3vw, 20px);
  margin-bottom: clamp(16px, 3vw, 24px);
}

.next-step-free {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 12px;
}

.next-step-free a { color: var(--volt); }

.fuel-link {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  row-gap: 4px;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--volt);
  border-radius: 3px;
  background: var(--card);
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.45;
  transition: border-color 0.18s ease;
}

.fuel-link:hover { border-color: var(--volt-line); }
.fuel-link:hover .fuel-link-cta { text-decoration: underline; }

.fuel-link-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--volt);
  min-width: 86px;
  flex-shrink: 0;
}

.fuel-link-body { flex: 1 0 100%; }
.fuel-link-cta { color: var(--volt); white-space: nowrap; }

/* A restriction the reader needs before the click, added to a rendered anchor
   as a node because renderNextStep escapes its body text. */
.geo-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 2px 6px;
  margin-right: 8px;
}

/* ---------- METHOD / SOURCES / FAQ ---------- */
.method, .sources, .faq { margin-top: clamp(26px, 5vw, 40px); }

.method-body p, .sources p { color: var(--muted); font-size: 0.92rem; }
.method-body strong { color: var(--text); }

.method-step {
  border-left: 2px solid var(--volt);
  padding-left: clamp(14px, 3vw, 18px);
  margin-bottom: clamp(14px, 3vw, 20px);
}

.method-step-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--volt);
  letter-spacing: 0.18em;
  margin-bottom: 6px;
}

.method-step p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

.sources ol { list-style: none; margin-left: 0; }

.sources li {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
}

.sources li::before {
  content: counter(list-item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--volt);
}

.sources a { color: var(--text); }
.sources .checked {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
  margin-bottom: 10px;
}

.faq details[open] { border-color: var(--volt-line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  -webkit-tap-highlight-color: transparent;
}

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

.faq summary::after {
  content: '+';
  font-family: var(--mono);
  color: var(--volt);
  font-size: 1rem;
  flex-shrink: 0;
}

.faq details[open] summary::after { content: '\2212'; }

.faq .faq-a {
  padding: 0 18px 16px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: #161c16;
  border: 1px solid var(--volt-line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  padding: 13px 20px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
  max-width: min(420px, calc(100vw - 36px));
  text-align: center;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { border-color: var(--rest-line); }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: clamp(24px, 4vw, 36px) clamp(18px, 4vw, 32px);
  text-align: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

footer .volt { color: var(--volt); }
footer p { margin: 0; }
.foot-links { margin-top: 10px; line-height: 2; }
.foot-links a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.foot-links a:hover { color: var(--volt); border-color: var(--volt-line); }

/* ---------- ONE BREAKPOINT UP ---------- */
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .form-grid .field.wide { grid-column: 1 / -1; }
  .check-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .btn-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .stat-strip { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .stat-cell:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat-cell:nth-child(-n+2) { border-bottom: none; }
  .stat-cell:last-child { border-right: none; }
  .fuel-link { flex-wrap: nowrap; }
  .fuel-link-body { flex: 1 1 auto; }
  .table-wrap.stack thead { position: static; left: auto; }
  .table-wrap.stack tr { display: table-row; border: none; background: none; padding: 0; margin: 0; }
  .table-wrap.stack td { display: table-cell; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .table-wrap.stack td::before { content: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

/* ---------- PRINT ---------- */
@media print {
  body { background: #fff; color: #111; }
  .toast, .btn-row, footer, .next-step, .tool-home { display: none !important; }
  .tool-card, .tool-result, .note-row, .verdict-row, .cover-cell, .health-note, .faq details {
    background: #fff !important;
    border-color: #ccc !important;
  }
  .stat-value, .verdict-name, h1, h2, h3 { color: #111 !important; }
  .stat-label, .method-step p, .sources li, .disclaimer, .tool-promise { color: #555 !important; }
  .method-step-num, .stat-value .unit, .sources li::before { color: #0a7d4d !important; }
}
