@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: #0e1512;
  --ground-2: #111a15;
  --panel: #151f19;
  --panel-2: #1b2821;
  --line: rgba(219, 232, 222, 0.15);
  --line-2: rgba(219, 232, 222, 0.31);
  --ink: #f1e8da;
  --muted: #a6b5ac;
  --cedar: #c98a55;
  --cedar-2: #9b6239;
  --cedar-dim: rgba(201, 138, 85, 0.14);
  --heat: #ff7a45;
  --heat-2: #e26030;
  --heat-dim: rgba(255, 122, 69, 0.12);
  --steam: #cfe0d8;
  --plunge: #69b7c4;
  --pine: #a6d17f;
  --pine-dim: rgba(166, 209, 127, 0.12);
  --warn: #e0b45c;
  --warn-dim: rgba(224, 180, 92, 0.12);
  --fail: #e2604a;
  --fail-dim: rgba(226, 96, 74, 0.12);
  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SFMono-Regular", monospace;
  --max: 1380px;
  --gutter: clamp(18px, 4.2vw, 56px);
  --r: 0px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--ground);
  background-image:
    repeating-linear-gradient(90deg, rgba(201, 138, 85, 0.045) 0 1px, transparent 1px 64px),
    radial-gradient(circle at 84% -8%, rgba(255, 122, 69, 0.16), transparent 42%),
    radial-gradient(circle at 6% 42%, rgba(105, 183, 196, 0.07), transparent 34%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--heat); 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 { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--heat); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--heat);
  color: var(--ground);
  font-family: var(--mono);
  font-size: 0.75rem;
  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: var(--ground);
  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.55rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand-a {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.035em;
  font-variation-settings: "wdth" 108;
}

