/* Draftsmith: a research instrument for drafting.
   Type: STIX Two Text (the paper) + IBM Plex Mono (the instrument).
   Colour: ink on white; team blue and red are data colours only. */
:root {
  --paper: #fcfcfd;
  --plate: #ffffff;
  --ink: #18212d;
  --ink-2: #485364;
  --ink-3: #6b7585;
  --rule: #d7dce3;
  --rule-2: #a9b1bc;
  --grid: #eef1f5;
  --blue: #2b5fa9;
  --blue-ink: #1f4a87;
  --blue-tint: #e3ebf6;
  --red: #b4402f;
  --red-ink: #8e2f22;
  --red-tint: #f5e2de;
  --good: #2f6b45;
  --serif: "STIX Two Text", "Cambria", "Georgia", serif;
  --mono: "IBM Plex Mono", "Consolas", "Menlo", monospace;
  --wrap: 1240px;
  --gut: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 18px; line-height: 1.55;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button { font: inherit; color: inherit; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; font-family: var(--mono); font-size: 14px; }
.skip:focus { left: 8px; }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- masthead ---------- */
.mast { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.mast .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 21px; letter-spacing: -0.005em; }
.brand:hover { color: var(--ink); }
.brand svg { display: block; }
.mast nav { margin-left: auto; display: flex; gap: 4px; align-items: center; font-family: var(--mono); font-size: 14px; }
.mast nav a { color: var(--ink-2); text-decoration: none; padding: 6px 10px; }
.mast nav a:hover { color: var(--ink); background: var(--grid); }
.mast nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.mast nav .tool { color: var(--ink); }
.mast nav .sep { width: 1px; height: 20px; background: var(--rule); margin: 0 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: 15px; font-weight: 500; line-height: 1;
  padding: 13px 20px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  text-decoration: none; cursor: pointer; border-radius: 2px;
}
.btn:hover { background: var(--grid); color: var(--ink); }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: #2c3848; color: #fff; }
.btn.small { padding: 8px 12px; font-size: 13px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 24px; }
.hero-top { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: end; margin-bottom: 44px; }
.hero h1 {
  font-weight: 500; font-size: 64px; line-height: 1.04; letter-spacing: -0.022em; margin: 0;
  max-width: 13em;
}
.abstract { font-size: 19px; line-height: 1.55; margin: 0 0 22px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.status { margin: 18px 0 0; font-family: var(--mono); font-size: 13px; color: var(--ink-2); display: flex; gap: 10px; align-items: center; }
.status .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }

/* ---------- figures ---------- */
figure { margin: 0; }
.fig { border-top: 1px solid var(--ink); padding-top: 14px; }
.fig-head { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 8px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.fig-head .grow { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--rule-2); border-radius: 2px; }
.seg button { font-family: var(--mono); font-size: 13px; padding: 6px 12px; background: transparent; border: 0; cursor: pointer; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--rule-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg button:hover:not([aria-pressed="true"]) { background: var(--grid); color: var(--ink); }
figcaption, .caption { font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 62em; margin-top: 12px; }
figcaption b, .caption b { color: var(--ink); font-weight: 600; }
.key { display: inline-flex; gap: 6px; align-items: center; }
.key i { display: inline-block; width: 10px; height: 10px; }
.key i.b { background: var(--blue); }
.key i.r { background: var(--red); }

/* Figure 1: the draft trace */
.trace { position: relative; width: 100%; min-height: 200px; }
.trace svg { display: block; width: 100%; height: auto; overflow: visible; }
.trace .axis text, .trace .lab { font-family: var(--mono); font-size: 12px; fill: var(--ink-2); }
.trace .axis line { stroke: var(--rule-2); stroke-width: 1; }
.trace .gridline { stroke: var(--grid); stroke-width: 1; }
.trace .half { stroke: var(--ink-3); stroke-dasharray: 3 4; stroke-width: 1; }
.trace .line { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linejoin: round; }
.trace .pt { stroke: var(--plate); stroke-width: 1.5; }
.trace .col { fill: transparent; cursor: pointer; }
.trace .col:hover, .trace .col.focus { fill: rgba(24, 33, 45, 0.045); }
.trace .cursor { stroke: var(--ink); stroke-width: 1; }
.trace .rowlab { font-family: var(--mono); font-size: 12px; }
.trace .frame { fill: none; stroke-width: 1; }
.trace-tip {
  position: absolute; pointer-events: none; background: var(--plate); border: 1px solid var(--ink); padding: 8px 10px;
  font-family: var(--mono); font-size: 12px; line-height: 1.45; color: var(--ink); min-width: 190px; z-index: 5; display: none;
}
.trace-final { display: none; margin-top: 10px; }
.trace-final .row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-family: var(--mono); font-size: 12px; }
.trace-final .row b { width: 40px; font-weight: 500; }
.trace-final img, .trace-final .ph { width: 40px; height: 40px; }

/* ---------- sections ---------- */
.sec { padding: 104px 0 0; }
.sec-head { display: grid; grid-template-columns: 3fr 9fr; gap: 40px; margin-bottom: 40px; align-items: start; }
.sec-head .no { font-family: var(--mono); font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--ink); padding-top: 10px; }
.sec-head > div { border-top: 1px solid var(--ink); padding-top: 10px; }
.sec-head h2 { font-weight: 500; font-size: 40px; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 14px; }
.sec-head p { margin: 0; max-width: 40em; }

