@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Azeret Mono";
  src: url("assets/fonts/azeret-mono-var.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --paper: #f4eee1;
  --paper-2: #efe6d4;
  --card: #fbf6ea;
  --ink: #2a2118;
  --ink-2: #4a3d30;
  --muted: #6f6252;
  --line: rgba(42, 33, 24, 0.15);
  --line-2: rgba(42, 33, 24, 0.28);
  --green: #2c5e44;
  --green-2: #1f4632;
  --lime: #c7d96b;
  --clay: #b9552e;
  --amber: #c58a2b;
  --cream: #fffaf0;
  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SFMono-Regular", monospace;
  --max: 1320px;
  --gutter: clamp(18px, 4.2vw, 56px);
  --r: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 78% -12%, rgba(255, 252, 244, 0.8), transparent 62%),
    repeating-linear-gradient(0deg, rgba(42, 33, 24, 0.018) 0 1px, transparent 1px 4px),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  caret-color: var(--green);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--green); color: var(--cream); }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) var(--paper); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--paper); }

a { color: inherit; }
button,
input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 7.4vw, 6rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.6rem);
  font-weight: 750;
  font-stretch: 108%;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p { line-height: 1.65; }

.mono {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wrap {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.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: 12px;
  top: -60px;
  z-index: 80;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
}
.skip:focus { top: 10px; }

[hidden] { display: none !important; }

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

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.top-in {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { border-radius: 50%; }
.brand span { display: grid; line-height: 1.05; }
.brand b { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.02em; }
.brand small {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tool { justify-self: center; color: var(--muted); }

.top-actions { display: flex; align-items: center; gap: 16px; }
.bar-score { margin: 0; color: var(--muted); }
.bar-score b { color: var(--green); font-size: 0.9rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.72rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--green); color: var(--cream); }
.btn.primary:hover { background: var(--green-2); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.sm { min-height: 40px; padding: 0.5rem 0.8rem; font-size: 0.82rem; }

.stage .btn.primary { background: var(--lime); color: #1b2a1f; }
.stage .btn.primary:hover { background: #d8e884; }
.stage .btn.ghost { color: var(--cream); border-color: rgba(244, 238, 225, 0.3); }
.stage .btn.ghost:hover { border-color: var(--cream); }

.link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--green);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.intro { padding: clamp(38px, 6vw, 78px) 0 clamp(26px, 4vw, 46px); }

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
}

.intro-copy p {
  max-width: 52ch;
  margin: 0 0 22px;
  color: var(--ink-2);
  font-size: 1.03rem;
}

.intro-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
}
.intro-meta li { padding: 9px 12px 10px 0; border-right: 1px solid var(--line); }
.intro-meta li:last-child { border-right: 0; }
.intro-meta span { display: block; color: var(--muted); font-size: 0.58rem; }
.intro-meta b { display: block; margin-top: 2px; font-size: 0.92rem; font-weight: 650; }

.note { color: var(--muted); }

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

.safety-wrap { padding: 0 0 clamp(28px, 4vw, 44px); }

.safety-card {
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: rgba(255, 250, 240, 0.55);
  padding: clamp(18px, 2.6vw, 28px);
}

.safety-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}
.safety-top p { max-width: 72ch; margin: 0.45rem 0 0; color: var(--ink-2); font-size: 0.92rem; }
.safety-mark { color: var(--green); }
.safety-mark svg { width: 42px; height: 42px; }

.flags { border: 0; padding: 0; margin: 18px 0 0; }
.flag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.flag {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px 11px 0;
  border-right: 1px solid var(--line);
  font-size: 0.86rem;
  cursor: pointer;
}
.flag:nth-child(3n) { border-right: 0; }
.flag:nth-child(n + 4) { border-top: 1px solid var(--line); }
.flag input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--clay); }

.safety-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hint { margin: 10px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }

.referral {
  border: 1px solid var(--clay);
  border-radius: var(--r);
  background: rgba(185, 85, 46, 0.06);
  padding: clamp(18px, 2.6vw, 28px);
  margin-top: 16px;
}
.referral h2 { color: var(--clay); }
.referral p { max-width: 72ch; }
.referral ul { margin: 0 0 16px; padding-left: 1.1rem; }
.referral li { margin: 4px 0; }
.referral-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 0; }

