:root {
  color-scheme: light;
  --page: #ffffff;
  --surface-1: #ffffff;
  --text-primary: #1d1d1b;
  --text-secondary: #52514e;
  --text-muted: #6e6d68;
  --rule: #e4e3df;
  --grid: #ececea;
  --axis: #9a9993;
  --header-bg: #002147;
  --header-text: #ffffff;
  --link: #1c5cab;
  --forecast-band: rgba(110, 109, 104, 0.07);
  --receipt-paper: #fbfaf6;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;
  --series-7: #6250d6;
  --series-8: #e34948;
  --deficit-fill: rgba(235, 104, 52, 0.16);
  --surplus-fill: rgba(42, 120, 214, 0.18);
  --good: #0f7a52;  /* a target met, or a change for the better */
  --bad: #c42b2a;
  /* topic colours (dashboard groups, chart cards): no red or green, which mean bad and good there */
  --topic-1: #2a78d6;
  --topic-2: #6250d6;
  --topic-3: #9a6a3c;
  --topic-4: #c98a00;
  --topic-5: #1a8fb5;
  --topic-6: #a3479a;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #141413;
    --surface-1: #1a1a19;
    --text-primary: #f0efec;
    --text-secondary: #c3c2b7;
    --text-muted: #a3a29b;
    --rule: #34342f;
    --grid: #2b2b28;
    --axis: #75746d;
    --header-bg: #0b1a33;
    --link: #86b6ef;
    --forecast-band: rgba(240, 239, 236, 0.06);
    --receipt-paper: #23231f;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #008300;
    --series-7: #9085e9;
    --series-8: #e66767;
    --deficit-fill: rgba(217, 89, 38, 0.22);
    --surplus-fill: rgba(57, 135, 229, 0.24);
    --good: #3dbb8a;
    --bad: #ee7372;
    --topic-1: #3987e5;
    --topic-2: #9085e9;
    --topic-3: #c4935f;
    --topic-4: #d49a1c;
    --topic-5: #3aa8cf;
    --topic-6: #cf72c4;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #141413;
  --surface-1: #1a1a19;
  --text-primary: #f0efec;
  --text-secondary: #c3c2b7;
  --text-muted: #a3a29b;
  --rule: #34342f;
  --grid: #2b2b28;
  --axis: #75746d;
  --header-bg: #0b1a33;
  --link: #86b6ef;
  --forecast-band: rgba(240, 239, 236, 0.06);
  --receipt-paper: #23231f;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
  --series-6: #008300;
  --series-7: #9085e9;
  --series-8: #e66767;
  --deficit-fill: rgba(217, 89, 38, 0.22);
  --surplus-fill: rgba(57, 135, 229, 0.24);
  --good: #3dbb8a;
  --bad: #ee7372;
  --topic-1: #3987e5;
  --topic-2: #9085e9;
  --topic-3: #c4935f;
  --topic-4: #d49a1c;
  --topic-5: #3aa8cf;
  --topic-6: #cf72c4;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--text-primary);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* above the Topics menu's backdrop, so the header stays bright and tappable while the menu is open */
.site-header { position: relative; z-index: 20; background: var(--header-bg); color: var(--header-text); }
.site-header .wrap { display: flex; align-items: center; min-height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; display: block; }
.brand-name { font: 900 22px/1 var(--sans); letter-spacing: -0.02em; white-space: nowrap; }
.brand-in { font-weight: 400; opacity: 0.8; }
.site-header nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-header nav > a, .nav-topics { color: var(--header-text); text-decoration: none; font: 15px/1.2 var(--sans); opacity: 0.85;
  background: none; border: 0; padding: 6px 0; cursor: pointer; white-space: nowrap; }
.site-header nav > a:hover, .nav-topics:hover { opacity: 1; text-decoration: underline; }
.site-header nav [aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-color: #eb6834; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-topics::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 2px 3px 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.nav-topics[aria-expanded="true"]::after { transform: rotate(-135deg); margin-bottom: -1px; }
/* the light/dark toggle: a moon in light mode, a sun in dark */
.theme-toggle { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 -6px 0 0; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--header-text); opacity: 0.85; cursor: pointer; }
.theme-toggle:hover, .theme-toggle:focus-visible { opacity: 1; background: rgba(255,255,255,0.12); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { fill: currentColor; stroke: none; }
.theme-toggle .icon-sun circle { fill: currentColor; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
/* the Topics menu: a panel of topic links under the header */
.topics-menu { position: relative; }
.topics-panel { position: absolute; top: calc(100% + 12px); right: -12px; z-index: 20; width: max-content; max-width: calc(100vw - 32px);
  display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 2px; padding: 8px; border-radius: 6px;
  background: var(--surface-1); border: 1px solid var(--rule); box-shadow: 0 8px 28px rgba(0,0,0,0.18); }
.topics-panel[hidden] { display: none; }
.topics-panel a { display: block; padding: 9px 12px; border-radius: 4px;
  color: var(--text-primary); text-decoration: none; font-size: 15px; }
.topics-panel a:hover, .topics-panel a:focus-visible { background: color-mix(in srgb, var(--axis) 12%, transparent); }
/* behind the menu on a touch screen: tapping anywhere outside it closes it */
.topics-backdrop { display: none; }
@media (hover: none) {
  .topics-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 19; background: rgba(0,0,0,0.35); cursor: pointer; }
}
/* phones: the name and the theme toggle on one row, the links on a row of their own beneath */
@media (max-width: 600px) {
  .site-header .wrap { flex-wrap: wrap; min-height: 0; gap: 0 12px; }
  .brand { min-height: 52px; }
  .brand-name { font-size: 20px; }
  .theme-toggle { margin-left: auto; width: 40px; height: 40px; margin-right: -8px; }
  .site-header nav { order: 3; flex: 1 0 100%; margin: 0 -16px; padding: 0 16px; min-height: 44px; gap: clamp(16px, 7vw, 32px);
    border-top: 1px solid rgba(255,255,255,0.12); }
  .site-header nav > a, .nav-topics { padding: 10px 0; }
  .topics-menu { align-self: stretch; display: flex; align-items: center; }
  .topics-panel { top: 100%; left: -16px; right: auto; width: 100vw; max-width: none; grid-template-columns: 1fr 1fr;
    border-radius: 0 0 8px 8px; border-width: 0 0 1px; padding: 8px 8px 12px; }
  .topics-panel a { padding: 12px; font-size: 16px; }
}

main.wrap { padding: 28px 16px 48px; }
.site-footer { border-top: 1px solid var(--rule); color: var(--text-muted); font-size: 13px; padding: 20px 0 40px; }

/* Home */
.intro h1 { font: 600 34px/1.2 var(--serif); margin: 0 0 8px; }
.intro p { color: var(--text-secondary); max-width: 680px; margin: 0 0 28px; font-size: 17px; }
.intro h1:last-child { margin-bottom: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--rule); background: var(--surface-1); text-decoration: none; color: inherit; padding: 16px; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.card h2, .card h3 { font: 600 17px/1.3 var(--serif); margin: 0 0 6px; color: var(--text-primary); }
.card p { font-size: 13px; color: var(--text-muted); margin: 0 0 10px; }
.card .thumb { flex: 1 0 150px; min-height: 150px; overflow: hidden; }
/* a line chart's tint is a wash that rises from the card's foot: it runs to the card's edges
   and fades out towards the text, so it has no hard edge */
.card .thumb.tinted { margin: 0 -16px -16px; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--topic, var(--axis)) 9%, var(--surface-1)) 55%); }
/* a chart that fills its card sits out of the flow, so it can't push its row taller than the text needs */
.card .thumb.fills { position: relative; }
.card .thumb.fills > * { position: absolute; inset: 0; }
/* the draw-in wipe (see drawIn in app.js): a clipping window around the chart */
.card .thumb .wipe { overflow: hidden; }
.card .thumb .wipe-inner { height: 100%; }
.card .thumb svg { display: block; }

