/* Toteuma. Design brief: docs/DESIGN.md. No script, no external requests; fonts are self-hosted (OFL 1.1). */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-serif-4-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-serif-4-latin-wght-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 100 700; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-wght-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --paper: #fbfaf6; --raised: #f2f0e8; --ink: #17202e; --muted: #566070; --line: #dcd9cf;
  --accent: #1a4fa0; --over: #1f6fb2; --under: #c2571a; --within: #77808d; --wash: #ebe8dd;
  --band-cool: #e6ebf5; --band-warm: #f1ead9;       /* section bands: a blue-grey and a warm wash (look plan, D) */
  --interest: #a8741c;                              /* interest on the state debt in the spending bar */
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --text: 44rem; --wide: 60rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #14171c; --raised: #1c2027; --ink: #e9e7e0; --muted: #a2a9b4; --line: #343a44;
          --accent: #8fbcf2; --over: #4a8fd6; --under: #d9742f; --within: #8a93a0; --wash: #232831;
          --band-cool: #1c2535; --band-warm: #262219; --interest: #d9a441; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.6 var(--sans);
       font-variant-numeric: lining-nums; }
a { color: var(--accent); text-underline-offset: .15em; text-decoration-thickness: .06em; }
a:hover { text-decoration-thickness: .12em; }
/* a figure that opens its source: a thin dotted underline, so that a row of figures is not a wall of solid lines;
   names and words keep the solid one (look plan, D) */
td.n a, a.fig { text-decoration-style: dotted; text-decoration-thickness: 1px; text-underline-offset: .22em; }
td.n a:hover, a.fig:hover { text-decoration-style: solid; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* shell (backlog 70): the wordmark is the home link; its row carries the tagline and, right-aligned and small, the
   language link. The six nav entries sit on one row under it on a phone (the row scrolls sideways rather than wraps
   if a narrow screen cannot hold it) and beside the wordmark from 52 rem. */
header.site { border-bottom: 3px solid var(--ink); }
header.site .in { max-width: var(--wide); margin: 0 auto; padding: .5rem 1rem .35rem; display: flex; flex-wrap: wrap;
                  align-items: center; gap: .1rem .9rem; }
header.site .name { order: 0; font: 700 1.6rem/1 var(--serif); letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
/* wordmark A (docs/look-plan.md, A): ink from currentColor, the forecast's ring and the outcome's dot in the accent;
   the link is a 44 px target, the name as hidden text */
header.site .name.wmk { display: inline-flex; align-items: center; min-height: 44px; flex: none; width: 3.3rem; }
svg.wm { display: block; flex: none; height: 1.75rem; width: 3.3rem; }    /* 28 px high; viewBox 400 x 212 */
.wm .wr { fill: none; stroke: var(--accent); stroke-width: 8; }
.wm .wd { fill: var(--accent); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
header.site .tag { order: 1; color: var(--muted); font-size: .9375rem; }
header.site .twin { order: 2; margin-left: auto; font-size: .8125rem; white-space: nowrap; display: inline-flex;
                    align-items: center; min-height: 44px; }
header.site nav { order: 3; flex: 1 0 100%; min-width: 0; }
nav ul { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 0 .9rem; list-style: none; margin: 0;
         padding: 0; font-size: .9375rem; overflow-x: auto; scrollbar-width: none; }
nav li { flex: none; }
nav a { color: var(--ink); text-decoration: none; padding: .3rem 0 .25rem; display: inline-block; border-bottom: 2px solid transparent;
        white-space: nowrap; }
nav a:hover { border-bottom-color: var(--line); }
nav a[aria-current] { font-weight: 600; border-bottom-color: var(--ink); }
/* the section's topic icon before the word (site/build.py NAV_ICON): only in the pill row, and only from 40 rem,
   where the row has room for it (at 390 px five pills with icons do not fit) */
nav svg.nvi { display: none; }
nav a:focus-visible { outline-offset: -2px; }
/* below 52 rem (look plan, D): compact pills, the current page filled, each pill a 44 px target through its own
   min-height. From 40 rem one row that scrolls sideways and fades out at the right edge. Below 40 rem the pills wrap
   onto a second row (GUI round 2026-11-30): with seven sections the last two, and on their own pages the current
   one, were out of sight at 390 px, and a page without scripts cannot scroll the row to the current pill. */
@media (max-width: 51.99rem) {
  nav ul { justify-content: flex-start; gap: 6px; padding: .1rem 1.25rem .55rem 0; font-size: .875rem;
           scroll-snap-type: x proximity;
           -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.5rem), transparent);
           mask-image: linear-gradient(to right, #000 calc(100% - 1.5rem), transparent); }
  nav li { scroll-snap-align: start; }
  nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .55rem; border: 1px solid var(--line);
          border-radius: 999px; }
  nav a:hover { border-color: var(--muted); }
  nav a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
}
@media (max-width: 39.99rem) {
  nav ul { flex-wrap: wrap; overflow-x: visible; padding-right: 0; scroll-snap-type: none; -webkit-mask-image: none;
           mask-image: none; }
}
@media (min-width: 40rem) and (max-width: 51.99rem) {
  nav svg.nvi { display: block; flex: none; width: 16px; height: 16px; margin-right: .35rem; stroke-width: 3.6; }
}
@media (max-width: 24.99rem) {           /* a phone: the small step of the scale */
  header.site .in { column-gap: .75rem; }
  header.site .tag { font-size: .8125rem; }
}
/* where the tagline would push the language link off the wordmark row (English below 420 px, Finnish below 360 px)
   it goes under the wordmark on the front and is left out elsewhere */
@media (max-width: 26.24rem) {
  header.site .tag:lang(en) { display: none; }
  header.site.home .tag:lang(en) { display: block; order: 3; flex-basis: 100%; }
}
@media (max-width: 22.49rem) {
  header.site .tag { display: none; }
  header.site.home .tag { display: block; order: 3; flex-basis: 100%; }
}
@media (min-width: 52rem) {
  header.site .in { padding: .8rem 1rem .45rem; gap: .35rem 1.5rem; }
  header.site nav { order: 2; flex: 0 1 auto; margin-left: auto; }
  nav ul { gap: 0 1.25rem; }
  header.site .twin { order: 3; margin-left: 0; }
}
main { max-width: var(--wide); margin: 0 auto; padding: 0 1rem; }
main > * { max-width: var(--text); }
main > .wide, main > .scroll, main > .chartwrap, main > .counters, main > .claimcard, main > .tgroup { max-width: none; }
footer { max-width: var(--wide); margin: 4rem auto 0; padding: 1rem 1rem 2.5rem; border-top: 1px solid var(--line);
         color: var(--muted); font-size: .8125rem; }
footer p { max-width: var(--text); margin: 0; }

/* type */
h1 { font: 600 clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem)/1.14 var(--serif); letter-spacing: -.012em; margin: 2.25rem 0 1rem; overflow-wrap: break-word;
     text-wrap: balance; }
h1.finding { font-size: clamp(1.9rem, 1.2rem + 3.1vw, 2.9rem); line-height: 1.1; margin-top: .5rem; max-width: 52rem; }
h2 { font: 600 1.375rem/1.25 var(--serif); margin: 3rem 0 .6rem; padding-top: .9rem; border-top: 1px solid var(--line);
     text-wrap: balance; }
h3 { font: 600 1.0625rem/1.3 var(--sans); margin: 1.75rem 0 .3rem; }
p, li { overflow-wrap: break-word; }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
           margin: 2.5rem 0 0; }
