/* Calibre, Q4 2026. The Automaton brand tokens, shared with the partners site. Dark only. */
:root {
  --bg: #0e0e12; --bg-lift: #15151c; --ink: #ebe6db; --ink-bright: #f5f1e8; --muted: #8d877c; --faint: #4f4a43;
  --hair: #2a2a32; --hair-bright: #3d3d46; --ember: #c47844; --azure: #7da4c8; --gutter: clamp(16px, 4vw, 56px);
  --display: "Playfair Display", Georgia, serif; --body: "EB Garamond", Georgia, serif;
  --label: Inter, system-ui, sans-serif; --mark: Cinzel, Georgia, serif;
  /* --faint is for rules and inactive marks only, never text: it is 2.2:1 on the surface */
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* no italics anywhere, in the text or the charts (publisher's rule); emphasis is carried by ink, not slant */
*, *::before, *::after, svg text, svg tspan { font-style: normal !important; font-synthesis: none; }
em, i { color: var(--ink-bright); }
/* figures draw as they arrive; the script holds the reading position itself, so the browser's own anchoring stays out */
html { background: var(--bg); scroll-padding-top: 72px; overflow-anchor: none; }
/* the skip link is the first stop on the page and shows itself only when focused */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--bg-lift); color: var(--ink-bright); border: 1px solid var(--azure);
  border-radius: 3px; font-family: var(--label); font-size: 13px; text-decoration: none; transition: top 0.15s; }
.skip:focus { top: 12px; outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
article:focus { outline: none; }
/* keyboard focus is always visible: a chart takes an azure ring, a mark inside it an azure outline */
.chart svg:focus-visible { outline: 1px solid var(--azure); outline-offset: 4px; border-radius: 2px; }
.chart .nav:focus { outline: none; }
.chart .nav:focus-visible { stroke: var(--azure); stroke-width: 1.5px; }
a:focus-visible, button:focus-visible, summary:focus-visible, .hm-head:focus-visible { outline: 1px solid var(--azure); outline-offset: 3px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 20px; line-height: 1.62;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
::selection { background: color-mix(in srgb, var(--ember) 40%, transparent); color: var(--ink-bright); }


/* ---------- cover: the brand black, the seal as a watermark cut off at the left, the masthead on the thirds ---------- */
.cover { position: relative; height: 100vh; height: 100svh; min-height: min(560px, 100svh); overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--hair); }
/* rule of thirds: the wheel is centred on the left third line and the middle of the page, whole, with clear margin
   above and below (no rim grazing an edge); the masthead hangs from the right third line. The wheel never grows past
   the room between the left edge and the type, so where the screen is narrow it bleeds off the left, never into the type */
.cover .watermark { position: absolute; --d: min(78svh, calc(66.667vw - 96px)); width: var(--d); height: var(--d);
  left: calc(33.333vw - var(--d) / 2); top: calc(50% - var(--d) / 2);
  opacity: 0.8; pointer-events: none; user-select: none; }
.cover-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; padding: 30px var(--gutter); }
.cover-top .wm { font-family: var(--mark); letter-spacing: 0.34em; text-transform: uppercase; font-size: 13px; color: var(--ink-bright); }
.cover-top .tag { margin-left: auto; font-family: var(--label); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
/* the title block's left edge sits on the right vertical third; the baseline of "Calibre" sits on the lower horizontal third */
.mast-top, .mast-bot { position: absolute; left: 66.667%; right: var(--gutter); }
.cover { --ts: min(5.9vw, 14svh); }
/* the baseline sits on the lower third where the screen is tall enough; on a short screen it rises just enough that the
   whole masthead, down to the date, clears the scroll cue (Quarterly, edition, title, and date take about 0.62ts + 210px) */
.cover { --base: max(33.333%, calc(var(--ts) * 0.62 + 220px)); }
.mast-top { bottom: var(--base); }
/* "Quarterly" hangs beneath "Automaton", so the baseline of the main word stays on the line */
.mast-bot { top: calc(100% - var(--base) + var(--ts) * 0.62 + 26px); }
.title .title2 { position: absolute; left: 0.06em; top: 100%; margin-top: 0.62em; font-family: var(--mark); font-size: 0.27em; line-height: 1; letter-spacing: 0.62em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.edition span { color: var(--muted); margin: 0 0.2em; }
.kicker { font-family: var(--label); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ember); margin: 0 0 26px; }
.kicker span { color: var(--muted); margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--hair-bright); }
.title { position: relative; font-family: var(--display); font-weight: 400; color: var(--ink-bright); font-size: var(--ts); line-height: 0.74; letter-spacing: -0.02em; margin: 0; white-space: nowrap; }
.edition { font-family: var(--mark); font-size: clamp(15px, 1.4vw, 20px); letter-spacing: 0.42em; color: var(--ember); margin: 18px 0 0; text-transform: uppercase; }
.cover .sub { font-family: var(--display); font-size: clamp(18px, 1.55vw, 24px); line-height: 1.3; color: var(--ink); margin: 14px 0 0; max-width: 17em; }
.date { font-family: var(--label); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--hair-bright); max-width: 260px; }
@media (max-width: 900px) {
  .cover .watermark { --d: 66svh; left: calc(var(--d) * -0.42); top: 5svh; opacity: 0.55; }
  .mast-top, .mast-bot { left: 16px; right: 16px; }
  .cover { --ts: min(18.5vw, 11svh); }
  .cover-top { padding: 22px 16px; }
}
@media (max-width: 900px) and (min-width: 600px) { .mast-top, .mast-bot { left: 33.333%; } .cover { --ts: min(10vw, 11svh); } }
/* phones: the seal stays a huge faint watermark cut off at the left edge, sized so its rim ends
   above the masthead instead of crossing it */
