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

/* Weather Gear: a cold-weather kit bench. Slate ground, glacier blue for
   structure, one high-vis orange for the action. */
:root {
  --ground: #0a1118;
  --ground-2: #0c151d;
  --panel: #101c26;
  --panel-2: #15242f;
  --panel-3: #1a2c38;
  --line: rgba(226, 240, 243, 0.14);
  --line-2: rgba(226, 240, 243, 0.34);
  --line-control: rgba(226, 240, 243, 0.42);
  --ink: #edf3f1;
  --muted: #9cb0b4;
  --ice: #9ed8e0;
  --ice-2: #67b6c3;
  --ice-dim: rgba(158, 216, 224, 0.12);
  --signal: #ff6a3d;
  --signal-2: #dd5229;
  --signal-dim: rgba(255, 106, 61, 0.13);
  --snow: #eaf3f2;
  --good: #8fce9a;
  --good-dim: rgba(143, 206, 154, 0.13);
  --warn: #f2c14e;
  --warn-dim: rgba(242, 193, 78, 0.13);
  --bad: #e0665a;
  --bad-dim: rgba(224, 102, 90, 0.13);
  --sand: #d2b48a;
  --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; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
main section[id] { scroll-margin-top: 78px; }

body {
  margin: 0;
  background-color: var(--ground);
  background-image:
    repeating-linear-gradient(0deg, rgba(158, 216, 224, 0.035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(158, 216, 224, 0.035) 0 1px, transparent 1px 72px),
    radial-gradient(circle at 86% -8%, rgba(158, 216, 224, 0.15), transparent 42%),
    radial-gradient(circle at 4% 38%, rgba(255, 106, 61, 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(--signal); 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(--ice); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 14px; background: var(--signal); 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;
}

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

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }

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

.bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

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

.brand {
  display: flex; flex-direction: column; gap: 0.05rem;
  text-decoration: none; line-height: 1;
}
.brand-a {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.04em;
  text-transform: uppercase; font-stretch: 112%;
}
.brand-b {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ice);
}

.bar-tool { margin-left: auto; color: var(--muted); }
.bar-live {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.bar-live b { color: var(--ice); font-size: 0.95rem; letter-spacing: 0.02em; }

.reset {
  background: none; border: 1px solid var(--line-2); color: var(--muted);
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 0.55rem 0.7rem;
}
.reset:hover { color: var(--ink); border-color: var(--line-control); }

.social { display: flex; gap: 0.25rem; }
.social a {
  width: 30px; height: 30px; display: grid; place-items: center;
  color: var(--muted); text-decoration: none;
}
.social a:hover { color: var(--ice); }
.social svg { width: 17px; height: 17px; }

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

.intro { padding: clamp(2.2rem, 5vw, 4.2rem) 0 clamp(2rem, 4.5vw, 3.6rem); }

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

.intro h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  font-weight: 800;
  max-width: 16ch;
  font-stretch: 110%;
  text-wrap: balance;
}

.last-checked {
  margin-top: 1rem; color: var(--muted);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-copy > p:not(.last-checked):not(.hero-note) {
  margin-top: 1.2rem; max-width: 56ch; color: var(--muted);
}

.intro-specs {
  display: flex; flex-wrap: wrap; gap: 0;
  list-style: none; margin: 1.8rem 0 0; padding: 0;
  border-top: 1px solid var(--line);
}
.intro-specs li {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.8rem 1.4rem 0.8rem 0; margin-right: 1.4rem;
  border-right: 1px solid var(--line);
}
.intro-specs li:last-child { border-right: 0; }
.intro-specs .mono { color: var(--muted); font-size: 0.6rem; }
.intro-specs b { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }

.outfit-card {
  margin: 0;
  border: 1px solid var(--line-2);
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
}
.card-head {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 0.6rem;
}
.card-type {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1rem 0.2rem; font-size: 1.05rem; font-weight: 600;
}
.card-dot { width: 5px; height: 5px; background: var(--ice); }
.card-gauge { display: block; width: 100%; height: auto; padding: 0.2rem 0.5rem 0; }
.gauge-bg { fill: var(--panel-3); }
.gauge-fill { fill: var(--ice); transition: width 0.35s ease; }
.gauge-label { fill: var(--muted); font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.gauge-value { fill: var(--ink); font-family: var(--sans); font-size: 18px; font-weight: 700; }
.gauge-tick { fill: var(--panel-3); stroke: var(--line-2); stroke-width: 1; }
.gauge-tick.on { fill: var(--ice); stroke: var(--ice); }
.card-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  margin: 0; border-top: 1px solid var(--line);
}
.card-grid > div { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
.card-grid > div:nth-child(odd) { border-right: 1px solid var(--line); }
.card-grid dt { color: var(--muted); font-size: 0.58rem; margin-bottom: 0.2rem; }
.card-grid dd { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.card-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 0.8rem 1rem; color: var(--muted);
}
.card-foot b { color: var(--ice); font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.02em; text-transform: uppercase; }

/* ---------- section grammar ---------- */

.sec-head {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.2rem, 4vw, 4rem);
  align-items: start;
  padding-top: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: clamp(1.2rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line);
}
.sec-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-stretch: 108%; }
.sec-head p { color: var(--muted); max-width: 62ch; }
.sec-num {
  display: inline-block; margin-right: 0.7rem; color: var(--ice);
  font-family: var(--mono); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.12em; vertical-align: 0.35em;
}

/* ---------- presets ---------- */

.presets {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-bottom: 1rem;
}
.preset {
  display: flex; flex-direction: column; gap: 0.1rem;
  padding: 0.55rem 0.8rem; text-align: left;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--ink);
}
.preset b { font-size: 0.82rem; font-weight: 600; }
.preset span { color: var(--muted); font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.04em; }
.preset:hover { border-color: var(--line-control); }
.preset[aria-pressed="true"] { border-color: var(--ice); background: var(--ice-dim); }

/* ---------- day ---------- */

.day-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.field {
  background: var(--panel);
  padding: 0.95rem 1rem 1.05rem;
  min-width: 0;
}
.field-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 0.8rem; margin-bottom: 0.55rem;
}
.field-head.second { margin-top: 0.8rem; }
.field-head label, .field-head > .mono {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink);
}
.field-head output {
  font-family: var(--mono); font-size: 0.82rem; color: var(--ice);
  letter-spacing: 0.02em;
}
.field-head .sub { color: var(--muted); }
.hint {
  display: block; margin-top: 0.55rem;
  color: var(--muted); font-size: 0.78rem; line-height: 1.45;
}
.hint strong { color: var(--ink); font-weight: 600; }

