/* ==========================================================================
   Underground History — theme stylesheet
   Built on base-theme (ipodscott/base-theme). The sections each block names
   in its block.json "style" are numbered below.

    1. Tokens, 1b. Fonts
    2. Base
    3. Layout primitives, buttons, tags
    4. Site header + menu
    5. Intro
    6. Page header
    7. Story cards
    8. Statement
    9. Timeline
   10. Story header + audio overview button
   11. Article
   12. Site footer
   13–20. Engine blocks restyled: full-width row, content, button list,
          jukebox, gallery, video, audio player, motion
   21–25. Interactive story blocks: explorer, chart, filterable table,
          fact cards, callout; 26. Sources
   ========================================================================== */


/* 1. Tokens ----------------------------------------------------------------- */

:root {
	color-scheme: dark;

	/* colour */
	--c-page:        #121110;
	--c-surface:     #1d1c1b;
	--c-surface-2:   #201e1d;
	--c-ink:         #f3f2f2;
	--c-ink-inverse: #f3f2f2;
	--c-muted:       rgb(243 242 242 / 0.65);
	--c-red:         #370606;
	--c-red-600:     #4a0c0c;
	--c-red-700:     #5e1414;
	--c-hi:          #d0707c;        /* links, years, kickers */
	--c-hi-hover:    #e8a0a8;
	--c-accent:      var(--c-red);
	--c-accent-dark: var(--c-red-600);
	--c-rule:        rgb(243 242 242 / 0.18);
	--c-rule-inverse: rgb(243 242 242 / 0.18);
	--c-track:       #1d1c1b;
	--c-track-hover: #2a2827;
	--c-track-line:  #2d2b2b;
	--c-track-line-hover: #4a4646;
	--c-track-active: var(--c-red);

	/* type */
	--f-body:    "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-display: "Oswald", "Arial Narrow", sans-serif;
	--fs-xs:   0.6875rem;  /* 11px */
	--fs-sm:   0.875rem;   /* 14px */
	--fs-base: 1.0625rem;  /* 17px */
	--fs-caption: 0.8125rem;
	--fs-h2:   1.5rem;
	--fs-h1:   2rem;
	--lh-body: 1.6;
	--lh-heading: 1.05;

	/* space */
	--gap-xs: 4px;
	--gap-sm: 8px;
	--gap-md: 16px;
	--gap-lg: 32px;
	--gutter: 24px;
	--wrap:   1320px;
	--measure: 720px;

	/* shape */
	--radius: 0;
	--shadow: 0 0 30px rgb(0 0 0 / 0.6);

	/* motion */
	--t-fast: 0.3s;
	--t-slow: 0.8s;

	/* set by menu.js: the header's height, for sticky bars below it */
	--header-h: 0px;
	--header-offset: 0px;
}


/* 1b. Fonts — Oswald and Archivo, variable, self-hosted (SIL OFL; from @fontsource-variable) */

@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 200 700;
	font-display: swap;
	src: url("../fonts/Oswald-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 200 700;
	font-display: swap;
	src: url("../fonts/Oswald-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/Archivo-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/Archivo-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: "Archivo";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/Archivo-latin-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: "Archivo";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/Archivo-latin-ext-italic.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}


/* 2. Base ------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-offset) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--c-page);
	color: var(--c-ink);
	font-family: var(--f-body);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--c-hi); text-underline-offset: 0.18em; }
a:hover { color: var(--c-hi-hover); }

h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 400;
	line-height: var(--lh-heading);
	margin: 0;
	text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--c-hi); outline-offset: 2px; }

.grayscale { filter: grayscale(1) contrast(1.05); }

.skip-link {
	position: absolute;
	left: 8px;
	top: -60px;
	z-index: 100;
	padding: 10px 14px;
	background: var(--c-ink);
	color: var(--c-page);
	font-weight: 700;
	text-decoration: none;
}
.skip-link:focus { top: 8px; }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}


/* 3. Layout primitives, buttons, tags --------------------------------------- */

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section { position: relative; }

.eyebrow {
	margin: 0 0 12px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-hi);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 14px 16px;
	border: 1px solid var(--c-rule);
	background: transparent;
	color: var(--c-ink);
	font: 700 0.9375rem/1.2 var(--f-body);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn:hover { color: var(--c-ink); border-color: var(--c-ink); }
.btn--primary { background: var(--c-red); border-color: var(--c-red); }
.btn--primary:hover { background: var(--c-red-600); border-color: var(--c-red-600); }
.btn--primary:active { background: var(--c-red-700); }
.btn--invert { background: var(--c-page); border-color: var(--c-page); }
.btn--invert:hover { background: #000; border-color: #000; }
.btn--wide { min-width: 240px; justify-content: space-between; }
.btn__arrow { font-weight: 400; }

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

.text-link {
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--c-hi);
	text-decoration: none;
	white-space: nowrap;
}
.text-link:hover { color: var(--c-hi-hover); }

.tag {
	display: inline-block;
	padding: 3px 10px;
	border: 1px solid currentColor;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.5;
}
.tag--fill { background: var(--c-red); border-color: var(--c-red); }

.section-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: end;
	gap: 16px;
	padding: 40px 0 20px;
}
.section-head__title { font-size: clamp(2rem, 4vw, 3.25rem); }


/* 4. Site header + menu ----------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: var(--c-page);
	border-bottom: 1px solid var(--c-rule);
	transition: transform var(--t-fast) ease;
}
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__bar {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 16px;
}

.site-header__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 6px;
	padding: 16px 24px 16px 0;
	border-right: 1px solid var(--c-rule);
	color: inherit;
	text-decoration: none;
}
.site-header__brand img { width: min(260px, 58vw); height: auto; }

.tagline {
	font-size: var(--fs-xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.menu-btn {
	position: relative;
	align-self: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--c-rule);
	background: none;
	color: var(--c-ink);
	cursor: pointer;
	transition: border-color var(--t-fast), color var(--t-fast);
}
.menu-btn:hover { border-color: var(--c-hi); color: var(--c-hi); }
.menu-btn span {
	position: absolute;
	left: 12px;
	width: 20px;
	height: 2px;
	background: currentColor;
	transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 27px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.menu {
	border-top: 1px solid var(--c-rule);
	background: var(--c-surface);
	max-height: calc(100vh - var(--header-h));
	max-height: calc(100dvh - var(--header-h));
	overflow-y: auto;
}
.menu[hidden] { display: none; }

.menu__list {
	list-style: none;
	margin-block: 0;
	padding-block: 24px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	column-gap: 16px;
	counter-reset: menu;
}
.menu__list a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px 14px 0;
	border-top: 1px solid var(--c-rule);
	color: inherit;
	text-decoration: none;
	counter-increment: menu;
}
.menu__list a::before {
	content: counter(menu, decimal-leading-zero);
	font-size: var(--fs-xs);
	letter-spacing: 0.08em;
	color: var(--c-muted);
}
.menu__list a span { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.menu__list a:hover, .menu__list a[aria-current] { color: var(--c-hi); }


/* 5. Intro ------------------------------------------------------------------ */

.intro { border-bottom: 1px solid var(--c-rule); }
.intro__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
}
.intro__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 28px;
	padding: 64px 40px 48px 0;
}
.intro__title {
	font-size: clamp(2.5rem, 5vw, 4.75rem);
	line-height: 0.95;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}
