/* The Cutting Table — a tannery bench: dark ground, one hide, brass rules.
   Page tokens are its own; saved.css reads them for the save dialog. */

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

:root {
  --bench: #17100d;
  --table: #211612;
  --table-2: #2a1c16;
  --hide: #c9a074;
  --hide-deep: #9d7448;
  --brass: #d9a24a;
  --brass-ink: #1a1109;
  --cream: #f5ead9;
  --ink-soft: #cbb7a1;
  --muted: #a08c78;
  --rule: rgba(245, 234, 217, .14);
  --rule-2: rgba(245, 234, 217, .08);
  --flag: #e0a33f;
  --oxblood: #b4453c;
  --panel: var(--table);
  --line-2: var(--rule);
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bench);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* the bench: a faint hide-grain wash, no gradients from another page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 620px at 12% -10%, rgba(201, 160, 116, .12), transparent 60%),
    radial-gradient(900px 520px at 96% 4%, rgba(180, 69, 60, .10), transparent 58%);
}
main, header, footer { position: relative; z-index: 1; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

a { color: inherit; text-decoration-color: rgba(217, 162, 74, .55); text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--brass); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: var(--brass-ink);
  padding: .7rem 1rem;
  z-index: 50;
}
.skip:focus { left: .75rem; top: .75rem; }

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

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

.bar {
  border-bottom: 1px solid var(--rule);
  background: rgba(23, 16, 13, .86);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.bar-in {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 62px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: .5rem; text-decoration: none; }
.brand-a {
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -.02em;
  font-size: 1.15rem;
}
.brand-b {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hide);
  border-left: 1px solid var(--rule);
  padding-left: .6rem;
}
.social { display: flex; gap: .35rem; margin-left: auto; }
.social a {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: 2px;
}
.social a:hover, .social a:focus-visible { color: var(--brass); border-color: var(--rule); }
.social svg { width: 18px; height: 18px; }
.bar-tool, .bar-live { margin: 0; color: var(--muted); }
.bar-live { font-size: .8rem; letter-spacing: .02em; }
.bar-live b { color: var(--brass); font-variant-numeric: tabular-nums; }
.reset {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .5rem .7rem;
  cursor: pointer;
  min-height: 40px;
}
.reset:hover { border-color: var(--brass); color: var(--brass); }

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

.intro { padding: clamp(2rem, 5vw, 4.5rem) 0 1.5rem; }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 800;
  font-stretch: 108%;
  margin: 0 0 .5rem;
  max-width: 16ch;
}
.intro-sub {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hide);
  font-weight: 400;
  margin: 0 0 1.4rem;
}
.lede-answer {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--cream);
  max-width: 62ch;
  margin: 0 0 1rem;
}
.intro-copy p { color: var(--ink-soft); max-width: 62ch; }
.last-checked { font-size: .85rem; color: var(--muted) !important; }
.intro-specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 1.8rem 0 0;
  border-top: 1px solid var(--rule);
}
.intro-specs li {
  padding: .8rem 1.4rem .8rem 0;
  margin-right: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  border-right: 1px solid var(--rule-2);
}
.intro-specs li:last-child { border-right: 0; }
.intro-specs .mono { color: var(--muted); }
.intro-specs b { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.intro-questions {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  max-width: 62ch;
  border-top: 1px solid var(--rule);
}
.intro-questions li {
  padding: .55rem 0;
  border-bottom: 1px solid var(--rule-2);
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.4;
}
.intro-questions li::before {
  content: "Q";
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--muted);
  margin-right: .7rem;
}

