@font-face{font-family:'Archivo';font-style:normal;font-display:swap;font-weight:100 900;src:url(/fonts/archivo.8f704806db.woff2) format('woff2')}
@font-face{font-family:'Besley';font-style:normal;font-display:swap;font-weight:400 900;src:url(/fonts/besley.45a619033d.woff2) format('woff2')}
@font-face{font-family:'Archivo Fallback';font-weight:400;src:local('Arial');size-adjust:98.24%;ascent-override:89.37%;descent-override:21.38%;line-gap-override:0%}
@font-face{font-family:'Archivo Fallback';font-weight:700;src:local('Arial Bold');size-adjust:97%;ascent-override:90.52%;descent-override:21.65%;line-gap-override:0%}
@font-face{font-family:'Besley Fallback';font-weight:400;src:local('Georgia');size-adjust:114.3%;ascent-override:109.36%;descent-override:37.18%;line-gap-override:0%}
@font-face{font-family:'Besley Fallback';font-weight:700;src:local('Georgia Bold');size-adjust:103.09%;ascent-override:121.25%;descent-override:41.23%;line-gap-override:0%}
/* Inpatient Only Lookup.
   One visual rule runs through everything: filled means on the list, hollow means off it,
   amber means exempt from review. Type: Besley for answers and names, Archivo for the rest. */

:root {
  --paper: #fbfcfb;
  --panel: #eef3f1;
  --ink: #14221f;
  --ink-2: #4a615c;
  --rule: #cfdad6;
  --on: #108a78;        /* data marks: on the list */
  --on-deep: #0b6f61;   /* filled answer strip; white text sits on it */
  --on-ink: #0a6557;    /* links and small text in the brand hue */
  --ex: #c26a12;        /* data marks: exempt */
  --ex-ink: #8a4705;
  --focus: #14221f;
  --serif: 'Besley', 'Besley Fallback', 'Rockwell', 'Century Schoolbook', Georgia, serif;
  --sans: 'Archivo', 'Archivo Fallback', 'Franklin Gothic Medium', 'Helvetica Neue', Arial, sans-serif;
  --measure: 68ch;
  --page: 72rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1b19;
    --panel: #172724;
    --ink: #e8f0ed;
    --ink-2: #a5bab5;
    --rule: #2c423d;
    --on: #2a9e8a;
    --on-deep: #1c7566;
    --on-ink: #74d6c3;
    --ex: #c07e36;
    --ex-ink: #e6b071;
    --focus: #e8f0ed;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}
main { max-width: var(--page); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 4vw, 2.5rem) 4rem; }
h1, h2, h3 { font-family: var(--serif); font-variant-numeric: normal; font-weight: 650; line-height: 1.12; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.9rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem); }
h3 { font-size: 1.2rem; }
p, ul, ol, dl, table, figure, blockquote { margin: 0; }
p + p, p + ul, ul + p { margin-top: 0.85rem; }
a { color: var(--on-ink); text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 5; }
.skip:focus { top: 0.5rem; }
code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.86em; }

/* ---- top bar and footer ---- */
.top {
  max-width: var(--page); margin: 0 auto; padding: 1.1rem clamp(1rem, 4vw, 2.5rem) 1rem;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 2rem;
  border-bottom: 1px solid var(--rule);
}
.top__name { font: 650 1.2rem/1.2 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.top__nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.5rem; font-weight: 500; }
.top__nav a { color: var(--ink-2); text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.top__nav a:hover { color: var(--ink); }
.top__nav a[aria-current] { color: var(--ink); border-bottom-color: var(--on); }
.foot {
  max-width: var(--page); margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2.5rem) 4rem;
  border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.92rem;
}
.foot p { max-width: 86ch; }
.foot__warn { color: var(--ink); font-size: 1rem; }

