/* /sgo/ — the SGO section (Scholarship Granting Organizations under IRC §25F).
 *
 * Same palette and band rhythm as /nonprofit-operations/ (The Ledger): dark hero with the yellow
 * highlight, alternating light and dim bands, mono for numbers and labels, Archivo for arguments.
 * No small labels above headings (the admin's standing rule).
 *
 * What is specific here is data: a status per state, a table of states that becomes cards on a
 * phone, fact tiles on each state page and a list of sources with the date each was read. All of it
 * works without JavaScript. Generated pages: build/build-sgo.mjs.
 */

:root {
  --bg: #FFFFFF; --dim: #F4F6F3;
  --ink: #0B0F0A; --variant: #4A5247; --muted: #5A6457;
  --outline: #E2E6DF; --outline-2: #C8CEC6;
  --primary: #155138; --primary-c: #E8EFE4;
  --highlight: #FAC700; --on-highlight: #0B0F0A;
  --deep: #0B0F0A; --on-deep: #FFFFFF; --on-deep-variant: #A9BBAC;
  --wa: #1F7A45;
  --ok-bg: #E3F1E6; --ok-ink: #12492F;
  --ask-bg: #FFF3C4; --ask-ink: #5C4700;
  --late-bg: #F6E1DE; --late-ink: #7A2A1F;
  --wait-bg: #ECEFEA; --wait-ink: #3F473C;
  --out-bg: #DDE1DB; --out-ink: #2B3129;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 30px;
  overflow-wrap: break-word;
}
a { color: var(--primary); }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.band { padding: 80px 0; }
.band-dim { background: var(--dim); }
.band-dark { background: var(--deep); color: var(--on-deep); }
.band-dark a { color: var(--highlight); }

h1, h2, h3 { margin: 0; }
h2 {
  font-size: 40px; font-weight: 800; line-height: 44px; letter-spacing: -0.02em;
  margin: 0 0 16px; max-width: 24ch;
}
h3 { font-size: 21px; font-weight: 700; line-height: 28px; margin: 0 0 8px; }
.sub { font-size: 17px; line-height: 28px; color: var(--variant); margin: 0 0 32px; max-width: 66ch; }
.band-dark .sub { color: var(--on-deep-variant); }
.prose p { font-size: 17px; line-height: 29px; color: var(--variant); margin: 0 0 16px; max-width: 70ch; }
.prose p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ top bar and section links */
.top {
  max-width: 1120px; margin: 0 auto; padding: 22px 40px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand {
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--on-deep); text-decoration: none;
}
.brand mark { background: var(--highlight); color: var(--ink); padding: 0 3px; }
.secnav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.secnav a {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--on-deep-variant); text-decoration: none; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.secnav a:hover, .secnav a[aria-current="page"] { color: var(--on-deep); border-bottom-color: var(--highlight); }