.intro__lede { font-size: 1.1875rem; line-height: 1.5; max-width: 560px; margin: 0; }
.intro__media {
	margin: 0;
	min-height: 460px;
	border-left: 1px solid var(--c-rule);
	border-right: 1px solid var(--c-rule);
	background: var(--c-surface-2);
}

.intro__media img { width: 100%; height: 100%; object-fit: cover; }
.intro--text-only .intro__inner { grid-template-columns: 1fr; }

@media (max-width: 960px) {
	.intro__text { padding-right: 0; }
	.intro__media { border-left: 0; min-height: 0; aspect-ratio: 4 / 3; margin-inline: calc(var(--gutter) * -1); }
}


/* 6. Page header ------------------------------------------------------------ */

.page-header { padding: 56px 0 32px; }
.page-header__title {
	font-size: clamp(3.25rem, 8vw, 7rem);
	line-height: 0.88;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}
.page-header__title--huge { font-size: clamp(4rem, 11vw, 11rem); line-height: 0.85; }
.page-header__text { max-width: var(--measure); font-size: 1.1875rem; margin: 24px 0 0; }
.page-header__text + .page-header__text { margin-top: 1em; }


/* 7. Story cards ------------------------------------------------------------ */

.story-grid { border-bottom: 1px solid var(--c-rule); }
.story-grid__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(max(260px, calc(100% / var(--cols, 3) - 24px)), 1fr));
	column-gap: 24px;
	border-top: 1px solid var(--c-rule);
}
.story-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px 0 40px;
	color: inherit;
	text-decoration: none;
}
.story-card__image {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	background: var(--c-surface-2);
}
.story-card__year { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.02em; color: var(--c-hi); }
.story-card__title { font-size: 1.5rem; letter-spacing: -0.01em; transition: color var(--t-fast); }
.story-card:hover .story-card__title { color: var(--c-hi); }

/* Card and timeline pictures sit in black and white, and come into color on hover or keyboard focus. */
.story-card__image,
.timeline__image { transition: filter var(--t-fast) ease; }
.story-card:hover .story-card__image,
.story-card:focus-visible .story-card__image,
.timeline__link:hover .timeline__image,
.timeline__link:focus-visible .timeline__image { filter: none; }


/* 8. Statement -------------------------------------------------------------- */

.statement--red { background: var(--c-red); }
.statement--dark { background: #000; }
.statement--surface { background: var(--c-surface); }
.statement__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 40px;
	padding-block: 72px;
}
.statement__title { font-size: clamp(2.5rem, 5.5vw, 5rem); line-height: 0.95; }
.statement__body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; font-size: 1.125rem; line-height: 1.55; }
.statement__body p { margin: 0; }


/* 9. Timeline --------------------------------------------------------------- */

