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

   The tokens, the faces, the bar, the phone sheet, the footer, the instrument strip, the filter
   bar, the page head, the on-this-page bar and the blocks, rows, ledgers, tables and key-value
   lists the page bodies share (ADR-0050 decisions 1, 6 and 7, milestone 16 slice 1; the mockups
   in docs/mockups/). The one stylesheet was split in two at milestone 16 slice 7 (ADR-0050's
   slice 7 amendment), the rules in the order they had, so the cascade is unchanged. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-400.77bc02670657.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-500.f7016cd446d2.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-600.196e3cbc5fee.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400.79936b18df9f.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.b1c8a895f5fd.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
/* Fraunces for display and section titles (ADR-0050 decision 7): one variable file, optical
   size 9-144 and weight 400-600, Latin (static/vendor/README.md says how it was cut). */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-var.487e395516ef.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #15140f;
  --ink-2: #3b3a33;
  --muted: #6b6a62;
  --rule: #d9d5cb;
  --hair: #e6e2d8;
  --paper: #f7f5ef; /* the map stage and the assessment */
  --wash: #efece4;
  --dark: #15140f; /* the bar and the footer */
  --dark-2: #24221b; /* the instrument strip, the menu */
  --dark-line: #3a3730;
  --dark-text: #efece4;
  --dark-muted: #9b978b;
  --accent: #c45d0e; /* every number of ours: fills, bars, large figures */
  /* The accent as small text: #c45d0e is 4.27:1 on white, under WCAG AA's 4.5:1 for text below
     18.66 px bold or 24 px, so small accent text takes this darker step: 5.50:1 on white,
     5.05:1 on --paper, 4.66:1 on --wash (tests/web/test_m16_chrome.py computes them). */
  --accent-text: #a8500c;
  --amber: #e8a24a; /* our headline figure on the dark strip */
  --forecast: #2a56a8; /* every third party's line */
  --serif: "Fraunces", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
}
a { color: var(--ink); }
a:hover { color: var(--accent-text); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}
.mono { font-family: var(--mono); }
.disp { font-family: var(--serif); font-variation-settings: "opsz" 72; font-weight: 500; }
.sc { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 40; }
/* Text for a screen reader only (a form's label, a short figure's full one): kept in the
   accessibility tree, drawn in a 1 px clipped box. Absolutely positioned, so a scroller it
   sits in must be positioned too (.tbl-wrap), or the box is placed against the page and
   widens it (review N1). */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* The bar (ADR-0050 decision 1), as ADR-0052 decision 2 rewrote it: brand; five <details>
   menus (Economy, Political, Security, Science, Reports), then Industries and Organisations;
   the account at the right; at 1100 px and narrower the brand and the sheet's button. */
.topbar {
  position: relative;
  z-index: 20;
  background: var(--dark);
  color: var(--dark-text);
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 32px;
  height: 60px;
}
.topbar a, .topbar .link-button { color: var(--dark-text); text-decoration: none; }
.topbar a:hover, .topbar .link-button:hover, .topbar summary:hover { color: var(--amber); }
.topbar a:focus-visible, .topbar summary:focus-visible, .topbar button:focus-visible { outline-color: var(--amber); }
.brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-variation-settings: "opsz" 72;
}
.nav { display: flex; gap: 28px; align-items: center; height: 100%; font-size: 14px; }
.nav > a { display: inline-block; padding: 4px 0 2px; border-bottom: 2px solid transparent; }
.nav > a[aria-current], .nav > a.nav-within, .nav .menu > summary[aria-current] { border-bottom-color: var(--amber); }
.nav .menu { position: relative; display: flex; align-items: center; height: 100%; }
.menu > summary {
  list-style: none;
  cursor: pointer;
  padding: 4px 0 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.menu > summary::-webkit-details-marker { display: none; }
/* The triangle is drawn, not read: its alternative text is empty, so the summary's name is
   "Economy" (review C9). */
.menu > summary::after { content: " \25BE"; content: " \25BE" / ""; font-size: 10px; color: var(--dark-muted); }
.menu[open] > summary { color: var(--amber); }
.drop {
  position: absolute;
  left: -16px;
  top: 100%;
  min-width: 240px;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  padding: 8px 0;
  z-index: 30;
}
.drop a { display: block; padding: 7px 16px; color: var(--dark-text); }
.drop a b { font-weight: 600; }
.drop a small { display: block; color: var(--dark-muted); font-size: 12px; }
.drop a[aria-current] b, .drop a[aria-current], .drop a.nav-within { color: var(--amber); }
.topbar .right { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 13px; }
.topbar .right a[aria-current] { color: var(--amber); }
.topbar form { margin: 0; }
.link-button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); }
.link-button:hover { color: var(--accent-text); }