@media (max-width: 599px) { .cover .watermark { --d: min(52svh, 128vw, calc(100svh - max(33.333svh, var(--ts) * 0.62 + 220px) - var(--ts) * 0.8 - 3svh - 16px)); top: 3svh; } }
/* a quiet cue that the page continues below the cover */
.cover::after { content: ""; position: absolute; left: 50%; bottom: 22px; width: 9px; height: 9px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: translateX(-50%) rotate(45deg); opacity: 0.85; pointer-events: none; }

/* the lead headline beneath the cover */
article > h1 { font-family: var(--display); font-weight: 400; color: var(--ink-bright); font-size: clamp(38px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 22px; max-width: 16ch; }
p.dateline { font-family: var(--label); font-size: 11px; line-height: 1.6; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 44px; padding-top: 16px; border-top: 1px solid var(--hair-bright); max-width: 68ch; }
p.dateline em { font-style: normal; }

/* the closing dial */
.fig.coda { margin-top: 120px; }
.fig.coda .chart { max-width: 820px; margin: 0 auto; }
.fig.coda .chart + .legend, .fig.coda .legend { justify-content: center; }
.fig.coda .ftitle, .fig.coda .deck, .fig.coda .eyebrow { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- layout ---------- */
.wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 64px; padding: 72px var(--gutter) 120px; max-width: 1440px; margin: 0 auto; }
/* the rail scrolls inside itself when its entries outrun the screen: a thin scrollbar, and a fade at whichever edge has more */
nav.toc { position: sticky; top: 32px; align-self: start; max-height: calc(100vh - 56px); overflow: auto; font-family: var(--label); font-size: 12px;
  scrollbar-width: thin; scrollbar-color: var(--hair-bright) transparent; overscroll-behavior: contain; }
nav.toc.more-below { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent); }
nav.toc.more-above.more-below { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 36px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 36px, #000 calc(100% - 48px), transparent); }
nav.toc.more-above:not(.more-below) { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 36px); mask-image: linear-gradient(to bottom, transparent, #000 36px); }
nav.toc p { letter-spacing: 0.18em; text-transform: uppercase; color: var(--ember); margin: 0 0 14px; font-size: 11px; }
nav.toc a, .mn-list a { display: flex; align-items: baseline; color: var(--muted); text-decoration: none; padding: 5px 0 5px 12px; border-left: 1px solid var(--hair); line-height: 1.35; transition: color 0.2s, border-color 0.2s; }
nav.toc a.sub, .mn-list a.sub { padding-left: 24px; font-size: 11px; color: var(--muted); }
nav.toc a:hover, nav.toc a.on, .mn-list a.on { color: var(--ink-bright); border-left-color: var(--ember); }
nav.toc a .n, .mn-list a .n { flex: none; color: var(--muted); margin-right: 8px; font-variant-numeric: tabular-nums; }
nav.toc a.on .n, .mn-list a.on .n { color: var(--ember); }
.mobilenav { display: none; }
article { min-width: 0; counter-reset: sec fig; }
article > :not(.fig):not(.band):not(.stat):not(blockquote):not(.tablebox):not(h1) { max-width: 68ch; }
[hidden] { display: none !important; }
nav.toc a, .mn-list a { font-family: var(--label); font-style: normal; }
.band .chart svg { display: block; overflow: visible; max-width: 100%; }

/* ---------- text ---------- */
h2 { font-family: var(--display); font-weight: 400; color: var(--ink-bright); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.01em;
  margin: 112px 0 28px; padding-top: 30px; border-top: 1px solid var(--hair-bright); counter-increment: sec; text-wrap: balance; }
article > h2:first-child { margin-top: 0; }
h2::before { content: counter(sec, decimal-leading-zero); display: block; font-family: var(--label); font-size: 11px; letter-spacing: 0.24em; color: var(--ember); margin-bottom: 18px; }
h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; color: var(--ink-bright); font-size: 26px; line-height: 1.2; margin: 56px 0 14px; }
h4 { font-family: var(--label); font-weight: 500; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 36px 0 10px; }
p { margin: 0 0 1.05em; }
p.lede { font-size: 1.14em; line-height: 1.55; color: var(--ink-bright); }
p.lede::first-letter { float: left; font-family: var(--display); font-size: 4.6em; line-height: 0.82; padding: 0.06em 0.12em 0 0; color: var(--ember); }
strong { color: var(--ink-bright); font-weight: 500; }
/* footnote markers sit above the line without opening up its spacing */
sup { line-height: 0; vertical-align: baseline; position: relative; top: -0.45em; font-size: 0.7em; }
a { color: var(--azure); text-decoration-color: color-mix(in srgb, var(--azure) 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--ink-bright); }
ul, ol { padding-left: 1.2em; } li { margin: 6px 0; } li::marker { color: var(--ember); }
hr { border: 0; border-top: 1px solid var(--hair); margin: 56px 0; }
/* the sources: a small label per group, then one source per line, publisher first, ruled like a bibliography */
.sources { max-width: 68ch; }
.sources > p { margin: 40px 0 10px; }
.sources > p:first-child { margin-top: 8px; }
.sources > p strong { font-family: var(--label); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.sources ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hair); }
.sources li { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 0.86em; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.sources li a { color: var(--ink); text-decoration-color: var(--hair-bright); }
.sources li a:hover { color: var(--ink-bright); }
code { font-family: var(--label); font-size: 0.78em; background: var(--bg-lift); padding: 1px 6px; border-radius: 3px; }
blockquote { position: relative; margin: 64px 0; padding: 36px 0 36px clamp(0px, 6vw, 72px); border-top: 1px solid var(--hair-bright); border-bottom: 1px solid var(--hair-bright); max-width: 920px; }
blockquote::before { content: "\201C"; position: absolute; left: 0; top: 18px; font-family: var(--display); font-size: 96px; line-height: 1; color: var(--ember); }
blockquote p { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; color: var(--ink-bright); margin: 0; max-width: 30em; }
blockquote p + p { margin-top: 0.6em; }
@media (max-width: 700px) { blockquote { padding-top: 64px; } blockquote::before { top: 4px; } }
/* tables written in the report sit in their own box; headers and words wrap, numbers hold to one line */
.tablebox.md-table { overflow-x: auto; border: 1px solid var(--hair); border-radius: 4px; margin: 32px 0 40px; max-width: 1000px; }
.md-table table.data { font-size: 12.5px; }
.md-table table.data td { white-space: normal; }
.md-table table.data td:nth-child(2) { white-space: nowrap; }
/* beside a prose column, a list of names wraps rather than taking the width the prose needs */
.md-table.prose table.data td:nth-child(2):not(.long) { white-space: normal; min-width: 11ch; }
/* number and grade columns take only the room they need, so words get the rest and figures sit close together */
.md-table table.data th.num, .md-table table.data td.num, .md-table table.data th.ctr, .md-table table.data td.ctr { width: 1%; }
.md-table table.data td.num, .md-table table.data td.ctr { white-space: nowrap; }
.md-table table.data th.num, .md-table table.data td.num { padding-left: 20px; }
.md-table table.data td.num:first-child, .md-table table.data th.num:first-child { padding-left: 14px; padding-right: 16px; }
.md-table table.data td.long { white-space: normal; min-width: 260px; color: var(--ink); }
/* a table with no prose column is as wide as its content needs, not stretched to the box: stretching handed all the
   spare width to whichever column held words, and squeezed the figures beside it */
.tablebox.md-table:not(.prose) { width: fit-content; max-width: min(1000px, 100%); }
.tablebox.md-table.cards { width: auto; }
.md-table:not(.prose) table.data { width: auto; }
.md-table:not(.prose) table.data th.num, .md-table:not(.prose) table.data td.num,
.md-table:not(.prose) table.data th.ctr, .md-table:not(.prose) table.data td.ctr { width: auto; }
.md-table table.data td.num.numwrap { white-space: normal; max-width: 16ch; }

/* every data table: a header may wrap (a long numeric header takes two or three lines rather than widening its column),
   numbers stay on one line and right-aligned, grades centred */
table.data th { white-space: normal; vertical-align: bottom; line-height: 1.35; min-width: 6ch; }
table.data th.num { max-width: 16ch; text-align: right; }
table.data th.ctr, table.data td.ctr { text-align: center; }
table.data td.num { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
table.data td.left { text-align: left; white-space: normal; color: var(--muted); min-width: 16ch; }
/* on a phone the secondary columns step aside */
@media (max-width: 600px) {
  table.data .opt { display: none; }
  table.data td, table.data th { padding: 8px 9px; }
}
/* a table still too wide for its box becomes a stack of cards (set by the script): every row a block, every value
   labelled by its column, so nothing scrolls sideways at any width */
div.tablebox.cards { overflow: visible; border: 0; }
.tablebox.cards table.data, .tablebox.cards tbody { display: block; width: 100%; }
.tablebox.cards thead { display: none; }
.tablebox.cards tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 6px 18px; border: 1px solid var(--hair); border-radius: 4px; padding: 10px 14px; margin-bottom: 8px; background: var(--bg); }
.tablebox.cards table.data td { display: block; position: static; box-shadow: none; border: 0; padding: 0; white-space: normal; min-width: 0; text-align: left; background: none; }
.tablebox.cards table.data td:empty { display: none; }
.tablebox.cards table.data td::before { content: attr(data-label); display: block; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.tablebox.cards table.data td.wrap, .tablebox.cards table.data td.long, .tablebox.cards table.data td.left { grid-column: 1 / -1; }
.tablebox.cards table.data tr:last-child td { border: 0; }
.band h2, .band h3 { margin: 0 0 12px; border: 0; padding: 0; }
.band h2::before { display: none; }
.band .bcap { font-family: var(--label); font-size: 11.5px; line-height: 1.5; color: var(--muted); text-align: center; margin: 10px auto 0; max-width: 34em; }

/* ---------- stat ---------- */
.stat { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 12px 36px; margin: 56px 0; padding: 30px 0 32px; border-top: 1px solid var(--ember); border-bottom: 1px solid var(--hair); max-width: 920px; }
.stat .num { font-family: var(--label); font-weight: 300; font-size: clamp(64px, 8vw, 108px); line-height: 0.9; letter-spacing: -0.03em; color: var(--ink-bright); }
.stat .lbl { font-family: var(--body); font-size: 21px; line-height: 1.35; color: var(--ink); max-width: 26em; margin: 0 0 6px; }
@media (max-width: 600px) { .stat { grid-template-columns: 1fr; } }

/* ---------- figures ---------- */
.fig { margin: 64px 0 72px; padding-top: 22px; border-top: 1px solid var(--hair-bright); max-width: 920px; counter-increment: fig; position: relative; }
.fig.wide { max-width: none; }
.fig::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; border-top: 1px solid var(--ember); }
.fig .eyebrow { font-family: var(--label); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ember); margin: 0 0 12px; }
.fig .eyebrow span { color: var(--muted); }
.fig .ftitle { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; color: var(--ink-bright); margin: 0 0 8px; letter-spacing: -0.005em; text-transform: none; }
.fig .deck { font-family: var(--body); font-size: 18.5px; line-height: 1.45; color: var(--muted); margin: 0 0 20px; max-width: 60ch; }
.fig .chart { position: relative; min-height: 40px; }
.fig .chart svg { display: block; overflow: visible; max-width: 100%; }
.fig .chart.scroll { overflow-x: auto; }
.fig .chart .expand { margin-top: 16px; }
/* the frontier's component key describes columns drawn only on wide screens */
.fig.no-comps .legend .comp-key { display: none; }
.fig figcaption { display: block; }
.chart > p.nodata { font-family: var(--label); font-size: 11.5px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; max-width: 80ch; }
.fig .note { font-family: var(--label); font-size: 11.5px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; max-width: 80ch; }
.fig .foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--hair); }
.fig .src { flex: 1 1 320px; font-family: var(--label); font-size: 11px; line-height: 1.5; color: var(--muted); }
.fig .src b { font-weight: 500; color: var(--ink); letter-spacing: 0.06em; text-transform: uppercase; font-size: 10px; margin-right: 6px; }
.fig .toggle { font-family: var(--label); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); background: none; border: 1px solid var(--hair-bright);
  border-radius: 3px; padding: 7px 12px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.fig .toggle:hover { border-color: var(--ember); color: var(--ink-bright); }