/* Grapher frame */
.back { display: inline-block; font-size: 14px; margin-bottom: 14px; text-decoration: none; }
.grapher { border: 1px solid var(--rule); background: var(--surface-1); padding: 20px 20px 0; }
.grapher h1 { font: 600 26px/1.25 var(--serif); margin: 0 0 6px; }
.grapher .subtitle { color: var(--text-secondary); margin: 0 0 14px; font-size: 15px; max-width: 820px; }
.controls { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
/* a chart's views (see viewFor in app.js): one switch, a button per view */
.views { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.view-btn { font: 600 13.5px/1 var(--sans); background: var(--surface-1); color: var(--text-secondary); border: none;
  padding: 9px 14px; cursor: pointer; }
.view-btn + .view-btn { border-left: 1px solid var(--rule); }
.view-btn[aria-pressed="true"] { background: var(--text-primary); color: var(--surface-1); }
.chip { font: 13px/1 var(--sans); border: 1px solid var(--rule); background: var(--surface-1); color: var(--text-primary);
  border-radius: 999px; padding: 6px 10px 6px 8px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.chip .sw { width: 10px; height: 10px; border-radius: 2px; }
.chip[aria-pressed="false"] { color: var(--text-muted); }
.chip.year { padding: 6px 12px; font-variant-numeric: tabular-nums; }
.chip.year[aria-pressed="true"] { border-color: var(--text-primary); color: var(--text-primary); font-weight: 700; }
.chip.year[aria-pressed="false"] { color: var(--text-secondary); }
/* stories: findings to switch on over the neutral chart (see storyBar in app.js) */
.stories { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 12px; }
.stories-label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin-right: 2px; }
.chip.story { padding: 6px 12px; color: var(--text-secondary); }
.chip.story:hover { border-color: var(--text-muted); }
.chip.story[aria-pressed="true"] { background: var(--text-primary); border-color: var(--text-primary); color: var(--surface-1); font-weight: 700; }
.panel-chart.dim { opacity: 0.35; }
.story-key { margin-top: 6px; }
/* the Stories page: each story's headline, its chart's name and the chart with the story on */
.story-card h3 { font-size: 16px; }
.story-card p.story-detail { color: var(--text-secondary); font-size: 13.5px; margin: -2px 0 6px; }
/* a story's detail: caveats and second figures, a line under its headline */
.grapher h1 .story-detail { display: block; font: 400 16px/1.4 var(--sans); color: var(--text-primary); margin-top: 6px; }
.story-key strong { color: var(--text-primary); }
.tm-cell { cursor: default; }
.year-label { font-size: 13px; color: var(--text-secondary); align-self: center; margin-right: 4px; }
.year-select { font: 13px/1 var(--sans); color: var(--text-primary); background: var(--surface-1);
  border: 1px solid var(--rule); border-radius: 6px; padding: 6px 8px; font-variant-numeric: tabular-nums; }
.tm-cell:hover rect { fill-opacity: 0.4; }
.chip[aria-pressed="false"] .sw { background: transparent !important; outline: 1.5px solid var(--axis); outline-offset: -1.5px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.legend .area { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }

.plot { position: relative; }
.plot svg { display: block; width: 100%; overflow: visible; }
.plot text { font-family: var(--sans); }
.tooltip { position: absolute; pointer-events: none; background: var(--surface-1); border: 1px solid var(--rule);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12); padding: 8px 10px; font-size: 13px; min-width: 160px; z-index: 2; display: none; }
.tooltip .t-head { font-weight: 700; margin-bottom: 4px; }
.tooltip .t-tag { color: var(--text-muted); font-weight: 400; }
.tooltip .t-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tooltip .t-row span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); }
.tooltip .sw { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.tooltip .t-note { font-size: 11.5px; color: var(--text-muted); margin: -2px 0 4px 16px; max-width: 220px; }
.tooltip .t-event { font-size: 11.5px; color: var(--text-secondary); margin: -2px 0 4px; }
.tooltip .t-detail { font-size: 11.5px; color: var(--text-muted); margin: -2px 0 6px; max-width: 260px; }
.event-label { cursor: help; outline: none; }
.event-label:hover, .event-label:focus-visible { fill: var(--text-primary); text-decoration: underline dotted; }
.tooltip .t-total { border-top: 1px solid var(--rule); margin-top: 4px; padding-top: 4px; font-weight: 700; }
.tooltip .t-val { font-variant-numeric: tabular-nums; font-weight: 700; }
/* a pinned tooltip (click a point) adds where each figure is in the publisher's file */
.tooltip.pinned { pointer-events: auto; box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.tooltip .t-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.tooltip .t-close { background: none; border: none; padding: 0 2px; font: 400 16px/1 var(--sans); color: var(--text-muted); cursor: pointer; }
.tooltip .t-src { font-size: 11px; color: var(--text-muted); margin: 1px 0 4px 16px; max-width: 240px; }
.tooltip .t-src a { color: var(--link); }
.plot-hint { font-size: 11.5px; color: var(--text-muted); opacity: 0.8; margin: 4px 0 0; }

.grapher-foot { border-top: 1px solid var(--rule); margin: 14px -20px 0; padding: 12px 20px; font-size: 13px; color: var(--text-muted); }
.grapher-foot p { margin: 0 0 4px; }
.grapher-foot strong { color: var(--text-secondary); }
.tabs { display: flex; gap: 0; border-top: 1px solid var(--rule); margin: 0 -20px; }
.tabs button, .tabs a { font: 700 13px/1 var(--sans); background: none; border: none; border-right: 1px solid var(--rule);
  color: var(--text-secondary); padding: 13px 18px; cursor: pointer; text-decoration: none; }
.tabs button[aria-selected="true"] { color: var(--text-primary); box-shadow: inset 0 -3px 0 var(--series-1); }
.tabs .spacer { flex: 1; border-right: none; }
.tabs a { border-left: 1px solid var(--rule); border-right: none; white-space: nowrap; }
/* downloads and embed: in the tab bar on wide screens, in a Download menu on phones, held either way up,
   and small tablets (see addDownloadMenu) */
.dl-menu { display: contents; }
.tabs .dl-toggle { display: none; }
@media (max-width: 860px) {
  .tabs { position: relative; }
  .tabs .dl-toggle { display: block; border-left: 1px solid var(--rule); border-right: none; }
  .tabs .dl-toggle[aria-expanded="true"] { color: var(--text-primary); }
  .dl-menu { display: none; position: absolute; right: 6px; bottom: calc(100% + 4px); z-index: 30; min-width: 220px;
    flex-direction: column; padding: 6px 0; background: var(--surface-1); border: 1px solid var(--rule); border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
  .dl-menu.open { display: flex; }
  .tabs .dl-menu a { border: none; padding: 12px 16px; font: 600 14px/1.2 var(--sans); color: var(--text-primary); }
  .tabs .dl-menu a:hover, .tabs .dl-menu a:focus-visible { background: var(--rule); }
}

.panel-table { overflow: auto; max-height: 520px; }
table.data { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 6px 10px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th { position: sticky; top: 0; background: var(--surface-1); color: var(--text-secondary); }
table.data tr.fc td { color: var(--text-muted); font-style: italic; }
/* a figure whose cell in the publisher's file we can show */
.src-ref { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  border-bottom: 1px dotted var(--axis); }
.src-ref:hover, .src-ref:focus-visible { color: var(--link); border-bottom-color: var(--link); }
.table-note { font-size: 13px; color: var(--text-muted); margin: 0 0 8px; }
.cell-note { position: absolute; z-index: 20; width: min(340px, calc(100vw - 16px)); background: var(--surface-1);
  border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,0.14);
  padding: 12px 14px; font-size: 13.5px; line-height: 1.45; color: var(--text-primary); }
.cell-note h4 { margin: 0 24px 6px 0; font-size: 14px; }
.cell-note p { margin: 0 0 6px; }
.cell-note p:last-child { margin-bottom: 0; }
.cell-note .muted { color: var(--text-muted); overflow-wrap: anywhere; }
.cell-note-close { position: absolute; top: 6px; right: 8px; background: none; border: 0; font-size: 20px; line-height: 1;
  color: var(--text-muted); cursor: pointer; padding: 2px 4px; }
.panel-sources { font-size: 14px; padding-bottom: 16px; max-width: 760px; }
.panel-sources h3 { font: 600 17px/1.3 var(--serif); margin: 16px 0 6px; }
.panel-sources ul { padding-left: 18px; }

.about { max-width: 720px; }
.about h1 { font: 600 30px/1.2 var(--serif); }

@media (max-width: 600px) {
  .grapher { padding: 14px 14px 0; }
  .grapher-foot, .tabs { margin-left: -14px; margin-right: -14px; }
  .grapher h1 { font-size: 21px; }
  .intro h1 { font-size: 27px; }
  .tabs button, .tabs a { padding: 12px 12px; }
}
@media (max-width: 370px) {
  .tabs button { padding: 12px 9px; }
}

/* who pays income tax: groups dim while another is hovered */
.sh-group { transition: opacity 0.15s; }
.sh-group.dim { opacity: 0.28; }
.shares-key { margin-top: 10px; }
.shares-key strong { color: var(--text-primary); }
.panel-head { font: 700 15px/1.3 var(--sans); color: var(--text-primary); margin: 26px 0 6px; }
.panel-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.panel-dl { font: 400 13px/1.3 var(--sans); color: var(--text-muted); white-space: nowrap; }
.panel-dl:hover { color: var(--text-primary); }

/* timeline (play + year slider), after OWID */
.timeline { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; font-size: 13px; color: var(--text-muted); }
.tl-play { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface-1);
  cursor: pointer; position: relative; }
.tl-play:hover { border-color: var(--text-muted); }
.tl-play::before { content: ""; position: absolute; left: 12px; top: 9px; border-style: solid; border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent var(--text-primary); }
.tl-play.playing::before { left: 10px; top: 10px; width: 4px; height: 12px; border: none; border-left: 4px solid var(--text-primary);
  border-right: 4px solid var(--text-primary); background: none; box-sizing: content-box; width: 3px; }
.tl-track { flex: 1; min-width: 0; display: flex; }
.tl-range { width: 100%; margin: 0; accent-color: var(--series-1); cursor: pointer; height: 20px; background: transparent;
  -webkit-appearance: none; appearance: none; }
/* outturn years on a solid track, projection years on a paler one */
.tl-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--axis) var(--proj, 100%), var(--rule) var(--proj, 100%)); }
.tl-range::-moz-range-track { height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--axis) var(--proj, 100%), var(--rule) var(--proj, 100%)); }
.tl-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%;
  background: var(--surface-1); border: 2px solid var(--series-1); }