/* The phone sheet: hidden where the bar shows every menu (from 1101 px). */
.sheet { display: none; }
.sheet > summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sheet > summary::-webkit-details-marker { display: none; }
.burger { position: relative; width: 22px; height: 14px; border-top: 2px solid var(--dark-text); border-bottom: 2px solid var(--dark-text); }
.burger::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid var(--dark-text); }
.sheet[open] .burger { border-color: transparent; }
.sheet[open] .burger::before, .sheet[open] .burger::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid var(--dark-text); }
.sheet[open] .burger::before { transform: rotate(45deg); }
.sheet[open] .burger::after { transform: rotate(-45deg); }
.sheet-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.sheet-body {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--dark-2);
  border-top: 1px solid var(--dark-line);
  padding: 4px 16px 16px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  z-index: 30;
  font-size: 15px;
}
.sheet-body .grp { padding: 6px 0; border-bottom: 1px solid var(--dark-line); }
.sheet-body .grp > b { display: block; padding: 8px 0 2px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-muted); }
.sheet-body .grp > a { display: flex; align-items: center; min-height: 44px; padding-left: 12px; }
.sheet-body .grp.top > a { padding-left: 0; font-weight: 600; }
/* The current page is marked by more than its colour (WCAG 1.4.1; the Launch's review, D9):
   underlined, as the bar marks it with a rule under the link. */
.sheet-body a[aria-current], .sheet-body a.nav-within { color: var(--amber); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sheet-body .fine { display: flex; flex-wrap: wrap; gap: 0 18px; padding-top: 8px; font-size: 13px; }
.sheet-body .fine a, .sheet-body .fine .link-button { display: flex; align-items: center; min-height: 44px; color: var(--dark-muted); }

/* The footer: four columns and the colophon, with milestone 15's sign-up line. */
.footer {
  background: var(--dark);
  color: var(--dark-muted);
  padding: 28px 32px 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr);
  gap: 24px;
  font-size: 13px;
}
.footer h2 { margin: 0 0 8px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--mono); font-weight: 500; color: var(--dark-muted); }
.footer a { display: block; color: var(--dark-text); text-decoration: none; padding: 2px 0; }
.footer a:hover { color: var(--amber); text-decoration: underline; }
.footer a:focus-visible { outline-color: var(--amber); }
.footer a[aria-current], .footer a.nav-within { color: var(--amber); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer .colophon { line-height: 1.5; }
.footer .colophon b { color: var(--dark-text); font-family: var(--serif); font-weight: 500; font-size: 16px; font-variation-settings: "opsz" 72; }
.footer .colophon p { margin: 4px 0 10px; }
.footer .colophon a { color: var(--amber); }

/* The instrument strip (pages/_strip.html): a page's own figures on the dark band, the
   headline in amber. The legacy control strip is form.strip, below; this is every other. */
.strip:not(form) {
  background: var(--dark-2);
  color: var(--dark-text);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  padding: 0 32px;
  border-top: 1px solid var(--dark-line);
}
.strip.n1 { grid-template-columns: minmax(0, 1fr) auto; }
.strip.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
.strip.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.strip.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.strip.n6 { grid-template-columns: repeat(6, minmax(0, 1fr)) auto; }
.strip:not(form) > a, .strip:not(form) > .cell {
  color: inherit;
  text-decoration: none;
  padding: 12px 18px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-right: 1px solid var(--dark-line);
  margin-right: 18px;
  min-width: 0;
}
.strip:not(form) > a:last-of-type, .strip:not(form) > .cell:last-of-type { border-right: 0; }
.strip:not(form) a { color: inherit; }
.strip:not(form) a:hover { color: var(--amber); }
.strip:not(form) a:focus-visible { outline-color: var(--amber); }
.strip .t { font-size: 11px; color: var(--dark-muted); letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--mono); text-decoration: none; }
.strip .v { font-family: var(--mono); font-size: 24px; line-height: 1.15; text-decoration: none; }
.strip .v.amber { color: var(--amber); }
.strip .s { font-size: 11px; color: var(--dark-muted); }
.strip .s a { color: var(--dark-muted); }
.strip .asof { margin: 0; align-self: center; font-size: 11px; color: var(--dark-muted); text-align: right; font-family: var(--mono); line-height: 1.5; }
.strip .asof a { color: var(--dark-text); text-decoration: underline; }