.timeline { padding-bottom: 80px; }
.timeline__filter {
	position: sticky;
	top: var(--header-offset);
	z-index: 10;
	background: var(--c-page);
	border-block: 1px solid var(--c-rule);
	transition: top var(--t-fast) ease;
}
.timeline__eras {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.timeline__era {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	margin-right: 16px;
	padding: 14px 16px 14px 0;
	border: 0;
	border-right: 1px solid var(--c-rule);
	background: none;
	color: var(--c-ink);
	font: 800 0.9375rem/1.3 var(--f-body);
	text-align: left;
	cursor: pointer;
}
.timeline__era:hover { color: var(--c-hi-hover); }
.timeline__era[aria-pressed="true"] { color: var(--c-hi); }
.timeline__era:disabled { opacity: 0.35; cursor: default; }
.timeline__count { font-size: 0.75rem; font-weight: 400; opacity: 0.6; }

.timeline__list { list-style: none; margin-block: 0; }
.timeline__entry[hidden] { display: none; }
.timeline__link {
	display: grid;
	grid-template-columns: minmax(140px, 1.1fr) minmax(0, 3fr) minmax(140px, 1.2fr);
	gap: 32px;
	padding: 28px 0;
	border-bottom: 1px solid var(--c-rule);
	color: inherit;
	text-decoration: none;
	transition: background var(--t-fast);
}
.timeline__link:hover { background: var(--c-surface); }
.timeline__when { display: flex; flex-direction: column; gap: 4px; }
.timeline__year {
	font-size: clamp(1.75rem, 3.4vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--c-hi);
}
.timeline__span { font-size: 0.8125rem; font-weight: 600; opacity: 0.6; }
.timeline__body { display: flex; flex-direction: column; gap: 10px; }
.timeline__title { font-size: clamp(1.375rem, 2.2vw, 1.875rem); }
.timeline__excerpt { margin: 0; font-size: 0.9375rem; line-height: 1.6; max-width: 640px; opacity: 0.82; }
.timeline__more { font-size: 0.8125rem; font-weight: 800; color: var(--c-hi); }
.timeline__image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--c-surface-2); }
.timeline__empty { padding-block: 40px; color: var(--c-muted); }

@media (max-width: 760px) {
	.timeline__link { grid-template-columns: 1fr; gap: 14px; }
	.timeline__when { flex-direction: row; align-items: baseline; gap: 12px; }
	.timeline__image { order: -1; }
	.timeline__eras { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; }
}


/* 10. Story header + audio overview button ---------------------------------- */

.story-header {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;          /* text sits at the bottom; the picture fills the space above */
	min-height: 75vh;
	min-height: 75svh;                  /* phones: the visible height, not counting the browser bars */
	background: #000;
	border-bottom: 1px solid var(--c-rule);
	overflow: hidden;
}
.story-header__bg {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
}
.story-header__video { width: 100%; height: 100%; object-fit: cover; }
.story-header__bg[data-parallax] {   /* taller than the header, so the moving edge never shows (as the Hazzard Labs hero) */
	top: -10%;
	height: 120%;
	will-change: transform;
}
.story-header__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: clamp(80px, 12vw, 160px);
	padding-bottom: 40px;
}
.story-header__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.story-header__title {
	font-size: clamp(2.5rem, 5vw, 4.75rem);   /* same as the home page's h1 */
	line-height: 0.95;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	text-shadow: 0 2px 24px rgb(0 0 0 / 0.5);
}
.story-header__subtitle { margin: 0; max-width: 720px; font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 600; line-height: 1.3; }

.audio-btn {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
	padding: 10px 16px 10px 12px;
	border: 1px solid rgb(243 242 242 / 0.5);
	background: rgb(0 0 0 / 0.35);
	color: var(--c-ink);
	font: 600 0.75rem/1.2 var(--f-body);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background var(--t-fast), border-color var(--t-fast);
}
.audio-btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.audio-btn:hover { background: var(--c-red); border-color: var(--c-red); }
.audio-btn[aria-pressed="true"] { background: var(--c-red); border-color: var(--c-red); }
.audio-btn.is-playing svg { animation: audio-pulse 1.2s ease-in-out infinite; }
@keyframes audio-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .audio-btn.is-playing svg { animation: none; } }


/* 11. Article --------------------------------------------------------------- */

.article__inner {
	display: grid;
	grid-template-columns: minmax(180px, 260px) minmax(0, 940px);
	gap: 64px;
}
.article--no-toc .article__inner { grid-template-columns: minmax(0, 940px); }

.article__aside { padding-top: 48px; }
.article__toc {
	position: sticky;
	top: calc(var(--header-offset) + 24px);
	border-top: 1px solid var(--c-rule);
	transition: top var(--t-fast) ease;
	max-height: calc(100vh - var(--header-offset) - 48px);
	overflow-y: auto;
	scrollbar-width: thin;
}
.article__toc-label { margin: 0; padding: 10px 0; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; }
.article__toc ol { list-style: none; margin: 0; padding: 0; }
.article__toc a {
	display: grid;
	grid-template-columns: 28px 1fr;
	padding: 7px 0;
	border-top: 1px solid var(--c-rule);
	font-size: 0.8125rem;
	line-height: 1.35;
	color: var(--c-ink);
	text-decoration: none;
}
.article__toc a:hover { color: var(--c-hi); }
.article__toc a.is-current { color: var(--c-hi); font-weight: 800; }
.article__toc-n { opacity: 0.55; }

.article__body {
	padding: 48px 0 96px;
	font-size: 1.125rem;
	line-height: 1.7;
	min-width: 0;
}
.article__body > :first-child { margin-top: 0; }