.lede { font-size: 1.25rem; line-height: 1.5; }
.muted, .note { color: var(--muted); }
.note { font-size: .9375rem; line-height: 1.55; }
code, pre { font-family: var(--mono); }
code { font-size: .9em; overflow-wrap: anywhere; }

/* split bar: below / within / above, counts as its key (also the chart's legend) */
.split { display: flex; gap: 2px; height: 1.1rem; margin: 1.75rem 0 .6rem; max-width: var(--wide); }
.split span { display: block; min-width: 3px; }
.split span:first-child { border-radius: 3px 0 0 3px; }
.split span:last-child { border-radius: 0 3px 3px 0; }
.split .under, .sw.under { background: var(--under); }
.split .within, .sw.within { background: var(--within); }
.split .over, .sw.over { background: var(--over); }
.key { display: flex; flex-wrap: wrap; gap: .3rem 1.75rem; list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: .9375rem;
       max-width: var(--wide); }
.key b { font: 600 1.25rem/1 var(--serif); font-variant-numeric: tabular-nums; margin-right: .15rem; }
.sw { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .4rem; }
.sw.total { width: 1.1rem; height: 3px; border-radius: 0; background: var(--ink); vertical-align: middle; }

/* chart */
.chartwrap { margin: .5rem 0 .75rem; }
.chartwrap svg.chart { display: block; width: 100%; height: auto; }
.chartwrap svg.chart.narrow { display: none; max-width: 26rem; }
@media (max-width: 40rem) { .chartwrap svg.chart.wide { display: none; } .chartwrap svg.chart.narrow { display: block; } }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .one { stroke: var(--muted); stroke-width: 1; }
.chart .band { fill: var(--wash); }
.chart .shock { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .shocklabel, .chart .tick { fill: var(--muted); font: 12px var(--sans); }
.chart .tick.yr { fill: var(--ink); font-weight: 500; }
.chart .dot { fill: var(--within); stroke: var(--paper); stroke-width: 1.5; }
.chart .dot[data-b=over] { fill: var(--over); }
.chart .dot[data-b=under] { fill: var(--under); }
.chart a:hover .dot, .chart a:focus .dot { stroke: var(--ink); }
.chart a:focus { outline: none; }
.chart .total { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }

/* question cards and the dumbbell chart (docs/DESIGN.md, public-interest front, 2026-11-25): text left and the chart
   right from 52 rem; stacked below it. Forecast a ring in muted ink, outcome a dot in ink; only the joining line
   carries the above / below colours, at equal weight. */
main > .qcard, main > .fullchart { max-width: none; }
.qcard { margin: 0 0 1rem; }
.qcard h2 { margin-top: 2.5rem; }
.qbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem 2.5rem; }
@media (min-width: 52rem) { .qbody { grid-template-columns: minmax(0, 1fr) minmax(0, 23rem); } }
.qtext > :first-child { margin-top: .4rem; }
.minor { margin-bottom: .2rem; }
.misses { margin-top: 0; padding-left: 1.2rem; font-size: .9375rem; }
.misses li { margin: .15rem 0; }
.qchart, .fullchart { margin: .5rem 0 .75rem; }
.qchart svg, .fullchart svg { display: block; width: 100%; height: auto; max-width: 26rem; }
.dumbbell .grid { stroke: var(--line); stroke-width: 1; }
.dumbbell .tick { fill: var(--muted); font: 11px var(--sans); }
.dumbbell .tick.yr { fill: var(--ink); font-weight: 500; }
.dumbbell .lab { fill: var(--ink); font: 500 11px var(--sans); }
.dumbbell .hit { fill: transparent; }
.dumbbell a:hover .hit, .dumbbell a:focus .hit { fill: var(--wash); }
.dumbbell a:focus { outline: none; }
.dumbbell .join { stroke-width: 2.5; stroke: var(--within); }
.dumbbell .join[data-d=over] { stroke: var(--over); }
.dumbbell .join[data-d=under] { stroke: var(--under); }
.dumbbell .fc { fill: var(--paper); stroke: var(--muted); stroke-width: 1.75; }
.dumbbell .oc { fill: var(--ink); stroke: var(--paper); stroke-width: 1.5; }
.dkey { display: grid; grid-template-columns: max-content max-content; gap: .1rem 1.25rem; list-style: none; padding: 0;
        margin: 0 0 .35rem; font-size: .8125rem; color: var(--ink); }
.stats .pub { display: block; font-size: .75rem; color: var(--muted); white-space: nowrap; }
.dkey .k { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; margin-right: .35rem; vertical-align: -.05rem; }
.dkey .k.fc { border: 2px solid var(--muted); background: var(--paper); }
.dkey .k.oc { background: var(--ink); }
.dkey .k.ln { width: 1.1rem; height: 3px; border-radius: 0; vertical-align: .2rem; }
.dkey .k.ln.over { background: var(--over); }
.dkey .k.ln.under { background: var(--under); }
.newshead { font-size: .9375rem; margin: 1rem 0 .2rem; }
.news { list-style: none; padding: 0; margin: 0 0 .3rem; }
.news li { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.news li .src { display: block; }
.more { font-weight: 600; }
.held li { margin: .3rem 0; }
.breaknote { padding: .6rem .9rem; background: var(--raised); border-left: 2px solid var(--ink); }
.serieslist { list-style: none; padding: 0; }
.serieslist h2 { font-size: 1.25rem; }
.stats td:first-child { width: 60%; }
@media (max-width: 40rem) { .stats th.n, .stats td.n { padding-left: .6rem; } }

/* funnel */
.funnel { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; max-width: var(--wide); }
.funnel li { display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: .1rem 1rem; align-items: center; padding: .45rem 0;
             border-bottom: 1px solid var(--line); }
.funnel .fl { font-size: .9375rem; line-height: 1.35; }
.funnel .fb { display: flex; align-items: center; gap: .6rem; }
.funnel .fb i { display: block; height: 1.1rem; min-width: 3px; background: var(--ink); border-radius: 0 3px 3px 0; }
.funnel b { font: 600 1.25rem/1 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 40rem) { .funnel li { grid-template-columns: 1fr; } }

/* key figures */
.counters { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0 1.5rem; margin: 1rem 0; padding: 0; }
.counters div { border-top: 1px solid var(--line); padding: .6rem 0 .9rem; }
.counters dt { color: var(--muted); font-size: .875rem; line-height: 1.3; min-height: 2.3rem; }
.counters dd { margin: .15rem 0 0; font: 600 1.75rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.counters dd.qual { margin: .25rem 0 0; font: 400 .8125rem/1.35 var(--sans); color: var(--muted); }
.counters dd a { text-decoration: none; }
.counters dd a:hover, .counters dd a:focus { text-decoration: underline; }
/* grouped key figures (coverage, 2026-11-25): a small label per group; columns by the group's size, so no row
   holds a lone tile and tiles keep one width across groups; on a phone each tile is a row, number at the right */
.glabel { font: 600 .8125rem/1.3 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
          margin: 1.75rem 0 .35rem; }
.glabel + .funnel { margin-top: .25rem; }
.counters.grouped { margin: 0 0 1rem; }
.counters.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 48.75%; }
.counters.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 74.4%; }
.counters.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 40rem) {
  .counters.grouped { grid-template-columns: minmax(0, 1fr); max-width: none; }
  .counters.grouped div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: baseline;
                          padding: .5rem 0 .6rem; }
  .counters.grouped dt { min-height: 0; font-size: .9375rem; color: var(--ink); }
  .counters.grouped dd { grid-column: 2; grid-row: 1; margin: 0; font-size: 1.375rem; text-align: right; }
  .counters.grouped dd.qual { grid-column: 1 / -1; grid-row: 2; text-align: left; margin-top: .15rem; font-size: .8125rem; }
}

