:root {
  --paper: #F6F1E7;
  --ink: #1B1A17;
  --muted: #4A463E;
  --rule: #D5CDB9;
  --track: #E4DDCC;
  --hatch: #9A9382;
  --card: #FFFFFF;
  --green: #0F5B3E;
  --on-green: #FFFFFF;
  --red: #A31F34;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16140F;
    --ink: #EDE6D6;
    --muted: #A9A18E;
    --rule: #3A3629;
    --track: #2A271E;
    --hatch: #A9A18E;
    --card: #1E1B14;
    --green: #7FD0A4;
    --on-green: #0B2A1B;
    --red: #F08A9A;
  }
}
:root[data-theme="dark"] {
  --paper: #16140F;
  --ink: #EDE6D6;
  --muted: #A9A18E;
  --rule: #3A3629;
  --track: #2A271E;
  --hatch: #A9A18E;
  --card: #1E1B14;
  --green: #7FD0A4;
  --on-green: #0B2A1B;
  --red: #F08A9A;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
a { color: var(--green); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px) 56px; }

/* green band masthead */
.band { background: var(--green); color: var(--on-green); }
.band .in { max-width: 1280px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; }
.brand { font-family: var(--serif); font-weight: 800; font-size: clamp(32px, 5vw, 40px); letter-spacing: -0.02em; color: var(--on-green); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--on-green); text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: currentColor; }
.band :focus-visible { outline-color: var(--on-green); }

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; padding: 40px 0 28px; }
.hero > div { flex: 1 1 520px; min-width: 0; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.kicker.muted { color: var(--muted); }
h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(36px, 5.2vw, 52px); line-height: 1.05; letter-spacing: -0.015em; margin: 10px 0 0; }
.lede { font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; max-width: 62ch; }
.finder { flex: 1 1 340px; max-width: 460px; }
.finder label { display: block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.finder .row { display: flex; gap: 8px; }
.finder input { flex: 1; min-width: 0; height: 52px; padding: 0 14px; background: var(--card); color: var(--ink); border: 1px solid var(--ink); font: inherit; font-size: 16px; }
.finder input::placeholder { color: var(--muted); }
button, .btn { height: 48px; padding: 0 22px; border: 0; background: var(--green); color: var(--on-green); font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.finder button { height: 52px; }
button:disabled { opacity: .6; cursor: not-allowed; }
.finder .note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.finder .result { margin-top: 12px; padding: 14px 16px; border-left: 4px solid var(--green); background: var(--card); font-size: 15px; }
.finder .result:empty { display: none; }
.finder .result.err { border-color: var(--red); }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--ink); border: 1px solid var(--ink); margin: 0; }
.stats > div { background: var(--paper); padding: 16px 22px; }
.stats dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 44px; line-height: 1.15; }
.fine { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

/* layout */
.cols { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 40px; }
.cols > .main { flex: 3 1 520px; min-width: 0; }
.cols > .side { flex: 2 1 360px; min-width: 0; }
.cols.profile { gap: 48px; margin-top: 36px; align-items: flex-start; }
.cols.profile > .left { flex: 1 1 320px; min-width: 0; }
.cols.profile > .right { flex: 2.2 1 520px; min-width: 0; }
h2 { font-family: var(--serif); font-size: 28px; line-height: 1.15; margin: 0 0 6px; }
h3 { font-family: var(--serif); font-size: 24px; line-height: 1.15; margin: 0; }
.sub { font-family: var(--serif); font-size: 19px; color: var(--muted); margin: 0 0 18px; }
.section { margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--ink); padding: 24px; box-shadow: 8px 8px 0 var(--red); }
.card.plain { box-shadow: none; }
.card h2 { font-size: 26px; }