@media (max-width: 600px) { .lead { font-size: 1.1875rem !important; } }
.lead { font-size: 1.375rem; line-height: 1.5; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 24px; }
.note { font-size: 0.8125rem; opacity: 0.6; margin-top: 8px; }

.article__body h2.heading { font-size: 2.25rem; margin: 56px 0 16px; padding-top: 16px; border-top: 1px solid var(--c-rule); }
.article__body h3.heading { font-size: 1.3125rem; margin: 32px 0 12px; }
.article__body h4.heading { font-size: 1.0625rem; margin: 24px 0 8px; font-family: var(--f-body); font-weight: 800; }

.section-title { margin: 56px 0 8px; padding-top: 16px; border-top: 1px solid var(--c-rule); }
.article__body > .section-title:first-child { border-top: 0; padding-top: 0; }
.section-title__kicker { margin: 0 0 4px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-hi); }
.section-title--large .section-title__title { font-size: 2.25rem; }
.section-title--label { margin-bottom: 16px; }
.section-title--label .section-title__title {
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-hi);
}

.list { margin: 0 0 1em; padding-left: 1.4em; }
.list li { margin-bottom: 0.35em; }
.list li::marker { color: var(--c-hi); }
.list ul, .list ol { margin-top: 0.35em; }

.quote {
	margin: 48px 0;
	padding: 32px;
	background: var(--c-red);
	font-size: 1.5rem;
	line-height: 1.35;
	font-weight: 800;
	letter-spacing: -0.015em;
}
.quote p:last-of-type { margin-bottom: 0; }
.quote cite {
	display: block;
	margin-top: 16px;
	font-size: 0.8125rem;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.table {
	width: 100%;
	margin: 8px 0 0;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.45;
}
@media (max-width: 700px) {
	.table { display: block; overflow-x: auto; }
}
.table caption { caption-side: top; text-align: left; padding-bottom: 8px; font-family: var(--f-display); font-size: 1.3125rem; }
.table th, .table td { padding: 10px 16px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-rule); }
.table th { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.table td:first-child { font-weight: 800; }

.article__body .figure { margin: 32px 0; }
.article__body .figure img, .article__body > img, .article__body > a > img { width: 100%; }
.figure figcaption { margin-top: 8px; font-size: 0.8125rem; font-weight: 600; }
.article__body .video, .article__body .gallery, .article__body .jukebox { margin-block: 32px; }
.article__body .rule { border: 0; border-top: 1px solid var(--c-rule); margin: 48px 0; }

@media (max-width: 900px) {
	.article__inner { grid-template-columns: 1fr; gap: 0; }
	.article__aside { padding-top: 24px; }
	.article__toc { position: static; max-height: none; }
	.article__toc ol { columns: 2 200px; column-gap: 24px; }
	.article__toc li { break-inside: avoid; }
}


/* 12. Site footer ----------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--c-rule); }
.site-footer__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	align-items: end;
	gap: 24px;
	padding-block: 32px;
	font-size: 0.8125rem;
}
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: inherit; text-decoration: none; }
.site-footer__brand img { width: min(240px, 70vw); height: auto; }
.site-footer__text { opacity: 0.65; }
.site-footer__link { justify-self: start; font-weight: 800; text-decoration: none; }


/* 13. Full-width row --------------------------------------------------------- */
/* Same content as a panel, across the page. Light: dark text on white.
   Dark: light text on black, or over a background image/video and its dim. */

.band {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: calc(var(--gap-lg) * 2) var(--gap-lg);
	background-color: var(--c-surface);
	color: var(--c-ink);
}

.band--dark {
	--c-rule: var(--c-rule-inverse);
	background-color: var(--c-page);
	color: var(--c-ink-inverse);
}

.band--screen {
	min-height: 100vh;
	min-height: 100svh;
}

.band__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.band__dim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: #0a0a0a;
	opacity: var(--dim, 0.6);
}

.band__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: var(--measure);
	margin-inline: auto;
}

.band--wide .band__inner { max-width: 1100px; }
.band--full .band__inner { max-width: none; }

.band--center .band__inner {
	align-items: center;
	text-align: center;
}

.band--center .band__inner > * { max-width: 100%; }


@media (max-width: 781px) {
	.band {
		padding: var(--gap-lg) var(--gap-md);
	}
}


/* 14. Content ---------------------------------------------------------------- */

.heading {
	margin-bottom: var(--gap-sm);
	font-size: var(--fs-h2);
}

.rule {
	width: 100%;
	margin: 0 0 var(--gap-sm);
	border: 0;
	border-bottom: 1px solid var(--c-rule);
}

.prompt {
	margin-bottom: var(--gap-sm);
	font-size: var(--fs-sm);
}

.prompt strong {
	font-weight: 700;
}

.media-frame {
	border-radius: 6px;
	box-shadow: 0 0 20px rgb(0 0 0 / 0.3);
}


/* 15. Button list ------------------------------------------------------------ */

