/* ==========================================================================
   Appraisal+ — theme stylesheet
   Tokens are defined in theme.json and surface as --wp--preset--* custom
   properties. This file aliases them to shorter --apl-* names and builds the
   component layer on top. Do not hard-code a colour, size or spacing value
   that is not in the token set.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts — extended Latin coverage.
   The primary Latin faces are declared via theme.json so the block editor
   loads them too; these add the extended ranges.
   -------------------------------------------------------------------------- */

@font-face {
	font-family: "Public Sans";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/public-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
		U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
		U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Public Sans";
	font-style: italic;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/public-sans-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
		U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
		U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Token aliases
   -------------------------------------------------------------------------- */

:root {
	--apl-ink-900: var(--wp--preset--color--ink-900, #0A1F33);
	--apl-ink-800: var(--wp--preset--color--ink-800, #102F4C);
	--apl-ink-700: var(--wp--preset--color--ink-700, #1B456E);
	--apl-ink-600: var(--wp--preset--color--ink-600, #2A5E8F);
	--apl-ink-300: var(--wp--preset--color--ink-300, #9DB8D0);
	--apl-ink-100: var(--wp--preset--color--ink-100, #E4EDF5);
	--apl-ink-050: var(--wp--preset--color--ink-050, #F2F7FB);

	--apl-gain-800: var(--wp--preset--color--gain-800, #0026A3);
	--apl-gain-700: var(--wp--preset--color--gain-700, #002FC4);
	--apl-gain-600: var(--wp--preset--color--gain-600, #003AEF);
	--apl-gain-400: var(--wp--preset--color--gain-400, #6F9BFF);
	--apl-gain-100: var(--wp--preset--color--gain-100, #E8EEFE);

	--apl-flag-700: var(--wp--preset--color--flag-700, #8A4F08);
	--apl-flag-600: var(--wp--preset--color--flag-600, #B4690E);
	--apl-flag-100: var(--wp--preset--color--flag-100, #FDF2E0);

	--apl-alert-700: var(--wp--preset--color--alert-700, #9B1C21);
	--apl-alert-600: var(--wp--preset--color--alert-600, #C0272D);
	--apl-alert-100: var(--wp--preset--color--alert-100, #FBE9E9);

	--apl-text:      var(--wp--preset--color--slate-900, #16202B);
	--apl-text-2:    var(--wp--preset--color--slate-700, #3D4B5C);
	--apl-muted:     var(--wp--preset--color--slate-500, #5E6B80);
	--apl-control-border: var(--wp--preset--color--slate-400, #7E8EA6);
	--apl-border-s:  var(--apl-control-border);
	--apl-border:    var(--wp--preset--color--slate-200, #E2E8F0);
	--apl-disabled:  var(--wp--preset--color--slate-100, #F1F5F9);
	--apl-canvas:    var(--wp--preset--color--canvas, #F7F9FB);
	--apl-surface:   var(--wp--preset--color--surface, #FFFFFF);

	--apl-font:      var(--wp--preset--font-family--sans, "Public Sans", sans-serif);
	--apl-font-mono: var(--wp--preset--font-family--mono, ui-monospace, monospace);

	--apl-fs-micro:   var(--wp--preset--font-size--micro, 0.8125rem);
	--apl-fs-small:   var(--wp--preset--font-size--small, 0.9375rem);
	--apl-fs-body:    var(--wp--preset--font-size--body, 1.0625rem);
	--apl-fs-lead:    var(--wp--preset--font-size--lead, 1.1875rem);
	--apl-fs-h4:      var(--wp--preset--font-size--h4, 1.0625rem);
	--apl-fs-h3:      var(--wp--preset--font-size--h3, 1.3125rem);
	--apl-fs-h2:      var(--wp--preset--font-size--h2, 1.8rem);
	--apl-fs-h1:      var(--wp--preset--font-size--h1, 2.4rem);
	--apl-fs-display: var(--wp--preset--font-size--display, 3.2rem);
	--apl-fs-figure:  var(--wp--preset--font-size--figure, 2.4rem);

	--apl-s1: 0.25rem;  --apl-s2: 0.5rem;   --apl-s3: 0.75rem;
	--apl-s4: 1rem;     --apl-s5: 1.25rem;  --apl-s6: 1.5rem;
	--apl-s8: 2rem;     --apl-s10: 2.5rem;  --apl-s12: 3rem;
	--apl-s16: 4rem;    --apl-s20: 5rem;    --apl-s24: 6rem;

	/*
	 * Softened across the whole site on 2026-11-10, in step: 4/8/12 became
	 * 10/14/20, so every button, input, card and panel moved together and
	 * nothing is left square next to something round. `xl` is the home page's
	 * blocks and sheet; `pill` is the segmented control and the pill links.
	 */
	--apl-radius-sm: 10px;
	--apl-radius-md: 14px;
	--apl-radius-lg: 20px;
	--apl-radius-xl: 28px;
	--apl-radius-pill: 999px;

	--apl-shadow-1: 0 1px 2px rgba(10,31,51,.06), 0 1px 3px rgba(10,31,51,.08);
	--apl-shadow-2: 0 4px 6px -2px rgba(10,31,51,.08), 0 12px 20px -4px rgba(10,31,51,.12);
	/* A sheet lifted well off what is under it: the home page's picker. */
	--apl-shadow-3: 0 2px 6px rgba(10,31,51,.06), 0 32px 60px -28px rgba(10,31,51,.38);

	/*
	 * Home page surfaces and the logo's gold (section 7). Not in theme.json:
	 * they are not for editors to pick.
	 *
	 *   paper       the home page's warm ground
	 *   paper-line  a hairline on it — decoration, never a control's edge
	 *   gold        the logo's "+" tile (#FEBA33, sampled from the logo
	 *               supplied 2026-11-11). Marks the amount gained: the
	 *               headline's accent words on the navy block (10.2:1), and
	 *               as a fill with navy on it (10.1:1). Never text on a
	 *               light surface — it is 1.7:1 on white.
	 *   gold-100    a tint of it, under navy text                  15.4:1
	 *   on-ink-2    secondary text on ink-900                   11.2:1
	 *   on-gain     secondary text on gain-600                   5.9:1
	 *
	 * On paper, muted text is 4.9:1 and control-border exactly 3.0:1 — the
	 * floor for a control's edge, so nothing lighter may ring a control there.
	 */
	--apl-paper:      #F6F3EC;
	--apl-paper-line: #E0D9CA;
	--apl-gold:       #FEBA33;
	--apl-gold-100:   #FFF3D6;
	--apl-on-ink-2:   #C5D6E5;
	--apl-on-gain:    #DCE6FF;

	/*
	 * The light wash, shared by the hero and the non-photo page head so the two
	 * read as siblings instead of as two different ideas: a cool navy tint
	 * deepening downwards, plus a faint wash of the logo blue in the top-right
	 * corner. This is the one gradient docs/design-system.md permits, and the
	 * only place an accent value is written out — a 9% tint of gain-600 has no
	 * token of its own, and both surfaces must use the same one.
	 */
	--apl-wash:
		radial-gradient(55% 70% at 88% 0%, rgba(0, 58, 239, .09), rgba(0, 58, 239, 0) 70%),
		linear-gradient(180deg, var(--apl-ink-050) 0%, var(--apl-ink-100) 100%);

	--apl-container: 1200px;
	--apl-container-narrow: 820px;
	/*
	 * The interior layout band. A 58ch reading column, the --apl-s12 gap and
	 * the 16rem rail come to roughly this, so an interior page capped here
	 * fills its band — rather than putting a 603px column in a 1200px
	 * container and leaving the right-hand third of every screen empty.
	 */
	--apl-container-layout: 1080px;
	--apl-gutter: 1.5rem;

	/*
	 * 58ch, not 68. The `ch` unit is the width of the "0" glyph, which in
	 * Public Sans is noticeably wider than the average lowercase letter — so
	 * 68ch rendered at 707px, about 83 characters per line, well past the
	 * 45–75 that reads comfortably. 58ch lands at roughly 70.
	 */
	--apl-measure: 58ch;

	--apl-control-h: 48px;
	--apl-section-y: 4rem;

	/*
	 * The sticky header's own height: the 12px above the bar, the bar's 66px
	 * min-height and its two 1px borders. Everything that has to clear it — the sticky
	 * layout rail, a heading jumped to from the contents list — measures from
	 * here so the two cannot drift apart when the header changes.
	 */
	--apl-header-h: 80px;

	--apl-transition: 150ms cubic-bezier(.4, 0, .2, 1);
}

@media (min-width: 768px) {
	:root { --apl-section-y: 6rem; }
}

@media (max-width: 479px) {
	:root { --apl-gutter: 1rem; }
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}

body {
	margin: 0;
	background: var(--apl-canvas);
	color: var(--apl-text);
	font-family: var(--apl-font);
	font-size: var(--apl-fs-body);
	line-height: 1.65;
	font-variant-numeric: tabular-nums;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--apl-s4);
	color: var(--apl-ink-900);
	font-weight: 700;
	line-height: 1.2;
	text-wrap: balance;
}

h1 { font-size: var(--apl-fs-h1); line-height: 1.12; letter-spacing: -0.015em; }
h2 { font-size: var(--apl-fs-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--apl-fs-h3); font-weight: 600; line-height: 1.3; }
h4 { font-size: var(--apl-fs-h4); font-weight: 600; line-height: 1.4; }

p { margin: 0 0 var(--apl-s5); }
p:last-child { margin-bottom: 0; }

a { color: var(--apl-ink-700); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--apl-ink-900); text-decoration-thickness: 2px; }

strong, b { font-weight: 700; }

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

/* Icons sit inside running text as often as they sit in flex rows, and the
   blanket `display: block` above would push those onto their own line. */
.apl-icon {
	display: inline-block;
	vertical-align: -0.15em;
	flex: none;
}

hr {
	border: 0;
	border-top: 1px solid var(--apl-border);
	margin: var(--apl-s10) 0;
}

code, kbd, samp, pre, .apl-ident {
	font-family: var(--apl-font-mono);
	font-size: 0.925em;
	letter-spacing: 0.01em;
}

.apl-ident {
	background: var(--apl-ink-050);
	border: 1px solid var(--apl-border);
	border-radius: var(--apl-radius-sm);
	padding: 0.1em 0.4em;
	white-space: nowrap;
}

ul, ol { margin: 0 0 var(--apl-s5); padding-left: 1.35em; }
li { margin-bottom: var(--apl-s2); }
li:last-child { margin-bottom: 0; }

:focus-visible {
	outline: 3px solid var(--apl-ink-700);
	outline-offset: 2px;
	border-radius: 2px;
}

/* On dark surfaces the navy ring would vanish. */
.apl-footer :focus-visible,
.apl-cta-band :focus-visible {
	outline-color: #FFFFFF;
}

::selection { background: var(--apl-ink-100); color: var(--apl-ink-900); }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

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

.apl-container--narrow { max-width: var(--apl-container-narrow); }

.apl-section { padding-block: var(--apl-section-y); }
.apl-section--tight { padding-block: calc(var(--apl-section-y) * 0.6); }
.apl-section--tint { background: var(--apl-ink-050); }
.apl-section--ink { background: var(--apl-ink-900); color: #FFFFFF; }
.apl-section--ink h2, .apl-section--ink h3 { color: #FFFFFF; }

.apl-measure { max-width: var(--apl-measure); }

.apl-stack > * + * { margin-top: var(--apl-s4); }

/*
 * Grid and flex children default to `min-width: auto`, which refuses to shrink
 * them below their min-content width. On a narrow phone that pushes a track
 * wider than the viewport and produces horizontal page scroll that is very
 * hard to trace back to its source. Every layout primitive opts out once, here.
 */
.apl-grid > *,
.apl-split > *,
.apl-layout > *,
.apl-stat-stack > *,
.apl-steps > *,
.apl-checklist > li,
.apl-tool__fields > *,
.apl-footer__grid > * {
	min-width: 0;
}

.apl-grid { display: grid; gap: var(--apl-s6); }
.apl-grid--2 { grid-template-columns: 1fr; }
.apl-grid--3 { grid-template-columns: 1fr; }
.apl-grid--4 { grid-template-columns: 1fr; }

@media (min-width: 600px) {
	.apl-grid--2 { grid-template-columns: repeat(2, 1fr); }
	.apl-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
	.apl-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.apl-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.apl-section-head {
	max-width: 44rem;
	margin-bottom: var(--apl-s10);
}

.apl-section-head p {
	font-size: var(--apl-fs-lead);
	color: var(--apl-text-2);
	margin-bottom: 0;
}

.apl-eyebrow {
	display: block;
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--apl-ink-600);
	margin-bottom: var(--apl-s3);
}

.apl-section--ink .apl-eyebrow { color: var(--apl-ink-300); }

/* Screen-reader-only, and the skip link that becomes visible on focus. */
.screen-reader-text,
.apl-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.apl-skip-link {
	position: absolute;
	top: 0; left: 50%;
	transform: translate(-50%, -120%);
	z-index: 200;
	background: var(--apl-ink-900);
	color: #FFFFFF;
	padding: var(--apl-s3) var(--apl-s6);
	font-weight: 600;
	text-decoration: none;
	border-radius: 0 0 var(--apl-radius-sm) var(--apl-radius-sm);
	transition: transform var(--apl-transition);
}

.apl-skip-link:focus {
	transform: translate(-50%, 0);
	color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.apl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--apl-s2);
	min-height: var(--apl-control-h);
	padding: 0 var(--apl-s6);
	border: 1px solid transparent;
	border-radius: var(--apl-radius-sm);
	font-family: inherit;
	font-size: var(--apl-fs-body);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--apl-transition), border-color var(--apl-transition), color var(--apl-transition);
}

.apl-btn:hover { text-decoration: none; }

.apl-btn--primary {
	background: var(--apl-gain-600);
	border-color: var(--apl-gain-600);
	color: #FFFFFF;
}
.apl-btn--primary:hover,
.apl-btn--primary:focus-visible {
	background: var(--apl-gain-700);
	border-color: var(--apl-gain-700);
	color: #FFFFFF;
}
.apl-btn--primary:active { background: var(--apl-gain-800); border-color: var(--apl-gain-800); }

.apl-btn--secondary {
	background: var(--apl-surface);
	border-color: var(--apl-ink-700);
	color: var(--apl-ink-700);
}
.apl-btn--secondary:hover,
.apl-btn--secondary:focus-visible {
	background: var(--apl-ink-050);
	color: var(--apl-ink-900);
	border-color: var(--apl-ink-900);
}

.apl-btn--tertiary {
	background: transparent;
	border-color: transparent;
	color: var(--apl-ink-700);
	padding-inline: var(--apl-s2);
	text-decoration: underline;
	text-underline-offset: 0.25em;
}
.apl-btn--tertiary:hover { color: var(--apl-ink-900); background: var(--apl-ink-050); }

.apl-btn--on-dark {
	background: #FFFFFF;
	border-color: #FFFFFF;
	color: var(--apl-ink-900);
}
.apl-btn--on-dark:hover,
.apl-btn--on-dark:focus-visible { background: var(--apl-ink-100); color: var(--apl-ink-900); }

.apl-btn--ghost-dark {
	background: transparent;
	border-color: rgba(255,255,255,.55);
	color: #FFFFFF;
}
.apl-btn--ghost-dark:hover,
.apl-btn--ghost-dark:focus-visible { background: rgba(255,255,255,.12); border-color: #FFFFFF; color: #FFFFFF; }

.apl-btn--sm { min-height: 44px; padding-inline: var(--apl-s4); font-size: var(--apl-fs-small); }
.apl-btn--block { width: 100%; }

.apl-btn[disabled], .apl-btn[aria-disabled="true"] {
	background: var(--apl-disabled);
	border-color: var(--apl-border);
	color: var(--apl-muted);
	cursor: not-allowed;
}

.apl-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--apl-s3);
	align-items: center;
}

/* --------------------------------------------------------------------------
   6. Statement bar + header
   Rebuilt 2026-11-10 to match the home page (docs/design-system.md, "The
   header"). It was a navy strip over a full-width white band with a hairline
   under it — two edge-to-edge bars above a page whose every other surface
   is a rounded field inset from the edge. Now:

     the statement bar  is a quiet line of text on the page's own ground;
     the header         is a white bar with the blocks' corners, inset the
                        same 12px, that floats when the page scrolls;
     a menu             is a sheet that hangs from the bar, not a band.
   -------------------------------------------------------------------------- */

.apl-topbar {
	color: var(--apl-text-2);
	font-size: var(--apl-fs-micro);
	line-height: 1.4;
}

.apl-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--apl-s1) var(--apl-s6);
	padding-block: var(--apl-s2) 0;
}

.apl-topbar__statement {
	display: inline-flex;
	align-items: center;
	gap: var(--apl-s2);
	margin: 0;
}

.apl-topbar__statement svg { flex: none; color: var(--apl-gain-600); }
.apl-topbar strong { color: var(--apl-ink-900); font-weight: 700; }

.apl-topbar__meta {
	display: inline-flex;
	align-items: center;
	gap: var(--apl-s4);
}

/* The only phone number above the fold on desktop, so it carries a little
   more weight and a real tap target. */
.apl-topbar a {
	display: inline-block;
	padding-block: 4px;
	color: var(--apl-ink-900);
	font-weight: 700;
	text-decoration: none;
}

.apl-topbar a:hover { text-decoration: underline; }

@media (max-width: 639px) {
	.apl-topbar__meta { display: none; }
}

/*
 * The header is the sticky box; the bar inside it is what you see. The 12px
 * above and beside the bar is the same inset the home page's blocks use, so
 * the bar and the hero block share their edges — and when the page scrolls,
 * the bar floats 12px off the top with the page passing behind it.
 */
.apl-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: var(--apl-s3) var(--apl-s3) 0;
}

.apl-header__bar {
	position: relative; /* the megamenu sheets hang from this */
	background: var(--apl-surface);
	border: 1px solid rgba(10, 31, 51, .08);
	border-radius: var(--apl-radius-xl);
	box-shadow: 0 1px 2px rgba(10, 31, 51, .04);
	transition: box-shadow 220ms ease, border-color 220ms ease;
}

/* Lifted once there is page behind it, or a menu hanging from it. */
.apl-header.is-scrolled .apl-header__bar,
.apl-header.has-menu-open .apl-header__bar {
	border-color: rgba(10, 31, 51, .1);
	box-shadow: 0 1px 2px rgba(10, 31, 51, .06), 0 14px 30px -14px rgba(10, 31, 51, .3);
}

.apl-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--apl-s6);
	min-height: 66px;
}

@media (max-width: 479px) {
	.apl-header__inner { min-height: 58px; }
}

/* --- Brand -------------------------------------------------------------- */

.apl-brand {
	display: inline-flex;
	align-items: center;
	gap: var(--apl-s3);
	text-decoration: none;
	color: var(--apl-ink-900);
	flex: none;
}

.apl-brand:hover { color: var(--apl-ink-900); text-decoration: none; }

.apl-brand__name {
	font-size: 1.3125rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
	white-space: nowrap;
}

.apl-brand__plus { color: var(--apl-gain-600); }

/*
 * The logo: inline SVG (aplus_brand()), 1103.5 × 233.5 in its own units —
 * lower case, so the box runs from the top of the cards to the foot of the
 * p. Sized by height. 44px tall sets the letters' x-height at about 23px and
 * the whole lockup at 208px wide. On a phone it scales with the screen, so
 * at 360px (36px tall, 170px wide) it still leaves room for the menu button.
 *
 * The box's middle is the middle of neither the letters nor the cards: the
 * p's tails hang below. Raised by 4% of its height, the letters sit level
 * with the navigation beside them.
 */
.apl-brand--logo svg {
	display: block;
	height: clamp(32px, 10vw, 44px);
	width: auto;
	max-width: none;
	overflow: visible; /* the cards hop above the box on hover */
}

.apl-header .apl-brand--logo svg { translate: 0 -4%; }

.apl-footer .apl-brand--logo svg { height: 50px; }

/* A logo set in Customize → Site Identity. */
.custom-logo {
	display: block;
	height: 40px;
	width: auto;
	max-width: none;
}

.custom-logo-link { display: inline-flex; flex: none; }

@media (max-width: 400px) {
	.custom-logo { height: 34px; }
}

/* --- Navigation --------------------------------------------------------- */

/*
 * Every rule here is scoped to the top level (`.apl-nav > ul > li > …`).
 * The megamenu panels live inside the same <nav>, and an unscoped
 * `.apl-nav a { height: 44px; white-space: nowrap }` would flatten them.
 *
 * Nothing between the bar and a panel may be positioned: the panels are
 * placed against the bar, and a positioned <nav>, <ul> or <li> would catch
 * them instead. (The links and buttons are positioned; they are siblings of
 * the panels, not ancestors.)
 */
.apl-nav { display: none; }

.apl-nav > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: var(--apl-s1);
}

.apl-nav > ul > li { margin: 0; }

.apl-nav > ul > li > a,
.apl-nav__trigger {
	position: relative;
	z-index: 1; /* above the glider */
	display: flex;
	align-items: center;
	gap: var(--apl-s1);
	height: 44px;
	padding: 0 var(--apl-s4);
	border: 0;
	border-radius: var(--apl-radius-pill);
	background: none;
	color: var(--apl-text-2);
	font: inherit;
	font-size: var(--apl-fs-small);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--apl-transition), color var(--apl-transition);
}

.apl-nav > ul > li > a:hover,
.apl-nav__trigger:hover,
.apl-nav__trigger[aria-expanded="true"] {
	background: var(--apl-ink-050);
	color: var(--apl-ink-900);
}

.apl-nav > ul > li > a:focus-visible,
.apl-nav__trigger:focus-visible { border-radius: var(--apl-radius-pill); }

.apl-nav__trigger .apl-icon { transition: transform 220ms cubic-bezier(.3, .8, .3, 1); }
.apl-nav__trigger[aria-expanded="true"] .apl-icon { transform: rotate(180deg); }

/*
 * The glider: one highlight that slides from item to item under the
 * pointer, instead of each item fading its own in and out. It is the bar's
 * ::after, placed by theme.js (initNavGlider) through custom properties, so
 * no element is added to the menu. With it running the items' own hover
 * fill is switched off; without JavaScript they keep it.
 */
.apl-header__bar::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	z-index: 0;
	width: var(--apl-glide-w, 0);
	height: var(--apl-glide-h, 0);
	transform: translate(var(--apl-glide-x, 0), var(--apl-glide-y, 0));
	border-radius: var(--apl-radius-pill);
	background: var(--apl-ink-050);
	opacity: var(--apl-glide-o, 0);
	pointer-events: none;
	transition: opacity 160ms ease;
}

/* It only slides once it is already showing: appearing on the first item
   is a fade in place, not a flight in from the corner. */
.apl-header__bar.is-gliding::after {
	transition: transform 260ms cubic-bezier(.3, .8, .3, 1), width 260ms cubic-bezier(.3, .8, .3, 1), opacity 160ms ease;
}

.apl-nav--glide > ul > li > a:hover,
.apl-nav--glide .apl-nav__trigger:hover,
.apl-nav--glide .apl-nav__trigger[aria-expanded="true"] { background: none; }

/*
 * Current page, or a group containing it: a dot before the label and the
 * darker text. A mark with a shape, so it is not colour alone — and the
 * link itself carries aria-current.
 */
.apl-nav > ul > li.current-menu-item > a,
.apl-nav > ul > li.current_page_item > a,
.apl-nav > ul > li.current-menu-ancestor > .apl-nav__trigger,
.apl-nav > ul > li.current-menu-parent > .apl-nav__trigger {
	color: var(--apl-ink-900);
	font-weight: 700;
}

.apl-nav > ul > li.current-menu-item > a::before,
.apl-nav > ul > li.current_page_item > a::before,
.apl-nav > ul > li.current-menu-ancestor > .apl-nav__trigger::before,
.apl-nav > ul > li.current-menu-parent > .apl-nav__trigger::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	margin-right: var(--apl-s1);
	border-radius: 50%;
	background: var(--apl-gain-600);
}

/* --- Megamenu sheets ------------------------------------------------------
   Hung from the bar (the nearest positioned ancestor), the bar's width, 8px
   under it, with the same corners. Open state is owned by JavaScript;
   without it, CSS hover/focus-within is the fallback so the links stay
   reachable.
   ------------------------------------------------------------------------ */

.apl-mega {
	display: none;
	position: absolute;
	left: -1px;  /* over the bar's border, so the two edges line up */
	right: -1px;
	top: calc(100% + var(--apl-s2));
	background: var(--apl-surface);
	border: 1px solid rgba(10, 31, 51, .1);
	border-radius: var(--apl-radius-xl);
	box-shadow: var(--apl-shadow-3);
	transform-origin: 50% 0;
}

/*
 * The gap between the bar and the sheet, and the strip of bar under the
 * item, belong to the sheet: the pointer crossing them is still "in" the
 * menu, so it does not close on the way down.
 */
.apl-mega::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: calc(var(--apl-s2) + var(--apl-s3));
}

.apl-nav:not(.apl-nav--js) li:hover > .apl-mega,
.apl-nav:not(.apl-nav--js) li:focus-within > .apl-mega { display: block; }

.apl-nav--js .apl-mega[data-open] {
	display: block;
	animation: apl-mega-in 220ms cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes apl-mega-in {
	from { opacity: 0; transform: translateY(-8px) scale(.985); }
	to   { opacity: 1; transform: none; }
}

/* What is in the sheet follows it in, a beat behind. */
.apl-nav--js .apl-mega[data-open] .apl-mega__list > li,
.apl-nav--js .apl-mega[data-open] .apl-mega__aside {
	animation: apl-tile-in 320ms cubic-bezier(.2, .7, .2, 1) both;
}

.apl-nav--js .apl-mega[data-open] .apl-mega__list > li:nth-child(1) { animation-delay: 40ms; }
.apl-nav--js .apl-mega[data-open] .apl-mega__list > li:nth-child(2) { animation-delay: 75ms; }
.apl-nav--js .apl-mega[data-open] .apl-mega__list > li:nth-child(3) { animation-delay: 110ms; }
.apl-nav--js .apl-mega[data-open] .apl-mega__list > li:nth-child(4) { animation-delay: 145ms; }
.apl-nav--js .apl-mega[data-open] .apl-mega__list > li:nth-child(n+5) { animation-delay: 180ms; }
.apl-nav--js .apl-mega[data-open] .apl-mega__aside { animation-delay: 150ms; }

.apl-mega__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 19rem;
	gap: var(--apl-s8);
	padding-block: var(--apl-s6);
}

.apl-mega__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--apl-s2) var(--apl-s4);
	align-content: start;
}

.apl-mega__list > li { margin: 0; min-width: 0; }

.apl-mega__link {
	display: flex;
	flex-direction: column;
	gap: var(--apl-s1);
	height: 100%;
	padding: var(--apl-s3);
	border-radius: var(--apl-radius-lg);
	color: var(--apl-ink-900);
	text-decoration: none;
	transition: background-color var(--apl-transition);
}

.apl-mega__link:hover { background: var(--apl-ink-050); color: var(--apl-ink-900); }
.apl-mega__link:focus-visible { border-radius: var(--apl-radius-lg); }

.apl-mega__link--icon { flex-direction: row; align-items: flex-start; gap: var(--apl-s3); }
.apl-mega__link--icon > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.apl-mega__thumb {
	display: block;
	aspect-ratio: 16 / 9;
	margin-bottom: var(--apl-s2);
	border-radius: var(--apl-radius-md);
	overflow: hidden;
	background: var(--apl-ink-100);
}

.apl-mega__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms cubic-bezier(.2, .7, .2, 1);
}

.apl-mega__link:hover .apl-mega__thumb img { transform: scale(1.05); }

.apl-mega__icon {
	flex: none;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: var(--apl-radius-md);
	background: var(--apl-ink-100);
	color: var(--apl-ink-700);
	transition: background-color var(--apl-transition), color var(--apl-transition), transform 220ms cubic-bezier(.3, .8, .3, 1);
}

.apl-mega__link:hover .apl-mega__icon {
	background: var(--apl-gain-600);
	color: #FFFFFF;
	transform: scale(1.06) rotate(-4deg);
}

.apl-mega__title { font-size: var(--apl-fs-body); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.apl-mega__desc  { font-size: var(--apl-fs-small); color: var(--apl-text-2); line-height: 1.5; }

.apl-mega__meta {
	margin-top: var(--apl-s1);
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--apl-gain-800);
}

/* The page you are on, inside an open sheet. */
.apl-mega .current-menu-item > .apl-mega__link {
	background: var(--apl-ink-050);
	box-shadow: inset 3px 0 0 var(--apl-gain-600);
}

.apl-mega__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--apl-s3);
	padding: var(--apl-s6);
	background: var(--apl-ink-050);
	border-radius: var(--apl-radius-lg);
	align-self: start;
}

.apl-mega__aside-text { margin: 0; font-size: var(--apl-fs-small); color: var(--apl-text-2); line-height: 1.55; }

.apl-mega__phone {
	display: inline-flex;
	align-items: center;
	gap: var(--apl-s2);
	padding-block: 4px;
	font-weight: 700;
	color: var(--apl-ink-900);
	text-decoration: none;
}

.apl-mega__phone:hover { text-decoration: underline; color: var(--apl-ink-700); }
.apl-mega__hours { margin: -8px 0 0; font-size: var(--apl-fs-micro); color: var(--apl-muted); }

.apl-mega__all {
	font-size: var(--apl-fs-small);
	font-weight: 600;
	padding-block: 4px;
}

/*
 * Dim the page behind an open menu; a click on it closes the menu. Fixed and
 * full-screen now that the bar floats — it used to start under a full-width
 * header — and behind the bar inside the header's own stacking context.
 */
.apl-header.has-mega-open::after,
.apl-header.has-menu-open::after {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba(10, 31, 51, .34);
	z-index: -1;
	animation: apl-fade-in 200ms ease both;
}

@keyframes apl-fade-in { from { opacity: 0; } to { opacity: 1; } }

.apl-header__actions {
	display: flex;
	align-items: center;
	gap: var(--apl-s2);
	flex: none;
}

/* A pill, like everything else that lives in the bar. */
.apl-header__cta {
	display: none;
	border-radius: var(--apl-radius-pill);
	padding-inline: var(--apl-s5);
}

/*
 * Measured. With the megamenu the nav is four items (about 400px): brand
 * (196) + nav (400) + CTA (175) + two 24px gaps = 819px, which fits from
 * roughly 900px. The desktop nav starts at 1024px so the Services sheet has
 * room for three service cards beside its side box.
 *
 * Keep the JS matchMedia values in theme.js in step with this number.
 */
@media (min-width: 1024px) {
	.apl-nav { display: block; }
	.apl-header__cta { display: inline-flex; }
}

@media (min-width: 700px) and (max-width: 1023px) {
	.apl-header__cta { display: inline-flex; }
}

/* --- Mobile menu --------------------------------------------------------
   The bar grows downwards to hold it: one white shape, not a bar with a
   second panel under it.
   ------------------------------------------------------------------------ */

.apl-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--apl-s2);
	min-height: 44px;
	padding: 0 var(--apl-s4);
	background: transparent;
	border: 1px solid var(--apl-border-s);
	border-radius: var(--apl-radius-pill);
	color: var(--apl-ink-900);
	font-family: inherit;
	font-size: var(--apl-fs-small);
	font-weight: 600;
	cursor: pointer;
	transition: background-color var(--apl-transition), border-color var(--apl-transition);
}

.apl-menu-toggle:hover { background: var(--apl-ink-050); border-color: var(--apl-ink-900); }
.apl-menu-toggle:focus-visible { border-radius: var(--apl-radius-pill); }

/* The icon that has just replaced the other turns into place. Only after
   the first press (`is-used`), so it does not spin when the page loads. */
.apl-menu-toggle.is-used [data-apl-icon]:not([hidden]) {
	display: inline-flex;
	animation: apl-icon-in 240ms cubic-bezier(.3, .8, .3, 1) both;
}

@keyframes apl-icon-in {
	from { opacity: 0; transform: rotate(-90deg) scale(.6); }
	to   { opacity: 1; transform: none; }
}

@media (min-width: 1024px) {
	.apl-menu-toggle { display: none; }
}

/*
 * Opens by growing a grid row from 0fr to 1fr, so the height animates to
 * whatever the menu's content needs. `visibility` keeps the closed menu's
 * links out of the tab order and away from screen readers; it flips at the
 * end of the closing transition and at the start of the opening one.
 */
.apl-mobile-nav {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows 320ms cubic-bezier(.3, .8, .3, 1), visibility 0s linear 320ms;
}

.apl-mobile-nav[data-open="true"] {
	grid-template-rows: 1fr;
	visibility: visible;
	transition-delay: 0s;
}

/* The row's one child: clipped while the row is short, scrolls when the
   menu is taller than the screen has room for. */
/*
 * 5rem, not just the header: with the page at the top the statement bar
 * (two lines, about 46px, on a phone) is still above the header, and a menu
 * sized against the header alone ran 12px off the bottom of the screen.
 * Once the page has scrolled, that room is dimmed page under the menu —
 * somewhere to press to close it.
 */
.apl-mobile-nav > .apl-container {
	min-height: 0;
	max-height: calc(100vh - var(--apl-header-h) - 5rem);
	max-height: calc(100dvh - var(--apl-header-h) - 5rem);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.apl-mobile-nav[data-open="true"] > .apl-container { border-top: 1px solid var(--apl-border); }

@media (min-width: 1024px) {
	.apl-mobile-nav { display: none !important; }
}

.apl-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.apl-mobile-nav li { margin: 0; border-bottom: 1px solid var(--apl-border); }
.apl-mobile-nav > ul > li:last-child { border-bottom: 0; }

/* Scoped to list items on purpose. A bare `.apl-mobile-nav a` also matched the
   two .apl-btn links in the panel footer and overrode their display, which
   collapsed the button layout and dropped their padding. */
.apl-mobile-nav li > a {
	display: block;
	padding: var(--apl-s4) 0;
	color: var(--apl-ink-900);
	font-weight: 600;
	text-decoration: none;
	transition: color var(--apl-transition), padding-left var(--apl-transition);
}

.apl-mobile-nav li > a:hover { color: var(--apl-gain-700); padding-left: var(--apl-s1); }

.apl-mobile-nav .sub-menu { padding-left: 0; }
.apl-mobile-nav .sub-menu li > a { padding-block: var(--apl-s3); }
.apl-mobile-nav .sub-menu li:last-child { border-bottom: 0; }

/* Group labels ("Services", "Resources"): the mobile menu shows groups
   expanded, so the label is a heading-style divider, not a control. */
.apl-mobile-nav__group {
	display: block;
	padding: var(--apl-s5) 0 var(--apl-s1);
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--apl-muted);
	text-decoration: none;
}

.apl-mobile-nav li.menu-item-has-children { border-bottom: 0; }

.apl-mobile-nav__footer {
	padding: var(--apl-s5) 0 var(--apl-s5);
	display: grid;
	gap: var(--apl-s3);
}

/* --------------------------------------------------------------------------
   7. Home page
   Redesigned 2026-11-10, twice (docs/design-system.md, "The redesign"). The
   second pass is this one: the first was clean and looked like every other
   site — text left, picture right, three cards, three more cards. What makes
   this one ours is in three decisions:

     1. One idea, shown rather than said. The "+" in the name is the gap
        between the insurer's offer and the car's worth; the hero does that
        sum on a slip of paper, and the "+" on it is the logo's gold tile.
     2. Blocks, not bands. The hero and the closer are rounded fields inset
        from the edge of the screen, on warm paper. Nothing else on the page
        has a background.
     3. Type does the work the cards used to do. Sections are a two-tone
        statement and a rule, not a grid of boxes.
   -------------------------------------------------------------------------- */

body.home { background: var(--apl-paper); }

/* --- Hero: the block ------------------------------------------------------ */

.apl-hero {
	/* How far the picker's sheet climbs up the block. */
	--apl-hero-overlap: 3.5rem;
	padding: var(--apl-s3) var(--apl-s3) 0;
}

@media (min-width: 768px) {
	.apl-hero { --apl-hero-overlap: 5rem; }
}

@media (min-width: 1024px) {
	.apl-hero { --apl-hero-overlap: 6.5rem; }
}

.apl-hero__block {
	position: relative;
	background: var(--apl-ink-900);
	border-radius: var(--apl-radius-xl);
	color: #FFFFFF;
	padding-block: var(--apl-s10) calc(var(--apl-hero-overlap) + var(--apl-s8));
}

/* No taller than this: at 1280 × 800 the four tiles, labels included, have
   to be on the first screen. */
@media (min-width: 1024px) {
	.apl-hero__block { padding-top: var(--apl-s10); }
}

.apl-hero__top {
	position: relative;
	display: grid;
	gap: var(--apl-s8);
}

.apl-hero__top > * { min-width: 0; }

@media (min-width: 768px) {
	.apl-hero__top {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
		align-items: end;
	}
}

@media (min-width: 1024px) {
	.apl-hero__top {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
		gap: var(--apl-s12);
	}
}

/* Entrance: the intro, then the sheet, then the stack. */
.apl-hero__intro,
.apl-picker {
	animation: apl-rise 700ms cubic-bezier(.2, .7, .2, 1) both;
}
.apl-hero__intro { animation-delay: 60ms; }
.apl-picker { animation-delay: 180ms; }

@keyframes apl-rise {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: none; }
}

/*
 * Heavier and tighter than any other heading on the site, and bigger than
 * the `display` token: it is the only thing in the block that has to be
 * read, and at this size it does the job a photograph used to.
 */
.apl-hero h1 {
	color: #FFFFFF;
	font-size: clamp(2.5rem, 1.2rem + 4.6vw, 4.75rem);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.04em;
	margin-bottom: var(--apl-s5);
	max-width: 12ch;
}

/* The amount gained, in the logo's gold. 10.2:1 on the block. */
.apl-hero__accent { color: var(--apl-gold); }

.apl-hero__lead {
	font-size: var(--apl-fs-lead);
	color: var(--apl-on-ink-2);
	max-width: 30rem;
	margin: 0;
}

/* --- Hero: the stack ------------------------------------------------------
   The sum as the logo's three cards (2026-11-17, replacing the torn paper
   slip). Shown from 768px only: below that there is no room, and the picker
   must not start a screen lower to make some.

   The card is the logo's card: small corners top-left and bottom-right, big
   ones top-right and bottom-left (in the logo 34% and 26% of the width;
   capped here so the text keeps its room). Like the logo, each card behind
   sits up and to the right of the one in front, and only its top band
   shows: the label and the figure.
   ------------------------------------------------------------------------ */

.apl-hero__art { display: none; }

@media (min-width: 768px) {
	.apl-hero__art {
		display: flex;
		justify-content: flex-end;
		align-items: flex-end;
		padding-bottom: var(--apl-s6);
	}
}

@media (min-width: 1200px) {
	.apl-hero__art { justify-content: flex-start; padding-left: var(--apl-s8); }
}

.apl-deck {
	--apl-card-shift: 1.25rem;  /* each card behind: this far right… */
	--apl-card-band: 4.75rem;   /* …and shows this much of itself above the next */
	--apl-card-hide: 2.5rem;    /* how far the next card covers it */
	flex: none;
	width: 17.5rem;
	margin: 0 calc(var(--apl-card-shift) * 2) 0 0;
}

@media (min-width: 1200px) { .apl-deck { width: 18.5rem; } }

/* Beside the intro at 768–1023px the column is narrow: a smaller stack. */
@media (max-width: 1023px) {
	.apl-deck { --apl-card-shift: 1rem; --apl-card-band: 4.25rem; width: 15rem; }
	.apl-deck__card dd { font-size: 1.1875rem; }
	.apl-deck__card--worth dd { font-size: 2rem; }
}

.apl-deck__cards { display: grid; margin: 0; }

.apl-deck__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-height: calc(var(--apl-card-band) + var(--apl-card-hide));
	padding: var(--apl-s4) var(--apl-s5) var(--apl-card-hide);
	border-radius: 12px 64px 12px 44px;
	box-shadow: 0 -10px 24px -12px rgba(0, 0, 0, .45);
	transition: transform 260ms cubic-bezier(.3, .8, .3, 1);
}

.apl-deck__card + .apl-deck__card { margin-top: calc(var(--apl-card-hide) * -1); }

.apl-deck__card dt {
	display: flex;
	align-items: center;
	gap: 0.4em;
	font-size: var(--apl-fs-small);
	font-weight: 600;
	line-height: 1.3;
}

.apl-deck__card dd {
	margin: 0;
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Back: the logo's blue. White on it is 4.8:1. */
.apl-deck__card--offer {
	z-index: 1;
	background: #1775BF;
	color: #FFFFFF;
	transform: translateX(calc(var(--apl-card-shift) * 2));
}
.apl-deck__card--offer dt { color: #FFFFFF; } /* a paler tint was 4.2:1 */

/* Middle: white, as in the reversed logo; navy here would vanish. */
.apl-deck__card--missed {
	z-index: 2;
	background: var(--apl-surface);
	color: var(--apl-ink-900);
	transform: translateX(var(--apl-card-shift));
}
.apl-deck__card--missed dt { color: var(--apl-ink-900); }

/* The "+" in the middle card's label: the logo's gold card, small. */
.apl-deck__plus {
	display: grid;
	place-items: center;
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 3px 8px 3px 6px;
	background: var(--apl-gold);
	color: #18223D;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1;
}

/* Front: the gold card that carries the "+". Ink on gold is 11:1. */
.apl-deck__card--worth {
	z-index: 3;
	min-height: 0;
	padding-bottom: var(--apl-s5);
	background: var(--apl-gold);
	color: #18223D;
}

.apl-deck__card--worth dt { color: #18223D; padding-right: 3rem; }

.apl-deck__card--worth dd {
	font-size: clamp(2.25rem, 1.4rem + 1.6vw, 2.75rem);
	line-height: 1.05;
	letter-spacing: -0.035em;
}

/* The logo's round-ended navy "+", inside the big corner. */
.apl-deck__mark {
	position: absolute;
	top: 1.1rem;
	right: 1.35rem;
	width: 1.75rem;
	height: 1.75rem;
	fill: none;
	stroke: #18223D;
	stroke-width: 4.2;
	stroke-linecap: round;
}

.apl-deck__note {
	margin: var(--apl-s3) 0 0;
	font-size: 0.75rem;
	color: var(--apl-on-ink-2);
}

/* Entrance: the cards are dealt back to front, rising into place; then the
   total counts up (the script, at 1.3s). */
@keyframes apl-card-deal {
	from { opacity: 0; translate: 0 22px; }
	to   { opacity: 1; translate: 0 0; }
}

.apl-deck__card { animation: apl-card-deal 600ms cubic-bezier(.2, .7, .2, 1) both; }
.apl-deck__card--offer  { animation-delay: 300ms; }
.apl-deck__card--missed { animation-delay: 520ms; }
.apl-deck__card--worth  { animation-delay: 740ms; }
.apl-deck__note { animation: apl-rise 600ms 900ms cubic-bezier(.2, .7, .2, 1) both; }

/* Pointed at, the stack fans a little, like the logo's cards hop. */
@media (hover: hover) and (pointer: fine) {
	.apl-deck:hover .apl-deck__card--offer  { transform: translate(calc(var(--apl-card-shift) * 2.6), -6px); }
	.apl-deck:hover .apl-deck__card--missed { transform: translate(calc(var(--apl-card-shift) * 1.3), -3px); }
}

/* --- The service picker ---------------------------------------------------
   A white sheet over the block's lower edge. A heading, a segmented control
   and a grid of link tiles.

   The segmented control is the same WAI-ARIA tabs pattern as the claim
   tool's (section 9): the selected tab is a filled pill — shape, fill and
   aria-selected, never colour alone. Without JavaScript the control stays
   hidden and the three groups are stacked under their own headings.
   ------------------------------------------------------------------------ */

.apl-picker {
	position: relative;
	z-index: 2;
	margin-top: calc(-1 * var(--apl-hero-overlap));
	padding: var(--apl-s4);
	background: var(--apl-surface);
	border-radius: var(--apl-radius-xl);
	box-shadow: var(--apl-shadow-3);
}

@media (min-width: 600px) {
	.apl-picker { padding: var(--apl-s6); }
}

@media (min-width: 1024px) {
	.apl-picker { padding: var(--apl-s8); }
}

.apl-picker__head {
	display: flex;
	flex-direction: column;
	gap: var(--apl-s3);
	margin-bottom: var(--apl-s5);
}

/* Side by side only from 960px: with four tabs, the title wrapped at 800. */
@media (min-width: 960px) {
	.apl-picker__head { flex-direction: row; align-items: center; gap: var(--apl-s6); }
}

@media (min-width: 768px) and (max-width: 959px) {
	.apl-picker__head { align-items: flex-start; }
}

.apl-picker__title {
	font-size: var(--apl-fs-h3);
	letter-spacing: -0.015em;
	margin: 0;
}

.apl-picker__tabs {
	display: flex;
	gap: 2px;
	padding: 4px;
	background: var(--apl-paper);
	border: 1px solid var(--apl-paper-line);
	border-radius: var(--apl-radius-pill);
}

.apl-picker__tabs[hidden] { display: none; }

@media (min-width: 768px) {
	.apl-picker__tabs { display: inline-flex; }
}

.apl-picker__tab {
	flex: 1 1 auto;
	min-height: 44px;
	padding: 0 var(--apl-s3);
	background: transparent;
	border: 0;
	border-radius: var(--apl-radius-pill);
	font: inherit;
	font-size: var(--apl-fs-small);
	font-weight: 600;
	color: var(--apl-text-2);
	white-space: nowrap;
	cursor: pointer;
	transition: color var(--apl-transition), background-color var(--apl-transition);
}

@media (min-width: 600px) {
	.apl-picker__tab { padding-inline: var(--apl-s5); }
}

.apl-picker__tab:hover { color: var(--apl-ink-900); }

.apl-picker__tab[aria-selected="true"] {
	background: var(--apl-ink-900);
	color: #FFFFFF;
}

/*
 * With the script running the fill is one pill that slides from the old
 * choice to the new one, rather than one fill vanishing and another
 * appearing: the eye is taken to what changed. It is the control's
 * ::before, placed by theme.js (initPicker) through custom properties, so
 * the tablist still contains nothing but tabs. `is-ready` arrives a frame
 * after the first placement, so the pill does not fly in from the left
 * edge when the page loads.
 */
.apl-picker__tabs { position: relative; }
.apl-picker__tab { position: relative; z-index: 1; }

.apl-picker--glide .apl-picker__tabs::before {
	content: "";
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 0;
	width: var(--apl-glide-w, 0);
	transform: translateX(var(--apl-glide-x, 0));
	background: var(--apl-ink-900);
	border-radius: var(--apl-radius-pill);
}

.apl-picker--glide.is-ready .apl-picker__tabs::before {
	transition: transform 300ms cubic-bezier(.3, .8, .3, 1), width 300ms cubic-bezier(.3, .8, .3, 1);
}

.apl-picker--glide .apl-picker__tab[aria-selected="true"] { background: transparent; }

.apl-picker__tab:focus-visible { border-radius: var(--apl-radius-pill); }

/*
 * "By vehicle type" and "By appraisal type" do not fit beside "Popular" on a
 * 360px screen, and a control that wraps or scrolls hides a third of the
 * choices. Under 480px each tab shows its one distinguishing word; the full
 * name stays the accessible name (and contains the visible word, so speech
 * input still finds it).
 */
.apl-picker__tab-short { display: none; }

@media (max-width: 479px) {
	.apl-picker__tab-full { display: none; }
	.apl-picker__tab-short { display: inline; }

	/* Four tabs since 2026-11-16: they fit 360px only this tight. */
	.apl-picker__tabs { gap: 0; padding: 3px; }
	.apl-picker__tab { padding-inline: 7px; font-size: 0.8125rem; letter-spacing: -0.01em; }
}

/* Group headings: what separates the three lists when there are no tabs. */
.apl-picker__group {
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--apl-text-2);
	margin: 0 0 var(--apl-s3);
}

.apl-picker__panel + .apl-picker__panel:not([hidden]) { margin-top: var(--apl-s8); }

.apl-picker--tabbed .apl-picker__group { display: none; }
.apl-picker--tabbed .apl-picker__panel + .apl-picker__panel { margin-top: 0; }

/* --- Tiles ----------------------------------------------------------------
   A row on a phone (badge, words, arrow); from 1024px a card, four across,
   with the badge above the words and the arrow in the corner. Short-label
   tiles (`--compact`, the vehicle types) are cards at every width: two
   across, then three, then six, so they take the same two rows or one that
   the four situations do.
   ------------------------------------------------------------------------ */

.apl-tiles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--apl-s3);
}

.apl-tiles > li { margin: 0; min-width: 0; }

.apl-tiles--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 600px) {
	.apl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.apl-tiles--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.apl-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--apl-s4); }
	.apl-tiles--compact { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.apl-tile {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--apl-s4);
	height: 100%;
	min-height: 4.75rem;
	padding: var(--apl-s3) var(--apl-s4);
	background: var(--apl-paper);
	border: 1px solid var(--apl-paper-line);
	border-radius: var(--apl-radius-lg);
	color: var(--apl-ink-900);
	text-decoration: none;
	transition: background-color var(--apl-transition), border-color var(--apl-transition), box-shadow var(--apl-transition), transform var(--apl-transition);
}

.apl-tile:hover,
.apl-tile:focus-visible {
	background: var(--apl-surface);
	border-color: var(--apl-ink-900);
	box-shadow: var(--apl-shadow-2);
	color: var(--apl-ink-900);
	transform: translateY(-2px);
}

.apl-tile:focus-visible { border-radius: var(--apl-radius-lg); }
.apl-tile:active { transform: none; box-shadow: none; }

/* The badge. Filled on the two tiles that answer on the spot. */
.apl-tile__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	background: var(--apl-surface);
	border-radius: var(--apl-radius-md);
	box-shadow: inset 0 0 0 1px var(--apl-paper-line);
	color: var(--apl-gain-600);
}

.apl-tile--primary .apl-tile__icon {
	background: var(--apl-gain-600);
	box-shadow: none;
	color: #FFFFFF;
}

.apl-tile__text { flex: 1 1 auto; min-width: 0; }

.apl-tile__label {
	display: block;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.apl-tile__note {
	display: block;
	margin-top: 2px;
	font-size: var(--apl-fs-small);
	line-height: 1.4;
	color: var(--apl-muted);
}

/*
 * The arrow, in a ring. The ring is control-border (3:1 on the tile): with
 * the tile's own edge kept soft, this is the mark that says "this goes
 * somewhere" before anything is hovered.
 */
.apl-tile__go {
	flex: none;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--apl-control-border);
	border-radius: 50%;
	color: var(--apl-ink-900);
	transition: background-color var(--apl-transition), border-color var(--apl-transition), color var(--apl-transition), transform var(--apl-transition);
}

.apl-tile:hover .apl-tile__go,
.apl-tile:focus-visible .apl-tile__go {
	background: var(--apl-gain-600);
	border-color: var(--apl-gain-600);
	color: #FFFFFF;
}

/*
 * On a phone the row is a list item and the ring is 36px the label needs:
 * with it, "My car was repaired" broke onto two lines. A bare arrow says
 * the same thing there, the way a settings row does.
 */
@media (max-width: 599px) {
	.apl-tile { gap: var(--apl-s3); padding-inline: var(--apl-s3); }
	.apl-tile__icon { width: 2.5rem; height: 2.5rem; }
	.apl-tile__label { font-size: 1rem; }

	.apl-tile__go { width: auto; height: auto; border: 0; }

	.apl-tile:hover .apl-tile__go,
	.apl-tile:focus-visible .apl-tile__go { background: transparent; color: var(--apl-gain-600); }
}

/* The button rule nudges this arrow on hover; here the ring does the work. */
.apl-tile .apl-icon--arrow-right { transition: none; }

/* Cards: the short-label tiles always, the rest from 1024px. */
.apl-tiles--compact .apl-tile {
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--apl-s4);
	min-height: 7rem;
	padding: var(--apl-s4);
}

.apl-tiles--compact .apl-tile__text { flex: none; }
.apl-tiles--compact .apl-tile__go { display: none; }

@media (min-width: 1024px) {
	.apl-tile,
	.apl-tiles--compact .apl-tile {
		flex-direction: column;
		align-items: flex-start;
		justify-content: space-between;
		gap: var(--apl-s5);
		min-height: 8.75rem;
		padding: var(--apl-s5);
	}

	.apl-tile__text { flex: none; }
	.apl-tile__icon { width: 3rem; height: 3rem; }

	.apl-tile__go,
	.apl-tiles--compact .apl-tile__go {
		display: grid;
		position: absolute;
		top: var(--apl-s5);
		right: var(--apl-s5);
	}

	.apl-tile:hover .apl-tile__go,
	.apl-tile:focus-visible .apl-tile__go { transform: rotate(-45deg); }

	.apl-tile__label { font-size: var(--apl-fs-lead); }
	.apl-tiles--compact .apl-tile__label { font-size: var(--apl-fs-body); }
}

/*
 * Rows (`--rows`): the client's long lists — seven or eight entries, each a
 * name and a line of detail. Cards that size would make the sheet three
 * screens tall, so these stay rows at every width: one column, two from
 * 600px, three from 1024px. The arrow is a bare arrow, as on a phone.
 */
@media (min-width: 1024px) {
	.apl-tiles--rows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--apl-s3); }

	.apl-tiles--rows .apl-tile {
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		gap: var(--apl-s4);
		min-height: 5rem;
		padding: var(--apl-s3) var(--apl-s4);
	}

	.apl-tiles--rows .apl-tile__text { flex: 1 1 auto; }
	.apl-tiles--rows .apl-tile__icon { width: 2.75rem; height: 2.75rem; }
	.apl-tiles--rows .apl-tile__label { font-size: var(--apl-fs-body); }

	.apl-tiles--rows .apl-tile__go {
		position: static;
		width: auto;
		height: auto;
		border: 0;
	}

	.apl-tiles--rows .apl-tile:hover .apl-tile__go,
	.apl-tiles--rows .apl-tile:focus-visible .apl-tile__go {
		background: transparent;
		color: var(--apl-gain-600);
		transform: translateX(3px);
	}
}