/* ---- fields ---- */
.field {
  display: block; position: relative; background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: 4px; padding: 0.5rem 0.8rem 0.45rem;
}
.field > span { display: block; font-size: 0.82rem; font-weight: 500; color: var(--ink-2); line-height: 1.3; }
.field input, .field textarea {
  display: block; width: 100%; border: 0; padding: 0.1rem 0 0; margin: 0; background: transparent; color: var(--ink);
  font: 500 1.35rem/1.3 var(--sans); font-variant-numeric: tabular-nums lining-nums; outline: none; min-height: 2.1rem;
}
.field textarea { font-size: 1.05rem; line-height: 1.5; resize: vertical; min-height: 5.2rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); opacity: 1; font-weight: 400; }
.field:focus-within { border-color: var(--on-ink); outline: 3px solid var(--focus); outline-offset: 2px; }
input[type='search']::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
button {
  font: 600 1rem/1.2 var(--sans); color: var(--paper); background: var(--ink); border: 1.5px solid var(--ink);
  border-radius: 4px; padding: 0.7rem 1.1rem; cursor: pointer;
}
button:hover { background: var(--on-deep); border-color: var(--on-deep); color: #fff; }
button.quiet { background: transparent; color: var(--ink); }
button.quiet:hover { background: var(--panel); color: var(--ink); border-color: var(--ink); }
[hidden] { display: none !important; }

/* ---- home: the question ---- */
.ask__sub { max-width: var(--measure); margin-top: 1rem; font-size: 1.15rem; color: var(--ink-2); }
.ask__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(11.5rem, 15rem) auto auto; gap: 0.75rem; align-items: stretch; margin-top: 2rem; max-width: 60rem; }
.ask__form button { align-self: stretch; }
.ask__try { margin-top: 0.8rem; color: var(--ink-2); font-size: 0.98rem; }
.asked .ask__sub, .asked .ask__try { display: none; }
.asked .ask h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
.asked .ask__form { margin-top: 1.1rem; }
.results { margin-top: 1.75rem; }
.results:empty { margin: 0; }
.results__count, .results__none { color: var(--ink-2); margin-bottom: 0.6rem; max-width: var(--measure); }
.note { color: var(--ink-2); font-size: 0.95rem; max-width: var(--measure); margin-top: 0.9rem; }
.note--sched { color: var(--ink); padding: 0.55rem 0.8rem; border-left: 4px solid var(--ex); background: var(--panel); }

.dos { display: flex; gap: 0.75rem; align-items: stretch; margin: 1.25rem 0 1.5rem; }
.dos .field { width: 15rem; max-width: 100%; }

