:root {
  --bg: #F6F7F7;
  --surface: #FFFFFF;
  --sunk: #ECEEEE;
  --ink: #12181A;
  --ink-2: #38454A;
  --muted: #6D7A7E;
  --rule: #DCE2E3;
  --rule-2: #C4CDCF;
  --accent: #0B6E7A;
  --accent-soft: #DCEEF0;
  --accent-line: #8CC3CA;
  --warn: #8C5E0B;
  --warn-soft: #F8EEDA;
  --warn-line: #E1CE9E;
  /* Referenced by the withheld legend swatch, the withheld cells in the series
     status strip, and the refused row of the cross-section -- and never
     defined until now, so all three painted transparent. One meaning, one
     colour: the same amber as the WITHHELD chip, in either theme. */
  --withheld: var(--warn);
  --shadow: 0 1px 2px rgba(18, 24, 26, .05), 0 8px 24px rgba(18, 24, 26, .05);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ui: Chivo, "Helvetica Neue", Arial, sans-serif;
  --serif: Newsreader, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0E0F;
    --surface: #121819;
    --sunk: #171F20;
    --ink: #E6EDED;
    --ink-2: #BAC6C7;
    --muted: #7F8D90;
    --rule: #222C2E;
    --rule-2: #2F3B3D;
    --accent: #3FBECB;
    --accent-soft: #0D2528;
    --accent-line: #275960;
    --warn: #DFA748;
    --warn-soft: #231C0D;
    --warn-line: #4A3C1B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

:root[data-theme="dark"] {
  --bg: #0A0E0F;
  --surface: #121819;
  --sunk: #171F20;
  --ink: #E6EDED;
  --ink-2: #BAC6C7;
  --muted: #7F8D90;
  --rule: #222C2E;
  --rule-2: #2F3B3D;
  --accent: #3FBECB;
  --accent-soft: #0D2528;
  --accent-line: #275960;
  --warn: #DFA748;
  --warn-soft: #231C0D;
  --warn-line: #4A3C1B;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--ui); letter-spacing: -.018em; text-wrap: balance; }
a { color: var(--accent); }
code, .mono { font-family: var(--mono); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 26px; }
.prose { max-width: 66ch; }
.prose p { margin: 0 0 18px; }

/* ---------- chrome ---------- */

.banner {
  background: var(--warn-soft);
  border-bottom: 1px solid var(--warn-line);
  color: var(--warn);
  font-family: var(--ui);
  font-size: 13px;
  text-align: center;
  padding: 9px 20px;
}

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 22px;
  padding: 0 26px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.brand {
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  color: var(--ink); text-decoration: none; padding: 15px 0;
}
.brand span { color: var(--accent); }
.topbar nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.topbar nav a {
  font-family: var(--ui); font-size: 13px; color: var(--muted);
  text-decoration: none; padding: 15px 8px; border-bottom: 2px solid transparent;
}
.topbar nav a:hover { color: var(--ink); }
.theme-toggle {
  font-family: var(--ui); font-size: 12px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--rule-2);
  border-radius: 6px; padding: 5px 11px; cursor: pointer; margin-left: 10px;
}

/* ---------- hero ---------- */

/* Matched to the sibling benchmark's scale so the two sites read as one
   family: same padding, same clamp, same measure. */
.hero { padding: 66px 0 40px; }
.hero h1 {
  font-weight: 700; font-size: clamp(36px, 6vw, 62px); line-height: 1.03;
  margin: 16px 0 0; max-width: 17ch;
}
.hero p {
  font-size: clamp(19px, 2.2vw, 23px); color: var(--ink-2);
  margin: 22px 0 0; max-width: 56ch;
}
.hero .kicker { margin: 0 0 4px; }

/* ---------- panels ---------- */

.panel {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 10px; box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 22px;
}
.panel > header {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 15px 22px; border-bottom: 1px solid var(--rule); background: var(--sunk);
}
.panel > header h2 { font-size: 15px; font-weight: 600; margin: 0; }
.panel .note { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-left: auto; }
.panel .body { padding: 20px 22px; }

/* The board is six columns and Contributions is seven, and `th` below is
   nowrap, so neither can shrink past its header row -- about 594px. On a phone
   that is wider than the viewport, and the board sat in a plain div, so it
   widened the *document* instead. A sticky topbar is only as wide as the
   viewport: scrolling right to read the table slid the nav off to the left.
   Contributions escaped that only because .panel clips it, which loses the
   right-hand columns with no way to reach them. Both scroll in place now.

   method.html already wrapped its three tables in `.tw` for this, but no rule
   was ever written for that class, so the wrapper did nothing and the widest
   of them widened the document on its own. */
#board-table, .table-scroll, .tw { overflow-x: auto; }
/* Inside a scroll container the index column must not wrap. On a phone it was
   breaking "TIX-GLM53-OUT" across two lines and the model name across four,
   because the table could shrink the one column with no nowrap on it. */
#board-table td:first-child { white-space: nowrap; }

table { width: 100%; border-collapse: collapse; }
th {
  font-family: var(--ui); font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); text-align: left;
  padding: 11px 20px; border-bottom: 1px solid var(--rule); white-space: nowrap;
}
td {
  font-family: var(--mono); font-size: 13.5px; color: var(--ink-2);
  padding: 13px 20px; border-bottom: 1px solid var(--rule); vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
td.r, th.r { text-align: right; }
tr.on td { background: color-mix(in srgb, var(--accent-soft) 46%, transparent); }

.price { font-size: 17px; font-weight: 600; color: var(--ink); }
.price.none { color: var(--muted); font-weight: 400; }

.status {
  font-family: var(--ui); font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 5px; white-space: nowrap;
}
.status.published { color: var(--accent); background: var(--accent-soft); }
.status.withheld { color: var(--warn); background: var(--warn-soft); }
.reason { font-size: 12.5px; color: var(--warn); }

/* ---------- the spread strip ---------- */

.spread { display: flex; flex-direction: column; gap: 12px; }
.spread-row { display: grid; grid-template-columns: 110px 1fr 78px; align-items: center; gap: 14px; }
.spread-row .who { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.spread-row .bar { position: relative; height: 10px; border-radius: 5px; background: var(--sunk); }
.spread-row .bar > i { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: var(--accent); display: block; }
.spread-row .amt { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 14px; text-align: right; color: var(--ink); }

/* ---------- gates ---------- */

.gates { display: flex; flex-direction: column; gap: 8px; }
.gate {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--rule); border-radius: 7px; padding: 11px 15px;
}
.gate.fail { border-color: var(--warn-line); background: var(--warn-soft); }
.gate .mark { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.gate.fail .mark { color: var(--warn); }
.gate .name { font-family: var(--ui); font-size: 14px; font-weight: 600; }
.gate .detail { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-left: auto; text-align: right; }

/* ---------- bands ---------- */

.band { padding: 46px 0; border-top: 1px solid var(--rule); }
.band h2 { font-size: 26px; font-weight: 700; margin: 0 0 6px; max-width: 24ch; }
/* Base rule, not scoped to .band: the hero eyebrow needs it too, and scoping
   it was why the method page rendered its eyebrow as serif sentence case. */
.kicker {
  font-family: var(--ui); font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 14px;
}
.band p { color: var(--ink-2); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 16px; margin-top: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 9px; padding: 17px 19px;
}
.card .label {
  display: block; font-family: var(--ui); font-size: 13px; font-weight: 600;
  color: var(--ink); margin-bottom: 7px;
}
.card p { font-size: 15.5px; margin: 0; color: var(--ink-2); }

pre.figure {
  font-family: var(--mono); font-size: 13px; line-height: 1.75;
  background: var(--sunk); border: 1px solid var(--rule); border-radius: 8px;
  padding: 17px 19px; overflow-x: auto; color: var(--ink-2); margin: 20px 0 0;
}

footer.site {
  border-top: 1px solid var(--rule); margin-top: 40px; padding: 26px 0 60px;
  font-family: var(--ui); font-size: 13.5px; color: var(--muted);
}

.loading { padding: 54px 0; text-align: center; color: var(--muted); font-family: var(--mono); font-size: 14px; }

@media (max-width: 700px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  .topbar { padding: 0 18px; }
  th, td { padding-left: 14px; padding-right: 14px; }
  .spread-row { grid-template-columns: 92px 1fr 68px; }
}

/* Below about 380px the brand, three links and the theme button no longer fit
   on one line, and the topbar was pushing the document wider than the viewport
   -- which slides a sticky bar off to the left the moment anyone scrolls right.
   Tighten the nav's own spacing rather than let it set the page width. */
@media (max-width: 420px) {
  .topbar { padding: 0 12px; gap: 10px; }
  .topbar nav { gap: 0; }
  .topbar nav a { padding: 15px 5px; font-size: 12.5px; }
  .theme-toggle { margin-left: 4px; }
}

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

/* ---------- one-collection-date note ------------------------------------ */
.onedate{
  font-size:15px; color:var(--muted); line-height:1.6; margin:0;
  border-left:2px solid var(--rule); padding-left:14px;
}
.onedate strong{color:var(--ink)}

/* ---------- the cross-section ------------------------------------------- */
.cliff-row{
  display:grid; grid-template-columns:150px 1fr 215px; gap:14px;
  align-items:center; padding:11px 0; border-bottom:1px solid var(--rule);
}
.cliff-row:last-of-type{border-bottom:0}
.cliff-row .who{
  font-family:var(--mono); font-size:12.5px; color:var(--ink); font-weight:500;
}
.cliff-row .axis{
  position:relative; height:12px; background:var(--sunk);
  border:1px solid var(--rule); border-radius:999px;
}
.cliff-row .axis i{
  position:absolute; top:50%; width:10px; height:10px; margin:-5px 0 0 -5px;
  border-radius:50%; background:var(--accent); border:2px solid var(--surface);
}
.cliff-row .verdict{ font-size:13px; color:var(--muted); text-align:right }
.cliff-row .verdict strong{color:var(--ink)}
.cliff-row.incoherent .axis i{background:var(--withheld)}
.cliff-row.incoherent .who{color:var(--muted)}
.axis-note{
  font-family:var(--mono); font-size:10.5px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--muted); margin:14px 0 0; text-align:right;
}
@media (max-width:640px){
  .cliff-row{grid-template-columns:1fr; gap:7px}
  .cliff-row .verdict{text-align:left}
}

/* ---------- dashboard head ---------------------------------------------- */
.dash-head{ padding:34px 0 18px }
.dash-head h1{
  font-family:var(--ui); font-weight:700; font-size:30px; letter-spacing:-.02em;
  margin:0 0 8px; color:var(--ink);
}
.dash-head p{ font-family:var(--mono); font-size:12.5px; color:var(--muted); margin:0 }

/* ---------- sticky index picker ----------------------------------------- */
.pickerbar{
  /* Tucked a few pixels under the topbar rather than guessing its height
     exactly; the topbar paints over the overlap, so no sliver of scrolling
     content shows between them if a font renders a pixel taller elsewhere. */
  position:sticky; top:49px; z-index:30;
  margin:0 -26px 20px; padding:10px 26px;
  background:color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--rule);
}
.picker{ display:flex; flex-wrap:wrap; gap:8px }
.picker button{
  font-family:var(--mono); font-size:12.5px; font-weight:500;
  background:var(--surface); color:var(--muted);
  border:1px solid var(--rule); border-radius:6px;
  padding:7px 13px; cursor:pointer;
}
.picker button:hover{ border-color:var(--accent-line); color:var(--ink) }
.picker button[aria-pressed="true"]{
  background:var(--accent); border-color:var(--accent); color:var(--bg);
}
@media (max-width:640px){ .pickerbar{ margin:0 -16px 16px; padding:10px 16px } }

