@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 {
  --ground: #0b0d0c;
  --ground-2: #0f1211;
  --panel: #141817;
  --panel-2: #1b211f;
  --line: rgba(236, 242, 226, 0.13);
  --line-2: rgba(236, 242, 226, 0.3);
  --ink: #eef2e4;
  --muted: #95a293;
  --go: #d9f26b;
  --go-dim: rgba(217, 242, 107, 0.12);
  --warn: #eeb44f;
  --warn-dim: rgba(238, 180, 79, 0.12);
  --leak: #ff5f7a;
  --leak-dim: rgba(255, 95, 122, 0.12);
  --steel: #8fa3ac;
  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SFMono-Regular", monospace;
  --max: 1360px;
  --gutter: clamp(18px, 4.2vw, 56px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--ground);
  background-image:
    linear-gradient(to right, rgba(236, 242, 226, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 88% -8%, rgba(217, 242, 107, 0.1), transparent 42%);
  background-size: 84px 100%, auto;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--go);
  color: var(--ground);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

.mono {
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 12, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.bar-in {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.42rem;
  text-decoration: none;
  white-space: nowrap;
}
.brand-a { font-weight: 800; letter-spacing: -0.03em; font-size: 1.05rem; }
.brand-b {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--go);
}

.bar-tool { color: var(--muted); margin: 0; }
.bar-tool span { color: var(--go); }
.bar-live { margin: 0 0 0 auto; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.bar-live b { color: var(--go); font-size: 0.86rem; margin-left: 0.25rem; }

.reset {
  background: none;
  border: 1px solid var(--line-2);
  color: var(--ink);
  padding: 0.42rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.reset:hover { border-color: var(--go); color: var(--go); }

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

.intro { padding: clamp(2.4rem, 6vw, 5rem) 0 clamp(1.8rem, 4vw, 3rem); }

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.intro h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0 0 1.1rem;
  max-width: 13ch;
}

.intro-copy > p {
  max-width: 58ch;
  color: #c7d0bf;
  margin: 0 0 1.6rem;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.intro-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  list-style: none;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}
.intro-specs li { display: flex; flex-direction: column; gap: 0.15rem; }
.intro-specs span { color: var(--muted); }
.intro-specs b { font-size: 0.95rem; font-weight: 600; }

/* ---------- connection pass ---------- */

.pass {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line-2);
  position: relative;
  padding: 1rem 1.1rem 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.pass::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--go) 0 14px, transparent 14px 22px);
  opacity: 0.65;
}

.pass-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--line-2);
}

.pass-route {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: 1rem 0 0.6rem;
}
.pass-arrow { color: var(--go); font-weight: 400; }

.pass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 0.9rem;
  border-top: 1px solid var(--line);
}
.pass-grid > div {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.pass-grid > div:nth-child(odd) { padding-right: 0.8rem; border-right: 1px solid var(--line); }
.pass-grid > div:nth-child(even) { padding-left: 0.9rem; }
.pass-grid dt { color: var(--muted); margin-bottom: 0.15rem; }
.pass-grid dd { margin: 0; font-weight: 600; font-size: 0.95rem; overflow-wrap: anywhere; }

.pass-stub {
  background: var(--ground-2);
  margin: 0 -1.1rem;
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.pass-stub span { color: var(--muted); }
.pass-stub b, .pass-pick {
  color: var(--go);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  width: fit-content;
}
.pass-pick:hover { border-bottom-color: var(--go); }

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

.bench {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.2rem, 2.6vw, 2.4rem);
  align-items: start;
  padding: 2.2rem 0 1rem;
  border-top: 1px solid var(--line);
}

.build, .stage {
  border: 1px solid var(--line);
  background: var(--panel);
}

.build { padding: 1.1rem 1.1rem 1.4rem; }
.stage { padding: 1.1rem 1.1rem 1.4rem; background: var(--ground-2); }

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.panel-head h2 {
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.panel-head h2 .mono { color: var(--go); margin-right: 0.45rem; }
.panel-head > .mono { color: var(--muted); text-align: right; }

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}
.presets button {
  background: none;
  border: 1px solid var(--line-2);
  color: var(--muted);
  padding: 0.34rem 0.58rem;
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.presets button:hover { color: var(--ground); background: var(--go); border-color: var(--go); }

.field { padding: 0.85rem 0 0.95rem; border-top: 1px solid var(--line); }
.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}
.field-head label, .field-head > span:first-child { font-weight: 600; font-size: 0.95rem; }
.field-head output {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--go);
  letter-spacing: 0.08em;
}
.field-head > .mono:last-child { color: var(--muted); text-align: right; }