/* --- Pill links: the quiet exits under the tiles -------------------------- */

.apl-picker__more {
	display: flex;
	flex-wrap: wrap;
	gap: var(--apl-s3);
	margin-top: var(--apl-s5);
}

.apl-pill {
	display: inline-flex;
	align-items: center;
	gap: var(--apl-s2);
	min-height: 44px;
	padding: 0 var(--apl-s5);
	background: transparent;
	border: 1px solid var(--apl-control-border);
	border-radius: var(--apl-radius-pill);
	color: var(--apl-ink-900);
	font-size: var(--apl-fs-small);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color var(--apl-transition), border-color var(--apl-transition), color var(--apl-transition);
}

.apl-pill:hover,
.apl-pill:focus-visible { background: var(--apl-ink-900); border-color: var(--apl-ink-900); color: #FFFFFF; }

.apl-pill:focus-visible { border-radius: var(--apl-radius-pill); }

/* --- Statement: a section heading in two tones ---------------------------
   What the section is, in ink; what it means for the reader, in grey. One
   heading does the work of a heading and a lead paragraph.
   ------------------------------------------------------------------------ */

.apl-statement {
	font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.875rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.03em;
	max-width: 22ch;
	margin: 0;
}

.apl-statement span { color: var(--apl-muted); }

/* --- Timeline: how it works ------------------------------------------------
   The time each step takes is the axis; the step hangs from its mark.
   ------------------------------------------------------------------------ */

.apl-timeline {
	list-style: none;
	margin: var(--apl-s12) 0 0;
	padding: 0;
	display: grid;
	gap: var(--apl-s10);
}

/* Four steps since 2026-11-17: two across on a tablet, four from 1024px. */
@media (min-width: 640px) {
	.apl-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--apl-s12) 0; }
}

