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

/* The Toe Room: a fitting bench on kraft paper. The sheet is graph paper, the
   published width is measured blue, a clear fit is olive, and clay is reserved
   for a width that is narrower than the foot. Nothing here is drawn to look
   roomier than the maker's own number. */
:root {
  --ground: #e9e1d0;
  --ground-2: #e2d8c4;
  --sheet: #f6f0e2;
  --sheet-2: #f1e9d8;
  --ink: #1d1913;
  --muted: #6c6253;
  --line: rgba(29, 25, 19, 0.16);
  --line-2: rgba(29, 25, 19, 0.34);
  --line-3: rgba(29, 25, 19, 0.55);
  --measure: #2f6673;
  --measure-dim: rgba(47, 102, 115, 0.12);
  --fit: #4c6b39;
  --fit-dim: rgba(76, 107, 57, 0.13);
  --amber: #8a5e12;
  --amber-dim: rgba(176, 124, 36, 0.16);
  --clay: #a8452c;
  --clay-dim: rgba(168, 69, 44, 0.13);
  --action: #b14f35;
  --action-ink: #f8f1e3;
  --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);
  --label: 0.6875rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
main section[id] { scroll-margin-top: 84px; }
main section[tabindex="-1"]:focus { outline: none; }
body {
  margin: 0;
  background-color: var(--ground);
  background-image:
    repeating-linear-gradient(0deg, rgba(29, 25, 19, 0.035) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, rgba(29, 25, 19, 0.025) 0 1px, transparent 1px 96px);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--sheet); }
* { 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(--measure); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 14px; background: var(--ink); color: var(--sheet);
  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: var(--label); 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; }
ul, ol { margin: 0; padding: 0; }

/* ---------- bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 94%, transparent);
  border-bottom: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
}
.bar-in { display: flex; align-items: center; gap: 1.2rem; 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: var(--label); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--measure); }
.bar-tool { margin-left: auto; color: var(--muted); }
.bar-live { font-size: 0.85rem; color: var(--muted); }
.bar-live b { font-family: var(--mono); color: var(--ink); font-weight: 600; }
.social { display: flex; gap: 0.35rem; }
.social a {
  display: grid; place-items: center; width: 34px; height: 34px;
  color: var(--muted); text-decoration: none; border: 1px solid transparent;
}
.social svg { width: 17px; height: 17px; }
.social a:hover, .social a:focus-visible { color: var(--ink); border-color: var(--line-2); }
.reset {
  min-height: 44px; padding: 0 0.9rem; background: transparent; color: var(--ink);
  border: 1px solid var(--line-2); font-family: var(--mono); font-size: 0.6875rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.reset:hover { background: var(--ink); color: var(--sheet); }

/* ---------- hero ---------- */
.intro { padding: clamp(2.4rem, 5vw, 4.4rem) 0 clamp(1.6rem, 3vw, 2.4rem); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start; }
.intro h1 { font-size: clamp(2.35rem, 5vw, 4.4rem); font-weight: 800; font-stretch: 112%; max-width: 18ch; }
.last-checked {
  margin-top: 0.9rem; font-family: var(--mono); font-size: var(--label);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.intro-copy > p:not(.last-checked) { margin-top: 1rem; max-width: 56ch; color: #3b342a; }
.intro-specs { display: flex; flex-wrap: wrap; gap: 0 2rem; margin-top: 1.5rem; list-style: none; border-top: 1px solid var(--line-2); padding-top: 0.9rem; }
.intro-specs li { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.25rem 0; }
.intro-specs .mono { color: var(--muted); }
.intro-specs b { font-family: var(--mono); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em; }

/* fitting card */
.card {
  margin: 0; background: var(--sheet); border: 1px solid var(--line-3);
  padding: 0.55rem 1.1rem 1.1rem; position: relative;
  box-shadow: 4px 4px 0 rgba(29, 25, 19, 0.08);
}
.card::before {
  content: ""; position: absolute; left: 50%; top: -9px; width: 54px; height: 16px;
  transform: translateX(-50%); background: rgba(47, 102, 115, 0.18);
  border-left: 1px solid rgba(47, 102, 115, 0.28); border-right: 1px solid rgba(47, 102, 115, 0.28);
}
.card-head { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0 0.7rem; border-bottom: 1px solid var(--line-2); color: var(--muted); }
.card-foot { margin-top: 0.95rem; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.card-use { margin-top: 0.15rem; color: var(--muted); font-size: 0.92rem; }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0.9rem 0 0; border-top: 1px solid var(--line); }
.card-grid > div { padding: 0.65rem 0.7rem 0.65rem 0; border-bottom: 1px solid var(--line); }
.card-grid > div:nth-child(even) { padding-left: 0.7rem; border-left: 1px solid var(--line); }
.card-grid dt { color: var(--muted); }
.card-grid dd { margin: 0.2rem 0 0; font-family: var(--mono); font-size: 0.9rem; font-weight: 500; }
.card-link { text-decoration-color: var(--measure); text-underline-offset: 3px; }
.card-link:hover { color: var(--measure); }
.card-verdict { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.8rem; align-items: baseline; }
.card-verdict .mono { color: var(--muted); }
.card-verdict b { font-size: 0.92rem; text-align: right; }

/* note */
.note {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.6rem;
  border-top: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3);
  padding: 1rem 0; align-items: start;
}
.note-tag { color: var(--measure); white-space: nowrap; padding-top: 0.15rem; }
.note ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem 1.6rem; list-style: none; font-size: 0.9rem; color: #3b342a; }
.note li { padding-left: 1rem; position: relative; }
.note li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 1px; background: var(--measure); }