select {
  width: 100%;
  background: var(--ground);
  color: var(--ink);
  border: 1px solid var(--line-2);
  padding: 0.55rem 0.65rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--go) 50%), linear-gradient(135deg, var(--go) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

input[type="range"] {
  width: 100%;
  margin: 0.15rem 0 0.35rem;
  accent-color: var(--go);
  height: 1.5rem;
}

.hint { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.5; margin: 0.3rem 0 0; }

.seg { display: flex; border: 1px solid var(--line-2); }
.seg button {
  flex: 1;
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0.5rem 0.4rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--go); color: var(--ground); }

.needs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.needs button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  background: var(--ground);
  border: 1px solid var(--line-2);
  color: var(--muted);
  padding: 0.45rem 0.55rem;
  text-align: left;
  font-size: 0.82rem;
}
.needs button .tick { font-family: var(--mono); font-size: 0.6rem; opacity: 0.45; }
.needs button[aria-pressed="true"] { border-color: var(--go); background: var(--go-dim); color: var(--ink); }
.needs button[aria-pressed="true"] .tick { opacity: 1; color: var(--go); }

.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  cursor: pointer;
}
.check input { accent-color: var(--go); width: 1rem; height: 1rem; }

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

.stage-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.stage-head .mono { color: var(--muted); }
.stage-name {
  margin: 0.25rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 1;
}
.stage-exit { text-align: right; }
.stage-exit b {
  display: block;
  font-family: var(--mono);
  font-size: 1.6rem;
  color: var(--go);
  letter-spacing: 0.04em;
}
.stage-exit span { color: var(--muted); }

.scope-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(150px, 0.55fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem 0 0.4rem;
}

.scope {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;
  cursor: grab;
  background: radial-gradient(circle at 50% 50%, rgba(217, 242, 107, 0.05), transparent 62%);
}
.scope:active { cursor: grabbing; }
.scope-rings circle { fill: none; stroke: var(--line); stroke-dasharray: 2 6; }
.scope-rings line { stroke: var(--line); stroke-width: 0.6; }

.scope-node circle { fill: var(--panel-2); stroke: var(--line-2); stroke-width: 1.2; transition: r 120ms ease; }
.scope-node text {
  fill: #7c8a7d;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  pointer-events: none;
}
.scope-node { cursor: pointer; }
.scope-node:hover circle { stroke: var(--go); }
.scope-node.is-active circle { fill: var(--go); stroke: var(--go); }
.scope-node.is-active text { fill: var(--ink); font-weight: 600; }
.scope-node.is-active .halo { fill: none; stroke: var(--go); opacity: 0.5; }
.scope-node:focus-visible circle { stroke: var(--go); stroke-width: 2.5; }
.scope-node:focus-visible text { fill: var(--ink); }

.scope-home { fill: var(--ink); }
.scope-home-label { fill: var(--go); font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; }

.scope-route line {
  stroke: var(--go);
  stroke-width: 1.4;
  stroke-dasharray: 5 7;
  opacity: 0.9;
}
.scope-route circle { fill: var(--go); opacity: 0; }
.scope.is-running .scope-route line { animation: crawl 0.75s linear infinite; }
.scope.is-running .scope-route circle { opacity: 1; }
@keyframes crawl { to { stroke-dashoffset: -24; } }