/* The filter bar: on pages where it narrows a figure (ADR-0050 decision 6). */
.filters { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; padding: 8px 32px; min-height: 42px; background: var(--paper); border-bottom: 1px solid var(--rule); font-size: 12px; }
.filters .g { display: flex; gap: 8px; align-items: center; border: 0; margin: 0; padding: 0; }
.filters .g .sc { font-size: 10px; }
.filters .r { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.seg { display: flex; flex-wrap: wrap; gap: 3px; }
.seg a, .seg label { white-space: nowrap; text-decoration: none; font-size: 11px; border: 1px solid var(--rule); border-radius: 3px; padding: 2px 7px; color: var(--ink-2); background: #fff; }
.seg a[aria-current], .seg label.on, .seg label:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* The page head (pages/_phead.html): kicker and siblings, the serif title, the lede. It wraps,
   so a long title never pushes the page sideways (ADR-0052, "The whole-round review", WB1). */
.phead { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 28px; padding: 26px 32px 18px; border-bottom: 1px solid var(--rule); }
.phead > div:first-child { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.phead h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 40px; letter-spacing: -0.015em; line-height: 1; font-variation-settings: "opsz" 72; overflow-wrap: break-word; }
.phead .lede { flex: 1 1 240px; margin: 0; max-width: 620px; color: var(--ink-2); font-size: 13px; }
.phead .sib { display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; font-size: 13px; margin-bottom: 6px; }
.phead .sib .sc { margin-right: 4px; }
.phead .sib a { text-decoration: none; color: var(--muted); }
.phead .sib a[aria-current] { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--amber); }
.phead .r { margin-left: auto; font-size: 12px; display: flex; gap: 14px; align-items: flex-end; }
.phead .r a { white-space: nowrap; }

/* The on-this-page bar (pages/_pagenav.html). */
.pagenav { display: flex; gap: 22px; padding: 0 32px; height: 40px; align-items: center; border-bottom: 1px solid var(--rule); font-size: 13px; background: #fff; position: sticky; top: 0; z-index: 5; }
.pagenav .sc { margin-right: -10px; white-space: nowrap; flex: none; }
.pagenav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; }
/* Every on-this-page target clears the sticky bar (40 px, 44 px or more on a phone), and so does
   every control focus moves to: with the margin on main's targets alone, Shift+Tab scrolled a
   link back into view under the bar (review C2). A margin on each, not html's scroll-padding:
   the padding adds to a target's margin, and an anchor then landed 96 px down (measured in
   Chromium, milestone 16 close). */
main [id] { scroll-margin-top: 48px; }
a, button, summary, input, select, textarea, [tabindex] { scroll-margin-top: 48px; }

/* Blocks: a section with a serif title and its note; hairlines between, never boxes. */
.blk { min-width: 0; }
.blk h2 { margin: 0 0 10px; font-family: var(--serif); font-weight: 500; font-size: 22px; font-variation-settings: "opsz" 72; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.blk h2 span { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--muted); }
.blk .fine { font-size: 12px; color: var(--muted); margin: 6px 0 0; }

/* Thin rows (an Event list): meta at the left, the headline and one line at the right. The
   meta lies beside the headline and the line under it (two rows of the grid): when its labels
   wrap to a second line (an "Unreviewed" badge beside the type and the date) the headline's
   row no longer grows to hold them, which left an empty line under the headline. */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding: 8px 0; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 2px 14px; align-items: baseline; }
