/* Practice Tests USA, concept A "Score report". Tokens from the approved canvas (light) and A-dark-map.json (dark). */

@font-face {
	font-family: "Asap";
	src: url("../fonts/asap-latin-var.woff2") format("woff2");
	font-weight: 400 800;
	font-stretch: 75% 100%;
	font-display: swap;
}
@font-face {
	font-family: "Overpass Signs";
	src: url("../fonts/overpass-800-signs.woff2") format("woff2");
	font-weight: 800;
	font-display: swap;
}

:root {
	color-scheme: light dark;
	--page: #ffffff;
	--card: #fffdfe;
	--ink: #1b1317;
	--ink2: #5c4e54;
	--line: #dbd1d5;
	--line2: #b9adb2;
	--tint: #fbf1f5;
	--accent: #a20966;
	--accent-ink: #990860;
	--on-accent: #fffafc;
	--ok: #09672e;
	--ok-ink: #09672f;
	--ok-tint: #e0f7e4;
	--bad: #b71d00;
	--bad-ink: #b71d01;
	--bad-tint: #ffe9e4;
	--slab: #201a1d;
	--slab-ink: #fff7fa;
	--slab-ink2: #cdbec5;
	--slab-line: #4a3e44;
	--slab-empty: #5a4c53;
	--slab-btn: #6e5f66;
	--cell-ok: #4cc77f;
	--cell-bad: #ff6a4d;
	--slab-bad-ink: #ff8a73;
	--pass: #ff7ab8;
	--road: #4a4a4f;
	--sans: "Asap", system-ui, sans-serif;
	--gutter: 16px;
	--radius: 8px;
	--radius-lg: 12px;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--page: #151113;
		--card: #1b1518;
		--ink: #f7eff3;
		--ink2: #c4b5bc;
		--line: #3b3237;
		--line2: #62565c;
		--tint: #241a1e;
		--accent: #c72481;
		--accent-ink: #ff8cc4;
		--ok: #298646;
		--ok-ink: #47aa62;
		--ok-tint: #15291a;
		--bad: #cb4029;
		--bad-ink: #e96850;
		--bad-tint: #341914;
		--slab: #3a1f2b;
		--slab-line: #5a454f;
		--slab-empty: #6a5560;
		--slab-btn: #7d6871;
	}
}
/* The header button (data-theme on <html>, kept in localStorage) overrides the system scheme either way. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
	color-scheme: dark;
	--page: #151113;
	--card: #1b1518;
	--ink: #f7eff3;
	--ink2: #c4b5bc;
	--line: #3b3237;
	--line2: #62565c;
	--tint: #241a1e;
	--accent: #c72481;
	--accent-ink: #ff8cc4;
	--ok: #298646;
	--ok-ink: #47aa62;
	--ok-tint: #15291a;
	--bad: #cb4029;
	--bad-ink: #e96850;
	--bad-tint: #341914;
	--slab: #3a1f2b;
	--slab-line: #5a454f;
	--slab-empty: #6a5560;
	--slab-btn: #7d6871;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--page);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}
@media (min-width: 960px) { body { font-size: 1.125rem; } }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, dl, dd, ol, ul, figure { margin: 0; }
.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 10; padding: 10px 14px; background: var(--card); border: 2px solid var(--accent); border-radius: var(--radius); }
.skip-link:focus { top: 8px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 960px) { :root { --gutter: clamp(24px, 5.5vw, 80px); } }

.display {
	font-stretch: 75%;
	font-weight: 800;
	letter-spacing: -0.005em;
}
.kicker {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink2);
}

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: 64px; display: flex; align-items: center; gap: 24px; }
@media (min-width: 960px) { .site-header .wrap { min-height: 76px; gap: 40px; } }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 32px; height: 32px; flex: 0 0 auto; }
.brand span { font-stretch: 75%; font-weight: 800; font-size: 1.4375rem; line-height: 1; letter-spacing: -0.01em; }
@media (min-width: 960px) { .brand svg { width: 36px; height: 36px; } .brand span { font-size: 1.625rem; } }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
@media (min-width: 960px) { .site-nav { margin-left: 0; flex: 1 1 auto; } }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.0625rem; }
.site-nav a[aria-current] { font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }
.site-nav a:hover { box-shadow: inset 0 -3px 0 var(--line2); }
.site-nav a[aria-current]:hover { box-shadow: inset 0 -3px 0 var(--accent); }
.site-nav .nav-wide { display: none; }
@media (min-width: 720px) { .site-nav .nav-wide { display: inline-flex; } }
.theme-btn {
	flex: 0 0 auto; width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); cursor: pointer;
}
.theme-btn[hidden] { display: none; }
.theme-btn:hover { border-color: var(--line2); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn[aria-pressed="true"] .i-moon, .theme-btn:not([aria-pressed="true"]) .i-sun { display: none; }
.site-nav .nav-short { display: none; }
@media (max-width: 719px) { .site-header .wrap { gap: 12px; } .site-nav a { padding: 0 10px; } }
@media (max-width: 479px) {
	.brand span { font-size: 1.25rem; }
	.site-nav a { padding: 0 8px; }
	.site-nav .nav-short { display: inline; }
	.site-nav .nav-long { display: none; }
	.theme-btn { width: 40px; height: 40px; }
}

.site-footer { margin-top: 56px; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 36px; display: grid; gap: 10px; }
@media (min-width: 960px) {
	.site-footer { margin-top: 96px; }
	.site-footer .wrap { padding-top: 40px; padding-bottom: 48px; grid-template-columns: minmax(0, 620px) auto; justify-content: space-between; align-items: start; gap: 40px; }
}
.site-footer .name { font-stretch: 75%; font-weight: 800; font-size: 1.375rem; }
.site-footer .note { margin-top: 6px; font-size: 1rem; color: var(--ink2); }
.site-footer nav { display: flex; flex-wrap: wrap; column-gap: 8px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px 0 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; }
@media (min-width: 960px) { .site-footer nav a { padding: 0 10px; } }
.site-footer nav a:hover { text-decoration: underline; }

/* Breadcrumb and page head */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; padding-top: 6px; font-size: 1rem; color: var(--ink2); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line2); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
@media (min-width: 960px) { .crumbs { padding-top: 12px; } }