/* charts */
.bars { border-top: 1px solid var(--ink); padding-top: 16px; display: grid; grid-template-columns: minmax(70px, 130px) minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; font-size: 14px; margin: 0; }
.bar { display: flex; height: 22px; background: var(--track); }
.bar .aye { background: var(--green); }
.bar .no { background: repeating-linear-gradient(45deg, var(--track), var(--track) 4px, var(--hatch) 4px, var(--hatch) 5px); }
.bars .n { text-align: right; font-family: var(--mono); font-size: 13px; }
.key { display: flex; gap: 18px; font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.key span::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.key .k-aye::before { background: var(--green); }
.key .k-no::before { background: repeating-linear-gradient(45deg, var(--track), var(--track) 3px, var(--hatch) 3px, var(--hatch) 4px); border: 1px solid var(--hatch); }
.rbars { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 6px 12px; align-items: center; font-size: 14px; margin: 14px 0 0; }
.rbars .lbl { grid-column: 1 / -1; margin-top: 8px; }
.rbars .track { height: 12px; background: var(--track); }
.rbars .fill { height: 100%; background: var(--red); }
.rbars .n { text-align: right; font-family: var(--mono); font-size: 13px; }
.line { width: 100%; height: auto; margin-top: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; }
.legend i { display: inline-block; width: 22px; border-top: 3px solid var(--red); vertical-align: middle; margin-right: 8px; }
.legend i.dash { border-top: 3px dashed var(--muted); }
.big { font-family: var(--serif); font-weight: 800; line-height: 1; }
.meter { height: 10px; background: var(--track); margin: 12px 0 18px; }
.meter > div { height: 100%; background: var(--green); }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 10px 0; border-top: 1px solid var(--rule); }
.tally { display: flex; flex-wrap: wrap; gap: 28px; margin: 28px 0 40px; }
.tally .card { flex: 1 1 220px; }
.tally .big { font-size: clamp(60px, 9vw, 84px); }
.tally .lab { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tally .aye { color: var(--green); }
.notice { border-left: 4px solid var(--red); background: var(--card); padding: 14px 16px; font-size: 15px; }

/* tables and lists */
details { margin-top: 14px; font-size: 14px; }
summary { cursor: pointer; color: var(--green); font-weight: 600; padding: 6px 0; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
th { text-align: left; border-bottom: 2px solid var(--ink); padding: 10px 8px; font-weight: 600; }
td { padding: 12px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th:first-child, td:first-child { padding-left: 0; }
th.r, td.r { text-align: right; }
td.nw { white-space: nowrap; }
.filter { display: block; width: 100%; max-width: 420px; height: 48px; padding: 0 14px; margin: 0 0 18px; background: var(--card); color: var(--ink); border: 1px solid var(--ink); font: inherit; font-size: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; margin-top: 28px; }
.tiles .card { padding: 20px; }
.tiles h3 { font-size: 26px; line-height: 1.1; }
.tiles .count { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 8px 0 14px; }
.tiles .go { margin-top: 14px; font-size: 14px; font-weight: 600; }
.topiclist { list-style: none; margin: 0; padding: 0; }

/* text pages */
.prose h2 { margin: 32px 0 6px; font-size: 26px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 18px; }
.toc a { display: block; padding: 8px 0; font-size: 15px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px; font: inherit; font-size: 16px; background: var(--card); color: var(--ink); border: 1px solid var(--ink); }
.field input { height: 48px; padding-top: 0; padding-bottom: 0; }

.foot { margin-top: 56px; padding-top: 20px; border-top: 3px double var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.foot p { margin: 0; }

/* simple home and plain-English layer */
.hero.simple { display: block; padding: 56px 0 24px; max-width: 900px; }
.hero.simple h1 { font-size: clamp(32px, 5.2vw, 54px); }
.hero.simple .lede { font-size: 22px; }
.finder.xl { max-width: 600px; margin-top: 28px; }
.finder.xl label { font-family: var(--sans); font-size: 16px; font-weight: 600; text-transform: none; color: var(--ink); }
.finder.xl input { height: 60px; font-size: 18px; }
.finder.xl button { height: 60px; padding: 0 28px; font-size: 17px; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps b { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--on-green); display: grid; place-items: center; font-family: var(--serif); font-size: 20px; }
.steps strong { font-size: 18px; line-height: 1.3; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 20px; align-items: start; }
.story { background: var(--card); border: 1px solid var(--ink); padding: 22px; }
.story.big { grid-column: 1 / -1; box-shadow: 8px 8px 0 var(--red); padding: clamp(20px, 4vw, 32px); }
.story h2, .story h3 { margin: 10px 0 8px; font-family: var(--serif); line-height: 1.12; }
.story h2 { font-size: clamp(30px, 4.5vw, 42px); }
.story h3 { font-size: 24px; }
.story h2 a, .story h3 a { color: var(--ink); text-decoration: none; }
.story h2 a:hover, .story h3 a:hover { text-decoration: underline; }
.story p { margin: 0 0 8px; font-size: 17px; }
.story .score { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.story .split { font-weight: 600; }
.story .more { font-weight: 600; font-size: 15px; }
.chip { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--ink); }
.chip.agreed { background: var(--green); color: var(--on-green); border-color: var(--green); }
.more-link { margin: 20px 0 0; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.topic-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 600; background: var(--card); }
.topic-chip:hover { background: var(--green); color: var(--on-green); }
.topic-chip span { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--muted); }
.topic-chip:hover span { color: var(--on-green); }
details.geek, details.explain { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 4px; }
details.geek > summary, details.explain > summary { font-size: 16px; padding: 10px 0; }
details.explain { border: 0; background: var(--card); border-left: 4px solid var(--green); padding: 4px 16px; }
details.explain p { margin: 0 0 12px; }
.glossary dt { font-family: var(--serif); font-weight: 800; font-size: 24px; margin-top: 28px; }
.glossary dd { margin: 4px 0 0; font-size: 18px; max-width: 62ch; }
.lede strong { color: var(--ink); }

/* bills */
.count { font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.bills { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 16px; }
.bill { background: var(--card); border: 1px solid var(--ink); padding: 18px 20px; }
.bill .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 12px; }
.bill h3 { font-size: 22px; line-height: 1.15; flex: 1 1 180px; }
.bill h3 a { color: var(--ink); text-decoration: none; }
.bill h3 a:hover { text-decoration: underline; }
.mini { display: flex; gap: 3px; margin-top: 14px; }
.mini i { flex: 1; height: 8px; background: var(--track); }
.mini i.on { background: var(--green); }
.stepper { list-style: none; margin: 0; padding: 4px 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 4px; font-size: 14px; line-height: 1.25; color: var(--muted); }
.stepper li::before { content: ''; position: absolute; top: 17px; left: -50%; width: 100%; height: 3px; background: var(--track); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.now::before { background: var(--green); }
.stepper b { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--hatch); color: var(--muted); }
.stepper li.done b { background: var(--green); border-color: var(--green); color: var(--on-green); }
.stepper li.now b { background: var(--green); border-color: var(--green); color: var(--on-green); box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--red); }
.stepper li.now { color: var(--ink); font-weight: 600; }
.stepper small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); font-family: var(--mono); margin-top: 2px; }
@media (max-width: 760px) {
  .stepper { grid-template-columns: 1fr; gap: 0; }
  .stepper li { flex-direction: row; text-align: left; gap: 14px; padding: 0 0 18px; align-items: flex-start; }
  .stepper li::before { display: none; }
  .stepper li:not(:last-child)::after { content: ''; position: absolute; left: 21px; top: 36px; bottom: 0; width: 3px; background: var(--track); }
  .stepper li.done:not(:last-child)::after { background: var(--green); }
}