.seg { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.seg button {
  padding: 0.42rem 0.62rem; min-height: 36px;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--muted); font-size: 0.78rem; line-height: 1.2;
}
.seg button:hover { color: var(--ink); border-color: var(--line-control); }
.seg button[aria-pressed="true"] {
  background: var(--ice); color: var(--ground); border-color: var(--ice); font-weight: 600;
}

input[type="range"] {
  width: 100%; height: 28px; margin: 0; background: transparent;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; background: var(--line-2);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; margin-top: -6px;
  background: var(--ice); border: 2px solid var(--ground);
  border-radius: 50%;
}
input[type="range"]::-moz-range-track { height: 4px; background: var(--line-2); }
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; background: var(--ice);
  border: 2px solid var(--ground); border-radius: 50%;
}
input[type="range"]:focus-visible { outline-offset: 2px; }

/* ---------- the form bench ---------- */

.form-sec { padding-bottom: clamp(2rem, 4vw, 3.2rem); }

.bench {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}

.stage {
  background:
    radial-gradient(circle at 50% 18%, rgba(158, 216, 224, 0.1), transparent 46%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 0.9rem 1rem 1rem;
  min-width: 0;
}
.stage-top {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.form-wrap {
  margin: 0; border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, rgba(158, 216, 224, 0.045) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(158, 216, 224, 0.045) 0 1px, transparent 1px 48px),
    var(--ground-2);
}
.form-svg { display: block; width: 100%; height: auto; max-height: 76vh; }
.form-cap {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0.7rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.56rem;
}
.stage-btns { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.85rem; }

/* form figure */
.stage-grid line { stroke: var(--line); stroke-dasharray: 3 6; }
.stage-grid .axis { stroke-dasharray: 2 9; opacity: 0.7; }
.stage-grid ellipse { fill: rgba(158, 216, 224, 0.05); stroke: var(--line-2); }

.body-fig circle, .body-fig rect, .body-fig path {
  fill: #223340; stroke: #3d5868; stroke-width: 2;
}
.body-fig polyline { fill: none; stroke: #223340; stroke-width: 26; stroke-linecap: round; }
.body-fig line { stroke: #223340; stroke-width: 36; stroke-linecap: round; }

.weather-layer { pointer-events: none; }
.rain { stroke: rgba(158, 216, 224, 0.55); stroke-width: 1.4; animation: rain-fall 1.15s linear infinite; }
.snow { fill: rgba(234, 243, 242, 0.82); animation: snow-fall 3.6s linear infinite; }
.windline {
  fill: none; stroke: rgba(158, 216, 224, 0.4); stroke-width: 1.4;
  stroke-linecap: round; stroke-dasharray: 10 16;
  animation: wind-drift 2.4s linear infinite;
}
@keyframes rain-fall {
  from { transform: translateY(-30px); }
  to { transform: translateY(80px); }
}
@keyframes snow-fall {
  from { transform: translateY(-20px) translateX(0); }
  50% { transform: translateY(40px) translateX(14px); }
  to { transform: translateY(100px) translateX(-6px); }
}
@keyframes wind-drift {
  from { transform: translateX(-40px); }
  to { transform: translateX(60px); }
}

.wear {
  opacity: 0; pointer-events: none;
  transform-box: fill-box; transform-origin: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.wear.on { opacity: 1; pointer-events: auto; cursor: pointer; }
.wear.on:hover .garment { filter: brightness(1.14); }

.wear .garment {
  fill: var(--tone, #7c8f96);
  stroke: rgba(4, 10, 14, 0.45);
  stroke-width: 1.5;
  transition: fill 0.25s ease;
}
.wear .garment.lighter { filter: brightness(1.16); }
.wear .limb { fill: none; stroke: var(--tone, #7c8f96); stroke-width: 38; stroke-linecap: round; }
.wear .jacket-limb { stroke-width: 32; }
.wear .strap { fill: none; stroke: var(--tone, #7c8f96); stroke-width: 10; stroke-linecap: round; }
.wear .zip { fill: none; stroke: rgba(4, 10, 14, 0.5); stroke-width: 2; stroke-dasharray: 4 4; }
.wear .band { fill: rgba(4, 10, 14, 0.34); }
.wear .heel { fill: rgba(4, 10, 14, 0.5); }

.form-svg.is-wet .wear { filter: brightness(0.74) saturate(0.82); }
.form-svg.is-cold .body-fig { filter: brightness(0.88) hue-rotate(-8deg); }

/* ---------- kit panel ---------- */

.kit-panel {
  background: var(--panel);
  padding: 0.9rem 1rem 1rem;
  min-width: 0;
}
.slots { border-top: 1px solid var(--line); }
.slot {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 0.6rem; align-items: center;
  width: 100%; padding: 0.65rem 0; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font: inherit;
}
.slot-label {
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.slot-body { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; }
.slot-name {
  font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; overflow-wrap: anywhere;
}
a.slot-name:hover { color: var(--ice); }
.slot-note { color: var(--muted); font-size: 0.7rem; }
.slot-side { display: flex; align-items: center; gap: 0.35rem; }
.slot.open { cursor: pointer; }
.slot.open:hover .slot-name { color: var(--ice); }
.slot.open .slot-name { color: var(--muted); font-weight: 400; }
.slot .remove {
  background: none; border: 1px solid var(--line); color: var(--muted);
  font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.28rem 0.35rem;
}
.slot .remove:hover { color: var(--bad); border-color: var(--bad); }

.score-chip {
  display: inline-block; min-width: 2.1rem; text-align: center;
  padding: 0.18rem 0.3rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.02em;
  border: 1px solid var(--line-2); color: var(--muted);
}
.score-chip.legendary { color: var(--warn); border-color: var(--warn); background: var(--warn-dim); }
.score-chip.epic { color: var(--ice); border-color: var(--ice); background: var(--ice-dim); }
.score-chip.rare { color: var(--good); border-color: var(--good); background: var(--good-dim); }
.score-chip.common { color: var(--muted); border-color: var(--line-2); background: var(--panel-2); }
.score-chip.open { color: var(--muted); border-color: var(--line); }

.kit-readout { margin-top: 1rem; }
.readout-top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  padding-bottom: 0.7rem;
}
.readout-score { display: flex; align-items: baseline; gap: 0.5rem; }
.readout-score b {
  font-size: 2.8rem; font-weight: 800; letter-spacing: -0.05em; line-height: 0.9;
  color: var(--ice); font-stretch: 112%;
}
.readout-score span {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.readout-note { color: var(--muted); font-size: 0.8rem; text-align: right; }
.readout-bar { height: 6px; background: var(--panel-3); border: 1px solid var(--line); }
.readout-bar i { display: block; height: 100%; background: var(--ice); transition: width 0.35s ease; }
.readout-totals {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--muted);
}
.readout-totals b { color: var(--ink); font-weight: 500; }
.flags { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.flags li {
  position: relative; padding-left: 1rem; color: var(--muted);
  font-size: 0.8rem; line-height: 1.45;
}
.flags li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 5px; height: 5px; background: var(--warn);
}
.flags li.none::before { background: var(--good); }
.flags li.none { color: var(--good); }

/* ---------- wardrobe ---------- */

.wardrobe { margin-top: 1.4rem; }
.wardrobe-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line);
}
.wardrobe-head h3 { font-size: 1.1rem; letter-spacing: -0.02em; }
.wardrobe-head .mono { color: var(--muted); }
.tabs {
  display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line);
  position: sticky; top: var(--bar-h, 64px); z-index: 10;
  background: var(--ground);
}
.tabs button {
  padding: 0.65rem 0.9rem; min-height: 40px; background: none; border: 0;
  border-bottom: 2px solid transparent; color: var(--muted);
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-pressed="true"] { color: var(--ice); border-bottom-color: var(--ice); }
.rack-hint { margin: 0.6rem 0 0.8rem; color: var(--muted); font-size: 0.78rem; }
.rack-status {
  margin: -0.3rem 0 0.8rem; color: var(--ice);
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rack {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.card {
  display: flex; flex-direction: column; gap: 0.45rem;
  background: var(--panel); padding: 0.8rem 0.85rem 0.85rem;
  min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.card-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: #dfe8e8; border: 1px solid var(--line-2);
  display: grid; place-items: center;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card-media.noimg img { display: none; }
.card-fallback { display: none; width: 56px; height: 56px; color: #52696f; }
.card-media.noimg .card-fallback { display: block; }
.rank { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.12em; color: var(--muted); }
.card h4 { font-size: 0.94rem; line-height: 1.18; letter-spacing: -0.015em; }
.card h4 span { display: block; margin-top: 0.12rem; color: var(--muted); font-family: var(--mono); font-size: 0.54rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; }
.card-spec { color: var(--muted); font-size: 0.74rem; line-height: 1.45; flex: 1; }
.card-meta {
  display: flex; justify-content: space-between; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.03em; color: var(--muted);
}
.card-meta b { color: var(--ink); font-weight: 500; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.wear-btn {
  min-height: 36px;
}
.card-actions .wear-btn {
  padding: 0.4rem 0.6rem; background: var(--panel-3); border: 1px solid var(--line-2);
  color: var(--ice); border-color: var(--ice-2); font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card-actions .wear-btn:hover { border-color: var(--ice); color: var(--ice); }
.card-actions .wear-btn[aria-pressed="true"] { background: var(--ice); color: var(--ground); border-color: var(--ice); }
.card-link {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.card-link:hover { color: var(--ice); }

/* ---------- outing ---------- */

.outing { padding-bottom: clamp(2rem, 4vw, 3.2rem); }
.outing-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0.8rem;
}
.outing-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; }
.scrub-label { color: var(--muted); }
.outing-controls input[type="range"] { width: min(240px, 40vw); }
.outing-controls output {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--ice);
}
.legend { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: 0.75rem; }
.legend span { display: flex; align-items: center; gap: 0.35rem; }
.swatch { display: inline-block; width: 18px; height: 2px; }
.swatch.comfort { background: var(--ice); }
.swatch.wetline { background: var(--signal); }
.swatch.sweatline { background: var(--warn); }

.chart-wrap { margin: 0; border: 1px solid var(--line); background: var(--panel); }
#simSvg { display: block; width: 100%; height: auto; }
.chart-swipe { display: none; padding: 0.4rem 0.7rem; color: var(--muted); border-top: 1px solid var(--line); }

.narration {
  margin-top: 0.9rem; font-size: 1.05rem; line-height: 1.5;
  max-width: 78ch; color: var(--ink);
}
.sim-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin-top: 1rem;
}
.sim-stat { background: var(--panel); padding: 0.75rem 0.85rem; }
.sim-stat span { display: block; color: var(--muted); font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; }
.sim-stat b { display: block; margin-top: 0.2rem; font-size: 0.95rem; font-weight: 600; }

/* chart internals */
.chart-grid line { stroke: var(--line); stroke-dasharray: 2 6; }
.chart-axis { fill: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; }
.chart-band { fill: rgba(224, 102, 90, 0.05); }
.chart-comfort { fill: none; stroke: var(--ice); stroke-width: 2.4; }
.chart-comfort-area { fill: rgba(158, 216, 224, 0.09); }
.chart-wet { fill: none; stroke: var(--signal); stroke-width: 2; stroke-dasharray: 6 4; }
.chart-sweat { fill: none; stroke: var(--warn); stroke-width: 1.8; stroke-dasharray: 2 4; }
.chart-cursor { stroke: var(--snow); stroke-width: 1; opacity: 0.7; }
.chart-dot { fill: var(--ice); stroke: var(--ground); stroke-width: 2; }
.chart-threshold { stroke: var(--bad); stroke-width: 1; stroke-dasharray: 4 5; opacity: 0.8; }

/* ---------- your loadout inventory ---------- */

.picks { padding-bottom: clamp(2rem, 4vw, 3.2rem); }

.inventory {
  border: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(158, 216, 224, 0.07), transparent 140px),
    repeating-linear-gradient(0deg, rgba(158, 216, 224, 0.03) 0 1px, transparent 1px 26px),
    var(--panel);
}
.inv-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem 1.4rem; align-items: center;
  padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line-2);
}
.inv-title { display: flex; align-items: baseline; gap: 0.6rem; }
.inv-title .mono { color: var(--muted); }
.inv-title b {
  font-size: 2.4rem; font-weight: 800; line-height: 0.85; letter-spacing: -0.05em;
  color: var(--ice); font-stretch: 112%;
}
.inv-grade {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.inv-meta {
  color: var(--muted); font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.04em; line-height: 1.6;
}
.inv-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.inv-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  background: var(--panel);
}
.inv-slot {
  position: relative; display: flex; flex-direction: column; gap: 0.45rem;
  padding: 0.75rem 0.75rem 0.8rem; min-width: 0;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-top: 2px solid var(--rarity, var(--line-2));
}
.inv-slot.legendary { --rarity: var(--warn); }
.inv-slot.epic { --rarity: var(--ice); }
.inv-slot.rare { --rarity: var(--good); }
.inv-slot.common { --rarity: #7d9297; }
.inv-slot::before,
.inv-slot::after {
  content: ""; position: absolute; width: 9px; height: 9px;
  border-color: var(--rarity, var(--line-2)); opacity: 0.75; pointer-events: none;
}
.inv-slot::before { top: 5px; left: 5px; border-top: 1px solid; border-left: 1px solid; }
.inv-slot::after { bottom: 5px; right: 5px; border-bottom: 1px solid; border-right: 1px solid; }

.inv-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.inv-top .mono { color: var(--muted); font-size: 0.62rem; }
.inv-fit {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em;
  color: var(--rarity); border: 1px solid var(--rarity); padding: 0.08rem 0.3rem;
}
.inv-icon {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: #dfe8e8; border: 1px solid var(--line-2);
  display: grid; place-items: center;
}
.inv-icon img {
  width: 100%; height: 100%; object-fit: contain;
  mix-blend-mode: multiply;
}
.inv-icon.noimg img { display: none; }
.inv-fallback { display: none; width: 64px; height: 64px; color: #52696f; }
.inv-icon.noimg .inv-fallback { display: block; }

.inv-item h3 {
  font-size: 0.9rem; line-height: 1.2; letter-spacing: -0.015em;
  margin: 0; overflow-wrap: anywhere;
}
.inv-item p { margin: 0.12rem 0 0; color: var(--muted); font-size: 0.7rem; }

.inv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 0.55rem; }
.stat { display: grid; grid-template-columns: 44px 1fr 20px; gap: 0.3rem; align-items: center; }
.stat span {
  font-family: var(--mono); font-size: 0.45rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.stat i { display: block; height: 4px; background: var(--panel-3); border: 1px solid var(--line); }
.stat i b { display: block; height: 100%; background: var(--rarity); }
.stat em {
  font-family: var(--mono); font-style: normal; font-size: 0.52rem;
  color: var(--muted); text-align: right;
}

.inv-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 0.4rem;
  margin-top: auto; padding-top: 0.4rem; border-top: 1px solid var(--line);
}
.inv-bottom b { font-size: 0.88rem; }
.inv-bottom a {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.inv-bottom a:hover { color: var(--ice); }
.inv-bottom .unequip {
  background: none; border: 1px solid var(--line); color: var(--muted);
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.25rem 0.3rem;
}
.inv-bottom .unequip:hover { color: var(--bad); border-color: var(--bad); }

.inv-slot.open { --rarity: var(--line-2); }
.inv-empty {
  flex: 1; display: grid; place-items: center; gap: 0.15rem;
  min-height: 230px; padding: 1rem 0.5rem;
  background: none; border: 1px dashed var(--line-2); color: var(--muted);
}
.inv-empty:hover { border-color: var(--ice); color: var(--ink); }
.inv-plus { font-size: 1.7rem; line-height: 1; color: var(--ice); }
.inv-empty em { font-style: normal; font-size: 0.7rem; }

.inv-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  padding: 0.65rem 1.1rem; border-top: 1px solid var(--line-2);
  color: var(--muted); font-size: 0.56rem;
}
.inv-key { display: flex; align-items: center; gap: 0.3rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; }
.k { display: inline-block; width: 10px; height: 10px; border: 1px solid var(--line-2); }
.k.legendary { border-color: var(--warn); background: var(--warn-dim); }
.k.epic { border-color: var(--ice); background: var(--ice-dim); }
.k.rare { border-color: var(--good); background: var(--good-dim); }
.k.common { border-color: #7d9297; background: var(--panel-2); }
.inv-note { margin-left: auto; font-size: 0.7rem; }

.swaps { margin-top: 1.1rem; }
.swaps-head {
  display: grid; grid-template-columns: 200px minmax(0, 1fr);
  gap: 1rem; align-items: start;
  padding-top: 0.9rem; border-top: 1px solid var(--line); margin-bottom: 0.5rem;
}
.swaps-head h3 { font-size: 1rem; letter-spacing: -0.01em; }
.swaps-head p { color: var(--muted); font-size: 0.8rem; max-width: 64ch; }
.swap-list { border-top: 1px solid var(--line); }
.swap {
  display: grid; grid-template-columns: 58px 54px minmax(0, 1fr) 120px;
  gap: 0.8rem; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px solid var(--line);
}
.swap-slot { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.swap-icon { width: 54px; height: 54px; background: #dfe8e8; border: 1px solid var(--line-2); overflow: hidden; }
.swap-icon img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.swap-icon svg { display: none; width: 100%; height: 100%; padding: 8px; color: #52696f; }
.swap-body h4 { margin: 0; font-size: 0.88rem; letter-spacing: -0.01em; }
.swap-body h4 a { text-decoration: none; }
.swap-body h4 a:hover { color: var(--ice); }
.swap-body p { color: var(--muted); font-size: 0.7rem; }
.swap-body p.swap-compare { color: var(--ice); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.03em; }
.swap-act { justify-self: end; }
.swap-act button {
  padding: 0.4rem 0.55rem; background: var(--panel-2); border: 1px solid var(--line-2);
  color: var(--ink); font-family: var(--mono); font-size: 0.54rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.swap-act button:hover { border-color: var(--ice); color: var(--ice); }
.swap-none {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--line);
  color: var(--good); font-size: 0.82rem;
}
.swap-none::before { content: "✓"; font-family: var(--mono); font-size: 0.9rem; }


/* ---------- vertical loadout beside the form ---------- */

.loadout-head { padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.loadout-head h3 { font-size: 1.45rem; letter-spacing: -0.03em; margin-bottom: 0.4rem; }
.loadout-head .inv-title { margin-bottom: 0.3rem; }
.loadout-head .inv-actions { margin-top: 0.6rem; }
.loadout-panel .inv-grid {
  grid-template-columns: 1fr; border: 0; background: none;
  margin-top: 0.7rem;
}
.loadout-panel .inv-slot {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  grid-template-areas:
    "top top"
    "icon item"
    "stats stats"
    "bottom bottom";
  gap: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-top: 2px solid var(--rarity, var(--line-2));
  margin-bottom: 0.5rem;
  padding: 0.6rem 0.65rem 0.65rem;
}
.loadout-panel .inv-top { grid-area: top; }
.loadout-panel .inv-icon { grid-area: icon; aspect-ratio: 1 / 1; }
.loadout-panel .inv-item { grid-area: item; align-self: center; }
.loadout-panel .inv-stats { grid-area: stats; grid-template-columns: 1fr; gap: 0.22rem; }
.loadout-panel .stat { grid-template-columns: 64px 1fr 26px; }
.loadout-panel .stat span { font-size: 0.6875rem; }
.loadout-panel .stat em { font-size: 0.62rem; }
.loadout-panel .inv-bottom { grid-area: bottom; }
.loadout-panel .inv-slot.open { display: block; }
.loadout-panel .inv-empty {
  width: 100%; min-height: 82px; padding: 0.6rem; border: 1px dashed var(--line-2);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.2rem 0.5rem; text-align: center;
}
.loadout-panel .inv-empty .inv-plus { font-size: 1.3rem; }
.loadout-panel .inv-empty em { width: 100%; }
.loadout-panel .inv-foot {
  margin-top: 0.7rem; padding: 0.55rem 0 0;
  border-top: 1px solid var(--line-2);
}
.loadout-panel .scale-note {
  width: 100%; margin-top: 0.2rem; color: var(--muted);
  font-size: 0.66rem; line-height: 1.4;
}


/* ---------- outing graph in the stage column ---------- */

.stage .outing {
  margin-top: 1.1rem; padding: 0.9rem 0 0;
  border-top: 1px solid var(--line);
}
.outing-head h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.outing-head p {
  margin-top: 0.4rem; max-width: 62ch; color: var(--muted);
  font-size: 0.8rem; line-height: 1.5;
}
.stage .outing-top { margin-top: 0.7rem; }
.stage .outing .chart-wrap { margin-top: 0.6rem; }
.stage .outing .narration { margin-top: 0.7rem; font-size: 0.92rem; }
.stage .outing .sim-stats { margin-top: 0.7rem; }


.saved-mount[data-tool="kit"] { margin-top: 0.8rem; }
.saved-mount[data-tool="kit"] .saved-resume { margin-top: 0.5rem; padding-top: 0.6rem; }
.saved-mount[data-tool="kit"] .saved-resume p { margin-bottom: 0.4rem; font-size: 0.78rem; }

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

.catalogue { padding-bottom: clamp(2rem, 4vw, 3.2rem); }
.table-filters { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.7rem; }
.table-filters button {
  padding: 0.38rem 0.6rem; background: var(--panel); border: 1px solid var(--line);
  color: var(--muted); font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.table-filters button:hover { color: var(--ink); }
.table-filters button[aria-pressed="true"] { background: var(--ice); color: var(--ground); border-color: var(--ice); }

.table-hint { color: var(--muted); margin-bottom: 0.5rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
caption { text-align: left; }
thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--panel-2); text-align: left;
  padding: 0.65rem 0.7rem; border-bottom: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 0.56rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
tbody td {
  padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line);
  font-size: 0.8rem; vertical-align: top;
}
tbody tr:hover td { background: var(--panel-2); }
tbody a { text-decoration: none; }
tbody a:hover { color: var(--ice); }
td.num, th.num { font-family: var(--mono); font-size: 0.7rem; white-space: nowrap; }
td.feat { color: var(--muted); max-width: 340px; }
td .cat-tag {
  font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.table-wrap + .chart-note, .chart-note { margin-top: 0.6rem; color: var(--muted); font-size: 0.76rem; max-width: 90ch; }

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

.method { padding: 0 0 clamp(3rem, 6vw, 5rem); }
.method details { border-top: 1px solid var(--line-2); }
.method summary {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; cursor: pointer; list-style: none;
  color: var(--ink);
}
.method summary::-webkit-details-marker { display: none; }
.method summary .mono:last-child { color: var(--muted); }
.method-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 1rem 0 0;
}
.method-grid h3 { font-size: 1.02rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.method-grid p { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.7rem; max-width: 52ch; }
.weights { list-style: none; margin: 0.6rem 0 0.9rem; padding: 0; border-top: 1px solid var(--line); }
.weights li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.4rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.68rem; color: var(--muted);
}
.weights li span:last-child { color: var(--ice); }
.limits, .sources { list-style: none; margin: 0; padding: 0; }
.limits li {
  position: relative; padding: 0.45rem 0 0.45rem 0.9rem;
  border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.82rem;
}
.limits li::before {
  content: ""; position: absolute; left: 0; top: 1rem;
  width: 4px; height: 4px; background: var(--ice);
}
.limits b { color: var(--ink); font-weight: 600; }
.sources li { border-bottom: 1px solid var(--line); padding: 0.35rem 0; font-size: 0.8rem; }
.sources a { color: var(--muted); text-decoration: none; }
.sources a:hover { color: var(--ice); }
.fine { color: var(--muted); font-size: 0.76rem; margin-top: 0.8rem; }

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

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 0.9rem; border: 1px solid var(--signal);
  background: var(--signal); color: #1a0d08;
  font-family: var(--mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  min-height: 44px;
}
.btn:hover { background: var(--signal-2); border-color: var(--signal-2); }
.btn svg { flex: none; transition: transform 0.18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn.ghost { background: none; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ice); color: var(--ice); }

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

.foot { border-top: 1px solid var(--line); padding: 1.6rem 0 2.4rem; }
.related-tools { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1rem; }
.related-title {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem;
}
.related-tools ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.related-tools a { text-decoration: none; color: var(--muted); font-size: 0.86rem; }
.related-tools a:hover { color: var(--ice); }
.affiliate-disclosure {
  color: var(--muted); font-size: 0.74rem; line-height: 1.55;
  max-width: 100ch; margin-bottom: 1.2rem;
}
.affiliate-disclosure strong { color: var(--ink); font-weight: 600; }
.foot-in {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.4rem;
  color: var(--muted);
}
.foot-mark { font-weight: 700; color: var(--ink); }
.foot-in a { text-decoration: none; }
.foot-in a:hover { color: var(--ice); }


/* ---------- accessibility floor and control contrast ---------- */

.rank, .card-meta, .card-link, .card-head .mono, .inv-key, .rack-status,
.intro-specs .mono, .cat-tag, .card h4 span, thead th, .sim-stat span,
.inv-foot, .preset span, .card-grid dt, .table-filters button,
.inv-top .mono, .inv-bottom a, .inv-bottom .unequip, .swap-compare, .swap-slot {
  font-size: 0.6875rem;
}

.seg button, .tabs button, .table-filters button, .preset, .card-actions .wear-btn,
.swap-act button, .inv-bottom .unequip, .reset {
  min-height: 44px;
}

.seg button, .preset, .table-filters button {
  border-color: var(--line-control);
}
input[type="range"]::-webkit-slider-runnable-track { background: var(--line-control); }
input[type="range"]::-moz-range-track { background: var(--line-control); }

.chart-axis { font-size: 12px; }
.gauge-label { font-size: 12px; }

.chart-wrap:focus-visible, .table-wrap:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

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

@media (max-width: 1080px) {
  .bench { grid-template-columns: 1fr; }
  .form-svg { max-height: none; }
  .day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .method-grid > div:last-child { grid-column: 1 / -1; }
  .inv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; align-items: start; }
  .outfit-card { max-width: 480px; }
  .sec-head { grid-template-columns: 1fr; gap: 0.7rem; }
  .sim-stats { grid-template-columns: 1fr 1fr; }
  .inv-head { grid-template-columns: 1fr; }
  .inv-actions { justify-self: start; }
  .inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swaps-head { grid-template-columns: 1fr; }
  .swap { grid-template-columns: 54px minmax(0, 1fr); }
  .swap-act { grid-column: 2; justify-self: start; }
}

@media (max-width: 700px) {
  .bar-in { flex-wrap: wrap; gap: 0.5rem 0.8rem; padding: 0.5rem 0; }
  .brand { flex: 1 1 auto; }
  .social { display: none; }
  .bar-tool { order: 4; margin-left: 0; }
  .bar-live { order: 3; margin-left: auto; }
  .reset { order: 5; }
  .intro h1 { max-width: 14ch; }
  .day-grid { grid-template-columns: 1fr; }
  .form-cap { flex-direction: column; gap: 0.2rem; }
  .outing-controls input[type="range"] { width: 100%; }
  .chart-wrap { overflow-x: auto; }
  #simSvg { min-width: 720px; }
  .chart-swipe { display: block; }
  .table-hint { display: block; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid > div:last-child { grid-column: auto; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .mono { font-size: 0.75rem; }
  .intro-specs { display: grid; grid-template-columns: 1fr 1fr; }
  .intro-specs li { margin-right: 0; padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .intro-specs li:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 1rem; }
  .inv-grid { grid-template-columns: 1fr; }
  .inv-empty { min-height: 170px; }
}

@media (max-width: 460px) {
  .card-grid { grid-template-columns: 1fr; }
  .card-grid > div:nth-child(odd) { border-right: 0; }
  .sim-stats { grid-template-columns: 1fr; }
  .tabs button { padding: 0.55rem 0.6rem; font-size: 0.6875rem; }
  .mono, .intro-specs .mono { font-size: 0.75rem; }
  .inv-note { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rain, .snow, .windline { animation: none !important; }
  .wear, .readout-bar i, .btn svg { transition: none; }
}

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