.btn-list {
	display: flex;
	flex-direction: column;
	gap: var(--gap-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}



.btn-list .btn { width: 100%; }
.btn--inline { align-self: flex-start; }


/* 16. Jukebox --------------------------------------------------------------- */

.jukebox {
	display: flex;
	flex-direction: column;
	gap: var(--gap-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.jukebox .track {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--c-track-line);
	background-color: var(--c-track);
	color: var(--c-ink-inverse);
	font-size: var(--fs-xs);
	letter-spacing: 0.1em;
	line-height: 1.1;
	text-align: left;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color var(--t-fast);
}

.jukebox .track:hover,
.jukebox .track:focus-visible {
	background-color: var(--c-track-hover);
	border-color: var(--c-track-line-hover);
	color: #fff;
}

.jukebox .track:focus-visible {
	outline: 2px solid var(--c-track-active);
	outline-offset: 2px;
}

/* Active (selected) track — playing or paused. */
.jukebox .track[aria-pressed="true"] {
	background-color: #1c1c1c;
	border-color: var(--c-track-active);
	box-shadow: inset 4px 0 0 var(--c-track-active);
	color: #fff;
	font-weight: 600;
}

.jukebox .track[aria-pressed="true"]:hover {
	background-color: #262626;
}

.jukebox .track svg {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	fill: currentColor;
	transition: fill var(--t-fast);
}

.jukebox .track[aria-pressed="true"] svg {
	fill: #fff;
}

/* Audio actually running (set by jukebox.js on play/pause). */
.jukebox .track.is-playing svg {
	animation: track-pulse 1.2s ease-in-out infinite;
}

@keyframes track-pulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
	.track,
	.track svg { transition: none; }
	.track.is-playing svg { animation: none; }
}


/* 17. Gallery --------------------------------------------------------------- */

.gallery {
	display: flex;
	flex-wrap: wrap;
	background-color: #000;
}

/* Filler: soaks up the free space on the last row so an orphan thumbnail
   keeps the same width as the rest instead of stretching full-bleed. */
.gallery::after {
	content: "";
	flex: 999 1 480px;
}

.gallery__item {
	display: flex;
	flex: 1 1 480px;
	position: relative;
	z-index: 0;
	overflow: hidden;
}

.gallery__item img {
	width: 100%;
	height: auto;
	aspect-ratio: 1024 / 585;
	object-fit: cover;
	object-position: center top;
	transition: opacity var(--t-fast);
}

.gallery__item:hover,
.gallery__item:focus-visible {
	z-index: 1;
}

.gallery__item:hover img,
.gallery__item:focus-visible:not([data-quiet-focus]) img {
	opacity: 0.6;
}

/* Lightbox (js/gallery.js) — a native <dialog> sized to the viewport */
.lightbox-open {
	overflow: hidden;
}

.lightbox {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	overflow: hidden;
}

.lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox::backdrop {
	background-color: rgb(0 0 0 / 0.85);
}

.lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--gap-sm);
	max-width: calc(100vw - 140px);
	margin: 0;
}

.lightbox__img {
	max-width: 100%;
	max-height: calc(100vh - 120px);
	max-height: calc(100dvh - 120px);
	width: auto;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 0 30px #000;
	opacity: 0;
	transition: opacity var(--t-fast);
	user-select: none;
	touch-action: pan-y;
}

.lightbox__img.is-loaded {
	opacity: 1;
}

.lightbox__caption {
	max-width: 70ch;
	font-size: var(--fs-sm);
	text-align: center;
}

.lightbox__count {
	position: absolute;
	top: 22px;
	left: 50%;
	margin: 0;
	font-size: var(--fs-sm);
	letter-spacing: 0.1em;
	transform: translateX(-50%);
}

.lightbox__btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgb(0 0 0 / 0.32);
	cursor: pointer;
	transition: background-color var(--t-fast);
}

.lightbox__btn:hover,
.lightbox__btn:focus-visible {
	background-color: rgb(0 0 0 / 0.7);
}

.lightbox__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.lightbox__btn svg {
	width: 28px;
	height: 28px;
	fill: #fff;
}

.lightbox__btn[hidden] {
	display: none;
}

.lightbox__prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__close { top: 12px;   right: 12px; }

@media (max-width: 781px) {
	.lightbox__figure {
		max-width: calc(100vw - 24px);
	}
	.lightbox__prev,
	.lightbox__next {
		top: auto;
		bottom: 16px;
		transform: none;
	}
}


/* 18. Video ----------------------------------------------------------------
   blocks/video, js/video.js. The frame keeps its shape with aspect-ratio;
   --ratio is "w / h", so it also works inside calc() for the lightbox. */

.video {
	--ratio: 16 / 9;
	margin: 0 0 var(--gap-md);
}

.video__frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: var(--ratio);
	background-color: #000;
}

.video--framed .video__frame {
	border-radius: 6px;
	box-shadow: 0 0 20px rgb(0 0 0 / 0.3);
}

.video__media,
.video__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

video.video__media {
	object-fit: contain;
	background-color: #000;
}

.video__poster {
	object-fit: cover;
	transition: transform var(--t-fast), opacity var(--t-fast);
}

.video__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
}

.video__play::after {                     /* light dim so the icon reads on any poster */
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgb(0 0 0 / 0.2);
	transition: background-color var(--t-fast);
}

.video__title {
	position: absolute;
	left: var(--gap-md);
	right: var(--gap-md);
	bottom: var(--gap-md);
	z-index: 1;
	font-family: var(--f-display);
	font-size: var(--fs-caption);
	line-height: var(--lh-heading);
	text-align: left;
}