.safety-passed {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- bench ---------- */

.bench {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: start;
  padding-bottom: clamp(44px, 7vw, 86px);
}

.build {
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: rgba(255, 250, 240, 0.52);
  padding: clamp(16px, 2.2vw, 26px);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
}
.panel-head h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.panel-head p { margin: 0; color: var(--muted); text-align: right; }

.presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}
.preset {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  padding: 9px 10px;
  text-align: left;
  color: var(--ink);
  transition: border-color 150ms ease, background 150ms ease;
}
.preset:hover { border-color: var(--line-2); }
.preset[aria-pressed="true"] { background: rgba(44, 94, 68, 0.08); border-color: var(--green); }
.preset b { display: block; font-size: 0.86rem; font-weight: 650; }
.preset small { display: block; color: var(--muted); font-size: 0.7rem; }

.control { padding: 14px 0 0; margin-top: 14px; border-top: 1px solid var(--line); }
.control:first-of-type { margin-top: 0; }

.control-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.control-head label,
.control-head > span:first-child { font-weight: 650; font-size: 0.9rem; }
.control-head output {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.hint-inline { color: var(--muted); font-size: 0.68rem; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

input[type="range"] {
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--green) 0 var(--fill, 50%), var(--line) var(--fill, 50%) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--green);
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--green); }
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--paper);
}