/* ------------------------------------------------------------------ hero */
.hero { padding-bottom: 0; }
.hero-in { max-width: 1120px; margin: 0 auto; padding: 56px 40px 56px; }
.hero h1 {
  font-size: 76px; font-weight: 800; line-height: 76px; letter-spacing: -0.03em;
  margin: 0 0 26px; max-width: 17ch;
}
.hero h1 em { font-style: normal; color: var(--highlight); display: block; }
.hero-state h1 { font-size: 60px; line-height: 62px; max-width: 20ch; }
.lede { font-size: 20px; line-height: 32px; color: var(--on-deep-variant); margin: 0 0 30px; max-width: 60ch; }
.lede b { color: var(--on-deep); font-weight: 700; }
.crumbs {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--on-deep-variant); margin: 0 0 22px;
}
.crumbs a { color: var(--on-deep-variant); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); }
.crumbs a:hover { color: var(--on-deep); }
.crumbs span { margin: 0 8px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; line-height: 1;
  padding: 16px 26px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 3px 0 #000; transition: box-shadow 120ms ease, transform 120ms ease;
}
.btn:hover { box-shadow: 0 5px 0 #000; transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #fff !important; }
.btn-wa .wa-glyph { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-hi { background: var(--highlight); color: var(--on-highlight) !important; }
.btn-ghost { background: transparent; color: var(--on-deep) !important; border: 2px solid currentColor; padding: 14px 24px; box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); box-shadow: none; }
.band:not(.band-dark) .btn-ghost { color: var(--ink) !important; }
.cta-row { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }

.scale {
  list-style: none; margin: 0 auto; padding: 28px 40px 44px; max-width: 1120px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.scale li { display: flex; flex-direction: column; gap: 6px; }
.scale b {
  font-family: var(--mono); font-size: 34px; font-weight: 600; line-height: 1.1;
  color: var(--highlight); letter-spacing: -0.02em;
}
.scale span { font-size: 15px; line-height: 23px; color: var(--on-deep-variant); }

/* ------------------------------------------------------------------ status chips */
.chip {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; line-height: 16px; padding: 5px 10px; border-radius: 2px; white-space: nowrap;
}
.chip-possible { background: var(--ok-bg); color: var(--ok-ink); }
.chip-ask { background: var(--ask-bg); color: var(--ask-ink); }
.chip-late { background: var(--late-bg); color: var(--late-ink); }
.chip-not_open { background: var(--wait-bg); color: var(--wait-ink); }
.chip-out { background: var(--out-bg); color: var(--out-ink); }
.legend { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; max-width: 80ch; }
.legend li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; line-height: 24px; color: var(--variant); }
.legend .chip { flex: none; min-width: 190px; text-align: center; }

/* ------------------------------------------------------------------ state cards (hub, listing) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  display: block; background: var(--bg); border: 1px solid var(--outline-2); padding: 20px 22px;
  text-decoration: none; color: var(--ink); transition: border-color 120ms ease, transform 120ms ease;
}
.band:not(.band-dim) .card { background: var(--dim); border-color: var(--outline); }
.card:hover { border-color: var(--primary); transform: translateY(-2px); }
.card-name { font-size: 22px; font-weight: 800; line-height: 28px; letter-spacing: -0.01em; margin: 10px 0 6px; }
.card-line { font-size: 15px; line-height: 23px; color: var(--variant); margin: 0; }
.card-line b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.more { margin: 26px 0 0; font-weight: 700; }

/* ------------------------------------------------------------------ services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { background: var(--dim); padding: 28px; box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; }
.band-dim .service { background: var(--bg); }
.service h3 { font-size: 24px; line-height: 30px; letter-spacing: -0.01em; margin-bottom: 12px; }
.service p { font-size: 16px; line-height: 26px; color: var(--variant); margin: 0 0 18px; flex: 1 1 auto; }
.service a { font-weight: 700; }

/* ------------------------------------------------------------------ facts and rules */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.fact { padding: 22px 26px 22px 0; border-bottom: 1px solid var(--outline-2); }
.fact:nth-child(odd) { padding-right: 34px; }
.fact b { display: block; font-size: 19px; line-height: 26px; margin: 0 0 6px; }
.fact p { font-size: 16px; line-height: 26px; color: var(--variant); margin: 0; }
.cite { font-family: var(--mono); font-size: 12px; line-height: 18px; color: var(--muted); letter-spacing: 0.02em; }

.rules { counter-reset: r; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.rules li { counter-increment: r; position: relative; padding-left: 44px; font-size: 16px; line-height: 26px; color: var(--variant); }
.rules li::before {
  content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--primary);
}
.rules b { color: var(--ink); }

/* ------------------------------------------------------------------ steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 64px 1fr 120px; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--outline-2); }
.step-n { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--primary); }
.step-t b { display: block; font-size: 18px; line-height: 25px; margin: 0 0 4px; }
.step-t span { font-size: 16px; line-height: 26px; color: var(--variant); }
.step-who { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: right; }
.step-who.us { color: var(--primary); }

/* ------------------------------------------------------------------ the states table */
.tbl-wrap { border-top: 2px solid var(--ink); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.tbl th {
  text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); padding: 14px 12px 12px 0; border-bottom: 1px solid var(--outline-2);
  vertical-align: bottom;
}
.tbl td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--outline); vertical-align: top; color: var(--variant); }
.tbl td.st a { font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none; }
.tbl td.st a:hover { color: var(--primary); text-decoration: underline; }
.tbl td.num { font-family: var(--mono); font-size: 14px; color: var(--ink); white-space: nowrap; }
.tbl tr.grp td {
  padding: 28px 0 10px; border-bottom: 1px solid var(--outline-2); font-weight: 800; font-size: 19px; color: var(--ink);
}
.asof { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 14px 0 0; }