.page-head { padding: 0 0 16px; display: grid; gap: 20px; }
.page-head h1 { font-size: clamp(2.75rem, 1.5rem + 4.4vw, 5.25rem); line-height: 0.98; }
.page-head .lead { margin-top: 10px; max-width: 40rem; font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.25rem); line-height: 1.45; color: var(--ink2); }
.facts { display: none; }
.page-head.is-plain { padding-bottom: 8px; }
.copy > .prose { padding-top: 8px; }
@media (min-width: 960px) {
	.page-head { grid-template-columns: 7fr 5fr; gap: 24px; align-items: end; padding: 14px 0 32px; }
	.facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; border-top: 2px solid var(--ink); }
	.facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.facts dd { margin-top: 2px; font-stretch: 75%; font-weight: 800; font-size: 1.875rem; line-height: 1.1; }
	.facts dd small { font-stretch: 100%; font-weight: 500; font-size: 1.125rem; color: var(--ink2); }
}

/* The test: score slab, question card, result */
.pt { display: grid; gap: 0; }
@media (min-width: 960px) {
	.pt { grid-template-columns: 7fr 5fr; gap: 24px; align-items: start; scroll-margin-top: 16px; }
	.pt-slab { grid-column: 2; grid-row: 1; position: sticky; top: 16px; }
	.pt-main { grid-column: 1; grid-row: 1; }
}