@media (min-width: 1024px) {
	.apl-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: var(--apl-s16); }
}

.apl-timeline__step { margin: 0; min-width: 0; }

.apl-timeline__when {
	display: flex;
	align-items: center;
	gap: var(--apl-s3);
	margin: 0 0 var(--apl-s6);
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--apl-ink-900);
	white-space: nowrap;
}

.apl-timeline__when::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--apl-gain-600);
	box-shadow: 0 0 0 5px var(--apl-gain-100);
}

/* The axis, running on to the next mark. */
.apl-timeline__when::after {
	content: "";
	flex: 1 1 auto;
	height: 2px;
	margin-right: var(--apl-s3);
	background: var(--apl-paper-line);
}

.apl-timeline__num {
	display: block;
	font-size: clamp(4rem, 2.4rem + 5vw, 6.5rem);
	font-weight: 300;
	line-height: 0.9;
	letter-spacing: -0.05em;
	color: var(--apl-ink-900);
	margin-bottom: var(--apl-s5);
}

.apl-timeline__step h3 {
	font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	margin-bottom: var(--apl-s2);
}

.apl-timeline__step > p:last-child {
	color: var(--apl-text-2);
	max-width: 30ch;
	margin: 0;
}

@media (min-width: 900px) {
	.apl-timeline__step h3,
	.apl-timeline__step > p:last-child { padding-right: var(--apl-s8); }
}

/* --- Panel and figures: why us --------------------------------------------- */

.apl-section--flush { padding-block: 0; }

.apl-panel {
	background: var(--apl-surface);
	border: 1px solid var(--apl-paper-line);
	border-radius: var(--apl-radius-xl);
	padding: var(--apl-s8) var(--apl-s5);
}

@media (min-width: 768px) {
	.apl-panel { padding: var(--apl-s12); }
}

@media (min-width: 1100px) {
	.apl-panel { padding: var(--apl-s16); }
}

/* Three facts under a rule each: figures, not cards. */
.apl-figures {
	display: grid;
	gap: var(--apl-s8);
	margin: var(--apl-s10) 0 var(--apl-s8);
}

@media (min-width: 1024px) {
	.apl-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--apl-s10); margin-top: var(--apl-s16); }
}

.apl-figures > div {
	position: relative;
	min-width: 0;
	padding-top: var(--apl-s5);
}

/* The rule, as its own box so it can be drawn across (section 17b). */
.apl-figures > div::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--apl-ink-900);
	transform-origin: 0 50%;
}

.apl-figures dt {
	font-size: clamp(2rem, 0.85rem + 2.3vw, 2.625rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.04em;
	color: var(--apl-ink-900);
}

.apl-figures dd {
	margin: var(--apl-s3) 0 0;
	color: var(--apl-text-2);
	max-width: 30ch;
}

/* A text link that is an action: bold, with the accent as its underline. */
.apl-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: var(--apl-s2);
	min-height: 44px;
	font-weight: 700;
	color: var(--apl-ink-900);
	text-decoration: underline;
	text-decoration-color: var(--apl-gain-600);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

.apl-link-arrow:hover { color: var(--apl-gain-700); text-decoration-thickness: 2px; }
.apl-link-arrow:hover .apl-icon--arrow-right { transform: translateX(3px); }

/* --- Questions: heading on the left, the list on the right ---------------- */

.apl-asks { display: grid; gap: var(--apl-s8); }

.apl-asks > * { min-width: 0; }

.apl-asks__head { display: grid; gap: var(--apl-s4); justify-items: start; }

@media (min-width: 900px) {
	.apl-asks {
		grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
		gap: var(--apl-s16);
		align-items: start;
	}

	/* The heading keeps the reader company down the list. */
	.apl-asks__head { position: sticky; top: calc(var(--apl-header-h) + var(--apl-s8)); }
}

/* The accordion without its boxes: rules, larger questions, no fill. */
.apl-faq.apl-faq--open { border-top: 2px solid var(--apl-ink-900); }

.apl-faq.apl-faq--open details {
	background: transparent;
	border-bottom-color: var(--apl-paper-line);
}

.apl-faq.apl-faq--open summary {
	padding: var(--apl-s6) 0;
	font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	transition: color var(--apl-transition);
}

.apl-faq.apl-faq--open summary:hover { background: transparent; color: var(--apl-gain-700); }

.apl-faq.apl-faq--open summary::after {
	width: 24px;
	height: 24px;
	margin-top: 2px;
	color: var(--apl-ink-900);
}

.apl-faq.apl-faq--open .apl-faq__answer {
	padding: 0 0 var(--apl-s6);
	font-size: var(--apl-fs-body);
}

/* --- Closer: the page's second block --------------------------------------
   The logo blue, inset like the hero. White on it is 7.4:1.
   ------------------------------------------------------------------------ */

.apl-closer { padding: 0 var(--apl-s3) var(--apl-s3); }

.apl-closer__block {
	position: relative;
	overflow: hidden;
	background: var(--apl-gain-600);
	border-radius: var(--apl-radius-xl);
	color: #FFFFFF;
}

.apl-closer__inner {
	display: grid;
	gap: var(--apl-s6);
	padding-block: var(--apl-s12) 0;
}

.apl-closer__inner > * { min-width: 0; }

@media (min-width: 900px) {
	.apl-closer__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: var(--apl-s12);
		align-items: end;
		padding-top: var(--apl-s20);
	}

	.apl-closer__text { padding-bottom: var(--apl-s20); }
}

.apl-closer h2 {
	color: #FFFFFF;
	font-size: clamp(2.5rem, 1.2rem + 5vw, 5rem);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.04em;
	margin-bottom: var(--apl-s5);
}

.apl-closer p {
	font-size: var(--apl-fs-lead);
	color: var(--apl-on-gain);
	max-width: 32rem;
	margin-bottom: var(--apl-s8);
}

/*
 * The logo's mark signs the page off, its front card standing on the
 * block's floor. The block clips them there, which is what lets the three
 * rise up out of it when the block is reached (section 17b).
 */
.apl-closer__mark {
	justify-self: end;
	width: clamp(9rem, 24vw, 17rem);
	line-height: 0;
}

.apl-closer__mark svg { display: block; width: 100%; height: auto; overflow: visible; }

@media (min-width: 900px) {
	.apl-closer__mark { margin-right: var(--apl-s6); }
}

/* On the two blocks the navy ring would vanish. */
.apl-hero__block :focus-visible,
.apl-closer :focus-visible { outline-color: #FFFFFF; }

/* --------------------------------------------------------------------------
   8. The report preview — a facsimile of the deliverable, not a stock photo
   -------------------------------------------------------------------------- */

.apl-report {
	background: var(--apl-surface);
	border-radius: var(--apl-radius-lg);
	box-shadow: var(--apl-shadow-2);
	overflow: hidden;
	color: var(--apl-text);
	max-width: 30rem;
	margin-inline: auto;
	width: 100%;
}

.apl-report__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--apl-s3);
	padding: var(--apl-s3) var(--apl-s5);
	background: var(--apl-ink-900);
	color: #FFFFFF;
	font-size: var(--apl-fs-micro);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.apl-report__bar .apl-ident {
	background: rgba(255,255,255,.1);
	border-color: rgba(255,255,255,.2);
	color: #FFFFFF;
	text-transform: none;
	letter-spacing: 0;
}

.apl-report__body { padding: var(--apl-s5); }

.apl-report__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--apl-s4);
	padding-block: var(--apl-s3);
	border-bottom: 1px solid var(--apl-border);
	font-size: var(--apl-fs-small);
}

.apl-report__row:last-of-type { border-bottom: 0; }

.apl-report__row dt { color: var(--apl-muted); margin: 0; }
.apl-report__row dd { margin: 0; font-weight: 600; text-align: right; }

.apl-report__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--apl-s4);
	margin-top: var(--apl-s4);
	padding: var(--apl-s4) var(--apl-s5);
	background: var(--apl-gain-100);
	border-radius: var(--apl-radius-md);
	border-left: 4px solid var(--apl-gain-600);
}

.apl-report__total-label {
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--apl-gain-800);
	margin: 0;
}

.apl-report__total-value {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--apl-gain-800);
	line-height: 1;
	margin: 0;
	white-space: nowrap;
}

/* A report panel whose body is a full-bleed table rather than a field list. */
.apl-report__body--table { padding: 0; }
.apl-report__body--table .apl-table-wrap { border: 0; border-radius: 0; }
.apl-report__body--table .apl-table { min-width: 0; }