/* the cut ticket */
.ticket {
  margin: 0;
  background: var(--table);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.1rem 1.15rem 1.2rem;
  position: relative;
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .9);
}
.ticket::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(217, 162, 74, .22);
  border-radius: 2px;
  pointer-events: none;
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  color: var(--brass);
  border-bottom: 1px solid var(--rule);
  padding-bottom: .6rem;
  margin-bottom: .9rem;
}
.ticket-for { margin: 0 0 .25rem; font-size: .95rem; color: var(--ink-soft); }
.ticket-for b { color: var(--cream); font-weight: 600; }
.ticket-hide {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--hide);
}
.ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem 1rem;
  margin: 0;
}
.ticket-grid dt { color: var(--muted); margin-bottom: .15rem; }
.ticket-grid dd { margin: 0; font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ticket-link { color: var(--brass); }
.ticket-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1.1rem;
  padding-top: .7rem;
  border-top: 1px solid var(--rule);
}
.ticket-foot .mono { color: var(--muted); }
.ticket-foot b { font-size: .95rem; color: var(--brass); }

/* ---------- before you order ---------- */

.note {
  margin: 1.5rem auto 0;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--oxblood);
  background: rgba(180, 69, 60, .06);
  padding: 1rem 1.2rem;
  border-radius: 2px;
}
.note-tag { color: var(--oxblood); display: block; margin-bottom: .5rem; }
.note ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: .92rem; }
.note li + li { margin-top: .4rem; }

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

section[id] { padding: clamp(2.2rem, 5vw, 3.8rem) 0 0; scroll-margin-top: 80px; }
.sec-head { max-width: 72ch; margin-bottom: 1.6rem; }
.sec-head h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .6rem;
  font-weight: 700;
}
.sec-head p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

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

.presets {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  margin-bottom: 1.2rem;
  scrollbar-width: thin;
}
.preset {
  flex: 0 0 auto;
  text-align: left;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink-soft);
  padding: .55rem .8rem;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  font-family: inherit;
  font-size: .9rem;
}
.preset b { font-weight: 600; color: var(--cream); font-size: .9rem; }
.preset span { font-family: var(--mono); font-size: .64rem; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.preset:hover { border-color: rgba(217, 162, 74, .5); }
.preset[aria-pressed="true"] { border-color: var(--brass); background: rgba(217, 162, 74, .1); }
.preset[aria-pressed="true"] b { color: var(--brass); }

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

.bench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 1.4rem;
  align-items: start;
}
.stage {
  background: var(--table);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1rem 1.1rem 1.2rem;
}
.stage-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--rule-2);
}
.hide {
  display: block;
  width: 100%;
  height: auto;
  margin: .8rem 0 .6rem;
}
.hide-body {
  fill: rgba(201, 160, 116, .10);
  stroke: var(--hide-deep);
  stroke-width: 1.4;
}
.hide-pattern rect,
.hide-pattern circle {
  fill: rgba(201, 160, 116, .26);
  stroke: var(--hide);
  stroke-width: 1.2;
  stroke-dasharray: 5 3;
}
.hide-pattern .strap { fill: rgba(245, 234, 217, .12); }
.hide-pattern .panel { fill: rgba(217, 162, 74, .18); }

.grains {
  display: flex;
  align-items: center;
  gap: .8rem;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  padding: .5rem .6rem;
}
.grain {
  width: 54px; height: 34px;
  border-radius: 2px;
  border: 1px solid var(--hide-deep);
  flex: 0 0 auto;
  background-image: radial-gradient(circle at 30% 40%, rgba(0, 0, 0, .22) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 65%, rgba(0, 0, 0, .18) 0 2px, transparent 3px);
  background-size: 14px 14px, 18px 18px;
  background-color: var(--hide);
}
.grain-note { margin: 0; display: flex; flex-direction: column; gap: .1rem; font-size: .86rem; }
.grain-note .mono { color: var(--brass); }
#grainThick { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.hide-note {
  font-size: .9rem;
  color: var(--ink-soft);
  margin: .7rem 0 1rem;
  padding-left: .8rem;
  border-left: 1px solid var(--rule);
}