.tl-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-1); border: 2px solid var(--series-1); }
.tl-range:focus-visible { outline: 2px solid var(--series-1); outline-offset: 2px; }
.tl-end { flex: none; font-variant-numeric: tabular-nums; }
.tl-label { flex: none; font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.ch-window { align-items: center; gap: 8px; }
.ch-window .tl-label { margin-right: 4px; }
.tl-span { min-width: 9.5em; }
.tl-note { margin: -6px 0 10px; font-size: 12.5px; color: var(--text-muted); min-height: 1.4em; }
.ch-row, .bar-row { transition: opacity .15s; }
.ch-row.dim, .bar-row.dim { opacity: 0.35; }
.bar-value { transition: fill-opacity .15s; }
.bar-value.dim { fill-opacity: 0.35; }
.tl-year { flex: none; min-width: 64px; text-align: center; font: 700 14px/1 var(--sans); color: var(--text-primary);
  padding: 7px 8px; border: 1px solid var(--rule); border-radius: 4px; font-variant-numeric: tabular-nums; }
.tl-year.proj::after { content: " projection"; font-weight: 400; color: var(--text-muted); font-size: 12px; }
@media (max-width: 560px) { .tl-end { display: none; } }

/* your tax receipt */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: start; padding: 6px 0 22px; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; gap: 22px; } }
.calc-label { display: block; font: 700 13px/1.3 var(--sans); color: var(--text-secondary); margin: 0 0 6px; }
.calc-inputs > .calc-label:not(:first-child) { margin-top: 18px; }
.salary-field { display: flex; align-items: baseline; gap: 4px; border-bottom: 2px solid var(--text-primary); padding-bottom: 2px; }
.salary-field span { font: 600 30px/1 var(--serif); color: var(--text-secondary); }
.salary-input { font: 600 34px/1.1 var(--serif); border: none; background: none; color: var(--text-primary); width: 100%;
  padding: 2px 0; font-variant-numeric: tabular-nums; }