/* ---- code rows and chips ---- */
.rows { list-style: none; padding: 0; border-top: 1px solid var(--rule); max-width: 60rem; }
.rows li { border-bottom: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; gap: 0.2rem 1rem; align-items: baseline; padding: 0.62rem 0.35rem; color: var(--ink); text-decoration: none; }
.row:hover { background: var(--panel); }
.row__code { font: 700 1.05rem/1.3 var(--sans); font-variant-numeric: tabular-nums lining-nums; }
.row:hover .row__label { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
.chip { display: inline-block; font-size: 0.84rem; font-weight: 600; line-height: 1.2; padding: 0.24rem 0.6rem; border-radius: 999px; white-space: nowrap; border: 1.5px solid var(--ink-2); color: var(--ink); }
.chip--ipo { background: var(--on-deep); border-color: var(--on-deep); color: #fff; }
.chip--gone { border-style: dashed; color: var(--ink-2); }

/* ---- the verdict ---- */
.verdict { max-width: 60rem; }
.verdict__title { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); font-weight: 600; letter-spacing: 0; line-height: 1.25; }
.verdict__code { font-weight: 750; margin-right: 0.35em; }
.verdict__label { font-family: var(--sans); font-weight: 500; }
.verdict__none { color: var(--ink-2); font-size: 1rem; font-weight: 400; }
.verdict__where { color: var(--ink-2); font-size: 0.95rem; margin-top: 0.2rem; }
.verdict__answer {
  margin-top: 1rem; padding: 0.95rem 1.2rem 1.05rem; border-radius: 6px; border: 2.5px solid var(--ink);
  font-size: clamp(1.75rem, 1.1rem + 3.2vw, 3.2rem); line-height: 1.08;
}
.verdict--ipo .verdict__answer { background: var(--on-deep); border-color: var(--on-deep); color: #fff; }
.verdict--gone .verdict__answer { border-style: dashed; border-color: var(--ink-2); }
.verdict__lead { margin-top: 0.9rem; font-size: 1.15rem; max-width: var(--measure); }
.verdict__src { color: var(--ink-2); font-size: 0.95rem; }
.verdict__note { margin-top: 0.7rem; padding: 0.55rem 0.8rem; border-left: 4px solid var(--ex); background: var(--panel); max-width: var(--measure); font-size: 0.98rem; }
.verdict__more { margin-top: 1rem; font-weight: 600; }
.verdict__wait { color: var(--ink-2); }
.facts { margin-top: 1.4rem; border-top: 1px solid var(--rule); max-width: 60rem; }
.facts > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.3rem 1.5rem; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 600; color: var(--ink-2); }
.facts--wide { margin: 0.4rem 0 1.2rem; }
.facts--wide > div { grid-template-columns: 13rem minmax(0, 1fr); }
.facts dd { margin: 0; max-width: var(--measure); }

/* ---- timeline ---- */
.tl { margin-top: 1.6rem; max-width: 60rem; position: relative; padding-top: 1.7rem; }
.tl__track { position: relative; height: 2.6rem; cursor: ew-resize; touch-action: pan-y; border-bottom: 1px solid var(--rule); }
.tl__seg { position: absolute; top: 0.25rem; height: 1.5rem; border-radius: 3px; }
.tl__seg--ipo { background: var(--on); box-shadow: inset -2px 0 0 var(--paper); }
.tl__seg--off { border: 1.5px solid var(--ink-2); box-shadow: inset 0 0 0 0; margin-left: 0; }
.tl__ex { position: absolute; top: 1.95rem; height: 0.3rem; background: var(--ex); border-radius: 2px; }
/* Not yet decided (the year after the newest rule): dashed, in --ink-2 for 3:1 against the page. */
.tl__open, .key--open, .chart__open { border: 1.5px dashed var(--ink-2); }
.tl__open { position: absolute; top: 0.25rem; height: 1.5rem; border-radius: 3px; }
.tl__mark { position: absolute; top: -0.35rem; bottom: -0.2rem; width: 0; border-left: 2.5px solid var(--ink); pointer-events: none; }
.tl__mark::before { content: ''; position: absolute; left: -0.5rem; top: -0.15rem; width: calc(1rem - 2.5px); height: 0.5rem; background: var(--ink); border-radius: 2px; }
.tl__date { position: absolute; bottom: 100%; left: 0; transform: translateX(-50%); white-space: nowrap; font-size: 0.82rem; font-weight: 600; padding-bottom: 0.3rem; }
.tl__axis { position: relative; height: 1.5rem; margin-top: 0.3rem; font-size: 0.8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tl__year { position: absolute; top: 0; padding-left: 0.25rem; border-left: 1px solid var(--rule); line-height: 1.5rem; }
.tl__year:last-child { transform: translateX(-100%); border-left: 0; border-right: 1px solid var(--rule); padding: 0 0.25rem 0 0; }
.tl__range { position: absolute; left: 0; top: 1.7rem; width: 100%; height: 2.6rem; margin: 0; opacity: 0; pointer-events: none; }
.tl__range:focus-visible ~ .tl__legend, .tl:has(.tl__range:focus-visible) .tl__track { outline: 3px solid var(--focus); outline-offset: 4px; }
.tl__legend, .cellkey { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; margin-top: 0.5rem; font-size: 0.86rem; color: var(--ink-2); }
.tl__legend span, .cellkey span { display: inline-flex; align-items: center; gap: 0.45rem; }
.tl:has(.tl__range:focus-visible) .tl__legend { outline: 0; }
.key { display: inline-block; width: 1.3rem; height: 0.75rem; border-radius: 2px; }
.key--ipo { background: var(--on); }
.key--off { border: 1.5px solid var(--ink-2); }
.key--ex { background: var(--ex); height: 0.3rem; }

/* ---- events ---- */
.events { list-style: none; padding: 0; max-width: 60rem; border-top: 1px solid var(--rule); }
.events li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0.15rem 1.5rem; padding: 0.65rem 0; border-bottom: 1px solid var(--rule); }
.events__what { font-weight: 600; }
.events__src { color: var(--ink-2); font-size: 0.95rem; }
.events li.later .events__what { font-weight: 400; color: var(--ink-2); }
.events li.later .events__what::after { content: ' (after this date of service)'; font-size: 0.86rem; }

/* ---- sections ---- */
.block, .several, .whole, .status, .year, .fam, .others { margin-top: clamp(2.5rem, 5vw, 4rem); }
.block > h2, .several > h2, .whole > h2, .status > h2, .year > h2, .fam > h2, .others h2 { margin-bottom: 0.8rem; }
.block > p, .several > p, .year > p, .lede { max-width: var(--measure); }
.block h3 { margin: 1.4rem 0 0.5rem; }
.lede { font-size: 1.2rem; margin-top: 1rem; color: var(--ink); }
.crumbs { font-size: 0.92rem; color: var(--ink-2); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-2); }
.plain { padding-left: 1.15rem; max-width: var(--measure); }
.plain li { margin-top: 0.55rem; }
.plain li::marker { color: var(--on); }
.several form { margin-top: 1rem; display: grid; gap: 0.75rem; max-width: 40rem; justify-items: start; }
.several .field { width: 100%; }
.several [data-bulk-out] { margin-top: 1.25rem; }
blockquote { border-left: 4px solid var(--on); padding: 0.2rem 0 0.2rem 1.2rem; max-width: var(--measure); }
blockquote p { font: 500 1.2rem/1.5 var(--serif); }
blockquote footer { margin-top: 0.6rem; color: var(--ink-2); font-size: 0.95rem; }

