/* AI Transition Report: every page body's own rules, linked after base.css (the chrome and the
   shared components). CSP style-src 'self': no inline styles anywhere.

   The old page bodies first, then each page restyled in milestone 16 in the order it landed,
   each under a heading comment; slice 4's page body components (.body .main .side .assess .cb
   .counts) stay here, after Home's block and before the realm pages', where they were: moved
   to base.css they would come before rules of the same specificity they override today (.side
   .fine after .home .fine and .economy-page .fine, .side h2 after .home h2). A new page appends
   its block at the end. */

/* ---- Page bodies ---- */

/* The control strip (pages/_controls.html) until each page moves to the filter bar. */
form.strip {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 10px 32px;
  background: var(--wash);
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.strip-group { display: flex; gap: 8px; align-items: center; border: 0; padding: 0; margin: 0; }
.strip-group legend { float: left; color: var(--muted); padding-right: 4px; }
.strip-group label { display: flex; gap: 4px; align-items: center; }
.strip label[for] { color: var(--muted); }
.strip select {
  font: inherit;
  font-size: 13px;
  padding: 6px 8px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fff;
}
.strip-status { margin-left: auto; color: var(--muted); font-size: 12px; }

/* Page */
.page { display: flex; flex-wrap: wrap; gap: 40px; padding: 24px 32px 40px; align-items: flex-start; }
.feed { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.feed-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.feed-head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.feed-updated { margin-left: auto; font-size: 12px; color: var(--muted); }
.empty { color: var(--muted); font-size: 14px; }

/* Story cards */
.story {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.story h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.story h3 a { text-decoration: none; }
.story-summary { margin: 6px 0 8px; font-size: 15px; line-height: 1.5; }
.story-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.tier { padding: 2px 7px; border-radius: 3px; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.tier-a { background: var(--ink); color: #fff; }
.tier-b { background: var(--muted); color: #fff; }
.tier-c { border: 1px solid var(--ink); }
.pill { border: 1px solid var(--rule); padding: 2px 9px; border-radius: 999px; }
.badge { padding: 2px 9px; border-radius: 999px; }
.badge-unreviewed { background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }
.badge-retracted { background: var(--ink-2); color: #fff; }
.story-tags { color: var(--muted); }
.our-view { margin: 0; font-size: 14px; line-height: 1.5; }
.our-view-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--accent-text);
  letter-spacing: 0.04em;
  margin-right: 6px;
}
.story-meta { font-size: 12px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.story-themes a { color: inherit; }
p.story-themes { font-size: 13px; color: var(--muted); }
.theme-list dt { font-weight: 600; margin-top: 8px; }
.theme-list dd { margin: 2px 0 0; }

.load-more {
  align-self: center;
  margin-top: 16px;
  font: inherit;
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
/* HTMX request indicator (htmx.config.includeIndicatorStyles is off under the CSP). */
.htmx-indicator { opacity: 0; transition: opacity 200ms ease-in; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }

/* Plain text pages */
.prose { max-width: 680px; font-size: 15px; line-height: 1.6; }
.prose h1 { font-size: 24px; }
/* A mono line of a text page breaks inside its column (ADR-0052, WB4). */
.prose .mono { overflow-wrap: anywhere; }

/* Buttons */
.button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
}

/* Account forms (sign-in, sign-up, codes, /account/) and the tips form. Every field a reader
   types in is drawn one way, whatever its type (ADR-0052, WB2). */
.form-stack { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin: 16px 0; }
.form-stack label { font-weight: 600; font-size: 14px; }
.form-stack input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]), .form-stack textarea {
  font: inherit;
  font-size: 15px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  width: 100%;
  max-width: 360px;
}
.form-check { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.form-check label { font-weight: 400; }
.errorlist { list-style: none; margin: 0; padding: 0; color: #9a3412; font-size: 14px; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.button-secondary { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.button-danger { background: #9a3412; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 16px 0; }
.form-row form { margin: 0; }
/* The one field typed into outside a stacked form (the name of a new API key, /account/). */
.form-row input[type="text"] { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 4px; flex: 0 1 240px; min-width: 0; }
/* A new API key, shown once on /account/: a read-only field no wider than its column (its 52
   characters made a phone scroll sideways: ADR-0052, the Close's review, RC2). */
.prose input.mono[readonly] { font-size: 13px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 4px; box-sizing: border-box; width: min(100%, 56ch); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 24px 0; }

/* Event page */
.event { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.event h1 { margin: 4px 0 0; font-size: 24px; }
.event h2 { font-size: 17px; margin: 16px 0 0; }
.retracted-note { background: var(--wash); padding: 8px 12px; border-left: 3px solid var(--ink-2); }
.quote { margin: 8px 0; padding: 0 0 0 16px; border-left: 3px solid var(--accent); }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.5; }
.quote-en, .quote figcaption { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; margin: 8px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.event-stories { font-size: 14px; line-height: 1.6; padding-left: 18px; margin: 0; }
.event-meta { font-size: 12px; color: var(--muted); }
.card-quote { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); font-style: italic; }
.quote-held { font-size: 13px; color: var(--muted); }
.figure-note { color: var(--muted); font-size: 13px; }

/* Controls, tiles and the trend chart (the old Home's, wireframe Main.html): the new Home keeps
   the button, the filter note, the trend and the tables; the tiles are the pages' not yet on the
   shared head. */
.strip-apply { font: inherit; font-size: 13px; padding: 5px 12px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; cursor: pointer; }
.feed-filter { font-size: 13px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { text-decoration: none; background: var(--wash); padding: 16px; border-radius: 6px; display: flex; flex-direction: column; gap: 4px; }
.tile-label, .tile-sub { font-size: 12px; color: var(--muted); }
.tile-value { font-size: 30px; font-weight: 500; }
.tile-value.long { font-size: 20px; }
a.tile-label { text-decoration: none; }
a.tile-label:hover, a.tile-label:focus-visible { text-decoration: underline; }
.tile-value.accent { color: var(--accent-text); }
a.tile-value { text-decoration: none; color: inherit; }
a.tile-value.accent { color: var(--accent-text); }
a.tile-value:hover, a.tile-value:focus-visible { text-decoration: underline; }
.tile-feed { font-size: 12px; color: var(--muted); }
.panel-box { border: 1px solid var(--rule); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.panel-note { font-size: 12px; color: var(--muted); margin: 0; }
.trend { display: block; width: 100%; height: auto; }
.trend .bar { fill: #c9c7c0; }
.trend .bar-now { fill: var(--accent); }
.trend .axis { stroke: var(--rule); }
.trend .tick { font-size: 9px; fill: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; }
.table-equivalent { font-size: 12px; }
.table-equivalent table { border-collapse: collapse; margin-top: 6px; }
.table-equivalent th, .table-equivalent td { text-align: left; padding: 2px 12px 2px 0; }
.country-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.country-bars li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 64px; gap: 10px; align-items: center; }
.country-bars li .mono { text-align: right; }
.country-bar { width: 100%; height: 8px; display: block; }
.country-bar rect { fill: var(--accent); }
.feed-count { font-size: 12px; color: var(--muted); }

/* Countries */
.countries { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.countries h1, .country-head h1 { margin: 0; font-size: 26px; }
.lede { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 760px; }
.country-tables { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.data-table { border-collapse: collapse; font-size: 13px; }
.data-table caption { text-align: left; font-weight: 600; padding-bottom: 6px; }
.data-table th, .data-table td { text-align: left; padding: 6px 14px 6px 0; border-bottom: 1px solid var(--rule); }
.data-table .num { text-align: right; }
.source-note { color: var(--muted); font-size: 12px; }
.country-head { display: flex; flex-direction: column; gap: 4px; }
.tiles-wide { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.country-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.country-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.country-side { flex: 1 1 320px; max-width: 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.country-pair { display: flex; flex-wrap: wrap; gap: 16px; }
.country-pair > .panel-box { flex: 1 1 300px; min-width: 0; }
.panel-box h2 { margin: 0; font-size: 14px; font-weight: 600; }
.trend .index-line { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 4; }
.legend { font-size: 12px; color: var(--muted); margin: 0; display: flex; gap: 8px; align-items: center; }
.key { display: inline-block; width: 12px; height: 8px; }
.key-bar { background: var(--accent); }
.key-line { border-top: 2px dashed var(--muted); height: 0; margin-left: 10px; }
.forecast-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.forecast { color: var(--forecast); }
.country-side .story { padding: 10px 0; }
.country-side .story h3 { font-size: 15px; }

/* Forecast vs actual */
.forecasts { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.forecast-chart .grid { stroke: var(--rule); stroke-width: 1; }
.forecast-chart .actual-line { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.forecast-chart .forecast-line { stroke: var(--forecast); stroke-width: 2; stroke-dasharray: 6 4; }
.forecast-chart .forecast-label { fill: var(--forecast); }
.apart-head { margin: 12px 0 0; font-size: 13px; font-weight: 600; }
.forecast-chart .today { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.strip-note { font-size: 13px; color: var(--muted); }

/* Drill-through (ADR-0016) and Story pages */
.event-list { flex: 1 1 100%; min-width: 0; max-width: 860px; display: flex; flex-direction: column; gap: 12px; }
.event-list h1 { margin: 0; font-size: 26px; }
.list-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0; }
.head-links { margin-left: auto; font-size: 13px; }
.event-rows { list-style: none; margin: 0; padding: 0; }
.pager { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--muted); }
.panel-links { margin: 0; font-size: 13px; }
.country-head .head-links { margin-left: auto; }

/* Policy register (FR-V5) */
.policy-register { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.stance-counts { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.stance-counts .mono { font-size: 20px; font-weight: 500; }
.register-filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.register-filters select { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.register td { vertical-align: top; }

/* Methodology (FR-V7) */
.methodology { max-width: 760px; }
.methodology h2 { margin-top: 28px; scroll-margin-top: 16px; }
.methodology .toc { font-size: 13px; line-height: 1.8; color: var(--muted); }
.methodology .facts dt { font-weight: 600; }
.source-list p, .industry-list { font-size: 13px; line-height: 1.6; }

/* Feed search (FR-V2) */
.feed-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; }
.feed-search input[type="search"] { flex: 1 1 220px; font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 4px; }
.feed-search select { font: inherit; font-size: 13px; padding: 5px 6px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
/* Threads of developments (ADR-0031 decision 7) */
.thread-steps { font-size: 14px; line-height: 1.6; padding-left: 18px; margin: 0 0 8px; }
.thread-depth-1 { margin-left: 16px; }
.thread-depth-2 { margin-left: 32px; }
.thread-depth-3, .thread-depth-4, .thread-depth-5 { margin-left: 48px; }
.thread-note { font-size: 13px; color: var(--muted); margin: 2px 0 0; }

/* Economy box (milestone 12 slice 1, ADR-0039) */
.economy-previous { color: var(--muted); }
/* The Transition Activity Map, the world map (ADR-0037): binned classes, never an inline colour (CSP). */
.faultline-page { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.faultline-page h1 { margin: 0; font-size: 26px; }
.faultline { display: flex; flex-direction: column; gap: 12px; }
.fl-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.fl-nav a[aria-current] { font-weight: 600; color: var(--accent-text); text-decoration: none; }
.fl-scrubber { font-size: 12px; }
.fl-heading { margin: 0; font-size: 16px; font-weight: 600; }
.fl-subhead { margin: 0; font-size: 14px; font-weight: 600; }
.fl-map { display: block; width: 100%; height: auto; background: #fbfaf7; }
.fl-map path, .fl-map .fl-dot { stroke: #fff; stroke-width: 0.4; stroke-linejoin: round; }
.fl-map .fl-dot { stroke: var(--ink-2); stroke-width: 0.6; }
.fl-map a:hover path, .fl-map a:hover .fl-dot { stroke: var(--ink); stroke-width: 1; }
.fl-0, .fl-zero { fill: #dedcd5; background: #dedcd5; }
.fl-1 { fill: #fbe3c2; background: #fbe3c2; }
.fl-2 { fill: #f5bf80; background: #f5bf80; }
.fl-3 { fill: #e8934a; background: #e8934a; }
.fl-4 { fill: #c4651a; background: #c4651a; }
.fl-5 { fill: #7f3606; background: #7f3606; }
.fl-none { fill: #efeee9; background: #efeee9; }
.fl-few { fill: url(#fl-hatch); background: repeating-linear-gradient(45deg, #efeee9 0 2px, #c9c7c0 2px 3px); }
.fl-hatch-ground { fill: #efeee9; }
.fl-hatch-line { stroke: #b9b7b0; stroke-width: 1.2; }
.fl-unlinked { fill: #efeee9; }
.fl-epicentre { fill: rgba(26, 26, 26, 0.18); stroke: var(--ink); stroke-width: 0.8; }
.fl-map a:hover .fl-epicentre { fill: rgba(26, 26, 26, 0.35); }
.fl-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.fl-legend li { display: flex; align-items: center; gap: 6px; }
.fl-key { display: inline-block; width: 14px; height: 10px; border: 1px solid var(--rule); }
.fl-key-epicentre { border-radius: 50%; width: 10px; background: rgba(26, 26, 26, 0.18); border-color: var(--ink); }

/* Transition Activity (ADR-0052 decision 8), a count: the words shared by the country page's
   block and Home's card; /activity/'s own rules are with the other pages' below. */
.ix-value { font-size: 20px; font-weight: 600; }
.ix-note { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.ix-sub-label { font-weight: 600; }

/* Our pieces (ADR-0044): /reports/, a report or an article. A measure of about
   70 characters; the body holds only p, h2, ul, li and a. */
.pieces { flex: 1 1 100%; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.pieces h1 { margin: 0; font-size: 26px; }
.piece-filter { display: flex; gap: 16px; font-size: 14px; }
.piece-filter a[aria-current] { font-weight: 600; text-decoration: none; }
.piece-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.piece-line { display: flex; flex-direction: column; gap: 2px; }
.piece-title { font-size: 18px; font-weight: 600; text-decoration: none; }
.piece-line-standfirst { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.piece-kind { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); margin: 0; }
.piece { flex: 1 1 100%; min-width: 0; max-width: 70ch; font-size: 16px; line-height: 1.65; }
.piece h1 { font-size: 30px; line-height: 1.2; margin: 4px 0 8px; }
.piece-standfirst { font-size: 19px; line-height: 1.45; color: var(--ink-2); margin: 0 0 8px; }
.piece-byline { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.piece-body h2 { font-size: 20px; margin: 28px 0 6px; }
.piece-body p { margin: 0 0 14px; }
.piece-body ul { margin: 0 0 14px; padding-left: 20px; }
.piece-body li { margin: 0 0 6px; }
.piece-withdrawn { background: var(--wash); padding: 10px 14px; border-left: 3px solid var(--ink-2); }
.piece-preview { background: var(--wash); padding: 8px 12px; border-left: 3px solid var(--accent); font-size: 14px; }
.piece-figures, .piece-behind { border-top: 1px solid var(--rule); margin-top: 28px; padding-top: 4px; }
.piece-figures h2, .piece-behind h2 { font-size: 17px; }
.piece-figures details { font-size: 13px; margin: 4px 0 0; }
.piece-asof { font-size: 12px; color: var(--muted); }
.piece-events { font-size: 14px; line-height: 1.5; padding-left: 18px; margin: 4px 0 0; }
.piece-events li { margin: 0 0 4px; }
.piece-foot { font-size: 13px; color: var(--muted); margin-top: 28px; }

/* Embeds (pages/embeds.py): framed on other sites, no chrome; and the code to paste. */
body.embed { background: #fff; padding: 0; }
.embed-tile { margin: 0; min-height: 100vh; }
.embed-note { font-size: 12px; color: var(--muted); margin: 0; }
.embed-map { padding: 8px; gap: 8px; }
.embed-heading { font-size: 14px; font-weight: 600; margin: 0; }
.embed-code { font-size: 13px; color: var(--muted); }
.embed-code summary { cursor: pointer; }
.embed-code label { display: block; margin: 6px 0 4px; }
.embed-snippet { width: 100%; font-size: 12px; padding: 6px; border: 1px solid var(--rule); border-radius: 4px; background: var(--wash); color: var(--ink); resize: vertical; }

/* ---- Economy overview (milestone 16 slice 3) ---- */
/* /economy/ (pages/economy.py, docs/mockups/economy-overview.html). The shared head (.strip,
   .filters, .phead, .pagenav, .blk, .rows, .ledger, .tbl, .kv) is slice 1's; this block styles
   only the page's own parts, scoped to it. Bars and dots are SVG geometry from Python. */
.economy-page { flex: 1 1 100%; min-width: 0; }
/* The context cells, World Bank figures beside ours, are dimmed by their colours, not by an
   opacity: at 0.85 their small text came out #89857a on the strip, 4.31:1, under WCAG AA's
   4.5:1 (review O2). #949085 is 4.99:1; the figure keeps the shade the opacity gave it. */
.economy-strip .ctx { display: flex; flex-direction: column; gap: 1px; padding: 12px 18px 12px 0; color: #d1cec6; }
.economy-strip .ctx .t, .economy-strip .ctx .s, .economy-strip .ctx .s a { color: #949085; }
/* The capital cell: its figure and each sub-line part open their own Events, so the cell is a
   box of links (slice 1's strip .cell, whose phone rules it takes), not one link. */
.economy-strip .cap { display: flex; flex-direction: column; gap: 1px; padding: 12px 18px 12px 0; border-right: 1px solid var(--dark-line, #3a3730); margin-right: 18px; }
.economy-strip .cap a { padding: 0; border: 0; margin: 0; }
.economy-strip .cap > a { display: flex; flex-direction: column; gap: 1px; color: inherit; text-decoration: none; }
.economy-strip .cap .s a { display: inline; color: inherit; text-decoration: underline; }
/* Small accent text takes --accent-text (#c45d0e is 4.27:1 on white, review O1); our large
   figures (.macro .ours .v, 28 px and more) keep the accent. */
.economy-page .ours { color: var(--accent-text); }
.economy-page .sc { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.economy-page a:focus-visible, .economy-page .tbl-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.economy-page .side > div > h2 { margin: 0 0 6px; font-size: 13px; font-weight: 600; line-height: inherit; display: flex; justify-content: space-between; gap: 8px; }
.economy-page .side > div > h2 span, .economy-page .blk h3 span { font-weight: 400; color: var(--muted); font-size: 11px; }
.economy-page .blk h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; line-height: inherit; display: flex; justify-content: space-between; gap: 8px; }
.economy-page .fine { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.economy-page .two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.economy-page .two > * { min-width: 0; }
.economy-page .macro { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.economy-page .macro > div { padding: 14px 18px 14px 0; border-right: 1px solid var(--rule); margin-right: 18px; }
.economy-page .macro > div:last-child { border-right: 0; margin-right: 0; }
.economy-page .macro .v { font-family: "Fraunces", Georgia, serif; font-size: 32px; line-height: 1.05; white-space: nowrap; letter-spacing: -0.015em; }
.economy-page .macro .v small { font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 12px; white-space: normal; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.economy-page .macro .ours .v { color: var(--accent); }
.economy-page .macro .ours .v a { color: inherit; text-decoration: none; }
.economy-page .macro .ours .v a:hover, .economy-page .macro .ours .v a:focus-visible { text-decoration: underline; }
.economy-page .macro .ctx .v { color: var(--muted); }
.economy-page .macro .d { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.economy-page .tbl-wrap { overflow-x: auto; }
.economy-page .tbl th a { text-decoration: none; color: inherit; }
.economy-page .tbl th a[aria-current] { color: var(--accent-text); }
.economy-page .tbl th.ours { color: var(--accent-text); }
.economy-page .tbl tbody th { text-align: left; font-weight: 400; font-family: inherit; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--ink); border-bottom: 1px solid var(--rule); }
.economy-page .tbl td.amber a { color: var(--accent-text); }
.economy-page .tbl td.ctx, .economy-page .tbl td.ctx a { color: var(--muted); }
.economy-page .tbl .grp th { border-bottom: 0; padding-bottom: 0; color: var(--ink-2); text-transform: none; letter-spacing: 0; font-size: 11px; font-family: "IBM Plex Sans", system-ui, sans-serif; }
.economy-page .tbl .grp th.w { border-bottom: 2px solid var(--rule); }
.economy-page .tbl .grp th.o { border-bottom: 2px solid var(--accent); }
.economy-page .yr { font-size: 10px; color: var(--muted); }
.economy-page .bigtrend, .economy-page .chart, .economy-page .spark { display: block; width: 100%; height: auto; }
.economy-page .bigtrend .bar { fill: #cdc8bb; }
.economy-page .bigtrend .bar-now { fill: var(--accent); }
.economy-page .bigtrend .axis { stroke: var(--rule); }
.economy-page .bigtrend .tick, .economy-page .chart .tick, .economy-page .chart .axl, .economy-page .chart .dl { font-size: 9px; fill: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; }
.economy-page .chart .dl { fill: var(--ink-2); }
.economy-page .bigtrend .line { fill: none; stroke: var(--forecast); stroke-width: 1.6; }
.economy-page .chart .grid { stroke: var(--rule); }
.economy-page .chart .dot { fill: rgba(196, 93, 14, .55); stroke: var(--accent); stroke-width: 1; }
.economy-page .legend { gap: 16px; font-size: 11px; margin: 4px 0 0; }
.economy-page .legend i { display: inline-block; width: 12px; height: 8px; background: var(--accent); vertical-align: middle; margin-right: 5px; }
.economy-page .legend i.l { height: 0; border-top: 2px solid var(--forecast); background: none; }
.economy-page .spark .bar { fill: #cdc8bb; }
.economy-page .spark .bar-now { fill: var(--ink-2); }
.economy-page .bars2 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.economy-page .bars2 li { display: grid; grid-template-columns: 110px 1fr 40px; gap: 8px; align-items: center; }
.economy-page .bars2 svg { display: block; width: 100%; height: 6px; }
.economy-page .bars2 rect { fill: var(--ink-2); }
.economy-page .bars2 .mono { text-align: right; }
.economy-page .tag { border: 1px solid var(--rule); padding: 0 6px; border-radius: 999px; font-size: 10px; white-space: nowrap; }
@media (max-width: 1024px) {
  .economy-page .macro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .economy-page .macro > div:nth-child(2n) { border-right: 0; margin-right: 0; }
}
@media (max-width: 640px) {
  .economy-page .body { padding: 16px; gap: 24px; }
  .economy-page .macro { grid-template-columns: minmax(0, 1fr); }
  .economy-page .macro > div { border-right: 0; margin-right: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .economy-page .macro > div:last-child { border-bottom: 0; }
  .economy-page .macro .v { font-size: 28px; }
  .economy-page .two { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .economy-page .tbl { min-width: 900px; }
  /* The table's links: a country's name and a figure are text links, 24 px; a heading re-sorts
     the table, one of a row of such links, so it is a control, 44 px (decision 74). */
  .economy-page .tbl tbody th a, .economy-page .tbl td a, .economy-page .bars2 a { display: inline-flex; align-items: center; min-height: 24px; }
  .economy-page .tbl thead th a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* Phones: the capital cell's sub-line links and our figures' links are text links, each a
   whole box 24 px high or more (base.css's pattern for the shared strip; decision 74). */
@media (max-width: 760px) {
  .strip.economy-strip .cap .s a, .economy-page .macro .ours .v a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding-block: 0;
    margin-block: 0;
    box-sizing: border-box;
  }
  /* The capital cell's figure link lays out as the other cells do: its label at the left and
     its figure at the right of one line, across the cell (the link was a column as wide as its
     label, the figure centred under it). It keeps the 44 px of a strip's figure link. */
  .strip.economy-strip .cap > a { display: flex; flex: 1 1 100%; flex-flow: row wrap; justify-content: space-between; align-items: baseline; align-content: center; gap: 2px 12px; }
  /* The page is still in main.page, which pads it 16 px a side on a phone, and its head, its
     on-this-page bar and its columns each pad themselves 16 px more: 32 px a side where the
     group's other pages have 16, so the sibling row broke onto two lines where /employment/'s
     holds one. The page takes main.page's side padding back, and every part sits where its
     sibling pages' does. */
  .economy-page { margin-inline: -16px; }
}
/* ---- Home (milestone 16 slice 2) ---- */
/* Home as the review round rebuilt it (ADR-0052 decisions 4 and 6). The layout reference is
   docs/mockups/home-d-review.html; the height limits below were set from its measurements at
   1920x1080, 1440x900, 1366x768 and 1280x720. The strip and the filter bar are slice 1's shared
   components (.strip, .filters), taken whole: Home's strip has pages/_strip.html's markup,
   inside #home so that Over moves it. Bars are SVG rect widths, never a style. */
.page:has(> .home) { display: block; padding: 0; }
.home { --paper-h: var(--paper, #f7f5ef); --hair-h: var(--hair, #e6e2d8); }
/* A control that swaps Home leaves the reader where they clicked: with scroll anchoring on, a
   scrolled reader was left at the page's end after the swap (ADR-0052, "The third reader", WC1). */
.home { overflow-anchor: none; }
.home .sc { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.home .fine { font-size: 12px; color: var(--muted); margin: 0; }
.home h2, .home h3, .home h4 { font-weight: 500; }

/* The assessment band: paper, under the strip; the first sentence, the rest behind "more". */
.home .band { background: var(--paper-h); border-bottom: 1px solid var(--rule); padding: 0 32px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.home .band > details > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; padding: 8px 0; }
.home .band > details > summary::-webkit-details-marker { display: none; }
.home .band .sc { white-space: nowrap; }
.home .band .first { flex: 1 1 0; min-width: min(100%, 30ch); color: var(--ink); }
.home .band .more { margin-left: 6px; color: var(--accent-text); text-decoration: underline; white-space: nowrap; }
.home .band details[open] .more-closed, .home .band details:not([open]) .more-open { display: none; }
.home .band .rest { margin: 0; padding: 0 0 6px; max-width: 120ch; }
.home .band p.fine { padding: 0 0 9px; }
.home .band .none { margin: 0; padding: 8px 0; }

/* The filters, folded behind "change" (ADR-0050 decision 3). */
.filters-fold { padding: 0 32px; border-bottom: 1px solid var(--rule); font-size: 13px; }
.filters-fold > summary { cursor: pointer; padding: 8px 0; color: var(--muted); }
.filters-fold[open] > summary { color: var(--ink); }
.filters-fold .feed-search { margin: 8px 0 12px; }

/* The stage: the lead piece, then the map; two halves from 1101 px (the block further down).
   Nothing here hides overflow. The lead piece has no height limit: its type sizes and a shortened
   standfirst (pages/featured.py) hold its height; the map keeps 1000 by 440 and is centred in
   its half when the limit narrows it. */
.home .stage { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; border-bottom: 1px solid var(--rule); }
.home .stage .fl-map { background: transparent; }
.home .featured { padding: 20px 32px 18px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.home .featured .kicker { display: flex; justify-content: space-between; gap: 8px; }
.home .featured h2 { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; }
.home .featured h2 a { text-decoration: none; }
/* A word longer than the half (a long address, a compound name) breaks inside itself rather
   than run past the piece's half or widen the page. */
.home .featured h2, .home .featured p, .home .featured .depth { overflow-wrap: anywhere; }
.home .featured p { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.home .featured .by { font-size: 11px; color: var(--muted); }
/* The line under the piece: the newest article under a report, the week's report under a pinned article. */
.home .featured .depth { border-top: 1px solid var(--hair-h); padding-top: 8px; font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.home .featured .depth b { font-weight: 600; }
.home .featured .depth .when { color: var(--muted); white-space: nowrap; }
.home .mapwrap { display: flex; flex-direction: column; min-width: 0; background: var(--paper-h); }
.home .mapbox { display: flex; justify-content: center; }
.home .mapbox .fl-map { flex: 0 0 auto; width: 100%; height: auto; }
/* The row under the map's box: its heading with the two links at its right, the legend, then
   Showing and Over. Three lines in a half of 640 px and wider (two from about 1,280 px). */
.home .maprow { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 14px; padding: 7px 32px 8px 16px; border-top: 1px solid var(--hair-h); font-size: 11px; color: var(--muted); }
.home .maphead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.home .maphead h2 { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 17px; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.home .maphead p { margin: 0; color: var(--ink-2); white-space: nowrap; }
.home .maprow .links { display: flex; gap: 12px; margin-left: auto; white-space: nowrap; }
.home .maprow .links a { color: var(--ink-2); }
.home .legend-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 3px 10px; }
.home .legend-row li { display: flex; align-items: center; gap: 5px; }
.home .controls { display: flex; flex-wrap: wrap; gap: 5px 14px; align-items: center; }
.home .controls > div { display: flex; align-items: center; gap: 6px; }
.home .controls h3 { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-family: "IBM Plex Mono", ui-monospace, monospace; color: var(--muted); }
/* Below the row, outside the height limit and across both halves so that Latest starts as high
   as it can: the map as a table (the keyboard path), "not placed" and the coverage note. */
.home .mapfoot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; padding: 7px 32px 8px; border-top: 1px solid var(--rule); background: #fff; font-size: 11px; color: var(--muted); min-width: 0; }
.home .mapfoot p { margin: 0; }
.home .mapfoot a { color: var(--muted); text-decoration: underline; }
.home .mapfoot .table-equivalent { font-size: 11px; }
.home .mapfoot .table-equivalent[open] { flex-basis: 100%; }
.home .mapfoot .table-equivalent > summary { cursor: pointer; }

/* Latest, one column of rows, and the record's three cards stacked beside it. */
.home .latest { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 22px 32px 30px; }
.home .lcol { min-width: 0; }
.home .lhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px; }
.home .lhead h2 { font-family: "Fraunces", Georgia, serif; font-size: 26px; margin: 0; }
/* A realm or the 24-hour window in force, beside the heading, each with its "remove". */
.home .lhead .on { font-size: 12px; color: var(--ink-2); }
.home .lhead .tabs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
.home .lhead .tabs a { text-decoration: none; font-size: 12px; border: 1px solid var(--rule); border-radius: 3px; padding: 2px 8px; color: var(--ink-2); white-space: nowrap; }
.home .lhead .tabs a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.home .lhead .upd { margin-left: auto; font-size: 12px; color: var(--muted); }
.home .lhead .upd a { color: inherit; }
.home .lhead .upd a[aria-current] { font-weight: 600; color: var(--ink); }
.home .latest .tnote { margin: 7px 0 2px; font-size: 12px; color: var(--muted); }
.home .latest .feed-filter { margin: 6px 0; }
.home .llist { display: flex; flex-direction: column; }
.home .llist .load-more { margin-top: 14px; text-decoration: none; }
.home .row { padding: 8px 0; border-bottom: 1px solid var(--hair-h); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.home .row h3 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.home .row h3 a { text-decoration: none; }
.home .row .m { font-size: 11px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.home .row .m a { color: var(--muted); }
.home .row .tier { padding: 0 4px; border-radius: 0; font-size: 10px; }
.home .row .story-badges { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.home .row .pill { padding: 0 6px; font-size: 10px; }
.home .row .story-tags { font-size: 11px; }
/* Slice 1's .tag is the shared rows' and ledgers'; Latest's rows are Home's own. */
.home .row .tag, .home .row .badge { border: 1px solid var(--rule); padding: 0 6px; border-radius: 999px; font-size: 10px; white-space: nowrap; }
.home .more { margin: 12px 0 0; font-size: 13px; }

/* The record: Calls, Forecasts and Transition Activity. */
.home .record { display: flex; flex-direction: column; min-width: 0; }
.home .card { padding: 18px 0; border-bottom: 1px solid var(--hair-h); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.home .card:last-child { border-bottom: 0; }
.home .card h3 { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 21px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.home .card h3 a, .home .card h3 > span { font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 12px; font-weight: 400; color: var(--muted); }
.home .card p { margin: 0; font-size: 13px; color: var(--ink-2); }
.home .card p.fine { font-size: 12px; color: var(--muted); }
.home .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.home .chip { font-size: 11px; border: 1px solid var(--rule); background: #fff; border-radius: 3px; padding: 2px 8px; color: var(--ink-2); text-decoration: none; }
.home .chip[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.home .chart { width: 100%; height: auto; display: block; }
.home .chart .grid { stroke: var(--hair-h); }
.home .chart .actual { fill: none; stroke: var(--accent); stroke-width: 5; }
.home .chart .fc { fill: none; stroke: var(--forecast); stroke-width: 4; stroke-dasharray: 10 8; }
.home .chart .tick { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 16px; fill: var(--muted); }
.home .chart .today { stroke: var(--muted); stroke-dasharray: 2 3; }
.home .chart .fcl { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 16px; fill: var(--forecast); }
.home .ladder { display: grid; grid-template-columns: max-content 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.home .ladder-bar { width: 100%; display: block; height: 14px; }
.home .ladder-bar .track { fill: var(--wash); }
.home .ladder-bar .fill { fill: var(--accent); }
.home .ladder .p { text-align: right; font-family: "IBM Plex Mono", ui-monospace, monospace; }
/* Transition Activity's card: a country and its count on each row, no rank number. */
.home .ix { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 5px 12px; font-size: 13px; align-items: center; }
.home .ix > .mono { justify-self: end; color: var(--accent-text); text-decoration: none; }
.home .ix > a.mono:hover, .home .ix > a.mono:focus-visible { text-decoration: underline; }

/* Desktop widths: the halves and the height limits (ADR-0052 decision 4, as built).
   --map-h is the map's box: 30vh keeps the box and the row under it within 40% of the window at
   1920x1080 and 1440x900, and the box alone within 40% at 1366x768 and 1280x720.
   The lead piece has no height limit (review D1): the map's half sets the row's height, and a
   piece taller than it (a long title) makes the stage taller, so nothing is hidden or painted
   over. Its height is held by its content: the title and 40 words of standfirst
   (pages/featured.py). With no piece published (.solo) the map's half is the whole width. */
@media (min-width: 1101px) {
  .home .stage { --map-h: 30vh; }
  .home .stage:not(.solo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .home .featured { border-bottom: 0; padding: 18px 28px 16px 32px; gap: 7px; }
  .home .featured h2 { font-size: clamp(22px, 1.9vw, 32px); line-height: 1.12; max-width: 26em; }
  .home .featured p { line-height: 1.4; max-width: 66ch; }
  .home .featured + .mapwrap { border-left: 1px solid var(--rule); }
  .home .mapbox { max-height: var(--map-h); }
  .home .mapbox .fl-map { width: min(100%, calc(var(--map-h) * 1000 / 440)); }
  /* Showing and Over on one line in a 640 px half (1280 px wide): 583 px of the row's 591. */
  .home .maprow .seg a { padding: 2px 5px; }
  /* The ten type filters on one line in a 580 px column. */
  .home .lhead .tabs { gap: 3px; }
  .home .lhead .tabs a { font-size: 11px; padding: 2px 6px; }
  .home .latest { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding: 0; }
  .home .latest > .lcol { padding: 18px 28px 30px 32px; }
  .home .latest > .record { padding: 0 32px 30px 28px; border-left: 1px solid var(--rule); }
}
/* Tablets and narrow desktop windows, 761 to 1100 px: the stage is one column, and the map's
   box is limited by --map-h to 40% of the window's height, the drawing centred; the forecast
   chart stops growing with the column (ADR-0052, "The third reader", WC2). */
@media (min-width: 761px) and (max-width: 1100px) {
  .home .stage { --map-h: 40vh; }
  .home .mapbox { max-height: var(--map-h); }
  .home .mapbox .fl-map { width: min(100%, calc(var(--map-h) * 1000 / 440)); }
  .home .chart { max-width: 640px; }
}
/* Phones: one column, the gutters at 16 px, controls 44 px high. */
@media (max-width: 640px) {
  .filters-fold { padding: 0 16px; }
  .filters-fold > summary { min-height: 44px; display: flex; align-items: center; }
  .home .band { padding: 0 16px; }
  .home .band > details > summary { min-height: 44px; }
  .home .featured { padding: 18px 16px 16px; }
  .home .maprow, .home .mapfoot { padding-left: 16px; padding-right: 16px; }
  .home .maprow .links { margin-left: 0; }
  .home .controls { flex-direction: column; align-items: flex-start; }
  .home .controls > div { flex-wrap: wrap; }
  .home .seg a, .home .chip, .home .lhead .tabs a { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; padding: 0 12px; }
  .home .latest { padding: 18px 16px 24px; }
  .home .lhead .upd { margin-left: 0; }
}
/* Phones: Home's text links (Latest's titles over their lines, the cards' notes, the Activity
   card's rows, the links under the map) are each a whole box 24 px high or more, as base.css
   makes the shared strip's and rows' (decision 74; 44 px from milestone 16 slice 7 to the
   review round). The 24-hour count and "remove" beside Latest's heading change what Latest
   lists, and so does "show everything" in the sentence under it (the one link of that
   sentence whose address is a query on this page): controls, 44 px. */
@media (max-width: 760px) {
  .home .row h3 a, .home .row .m a, .home .featured .by a, .home .featured .depth a, .home .card h3 a, .home .card p a, .home .ix > a,
  .home .more a, .home .maprow .links a, .home .mapfoot p a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding-block: 0;
    margin-block: 0;
    box-sizing: border-box;
  }
  .home .lhead .upd a, .home .lhead .on a, .home .feed-filter a[href^="?"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 0;
    margin-block: 0;
    box-sizing: border-box;
  }
  .home .mapfoot { align-items: center; }
  /* A headline's link keeps 2 px below it, as a shared row's does. */
  .home .row h3 a { margin-block: 0 2px; }
  /* Home's theme tags keep the chips' corners at 24 px (slice 2 gave them when they were 44 px
     boxes). */
  .home .row .m a.tag { border-radius: 3px; }
}

/* ---- Page body components: .body .main .side .assess .cb .counts (milestone 16 slice 4) ---- */
/* The columns under a page head (ADR-0050 decision 6; mockups realm-employment.html,
   country-australia.html, home-c-atlas.html), shared by Home, the realm pages and a country's:
   - .body holds .main (the blocks, 28 px apart) and .side (360 px), one column on a phone;
     .two sets two blocks side by side in .main.
   - .side's sections take an h2 styled small (the mockups' h4), its note in a <span>, and a
     .fine line under them.
   - .assess: our assessment on paper at the head of .side (pages/_assess.html).
   - .cb: a ranked bar list; each li is <a>name</a>, then <svg viewBox="0 0 100 7"
     preserveAspectRatio="none" aria-hidden="true"><rect height="7" width="N"></rect></svg>
     with N the row's share of the largest computed in Python (no style attribute: CSP), then
     <a class="mono">figure</a> opening its Events.
   - .counts: figures by type, each <a href="/events/?..."><span class="mono">87</span><span
     class="t">layoff</span></a>, or a <span> in place of the <a> when nothing filters it. */
.body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding: 24px 32px 36px; }
.main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.side { display: flex; flex-direction: column; gap: 22px; font-size: 13px; min-width: 0; }
.side h2 { margin: 0 0 6px; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.side h2 span { font-weight: 400; font-size: 12px; color: var(--muted); }
.side .fine { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.side .kv + .fine { margin-bottom: 10px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.assess { background: var(--paper); border: 1px solid var(--rule); padding: 12px 14px; }
.assess .sc { display: block; margin-bottom: 6px; }
.assess p { margin: 0; font-size: 13px; line-height: 1.5; }
.assess p.note { margin-top: 6px; font-size: 12px; color: var(--muted); }
.cb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.cb li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 72px; gap: 10px; align-items: center; font-size: 13px; }
/* A bar list's name wraps inside its column, never cut off behind an ellipsis: the name is
   the only copy of which industry or country a bar is for (the Launch's review, D1). */
.cb li > a:first-child { min-width: 0; overflow-wrap: anywhere; }
.cb li .mono { text-align: right; color: var(--accent-text); }
.cb svg { display: block; width: 100%; height: 7px; }
.cb rect { fill: var(--accent); }
.counts { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.counts > a, .counts > span { text-decoration: none; display: flex; flex-direction: column; }
.counts .mono { font-size: 22px; line-height: 1.2; }
.counts > a .mono { color: var(--accent-text); }
.counts .t { font-size: 12px; color: var(--muted); }
.counts > a:hover .t { color: var(--accent-text); }
/* Tablets: the side column goes under the main one below 1025 px, as on /economy/, so the
   main column's charts keep their size (at 800 px the two columns left the trend 336 px). */
@media (max-width: 1024px) {
  .body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .body { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 18px 16px 28px; }
  .two { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cb li { grid-template-columns: minmax(0, 9fr) minmax(0, 5fr) 72px; min-height: 24px; }
  .cb li > a { display: flex; align-items: center; min-height: 24px; }
  .cb li > a.mono { justify-content: flex-end; }
  .counts > a { min-height: 44px; min-width: 44px; }
  /* A side column's notes and a block's note: their links are text links, each a whole box
     24 px high or more (decision 74). */
  .side .fine a, .main .blk .fine a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding-block: 0;
    margin-block: 0;
    box-sizing: border-box;
  }
}

/* ---- Realm pages (milestone 16 slice 4) ---- */
/* The five realm pages (pages/realm.html, policy.html; mockup realm-employment.html): the
   filter bar's select and button, the full-width trend, the side column's lists, the Policy
   register below the columns. */
form.filters select { font: inherit; font-size: 11px; padding: 2px 4px; border: 1px solid var(--rule); border-radius: 3px; background: #fff; color: var(--ink-2); }
form.filters .apply { font: inherit; font-size: 11px; padding: 2px 10px; border: 1px solid var(--ink); border-radius: 3px; background: #fff; color: var(--ink); cursor: pointer; }
form.filters .apply:hover { background: var(--ink); color: #fff; }
.realm-page { display: block; }
.bigtrend { display: block; width: 100%; height: auto; }
.bigtrend .bar { fill: #cdc8bb; }
.bigtrend .bar-now { fill: var(--accent); }
.bigtrend a:hover rect { fill: var(--accent-text); }
.bigtrend .axis { stroke: var(--rule); }
.bigtrend .tick { font-size: 9px; fill: var(--muted); font-family: var(--mono); text-anchor: middle; }
.bigtrend .lab { font-size: 9px; fill: var(--ink-2); font-family: var(--mono); text-anchor: middle; }
.realm-page .table-equivalent { margin-top: 8px; }
.realm-page .table-equivalent .tbl { width: auto; min-width: 280px; }
.realm-page .rows .m time { white-space: nowrap; }
.realm-page .rows p a { color: inherit; }
.realm-page .forecast { color: var(--forecast); }
.side .src { margin: 0 0 4px; font-size: 12px; font-weight: 600; }
.before-epoch { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.realm-below { padding: 0 32px 40px; }
.realm-below h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 22px; font-variation-settings: "opsz" 72; }
.realm-below .stance-counts { margin-top: 4px; }
.realm-below .fine, .realm-page .main > .fine { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.rows h3 a.paper { font-size: 12px; font-weight: 400; text-decoration: underline; white-space: nowrap; }
/* The vulnerability series on Cyber Security (pages/_vulnerabilities.html; ADR-0053): two
   small charts side by side (the shared .two), each with its table and its series' labels.
   Third parties' counts, so the third parties' colour (--forecast), never the accent of our
   own numbers. The drawings hold no text; a table scrolls sideways inside its own .tbl-wrap. */
.realm-page .vuln h3 { margin: 12px 0 6px; font-size: 13px; font-weight: 600; }
.realm-page .vchart { display: block; width: 100%; height: auto; }
.realm-page .vchart .axis { stroke: var(--rule); }
.realm-page .vchart .ln { fill: none; stroke-width: 1.6; stroke-linejoin: round; }
.realm-page .vchart .ln1 { stroke: var(--forecast); }
.realm-page .vchart .ln2 { stroke: var(--ink-2); stroke-dasharray: 4 3; }
.realm-page .vchart .pt1 { fill: var(--forecast); stroke: var(--forecast); }
.realm-page .vchart .pt2 { fill: var(--ink-2); stroke: var(--ink-2); }
.realm-page .vchart .pt.part { fill: #fff; stroke-width: 1.2; }
.realm-page .vchart .bar { fill: var(--forecast); }
.realm-page .vchart .bar-part { fill: #fff; stroke: var(--forecast); stroke-width: 1.2; }
.realm-page .vuln .legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 11px; color: var(--muted); margin: 4px 0 0; }
.realm-page .vuln .legend i { display: inline-block; width: 14px; height: 0; vertical-align: middle; margin-right: 5px; border-top: 2px solid var(--forecast); }
.realm-page .vuln .legend i.k2 { border-top: 2px dashed var(--ink-2); }
.realm-page .vuln .legend i.kb { height: 8px; border-top: 0; background: var(--forecast); }
.realm-page .vuln .tbl-wrap { overflow-x: auto; max-width: 100%; }
.realm-page .vuln .tbl-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.realm-page .vuln .table-equivalent .tbl { min-width: 320px; }
.realm-page .vuln .tbl th, .realm-page .vuln .tbl td { white-space: nowrap; }
/* A row's heading is its month: it reads as the row's other cells do, not as a column heading. */
.realm-page .vuln .tbl tbody th { font-family: inherit; font-size: inherit; font-weight: 400; letter-spacing: 0; text-transform: none; color: inherit; border-bottom: 1px solid var(--hair); vertical-align: top; }
.realm-page .vuln .tbl .part { font-family: var(--sans); font-size: 11px; color: var(--muted); }
.realm-page .vuln .srcs { margin: 8px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.realm-page .vuln .srcs li { margin: 0 0 6px; }
.realm-page .vuln .srcs strong { color: var(--ink-2); font-weight: 600; }
/* The incidents block on Cyber Security (pages/_incidents.html; ADR-0054 decision 8): our
   incidents by month, stacked by standing, in our own colours (the accent and lighter tones,
   never the third parties' --forecast: the claims line beside it keeps that through the .vuln
   rules above, so everything of ours here is scoped to .ours, .inc-table or the block's own
   children). The drawing holds no text; the table scrolls sideways inside its own .tbl-wrap;
   every link is a chart table's (base.css's 24 px rule) or a .fine note's (the phone block).
   A cell's link fills its cell's width at every width, so a one-digit count is no 7 px target;
   its 24 px of height in a narrow window stays base.css's (.table-equivalent td a). */
.realm-page .inc h3 { margin: 12px 0 6px; font-size: 13px; font-weight: 600; }
.realm-page .inc .counts + .fine { margin-top: 8px; }
.realm-page .ichart .s1 { fill: var(--accent); }
.realm-page .ichart .s2 { fill: var(--amber); }
.realm-page .ichart .s3 { fill: #cdc8bb; }
.realm-page .ichart .s4 { fill: #fff; stroke: var(--muted); stroke-width: 1; }
.realm-page .ichart .ln { stroke: var(--ink); stroke-width: 1.4; }
.realm-page .ichart .pt { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }
.realm-page .ichart .rule { stroke: var(--ink-2); stroke-width: 1; }
.realm-page .ichart .rule-recheck { stroke-dasharray: 3 3; }
.realm-page .inc .ours .legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 11px; color: var(--muted); margin: 4px 0 0; }
.realm-page .inc .ours .legend i { display: inline-block; box-sizing: border-box; width: 10px; height: 10px; vertical-align: middle; margin-right: 5px; }
.realm-page .inc .ours .legend i.s1 { background: var(--accent); }
.realm-page .inc .ours .legend i.s2 { background: var(--amber); }
.realm-page .inc .ours .legend i.s3 { background: #cdc8bb; }
.realm-page .inc .ours .legend i.s4 { background: #fff; border: 1px solid var(--muted); }
.realm-page .inc .ours .legend i.kl { width: 14px; height: 0; border-top: 2px solid var(--ink); }
.realm-page .inc .ours .legend i.rule-recheck { width: 0; border-left: 2px dashed var(--ink-2); }
.realm-page .inc .ours .legend i.rule-live { width: 0; border-left: 2px solid var(--ink-2); }
.realm-page .inc .ours .srcs, .realm-page .inc > .srcs { margin: 8px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.realm-page .inc .ours .srcs li, .realm-page .inc > .srcs li { margin: 0 0 6px; }
.realm-page .inc > .srcs strong { color: var(--ink-2); font-weight: 600; }
.realm-page .inc-table .tbl-wrap { overflow-x: auto; max-width: 100%; }
.realm-page .inc-table .tbl-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.realm-page .inc-table .tbl { width: 100%; min-width: 640px; }
.realm-page .inc-table .tbl th, .realm-page .inc-table .tbl td { white-space: nowrap; }
.realm-page .inc-table .tbl tbody th { font-family: inherit; font-size: inherit; font-weight: 400; letter-spacing: 0; text-transform: none; color: inherit; border-bottom: 1px solid var(--hair); vertical-align: top; }
.realm-page .inc-table .tbl td.num a { display: flex; justify-content: flex-end; }
.realm-page .inc-table .tbl .part { font-family: var(--sans); font-size: 11px; color: var(--muted); }
.realm-page .inc-table .tbl td.era { white-space: normal; min-width: 220px; color: var(--muted); }
/* The trend's own ticks and figures are 9 units in an 860-unit drawing: drawn under 760 px wide
   they print under 8 px, so there the chart gives way to a row of twelve cells under it, one per
   bar, every third month named. A container query, so the trend's own width decides: on a phone,
   and between 1025 and about 1270 px, where the side column leaves the main one narrow. Scoped to
   the realm pages and a country's (main.country: its trend is the same .bigtrend over a
   .bigticks row, review R1): /economy/'s charts keep their ticks. */
.realm-page #trend, main.country #trend { container: realm-trend / inline-size; }
.realm-page .bigticks, main.country .bigticks { display: none; }
@container realm-trend (max-width: 760px) {
  .realm-page .bigtrend .lab, .realm-page .bigtrend .tick, main.country .bigtrend .lab, main.country .bigtrend .tick { display: none; }
  .realm-page .bigticks, main.country .bigticks { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 4px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
  .realm-page .bigticks span, main.country .bigticks span { display: flex; justify-content: center; white-space: nowrap; }
}
/* Phones: every control below is 44 px high or more (slice 1's rules cover the strip, the
   filter bar's segments, the page head and the on-this-page bar) and every text link a whole
   box 24 px high or more (decision 74; base.css's rule covers the rows', the ledgers' and a
   chart table's links): a block head's note, the forecasts before tracking began and the
   realm notes' links. The first two had a 44 px hit area padded past their line (slice 6
   review, R2S6-3); measured at 390 px it lay 3 px over the figures under a block's head on
   the topic pages, and a 24 px box reaches no neighbour. */
@media (max-width: 760px) {
  form.filters select, form.filters .apply { min-height: 44px; font-size: 13px; padding: 4px 10px; }
  .realm-below { padding: 0 16px 32px; }
  .register-filters select, .register-filters button { min-height: 44px; }
  .register-filters a, .stance-counts a { display: inline-flex; align-items: center; min-height: 44px; }
  .stance-counts a { min-width: 44px; }
  .blk h2 span a, .before-epoch a { display: inline-flex; align-items: center; min-height: 24px; }
  .realm-page .fine a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding-block: 0;
    margin-block: 0;
    box-sizing: border-box;
  }
  .ledger + .fine { margin-top: 14px; }
  .realm-page .vuln .srcs a { display: inline-flex; align-items: center; min-height: 24px; }
  .table-equivalent summary, .embed-code summary { min-height: 44px; padding-block: 12px; box-sizing: border-box; }
  .embed-code label { display: flex; align-items: center; min-height: 44px; }
}
/* ---- Country page (milestone 16 slice 5) ---- */
/* docs/mockups/country-australia.html. The body grid (.body, .main, .side), .assess, .cb and
   .counts are the realm pages' (slice 4); this block styles only what the country page adds,
   under main.country where a name is generic. Bars are SVG widths, never a style attribute. */
.country .phead .lede { order: 1; }
.country .phead .r { order: 2; }
.country .phead .loc { order: 3; }
.country .phead .sib .region { margin-left: 10px; }
.phead .loc { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); flex: none; }

/* The locator (pages/_locator.html): a picture of where the country is, never a figure. */
.locator { width: 190px; height: auto; display: block; background: var(--paper); border: 1px solid var(--rule); }
.locator path, .locator circle { vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.locator .loc-land { fill: #dedcd5; stroke: #fff; stroke-width: 0.5px; }
.locator .loc-here { fill: var(--accent); stroke: #fff; stroke-width: 0.5px; }
.locator .loc-ring { fill: none; stroke: var(--ink); stroke-width: 1.2px; }

/* The Transition Activity block (ADR-0052 decision 8), laid out as the block it replaced: the
   count large where the headline was, then a line for each Event type and one for the disputed
   Events, each count opening its Events. */
.country .index { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.country .index .head p { margin: 0; }
.country .index .head .v { font-size: 18px; color: var(--muted); line-height: 1; }
.country .index .head .v .ix-value { font-family: var(--serif); font-size: 64px; font-weight: 400; line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variation-settings: "opsz" 72; }
.country .index .head .v a.ix-value { color: var(--accent-text); text-decoration: none; }
.country .index .head .v a.ix-value:hover, .country .index .head .v a.ix-value:focus-visible { text-decoration: underline; }
.country .index .head .r { font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.country .subs { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.country .subs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: 12px; align-items: baseline; border-top: 1px solid var(--hair); padding-top: 6px; }
.country .subs li > span { display: block; }
.country .subs .ix-sub-label { order: 0; font-weight: 600; }
.country .subs .ix-score { order: 1; text-align: right; font-family: var(--mono); font-size: 13px; }
.country .subs .ix-score a { color: var(--accent-text); }

/* Announced cuts by month: the country's bars (the realm pages' .bigtrend) against every
   country's line. */
.bigtrend .line { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 3; }
.country .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11px; color: var(--muted); margin: 4px 0 0; }
.country .legend i { display: inline-block; width: 12px; height: 8px; background: var(--accent); vertical-align: middle; margin-right: 5px; }
.country .legend i.l { height: 0; border-top: 2px dashed var(--ink-2); background: none; }
.country .table-equivalent { margin-top: 6px; }

/* Industries and forecasts side by side (the shared .two and .cb). */
.fc { margin: 0; padding-left: 16px; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.fc .mono { color: var(--forecast); }
.side .fc .mono { color: var(--ink); }

/* Events across every realm, and the side column's stories and context. */
.country .rows .story-badges, .country .ledger .story-badges { gap: 4px 6px; font-size: 11px; }
.country .rows .story-badges .pill, .country .ledger .story-badges .pill, .country .rows .story-badges .badge, .country .ledger .story-badges .badge { padding: 0 6px; font-size: 10px; }
.country .rows .story-tags, .country .ledger .story-tags { flex-basis: 100%; }
.country .side .sblk > h2 { margin: 0 0 6px; font-family: var(--sans); font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.country .side .sblk > h2 span { font-size: 12px; font-weight: 400; color: var(--muted); }
.country .side .fine { font-size: 11px; color: var(--muted); margin: 6px 0 0; }

@media (max-width: 760px) {
  .country .phead .lede, .country .phead .r, .country .phead .loc { order: 0; }
  .locator { width: 160px; }
  .country .index, .country .subs { grid-template-columns: minmax(0, 1fr); }
  .country .index { gap: 14px; }
  .country .index .head .v .ix-value { font-size: 52px; }
  /* The Activity block's counts (the one in the line under the large count too), the
     forecasts' list, a row's figure note and the policy table's actions: text links, each a
     whole box 24 px high or more (decision 74). */
  .country .subs a, .country .index .head .r a, .country .fc a, .country .rows .figure-note a, .country .tbl td a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding-block: 0;
    margin-block: 0;
    box-sizing: border-box;
  }
}

/* ---- Every other page (milestone 16 slice 6) ---- */
/* The pages outside Home, Economy, the realms and the countries (ADR-0050 decisions 6 and 7):
   - a page with figures (the lists, the map, Transition Activity, the record, an industry, an
     organisation, a theme, the Events behind a number, the reports) opens with the shared head
     (pages/_phead.html) in main.pg, then .one (one column of blocks) or .body (slice 4's main
     and side columns) below it; .pair sets two tables side by side;
   - tables are .tbl in a .tbl-wrap that scrolls sideways on a phone; captions read as a
     block's title;
   - an Event list is thin rows (pages/_event_row.html inside ol.event-rows.rows);
   - an article (an Event, a Story, a piece, the text pages, the account pages) keeps its own
     title, set in Fraunces as the head's is;
   - every control 44 px high or more on a phone, as the chrome's. */
main.pg { display: block; padding: 0; }
/* A page still in the old flex row (main.page: an article, the text and account pages): its
   children may shrink below their content, so a wide table scrolls in its .tbl-wrap rather than
   widening the column past a phone's screen (slice 6 review, S6R-1). */
main.page > * { min-width: 0; }
.one { display: flex; flex-direction: column; gap: 28px; padding: 24px 32px 40px; min-width: 0; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
main.pg .phead .lede a { color: inherit; }

/* Blocks' heads carrying links beside the title, and their notes; scoped to these pages, as
   the other pages' blocks keep their own margins. */
main.pg .blk .panel-head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 0 0 10px; }
main.pg .blk .panel-head h2 { margin: 0; }
main.pg .blk > h3 { margin: 14px 0 6px; font-size: 14px; font-weight: 600; }
main.pg .blk .panel-note, main.pg .blk .empty { margin: 6px 0 0; }
main.pg .blk > p:not([class]) { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
main.pg .blk .legend { margin-top: 6px; }
main.pg .blk .table-equivalent { margin-top: 8px; }

/* Tables on these pages and Methodology's: the caption is the block's title; row heads read
   as text, our numbers in accent. */
main.pg .tbl caption, .prose .tbl caption { caption-side: top; text-align: left; padding: 0 0 10px; font-family: var(--serif); font-weight: 500; font-size: 22px; font-variation-settings: "opsz" 72; }
main.pg .tbl tbody th, .prose .tbl tbody th { text-align: left; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); border-bottom: 1px solid var(--hair); padding: 6px 10px 6px 0; vertical-align: top; }
main.pg .tbl th a, .prose .tbl th a { color: inherit; }
main.pg .tbl td.num a, .prose .tbl td.num a { color: var(--accent-text); text-decoration: none; }
main.pg .tbl td.num a:hover, main.pg .tbl td.num a:focus-visible { text-decoration: underline; }
main.pg .tbl td.forecast, main.pg .tbl .forecast { color: var(--forecast); }
main.pg .tbl .source-note { font-size: 11px; }
.tbl-wrap { max-width: 100%; }

/* Transition Activity (/activity/, ADR-0052 decision 8): the world's count large with its
   period, the months as the site's small bar chart, and the table by country, whose last row is
   the Events with no country. */
.activity-page .act-figure { margin: 0 0 14px; font-size: 18px; color: var(--muted); line-height: 1; }
.activity-page .act-figure .mono { font-family: var(--serif); font-size: 64px; font-weight: 400; line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variation-settings: "opsz" 72; }
.activity-page .act-figure a.mono { color: var(--accent-text); text-decoration: none; }
.activity-page .act-figure a.mono:hover, .activity-page .act-figure a.mono:focus-visible { text-decoration: underline; }
.activity-page .act-trend { max-width: 560px; }
.activity-page .act-unplaced th, .activity-page .act-unplaced td { border-top: 1px solid var(--rule); }

/* Thin rows of Events (pages/_event_row.html). */
.event-rows .m time { white-space: nowrap; }
.event-rows li.story h3 { font-size: 14px; line-height: 1.3; }
.event-rows .badge { padding: 0 6px; font-size: 10px; }
.event-rows p.k, .event-rows p.figure-note, .event-rows p.thread-note { white-space: normal; font-size: 11px; color: var(--muted); margin: 0; }
.event-rows p.k a { color: var(--muted); }
.event-rows p.k a:hover { color: var(--accent-text); }
main.pg .blk > .timeline-month { margin: 16px 0 2px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.thread-steps { font-size: 13px; }

/* The Events behind a number: the head figure and its notes. */
.one.event-list { gap: 12px; max-width: none; }
.event-list .list-total { font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.event-list .list-total .head-links { font-size: 12px; }

/* The side column's stories, the feed links (pages/_stories.html in a narrow column). */
main.pg .side .story { padding: 8px 0; gap: 4px; border-bottom: 1px solid var(--hair); }
main.pg .side .story h3 { font-size: 13px; line-height: 1.3; }
main.pg .side .story-summary { margin: 0; font-size: 12px; line-height: 1.45; }
main.pg .side .story-badges, main.pg .side .story-meta { font-size: 11px; gap: 6px; }
main.pg .side .our-view, main.pg .side .card-quote { font-size: 12px; }
main.pg .side .forecast-list { font-size: 12px; }
main.pg .side .load-more { font-size: 12px; padding: 6px 12px; }
.feed-links .fine a { color: var(--ink-2); }

/* The reports' list and its kind filter. */
.piece-filter { gap: 6px; }
.piece-filter a { text-decoration: none; font-size: 12px; border: 1px solid var(--rule); border-radius: 3px; padding: 2px 8px; color: var(--ink-2); }
.piece-filter a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.piece-list { gap: 0; }
.piece-line { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.piece-title { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; font-variation-settings: "opsz" 72; }
.piece-kind { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; }

/* Articles: an Event, a Story, a piece, the text and account pages keep their own titles. */
.prose h1, .event h1, .piece h1 { margin: 0 0 12px; font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.05; letter-spacing: -0.015em; font-variation-settings: "opsz" 72; }
.event h1 a, .piece h1 a { text-decoration: none; }
.prose h2, .event h2, .piece-body h2, .piece-figures h2, .piece-behind h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; font-variation-settings: "opsz" 72; }
.prose h3 { font-size: 15px; font-weight: 600; }
.prose .tbl-wrap { margin: 12px 0; }
.methodology .toc { font-family: var(--mono); font-size: 12px; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.event .facts, .piece .facts { font-size: 13px; }
.event-stories li { padding: 2px 0; }

/* Embeds (pages/embed_tile.html, embed_map.html) under the tokens. */
body.embed .embed-tile { background: var(--paper); border: 1px solid var(--rule); border-radius: 0; }
body.embed .embed-heading { font-family: var(--serif); font-weight: 500; font-size: 16px; font-variation-settings: "opsz" 72; }

/* The map's largest cuts (pages/_faultline.html): a hairline block, not a box (S6R-7). */
.faultline .panel-box { border: 0; border-top: 1px solid var(--rule); border-radius: 0; padding: 12px 0 0; gap: 6px; }

@media (max-width: 760px) {
  .one { padding: 18px 16px 28px; gap: 24px; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .activity-page .act-figure .mono { font-size: 52px; }
  /* The table by country: a linked count is a 24 px box (the text links' rule below) and a
     plain 0 stays a line of text, so every cell of a row sits on the row's middle and its
     numbers read on one line (slice 8b review). The table scrolls sideways in its .tbl-wrap,
     never the page. */
  .activity-page .tbl.act-table tbody th, .activity-page .tbl.act-table td { vertical-align: middle; }
  /* A table of four columns or more keeps its width and scrolls sideways in its wrapper (these
     pages' and Methodology's; the other pages' tables keep their own rules). */
  main.pg .tbl-wrap .tbl:has(thead th:nth-child(4)), .prose .tbl-wrap .tbl:has(thead th:nth-child(4)) { min-width: 600px; }
  /* Controls, 44 px: a pager, the kind filter, "More", a button drawn as a link, a form's
     links and Methodology's contents (the page's own menu). */
  .pager a, .piece-filter a, .load-more, .link-button, .form-row a, .methodology .toc a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  /* A report's disclosures ("The Events behind it" under a figure, "258 more Events" inside
     it): controls, 44 px, as a chart's table is. */
  .piece-figures details > summary, .piece-more > summary { min-height: 44px; padding-block: 11px; box-sizing: border-box; }
  /* Text links, each a whole box 24 px high or more with no padding reaching a neighbour
     (decision 74, ADR-0052 decision 7; they were 44 px, slice 6 review R2S6-2): in a table,
     the feed links, the reports' titles, a block head's links as they wrap, a side story's
     lines, an Event row's lines under its title, the lists, a theme's notes; the links that
     had no phone rule and stood 15 to 18 px high (the Policy register's rows, a figure's
     "why", a Story's themes and tags, an Event's facts and Stories, a piece's Events, a note
     under a block, the old filter form's Event count, the names in Latest's filter sentence);
     and a thread's steps and the source under an Event's quote (17 px on real rows); and a
     piece's two foot links (below); and the links of a form's note (WB2). An Event
     row's title is the shared rows' (base.css's .rows h3 a). Links in an article's running
     text stay in their lines. */
  main.pg .tbl td a, main.pg .tbl th a, .prose .tbl td a, .feed-links .fine a, .piece-line .piece-title,
  .blk .panel-head a, .side .story .story-tags a, .side .story h3 a, .side .story-meta a, .event-rows p a, .forecast-list a, .theme-page .main > .panel-note a, .theme-list dt a,
  .data-table td a, .figure-note a, .story-tags a, .story-themes a, .facts dd a, .event-stories a, .event-meta a, .piece-events a, .panel-note a, .strip-status a, .feed-filter a,
  .thread-steps a, .quote figcaption a, .piece-foot a, .form-note a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
  }
  /* "remove" after "Organisation: X" in the filter form (pages/_controls.html; Home's folded
     form alone prints it) clears a filter of the page, as "remove" beside Latest's heading
     and "show everything" do: a control, 44 px (second review of slice 8e, B2; it stood
     17 px high). Here and not in Home's block, which holds no rule for the shared strip. */
  .strip-note a { display: inline-flex; align-items: center; min-height: 44px; }
  /* Methodology's contents: a column of links, the dots between them dropped. */
  .methodology .toc { display: flex; flex-direction: column; align-items: flex-start; padding: 4px 0; }
  .methodology .toc .sep { display: none; }
  /* A link alone in its line, with no link within 16 px above or below: a 44 px hit area that
     never grows the line, padding taken back by a negative margin (16 px each side clears 44
     px for any line 12 px or taller; no min-height, which would grow a short line). The Events
     list's "Download as CSV" alone: a piece's two foot links were padded so until the second
     review of slice 8e (B3), and at 320 px they wrap onto two lines 21 px apart, where each
     one's padding lay over the other and a tap on the first opened the second. */
  .event-list .list-total .head-links {
    display: inline-block;
    padding-block: 16px;
    margin-block: -16px;
  }
  /* Buttons and form fields, 44 px: every field a reader types in, whatever its type, and
     the field that shows a new API key (ADR-0052, WB2 and RC2). */
  .button, .strip-apply, .form-stack input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]), .form-stack textarea, .form-row input[type="text"], .prose input.mono[readonly], .form-check, .feed-search input[type="search"], .feed-search select { min-height: 44px; }
  /* A tick box's or a choice's words are its target: the label is 44 px high (WB2). */
  .form-check label, .form-stack fieldset label { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
  .prose h1, .event h1, .piece h1 { font-size: 30px; }
  /* A mono line of a text page is 13 px: the bot's address in its User-Agent line fits the
     column of a 360 px phone (ADR-0052, "The third reader"). */
  .prose p.mono { font-size: 13px; }
  .piece-title { font-size: 19px; }
  /* The Analysis empty state's link to the weekly reports: a text link in a sentence, 24 px
     high (ADR-0052 decision 7; it was 18 px, slice 8c review C5). */
  .pieces .empty a { display: inline-flex; align-items: center; min-height: 24px; }
  /* Milestone 16 close (the whole-milestone review). The old filter form (pages/_controls.html,
     form.strip) on the pages not yet on the filter bar: its Period label and select, its tier
     and status boxes and the mixed-reason box, each a 44 px target as the filter bar's
     segments are (review C3). /map/'s Showing, Period and Month links, each a whole 44 px box
     (Home's copy is .seg; review C4). */
  form.strip label, form.strip select, .fl-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  /* A scorecard publisher's name, the one link in its 22 px title: a 48 px hit area that does
     not grow the title, padding taken back by a negative margin (review C5). */
  .scorecard .blk > h2 a { display: inline-block; padding-block: 10px; margin-block: -10px; }
  /* A piece's figures: each label over its figure, not beside it; the labels' max-content
     column pushed the list to 510 px on a 390 px phone (review O4). */
  .piece .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .piece .facts dd { margin-bottom: 10px; overflow-wrap: anywhere; }
}

/* ---- Protest Activity and the topic pages (milestone 16 review round, slice 8c) ---- */
/* The pages behind the bar's menus that are not a realm's (ADR-0052 decision 3): /protests/
   (pages/protests.html, .protests-page) and /defence/ and /transport/ (pages/topic.html,
   .topic-page). The shared head, main.pg, .one and .body, .blk, .cb, .counts, .tbl and the thin
   Event rows are the other pages'; this block styles only what these pages add. */
.protests-page .trend { max-width: 560px; }
.protests-page .cb { max-width: 720px; }
/* A country with no page is named in a span where a link would be: cut as the link is. */
.protests-page .cb li > span:first-child, .topic-page .cb li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The register: eight columns; the date on one line, the Event's labels small beside its link. */
.protest-register td.when { white-space: nowrap; }
.protest-register .figure-note { display: block; font-size: 11px; white-space: normal; }
.protest-register .tier { padding: 0 4px; border-radius: 0; font-size: 10px; }
.protest-register .tag { border: 1px solid var(--rule); padding: 0 6px; border-radius: 999px; font-size: 10px; white-space: nowrap; }
.protest-register .badge { padding: 0 6px; font-size: 10px; }
.protest-register td.num .source-note { font-family: var(--sans); }
/* A topic page's line on what is and is not collected yet: on paper, at the head of the column. */
.topic-page .collected { padding: 10px 14px; background: var(--paper); border: 1px solid var(--rule); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.topic-page .main > .panel-note { line-height: 1.5; }
.one.topic-page .empty { margin: 0; max-width: 70ch; }
/* The register keeps its width at every window width and scrolls sideways in its wrapper
   wherever the wrapper is narrower: a window up to 983 px wide, a phone or a tablet held
   upright (slice 8c review D1: as a phone rule it left the Event column 96 px at 768 px). Its
   rule carries one more class than the shared phone rule for a table of four columns or more
   (main.pg .tbl-wrap .tbl:has(thead th:nth-child(4)), 600 px), so the register's width wins
   there too (review C2). */
.protests-page .blk .tbl-wrap .tbl.protest-register { min-width: 920px; }
/* /transport/'s upper half (milestone 17 slice 3, ADR-0055 decision 4; pages/_transport.html,
   .transport-page): where driverless services run. The two counts are the shared .counts, the
   step links the shared .seg, the notes .panel-note and the map the shared .fl-map with its
   legend; this styles what the block adds. Four step classes, .ts-1 (testing or permitted) to
   .ts-4 (paid driverless), on a <g> whose shape inherits the fill and on a legend key; a
   paused country's shape is drawn again under a hatch of a light and a dark line, so the mark
   shows on any of the four. The cities table keeps its width and scrolls sideways inside its
   own .tbl-wrap wherever that is narrower (its rule carries one more class than the shared
   phone rule for a table of four columns or more, as the register's above does). */
.one.transport-page { padding-bottom: 0; }
.transport-page .panel-note, .transport-page .ts-head { max-width: 96ch; line-height: 1.5; }
.transport-page .counts { margin-bottom: 8px; }
.transport-page .fl-subhead { margin: 16px 0 6px; }
.transport-page .fl-map { max-width: 960px; }
.transport-page .fl-legend { margin: 8px 0; }
.transport-page .ts-1 { fill: #fbe3c2; background: #fbe3c2; }
.transport-page .ts-2 { fill: #f5bf80; background: #f5bf80; }
.transport-page .ts-3 { fill: #e8934a; background: #e8934a; }
.transport-page .ts-4 { fill: #7f3606; background: #7f3606; }
.transport-page .ts-hatch-line { stroke: #fff; stroke-width: 1.4; }
.transport-page .ts-hatch-edge { stroke: var(--ink); stroke-width: 0.6; }
/* The paused key is the hatch alone on the "no service" grey, so it is not read as one step's
   colour paused: on the map the hatch lies over whichever step the country has. */
.transport-page .ts-key-paused { background: repeating-linear-gradient(45deg, #efeee9 0 2px, #fff 2px 4px, #1a1a1a 4px 5px); }
.transport-page .ts-head { margin: 12px 0 10px; font-size: 13px; color: var(--ink-2); }
.transport-page .ts-head .mono { font-size: 18px; color: var(--ink); }
.transport-page .seg { margin-top: 2px; }
.transport-page .blk .tbl-wrap .tbl.ts-cities { min-width: 760px; }
.transport-page .ts-cities time { white-space: nowrap; }
/* The city leads, its country on a second line of the same cell, then the step with its
   paused tag: on a phone both are in the box before it is scrolled (review round 1, H1). The
   two columns take the width of their words and no more, so the slack of the table's kept
   width goes to the columns after them. */
.transport-page .ts-cities .ts-country { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.transport-page .ts-cities tbody th, .transport-page .ts-cities .ts-step { width: 1%; white-space: nowrap; }
/* A row's count is often one digit: on a phone its link is a box 24 px wide as well as high. */
.transport-page .ts-cities .num a { min-width: 24px; justify-content: flex-end; }
.transport-page .ts-cities .tag { margin-left: 6px; border: 1px solid var(--rule); padding: 0 6px; border-radius: 999px; font-size: 10px; white-space: nowrap; }
.transport-page .tbl-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Phones (390 px). The notes' links are text links, each a whole box 24 px high or more
   (decision 74). */
@media (max-width: 760px) {
  .protests-page .cb { max-width: none; }
  .protests-page .blk .panel-note a, .topic-page .main > .panel-note a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding-block: 0;
    margin-block: 0;
    box-sizing: border-box;
  }
  .topic-page .collected { padding: 10px 12px; }
}

/* ---- The pass (milestone 16 slice 7) ---- */
/* The forecast charts' labels (pages/forecasts.py places them clear of each other and of the
   axis; ADR-0050's slice 7 amendment): a halo of the ground under each, so a line crossing a
   label never runs through its letters. The pass's phone targets changed the shared
   components' rules in base.css and each page's in its own block. */
.forecast-chart .forecast-label, .home .chart .fcl { paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