/* ------------------------------------------------------------------ state page */
.verdict {
  border-left: 4px solid var(--highlight); padding: 4px 0 4px 22px; margin: 0 0 28px; max-width: 70ch;
}
.verdict .chip { margin: 0 0 12px; }
.verdict p { font-size: 20px; line-height: 31px; color: var(--on-deep); margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.tile { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--outline-2); }
.tile + .tile { padding-left: 18px; border-left: 1px solid var(--outline); }
.tile-k { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.tile-v { font-size: 18px; font-weight: 800; line-height: 24px; margin: 0; }
.tile-n { font-size: 14px; line-height: 21px; color: var(--variant); margin: 6px 0 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; font-size: 16px; line-height: 26px; color: var(--variant); }
.ticks li::before { content: ''; position: absolute; left: 1px; top: 8px; width: 8px; height: 8px; border: 2px solid var(--primary); }
.quote { font-size: 16px; line-height: 26px; color: var(--ink); border-left: 3px solid var(--outline-2); padding: 2px 0 2px 16px; margin: 12px 0 0; max-width: 70ch; }
.kv { display: grid; grid-template-columns: 220px 1fr; gap: 10px 20px; margin: 0; font-size: 16px; line-height: 26px; }
.kv dt { font-weight: 700; color: var(--ink); }
.kv dd { margin: 0; color: var(--variant); }
.kv dd .quote, .kv dd .note { display: block; margin-top: 8px; }
.kv dd .note { font-size: 14px; line-height: 22px; }
.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sources li { font-size: 15px; line-height: 23px; color: var(--variant); }
.sources a { word-break: break-word; }
.sources .cite { display: block; margin-top: 2px; }
.note { font-size: 15px; line-height: 24px; color: var(--muted); margin: 18px 0 0; max-width: 72ch; }

/* ------------------------------------------------------------------ the form band and close */
.sgo-lead { margin: 0; }
.sgo-wa-first { margin: 0 0 22px; }
.close { padding-bottom: 0; }
.fine { font-family: var(--mono); font-size: 11px; line-height: 18px; letter-spacing: 0.04em; color: var(--on-deep-variant); margin: 22px 0 0; max-width: 90ch; }

/* ------------------------------------------------------------------ the system preview
 * A drawn window, not a screenshot: crisp at any width, no image to keep in step with a product that
 * is still being built. Figures and initials are invented; the page says so under it. */
.sys { border: 2px solid var(--ink); background: var(--bg); box-shadow: 8px 8px 0 var(--ink); }
.sys-chrome { display: flex; align-items: center; gap: 7px; background: var(--deep); padding: 10px 14px; }
.sys-chrome span { width: 10px; height: 10px; border-radius: 50%; background: #3A4637; }
.sys-chrome span:first-child { background: var(--highlight); }
.sys-chrome p { margin: 0 0 0 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--on-deep-variant); }
.sys-body { display: grid; grid-template-columns: 150px 1fr; }
.sys-side { background: var(--dim); border-right: 1px solid var(--outline); padding: 16px 0; display: flex; flex-direction: column; }
.sys-side b { font-size: 14px; font-weight: 600; color: var(--variant); padding: 9px 18px; border-left: 3px solid transparent; }
.sys-side b.on { color: var(--ink); border-left-color: var(--primary); background: var(--bg); font-weight: 800; }
.sys-main { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; background: #FAFBF9; min-width: 0; }
.sys-panel { background: var(--bg); border: 1px solid var(--outline); padding: 14px 16px; min-width: 0; }
.sys-wide { grid-column: 1 / -1; }
.sys-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; font-size: 15px; font-weight: 800; line-height: 20px; }
.sys-h span { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.sys-due-list { list-style: none; margin: 0; padding: 0; }
.sys-due-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--outline); font-size: 13px; line-height: 19px; color: var(--variant); }
.sys-due-list b { display: block; color: var(--ink); font-size: 14px; }
.sys-date { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--primary); }
.sys-tag { display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; line-height: 14px; padding: 2px 7px; border-radius: 2px; background: var(--ok-bg); color: var(--ok-ink); white-space: nowrap; }
.sys-tag-warn { background: var(--ask-bg); color: var(--ask-ink); }
.sys-tag-stop { background: var(--late-bg); color: var(--late-ink); }
.sys-bar { padding: 8px 0; border-top: 1px solid var(--outline); }
.sys-bar-h { display: flex; justify-content: space-between; font-size: 13px; line-height: 18px; margin: 0 0 6px; }
.sys-bar-h span { font-family: var(--mono); font-weight: 600; }
.sys-meter { position: relative; height: 10px; background: var(--wait-bg); }
.sys-meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--primary); }
.sys-meter em { position: absolute; left: 90%; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.sys-bar p { margin: 6px 0 0; font-size: 12px; line-height: 17px; color: var(--muted); }
.sys-ok { color: var(--ok-ink); font-weight: 600; }
.sys-due { color: var(--ask-ink); font-weight: 600; }
.sys-small { margin: 10px 0 0; font-size: 12px; line-height: 17px; color: var(--muted); }
.sys-tbl { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.sys-tbl th { text-align: left; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 0 8px 6px 0; border-bottom: 1px solid var(--outline-2); }
.sys-tbl td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--outline); color: var(--variant); vertical-align: top; }
.sys-tbl td:first-child { color: var(--ink); font-weight: 600; }
.sys-tbl .mono { font-family: var(--mono); font-size: 12px; }
.sys-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.sys-checks li { position: relative; padding-left: 26px; font-size: 13px; line-height: 19px; color: var(--variant); }
.sys-checks li b { display: block; color: var(--ink); font-size: 14px; }
.sys-checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok-bg); border: 2px solid var(--primary); }
.sys-checks li.warn::before { background: var(--ask-bg); border-color: #B08900; }
@media (max-width: 1000px) {
  .sys-body { grid-template-columns: 1fr; }
  .sys-side { flex-direction: row; flex-wrap: wrap; padding: 8px; border-right: 0; border-bottom: 1px solid var(--outline); }
  .sys-side b { padding: 6px 10px; border-left: 0; border-bottom: 3px solid transparent; font-size: 13px; }
  .sys-side b.on { border-bottom-color: var(--primary); }
}
@media (max-width: 760px) {
  .sys-main { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .sys-checks { grid-template-columns: 1fr; }
  .sys-tbl .hide-sm { display: none; }
  .sys-tbl { font-size: 12px; }
  .sys-tbl .sys-tag { white-space: normal; }
  .sys { box-shadow: 4px 4px 0 var(--ink); }
}

/* The hub's hero: text on the left, the states still open on the right, from 1100px up. Below that
 * the card is not shown: the same states are the next section, and a block above the text on a
 * phone is what the site removed in August 2026 when search impressions fell. */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr); gap: 56px; align-items: center; }
