/* IMAT Prep — www.imatprep.com. One stylesheet, no framework.
   The portal's look (paper and pen, navy buttons, the house font), made bolder: this is the shop window.
   Colours are the portal's tokens (Portal/web/src/app.css). Gold is the IMAT 2027 Portal Pass ticket's alone. */

/* ── THE HOUSE FONT. Futura where the device has it (Apple), else Jost IMAT, our own copy of Jost with Futura's
   single-storey "a" and line spacing (SIL OFL, fonts/Jost-OFL.txt). Two weights, as Futura has: Medium, Heavy. */
@font-face {
	font-family: 'Jost IMAT';
	font-style: normal;
	font-weight: 400 500;
	font-display: swap;
	src: url('/assets/fonts/JostIMAT-Medium-3704.woff2') format('woff2');
}
@font-face {
	font-family: 'Jost IMAT';
	font-style: normal;
	font-weight: 600 900;
	font-display: swap;
	src: url('/assets/fonts/JostIMATHeavy-Regular-3704.woff2') format('woff2');
}

/* ── TOKENS ─────────────────────────────────────────────────────────────────────────────────────────────── */
:root {
	color-scheme: light;
	--paper: #faf7f0; /* the page */
	--sheet: #fffefa; /* a sheet on it */
	--exam: #ffffff; /* the IMAT paper */
	/* the words are navy, not black (his 02/12/2026, 20:57) */
	--ink: #1c2f4e;
	--ink-soft: #4b5b77;
	--ink-faint: #6b7a93;
	--line: #e2dbcd;
	--line-strong: #cfc6b8;
	--navy: #1c2f4e;
	--navy-soft: #e9eef6;
	--pen: #c00000; /* the tutor's red pen: rings and ticks, never a button */
	--water: #00508f; /* links */
	--ok: #1e6b45;
	--button: #1c2f4e;
	--on-button: #ffffff;
	--button-hover: #13213a;
	--bubble: #1c2f4e; /* a filled answer on the sheet */
	--band: #1c2f4e; /* the bold navy band */
	--on-band: #faf7f0;
	--on-band-soft: #b8c3d6;
	--band-card: #24395c;
	--shadow: 0 1px 2px rgba(20, 40, 30, 0.06), 0 6px 24px rgba(20, 40, 30, 0.07);
	--shadow-lift: 0 2px 4px rgba(20, 40, 30, 0.06), 0 18px 48px rgba(28, 47, 78, 0.16);
	/* THE PASS, FULLY GOLD (the portal's PassButton): a gold face with a soft metal light, a deeper edge, dark words. */
	--gold-1: #c99a2e;
	--gold-2: #ebcd77;
	--gold-3: #d4a83f;
	--gold-1h: #b98a20;
	--gold-2h: #dcbb5c;
	--gold-3h: #c49830;
	--gold-edge: #7a5a08;
	--gold-ink: #1d1606;

	/* THE COLOUR CODE (batch 145), for states only — the scoring page's marks, worked example and guess chart, the dates
	   not announced yet: green = right / gains, red = wrong / costs, grey = blank / not known. Nowhere else. */
	--right: #1e6b45;
	--wrong: #c43a3a;
	--blank: #7d8799;
	/* THE PAPER'S FIVE SECTIONS (batch 145: the 60-strip, the syllabus's subject blocks). Checked with a colour-blindness
	   validator for neighbours on the strip; every section is also named, so the colour is never read alone. No green, red,
	   grey or gold among them (those are the states' and the Pass's). Biology is the sheet's own ink, as a filled bubble. */
	--sec-read: #1a8bc0;
	--sec-logic: #6c55d9;
	--sec-bio: #1c2f4e;
	--sec-chem: #a8428f;
	--sec-physmath: #3157c8;

	--font: Futura, 'Futura PT', 'Jost IMAT', 'Century Gothic', 'Avenir Next', 'Trebuchet MS', sans-serif;
	/* 1280, not 1200 (02/12/2026): the top bar's airy spacing, which he likes, measured in Futura on his Mac needs 1200px
	   to the pixel, and the bold name of the page you are on pushed it over ("berserk"). 80px more for everything keeps the
	   bar and the page lined up. */
	--wrap: 1280px;
	--gutter: clamp(20px, 4vw, 40px);
	--radius: 10px;
	--band-pad: clamp(64px, 9vw, 128px);
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) {
		color-scheme: dark;
		/* the dark look is the brand's navy, as on the share pictures (his 02/12/2026, 20:56: "I liked a less dark
		   blue"); the bands go a shade deeper so they still stand apart. Every text colour ≥ 4.5:1 on paper and sheet. */
		--paper: #1c2f4e;
		--sheet: #243a5e;
		--exam: #243a5e;
		--ink: #faf7f0;
		--ink-soft: #c3cede;
		--ink-faint: #9aaac3;
		--line: #2f4870;
		--line-strong: #3f5c88;
		--navy: #a9c4ee;
		--navy-soft: #2a426a;
		--pen: #ff8a8a;
		--water: #9cc2f2;
		--ok: #6fd8a4;
		--button: #faf7f0;
		--on-button: #1c2f4e;
		--button-hover: #ffffff;
		--bubble: #9cc2f2;
		--band: #13213a;
		--on-band: #faf7f0;
		--on-band-soft: #b8c3d6;
		--band-card: #1f3354;
		--shadow: 0 1px 2px rgba(6, 14, 28, 0.45), 0 6px 24px rgba(6, 14, 28, 0.35);
		--shadow-lift: 0 2px 4px rgba(6, 14, 28, 0.45), 0 18px 48px rgba(6, 14, 28, 0.5);
		--gold-1: #b88a26;
		--gold-2: #dcbc66;
		--gold-3: #c2972f;
		--gold-1h: #c99a2e;
		--gold-2h: #ebcd77;
		--gold-3h: #d4a83f;
		--right: #6fd8a4;
		--wrong: #ff8f8f;
		--blank: #8f9fbb;
		--sec-read: #1fb0d0;
		--sec-logic: #9b7ff0;
		--sec-bio: #f3ede0;
		--sec-chem: #e06cb0;
		--sec-physmath: #5b8af0;
	}
}
:root[data-theme='dark'] {
	color-scheme: dark;
	/* the dark look is the brand's navy, as on the share pictures (his 02/12/2026, 20:56: "I liked a less dark
	   blue"); the bands go a shade deeper so they still stand apart. Every text colour ≥ 4.5:1 on paper and sheet. */
	--paper: #1c2f4e;
	--sheet: #243a5e;
	--exam: #243a5e;
	--ink: #faf7f0;
	--ink-soft: #c3cede;
	--ink-faint: #9aaac3;
	--line: #2f4870;
	--line-strong: #3f5c88;
	--navy: #a9c4ee;
	--navy-soft: #2a426a;
	--pen: #ff8a8a;
	--water: #9cc2f2;
	--ok: #6fd8a4;
	--button: #faf7f0;
	--on-button: #1c2f4e;
	--button-hover: #ffffff;
	--bubble: #9cc2f2;
	--band: #13213a;
	--on-band: #faf7f0;
	--on-band-soft: #b8c3d6;
	--band-card: #1f3354;
	--shadow: 0 1px 2px rgba(6, 14, 28, 0.45), 0 6px 24px rgba(6, 14, 28, 0.35);
	--shadow-lift: 0 2px 4px rgba(6, 14, 28, 0.45), 0 18px 48px rgba(6, 14, 28, 0.5);
	--gold-1: #b88a26;
	--gold-2: #dcbc66;
	--gold-3: #c2972f;
	--gold-1h: #c99a2e;
	--gold-2h: #ebcd77;
	--gold-3h: #d4a83f;
	--right: #6fd8a4;
	--wrong: #ff8f8f;
	--blank: #8f9fbb;
	--sec-read: #1fb0d0;
	--sec-logic: #9b7ff0;
	--sec-bio: #f3ede0;
	--sec-chem: #e06cb0;
	--sec-physmath: #5b8af0;
}

/* ── BASE ───────────────────────────────────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	background: var(--paper);
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 500 18px/1.55 var(--font);
	font-kerning: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
@media (max-width: 640px) {
	body {
		font-size: 17px;
	}
}
img,
svg {
	display: block;
	max-width: 100%;
}
img {
	height: auto;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
figure,
blockquote {
	margin: 0;
}
h1,
h2,
h3,
h4 {
	font-weight: 800;
	line-height: 1.12;
	text-wrap: balance;
}
p,
li {
	text-wrap: pretty;
}
a {
	color: var(--water);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
a:hover {
	text-decoration-thickness: 2px;
}
b,
strong {
	font-weight: 800;
}
:focus-visible {
	outline: 3px solid var(--water);
	outline-offset: 3px;
	border-radius: 4px;
}
.vh {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 50;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--button);
	color: var(--on-button);
	font-weight: 800;
	text-decoration: none;
}
.skip:focus {
	top: 12px;
}
.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ── BUTTONS ────────────────────────────────────────────────────────────────────────────────────────────── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 2px solid transparent;
	border-radius: 8px;
	font: 800 17px/1.2 var(--font);
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	white-space: nowrap;
}
.btn-lg {
	min-height: 58px;
	padding: 0 30px;
	font-size: 19px;
}
.btn-sm {
	min-height: 42px;
	padding: 0 18px;
	font-size: 16px;
}
.btn-navy {
	background: var(--button);
	color: var(--on-button);
}
.btn-navy:hover {
	background: var(--button-hover);
	text-decoration: none;
}
.btn-line {
	border-color: currentColor;
	color: var(--ink);
	background: transparent;
}
.btn-line:hover {
	background: var(--navy-soft);
	text-decoration: none;
}
.btn-paper {
	background: var(--on-band);
	color: #1c2f4e;
}
.btn-paper:hover {
	background: #ffffff;
	text-decoration: none;
}

/* THE TICKET — the IMAT 2027 Portal Pass, as the portal draws it (PassButton.svelte): an admission ticket, a round
   notch bitten out of each short side, a perforated line between the stub (the key) and the words. Fully gold. */