.fig .toggle:focus-visible, .fig button:focus-visible { outline: 1px solid var(--azure); outline-offset: 3px; }
.fig .toggle[aria-expanded="true"] { border-color: var(--ember); color: var(--ember); }
/* a figure's source switch: the existing control style, the chosen source marked as an open toggle is */
.fig .views { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 16px; }
.fig .views .vlab { font-family: var(--label); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.fig .views .toggle[aria-pressed="true"] { border-color: var(--ember); color: var(--ember); cursor: default; }
/* a country band's named peers, under its figures */
.band .bpeers { font-family: var(--label); font-size: 12px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; max-width: 34em; }
.fig .tablebox { overflow-x: auto; margin-top: 14px; border: 1px solid var(--hair); border-radius: 4px; }
.fig .tablebox[hidden] { display: none; }
.fig .missing { font-family: var(--label); font-size: 12px; color: var(--muted); border: 1px dashed var(--hair-bright); padding: 16px; border-radius: 4px; }
table.data { border-collapse: collapse; width: 100%; font-family: var(--label); font-size: 12px; line-height: 1.4; }
table.data th { background: var(--bg-lift); color: var(--muted); text-align: left; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px;
  padding: 10px 12px; border-bottom: 1px solid var(--hair-bright); }
table.data td { padding: 8px 12px; border-bottom: 1px solid var(--hair); color: var(--ink); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { color: var(--ink-bright); }
table.data td.wrap { min-width: 18ch; color: var(--muted); }

/* legends */
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-family: var(--label); font-size: 11.5px; color: var(--muted); margin: 0 0 14px; }
/* an item moves to its own line before it breaks; only an item wider than the whole line wraps within itself */
.legend span { display: inline-flex; align-items: center; gap: 8px; white-space: normal; max-width: 100%; }
.legend svg { flex: none; overflow: visible; }
.legend span.grad { flex-wrap: wrap; gap: 6px 8px; max-width: 100%; }
.legend span.grad .glab { white-space: normal; }
.legend span.grad .ramp { gap: 8px; }

/* chart text and chrome */
.chart text, .dial text { font-family: var(--label); }
.ax text { fill: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.ax .domain { display: none; }
.ax line, .gridl { stroke: var(--hair); stroke-width: 1; shape-rendering: crispEdges; }
.axt { fill: var(--muted); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
/* row labels take the size each figure measures them at (its font-size attribute), so a long name never touches a mark */
.rowlab { fill: var(--ink); }
.rowlab.dim { fill: var(--muted); }
.vlab { fill: var(--ink); font-size: 11px; font-variant-numeric: tabular-nums; }
.vlab.dim { fill: var(--muted); }
.annot { fill: var(--muted); font-size: 10.5px; }
.annot.em { fill: var(--ink); }
/* a two-panel figure names each panel above it */
.panel-h { margin: 18px 0 2px; font-size: 13px; font-weight: 600; color: var(--ink); }
.panel-h:first-child { margin-top: 4px; }
/* an expanded list: its header band sticks (height 0, so it sits over the original), and it closes from the top too */
.fig .chart .stickyhead { position: sticky; top: 0; height: 0; z-index: 3; overflow: visible; pointer-events: none; }
.fig .chart .expand-top { margin: 0 0 12px; }
@media (max-width: 900px) { .fig .chart .stickyhead { top: 49px; } }
/* touch targets: every control is at least 44px tall, footnote markers 44px square */
.fig .toggle, .band .toggle, .fig .views button, .fig button.toggle { min-height: 44px; }
sup.fn a { display: inline-block; min-width: 24px; min-height: 24px; padding: 10px; margin: -10px; text-align: center; }
table.data td.nowrap { white-space: nowrap; }
.fig .abbrkey { font-family: var(--label); font-size: 11px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }
/* a long table that does not fit scrolls in its own box, header and first column held */
.tablebox.md-table.scrollbox { width: auto; max-height: 72vh; overflow: auto; -webkit-overflow-scrolling: touch; }
.tablebox.scrollbox table { border-collapse: separate; border-spacing: 0; }
.tablebox.scrollbox thead th { position: sticky; top: 0; z-index: 2; background: var(--bg-lift); }
.tablebox.scrollbox tbody td:first-child, .tablebox.scrollbox thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); box-shadow: 1px 0 0 var(--hair); }
.tablebox.scrollbox thead th:first-child { z-index: 3; background: var(--bg-lift); }
.tablebox.scrollbox td { min-width: 9em; }
.tablebox.scrollbox td:first-child { min-width: 7.5em; max-width: 9em; }
/* phones: no figure text under 11px */
@media (max-width: 600px) {
  .fig .eyebrow, .fig .src b, .fig .toggle, .fig .views .vlab, .ax text, .axt, .annot, .tip .th, .band .bk, .band dt,
  .band .foot .src b, .band .toggle, .kpis span, .lv-pillar h5 span, table.data th, .tablebox.cards table.data td::before,
  .kicker, .date { font-size: 11px; }
}
.hit { fill: transparent; cursor: default; outline: none; }
.hit:focus-visible { stroke: var(--azure); stroke-width: 1; }
.mk { transition: opacity 0.2s, filter 0.2s; }
.hov .mk { opacity: 0.32; }
.hov .mk.on { opacity: 1; filter: brightness(1.18); }
.hm-head { cursor: pointer; }
.hm-head:focus-visible rect { stroke: var(--azure); }

/* tooltip */
.tip { position: fixed; z-index: 50; pointer-events: none; min-width: 150px; max-width: 280px; background: rgba(21, 21, 28, 0.97); border: 1px solid var(--hair-bright);
  border-radius: 4px; padding: 10px 12px 9px; font-family: var(--label); font-size: 12px; line-height: 1.4; color: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); }