/* ---------- chart -------------------------------------------------------- */
.chart{ width:100%; height:auto; display:block; overflow:visible }
.chart .grid{ stroke:var(--rule); stroke-width:1 }
.chart .tick{ font-family:var(--mono); font-size:10.5px; fill:var(--muted) }
.chart .dot{ fill:var(--accent); stroke:var(--surface); stroke-width:2 }
.chart .who{ font-family:var(--mono); font-size:10.5px; fill:var(--muted) }
.chart .amt{ font-family:var(--mono); font-size:11px; fill:var(--ink); font-weight:500 }
.chart .fixing{ stroke:var(--accent); stroke-width:2; stroke-dasharray:5 4; opacity:.9 }
/* Series marks. `.line` is solid where `.fixing` is dashed, because one is a
   value and the other is a level drawn across a distribution. A segment never
   spans a withheld date, so a break in the line is a fact, not a gap in the
   drawing. `.lone` rings a published day with withheld days either side, which
   has no segment to belong to. */
.chart .line{ fill:none; stroke:var(--accent); stroke-width:2;
              stroke-linejoin:round; stroke-linecap:round }
.chart .lone{ fill:none; stroke:var(--accent); stroke-width:2 }
.chart .cell{ stroke:none }
.chart .cell.on{ fill:var(--accent); opacity:.8 }
.chart .cell.off{ fill:var(--withheld); opacity:.55 }
.chart .fixing-label{ font-family:var(--mono); font-size:10.5px; fill:var(--accent) }
.legend{
  display:flex; flex-wrap:wrap; gap:20px; margin-top:6px;
  font-family:var(--mono); font-size:10.5px; color:var(--muted);
}
.legend .key{ display:inline-flex; align-items:center; gap:7px }
.legend .key::before{ content:""; width:12px; height:12px; border-radius:50%; background:var(--accent) }
.legend .line-key::before{ border-radius:0; height:2px; width:16px }
.legend .none-key::before{ border-radius:2px; background:var(--withheld) }
.chart-note{
  font-size:14px; color:var(--muted); line-height:1.6; margin:16px 0 0;
  border-left:2px solid var(--rule); padding-left:14px;
}