.apl-report__foot {
	padding: var(--apl-s3) var(--apl-s5) var(--apl-s5);
	font-size: var(--apl-fs-micro);
	color: var(--apl-muted);
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
   9. Eligibility tool — step two of the home page, opened by the picker
   -------------------------------------------------------------------------- */

/*
 * The tool's own section. It used to overlap the hero's bottom edge; since
 * the redesign it is closed when the page loads and the picker opens it
 * (theme.js, initToolTabs). The script sets [hidden], never the server, so
 * without JavaScript the section is simply part of the page.
 */
.apl-check { padding-block: var(--apl-s10) 0; }

/* On the home page's paper the tool is a sheet like the picker above it. */
.apl-check .apl-tool {
	border-color: var(--apl-paper-line);
	border-radius: var(--apl-radius-xl);
	box-shadow: var(--apl-shadow-3);
}

.apl-check[hidden] { display: none; }

/* Opened by a tile: it fades in rather than rising, because the page is
   scrolling to it at the same moment and a second movement fights that. */
.apl-check.is-opened .apl-tool { animation: apl-fade-in 320ms ease both; }

.apl-tool-wrap { position: relative; }

.apl-tool {
	background: var(--apl-surface);
	border: 1px solid var(--apl-border);
	border-radius: var(--apl-radius-lg);
	box-shadow: var(--apl-shadow-2);
	padding: var(--apl-s6);
}

@media (min-width: 768px) {
	.apl-tool { padding: var(--apl-s8); }
}

/* --- Tabs: diminished value / total loss ---------------------------------
   Underline tabs, not a pill segmented control. The selected state is carried
   by a 3px bar, heavier text colour and aria-selected — never colour alone.
   ------------------------------------------------------------------------ */

.apl-tool__tabs {
	display: flex;
	gap: var(--apl-s1);
	margin: calc(var(--apl-s2) * -1) 0 var(--apl-s6);
	border-bottom: 1px solid var(--apl-border);
}

.apl-tool__tabs[hidden] { display: none; }

.apl-tool__tab {
	display: inline-flex;
	align-items: center;
	gap: var(--apl-s2);
	min-height: 48px;
	padding: 0 var(--apl-s4);
	margin-bottom: -1px;
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: var(--apl-radius-sm) var(--apl-radius-sm) 0 0;
	font: inherit;
	font-size: var(--apl-fs-body);
	font-weight: 600;
	color: var(--apl-text-2);
	white-space: nowrap;
	cursor: pointer;
	transition: color var(--apl-transition), border-color var(--apl-transition), background-color var(--apl-transition);
}

.apl-tool__tab:hover { color: var(--apl-ink-900); background: var(--apl-ink-050); }
.apl-tool__tab .apl-icon { color: var(--apl-ink-600); }

.apl-tool__tab[aria-selected="true"] {
	color: var(--apl-ink-900);
	border-bottom-color: var(--apl-gain-600);
}

.apl-tool__tab[aria-selected="true"] .apl-icon { color: var(--apl-gain-600); }

/* Two equal tabs on a phone; labels may wrap, icons go below 420px. */
@media (max-width: 599px) {
	.apl-tool__tab {
		flex: 1 1 0;
		justify-content: center;
		padding: var(--apl-s2) var(--apl-s3);
		white-space: normal;
		text-align: center;
		line-height: 1.25;
	}
}

@media (max-width: 419px) {
	.apl-tool__tab .apl-icon { display: none; }
}

/* Without JavaScript both panels are shown stacked; separate them. */
.apl-tool__panel + .apl-tool__panel:not([hidden]) {
	margin-top: var(--apl-s8);
	padding-top: var(--apl-s8);
	border-top: 1px solid var(--apl-border);
}

.apl-tool--tabbed .apl-tool__panel + .apl-tool__panel {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

/*
 * The privacy statement: one sentence, with the full account behind a
 * disclosure. The summary is a 44px target; the marker is replaced by the
 * underlined "What we do with it", which is what a reader looks for.
 */
.apl-tool__privacy {
	margin: var(--apl-s4) 0 0;
	font-size: var(--apl-fs-micro);
	color: var(--apl-muted);
}

.apl-tool__privacy summary {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--apl-s1) var(--apl-s2);
	min-height: 44px;
	list-style: none;
	cursor: pointer;
}

.apl-tool__privacy summary::-webkit-details-marker { display: none; }

.apl-tool__privacy-more {
	color: var(--apl-ink-700);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.apl-tool__privacy summary:hover .apl-tool__privacy-more { color: var(--apl-ink-900); }

.apl-tool__privacy p { margin: 0; max-width: var(--apl-measure); }

/*
 * A note about one field, under the row rather than inside it: the row is
 * end-aligned, so help text in a single cell lifts that input out of line
 * with its neighbours. aria-describedby ties it back to the field.
 */
.apl-tool__note { margin: var(--apl-s3) 0 0; }

.apl-tool__head { margin-bottom: var(--apl-s6); }
.apl-tool__head h2 { font-size: var(--apl-fs-h3); margin-bottom: var(--apl-s2); }
.apl-tool__head p { color: var(--apl-text-2); font-size: var(--apl-fs-small); margin: 0; }

.apl-tool__fields {
	display: grid;
	gap: var(--apl-s4);
	align-items: end;
}

@media (min-width: 860px) {
	.apl-tool__fields { grid-template-columns: repeat(3, 1fr) auto; }

	/*
	 * The diminished value panel's typed fallback, behind a disclosure once
	 * the repair-bill upload is available. Seven controls in three columns:
	 *
	 *   year    | make | model
	 *   mileage | ZIP  | VIN
	 *   [ Check ]
	 *
	 * The button sits at its natural width rather than stretched across a
	 * whole column.
	 */
	/*
	 * Top-aligned, not bottom-aligned like the total loss row: the VIN field
	 * carries a status line under it, and bottom alignment would push its
	 * input above the two beside it.
	 */
	.apl-tool__fields--dv { grid-template-columns: repeat(3, 1fr); align-items: start; }
	.apl-tool__fields--dv > .apl-field--submit { justify-items: start; }
}

/*
 * Fault is the one answer no repair bill prints, so it is asked on its own
 * above the upload. Narrow: it is a three-option select, not a column.
 */
.apl-tool__fault { max-width: 24rem; margin-bottom: var(--apl-s5); }

/*
 * The disclosure over the typed fields. A link-weight control, because
 * uploading the bill is the path and this is the way round it.
 */
.apl-tool__toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--apl-s2);
	margin-top: var(--apl-s5);
	padding: 0;
	background: none;
	border: 0;
	font: inherit;
	font-size: var(--apl-fs-small);
	font-weight: 600;
	color: var(--apl-ink-700);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.apl-tool__toggle:hover { color: var(--apl-ink-900); }

.apl-tool__toggle::before {
	content: "";
	width: 0;
	height: 0;
	border: 5px solid transparent;
	border-left-color: currentColor;
	transition: transform var(--apl-transition);
}

.apl-tool__toggle[aria-expanded="true"]::before { transform: rotate(90deg); }

.apl-tool__manual { margin-top: var(--apl-s4); }
.apl-tool__manual[hidden] { display: none; }

/* What was read off the bill, under the verdict it produced. */
.apl-tool__read { margin-top: calc(var(--apl-s2) * -1); }

.apl-tool__result {
	margin-top: var(--apl-s6);
	padding: var(--apl-s5);
	border-radius: var(--apl-radius-md);
	border-left: 4px solid;
	display: none;
}

.apl-tool__result[data-state] { display: block; }
.apl-tool__result[data-state="eligible"] { background: var(--apl-gain-100); border-color: var(--apl-gain-600); }
.apl-tool__result[data-state="unlikely"] { background: var(--apl-ink-050); border-color: var(--apl-ink-600); }
.apl-tool__result[data-state="caution"]  { background: var(--apl-flag-100); border-color: var(--apl-flag-600); }

.apl-tool__result h3 {
	display: flex;
	align-items: center;
	gap: var(--apl-s2);
	font-size: var(--apl-fs-h4);
	margin-bottom: var(--apl-s2);
}

.apl-tool__result p { font-size: var(--apl-fs-small); margin-bottom: var(--apl-s4); }
.apl-tool__result p:last-child { margin-bottom: 0; }

.apl-tool__estimate {
	font-size: var(--apl-fs-figure);
	font-weight: 700;
	line-height: 1.1;
	color: var(--apl-gain-800);
	margin-bottom: var(--apl-s2);
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */

.apl-field { display: grid; gap: var(--apl-s2); }

.apl-label {
	font-size: var(--apl-fs-small);
	font-weight: 600;
	color: var(--apl-ink-900);
	line-height: 1.4;
}

.apl-label .apl-req { color: var(--apl-alert-700); font-weight: 700; }

.apl-label .apl-optional {
	font-weight: 400;
	color: var(--apl-muted);
}

.apl-help {
	font-size: var(--apl-fs-small);
	color: var(--apl-muted);
	line-height: 1.45;
}

.apl-input,
.apl-select,
.apl-textarea {
	width: 100%;
	min-height: var(--apl-control-h);
	padding: var(--apl-s3) var(--apl-s4);
	background: var(--apl-surface);
	border: 1px solid var(--apl-border-s);
	border-radius: var(--apl-radius-sm);
	color: var(--apl-text);
	font-family: inherit;
	font-size: var(--apl-fs-body);
	line-height: 1.4;
	transition: border-color var(--apl-transition), box-shadow var(--apl-transition);
	appearance: none;
}

.apl-textarea { min-height: 8rem; padding-block: var(--apl-s3); resize: vertical; line-height: 1.6; }

.apl-input::placeholder, .apl-textarea::placeholder { color: var(--apl-muted); }

.apl-input:hover, .apl-select:hover, .apl-textarea:hover { border-color: var(--apl-ink-600); }

/*
 * Pointer focus gets a restrained treatment: a darker border and a soft halo.
 * The transparent outline is there so that forced-colors mode still paints a
 * ring.
 */
.apl-input:focus, .apl-select:focus, .apl-textarea:focus {
	border-color: var(--apl-ink-700);
	box-shadow: 0 0 0 3px rgba(27, 69, 110, .18);
	outline: 3px solid transparent;
}

/*
 * Keyboard focus gets the same solid ring as every other control. Without
 * this the rules above win on specificity over the global :focus-visible rule
 * and a keyboard user is left with only the faint halo — technically a change,
 * but far weaker than the indicator everything else on the page gets.
 */
.apl-input:focus-visible,
.apl-select:focus-visible,
.apl-textarea:focus-visible {
	outline: 3px solid var(--apl-ink-700);
	outline-offset: 2px;
	box-shadow: none;
}

/* Inside the dark footer the navy ring would disappear. */
.apl-footer .apl-input:focus-visible {
	outline-color: #FFFFFF;
}

.apl-select {
	padding-right: var(--apl-s10);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%235E6B80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right var(--apl-s4) center;
	cursor: pointer;
}

.apl-input[aria-invalid="true"],
.apl-select[aria-invalid="true"],
.apl-textarea[aria-invalid="true"] {
	border-color: var(--apl-alert-600);
	border-width: 2px;
}

.apl-error {
	display: flex;
	align-items: flex-start;
	gap: var(--apl-s2);
	font-size: var(--apl-fs-small);
	font-weight: 600;
	color: var(--apl-alert-700);
	line-height: 1.45;
}

.apl-error svg { flex: none; margin-top: 2px; }

/* Checkbox and radio: real inputs, enlarged, never replaced with divs. */
.apl-choice {
	display: flex;
	align-items: flex-start;
	gap: var(--apl-s3);
	padding: var(--apl-s4);
	border: 1px solid var(--apl-border-s);
	border-radius: var(--apl-radius-sm);
	background: var(--apl-surface);
	cursor: pointer;
	transition: border-color var(--apl-transition), background-color var(--apl-transition);
}

.apl-choice:hover { border-color: var(--apl-ink-600); background: var(--apl-ink-050); }

.apl-choice input[type="checkbox"],
.apl-choice input[type="radio"] {
	width: 22px; height: 22px;
	flex: none;
	margin: 1px 0 0;
	accent-color: var(--apl-ink-700);
	cursor: pointer;
}

.apl-choice:has(input:checked) {
	border-color: var(--apl-ink-700);
	background: var(--apl-ink-050);
	box-shadow: inset 0 0 0 1px var(--apl-ink-700);
}

.apl-choice__text { font-size: var(--apl-fs-small); line-height: 1.5; }
.apl-choice__text strong { display: block; font-size: var(--apl-fs-body); margin-bottom: 2px; }

.apl-fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--apl-s3);
}

.apl-fieldset legend {
	padding: 0;
	margin-bottom: var(--apl-s1);
	font-size: var(--apl-fs-small);
	font-weight: 600;
	color: var(--apl-ink-900);
}

/* File input */
.apl-file {
	border: 2px dashed var(--apl-border-s);
	border-radius: var(--apl-radius-md);
	padding: var(--apl-s6);
	text-align: center;
	background: var(--apl-ink-050);
}

.apl-file input[type="file"] { width: 100%; font-size: var(--apl-fs-small); }
.apl-file p { font-size: var(--apl-fs-small); color: var(--apl-muted); margin: var(--apl-s3) 0 0; }

/* --------------------------------------------------------------------------
   11. Cards, callouts, stats, steps
   -------------------------------------------------------------------------- */

.apl-card {
	display: flex;
	flex-direction: column;
	background: var(--apl-surface);
	border: 1px solid var(--apl-border);
	border-radius: var(--apl-radius-md);
	box-shadow: var(--apl-shadow-1);
	padding: var(--apl-s6);
	height: 100%;
}

.apl-card h3 { margin-bottom: var(--apl-s3); }
.apl-card p { color: var(--apl-text-2); font-size: var(--apl-fs-small); }
.apl-card__foot { margin-top: auto; padding-top: var(--apl-s5); }

.apl-card__icon {
	width: 44px; height: 44px;
	display: grid; place-items: center;
	border-radius: var(--apl-radius-sm);
	background: var(--apl-ink-100);
	color: var(--apl-ink-700);
	margin-bottom: var(--apl-s5);
	flex: none;
}

/* A service card carries a price and turnaround, because those are the two
   questions every visitor has and burying them erodes trust. */
.apl-service__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--apl-s2) var(--apl-s5);
	margin: var(--apl-s5) 0 0;
	padding-top: var(--apl-s5);
	border-top: 1px solid var(--apl-border);
	list-style: none;
}

.apl-service__meta li { margin: 0; }

.apl-service__meta dt,
.apl-service__meta .apl-k {
	display: block;
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--apl-muted);
	margin-bottom: 2px;
}

.apl-service__meta dd,
.apl-service__meta .apl-v {
	margin: 0;
	font-size: var(--apl-fs-body);
	font-weight: 700;
	color: var(--apl-ink-900);
}

/* Callouts */
/*
 * Note the font-size sits on the inner content block, not on the callout
 * itself. `--apl-measure` is in `ch`, which resolves against the element's own
 * font-size — so setting the smaller size on the container made its measure
 * ~70px narrower than the surrounding paragraphs, and the callout's right
 * edge stopped short of the text above it for no visible reason. Leaving the
 * container at the inherited body size lines the two up.
 */
.apl-callout {
	display: flex;
	gap: var(--apl-s4);
	padding: var(--apl-s5);
	border-radius: var(--apl-radius-md);
	border-left: 4px solid;
	margin-block: var(--apl-s6);
	line-height: 1.6;
}

.apl-callout > div { font-size: var(--apl-fs-small); }

.apl-callout__icon { flex: none; margin-top: 2px; }
/* Element-agnostic: usually a <p>, an <h2> on the intake error summary. */
.apl-callout__title {
	margin: 0 0 var(--apl-s1);
	font-size: var(--apl-fs-h4);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
}
.apl-callout p:last-child { margin-bottom: 0; }

.apl-callout--deadline { background: var(--apl-flag-100); border-color: var(--apl-flag-600); }
.apl-callout--deadline .apl-callout__title, .apl-callout--deadline .apl-callout__icon { color: var(--apl-flag-700); }

.apl-callout--verified { background: var(--apl-gain-100); border-color: var(--apl-gain-600); }
.apl-callout--verified .apl-callout__title, .apl-callout--verified .apl-callout__icon { color: var(--apl-gain-800); }

.apl-callout--note { background: var(--apl-ink-050); border-color: var(--apl-ink-600); }
.apl-callout--note .apl-callout__title, .apl-callout--note .apl-callout__icon { color: var(--apl-ink-700); }

/* Stats */
.apl-stat { text-align: left; }

.apl-stat__value {
	display: block;
	font-size: var(--apl-fs-figure);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--apl-ink-900);
	margin-bottom: var(--apl-s2);
}

.apl-section--ink .apl-stat__value { color: #FFFFFF; }

.apl-stat__label { font-size: var(--apl-fs-small); color: var(--apl-text-2); margin: 0; }
.apl-section--ink .apl-stat__label { color: var(--apl-ink-300); }

.apl-stat__note {
	display: block;
	margin-top: var(--apl-s2);
	font-size: var(--apl-fs-micro);
	color: var(--apl-muted);
}

/* Money
 *
 * A dollar figure is a first-class typographic element on this site — it is
 * the second question every visitor arrives with. On the pricing cards "$395"
 * was setting at roughly body size, so the one number the page exists to
 * state was the quietest thing on it. Figure size, tabular numerals so a
 * column of prices lines up, and the qualifier kept small beside it so the
 * amount is what the eye lands on.
 *
 * A flex row rather than inline text: the value and the unit baseline-align
 * whatever elements the markup uses, and the note is pushed onto its own line
 * without depending on it being a block.
 */
.apl-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: var(--apl-s2);
	margin: 0;
}

.apl-price > * { min-width: 0; }

.apl-price__value {
	font-size: var(--apl-fs-figure);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--apl-ink-900);
}

.apl-price__unit {
	font-size: var(--apl-fs-small);
	font-weight: 400;
	color: var(--apl-text-2);
}

/*
 * A fee that is not a dollar amount.
 *
 * The figure size exists to make money scannable. Splitting "% of the
 * increase" into a figure and a unit put a 44px "%" on the settlement card,
 * which reads as a missing number rather than as a percentage. A fee with no
 * amount in it is set at heading size instead: still the most prominent thing
 * on the card, but it reads as a sentence, which is what it is — and the
 * contrast with the two flat fees beside it is the useful signal.
 */
.apl-price--text .apl-price__value {
	font-size: var(--apl-fs-h3);
	line-height: 1.25;
	letter-spacing: normal;
}

.apl-price__note {
	flex-basis: 100%;
	margin: var(--apl-s2) 0 0;
	font-size: var(--apl-fs-micro);
	line-height: 1.5;
	color: var(--apl-muted);
}

/* Steps */
.apl-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--apl-s8); counter-reset: apl-step; }

@media (min-width: 900px) {
	.apl-steps--row { grid-template-columns: repeat(4, 1fr); gap: var(--apl-s6); }}

.apl-step { margin: 0; position: relative; counter-increment: apl-step; }

.apl-step__num {
	width: 40px; height: 40px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--apl-ink-900);
	color: #FFFFFF;
	font-size: var(--apl-fs-small);
	font-weight: 700;
	margin-bottom: var(--apl-s4);
	flex: none;
}

.apl-step h3 { font-size: var(--apl-fs-h4); margin-bottom: var(--apl-s2); }
.apl-step p { font-size: var(--apl-fs-small); color: var(--apl-text-2); margin: 0; }

.apl-step__time {
	display: inline-block;
	margin-top: var(--apl-s3);
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--apl-gain-800);
	background: var(--apl-gain-100);
	padding: 2px var(--apl-s2);
	border-radius: var(--apl-radius-sm);
}

/* --- Checklist: "what you actually receive" ------------------------------ */

.apl-checklist {
	list-style: none;
	padding: 0;
	margin: var(--apl-s8) 0 0;
	display: grid;
	gap: var(--apl-s4);
}

.apl-checklist li {
	display: flex;
	gap: var(--apl-s3);
	align-items: flex-start;
	margin: 0;
	color: var(--apl-text-2);
}

.apl-checklist__tick {
	flex: none;
	margin-top: 3px;
	color: var(--apl-gain-600);
}

.apl-checklist strong { display: block; color: var(--apl-ink-900); }

.apl-section--ink .apl-checklist li { color: #D8E4EF; }
.apl-section--ink .apl-checklist strong { color: #FFFFFF; }

/* --- Two-column split with a wider gutter than the default grid ---------- */

.apl-split {
	display: grid;
	gap: var(--apl-s10);
	align-items: start;
}

.apl-split--center { align-items: center; }

@media (min-width: 900px) {
	.apl-split { grid-template-columns: 1fr 1fr; gap: var(--apl-s16); }
	.apl-split--wide-first { grid-template-columns: 1.1fr 0.9fr; }
}

.apl-stat-stack { display: grid; gap: var(--apl-s8); }

/* --------------------------------------------------------------------------
   12. FAQ — native details/summary, keyboard-operable for free
   -------------------------------------------------------------------------- */

.apl-faq { border-top: 1px solid var(--apl-border); }

.apl-faq details {
	border-bottom: 1px solid var(--apl-border);
	background: var(--apl-surface);
}

.apl-faq summary {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--apl-s4);
	padding: var(--apl-s5) var(--apl-s5) var(--apl-s5) var(--apl-s5);
	font-size: var(--apl-fs-h4);
	font-weight: 600;
	color: var(--apl-ink-900);
	cursor: pointer;
	list-style: none;
	min-height: 44px;
}

.apl-faq summary::-webkit-details-marker { display: none; }

.apl-faq summary:hover { background: var(--apl-ink-050); }

.apl-faq summary::after {
	content: "";
	flex: none;
	width: 20px; height: 20px;
	margin-top: 3px;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%23000' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
	color: var(--apl-ink-600);
	transition: transform var(--apl-transition);
}

.apl-faq details[open] summary::after { transform: rotate(45deg); }

.apl-faq__answer {
	padding: 0 var(--apl-s5) var(--apl-s5);
	max-width: var(--apl-measure);
	color: var(--apl-text-2);
	font-size: var(--apl-fs-small);
}

/* --------------------------------------------------------------------------
   13. Tables
   -------------------------------------------------------------------------- */

.apl-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--apl-border);
	border-radius: var(--apl-radius-md);
	background: var(--apl-surface);
	-webkit-overflow-scrolling: touch;
}