.readouts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.readout {
  padding: .75rem .5rem .8rem 0;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  border-right: 1px solid var(--rule-2);
}
.readout:last-child { border-right: 0; }
.readout .mono { color: var(--muted); font-size: .64rem; }
.readout b { font-size: 1.3rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.readout .unit { color: var(--muted); font-size: .62rem; }

.stage-read {
  margin: .9rem 0 0;
  font-size: .92rem;
  color: var(--brass);
}

/* ---------- controls ---------- */

.controls {
  background: var(--table-2);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: .4rem 1.1rem 1.1rem;
}
.control-group { padding: 1rem 0; border-bottom: 1px solid var(--rule-2); }
.control-group:last-of-type { border-bottom: 0; }
.control-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .8rem;
  margin-bottom: .7rem;
}
.control-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -.01em;
}
.control-head .mono { color: var(--muted); font-size: .64rem; }
.field + .field { margin-top: .9rem; }
.field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .8rem;
  margin-bottom: .4rem;
}
.field-head label, .field-head .mono { color: var(--muted); font-size: .78rem; font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.field-head output { font-variant-numeric: tabular-nums; color: var(--cream); font-size: .92rem; font-weight: 600; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips button {
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .5rem .7rem;
  cursor: pointer;
  min-height: 40px;
}
.chips button:hover { border-color: rgba(217, 162, 74, .55); color: var(--cream); }
.chips button[aria-pressed="true"] {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--brass-ink);
  font-weight: 600;
}
.chips button:focus-visible, .preset:focus-visible, .reset:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.chips-piece button { flex: 1 1 auto; }

.hint { margin: .6rem 0 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }

select, input[type="range"] {
  width: 100%;
  font-family: inherit;
  font-size: .95rem;
}
select {
  background: var(--bench);
  color: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .6rem .5rem;
  min-height: 44px;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: var(--rule);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--brass);
  border: 2px solid var(--bench);
}
input[type="range"]::-moz-range-track { height: 3px; background: var(--rule); }
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brass); border: 2px solid var(--bench);
}

.bench-help { padding-top: .4rem; }
.bench-help .mono { color: var(--muted); display: block; margin-bottom: .5rem; }
.bench-help p { margin: 0 0 .5rem; font-size: .86rem; color: var(--muted); }
.house-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.house-list li { font-size: .88rem; }
.house-list a { color: var(--ink-soft); }
.house-list a:hover { color: var(--brass); }
.house-list span { display: block; margin-top: .1rem; color: var(--muted); font-size: .78rem; line-height: 1.45; }

/* ---------- results ---------- */

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .55rem;
  margin-bottom: .2rem;
  color: var(--muted);
}
.result-head #resultSummary { color: var(--brass); }

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: .3rem;
  column-gap: 1rem;
  padding: 1.1rem 0 1rem;
  border-bottom: 1px solid var(--rule-2);
  position: relative;
}
.row > :not(.row-img) { grid-column: 2; }
.row-img {
  grid-column: 1;
  grid-row: 1;
  display: block;
  border: 1px solid var(--rule);
  background: #fff;
}
.row-img img { display: block; width: 100%; height: auto; }
.row-img:hover { border-color: var(--brass); }
.row-head {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  flex-wrap: wrap;
}
.row-rank {
  color: var(--muted);
  font-size: .68rem;
  min-width: 1.8rem;
}
.row-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -.015em;
  flex: 1 1 18ch;
}
.row-head h3 a { text-decoration: none; }
.row-head h3 a:hover { color: var(--brass); text-decoration: underline; }
.row-price { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem; }
.row-house { margin: 0; padding-left: 2.6rem; font-size: .82rem; color: var(--muted); font-family: var(--mono); letter-spacing: .03em; }
.row-reason { margin: .2rem 0 0; padding-left: 2.6rem; font-size: .93rem; color: var(--ink-soft); }
.row-trade { margin: .35rem 0 0; padding-left: 2.6rem; font-size: .88rem; color: var(--ink-soft); }
.row-trade .mono { color: var(--flag); font-size: .62rem; margin-right: .45rem; }
.row-bar {
  height: 2px;
  background: var(--rule-2);
  margin: .75rem 0 0 2.6rem;
}
.row-bar span { display: block; height: 100%; background: var(--brass); }
.row.over .row-price { color: var(--flag); }