/* ---------- as-of + contract prose -------------------------------------- */
.asof-prose{ font-size:15px; color:var(--muted); line-height:1.65; margin:0 0 14px }
.asof-state{
  font-family:var(--mono); font-size:12.5px; color:var(--muted); line-height:1.7;
  background:var(--sunk); border:1px solid var(--rule); border-radius:8px; padding:13px 15px;
}
.asof-state strong{ color:var(--ink) }
.contract{ font-size:15px; color:var(--ink); line-height:1.65; margin:0 0 12px }
.contract.dim{ font-family:var(--mono); font-size:12.5px; color:var(--muted); margin:0 }

/* ---------- dependence on the schedule ---------------------------------- */
/* Three figures a reader can argue with, laid out the way the sibling
   benchmark lays out the same panel, so the two sites read as one family. */
.stat-row{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px }
.stat{ background:var(--sunk); border:1px solid var(--rule); border-radius:8px; padding:14px 16px }
.stat .k{ font-family:var(--ui); font-size:11px; letter-spacing:.13em; text-transform:uppercase; color:var(--muted) }
.stat .v{ font-family:var(--mono); font-size:22px; font-weight:600; color:var(--ink); margin:6px 0 2px }
.stat .n{ font-family:var(--ui); font-size:12.5px; color:var(--muted) }
.adjlist{ display:flex; flex-wrap:wrap; gap:8px 22px; font-family:var(--mono); font-size:13px; color:var(--ink-2) }
@media (max-width:640px){ .stat-row{ grid-template-columns:1fr } }