.apl-table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--apl-fs-small);
	min-width: 32rem;
}

.apl-table caption {
	padding: var(--apl-s4) var(--apl-s5);
	text-align: left;
	font-size: var(--apl-fs-small);
	color: var(--apl-muted);
	border-bottom: 1px solid var(--apl-border);
}

.apl-table th, .apl-table td {
	padding: var(--apl-s3) var(--apl-s5);
	text-align: left;
	border-bottom: 1px solid var(--apl-border);
	vertical-align: top;
}

.apl-table thead th {
	background: var(--apl-ink-050);
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--apl-ink-700);
	white-space: nowrap;
}

.apl-table tbody tr:last-child th,
.apl-table tbody tr:last-child td { border-bottom: 0; }

.apl-table .apl-num { text-align: right; font-weight: 600; white-space: nowrap; }

/* --------------------------------------------------------------------------
   14. CTA band + footer
   -------------------------------------------------------------------------- */

.apl-cta-band {
	background: var(--apl-ink-900);
	color: #FFFFFF;
	padding-block: var(--apl-s12);
}

/*
 * The rounded theme (2026-11-16): the band and the footer are inset blocks
 * with the hero's and the closer's corners, 12px from the window's edges
 * and from each other, instead of full-bleed slabs.
 */
.apl-cta-band,
.apl-footer {
	margin: 0 var(--apl-s3) var(--apl-s3);
	border-radius: var(--apl-radius-xl);
}

.apl-cta-band__inner {
	display: grid;
	gap: var(--apl-s6);
	align-items: center;
}

@media (min-width: 860px) {
	.apl-cta-band__inner { grid-template-columns: 1fr auto; gap: var(--apl-s12); }
}

.apl-cta-band h2 { color: #FFFFFF; margin-bottom: var(--apl-s3); }
.apl-cta-band p { color: #C5D6E5; margin: 0; max-width: 46ch; }

.apl-footer {
	background: var(--apl-ink-900);
	color: #B8CBDC;
	font-size: var(--apl-fs-small);
}

.apl-footer__grid {
	display: grid;
	gap: var(--apl-s8);
	padding-block: var(--apl-s12);
}

@media (min-width: 640px) { .apl-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .apl-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--apl-s10); } }

.apl-footer h2, .apl-footer h3 {
	color: #FFFFFF;
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: var(--apl-s4);
}

.apl-footer ul { list-style: none; margin: 0; padding: 0; }
.apl-footer li { margin-bottom: var(--apl-s1); }

/*
 * Footer links carry vertical padding so the tap target is ~27px rather than
 * the 15px the text alone would give. WCAG 2.2 SC 2.5.8 would be satisfied
 * either way through the spacing exception, but a 15px target is still a poor
 * one on a phone, and this is where the phone number lives.
 */
.apl-footer a {
	display: inline-block;
	padding-block: 6px;
	color: #D8E4EF;
	text-decoration: none;
	/* Email addresses have no break opportunities, so a long one pushes out of
	   its footer column. The placeholder address already overran by a fraction
	   of a pixel at 1024px; a real one would overrun further. */
	overflow-wrap: anywhere;
}

.apl-footer a:hover { color: #FFFFFF; text-decoration: underline; }

.apl-footer__bar a { padding-block: 8px; }

.apl-footer .apl-brand { color: #FFFFFF; margin-bottom: var(--apl-s4); }
.apl-footer .apl-brand--logo { display: inline-block; }

.apl-footer__blurb { max-width: 34ch; line-height: 1.6; }

.apl-footer__bar {
	border-top: 1px solid rgba(255,255,255,.12);
	padding-block: var(--apl-s5);
	display: flex;
	flex-wrap: wrap;
	gap: var(--apl-s3) var(--apl-s6);
	align-items: center;
	justify-content: space-between;
	font-size: var(--apl-fs-micro);
	color: #94AEC6;
}

.apl-footer__bar ul { display: flex; flex-wrap: wrap; gap: var(--apl-s5); }
.apl-footer__bar li { margin: 0; }

.apl-disclaimer {
	padding-block: var(--apl-s6);
	border-top: 1px solid rgba(255,255,255,.12);
	font-size: var(--apl-fs-micro);
	line-height: 1.6;
	color: #94AEC6;
	max-width: 80ch;
}

/* --------------------------------------------------------------------------
   15. Page header + editor content
   -------------------------------------------------------------------------- */

/*
 * The head without a photograph used to be a flat ink-050 band holding a
 * breadcrumb and an h1, which is most of the interior screens: pricing, the
 * FAQ, contact, the legal pages, the state table, search. Beside the six
 * photographic heads they read as unfinished. It now carries the hero's wash
 * and corner glow, so an interior screen opens the way the front page does
 * without borrowing the photograph it has no business having.
 */
.apl-page-head {
	background: var(--apl-wash);
	border-bottom: 1px solid var(--apl-border);
	padding-block: var(--apl-s10);
}

.apl-page-head h1 { margin-bottom: var(--apl-s4); }

.apl-page-head__lead {
	font-size: var(--apl-fs-lead);
	color: var(--apl-text-2);
	max-width: var(--apl-measure);
	margin: 0;
}

/* The category label above the h1, mirroring the nav group the page sits in.
   Same typography as .apl-eyebrow, but inline-flex so it can hold an icon.
   The text stays navy and only the icon takes the accent: the accent marks
   states and actions, so a whole line of it would be decoration. */
.apl-page-head__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--apl-s2);
	margin: 0 0 var(--apl-s3);
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--apl-ink-600);
}

.apl-page-head__eyebrow .apl-icon,
.apl-page-head__eyebrow svg { color: var(--apl-gain-600); }

/*
 * A quiet row of facts under the lead ("12 questions · Updated 6 Nov 2026").
 * Element-agnostic on purpose: as a <p> the separators are in the copy, and as
 * a list they are inserted here. Inline list items rather than a flex row, so
 * a long run of facts wraps as text instead of pushing a track past 360px.
 */
.apl-page-head__meta {
	margin: var(--apl-s4) 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--apl-fs-micro);
	line-height: 1.6;
	color: var(--apl-muted);
}

.apl-page-head__meta > li,
.apl-page-head__meta > span { display: inline; margin: 0; }

/* Decorative punctuation, the same treatment as the breadcrumb separator. */
.apl-page-head__meta > li + li::before,
.apl-page-head__meta > span + span::before {
	content: "·";
	margin-inline: var(--apl-s2);
	color: var(--apl-border-s);
}

.apl-page-head__aside { margin-top: var(--apl-s8); }

/*
 * --split: head becomes two columns once there is room for a compact action
 * card beside the title. The aside may be a child of __inner (inside the
 * entrance choreography) or a sibling of it (outside), so :has() asks which
 * before turning either into the grid — a two-column grid with nothing in the
 * second track would reserve 20rem of empty space and squeeze the title.
 *
 * The aside spans well past the rows the title block can occupy, because the
 * head's child count varies with the page (breadcrumb, eyebrow, h1, lead,
 * meta, service facts). Row gap stays 0 — the children space themselves with
 * their own margins, as they did when this was a plain block — so the spanned
 * rows that have no content collapse to nothing.
 */
@media (min-width: 900px) {
	.apl-page-head--split > .apl-container:has(> .apl-page-head__aside),
	.apl-page-head--split .apl-page-head__inner:has(> .apl-page-head__aside) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
		column-gap: var(--apl-s10);
		row-gap: 0;
		align-items: start;
	}

	.apl-page-head--split > .apl-container > *,
	.apl-page-head--split .apl-page-head__inner > * { grid-column: 1; }

	/* Gated on the same :has() as the grid above, so that where :has() is not
	   supported the aside keeps its stacked margin instead of losing it to a
	   two-column layout that never arrived. */
	.apl-page-head--split > .apl-container:has(> .apl-page-head__aside) > .apl-page-head__aside,
	.apl-page-head--split .apl-page-head__inner:has(> .apl-page-head__aside) > .apl-page-head__aside {
		grid-column: 2;
		grid-row: 1 / span 20;
		margin-top: 0;
	}
}

.apl-breadcrumbs {
	font-size: var(--apl-fs-small);
	color: var(--apl-muted);
	margin-bottom: var(--apl-s4);
}

.apl-breadcrumbs ol {
	list-style: none;
	margin: 0; padding: 0;
	display: flex; flex-wrap: wrap;
	gap: var(--apl-s2);
}

.apl-breadcrumbs li { margin: 0; display: flex; align-items: center; gap: var(--apl-s2); }
.apl-breadcrumbs li + li::before { content: "/"; color: var(--apl-border-s); }
.apl-breadcrumbs a { color: var(--apl-ink-700); }

/* --------------------------------------------------------------------------
   15b. Service page header
   A service page has to answer "what is this, what does it cost, how long,
   how do I start" before the prose begins. Previously the price lived only on
   the home page and the pricing page, so the page selling the service never
   said what it cost.
   -------------------------------------------------------------------------- */

.apl-service-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--apl-s5) var(--apl-s8);
	margin-top: var(--apl-s8);
	padding-top: var(--apl-s6);
	border-top: 1px solid var(--apl-border);
}

.apl-service-head__facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--apl-s5) var(--apl-s8);
	margin: 0;
	flex: 1 1 auto;
}

.apl-service-head__facts > div { min-width: 0; }

.apl-service-head dt {
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--apl-muted);
	margin-bottom: 2px;
}

.apl-service-head dd {
	margin: 0;
	font-size: var(--apl-fs-h3);
	font-weight: 700;
	color: var(--apl-ink-900);
	line-height: 1.2;
}

.apl-service-head__action { flex: none; }

@media (max-width: 599px) {
	.apl-service-head__action,
	.apl-service-head__action .apl-btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   15c. Value-gap figure

   Diminished value is a gap between two numbers, and that gap is the whole
   product — it is what the "+" in the name refers to. It was previously
   explained only in prose. The bars are decorative and hidden from assistive
   technology; every number is real text, so the figure reads correctly
   without them.
   -------------------------------------------------------------------------- */

.apl-gap {
	margin: var(--apl-s8) 0;
	padding: var(--apl-s6);
	background: var(--apl-surface);
	border: 1px solid var(--apl-border);
	border-radius: var(--apl-radius-md);
	box-shadow: var(--apl-shadow-1);
	max-width: 40rem;
}

@media (min-width: 640px) {
	.apl-gap { padding: var(--apl-s8); }
}

.apl-gap__title {
	font-size: var(--apl-fs-h4);
	font-weight: 700;
	color: var(--apl-ink-900);
	margin: 0 0 var(--apl-s6);
}

.apl-gap__rows { display: grid; gap: var(--apl-s5); }

.apl-gap__row { display: grid; gap: var(--apl-s2); }

.apl-gap__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--apl-s4);
}

.apl-gap__label {
	font-size: var(--apl-fs-small);
	color: var(--apl-text-2);
}

.apl-gap__value {
	font-size: var(--apl-fs-h4);
	font-weight: 700;
	color: var(--apl-ink-900);
	white-space: nowrap;
}

.apl-gap__track {
	position: relative;
	height: 1.5rem;
	border-radius: var(--apl-radius-sm);
	background: var(--apl-ink-100);
	overflow: hidden;
}

.apl-gap__fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: var(--apl-gap-w, 100%);
	background: var(--apl-ink-600);
}

/* The portion of value that the accident removed. In the accent because it is the
   amount the appraisal sets out to recover, which is the same meaning the
   accent carries everywhere else on the site. */
.apl-gap__lost {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--apl-gap-w, 100%);
	right: 0;
	background: var(--apl-gain-100);
	border-left: 2px solid var(--apl-gain-600);
}

.apl-gap__delta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--apl-s3);
	margin-top: var(--apl-s6);
	padding: var(--apl-s4) var(--apl-s5);
	background: var(--apl-gain-100);
	border-left: 4px solid var(--apl-gain-600);
	border-radius: var(--apl-radius-sm);
}

.apl-gap__delta-label {
	display: flex;
	align-items: center;
	gap: var(--apl-s2);
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--apl-gain-800);
}

.apl-gap__delta-value {
	font-size: var(--apl-fs-figure);
	font-weight: 700;
	line-height: 1;
	color: var(--apl-gain-800);
	white-space: nowrap;
}

.apl-gap figcaption {
	margin-top: var(--apl-s4);
	font-size: var(--apl-fs-micro);
	color: var(--apl-muted);
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
   15d. Contact block
   -------------------------------------------------------------------------- */

.apl-contact {
	display: grid;
	gap: var(--apl-s5);
	margin: var(--apl-s8) 0;
}

@media (min-width: 720px) {
	.apl-contact { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
}

.apl-contact__item {
	display: flex;
	gap: var(--apl-s4);
	padding: var(--apl-s5);
	background: var(--apl-surface);
	border: 1px solid var(--apl-border);
	border-radius: var(--apl-radius-md);
	box-shadow: var(--apl-shadow-1);
}

.apl-contact__item > div { min-width: 0; }

.apl-contact__icon {
	flex: none;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: var(--apl-radius-sm);
	background: var(--apl-ink-100);
	color: var(--apl-ink-700);
}

/* An <h2>: on the contact page these are the first sections under the
   title, so an <h3> skipped a level. Styled as a small label regardless. */
.apl-contact__label {
	margin: 0 0 var(--apl-s2);
	line-height: 1.4;
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--apl-muted);
}

.apl-contact__primary {
	font-size: var(--apl-fs-h3);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 var(--apl-s3);
	overflow-wrap: anywhere;
}

.apl-contact__primary a { text-decoration: none; color: var(--apl-ink-900); }
.apl-contact__primary a:hover { color: var(--apl-ink-700); text-decoration: underline; }

.apl-contact__note {
	font-size: var(--apl-fs-small);
	color: var(--apl-text-2);
	margin: 0 0 var(--apl-s2);
	line-height: 1.5;
}

.apl-contact__note:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   15e. Facts panel
   A short list of label/value pairs in a panel. Used by the state reference
   pages, which are mostly structured data and very little prose.
   -------------------------------------------------------------------------- */

.apl-facts {
	background: var(--apl-surface);
	border: 1px solid var(--apl-border);
	border-radius: var(--apl-radius-md);
	box-shadow: var(--apl-shadow-1);
	padding: var(--apl-s5) var(--apl-s6);
	margin: 0 0 var(--apl-s8);
}

.apl-facts__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--apl-s2) var(--apl-s5);
	padding-block: var(--apl-s4);
	border-bottom: 1px solid var(--apl-border);
}

.apl-facts__row:last-child { border-bottom: 0; }

.apl-facts dt {
	font-size: var(--apl-fs-small);
	color: var(--apl-text-2);
	margin: 0;
}

.apl-facts dd {
	margin: 0;
	font-weight: 700;
	color: var(--apl-ink-900);
	text-align: right;
}

.apl-facts dd a { font-weight: 600; }

/* --- Record panel --------------------------------------------------------
   --panel turns the same definition list into a proper record card: a header
   strip carrying the record's name and its headline status badge, then zebra
   rows. A state page is a record, not an article, and a bare bordered list
   beside a column of prose read as a card someone forgot to finish.

   A modifier rather than a change to .apl-facts, so the plain list stays as
   it is wherever it is already used.
   ------------------------------------------------------------------------ */

/* The rows carry their own padding here, so the header strip and the zebra
   can run the full width of the card; overflow clips them to the radius. */
.apl-facts--panel {
	padding: 0;
	overflow: hidden;
}

.apl-facts__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--apl-s2) var(--apl-s4);
	padding: var(--apl-s4) var(--apl-s6);
	/* A step deeper than the zebra tint below it, so the strip still reads as
	   a header even when the first row happens to be a tinted one. */
	background: var(--apl-ink-100);
	border-bottom: 1px solid var(--apl-border);
}

.apl-facts__title {
	margin: 0;
	font-size: var(--apl-fs-h4);
	font-weight: 700;
	line-height: 1.3;
	color: var(--apl-ink-900);
}

/*
 * The headline status: a quiet label with the badge under it, pushed to the
 * trailing edge of the strip. The question a visitor arrives with is "can I
 * claim in my state", so the answer sits in the header rather than as the
 * first of five equal rows — but it still needs the label, because the badge
 * alone ("Generally recognised") does not say recognised *what*.
 */
.apl-facts__status {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--apl-s1);
	margin: 0;
	text-align: left;
}

@media (min-width: 560px) {
	.apl-facts__status { align-items: flex-end; text-align: right; }
}

.apl-facts__head .apl-badge { flex: none; }

/* The list inside the panel: the card owns the padding, the list owns nothing. */
.apl-facts__rows { margin: 0; }

.apl-facts--panel .apl-facts__row {
	padding: var(--apl-s4) var(--apl-s6);
	border-bottom: 0;
}

.apl-facts--panel .apl-facts__row:nth-child(even) { background: var(--apl-ink-050); }

/* Figures are tabular on the body already; stated again so a value in this
   panel cannot lose the alignment to a nested rule. */
.apl-facts--panel dd { font-variant-numeric: tabular-nums; }

/* A record panel is structured data, not prose: it takes the content width. */
.apl-prose > .apl-facts--panel { max-width: none; }

/* --- Sibling navigation --------------------------------------------------
   A row of chips linking peer records. A state page used to be a dead end:
   no way from Georgia to Alabama except back up through the table.
   ------------------------------------------------------------------------ */

.apl-sibling-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--apl-s2) var(--apl-s4);
	margin: var(--apl-s8) 0;
}

.apl-sibling-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--apl-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.apl-sibling-nav li { margin: 0; }

/* Same chip as the pagination control, and the same slate-400 boundary: at
   3.33:1 on white it identifies itself as a control (WCAG 2.2 SC 1.4.11). */
.apl-sibling-nav__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: var(--apl-s2) var(--apl-s4);
	background: var(--apl-surface);
	border: 1px solid var(--apl-border-s);
	border-radius: var(--apl-radius-sm);
	color: var(--apl-ink-700);
	font-size: var(--apl-fs-small);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.apl-sibling-nav__link:hover,
.apl-sibling-nav__link:focus-visible {
	background: var(--apl-ink-050);
	border-color: var(--apl-ink-700);
	color: var(--apl-ink-900);
}

/* The record you are on. Filled navy, not the accent — this is a position,
   not a confirmed state. aria-current carries the same thing to a reader. */
.apl-sibling-nav__link[aria-current="page"] {
	background: var(--apl-ink-900);
	border-color: var(--apl-ink-900);
	color: #FFFFFF;
	cursor: default;
}

/*
 * The reading measure belongs on the text, not on the wrapper.
 *
 * Capping `.apl-prose` itself pinned everything inside it to 603px — so on
 * the pricing page three service cards were crushed into 603px of a 1200px
 * container with 600px standing empty beside them, and the state table was
 * forced to scroll horizontally while half the page went unused. It read as
 * a page shoved against the left edge.
 *
 * Constraining the children instead gives the usual editorial arrangement:
 * a 603px reading column, with structured components free to use the full
 * container. The default below is the readable one, and components opt out
 * explicitly — so a block added later is narrow until someone decides
 * otherwise, rather than accidentally running to 1200px of body text.
 */
.apl-prose { max-width: none; }
.apl-prose > * { max-width: var(--apl-measure); }

.apl-prose > .apl-grid,
.apl-prose > .apl-map,
.apl-prose > .apl-disclose,
.apl-prose > .apl-table-wrap,
.apl-prose > .apl-contact,
.apl-prose > .alignwide,
.apl-prose > .alignfull { max-width: none; }

/* Wider than the measure so it does not look stranded, but not full width:
   the answers inside are prose and keep their own measure. */
.apl-prose > .apl-faq { max-width: var(--apl-container-narrow); }

.apl-prose > .apl-gap { max-width: 40rem; }

.apl-prose > .apl-anatomy { max-width: 56rem; }

/* [aplus_sample_report]: what is inside a report, drawn (2026-11-16; it was
   a PDF and a picture of its first page). A navy cover in the hero's shape,
   then one card per page of the report. Gold marks the money lost, as it
   does everywhere else. Every motion is one-shot, on reveal. */
.apl-anatomy { display: grid; gap: var(--apl-s4); }

.apl-anatomy p { margin: 0; }

/* The cover. */
.apl-anatomy__cover {
	display: grid;
	gap: var(--apl-s8);
	padding: var(--apl-s6);
	background: var(--apl-ink-900);
	border-radius: var(--apl-radius-xl);
	color: #FFFFFF;
}

@media (min-width: 720px) { .apl-anatomy__cover { padding: var(--apl-s8) var(--apl-s10); } }

.apl-anatomy__cover-head {
	display: grid;
	gap: var(--apl-s6);
	align-items: end;
}

@media (min-width: 720px) { .apl-anatomy__cover-head { grid-template-columns: minmax(0, 1fr) auto; } }

.apl-anatomy__eyebrow {
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--apl-on-ink-2);
}

.apl-anatomy .apl-anatomy__title {
	margin-top: var(--apl-s2);
	font-size: var(--apl-fs-h3);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: #FFFFFF;
}

