/* Online application — /apply */
:root {
	--navy: #16325c;
	--navy-deep: #0f2645;
	--navy-soft: #24457a;
	--amber: #e8a33d;
	--amber-soft: #fbefd9;
	--ink: #17263a;
	--slate: #5b6b7d;
	--mist: #eef2f6;
	--paper: #ffffff;
	--line: #d5dde6;
	--line-strong: #b9c5d2;
	--ok: #1f7a55;
	--ok-soft: #e3f2ea;
	--bad: #b3261e;
	--bad-soft: #fbe9e7;
	--focus: #2f6fd6;

	--serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
	--sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

	--radius: 8px;
	--rail: 300px;
	color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	background: var(--mist);
	color: var(--ink);
	font: 16px/1.55 var(--sans);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- shell -- */
.shell { min-height: 100%; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }

.rail {
	background: var(--navy);
	color: #dbe4f0;
	padding: calc(28px + env(safe-area-inset-top, 0px)) 28px 28px;
	display: flex; flex-direction: column; gap: 28px;
	position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 6px; padding: 4px; }
.brand-name { font-family: var(--serif); font-size: 1.12rem; line-height: 1.25; color: #fff; font-weight: 600; }
.brand-sub { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #9fb3cc; margin-top: 2px; }

.child-card { border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; display: grid; gap: 2px; }
.child-card .label { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #9fb3cc; }
.child-card .who { color: #fff; font-weight: 600; }
.child-card .ref { font-variant-numeric: tabular-nums; font-size: .85rem; color: #b9c8db; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.steps button {
	width: 100%; display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center;
	text-align: left; background: none; border: 0; color: #c9d5e4; padding: 9px 10px; border-radius: 6px; cursor: pointer;
}
.steps button:hover { background: rgba(255,255,255,.07); color: #fff; }
.steps .dot {
	width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
	border: 1.5px solid rgba(255,255,255,.35); font-size: .78rem; font-variant-numeric: tabular-nums; color: #c9d5e4;
}
.steps .done .dot { background: rgba(255,255,255,.14); border-color: transparent; color: #fff; }
.steps .done .dot::before { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }
.steps .done .dot span { display: none; }
.steps .current button { background: rgba(255,255,255,.1); color: #fff; }
.steps .current .dot { background: var(--amber); border-color: var(--amber); color: var(--navy-deep); font-weight: 700; }
.steps .count { font-size: .72rem; background: rgba(232,163,61,.2); color: #f6d39c; border-radius: 99px; padding: 1px 8px; font-variant-numeric: tabular-nums; }

.rail-foot { margin-top: auto; font-size: .86rem; color: #9fb3cc; display: grid; gap: 6px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; }
.rail-foot a { color: #fff; text-decoration: none; }
.rail-foot a:hover { text-decoration: underline; }
.rail-foot .quiet { background: none; border: 0; color: #9fb3cc; padding: 0; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* mobile header replaces the rail */
.topbar { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.page { width: 100%; max-width: 760px; margin: 0 auto; padding: 48px 32px 140px; display: grid; gap: 32px; }

.eyebrow { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.page-head { display: grid; gap: 10px; }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.15; }
.lede { color: var(--slate); font-size: 1.05rem; max-width: 60ch; }

/* -------------------------------------------------------------- sections -- */
.section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 18px; }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.section-head h2 { font-size: 1.2rem; }
.section-head .opt { font-size: .82rem; color: var(--slate); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 18px; }
.w-quarter { grid-column: span 1; }
.w-half { grid-column: span 2; }
.w-three-quarter { grid-column: span 3; }
.w-full { grid-column: 1 / -1; }

.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field > .label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.req { color: var(--bad); margin-left: 2px; }
.help { font-size: .84rem; color: var(--slate); }
.input, select.input, textarea.input {
	width: 100%; font: inherit; color: var(--ink); background: #fff;
	border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px 12px; min-height: 44px;
	transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 88px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input:hover { border-color: var(--slate); }
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(47,111,214,.18); }
.field.invalid .input { border-color: var(--bad); background: #fffafa; }
.field .error { font-size: .84rem; color: var(--bad); }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
	display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px;
	border: 1px solid var(--line-strong); border-radius: 99px; background: #fff; color: var(--ink); font-size: .94rem;
}
.choice span::before { content: ""; width: 16px; height: 16px; border: 1.5px solid var(--line-strong); border-radius: 4px; flex: none; }
.choice.radio span::before { border-radius: 50%; }
.choice input:checked + span { border-color: var(--navy); background: #eaf0f8; font-weight: 600; }
.choice input:checked + span::before { background: var(--navy); border-color: var(--navy); box-shadow: inset 0 0 0 3px #eaf0f8; }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* repeatable rows */
.rows { display: grid; gap: 12px; }
.row-card { border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: grid; gap: 12px; background: #fbfcfd; }
.row-card-head { display: flex; justify-content: space-between; align-items: center; }
.row-card-head strong { font-size: .92rem; }
.link-btn { background: none; border: 0; color: var(--navy-soft); padding: 4px 0; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: var(--bad); }
.add-btn { justify-self: start; display: inline-flex; gap: 8px; align-items: center; border: 1px dashed var(--line-strong); background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.add-btn:hover { border-color: var(--navy); }

/* documents */
.docs { display: grid; gap: 10px; }
.doc {
	display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center;
	border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; background: #fff;
}
.doc-icon { width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; background: var(--mist); color: var(--slate); font-weight: 700; font-size: .72rem; }
.doc.has .doc-icon { background: var(--ok-soft); color: var(--ok); }
.doc-title { font-weight: 600; }
.doc-meta { font-size: .84rem; color: var(--slate); overflow-wrap: anywhere; }
.doc-files { display: grid; gap: 2px; margin-top: 4px; }
.doc-actions { display: flex; gap: 12px; align-items: center; }
.upload-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; border: 1px solid var(--navy); color: var(--navy); background: #fff; border-radius: 6px; padding: 8px 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-btn:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.badge { font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.badge.need { background: var(--amber-soft); color: #8a5a10; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }

.photo { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.photo-frame { width: 96px; height: 120px; border: 1px dashed var(--line-strong); border-radius: 6px; display: grid; place-items: center; background: var(--mist); color: var(--slate); font-size: .8rem; text-align: center; padding: 6px; }
.photo-frame.has { border-style: solid; background: var(--ok-soft); color: var(--ok); font-weight: 600; }

/* review + sign */
.review { display: grid; gap: 10px; }
.review-item { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.review-item:last-child { border-bottom: 0; }
.review-item .mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; margin-top: 2px; }
.review-item.ok .mark { background: var(--ok-soft); color: var(--ok); }
.review-item.need .mark { background: var(--amber-soft); color: #8a5a10; }
.review-item ul { margin: 4px 0 0; padding-left: 18px; color: var(--slate); font-size: .9rem; }

.agreement-text { max-height: 280px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; background: #fbfcfd; font-size: .95rem; }
.agreement-text ul { padding-left: 20px; margin: 8px 0; }
.agreement-text li { margin: 4px 0; }
.sigpad { display: grid; gap: 8px; }
.sigpad canvas { width: 100%; height: 160px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff linear-gradient(to top, transparent 38px, var(--line) 38px, var(--line) 39px, transparent 39px); touch-action: none; cursor: crosshair; }
.sigpad-foot { display: flex; justify-content: space-between; font-size: .84rem; color: var(--slate); }

/* ------------------------------------------------------------ action bar -- */
.actionbar {
	position: sticky; bottom: 0; z-index: 5; margin-top: auto;
	background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line);
	padding: 12px 32px calc(12px + env(safe-area-inset-bottom, 0px));
}
.actionbar-inner { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.save-state { font-size: .86rem; color: var(--slate); margin-right: auto; display: inline-flex; gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.save-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.save-state.saving::before { background: var(--amber); }
.save-state.error::before { background: var(--bad); }
.save-state.error { color: var(--bad); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 6px; border: 1px solid transparent; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-amber { background: var(--amber); color: var(--navy-deep); }
.btn-amber:hover { background: #d99229; }

.notice { border-radius: 6px; padding: 14px 16px; font-size: .94rem; display: grid; gap: 4px; }
.notice.info { background: #eaf0f8; color: var(--navy-deep); }
.notice.warn { background: var(--amber-soft); color: #6e4708; }
.notice.bad { background: var(--bad-soft); color: var(--bad); }

/* -------------------------------------------------------------- welcome -- */
.page.wide { max-width: 1120px; }
.welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, 1.1fr); gap: 48px; align-items: start; }
.welcome-copy { display: grid; gap: 22px; }
.welcome-copy h1 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.12; max-width: 16ch; }
.need-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.need-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.need-list .n { width: 30px; height: 30px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; color: var(--navy); }
.need-list strong { display: block; }
.need-list span { color: var(--slate); font-size: .92rem; }
.start-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 32px; display: grid; gap: 18px; box-shadow: 0 10px 30px -18px rgba(22,50,92,.35); }
.start-card h2 { font-size: 1.35rem; }
.start-card .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.start-card .w-half { grid-column: span 1; }
.small { font-size: .86rem; color: var(--slate); }
.resume-box { border-top: 1px solid var(--line); padding-top: 14px; }
.resume-box > summary {
	cursor: pointer; font-weight: 600; color: var(--navy); font-size: .95rem;
	list-style: none; display: inline-flex; align-items: center; gap: 7px;
	padding: 2px 0; border-radius: 4px;
}
.resume-box > summary::-webkit-details-marker { display: none; }
.resume-box > summary::before {
	content: ""; width: 0; height: 0; border-left: 5px solid currentColor;
	border-top: 4px solid transparent; border-bottom: 4px solid transparent;
	transition: transform .15s ease;
}
.resume-box[open] > summary::before { transform: rotate(90deg); }
.resume-box > summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.resume-box > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.resume-box .inline-form { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .resume-box > summary::before { transition: none; } }
.inline-form { display: flex; gap: 8px; }
.inline-form .input { flex: 1; }

/* ----------------------------------------------------------------- done -- */
.done { display: grid; gap: 28px; }
.done-hero { display: grid; gap: 14px; justify-items: center; text-align: center; }
.done-hero .confirm-mark { margin-bottom: 6px; }
.done-hero h1 { font-family: var(--serif); }
.done-hero .ref-card { width: 100%; max-width: 420px; }
.fee-box { display: grid; gap: 12px; }
.fee-amount { font-family: var(--serif); font-size: 1.6rem; font-variant-numeric: tabular-nums; }

.loading { display: grid; place-items: center; min-height: 60vh; color: var(--slate); }
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; font-size: .92rem; z-index: 40; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }

/* step picker sheet (mobile) */
.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(15,38,69,.5); display: flex; align-items: flex-end; }
.sheet-panel { background: var(--navy); width: 100%; border-radius: 14px 14px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); max-height: 80vh; overflow-y: auto; }

/* ------------------------------------------------------------- responsive -- */
@media (max-width: 1180px) {
	:root { --rail: 260px; }
}
@media (max-width: 1020px) {
	.welcome { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 880px) {
	.shell { grid-template-columns: 1fr; }
	.rail { display: none; }
	.topbar {
		display: grid; gap: 10px; position: sticky; top: 0; z-index: 10;
		background: var(--navy); color: #fff; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
	}
	.topbar-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
	.topbar .brand-name { font-size: 1rem; }
	.topbar-step { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 99px; padding: 6px 12px; font-size: .86rem; cursor: pointer; white-space: nowrap; }
	.progress { height: 4px; background: rgba(255,255,255,.18); border-radius: 99px; overflow: hidden; }
	.progress i { display: block; height: 100%; background: var(--amber); }
	.page { padding: 28px 16px 120px; gap: 24px; }
	.actionbar { padding-left: 16px; padding-right: 16px; }
	.section { padding: 18px 16px; }
}
@media (max-width: 600px) {
	.grid, .start-card .grid { grid-template-columns: 1fr; }
	.w-quarter, .w-half, .w-three-quarter, .start-card .w-half { grid-column: 1 / -1; }
	.save-state { font-size: .8rem; }
	.btn { padding: 10px 16px; }
	.doc { grid-template-columns: 1fr; }
	.doc-icon { display: none; }
	.inline-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.doc.invalid { border-color: var(--bad); background: #fffafa; }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-btn { border: 1px solid var(--line-strong); background: #fff; color: var(--navy); border-radius: 99px; padding: 6px 14px; font-size: .88rem; font-weight: 600; cursor: pointer; min-height: 36px; }
.chip-btn:hover { border-color: var(--navy); background: #eaf0f8; }

/* ---------------------------------------------------------------- brand --
   .brand was written for the navy rail on /apply, where white reads well.
   On a light page (/enquire) it was white on near-white. */
.page > .brand { margin-bottom: 4px; }
.page > .brand .brand-name { color: var(--ink); }
.page > .brand .brand-sub { color: var(--slate); }
.page > .brand img { background: transparent; padding: 0; }

/* ----------------------------------------------------------- datepicker --
   See public/apply/datepicker.js. */
.dp { position: relative; }
.dp-input {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	text-align: left; cursor: pointer; font: inherit; color: var(--ink); background: var(--paper);
}
.dp-input:hover { border-color: var(--line-strong); }
.dp-value.is-empty { color: #8a99a8; }
.dp-icon { opacity: .6; font-size: .95em; }

.dp-panel {
	position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 300px;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: 0 12px 32px rgba(23, 38, 58, .18); padding: 12px;
}
.dp-head { display: flex; gap: 8px; margin-bottom: 10px; }
.dp-head select {
	flex: 1; font: inherit; padding: 7px 8px; border: 1px solid var(--line);
	border-radius: 6px; background: var(--paper); color: var(--ink);
}
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow {
	text-align: center; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
	color: var(--slate); padding-bottom: 4px;
}
.dp-day {
	aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: 6px;
	background: none; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer;
}
.dp-day.is-blank { cursor: default; }
.dp-day:not(.is-blank):not(:disabled):hover { background: var(--mist); }
.dp-day:disabled { color: #c3cdd7; cursor: not-allowed; }
.dp-day.is-today { box-shadow: inset 0 0 0 1px var(--line-strong); }
.dp-day.is-selected { background: var(--navy); color: #fff; font-weight: 600; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 10px; }
.dp-link {
	border: 0; background: none; font: inherit; font-size: .88rem; color: var(--navy);
	cursor: pointer; padding: 4px 6px; border-radius: 6px;
}
.dp-link:hover { background: var(--mist); }

@media (max-width: 600px) {
	.dp-panel { left: 0; right: 0; min-width: 0; }
}

/* ------------------------------------------------------- confirmation --
   The screen a family lands on after sending. It has one job: tell them it
   worked, give them something to quote, and say what happens next. */
/* The confirmation is the only thing on its page, so centre it. */
.page.is-confirm { justify-items: center; }
.page.is-confirm > .brand { justify-self: center; }
.confirm {
	background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
	padding: 40px 36px; max-width: 560px; text-align: center;
	box-shadow: 0 1px 2px rgba(23,38,58,.04), 0 12px 32px rgba(23,38,58,.06);
}
.confirm-mark { width: 76px; height: 76px; margin: 0 auto 22px; display: block; }
.confirm-mark circle.ring { fill: var(--ok-soft); }
.confirm-mark circle.edge {
	fill: none; stroke: var(--ok); stroke-width: 2.5; opacity: .35;
	stroke-dasharray: 226; stroke-dashoffset: 226;
	animation: confirm-ring .5s ease-out forwards;
}
.confirm-mark path {
	fill: none; stroke: var(--ok); stroke-width: 5.5;
	stroke-linecap: round; stroke-linejoin: round;
	stroke-dasharray: 44; stroke-dashoffset: 44;
	animation: confirm-tick .34s cubic-bezier(.65,0,.45,1) .32s forwards;
}
@keyframes confirm-ring { to { stroke-dashoffset: 0; } }
@keyframes confirm-tick { to { stroke-dashoffset: 0; } }

.confirm h1 {
	font-family: var(--serif); font-size: 1.85rem; line-height: 1.15;
	color: var(--ink); margin: 0 0 10px;
}
.confirm .lede { color: var(--slate); margin: 0 auto; max-width: 42ch; }

.ref-card {
	margin: 26px 0 4px; border: 1px solid var(--line); border-radius: 10px;
	background: var(--mist); padding: 14px 16px;
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.ref-card .ref-label {
	font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
	color: var(--slate); display: block; text-align: left;
}
.ref-card .ref-value {
	font-family: var(--serif); font-size: 1.22rem; font-weight: 600; color: var(--ink);
	font-variant-numeric: tabular-nums; letter-spacing: .02em; display: block; text-align: left;
}
.copy-ref {
	flex: none; border: 1px solid var(--line-strong); background: var(--paper);
	color: var(--ink); font: inherit; font-size: .86rem; border-radius: 8px;
	padding: 7px 13px; cursor: pointer;
}
.copy-ref:hover { border-color: var(--navy); color: var(--navy); }
.copy-ref.is-done { border-color: var(--ok); color: var(--ok); }

.next-steps { text-align: left; margin: 28px 0 0; }
.next-steps h2 {
	font-size: .74rem; letter-spacing: .09em; text-transform: uppercase;
	color: var(--slate); margin: 0 0 14px; font-weight: 600;
}
.next-steps ol { list-style: none; margin: 0; padding: 0; }
.next-steps li {
	display: grid; grid-template-columns: 24px 1fr; gap: 13px;
	padding-bottom: 16px; position: relative;
}
.next-steps li::before {
	content: ""; position: absolute; left: 11px; top: 24px; bottom: 0;
	width: 2px; background: var(--line);
}
.next-steps li:last-child { padding-bottom: 0; }
.next-steps li:last-child::before { display: none; }
.next-steps .pip {
	width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong);
	background: var(--paper); display: grid; place-items: center;
}
.next-steps .is-done .pip { border-color: var(--ok); background: var(--ok); }
.next-steps .is-done .pip::before {
	content: ""; width: 9px; height: 5px; border: 2px solid #fff;
	border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px);
}
.next-steps .is-now .pip { border-color: var(--navy); box-shadow: inset 0 0 0 4px var(--navy); }
.next-steps strong { display: block; color: var(--ink); font-weight: 600; }
.next-steps span { color: var(--slate); font-size: .92rem; }

.confirm-actions {
	margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line);
	display: grid; gap: 12px; justify-items: center;
}
.confirm-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
.confirm-actions .quiet { color: var(--slate); font-size: .9rem; margin: 0; }
.confirm-actions .quiet a { color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
	.confirm-mark circle.edge, .confirm-mark path { animation: none; stroke-dashoffset: 0; }
}
@media (max-width: 600px) {
	.confirm { padding: 30px 20px; border-radius: 12px; }
	.confirm h1 { font-size: 1.55rem; }
	.ref-card { flex-direction: column; align-items: stretch; gap: 10px; }
	.copy-ref { width: 100%; }
}

/* --------------------------------------------------- admission programmes --
   The year groups an admission covers, on /school-admissions. Not .need-list:
   that is a 30px-then-rest grid built around a numbered circle, which squeezes
   a programme name into 30px and wraps it one word per line. */
.programmes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.programmes li {
	background: var(--paper); padding: 11px 14px;
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
}
.programmes .prog-name { font-weight: 600; color: var(--ink); margin-right: auto; }
.programmes .prog-meta { color: var(--slate); font-size: .88rem; white-space: nowrap; }
.programmes .prog-fee { color: var(--ink); font-variant-numeric: tabular-nums; }

@media (max-width: 600px) {
	.programmes .prog-name { margin-right: 0; width: 100%; }
}


.prog-apply {
	flex: none; font-size: .86rem; font-weight: 500; color: var(--navy);
	border: 1px solid var(--line-strong); border-radius: 6px; padding: 4px 12px;
	text-decoration: none; white-space: nowrap;
}
.prog-apply:hover { border-color: var(--navy); background: var(--mist); }

/* The admission's own words, above the year groups it covers. */
.admission-intro {
	border: 1px solid var(--line); border-radius: 8px; background: var(--mist);
	padding: 14px 16px; color: var(--ink);
}
.admission-intro > :first-child { margin-top: 0; }
.admission-intro > :last-child { margin-bottom: 0; }