.rows .m { font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; grid-column: 1; grid-row: 1 / span 2; flex-wrap: wrap; }
.rows h3 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; grid-column: 2; }
.rows h3 a, .ledger h3 a { text-decoration: none; }
.rows p { margin: 0; grid-column: 2; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows .tier, .ledger .tier { padding: 0 4px; border-radius: 0; font-size: 10px; }
.rows .tag, .ledger .tag { border: 1px solid var(--rule); padding: 0 6px; border-radius: 999px; font-size: 10px; white-space: nowrap; }

/* A ledger (a side column's stories): headline over source and date. */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { padding: 7px 0; border-bottom: 1px solid var(--hair); display: flex; flex-direction: column; gap: 2px; }
.ledger h3 { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.3; }
.ledger .m { font-size: 11px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 7px; }
.ledger .m a { color: var(--muted); }

/* Key-value lists and tables. */
.kv { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; font-size: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); padding: 4px 10px 6px 0; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.tbl td { padding: 6px 10px 6px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.tbl td.num, .tbl th.num { text-align: right; font-family: var(--mono); }
/* Positioned, so the hidden text in a cell (a short figure's full one) is held inside the
   scroller rather than placed against the page, widening it past a phone's screen (review N1:
   /economy/ at 390 px scrolled sideways to 658 px). */
.tbl-wrap { overflow-x: auto; position: relative; }
/* Every wrapper is a named region a keyboard can reach and scroll (tabindex="0" role="region"
   aria-label, the Launch's review, D2), with the site's own focus ring. */
.tbl-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The chrome on narrower screens: the bar folds into the sheet at 1100 px and narrower (ADR-0052
   decision 2 and its as-built amendment). Measured with the site's own faces, the brand, the
   seven items and the account links need 1,078 px (1,087 px for staff, with Admin and Sign out
   at the right) with the bar's 30 px between its three parts; the narrowest window that held
   the bar on one line was 1102 px. It folded below 960 px while the bar held five items. */
@media (max-width: 1100px) {
  .topbar { height: 56px; padding: 0 8px 0 16px; gap: 12px; justify-content: space-between; }
  /* The brand is a 44 px target, its text centred in it by its line (review C6): a block, not
     a flex box, so a name too long for the bar still ends in an ellipsis. */
  .brand { font-size: 19px; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 44px; min-height: 44px; }
  .topbar .nav, .topbar .right { display: none; }
  .sheet { display: block; }
}
/* Tablets: the as-of line takes a row of its own, so six-digit headlines keep their cells. */
@media (min-width: 761px) and (max-width: 1100px) {
  .strip:not(form) .asof { grid-column: 1 / -1; text-align: left; padding: 8px 0 0; }
  /* The head's links wrap rather than push the head past the screen (seen at 800 px). */
  .phead .r { flex-wrap: wrap; justify-content: flex-end; }
}
/* Narrow desktop windows, 1101 to 1199 px: Home's five cells and a strip of six (a country's,
   a sector's) keep the tablet's arrangement, the as-of line on a row of its own, so no figure
   runs past its cell. Room, and no rule on the text (ADR-0052, "The third reader", WC4). */
@media (min-width: 1101px) and (max-width: 1199px) {
  .home .strip.n5:not(form) .asof, .strip.n6:not(form) .asof { grid-column: 1 / -1; text-align: left; padding: 8px 0 0; }
}
/* Phones: one column, every control 44 px high or more (the strip's, the filter bar's
   segments, the page head's and the on-this-page bar's links included). */
@media (max-width: 760px) {
  .strip:not(form) { display: block; padding: 0 16px; }
  .strip:not(form) > a, .strip:not(form) > .cell {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 12px;
    margin: 0;
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid var(--dark-line);
  }
  .strip:not(form) .cell > a { display: inline-flex; align-items: center; min-height: 44px; }
  /* Text links in a list, a row, a cell or a note (a strip's sub-line and its Event count, a
     row's title over its sector, a ledger's headline over its outlets, the rows of a chart's
     table and the lists under one, a page head's lede): each a whole box 24 px high or more,
     no padding reaching a neighbour, its line growing to hold it (decision 74, ADR-0052
     decision 7: WCAG 2.2's Target Size (Minimum); they were 44 px boxes from milestone 16
     slice 7 to the review round). A control keeps 44 px: the rules around this one, and
     "change" below. Each page's own text links follow in pages.css. */
  .strip:not(form) .s a, .strip:not(form) .asof a,
  .rows h3 a, .rows p a, .ledger h3 a, .ledger .m a, .rows .story-tags a, .ledger .story-tags a,
  .table-equivalent td a, .table-equivalent th a, .table-equivalent li a, .phead .lede a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding-block: 0;
    margin-block: 0;
    box-sizing: border-box;
  }
  /* "change" opens the page's filters: a control, 44 px (an address within the page; the Event
     count beside it opens a list and is a text link). */
  .strip:not(form) .asof a[href^="#"] { min-height: 44px; }
  /* A headline's link leads a line its text may wrap from: the next line's text box reached 2 px
     up into the link's box, so the link keeps 2 px below it. */
  .rows h3 a, .ledger h3 a { margin-block: 0 2px; }
  /* A ledger's line under its headline: its figures centred on the 24 px link beside them. */
  .ledger .m { align-items: center; }
  .strip .v { font-size: 20px; }
  .strip .s { flex-basis: 100%; }
  .strip .asof { text-align: left; padding: 10px 0 12px; }
  .filters { padding: 8px 16px; }
  .filters .r { margin-left: 0; flex-basis: 100%; }
  .filters .g > label { display: inline-flex; align-items: center; min-height: 44px; }
  .seg a, .seg label { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; }
  .phead { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 16px 14px; }
  .phead h1 { font-size: 32px; }
  /* One column: the lede is as tall as its text (its 240 px is a column's width, not a height). */
  .phead .lede { flex: 0 1 auto; }
  .phead .sib { align-items: center; gap: 0 14px; }
  .phead .sib a, .phead .r a { display: inline-flex; align-items: center; min-height: 44px; }
  .phead .r { margin-left: 0; flex-wrap: wrap; align-items: center; }
  /* It scrolls sideways with no scrollbar of its own: a desktop window this narrow would add
     one under the links, making the bar taller than main [id]'s 48 px scroll margin. */
  .pagenav { padding: 0 16px; overflow-x: auto; height: auto; min-height: 44px; scrollbar-width: none; }
  .pagenav::-webkit-scrollbar { display: none; }
  .pagenav a { display: inline-flex; align-items: center; min-height: 44px; }
  .rows li { grid-template-columns: minmax(0, 1fr); }
  .rows .m, .rows h3, .rows p { grid-column: 1; }
  /* A row's one line wraps on a phone, so nothing clips its links' boxes. */
  .rows p { white-space: normal; overflow: visible; }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px 16px 36px; }
  .footer .colophon { grid-column: 1 / -1; }
  .footer a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  main.page { padding: 16px 16px 32px; gap: 24px; }
  body > form.strip { padding: 10px 16px; }
}
@media (max-width: 420px) {
  .brand { font-size: 17px; }
}