.apl-anatomy__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--apl-s2);
	list-style: none;
	margin: var(--apl-s4) 0 0;
	padding: 0;
}

.apl-anatomy__chips li {
	margin: 0;
	padding: 4px 12px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: var(--apl-radius-pill);
	font-size: var(--apl-fs-micro);
	color: var(--apl-on-ink-2);
}

.apl-anatomy__total { display: grid; justify-items: start; }

@media (min-width: 720px) { .apl-anatomy__total { justify-items: end; text-align: right; } }

.apl-anatomy__total-label { font-size: var(--apl-fs-small); color: var(--apl-on-ink-2); }

.apl-anatomy__total-value {
	font-size: clamp(2.75rem, 7vw, 3.75rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.035em;
	color: var(--apl-gold);
	font-variant-numeric: tabular-nums;
	margin-block: var(--apl-s1);
}

.apl-anatomy__total-note { font-size: var(--apl-fs-micro); color: var(--apl-on-ink-2); }

/* The two values, as bars; the gap between them is the gold. */
.apl-anatomy__value { display: grid; gap: var(--apl-s3); }

.apl-anatomy__bar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "label num" "track track";
	gap: var(--apl-s2) var(--apl-s4);
	align-items: center;
}

@media (min-width: 720px) {
	.apl-anatomy__bar { grid-template-columns: 10rem minmax(0, 1fr) 5.5rem; grid-template-areas: "label track num"; }
}

.apl-anatomy__bar-label { grid-area: label; font-size: var(--apl-fs-small); color: var(--apl-on-ink-2); }
.apl-anatomy__bar-num { grid-area: num; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.apl-anatomy__bar-track {
	grid-area: track;
	display: flex;
	height: 14px;
	background: rgba(255, 255, 255, .08);
	border-radius: var(--apl-radius-pill);
	overflow: hidden;
}

.apl-anatomy__bar-fill,
.apl-anatomy__bar-gap {
	flex: none;
	width: var(--w);
	height: 100%;
	transform-origin: left center;
	transition: transform 900ms cubic-bezier(.2, .7, .2, 1);
}

.apl-anatomy__bar-fill { background: #FFFFFF; border-radius: var(--apl-radius-pill) 0 0 var(--apl-radius-pill); }
.apl-anatomy__bar-fill[style="--w:100%"] { border-radius: var(--apl-radius-pill); }
.apl-anatomy__bar-gap {
	background: var(--apl-gold);
	border-radius: 0 var(--apl-radius-pill) var(--apl-radius-pill) 0;
	transition-delay: 700ms;
}

.apl-anatomy__value-note {
	display: flex;
	align-items: center;
	gap: var(--apl-s2);
	font-size: var(--apl-fs-small);
	color: var(--apl-on-ink-2);
}

.apl-anatomy__swatch {
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 4px;
	background: var(--apl-gold);
}

/* The four pages. */
.apl-anatomy__pages {
	display: grid;
	gap: var(--apl-s4);
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: none;
}

@media (min-width: 720px) { .apl-anatomy__pages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.apl-anatomy__page {
	display: flex;
	flex-direction: column;
	gap: var(--apl-s5);
	margin: 0;
	padding: var(--apl-s6);
	background: var(--apl-surface);
	border: 1px solid var(--apl-paper-line);
	border-radius: var(--apl-radius-lg);
	box-shadow: var(--apl-shadow-1);
}

.apl-anatomy__page-head { display: flex; align-items: center; gap: var(--apl-s3); }

.apl-anatomy__num {
	display: grid;
	place-items: center;
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 8px;
	background: var(--apl-paper);
	box-shadow: inset 0 0 0 1px var(--apl-paper-line);
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	color: var(--apl-ink-900);
}

.apl-anatomy__page-title {
	font-size: var(--apl-fs-body);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--apl-ink-900);
}

/* 1. The car. */
.apl-anatomy__split {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: var(--apl-s6);
	align-items: center;
}

.apl-car { display: block; width: 100%; height: auto; overflow: visible; }
.apl-car__wheel { fill: var(--apl-ink-900); }
.apl-car__zone {
	fill: var(--apl-paper);
	stroke: var(--apl-surface);
	stroke-width: 2;
}
.apl-car__zone.is-hit {
	fill: var(--apl-gold);
	transition: fill 300ms ease calc(400ms + var(--i) * 60ms);
}
.apl-car__glass { fill: var(--apl-ink-100); }
.apl-car__outline { fill: none; stroke: var(--apl-ink-900); stroke-width: 2; }

.apl-anatomy__facts { display: grid; gap: var(--apl-s3); margin: 0; }
.apl-anatomy__facts > div { border-top: 1px solid var(--apl-border); padding-top: var(--apl-s2); }
.apl-anatomy__facts > div:first-child { border-top: 0; padding-top: 0; }
.apl-anatomy__facts dt { font-size: var(--apl-fs-micro); color: var(--apl-muted); margin: 0; }
.apl-anatomy__facts dd { margin: 0; font-weight: 700; color: var(--apl-ink-900); font-variant-numeric: tabular-nums; }

.apl-anatomy__legend {
	display: flex;
	align-items: center;
	gap: var(--apl-s2);
	margin-top: auto;
	font-size: var(--apl-fs-micro);
	color: var(--apl-muted);
}

/* 2. The VIN. */
.apl-vin {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--apl-s3) var(--apl-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.apl-vin__seg {
	display: grid;
	gap: 6px;
	align-content: start;
	margin: 0;
}

.apl-vin__chars {
	display: block;
	padding: 10px 8px;
	background: var(--apl-paper);
	border: 1px solid var(--apl-paper-line);
	border-radius: var(--apl-radius-sm);
	font-family: var(--apl-font-mono);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-align: center;
	color: var(--apl-ink-900);
	transition: background-color 250ms ease calc(300ms + var(--i) * 90ms), color 250ms ease calc(300ms + var(--i) * 90ms), border-color 250ms ease calc(300ms + var(--i) * 90ms);
}

.apl-vin__seg.is-withheld .apl-vin__chars { color: var(--apl-muted); background: transparent; border-style: dashed; }

.apl-vin__means { font-size: var(--apl-fs-micro); line-height: 1.35; color: var(--apl-text-2); }

@media (max-width: 479px) {
	.apl-vin__chars { padding: 8px 2px; font-size: 0.9375rem; letter-spacing: 0.04em; }
}

.apl-anatomy__ok {
	display: flex;
	align-items: center;
	gap: var(--apl-s2);
	margin-top: auto;
	padding: var(--apl-s3) var(--apl-s4);
	background: var(--apl-gain-100);
	border-radius: var(--apl-radius-md);
	font-size: var(--apl-fs-small);
	font-weight: 600;
	color: var(--apl-gain-800);
}

.apl-anatomy__ok .apl-icon { flex: none; color: var(--apl-gain-600); }

/* 3. The range. Labels alternate above and below so they never collide. */
.apl-range {
	position: relative;
	height: 8.5rem;
	margin-inline: 2.25rem;
}

.apl-range__track {
	position: absolute;
	inset: 50% 0 auto;
	height: 10px;
	margin-top: -5px;
	background: var(--apl-paper);
	box-shadow: inset 0 0 0 1px var(--apl-paper-line);
	border-radius: var(--apl-radius-pill);
}

.apl-range__fill {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--apl-gold), var(--apl-ink-900));
	border-radius: inherit;
	transform-origin: left center;
	transition: transform 900ms cubic-bezier(.2, .7, .2, 1) 200ms;
}

.apl-range__mark {
	position: absolute;
	left: var(--x);
	top: 50%;
	display: grid;
	justify-items: center;
	transform: translate(-50%, -100%);
	padding-bottom: 12px;
	transition: opacity 300ms ease calc(500ms + var(--i) * 120ms);
}

.apl-range__mark.is-below { transform: translate(-50%, 0); padding: 12px 0 0; }

.apl-range__dot {
	position: absolute;
	left: 50%;
	bottom: -7px;
	width: 14px;
	height: 14px;
	margin-left: -7px;
	background: var(--apl-surface);
	border: 3px solid var(--apl-ink-900);
	border-radius: 50%;
}

.apl-range__mark.is-below .apl-range__dot { top: -7px; bottom: auto; }

.apl-range__text {
	display: grid;
	justify-items: center;
	font-size: var(--apl-fs-micro);
	line-height: 1.3;
	color: var(--apl-muted);
	white-space: nowrap;
}

.apl-range__text strong { font-size: var(--apl-fs-small); color: var(--apl-ink-900); font-variant-numeric: tabular-nums; }

.apl-anatomy__callout {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--apl-s3);
	padding: var(--apl-s3) var(--apl-s4);
	background: var(--apl-paper);
	border-radius: var(--apl-radius-md);
	font-size: var(--apl-fs-small);
	color: var(--apl-text-2);
}

.apl-anatomy__callout strong { font-size: var(--apl-fs-lead); color: var(--apl-ink-900); font-variant-numeric: tabular-nums; }

.apl-anatomy__source { margin-top: auto; font-size: var(--apl-fs-micro); color: var(--apl-muted); }

/* 4. The gauge and the sum. */
.apl-gauge { position: relative; padding-top: 2.25rem; }

.apl-gauge__segs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }

.apl-gauge__seg {
	height: 12px;
	background: var(--apl-paper);
	box-shadow: inset 0 0 0 1px var(--apl-paper-line);
	border-radius: 4px;
}

.apl-gauge__seg:first-child { border-radius: var(--apl-radius-pill) 4px 4px var(--apl-radius-pill); }
.apl-gauge__seg:last-child { border-radius: 4px var(--apl-radius-pill) var(--apl-radius-pill) 4px; }

.apl-gauge__seg.is-on {
	background: var(--apl-ink-300);
	box-shadow: none;
	transition: background-color 200ms ease calc(300ms + var(--i) * 150ms);
}

.apl-gauge__seg.is-this { background: var(--apl-ink-900); }

.apl-gauge__labels {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 4px;
	margin-top: var(--apl-s2);
	font-size: 0.75rem;
	text-align: center;
	color: var(--apl-muted);
}

.apl-gauge__labels .is-this { font-weight: 700; color: var(--apl-ink-900); }

.apl-gauge__pin {
	position: absolute;
	top: 0;
	left: var(--x);
	display: grid;
	place-items: center;
	min-width: 2.25rem;
	height: 1.625rem;
	padding-inline: 6px;
	transform: translateX(-50%);
	background: var(--apl-ink-900);
	border-radius: 8px;
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	color: #FFFFFF;
	transition: left 1000ms cubic-bezier(.2, .7, .2, 1) 300ms;
}

.apl-gauge__pin::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border: 5px solid transparent;
	border-top-color: var(--apl-ink-900);
}

.apl-sum {
	display: flex;
	align-items: center;
	gap: var(--apl-s2);
	margin-top: auto;
}

.apl-sum__term {
	display: grid;
	flex: 1 1 auto;
	padding: var(--apl-s2) var(--apl-s3);
	background: var(--apl-paper);
	border-radius: var(--apl-radius-md);
	text-align: center;
}

.apl-sum__term strong { font-size: var(--apl-fs-lead); color: var(--apl-ink-900); font-variant-numeric: tabular-nums; }
.apl-sum__term small { font-size: 0.75rem; color: var(--apl-muted); }

.apl-sum__term--total { background: var(--apl-ink-900); }
.apl-sum__term--total strong { color: var(--apl-gold); }
.apl-sum__term--total small { color: var(--apl-on-ink-2); }

.apl-sum__op { font-size: var(--apl-fs-lead); font-weight: 700; color: var(--apl-muted); }

@media (max-width: 479px) {
	.apl-sum { gap: 6px; }
	.apl-sum__term { flex: 1 1 0; min-width: 0; padding: var(--apl-s2) 4px; }
	.apl-sum__term strong { font-size: 1rem; }
	.apl-sum__term small { font-size: 0.6875rem; }
	.apl-sum__op { font-size: 1rem; }
}

.apl-anatomy__fine { font-size: var(--apl-fs-micro); color: var(--apl-muted); max-width: 70ch; }

/* The start state, only once the reveal script has run (it adds .apl-js and
   marks what is on screen .is-visible); reduced motion never hides. */
@media (prefers-reduced-motion: no-preference) {
	.apl-js .apl-reveal:not(.is-visible) .apl-anatomy__bar-fill,
	.apl-js .apl-reveal:not(.is-visible) .apl-anatomy__bar-gap,
	.apl-js .apl-reveal:not(.is-visible) .apl-range__fill { transform: scaleX(0); }
	.apl-js .apl-reveal:not(.is-visible) .apl-range__mark { opacity: 0; }
	.apl-js .apl-reveal:not(.is-visible) .apl-car__zone.is-hit { fill: var(--apl-paper); }
	.apl-js .apl-reveal:not(.is-visible) .apl-gauge__seg.is-on { background: var(--apl-paper); }
	.apl-js .apl-reveal:not(.is-visible) .apl-gauge__pin { left: 0; }
	.apl-js .apl-reveal:not(.is-visible) .apl-vin__chars { background: var(--apl-surface); color: var(--apl-control-border); }
}

@media (prefers-reduced-motion: reduce) {
	.apl-anatomy * { transition: none !important; }
}

/* [aplus_callback] (intake plugin): "Talk to an appraiser". A navy block to
   call from, beside a white card to leave a number on. Phones first: the
   call block comes first, since calling is the fastest answer. */
.apl-prose > .apl-callback { max-width: 56rem; }

.apl-callback {
	display: grid;
	gap: var(--apl-s3);
}

@media (min-width: 760px) {
	.apl-callback { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch; }
}

.apl-callback p { margin: 0; }

.apl-callback__call {
	display: flex;
	flex-direction: column;
	gap: var(--apl-s2);
	padding: var(--apl-s8) var(--apl-s6);
	background: var(--apl-ink-900);
	border-radius: var(--apl-radius-xl);
	color: #FFFFFF;
}

.apl-callback__eyebrow {
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--apl-gold);
}

.apl-callback .apl-callback__number {
	font-size: clamp(1.75rem, 4.5vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: #FFFFFF;
	font-variant-numeric: tabular-nums;
}

.apl-callback__hours { font-size: var(--apl-fs-small); color: var(--apl-on-ink-2); }

.apl-callback__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--apl-s3);
	margin-top: auto;
	padding-top: var(--apl-s6);
}

.apl-callback__actions .apl-btn { flex: 1 1 auto; justify-content: center; }
.apl-callback__actions .apl-btn[hidden] { display: none; }

/* Gold: the one button on the site in the logo's "+" colour, because this
   is the one place the answer is a phone call. Ink on gold is 11:1. */
.apl-btn--gold {
	background: var(--apl-gold);
	border-color: var(--apl-gold);
	color: var(--apl-ink-900);
}

.apl-btn--gold:hover,
.apl-btn--gold:focus-visible {
	background: #FFCB5C;
	border-color: #FFCB5C;
	color: var(--apl-ink-900);
}

.apl-callback .apl-btn--ghost-dark.is-copied { border-color: var(--apl-gold); color: var(--apl-gold); }

.apl-callback__status { min-height: 1.25em; font-size: var(--apl-fs-micro); color: var(--apl-on-ink-2); }

.apl-callback__form-wrap {
	padding: var(--apl-s8) var(--apl-s6);
	background: var(--apl-surface);
	border: 1px solid var(--apl-paper-line);
	border-radius: var(--apl-radius-xl);
	box-shadow: var(--apl-shadow-1);
}

.apl-callback .apl-callback__title {
	font-size: var(--apl-fs-h3);
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--apl-ink-900);
}

.apl-callback__about {
	display: inline-block;
	margin-top: var(--apl-s3) !important;
	padding: 4px 12px;
	background: var(--apl-paper);
	border-radius: var(--apl-radius-pill);
	font-size: var(--apl-fs-small);
	color: var(--apl-text-2);
}

.apl-callback__about strong { color: var(--apl-ink-900); }

.apl-callback__form { display: grid; gap: var(--apl-s4); margin-top: var(--apl-s5); }

.apl-callback__submit { justify-content: center; width: 100%; }

.apl-callback__fine { font-size: var(--apl-fs-micro); color: var(--apl-muted); }

.apl-callback__error { font-size: var(--apl-fs-small); font-weight: 600; color: var(--apl-alert-700); }

.apl-callback__error--form {
	margin-top: var(--apl-s4) !important;
	padding: var(--apl-s3) var(--apl-s4);
	background: var(--apl-alert-100);
	border-radius: var(--apl-radius-md);
}

.apl-callback__hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.apl-callback__done { display: grid; gap: var(--apl-s3); justify-items: start; }
.apl-callback__done .apl-icon { width: 32px; height: 32px; color: var(--apl-gain-600); }
.apl-callback__done p:last-child { color: var(--apl-text-2); }

.apl-prose > * + * { margin-top: var(--apl-s5); }
.apl-prose h2 { margin-top: var(--apl-s10); }
.apl-prose h3 { margin-top: var(--apl-s8); }
.apl-prose > :first-child { margin-top: 0; }

/*
 * A short rule above every h2, so that scanning a long reference page — the
 * FAQ, a legal page, the state guide — shows where each section starts
 * instead of one unbroken column of text. ink-600, the same navy the list
 * markers and the blockquote border already use: the accent marks states and
 * actions, and a section divider is neither.
 *
 * The bar sits in the heading's existing top margin rather than adding
 * padding, so the vertical rhythm of every page that already uses .apl-prose
 * is unchanged.
 *
 * Direct children only. Heading level follows the page outline, not the look,
 * so a card label or a contact-block label is legitimately an <h2> — and a
 * section rule floating above "Call us" inside a white card is not a section
 * start, it is a stray mark.
 */
.apl-prose > h2 { position: relative; }

.apl-prose > h2::before {
	content: "";
	position: absolute;
	top: calc(var(--apl-s5) * -1);
	left: 0;
	width: 2.5rem;
	height: 3px;
	background: var(--apl-ink-600);
}

/* The first heading has no section above it to divide, and its margin is
   collapsed to zero, so the bar would hang off the top of the column. */
.apl-prose > h2:first-child::before { content: none; }

/*
 * Component titles inside the prose column keep their own spacing. Because
 * heading level follows the outline, these are often headings — and
 * `.apl-prose h2` is more specific than a component's own class, so without
 * this it wins and drops 2.5rem of section margin above a label that belongs
 * tight to the thing it labels.
 */
.apl-prose .apl-callout__title,
.apl-prose .apl-contact__label,
.apl-prose .apl-facts__title,
.apl-prose .apl-empty__title,
.apl-prose .apl-card h2,
.apl-prose .apl-card h3,
.apl-prose .apl-step h3 { margin-top: 0; }

/*
 * Breathing room above a heading jumped to from the contents list. Note this
 * adds to html's scroll-padding-top rather than replacing it: a scrolled-to
 * element is placed at the container's scroll-padding plus its own
 * scroll-margin, so repeating the full 77px header clearance here would land
 * the heading nearly 200px down the screen. The 6rem scroll-padding already
 * clears the header; this is the gap under it.
 */
.apl-prose h1,
.apl-prose h2,
.apl-prose h3,
.apl-prose h4,
.apl-prose h5,
.apl-prose h6 { scroll-margin-top: var(--apl-s4); }

.apl-prose ul, .apl-prose ol { padding-left: 1.35em; }
.apl-prose li::marker { color: var(--apl-ink-600); }

.apl-prose blockquote {
	margin: var(--apl-s8) 0;
	padding: var(--apl-s5) var(--apl-s6);
	border-left: 4px solid var(--apl-ink-600);
	background: var(--apl-ink-050);
	border-radius: 0 var(--apl-radius-md) var(--apl-radius-md) 0;
	font-size: var(--apl-fs-lead);
	color: var(--apl-ink-900);
}

.apl-prose blockquote cite {
	display: block;
	margin-top: var(--apl-s3);
	font-size: var(--apl-fs-small);
	font-style: normal;
	color: var(--apl-muted);
}

.apl-prose img { border-radius: var(--apl-radius-md); }

.apl-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--apl-fs-small);
}

.apl-prose th, .apl-prose td {
	padding: var(--apl-s3) var(--apl-s4);
	border: 1px solid var(--apl-border);
	text-align: left;
}

.apl-prose thead th { background: var(--apl-ink-050); }

/* Alignments for editor content */
.alignwide { max-width: var(--apl-container); }
.alignfull { max-width: none; }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: 0 var(--apl-s6) var(--apl-s4) 0; }
.alignright { float: right; margin: 0 0 var(--apl-s4) var(--apl-s6); }
.wp-caption-text, figcaption {
	font-size: var(--apl-fs-small);
	color: var(--apl-muted);
	margin-top: var(--apl-s2);
}

/* --------------------------------------------------------------------------
   15f. Interior layout shell — a content column with a side rail

   Interior pages poured a 603px reading column into a 1200px container, so at
   1440px the right-hand 45% of the band held nothing at all. The reference for
   the fix is USWDS / get.gov: a content column with a persistent rail. That is
   the right shape for this product — it is a reference site about rules,
   deadlines and money, and the rail is where "on this page" and "start my
   appraisal" belong.

   The rail is rendered only when the page yields three or more h2s (see
   INTERIOR-SPEC §4); below that a page uses .apl-container--narrow instead,
   which looks deliberate rather than empty.
   -------------------------------------------------------------------------- */

.apl-container--layout { max-width: var(--apl-container-layout); }

.apl-layout {
	display: grid;
	gap: var(--apl-s10);
}

/*
 * Order is set explicitly at both widths rather than left to source order.
 * The rail reads better before the content in the markup — "on this page" is
 * an orientation device — but below 1024px it belongs after the content it
 * describes, since there it is a list the reader scrolls past rather than a
 * rail beside them.
 */