.brand-b {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.bar-tool { margin: 0; color: var(--muted); }
.bar-tool span { color: var(--line-2); }

.bar-live {
  margin: 0 0 0 auto;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.bar-live b {
  color: var(--heat);
  font-weight: 500;
  font-size: 1rem;
}

.reset {
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-height: 44px;
  border-radius: var(--r);
}

.reset:hover { border-color: var(--heat); color: var(--heat); }

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

.intro {
  border-bottom: 1px solid var(--line);
  padding: clamp(2.4rem, 5.5vw, 4.8rem) 0 clamp(2rem, 4vw, 3.4rem);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.78fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.intro h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-variation-settings: "wdth" 112;
  text-wrap: balance;
}

.last-checked {
  margin: 0.9rem 0 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.intro-copy > p:not(.last-checked) {
  max-width: 48ch;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.intro-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 1.6rem 0 0;
  padding: 0.8rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.intro-specs li { display: flex; gap: 0.45rem; align-items: baseline; }
.intro-specs .mono { color: var(--muted); }
.intro-specs b { color: var(--ink); font-weight: 500; }

/* ---------- session card ---------- */

.session-card {
  position: relative;
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-top: 4px solid var(--cedar);
  max-width: 440px;
  justify-self: end;
  border-radius: var(--r);
}

.session-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(201, 138, 85, 0.05) 0 1px, transparent 1px 9px);
}

.card-head,
.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.card-type {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.9rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card-dot { width: 5px; height: 5px; background: var(--heat); border-radius: 50%; }

.card-curve {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.7rem 0 0.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0.8rem 0 0;
  border-top: 1px solid var(--line);
}

.card-grid > div {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.card-grid > div:nth-child(odd) { padding-right: 0.8rem; border-right: 1px solid var(--line); }
.card-grid > div:nth-child(even) { padding-left: 0.8rem; }

.card-grid dt { color: var(--muted); }
.card-grid dd {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card-foot {
  margin-top: 0.8rem;
  align-items: baseline;
}

.card-foot b {
  color: var(--heat);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

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

.bench {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.4rem, 3.2vw, 3.4rem);
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.build {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.15rem 1.15rem 1.3rem;
  border-radius: var(--r);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.panel-head .mono { color: var(--muted); text-align: right; }

.presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 1rem 0 0;
}

.preset {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 62px;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  text-align: left;
  border-radius: var(--r);
}

.preset b { font-size: 0.84rem; font-weight: 600; line-height: 1.2; }
.preset span { font-family: var(--mono); font-size: 0.6875rem; line-height: 1.4; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.preset:hover { border-color: var(--cedar); }
.preset.is-on { background: var(--heat); border-color: var(--heat); color: var(--ground); }
.preset.is-on span { color: rgba(14, 21, 18, 0.9); }

.field { margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.45rem;
}

.field-head.second { margin-top: 0.8rem; }
.field-head label { font-size: 0.9rem; }
.field-head .mono { color: var(--muted); text-align: right; }
.field-head output { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink); }

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.seg button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r);
}

.seg button b { display: block; font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.seg button span { display: block; margin-top: 0.1rem; font-size: 0.6875rem; color: var(--muted); letter-spacing: 0.04em; }
.seg button:hover { border-color: var(--cedar); }
.seg button.is-on { background: var(--heat); border-color: var(--heat); color: var(--ground); }
.seg button.is-on span { color: rgba(14, 21, 18, 0.9); }

.seg.rooms button,
.seg.power button,
.seg.styles button { flex: 1 1 42%; }

input[type="range"] {
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  accent-color: var(--heat);
  --fill: 50%;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(90deg, var(--heat) var(--fill), var(--line-2) var(--fill));
}
input[type="range"]::-moz-range-track { height: 4px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 4px; background: var(--heat); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  background: var(--heat);
  border: 2px solid var(--ground);
  border-radius: 50%;
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--heat);
  border: 2px solid var(--ground);
  border-radius: 50%;
}

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

.check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.4;
}

.check input { width: 18px; height: 18px; margin: 0.1rem 0 0; accent-color: var(--heat); flex: none; }

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

.stage {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.15rem 1.15rem 1.3rem;
  border-radius: var(--r);
}

.stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.stage-head > div:first-child { min-width: 0; }
.stage-head .mono { color: var(--muted); }

.stage-name {
  margin: 0.15rem 0 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.stage-price { text-align: right; flex: none; }
.stage-price b {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.stage-price .mono { display: block; margin-top: 0.15rem; font-size: 0.6875rem; color: var(--muted); }

.plan-wrap {
  margin: 1rem 0 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(201, 138, 85, 0.055), rgba(201, 138, 85, 0.055)),
    var(--ground-2);
  overflow: hidden;
}

#planSvg { display: block; width: 100%; height: auto; touch-action: none; }
#planSvg:focus-visible { outline: 2px solid var(--heat); outline-offset: 2px; }
#bench:focus-visible { outline: 2px solid var(--heat); outline-offset: 4px; }
#planSvg .cabin-hit { cursor: grab; }
#planSvg .cabin-hit:active { cursor: grabbing; }

.plan-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.65rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.plan-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.7rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--heat);
  background: var(--heat);
  color: var(--ground);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r);
}

.btn:hover { background: var(--heat-2); border-color: var(--heat-2); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--cedar); color: var(--cedar); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.plan-verdict {
  margin: 0.8rem 0 0;
  padding: 0.7rem 0.8rem;
  border-left: 3px solid var(--pine);
  background: var(--pine-dim);
  font-size: 0.86rem;
  line-height: 1.5;
}

.plan-verdict.is-warn { border-left-color: var(--warn); background: var(--warn-dim); }
.plan-verdict.is-fail { border-left-color: var(--fail); background: var(--fail-dim); }

.cabin-card {
  margin: 0.9rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.cabin-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.cabin-card h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cabin-card .price {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--heat);
  white-space: nowrap;
}

.cabin-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.78rem;
}

.cabin-terms b { color: var(--ink); font-weight: 500; }

.cabin-link {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--heat);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 122, 69, 0.45);
  padding-bottom: 0.1rem;
}
.cabin-link:hover { border-bottom-color: var(--heat); }

.plan-note {
  margin: 1rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}