/* ---------- sections ---------- */
section { padding: clamp(2.6rem, 6vw, 5rem) 0; border-top: 1px solid var(--line-2); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1rem 3rem; align-items: end; margin-bottom: 1.6rem; }
.sec-head h2 { font-size: clamp(1.65rem, 2.8vw, 2.4rem); font-weight: 700; grid-column: 1; }
.sec-num { font-family: var(--mono); font-size: 0.7em; font-weight: 500; letter-spacing: 0.05em; color: var(--measure); margin-right: 0.5rem; }
.sec-head p { grid-column: 2; color: var(--muted); font-size: 0.95rem; max-width: 62ch; }

.presets { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.2rem; }
.preset {
  padding: 0.5rem 0.8rem; background: transparent; border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; flex-direction: column; gap: 0.1rem; text-align: left;
}
.preset span:last-child { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0; text-transform: none; color: var(--muted); }
.preset:hover, .preset[aria-pressed="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.preset:hover span:last-child, .preset[aria-pressed="true"] span:last-child { color: rgba(246, 240, 226, 0.72); }

/* fitting layout */
.fitting-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; }
.stage { border: 1px solid var(--line-2); background: var(--sheet); padding: 0.9rem 0.9rem 1rem; min-width: 0; }
.stage-head { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.stage-figure { margin: 0.6rem 0 0; }
#sheetSvg { width: 100%; height: auto; display: block; background: var(--sheet); }
.sheet { fill: none; stroke: var(--line-2); stroke-width: 1; }
.sheet-static line, .sheet-static .sheet-label { }
.heel-line { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 4 4; }
.sheet-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; fill: var(--muted); }
.foot { fill: #f4eddd; stroke: var(--ink); stroke-width: 1.6; }
.foot-detail { fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0.2; }
.foot-ball { stroke: var(--ink); stroke-width: 1; opacity: 0.14; stroke-dasharray: 2 3; }
.foot-width { stroke: var(--ink); stroke-width: 1.2; opacity: 0.62; }
.foot-width-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; fill: var(--ink); opacity: 0.7; }
.ruler line { stroke: var(--line-2); stroke-width: 1; }
.ruler line.major { stroke: var(--line-3); }
.ruler text { font-family: var(--mono); font-size: 9px; fill: var(--muted); }
.band-line { stroke: var(--measure); stroke-width: 2.4; }
.band-tick { stroke: var(--measure); stroke-width: 2.4; }
.band-drop { stroke: var(--measure); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.7; }
.band-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; fill: var(--measure); }
.band-open { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 5; }
.band-open-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; fill: var(--muted); }
.margin-label { font-family: var(--mono); font-size: 11px; font-weight: 600; }
.margin-good { fill: var(--fit); }
.margin-bad { fill: var(--clay); }
.margin-open { fill: var(--muted); }
.sheet-foot { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; fill: var(--ink); }
.sheet-shoe { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; fill: var(--measure); }
.sheet-note { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; fill: var(--muted); }
.stage-cap { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.55rem; border-top: 1px solid var(--line); color: var(--muted); }