.video__icon {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(48px, 16%, 88px);
	aspect-ratio: 1;
	border: 2px solid rgb(255 255 255 / 0.85);
	border-radius: 50%;
	background-color: rgb(0 0 0 / 0.35);
	box-shadow: 0 0 18px rgb(0 0 0 / 0.6);
	transition: transform var(--t-fast), background-color var(--t-fast);
}

.video__icon svg {
	width: 46%;
	margin-left: 8%;                     /* optical centre of the triangle */
	fill: #fff;
}

.video__play:hover::after,
.video__play:focus-visible::after {
	background-color: rgb(0 0 0 / 0.05);
}

.video__play:hover .video__icon,
.video__play:focus-visible .video__icon {
	background-color: var(--c-accent);
	transform: scale(1.08);
}

.video__play:hover .video__poster {
	transform: scale(1.02);
}

.video__play:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.video__caption {
	margin-top: var(--gap-sm);
	font-size: var(--fs-sm);
}

/* Lightbox player. Fits the window both ways from the ratio alone:
   as wide as allowed, unless that would make it too tall. */
.video-lightbox__frame {
	position: relative;
	width: min(100vw - 140px, (100vh - 140px) * var(--ratio));
	width: min(100vw - 140px, (100dvh - 140px) * var(--ratio));
	aspect-ratio: var(--ratio);
	overflow: hidden;
	border-radius: 6px;
	background-color: #000;
	box-shadow: 0 0 30px #000;
}

.video-lightbox__frame > iframe,
.video-lightbox__frame > video {
	position: absolute;
	background-color: #000;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 781px) {
	.video-lightbox__frame {
		width: min(100vw - 24px, (100vh - 120px) * var(--ratio));
		width: min(100vw - 24px, (100dvh - 120px) * var(--ratio));
	}
}

@media (prefers-reduced-motion: reduce) {
	.video__poster,
	.video__icon {
		transition: none;
	}
	.video__play:hover .video__poster,
	.video__play:hover .video__icon,
	.video__play:focus-visible .video__icon {
		transform: none;
	}
}


/* 19. Audio player ---------------------------------------------------------- */
/* The shared footer player (jukebox.js + Plyr): slides up from the bottom when
   a track or the audio overview plays; minimise tucks it into the speaker
   button at the right; close stops it. */

.player {
	position: fixed;
	left: 0;
	bottom: -95px;
	z-index: 998;
	width: 100%;
	opacity: 0;
	pointer-events: none;
	transition: bottom var(--t-fast), opacity var(--t-fast);
	user-select: none;
}

.player.is-open {
	bottom: 24px;
	opacity: 1;
	pointer-events: auto;
}

.player__box {
	position: relative;
	width: calc(100% - 40px);
	max-width: 860px;
	margin: 0 auto;
}

.player__controls {
	position: absolute;
	top: -29px;
	right: 0;
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 4px;
	background-color: #000;
	border: 1px solid var(--c-rule);
	border-bottom: 0;
}

.player__controls button {
	display: flex;
	padding: 3px 6px;
	border: 0;
	background: none;
	cursor: pointer;
	transition: background-color var(--t-fast);
}

.player__controls button:hover,
.player__controls button:focus-visible { background-color: var(--c-red); }

.player__controls svg { width: 28px; height: 14px; fill: var(--c-ink); }

/* Plyr skin */
.player .plyr {
	--plyr-color-main: var(--c-hi);
	--plyr-range-track-height: 3px;
	--plyr-range-thumb-height: 12px;
	--plyr-audio-controls-background: #000;
	--plyr-audio-control-color: var(--c-ink);
	--plyr-audio-control-color-hover: var(--c-ink);
	--plyr-audio-control-background-hover: var(--c-red);
	--plyr-audio-progress-buffered-background: rgb(243 242 242 / 0.25);
	--plyr-font-family: var(--f-body);
	min-width: 0;
}

.player .plyr--audio .plyr__controls {
	padding: 8px 12px;
	border: 1px solid var(--c-rule);
	border-radius: 0;
	background-color: #000;
	box-shadow: 0 8px 30px rgb(0 0 0 / 0.6);
}

.player .plyr__control { border-radius: 0; }
.player .plyr__time { color: var(--c-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.player .plyr__menu,
.player .plyr__volume { display: none !important; }

/* Restore button when the player is minimised */
.player-mini {
	position: fixed;
	right: -60px;
	bottom: 24px;
	z-index: 998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--c-rule);
	background-color: #000;
	cursor: pointer;
	transition: right var(--t-slow), background-color var(--t-fast);
}

.player-mini.is-visible { right: 20px; }
.player-mini:hover,
.player-mini:focus-visible { background-color: var(--c-red); }
.player-mini svg { width: 22px; height: 22px; fill: var(--c-ink); }


/* 20. Motion ---------------------------------------------------------------- */

/* Elements marked .reveal fade in when they enter the viewport (js/effects.js).
   Without JS they're simply visible — the hidden state only applies once
   effects.js has added .js-reveal to <html>. */
.js-reveal .reveal {
	opacity: 0;
	transition: opacity var(--t-slow);
}

.js-reveal .reveal.is-visible {
	opacity: 1;
}

/* Page-to-page fade: a cross-document view transition. Both pages opt in
   (they share this stylesheet), so following a link cross-fades the old page
   into the new one. Browsers without support navigate as they always have;
   nobody who prefers reduced motion gets it. */
@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}

	::view-transition-old(root),
	::view-transition-new(root) {
		animation-duration: 0.4s;
		animation-timing-function: ease;
	}
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--t-fast: 0s;
		--t-slow: 0s;
	}
	html {
		scroll-behavior: auto;
	}
	.js-reveal .reveal {
		opacity: 1;
	}
}