.gate-block {
  margin-top: 1rem;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--muted);
  background: rgba(245, 234, 217, .03);
  padding: .9rem 1.1rem;
  border-radius: 2px;
  font-size: .9rem;
}
.gate-block h3 { margin: 0 0 .4rem; font-size: .95rem; font-weight: 650; }
.gate-block p { margin: 0 0 .5rem; color: var(--ink-soft); }
.gate-block ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .86rem; }
.gate-block li + li { margin-top: .2rem; }
.gate-block a { color: var(--ink-soft); }

/* ---------- catalogue ---------- */

.table-hint { color: var(--muted); margin: 0 0 .5rem; }
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--table);
}
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .88rem; }
caption { text-align: left; }
th, td {
  text-align: left;
  padding: .65rem .8rem;
  border-bottom: 1px solid var(--rule-2);
  vertical-align: top;
}
thead th {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
tbody tr:hover { background: rgba(217, 162, 74, .05); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td a { color: var(--cream); }
td a:hover { color: var(--brass); }
.td-note { display: block; margin-top: .3rem; max-width: 44ch; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.t-piece { display: flex; align-items: flex-start; gap: .6rem; }
.t-piece img {
  flex: none;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 1px solid var(--rule-2);
  background: #fff;
}
.t-piece > span { min-width: 0; }
.wt-none { color: var(--muted); }
.chart-note { margin: .7rem 0 0; font-size: .82rem; color: var(--muted); max-width: 80ch; }

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

details {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}
summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  color: var(--cream);
}
summary::-webkit-details-marker { display: none; }
summary .mono { color: var(--muted); }
summary:hover .mono { color: var(--brass); }
.sec-num { color: var(--brass); margin-right: .5rem; }
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  padding: 1.6rem 0 1rem;
}
.method-grid h3 { font-size: .95rem; margin: 0 0 .6rem; font-weight: 650; }
.method-grid p { font-size: .88rem; color: var(--ink-soft); margin: 0 0 .7rem; }
.limits, .sources { margin: 0; padding-left: 1.05rem; font-size: .86rem; color: var(--muted); }
.limits li, .sources li { margin-bottom: .45rem; }
.limits b { color: var(--ink-soft); }
.sources a { color: var(--ink-soft); }
.fine { font-size: .78rem; color: var(--muted); margin-top: 1rem; }

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

.foot { margin-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--rule); padding: 1.6rem 0 2.5rem; }
.related-tools { margin-bottom: 1.6rem; }
.related-title { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.related-tools ul { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin: 0; padding: 0; }
.related-tools a { font-size: .92rem; color: var(--ink-soft); }
.affiliate-disclosure {
  font-size: .8rem;
  color: var(--muted);
  border-left: 2px solid var(--rule);
  padding-left: .9rem;
  max-width: 90ch;
  margin: 0 0 1.6rem;
}
.affiliate-disclosure strong { color: var(--ink-soft); }
.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  align-items: baseline;
  border-top: 1px solid var(--rule-2);
  padding-top: 1.1rem;
  color: var(--muted);
}
.foot-mark { font-weight: 800; letter-spacing: -.02em; color: var(--cream); margin: 0; }
.foot-in p { margin: 0; }
.foot-in a { color: var(--muted); }
.foot-in a:hover { color: var(--brass); }

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

@media (max-width: 980px) {
  .intro-grid { grid-template-columns: 1fr; }
  .bench-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .ticket { max-width: 460px; }
}

@media (max-width: 640px) {
  .bar-tool { display: none; }
  .bar-in { min-height: 56px; gap: .6rem; }
  .social { order: 3; margin-left: 0; }
  .bar-live { margin-left: auto; }
  .readouts { grid-template-columns: 1fr 1fr; }
  .readout:nth-child(2) { border-right: 0; }
  .readout:nth-child(3), .readout:nth-child(4) { border-top: 1px solid var(--rule-2); }
  .two-up { grid-template-columns: 1fr; }
  .row { grid-template-columns: 64px minmax(0, 1fr); column-gap: .75rem; }
  .row-house, .row-reason, .row-trade { padding-left: 0; }
  .row-bar { margin-left: 0; }
  .result-head .mono:last-child { display: none; }
  .intro-specs li { padding-right: .9rem; margin-right: .9rem; }
}

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