.seg {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.seg button {
  flex: 1 1 auto;
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  padding: 0.5rem 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.seg button:hover:not([aria-pressed="true"]) { background: rgba(44, 94, 68, 0.07); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  padding: 0.42rem 0.78rem;
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 600;
}
.chip[aria-pressed="true"] { background: var(--clay); border-color: var(--clay); color: var(--cream); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.check b { display: block; font-size: 0.9rem; }
.check small { display: block; color: var(--muted); font-size: 0.76rem; line-height: 1.45; }

/* ---------- stage ---------- */

.stage {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: clamp(16px, 2.4vw, 28px);
  background: radial-gradient(125% 110% at 22% 0%, #315f45 0%, #234231 46%, #1a3225 100%);
  color: var(--cream);
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 238, 225, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 238, 225, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
}
.stage > * { position: relative; z-index: 1; }

.stage-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding-bottom: 10px;
}
.stage-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); color: var(--cream); }
.stage-head p { margin: 3px 0 0; color: #c4d1bd; font-size: 0.84rem; }
.stage-score { text-align: right; }
.stage-score b {
  display: block;
  color: var(--lime);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stage-score span { display: block; color: #b9c8b2; font-size: 0.58rem; }

.mat {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2%;
  min-height: 258px;
  padding: 6px 2% 0;
}
.dog {
  width: 41%;
  max-width: 190px;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: #f1e6cf;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dog-body { fill: rgba(244, 238, 225, 0.045); }
.dog-eye,
.dog-nose { fill: #f1e6cf; stroke: none; }
.dog-collar { stroke: #d68a5c; }
.dog-tail { transform-origin: 46px 92px; }
.stage.is-happy .dog-tail { animation: wag 2.2s ease-in-out infinite; }
.stage.is-happy .dog-ear { transform: rotate(-7deg); transform-origin: 112px 48px; }
@keyframes wag {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-18deg); }
}

.bowl { width: 55%; max-width: 270px; height: auto; }
.bowl-body { stroke: rgba(42, 33, 24, 0.18); stroke-width: 1.4; }
.bowl-rim { fill: #f6ead3; stroke: #c9b28a; stroke-width: 1.4; }
.bowl-mouth { fill: none; stroke: rgba(42, 33, 24, 0.16); stroke-width: 1.2; }
.bowl-shadow { fill: rgba(0, 0, 0, 0.24); }
.mat-line { fill: none; stroke: rgba(244, 238, 225, 0.22); stroke-width: 1.4; stroke-dasharray: 4 7; }
.bowl-fill { transition: y 300ms ease, height 300ms ease; }

.stage-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 6px;
  border-top: 1px solid rgba(244, 238, 225, 0.16);
  border-bottom: 1px solid rgba(244, 238, 225, 0.16);
}
.stage-facts > div { padding: 10px 10px 10px 0; border-right: 1px solid rgba(244, 238, 225, 0.14); }
.stage-facts > div:last-child { border-right: 0; padding-left: 10px; }
.stage-facts > div:nth-child(2) { padding-left: 10px; }
.stage-facts span { display: block; color: #b9c8b2; font-size: 0.58rem; }
.stage-facts b { display: block; margin-top: 2px; font-size: 1.28rem; font-weight: 700; color: var(--cream); font-variant-numeric: tabular-nums; }
.stage-facts small { display: block; color: #a9b8a2; font-size: 0.7rem; }

.meters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}
.meter { padding: 8px 0; border-bottom: 1px solid rgba(244, 238, 225, 0.12); }
.meter:nth-child(odd) { padding-right: 12px; border-right: 1px solid rgba(244, 238, 225, 0.12); }
.meter:nth-child(even) { padding-left: 12px; }
.meter:last-child { grid-column: 1 / -1; border-right: 0; }
.meter span { display: block; color: #b9c8b2; font-size: 0.56rem; }
.meter b { display: block; margin-top: 2px; color: var(--cream); font-size: 0.82rem; font-weight: 600; line-height: 1.35; }

.stage-note { padding: 12px 0; border-bottom: 1px solid rgba(244, 238, 225, 0.16); }
.stage-note p { margin: 0; color: #dce6d7; font-size: 0.84rem; line-height: 1.5; }
.stage-note .caveat { margin-top: 5px; color: #f0c98a; font-size: 0.76rem; }

.stage-actions { display: flex; gap: 9px; flex-wrap: wrap; padding-top: 14px; }

/* ---------- sections ---------- */

.picks,
.trial,
.table-sec { padding: clamp(46px, 7vw, 86px) 0; border-top: 1px solid var(--line); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(20px, 3.4vw, 34px);
}
.sec-head p { max-width: 58ch; margin: 0; color: var(--muted); }

/* ---------- picks ---------- */

.pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-top: 1px solid var(--line);
}
.pick:last-child { border-bottom: 1px solid var(--line); }
.pick.is-active { background: rgba(44, 94, 68, 0.055); }

.pick-select {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 17px 0 17px 12px;
  text-align: left;
  color: var(--ink);
}
.pick-rank { font-size: 0.66rem; color: var(--muted); }
.pick.is-active .pick-rank { color: var(--green); }
.pick-name { display: block; font-size: 1.04rem; font-weight: 700; letter-spacing: -0.015em; }
.pick-brand { display: block; color: var(--muted); font-size: 0.78rem; }
.pick-why { display: block; margin-top: 2px; color: var(--ink-2); font-size: 0.8rem; line-height: 1.45; }
.pick-stats { display: flex; gap: 18px; }
.pick-stats span { text-align: right; }
.pick-stats b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.pick-stats small { display: block; color: var(--muted); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; }

.pick-link {
  align-self: center;
  margin: 0 14px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.pick-link:hover { color: var(--green-2); }

.empty {
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  padding: 24px;
  color: var(--muted);
}
.empty b { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 4px; }

/* ---------- trial ---------- */

.trial-panel {
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.55);
  padding: clamp(14px, 2.2vw, 24px);
}

.trial-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.metric-tabs {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.metric-tabs button {
  min-height: 40px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  padding: 0.4rem 0.72rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}
.metric-tabs button:last-child { border-right: 0; }
.metric-tabs button[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.trial-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.chart-wrap { margin: 18px 0 6px; }
.chart-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }

.chart-grid { stroke: rgba(42, 33, 24, 0.1); stroke-width: 1; }
.chart-axis { stroke: rgba(42, 33, 24, 0.3); stroke-width: 1; }
.chart-label { fill: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; }
.chart-line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { stroke: var(--paper); stroke-width: 2; }
.chart-scrub { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 4; opacity: 0.55; }
.chart-empty { fill: var(--muted); font-family: var(--sans); font-size: 15px; }

.trial-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.trial-controls label { color: var(--muted); font-size: 0.6rem; }
.scrub-read { color: var(--muted); font-size: 0.7rem; white-space: nowrap; }
.scrub-read b { color: var(--ink); font-size: 0.9rem; font-variant-numeric: tabular-nums; }

.trial-readout { border-top: 1px solid var(--line); margin-top: 14px; }
.read-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 110px;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.read-name { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 600; }
.read-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.read-val { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.read-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.read-bar i { display: block; height: 100%; border-radius: 3px; }

.chart-note { margin: 14px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
.chart-note b { color: var(--ink-2); }
.chart-hint { display: none; margin: 4px 0 0; color: var(--muted); }

/* ---------- table ---------- */

.table-hint { display: none; margin: 0 0 10px; color: var(--muted); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: rgba(255, 250, 240, 0.52);
}
.table-wrap:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

table { width: 100%; min-width: 960px; border-collapse: collapse; font-size: 0.84rem; }
th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px;
  border-bottom: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tr.is-fail td { color: var(--muted); }
tr.is-fail .cell-name b { color: var(--ink-2); }

.cell-name b { display: block; font-weight: 650; line-height: 1.3; }
.cell-name small { display: block; color: var(--muted); font-size: 0.72rem; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fit-good { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.fit-fail { color: #9d4525; font-size: 0.72rem; line-height: 1.35; }

/* ---------- method ---------- */

.method { padding: 0 0 clamp(40px, 6vw, 70px); }
.method details { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 16px 0; }
.method summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.method summary::-webkit-details-marker { display: none; }
.method summary span:last-child { color: var(--muted); font-weight: 500; }
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 42px);
  padding-top: 24px;
}
.method-grid p { color: var(--ink-2); font-size: 0.86rem; }
.weights { margin: 0.7rem 0 1rem; padding: 0; list-style: none; }
.weights li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dotted var(--line-2); font-size: 0.82rem; }
.weights span:last-child { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.limits { margin: 0; padding-left: 1.05rem; }
.limits li { margin: 6px 0; font-size: 0.83rem; color: var(--ink-2); }
.limits b { color: var(--ink); }
.limits a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.sources { margin: 0 0 0.8rem; padding: 0; list-style: none; }
.sources li { padding: 5px 0; border-bottom: 1px dotted var(--line-2); font-size: 0.8rem; }
.sources a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.fine { color: var(--muted); font-size: 0.76rem; }

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

.foot { background: var(--green-2); color: var(--cream); padding: 26px 0 18px; }
.affiliate {
  max-width: 100%;
  margin: 0 0 20px;
  border: 1px solid rgba(244, 238, 225, 0.22);
  padding: 12px 14px;
  color: #dbe5d6;
  font-size: 0.76rem;
  line-height: 1.55;
}
.affiliate strong { color: var(--cream); }
.foot-in {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(244, 238, 225, 0.18);
  padding-top: 14px;
}
.foot-mark { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
.foot .mono { margin: 0; color: #b9c8b2; font-size: 0.58rem; }
.foot-in .mono:last-child { margin-left: auto; }

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

@media (max-width: 1080px) {
  .bench { grid-template-columns: 1fr; }
  .stage { max-width: 720px; margin-inline: auto; }
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-hint { display: block; }
}

@media (max-width: 820px) {
  .intro-grid { grid-template-columns: 1fr; align-items: start; }
  h1 { max-width: 13ch; }
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .flag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flag:nth-child(3n) { border-right: 1px solid var(--line); }
  .flag:nth-child(2n) { border-right: 0; }
  .flag:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .pick-select { grid-template-columns: 2rem minmax(0, 1fr); }
  .pick-stats { grid-column: 2; justify-content: flex-start; }
  .pick-stats span { text-align: left; }
  .table-hint { display: block; }
}

@media (max-width: 620px) {
  .top-in { grid-template-columns: auto 1fr; min-height: 58px; gap: 10px; }
  .tool { display: none; }
  .top-actions { justify-content: flex-end; gap: 10px; }
  .bar-score { display: none; }
  .brand small { display: none; }

  .intro-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-meta li:nth-child(2) { border-right: 0; }
  .intro-meta li:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .safety-top { grid-template-columns: 1fr; }
  .safety-mark { display: none; }
  .flag-grid { grid-template-columns: 1fr; }
  .flag { border-right: 0 !important; }
  .flag:nth-child(n + 2) { border-top: 1px solid var(--line); }

  .panel-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .panel-head p { text-align: left; }

  .stage { border-radius: 14px; }
  .stage-head { gap: 10px; }
  .stage-score b { font-size: 2rem; }
  .mat { min-height: 200px; gap: 0; padding-inline: 0; }
  .dog { width: 42%; }
  .bowl { width: 58%; }
  .stage-facts b { font-size: 1rem; }
  .stage-facts small { font-size: 0.64rem; }
  .stage-actions { flex-direction: column; }
  .stage-actions .btn { width: 100%; }

  .pick { grid-template-columns: 1fr; }
  .pick-select { grid-template-columns: 1.8rem minmax(0, 1fr); padding-left: 0; }
  .pick-stats { gap: 14px; }
  .pick-link { margin: 0 0 14px 1.8rem; }

  .trial-top { align-items: flex-start; }
  .trial-actions { width: 100%; }
  .trial-actions .btn { flex: 1 1 auto; }
  .chart-wrap { overflow-x: auto; padding-bottom: 4px; }
  .chart-wrap svg { min-width: 620px; }
  .chart-label { font-size: 16px; }
  .chart-hint { display: block; }
  .trial-controls { grid-template-columns: 1fr auto; }
  .trial-controls label { grid-column: 1 / -1; }
  .read-row { grid-template-columns: minmax(0, 1fr) auto; }
  .read-bar { grid-column: 1 / -1; }

  .method-grid { grid-template-columns: 1fr; }
  .foot-in .mono:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
/* 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; }

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