/* ==========================================================================
   Interactive story blocks — explorer, chart, filterable table, fact cards,
   callout. Shared bits first.
   ========================================================================== */

:root { --c-cool: #8aa4b8; }

.article__body .explorer,
.article__body .chart,
.article__body .filter-table,
.article__body .stats,
.article__body .callout { margin-block: 32px; }

.block-title {
	margin: 0 0 8px;
	font-family: var(--f-display);
	font-size: 1.3125rem;
}
.block-intro { margin: 0 0 16px; font-size: 0.875rem; color: var(--c-muted); }

.verdict {
	display: inline-block;
	margin-left: 10px;
	padding: 2px 8px;
	border: 1px solid currentColor;
	font-family: var(--f-body);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-transform: uppercase;
	vertical-align: middle;
	white-space: nowrap;
}
.verdict--yes { color: #9fc5a8; }
.verdict--no { color: var(--c-hi); }
.verdict--neutral { color: var(--c-muted); }

.chip {
	padding: 6px 12px;
	border: 1px solid var(--c-rule);
	background: none;
	color: var(--c-ink);
	font: 700 0.8125rem/1.3 var(--f-body);
	cursor: pointer;
	transition: border-color var(--t-fast), background var(--t-fast);
}
.chip:hover { border-color: var(--c-ink); }
.chip[aria-pressed="true"] { background: var(--c-red); border-color: var(--c-red); }


/* 21. Explorer -------------------------------------------------------------- */

.explorer__body { display: grid; gap: 24px; }

/* Before interactive.js: every panel in turn, each with a rule above. */
.explorer:not(.is-ready) .explorer__panel + .explorer__panel { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--c-rule); }

.explorer--list.is-ready .explorer__body { grid-template-columns: minmax(200px, 5fr) minmax(0, 7fr); align-items: start; }

.explorer__nav { display: flex; flex-direction: column; gap: 6px; }
.explorer--tabs .explorer__nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.explorer--steps .explorer__nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 8px;
}
.explorer__nav[hidden] { display: none; }

.explorer__group {
	margin: 12px 0 2px;
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-hi);
}
.explorer__group:first-child { margin-top: 0; }
.explorer__group.is-cool { color: var(--c-cool); }

.explorer__tab {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--c-rule);
	background: var(--c-surface);
	color: var(--c-ink);
	font: inherit;
	font-size: 0.875rem;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	transition: background var(--t-fast), border-color var(--t-fast);
}
.explorer__tab:hover { border-color: var(--c-ink); }
.explorer__tab[aria-selected="true"] { background: var(--c-red); border-color: var(--c-red); }
.explorer__tab.is-cool[aria-selected="true"] { background: #23313d; border-color: var(--c-cool); }
.explorer--tabs .explorer__tab { width: auto; padding: 8px 14px; font-weight: 700; }
.explorer__tab .verdict { margin: 6px 0 0; }

.explorer__name { font-family: var(--f-display); font-size: 1.0625rem; }
.explorer--tabs .explorer__name { font-family: var(--f-body); font-size: 0.875rem; }
.explorer__kicker {
	margin: 0;
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-hi);
}
[aria-selected="true"] .explorer__kicker { color: var(--c-ink); opacity: 0.8; }
.explorer__sub { margin: 0; font-size: 0.8125rem; color: var(--c-muted); }
[aria-selected="true"] .explorer__sub { color: rgb(243 242 242 / 0.85); }

.explorer__panel {
	padding: 24px;
	border: 1px solid var(--c-rule);
	background: var(--c-surface);
	font-size: 1rem;
	line-height: 1.65;
}
.explorer:not(.is-ready) .explorer__panel { padding: 0; border: 0; background: none; }
.explorer__panel:focus-visible { outline-offset: -2px; }
.explorer__head { margin-bottom: 16px; }
.explorer__title { font-size: 1.625rem; }
.explorer__head .explorer__sub { margin-top: 4px; }
.explorer__quote {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-left: 3px solid var(--c-hi);
	background: var(--c-page);
	font-style: italic;
	font-size: 1.0625rem;
}
.explorer__panel.is-cool .explorer__quote { border-left-color: var(--c-cool); }
.explorer__panel p:last-child { margin-bottom: 0; }
.explorer__note {
	margin-top: 16px;
	padding: 12px 14px;
	border: 1px solid rgb(208 112 124 / 0.4);
	background: rgb(55 6 6 / 0.45);
	font-size: 0.875rem;
}
.explorer__note strong { color: var(--c-hi); }

.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.compare__col { padding: 16px; border: 1px solid var(--c-rule); background: var(--c-page); }
.compare__col--a { border-top: 3px solid var(--c-hi); }
.compare__col--b { border-top: 3px solid var(--c-cool); }
.compare__label { margin: 0 0 8px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-hi); }
.compare__col--b .compare__label { color: var(--c-cool); }