.readouts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin-top: 0.7rem; }
.readout { padding: 0.6rem 0.7rem 0.65rem 0; display: grid; grid-template-columns: auto auto; gap: 0 0.4rem; align-items: baseline; }
.readout + .readout { border-left: 1px solid var(--line); padding-left: 0.7rem; }
.readout span:first-child { grid-column: 1 / -1; color: var(--muted); }
.readout b { font-family: var(--mono); font-size: 1.3rem; font-weight: 500; line-height: 1.1; }
.readout .unit { color: var(--muted); font-size: 0.6rem; }
.stage-read { margin-top: 0.7rem; font-size: 0.9rem; color: #3b342a; }

/* controls */
.controls { display: flex; flex-direction: column; border: 1px solid var(--line-2); background: var(--sheet-2); min-width: 0; }
.control-group { padding: 0.9rem 1rem 1.1rem; }
.control-group + .control-group { border-top: 1px solid var(--line-2); }
.control-head { display: flex; justify-content: space-between; gap: 0.8rem; align-items: baseline; padding-bottom: 0.6rem; margin-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.control-head h3 { font-size: 1.02rem; }
.control-head span { color: var(--muted); }
.field { margin-bottom: 1rem; }
.field:last-child { margin-bottom: 0; }
.field-head { display: flex; justify-content: space-between; gap: 0.8rem; align-items: baseline; margin-bottom: 0.35rem; }
.field-head label, .field-head .mono:first-child { font-size: 0.85rem; font-weight: 600; letter-spacing: 0; text-transform: none; font-family: var(--sans); }
.field-head output { font-family: var(--mono); font-size: 0.85rem; font-weight: 500; }
.field-head .mono:last-child { color: var(--muted); font-size: 0.62rem; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.two-up.stack { grid-template-columns: 1fr; gap: 0.9rem; }
.hint { margin-top: 0.35rem; font-size: 0.78rem; line-height: 1.45; color: var(--muted); }

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

.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip {
  min-height: 34px; padding: 0.3rem 0.65rem; background: transparent;
  border: 1px solid var(--line-2); color: var(--ink); font-size: 0.82rem;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.toggle {
  width: 100%; min-height: 44px; padding: 0.4rem 0.7rem; background: transparent;
  border: 1px solid var(--line-2); text-align: left; font-size: 0.85rem;
}
.toggle::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 0.5rem;
  border: 1px solid var(--ink); vertical-align: 1px;
}
.toggle[aria-pressed="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.toggle[aria-pressed="true"]::before { background: var(--sheet); border-color: var(--sheet); }
.help { padding: 0.9rem 1rem 1.1rem; border-top: 1px solid var(--line-2); }
.help .mono { color: var(--measure); margin-bottom: 0.35rem; }
.help p:last-child { font-size: 0.82rem; color: var(--muted); }

/* ---------- shelf rows ---------- */
.result-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.6rem 0; border-top: 1px solid var(--line-3); border-bottom: 1px solid var(--line); color: var(--muted); }
.rows { list-style: none; }
.shoe { border-bottom: 1px solid var(--line); padding: 1rem 0 1.1rem; }
.shoe-top { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: 0 1rem; align-items: center; }
.shoe-rank { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); align-self: start; padding-top: 1.1rem; }
.shoe-id { display: flex; align-items: center; gap: 0.95rem; min-width: 0; }
.shoe-thumb {
  flex: 0 0 104px; width: 104px; height: 78px; display: grid; place-items: center;
  background: #fbf8f1; border: 1px solid var(--line-2); overflow: hidden;
}
.shoe-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shoe-thumb:hover, .shoe-thumb:focus-visible { border-color: var(--measure); }
.shoe-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.5rem; min-width: 0; }
.shoe-name { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.shoe-name:hover { text-decoration: underline; text-decoration-color: var(--measure); text-underline-offset: 4px; }
.shoe-brand { color: var(--muted); font-size: 0.86rem; }
.shoe-size { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; padding: 0.12rem 0.4rem; border: 1px dashed var(--line-2); color: var(--measure); white-space: nowrap; }
.shoe-price { font-family: var(--mono); font-size: 0.85rem; text-align: right; }
.shoe-price small { display: block; font-size: 0.62rem; letter-spacing: 0.06em; color: var(--muted); }
.tag {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.16rem 0.5rem;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid currentColor;
}
.tag::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.tag-clear { color: var(--fit); background: var(--fit-dim); }
.tag-tight { color: var(--amber); background: var(--amber-dim); }
.tag-open { color: var(--measure); background: var(--measure-dim); }
.tag-fail { color: var(--clay); background: var(--clay-dim); }

.shoe-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0.4rem 1.6rem; margin: 0.55rem 0 0 3.4rem; }
.shoe-read { font-size: 0.9rem; color: #3b342a; }
.shoe-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--muted); }
.shoe-meta b { color: var(--ink); font-weight: 500; }