/* ---- the whole list ---- */
.whole__sum { max-width: var(--measure); }
.whole__sum strong { font: 700 1.5rem/1 var(--serif); }
.scrub { max-width: 44rem; margin: 1.2rem 0 0.4rem; }
.scrub__range { display: block; width: 100%; margin: 0; height: 2rem; accent-color: var(--on-deep); cursor: ew-resize; background: transparent; -webkit-appearance: none; appearance: none; }
.scrub__range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--ink-2); }
.scrub__range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--ink-2); }
.scrub__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 1.5rem; height: 1.5rem; margin-top: calc(-0.75rem + 2px); border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 1.5px var(--ink); }
.scrub__range::-moz-range-thumb { width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 1.5px var(--ink); }
.scrub__years { position: relative; height: 1.4rem; margin: 0 0.75rem; font-size: 0.8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.scrub__years span { position: absolute; top: 0; transform: translateX(-50%); }
.scrub__years span:first-child { transform: none; margin-left: -0.75rem; }
.systems { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.4rem 2.2rem; }
.sys { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.75rem; align-items: baseline; align-content: start; }
.sys__name { font-weight: 600; }
.sys__name a { color: var(--ink); }
.sys__count { color: var(--ink-2); font-size: 0.92rem; font-variant-numeric: tabular-nums; margin: 0; }
.cells { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 3px; margin-top: 0.35rem; }
.cell { display: inline-block; width: 9px; height: 9px; border-radius: 1.5px; flex: none; }
.cells .cell { cursor: pointer; }
.cell--ipo { background: var(--on); }
.cell--off { border: 1.5px solid var(--ink-2); opacity: 0.75; }
.cell--gone::after { content: ''; display: block; margin: 2.5px; height: 4px; border: 2px solid var(--ink-2); border-radius: 50%; }
.cells .cell:hover { outline: 2px solid var(--ink); outline-offset: 1px; }
.cellhint { margin-top: 1rem; min-height: 1.6em; color: var(--ink-2); font-size: 0.95rem; }
@media (hover: none) { .cellhint { display: none; } }

/* ---- home: status ---- */
.status__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem 2.5rem; }
.status__grid p { margin: 0; border-top: 2.5px solid var(--ink); padding-top: 0.8rem; }
.status__after { margin-top: 1.5rem; max-width: var(--measure); font: 500 1.25rem/1.45 var(--serif); }