.scope-side { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.scope-instruction { margin: 0; font-size: 0.76rem; color: var(--muted); line-height: 1.45; }

.exit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.28rem;
  max-height: 296px;
  overflow: auto;
  padding-right: 0.2rem;
}
.exit-list button {
  min-width: 0;
  background: none;
  border: 1px solid transparent;
  color: var(--muted);
  text-align: left;
  padding: 0.28rem 0.35rem;
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.exit-list button:hover { color: var(--ink); border-color: var(--line-2); }
.exit-list button[aria-pressed="true"] { color: var(--ground); background: var(--go); }

.route-strip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hop { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.hop .mono { color: var(--muted); }
.hop b { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hop-line { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--go) 0 4px, transparent 4px 9px); opacity: 0.6; }

.readouts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 0.8rem 0;
}
.readout {
  background: var(--panel);
  padding: 0.55rem 0.6rem;
  min-width: 0;
}
.readout .mono { color: var(--muted); display: block; margin-bottom: 0.2rem; font-size: 0.58rem; }
.readout b {
  font-family: var(--mono);
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.readout-sub {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.05em;
}
.readout b.is-warn { color: var(--warn); }
.readout b.is-dead { color: var(--leak); }

.stage-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--go);
  color: var(--ground);
  border: 1px solid var(--go);
  padding: 0.62rem 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn.ghost { background: none; color: var(--muted); border-color: var(--line-2); }
.btn.ghost:hover { color: var(--leak); border-color: var(--leak); }

.narration {
  margin: 0.8rem 0 0;
  font-size: 0.86rem;
  color: #c7d0bf;
  min-height: 2.6em;
}

.doors {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}
.doors-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.doors-head .mono { color: var(--muted); }
.doors-head a.mono { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.doors-head a.mono:hover { color: var(--go); border-color: var(--go); }

.door-list { list-style: none; margin: 0; padding: 0; }
.door-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}
.door-list li:first-child { border-top: 0; }
.door-name { display: flex; align-items: baseline; gap: 0.45rem; min-width: 0; }
.door-name b { font-weight: 600; white-space: nowrap; }
.door-name span { color: var(--muted); font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge {
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--line-2);
  color: var(--muted);
  white-space: nowrap;
}
.badge.yes { color: var(--go); border-color: var(--go); background: var(--go-dim); }
.badge.likely { color: var(--warn); border-color: var(--warn); background: var(--warn-dim); }
.badge.no, .badge.wrong-exit { color: var(--leak); border-color: var(--leak); background: var(--leak-dim); }
.door-note { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.74rem; line-height: 1.45; }

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

.sec-head { max-width: 78ch; margin-bottom: 1.4rem; }
.sec-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 0.6rem;
  font-weight: 700;
}
.sec-head p { margin: 0; color: #c7d0bf; max-width: 68ch; }

.picks { padding: 3.4rem 0 1rem; }
.picks-list { border-top: 1px solid var(--line-2); }

.pick {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  position: relative;
}
.pick:hover { background: rgba(217, 242, 107, 0.035); }
.pick-rank {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.pick-main b { display: block; font-size: 1.2rem; letter-spacing: -0.02em; font-weight: 700; }
.pick-main span { color: var(--muted); font-size: 0.8rem; }
.pick-side { display: flex; align-items: center; gap: 1rem; justify-self: end; }
.pick-price { text-align: right; }
.pick-price b { display: block; font-family: var(--mono); font-size: 1.1rem; font-weight: 500; }
.pick-price span { color: var(--muted); font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.06em; text-transform: uppercase; }
.pick-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid var(--go);
  color: var(--go);
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1;
}
.pick-score span { font-size: 0.42rem; letter-spacing: 0.12em; margin-top: 0.2rem; }
.pick-link {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--go);
  white-space: nowrap;
}

.picks-foot { color: var(--muted); margin: 0.9rem 0 0; }