/* tables */
.scroll { overflow-x: auto; max-width: 100%; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; }
th { font-weight: 600; font-size: .8125rem; color: var(--muted); border-bottom: 1px solid var(--ink); vertical-align: bottom; }
th, td { text-align: left; vertical-align: top; padding: .45rem .9rem .45rem 0; border-bottom: 1px solid var(--line); }
tbody th { font-size: inherit; color: inherit; border-bottom: 1px solid var(--line); }
td.n, th.n { text-align: right; padding-right: 0; padding-left: .9rem; }
td.n { white-space: nowrap; }
td a[href*="finlex"], td a[href^="claim-"] { white-space: nowrap; }
@media (max-width: 40rem) { .scroll table:not(.bars):not(.record):not(.survey):not(.stats):not(.latest):not(.cx) { min-width: 40rem; } }
.checkability td + td, .checkability th + th { text-align: right; padding-right: 0; padding-left: .9rem; }
tr.total td { font-weight: 600; border-top: 1px solid var(--ink); }
/* corrections.html: date kept on one line, the years and "open forecast" on a line of their own, the recorded
   reasons in the note size */
.cx td.d { white-space: nowrap; }
.cx .sub { display: block; font-size: .8125rem; color: var(--muted); white-space: normal; }
.cx td.why { font-size: .875rem; min-width: 16rem; } .cx ul, .cx p { margin: 0 0 .3rem; padding-left: 1rem; }
.cx td > p, .cx details > p { padding-left: 0; } .cx td.n, .cx th.n { padding-right: 1.25rem; }
.cx details { margin: .2rem 0 .4rem; } .cx summary { color: var(--accent); cursor: pointer; margin-bottom: .3rem; }
@media (max-width: 40rem) {     /* a phone: each row restacks (as the record), the reasons run the full width */
  .cx, .cx tbody, .cx tr, .cx td { display: block; }
  .cx thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cx tr { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .cx td, .cx td.n { border: 0; padding: 0; text-align: left; }
  .cx td.w, .cx td.why { flex-basis: 100%; min-width: 0; }
  .cx td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
}
.bars td, .bars th { border: 0; padding: .15rem .5rem .15rem 0; }
.bar { display: block; height: .9rem; min-width: 1px; background: var(--within); border-radius: 0 2px 2px 0; }
.bars td.barcell { width: 100%; }
/* the record (docs/DESIGN.md, 2026-11-25): forecast, realised and their ratio as right-aligned figures with a real
   gutter; on a phone each row restacks as a block (CSS only; it stays a table to assistive technology) */
.record th, .record td { padding: .45rem .6rem; }
.record th:first-child, .record td:first-child { padding-left: 0; }
.record th:last-child, .record td:last-child { padding-right: 0; }
.record th.n, .record td.n { padding-left: 1.25rem; }
.record td.b, .record td.s { white-space: nowrap; }
.record td.s { font-size: .8125rem; padding-top: .55rem; }
.record td.c { font-family: var(--mono); font-size: .875rem; padding-top: .55rem; }
.tally { list-style: none; padding: 0; margin: 1.5rem 0 .5rem; border-top: 1px solid var(--line); }
.tally li { display: grid; grid-template-columns: .9rem minmax(0, 1fr); column-gap: .7rem; align-items: baseline;
            padding: .35rem 0; border-bottom: 1px solid var(--line); }
.tally li.apart { margin-top: .9rem; border-top: 1px solid var(--line); }
.tally .tl { padding-left: 2.8rem; text-indent: -2.8rem; }
.tally a { text-decoration: none; }
.tally a:hover, .tally a:focus { text-decoration: underline; }
.tally b { display: inline-block; min-width: 2.3rem; margin-right: .2rem; text-align: right; text-indent: 0;
           font: 600 1.25rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.tally .muted { font-size: .875rem; }
h2 .status { align-items: baseline; gap: .6rem; }
@media (max-width: 40rem) {
  .record, .record tbody, .record tr, .record td { display: block; }
  .record thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .record tr { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .25rem 1rem; padding: .7rem 0;
               border-bottom: 1px solid var(--line); }
  .record td, .record td.n, .record td:first-child, .record td:last-child { border: 0; padding: 0; text-align: left; }
  .record td.n { white-space: normal; }
  .record td.c { order: 1; font-weight: 500; }
  .record td.b { order: 1; }
  .record td.m { order: 2; flex-basis: 100%; }
  .record td.f, .record td.r, .record td.x { order: 3; font-size: .9375rem; }
  .record td.x { max-width: 6rem; }
  .record td.f::before, .record td.r::before, .record td.x::before { content: attr(data-label); display: block;
    font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .record tr::after { content: ""; order: 4; flex-basis: 100%; height: 0; }
  .record td.s, .record td.q { order: 5; font-size: .8125rem; color: var(--muted); }
  .record td.q::before { content: attr(data-label) " "; }
  .record td:empty { display: none; }
}
.outcomes td { vertical-align: top; }
.outcomes pre { white-space: pre-wrap; overflow-x: auto; font-size: .72rem; margin: .3rem 0 0; }
.series td.within a, .series td.over a, .series td.under a { text-decoration: none; color: var(--ink); }
.series td.over, .series td.under { position: relative; }
.bytax td.over a, .bytax td.under a { border-bottom: 2px solid var(--over); }
.bytax td.under a { border-bottom-color: var(--under); }
.series tr.lines td { border-bottom: 1px solid var(--line); padding-top: 0; }
.series tr.lines pre { white-space: pre; overflow-x: auto; font-size: .72rem; margin: .2rem 0 .5rem; padding: .5rem .75rem;
                       background: var(--raised); border-left: 2px solid var(--ink); }
.series tr[id] td { border-bottom: 0; padding-bottom: .1rem; }
.series tr[id]:target td { background: var(--wash); }
.pairs tr.over td:last-child, .pairs tr.under td:last-child { font-weight: 600; }
.flag { font-size: .75rem; font-weight: 600; letter-spacing: .03em; color: var(--muted); border: 1px solid var(--line);
        border-radius: 3px; padding: 0 .3rem; white-space: nowrap; }

/* source quotes: Finnish text as published, beside the English interface */
blockquote { margin: 1rem 0; padding: .8rem 1rem; background: var(--raised); border-left: 2px solid var(--ink);
             overflow-wrap: anywhere; }
blockquote p { margin: 0 0 .5rem; }
blockquote p[lang=fi] { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.55; }
blockquote .ctx { color: var(--muted); }
.src { font-size: .8125rem; line-height: 1.45; color: var(--muted); margin: 0; }
blockquote pre, pre.source { white-space: pre-wrap; overflow-x: auto; font-size: .78rem; margin: 0 0 .5rem; }
pre.source mark { scroll-margin-top: 30vh; }

/* claim page */
.claimcard { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0 2rem; margin: 1.25rem 0 1.5rem;
             padding: 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); }
.claimcard div { padding: .7rem 0 .9rem; }
.claimcard dt { font-size: .8125rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.claimcard dd { margin: .2rem 0 0; font: 600 1.75rem/1.15 var(--serif); font-variant-numeric: tabular-nums; }
.claimcard dd small { display: block; font: 400 .8125rem/1.35 var(--sans); color: var(--muted); margin-top: .25rem; }
.status { display: inline-flex; align-items: baseline; gap: .45rem; font-weight: 600; }
.mark { display: inline-block; width: .7rem; height: .7rem; border: 2px solid var(--ink); border-radius: 50%; flex: none;
        transform: translateY(.02rem); }
.mark.counted { background: var(--ink); }
.mark.flagged { background: transparent; }
.mark.disputed, .mark.pending { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.mark.not-published, .mark.no-source { border-radius: 0; height: 0; border-width: 2px 0 0; width: .8rem; transform: translateY(-.25rem); }
.mark.excluded { border-radius: 0; border: 0; width: .8rem; height: .8rem;
                 background: linear-gradient(45deg, transparent 43%, var(--ink) 43%, var(--ink) 57%, transparent 57%),
                             linear-gradient(-45deg, transparent 43%, var(--ink) 43%, var(--ink) 57%, transparent 57%); }
.facts { display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; gap: .3rem 1.25rem; margin: 1rem 0; }
.facts div { display: contents; }
.facts dt { color: var(--muted); font-size: .9375rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: .5rem; } }
.attempt { border-top: 1px solid var(--line); padding-top: .25rem; }
.attempt p { margin: .3rem 0; }

/* readers' feedback (feedback.html): one plain form, no script. The browser's own radio buttons, a full-width text
   box, a button in ink like the quiz's chosen answer. The field named "website" is a trap for robots: off screen for
   people, labelled "leave empty" for screen readers, out of the tab order. */
.fb { margin: 1.5rem 0 0; }
.fb fieldset { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }
.fb legend { font: 600 1.0625rem/1.3 var(--sans); padding: 0; margin-bottom: .35rem; }
.fb .opt { display: flex; align-items: center; gap: .6rem; }
.fb .opt input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--ink); }
.fb .opt label { flex: 1; padding: .35rem 0; cursor: pointer; }
.fb .field > label { display: block; font: 600 1.0625rem/1.3 var(--sans); margin-bottom: .4rem; }
.fb textarea { display: block; width: 100%; min-height: 11rem; padding: .6rem .75rem; resize: vertical; font: inherit;
               color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 3px; }
.fb .field .note { margin: .35rem 0 0; }
.fb button { font: 600 1rem/1.2 var(--sans); padding: .65rem 1.5rem; color: var(--paper); background: var(--ink);
             border: 0; border-radius: 2rem; cursor: pointer; }
.fb button:hover { background: var(--accent); }
.fb .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fbmsg { margin: 1.25rem 0; }
.fbmsg blockquote { margin: .4rem 0; }
.fbtext { white-space: pre-wrap; overflow-wrap: anywhere; }

/* image slot, for the owner's own photographs (unused until they exist) */
figure.photo { margin: 2rem 0; max-width: var(--wide); }
figure.photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--raised); }
figure.photo figcaption { font-size: .8125rem; color: var(--muted); margin-top: .4rem; }