.salary-input:focus { outline: none; }
.salary-field:focus-within { border-bottom-color: var(--series-1); }
.salary-range { width: 100%; margin: 12px 0 0; accent-color: var(--series-1); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.seg button { font: 13px/1 var(--sans); padding: 9px 12px; border: none; background: var(--surface-1); color: var(--text-secondary); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button[aria-pressed="true"] { background: var(--text-primary); color: var(--surface-1); font-weight: 700; }
.calc-summary { margin-top: 24px; }
.split-bar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; background: var(--rule); }
.split-bar i { display: block; height: 100%; transition: width .2s; }
.s-take { background: var(--axis); }
.s-tax { background: var(--series-1); }
.s-ni { background: var(--series-2); }
.calc-dl { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin: 14px 0 0; font-size: 14px; }
.calc-dl dt { color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.calc-dl dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.calc-dl .sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.calc-dl .calc-strong { border-top: 1px solid var(--rule); padding-top: 8px; color: var(--text-primary); }

.receipt { --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  background: var(--receipt-paper); border: 1px solid var(--rule); border-bottom: none; padding: 20px 18px 30px;
  font: 13px/1.45 var(--mono); color: var(--text-primary); position: relative;
  box-shadow: 0 1px 0 var(--rule), 0 8px 20px rgba(0,0,0,0.06); }
/* torn bottom edge */
.receipt::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -9px; height: 10px;
  background: linear-gradient(-45deg, transparent 6px, var(--receipt-paper) 0) 0 0 / 12px 10px repeat-x,
              linear-gradient(45deg, transparent 6px, var(--receipt-paper) 0) 0 0 / 12px 10px repeat-x; }
.r-head { text-align: center; }
.r-title { font: 700 15px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.r-meta { color: var(--text-muted); margin-top: 4px; }
.receipt .seg { display: flex; width: max-content; margin: 12px auto 0; }
.receipt .seg button { font-family: var(--mono); font-size: 12px; padding: 6px 10px; background: var(--receipt-paper); }
.receipt .seg button[aria-pressed="true"] { background: var(--text-primary); color: var(--receipt-paper); }
.r-rule { border-top: 1.5px dashed var(--text-muted); opacity: .55; margin: 14px 0 10px; }
.r-line { display: flex; align-items: baseline; gap: 6px; width: 100%; padding: 4px 0; }
.r-name { flex: 1; min-width: 0; display: flex; align-items: baseline; }
/* dotted leader between the name and the amount */
.r-name::after { content: ""; flex: 1; border-bottom: 1px dotted var(--text-muted); margin: 0 4px 0 6px; opacity: .6; min-width: 12px; transform: translateY(-3px); }
.r-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-fn { font: inherit; color: inherit; background: none; border: none; text-align: left; cursor: pointer; }
.r-fn:hover .r-name, .r-fn:focus-visible .r-name { text-decoration: underline; text-underline-offset: 3px; }
.r-fn:focus-visible { outline: 2px solid var(--series-1); outline-offset: 2px; }
.r-chev { width: 12px; flex: none; color: var(--text-muted); }
.r-kids { padding: 0 0 6px 18px; font-size: 12px; color: var(--text-secondary); }
.r-kid { padding: 2px 0; }
.r-total { font-weight: 700; font-size: 14px; }
.r-foot { margin: 12px 0 0; font-size: 11.5px; color: var(--text-muted); text-align: center; }
@media (max-width: 480px) { .receipt { font-size: 12px; padding: 18px 12px 26px; } .r-kids { padding-left: 14px; } }
.rates-panel { max-height: none; padding-bottom: 12px; }

/* sharing the tax receipt */
.calc-right { min-width: 0; }
.share { margin-top: 26px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { font: 700 13px/1 var(--sans); padding: 10px 14px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface-1);
  color: var(--text-primary); text-decoration: none; cursor: pointer; }
.share-btn:hover { border-color: var(--text-muted); }
.share-btn.share-main { background: var(--text-primary); color: var(--surface-1); border-color: var(--text-primary); }
.share-note { font-size: 12px; color: var(--text-muted); margin: 8px 0 0; }

/* home page: one section per topic */
.section-head { font: 600 26px/1.2 var(--serif); margin: 44px 0 4px; padding-top: 14px; border-top: 2px solid var(--text-primary); }
.section-intro { color: var(--text-muted); font-size: 14px; margin: 0 0 6px; }
.intro + .section-head, .intro + .cards { margin-top: 0; }
.topic-head { font: 600 20px/1.2 var(--serif); margin: 30px 0 12px; }
.topic-head a { color: inherit; text-decoration: none; display: inline-flex; align-items: baseline; gap: 10px; }
.topic-head a::after { content: "\203a"; color: var(--text-muted); }
.topic-head a:hover { text-decoration: underline; }
.topic-count { font: 400 13px/1 var(--sans); color: var(--text-muted); }


/* panels: small charts stacked on one time axis */
.panels .panel-chart + .panel-chart { margin-top: 6px; }
/* each panel positions its own tooltip, so it appears beside the line being hovered */
.panel-plot { position: relative; }
.panels .panel-head { margin: 12px 0 2px; }
.thumb .panel-chart + .panel-chart { margin-top: 4px; }

/* ---------- dashboard ---------- */
/* wide screens: a six-column grid (as many tiles as fit at about 160px); each group spans
   one column per tile (--n, set in app.js), so small groups share a row */
.dash-groups { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 12px; }
.dash-group { grid-column: span var(--n, 6); min-width: 0; padding: 10px 12px 12px; border-radius: 6px;
  background: var(--surface-1); background: color-mix(in srgb, var(--tint, var(--axis)) 8%, var(--page)); }
.dash-group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; min-height: 28px; }
.dash-group h3 { font: 700 12px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 0; }
/* a group's tiles: one row that scrolls sideways (a carousel), snapping to whole tiles */
.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--n, 6) - 1) * 12px) / var(--n, 6)); gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.tiles::-webkit-scrollbar { display: none; }
.tile { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--rule); background: var(--surface-1); color: inherit; text-decoration: none; transition: box-shadow .15s, border-color .15s;
  scroll-snap-align: start; min-width: 0; }