.pt-slab {
	margin: 0 calc(var(--gutter) * -1);
	padding: 16px var(--gutter) 16px;
	background: var(--slab);
	color: var(--slab-ink);
}
@media (min-width: 960px) { .pt-slab { margin: 0; padding: 30px 32px 32px; border-radius: var(--radius-lg); } }
.pt-slab .kicker { color: var(--slab-ink2); }
.pt-slab :focus-visible { outline-color: var(--slab-ink); }
.pt-slab-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
@media (min-width: 960px) { .pt-slab-top { display: block; } }
.pt-score { margin-top: 2px; display: flex; align-items: baseline; gap: 10px; }
.pt-score-num { font-stretch: 75%; font-weight: 800; font-size: clamp(3.5rem, 0.8rem + 8vw, 11rem); line-height: 0.82; letter-spacing: -0.03em; }
.pt-score-unit { font-stretch: 75%; font-weight: 700; font-size: clamp(1.375rem, 1rem + 1vw, 2.125rem); line-height: 1; }
.pt-score-line { max-width: 10.5rem; font-size: 1rem; line-height: 1.35; text-align: right; }
.pt-score-line strong { color: var(--pass); font-weight: 700; }
@media (min-width: 960px) { .pt-score { margin-top: 6px; gap: 14px; } .pt-score-line { max-width: none; margin-top: 18px; font-size: 1.1875rem; line-height: 1.4; text-align: left; } }

.pt-track-head { display: none; justify-content: space-between; gap: 8px; }
@media (min-width: 960px) { .pt-track-head { display: flex; margin-top: 22px; } }
.pt-track { --gap: 3px; position: relative; margin-top: 14px; display: grid; grid-template-columns: repeat(var(--n, 25), minmax(0, 1fr)); gap: var(--gap); }
@media (min-width: 960px) { .pt-track { --gap: 4px; margin-top: 8px; } }
.pt-cell { height: 26px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--slab-empty); }
@media (min-width: 960px) { .pt-cell { height: 34px; border-radius: 3px; } }
.pt-cell.is-right { background: var(--cell-ok); box-shadow: none; }
.pt-cell.is-wrong {
	background: var(--cell-bad) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='%23201a1d' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 60% no-repeat;
	box-shadow: none;
}
.pt-cell.is-now { box-shadow: inset 0 0 0 2px var(--slab-ink); }
.pt-cell.is-right.is-now, .pt-cell.is-wrong.is-now { box-shadow: inset 0 0 0 2px var(--slab-ink); }
.pt-passline { position: absolute; left: calc(var(--at) - 1px); top: -5px; bottom: -5px; width: 3px; background: var(--pass); }
.pt-legend { display: none; }
@media (min-width: 960px) {
	.pt-legend { margin-top: 8px; display: flex; gap: 18px; font-size: 0.9375rem; color: var(--slab-ink2); }
	.pt-legend span { display: inline-flex; align-items: center; gap: 6px; }
	.pt-legend i { width: 12px; height: 12px; border-radius: 2px; }
	.pt-legend .l-ok { background: var(--cell-ok); }
	.pt-legend .l-bad { background: var(--cell-bad); }
	.pt-legend .l-now { box-shadow: inset 0 0 0 2px var(--slab-ink); }
}
.pt-topics { display: none; }
@media (min-width: 960px) {
	.pt-topics { display: block; margin-top: 28px; }
	.pt-topics dl { margin-top: 6px; border-bottom: 1px solid var(--slab-line); }
	.pt-topics dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--slab-line); }
	.pt-topics dd { font-weight: 700; }
	.pt-topics .is-weak dd { color: var(--slab-bad-ink); }
	.pt-topics .is-weak dt::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--cell-bad); border-radius: 2px; }
}
.pt-slab-actions { display: none; }
@media (min-width: 960px) {
	.pt-slab-actions { display: flex; gap: 10px; margin-top: 24px; }
	.pt-slab-actions[hidden] { display: none; }
}
.btn-ghost {
	flex: 1 1 0; min-height: 48px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: transparent; border: 1px solid var(--slab-btn); border-radius: var(--radius); color: var(--slab-ink);
	font-weight: 700; font-size: 1rem; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--slab-ink2); }
.btn-ghost svg { width: 18px; height: 18px; }