/* value panels: (a)–(d) */
.panels { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
.panel { padding: 4px 24px 28px; border-left: 1px solid var(--rule); }
.panel:first-child { border-left: 0; padding-left: 0; }
.panel .pl { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.panel h3 { font-weight: 600; font-size: 21px; line-height: 1.2; margin: 4px 0 10px; }
.panel p { font-size: 16px; line-height: 1.5; margin: 0; }
.panel svg { display: block; width: 100%; height: auto; margin: 10px 0 18px; }
.mini text { font-family: var(--mono); font-size: 10px; fill: var(--ink-2); }

/* Figure 2: method schematic */
.schema { display: grid; grid-template-columns: 1fr 34px 1.15fr 34px 1fr 34px 0.9fr; align-items: center; }
.schema .colm { display: flex; flex-direction: column; gap: 10px; }
.schema .cap { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.node { border: 1px solid var(--ink); background: var(--plate); padding: 12px 14px; }
.node h4 { margin: 0 0 4px; font-size: 17px; font-weight: 600; line-height: 1.25; }
.node p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.node.input { border-color: var(--rule-2); background: transparent; }
.node.input h4 { font-weight: 500; }
.node.dev { border-style: dashed; background: transparent; }
.node.out { background: var(--ink); color: #fff; border-color: var(--ink); }
.node.out p { color: #d5dbe3; }
.arrow { display: flex; align-items: center; justify-content: center; }
.arrow svg { width: 34px; height: 14px; }
.arrow line, .arrow path { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.models-dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin: 36px 0 0; }
.models-dl div { border-top: 1px solid var(--rule); padding: 14px 0 18px; }
.models-dl dt { font-weight: 600; font-size: 18px; }
.models-dl dd { margin: 4px 0 0; font-size: 16px; line-height: 1.5; }
.models-dl .tag { font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-left: 8px; font-weight: 400; }

/* event strip (Figure 3 and the instruments) */
.strip { display: flex; gap: 10px; align-items: flex-start; }
.strip-ev { display: flex; gap: 3px; position: relative; padding-bottom: 18px; flex: 1 1 0; min-width: 0; }
.strip-ev.double { flex: 2.08 1 0; }
.strip-ev .brace { position: absolute; left: 1px; right: 1px; bottom: 2px; height: 9px; border: 1px solid var(--ink-3); border-top: 0; font-size: 0; }
.strip-ev.now::before { content: ""; position: absolute; left: -4px; right: -4px; top: -7px; height: 3px; background: var(--ink); }
.cell {
  position: relative; flex: 1 1 0; min-width: 0; aspect-ratio: 1 / 1.25; border: 1px solid; padding: 0; background: var(--plate);
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
}
button.cell { cursor: pointer; }
.cell.blue { border-color: var(--blue); }
.cell.red { border-color: var(--red); }
.cell.pick.blue { background: var(--blue-tint); }
.cell.pick.red { background: var(--red-tint); }
.cell .lab { position: relative; z-index: 2; font-family: var(--mono); font-size: 10px; line-height: 1; padding: 3px 0; width: 100%; text-align: center; background: var(--plate); white-space: nowrap; overflow: hidden; }
.cell.blue .lab { color: var(--blue-ink); }
.cell.red .lab { color: var(--red-ink); }
.cell img, .cell .ph { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - 16px); object-fit: cover; }
.cell.ban img { filter: grayscale(1) contrast(0.9); opacity: 0.75; }
.cell.ban.done::after { content: ""; position: absolute; left: 0; top: 0; right: 0; bottom: 16px; background: linear-gradient(to top right, transparent calc(50% - 1px), var(--ink) 50%, transparent calc(50% + 1px)); }
.cell .none { position: absolute; left: 0; top: 0; right: 0; bottom: 16px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; color: var(--ink-2); }
.cell.cur { outline: 2px solid var(--ink); outline-offset: 1px; z-index: 3; }
.ph { display: inline-flex; align-items: center; justify-content: center; background: var(--grid); color: var(--ink-2); font-family: var(--mono); font-size: 11px; }
.strip-legend { display: flex; gap: 8px 22px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-top: 12px; }
.strip-legend span { display: inline-flex; gap: 6px; align-items: center; }
.sw { display: inline-block; width: 12px; height: 14px; border: 1px solid var(--blue); }
.sw.pb { background: var(--blue-tint); }
.sw.r { border-color: var(--red); }
.sw.pr { border-color: var(--red); background: var(--red-tint); }
.sw.br { width: 22px; height: 7px; border: 1px solid var(--ink-3); border-top: 0; }
.sw.now { width: 22px; height: 3px; border: 0; background: var(--ink); }

/* Plate: specimens */
.plate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.specimen { margin: 0; }
.specimen-art { position: relative; aspect-ratio: 308 / 420; overflow: hidden; border: 1px solid var(--ink); background: var(--grid); }
.specimen-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.specimen-art .ph-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; color: var(--ink-2); text-align: center; padding: 4px; }
.specimen .sp-name { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-weight: 600; font-size: 17px; }
.specimen .sp-name span { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--ink-2); }
.shares { list-style: none; padding: 0; margin: 6px 0 0; font-family: var(--mono); font-size: 12px; }
.shares li { display: grid; grid-template-columns: 62px 1fr 40px; gap: 8px; align-items: center; padding: 2px 0; }
.shares .bar { height: 6px; background: var(--grid); position: relative; }
.shares .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink-2); }
.shares .v { text-align: right; color: var(--ink-2); }