.dash-nav { display: none; gap: 6px; }
.dash-nav[hidden] { display: none !important; }
.dash-arrow { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface-1); color: var(--text-primary);
  font: 700 18px/1 var(--sans); padding: 0 0 2px; cursor: pointer; }
.dash-arrow:hover:not(:disabled) { border-color: var(--text-muted); }
.dash-arrow:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .dash-nav { display: flex; }
  .tiles.can-scroll { cursor: grab; }
  .tiles.dragging { scroll-snap-type: none; user-select: none; }
  .tiles.dragging, .tiles.dragging * { cursor: grabbing; }
}
/* narrower screens: one group per row, each a carousel showing a part-tile at its edge */
@media (max-width: 860px) {
  .dash-groups { grid-template-columns: minmax(0, 1fr); }
  .dash-group { grid-column: auto; }
  .tiles { grid-auto-columns: calc((100% - 3 * 12px) / 3.6); }
}
.tile:hover, .tile:focus-visible { border-color: var(--axis); box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.tile-label { font: 700 14px/1.3 var(--sans); color: var(--text-primary); display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; }
.tile-label .tile-geo { margin-left: 0; }
.tile-geo { margin-left: 6px; padding: 1px 6px; border: 1px solid var(--rule); border-radius: 9px; font: 600 10.5px/1.4 var(--sans); color: var(--text-muted); vertical-align: 1px; white-space: nowrap; }
.tile-value { font: 600 28px/1.15 var(--serif); color: var(--text-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.spark { display: block; width: 100%; height: 40px; margin: 4px 0 6px; overflow: visible; }
.spark-line { fill: none; stroke: var(--series-1); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark-zero { stroke: var(--axis); stroke-width: 1; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.spark-dot { stroke: var(--series-1); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tile-measure { font-size: 12.5px; color: var(--text-secondary); line-height: 1.35; }
/* under the sparkline, on one line: the gap to an official target, or the change on a year earlier.
   Colour says met or missed, better or worse; the tooltip and screen readers get it in words */
.tile-judge { display: block; font-size: 12px; line-height: 1.35; color: var(--text-secondary); margin: -2px 0 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-target-label { font-weight: 700; }
.tile-target .met, .tile-change.better .tile-arrow { color: var(--good); }
.tile-target .missed, .tile-change.worse .tile-arrow { color: var(--bad); }
.tile-target .met, .tile-target .missed { font-weight: 700; }
.tile-arrow { font-size: 10px; color: var(--text-muted); }
.spark-target { stroke: var(--text-primary); stroke-width: 1; stroke-dasharray: 4 3; opacity: .6; vector-effect: non-scaling-stroke; }
.spark-dot-hole { stroke: var(--surface-1); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* a target met or missed, or a clear change for the better or worse: a thin coloured edge along the top */
.tile { position: relative; }
.tile-good::before, .tile-bad::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; }
.tile-good::before { background: var(--good); }
.tile-bad::before { background: var(--bad); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tile-foot { margin-top: auto; padding-top: 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.tile-foot .tile-geo { margin-left: 0; }
.tile-next { max-width: 100%; font-size: 11px; color: var(--text-muted); opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-next.tile-late { white-space: normal; } /* an overdue release: show the whole line */
/* phones: a tile and most of the next, so it's plain the row swipes; the row runs to the screen's
   edges. Tiles this wide keep most names and descriptions to a line or two, so tiles in a row come
   out about the same height */
@media (max-width: 600px) {
  .dash-group { margin: 0 -16px; padding: 10px 16px 12px; border-radius: 0; }
  .dash-groups { row-gap: 10px; }
  .tiles { grid-auto-columns: calc((100% - 8px) / 1.8); gap: 8px; margin: 0 -16px; padding: 0 16px 2px; scroll-padding: 0 16px; }
  .tile { padding: 12px; } .tile-value { font-size: 24px; } .spark { height: 34px; margin: 2px 0 4px; }
  /* where the figures cover and when they're next out share a line when they fit. Each tile is as
     tall as its own words, so a long name further along the row leaves no gap in the tiles on screen */
  .tiles { align-items: start; }
  .tile-foot { margin-top: 0; padding-top: 6px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
}

.next-update a { color: var(--link); }
/* a small ring beside the next update, filling up as it nears (progressRing in app.js) */
.next-ring { width: 11px; height: 11px; vertical-align: -1px; margin-right: 5px; }
.next-ring circle { fill: none; stroke-width: 1.6; }
.next-ring-track { stroke: var(--rule); }
.next-ring-fill { stroke: var(--text-muted); stroke-linecap: round; }
/* ---------- datasets ---------- */
.ds-page h1 { font: 600 30px/1.2 var(--serif); margin: 0 0 8px; }
.ds-intro { color: var(--text-secondary); max-width: 680px; margin: 0 0 20px; }
.ds-soon { margin: 0 0 22px; }
.ds-soon h2 { font: 700 12px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 8px; }
.ds-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.ds-day { border: 1px solid var(--rule); background: var(--surface-1); padding: 10px 12px; min-width: 0; }
.ds-date { font: 600 17px/1.2 var(--serif); margin: 0; }
.ds-in { font-size: 12px; color: var(--text-muted); margin: 0 0 6px; }
.ds-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 13px; line-height: 1.3; }
.ds-day li { padding-left: 14px; position: relative; }
.ds-day li::before { content: ""; position: absolute; left: 0; top: .35em; width: 8px; height: 8px; border-radius: 50%; background: var(--topic); }
.ds-day a { color: var(--text-primary); text-decoration: none; }
.ds-day a:hover { color: var(--link); text-decoration: underline; }
.ds-after { color: var(--text-muted); }
.ds-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.ds-tools input, .ds-tools select { font: 14px var(--sans); padding: 7px 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface-1); color: var(--text-primary); }
.ds-tools input { flex: 1 1 240px; min-width: 0; }
.ds-tools select { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.ds-count { font-size: 13px; color: var(--text-muted); margin: 10px 0 12px; }
.ds-axis, .ds-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 108px; gap: 14px; align-items: center; }
.ds-axis { font-size: 11px; color: var(--text-muted); border-bottom: 1px solid var(--rule); padding: 0 8px 4px; }
.ds-ticks { position: relative; height: 14px; }
.ds-ticks span { position: absolute; transform: translateX(-50%); }
.ds-ticks span:first-child { transform: none; }
.ds-group { display: flex; align-items: center; gap: 8px; font: 700 12px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; margin: 18px 0 2px; padding: 0 8px; }
.ds-group::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--topic); }
.ds-row { border-bottom: 1px dotted var(--rule); }
.ds-row.open { background: var(--surface-1); border: 1px solid var(--rule); margin: 4px 0; }
.ds-head { width: 100%; font: inherit; color: inherit; text-align: left; background: none; border: 0; padding: 7px 8px; cursor: pointer; }
.ds-head:hover .ds-title { color: var(--link); }
.ds-name { display: block; min-width: 0; }
.ds-title { display: block; font: 700 14.5px/1.3 var(--sans); }
.ds-pub { display: block; font-size: 12px; color: var(--text-muted); }
.ds-next { font-size: 12.5px; color: var(--text-secondary); text-align: right; font-variant-numeric: tabular-nums; }
.ds-span { position: relative; display: block; height: 18px; }
.ds-bar, .ds-forecast { position: absolute; top: 5px; height: 8px; border-radius: 4px; background: var(--topic); }
.ds-bar.long { top: 1px; height: 16px; border-radius: 3px; }
.ds-forecast { opacity: .35; border-radius: 0 4px 4px 0; }
.ds-years { position: absolute; top: 1px; font-size: 11px; line-height: 16px; color: var(--text-secondary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ds-years.inside { color: #fff; font-weight: 700; }
.ds-detail { padding: 2px 8px 12px; }
.ds-summary { font-size: 14px; color: var(--text-secondary); margin: 4px 0 10px; max-width: 680px; }
.ds-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.ds-tags .tile-geo { margin-left: 0; }
.ds-tag { font: 600 11.5px/1.4 var(--sans); padding: 2px 8px; border-radius: 10px; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--topic) 16%, var(--surface-1)); color: var(--text-primary); }
.ds-tag:hover { background: color-mix(in srgb, var(--topic) 28%, var(--surface-1)); }
.ds-facts { display: grid; grid-template-columns: 70px 1fr; gap: 4px 10px; margin: 0 0 10px; font-size: 13px; }
.ds-facts div { display: contents; }
.ds-facts dt { color: var(--text-muted); }
.ds-facts dd { margin: 0; color: var(--text-primary); }
.ds-facts a, .ds-links a { color: var(--link); }
.ds-links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 13px; margin: 0; padding-top: 8px; border-top: 1px dotted var(--rule); }
.ds-links .ds-csv { font-weight: 700; padding: 4px 10px; border-radius: 6px; background: var(--link); color: var(--surface-1); text-decoration: none; }
.ds-none { color: var(--text-secondary); padding: 20px 8px; }
@media (max-width: 600px) {
  .ds-axis, .ds-head { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .ds-axis > :first-child, .ds-axis .ds-next { display: none; }
  .ds-axis .ds-ticks { grid-column: 1 / -1; }
  .ds-head .ds-span { grid-column: 1 / -1; grid-row: 2; }
  .ds-head .ds-next { align-self: start; }
}

/* Embed code, under a chart (chart/<id>/) */
.embed-box { border: 1px solid var(--rule); border-top: none; background: var(--surface-1); padding: 16px 20px 18px; }
.embed-box h2 { font: 600 17px/1.3 var(--serif); margin: 0 0 4px; }
.embed-box p { font-size: 14px; color: var(--text-secondary); margin: 0 0 10px; max-width: 720px; }
.embed-box textarea { display: block; width: 100%; font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text-primary); background: var(--page); border: 1px solid var(--rule); border-radius: 6px; padding: 10px; resize: vertical; margin-bottom: 10px; }

/* The embed itself (chart/<id>/embed/): the chart alone, filling the iframe */
/* a scrollbar's room is kept, so one appearing doesn't rewrap the title after the plot is sized */
html:has(body[data-embed]) { scrollbar-gutter: stable; }
body[data-embed] { background: var(--surface-1); }
body[data-embed] .site-header, body[data-embed] .site-footer { display: none; }
body[data-embed] main.wrap { max-width: none; padding: 0; }
.embed-credit { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 -20px;
  padding: 9px 20px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--text-muted); text-decoration: none; }
.embed-credit:hover { color: var(--text-primary); }
.embed-brand { font: 900 14px/1 var(--sans); color: var(--header-bg); letter-spacing: -0.01em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .embed-brand { color: var(--text-primary); } }
:root[data-theme="dark"] .embed-brand { color: var(--text-primary); }
@media (max-width: 600px) { .embed-credit { margin: 0 -14px; padding: 9px 14px; } }

/* ---------- the plain-text copy of a page, for crawlers (ukfiscal/seo.py) ---------- */
/* app.js replaces it as soon as it draws; hidden meanwhile so the page doesn't flash text */
.has-js .prerendered { display: none; }
.prerendered table { border-collapse: collapse; }
.prerendered th, .prerendered td { padding: 4px 12px 4px 0; text-align: left; border-bottom: 1px solid var(--rule); }

/* "Spot a problem?": a short form over the chart (see openReport in app.js) */
dialog.report { width: min(460px, calc(100vw - 32px)); border: 1px solid var(--rule); border-radius: 6px; padding: 18px 20px 20px;
  background: var(--surface-1); color: var(--text-primary); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
dialog.report::backdrop { background: rgba(0,0,0,0.35); }
dialog.report form { display: grid; gap: 12px; position: relative; }
dialog.report h2 { margin: 0; font: 600 22px/1.2 var(--serif); }
dialog.report p { margin: 0; font-size: 14px; }
dialog.report .muted { color: var(--text-secondary); }
dialog.report a { color: var(--link); }
dialog.report label { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
dialog.report label small { font-weight: 400; color: var(--text-muted); }
dialog.report input, dialog.report textarea { font: 15px/1.4 var(--sans); padding: 7px 9px; border: 1px solid var(--rule);
  border-radius: 4px; background: var(--page); color: var(--text-primary); width: 100%; box-sizing: border-box; }
dialog.report .report-chart { color: var(--text-secondary); }
dialog.report textarea { resize: vertical; }
dialog.report .report-trap { position: absolute; left: -9999px; }
dialog.report .report-status { color: var(--text-secondary); }
dialog.report .report-status:empty { display: none; }
dialog.report .report-send { justify-self: start; font: 700 15px/1 var(--sans); padding: 10px 18px; border: 0; border-radius: 4px;
  background: var(--header-bg); color: var(--header-text); cursor: pointer; }
dialog.report .report-send:disabled { opacity: 0.6; cursor: default; }
dialog.report .report-close { position: absolute; top: -8px; right: -10px; background: none; border: 0; font-size: 24px; line-height: 1;
  color: var(--text-muted); cursor: pointer; padding: 2px 6px; }

.corrections table { width: 100%; border-collapse: collapse; font-size: 15px; }
.corrections th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted);
  border-bottom: 1px solid var(--rule); padding: 6px 10px 6px 0; }
.corrections td { border-bottom: 1px solid var(--rule); padding: 10px 10px 10px 0; vertical-align: top; }
.corrections td:first-child { white-space: nowrap; }
.corrections .pill { font-size: 11px; font-weight: 700; border: 1px solid var(--rule); padding: 1px 6px; color: var(--text-muted); white-space: nowrap; }
.corrections .muted { color: var(--text-muted); }
.corrections .table-scroll { overflow-x: auto; }