.plan-note .mono { display: block; color: var(--cedar); }
.plan-note p { margin: 0.35rem 0 0; }

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

.session,
.picks,
.compare,
.method {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.sec-head {
  max-width: 74ch;
  margin-bottom: 1.6rem;
}

.sec-num {
  display: inline-block;
  margin-right: 0.55rem;
  color: var(--cedar);
  font-family: var(--mono);
  font-size: 0.58em;
  font-weight: 500;
  letter-spacing: 0.1em;
  vertical-align: 0.12em;
}

.sec-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.sec-head p {
  max-width: 62ch;
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.session-controls {
  display: block;
}

.session-controls .field { margin-top: 0; padding-top: 0; border-top: 0; }
.session-controls .field + .field {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.seg.styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg.styles button { min-height: 52px; }

.slider-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 1.2rem;
}

.loyly { border-top: 1px solid var(--line) !important; padding-top: 1rem !important; }
.loyly-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.loyly-row .mono { color: var(--muted); }

.curve-wrap {
  margin: 1.8rem 0 0;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.8rem 0.8rem 0.6rem;
  border-radius: var(--r);
}

.curve-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.legend { display: flex; flex-wrap: wrap; gap: 0.9rem; color: var(--muted); font-size: 0.74rem; }
.legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.swatch { display: inline-block; width: 16px; height: 3px; background: var(--ink); }
.swatch.air { background: var(--heat); }
.swatch.bench-line { background: var(--cedar); }
.swatch.target { background: var(--muted); }

#curveSvg, #humiditySvg { display: block; width: 100%; height: auto; }

.chart-swipe { display: none; margin: 0.35rem 0 0; color: var(--muted); }

.strip-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
  color: var(--muted);
}

.scrub {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.9rem 0 0;
}
.scrub label { color: var(--muted); }
.scrub input { flex: 1; }
.scrub output { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; white-space: nowrap; }

.session-readout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.readout-cell {
  padding: 0.7rem 0.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.readout-cell .mono { display: block; color: var(--muted); }
.readout-cell b {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.readout-cell span { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.72rem; }
.readout-cell.is-hot b { color: var(--heat); }
.readout-cell.is-warn b { color: var(--warn); }
.readout-cell.is-good b { color: var(--pine); }

.narration {
  max-width: 78ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
}

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

.picks-list { border-top: 1px solid var(--line); }

.pick {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 0 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.pick:hover { background: rgba(201, 138, 85, 0.04); }
.pick.is-selected { background: rgba(255, 122, 69, 0.06); }

.pick-rank {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--cedar);
  padding-top: 0.15rem;
}

.pick-body { min-width: 0; }

.pick-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.pick-head .mono { color: var(--muted); }
.pick-fit {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--heat);
  white-space: nowrap;
}
.pick-fit b { font-size: 1.25rem; font-weight: 500; }

.pick h3 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.pick-why { max-width: 78ch; margin: 0.35rem 0 0; font-size: 0.9rem; }
.pick-watch { max-width: 78ch; margin: 0.3rem 0 0; color: var(--muted); font-size: 0.84rem; }
.pick-watch b { color: var(--warn); font-weight: 500; }
.pick-fails { max-width: 78ch; margin: 0.25rem 0 0; color: var(--muted); font-size: 0.82rem; }
.pick-fails b { color: var(--muted); font-weight: 500; }

.pick-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}
.pick-terms b { color: var(--ink); font-weight: 500; }

.pick-flag {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--warn);
  color: var(--warn);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pick-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--heat);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 122, 69, 0.45);
  padding-bottom: 0.1rem;
}
.pick-link:hover { border-bottom-color: var(--heat); }