@media print { header.site nav, footer { display: none; } body { font-size: 10.5pt; } a { color: inherit; } }
/* series pages: the survey's season under the forecast; a gutter before the review column; quoted lines fold */
.survey td.rv, .survey th.rv { padding-left: 1.5rem; white-space: nowrap; }
.survey .when { display: block; font-size: .75rem; color: var(--muted); }
.survey details { margin: 0 0 .3rem; }
/* each summary a 44 px target (review 2026-11-28, point 3) */
.survey summary { font-size: .8125rem; color: var(--accent); cursor: pointer; min-height: 44px; padding: .7rem 0;
                  box-sizing: border-box; }
/* a series page's figures link to the first source line inside their year's details (questions.sources_id): a browser
   that opens a details holding the target opens it; either way the details is marked */
.survey details:target, .survey details:has(:target) { background: var(--raised); border-left: 3px solid var(--accent);
                                                         padding: 0 .6rem .3rem; }
.survey details :target, .survey details:target { scroll-margin-top: 4rem; }
.fullchart svg { max-width: 32rem; }
@media (max-width: 40rem) {
  .survey thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .survey, .survey tbody, .survey tr.lines, .survey tr.lines td { display: block; }
  .survey tr[id] { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .2rem 1.25rem; padding-top: .6rem; }
  .survey tr[id] td, .survey tr[id] td.n { display: block; border: 0; padding: 0; text-align: left; }
  .survey tr[id] td:first-child { flex-basis: 100%; font-weight: 600; }
  .survey tr[id] td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .survey tr.lines td { padding: .3rem 0 .6rem; }
}
/* the spending table on a phone: the four figures of every main title in the same columns (GUI round 2026-11-30;
   as flex items their places moved with the width of each figure) */
@media (max-width: 40rem) {
  .survey.spend:not(.years) tr[id] { display: grid; grid-template-columns: 4rem 6.5rem 3.75rem minmax(0, 1fr); gap: .2rem .5rem; }
  .survey.spend:not(.years) tr[id] td:first-child { grid-column: 1 / -1; }
}
/* copy pass 2026-11-25: key figures on a card (number in serif, label above, qualifier below), definitions as a
   list, the tax card's three largest misses as a small table */
.ktiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; margin: .4rem 0 .6rem; padding: 0; }
.ktiles div { border-top: 1px solid var(--line); padding: .45rem 0 .2rem; }
.ktiles dt { font-size: .8125rem; line-height: 1.3; color: var(--muted); min-height: 2.15rem; }
.ktiles dd { margin: .15rem 0 0; font: 600 1.6rem/1.1 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ktiles dd.qual { font: 400 .8125rem/1.3 var(--sans); color: var(--muted); white-space: normal; }
.ktiles dd a { text-decoration-style: dotted; text-decoration-thickness: 1px; text-underline-offset: .22em; }
/* four tiles on a phone: two by two, not three and one (GUI round 2026-11-30) */
@media (max-width: 40rem) { .ktiles:has(div:nth-child(4)):not(:has(div:nth-child(5))) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 24rem) { .ktiles { gap: 0 .6rem; } .ktiles dd { font-size: 1.35rem; } }
.defs { margin: .6rem 0; font-size: .9375rem; }
.defs div { display: grid; grid-template-columns: minmax(7rem, 14rem) 1fr; gap: 0 1rem; padding: .25rem 0;
            border-bottom: 1px solid var(--line); }
.defs dt { font-weight: 600; }
.defs dd { margin: 0; }
@media (max-width: 30rem) { .defs div { grid-template-columns: 1fr; } }
.held div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0 1rem; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.held dt { font-weight: 600; }
.held dd { margin: 0; }
table.misses { font-size: .875rem; margin: .4rem 0 .6rem; }
table.misses caption { font-size: .8125rem; color: var(--muted); padding-bottom: .25rem; }
table.misses th, table.misses td { padding: .3rem .5rem .3rem 0; }
table.misses td.n, table.misses th.n { padding-left: .5rem; padding-right: 0; }
table.misses .fi { display: block; font-size: .75rem; color: var(--muted); }
/* index front and two languages (docs/DESIGN.md, 2026-11-25): the twin-language link in the header; the front's
   table of the latest year compared, one row per subject, restacked as blocks on a phone like the record; the list
   of sections */
.latest th[scope=row] { font-size: 1rem; color: var(--ink); font-weight: 600; }
.latest th[scope=row] .u { display: block; font-size: .8125rem; font-weight: 400; color: var(--muted); }
.latest td.n { font-size: 1.0625rem; }
.latest td.m a { text-decoration-thickness: .05em; }
.latest td.m, .latest th.m { padding-left: 1.25rem; }
.latest th.m .u { display: block; font-weight: 400; }
.latest td.none { color: var(--muted); }
.latest .sub { display: block; font-size: .8125rem; white-space: normal; margin-top: .1rem; }
@media (max-width: 40rem) {
  .latest, .latest tbody, .latest tr, .latest th, .latest td { display: block; }
  .latest thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .latest tr { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .2rem 1.1rem; padding: .7rem 0;
               border-bottom: 1px solid var(--line); }
  .latest th, .latest td, .latest td.n, .latest td.m { border: 0; padding: 0; text-align: left; }
  .latest th[scope=row] { flex-basis: 100%; }
  .latest th[scope=row] .u { display: inline; margin-left: .4rem; }
  .latest td.m { font-size: .9375rem; flex: 1 1 0; min-width: 6.5rem; }
  .latest td.r { flex: 1 1 0; min-width: 9rem; }
  .latest td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
}
/* the front's "what is forecast" table on a phone (backlog 70): the header once, then per subject its name and one
   line of forecast, range and usual miss */
@media (max-width: 40rem) {
  .ahead thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .ahead thead tr, .ahead tbody tr { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); column-gap: .75rem;
                                     align-items: baseline; }
  .ahead.y thead tr, .ahead.y tbody tr { grid-template-columns: 3rem 5.25rem minmax(0, 1fr); }
  .ahead thead tr { padding: 0 0 .3rem; border-bottom: 1px solid var(--ink); }
  .ahead thead th { border: 0; padding: 0; text-align: left; }
  .ahead thead th:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ahead tbody tr { padding: .5rem 0; }
  .ahead tbody th[scope=row] { grid-column: 1 / -1; }
  .ahead td[data-label]::before { content: none; }
  .ahead td.r { min-width: 0; white-space: normal; }
  .ahead .sub { display: inline-block; white-space: nowrap; }
}
.sections { margin: .75rem 0; }
@media (min-width: 52rem) {
  main > .sections { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
  .sections div:nth-child(2) { border-top: 1px solid var(--line); }
}
h1.finding:first-child { margin-top: 1.75rem; }
.sections div { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.sections div:first-child { border-top: 1px solid var(--line); }
.sections dt { font-weight: 600; }
.sections dd { margin: .1rem 0 0; color: var(--muted); }
main > h2#latest, main > h2#ahead, main > h2#week, main > h1.finding ~ h2#news { margin-top: 2.25rem; }

/* front: coming up (docs/DESIGN.md, 2026-11-25) */
/* the day or the month in a column of its own, the topic's icon before the line; on a phone the day above its line */
.coming, .soon { list-style: none; padding: 0; margin: .25rem 0 0; }
.coming li, .soon li { padding: .6rem 0; border-bottom: 1px solid var(--line); display: grid;
                       grid-template-columns: 6rem minmax(0, 1fr); gap: .1rem .9rem; line-height: 1.5; }
.soon li { grid-template-columns: 8.5rem minmax(0, 1fr); }
.coming b, .soon b { font-weight: 600; font-size: .875rem; font-variant-numeric: tabular-nums; padding-top: .12rem; }
svg.ic { stroke-width: 3.4; }          /* the topic icons (site/marks.py), drawn on a 48 grid */
.coming li svg.ic, .soon li svg.ic { width: 1.15rem; height: 1.15rem; color: var(--accent); vertical-align: -.22rem;
                                     margin-right: .4rem; }
@media (max-width: 40rem) {
  .coming li, .soon li { grid-template-columns: minmax(0, 1fr); }
  .coming b, .soon b { font-size: .8125rem; color: var(--muted); padding: 0; }
}
main > h2#coming { margin-top: 2.25rem; }

/* guess first: a quiz without script (docs/PLAN.md, "Games"); the checked radio reveals its verdict and the answer */
.guess { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 1.1rem 0 1.2rem; min-width: 0; position: relative; }
.guess legend { font: 600 1.1875rem/1.3 var(--serif); padding: 0; float: left; width: 100%; margin-bottom: .6rem; }
.guess input { position: absolute; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; scroll-margin-top: 8rem; }
.guess label { display: inline-block; clear: left; margin: 0 .5rem .5rem 0; padding: .45rem .9rem; border: 1.5px solid var(--ink);
  border-radius: 2rem; cursor: pointer; font-variant-numeric: tabular-nums; }
.guess input:focus-visible + label { outline: 3px solid var(--link); outline-offset: 2px; }
.guess .verdict { display: none; font-weight: 600; margin-left: .35rem; }
.guess input:checked + label { background: var(--ink); color: var(--paper); }
.guess input:checked + label .verdict { display: inline; }
.guess .answer { display: none; margin: .4rem 0 0; }
.guess input:checked ~ .answer { display: block; animation: reveal .35s ease-out; }
/* a link to an option (the front's pills: guess.html#g-debt-2) chooses it: the option the address names is shown
   as chosen with its verdict and the answer, as a checked one; once the reader checks an option, that one rules */
.guess input:target + label { background: var(--ink); color: var(--paper); }
.guess input:target + label .verdict { display: inline; }
.guess input:target ~ .answer { display: block; animation: reveal .35s ease-out; }
.guess:has(input:checked) input:target:not(:checked) + label { background: none; color: inherit; }
.guess:has(input:checked) input:target:not(:checked) + label .verdict { display: none; }
@keyframes reveal { from { opacity: 0; transform: translateY(.4rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .guess input:checked ~ .answer, .guess input:target ~ .answer { animation: none; } }

/* state spending (site/spending.py): the main titles as one stacked bar, 100 % wide, one hue (ink) in two alternating
   tints with a 2 px surface gap; direct labels on the largest five hang from leaders below it, in ink with a surface
   halo; under 600 px the largest four keep theirs and one label gives the rest together. In the guess answer
   the bar grows in. */
main > .stackfig { max-width: none; }
.stackfig { margin: .9rem 0 .25rem; }
svg.stack { display: block; width: 100%; height: var(--h); overflow: visible; }
.stack .seg { stroke: var(--paper); stroke-width: 2px; }
.stack .seg.t0 { fill: var(--ink); }
.stack .seg.t1 { fill: color-mix(in srgb, var(--ink) 55%, var(--paper)); }
.stack a:hover .seg, .stack a:focus-visible .seg { fill: var(--accent); }
.stack a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.spend .when { font-weight: 400; }
.stack .lead { stroke: var(--muted); stroke-width: 1px; }
.stack .lab { fill: var(--ink); font: 500 13px var(--sans); transform-box: fill-box; paint-order: stroke;
              stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.stack .narrow { display: none; }
@media (max-width: 40rem) { .stack .lab { font-size: 12px; } }
@media (max-width: 599.98px) { svg.stack { height: var(--hn); } .stack .wide { display: none; } .stack .narrow { display: inline; } }
.guess .answer svg.stack { margin: .8rem 0 .2rem; }
.guess input:checked ~ .answer svg.stack .segs { animation: grow .7s ease-out both; transform-origin: 0 0; }
.guess input:checked ~ .answer svg.stack .labs { animation: fade .3s .6s ease-out both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .guess input:checked ~ .answer svg.stack .segs, .guess input:checked ~ .answer svg.stack .labs { animation: none; }
}

/* front: key measures, a "radiator" of monthly official series (docs/DESIGN.md, 2026-11-25) */
main > .measures { max-width: none; }
main > h2#measures { margin-top: 2.25rem; }
.measures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: .75rem 0 .75rem; padding: 0; }
.measures div { background: var(--raised); border-radius: 14px; padding: .85rem 1rem 1rem; min-width: 0; }
.measures dt { font-size: .8125rem; line-height: 1.3; color: var(--muted); }
.measures dd { margin: 0; }
.measures .mv { font: 600 1.375rem/1.15 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; margin-top: .1rem; }
.measures .mv a { text-decoration-style: dotted; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.measures .mm, .measures .mc, .measures .mf { font-size: .8125rem; line-height: 1.35; color: var(--muted);
                                              font-variant-numeric: tabular-nums; }
.measures .mf { margin-top: .3rem; }
.measures .sp { margin-top: .4rem; color: var(--ink); }
.measures svg.spark { display: block; width: 100%; max-width: 12rem; height: auto; overflow: visible; }
@media (min-width: 40rem) {
  .measures.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .measures.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 24rem) { .measures { gap: .6rem; } .measures div { padding: .75rem .8rem .85rem; }
                            .measures .mv { font-size: 1.25rem; } }
/* money pages (backlog 71): one header row, Year | Promised | Happened | Difference, the page's own word as a small
   second line; budget.html folds each year under a one-line summary of its totals, the newest open */
th .u { display: block; font-size: .75rem; font-weight: 400; }
main > details.year { max-width: none; border-top: 1px solid var(--line); }
details.year > summary { cursor: pointer; padding: .6rem 0; font-weight: 600; font-variant-numeric: tabular-nums; }
details.year > summary:hover { color: var(--accent); }
details.year:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 1rem; }

/* Regions: links to each entity's heading. */
.jump { list-style: none; padding: 0; margin: 1rem 0 0; font-size: .9375rem; line-height: 1.9; }
.jump li { display: inline-block; white-space: nowrap; margin-right: 1rem; }

/* the official Finnish name under an English entity heading (regions, English page) */
h2 > .u { display: block; font: 400 .875rem/1.4 var(--sans); color: var(--muted); margin-top: .15rem; }

/* visitor counts (stats.html, the private copy only; site/stats_page.py): bars drawn as the coverage page's, in the
   neutral data tint, each column on its own scale; the pages list as rows that open (<details>), a grid on a wide
   screen with one header line, each figure labelled under the page name on a phone */
.mx td.barcell { width: 65%; }
.mxdays td.barcell { width: 50%; }
.mx th[scope=row], .mxlist th[scope=row] { font-weight: 400; }
.mxdays th[scope=row], .mxfb th[scope=row] { white-space: nowrap; }
.mxbar { display: flex; align-items: center; gap: .4rem; }
.mxbar .bar { flex: none; }
.mxtop { margin: .5rem 0 1rem; }
.mxhd, .mxpage > summary { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 5.5rem); column-gap: .75rem;
                           align-items: baseline; }
.mxhd { font-size: .8125rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--ink); padding: .3rem 0; }
.mxhd span + span, .mxpage .c { text-align: right; }
.mxpage { border-bottom: 1px solid var(--line); }
.mxpage > summary { cursor: pointer; padding: .45rem 0; list-style: none; font-variant-numeric: tabular-nums; }
.mxpage > summary::-webkit-details-marker { display: none; }
.mxpage > summary:hover .pg { color: var(--accent); }
.mxpage .pg { overflow-wrap: anywhere; }
.mxpage .pg::before { content: "▸"; display: inline-block; width: 1.1rem; color: var(--muted); }
.mxpage[open] .pg::before { content: "▾"; }
.mxpage .l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mxin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 2rem; padding: .2rem 0 1rem 1.1rem; }
.mxin table { font-size: .875rem; margin: .4rem 0; }
.mxin caption, .mxquiz caption { padding-bottom: .2rem; }
.mxin .mxlist caption { font-weight: 600; font-size: .8125rem; color: var(--muted); }
.mxin p.note { font-size: .875rem; margin: .2rem 0 .5rem; }
.mxlist th, .mxlist td { padding: .25rem .75rem .25rem 0; }
.mxlist td.n, .mxlist th.n { padding-left: .75rem; padding-right: 0; }
.mxquiz td.n { padding-left: .5rem; }
.mxfb td.n, .mxfb th.n { padding-right: .9rem; }
@media (max-width: 40rem) {
  .mxhd { display: none; }
  .mxpage > summary { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: .15rem; }
  .mxpage .pg { grid-column: 1 / -1; font-weight: 600; }
  .mxpage .c { text-align: left; }
  .mxpage .l { position: static; display: block; width: auto; height: auto; overflow: visible; clip-path: none;
               white-space: normal; font-size: .75rem; color: var(--muted); }
  .mxin { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
}

/* ---- the front (docs/look-plan.md, B and D): label, light headline with its figure in accent, the forecast on its
   range, bands, cards and pills. Colours only through the tokens at the top. ---- */
.kicker { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
          margin: 2rem 0 .7rem; }
.kicker + h1.finding { margin-top: 0; }
h1.finding { font-weight: 400; letter-spacing: -.015em; }
h1.finding em { font-style: italic; color: var(--accent); }
/* the scale under the headline spans the text column (viewBox 640 wide: font sizes are in its units, larger on a
   phone where the drawing is shrunk to about 0.56) */
main > figure.hero { margin: 1.5rem 0 .5rem; }
figure.hero svg { display: block; width: 100%; height: auto; overflow: visible; }
figure.hero figcaption { margin-top: .15rem; font-size: .875rem; }
.scale .ax, .pair .ax { stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.scale .rg { fill: var(--wash); stroke: var(--accent); stroke-width: 2; }
.scale .fc { fill: var(--paper); stroke: var(--ink); stroke-width: 3.5; }
.scale text, .pair text { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.scale .lab { fill: var(--ink); font-size: 18px; font-weight: 600; }
.scale .end { fill: var(--ink); font-size: 17px; }
.scale .tk { fill: var(--muted); font-size: 15px; }
@media (max-width: 40rem) {
  .scale .lab { font-size: 26px; } .scale .end { font-size: 24px; } .scale .tk { font-size: 22px; }
  .scale .fc { stroke-width: 4.5; }
}

/* bands: a section on a wash, the page's rhythm; --bg is the band's own colour for marks drawn on it */
main > .band, main > .cards, main > .folds, main > .duo { max-width: none; }
.band { --bg: var(--band-cool); background: var(--bg); border-radius: 18px; padding: 1.4rem 1.5rem 1.5rem;
        margin: 2.75rem 0; }
.band.warm { --bg: var(--band-warm); }
.band > * { max-width: var(--text); }
.band h2 { margin: 0 0 .35rem; padding: 0; border: 0; font-size: 1.5rem; }
.band .note { margin: 0; }
@media (max-width: 40rem) { .band { padding: 1.1rem 1rem 1.2rem; border-radius: 14px; } }
.band + h2 { border-top: 0; padding-top: 0; }

/* ring-to-dot rows ("Did it hold?"): the series chart's marks, ring in muted ink, dot in ink; a plain joining line */
.pit { list-style: none; padding: 0; margin: .9rem 0 .25rem; }
.band > .pit { max-width: 46rem; }
.pit li { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: .1rem 1.25rem; align-items: center;
          padding: .45rem 0; border-top: 1px solid var(--line); }
.pit li:last-child { border-bottom: 1px solid var(--line); }
.pit .pn { margin: 0; font-weight: 600; line-height: 1.3; }
.pit .yr { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.pit svg { display: block; width: 100%; max-width: 24rem; height: auto; overflow: visible; }
@media (max-width: 40rem) { .pit li { grid-template-columns: minmax(0, 1fr); padding: .6rem 0 .3rem; } }
.pair .jn { stroke: var(--muted); stroke-width: 2.5; }
.pair .fc { fill: var(--bg, var(--paper)); stroke: var(--muted); stroke-width: 2.25; }
.pair .oc { fill: var(--ink); stroke: var(--bg, var(--paper)); stroke-width: 1.5; }
.pair text { font-size: 12.5px; }
.pair .lf { fill: var(--muted); }
.pair .lo { fill: var(--ink); font-weight: 600; }

/* pills: onward links and the quiz's answers, each a 44 px target */
.pills { list-style: none; padding: 0; margin: 1rem 0 .2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
p.pills { margin-top: 1.1rem; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.15rem; border: 1.5px solid var(--accent);
        border-radius: 999px; color: var(--accent); text-decoration: none; font-weight: 500;
        font-variant-numeric: tabular-nums; }
.pill:hover { background: var(--accent); color: var(--bg, var(--paper)); }
.band.warm .pill { background: var(--paper); }       /* on the warm wash: paper, so it reads as a link, not disabled */
.band.warm .pill:hover { background: var(--accent); color: var(--paper); }
.band .q { font: 400 1.375rem/1.3 var(--serif); margin: .35rem 0 0; }
.band .pills + .note { margin-top: .4rem; }

/* the forecast cards: three across on a wide screen, two on a tablet, one on a phone; no shadows */
.cards { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
@media (min-width: 34rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 52rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--raised); border-radius: 14px; padding: 1rem 1.1rem 1.05rem; display: flex; flex-direction: column;
        gap: .55rem; min-width: 0; }
.card p { margin: 0; }
.card .ct { display: flex; align-items: center; gap: .7rem; font-weight: 600; line-height: 1.25; }
.card .ct .u { display: block; font-weight: 400; font-size: .8125rem; color: var(--muted); margin-top: .1rem; }
.icb { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--band-cool); color: var(--accent);
       display: inline-flex; align-items: center; justify-content: center; }
.icb svg { width: 1.35rem; height: 1.35rem; }
.card .cv { font: 400 2.1rem/1.05 var(--serif); font-variant-numeric: tabular-nums; margin-top: .15rem; }
.card .cm { font-size: .8125rem; }
/* the range: no track, only the band, centred, at the width the build gives (one scale for all cards but tax
   revenue's, which is off it: a fixed width, dashed); the ring at its middle; the two end values just outside the
   band's own ends, on one baseline. The side padding keeps room for them at the widest band. */
.mini { display: block; padding: 0 2.9rem; font-size: .8125rem; line-height: 1; color: var(--muted);
        font-variant-numeric: tabular-nums; }
.mini .bar { display: block; position: relative; height: 1.1rem; background: none; border-radius: 0; }
.mini .bar b { position: absolute; left: 50%; top: 50%; height: .75rem; min-width: 1.2rem; transform: translate(-50%, -50%);
               box-sizing: border-box; border-radius: 999px; background: var(--band-cool); border: 1.5px solid var(--accent); }
.mini .bar b.off { width: 45%; background: none; border-style: dashed; border-color: var(--muted); }
.mini .bar i { position: absolute; left: 50%; top: 50%; width: .95rem; height: .95rem; transform: translate(-50%, -50%);
               border-radius: 50%; background: var(--raised); border: 2px solid var(--muted); }
.mini .lo, .mini .hi { position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; font-weight: 400; }
.mini .lo { right: 100%; margin-right: .4rem; }
.mini .hi { left: 100%; margin-left: .4rem; }
.cards-key { font-size: .8125rem; margin: -.25rem 0 .5rem; }
/* tap targets on a phone without changing the lines: the links grow by padding that negative margins take back
   (a card's name about 44 px, its figure 35, "usual miss" and the measures' "a year ago" figures about 30) */
.card .ct a { display: inline-block; padding: .75rem 0; margin: -.75rem 0; }
.card .ct .u { pointer-events: none; }
.card .cv a.fig { display: inline-block; }
.card .cm a, .measures .mf a { display: inline-block; padding: .4rem 0; margin: -.4rem 0; }
.ahead .sub { padding-block: .4rem; margin-block: -.3rem -.4rem; }

/* folds: the table and the method note under the cards, one tap away */
.folds { margin: .9rem 0 0; border-top: 1px solid var(--line); }
.folds details { border-bottom: 1px solid var(--line); }
.folds summary { cursor: pointer; display: flex; align-items: center; min-height: 44px; font-weight: 600;
                 color: var(--accent); list-style: none; }
.folds summary::-webkit-details-marker { display: none; }
.folds summary::before { content: "+"; display: inline-block; width: 1.2rem; font-weight: 400; color: var(--muted); }
.folds details[open] summary::before { content: "\2212"; }
.folds details > .note { max-width: var(--text); margin: 0 0 .9rem; }
.folds .scroll { margin-top: 0; }

/* "This week" beside "Coming up" from 60 rem */
.duo h2 { margin-top: 2rem; }
@media (min-width: 60rem) { .duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem;
                                   align-items: start; } }

/* ---- inner pages (docs/look-plan.md, block C): the label and the topic icon at the top, the newest year's figures,
   the strip of cabinets, the spending bar, the three steps and the small pages' illustration. Colours only through
   the tokens at the top, so both themes follow. ---- */
.kicker + h1, .kicker + .hic + h1 { margin-top: 0; }
/* the icon floats beside the h1, which keeps its own markup; the h1 avoids the float and is at least as tall */
.hic { float: left; width: 2.75rem; height: 2.75rem; margin: .1rem .8rem .25rem 0; border-radius: 50%;
       background: var(--band-cool); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.hic svg { width: 1.5rem; height: 1.5rem; }
.hic + h1 { display: flow-root; min-height: 2.9rem; }
.hic + h1 + * { clear: left; }

/* a series page's newest compared year: forecast by the chart's ring, outcome by its dot, then the difference */
.lpair { display: grid; grid-template-columns: repeat(3, max-content); gap: .4rem 2.5rem; margin: .5rem 0 .3rem;
         padding: 0; }
.lpair div { min-width: 0; }
.lpair dt { display: flex; align-items: center; gap: .4rem; font-size: .875rem; line-height: 1.3; color: var(--muted); }
.lpair dd { margin: 0; }
.lpair .v { font: 400 2.75rem/1.05 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap;
            margin-top: .2rem; letter-spacing: -.01em; }
.lpair .ld .v { color: var(--muted); }
.lpair .q { font-size: .8125rem; line-height: 1.3; color: var(--muted); margin-top: .15rem; }
svg.mk { flex: none; width: 1rem; height: 1rem; }
.mk .fc { fill: var(--paper); stroke: var(--muted); stroke-width: 2; }
.mk .oc { fill: var(--ink); }
.lmed { font-size: .9375rem; color: var(--muted); margin: .6rem 0 1.25rem; }
.lmed div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .4rem; }
.lmed dt::first-letter { text-transform: uppercase; }
.lmed dt::after { content: ":"; }
.lmed dd { margin: 0; }
.lmed dd:not(.qual) { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 40rem) {      /* a phone: the two figures side by side, the difference on one line under them */
  .lpair { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; row-gap: .6rem; }
  .lpair .v { font-size: 2.1rem; }
  .lpair .ld { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .45rem; }
  .lpair .ld .v { font-size: 1.25rem; margin: 0; }
}
.fullchart figcaption { margin-top: .5rem; font-size: .875rem; }

/* who governed when: names in ink on two neutral tints by turns, no party colour */
.govstrip { margin: 1.5rem 0 1rem; }
.govstrip figcaption { font: 600 .8125rem/1.3 var(--sans); letter-spacing: .07em; text-transform: uppercase;
                       color: var(--muted); margin-bottom: .35rem; }
.govstrip svg { display: block; width: 100%; max-width: 32rem; height: auto; }
/* two drawings of the strip: the wide canvas, and on a phone a narrower one where the same type is larger (about 16 px
   at 390 px, not 11). The one not displayed is not read out either. */
.govstrip svg.gn { display: none; }
@media (max-width: 40rem) { .govstrip svg.gw { display: none; } .govstrip svg.gn { display: block; } }
.govs .g0 { fill: color-mix(in srgb, var(--ink) 10%, var(--paper)); }
.govs .g1 { fill: color-mix(in srgb, var(--ink) 20%, var(--paper)); }
.govs text { fill: var(--ink); font: 500 20px var(--sans); }
.govs text.yr { fill: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.govs .yt { stroke: var(--line); stroke-width: 2; }
.govs .ld { stroke: var(--muted); stroke-width: 1.5; }

/* the spending bar: the six largest main titles in one blue by steps, interest in its own colour, the rest grey; the
   counties' part of main title 28 hatched. The bar stretches to the column (its rects only); the key under it. */
main > figure.moneybar { max-width: none; }
.moneybar { margin: 1rem 0 .75rem;
            --m0: color-mix(in srgb, var(--ink) 45%, var(--accent)); --m1: color-mix(in srgb, var(--ink) 14%, var(--accent));
            --m2: color-mix(in srgb, var(--accent) 94%, var(--paper)); --m3: color-mix(in srgb, var(--accent) 83%, var(--paper));
            --m4: color-mix(in srgb, var(--accent) 73%, var(--paper)); --m5: color-mix(in srgb, var(--accent) 62%, var(--paper));
            --mr: color-mix(in srgb, var(--muted) 69%, var(--paper)); }
/* light (GUI round 2026-11-30): the steps were tints down to 1.45:1 against the page. Now against #fbfaf6: m0 10.8,
   m1 8.4, m2 6.6, m3 5.1, m4 4.0, m5 3.1, interest 3.9, rest 3.1; each step about 1.28:1 from the next */
/* dark: the steps from lighter than the accent down to 3.1:1 against the page (review 2026-11-28, point 6). Against
   #14171c: m0 11.6, m1 8.9, m2 6.9, m3 5.3, m4 4.1, m5 3.1, interest 8.0, rest 3.4; each step 1.3:1 from the next */
@media (prefers-color-scheme: dark) {
  .moneybar { --m0: color-mix(in srgb, var(--ink) 51%, var(--accent)); --m1: var(--accent);
              --m2: color-mix(in srgb, var(--accent) 85%, var(--paper)); --m3: color-mix(in srgb, var(--accent) 72%, var(--paper));
              --m4: color-mix(in srgb, var(--accent) 60%, var(--paper)); --m5: color-mix(in srgb, var(--accent) 49%, var(--paper));
              --mr: color-mix(in srgb, var(--muted) 58%, var(--paper)); }
}
svg.sbar { display: block; width: 100%; height: 2.75rem; border-radius: 6px; }
.sbar .sg { stroke: var(--paper); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.sbar .b0 { fill: var(--m0); } .sbar .b1 { fill: var(--m1); } .sbar .b2 { fill: var(--m2); }
.sbar .b3 { fill: var(--m3); } .sbar .b4 { fill: var(--m4); } .sbar .b5 { fill: var(--m5); }
.sbar .int { fill: var(--interest); } .sbar .rest { fill: var(--mr); }
.sbar .hatch { pointer-events: none; }
.sbar pattern .hb { fill: none; }
.sbar pattern line { stroke: var(--paper); stroke-width: 5; opacity: .6; }
.skey { list-style: none; padding: 0; margin: .75rem 0 0; display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0 2rem; font-size: .9375rem; }
.skey li { display: grid; grid-template-columns: 1rem minmax(0, 1fr) auto; column-gap: .55rem; align-items: baseline;
           padding: .3rem 0; border-bottom: 1px solid var(--line); line-height: 1.35; }
.skey b, .skey .sub b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.skey .sub { grid-column: 2 / -1; display: grid; grid-template-columns: 1rem minmax(0, 1fr) auto; column-gap: .55rem;
             align-items: baseline; font-size: .8125rem; color: var(--muted); margin-top: .15rem; }
.skey .sub b { font-weight: 500; color: var(--ink); }
.skey .nm a { color: var(--ink); text-decoration-color: var(--line); }
.skey .nm a:hover { color: var(--accent); }
.kw { display: block; width: .9rem; height: .9rem; border-radius: 3px; transform: translateY(.12rem); }
.kw.b0 { background: var(--m0); } .kw.b1 { background: var(--m1); } .kw.b2 { background: var(--m2); }
.kw.b3 { background: var(--m3); } .kw.b4 { background: var(--m4); } .kw.b5 { background: var(--m5); }
.kw.int { background: var(--interest); } .kw.rest { background: var(--mr); }
.kw.hatch { background: repeating-linear-gradient(45deg, var(--m0) 0 3px, color-mix(in srgb, var(--paper) 60%, var(--m0)) 3px 6px); }

/* how the site works: three steps on a band, in a row on a wide screen and stacked on a phone */
.how3 { list-style: none; padding: 0; margin: .9rem 0 .1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .75rem; }
.band > .how3 { max-width: none; }
.how3 li { background: var(--paper); border-radius: 14px; padding: .9rem 1rem 1rem; min-width: 0; }
.how3 svg { display: block; width: 5.5rem; height: auto; margin: 0 0 .35rem; }
.how3 .ht { margin: 0; font-weight: 600; line-height: 1.3; }
.how3 .hl { margin: .25rem 0 0; font-size: .9375rem; line-height: 1.45; }
.how3 .fc { fill: var(--paper); stroke: var(--ink); stroke-width: 3.5; }
.how3 .oc { fill: var(--ink); }          /* an outcome in the text colour, as the charts draw it */
.how3 .jn { stroke: var(--muted); stroke-width: 3; stroke-dasharray: 1 7; stroke-linecap: round; }
@media (max-width: 40rem) {
  .how3 { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .how3 li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); column-gap: .9rem; align-items: center;
             padding: .75rem .9rem; }
  .how3 svg { grid-row: 1 / span 2; width: 4.5rem; margin: 0; }
}

/* the small pages' illustration (feedback thanks, not found): the study's hills, dotted path to a ring, solid to a dot */
main > figure.illus { max-width: 26rem; margin: 1.5rem 0; }
svg.hills { display: block; width: 100%; height: auto; }
.hills .h0 { fill: var(--band-cool); } .hills .h1 { fill: var(--band-warm); } .hills .h2 { fill: var(--raised); }
.hills .pf { fill: none; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 1 9; stroke-linecap: round; }
.hills .po { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.hills .fc { fill: var(--band-cool); stroke: var(--ink); stroke-width: 3.5; }
.hills .oc { fill: var(--accent); } .hills .st { fill: var(--ink); }

/* onward links at the end of the Economy page's cards as pills; the About page's sections as cards */
.qcard > p.more { margin: .9rem 0 .2rem; font-weight: 500; }
.qcard > p.more a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.15rem;
                    border: 1.5px solid var(--accent); border-radius: 999px; text-decoration: none; }
.qcard > p.more a:hover { background: var(--accent); color: var(--paper); }
main > .sections { display: grid; gap: .6rem; max-width: none; }
.sections div, .sections div:first-child, .sections div:nth-child(2) { border: 0; background: var(--raised);
  border-radius: 14px; padding: .75rem 1rem .85rem; }
@media (min-width: 52rem) { main > .sections { column-gap: .75rem; } }
/* copy pass f (B1-B3): a raw source row and the work notes fold under a summary that says what they hold; each
   summary a 44 px target; a claim page's work log sits apart at the foot of the page */
details.raw, details.log { margin: .2rem 0 .5rem; }
details.raw > summary, details.log > summary { cursor: pointer; color: var(--accent); font-size: .8125rem;
  min-height: 44px; padding: .7rem 0; box-sizing: border-box; }
details.raw > pre { margin-top: 0; }
main > details.log { max-width: var(--text); border-top: 1px solid var(--line); margin-top: 2rem; }
main > details.log > .src { overflow-wrap: anywhere; }