/* government finances and the more-data hub */
.viewtabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 28px; }
.viewtabs button { height: 48px; padding: 0 18px; background: var(--card); color: var(--ink); border: 1px solid var(--ink); }
.viewtabs button[aria-pressed="true"] { background: var(--green); color: var(--on-green); border-color: var(--green); }
.viewtabs button:not([aria-pressed="true"]):hover { background: var(--track); }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.trio .card p, .card .bignum + p { margin: 0; font-size: 15px; color: var(--muted); }
.lab { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.bignum { font-family: var(--serif); font-weight: 800; font-size: clamp(40px, 6vw, 56px); line-height: 1; margin: 6px 0; }
.per { font-size: 17px; margin: 20px 0 0; }
.cols.two { gap: 48px; }
.cols.two > .main { flex: 1 1 440px; }
.flow { padding: 10px 0; border-top: 1px solid var(--rule); }
.flow .fl { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 6px; }
.flow .fv { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.fbar { height: 16px; background: var(--track); }
.fbar > div { height: 100%; background: var(--green); }
.flow.out .fbar > div { background: var(--red); }
.waffle-wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.waffle-wrap > div { flex: 1 1 300px; min-width: 0; }
.waffle { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; max-width: 330px; }
.waffle i, .minifall i { display: block; aspect-ratio: 1; border: 1px solid var(--card); }
.wl { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.wl i { display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; border: 1px solid var(--ink); }
.w0 { background: var(--green); } .w1 { background: var(--red); } .w2 { background: var(--ink); } .w3 { background: var(--hatch); }
.w4 { background: repeating-linear-gradient(45deg, var(--card), var(--card) 3px, var(--ink) 3px, var(--ink) 4px); }
.w5 { background: repeating-linear-gradient(-45deg, var(--green), var(--green) 3px, var(--card) 3px, var(--card) 5px); }
.w6 { background: repeating-linear-gradient(45deg, var(--red), var(--red) 3px, var(--card) 3px, var(--card) 5px); }
.w7 { background: var(--muted); } .w8 { background: var(--track); }
.legend i.green { border-top-color: var(--green); }
.legend i.gap { display: inline-block; width: 14px; height: 10px; border: 0; background: var(--red); opacity: .3; }
.chg { padding: 14px 0; border-top: 1px solid var(--rule); font-size: 17px; }
.chg .fine { margin-top: 4px; }
.grp h2 { font-size: clamp(30px, 4.5vw, 40px); margin-top: 6px; }
.feat { display: block; text-decoration: none; color: var(--ink); padding: 26px; margin-top: 18px; }
.feat:hover { background: var(--paper); }
.feat .ft { font-family: var(--serif); font-weight: 800; font-size: 32px; line-height: 1.1; }
.feat p { font-size: 17px; color: var(--muted); max-width: 46ch; margin: 8px 0 18px; }
.feat .go { display: block; margin-top: 18px; font-weight: 600; color: var(--green); }
.minifall { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; max-width: 340px; }
.soons { display: grid; gap: 16px; margin-top: 18px; }
.soons.wide { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.soon { border: 1px dashed var(--hatch); padding: 16px 18px; }
.soon .st { font-family: var(--serif); font-weight: 800; font-size: 22px; line-height: 1.1; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.soon p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.soon .chip { font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-color: var(--hatch); color: var(--muted); font-weight: 400; }

.blurb { margin: 8px 0 0; font-size: 15px; }
.plainwords { margin-top: 24px; background: var(--card); border-left: 4px solid var(--green); padding: 16px 20px; max-width: 70ch; }
.plainwords p { margin: 6px 0 0; font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.plainwords p.fine { font-family: var(--sans); font-size: 12px; }

/* more-data sections */
.secnav { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--ink); margin: 24px 0 0; }
.secnav a { padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; }
.secnav a:hover { border-bottom-color: var(--red); }
.petition .top { align-items: center; }
.pbar { position: relative; height: 12px; background: var(--track); }
.pbar > div { height: 100%; background: var(--green); }
.pbar > i { position: absolute; margin-left: -1px; top: -4px; height: 20px; border-left: 2px solid var(--ink); }
.pn { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 4px; }
.gtrack { position: relative; height: 12px; background: var(--track); margin: 6px 0 4px; }
.gtrack i { position: absolute; top: -4px; width: 6px; height: 20px; }
.gtrack i.a { background: var(--green); }
.gtrack i.u { background: var(--ink); }
.glegend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; margin-top: 10px; color: var(--muted); }
.glegend b { display: inline-block; width: 10px; height: 10px; margin-right: 6px; }
.glegend b.a { background: var(--green); }
.glegend b.u { background: var(--ink); }
.soon.live { display: block; border: 1px solid var(--ink); background: var(--card); text-decoration: none; color: var(--ink); }
.soon.live:hover { background: var(--paper); }
.soon.live .arrow { margin-left: auto; color: var(--green); }
.soon.live p { color: var(--muted); }

/* ---------- phones and small tablets ---------- */
.brow { display: contents; }
.bars.wide3 { grid-template-columns: minmax(90px, 150px) minmax(0, 1fr) 120px; }
.menu-btn { display: none; }
@media (max-width: 720px) {
  body { font-size: 16px; }
  .band .in { padding: 12px 16px; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
  .brand { font-size: 28px; }
  html.js .menu-btn { display: inline-flex; height: 44px; padding: 0 16px; background: transparent; color: var(--on-green); border: 1px solid var(--on-green); margin-left: auto; }
  html.js .nav { display: none; flex-direction: column; width: 100%; padding-bottom: 8px; border-top: 1px solid rgba(255, 255, 255, .35); }
  html.js .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
  html:not(.js) .nav { gap: 0 16px; }
  .hero.simple { padding: 32px 0 8px; }
  .hero.simple .lede, .lede { font-size: 19px; }
  .card, .story, .story.big, .feat { padding: 18px; box-shadow: 5px 5px 0 var(--red); }
  .card.plain { box-shadow: none; }
  .story.big { box-shadow: 5px 5px 0 var(--red); }
  .cols, .cols.two, .cols.profile { gap: 28px; margin-top: 28px; }
  .section { margin-top: 32px; }
  h2 { font-size: 25px; }
  .stats dd { font-size: 36px; }
  .bignum { font-size: 40px; }
  .tally { gap: 14px; margin: 20px 0 28px; }
  .tally .card { flex: 1 1 130px; padding: 14px; }
  .tally .card:last-child { flex-basis: 100%; }
  .tally .big { font-size: 46px; }
  .tally .card:last-child .big { padding-top: 6px !important; font-size: 34px !important; }
  .trio { gap: 20px; }
  .secnav { flex-wrap: nowrap; overflow-x: auto; gap: 0 22px; margin-top: 20px; scrollbar-width: thin; }
  .secnav a { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
  .viewtabs { gap: 8px; }
  .viewtabs button { flex: 1 1 auto; padding: 0 12px; }
  .topic-chip { min-height: 48px; }
  .story .more, .feat .go, .more-link a { display: inline-block; padding: 10px 0; }
  .finder .row { flex-wrap: wrap; }
  .finder.xl button, .finder button { flex: 1 1 100%; }
  details.geek > summary, details.explain > summary, summary { padding: 12px 0; min-height: 44px; }
  .foot { gap: 16px; }
  .foot a { display: inline-block; padding: 6px 0; }
  .waffle { max-width: 100%; }
  .stepper li { font-size: 15px; }
  .wl { padding: 9px 0; }
  .soon.live { padding: 18px; }

  /* wide tables become a stack of small cards */
  .tablewrap { overflow: visible; }
  table { min-width: 0; display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody { display: block; }
  tr { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  td, th:first-child, td:first-child { padding: 0; border: 0; text-align: left; display: block; font-size: 14px; color: var(--muted); }
  td.r, td:last-child { text-align: left; }
  td.pri { order: -1; flex: 1 0 100%; font-size: 17px; color: var(--ink); font-weight: 500; padding-bottom: 2px; }
  td.pri::before { display: none; }
  td.pri a, td a { display: inline-block; padding: 4px 0; }
  td:not(.pri)::before { content: attr(data-label) ": "; font-size: 12px; font-family: var(--mono); color: var(--muted); }
  td:not(.pri)::before { font-weight: 400; }
  td:empty { display: none; }
  td.nw { white-space: normal; }

  /* bars: label and count on one line, bar underneath */
  .bars, .bars.wide3 { display: block; padding-top: 12px; }
  .brow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin-bottom: 14px; align-items: end; }
  .brow > span:first-child { order: 1; font-size: 15px; }
  .brow > .n { order: 2; }
  .brow > .bar, .brow > .fbar { order: 3; grid-column: 1 / -1; }
  .rbars .lbl a { display: inline-block; padding: 4px 0; }
}
@media (max-width: 380px) {
  .brand { font-size: 25px; }
  h1 { font-size: 33px; }
  .stepper b { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.legend b.sq { display: inline-block; width: 8px; height: 8px; background: var(--green); margin-right: 8px; }

.stack { display: flex; height: 30px; margin: 14px 0 12px; background: var(--track); }
.stack > div { height: 100%; }

/* statistics-first home page */
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; margin-top: 18px; }
.statcard { display: block; text-decoration: none; color: var(--ink); padding: 22px; }
.statcard:hover { background: var(--paper); }
.statcard .bignum { font-size: clamp(38px, 5vw, 52px); }
.statcard p { margin: 4px 0 14px; font-size: 16px; color: var(--muted); }
.statcard .go { font-weight: 600; color: var(--green); font-size: 15px; }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.mini-stat { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--ink); padding: 14px 16px; }
.mini-stat:hover { background: var(--paper); }
.mini-stat strong { display: block; font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.mini-stat span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
@media (max-width: 720px) { .statgrid { gap: 20px; } .statcard { box-shadow: 5px 5px 0 var(--red); } }

/* ---------- interface improvements ---------- */
/* header: brand and tools on one row, navigation underneath */
.band .in { row-gap: 0; }
.brand { order: 1; }
.tools { order: 2; margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav { order: 3; flex: 1 0 100%; }
html:not(.js) .tools { display: none; }
.search { position: relative; }
.search input { width: 230px; height: 40px; padding: 0 34px 0 12px; background: rgba(255, 255, 255, .14); color: var(--on-green); border: 1px solid var(--on-green); font: inherit; font-size: 15px; }
.search input::placeholder { color: var(--on-green); opacity: .8; }
.search input:focus { background: var(--card); color: var(--ink); outline: 3px solid var(--on-green); }
.search input:focus::placeholder { color: var(--muted); }
.search kbd { position: absolute; right: 8px; top: 9px; font: 12px var(--mono); border: 1px solid currentColor; padding: 0 6px; opacity: .8; pointer-events: none; }
.search input:focus + kbd { color: var(--muted); }
.sr { position: absolute; right: 0; top: 46px; width: min(420px, 92vw); max-height: 70vh; overflow-y: auto; background: var(--card); color: var(--ink); border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--red); z-index: 50; }
.sr[hidden] { display: none; }
.sr h4 { margin: 0; padding: 10px 14px 4px; font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sr a { display: block; padding: 8px 14px; color: var(--ink); text-decoration: none; font-size: 15px; border-left: 4px solid transparent; }
.sr a small { display: block; color: var(--muted); font-size: 12px; }
.sr a:hover, .sr a.on { background: var(--paper); border-left-color: var(--green); }
.sr .none { padding: 14px; font-size: 15px; color: var(--muted); }
.sr mark { background: none; color: inherit; font-weight: 700; text-decoration: underline; }
.areachip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--on-green); color: var(--on-green); text-decoration: none; font-size: 14px; font-weight: 500; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.areachip[hidden] { display: none; }
.themebtn { height: 40px; padding: 0 12px; background: transparent; color: var(--on-green); border: 1px solid var(--on-green); font-size: 14px; }

/* breadcrumbs, page tools, on-this-page bar */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 20px 0 -18px; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--green); }
.strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--muted); margin: 18px 0 0; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.strip .when { margin-right: auto; }
.strip button { height: 34px; padding: 0 12px; background: transparent; color: var(--ink); border: 1px solid var(--ink); font-size: 13px; font-weight: 500; }
.strip button:hover { background: var(--card); }
.strip a { font-weight: 600; font-size: 13px; }
.otp { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 4px 20px; overflow-x: auto; background: var(--paper); border-bottom: 1px solid var(--ink); margin-top: 0; scrollbar-width: thin; }
.otp b { flex: none; font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.otp a { flex: none; padding: 12px 0; color: var(--ink); text-decoration: none; font-size: 14px; border-bottom: 3px solid transparent; }
.otp a:hover { border-bottom-color: var(--hatch); }
.otp a[aria-current] { border-bottom-color: var(--red); font-weight: 600; }
main h2[id] { scroll-margin-top: 64px; }
.gl { border-bottom: 1px dotted var(--ink); cursor: help; }
.gl:focus-visible { outline: 3px solid var(--red); }
.glpop { position: absolute; z-index: 60; width: min(320px, 92vw); background: var(--card); color: var(--ink); border: 1px solid var(--ink); box-shadow: 5px 5px 0 var(--red); padding: 12px 14px; font-size: 15px; line-height: 1.4; font-family: var(--sans); font-weight: 400; }
.glpop strong { display: block; font-family: var(--serif); font-size: 18px; margin-bottom: 4px; }
.glpop a { font-size: 13px; font-weight: 600; }

/* stat cards */
.statcard .chgtag { display: inline-block; font: 13px var(--mono); border: 1px solid var(--hatch); padding: 2px 8px; margin: 2px 0 8px; color: var(--ink); }
.statcard .spark { display: block; width: 120px; height: 34px; margin: 4px 0 10px; }
.statcard .src { font-size: 12px; color: var(--muted); margin: 10px 0 8px; }
.statcard p { margin: 4px 0 10px; }
details.whats { margin: 0; border-top: 1px solid var(--rule); }
details.whats summary { font-size: 14px; padding: 8px 0; }
details.whats p { font-size: 14px; margin: 0 0 8px; }
.statcard .go { display: inline-block; padding: 4px 0; text-decoration: none; }
.statcard .go:hover { text-decoration: underline; }

/* postcode lookup */
.finder .result .big-area { font-family: var(--serif); font-weight: 800; font-size: 24px; line-height: 1.15; display: block; margin: 0 0 6px; }
.finder .result .actions { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.finder .result .actions a { font-weight: 600; }
.finder .result.busy { border-color: var(--hatch); color: var(--muted); }
.finder .remember { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 10px 0 0; color: var(--muted); }
.finder .remember input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--green); }
.finder input.bad { outline: 3px solid var(--red); }

/* interactive chart */
.chartbox { position: relative; }
.chartbox svg.line { cursor: crosshair; touch-action: pan-y; }
.charttools { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.charttools button, .tabletools button { height: 38px; padding: 0 14px; background: var(--card); color: var(--ink); border: 1px solid var(--ink); font-size: 14px; font-weight: 500; }
.charttools button[aria-pressed="true"] { background: var(--green); color: var(--on-green); border-color: var(--green); }
.charttools .sp { flex: 1 1 8px; }
.ctip { position: absolute; z-index: 5; pointer-events: none; background: var(--card); color: var(--ink); border: 1px solid var(--ink); padding: 8px 12px; font-size: 14px; box-shadow: 4px 4px 0 var(--red); min-width: 170px; }
.ctip b { display: block; font-family: var(--mono); font-size: 12px; margin-bottom: 4px; }
.ctip .note { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.cnote { font-size: 14px; border-left: 4px solid var(--hatch); padding: 6px 12px; margin: 12px 0 0; background: var(--card); }
.cnote[hidden] { display: none; }

/* sortable tables */
.tabletools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.tabletools .cnt { font-size: 13px; color: var(--muted); margin-right: auto; }
th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
th[data-sort]:hover { background: var(--card); }
th[data-sort]::after { content: " ↕"; font-size: 11px; color: var(--hatch); }
th[aria-sort="ascending"]::after { content: " ▲"; color: var(--red); }
th[aria-sort="descending"]::after { content: " ▼"; color: var(--red); }

/* status page */
.pill { display: inline-block; padding: 2px 8px; border: 1px solid var(--ink); font-size: 13px; white-space: nowrap; }
.pill.ok { background: var(--green); color: var(--on-green); border-color: var(--green); }
.pill.late { border-color: var(--red); color: var(--red); font-weight: 600; }
.prose-list { padding-left: 22px; margin: 10px 0 0; }
.prose-list li { font-size: 17px; margin-bottom: 8px; max-width: 70ch; }

/* phone tab bar */
.tabbar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 68px; }
  .tools { order: 4; flex: 1 0 100%; margin: 8px 0 4px; }
  .search { flex: 1; }
  .search input { width: 100%; height: 46px; font-size: 16px; }
  .search kbd { display: none; }
  .themebtn, .areachip { height: 46px; }
  .menu-btn { order: 2; }
  .nav { order: 5; }
  .sr { position: fixed; left: 0; right: 0; top: 0; bottom: 0; width: auto; max-height: none; box-shadow: none; border: 0; padding-top: 130px; }
  .search input:focus { position: relative; z-index: 60; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--card); border-top: 1px solid var(--ink); }
  .tabbar a, .tabbar button { flex: 1; height: 60px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; text-decoration: none; border: 0; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar [aria-current] { color: var(--green); box-shadow: inset 0 3px 0 var(--green); font-weight: 600; }
  html:not(.js) #tab-search { display: none; }
  .crumbs ol { margin-bottom: -14px; }
  .strip .when { flex: 1 0 100%; }
  .charttools .sp { display: none; }
  .tabletools { display: none; }
}
html.sr-open { overflow: hidden; }
.sr .srclose { color: var(--green); }
@media print {
  .band, .tabbar, .strip, .otp, .crumbs, .charttools, .tabletools, .menu-btn { display: none !important; }
}

/* big figures must fit their cards at every width */
@media (min-width: 721px) { .trio .bignum, .statcard .bignum { font-size: clamp(34px, 3.6vw, 48px); } }
.trio .card, .statcard { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  html.sr-open .search input { position: relative; z-index: 60; background: var(--card); color: var(--ink); border-color: var(--ink); }
  html.sr-open .search input::placeholder { color: var(--muted); }
}
@media (max-width: 720px) {
  .tools { flex-wrap: wrap; }
  .search { flex: 1 1 100%; }
  .areachip { flex: 1 1 auto; max-width: none; }
}

/* ---------- over time, questions, calculators, sharing ---------- */
.trend { position: relative; }
.trend .tchart svg { display: block; width: 100%; height: auto; margin: 6px 0 4px; }
.trend .tchart svg.spark { width: 240px; height: 56px; }
.trend .tchart svg.line { cursor: crosshair; touch-action: pan-y; }
.trend .tval { font-size: clamp(34px, 3.6vw, 46px); }
.trendbtns { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.trendbtns button, .trendbtns a.csv { height: 38px; padding: 0 14px; background: var(--card); color: var(--ink); border: 1px solid var(--ink); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; text-decoration: none; }
.trendbtns button:hover, .trendbtns a.csv:hover { background: var(--track); }
.rangebar { margin: 20px 0 8px; }
.qgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 28px; }
.qcard { display: block; text-decoration: none; color: var(--ink); }
.qcard:hover { background: var(--paper); }
.qcard .qt { font-family: var(--serif); font-weight: 800; font-size: 26px; line-height: 1.15; }
.qcard .qa { background: var(--paper); border-left: 4px solid var(--green); padding: 10px 14px; margin: 14px 0 10px; font-size: 19px; font-weight: 600; line-height: 1.35; }
.qcard p { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.qcard .go { font-weight: 600; color: var(--green); }
.calc { margin-top: 24px; }
.calcrow { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.calc .field { margin: 0; }
.calc .money { display: flex; align-items: center; height: 60px; width: 260px; border: 1px solid var(--ink); background: var(--card); padding: 0 0 0 16px; font-size: 24px; font-weight: 600; }
.calc .money input { border: 0; height: 100%; font-size: 24px; font-weight: 600; background: transparent; padding: 0 12px; width: 100%; }
.calc .money:focus-within { outline: 3px solid var(--red); }
.calc button[type=submit] { height: 60px; padding: 0 28px; font-size: 17px; }
.calc input[aria-invalid="true"] { outline: 3px solid var(--red); }
.sharemask { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .55); display: grid; place-items: center; padding: 16px; }
.sharedlg { width: min(560px, 100%); max-height: 92vh; overflow-y: auto; background: var(--card); color: var(--ink); border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--red); }
.sharehead { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--ink); }
.sharehead h2 { margin: 0; font-size: 24px; }
.sharex { height: 44px; width: 44px; padding: 0; background: transparent; color: var(--ink); font-size: 20px; justify-content: center; }
.sharetabs { display: flex; border-bottom: 1px solid var(--rule); }
.sharetabs button { height: 48px; padding: 0 18px; background: transparent; color: var(--ink); border-bottom: 3px solid transparent; }
.sharetabs button[aria-selected="true"] { border-bottom-color: var(--red); }
.sharebody { padding: 20px; }
.sharebody p { margin: 0 0 10px; }
.shareimg { width: 100%; height: auto; border: 1px solid var(--rule); display: block; }
.sharerow { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.sharerow button.alt { background: var(--card); color: var(--ink); border: 1px solid var(--ink); }
.sharecode { background: var(--ink); color: var(--paper); font: 13px/1.5 var(--mono); padding: 14px; white-space: pre-wrap; word-break: break-all; margin: 0 0 8px; }
.newtag { display: inline-block; font: 11px var(--mono); background: var(--green); color: var(--on-green); padding: 1px 8px; margin-left: 6px; letter-spacing: .04em; }
.cmpline { font-size: 18px; margin: 8px 0 6px; }
svg.stripplot { display: block; }
table.brief { width: 100%; min-width: 0; max-width: 640px; }
table.brief td { padding: 10px 8px; }
.embed { background: var(--paper); }
.embedbox { padding: 16px 18px; max-width: 700px; }
.embedbox .tchart svg.line { max-height: 230px; }
.embedbox .rangebar { margin: 10px 0 6px; }
.embedbox .rangebar button { height: 36px; font-size: 13px; padding: 0 10px; }
@media (max-width: 720px) { .calc .money { width: 100%; } .calc button[type=submit] { width: 100%; } .sharedlg { box-shadow: none; } }
@media print { .noprint, .trendbtns, .rangebar, .sharemask { display: none !important; } body { background: #fff; color: #000; } .card { box-shadow: none; } }

/* organisations, support, briefings, embeds */
.btn { height: auto; min-height: 52px; padding: 0 26px; font-size: 17px; justify-content: center; }
.btn.alt { background: var(--card); color: var(--ink); border: 1px solid var(--ink); }
.btn.off { background: var(--track); color: var(--muted); cursor: not-allowed; }
.embedhead { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-weight: 800; font-size: 20px; }
.embedhead img { max-height: 32px; max-width: 140px; height: auto; width: auto; }
.bf { background: var(--card); border: 1px solid var(--ink); padding: 22px 26px; margin: 0 0 24px; }
.bf[hidden] { display: none; }
.bf h2 { font-size: 30px; margin: 6px 0; }
.bf table.brief { margin: 10px 0; }
@media print { .bf { border: 0; padding: 0; margin: 0; break-after: page; page-break-after: always; } .bf h2 { font-size: 26px; } }

/* focus rings that do not fight the red offset shadows on cards and buttons */
a.card:focus-visible, a.feat:focus-visible, .qcard:focus-visible, .soon.live:focus-visible, .statcard .go:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
a.card:focus:not(:focus-visible), .qcard:focus:not(:focus-visible) { outline: none; }
.calc .money:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.calc button:focus-visible, .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* no outline on cards, the calculator box or its buttons; keyboard users still see where they are through a change of colour */
a.card:focus-visible, a.feat:focus-visible, .qcard:focus-visible, .soon.live:focus-visible, .statcard .go:focus-visible,
.calc .money:focus-within, .calc button:focus-visible, .btn:focus-visible, .calc input:focus-visible, .calc select:focus-visible { outline: none; }
a.card:focus-visible, a.feat:focus-visible, .qcard:focus-visible, .soon.live:focus-visible { background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
.calc .money:focus-within { border-color: var(--green); background: var(--paper); box-shadow: inset 0 0 0 2px var(--green); }
.calc button:focus-visible, .btn:focus-visible { background: var(--ink); color: var(--paper); }
.calc input[aria-invalid="true"] { outline: none; border-color: var(--red); }