/* Figure 4: example draft inspector */
.insp-bar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 18px; }
.insp-bar .turn { font-family: var(--mono); font-size: 14px; flex: 1; min-width: 240px; }
.insp-bar .turn b { font-weight: 600; }
.insp-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr) 210px; gap: 32px; align-items: start; }
.optable { width: 100%; border-collapse: collapse; font-size: 15px; }
.optable caption { text-align: left; font-family: var(--mono); font-size: 13px; color: var(--ink-2); padding-bottom: 8px; }
.optable th { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--ink-2); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.optable td { padding: 7px 8px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.optable td.num, .optable th.num { text-align: right; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.optable .champ { display: flex; align-items: center; gap: 10px; }
.optable .champ img, .optable .champ .ph { width: 30px; height: 30px; flex: none; }
.optable .champ small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.optable tr.chosen td { background: var(--grid); }
.optable tr.chosen td:first-child { box-shadow: inset 3px 0 0 var(--ink); }
.optable tr.click { cursor: pointer; }
.optable tr.click:hover td, .optable tr.click:focus-within td { background: var(--grid); }
.optable button.linkish { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.optable .barcell { width: 24%; min-width: 90px; }
.wbar { position: relative; height: 10px; background: var(--grid); }
.wbar i { position: absolute; top: 0; bottom: 0; }
.wbar .mid { position: absolute; top: -3px; bottom: -3px; left: 50%; width: 1px; background: var(--ink-3); }
.tag-eng { font-family: var(--mono); font-size: 11px; color: var(--ink); border: 1px solid var(--ink); padding: 1px 5px; margin-left: 6px; white-space: nowrap; }
.goals { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; }
.goals h4 { font-family: var(--mono); font-weight: 500; font-size: 13px; margin: 0 0 8px; color: var(--ink-2); }
.goal { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--rule); }
.goal .w { font-family: var(--mono); font-size: 13px; text-align: right; }
.goal .ics { display: flex; gap: 4px; }
.goal .ics img, .goal .ics .ph { width: 30px; height: 30px; }

/* team columns */
.team .team-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 2px solid; margin-bottom: 10px; }
.team.blue .team-head { border-color: var(--blue); }
.team.red .team-head { border-color: var(--red); }
.team .swatch { width: 10px; height: 10px; flex: none; }
.team.blue .swatch { background: var(--blue); }
.team.red .swatch { background: var(--red); }
.team .team-name { font-weight: 600; font-size: 17px; }
.team .team-tag { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.team .bans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 12px; }
.team .ban { aspect-ratio: 1; border: 1px dashed var(--rule-2); position: relative; overflow: hidden; background: var(--plate); }
.team .ban.filled { border-style: solid; border-color: var(--ink-3); }
.team .ban img, .team .ban .ph { width: 100%; height: 100%; display: block; object-fit: cover; filter: grayscale(1); opacity: 0.8; }
.team .ban.filled::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1px), var(--ink) 50%, transparent calc(50% + 1px)); }
.team .ban.empty-ban::after { content: "none"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 9px; color: var(--ink-2); }
.team .picks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.team .pick { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 50px; }
.team .slot { width: 48px; height: 48px; border: 1px solid var(--rule-2); display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--plate); }
.team .slot img, .team .slot .ph { width: 100%; height: 100%; object-fit: cover; }
.team .slot-lab { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.team.blue .pick.filled .slot { border-color: var(--blue); }
.team.red .pick.filled .slot { border-color: var(--red); }
.team .pick.next .slot { border: 2px solid var(--ink); }
.team .pick.latest .meta .name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.team .meta { display: flex; flex-direction: column; min-width: 0; }
.team .meta .name { font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team .meta .role { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.role-sel { font-family: var(--mono); font-size: 12px; border: 1px solid var(--rule-2); background: var(--plate); padding: 1px 2px; max-width: 100px; color: var(--ink); margin-top: 2px; }

/* Figure 5: accuracy */
.acc-row { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.acc-row:first-child { border-top: 1px solid var(--ink); }
.acc-row .what { font-size: 16px; line-height: 1.35; }
.acc-row .what small { display: block; font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.acc-track { position: relative; height: 34px; }
.acc-track .tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--grid); }
.acc-track .tick.chance { background: var(--ink-3); }
.acc-track .ivl { position: absolute; top: 12px; height: 10px; }
.acc-track .ivl.pub { border: 1px solid var(--ink-2); background: repeating-linear-gradient(45deg, transparent 0 3px, rgba(72, 83, 100, 0.3) 3px 4px); }
.acc-track .ivl.ds { background: var(--ink); }
.acc-track .ivl-lab { position: absolute; top: 9px; font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.acc-axis { position: relative; height: 26px; margin-left: 284px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.acc-axis span { position: absolute; transform: translateX(-50%); top: 6px; }
.acc-axis-title { margin-left: 284px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--rule); }
.facts div { padding: 16px 24px 0 0; }
.facts .n { font-family: var(--mono); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.facts p { margin: 2px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); max-width: 22em; }

/* roadmap */
.road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--ink); }
.road li { position: relative; padding: 30px 22px 0 0; }
.road .mk { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border: 1px solid var(--ink); background: var(--paper); border-radius: 50%; }
.road .now .mk { background: var(--ink); }
.road .dev .mk { background: linear-gradient(90deg, var(--ink) 50%, var(--paper) 50%); }
.road .st { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.road h3 { font-size: 19px; font-weight: 600; line-height: 1.25; margin: 4px 0 6px; }
.road p { font-size: 15px; line-height: 1.5; margin: 0; }
.road-key { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-top: 28px; }
.road-key span { display: inline-flex; gap: 8px; align-items: center; }
.road-key i { width: 11px; height: 11px; border: 1px solid var(--ink); border-radius: 50%; display: inline-block; }
.road-key i.f { background: var(--ink); }
.road-key i.h { background: linear-gradient(90deg, var(--ink) 50%, var(--paper) 50%); }

/* research */
.author { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.author p { margin: 0 0 14px; max-width: 34em; }
.byline { font-size: 22px; line-height: 1.35; margin: 0 0 4px; }
.affil { font-family: var(--mono); font-size: 13px; color: var(--ink-2); margin: 0 0 22px; }
.note { border-left: 2px solid var(--ink); padding: 2px 0 2px 16px; font-size: 16px; }

/* closing call to action */
.closing { margin-top: 120px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.closing .wrap { display: grid; grid-template-columns: 1fr 1fr; }
.closing a { display: block; padding: 40px 40px 44px 0; text-decoration: none; color: var(--ink); }
.closing a + a { border-left: 1px solid var(--rule); padding-left: 40px; }
.closing a:hover { background: var(--grid); }
.closing .big { display: flex; align-items: center; gap: 14px; font-size: 36px; line-height: 1.1; font-weight: 500; letter-spacing: -0.012em; margin-bottom: 10px; }
.closing .d { display: block; font-size: 17px; color: var(--ink-2); max-width: 28em; }
.closing .glyph { flex: none; }

/* footer */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.closing + .foot { border-top: 0; }
.foot .wrap { display: grid; grid-template-columns: 3fr 9fr; gap: 40px; }
.foot .legal { margin: 0; max-width: 60em; line-height: 1.55; }
.foot .links { font-family: var(--mono); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.foot .links a { color: var(--ink-2); }

/* ---------- tool pages (practice, live) ---------- */
.tool-head { padding: 40px 0 26px; display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: end; }
.tool-head h1 { font-weight: 500; font-size: 48px; line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 12px; }
.tool-head p { margin: 0; max-width: 36em; }
.flag { border: 1px solid var(--ink); padding: 12px 16px; font-size: 15px; line-height: 1.45; background: var(--plate); }
.flag b { font-weight: 600; }
.tabs { display: flex; border-bottom: 1px solid var(--rule); overflow-x: auto; }
.tabs button { font-family: var(--mono); font-size: 14px; padding: 12px 18px; background: transparent; border: 0; cursor: pointer; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs button:hover { color: var(--ink); }

.bench {
  border: 1px solid var(--rule); border-top: 0; background-color: var(--plate);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
}
.setup { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--rule); background: var(--plate); }
.setup .grp { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.setup .grow { flex: 1; }
.seg .b-on[aria-pressed="true"] { background: var(--blue); }
.seg .r-on[aria-pressed="true"] { background: var(--red); }

.bench-strip { padding: 22px 20px 10px; background: var(--plate); border-bottom: 1px solid var(--rule); }
.statusbar { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--rule); background: var(--plate); min-height: 64px; }
.statusbar .who { font-family: var(--mono); font-size: 12px; padding: 3px 8px; color: #fff; background: var(--ink); }
.statusbar .who.B { background: var(--blue); }
.statusbar .who.R { background: var(--red); }
.statusbar .msg { font-size: 17px; flex: 1; min-width: 200px; line-height: 1.35; }
.statusbar .msg small { display: block; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.timer { font-family: var(--mono); font-size: 22px; font-weight: 500; min-width: 3.2ch; text-align: right; }
.timer.low { color: var(--red-ink); }
.meter { width: 230px; }
.meter .mlab { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; margin-bottom: 4px; }
.meter .mlab .b { color: var(--blue-ink); }
.meter .mlab .r { color: var(--red-ink); }
.meter .mtrack { height: 8px; position: relative; background: var(--red); }
.meter .mtrack i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); transition: width 0.4s ease; }
.meter .mtrack .mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--plate); }
.meter .mnote { font-family: var(--mono); font-size: 11px; color: var(--ink-2); margin-top: 3px; }

.bench-main { display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; }
.bench-main > .team { padding: 18px; background: rgba(255, 255, 255, 0.9); }
.bench-main > .team.blue { border-right: 1px solid var(--rule); }
.bench-main > .team.red { border-left: 1px solid var(--rule); }
.bench-center { padding: 16px 20px 22px; min-width: 0; background: rgba(255, 255, 255, 0.82); }

.tray { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--ink); background: var(--plate); margin-bottom: 14px; }
.tray .slots { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; min-width: 0; }
.tray .tslot { display: flex; align-items: center; gap: 8px; border: 1px dashed var(--rule-2); padding: 4px 8px 4px 4px; min-width: 160px; min-height: 46px; }
.tray .tslot.filled { border-style: solid; border-color: var(--ink); }
.tray .tslot img, .tray .tslot .ph { width: 36px; height: 36px; flex: none; }
.tray .tslot .tl { font-family: var(--mono); font-size: 11px; color: var(--ink-2); display: block; }
.tray .tslot .tn { font-size: 15px; display: block; line-height: 1.2; }
.tray .tslot .x { margin-left: auto; background: none; border: 0; cursor: pointer; font-family: var(--mono); font-size: 12px; color: var(--ink-2); padding: 2px 4px; text-decoration: underline; }
.tray .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.tray.waiting { border-color: var(--rule-2); color: var(--ink-2); font-size: 16px; }

.cgrid-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 12px; }
.cgrid-tools .search input {
  font-family: var(--mono); font-size: 14px; padding: 8px 10px; border: 1px solid var(--ink); background: var(--plate); width: 220px; color: var(--ink); border-radius: 0;
}
.cgrid-tools .roles { display: flex; flex-wrap: wrap; border: 1px solid var(--rule-2); background: var(--plate); }
.role-btn { font-family: var(--mono); font-size: 12px; padding: 7px 10px; border: 0; background: var(--plate); cursor: pointer; color: var(--ink-2); }
.role-btn + .role-btn { border-left: 1px solid var(--rule-2); }
.role-btn.on { background: var(--ink); color: #fff; }
.role-btn:hover:not(.on) { background: var(--grid); color: var(--ink); }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px 6px; max-height: 470px; overflow-y: auto; padding: 4px 4px 4px 2px; scrollbar-width: thin; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 3px; border: 1px solid transparent; background: transparent; cursor: pointer; position: relative; min-width: 0; }
.tile img, .tile .ph { width: 56px; height: 56px; display: block; border: 1px solid var(--rule); }
.tile .tname { font-family: var(--mono); font-size: 10.5px; line-height: 1.2; text-align: center; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile:hover:not(:disabled) { border-color: var(--rule-2); background: var(--plate); }
.tile.sel { border: 2px solid var(--ink); padding: 2px; background: var(--plate); }
.tile.off, .tile:disabled { cursor: not-allowed; }
.tile.off img, .tile.off .ph { filter: grayscale(1); opacity: 0.35; }
.tile.off .tname { color: var(--ink-3); }
.tile.locked::after { content: ""; position: absolute; left: 50%; top: 3px; width: 58px; height: 58px; margin-left: -29px; background: linear-gradient(to top right, transparent calc(50% - 1px), var(--ink-2) 50%, transparent calc(50% + 1px)); }
.tile .tmark { position: absolute; top: 0; right: 2px; font-family: var(--mono); font-size: 11px; background: var(--ink); color: #fff; padding: 0 4px; }
.cgrid-empty { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }

/* result */
.result { padding: 28px 24px 32px; background: var(--plate); border-top: 1px solid var(--ink); }
.result-top { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; align-items: start; }
.bignum { font-family: var(--mono); font-size: 64px; line-height: 1; font-weight: 500; letter-spacing: -0.03em; }
.bignum.B { color: var(--blue-ink); }
.bignum.R { color: var(--red-ink); }
.result h2 { font-weight: 500; font-size: 30px; margin: 0 0 10px; line-height: 1.15; }
.result p { margin: 10px 0 0; font-size: 16px; }
.result h3 { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }
.decomp .row { display: grid; grid-template-columns: 110px 1fr 84px; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.decomp .row:first-of-type { border-top: 1px solid var(--ink); }
.decomp .row.total { font-weight: 600; border-bottom: 1px solid var(--ink); }
.decomp .trk { position: relative; height: 14px; }
.decomp .trk .z { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--ink); }
.decomp .trk i { position: absolute; top: 0; bottom: 0; }
.decomp .v { font-family: var(--mono); font-size: 13px; text-align: right; }
.decomp-axis { display: grid; grid-template-columns: 110px 1fr 84px; gap: 12px; font-family: var(--mono); font-size: 11px; color: var(--ink-2); padding-top: 4px; }
.decomp-axis .ax { display: flex; justify-content: space-between; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; }
.comp-plates { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.comp-plates .specimen-art { aspect-ratio: 308 / 460; }
.comp-plates.blue .specimen-art { border-color: var(--blue); }
.comp-plates.red .specimen-art { border-color: var(--red); }
.comp-plates .cap { font-size: 14px; margin-top: 4px; line-height: 1.25; }
.comp-plates .cap small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.comp-title { font-family: var(--mono); font-size: 13px; color: var(--ink-2); margin: 28px 0 8px; display: flex; gap: 8px; align-items: center; }
.comp-title i { width: 10px; height: 10px; display: inline-block; }

/* guess mode */
.guess { padding: 20px; background: var(--plate); }
.guess-top { display: flex; gap: 14px 22px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.guess-top label { font-family: var(--mono); font-size: 13px; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; }
select { font-family: var(--mono); font-size: 13px; padding: 7px 8px; border: 1px solid var(--ink); background: var(--plate); color: var(--ink); border-radius: 0; }
.score { font-family: var(--mono); font-size: 14px; margin-left: auto; }
.guess-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr) 210px; gap: 28px; align-items: start; }
.guess-q { font-size: 19px; margin: 0 0 4px; }
.guess-sub { font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin: 0 0 14px; }
.feedback { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--ink); background: var(--grid); font-size: 16px; }
.feedback.good { border-color: var(--good); }
.feedback.miss { border-color: var(--red); }
.options-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.opt-btn { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 1px solid var(--rule-2); background: var(--plate); cursor: pointer; text-align: left; font-size: 15px; }
.opt-btn img, .opt-btn .ph { width: 38px; height: 38px; flex: none; }
.opt-btn:hover { border-color: var(--ink); }
.guess-nav { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* live advice */
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 450px; }
.advice { border-left: 1px solid var(--rule); background: var(--plate); padding: 18px 20px 24px; min-width: 0; }
.advice h2 { font-weight: 600; font-size: 20px; margin: 0 0 2px; }
.advice h3 { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--ink-2); margin: 28px 0 6px; }
.advice .est { display: flex; align-items: baseline; gap: 14px; margin: 8px 0 4px; flex-wrap: wrap; }
.advice .est .bignum { font-size: 44px; }
.advice .optable { font-size: 14px; }
.advice .optable .champ img, .advice .optable .champ .ph { width: 26px; height: 26px; }
.proj { display: grid; grid-template-columns: 48px 1fr; gap: 8px 10px; align-items: start; font-family: var(--mono); font-size: 12px; }
.proj .ics { display: flex; gap: 4px; flex-wrap: wrap; }
.proj .ic { width: 40px; }
.proj .ic img, .proj .ic .ph { width: 40px; height: 40px; display: block; }
.proj .ic.ghost img, .proj .ic.ghost .ph { opacity: 0.55; outline: 1px dashed var(--ink-3); outline-offset: -1px; }
.proj .ic small { display: block; font-size: 9.5px; text-align: center; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.small-note { font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin: 10px 0 0; line-height: 1.5; }
.bench-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.below-tool { padding: 56px 0 0; display: grid; grid-template-columns: 3fr 9fr; gap: 40px; }
.below-tool h2 { font-weight: 500; font-size: 28px; margin: 0; line-height: 1.15; border-top: 1px solid var(--ink); padding-top: 10px; }
.below-tool .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; border-top: 1px solid var(--ink); padding-top: 14px; }
.below-tool p { margin: 0 0 12px; font-size: 16px; }
.below-tool h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .bench-main { grid-template-columns: 180px minmax(0, 1fr) 180px; }
  .live-grid { grid-template-columns: 1fr; }
  .advice { border-left: 0; border-top: 1px solid var(--ink); }
  .panels { grid-template-columns: repeat(2, 1fr); }
  .panel:nth-child(3) { border-left: 0; padding-left: 0; }
  .panel:nth-child(n+3) { border-top: 1px solid var(--rule); padding-top: 18px; }
  .schema { grid-template-columns: 1fr; }
  .schema .arrow { height: 34px; }
  .schema .arrow svg { transform: rotate(90deg); }
  .schema .colm { flex-direction: row; flex-wrap: wrap; }
  .schema .cap { width: 100%; }
  .schema .colm .node { flex: 1 1 200px; }
  .insp-grid, .guess-grid { grid-template-columns: 1fr 1fr; }
  .insp-grid > .mid, .guess-grid > .mid { grid-column: 1 / -1; grid-row: 2; }
  .road { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .road::before { display: none; }
}
@media (max-width: 900px) {
  :root { --gut: 20px; }
  body { font-size: 17px; }
  .hero { padding-top: 32px; }
  .hero-top, .tool-head { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 44px; }
  .tool-head h1 { font-size: 36px; }
  .sec { padding-top: 72px; }
  .sec-head, .foot .wrap, .below-tool { grid-template-columns: 1fr; gap: 14px; }
  .sec-head h2 { font-size: 32px; }
  .sec-head .no { border-top: 0; padding-top: 0; }
  .mast nav .sec-link, .mast nav .sep { display: none; }
  .plate { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .models-dl { grid-template-columns: 1fr; }
  .author, .closing .wrap, .result-top, .result-grid, .below-tool .cols { grid-template-columns: 1fr; }
  .closing a + a { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .closing a { padding: 28px 0; }
  .closing .big { font-size: 28px; }
  .facts { grid-template-columns: 1fr; }
  .acc-row { grid-template-columns: 1fr; gap: 6px; }
  .acc-axis, .acc-axis-title { margin-left: 0; }
  .bench-main { grid-template-columns: 1fr 1fr; }
  .bench-main > .team { grid-row: 1; }
  .bench-main > .team.red { border-left: 1px solid var(--rule); }
  .bench-main > .team.blue { border-right: 0; }
  .bench-center { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--rule); }
  .strip { gap: 4px; }
  .strip-ev { gap: 1px; }
  .cell .lab { font-size: 7.5px; }
  .meter { width: 100%; }
  .trace-final { display: block; }
}
@media (max-width: 640px) {
  .brand { font-size: 19px; }
  .brand svg { display: none; }
  .mast .wrap { gap: 10px; }
  .mast nav a { padding: 6px 7px; font-size: 13px; }
  .hero h1 { font-size: 38px; }
  .abstract { font-size: 17px; }
  .panels { grid-template-columns: 1fr; }
  .panel, .panel:nth-child(3) { border-left: 0; padding: 18px 0 24px; }
  .panel + .panel { border-top: 1px solid var(--rule); }
  .road { grid-template-columns: 1fr; row-gap: 24px; }
  .road li { padding: 0 0 0 30px; }
  .insp-grid, .guess-grid { gap: 16px; }
  .team .pick { grid-template-columns: 38px minmax(0, 1fr); gap: 8px; min-height: 40px; }
  .team .slot { width: 38px; height: 38px; }
  .team .meta .name { font-size: 14px; }
  .team .team-name { font-size: 15px; }
  .bench-main > .team { padding: 12px 10px; }
  .optable .barcell { display: none; }
  .optable td, .optable th { padding: 6px 4px; }
  .optable .hide-s { display: none; }
  .goals { grid-template-columns: 1fr; }
  .cgrid-tools .search, .cgrid-tools .search input { width: 100%; }
  .cgrid { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); max-height: 380px; }
  .tile img, .tile .ph { width: 48px; height: 48px; }
  .tile.locked::after { width: 50px; height: 50px; margin-left: -25px; }
  .strip-ev { padding-bottom: 12px; }
  .strip-ev .brace { height: 7px; }
  .cell .lab { display: none; }
  .cell img, .cell .ph { height: 100%; }
  .cell .none, .cell.ban.done::after { bottom: 0; }
  .bignum { font-size: 48px; }
  .comp-plates { gap: 4px; }
  .comp-plates .cap { font-size: 12px; }
  .tray .tslot { min-width: 0; flex: 1 1 140px; }
  .setup { padding: 14px; }
  .statusbar { padding: 12px 14px; }
  .bench-strip { padding: 16px 10px 8px; }
  .bench-center { padding: 14px 12px 18px; }
  .advice { padding: 16px 14px 20px; }
  .tool-head h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.sub-h { font-weight: 500; font-size: 28px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
.result .small-note { font-size: 12px; margin-top: 10px; }
.result:focus { outline: none; }
.comp-plates .specimen-art { aspect-ratio: 308 / 400; }
.bench-center.done #grid, .bench-center.done #hint { display: none; }
.strip { container-type: inline-size; }
.cell .lab .short { display: none; }
@container (max-width: 820px) {
  .cell .lab .long { display: none; }
  .cell .lab .short { display: inline; }
}
/* live: teams side by side above a full-width grid */
.live .bench-main { grid-template-columns: 1fr 1fr; }
.live .bench-main > .team { grid-row: 1; }
.live .bench-main > .team.blue { border-right: 0; }
.live .bench-main > .team.red { border-left: 1px solid var(--rule); }
.live .bench-center { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--rule); }
.live .team .picks { display: grid; grid-template-columns: 1fr; }
.live .team .bans { max-width: 290px; }
.live .cgrid { max-height: 640px; }
@media (max-width: 640px) {
  .tray { flex-direction: column; align-items: stretch; }
  .tray .acts { justify-content: flex-end; }
  .tray .tslot { flex: 1 1 auto; }
  .tabs button { flex: 1 1 0; white-space: normal; padding: 10px 8px; font-size: 13px; }
  .setup { gap: 12px 18px; }
}
@media (max-width: 640px) { .live .cgrid { max-height: 340px; } }
.statusbar .msg .best { color: var(--ink); }
.tile .ph, .team .ban .ph, .team .slot .ph, .cell .ph { display: flex; align-items: center; justify-content: center; }