.hero-split h1 { font-size: 64px; line-height: 66px; }
.ledger { background: var(--bg); color: var(--ink); padding: 22px 24px 18px; box-shadow: 8px 8px 0 var(--highlight); }
.ledger-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.ledger-h span { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ledger ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--outline); }
.ledger li a { color: var(--ink) !important; font-weight: 700; text-decoration: none; }
.ledger li a:hover { color: var(--primary) !important; text-decoration: underline; }
.ledger-d { font-family: var(--mono); font-size: 13px; color: var(--variant); }
.ledger .chip { font-size: 11px; padding: 3px 8px; }
.ledger-f { margin: 12px 0 0; font-size: 13px; line-height: 19px; color: var(--muted); }
.ledger-f a { color: var(--primary) !important; font-weight: 700; }
.card-line b.t { font-family: var(--sans); font-weight: 700; }
@media (max-width: 1100px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .ledger { display: none; }
}

/* ------------------------------------------------------------------ second and third batch */
.streams { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.stream { border-top: 3px solid var(--ink); padding-top: 18px; }
.stream h3 { font-size: 24px; line-height: 30px; letter-spacing: -0.01em; }
.stream > p { font-size: 16px; line-height: 26px; color: var(--muted); margin: 0 0 16px; }
.stream .ticks li { font-size: 15px; line-height: 24px; }

.sgo-index { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 0 0 36px; border-bottom: 1px solid rgba(255,255,255,0.14); margin: 0 0 28px; }
.sgo-index div { display: flex; flex-direction: column; gap: 8px; }
.sgo-index-h { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--highlight); margin: 0 0 4px; }
.sgo-index a { color: var(--on-deep) !important; text-decoration: none; font-size: 15px; line-height: 22px; }
.sgo-index a:hover, .sgo-index a[aria-current="page"] { color: var(--highlight) !important; text-decoration: underline; }