.apl-layout__main { order: 1; }
.apl-layout__aside { order: 2; }

@media (min-width: 1024px) {
	.apl-layout {
		grid-template-columns: minmax(0, 1fr) 16rem;
		gap: var(--apl-s12);
		align-items: start;
	}

	/*
	 * A card grid inside the rail layout steps down one level.
	 *
	 * The main column is ~730px, not the full 1200px band, so a three-up grid
	 * resolved to 227px columns and the pricing cards — a price, a paragraph
	 * and a turnaround each — came out as a column of broken words. This is
	 * the same failure docs/design-system.md records under "the measure goes
	 * on the text, not the wrapper", arriving by a different route: there the
	 * container was too narrow, here the column is. Two-up gives ~350px,
	 * which is close to what the same cards get on the front page.
	 *
	 * Scoped to the main column so a grid in a full-width section is
	 * untouched.
	 */
	.apl-layout__main .apl-grid--3,
	.apl-layout__main .apl-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.apl-layout__aside {
		position: sticky;
		top: calc(var(--apl-header-h) + var(--apl-s6));
		/*
		 * The rail scrolls inside itself once it is taller than the viewport.
		 * Without this a long contents list simply ran off the bottom of a
		 * sticky box and became unreachable. The inline padding and the
		 * matching negative margin keep the 3px focus ring from being clipped
		 * by that scroll container while leaving the rail flush with its
		 * column.
		 */
		max-height: calc(100vh - var(--apl-header-h) - var(--apl-s10));
		overflow-y: auto;
		padding-inline: var(--apl-s1);
		margin-inline: calc(var(--apl-s1) * -1);
	}
}

.apl-layout__aside > * + * { margin-top: var(--apl-s6); }

/* --- In-page contents ---------------------------------------------------- */

.apl-toc__title {
	margin: 0 0 var(--apl-s3);
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--apl-muted);
}

/* The track the current-item marker sits on. */
.apl-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 1px solid var(--apl-border);
}

.apl-toc__list li { margin: 0; }

.apl-toc__link {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: var(--apl-s2) var(--apl-s4);
	/* Pulled over the list's hairline so the marker replaces it rather than
	   sitting beside it and shifting the label by 3px when it appears. */
	margin-left: -1px;
	border-left: 3px solid transparent;
	color: var(--apl-text-2);
	font-size: var(--apl-fs-small);
	line-height: 1.4;
	text-decoration: none;
}

.apl-toc__link:hover {
	background: var(--apl-ink-050);
	border-left-color: var(--apl-border-s);
	color: var(--apl-ink-900);
}

/* The section on screen. The accent is the site's current-nav marker, as on
   the header; weight and colour carry it too, so it is never colour alone. */
.apl-toc__link.is-current {
	border-left-color: var(--apl-gain-600);
	color: var(--apl-ink-900);
	font-weight: 700;
}

/* --- Rail card ----------------------------------------------------------- */

.apl-aside-card {
	background: var(--apl-surface);
	border: 1px solid var(--apl-border);
	border-radius: var(--apl-radius-md);
	box-shadow: var(--apl-shadow-1);
	padding: var(--apl-s5);
}

.apl-aside-card__icon {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	margin-bottom: var(--apl-s4);
	border-radius: var(--apl-radius-sm);
	background: var(--apl-ink-100);
	color: var(--apl-ink-700);
	flex: none;
}

/* Styled by class, not element: in the rail of an article this is an h2, and
   on a page whose outline already has one it is an h3. */
.apl-aside-card__title {
	margin: 0 0 var(--apl-s2);
	font-size: var(--apl-fs-h4);
	font-weight: 700;
	line-height: 1.3;
	color: var(--apl-ink-900);
}

.apl-aside-card__body {
	margin: 0;
	font-size: var(--apl-fs-small);
	line-height: 1.55;
	color: var(--apl-text-2);
}

/*
 * A card given `links` renders its body as a <ul>. Reset the markers and the
 * indent, or a rail of related pages arrives as a bulleted list pushed in
 * from the card's left edge.
 */
ul.apl-aside-card__body {
	list-style: none;
	padding-left: 0;
	display: grid;
	gap: var(--apl-s2);
}

ul.apl-aside-card__body li { margin: 0; }

.apl-aside-card__foot { margin-top: var(--apl-s4); }

/* The rail is 16rem wide, so a button in it is full width or it looks
   stranded. Block buttons keep the 48px control height and the tap target. */
.apl-aside-card__foot .apl-btn { width: 100%; }

.apl-aside-card__foot > * + * { margin-top: var(--apl-s3); }

/* A phone number or a related-links list in the rail. */
.apl-aside-card ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--apl-fs-small);
}

.apl-aside-card li { margin: 0; }

.apl-aside-card li + li { border-top: 1px solid var(--apl-border); }

.apl-aside-card li > a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding-block: var(--apl-s2);
	color: var(--apl-ink-700);
	text-decoration: none;
}

.apl-aside-card li > a:hover { color: var(--apl-ink-900); text-decoration: underline; }

/* --------------------------------------------------------------------------
   16. Posts and archives
   -------------------------------------------------------------------------- */

.apl-post-card {
	display: flex;
	flex-direction: column;
	background: var(--apl-surface);
	border: 1px solid var(--apl-border);
	border-radius: var(--apl-radius-md);
	box-shadow: var(--apl-shadow-1);
	overflow: hidden;
	height: 100%;
}

.apl-post-card__media { aspect-ratio: 16 / 9; background: var(--apl-ink-100); overflow: hidden; }
.apl-post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.apl-post-card__body { padding: var(--apl-s5); display: flex; flex-direction: column; flex: 1; }
.apl-post-card h3 { font-size: var(--apl-fs-h4); margin-bottom: var(--apl-s2); }
.apl-post-card h3 a { text-decoration: none; color: var(--apl-ink-900); }
.apl-post-card h3 a:hover { color: var(--apl-ink-700); text-decoration: underline; }
.apl-post-card p { font-size: var(--apl-fs-small); color: var(--apl-text-2); }
.apl-post-card__meta {
	margin-top: auto;
	padding-top: var(--apl-s4);
	font-size: var(--apl-fs-micro);
	color: var(--apl-muted);
}

.apl-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: var(--apl-s2);
	justify-content: center;
	margin-top: var(--apl-s10);
}

.apl-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px; height: 44px;
	padding: 0 var(--apl-s3);
	border: 1px solid var(--apl-border-s);
	border-radius: var(--apl-radius-sm);
	background: var(--apl-surface);
	color: var(--apl-ink-700);
	text-decoration: none;
	font-weight: 600;
}

.apl-pagination .page-numbers:hover { background: var(--apl-ink-050); }
.apl-pagination .page-numbers.current {
	background: var(--apl-ink-900);
	border-color: var(--apl-ink-900);
	color: #FFFFFF;
}

/* --- Empty state ---------------------------------------------------------
   Every component that renders a list needs a designed empty state: this site
   launches with most of its records unpopulated, so the empty state is what
   the client sees first. /resources/ was a single small card alone in a very
   large area, which read as a broken page rather than an unfinished one.

   Full content width and centred, so it occupies the space on purpose, with
   routes out instead of an apology. A quiet tint rather than a white card —
   a card is what it is replacing.
   ------------------------------------------------------------------------ */

.apl-empty {
	margin: var(--apl-s8) 0;
	padding: var(--apl-s12) var(--apl-s6);
	text-align: center;
	background: var(--apl-ink-050);
	border: 1px solid var(--apl-border);
	border-radius: var(--apl-radius-md);
}

.apl-prose > .apl-empty { max-width: none; }

/* 56px medallion: ink-100 ground, ink-600 glyph at 5.7:1 on it. Round, like
   the step and sample-page numerals — the one place this theme rounds fully. */
.apl-empty__icon {
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
	margin: 0 auto var(--apl-s5);
	border-radius: 50%;
	background: var(--apl-ink-100);
	color: var(--apl-ink-600);
}

.apl-empty__title {
	margin: 0 0 var(--apl-s3);
	font-size: var(--apl-fs-h3);
	font-weight: 700;
	line-height: 1.3;
}

/* Centred but still held to the reading measure: a centred paragraph running
   the full width of the band is harder to read, not more generous. */
.apl-empty__body {
	max-width: var(--apl-measure);
	margin: 0 auto;
	font-size: var(--apl-fs-lead);
	color: var(--apl-text-2);
}

/* Composes with .apl-btn-row, and stands on its own if it is used alone. */
.apl-empty__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--apl-s3);
	margin-top: var(--apl-s8);
}

/* --------------------------------------------------------------------------
   17. Utilities
   -------------------------------------------------------------------------- */

.apl-mt-0 { margin-top: 0 !important; }
.apl-mt-4 { margin-top: var(--apl-s4); }
.apl-mt-5 { margin-top: var(--apl-s5); }
.apl-mt-8 { margin-top: var(--apl-s8); }
.apl-mb-0 { margin-bottom: 0 !important; }

/* Lead paragraph on a dark section — lighter than white so the heading above
   it keeps the stronger contrast and the hierarchy still reads. */
.apl-lead-on-dark { color: #C5D6E5; }
.apl-text-center { text-align: center; }
.apl-muted { color: var(--apl-muted); }
.apl-small { font-size: var(--apl-fs-small); }
.apl-micro { font-size: var(--apl-fs-micro); }

.apl-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--apl-s1);
	padding: 3px var(--apl-s2);
	border-radius: var(--apl-radius-sm);
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.3;
}

.apl-mt-10 { margin-top: var(--apl-s10); }

/* A standalone lead paragraph, outside .apl-section-head. */
.apl-lead {
	font-size: var(--apl-fs-lead);
	color: var(--apl-text-2);
	max-width: var(--apl-measure);
}

/* A whole card that is a link. The card's own hover state replaces the
   underline, and the heading inside carries the link affordance. */
.apl-card--link {
	text-decoration: none;
	color: inherit;
	transition: border-color var(--apl-transition), box-shadow var(--apl-transition);
}

.apl-card--link:hover,
.apl-card--link:focus-visible {
	border-color: var(--apl-ink-600);
	box-shadow: var(--apl-shadow-2);
	color: inherit;
}

.apl-card--link:hover h3 { color: var(--apl-ink-700); }

.apl-card--narrow { max-width: 40rem; }
.apl-card h2 { font-size: var(--apl-fs-h3); }

/* Figure above an article or page body. */
.apl-figure-lead { margin: 0 0 var(--apl-s10); }
.apl-figure-lead img { border-radius: var(--apl-radius-md); }

/* Input plus adjacent button, e.g. the search form. */
.apl-input-group { display: flex; gap: var(--apl-s2); }
.apl-input-group .apl-input { flex: 1 1 auto; min-width: 0; }
.apl-input-group .apl-btn { flex: none; }

.apl-search { max-width: 32rem; }

/* Appraiser portrait. Replaces an inline style attribute that was setting
   these five declarations on the img itself. A circle because the surrounding
   card is already a rectangle and the portrait is the one human thing on the
   About page; `object-fit` so a non-square upload is cropped rather than
   squashed. */
.apl-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: var(--apl-s5);
}

/* Eyebrow-style role label, used by the appraiser cards. */
.apl-role {
	font-size: var(--apl-fs-micro);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--apl-ink-600);
	margin-bottom: var(--apl-s3);
}

/* Credential list on an appraiser card. */
.apl-creds { display: grid; gap: var(--apl-s2); }

.apl-creds li {
	display: flex;
	gap: var(--apl-s2);
	align-items: flex-start;
	font-size: var(--apl-fs-small);
	margin: 0;
}

.apl-creds__badge { color: var(--apl-gain-600); flex: none; }

/* Case result card. */
.apl-case h3 { font-size: var(--apl-fs-h4); }
.apl-case__figures { margin: var(--apl-s5) 0 0; }
.apl-case .apl-report__total { margin-top: var(--apl-s4); }

.apl-badge--gain  { background: var(--apl-gain-100); color: var(--apl-gain-800); }
.apl-badge--flag  { background: var(--apl-flag-100); color: var(--apl-flag-700); }
.apl-badge--ink   { background: var(--apl-ink-100);  color: var(--apl-ink-700); }
.apl-badge--alert { background: var(--apl-alert-100); color: var(--apl-alert-700); }

/* --------------------------------------------------------------------------
   17b. Photography and motion
   Motion rules: every animation is a single state change, runs once, never
   blocks reading, and is removed entirely under prefers-reduced-motion by the
   global rule in section 18. Nothing is hidden by JavaScript alone: without
   the `apl-js` class every reveal element is simply visible.
   -------------------------------------------------------------------------- */

/* --- Scroll reveal ------------------------------------------------------- */

.apl-js .apl-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 650ms ease, transform 750ms cubic-bezier(.2, .7, .2, 1);
	will-change: opacity, transform;
}

.apl-js .apl-reveal.is-visible {
	opacity: 1;
	transform: none;
	will-change: auto;
}

.apl-js .apl-reveal--d1 { transition-delay: 90ms; }
.apl-js .apl-reveal--d2 { transition-delay: 180ms; }
.apl-js .apl-reveal--d3 { transition-delay: 270ms; }

/* Stagger siblings inside grids, step rows and the stat stack. */
.apl-js .apl-steps > .apl-reveal:nth-child(2),
.apl-js .apl-stat-stack > .apl-reveal:nth-child(2) { transition-delay: 100ms; }
.apl-js .apl-steps > .apl-reveal:nth-child(3),
.apl-js .apl-stat-stack > .apl-reveal:nth-child(3) { transition-delay: 200ms; }
.apl-js .apl-steps > .apl-reveal:nth-child(4) { transition-delay: 300ms; }
/* --- Value-gap bars grow in when the figure scrolls into view ------------ */

.apl-js .apl-gap .apl-gap__fill { transition: width 1100ms cubic-bezier(.2, .7, .2, 1) 150ms; }
.apl-js .apl-gap .apl-gap__lost { transition: left  1100ms cubic-bezier(.2, .7, .2, 1) 150ms; }
.apl-js .apl-gap:not(.is-visible) .apl-gap__fill { width: 0; }
.apl-js .apl-gap:not(.is-visible) .apl-gap__lost { left: 100%; }

/* --- Media cards --------------------------------------------------------- */

.apl-card--media { padding: 0; overflow: hidden; }

.apl-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--apl-ink-100);
}

.apl-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms cubic-bezier(.2, .7, .2, 1);
}

.apl-card--media:hover .apl-card__media img { transform: scale(1.045); }

.apl-card__body {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 0 var(--apl-s6) var(--apl-s6);
}

/* The icon badge straddles the bottom edge of the photograph. */
.apl-card--media .apl-card__icon {
	position: relative;
	z-index: 1;
	margin-top: -22px;
	margin-bottom: var(--apl-s4);
	background: var(--apl-surface);
	color: var(--apl-ink-700);
	box-shadow: var(--apl-shadow-2);
	border: 1px solid var(--apl-border);
}

/* --- Photo band ---------------------------------------------------------- */

.apl-band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: #FFFFFF;
	padding-block: var(--apl-s16);
}

@media (min-width: 900px) {
	.apl-band { padding-block: var(--apl-s24); }
}

.apl-band__photo {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
}

.apl-band__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(10,31,51,.93) 0%, rgba(10,31,51,.82) 55%, rgba(10,31,51,.55) 100%);
}

.apl-band__quote {
	font-size: var(--apl-fs-h1);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
	max-width: 22ch;
	margin: 0 0 var(--apl-s5);
	color: #FFFFFF;
	text-wrap: balance;
}

.apl-band__quote .apl-hero__accent { color: var(--apl-gain-400); }

.apl-band__sub {
	font-size: var(--apl-fs-lead);
	color: #D8E4EF;
	max-width: var(--apl-measure);
	margin: 0;
}

/* --- Photo page head ------------------------------------------------------
   Interior pages that merit a photograph get this instead of the tinted head.
   The photograph is the page's featured image when one is set, otherwise a
   theme fallback keyed by page slug (see aplus_page_head_photo()). Same
   overlay logic as the hero; contrast is sampled, not assumed.
   ------------------------------------------------------------------------ */

.apl-page-head--photo {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--apl-ink-900);
	color: #FFFFFF;
	border-bottom: 0;
	padding-block: var(--apl-s12);
}

@media (min-width: 900px) {
	.apl-page-head--photo {
		display: flex;
		align-items: flex-end;
		min-height: 46vh;
		padding-block: var(--apl-s16) var(--apl-s12);
	}
	.apl-page-head--photo > .apl-container { width: 100%; }
}

.apl-page-head__photo {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 45%;
	transform-origin: center 45%;
	animation: apl-hero-drift 22s cubic-bezier(.2, .6, .2, 1) both;
}

/* Slow settle from a slight zoom, once. (Named for the home hero, which
   used it first.) */
@keyframes apl-hero-drift {
	from { transform: scale(1.08); }
	to   { transform: scale(1); }
}

.apl-page-head__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	/* The top band is heavier than the hero's: the breadcrumb sits there in
	   15px ink-300, and on the brightest photograph (white paper, the sample
	   report page) it sampled at 4.23:1 with a lighter band. */
	background:
		linear-gradient(90deg,  rgba(10,31,51,.94) 0%, rgba(10,31,51,.88) 50%, rgba(10,31,51,.66) 100%),
		linear-gradient(180deg, rgba(10,31,51,.55) 0%, rgba(10,31,51,.25) 40%, rgba(10,31,51,.80) 100%);
}

.apl-page-head--photo > .apl-container { position: relative; z-index: 1; }

.apl-page-head--photo h1 { color: #FFFFFF; }
.apl-page-head--photo .apl-page-head__lead { color: #D8E4EF; }
.apl-page-head--photo .apl-breadcrumbs { color: var(--apl-ink-300); }
.apl-page-head--photo .apl-breadcrumbs a { color: #FFFFFF; }
.apl-page-head--photo .apl-breadcrumbs li + li::before { color: rgba(255,255,255,.4); }
.apl-page-head--photo :focus-visible { outline-color: #FFFFFF; }

.apl-page-head--photo .apl-service-head { border-top-color: rgba(255,255,255,.18); }
.apl-page-head--photo .apl-service-head dt { color: var(--apl-ink-300); }
.apl-page-head--photo .apl-service-head dd { color: #FFFFFF; }

/* On the navy head the eyebrow goes light, and its icon drops to gain-400:
   gain-600 reads at 2.3:1 on ink-900 and would all but disappear. */
.apl-page-head--photo .apl-page-head__eyebrow { color: var(--apl-ink-300); }
.apl-page-head--photo .apl-page-head__eyebrow .apl-icon,
.apl-page-head--photo .apl-page-head__eyebrow svg { color: var(--apl-gain-400); }
.apl-page-head--photo .apl-page-head__meta { color: var(--apl-ink-300); }
.apl-page-head--photo .apl-page-head__meta > li + li::before,
.apl-page-head--photo .apl-page-head__meta > span + span::before { color: rgba(255,255,255,.4); }

/* Entrance, same choreography as the hero. Scoped to .apl-page-head__inner
   rather than to --photo: a tinted head is as much of an opening as a
   photographic one, and the two looked like different products while only one
   of them moved. Delays run to the sixth child because a head can now carry
   an eyebrow and a meta row as well as the breadcrumb, title and lead. */
.apl-page-head__inner > * {
	animation: apl-rise 650ms cubic-bezier(.2, .7, .2, 1) both;
}
.apl-page-head__inner > :nth-child(1) { animation-delay: 40ms; }
.apl-page-head__inner > :nth-child(2) { animation-delay: 130ms; }
.apl-page-head__inner > :nth-child(3) { animation-delay: 220ms; }
.apl-page-head__inner > :nth-child(4) { animation-delay: 310ms; }
.apl-page-head__inner > :nth-child(5) { animation-delay: 400ms; }
.apl-page-head__inner > :nth-child(6) { animation-delay: 490ms; }

/*
 * Reduced motion: the global rule in section 18 collapses the duration, but
 * not the delay — and `both` fill means the element holds the from-state
 * (opacity 0) until the delay elapses, so the head flashed blank for a third
 * of a second. Dropping the animation outright leaves every child at its
 * visible end state immediately.
 *
 * The home hero is staggered the same way and had the same defect — a
 * reduced-motion visitor got a blank headline for up to half a second on the
 * first screen of the site. Both staggered blocks are listed here so the next
 * one added is listed too.
 */
@media (prefers-reduced-motion: reduce) {
	.apl-page-head__inner > *,
	.apl-hero__intro,
	.apl-deck__card,
	.apl-deck__note,
	.apl-picker,
	.apl-check.is-opened .apl-tool { animation: none; }
}
/* --- Micro-interactions ----------------------------------------------------
   Added 2026-11-10 (docs/design-system.md, "Micro-interactions"). One rule
   for all of them: each answers something the visitor just did, or marks
   something arriving; it is over in well under half a second; it moves no
   layout; and it is gone under reduced motion. Nothing here loops, and
   nothing that cannot be pressed moves when it is pointed at.

   Two more live with their components: the glider under the header's menu
   (section 6) and the sliding fill in the picker's segmented control
   (section 7).
   ------------------------------------------------------------------------ */

/* Buttons. A filled button lifts a pixel toward the pointer and casts a
   shadow in its own colour; any button gives slightly under a press. */
.apl-btn {
	transition:
		background-color var(--apl-transition),
		border-color var(--apl-transition),
		color var(--apl-transition),
		transform 160ms cubic-bezier(.3, .8, .3, 1),
		box-shadow 160ms ease;
}

.apl-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(0, 58, 239, .6); }
.apl-btn--on-dark:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5); }

.apl-btn:active { transform: scale(.98); box-shadow: none; }

.apl-btn[disabled],
.apl-btn[aria-disabled="true"] { transform: none; box-shadow: none; }

/* The arrow leans the way it points; the handset rings once. */
.apl-icon--arrow-right { transition: transform var(--apl-transition); }
.apl-btn:hover .apl-icon--arrow-right { transform: translateX(3px); }

.apl-btn:hover .apl-icon--phone,
.apl-pill:hover .apl-icon--phone,
.apl-mega__phone:hover .apl-icon--phone { animation: apl-ring 520ms ease both; transform-origin: 50% 60%; }

@keyframes apl-ring {
	0%, 100% { transform: none; }
	20% { transform: rotate(-14deg); }
	45% { transform: rotate(11deg); }
	70% { transform: rotate(-6deg); }
}

/* Tiles: the badge tips toward the pointer (the ring and the lift are with
   the tile, in section 7). */
.apl-tile__icon { transition: transform 220ms cubic-bezier(.3, .8, .3, 1); }
.apl-tile:hover .apl-tile__icon,
.apl-tile:focus-visible .apl-tile__icon { transform: scale(1.06) rotate(-4deg); }

/* The picker: choosing a tab deals its tiles in, left to right. */
.apl-picker--tabbed .apl-picker__panel:not([hidden]) .apl-tiles > li {
	animation: apl-tile-in 340ms cubic-bezier(.2, .7, .2, 1) both;
}

.apl-picker--tabbed .apl-tiles > li:nth-child(2) { animation-delay: 40ms; }
.apl-picker--tabbed .apl-tiles > li:nth-child(3) { animation-delay: 80ms; }
.apl-picker--tabbed .apl-tiles > li:nth-child(4) { animation-delay: 120ms; }
.apl-picker--tabbed .apl-tiles > li:nth-child(5) { animation-delay: 160ms; }
.apl-picker--tabbed .apl-tiles > li:nth-child(6) { animation-delay: 200ms; }
.apl-picker--tabbed .apl-tiles > li:nth-child(7) { animation-delay: 240ms; }
.apl-picker--tabbed .apl-tiles > li:nth-child(8) { animation-delay: 280ms; }

@keyframes apl-tile-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: none; }
}