/* ---- history ---- */
.chart { margin-top: 2rem; max-width: 60rem; }
.chart figcaption { font-weight: 600; margin-bottom: 2rem; }
.chart__key { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.92rem; }
.chart__plot { position: relative; height: clamp(11rem, 26vw, 16rem); border-bottom: 1px solid var(--ink-2); }
.bar { position: absolute; bottom: 0; background: var(--on); box-shadow: inset -2px 0 0 var(--paper); border-radius: 3px 3px 0 0; min-width: 2px; }
.bar--sched { background: repeating-linear-gradient(135deg, var(--on) 0 4px, transparent 4px 7px); border: 1.5px solid var(--on); border-bottom: 0; box-shadow: none; }
.chart__val { position: absolute; transform: translateY(-0.15rem); font-size: 0.84rem; font-weight: 600; font-variant-numeric: tabular-nums; padding-left: 0.15rem; line-height: 1.2; }
.chart__open { position: absolute; bottom: 0; top: 0; border-bottom: 0; border-radius: 3px 3px 0 0; display: grid; place-items: end start; overflow: hidden; }
.chart__open span { font-size: 0.8rem; color: var(--ink-2); padding: 0.3rem 0.4rem; line-height: 1.25; }
.chart__table { margin-top: 0.8rem; }
.chart__table table { margin-top: 0.5rem; }
.year { border-top: 2.5px solid var(--ink); padding-top: 1rem; }
.year h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }
.year__src { color: var(--ink-2); font-size: 0.95rem; margin-top: 0.8rem; }
.ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.8rem 1.5rem; margin: 1.1rem 0; max-width: 60rem; }
.ledger div { border-top: 1px solid var(--rule); padding-top: 0.45rem; }
.ledger dt { font-size: 0.86rem; color: var(--ink-2); }
.ledger dd { margin: 0; font: 650 1.5rem/1.2 var(--serif); }
details { max-width: 60rem; }
summary { cursor: pointer; font-weight: 600; padding: 0.45rem 0; }
.codes { border-top: 1px solid var(--rule); }
.codes:last-of-type { border-bottom: 1px solid var(--rule); }
.codes__more { padding-bottom: 1rem; margin: 0; }
.codes__list + .codes__more { margin-top: -0.4rem; }
#content:focus { outline: none; }
.codes__list { padding: 0.3rem 0 1rem; font-variant-numeric: tabular-nums; line-height: 1.9; word-spacing: 0.45em; }
.bygroup__cap { max-width: var(--measure); margin-bottom: 0.8rem; }
.gap__codes { font-variant-numeric: tabular-nums; word-spacing: 0.3em; }