.pt-main { padding-top: 16px; }
@media (min-width: 960px) {
	.pt-main { padding: 32px 36px; border: 1px solid var(--line2); border-radius: var(--radius-lg); background: var(--card); }
}
.pt-qs { list-style: none; padding: 0; }
.pt-q + .pt-q { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.pt.is-live .pt-q + .pt-q { margin-top: 0; padding-top: 0; border-top: 0; }
.pt-q { scroll-margin-top: 12px; }
.pt-q-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; }
.pt-q-head > .kicker:first-child { white-space: nowrap; }
.pt-tag { padding: 3px 8px; border-radius: 4px; background: var(--tint); }
.pt-q-text {
	margin-top: 8px; font-stretch: 75%; font-weight: 700;
	font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.14; letter-spacing: -0.005em;
}
.pt-q-text:focus { outline: none; }
.pt-q-text:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.pt-fig { margin-top: 18px; }
.pt-fig svg { width: 100%; height: auto; }
.pt-fig.is-sign svg { width: auto; height: 132px; }
@media (min-width: 960px) { .pt-fig { margin-top: 24px; } .pt-fig.is-sign svg { height: 180px; } }
.sign-text { font-family: "Overpass Signs", var(--sans); font-weight: 800; }

.pt-answers { margin-top: 14px; list-style: none; padding: 0; display: grid; gap: 6px; }
@media (min-width: 960px) { .pt-answers { margin-top: 24px; gap: 10px; } }
.pt-a {
	width: 100%; min-height: 52px; padding: 6px 12px; margin: 0; display: flex; align-items: center; gap: 12px;
	text-align: left; background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius);
	font-size: 1.0625rem; line-height: 1.35; cursor: pointer;
}
@media (min-width: 960px) { .pt-a { min-height: 60px; padding: 10px 16px; gap: 16px; font-size: 1.125rem; } }
.pt-a:hover { border-color: var(--ink2); }
.pt-a[aria-disabled="true"] { cursor: default; }
.pt-a[aria-disabled="true"]:hover { border-color: var(--line2); }
.pt-key {
	flex: 0 0 32px; height: 32px; display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--line2); border-radius: 6px; font-weight: 700; color: var(--ink2);
}
@media (min-width: 960px) { .pt-key { flex-basis: 36px; height: 36px; } }
.pt-key svg { display: none; width: 20px; height: 20px; }
.pt-a-body { flex: 1 1 auto; display: grid; }
.pt-a-tag { font-size: 0.9375rem; font-weight: 700; }
.pt-a-tag:empty { display: none; }
.pt-a.is-right { background: var(--ok-tint); border: 2px solid var(--ok); padding: 5px 11px; }
.pt-a.is-right .pt-a-text { font-weight: 700; }
.pt-a.is-right .pt-a-tag { color: var(--ok-ink); }
.pt-a.is-right .pt-key { background: var(--ok); border-color: var(--ok); }
.pt-a.is-wrong { background: var(--bad-tint); border: 2px solid var(--bad); padding: 5px 11px; }
.pt-a.is-wrong .pt-a-tag { color: var(--bad-ink); }
.pt-a.is-wrong .pt-key { background: var(--bad); border-color: var(--bad); }
@media (min-width: 960px) { .pt-a.is-right, .pt-a.is-wrong { padding: 9px 15px; } }
.pt-a.is-right .pt-key, .pt-a.is-wrong .pt-key { color: var(--on-accent); }
.pt-a.is-right .pt-key b, .pt-a.is-wrong .pt-key b { display: none; }
.pt-a.is-right .pt-key .i-ok, .pt-a.is-wrong .pt-key .i-bad { display: block; }

.pt-why { margin-top: 16px; padding: 16px; border-radius: var(--radius); background: var(--tint); }
@media (min-width: 960px) { .pt-why { margin-top: 20px; padding: 20px 24px; } }
.pt-why > summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--accent-ink); cursor: pointer; }
.pt.is-live .pt-why > summary { display: none; }
.pt-why-key { margin-bottom: 8px; font-weight: 700; }
.pt.is-live .pt-why-key { display: none; }
.pt-why-title { font-stretch: 75%; font-weight: 800; font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem); line-height: 1.2; }
.pt-verdict.is-wrong { color: var(--bad-ink); }
.pt-verdict:not(.is-wrong):not(:empty) { color: var(--ok-ink); }
.pt-why-text { margin-top: 6px; }
.pt-rule { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.45; color: var(--ink2); }
.pt-rule .kicker { margin-right: 8px; }