.pick-plan {
  display: inline-block;
  margin-top: 0.5rem;
  margin-right: 0.6rem;
  min-height: 44px;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.pick-plan:hover { border-color: var(--heat); color: var(--heat); }

.picks-empty {
  padding: 1.2rem 0;
  color: var(--muted);
}

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

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

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

th, td {
  padding: 0.6rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

td.num { font-family: var(--mono); font-size: 0.74rem; white-space: nowrap; }
tr.is-out td { color: var(--muted); }
tr.is-out .row-link { color: var(--muted); }

.row-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}
.row-link:hover { color: var(--heat); text-decoration-color: var(--heat); }

.row-plan {
  display: inline-block;
  min-height: 44px;
  margin-left: 0.5rem;
  padding: 0.15rem 0.35rem;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.row-plan:hover { border-color: var(--heat); color: var(--heat); }

.row-bench {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}
.row-bench:hover { color: var(--heat); text-decoration-color: var(--heat); }
.row-bench:disabled { text-decoration: none; cursor: default; }

.sub {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 400;
}

.fit-cell { display: inline-flex; align-items: center; gap: 0.4rem; }
.fit-mini { display: inline-block; width: 46px; height: 4px; background: var(--line-2); }
.fit-mini i { display: block; height: 100%; background: var(--heat); }

.chart-note {
  max-width: 80ch;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

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

.method summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  list-style: none;
}

.method summary::-webkit-details-marker { display: none; }
.method summary .mono:first-child { color: var(--ink); }
.method summary .mono:last-child { color: var(--muted); }
.method summary:hover .mono:first-child { color: var(--heat); }

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 1.4rem 0 0;
}

.method h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.method p, .method li { color: var(--muted); font-size: 0.84rem; line-height: 1.6; }
.method p { margin: 0 0 0.8rem; }
.method ul { margin: 0 0 0.8rem; padding: 0; list-style: none; }

.weights li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line);
}
.weights li span:last-child { font-family: var(--mono); color: var(--ink); }

.limits li { position: relative; padding-left: 0.9rem; margin-bottom: 0.5rem; }
.limits li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 4px; height: 4px; background: var(--cedar); }
.limits b { color: var(--ink); font-weight: 500; }

.sources li { margin-bottom: 0.35rem; }
.sources a { color: var(--cedar); text-decoration: none; border-bottom: 1px solid rgba(201, 138, 85, 0.35); }
.sources a:hover { color: var(--heat); border-bottom-color: var(--heat); }

.fine { font-size: 0.74rem !important; color: var(--muted); }

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

.foot {
  padding: 2.4rem 0 2.8rem;
  color: var(--muted);
}

.related-tools { margin-bottom: 1.6rem; }
.related-title { margin: 0 0 0.5rem; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; }
.related-tools ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; list-style: none; margin: 0; padding: 0; }
.related-tools a { font-size: 0.82rem; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.related-tools a:hover { color: var(--heat); border-bottom-color: var(--heat); }

.affiliate-disclaimer {
  max-width: 86ch;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  line-height: 1.55;
}
.affiliate-disclaimer strong { color: var(--ink); font-weight: 500; }

.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  align-items: baseline;
  margin-top: 1.2rem;
}
.foot-mark { margin: 0; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.foot-in .mono { font-size: 0.6875rem; color: var(--muted); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--heat); }

/* ---------- plan svg ---------- */