@media (max-width: 760px) {
	.explorer--list.is-ready .explorer__body { grid-template-columns: 1fr; }
	.explorer__panel { padding: 18px; }
}


/* 22. Chart ----------------------------------------------------------------- */

.chart {
	margin-inline: 0;
	padding: 20px;
	border: 1px solid var(--c-rule);
	background: var(--c-surface);
}
.chart__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.chart__title { margin: 0; font-weight: 800; font-size: 0.9375rem; }
.chart__views { display: flex; flex-wrap: wrap; gap: 6px; }
.chart__views[hidden] { display: none; }
.chart__view {
	padding: 6px 12px;
	border: 1px solid var(--c-rule);
	background: none;
	color: var(--c-ink);
	font: 700 0.8125rem/1.3 var(--f-body);
	cursor: pointer;
}
.chart__view:hover { border-color: var(--c-ink); }
.chart__view[aria-pressed="true"] { background: var(--c-red); border-color: var(--c-red); }
.chart__canvas { position: relative; height: 340px; }
.chart--short .chart__canvas { height: 260px; }
.chart--tall .chart__canvas { height: 440px; }
.chart:not(.is-ready) .chart__canvas { display: none; }
.chart__caption {
	margin-top: 12px;
	padding: 10px 12px;
	background: var(--c-page);
	border: 1px solid var(--c-rule);
	font-size: 0.8125rem;
	line-height: 1.5;
	color: rgb(243 242 242 / 0.85);
}
.chart__data { margin-top: 12px; font-size: 0.8125rem; }
.chart__data summary { cursor: pointer; color: var(--c-muted); font-weight: 600; }
.chart__data summary:hover { color: var(--c-ink); }
.chart:not(.is-ready) .chart__data { margin-top: 0; }
.chart__data .table { margin-top: 8px; font-size: 0.8125rem; }
.chart__data .table td:first-child { font-weight: 400; }
.chart__data-view { margin: 12px 0 0; font-weight: 700; }

@media (max-width: 600px) {
	.chart { padding: 14px; }
	.chart__canvas, .chart--short .chart__canvas { height: 300px; }
}


/* 23. Filterable table ------------------------------------------------------ */

.filter-table__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.filter-table__head .block-title { margin: 0; }
.filter-table__filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-table__filters[hidden] { display: none; }
.table-scroll { overflow-x: auto; border: 1px solid var(--c-rule); }
.table--matrix { margin: 0; font-size: 0.875rem; }
.table--matrix th, .table--matrix td { padding: 12px 14px; }
.table--matrix thead th { background: var(--c-surface); }
.table--matrix tbody th { font-family: var(--f-display); font-weight: 400; font-size: 1.0625rem; letter-spacing: 0; text-transform: none; opacity: 1; white-space: nowrap; }
.table--matrix td:first-child { font-weight: 400; }
.table--matrix td:last-child { background: rgb(255 255 255 / 0.03); color: var(--c-ink); font-weight: 600; }
.table--matrix tr[hidden] { display: none; }
.filter-table__sub { display: block; margin-top: 2px; font-family: var(--f-body); font-size: 0.75rem; font-weight: 700; color: var(--c-hi); }
@media (max-width: 700px) { .table--matrix { display: table; min-width: 760px; } }


/* 24. Fact cards ------------------------------------------------------------ */

.stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(max(200px, calc(100% / var(--cols, 4) - 16px)), 1fr));
	gap: 12px;
}
.stats__item { padding: 16px; border: 1px solid var(--c-rule); background: var(--c-surface); }
.stats__label { margin: 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-hi); }
.stats__item.is-cool .stats__label { color: var(--c-cool); }
.stats__value { margin: 4px 0 0; font-family: var(--f-display); font-size: 1.75rem; line-height: 1.1; }
.stats__text { margin: 6px 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--c-muted); }


/* 25. Callout --------------------------------------------------------------- */

.callout { padding: 18px 20px; border: 1px solid var(--c-rule); border-left: 3px solid var(--c-hi); background: var(--c-surface); font-size: 0.9375rem; line-height: 1.6; }
.callout--red { background: var(--c-red); border-color: var(--c-red); }
.callout__label { margin: 0 0 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-hi); }
.callout--red .callout__label { color: var(--c-ink); opacity: 0.8; }
.callout__title { margin: 0 0 8px; font-family: var(--f-display); font-size: 1.375rem; line-height: 1.2; }
.callout p:last-child { margin-bottom: 0; }
.callout__quote { margin: 12px 0 0; padding: 10px 12px; background: rgb(0 0 0 / 0.25); font-style: italic; font-size: 0.875rem; }


/* 26. Sources --------------------------------------------------------------- */

.article__body .sources { margin-top: 56px; }
.sources .section-title { margin-top: 0; }
.sources .note { margin: 0 0 12px; }
.sources__list {
	margin: 0;
	padding-left: 2.2em;
	font-size: 0.875rem;
	line-height: 1.6;
	columns: 2 320px;
	column-gap: 40px;
}
.sources__list li { margin-bottom: 6px; break-inside: avoid; overflow-wrap: anywhere; }
.sources__list li::marker { color: var(--c-muted); font-variant-numeric: tabular-nums; }