.news { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.news li { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--outline); align-items: baseline; }
.news a { color: var(--ink); font-weight: 700; font-size: 17px; line-height: 25px; text-decoration: none; }
.news a:hover { color: var(--primary); text-decoration: underline; }

.steps.cal li { grid-template-columns: 190px 1fr 80px; }
.steps.cal .step-n { font-size: 15px; }
.steps.cal .step-t span { color: var(--ink); }
.h2-sm { font-size: 24px; line-height: 30px; margin: 36px 0 14px; }
.tbl-sm { margin-top: 10px; }
.tbl-sm td { padding: 10px 12px 10px 0; }
.kv-gloss { grid-template-columns: 240px 1fr; gap: 16px 28px; }
.kv-gloss dt { font-size: 17px; }
.sources-lg li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--outline); font-size: 16px; line-height: 25px; }
.sources-lg a { font-weight: 700; font-size: 18px; }
.mono { font-family: var(--mono); }

.calcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.calc { background: var(--dim); padding: 22px; box-shadow: 6px 6px 0 var(--ink); display: grid; gap: 12px; }
.calc h3 { margin: 0 0 4px; }
.calc label { display: grid; gap: 4px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.calc .opt { font-weight: 400; color: var(--muted); }
.calc input[type=number], .calc select { font: inherit; font-size: 16px; padding: 9px 10px; border: 1px solid var(--outline-2); background: #fff; width: 100%; }
.calc input:focus, .calc select:focus { outline: 2px solid var(--highlight); outline-offset: 1px; border-color: var(--primary); }
.calc-note { margin: 0; font-size: 14px; line-height: 21px; color: var(--muted); }
.calc-states { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; max-height: 300px; overflow-y: auto; padding: 8px; background: #fff; border: 1px solid var(--outline); }
.calc .chk { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 14px; }
.calc-out { display: block; background: var(--bg); border-left: 4px solid var(--primary); padding: 12px 14px; font-size: 15px; line-height: 23px; color: var(--variant); }
.calc-out b { color: var(--ink); font-family: var(--mono); }
@media (max-width: 1000px) {
  .calcs { grid-template-columns: 1fr; }
  .sgo-index { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .streams { grid-template-columns: 1fr; }
  .news li { grid-template-columns: 1fr; gap: 2px; }
  .steps.cal li { grid-template-columns: 1fr; gap: 6px; }
  .steps.cal .step-who { grid-column: auto; }
  .kv-gloss { grid-template-columns: 1fr; gap: 2px; }
  .sgo-index { grid-template-columns: 1fr; gap: 20px; }
  .calc { box-shadow: 4px 4px 0 var(--ink); }
}

/* Width fixes found by the sweep (320 to 1920): status chips and long cell text wrap rather than
 * push the column, and the states table turns into cards below 1100px, not 900px, because seven
 * columns of agency names do not fit a tablet. */
.card .chip, .tbl .chip, .ledger .chip { white-space: normal; max-width: 100%; }
.tbl td { overflow-wrap: anywhere; }
.tbl td.num.fee, .tbl td.num .cite { white-space: normal; }
@media (max-width: 1100px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 14px 0; border-bottom: 1px solid var(--outline-2); }
  .tbl tr.grp { padding: 0; border-bottom: 0; }
  .tbl td { border: 0; padding: 3px 0; }
  .tbl td[data-k]::before {
    content: attr(data-k); display: inline-block; min-width: 132px; margin-right: 8px;
    font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  }
}
@media (max-width: 420px) {
  .tbl td[data-k]::before { display: block; min-width: 0; margin: 0 0 2px; }
}

/* ------------------------------------------------------------------ narrow screens */
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile + .tile { padding-left: 0; border-left: 0; }
  .tile:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--outline); }
}
@media (max-width: 900px) {
  .cards, .services, .two, .rules, .facts { grid-template-columns: 1fr; }
  .fact:nth-child(odd) { padding-right: 0; }
  .hero h1, .hero-split h1 { font-size: 52px; line-height: 54px; }
  .hero-state h1 { font-size: 44px; line-height: 47px; }
  h2 { font-size: 32px; line-height: 36px; }
  .scale { grid-template-columns: 1fr; gap: 18px; }
  /* The table becomes one card per state: a table with eight columns cannot be read at phone
     width, and a sideways-scrolling one hides exactly the columns people came for. */
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 14px 0; border-bottom: 1px solid var(--outline-2); }
  .tbl tr.grp { padding: 0; border-bottom: 0; }
  .tbl td { border: 0; padding: 3px 0; }
  .tbl td[data-k]::before {
    content: attr(data-k); display: inline-block; min-width: 132px; margin-right: 8px;
    font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; line-height: 28px; }
  .wrap, .hero-in, .scale, .top { padding-left: 16px; padding-right: 16px; }
  .band { padding: 52px 0; }
  .hero-in { padding-top: 36px; padding-bottom: 40px; }
  .hero h1, .hero-split h1 { font-size: 38px; line-height: 41px; }
  .hero-state h1 { font-size: 32px; line-height: 36px; }
  .lede { font-size: 18px; line-height: 29px; }
  h2 { font-size: 27px; line-height: 32px; }
  .tiles { grid-template-columns: 1fr; }
  .tile:nth-child(even) { padding-left: 0; border-left: 0; }
  .steps li { grid-template-columns: 40px 1fr; }
  .step-who { grid-column: 2; text-align: left; }
  .legend li { flex-direction: column; gap: 6px; }
  .legend .chip { min-width: 0; }
  .service { box-shadow: 4px 4px 0 var(--ink); padding: 22px; }
  .verdict p { font-size: 18px; line-height: 28px; }
  .btn { padding: 15px 20px; }
}