/* the fixing flow, laid out by hand so it fits a screen */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } }
.stage {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 10px;
  padding: 18px 20px 20px; box-shadow: var(--shadow); min-width: 0;
}
.stage .n { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.stage h3 { font-family: var(--ui); font-size: 16px; margin: 4px 0 12px; }
.stage ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.stage li {
  font-family: var(--ui); font-size: 14px; line-height: 1.45; color: var(--ink-2);
  padding-left: 16px; position: relative;
}
.stage li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--published, var(--accent));
}
.stage li.drop::before { background: var(--screened, var(--warn, var(--withheld))); }
.stage li.hold::before { background: var(--withheld); }
.stage li b { font-weight: 600; color: var(--ink); }
.stage li .to { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.stage li.drop .to { color: var(--screened, var(--warn, var(--withheld))); }
.stage li.hold .to { color: var(--withheld); }
.flow-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.flow-legend span::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px;
  background: var(--published, var(--accent));
}
.flow-legend span.drop::before { background: var(--screened, var(--warn, var(--withheld))); }
.flow-legend span.hold::before { background: var(--withheld); }
.types { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; }
@media (max-width: 960px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.types li {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 8px;
  padding: 12px 14px; min-width: 0; position: relative;
}
.types li::after {
  content: "\2192"; position: absolute; right: -11px; top: 12px; font-family: var(--mono);
  font-size: 13px; color: var(--muted); background: var(--bg); padding: 0 2px; z-index: 1;
}
.types li:last-child::after { content: none; }
@media (max-width: 960px) { .types li::after { content: none; } }
.types li b { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--ink); overflow-wrap: anywhere; }
.types li i { display: block; font-family: var(--serif); font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.types li small { display: block; font-family: var(--mono); font-size: 11px; color: var(--accent); margin-top: 8px; }
.types li.alt { border-style: dashed; }