.tip .th { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tip .tr { display: grid; grid-template-columns: 12px auto 1fr; align-items: baseline; gap: 0 8px; margin: 2px 0; }
.tip .tr i { height: 2px; width: 12px; align-self: center; border-radius: 1px; }
.tip .tr b { font-weight: 600; color: var(--ink-bright); font-variant-numeric: tabular-nums; }
.tip .tr span { color: var(--muted); }
.tip .tn { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--hair); color: var(--muted); font-size: 11px; }

/* country band */
.band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 24px 48px; align-items: center; margin: 72px 0 36px; padding: 36px clamp(18px, 3vw, 40px);
  background: var(--bg-lift); border: 1px solid var(--hair); border-top: 1px solid var(--ember); border-radius: 2px; position: relative; max-width: 1060px; }
.band .bk { font-family: var(--label); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.band h3, .band .bname { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.02; color: var(--ink-bright); margin: 0 0 10px; letter-spacing: -0.015em; }
.band .bdeck { font-family: var(--body); font-size: 19px; color: var(--ink); margin: 0 0 24px; max-width: 34em; }
/* the four figures sit in a row that wraps, each as wide as its longest line, so no figure ever runs into the next */
.band dl { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 0; padding-top: 18px; border-top: 1px solid var(--hair-bright); }
.band dl div { display: flex; flex-direction: column-reverse; }
.band dt { font-family: var(--label); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.band dd { margin: 0; font-family: var(--label); font-weight: 300; font-size: 34px; line-height: 1; color: var(--ink-bright); }
/* the small line under a figure is its own line, so it never wraps against the number */
.band dd small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 6px; letter-spacing: 0.02em; white-space: nowrap; }
.band dl div.words dd { font-size: 20px; line-height: 1.2; }
.band .bradar { min-width: 0; }
.band .legend { margin: 6px 0 0; justify-content: center; }
.band .foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--hair); }
.band .foot .src { flex: 1 1 320px; font-family: var(--label); font-size: 11px; color: var(--muted); }
.band .foot .src b { font-weight: 500; color: var(--ink); letter-spacing: 0.06em; text-transform: uppercase; font-size: 10px; margin-right: 6px; }
.band .tablebox { grid-column: 1 / -1; }
.band .toggle { font-family: var(--label); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); background: none; border: 1px solid var(--hair-bright); border-radius: 3px; padding: 7px 12px; cursor: pointer; }
.band .toggle[aria-expanded="true"] { border-color: var(--ember); color: var(--ember); }
.band .tablebox { overflow-x: auto; border: 1px solid var(--hair); border-radius: 4px; }
.band .tablebox[hidden] { display: none; }
@media (max-width: 760px) {
  .band { grid-template-columns: 1fr; padding: 28px 18px; }
  .band dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* headline numbers above a chart */
.kpis { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 4px 0 22px; padding: 16px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.kpis div { display: flex; flex-direction: column; gap: 6px; }
.kpis b { font-family: var(--label); font-weight: 300; font-size: 36px; line-height: 1; color: var(--ink-bright); }
.kpis span { font-family: var(--label); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* the lever map: a typeset list grouped by pillar */
.levers { columns: 2 400px; column-gap: 48px; }
.lv-pillar { padding: 14px 0 6px; margin-bottom: 18px; border-top: 1px solid var(--hair-bright); break-inside: avoid; display: inline-block; width: 100%; }
.lv-pillar h5 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--ink-bright); }
.lv-pillar h5 span { font-family: var(--label); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lv-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 8px; padding: 9px 0; border-bottom: 1px solid #1b1b22; }
.lv-row:last-child { border-bottom: 0; }
.lv-mark { grid-row: span 2; padding-top: 3px; }
.lv-mark svg { display: block; }
.lv-name { font-family: var(--label); font-size: 13px; font-weight: 500; color: var(--ink); }
.lv-mech { font-family: var(--body); font-size: 16.5px; line-height: 1.45; color: var(--muted); }
.lv-row.off .lv-name { color: var(--muted); font-weight: 400; }
.lv-legend { margin-bottom: 18px; }

/* the heatmap's sort buttons */
.sortnote { font-family: var(--label); font-size: 11px; color: var(--muted); margin: -8px 0 12px; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.9s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .mk { transition: none; } }

footer { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px var(--gutter); border-top: 1px solid var(--hair); font-family: var(--label); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); text-align: center; }
footer .foot-seal { width: 120px; height: 120px; opacity: 1; display: block; margin: 0 auto 12px; }
footer .foot-sub { color: var(--muted); font-family: var(--display); text-transform: none; letter-spacing: 0; font-size: 15px; }

/* ---------- phones: the rail becomes a top menu ---------- */
@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; gap: 0; padding-top: 40px; }
  nav.toc { display: none; }
  body { font-size: 18.5px; }
  .mobilenav { display: block; position: sticky; top: 0; z-index: 30; background: rgba(14, 14, 18, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair); }
  .mobilenav summary { list-style: none; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 var(--gutter); cursor: pointer; font-family: var(--label); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
  .mobilenav summary::-webkit-details-marker { display: none; }
  .mobilenav summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s; }
  .mobilenav details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
  .mn-label { color: var(--ember); flex: none; }
  .mn-now { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.06em; text-transform: none; font-size: 12.5px; }
  .mn-list { max-height: 65vh; overflow: auto; padding: 4px var(--gutter) 18px; font-family: var(--label); font-size: 13px; }
  /* touch targets at least 44px tall */
  .mn-list a { padding: 9px 0 9px 12px; min-height: 44px; align-items: center; }
  h2 { margin-top: 88px; }
  .fig { margin: 48px 0 56px; }
}
/* print and save as PDF: every figure is drawn before printing (calibre.js, beforeprint); nothing waits on a reveal */
@media print {
  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  nav.toc, .mobilenav, .tip, .skip, .toggle, .expand { display: none !important; }
  .wrap { display: block !important; }
  .fig, .band, table { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
}