.pt-nav { margin-top: 16px; display: flex; gap: 8px; }
.pt-nav[hidden] { display: none; }
@media (max-width: 959px) {
	.pt-nav { position: sticky; bottom: 0; z-index: 2; margin: 16px calc(var(--gutter) * -1) 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--page); border-top: 1px solid var(--line); }
}
@media (min-width: 960px) { .pt-nav { margin-top: 24px; justify-content: space-between; } }
.btn {
	min-height: 56px; padding: 0 22px; margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	border-radius: var(--radius); font-weight: 700; font-size: 1.125rem; text-decoration: none; cursor: pointer;
}
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-main { background: var(--accent); color: var(--on-accent); border: 0; }
.btn-main:hover { background: var(--accent-ink); color: var(--on-accent); }
.btn-line { background: var(--card); color: var(--ink); border: 1px solid var(--line2); font-size: 1rem; }
.btn-line:hover { border-color: var(--ink2); color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: default; }
.pt-nav .btn-main { flex: 1 1 auto; }
.pt-nav .btn-line { flex: 0 0 56px; padding: 0; }
.pt-nav .btn-line span { display: none; }
@media (min-width: 960px) {
	.pt-nav .btn-main { flex: 0 0 auto; padding: 0 26px; }
	.pt-nav .btn-line { flex: 0 0 auto; padding: 0 18px; height: 52px; min-height: 52px; }
	.pt-nav .btn-line span { display: inline; }
}

.pt-result:focus { outline: none; }
.pt-result-h:focus { outline: none; }
.pt-result-h:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.pt-result-score { margin-top: 6px; display: flex; align-items: baseline; gap: 12px; }
.pt-result-score span:first-child { font-stretch: 75%; font-weight: 800; font-size: clamp(5rem, 3rem + 6vw, 8.5rem); line-height: 0.85; letter-spacing: -0.03em; }
.pt-result-score span:last-child { font-stretch: 75%; font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); line-height: 1.1; }
.pt-result-verdict { margin-top: 12px; display: inline-flex; padding: 6px 12px; border-radius: 6px; background: var(--ok-tint); color: var(--ok-ink); font-weight: 700; }
.pt-result-verdict.is-wrong { background: var(--bad-tint); color: var(--bad-ink); }
.pt-result-block { margin-top: 28px; }
.pt-result-block h3 { font-stretch: 75%; font-weight: 800; font-size: 1.75rem; line-height: 1.1; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.pt-missed { list-style: none; padding: 0; }
.pt-missed button {
	width: 100%; min-height: 52px; display: flex; align-items: center; gap: 14px; padding: 8px 0;
	background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer;
}
.pt-missed button:hover span:last-child { text-decoration: underline; }
.pt-missed-n { flex: 0 0 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--bad-tint); color: var(--bad-ink); font-weight: 700; }
.is-skipped .pt-missed-n { background: var(--tint); color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line2); }
.pt-result-actions { margin-top: 20px; display: grid; gap: 10px; }
@media (min-width: 600px) { .pt-result-actions { grid-template-columns: 1fr 1fr; } .pt-result-actions .btn-main { grid-column: 1 / -1; } }
.pt-result-actions .btn-main[hidden] { display: none; }
.pt-note { margin-top: 14px; font-size: 1rem; color: var(--ink2); }
.pt-result .pt-topics { display: block; margin-top: 28px; }
.pt-result .pt-topics dl { margin-top: 6px; border-bottom: 1px solid var(--line); }
.pt-result .pt-topics dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.pt-result .pt-topics dd { font-weight: 700; }
.pt-result .pt-topics .is-weak dd { color: var(--bad-ink); }
@media (min-width: 960px) { .pt-result .pt-topics { display: none; } }