.ticket {
	--n: 10px;
	--t: 5px;
	--sx: 58px;
	--e: 1.5px;
	--r: 6px;
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: stretch;
	min-height: 58px;
	max-width: 100%;
	border-radius: var(--r);
	color: var(--gold-ink);
	text-decoration: none;
	font-weight: 800;
	font-size: 18px;
	line-height: 1.25;
}
.ticket:hover {
	text-decoration: none;
}
.ticket .edge,
.ticket .face {
	position: absolute;
	z-index: -1;
	pointer-events: none;
}
.ticket .edge {
	inset: 0;
	border-radius: var(--r);
	background: var(--gold-edge);
	-webkit-mask:
		radial-gradient(circle var(--n) at 0 50%, #0000 97%, #000),
		radial-gradient(circle var(--n) at 100% 50%, #0000 97%, #000),
		radial-gradient(circle var(--t) at var(--sx) 0, #0000 97%, #000),
		radial-gradient(circle var(--t) at var(--sx) 100%, #0000 97%, #000);
	-webkit-mask-composite: source-in;
	mask:
		radial-gradient(circle var(--n) at 0 50%, #0000 97%, #000),
		radial-gradient(circle var(--n) at 100% 50%, #0000 97%, #000),
		radial-gradient(circle var(--t) at var(--sx) 0, #0000 97%, #000),
		radial-gradient(circle var(--t) at var(--sx) 100%, #0000 97%, #000);
	mask-composite: intersect;
}
.ticket .face {
	inset: var(--e);
	border-radius: calc(var(--r) - var(--e));
	background: linear-gradient(100deg, var(--gold-1) 0%, var(--gold-2) 46%, var(--gold-3) 100%);
	-webkit-mask:
		radial-gradient(circle calc(var(--n) + var(--e)) at calc(0px - var(--e)) 50%, #0000 97%, #000),
		radial-gradient(circle calc(var(--n) + var(--e)) at calc(100% + var(--e)) 50%, #0000 97%, #000),
		radial-gradient(circle calc(var(--t) + var(--e)) at calc(var(--sx) - var(--e)) calc(0px - var(--e)), #0000 97%, #000),
		radial-gradient(circle calc(var(--t) + var(--e)) at calc(var(--sx) - var(--e)) calc(100% + var(--e)), #0000 97%, #000);
	-webkit-mask-composite: source-in;
	mask:
		radial-gradient(circle calc(var(--n) + var(--e)) at calc(0px - var(--e)) 50%, #0000 97%, #000),
		radial-gradient(circle calc(var(--n) + var(--e)) at calc(100% + var(--e)) 50%, #0000 97%, #000),
		radial-gradient(circle calc(var(--t) + var(--e)) at calc(var(--sx) - var(--e)) calc(0px - var(--e)), #0000 97%, #000),
		radial-gradient(circle calc(var(--t) + var(--e)) at calc(var(--sx) - var(--e)) calc(100% + var(--e)), #0000 97%, #000);
	mask-composite: intersect;
}
.ticket:hover .face {
	background: linear-gradient(100deg, var(--gold-1h) 0%, var(--gold-2h) 46%, var(--gold-3h) 100%);
}
.ticket .stub {
	flex: 0 0 var(--sx);
	display: grid;
	place-items: center;
	padding-left: calc(var(--n) - 3px);
	margin: calc(var(--t) + 3px) 0;
	border-right: 2px dashed rgba(29, 22, 6, 0.4);
	color: var(--gold-edge);
}
.ticket .words {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 10px calc(var(--n) + 16px) 10px 16px;
	text-align: center;
	text-wrap: balance;
}
@media (forced-colors: active) {
	.ticket {
		border: 2px solid LinkText;
	}
}

/* ── THE TOP BAR ────────────────────────────────────────────────────────────────────────────────────────── */
/* ⚠ IT STAYS ON SCREEN as you scroll, as the portal's does (the teacher, 02/12/2026, 21:21: "the top bar disappears as we
   slide down the page … keep the bar like the portal"). Every place a link jumps to stops below it (scroll-margin). */
.top {
	position: sticky;
	top: 0;
	z-index: 40;
	border-bottom: 1px solid var(--line);
	background: var(--paper);
}
:target,
section[id],
h2[id] {
	scroll-margin-top: 96px;
}
/* A jump within the page is a visible glide, not a cut (21:21: "not even evident we slide down the page"); never for
   someone who has asked their computer for less motion. */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}
.top-in {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 76px;
}
.brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	color: var(--navy);
	text-decoration: none;
	border-radius: 6px;
}
:root[data-theme='dark'] .brand,
:root[data-theme='dark'] .foot-brand {
	color: var(--on-band);
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) .brand,
	:root:not([data-theme='light']) .foot-brand {
		color: var(--on-band);
	}
}
/* The logo: one drawing (the portal's), coloured by the text colour, so it follows the theme. */
.logo {
	display: block;
	width: 150px;
	aspect-ratio: 1801 / 534;
	background: currentColor;
	-webkit-mask: url('/assets/img/logo.svg') no-repeat center / contain;
	mask-image: url('/assets/img/logo.svg');
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
}
@media (forced-colors: active) {
	.logo {
		forced-color-adjust: none;
		background: CanvasText;
	}
}
.nav {
	display: flex;
	gap: 6px;
	margin-right: auto;
}
.nav a {
	/* one line each, always: a name broken over two lines threw the whole bar out (21:21, "goes berserk") */
	white-space: nowrap;
	padding: 8px 10px;
	border-radius: 6px;
	color: var(--ink);
	font-size: 16px;
	text-decoration: none;
}
.nav a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}
.nav a[aria-current='page'] {
	font-weight: 800;
	text-decoration: underline;
	text-decoration-color: var(--pen);
	text-decoration-thickness: 2px;
	text-underline-offset: 7px;
}
.top-doors {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
}
.top-doors .signin,
.top-doors .btn {
	white-space: nowrap;
}
.top-doors .signin {
	color: var(--ink);
	font-size: 16px;
	font-weight: 800;
	text-decoration: none;
	padding: 8px 4px;
}
.top-doors .signin:hover {
	text-decoration: underline;
}
.theme {
	display: none;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	place-items: center;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: var(--sheet);
	color: var(--ink);
	cursor: pointer;
}
.js .theme {
	display: inline-grid;
}
.theme .moon {
	display: block;
}
.theme .sun {
	display: none;
}
:root[data-theme='dark'] .theme .moon {
	display: none;
}
:root[data-theme='dark'] .theme .sun {
	display: block;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) .theme .moon {
		display: none;
	}
	:root:not([data-theme='light']) .theme .sun {
		display: block;
	}
}
/* The phone's menu: a plain <details>, so it opens without JavaScript. */
.menu {
	display: none;
	position: relative;
}
.menu summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	font-size: 16px;
	font-weight: 800;
	list-style: none;
	cursor: pointer;
}
.menu summary::-webkit-details-marker {
	display: none;
}
.menu-list {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 20;
	display: grid;
	min-width: 230px;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--sheet);
	box-shadow: var(--shadow-lift);
}
.menu-list a {
	padding: 11px 12px;
	border-radius: 6px;
	color: var(--ink);
	text-decoration: none;
}
.menu-list a:hover {
	background: var(--navy-soft);
}
.menu-list .sep {
	height: 1px;
	margin: 6px 4px;
	background: var(--line);
}
@media (max-width: 1360px) {
	.nav {
		display: none;
	}
	.menu {
		display: block;
	}
	.top-doors {
		gap: 10px;
	}
}
@media (max-width: 640px) {
	.top-in {
		gap: 10px;
		min-height: 64px;
	}
	.logo {
		width: 118px;
	}
	.top-doors .signin {
		display: none;
	}
	.top-doors .btn-sm {
		min-height: 40px;
		padding: 0 14px;
		font-size: 15px;
	}
	.menu summary {
		min-height: 40px;
		padding: 0 12px;
	}
	.theme {
		width: 40px;
		height: 40px;
		flex-basis: 40px;
	}
}
@media (max-width: 420px) {
	.top-in,
	.top-doors {
		gap: 8px;
	}
	.logo {
		width: 104px;
	}
	.top-doors .btn-sm {
		padding: 0 12px;
	}
	.menu summary {
		padding: 0 10px;
	}
}
@media (max-width: 360px) {
	.logo {
		width: 88px;
	}
	.top-doors .btn-sm {
		padding: 0 9px;
		font-size: 14px;
	}
	.theme {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
	}
}

/* ── TYPE IN SECTIONS ───────────────────────────────────────────────────────────────────────────────────── */
.band {
	padding-block: var(--band-pad);
}
.band + .band {
	border-top: 1px solid var(--line);
}
.band-navy + .band,
.band + .band-navy {
	border-top: 0;
}
.h2 {
	font-size: clamp(34px, 4.6vw, 60px);
	letter-spacing: -0.02em;
	line-height: 1.04;
	max-width: 18ch;
}
.lead {
	margin-top: 18px;
	max-width: 58ch;
	color: var(--ink-soft);
	font-size: clamp(18px, 1.6vw, 21px);
}
.head {
	margin-bottom: clamp(40px, 5vw, 64px);
}

/* ── THE HERO ───────────────────────────────────────────────────────────────────────────────────────────── */
.hero {
	padding-block: clamp(40px, 6vw, 88px) clamp(24px, 3vw, 40px);
	overflow: hidden;
}
.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
}
.hero h1 {
	font-size: clamp(46px, 7.4vw, 100px);
	line-height: 0.96;
	letter-spacing: -0.035em;
	max-width: 9.5ch;
}
.hero .lede {
	margin-top: 26px;
	max-width: 33ch;
	color: var(--ink-soft);
	font-size: clamp(19px, 1.75vw, 23px);
	line-height: 1.45;
}
.doors {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}
.fine {
	margin-top: 14px;
	color: var(--ink-soft);
	font-size: 16px;
}
@media (max-width: 900px) {
	.hero-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.hero h1 {
		max-width: 11ch;
	}
}
@media (max-width: 640px) {
	.hero {
		padding-top: 28px;
	}
	.hero .lede {
		margin-top: 18px;
	}
	.doors {
		margin-top: 24px;
		gap: 10px;
	}
	.doors .btn {
		flex: 1 1 0;
		padding: 0 16px;
	}
}

/* THE ANSWER SHEET — the IMAT's 60 questions, in the paper's order and sections, filled in once as the page opens.
   Drawn by CSS from the markup; without motion (or for a device that asks for less) it is simply filled. */
.sheet-fig {
	position: relative;
}
.sheet {
	position: relative;
	padding: clamp(18px, 2.2vw, 28px) clamp(16px, 2.2vw, 28px) clamp(16px, 2vw, 24px);
	border: 1px solid var(--line-strong);
	border-radius: 4px;
	background: var(--exam);
	box-shadow: var(--shadow-lift);
	transform: rotate(-1.2deg);
	font-family: Arial, Helvetica, sans-serif;
	color: var(--ink);
}
.sheet-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding-bottom: 12px;
	margin-bottom: 14px;
	border-bottom: 2px solid var(--ink);
	font-size: 13px;
}
.sheet-top b {
	font-size: 15px;
}
.sheet-top span {
	color: var(--ink-soft);
}
.cols {
	columns: 4;
	column-gap: 18px;
	column-rule: 1px solid var(--line);
}
.sec {
	break-inside: avoid;
	padding: 2px 0 6px;
	color: var(--ink-soft);
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.25;
}
.sec + .row {
	margin-top: 0;
}
.row {
	display: flex;
	align-items: center;
	gap: 3px;
	height: 19px;
	break-inside: avoid;
	font-size: 10.5px;
}
.row i {
	flex: 0 0 18px;
	color: var(--ink-soft);
	font-style: normal;
	text-align: right;
	padding-right: 4px;
	font-variant-numeric: tabular-nums;
}
.row s {
	position: relative;
	flex: 0 0 12px;
	height: 12px;
	border: 1px solid var(--ink-faint);
	border-radius: 50%;
	text-decoration: none;
}
.row s.on::after {
	content: '';
	position: absolute;
	inset: 1px;
	border-radius: 50%;
	background: var(--bubble);
	animation: fill 160ms ease-out both;
	animation-delay: calc(240ms + var(--i) * 24ms);
}
@keyframes fill {
	from {
		transform: scale(0);
	}
	to {
		transform: scale(1);
	}
}
/* The pen: one ring, round the one row left blank on purpose — a blank costs nothing. */
.ring {
	position: absolute;
	pointer-events: none;
	color: var(--pen);
	overflow: visible;
}
.ring path {
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-dasharray: 300;
	stroke-dashoffset: 300;
	animation: draw 700ms 1.9s ease-out forwards;
}
@keyframes draw {
	to {
		stroke-dashoffset: 0;
	}
}
.sheet-key {
	display: grid;
	grid-template-columns: repeat(3, auto);
	justify-content: start;
	gap: 6px 26px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	font-size: 13px;
}
.sheet-key div {
	display: flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
}
.sheet-key b {
	font-variant-numeric: tabular-nums;
}
.sheet-key .k-blank b {
	color: var(--pen);
}
.sheet-note {
	margin-top: 22px;
	max-width: 46ch;
	color: var(--ink-soft);
	font-size: 16px;
}
@media (max-width: 1100px) {
	.cols {
		column-gap: 12px;
	}
	.row s {
		flex-basis: 11px;
		height: 11px;
	}
}
@media (max-width: 900px) {
	.sheet-fig {
		max-width: 620px;
	}
}
@media (max-width: 520px) {
	.cols {
		columns: 3;
	}
	.sheet {
		transform: rotate(-0.8deg);
	}
	.sheet-key {
		grid-template-columns: repeat(3, auto);
		gap: 6px 14px;
		font-size: 12px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.row s.on::after,
	.ring path {
		animation: none;
		stroke-dashoffset: 0;
	}
}

/* ── WHAT STUDENTS GET: the portal's real screens ───────────────────────────────────────────────────────── */
.feats {
	display: grid;
	gap: clamp(72px, 9vw, 132px);
}
.feat {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	align-items: center;
	gap: clamp(32px, 5vw, 80px);
}
.feat:nth-child(even) {
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}
.feat:nth-child(even) .feat-copy {
	order: 2;
}
.feat h3 {
	font-size: clamp(28px, 3vw, 40px);
	letter-spacing: -0.015em;
	max-width: 16ch;
}
.feat p {
	margin-top: 16px;
	max-width: 44ch;
	color: var(--ink-soft);
}
.feat ul {
	margin-top: 20px;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
	max-width: 44ch;
}
.feat li {
	position: relative;
	padding-left: 30px;
}
.feat li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 0.42em;
	width: 14px;
	height: 8px;
	border-left: 2.5px solid var(--pen);
	border-bottom: 2.5px solid var(--pen);
	transform: rotate(-45deg);
}
.feat li b {
	color: var(--ink);
}
.shot {
	position: relative;
}
.shot picture,
.shot img {
	display: block;
	width: 100%;
}
.frame {
	overflow: hidden;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	background: var(--sheet);
	box-shadow: var(--shadow-lift);
}
.shot-pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.36fr);
	align-items: end;
	gap: clamp(14px, 2vw, 24px);
}
.shot .frame-phone {
	overflow: hidden;
	border: 6px solid #141414;
	border-radius: 28px;
	background: #141414;
	box-shadow: var(--shadow-lift);
}
.shot .frame-phone img {
	border-radius: 21px;
}
.shot-cap {
	margin-top: 14px;
	color: var(--ink-faint);
	font-size: 14px;
}
.feat-extra {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(28px, 4vw, 56px);
	padding-top: clamp(40px, 5vw, 64px);
	border-top: 1px solid var(--line);
}
.feat-extra h3 {
	font-size: clamp(24px, 2.4vw, 30px);
}
.feat-extra p {
	margin-top: 12px;
	max-width: 46ch;
	color: var(--ink-soft);
}
@media (max-width: 900px) {
	.feat,
	.feat:nth-child(even) {
		grid-template-columns: minmax(0, 1fr);
	}
	.feat:nth-child(even) .feat-copy {
		order: 0;
	}
	.feat-extra {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ── THE SUBJECTS: seven, at the paper's weight ─────────────────────────────────────────────────────────── */
.subjects {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	border-top: 2px solid var(--ink);
}
.subject {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px 16px 24px 0;
	color: var(--ink);
	text-decoration: none;
}
.subject + .subject {
	padding-left: 16px;
	border-left: 1px solid var(--line);
}
.subject .num {
	font-size: clamp(44px, 5vw, 72px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}
.subject .name {
	font-weight: 800;
	font-size: 18px;
	line-height: 1.25;
}
.subject .what {
	color: var(--ink-soft);
	font-size: 15px;
	line-height: 1.45;
}
.subject:hover .name {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.subjects-note {
	margin-top: 22px;
	max-width: 70ch;
	color: var(--ink-soft);
	font-size: 16px;
}
@media (max-width: 1080px) {
	.subjects {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.subject,
	.subject + .subject {
		padding: 20px 14px 22px;
		border-left: 0;
		border-bottom: 1px solid var(--line);
	}
	.subject:nth-child(4n + 2),
	.subject:nth-child(4n + 3),
	.subject:nth-child(4n + 4) {
		border-left: 1px solid var(--line);
	}
	.subject:nth-child(4n + 1) {
		padding-left: 0;
	}
}
@media (max-width: 640px) {
	.subjects {
		grid-template-columns: minmax(0, 1fr);
	}
	.subject,
	.subject + .subject,
	.subject:nth-child(4n + 2),
	.subject:nth-child(4n + 3),
	.subject:nth-child(4n + 4) {
		display: grid;
		grid-template-columns: 64px minmax(0, 1fr);
		grid-template-rows: auto auto;
		column-gap: 14px;
		row-gap: 2px;
		padding: 16px 0;
		border-left: 0;
	}
	.subject .num {
		grid-row: 1 / 3;
		font-size: 44px;
		text-align: right;
	}
}

/* ── THE NAVY BAND: what our students say ───────────────────────────────────────────────────────────────── */
.band-navy {
	background: var(--band);
	color: var(--on-band);
	overflow: hidden;
}
.band-navy .lead {
	color: var(--on-band-soft);
}
.band-navy a:not(.btn) {
	color: var(--on-band);
}
.band-navy :focus-visible {
	outline-color: var(--on-band);
}
.says-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.says-tools {
	display: flex;
	align-items: center;
	gap: 18px;
}
.says-tools a {
	font-weight: 800;
}
.wall-pause {
	display: none;
	min-height: 42px;
	padding: 0 16px;
	border: 1.5px solid var(--on-band-soft);
	border-radius: 8px;
	background: transparent;
	color: var(--on-band);
	font: 800 15px/1 var(--font);
	cursor: pointer;
}
.js .wall-pause {
	display: inline-flex;
	align-items: center;
}
.wall {
	display: grid;
	gap: 18px;
	margin-top: clamp(36px, 4vw, 56px);
}
.lane {
	display: flex;
	gap: 18px;
	width: max-content;
}
/* Without JavaScript, or for a device that asks for less motion, each lane is a row to swipe. */
.lane-wrap {
	position: relative;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-inline: var(--gutter);
}
.lane-wrap::-webkit-scrollbar {
	display: none;
}
.moving .lane-wrap {
	overflow: hidden;
	padding-inline: 0;
}
.moving .lane {
	animation: drift var(--dur, 90s) linear infinite;
	will-change: transform;
}
.moving .lane.rev {
	animation-direction: reverse;
}
.moving.paused .lane,
.moving.away .lane {
	animation-play-state: paused;
}
@keyframes drift {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(calc(-50% - 9px));
	}
}
.tcard {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 22px;
	width: min(400px, 82vw);
	min-height: 260px;
	padding: 26px 26px 22px;
	border-radius: 12px;
	background: var(--band-card);
	scroll-snap-align: start;
	color: var(--on-band);
	text-align: left;
}
.tcard q {
	font-size: 19px;
	line-height: 1.5;
	quotes: '“' '”';
}
.tcard .who {
	display: grid;
	gap: 2px;
}
.tcard .who b {
	font-size: 16px;
}
.tcard .who span {
	color: var(--on-band-soft);
	font-size: 14px;
	line-height: 1.4;
}
.tcard .more {
	justify-self: start;
	margin-top: 16px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--on-band);
	font: 800 15px/1.3 var(--font);
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}
.tcard .more:hover {
	text-decoration-thickness: 2px;
}
/* The full review, one tap away (JavaScript): a dialog on the paper. */
.review-dialog {
	width: min(680px, calc(100vw - 32px));
	max-height: min(84vh, 820px);
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: var(--sheet);
	color: var(--ink);
	box-shadow: var(--shadow-lift);
}
.review-dialog::backdrop {
	background: rgba(10, 16, 26, 0.6);
}
.review-dialog .rd-in {
	padding: clamp(24px, 4vw, 40px);
}
.review-dialog .rd-close {
	position: sticky;
	top: 0;
	float: right;
	margin: 14px 14px 0 0;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	background: var(--sheet);
	color: var(--ink);
	font: 800 15px/1 var(--font);
	cursor: pointer;
}
.review-dialog h2 {
	font-size: 26px;
}
.review-dialog .rd-line {
	margin-top: 4px;
	color: var(--ink-soft);
	font-size: 16px;
}
.review-dialog .rd-text {
	display: grid;
	gap: 14px;
	margin-top: 22px;
}

/* ── FREE AND THE PASS ──────────────────────────────────────────────────────────────────────────────────── */
.plans {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 32px);
}
.plan {
	display: flex;
	flex-direction: column;
	padding: clamp(26px, 3.4vw, 44px);
	border: 1px solid var(--line-strong);
	border-radius: 14px;
	background: var(--sheet);
}
.plan-pass {
	border: 2px solid var(--navy);
	box-shadow: var(--shadow-lift);
}
.plan h3 {
	font-size: clamp(26px, 2.6vw, 34px);
	letter-spacing: -0.01em;
}
.plan .for {
	margin-top: 8px;
	color: var(--ink-soft);
}
.plan ul {
	display: grid;
	gap: 12px;
	margin: 26px 0 30px;
	padding: 0;
	list-style: none;
}
.plan li {
	position: relative;
	padding-left: 30px;
}
.plan li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 0.42em;
	width: 14px;
	height: 8px;
	border-left: 2.5px solid var(--ok);
	border-bottom: 2.5px solid var(--ok);
	transform: rotate(-45deg);
}
.plan-foot {
	display: grid;
	gap: 14px;
	margin-top: auto;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}
.plan-foot .fine {
	margin-top: 0;
}
.price {
	min-height: 28px;
	font-size: 17px;
}
.price b {
	font-size: 28px;
	letter-spacing: -0.01em;
}
.price .tax {
	display: block;
	color: var(--ink-soft);
	font-size: 14px;
}
.also {
	margin-top: clamp(28px, 3vw, 40px);
	max-width: 74ch;
	color: var(--ink-soft);
}
@media (max-width: 820px) {
	.plans {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ── QUESTIONS AND ANSWERS ──────────────────────────────────────────────────────────────────────────────── */
.faq-grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: clamp(28px, 5vw, 80px);
	align-items: start;
}
.faq {
	border-top: 2px solid var(--ink);
}
.faq details {
	border-bottom: 1px solid var(--line);
}
.faq summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 18px;
	padding: 20px 0;
	font-size: clamp(19px, 1.7vw, 22px);
	font-weight: 800;
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}
.faq summary::-webkit-details-marker {
	display: none;
}
.faq summary::after {
	content: '';
	flex: 0 0 12px;
	width: 12px;
	height: 12px;
	margin-right: 6px;
	border-right: 2.5px solid currentColor;
	border-bottom: 2.5px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
	transition: transform 160ms ease;
}
.faq details[open] summary::after {
	transform: translateY(3px) rotate(-135deg);
}
.faq .ans {
	display: grid;
	gap: 12px;
	max-width: 62ch;
	padding: 0 0 24px;
	color: var(--ink-soft);
}
@media (max-width: 900px) {
	.faq-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (prefers-reduced-motion: reduce) {
	.faq summary::after {
		transition: none;
	}
}

/* ── GUIDES ─────────────────────────────────────────────────────────────────────────────────────────────── */
.guides {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 2px solid var(--ink);
}
.guide {
	display: grid;
	align-content: start;
	gap: 10px;
	padding: 24px 22px 28px 0;
	color: var(--ink);
	text-decoration: none;
}
.guide + .guide {
	padding-left: 22px;
	border-left: 1px solid var(--line);
}
.guide b {
	font-size: 21px;
	line-height: 1.25;
}
.guide span {
	color: var(--ink-soft);
	font-size: 16px;
}
.guide:hover b {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
@media (max-width: 900px) {
	.guides {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.guide,
	.guide + .guide {
		padding: 22px 18px 24px 0;
		border-left: 0;
		border-bottom: 1px solid var(--line);
	}
	.guide:nth-child(even) {
		padding-left: 18px;
		border-left: 1px solid var(--line);
	}
}
@media (max-width: 560px) {
	.guides {
		grid-template-columns: minmax(0, 1fr);
	}
	.guide:nth-child(even) {
		padding-left: 0;
		border-left: 0;
	}
}

/* ── THE CLOSING DOOR ───────────────────────────────────────────────────────────────────────────────────── */
.close-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 32px;
}
.close-cta .h2 {
	max-width: 14ch;
}
@media (max-width: 760px) {
	.close-cta {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ── THE FOOT ───────────────────────────────────────────────────────────────────────────────────────────── */
.foot {
	padding-block: 56px 40px;
	border-top: 1px solid var(--line);
	color: var(--ink-soft);
	font-size: 16px;
}
.foot-grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr));
	gap: 32px;
}
.foot-brand {
	display: inline-flex;
	color: var(--navy);
}
.foot p {
	margin-top: 14px;
	max-width: 34ch;
}
.foot h2 {
	color: var(--ink);
	font-size: 16px;
}
.foot ul {
	display: grid;
	gap: 8px;
	margin-top: 12px;
	padding: 0;
	list-style: none;
}
.foot a:not(.foot-brand) {
	color: var(--ink-soft);
}
.foot a:not(.foot-brand):hover {
	color: var(--ink);
}
.foot-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 44px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
	color: var(--ink-soft);
	font-size: 14px;
}
.seller:empty {
	display: none;
}
@media (max-width: 900px) {
	.foot-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.foot-grid > :first-child {
		grid-column: 1 / -1;
	}
}
@media (max-width: 560px) {
	.foot-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ── GUIDE AND REVIEW PAGES ─────────────────────────────────────────────────────────────────────────────── */
.page-head {
	padding-block: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 48px);
}
.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0;
	list-style: none;
	color: var(--ink-soft);
	font-size: 15px;
}
.crumbs li + li::before {
	content: '/';
	margin-right: 6px;
	color: var(--ink-faint);
}
.crumbs a {
	color: var(--ink-soft);
}
.page-head h1 {
	margin-top: 18px;
	font-size: clamp(40px, 6vw, 76px);
	line-height: 1;
	letter-spacing: -0.03em;
	max-width: 16ch;
}
.page-head .lead {
	margin-top: 20px;
}
.tbl-wrap {
	overflow-x: auto;
}
.tbl {
	width: 100%;
	border-collapse: collapse;
	font-size: 17px;
}
.tbl caption {
	padding-bottom: 10px;
	color: var(--ink-soft);
	font-size: 15px;
	text-align: left;
}
.tbl th,
.tbl td {
	padding: 11px 14px 11px 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}
.tbl thead th {
	border-bottom: 2px solid var(--ink);
	font-size: 15px;
}
.tbl .n {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.tbl .nw {
	white-space: nowrap;
}
.tbl tfoot td {
	font-weight: 800;
	border-bottom: 0;
}
.tbl thead th.n {
	white-space: normal;
}
.tbl .grp th {
	padding-top: 24px;
	border-bottom: 2px solid var(--line-strong);
	color: var(--navy);
	font-size: 15px;
}
.tbl .sub td {
	font-weight: 800;
}
.tbl sup {
	font-size: 0.7em;
}
/* 404 */
.lost {
	padding-block: clamp(56px, 10vw, 140px);
}
.lost h1 {
	font-size: clamp(44px, 7vw, 92px);
	letter-spacing: -0.03em;
	line-height: 1;
}
.lost p {
	margin-top: 20px;
	max-width: 52ch;
	color: var(--ink-soft);
	font-size: 20px;
}
.lost .doors {
	margin-top: 30px;
}
@media print {
	.top,
	.foot,
	.theme,
	.wall-pause {
		display: none !important;
	}
	.band-navy {
		background: none;
		color: #000;
	}
}

/* (the sheet's details) */
.row.pen {
	position: relative;
}
.sec span {
	color: var(--ink-soft);
	font-weight: 400;
}
.js .wall-pause[hidden] {
	display: none;
}

/* ── PRE-LAUNCH IS THE DEFAULT (rv138 M-2): what belongs to the open portal shows only with <html class="open"> — written
   by landing-tools/build_pages.py when config.js says portalOpen: true, and set before first paint from config.js —
   so a visitor without JavaScript, or a page whose config.js did not load, sees the waitlist, never a closed sign-up. */
html:not(.open) .if-open {
	display: none !important;
}
html.open .if-soon {
	display: none !important;
}
/* The waitlist box: "Let me know". */
.wl {
	display: grid;
	gap: 10px;
	max-width: 520px;
}
.wl-line {
	color: var(--ink-soft);
	font-size: 16px;
	line-height: 1.45;
}
.wl-row {
	display: flex;
	gap: 10px;
}
.wl-email {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 52px;
	padding: 0 16px;
	border: 2px solid var(--line-strong);
	border-radius: 8px;
	background: var(--sheet);
	color: var(--ink);
	font: 500 17px/1.2 var(--font);
}
.wl-email::placeholder {
	color: var(--ink-soft);
	opacity: 1;
}
.wl-email:focus {
	border-color: var(--water);
	outline: none;
}
.wl-email:focus-visible {
	outline: 3px solid var(--water);
	outline-offset: 2px;
}
.wl-email[aria-invalid='true'] {
	border-color: var(--pen);
}
.wl .btn {
	min-height: 52px;
	flex: 0 0 auto;
}
.wl .btn[disabled] {
	opacity: 0.7;
	cursor: progress;
}
.wl-small {
	color: var(--ink-soft);
	font-size: 14px;
}
.wl-msg:empty {
	display: none;
}
.wl-msg {
	font-size: 16px;
	font-weight: 800;
}
.wl-msg.bad {
	color: var(--pen);
}
.wl.done .wl-row,
.wl.done .wl-line,
.wl.done .wl-small {
	display: none;
}
.wl.done .wl-msg {
	padding: 14px 16px;
	border-left: 3px solid var(--ok);
	background: var(--sheet);
	color: var(--ink);
}
/* the honeypot: out of sight and out of reach (people never fill it; a robot that fills every box does) */
.wl-hp {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.wl {
	position: relative;
}
.hero .wl {
	margin-top: 30px;
}
.wl-navy .wl-line,
.wl-navy .wl-small {
	color: var(--on-band-soft);
}
.wl-navy .wl-small a {
	color: var(--on-band);
}
.wl-navy .wl-email {
	border-color: transparent;
	background: #fffefa;
	color: #1c2f4e;
}
.wl-navy .wl-email::placeholder {
	color: #4b5b77;
}
.wl-navy .wl-msg.bad {
	color: #ffb3ad;
}
.wl-navy.done .wl-msg {
	background: rgba(255, 255, 255, 0.08);
	color: var(--on-band);
}
.plan-foot .wl {
	max-width: none;
}
/* the box stays one row (address, button) on a phone too — it fits from 360 px — and stacks only below that (batch 145) */
@media (max-width: 520px) {
	.wl .btn {
		padding: 0 16px;
	}
}
@media (max-width: 359px) {
	.wl-row {
		flex-direction: column;
	}
	.wl .btn {
		width: 100%;
	}
}

/* ── THE COURSE (its own band, apart from the portal's) ──────────────────────────────────────────────────────── */
.band-course {
	background: var(--navy-soft);
}
.band + .band-course,
.band-course + .band {
	border-top: 0;
}
.course {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}
.course-cta {
	display: grid;
	justify-items: start;
	gap: 12px;
	margin-top: 32px;
}
.course-cta .fine {
	margin-top: 0;
}
.course-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(24px, 3vw, 40px);
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 2px solid var(--ink);
}
.course-list li {
	padding: 22px 0 24px;
	border-bottom: 1px solid var(--line-strong);
}
.course-list h3 {
	font-size: 21px;
	line-height: 1.25;
}
.course-list p {
	margin-top: 8px;
	color: var(--ink-soft);
	font-size: 17px;
}
@media (max-width: 960px) {
	.course {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (max-width: 600px) {
	.course-list {
		grid-template-columns: minmax(0, 1fr);
	}
}
/* the smallest phones: the page follows the device's light or dark; the switch steps aside for the doors */
@media (max-width: 340px) {
	.js .theme {
		display: none;
	}
}

/* ── WHY US (his message, 29/11/2026, 23:24): right after the first screen ─────────────────────────────────────── */
.why {
	border-top: 1px solid var(--line);
}
.why-head {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(24px, 5vw, 80px);
	align-items: end;
}
.why-head .h2 {
	max-width: 17ch;
}
.why-head .lead {
	margin-top: 0;
}
.why-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: clamp(40px, 5vw, 64px) 0 0;
	padding: 0;
	list-style: none;
	border-top: 2px solid var(--ink);
}
.why-list li {
	padding: 24px 24px 8px 0;
}
.why-list li + li {
	padding-left: 24px;
	border-left: 1px solid var(--line);
}
.why-list h3 {
	font-size: clamp(21px, 1.9vw, 25px);
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.why-list p {
	margin-top: 10px;
	max-width: 34ch;
	color: var(--ink-soft);
}
/* The two reasons that are the Portal Pass's (the teacher, 02/12/2026, 22:58): a small gold label UNDER the words, so the
   three headings stay on one line across, and the labels too. Gold is the Pass's colour only. */
.why-list li {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.why-list p:has(+ .pass-tag) {
	margin-bottom: 14px;
}
.why-list p.pass-tag {
	display: inline-block;
	margin-top: auto; /* the two labels on one line across, whatever the words above them */
	padding: 4px 11px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
	color: var(--gold-ink);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.3;
}
@media (forced-colors: active) {
	.why-list p.pass-tag {
		border: 1px solid CanvasText;
	}
}
@media (max-width: 900px) {
	.why-head {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}
	.why-head .lead {
		margin-top: 0;
	}
}
@media (max-width: 760px) {
	.why-list {
		grid-template-columns: minmax(0, 1fr);
	}
	.why-list li,
	.why-list li + li {
		padding: 20px 0;
		border-left: 0;
		border-bottom: 1px solid var(--line);
	}
}

/* ══ THE GUIDE PAGES (batch 145) ═══════════════════════════════════════════════════════════════════════════════════
   The answer sheet's parts as the structure: a head band with the page's facts as a FORM HEADER (the boxed fields at the
   top of an exam form), then ZONES that open with a 2px ink rule (as the sheet's sections do), the page's picture on a
   white EXAM-PAPER PLATE, and "On this page" beside it — navigation only. One "Let me know" box, at the end. */

/* the head band */
.ghead {
	padding-block: clamp(28px, 4vw, 56px) clamp(28px, 3.4vw, 44px);
	border-bottom: 1px solid var(--line);
	background: var(--sheet);
}
.ghead h1 {
	margin-top: 14px;
	max-width: 16ch;
	font-size: clamp(40px, 5.6vw, 72px);
	line-height: 1;
	letter-spacing: -0.03em;
}
.ghead .lead {
	margin-top: 16px;
	max-width: 60ch;
}
/* the page's key facts: a ruled row of fields, label above, value under (sentence case — a form's field names) */
.facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	max-width: 1000px;
	margin: clamp(22px, 3vw, 34px) 0 0;
	border: 1.5px solid var(--ink);
	border-radius: 4px;
	background: var(--exam);
}
.facts > div {
	padding: 10px 16px 12px;
}
.facts > div + div {
	border-left: 1px solid var(--line-strong);
}
.facts dt {
	color: var(--ink-soft);
	font-size: 14px;
	line-height: 1.3;
}
/* rv145 L-1: one line across the form, under the fields (the 2027 page: "From the 2026 decree …") */
.facts > .facts-note {
	grid-column: 1 / -1;
	padding: 8px 16px 9px;
	border-left: 0;
	border-top: 1px solid var(--line-strong);
}
.facts > .facts-note dd {
	margin: 0;
	color: var(--ink-soft);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
}
.facts dd {
	margin: 3px 0 0;
	font-size: clamp(19px, 1.7vw, 23px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
}
@media (max-width: 640px) {
	.facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.facts > div:nth-child(3) {
		border-left: 0;
	}
	.facts > div:nth-child(n + 3) {
		border-top: 1px solid var(--line-strong);
	}
	.facts > div {
		padding: 8px 12px 10px;
	}
}

/* the page: "On this page" | the zones */
.gdoc {
	display: grid;
	grid-template-columns: 196px minmax(0, 1fr);
	gap: clamp(32px, 4vw, 72px);
	align-items: start;
	padding-block: clamp(36px, 4vw, 56px) var(--band-pad);
}
.gmain {
	min-width: 0;
}
.toc {
	position: sticky;
	top: 100px;
}
.toc-h {
	margin-bottom: 10px;
	color: var(--ink-soft);
	font-size: 14px;
	font-weight: 800;
}
.toc ul {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 2px solid var(--line);
}
.toc a {
	display: block;
	margin-left: -2px;
	padding: 7px 0 7px 14px;
	border-left: 2px solid transparent;
	color: var(--ink-soft);
	font-size: 16px;
	line-height: 1.3;
	text-decoration: none;
}
.toc a:hover {
	color: var(--ink);
	text-decoration: underline;
}
/* the section you are reading (site.js), in ink: red stays for "wrong" on these pages */
.toc a[aria-current='true'] {
	border-left-color: var(--ink);
	color: var(--ink);
	font-weight: 800;
}
@media (max-width: 1099px) {
	.gdoc {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding-top: 0;
	}
	/* on a tablet or phone: one row of chips under the head band, to swipe sideways */
	.toc {
		position: static;
		display: flex;
		align-items: center;
		gap: 10px;
		margin: 0 calc(-1 * var(--gutter)) clamp(28px, 4vw, 40px);
		padding: 10px var(--gutter);
		overflow-x: auto;
		border-bottom: 1px solid var(--line);
		scrollbar-width: none;
	}
	.toc::-webkit-scrollbar {
		display: none;
	}
	.toc-h {
		flex: none;
		margin: 0;
	}
	.toc ul {
		display: flex;
		flex: none;
		gap: 8px;
		border: 0;
	}
	.toc a,
	.toc a[aria-current='true'] {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		margin: 0;
		padding: 0 14px;
		border: 1px solid var(--line-strong);
		border-radius: 999px;
		font-size: 15px;
		font-weight: 500;
		white-space: nowrap;
	}
}

/* zones */
.gmain > .intro {
	max-width: 68ch;
	margin-bottom: clamp(36px, 4vw, 56px);
	font-size: clamp(18px, 1.5vw, 20px);
}
.gmain > .intro > * + * {
	margin-top: 16px;
}
.zone {
	padding-top: clamp(18px, 2vw, 26px);
	border-top: 2px solid var(--ink);
}
.gmain > .zone + .zone,
.gmain > .zone + .zone-pair,
.gmain > .zone-pair + .zone,
.gmain > .zone + .end-cta {
	margin-top: clamp(52px, 6vw, 96px);
}
.zone > h2 {
	font-size: clamp(26px, 2.6vw, 36px);
	line-height: 1.1;
	letter-spacing: -0.015em;
}
.zone > * + * {
	margin-top: 16px;
}
.zone > h2 + * {
	margin-top: clamp(16px, 2vw, 24px);
}
.zone p {
	max-width: 68ch;
}
.zone .small,
.gmain .small {
	color: var(--ink-soft);
	font-size: 15px;
}
.gmain .note {
	max-width: 68ch;
	padding: 14px 18px;
	border-left: 3px solid var(--ink);
	background: var(--sheet);
	color: var(--ink-soft);
	font-size: 16px;
}
.zone .big {
	max-width: 32ch;
	font-size: clamp(21px, 2vw, 26px);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.01em;
}
.zone-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(28px, 4vw, 56px);
}
@media (max-width: 760px) {
	.zone-pair {
		grid-template-columns: minmax(0, 1fr);
		gap: clamp(44px, 6vw, 60px);
	}
}
/* the white exam-paper plate: only under a picture, never under plain text */
.plate {
	padding: clamp(16px, 2.4vw, 30px);
	border: 1px solid var(--line-strong);
	border-radius: 4px;
	background: var(--exam);
}
.ticks {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ticks li {
	position: relative;
	padding-left: 30px;
}
.ticks li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 0.42em;
	width: 14px;
	height: 8px;
	border-left: 2.5px solid var(--ink);
	border-bottom: 2.5px solid var(--ink);
	transform: rotate(-45deg);
}
.ticks.cols3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px clamp(20px, 3vw, 40px);
}
@media (max-width: 760px) {
	.ticks.cols3 {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}
}

/* THE 60-STRIP — the paper's 60 questions in order, one row per section. On a wide plate each row is a 60-column grid,
   so the sections step down from question 1 to question 60; on a narrow one each row lists its bubbles under its name. */
.strip {
	container-type: inline-size;
}
.sr-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sr {
	display: grid;
	grid-template-columns: repeat(60, minmax(0, 1fr));
	grid-auto-flow: dense;
	align-items: center;
	min-height: 26px;
}
.sec-read {
	--sec: var(--sec-read);
}
.sec-logic {
	--sec: var(--sec-logic);
}
.sec-bio {
	--sec: var(--sec-bio);
}
.sec-chem {
	--sec: var(--sec-chem);
}
.sec-physmath {
	--sec: var(--sec-physmath);
}
.sr-name {
	grid-row: 1;
	padding: 0 12px;
	font-size: 15px;
	line-height: 1.25;
}
.sr-l .sr-name {
	text-align: right;
}
.sr-meta {
	color: var(--ink-soft);
	white-space: nowrap;
}
.sr-dots {
	grid-row: 1;
	display: grid;
	grid-template-columns: repeat(var(--n), minmax(0, 1fr));
	justify-items: center;
}
.sr-dots i {
	display: block;
	width: min(82%, 18px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--sec);
}
.sr-axis {
	display: grid;
	grid-template-columns: repeat(60, minmax(0, 1fr));
	margin-top: 14px;
	padding-top: 6px;
	border-top: 1px solid var(--line-strong);
	color: var(--ink-soft);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	text-align: center;
}
.sr-axis span {
	grid-row: 1;
}
.sr-axis b {
	grid-row: 2;
	grid-column: 1 / -1;
	font-weight: 500;
}
.strip figcaption {
	max-width: 84ch;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	color: var(--ink-soft);
	font-size: 16px;
}
@container (max-width: 719px) {
	.sr-list {
		gap: 14px;
	}
	.sr {
		display: block;
	}
	.sr-name {
		display: block;
		padding: 0;
		text-align: left !important;
	}
	.sr-dots {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
		margin-top: 6px;
	}
	.sr-dots i {
		flex: none;
		width: 13px;
	}
	.sr-axis {
		display: none;
	}
}

/* the syllabus: every subject a block, topped with its section's colour */
.subjs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(32px, 3.4vw, 48px) clamp(24px, 3vw, 44px);
}
.subj {
	padding-top: 14px;
	border-top: 3px solid var(--sec);
}
.subj:first-child {
	grid-column: 1 / -1;
}
.subj h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: clamp(21px, 1.9vw, 25px);
	line-height: 1.2;
}
.subj .dot {
	flex: none;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--sec);
}
.subj-n {
	margin-top: 4px;
	color: var(--ink-soft);
	font-size: 15px;
}
.subj ul {
	display: grid;
	gap: 9px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
	line-height: 1.45;
}
.subj:first-child ul {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px clamp(24px, 3vw, 44px);
}
.subj li {
	position: relative;
	padding-left: 18px;
}
/* each topic marked with a small empty bubble in its section's colour */
.subj li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 8px;
	height: 8px;
	border: 1.5px solid var(--sec);
	border-radius: 50%;
}
.subj > p:not(.subj-n) {
	margin-top: 14px;
	font-size: 16px;
	line-height: 1.5;
}
@media (max-width: 1240px) {
	.subj:first-child ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 900px) {
	.subjs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.subjs {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}
	.subj:first-child ul {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* THE MARKS (scoring) — three answer rows, five bubbles each, in the colour code */
.marks-zone {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(24px, 4vw, 64px);
	align-items: center;
}
.marks {
	width: 100%;
	border-collapse: collapse;
}
.marks th,
.marks td {
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: middle;
}
.marks thead th {
	padding-top: 0;
	border-bottom: 2px solid var(--ink);
	color: var(--ink-soft);
	font-size: 14px;
}
.marks tbody th {
	font-size: clamp(18px, 1.6vw, 21px);
	white-space: nowrap;
}
.marks .n {
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.marks tbody .n {
	font-size: clamp(30px, 3.2vw, 44px);
	font-weight: 800;
	letter-spacing: -0.02em;
}
.marks tfoot th,
.marks tfoot td {
	border-bottom: 0;
	padding-bottom: 0;
	font-size: 18px;
	font-weight: 800;
}
.bub {
	display: inline-flex;
	gap: 6px;
	margin-right: 18px;
	vertical-align: middle;
}
.bub .b {
	position: relative;
	display: block;
	width: 26px;
	height: 26px;
	border: 2px solid var(--ink-faint);
	border-radius: 50%;
}
.bub-blank .b {
	border-color: var(--blank);
}
.bub-right .b.on {
	border-color: var(--right);
	background: var(--right);
}
.bub-wrong .b.on {
	border-color: var(--wrong);
	background: var(--wrong);
}
/* the tick and the cross, drawn in the paper's colour on the filled bubble */
.bub-right .b.on::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 6px;
	width: 10px;
	height: 6px;
	border-left: 2.5px solid var(--exam);
	border-bottom: 2.5px solid var(--exam);
	transform: rotate(-45deg);
}
.bub-wrong .b.on::before,
.bub-wrong .b.on::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 12px;
	height: 2.5px;
	margin: -1.25px 0 0 -6px;
	background: var(--exam);
	transform: rotate(45deg);
}
.bub-wrong .b.on::after {
	transform: rotate(-45deg);
}
.marks-say {
	font-size: clamp(21px, 2.1vw, 28px);
	line-height: 1.35;
	letter-spacing: -0.01em;
}
@media (max-width: 900px) {
	.marks-zone {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (max-width: 480px) {
	.bub {
		gap: 4px;
		margin-right: 12px;
	}
	.bub .b {
		width: 20px;
		height: 20px;
	}
	.bub-right .b.on::after {
		left: 4px;
		top: 4px;
		width: 8px;
		height: 5px;
		border-width: 0 0 2px 2px;
	}
	.bub-wrong .b.on::before,
	.bub-wrong .b.on::after {
		width: 10px;
		margin-left: -5px;
	}
}

/* the worked example: the 60 answers, then the sum */
.sum-dots {
	display: grid;
	grid-template-columns: repeat(60, minmax(0, 1fr));
	gap: 3px;
}
.sum-dots i {
	display: block;
	aspect-ratio: 1;
	border-radius: 50%;
}
.sum-dots .r {
	background: var(--right);
}
.sum-dots .w {
	background: var(--wrong);
}
.sum-dots .k {
	border: 1.5px solid var(--blank);
}
.sum-terms {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}
.sum-terms li {
	display: grid;
	gap: 2px;
	padding: 2px 0 2px 14px;
	border-left: 4px solid var(--state);
}
.t-right {
	--state: var(--right);
}
.t-wrong {
	--state: var(--wrong);
}
.t-blank {
	--state: var(--blank);
}
.t-k {
	color: var(--ink-soft);
	font-size: 15px;
}
.t-x {
	font-size: clamp(19px, 1.8vw, 23px);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}
.sum-total {
	margin-top: 20px;
	padding-top: 14px;
	border-top: 2px solid var(--ink);
	font-size: clamp(18px, 1.7vw, 21px);
}
.sum-total b {
	font-size: clamp(28px, 3vw, 38px);
	letter-spacing: -0.02em;
}
@media (max-width: 640px) {
	.sum-dots {
		grid-template-columns: repeat(20, minmax(0, 1fr));
	}
	.sum-terms {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}
}

/* SHOULD YOU GUESS? — the points a guess is worth, around a zero line: red below (against you), green above (for you) */
.gchart figcaption {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 20px;
	margin-bottom: 8px;
	font-size: 15px;
}
.gc-legend {
	display: flex;
	gap: 18px;
	color: var(--ink-soft);
}
.gc-legend span::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 10px;
	margin-right: 7px;
	border-radius: 2px;
	vertical-align: 0;
}
.lg-neg::before {
	background: var(--wrong);
}
.lg-pos::before {
	background: var(--right);
}
.gc-rows {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}
.gc-rows li {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 24px;
	align-items: center;
	padding: 14px 0;
	border-top: 1px solid var(--line);
}
.gc-txt b {
	display: block;
	font-size: 18px;
	line-height: 1.3;
}
.gc-txt span {
	display: block;
	margin-top: 2px;
	color: var(--ink-soft);
	font-size: 15px;
	line-height: 1.45;
}
.gc-track {
	position: relative;
	align-self: stretch;
	min-height: 34px;
}
/* the zero line, drawn row by row so it runs unbroken down the chart */
.gc-track::before {
	content: '';
	position: absolute;
	left: var(--z);
	top: -14px;
	bottom: -14px;
	width: 2px;
	margin-left: -1px;
	background: var(--ink);
}
.gc-bar {
	position: absolute;
	top: 50%;
	left: var(--z);
	width: var(--w);
	height: 18px;
	margin-top: -9px;
	border-radius: 0 4px 4px 0;
	background: var(--right);
}
.gc-neg .gc-bar {
	left: calc(var(--z) - var(--w));
	border-radius: 4px 0 0 4px;
	background: var(--wrong);
}
.gc-val {
	position: absolute;
	top: 50%;
	left: calc(var(--z) + var(--w) + 10px);
	transform: translateY(-50%);
	font-size: 17px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.gc-neg .gc-val {
	left: auto;
	right: calc(100% - var(--z) + var(--w) + 8px);
}
.gc-axis {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 24px;
	padding-top: 6px;
	border-top: 1px solid var(--line);
	color: var(--ink-soft);
	font-size: 13px;
}
.gc-ax {
	position: relative;
	height: 18px;
}
.gc-ax i {
	position: absolute;
	transform: translateX(-50%);
	font-style: normal;
}
@media (max-width: 700px) {
	.gc-rows li,
	.gc-axis {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}
	.gc-axis > span:first-child {
		display: none;
	}
}

/* the minimum score: a callout, with where 20 sits on the way to 90 */
.minimum {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(20px, 4vw, 56px);
	align-items: center;
}
.min-plate {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: baseline;
	column-gap: 12px;
}
.min-n {
	font-size: clamp(64px, 7vw, 100px);
	line-height: 0.9;
	letter-spacing: -0.04em;
}
.min-u {
	font-size: 21px;
	font-weight: 800;
}
.min-scale {
	position: relative;
	grid-column: 1 / -1;
	height: 46px;
	margin: 22px 8px 0;
}
.ms-line,
.ms-ok {
	position: absolute;
	top: 9px;
	height: 2px;
	background: var(--line-strong);
}
.ms-line {
	left: 0;
	right: 0;
}
.ms-ok {
	right: 0;
	top: 8px;
	height: 4px;
	border-radius: 2px;
	background: var(--ink);
}
.ms-mark {
	position: absolute;
	top: 0;
	width: 3px;
	height: 22px;
	margin-left: -1.5px;
	background: var(--ink);
}
.ms-t {
	position: absolute;
	top: 26px;
	transform: translateX(-50%);
	color: var(--ink-soft);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}
.ms-20 {
	color: var(--ink);
	font-weight: 800;
}
.min-txt > * + * {
	margin-top: 12px;
}
@media (max-width: 760px) {
	.minimum {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* THE TIE-BREAK ORDER — a true sequence, so numbered: a ladder down the page */
.ties-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(24px, 4vw, 64px);
	align-items: start;
}
.ladder {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
.ladder li {
	position: relative;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	column-gap: 14px;
	padding: 0 0 16px;
	counter-increment: step;
}
.ladder li::before {
	content: counter(step);
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 2px solid var(--ink);
	border-radius: 6px;
	background: var(--paper);
	font-size: 16px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	position: relative;
	z-index: 1;
}
/* the rail joining the steps */
.ladder li::after {
	content: '';
	position: absolute;
	left: 15px;
	top: 32px;
	bottom: 0;
	width: 2px;
	background: var(--line-strong);
}
.ladder li:last-child::after {
	display: none;
}
.ladder li > div {
	padding-top: 4px;
}
.ladder b {
	font-size: 18px;
}
.ladder li > div span {
	display: block;
	margin-top: 2px;
	color: var(--ink-soft);
	font-size: 16px;
}
.ties-side > * + * {
	margin-top: 14px;
}
@media (max-width: 900px) {
	.ties-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* THE KEY DATES (2027) — in the order they come; each an empty grey bubble while it is not announced */
.timeline {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}
.timeline li {
	position: relative;
	padding: 40px 18px 0 0;
}
.timeline li::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 13px;
	border-top: 2px dashed var(--blank);
}
.timeline li:last-child::before {
	right: auto;
	width: 28px;
}
.tl-b {
	position: absolute;
	left: 0;
	top: 0;
	width: 28px;
	height: 28px;
	border: 2px solid var(--blank);
	border-radius: 50%;
	background: var(--paper);
}
.timeline b {
	display: block;
	font-size: 18px;
	line-height: 1.3;
}
.timeline span {
	display: block;
	margin-top: 4px;
	color: var(--ink-soft);
	font-size: 16px;
}
@media (max-width: 700px) {
	.timeline {
		grid-template-columns: minmax(0, 1fr);
	}
	.timeline li {
		padding: 1px 0 16px 44px;
	}
	.timeline li::before,
	.timeline li:last-child::before {
		left: 13px;
		right: auto;
		top: 28px;
		bottom: 0;
		width: 0;
		border-top: 0;
		border-left: 2px dashed var(--blank);
	}
	.timeline li:last-child::before {
		display: none;
	}
	.timeline span {
		margin-top: 0;
	}
}

/* the marks, small (the 2027 page) */
.mkey {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
}
.mkey li {
	display: flex;
	align-items: center;
	gap: 8px;
}
.mkey i {
	width: 16px;
	height: 16px;
	border-radius: 50%;
}
.mk-right i {
	background: var(--right);
}
.mk-wrong i {
	background: var(--wrong);
}
.mk-blank i {
	border: 2px solid var(--blank);
}

/* THE PLACES — one course at a time (site.js); without JavaScript all three tables, one under the other */
.pl-tabs {
	display: none;
}
.js .pl-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}
.pl-tabs button {
	min-height: 44px;
	padding: 0 16px;
	border: 1.5px solid var(--blank); /* rv145 L-3: 3:1 against the page in both themes (--line-strong was 1.6:1) */
	border-radius: 8px;
	background: transparent;
	color: var(--ink);
	font: 800 16px/1.2 var(--font);
	cursor: pointer;
}
.pl-tabs button:hover {
	border-color: var(--ink);
}
.pl-tabs button[aria-selected='true'] {
	border-color: var(--button);
	background: var(--button);
	color: var(--on-button);
}
.pl-panel + .pl-panel {
	margin-top: 28px;
}
.js .pl-panel[hidden] {
	display: none;
}
.places {
	max-width: 860px;
}
.places tbody th {
	font-weight: 500;
}
.places tfoot th,
.places tfoot td {
	font-weight: 800;
	border-bottom: 0;
}
.places td.n {
	width: 10.5em;
}
@media (max-width: 640px) {
	.places {
		font-size: 16px;
	}
	.places th,
	.places td {
		padding: 9px 10px 9px 0;
	}
	.places td.n {
		width: 6.2em;
	}
	.places thead th {
		font-size: 13px;
		line-height: 1.3;
	}
}

/* two ways to a place, side by side */
.paths {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px clamp(20px, 3vw, 40px);
}
.zone .paths p {
	padding: 4px 0 4px 16px;
	border-left: 4px solid var(--ink);
	font-size: 18px;
}
@media (max-width: 640px) {
	.paths {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* PAST PAPERS — the years, drawn on a ruler */
.ru-spans,
.ru-years {
	display: grid;
	grid-template-columns: repeat(var(--years), minmax(0, 1fr));
}
.ru-spans {
	grid-template-rows: auto 16px;
	row-gap: 10px;
}
.ru-ex {
	grid-row: 1;
	position: relative;
	padding: 0 4px 8px;
	border-bottom: 2px solid var(--ink-soft);
	font-size: 15px;
	line-height: 1.3;
	text-align: center;
}
/* the bracket's two feet */
.ru-ex::before,
.ru-ex::after {
	content: '';
	position: absolute;
	bottom: -8px;
	width: 2px;
	height: 8px;
	background: var(--ink-soft);
}
.ru-ex::before {
	left: 0;
}
.ru-ex::after {
	right: 0;
}
.ru-old,
.ru-new {
	grid-row: 2;
	height: 16px;
}
.ru-old {
	border-radius: 4px 0 0 4px;
	background: var(--blank); /* grey: the neutral colour, and ≥ 3:1 on the plate in light and dark */
}
.ru-new {
	margin-left: 3px;
	border-radius: 0 4px 4px 0;
	background: var(--ink);
}
.ru-years {
	margin-top: 8px;
	color: var(--ink-soft); /* AA at 13 px (ink-faint is not) */
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	text-align: center;
}
.yr {
	grid-row: 1;
}
.yr-key {
	color: var(--ink);
	font-weight: 800;
}
.ru-key {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px clamp(20px, 3vw, 44px);
	margin: 26px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--line);
	list-style: none;
}
.ru-key li {
	position: relative;
	padding-left: 30px;
}
.ru-key li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 18px;
	height: 10px;
	border-radius: 2px;
}
.k-new::before {
	background: var(--ink);
}
.k-old::before {
	background: var(--blank);
}
@media (max-width: 760px) {
	.yr:not(.yr-key) {
		visibility: hidden;
	}
	.yr-key {
		font-size: 12px;
	}
	.ru-ex {
		font-size: 13px;
	}
	.ru-key {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* past papers: how to use them — four steps (a true sequence), side by side on a laptop */
.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px clamp(20px, 2.6vw, 36px);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
.steps li {
	padding-top: 12px;
	border-top: 1px solid var(--line-strong);
	counter-increment: step;
	color: var(--ink-soft);
	font-size: 16px;
}
.steps li::before {
	content: counter(step);
	display: block;
	margin-bottom: 8px;
	color: var(--ink);
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.steps b {
	display: block;
	margin-bottom: 4px;
	color: var(--ink);
	font-size: 18px;
}
@media (max-width: 1000px) {
	.steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 560px) {
	.steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
	.steps li {
		display: grid;
		grid-template-columns: 34px minmax(0, 1fr);
		column-gap: 8px;
	}
	.steps li::before {
		grid-row: 1 / 3;
		font-size: 24px;
	}
}

/* the end: the one "Let me know" box, then the sources */
.end-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px clamp(24px, 4vw, 56px);
	align-items: end;
	padding: clamp(24px, 3.6vw, 44px);
	border-radius: 14px;
	background: var(--band);
	color: var(--on-band);
}
.end-cta h2 {
	color: var(--on-band);
	font-size: clamp(26px, 2.6vw, 36px);
	line-height: 1.1;
}
.end-cta p:not([class]) {
	margin-top: 10px;
	color: var(--on-band-soft);
}
.end-cta :focus-visible {
	outline-color: var(--on-band);
}
.end-cta a:not(.btn) {
	color: var(--on-band);
}
@media (max-width: 900px) {
	.end-cta {
		grid-template-columns: minmax(0, 1fr);
	}
}
.zone-sources {
	margin-top: clamp(44px, 5vw, 64px);
	border-top-width: 1px;
	border-top-color: var(--line-strong);
}
.zone-sources > h2 {
	font-size: 22px;
}
.sources {
	display: grid;
	gap: 6px;
	padding-left: 20px;
	color: var(--ink-soft);
	font-size: 15px;
}
.ties-grid > div > * + * {
	margin-top: 14px;
}
.ties-grid .then {
	margin: 4px 0 14px 58px;
	color: var(--ink-soft);
	font-size: 15px;
}
.zone .sum-total,
.strip figcaption {
	max-width: none;
}
@media (max-width: 700px) {
	.gc-track::before {
		top: -4px;
		bottom: -4px;
	}
	.gc-rows li {
		padding: 12px 0 10px;
	}
}

/* ══ THE PHONE, AND THE HOME PAGE ON IT (batch 145) ══════════════════════════════════════════════════════════════════
   The teacher, 02/12/2026: "Work very very hard on the phone view." The laptop keeps its look; below 900 / 640 px the
   page gets its own, shorter rhythm: less air between bands, smaller headings, the portal's screens as a swipe row, one
   lane of reviews, the course and the subjects compact. Nothing is cut from the words. */

/* the theme switch as a row in the menu: phones only (the round one steps aside there, to give the bar room) */
.menu-theme {
	display: none;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: 6px;
	background: none;
	color: var(--ink);
	font: 500 18px/1.2 var(--font);
	text-align: left;
	cursor: pointer;
}
.menu-theme:hover {
	background: var(--navy-soft);
}
.menu-theme svg {
	flex: none;
}
.menu-theme .sun,
:root[data-theme='dark'] .menu-theme .moon {
	display: none;
}
:root[data-theme='dark'] .menu-theme .sun {
	display: block;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) .menu-theme .moon {
		display: none;
	}
	:root:not([data-theme='light']) .menu-theme .sun {
		display: block;
	}
}
/* a small switch drawn after the words: off, or on (dark) */
.menu-theme::after {
	content: '';
	flex: none;
	width: 38px;
	height: 22px;
	margin-left: auto;
	border-radius: 999px;
	background: var(--blank) radial-gradient(circle 8px at 11px 50%, var(--sheet) 96%, transparent) no-repeat; /* rv145 L-3 */
}
.menu-theme[aria-pressed='true']::after {
	background: var(--ink) radial-gradient(circle 8px at 27px 50%, var(--paper) 96%, transparent) no-repeat;
}
@media (max-width: 640px) {
	.js .theme {
		display: none;
	}
	.js .menu-theme {
		display: flex;
	}
	.logo {
		width: 124px;
	}
	.top-doors .btn-sm {
		padding: 0 16px;
	}
}
@media (max-width: 380px) {
	.logo {
		width: 108px;
	}
	.top-doors .btn-sm {
		padding: 0 12px;
	}
}
/* rv145 L-4: the smallest phones (320 px) — "Menu" ended 2 px past the edge */
@media (max-width: 340px) {
	.logo {
		width: 96px;
	}
	.top-doors .btn-sm {
		padding: 0 10px;
	}
}

/* the rhythm on a phone */
@media (max-width: 640px) {
	:root {
		--band-pad: 46px;
	}
	.h2 {
		font-size: clamp(28px, 8vw, 32px);
		line-height: 1.06;
	}
	.lead {
		margin-top: 12px;
		font-size: 17px;
	}
	.head {
		margin-bottom: 28px;
	}
}

/* the hero's answer sheet, smaller on a phone: four columns of small bubbles, the whole sheet in about half a screen */
@media (max-width: 640px) {
	.hero .wl {
		margin-top: 24px;
	}
	.hero-grid {
		gap: 28px;
	}
	.sheet {
		padding: 14px 12px 12px;
	}
	.sheet-top {
		padding-bottom: 8px;
		margin-bottom: 10px;
		font-size: 11px;
	}
	.sheet-top b {
		font-size: 13px;
	}
	.cols {
		columns: 4;
		column-gap: 8px;
	}
	.sec {
		padding: 1px 0 4px;
		font-size: 8.5px;
	}
	.row {
		gap: 2px;
		height: 14px;
		font-size: 8.5px;
	}
	.row i {
		flex-basis: 15px;
		padding-right: 3px;
	}
	.row s {
		flex-basis: 9px;
		height: 9px;
	}
	.sheet-key {
		margin-top: 10px;
		padding-top: 8px;
		font-size: 12px;
	}
	.sheet-note {
		margin-top: 16px;
		font-size: 15px;
	}
}
@media (max-width: 380px) {
	.cols {
		column-gap: 6px;
	}
	.row s {
		flex-basis: 8px;
		height: 8px;
	}
	.row i {
		flex-basis: 14px;
	}
}

/* why us, tighter */
@media (max-width: 760px) {
	.why-list {
		margin-top: 28px;
	}
	.why-list li,
	.why-list li + li {
		padding: 16px 0;
	}
	.why-list h3 {
		font-size: 20px;
	}
	.why-list p {
		margin-top: 6px;
		font-size: 16px;
	}
	.why-list p:has(+ .pass-tag) {
		margin-bottom: 10px;
	}
}

/* THE PORTAL'S SCREENS AS A SWIPE ROW (phones and tablets): each feature a card, its screen on top; the next card peeks */
@media (max-width: 900px) {
	.feats {
		display: flex;
		gap: 14px;
		margin-inline: calc(-1 * var(--gutter));
		padding: 4px var(--gutter) 6px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}
	.feats::-webkit-scrollbar {
		display: none;
	}
	.feat,
	.feat:nth-child(even) {
		display: flex;
		flex-direction: column;
		flex: 0 0 min(84%, 520px);
		gap: 18px;
		padding: 14px 14px 20px;
		border: 1px solid var(--line-strong);
		border-radius: 12px;
		background: var(--sheet);
		scroll-snap-align: start;
	}
	.feat .shot {
		order: -1;
	}
	.feat:nth-child(even) .feat-copy {
		order: 0;
	}
	.feat h3 {
		font-size: 23px;
	}
	.feat p,
	.feat ul {
		margin-top: 10px;
		font-size: 16px;
	}
	.feat ul {
		gap: 8px;
	}
	.frame {
		box-shadow: none;
		border-radius: 8px;
	}
	.shot .frame-phone {
		border-width: 4px;
		border-radius: 18px;
		box-shadow: none;
	}
	.shot .frame-phone img {
		border-radius: 14px;
	}
	.swipe-dots {
		display: flex;
		justify-content: center;
		gap: 8px;
		margin-top: 14px;
	}
	.swipe-dots[hidden] {
		display: none;
	}
	.swipe-dots i {
		width: 8px;
		height: 8px;
		border: 1.5px solid var(--ink-faint);
		border-radius: 50%;
	}
	.swipe-dots i.on {
		border-color: var(--ink);
		background: var(--ink);
	}
}
@media (min-width: 901px) {
	.swipe-dots {
		display: none;
	}
}

/* the course: run-in lines on a phone (the name in bold, then its words), one column */
@media (max-width: 600px) {
	.course-cta {
		margin-top: 22px;
	}
	.course-list li {
		padding: 13px 0 14px;
	}
	.course-list h3,
	.course-list p {
		display: inline;
		font-size: 16px;
		line-height: 1.5;
	}
	.course-list h3::after {
		content: '. ';
	}
	.course-list p {
		margin: 0;
	}
}

/* reviews on a phone: one lane (site.js), smaller cards */
@media (max-width: 640px) {
	.wall {
		margin-top: 28px;
	}
	.tcard {
		width: min(320px, 82vw);
		min-height: 0;
		gap: 14px;
		padding: 20px 20px 18px;
	}
	.tcard q {
		font-size: 17px;
	}
	.tcard .more {
		margin-top: 10px;
	}
	.says-tools {
		gap: 14px;
	}
}

/* the subjects: two-column tiles on a phone, Biology across both */
@media (max-width: 640px) {
	.subjects {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 16px;
	}
	.subject,
	.subject + .subject,
	.subject:nth-child(4n + 2),
	.subject:nth-child(4n + 3),
	.subject:nth-child(4n + 4) {
		display: flex;
		flex-direction: column;
		gap: 2px;
		padding: 12px 0 14px;
		border-left: 0;
		border-bottom: 1px solid var(--line);
	}
	.subject:first-child {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-rows: auto auto;
		column-gap: 14px;
	}
	.subject:first-child .num {
		grid-row: 1 / 3;
	}
	.subject .num {
		font-size: 36px;
		text-align: left;
	}
	.subject .name {
		font-size: 17px;
	}
	.subject .what {
		font-size: 14px;
		line-height: 1.4;
	}
	.subjects-note {
		margin-top: 16px;
		font-size: 15px;
	}
}

/* the plans, tighter on a phone */
@media (max-width: 640px) {
	.plans {
		gap: 18px;
	}
	.plan {
		padding: 22px 20px;
	}
	.plan h3 {
		font-size: 25px;
	}
	.plan .for {
		font-size: 16px;
	}
	.plan ul {
		gap: 8px;
		margin: 18px 0 20px;
		font-size: 16px;
	}
	.plan li {
		padding-left: 26px;
		line-height: 1.45;
	}
	.plan-foot {
		gap: 12px;
		padding-top: 18px;
	}
	.also {
		font-size: 16px;
	}
}

/* questions and answers; the guides as a 2 × 2; the foot in three short columns */
@media (max-width: 640px) {
	.faq summary {
		padding: 15px 0;
		font-size: 18px;
	}
	.guides {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.guide,
	.guide + .guide {
		gap: 6px;
		padding: 16px 12px 18px 0;
		border-left: 0;
		border-bottom: 1px solid var(--line);
	}
	.guide:nth-child(even) {
		padding-left: 14px;
		border-left: 1px solid var(--line);
	}
	.guide b {
		font-size: 18px;
	}
	.guide span {
		font-size: 14px;
	}
	.close-cta {
		gap: 20px;
	}
	.foot {
		padding-block: 40px 32px;
	}
	.foot-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px 14px;
	}
	.foot ul {
		gap: 4px;
	}
	.foot ul a {
		display: inline-block;
		padding: 6px 0;
		font-size: 15px;
		line-height: 1.3;
	}
	.foot-legal {
		margin-top: 28px;
	}
}

/* ══ /reviews, /pass/ AND 404 IN THE SAME SYSTEM (batch 145) ═════════════════════════════════════════════════════════ */
/* /reviews: one review a row, under a rule — the quote and the name on the left, the full text on the right; no card
   columns of uneven height. On a phone: the quote, the text, the name. */
.reviews {
	padding-block: clamp(32px, 4vw, 56px) var(--band-pad);
}
.review {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	grid-template-areas: 'q text' 'who text';
	grid-template-rows: auto 1fr;
	column-gap: clamp(28px, 5vw, 80px);
	padding: clamp(26px, 3.4vw, 44px) 0;
	border-top: 1px solid var(--line-strong);
	scroll-margin-top: 96px;
}
.review:first-child {
	border-top: 2px solid var(--ink);
}
.review:target {
	box-shadow: inset 4px 0 0 var(--ink);
	padding-left: 20px;
}
.review .q {
	grid-area: q;
	font-size: clamp(21px, 2vw, 26px);
	font-weight: 800;
	line-height: 1.32;
	letter-spacing: -0.005em;
}
.review .text {
	grid-area: text;
	display: grid;
	align-content: start;
	gap: 14px;
	max-width: 66ch;
	color: var(--ink-soft);
}
.review footer {
	grid-area: who;
	display: grid;
	align-content: start;
	gap: 2px;
	margin-top: 18px;
}
.review footer b {
	font-size: 18px;
}
.review footer span {
	color: var(--ink-soft);
	font-size: 15px;
}
@media (max-width: 820px) {
	.review {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: 'q' 'text' 'who';
		grid-template-rows: auto;
		padding: 24px 0;
	}
	.review .q {
		font-size: 20px;
	}
	.review .text {
		margin-top: 14px;
		font-size: 16px;
	}
	.review footer {
		margin-top: 16px;
	}
}

/* /pass/: the head band, then the Pass's list (with a gold edge: the Pass's colour, on its own page) and the box */
.ghead h1:only-child {
	margin-top: 0;
	max-width: 20ch;
}
.pass-soon {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px clamp(32px, 6vw, 96px);
	align-items: start;
	padding-block: clamp(36px, 5vw, 64px) var(--band-pad);
}
.pass-what {
	padding-top: 18px;
	border-top: 4px solid var(--gold-1);
}
.pass-what .lead {
	margin-top: 0;
	color: var(--ink);
	font-weight: 800;
}
.pass-what ul {
	display: grid;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}
.pass-what li {
	position: relative;
	padding-left: 30px;
}
.pass-what li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 0.42em;
	width: 14px;
	height: 8px;
	border-left: 2.5px solid var(--ok);
	border-bottom: 2.5px solid var(--ok);
	transform: rotate(-45deg);
}
.pass-free {
	padding-top: 18px;
	border-top: 2px solid var(--ink);
}
.pass-free > p:first-child {
	color: var(--ink-soft);
}
.pass-free .wl {
	margin-top: 22px;
}
.pass-free > .fine {
	margin-top: 20px;
}
@media (max-width: 820px) {
	.pass-soon {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* 404: the way back, and the guides */
.lost-h {
	margin: clamp(48px, 7vw, 88px) 0 18px;
	font-size: clamp(24px, 2.4vw, 30px);
}
/* the closing band: one column below 900 px, so its heading is never squeezed into a narrow column (seen at 768) */
@media (max-width: 900px) {
	.close-cta {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}
}

/* ══ ROUND 1 FIXES (batch 145) ══════════════════════════════════════════════════════════════════════════════════════ */
/* the waitlist box on one row: its column may shrink below the address box's natural width (it overflowed at 360–390) */
.wl {
	grid-template-columns: minmax(0, 1fr);
}
.wl-email {
	width: 100%;
}
/* every tap at least 44 px tall on a phone (the accessibility floor): the top bar's doors, the reviews' links, the foot */
@media (max-width: 640px) {
	.brand {
		min-height: 44px;
	}
	.top-doors .btn-sm,
	.menu summary {
		min-height: 44px;
	}
	.wall-pause {
		min-height: 44px;
	}
	.says-tools a,
	.tcard .more {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
	.tcard .more {
		margin-top: 2px;
	}
	.foot ul {
		gap: 0;
	}
	.foot ul a,
	.foot p a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding: 0;
	}
	.subjects-note a,
	.also a {
		padding-block: 10px;
	}
}
/* the subject blocks start a little further from their zone's heading (two rules close together read as one heavy one) */
#subjects > h2 + .subjs {
	margin-top: 30px;
}
/* the guides' head band on a laptop: the title and lead on the left, the facts (a 2 × 2 form) on the right, so the band
   uses its width and is shorter */
@media (min-width: 1100px) {
	.ghead .wrap:has(> .facts) {
		display: grid;
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		grid-template-areas: 'crumbs crumbs' 'title facts' 'lead facts';
		grid-template-rows: auto auto 1fr;
		column-gap: clamp(40px, 5vw, 96px);
	}
	.ghead .crumbs {
		grid-area: crumbs;
	}
	.ghead .wrap:has(> .facts) h1 {
		grid-area: title;
	}
	.ghead .wrap:has(> .facts) .lead {
		grid-area: lead;
	}
	.ghead .facts {
		grid-area: facts;
		align-self: end;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin: 0;
	}
	.ghead .facts > div:nth-child(3) {
		border-left: 0;
	}
	.ghead .facts > div:nth-child(n + 3) {
		border-top: 1px solid var(--line-strong);
	}
	.ghead .facts > div {
		padding: 12px 18px 14px;
	}
	.ghead .facts > .facts-note {
		padding: 8px 18px 10px;
	}
}
/* a subject's dot sits on the name's first line when the name runs to two */
.subj h3 {
	align-items: flex-start;
}
.subj .dot {
	margin-top: 0.3em;
}