/* SITE_FOOTER:START */.sitefoot{background:#0B0F0A;color:#9DA89A;padding:44px 44px 26px;font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.04em;line-height:1.6;text-align:left;border:0;margin:0}
.sitefoot-inner{max-width:1240px;margin:0 auto;display:flex;gap:56px;align-items:flex-start;flex-wrap:wrap}
.sitefoot-logo{flex:0 0 auto}
.sitefoot-logo img{display:block;width:160px;height:auto}
/* The reset is not decoration. index.html styles its top menu with a bare element selector,
   nav{background:#fff;border-bottom:1px solid #E2E6DF;position:sticky;top:0;z-index:100}, and
   that caught this element too: the columns came out white on black with grey text on them, and
   stuck to the top of the viewport. Any page is free to style a bare nav, so this one states
   everything it needs rather than inheriting it. */
.sitefoot-cols{flex:1 1 520px;display:grid;grid-template-columns:repeat(3,1fr);gap:32px;background:none;border:0;position:static;top:auto;z-index:auto;padding:0;margin:0;box-shadow:none}
.sitefoot-cols-4{grid-template-columns:repeat(4,1fr)}
.sitefoot-col h2{font-family:inherit;font-size:10px;font-weight:600;line-height:1.5;letter-spacing:.14em;text-transform:uppercase;color:#6F7D6C;margin:0 0 14px;padding:0}
.sitefoot-col a{display:block;font-family:inherit;font-weight:400;font-size:12px;line-height:1.5;letter-spacing:.02em;color:#C3CFC0;text-decoration:none;padding:5px 0;margin:0;background:none;border:0}
.sitefoot-col a:hover{color:#fff;text-decoration:underline}
.sitefoot-col a[aria-current]{color:#fff}
.sitefoot-base{max-width:1240px;margin:34px auto 0;padding-top:20px;border-top:1px solid #1E2A1C;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.sitefoot-base p{margin:0;padding:0;font-family:inherit;font-size:10px;line-height:1.6;color:#7F8C7C}
.sitefoot-legal{display:flex;gap:22px}
.sitefoot-legal a{color:#7F8C7C;text-decoration:none;font-size:10px}
.sitefoot-legal a:hover{color:#C3CFC0}
.sitefoot-thin{padding-top:0;padding-bottom:20px}
.sitefoot-thin .sitefoot-base{margin-top:0;border-top:0}
.sitefoot-disc{max-width:1240px;margin:16px auto 0;padding:0;font-family:inherit;font-size:9px;color:#6F7D6C;line-height:1.7;text-align:left}
@media(max-width:860px){.sitefoot{padding:34px 28px 22px}.sitefoot-inner{gap:30px}.sitefoot-cols{grid-template-columns:repeat(2,1fr);gap:22px}}
@media(max-width:520px){.sitefoot{padding:30px 20px 20px}.sitefoot-cols{grid-template-columns:1fr;gap:4px}.sitefoot-col{border-top:1px solid #1E2A1C;padding-top:16px}.sitefoot-base{margin-top:26px}}/* SITE_FOOTER:END */