/* Sections below the test */
.section { padding-top: 56px; }
@media (min-width: 960px) { .section { padding-top: 88px; } }
.section-h { font-stretch: 75%; font-weight: 800; font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem); line-height: 1.05; }
.section-h.ruled { padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.split { display: grid; gap: 18px; }
@media (min-width: 960px) { .split { grid-template-columns: 7fr 5fr; gap: 24px; } }
.prose p, .prose ul, .prose ol { margin-top: 14px; max-width: 42.5rem; line-height: 1.6; }
.prose h2:not(.section-h), .prose h3 { margin-top: 28px; font-stretch: 75%; font-weight: 800; font-size: 1.625rem; line-height: 1.15; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 6px; }
.rows { border-top: 2px solid var(--ink); }
.rows > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows dd { margin-top: 2px; }
@media (min-width: 960px) {
	.rows { margin-top: 8px; }
	.rows > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 14px 0; }
	.rows dt { padding-top: 3px; }
	.rows dd { margin-top: 0; }
}
/* Data table (hub: test size by state); same rules as .rows, figures in tabular numerals */
.data { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-variant-numeric: tabular-nums; }
.data th, .data td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data th:last-child, .data td:last-child { padding-right: 0; }
.data thead th { padding-top: 12px; }
.data tbody th { font-weight: 700; }
.data caption { caption-side: bottom; padding-top: 10px; text-align: left; font-size: 0.875rem; line-height: 1.5; color: var(--ink2); }
@media (min-width: 960px) { .data { margin-top: 8px; } }
.links { display: grid; }
@media (min-width: 720px) { .links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
@media (min-width: 1100px) { .links.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.links a {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 0;
	border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.125rem;
}
@media (min-width: 960px) { .links a { min-height: 64px; font-size: 1.1875rem; } }
.links a:hover span { text-decoration: underline; }
.links a svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--accent-ink); }
.links .icon { width: 40px; height: 40px; }
.links a .with-icon { display: flex; align-items: center; gap: 14px; }
.links a small { display: block; font-weight: 400; font-size: 1rem; color: var(--ink2); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 56px; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 1.125rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font-size: 1.5rem; line-height: 1; color: var(--accent-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > :not(summary) { padding-bottom: 16px; max-width: 42.5rem; }

/* Home */
.home-head { padding: 28px 0 8px; }
@media (min-width: 960px) { .home-head { padding: 56px 0 16px; } }
.home-head h1 { font-size: clamp(2.75rem, 1.4rem + 5vw, 6rem); line-height: 0.96; max-width: 14ch; }
.home-head .lead { margin-top: 16px; max-width: 40rem; font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.25rem); color: var(--ink2); }

/* Printable sheet button, under the test card */
.pt-sheet-row { margin-top: 20px; }
.pt-sheet-btn { min-height: 48px; padding: 0 16px; gap: 8px; font-size: 0.9375rem; text-wrap: balance; }
.pt-sheet-btn svg { width: 18px; height: 18px; }
@media (min-width: 960px) { .pt-sheet-row { margin-top: 24px; } .pt-sheet-btn { min-height: 52px; padding: 0 18px; font-size: 1rem; } }

/* Phones and small tablets: a tighter head so question 1 and its first answers fit on the first screen */
@media (max-width: 959px) {
	.crumbs a { min-height: 40px; }
	.page-head { padding-bottom: 12px; }
	.page-head h1 { font-size: clamp(2.125rem, 1.2rem + 4vw, 2.75rem); line-height: 1; }
	.page-head .lead { margin-top: 8px; font-size: 1rem; line-height: 1.4; }
	.pt-slab { padding-top: 12px; padding-bottom: 12px; }
	.pt-score-num { font-size: 2.75rem; }
	.pt-score-unit { font-size: 1.25rem; }
	.pt-track { margin-top: 10px; }
	.pt-cell { height: 20px; }
	.pt-main { padding-top: 12px; }
	.pt-q-text { margin-top: 6px; font-size: 1.3125rem; line-height: 1.2; }
}
@media (min-width: 960px) {
	.page-head h1 { font-size: clamp(2.75rem, 1.5rem + 2.6vw, 3.75rem); }
	.page-head { padding-bottom: 24px; }
	.pt-main { padding-top: 26px; }
}
/* A road sign sits beside its question instead of under it, so the answers start higher. */
@media screen {
	.pt-q[hidden] { display: none; }
	.pt-q:not([hidden]):has(> .pt-fig.is-sign) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: start; }
	.pt-q:has(> .pt-fig.is-sign) > * { grid-column: 1 / -1; }
	.pt-q:has(> .pt-fig.is-sign) > .q-stem { grid-column: 1; }
	.pt-q:has(> .pt-fig.is-sign) > .pt-fig { grid-column: 2; margin-top: 8px; }
	.pt-q:has(> .pt-fig.is-sign) > .pt-fig svg { height: 88px; }
	.pt-q:has(> .pt-fig.is-sign) > .pt-answers { margin-top: 16px; }
}
@media screen and (min-width: 960px) {
	.pt-q:has(> .pt-fig.is-sign) { column-gap: 24px; }
	.pt-q:has(> .pt-fig.is-sign) > .pt-fig svg { height: 120px; }
}
.pt-sheet-btn[hidden], .pt-sheet-head, .pt-sheet-key { display: none; }