/* ---- tables ---- */
.scroll { overflow-x: auto; max-width: 100%; position: relative; }
table { border-collapse: collapse; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 1.25rem 0.55rem 0; border-bottom: 1px solid var(--rule); }
thead th { font-weight: 600; color: var(--ink-2); border-bottom-color: var(--ink-2); white-space: nowrap; }
tbody th { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.check td { min-width: 6rem; }
td a[target] { white-space: nowrap; }
.files td:first-child { min-width: 16rem; }

/* ---- phase-out ---- */
.phases { list-style: none; padding: 0; margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 1.5rem 1.75rem; }
.phase { border-top: 0.6rem solid var(--on); padding-top: 0.8rem; }
.phase--open { border-top-style: dashed; border-top-color: var(--ink-2); border-top-width: 2.5px; padding-top: calc(0.8rem + 0.6rem - 2.5px); }
.phase--end { border-top-color: var(--ink); border-top-width: 2.5px; padding-top: calc(0.8rem + 0.6rem - 2.5px); }
.phase--done { border-top-color: var(--ink-2); }
.phase__when { font-weight: 600; color: var(--ink-2); font-size: 0.95rem; }
.phase h2 { font-size: 1.35rem; margin: 0.3rem 0 0.5rem; }
.others p { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }

/* ---- revenue at stake ----
   The card keeps the site's rule: filled is inpatient (on the list), hollow is outpatient (off it). */
.draft { display: inline-block; margin-top: 1.1rem; font-size: 0.88rem; font-weight: 600; padding: 0.24rem 0.65rem; border: 1.5px dashed var(--ex-ink); border-radius: 4px; color: var(--ex-ink); }
.stake__years { margin-top: 0.9rem; color: var(--ink-2); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.meter { margin-top: 1.4rem; max-width: 36rem; }
.meter__text { font-size: 1rem; }
.meter__text strong { font: 650 1.3rem/1 var(--serif); }
.meter__bar { margin-top: 0.5rem; height: 0.55rem; border: 1.5px solid var(--ink-2); border-radius: 2px; }
.meter__bar span { display: block; height: 100%; min-width: 2px; background: var(--on); }
.subnav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; margin-bottom: 1.2rem; font-weight: 500; font-size: 0.95rem; }
.subnav a { color: var(--ink-2); text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current] { color: var(--ink); border-bottom-color: var(--on); }
.callout { margin-top: 1.4rem; max-width: 40rem; padding: 1rem 1.2rem; background: var(--panel); border: 1.5px solid var(--ink); border-radius: 4px; }
.callout h2 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.callout p { margin: 0 0 0.8rem; }
.callout__act { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 0; }
.callout__count { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.scard__batch { align-self: center; font-size: 0.95rem; }
.stake__actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn {
  display: inline-block; font: 600 1rem/1.2 var(--sans); text-decoration: none; color: var(--paper); background: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 4px; padding: 0.62rem 1rem;
}
.btn:hover { background: var(--on-deep); border-color: var(--on-deep); color: #fff; }
.btn--quiet { background: transparent; color: var(--ink); }
.btn--quiet:hover { background: var(--panel); color: var(--ink); border-color: var(--ink); }
.guard .plain { max-width: 62ch; }
.stab { margin-top: 1.8rem; }
/* The main page's 900-row tables: skip layout until near the viewport. Height: the measured average section. */
[data-stake-table] .stab { content-visibility: auto; contain-intrinsic-block-size: auto 150rem; }
.stab h3 { margin-bottom: 0.4rem; }
.stab__jump { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin-top: 1rem; max-width: 60rem; }
.stab__n { color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 0.88rem; }
.stab__table { width: 100%; max-width: 60rem; }
.stab__table td:nth-child(2) { min-width: 13rem; }
.stab__table td, .stab__table th { padding-right: 1rem; }
.stab__sub { display: block; font-size: 0.85rem; color: var(--ink-2); white-space: normal; }
.stab__codes { font-variant-numeric: tabular-nums; word-spacing: 0.3em; min-width: 12rem; }
.num { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.steps li::marker { color: var(--ink-2); font-weight: 600; }
.credits { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; }
.stake-block__lede { max-width: var(--measure); color: var(--ink-2); }
.stake-block__more { margin-top: 0.9rem; font-size: 0.95rem; }

.scard {
  margin-top: 1rem; max-width: 46rem; border: 2px solid var(--ink); border-radius: 6px;
  padding: clamp(0.95rem, 2.5vw, 1.4rem) clamp(0.95rem, 3vw, 1.6rem) 1.1rem; background: var(--paper);
}
.scard--none { border-style: dashed; border-color: var(--ink-2); }
.scard__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.55rem; font-size: 1.15rem; line-height: 1.3; }
.scard__code { font: 750 1.3rem/1.2 var(--sans); font-variant-numeric: tabular-nums lining-nums; }
.scard__label { font-weight: 500; }
.scard__status { margin-top: 0.55rem; }
.scard__title + .scard__status { margin-top: 0.45rem; }
.badge { display: inline-block; font-size: 0.84rem; font-weight: 600; line-height: 1.2; padding: 0.22rem 0.6rem; border-radius: 999px; border: 1.5px solid var(--ink-2); color: var(--ink); }
.badge--confirmed { background: var(--on-deep); border-color: var(--on-deep); color: #fff; }
.badge--disputed { border-color: var(--ex); color: var(--ex-ink); border-width: 2px; }
.badge--one-agrees, .badge--agree-needs-tiebreak { border-color: var(--on); }
.scard__gap { margin-top: 0.75rem; font: 600 clamp(1.3rem, 1.05rem + 1.1vw, 1.75rem)/1.2 var(--serif); letter-spacing: -0.01em; font-variant-numeric: lining-nums; text-wrap: balance; max-width: 34ch; }
.scard__pay { margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0.9rem 1.6rem; }
.scard__pay > div { border-top: 1px solid var(--rule); padding-top: 0.5rem; }
.scard__pay dt { font-weight: 600; font-size: 0.92rem; }
.scard__pay dt span { font-weight: 400; color: var(--ink-2); }
.scard__pay dd { margin: 0.2rem 0 0; }
.scard__amt { display: block; font: 650 1.45rem/1.2 var(--sans); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em; }
.scard__what, .scard__asc, .scard__cond { display: block; font-size: 0.92rem; line-height: 1.4; }
.scard__asc, .scard__cond { color: var(--ink-2); }
.scard__asc { margin-top: 0.3rem; }
.scard__caveat { display: block; margin-top: 0.35rem; font-size: 0.88rem; line-height: 1.4; padding-left: 0.6rem; border-left: 3px solid var(--ex); }
.scard__fam + .scard__fam { margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px dashed var(--rule); }
.nw { white-space: nowrap; }
.scard__none:first-child { margin-top: 0; }
.scard__none { font-size: 1.02rem; max-width: var(--measure); margin-top: 0.5rem; }
.scard--none .scard__pay { grid-template-columns: minmax(0, 1fr); }
.scard__tier { margin-top: 0.8rem; font-size: 0.95rem; max-width: var(--measure); }
.scard__fine { margin-top: 0.4rem; font-size: 0.85rem; color: var(--ink-2); }
.scard__draft { color: var(--ex-ink); font-weight: 600; }
.scard__act { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.scard__act .btn { padding: 0.5rem 0.9rem; font-size: 0.95rem; }

.sbar { margin-top: 1rem; display: grid; gap: 0.35rem; }
.sbar__lane { display: grid; grid-template-columns: minmax(0, 1fr); }
.sbar__name { font-size: 0.78rem; color: var(--ink-2); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbar__track { position: relative; display: block; height: 0.8rem; background: linear-gradient(to right, var(--rule) 1px, transparent 1px) 0 0 / 25% 100% repeat-x; border-bottom: 1px solid var(--rule); }
.sbar__op, .sbar__ip { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 2px; }
.sbar__op { border: 1.5px solid var(--ink); background: var(--paper); min-width: 3px; }
.sbar__ip { background: var(--on); min-width: 3px; }
.sbar__axis { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.scard__work { margin-top: 0.7rem; border-top: 1px solid var(--rule); }
.scard__work summary { color: var(--on-ink); }
.work { padding: 0.2rem 0 0.6rem; font-size: 0.95rem; }
.work > p { max-width: var(--measure); margin-top: 0.55rem; }
.work .work__h { font-weight: 650; margin-top: 1rem; }
.work__list { list-style: none; padding: 0; margin-top: 0.3rem; }
.work__list li { padding: 0.25rem 0; border-bottom: 1px solid var(--rule); }
.work__list code { font-weight: 600; }
.work__note { color: var(--ink-2); }
.work__fam { font-weight: 600; }
.work__sub { color: var(--ink-2); }
.work__drgs { margin-top: 0.3rem; font-size: 0.9rem; }
.work__drgs th, .work__drgs td { padding: 0.35rem 0.9rem 0.35rem 0; }
.work__drgs .num, .work__drgs th.num { text-align: right; }
.work__stale { color: var(--ex-ink); font-weight: 600; }
.work__meta { color: var(--ink-2); font-size: 0.88rem; }

/* ---- small screens ---- */
@media (max-width: 44rem) {
  body { font-size: 1rem; }
  .top { padding-top: 0.8rem; padding-bottom: 0.6rem; }
  .top__nav { gap: 0.1rem 1.1rem; font-size: 0.95rem; }
  .ask__sub { font-size: 1.02rem; margin-top: 0.7rem; }
  .ask__form { margin-top: 1.3rem; }
  .verdict__answer { padding: 0.75rem 0.9rem 0.85rem; }
  .verdict__lead { font-size: 1.05rem; }
  .ask__form { grid-template-columns: minmax(0, 1fr); }
  .ask__form button { justify-self: start; }
  .row { grid-template-columns: 4.2rem minmax(0, 1fr); }
  .row .chip { grid-column: 2; justify-self: start; }
  .facts > div, .facts--wide > div { grid-template-columns: minmax(0, 1fr); }
  .events li { grid-template-columns: minmax(0, 1fr); }
  .tl__year:not(:nth-child(3n + 1)) { visibility: hidden; }
  .chart__open span { display: none; }
  .chart figcaption { margin-bottom: 1.6rem; }
  .field input { font-size: 1.2rem; }
  .dos { flex-wrap: wrap; }
  .scard__pay { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Windows High Contrast (forced colors) ----
   Fills and gradients are dropped there, which would blank every on-list mark while the hollow ones stay.
   The fill is the information, so keep it, in the system text color. */
@media (forced-colors: active) {
  .cell--ipo, .key--ipo, .tl__seg--ipo, .bar, .sbar__ip, .meter__bar span, .tl__ex, .key--ex { forced-color-adjust: none; background: CanvasText; }
  .tl__seg--ipo, .bar { box-shadow: inset -2px 0 0 Canvas; }
  .bar--sched { background: Canvas; border-color: CanvasText; box-shadow: none; }
  /* The date slider's track and thumb, and the timeline's date handle, are fills too. */
  .scrub__range, .tl__mark::before { forced-color-adjust: none; }
  .scrub__range:focus-visible { outline-color: Highlight; }
  .tl__mark::before { background: CanvasText; }
  .scrub__range::-webkit-slider-runnable-track { background: CanvasText; }
  .scrub__range::-moz-range-track { background: CanvasText; }
  .scrub__range::-webkit-slider-thumb { background: CanvasText; border-color: Canvas; box-shadow: 0 0 0 1.5px CanvasText; }
  .scrub__range::-moz-range-thumb { background: CanvasText; border-color: Canvas; box-shadow: 0 0 0 1.5px CanvasText; }
}

@media print {
  .top__nav, .ask__form, .ask__try, .several, .dos, .tl__range, .skip { display: none; }
  body { font-size: 11pt; }
  .verdict--ipo .verdict__answer { background: none; color: #000; border-color: #000; }
  a { color: inherit; }
  .stake__actions, .callout, .subnav, .scard__act, .stab__jump, [data-stake-app] { display: none; }
  .scard { break-inside: avoid; border-color: #000; }
  .scard__work[open] { break-inside: auto; }
  .sbar__ip, .meter__bar span { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .badge--confirmed { background: none; color: #000; border-color: #000; }
}

/* ---- revenue at stake: search and filters (added by stake-client.mjs; the tables below are the baseline) ---- */
.sfilter { margin-top: 1.6rem; max-width: 46rem; }
.sfilter__row { margin-top: 0.8rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.7rem 0.9rem; }
.sfilter__field span { display: block; font-size: 0.82rem; font-weight: 500; color: var(--ink-2); line-height: 1.3; }
.sfilter__field select {
  display: block; width: 100%; margin-top: 0.15rem; min-height: 2.75rem; padding: 0.4rem 0.5rem; font: 500 1rem/1.3 var(--sans);
  color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 4px;
}
.sfilter__hint { margin-top: 0.5rem; font-size: 0.82rem; color: var(--ink-2); }
.sfilter__foot { margin-top: 0.8rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; }
.sfilter__check { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; }
.sfilter__check input { width: 1.2rem; height: 1.2rem; accent-color: var(--on-deep); }
.sfilter__count { margin-top: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; min-height: 1.5em; }
.sresults:empty { display: none; }
.sresults__more { margin-top: 1.2rem; }
.scard__more { margin-top: 0.7rem; font-size: 0.95rem; }
.scard[tabindex='-1']:focus-visible { outline-offset: 4px; }
@media print { .sfilter, .sfilter__count, .sresults__more { display: none; } }

.stake-tablewrap { max-width: none; margin-top: 1.6rem; }
.stake-tablewrap > summary { font-weight: 600; }
.stake-tablewrap > h2 { margin-top: 1rem; }
