/* Hearing Fit Lab — a light, large-type clinical workbench.
   Deliberately independent of the studio sheet: the task is reading,
   comparing and deciding, often on a phone, often with a spouse nearby. */

:root {
  --paper: #f7f2e7;
  --paper-2: #fffaf0;
  --paper-3: #f1ebdd;
  --ink: #132e33;
  --ink-soft: #40595b;
  --muted: #556865;
  --line: #d9cfbf;
  --line-strong: #b9aa93;
  --teal: #0b6b62;
  --teal-dark: #084d47;
  --teal-soft: #e7f1ea;
  --mint: #cfe8dc;
  --coral: #b9472b;
  --coral-dark: #96361f;
  --coral-soft: #fff0ea;
  --amber: #c58a2e;
  --amber-soft: #f7e9cc;
  --amber-ink: #7a4d12;
  --rose-soft: #fbe3dc;
  --rose-ink: #8a2f1d;
  --r: 10px;
  --r-lg: 20px;
  --shadow: 0 18px 40px -30px rgba(19, 46, 51, 0.45);
  --shadow-soft: 0 8px 24px -22px rgba(19, 46, 51, 0.4);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
a { color: var(--teal); }
::selection { background: var(--coral); color: #fff8f2; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.sr-only {
  position: absolute;
  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: 100;
  background: var(--coral);
  color: #fff8f2;
  padding: 12px 16px;
  font-size: 15px;
}
.skip:focus { left: 16px; top: 16px; }

.label {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: var(--coral);
  color: #fff8f2;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn:hover { background: var(--coral-dark); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--coral); color: #fff8f2; }
.btn.primary:hover { background: var(--coral-dark); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn.ghost:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- top bar ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.top-in .social { margin-right: auto; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
}
.brand b {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand small {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.back {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.back:hover { color: var(--teal); }

/* ---------- intro ---------- */

.intro { padding: clamp(30px, 5vw, 54px) 0 18px; }
.intro h1 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2.7rem, 5.4vw, 4.7rem);
  font-weight: 800;
  font-stretch: 105%;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.intro h1 span { color: var(--teal); }
.lede {
  max-width: 64ch;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.6;
}
.intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.intro-meta span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* ---------- safety ---------- */

.safety-wrap { padding: 12px 0 30px; }
.safety-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
}
.safety-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.safety-top h2 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 2.9vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.safety-top p {
  max-width: 68ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}
.safety-icon {
  width: 72px;
  height: 72px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
}
.safety-icon svg { width: 38px; height: 38px; }

.flags { border: 0; margin: 20px 0 0; padding: 0; }
.flag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.flag {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}
.flag:hover { border-color: var(--line-strong); }
.flag:has(input:checked) {
  border-color: var(--coral);
  background: var(--coral-soft);
}
.flag input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--coral);
  flex: none;
}
.safety-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.referral {
  background: var(--coral-soft);
  border: 1px solid #e7b6a3;
  border-left: 6px solid var(--coral);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-soft);
}
.referral h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.referral p, .referral li {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}
.referral ul { padding-left: 20px; }
.referral-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.safety-passed {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid #b7d7c7;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 600;
}
.safety-passed .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------- lab layout ---------- */

.lab { padding: 12px 0 clamp(40px, 7vw, 72px); }
.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(340px, 0.86fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
}
.lab-controls { display: grid; gap: 18px; }

.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.4vw, 24px);
  box-shadow: var(--shadow-soft);
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.panel-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.panel-head p {
  max-width: 56ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- mix bar ---------- */

.mix-wrap { margin: 18px 0 16px; }
.mix-bar {
  display: flex;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}
.mix-seg { height: 100%; }
.mix-seg.quiet { background: var(--teal); }
.mix-seg.tv { background: #4f9b8a; }
.mix-seg.one { background: #8cc5b0; }
.mix-seg.restaurant { background: var(--coral); }
.mix-seg.phone { background: var(--amber); }
.mix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
}
.mix-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
}
.mix-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.mix-dot.quiet { background: var(--teal); }
.mix-dot.tv { background: #4f9b8a; }
.mix-dot.one { background: #8cc5b0; }
.mix-dot.restaurant { background: var(--coral); }
.mix-dot.phone { background: var(--amber); }
.mix-summary {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ---------- scenes ---------- */

.scene-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.scene {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 154px;
  padding: 13px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.scene:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}
.scene.level-2 { background: var(--paper-3); }
.scene.level-3 { background: var(--teal-soft); border-color: #a9cec0; }
.scene-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--mint);
  color: var(--teal-dark);
}
.scene-icon svg { width: 21px; height: 21px; }
.scene-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
.scene-state {
  color: var(--ink-soft);
  font-size: 13.5px;
}
.scene-levels {
  display: flex;
  gap: 3px;
  margin-top: auto;
  width: 100%;
}
.scene-levels i {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: var(--line);
}
.scene-levels i.on { background: var(--teal); }
.scene-tap {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

/* ---------- controls ---------- */

.control-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.control-label {
  min-width: 96px;
  padding-top: 9px;
  font-size: 14.5px;
  font-weight: 700;
}
.segmented {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  flex: 1;
}
.seg {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.seg:hover { border-color: var(--teal); }
.seg.is-on {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.budget-row .seg { font-variant-numeric: tabular-nums; }

.more-limits {
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.more-limits summary {
  padding: 14px 0 8px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.more-limits[open] { padding-bottom: 6px; }

.method-panel {
  padding: 0;
  overflow: hidden;
}
.method-panel summary {
  padding: 17px 20px;
  color: var(--teal);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}
.method-body { padding: 0 20px 18px; }
.method-body p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.55;
}
.market-line { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px !important; }
.market-line b { color: var(--ink); }

/* ---------- fit board ---------- */

.lab-board {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(16px, 2.2vw, 22px);
  box-shadow: var(--shadow);
}
.board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.board-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 5px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.change-note {
  margin: 13px 0 0;
  padding: 10px 12px;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.fit {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.fit.first {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}
.fit-head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}
.fit-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.fit-name h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.fit-name h3 span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
}
.fit-sub {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 13.5px;
}
.fit-sub b { color: var(--ink); font-size: 14px; }
.rank-change {
  display: inline-block;
  margin-left: 5px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rank-change.up { color: var(--teal); }
.rank-change.down { color: var(--amber-ink); }
.rank-change.new { color: var(--coral-dark); }
.fit-badge {
  padding: 4px 7px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.fit-badge.strong { background: var(--mint); color: var(--teal-dark); }
.fit-badge.good { background: var(--amber-soft); color: var(--amber-ink); }
.fit-badge.possible { background: var(--rose-soft); color: var(--rose-ink); }

.fit-meter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.fit-meter {
  height: 9px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}
.fit-score {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  white-space: nowrap;
}
.fit-meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.fit-meter .strong { background: var(--teal); }
.fit-meter .good { background: var(--amber); }
.fit-meter .possible { background: var(--coral); }

.fit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.fit-tags span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.3;
}
.fit-why {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}
.fit-details {
  display: grid;
  gap: 7px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.fit-detail .label {
  margin-bottom: 2px;
  font-size: 11px;
}
.fit-detail p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.45;
}
.fit-reason {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
}
.fit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}
.fit-actions .btn {
  min-height: 42px;
  padding: 10px 13px;
  font-size: 13.5px;
}
.fit-actions .compare-btn {
  font-size: 13px;
}


.ruled-out {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.ruled-out summary {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.ruled-out ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.ruled-out li {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.5;
}
.ruled-out b { color: var(--ink); }

.board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.board-actions .btn {
  min-height: 42px;
  padding: 10px 13px;
  font-size: 13.5px;
}
.board-market {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.board-market a { color: var(--teal); text-underline-offset: 3px; }

.empty-board {
  margin-top: 12px;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--paper);
}
.empty-board h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.empty-board p, .empty-board li {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
}
.empty-board ul { padding-left: 18px; }

/* ---------- mobile ticker ---------- */

.fit-ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  box-shadow: 0 -8px 30px -20px rgba(0, 0, 0, 0.7);
}
.ticker-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
}
.fit-ticker b { flex: 1; min-width: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ticker-meter {
  width: 46px;
  height: 6px;
  margin-left: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  flex: none;
}
.ticker-meter i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--mint);
}
.ticker-link {
  margin-left: auto;
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 1101px) {
  .fit-ticker { display: none; }
}
@media (max-width: 1100px) {
  body.lab-open { padding-bottom: 4.8rem; }
}

/* ---------- compare ---------- */

.compare-section,
.how-section {
  padding: clamp(36px, 7vw, 64px) 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.section-head p {
  max-width: 62ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}
.compare-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.compare-picker label {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}
.compare-picker select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
}
.compare-summary {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.5;
}
.compare-table-wrap {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.compare-table th,
.compare-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare-table thead th {
  background: var(--paper-3);
  color: var(--ink);
  font-size: 13.5px;
}
.compare-table thead th:first-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare-table tbody th {
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table td { width: 33%; }
.compare-table th:first-child { width: 34%; }
.cmp-device {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.cmp-device small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}
.cmp-value {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}
.cmp-bar {
  display: block;
  height: 7px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}
.cmp-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--teal);
}
.compare-table td.better { background: #eef7f1; }
.better-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cmp-note {
  display: block;
  margin-top: 4px;
  color: var(--coral-dark);
  font-size: 11.5px;
  font-weight: 600;
}

/* ---------- how ---------- */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.how-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper-2);
}
.how-card h3 {
  margin: 4px 0 7px;
  font-size: 18px;
  line-height: 1.15;
}
.how-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.55;
}
.market-note {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #e4c88e;
  border-radius: 12px;
  background: var(--amber-soft);
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.55;
}
.market-note b { color: var(--ink); }

.fineprint {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper-2);
  overflow: hidden;
}
.fineprint summary {
  padding: 16px 18px;
  color: var(--teal);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}
.fineprint-body { padding: 0 18px 18px; }
.fineprint-body p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}
.fineprint-body a { color: var(--teal); text-underline-offset: 3px; }

/* ---------- footer ---------- */

.foot {
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
}
.foot-in {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.foot p {
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.foot a { color: var(--teal); font-size: 12.5px; }
.affiliate-disclaimer {
  max-width: 82ch;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .lab-grid { grid-template-columns: 1fr; }
  .scene-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lab-board { order: 2; }
}

@media (max-width: 760px) {
  .intro h1 { max-width: 20ch; }
  .flag-grid { grid-template-columns: 1fr; }
  .safety-top { gap: 16px; }
  .safety-icon { width: 56px; height: 56px; }
  .safety-icon svg { width: 30px; height: 30px; }
  .scene-grid { grid-template-columns: 1fr 1fr; }
  .scene { min-height: 142px; }
  .scene:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .control-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .control-label { min-width: 0; padding-top: 0; }
  .segmented { justify-content: flex-start; }
  .section-head { display: block; }
  .section-head .btn { margin-top: 12px; }
  .compare-picker { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .fit-head { grid-template-columns: 28px minmax(0, 1fr); }
  .fit-badge { grid-column: 2; justify-self: start; }
  .compare-table th,
  .compare-table td { padding: 8px 7px; }
  .compare-table th:first-child { width: 30%; }
  .compare-table td { width: 35%; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .top-in { min-height: 62px; }
  .brand b { font-size: 17px; }
  .intro { padding-top: 26px; }
  .intro h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .safety-actions { flex-direction: column; }
  .safety-actions .btn { width: 100%; }
  .scene-grid { grid-template-columns: 1fr 1fr; }
  .scene { min-height: 136px; padding: 11px 9px; }
  .scene-title { font-size: 14px; }
  .fit-name h3 { font-size: 18px; }
  .fit-actions .btn { flex: 1 1 auto; }
  .fit-ticker { font-size: 12px; }
  .compare-table th,
  .compare-table td { padding: 7px 5px; font-size: 12.5px; }
  .cmp-device { font-size: 12.5px; }
  .cmp-value { font-size: 12.5px; }
  .compare-table thead th { font-size: 12px; }
}

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

/* ---------- print ---------- */

@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .top, .intro, .safety-wrap, .lab-controls, .compare-section, .how-section,
  .fit-ticker, .board-actions, .fit-actions, .ruled-out, .change-note, .live { display: none !important; }
  .lab { padding: 0; }
  .lab-grid { display: block; }
  .lab-board { border: 0; padding: 0; box-shadow: none; }
  .foot { border-top: 1px solid #999; margin-top: 16px; padding-top: 10px; }
  .board-head h2 { font-size: 18pt; }
  .fit { break-inside: avoid; border-color: #999; background: #fff; box-shadow: none; }
  .fit.first { box-shadow: none; }
  .fit-meter, .fit-tags, .fit-details { display: block; }
  a { color: #000; text-decoration: none; }
}
/* Related decisions, last-checked line and touch targets (added 2026-11-06) */
.related-tools { padding-top: 1.6rem; }
.related-title { margin: 0 0 0.5rem; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.65; }
.related-tools ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.related-tools a { color: inherit; opacity: 0.9; }
.related-tools a:hover { opacity: 1; text-decoration: underline; }
.last-checked { margin: 0.55rem 0 0; font-size: 0.72rem; letter-spacing: 0.02em; opacity: 0.7; }

/* Static catalogue: the product list as HTML, so it survives without JavaScript. */
.catalogue { padding-block: clamp(2.5rem, 6vw, 4rem); }
.catalogue h2 { margin: 0 0 0.5rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.catalogue > p { margin: 0 0 1.2rem; color: var(--muted); max-width: 64ch; }
.catalogue-static { overflow-x: auto; }
.catalogue-static table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.catalogue-static caption { text-align: left; padding-bottom: 0.7rem; color: var(--muted); }
.catalogue-static th, .catalogue-static td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.catalogue-static thead th { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.catalogue-static a { color: inherit; text-underline-offset: 3px; }

/* The quotable answer under the h1. */
.lede-answer { max-width: 62ch; margin: 0 0 0.9rem; font-size: 1.06em; line-height: 1.6; }