/* Questions: the answer settles in under its question instead of snapping. */
.apl-faq details[open] > .apl-faq__answer {
	animation: apl-answer-in 260ms cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes apl-answer-in {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: none; }
}

/* The claim tool: its verdict arrives, so it is noticed below the form. */
.apl-tool__result[data-state] { animation: apl-rise 360ms cubic-bezier(.2, .7, .2, 1) both; }

/*
 * The timeline draws itself when it is reached: each mark pops, then its
 * axis runs on to the next. Gated on `apl-js`, like every scroll reveal —
 * without the script, or under reduced motion, the line is simply there.
 */
.apl-js .apl-timeline__step.apl-reveal .apl-timeline__when::before {
	transform: scale(0);
	transition: transform 420ms cubic-bezier(.3, 1.5, .5, 1) 150ms;
}

.apl-js .apl-timeline__step.apl-reveal .apl-timeline__when::after {
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 800ms cubic-bezier(.2, .7, .2, 1) 300ms;
}

.apl-js .apl-timeline__step.apl-reveal:nth-child(2) .apl-timeline__when::before { transition-delay: 350ms; }
.apl-js .apl-timeline__step.apl-reveal:nth-child(2) .apl-timeline__when::after  { transition-delay: 500ms; }
.apl-js .apl-timeline__step.apl-reveal:nth-child(3) .apl-timeline__when::before { transition-delay: 550ms; }
.apl-js .apl-timeline__step.apl-reveal:nth-child(3) .apl-timeline__when::after  { transition-delay: 700ms; }
.apl-js .apl-timeline__step.apl-reveal:nth-child(4) .apl-timeline__when::before { transition-delay: 750ms; }
.apl-js .apl-timeline__step.apl-reveal:nth-child(4) .apl-timeline__when::after  { transition-delay: 900ms; }

.apl-js .apl-timeline__step.apl-reveal.is-visible .apl-timeline__when::before,
.apl-js .apl-timeline__step.apl-reveal.is-visible .apl-timeline__when::after { transform: none; }

/* The figures: the rule over each is drawn across, one after another. */
.apl-js .apl-panel.apl-reveal .apl-figures > div::before {
	transform: scaleX(0);
	transition: transform 700ms cubic-bezier(.2, .7, .2, 1) 250ms;
}

.apl-js .apl-panel.apl-reveal .apl-figures > div:nth-child(2)::before { transition-delay: 370ms; }
.apl-js .apl-panel.apl-reveal .apl-figures > div:nth-child(3)::before { transition-delay: 490ms; }

.apl-js .apl-panel.apl-reveal.is-visible .apl-figures > div::before { transform: none; }

/*
 * The logo. Its three cards are positioned against their own box
 * (fill-box), so a percentage moves each by its own height.
 *
 * Pointed at, in the header or the footer, the three hop in turn, back to
 * front — the stack being added to, once.
 */
.apl-logo__card { transform-box: fill-box; transform-origin: 50% 100%; }

.apl-brand--logo:hover .apl-logo__card { animation: apl-card-hop 460ms cubic-bezier(.3, .8, .3, 1) both; }
.apl-brand--logo:hover .apl-logo__card--2 { animation-delay: 70ms; }
.apl-brand--logo:hover .apl-logo__card--3 { animation-delay: 140ms; }

@keyframes apl-card-hop {
	0%, 100% { transform: none; }
	45% { transform: translateY(-12%); }
}

/*
 * In the closer, reached: they rise out of the block's floor, in turn. The
 * back two stop short of the floor (by 8% and 21% of their height), so all
 * three start further down than their own height.
 */
.apl-js .apl-closer__mark.apl-reveal .apl-logo__card {
	transform: translateY(125%);
	transition: transform 700ms cubic-bezier(.2, .8, .2, 1) 250ms;
}

.apl-js .apl-closer__mark.apl-reveal .apl-logo__card--2 { transition-delay: 380ms; }
.apl-js .apl-closer__mark.apl-reveal .apl-logo__card--3 { transition-delay: 510ms; }

.apl-js .apl-closer__mark.apl-reveal.is-visible .apl-logo__card { transform: none; }

/* Interior cards that are links lift, as before. */
.apl-card { transition: transform 250ms cubic-bezier(.2, .7, .2, 1), box-shadow 250ms ease; }
.apl-card--media:hover { transform: translateY(-3px); box-shadow: var(--apl-shadow-2); }

/*
 * Reduced motion. The global rule in section 19 collapses durations, but a
 * delayed animation with `both` still holds its first frame — opacity 0 —
 * until the delay runs out (see the note above). Everything here that
 * starts from hidden is switched off outright.
 */
@media (prefers-reduced-motion: reduce) {
	.apl-picker--tabbed .apl-picker__panel:not([hidden]) .apl-tiles > li,
	.apl-nav--js .apl-mega[data-open],
	.apl-nav--js .apl-mega[data-open] .apl-mega__list > li,
	.apl-nav--js .apl-mega[data-open] .apl-mega__aside,
	.apl-faq details[open] > .apl-faq__answer,
	.apl-tool__result[data-state],
	.apl-menu-toggle.is-used [data-apl-icon]:not([hidden]),
	.apl-brand--logo:hover .apl-logo__card,
	.apl-btn:hover .apl-icon--phone,
	.apl-pill:hover .apl-icon--phone,
	.apl-mega__phone:hover .apl-icon--phone { animation: none; }

	.apl-btn:hover,
	.apl-btn:active,
	.apl-tile:hover,
	.apl-tile:hover .apl-tile__icon,
	.apl-tile:focus-visible .apl-tile__icon { transform: none; }
}
/* --------------------------------------------------------------------------
   18. The state map

   A choropleth of the fifty states, drawn from the same records as the table
   it sits above.

   The rule that shapes everything here: status is never carried by hue alone.
   Each of the four answers has its own lightness AND its own texture — solid
   dark, solid mid, hatched, dotted — so the map still reads in greyscale, on
   a cheap projector, or for a reader who cannot separate blue from amber.
   The two blues are a ramp on purpose: "recognised" is darker than
   "recognised with limits" because it is the stronger answer.

   The frame scrolls sideways below ~800px exactly as .apl-table-wrap does,
   rather than shrinking the map until the labels turn to mush. Nothing is
   hidden at any width.
   -------------------------------------------------------------------------- */

.apl-map {
	/*
	 * Accent is reserved for confirmed things, which is precisely what
	 * "generally recognised" is — a position we checked against a statute
	 * and can cite. The map is the one chart on the site allowed to spend it.
	 */
	--apl-map-recognised: var(--apl-gain-600);
	--apl-map-limited:    var(--apl-gain-400);
	--apl-map-restricted: var(--apl-flag-100);
	--apl-map-unknown:    var(--apl-ink-050);
	--apl-map-line:       var(--apl-ink-300);
	--apl-map-min:        44rem;

	margin: 0;
}

.apl-map__caption {
	font-size: var(--apl-fs-small);
	color: var(--apl-muted);
	margin-bottom: var(--apl-s2);
	max-width: var(--apl-measure);
}

.apl-map__hint {
	display: flex;
	flex-wrap: wrap;
	gap: var(--apl-s2) var(--apl-s4);
	align-items: baseline;
	margin: 0 0 var(--apl-s3);
}

.apl-map__hint-text { flex: 1 1 18rem; }
.apl-map__skip { color: var(--apl-ink-700); white-space: nowrap; }

/*
 * A table that is cut off looks cut off — the column headings run out mid
 * word. A map that is cut off just looks like a map of somewhere smaller, so
 * this one says so: a shadow appears at whichever edge has more map behind
 * it, and goes when you reach the end. Two gradients that scroll with the
 * content hide the two that do not.
 */
.apl-map__frame {
	overflow-x: auto;
	border: 1px solid var(--apl-border);
	border-radius: var(--apl-radius-md);
	-webkit-overflow-scrolling: touch;

	background:
		linear-gradient(to right, var(--apl-surface) 40%, transparent) left / 32px 100% no-repeat local,
		linear-gradient(to left,  var(--apl-surface) 40%, transparent) right / 32px 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(10, 31, 51, 0.16), transparent) left / 14px 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(10, 31, 51, 0.16), transparent) right / 14px 100% no-repeat scroll,
		var(--apl-surface);
}

/*
 * The tooltip is positioned as a percentage of the MAP, not of the frame, so
 * it has to share a box with the svg rather than with the scroll container.
 */
.apl-map__canvas {
	position: relative;
	min-width: var(--apl-map-min);
}

.apl-map__svg {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------------------------------------------------------------- shapes -- */

.apl-map__shape {
	stroke: var(--apl-map-line);
	stroke-width: 1;
	/* Borders stay hairline-crisp at every width the frame can be. */
	vector-effect: non-scaling-stroke;
}

/*
 * Only the two solid tones are filled from CSS. "restricted" and "unknown"
 * carry a `fill="url(#…)"` presentation attribute pointing at a pattern, and
 * a `fill` declared here would win over it and erase the texture.
 */
.apl-map__state[data-tone="recognised"] .apl-map__shape { fill: var(--apl-map-recognised); }
.apl-map__state[data-tone="limited"]    .apl-map__shape { fill: var(--apl-map-limited); }

.apl-map__tex-bg--restricted   { fill: var(--apl-map-restricted); }
.apl-map__tex-line--restricted { stroke: var(--apl-flag-600); stroke-width: 1.5; }
.apl-map__tex-bg--unknown      { fill: var(--apl-map-unknown); }
.apl-map__tex-dot              { fill: var(--apl-ink-300); }

a.apl-map__state, a.apl-map__chip { cursor: pointer; }

/*
 * Fallback highlight for when the script has not run. It is partly painted
 * over by whatever is drawn after it — the halo below is the real one.
 */
a.apl-map__state:hover .apl-map__shape,
a.apl-map__state:focus-visible .apl-map__shape {
	stroke: var(--apl-ink-900);
	stroke-width: 2;
}

a.apl-map__state:focus-visible,
a.apl-map__chip:focus-visible { outline: none; }

/*
 * One outline, moved by script onto whatever is hovered or focused. SVG has
 * no z-index and the shapes are drawn largest first, so without this a big
 * state's highlight would be half painted over by its smaller neighbours.
 */
.apl-map__halo {
	fill: none;
	stroke: var(--apl-ink-900);
	stroke-width: 2.5;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	pointer-events: none;
}

.apl-map__halo:not([d]), .apl-map__halo[d=""] { display: none; }

.apl-map[data-focus="keyboard"] .apl-map__halo { stroke-width: 4; }

/*
 * "You are here" on a state's own page. Two strokes, not one: a single dark
 * outline disappears on a gain-600 state and a single light one disappears
 * on the pale states, so the light one goes underneath and the dark one on
 * top. Both are drawn after every other shape, for the same reason the halo
 * is — SVG has no z-index.
 *
 * This is deliberately NOT a fill. The fill is the state's position, which
 * has to stay true, and a reader who met gain-600 on the index as "generally
 * recognised" must not meet it again on Texas meaning "you are here".
 */
.apl-map__here {
	fill: none;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	pointer-events: none;
}

.apl-map__here--under { stroke: var(--apl-surface); stroke-width: 5; }
.apl-map__here--over  { stroke: var(--apl-ink-900);  stroke-width: 2; }

/* The nine chipped states are too small to outline; their chip says it. */
.apl-map__chip.is-current .apl-map__chip-box {
	stroke: var(--apl-ink-900);
	stroke-width: 3;
}

/* ---------------------------------------------------------------- labels -- */

.apl-map__labels { pointer-events: none; }

.apl-map__label {
	font-family: var(--apl-font);
	font-size: 15px;
	font-weight: 600;
	text-anchor: middle;
	dominant-baseline: central;
	letter-spacing: 0.02em;
}

.apl-map__label[data-tone="recognised"] { fill: var(--apl-surface); }
.apl-map__label[data-tone="limited"],
.apl-map__label[data-tone="restricted"],
.apl-map__label[data-tone="unknown"]    { fill: var(--apl-ink-900); }

/*
 * Only the hatched states need this. Ink on the pale hatch background is
 * about 15:1, but ink on one of the hatch LINES is 3.95:1 — under the 4.5
 * a label this size has to meet — and a glyph lands wherever it lands. The
 * halo puts the pale background back immediately around the letters.
 * The dotted states need no such help: ink on a dot is still 8.1:1.
 */
.apl-map__label[data-tone="restricted"],
.apl-map__chip-text[data-tone="restricted"] {
	paint-order: stroke;
	stroke: var(--apl-map-restricted);
	stroke-width: 3px;
	stroke-linejoin: round;
}

/* ----------------------------------------------------------------- chips -- */

/*
 * Nine states cannot be labelled or hit at their true size at any width this
 * map is drawn. They are still drawn in place; these are their controls.
 */
.apl-map__leader {
	stroke: var(--apl-map-line);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
	pointer-events: none;
}

.apl-map__chip-box {
	stroke: var(--apl-map-line);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

.apl-map__chip[data-tone="recognised"] .apl-map__chip-box { fill: var(--apl-map-recognised); }
.apl-map__chip[data-tone="limited"]    .apl-map__chip-box { fill: var(--apl-map-limited); }

.apl-map__chip-text {
	font-family: var(--apl-font);
	font-size: 17px;
	font-weight: 600;
	text-anchor: middle;
	dominant-baseline: central;
	pointer-events: none;
}

.apl-map__chip-text[data-tone="recognised"] { fill: var(--apl-surface); }
.apl-map__chip-text[data-tone="limited"],
.apl-map__chip-text[data-tone="restricted"],
.apl-map__chip-text[data-tone="unknown"]    { fill: var(--apl-ink-900); }

a.apl-map__chip:hover .apl-map__chip-box,
a.apl-map__chip:focus-visible .apl-map__chip-box {
	stroke: var(--apl-ink-900);
	stroke-width: 2.5;
}

/* --------------------------------------------------------------- tooltip -- */

/*
 * Visual only — everything in it is already in the link's aria-label, so
 * announcing it again would read every state twice. It never takes the
 * pointer, so it cannot obscure or trap anything, and Escape dismisses it.
 */
.apl-map__tip {
	position: absolute;
	z-index: 2;
	transform: translate(-50%, calc(-100% - 12px));
	min-width: 10rem;
	max-width: 15rem;
	padding: var(--apl-s3) var(--apl-s4);
	background: var(--apl-ink-900);
	color: var(--apl-surface);
	border-radius: var(--apl-radius-sm);
	box-shadow: var(--apl-shadow-2);
	font-size: var(--apl-fs-micro);
	line-height: 1.45;
	pointer-events: none;
}

.apl-map__tip[hidden] { display: none; }

/* Near the top edge there is no room above the state; drop below it. */
.apl-map__tip[data-flip="below"] { transform: translate(-50%, 12px); }

/* Out at the chip column, beside it — there is nothing to the right, and
   eight other chips directly above and below. */
.apl-map__tip[data-flip="left"] { transform: translate(calc(-100% - 14px), -50%); }

.apl-map__tip-name {
	display: block;
	font-weight: 700;
	font-size: var(--apl-fs-small);
}

.apl-map__tip-status { display: block; color: var(--apl-ink-100); }

.apl-map__tip-years {
	display: block;
	margin-top: var(--apl-s1);
	color: var(--apl-surface);
	font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------- key -- */

.apl-map__key {
	display: flex;
	flex-wrap: wrap;
	gap: var(--apl-s2) var(--apl-s6);
	margin: var(--apl-s4) 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--apl-fs-micro);
}

.apl-map__key-item {
	display: flex;
	align-items: center;
	gap: var(--apl-s2);
}

.apl-map__key-swatch {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	border: 1px solid var(--apl-map-line);
	border-radius: 2px;
}

.apl-map__key-swatch[data-tone="recognised"] { background: var(--apl-map-recognised); }
.apl-map__key-swatch[data-tone="limited"]    { background: var(--apl-map-limited); }

/* The same two textures as the map, rebuilt in CSS gradients. */
.apl-map__key-swatch[data-tone="restricted"] {
	background:
		repeating-linear-gradient(45deg,
			var(--apl-flag-600) 0 1.5px,
			var(--apl-map-restricted) 1.5px 6px);
}

.apl-map__key-swatch[data-tone="unknown"] {
	background:
		radial-gradient(circle at 25% 25%, var(--apl-ink-300) 1px, transparent 1.2px) 0 0 / 7px 7px,
		var(--apl-map-unknown);
}

.apl-map__key-count { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------- see-as-table -- */

.apl-disclose {
	border: 1px solid var(--apl-border);
	border-radius: var(--apl-radius-md);
	background: var(--apl-surface);
}

.apl-disclose__summary {
	display: flex;
	align-items: center;
	gap: var(--apl-s2);
	/* A comfortable target in its own right: this is the way in to the data. */
	padding: var(--apl-s3) var(--apl-s5);
	min-height: 44px;
	font-size: var(--apl-fs-small);
	font-weight: 600;
	color: var(--apl-ink-700);
	cursor: pointer;
	list-style: none;
	border-radius: var(--apl-radius-md);
}

.apl-disclose__summary::-webkit-details-marker { display: none; }

.apl-disclose__summary::after {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform 160ms ease-out;
}

.apl-disclose[open] > .apl-disclose__summary::after {
	transform: rotate(-135deg) translate(-2px, -2px);
}

.apl-disclose__summary:hover { background: var(--apl-ink-050); }

.apl-disclose[open] > .apl-disclose__summary {
	border-bottom: 1px solid var(--apl-border);
	border-radius: var(--apl-radius-md) var(--apl-radius-md) 0 0;
}

/* The table brings its own frame; inside the disclosure that would be two. */
.apl-disclose__body .apl-table-wrap {
	border: 0;
	border-radius: 0;
}

/* ------------------------------------------------------------ adaptation -- */

@media (prefers-reduced-motion: reduce) {
	.apl-disclose__summary::after { transition: none; }
}

/*
 * High contrast: the map's fills ARE the data, so they are kept rather than
 * flattened to system colours — the same exception a chart gets. Nobody is
 * left without the information either way: every state on the map is also a
 * row in the table, in words.
 */
@media (forced-colors: active) {
	.apl-map__frame { forced-color-adjust: none; border-color: CanvasText; }
	.apl-map__halo  { stroke: Highlight; }
	.apl-map__key-swatch { forced-color-adjust: none; }
}

@media print {
	.apl-map__hint, .apl-map__tip { display: none; }
	.apl-map__frame { overflow: visible; }
	.apl-map__canvas { min-width: 0; }

	/* Print the table whether or not the reader left it open on screen. */
	.apl-disclose > *:not(summary) { display: block; }
}

/* --------------------------------------------------------------------------
   19. Motion, print, forced colours
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media (forced-colors: active) {
	.apl-btn { border: 1px solid ButtonText; }
	/* Fills are dropped in this mode, and the selected tab is a fill. */
	.apl-picker__tab[aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
	.apl-header__bar, .apl-mega { border: 1px solid CanvasText; }
	.apl-card, .apl-tool, .apl-report { border: 1px solid CanvasText; }
}

@media print {
	.apl-topbar, .apl-header, .apl-mobile-nav, .apl-cta-band, .apl-tool-wrap { display: none !important; }
	body { background: #FFFFFF; font-size: 11pt; }
	.apl-footer { background: #FFFFFF; color: #000000; border-top: 1px solid #000000; }
	.apl-footer a { color: #000000; }
	.apl-footer .apl-brand--logo { display: none; } /* reversed logo is white */
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555555; }
}