.pick-note {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  margin-top: 0.2rem;
}

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

.table-sec { padding: 3rem 0 1rem; }
.table-hint { color: var(--muted); margin: 0 0 0.6rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }

table { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 0.84rem; }
thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
tbody td { padding: 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(236, 242, 226, 0.025); }
td .num { font-family: var(--mono); white-space: nowrap; }
td .num.is-over { color: var(--warn); }
td a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
td a:hover { border-color: var(--go); color: var(--go); }
td.is-dim { opacity: 0.45; }
td.fit-cell.is-dim { opacity: 1; }
.fit-cell { font-family: var(--mono); font-size: 0.95rem; color: var(--go); }
.fit-cell.low { color: var(--warn); }
.fit-cell.no { color: var(--leak); }
.fit-why {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  line-height: 1.35;
  color: var(--muted);
  max-width: 18ch;
}
.table-note { color: var(--muted); font-size: 0.78rem; margin: 0.7rem 0 0; }

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

.method { padding: 3rem 0 2rem; }
.method details { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.method summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
}
.method summary::-webkit-details-marker { display: none; }
.method summary .mono { color: var(--go); }
.method summary .mono:last-child { color: var(--muted); }
.method summary::after { content: "+"; color: var(--go); font-family: var(--mono); }
.method details[open] summary::after { content: "−"; }

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  padding: 0.4rem 0 1.6rem;
}
.method h3 { font-size: 0.95rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.method p, .method li { font-size: 0.82rem; color: #b9c4b3; line-height: 1.6; }
.method p { margin: 0 0 0.7rem; }
.method ul { margin: 0 0 0.7rem; padding-left: 1rem; }
.method li { margin-bottom: 0.35rem; }
.method b { color: var(--ink); }

.weights { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.weights li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}
.sources { list-style: none; padding: 0; }
.sources li { border-bottom: 1px solid var(--line); }
.sources a { text-decoration: none; display: block; padding: 0.3rem 0; }
.sources a:hover { color: var(--go); }
.fine { color: var(--muted) !important; font-size: 0.74rem !important; }

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

.foot { border-top: 1px solid var(--line); padding: 2rem 0 2.4rem; margin-top: 1rem; }
.affiliate-disclaimer {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.6;
  max-width: 90ch;
  margin: 0 0 1.6rem;
  padding: 0.8rem 0.9rem;
  border-left: 2px solid var(--go);
  background: var(--panel);
}
.affiliate-disclaimer strong { color: var(--ink); }
.foot-in { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; align-items: baseline; }
.foot-mark { margin: 0; font-weight: 800; letter-spacing: -0.03em; }
.foot-in p { margin: 0; color: var(--muted); }
.foot-in a { text-decoration: none; }
.foot-in a:hover { color: var(--go); }

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

@media (max-width: 1100px) {
  .intro-grid { grid-template-columns: 1fr; align-items: start; }
  .pass { max-width: 520px; }
  .bench { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .bar-tool { display: none; }
  .bar-live { display: none; }
  .reset { margin-left: auto; white-space: nowrap; }
  .panel-head { display: block; }
  .panel-head > .mono { display: block; text-align: left; margin-top: 0.2rem; }
  .intro h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .scope-wrap { grid-template-columns: 1fr; }
  .scope-node text { font-size: 20px; }
  .scope-home-label { font-size: 18px; }
  .exit-list { grid-template-columns: repeat(2, 1fr); max-height: 190px; }
  .readouts { grid-template-columns: 1fr 1fr; }
  .pick { grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 0.7rem; }
  .pick-side { grid-column: 2 / -1; justify-self: start; }
  .pick-link { margin-left: auto; grid-column: 2 / -1; }
  .method-grid { grid-template-columns: 1fr; }
  .affiliate-disclaimer { font-size: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scope.is-running .scope-route line,
  .scope.is-running .scope-route circle { animation: none; }
  .scope-route circle { display: 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; }

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