@media print {
	.site-header, .site-footer nav, .pt-nav, .pt-slab-actions, .pt-result-actions, .crumbs, .section:not(.keep-print), .pt-sheet-btn { display: none !important; }
	.pt.is-sheet .pt-slab, .pt.is-sheet .pt-why, .pt.is-sheet .pt-result { display: none !important; }
	.pt.is-sheet .pt-q { margin-top: 0 !important; padding: 10px 0 8px !important; }
	.pt.is-sheet .pt-q-text { margin-top: 2px; font-size: 1.125rem; line-height: 1.3; }
	.pt.is-sheet .pt-fig { margin-top: 6px; }
	.pt.is-sheet .pt-fig svg { width: auto; max-width: 100%; height: 150px; }
	.pt.is-sheet .pt-fig.is-sign svg { height: 64px; }
	.pt.is-sheet .pt-answers { margin-top: 6px; gap: 2px; }
	.pt.is-sheet .pt-a, .pt.is-sheet .pt-a.is-right, .pt.is-sheet .pt-a.is-wrong { min-height: 0; padding: 1px 0; gap: 10px; background: none; border: 0; font-size: 1rem; }
	.pt.is-sheet .pt-a .pt-a-text { font-weight: 400; }
	.pt.is-sheet .pt-a-tag { display: none; }
	.pt.is-sheet .pt-a .pt-key { flex-basis: 24px; height: 24px; background: none; border-color: #999; color: #000; font-size: 0.875rem; }
	.pt.is-sheet .pt-a .pt-key b { display: inline; }
	.pt.is-sheet .pt-a .pt-key svg { display: none; }
	.pt.is-sheet .pt-sheet-head { display: block; padding: 12px 0; border-top: 2px solid #000; border-bottom: 1px solid #999; font-weight: 700; }
	.pt.is-sheet .pt-sheet-key { display: block; break-before: page; }
	.pt-sheet-key h2 { font-stretch: 75%; font-weight: 800; font-size: 1.75rem; padding-bottom: 8px; border-bottom: 2px solid #000; }
	.pt-sheet-key ol { margin-top: 4px; padding-left: 2em; columns: 2; column-gap: 28px; font-size: 0.875rem; line-height: 1.35; }
	.pt-sheet-key li { padding-top: 8px; break-inside: avoid; }
	.pt-sheet-key li > * { display: block; }
	.pt-sheet-key small { color: #333; font-size: 0.8125rem; }
	.pt { display: block; }
	.pt-slab { background: none; color: #000; border: 1px solid #000; margin: 0 0 16px; }
	.pt-slab .kicker, .pt-score-line strong { color: #000; }
	.pt-main { border: 0; padding: 0; }
	.pt-q { break-inside: avoid; margin-top: 16px !important; padding-top: 12px !important; border-top: 1px solid #999 !important; }
	.pt-cell, .pt-cell.is-now { box-shadow: inset 0 0 0 1px #999; outline: 0; }
	.pt-cell.is-right { background: #bbb; }
	.pt-cell.is-wrong { background-color: #555; }
	a { color: #000; }
}

@media (prefers-reduced-motion: no-preference) {
	.pt-a, .btn, .pt-cell { transition: background-color 0.15s ease, border-color 0.15s ease; }
}