.gauge { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 0.8rem; align-items: center; margin-top: 0.5rem; }
.gauge-track { position: relative; height: 10px; background: rgba(29, 25, 19, 0.08); border: 1px solid var(--line); }
.gauge-pub { position: absolute; left: 0; top: 0; bottom: 0; background: var(--measure); opacity: 0.55; }
.gauge-pub.is-fail { background: var(--clay); opacity: 0.4; }
.gauge-foot { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.gauge-foot::after { content: ""; position: absolute; left: -3px; top: -5px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid var(--ink); }
.gauge-scale { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; color: var(--muted); }

.shoe-actions { display: flex; gap: 0.4rem; margin: 0.65rem 0 0 3.4rem; }
.btn {
  min-height: 36px; padding: 0.3rem 0.7rem; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink); font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.btn:hover { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.btn[aria-pressed="true"] { background: var(--measure); color: var(--sheet); border-color: var(--measure); }
.btn.ghost { margin-top: 1rem; }
.shoe-over { color: var(--clay); }
.empty-row { padding: 1.2rem 0; color: var(--muted); }

/* ---------- diff ---------- */
.diff-empty { border: 1px dashed var(--line-2); padding: 1.2rem; color: var(--muted); }
.diff-empty p:first-child { color: var(--ink); margin-bottom: 0.3rem; }
.diff-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.diff-table th, .diff-table td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.diff-table thead th { border-bottom: 1px solid var(--line-3); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }
.diff-table tbody th { font-family: var(--mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); width: 24%; }
.diff-table td b { font-weight: 600; }
.diff-table .none { color: var(--muted); }
.diff-table .none::before { content: "— "; }
.diff-link { text-decoration-color: var(--measure); text-underline-offset: 3px; }

/* ---------- catalogue ---------- */
.table-hint { color: var(--muted); margin-bottom: 0.5rem; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3); }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
thead th {
  text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line-3);
  font-family: var(--mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
tbody td, tbody th {
  text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line);
  font-size: 0.86rem; vertical-align: baseline;
}
tbody th { font-weight: 600; white-space: nowrap; }
tbody tr:hover td, tbody tr:hover th { background: rgba(255, 255, 255, 0.28); }
tbody td.num, tbody th.num { font-family: var(--mono); font-size: 0.78rem; }
tbody .none { color: var(--muted); }
.table-open { color: var(--measure); }
.table-clear { color: var(--fit); }
.table-fail { color: var(--clay); }
.chart-note { margin-top: 0.7rem; font-size: 0.82rem; color: var(--muted); max-width: 90ch; }

/* ---------- method ---------- */
.method { padding-top: clamp(2rem, 4vw, 3rem); }
.method details { border-top: 1px solid var(--line-2); padding-top: 0.8rem; }
.method summary {
  display: flex; justify-content: space-between; gap: 1rem; cursor: pointer;
  list-style: none; padding: 0.4rem 0; color: var(--ink);
}
.method summary::-webkit-details-marker { display: none; }
.method summary span:last-child { color: var(--muted); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 2.4rem; padding: 1rem 0 0.5rem; }
.method h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.method p, .method li { font-size: 0.86rem; color: #3b342a; }
.method p + p { margin-top: 0.55rem; }
.limits { margin-top: 0.5rem; list-style: none; }
.limits li { padding: 0.35rem 0; border-top: 1px solid var(--line); }
.limits b { color: var(--ink); }
.sources { list-style: none; }
.sources li { padding: 0.28rem 0; border-bottom: 1px solid var(--line); font-size: 0.78rem; overflow-wrap: anywhere; }
.sources a { color: var(--measure); }
.fine { margin-top: 0.6rem; color: var(--muted); font-size: 0.78rem; }

/* ---------- footer ---------- */
.foot { padding: clamp(2rem, 4vw, 3rem) 0 2.4rem; border-top: 1px solid var(--line-3); }
.related-tools { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1rem; }
.related-title { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.related-tools ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; list-style: none; }
.related-tools a { font-size: 0.9rem; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.related-tools a:hover { color: var(--measure); }
.affiliate-disclosure { font-size: 0.8rem; color: var(--muted); max-width: 90ch; }
.affiliate-disclosure strong { color: var(--ink); }
.foot-in { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; align-items: baseline; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.foot-mark { font-weight: 700; letter-spacing: -0.02em; }
.foot-in .mono a { color: var(--muted); }
.foot-social { margin-left: auto; }

@media (max-width: 1000px) {
  .intro-grid, .sec-head, .fitting-grid, .method-grid { grid-template-columns: 1fr; }
  .sec-head p { grid-column: 1; }
  .card { max-width: 520px; }
  .note { grid-template-columns: 1fr; }
  .note ul { grid-template-columns: 1fr; }
  .shoe-body { grid-template-columns: 1fr; margin-left: 0; }
  .shoe-actions { margin-left: 0; }
  .gauge { grid-column: 1; }
}
@media (max-width: 720px) {
  .bar-in { flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0.5rem 0; }
  .social { display: none; }
  .bar-tool { margin-left: 0; order: 3; }
  .bar-live { order: 4; }
  .reset { order: 5; margin-left: auto; }
  .intro h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .intro-specs { gap: 0 1.2rem; }
  .readouts { grid-template-columns: 1fr 1fr; }
  .readout:nth-child(3) { border-left: 0; padding-left: 0; }
  .readout:nth-child(n+3) { border-top: 1px solid var(--line); }
  .shoe-top { grid-template-columns: 1.8rem minmax(0, 1fr); }
  .shoe-price { grid-column: 2; text-align: left; margin-top: 0.2rem; }
  .shoe-thumb { flex-basis: 84px; width: 84px; height: 63px; }
  .shoe-id { gap: 0.7rem; }
  .shoe-price small { display: inline; margin-left: 0.4rem; }
  .two-up { grid-template-columns: 1fr; }
  .foot-social { margin-left: 0; }
  .stage-head span:last-child { display: none; }
  .stage-figure { overflow-x: auto; }
  #sheetSvg { min-width: 540px; }
  .stage-cap { flex-wrap: wrap; }
  .stage-cap span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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