.plan-grid { stroke: rgba(219, 232, 222, 0.08); stroke-width: 1; }
.plan-wall { fill: none; stroke: var(--line-2); stroke-width: 2; }
.plan-cabin { fill: rgba(201, 138, 85, 0.26); stroke: var(--cedar); stroke-width: 2; }
.plan-name { fill: var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none; }
.plan-cabin.is-fail { fill: rgba(226, 96, 74, 0.18); stroke: var(--fail); }
.plan-halo { fill: none; stroke: var(--cedar); stroke-width: 1; stroke-dasharray: 4 4; opacity: 0.7; }
.plan-halo.is-fail { stroke: var(--fail); }
.plan-door { stroke: var(--ink); stroke-width: 2; pointer-events: none; }
.plan-swing { fill: rgba(219, 232, 222, 0.06); stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.plan-swing.is-fail { fill: rgba(226, 96, 74, 0.08); stroke: var(--fail); }
.plan-label { fill: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; pointer-events: none; }
.plan-dim { stroke: var(--muted); stroke-width: 1; }
.plan-panel { fill: var(--ground); stroke: var(--warn); stroke-width: 1.5; }
.plan-cable { stroke: var(--warn); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: 0.8; }
.plan-vent { stroke: var(--plunge); stroke-width: 2; }
.plan-north { fill: var(--muted); font-family: var(--mono); font-size: 11px; }

/* ---------- curve svg ---------- */

.curve-plot { fill: rgba(219, 232, 222, 0.02); }
.curve-grid { stroke: rgba(219, 232, 222, 0.09); stroke-width: 1; }
.curve-axis { stroke: var(--line-2); stroke-width: 1; }
.curve-tick { fill: var(--muted); font-family: var(--mono); font-size: 11px; }
.curve-target { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 5 4; }
.curve-air { fill: none; stroke: var(--heat); stroke-width: 2.4; }
.curve-bench { fill: none; stroke: var(--cedar); stroke-width: 2; stroke-dasharray: 6 4; }
.curve-play { stroke: var(--ink); stroke-width: 1; opacity: 0.7; }
.curve-dot-air { fill: var(--heat); }
.curve-dot-bench { fill: var(--cedar); }
.curve-phase { opacity: 0.55; }
.curve-phase.heat { fill: rgba(255, 122, 69, 0.08); }
.curve-phase.sit { fill: rgba(201, 138, 85, 0.07); }
.curve-phase.cool { fill: rgba(105, 183, 196, 0.07); }
.curve-note { fill: var(--warn); font-family: var(--mono); font-size: 11px; }

.hum-axis { stroke: var(--line-2); stroke-width: 1; }
.hum-grid { stroke: rgba(219, 232, 222, 0.07); stroke-width: 1; }
.hum-area { fill: rgba(105, 183, 196, 0.22); stroke: var(--plunge); stroke-width: 1.6; }
.hum-tick { fill: var(--muted); font-family: var(--mono); font-size: 11px; }
.hum-play { stroke: var(--ink); stroke-width: 1; opacity: 0.7; }

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

@media (max-width: 1100px) {
  .slider-grid { grid-template-columns: 1fr 1fr; gap: 0.9rem 1.4rem; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .method-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .session-card { justify-self: start; max-width: 520px; }
  .bench { grid-template-columns: 1fr; }
  .build { order: 1; }
  .stage { order: 2; }
  .session-readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .stage-head { flex-direction: column; gap: 0.35rem; }
  .stage-price { text-align: left; }
  .stage-price .mono { white-space: normal; }
  .plan-label { font-size: 16px; }
  .plan-name { font-size: 18px; }
  .curve-wrap { overflow-x: auto; }
  #curveSvg, #humiditySvg { min-width: 640px; }
  .chart-swipe { display: block; }
  .bar-in { flex-wrap: wrap; gap: 0.6rem 1rem; padding: 0.5rem 0; }
  .bar-tool { order: 4; }
  .bar-live { order: 5; margin-left: 0; }
  .reset { order: 3; margin-left: auto; }
  .social { display: none; }
  .presets { grid-template-columns: 1fr; }
  .seg.rooms button, .seg.power button { flex: 1 1 100%; }
  .seg.styles { grid-template-columns: 1fr 1fr; }
  .slider-grid { grid-template-columns: 1fr; }
  .field.two { grid-template-columns: 1fr; }
  .session-controls { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .pick { grid-template-columns: 40px minmax(0, 1fr); }
  .table-hint { display: block; }
  th, td { padding: 0.5rem 0.5rem; }
}

@media (max-width: 560px) {
  .mono { font-size: 0.75rem; }
  .preset span { font-size: 0.6875rem; }
  .seg button { font-size: 0.75rem; }
  .seg button span { font-size: 0.75rem; }
  .session-readout { grid-template-columns: 1fr 1fr; }
  .curve-head { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .scrub { flex-wrap: wrap; }
  .scrub input { flex: 1 1 100%; order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

.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;
}

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