/* Abule application. Mobile first; uses the Abule theme's palette and type, with fallbacks. */

.aba {
	--aba-paper: var(--wp--preset--color--paper, #F3F0E8);
	--aba-ink: var(--wp--preset--color--ink, #252923);
	--aba-moss: var(--wp--preset--color--moss, #6D7962);
	--aba-sand: var(--wp--preset--color--sandstone, #D6C8B0);
	--aba-ochre: var(--wp--preset--color--ochre, #BDA65C);
	--aba-red: var(--wp--preset--color--vermilion, #A44935);
	--aba-rule: var(--wp--preset--color--rule, #C9C3B4);
	--aba-card: #FFFDF8;
	--aba-serif: var(--wp--preset--font-family--display, 'Libre Caslon Text', Georgia, serif);
	--aba-sans: var(--wp--preset--font-family--body, Inter, 'Helvetica Neue', Arial, sans-serif);
	--aba-mono: var(--wp--preset--font-family--mono, 'IBM Plex Mono', ui-monospace, Menlo, monospace);
	color: var(--aba-ink);
	font-family: var(--aba-sans);
	font-size: 1rem;
	line-height: 1.55;
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 0 64px;
}

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

.aba [hidden] { display: none !important; }

.aba-eyebrow,
.aba-section-n,
.aba-q-eyebrow,
.aba-tag,
.aba-path-k,
.aba-who,
.aba-format {
	font-family: var(--aba-mono);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.5;
	margin: 0 0 10px;
}

.aba-eyebrow { color: var(--aba-red); }

.aba-title {
	font-family: var(--aba-serif);
	font-weight: 400;
	font-size: clamp(2.1rem, 8vw, 4.25rem);
	line-height: 1.04;
	letter-spacing: -0.02em;
	margin: 0 0 18px;
	max-width: 14ch;
}
.aba-title.is-small { font-size: clamp(1.9rem, 6vw, 3rem); max-width: none; margin-bottom: 18px; }

.aba-lede { font-size: clamp(1.1rem, 3.2vw, 1.375rem); line-height: 1.45; max-width: 620px; margin: 0; }

.aba h2,
.aba h3 { font-family: var(--aba-serif); font-weight: 400; letter-spacing: -0.01em; color: var(--aba-ink); }

.aba a { color: var(--aba-ink); }
.aba a:hover { color: var(--aba-red); }

.aba-fine { font-size: 0.875rem; color: #4D5248; margin: 14px 0 0; }

/* ---------- Notices ---------- */

.aba-notice {
	border: 1px solid var(--aba-ink);
	background: var(--aba-card);
	padding: 14px 16px;
	margin: 0 0 24px;
	font-size: 0.9375rem;
	display: flex;
	gap: 10px;
	align-items: flex-start;
}
.aba-notice::before { content: ""; flex: 0 0 10px; height: 10px; margin-top: 6px; background: var(--aba-moss); }
.aba-notice.is-err::before { background: var(--aba-red); }

/* ---------- Landing ---------- */

.aba-intro { padding-bottom: 24px; border-bottom: 1px solid var(--aba-ink); display: flow-root; }
.aba-crest { width: 92px; height: auto; display: block; float: right; margin: 0 0 8px 14px; }
.aba-help.is-below { margin: 10px 0 0; }

/* Roles: the outline for the chosen path appears once someone picks who they are. */
.aba-role { margin: 0 0 24px; }
.aba-role .aba-eyebrow { color: var(--aba-moss); }
.aba-role .aba-outline { border-top: 1px solid var(--aba-ink); }
.aba-outline li.is-theirs strong::after { content: " · Student’s part"; font-family: var(--aba-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--aba-moss); }
.aba-role .aba-callout { margin-top: 14px; }
.js-aba .aba-role,
.js-aba .aba-role-form { display: none; }
.js-aba .aba-start[data-role="student"] .aba-role[data-role="student"],
.js-aba .aba-start[data-role="guardian"] .aba-role[data-role="guardian"],
.js-aba .aba-start[data-role] .aba-role-form { display: block; }

.aba-outline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	border-bottom: 1px solid var(--aba-ink);
}
.aba-outline li {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 12px;
	padding: 14px 0;
	border-top: 1px solid var(--aba-rule);
}
.aba-outline li:first-child { border-top: 0; }
.aba-outline-n { font-family: var(--aba-serif); font-size: 1.5rem; line-height: 1.1; color: var(--aba-moss); }
.aba-outline strong { display: block; font-family: var(--aba-serif); font-weight: 400; font-size: 1.2rem; line-height: 1.25; }
.aba-outline li span:last-child { color: #4D5248; font-size: 0.9375rem; }
.aba-outline li { padding: 11px 0; grid-template-columns: 36px 1fr; }
.aba-outline-n { font-size: 1.2rem; }
.aba-outline strong { font-size: 1.1rem; }

.aba-start { padding: 28px 0 28px; border-bottom: 1px solid var(--aba-ink); }
.aba-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aba-paths legend { grid-column: 1 / -1; }
.aba-path { margin: 0; }
.aba-paths { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.aba-paths legend { padding: 0; margin-bottom: 16px; }
.aba-paths legend h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.15; margin: 0; }

.aba-path { display: block; position: relative; margin-bottom: 12px; cursor: pointer; }
.aba-path input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aba-path-body {
	display: flex;
	align-items: center;
	min-height: 64px;
	border: 1px solid var(--aba-ink);
	background: var(--aba-card);
	padding: 12px 12px 12px 44px;
	position: relative;
	transition: background 0.15s;
}
.aba-path-body::before {
	content: "";
	position: absolute;
	left: 14px;
	top: calc(50% - 10px);
	width: 20px;
	height: 20px;
	border: 1px solid var(--aba-ink);
	border-radius: 50%;
	background: var(--aba-paper);
}
.aba-path input:checked + .aba-path-body { background: var(--aba-ink); color: var(--aba-paper); }
.aba-path input:checked + .aba-path-body::before { border-color: var(--aba-paper); background: var(--aba-red); box-shadow: inset 0 0 0 4px var(--aba-ink); }
.aba-path input:focus-visible + .aba-path-body { outline: 2px solid var(--aba-red); outline-offset: 3px; }
.aba-path-k { display: block; margin: 0 0 2px; color: var(--aba-moss); }
.aba-path input:checked + .aba-path-body .aba-path-k { color: var(--aba-ochre); }
.aba-path strong { display: block; font-family: var(--aba-serif); font-weight: 400; font-size: 1.05rem; line-height: 1.25; }
@media (min-width: 700px) { .aba-path strong { font-size: 1.25rem; } }
.aba-path-body > span:last-child { display: block; font-size: 0.9375rem; line-height: 1.5; }

.aba-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.aba-facts { display: grid; grid-template-columns: 1fr; gap: 0; padding: 8px 0 24px; }
.aba-facts > div { padding: 20px 0; border-bottom: 1px solid var(--aba-rule); }
.aba-facts p { margin: 0; }
.aba-facts .aba-eyebrow { color: var(--aba-moss); margin-bottom: 6px; }

.aba-more { margin: 0; border-bottom: 1px solid var(--aba-rule); }
.aba-more summary { cursor: pointer; padding: 18px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.aba-more summary::-webkit-details-marker { display: none; }
.aba-more summary::after { content: "+"; font-family: var(--aba-serif); font-size: 1.6rem; line-height: 1; }
.aba-more[open] summary::after { content: "–"; }
.aba-more form,
.aba-more .aba-facts { padding: 0 0 20px; }
.aba-landing > .aba-fine { margin-top: 20px; }

/* ---------- Fields ---------- */

.aba-row { display: grid; grid-template-columns: 1fr; gap: 0 20px; }

.aba-field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.aba-field > label,
.aba-field > legend,
.aba-label {
	display: block;
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.35;
	margin: 0 0 8px;
	padding: 0;
}
.aba-opt { font-family: var(--aba-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--aba-moss); font-weight: 400; margin-left: 6px; }
.aba-help { display: block; font-size: 0.875rem; color: #4D5248; margin: -2px 0 8px; }
.aba-error { display: block; color: var(--aba-red); font-size: 0.875rem; margin-top: 6px; font-weight: 500; }

.aba input[type=text],
.aba input[type=email],
.aba input[type=tel],
.aba input[type=url],
.aba input[type=date],
.aba select,
.aba textarea {
	display: block;
	width: 100%;
	font: inherit;
	font-size: 1rem; /* 16px keeps iOS from zooming */
	color: var(--aba-ink);
	background: var(--aba-card);
	border: 1px solid var(--aba-ink);
	border-radius: 0;
	padding: 12px 14px;
	min-height: 48px;
	appearance: none;
	-webkit-appearance: none;
}
.aba select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23252923' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px;
	padding-right: 40px;
}
.aba textarea { min-height: 120px; line-height: 1.55; resize: vertical; }
.aba input:focus,
.aba select:focus,
.aba textarea:focus { outline: 2px solid var(--aba-red); outline-offset: 1px; }

.aba-file { font-size: 0.9375rem; margin: 4px 0 6px; max-width: 100%; }
.aba-current { display: block; font-size: 0.9375rem; margin: 0 0 8px; padding: 10px 12px; background: rgba(214, 200, 176, 0.45); }
.aba-remove { margin-left: 8px; font-size: 0.875rem; white-space: nowrap; }
.aba-or { display: block; font-family: var(--aba-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--aba-moss); margin: 12px 0 6px; }
.aba-sublabel { display: block; font-size: 0.9375rem; font-weight: 500; margin: 0 0 6px; }

/* Option cards for single choices. */
.aba-options { display: grid; gap: 8px; }
.aba-choice { position: relative; display: block; cursor: pointer; }
.aba-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aba-options .aba-choice span {
	display: block;
	border: 1px solid var(--aba-ink);
	background: var(--aba-card);
	padding: 12px 14px 12px 44px;
	position: relative;
	line-height: 1.4;
	min-height: 48px;
}
.aba-options .aba-choice span::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 14px;
	width: 18px;
	height: 18px;
	border: 1px solid var(--aba-ink);
	border-radius: 50%;
	background: var(--aba-paper);
}
.aba-options .aba-choice input:checked + span { background: #EFE6D3; }
.aba-options .aba-choice input:checked + span::before { background: var(--aba-red); border-color: var(--aba-red); box-shadow: inset 0 0 0 3px var(--aba-card); }

/* Chips for "select any". */
.aba-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aba-chips .aba-choice span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 9px 14px;
	border: 1px solid var(--aba-ink);
	background: var(--aba-card);
	line-height: 1.3;
	font-size: 0.9375rem;
}
.aba-chips .aba-choice span::before {
	content: "";
	width: 14px;
	height: 14px;
	border: 1px solid var(--aba-ink);
	flex: 0 0 14px;
}
.aba-chips .aba-choice input:checked + span { background: var(--aba-ink); color: var(--aba-paper); }
.aba-chips .aba-choice input:checked + span::before {
	border-color: var(--aba-paper);
	background: var(--aba-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23F3F0E8' stroke-width='2.4'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.aba-choice input:focus-visible + span { outline: 2px solid var(--aba-red); outline-offset: 2px; }

.aba-consent { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; border: 1px solid var(--aba-ink); background: var(--aba-card); padding: 16px; cursor: pointer; font-weight: 400; }
.aba-consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--aba-red); }

/* ---------- The app ---------- */

.aba-head { padding-bottom: 6px; }
.aba-progress-label { display: flex; justify-content: space-between; gap: 12px; font-family: var(--aba-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 8px; color: var(--aba-moss); }
.aba-saved { text-transform: none; letter-spacing: 0; font-family: var(--aba-sans); font-size: 0.8125rem; }
.aba-progress { height: 6px; background: var(--aba-sand); margin: 0 0 18px; }
.aba-progress span { display: block; height: 100%; background: var(--aba-red); transition: width 0.3s; }

.aba-steps { margin: 0 calc(-1 * var(--wp--style--root--padding-left, 16px)) 24px; border-top: 1px solid var(--aba-ink); border-bottom: 1px solid var(--aba-ink); }
.aba-steps ol {
	list-style: none;
	margin: 0;
	padding: 0 var(--wp--style--root--padding-left, 16px);
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}
.aba-steps ol::-webkit-scrollbar { display: none; }
.aba-steps li { flex: 0 0 auto; scroll-snap-align: start; }
.aba-steps a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px 12px 0;
	margin-right: 4px;
	text-decoration: none;
	white-space: nowrap;
	font-size: 0.875rem;
	min-height: 48px;
	border-bottom: 3px solid transparent;
}
.aba-steps .is-current a { border-bottom-color: var(--aba-red); font-weight: 500; }
.aba-step-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border: 1px solid var(--aba-ink);
	border-radius: 50%;
	font-family: var(--aba-mono);
	font-size: 0.6875rem;
	background: var(--aba-paper);
}
.aba-step-n svg { width: 14px; height: 14px; }
.aba-steps .is-done .aba-step-n { background: var(--aba-ink); color: var(--aba-paper); }
.aba-steps .is-current .aba-step-n { background: var(--aba-red); border-color: var(--aba-red); color: var(--aba-paper); }
.aba-steps .is-theirs .aba-step-t { color: var(--aba-moss); }
.aba-step-t small { display: block; font-size: 0.6875rem; color: var(--aba-moss); line-height: 1.1; }

.aba-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }

.aba-section-head { margin-bottom: 26px; }
.aba-section-n { color: var(--aba-moss); margin-bottom: 4px; }
.aba-section-head h2 { font-size: clamp(1.9rem, 6vw, 2.75rem); line-height: 1.08; margin: 0 0 12px; }
.aba-tag { display: inline-block; color: var(--aba-ink); background: var(--aba-sand); padding: 4px 8px; margin: 0 0 12px; }
.aba-section-intro { font-size: 1.0625rem; line-height: 1.55; margin: 0; max-width: 640px; color: #3A3F36; }

.aba-callout { background: rgba(214, 200, 176, 0.45); padding: 14px 16px; margin: 16px 0 0; font-size: 0.9375rem; }

.aba-group { font-family: var(--aba-mono) !important; font-size: 0.75rem !important; letter-spacing: 0.12em !important; text-transform: uppercase; color: var(--aba-moss) !important; margin: 34px 0 16px; padding-top: 16px; border-top: 1px solid var(--aba-rule); }

/* Your-voice prompts. */
.aba-field.is-prompt { border: 1px solid var(--aba-ink); background: var(--aba-card); padding: 18px; margin-bottom: 26px; }
.aba-q-legend { padding: 0; margin: 0 0 14px; float: left; width: 100%; }
.aba-q-legend + * { clear: both; }
.aba-q-eyebrow { display: block; color: var(--aba-red); margin-bottom: 6px; }
.aba-q { font-size: clamp(1.35rem, 4.5vw, 1.75rem); line-height: 1.2; margin: 0; }
.aba-segs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.aba-seg { position: relative; cursor: pointer; }
.aba-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aba-seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border: 1px solid var(--aba-ink); font-size: 0.875rem; background: var(--aba-paper); }
.aba-seg input:checked + span { background: var(--aba-ink); color: var(--aba-paper); }
.aba-seg input:focus-visible + span { outline: 2px solid var(--aba-red); outline-offset: 2px; }
.aba-panel + .aba-panel { margin-top: 14px; }
.aba-panel .aba-callout { margin-top: 0; }

.aba-readonly { border-left: 0; background: rgba(214, 200, 176, 0.3); padding: 12px 14px; }
.aba-readonly p { margin: 0 0 8px; }
.aba-readonly p:last-child { margin-bottom: 0; }
.aba-who { display: block; color: var(--aba-moss); margin-bottom: 4px; }
.aba-empty { color: var(--aba-moss); font-style: italic; }

.aba-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 22px; border-top: 1px solid var(--aba-ink); margin-top: 8px; }

.aba-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	font: inherit;
	font-weight: 500;
	font-size: 1rem;
	border: 1px solid var(--aba-ink);
	background: transparent;
	color: var(--aba-ink);
	border-radius: 0;
	cursor: pointer;
	text-decoration: none;
}
.aba-btn:hover { background: var(--aba-ink); color: var(--aba-paper); }
.aba-btn.is-primary { background: var(--aba-red); border-color: var(--aba-red); color: var(--aba-paper); }
.aba-btn.is-primary:hover { background: var(--aba-ink); border-color: var(--aba-ink); }
.aba-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.aba-btn.is-small { min-height: 44px; padding: 10px 16px; font-size: 0.9375rem; }
.aba-btn:focus-visible,
.aba-link:focus-visible { outline: 2px solid var(--aba-red); outline-offset: 3px; }
.aba-link { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 0.9375rem; color: var(--aba-ink); text-decoration: underline; cursor: pointer; min-height: 44px; }
.aba-link:hover { color: var(--aba-red); }

.aba-start .aba-btn.is-primary { width: 100%; }

/* Aside cards. */
.aba-card { border: 1px solid var(--aba-ink); background: var(--aba-card); padding: 18px; margin-bottom: 14px; }
.aba-card.is-quiet { background: transparent; border-color: var(--aba-rule); }
.aba-card p { margin: 0 0 10px; font-size: 0.9375rem; }
.aba-card .aba-eyebrow { color: var(--aba-moss); margin-bottom: 8px; }
.aba-card .aba-field { margin-bottom: 12px; }
.aba-card .aba-link { display: block; }
.aba-linkbox { margin: 0 0 16px; }
.aba-linkbox label { display: block; font-weight: 500; font-size: 0.9375rem; margin-bottom: 6px; }
.aba-linkbox input { font-size: 0.875rem !important; margin-bottom: 8px; }

/* Review and finish. */
.aba-review { border-top: 1px solid var(--aba-ink); margin-bottom: 28px; }
.aba-review-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--aba-rule); }
.aba-review-t strong { display: block; font-weight: 500; }
.aba-review-t small { color: var(--aba-moss); font-size: 0.8125rem; }

.aba-finish { margin-top: 36px; }
.aba-closing { background: var(--aba-ink); color: var(--aba-paper); padding: 28px 22px; margin: 0 calc(-1 * var(--wp--style--root--padding-left, 16px)) 24px; }
.aba-closing h2 { color: var(--aba-paper); font-size: clamp(1.9rem, 6vw, 2.75rem); line-height: 1.08; margin: 0 0 16px; }
.aba-closing p { margin: 0 0 14px; line-height: 1.6; }
.aba-closing .aba-eyebrow { color: var(--aba-ochre); }
.aba-tagline { font-family: var(--aba-serif); font-size: clamp(1.3rem, 4vw, 1.7rem); line-height: 1.25; margin: 20px 0 0 !important; }
.aba-tagline em { color: var(--aba-red); }
.aba-closing .aba-tagline em { color: var(--aba-ochre); }
.aba-missing { border: 1px solid var(--aba-red); padding: 14px 16px; margin: 0 0 18px; background: var(--aba-card); }
.aba-missing p { margin: 0 0 6px; }
.aba-missing ul { margin: 0; padding-left: 18px; font-size: 0.9375rem; }
.aba-finish form .aba-btn.is-primary { width: 100%; }

.aba-done h2 { font-size: clamp(1.9rem, 6vw, 2.75rem); line-height: 1.08; margin: 0 0 14px; }
.aba-done h3 { font-size: 1.4rem; margin: 28px 0 10px; }
.aba-next { padding-left: 20px; }
.aba-next li { margin-bottom: 8px; }

/* ---------- Wider screens ---------- */

@media (min-width: 700px) {
	.aba { padding-top: 48px; }
	.aba-row { grid-template-columns: 1fr 1fr; }
	.aba-outline { grid-template-columns: 1fr 1fr; column-gap: 40px; }
	.aba-outline li:nth-child(2) { border-top: 0; }
	.aba-path-body { height: 100%; }
	.aba-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
	.aba-crest { order: 2; float: none; margin: 0; width: clamp(180px, 22vw, 280px); }
	.aba-role .aba-outline { grid-template-columns: 1fr 1fr; }
	.aba-facts { grid-template-columns: repeat(3, 1fr); gap: 32px; }
	.aba-facts > div { border-bottom: 0; border-top: 1px solid var(--aba-rule); }
	.aba-start .aba-btn.is-primary,
	.aba-finish form .aba-btn.is-primary { width: auto; }
	.aba-form { display: flex; flex-wrap: wrap; column-gap: 20px; }
	.aba-form > * { flex: 1 1 100%; }
	.aba-form > .aba-field.is-half { flex: 1 1 calc(50% - 10px); }
	.aba-field.is-prompt { padding: 24px; }
	.aba-closing { margin-left: 0; margin-right: 0; padding: 36px; }
	.aba-steps { margin-left: 0; margin-right: 0; }
	.aba-steps ol { padding: 0; }
}

@media (min-width: 1000px) {
	.aba-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
	.aba-aside { position: sticky; top: 100px; }
	.aba-steps ol { justify-content: space-between; overflow: visible; }
	.aba-steps a { padding-right: 0; }
}

/* ---------- After acceptance: next steps ---------- */

.aba-next-steps { list-style: none; margin: 24px 0 28px; padding: 0; border-top: 1px solid var(--aba-ink); }
.aba-next-steps > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--aba-rule); }
.aba-next-steps > li .aba-step-n { width: 32px; height: 32px; flex-basis: 32px; }
.aba-next-steps > li.is-done .aba-step-n { background: var(--aba-ink); color: var(--aba-paper); }
.aba-next-body h2 { font-size: clamp(1.35rem, 4vw, 1.7rem); line-height: 1.2; margin: 2px 0 8px; }
.aba-next-body h2 small { font-family: var(--aba-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--aba-moss); margin-left: 8px; vertical-align: middle; }
.aba-next-body > p { margin: 0 0 10px; max-width: 640px; }
.aba-next-body .aba-btn { margin-top: 12px; }
.aba-next-body .aba-help { margin-top: 10px; }
.aba-next-body .aba-form { margin-top: 12px; }
.aba-next-steps > li.is-done .aba-next-body > p { color: #4D5248; }
.aba-enroll { max-width: 860px; }

/* Consent checkboxes sit beside their text, not on top of it. */
.aba .aba-field > label.aba-consent { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-weight: 400; margin: 0; }

/* ---------- Clear endings: the submit section and the "done" panel ---------- */

#aba-top,
#aba-finish,
#aba-missing { scroll-margin-top: 96px; }
.aba-success {
	background: var(--aba-ink);
	color: var(--aba-paper);
	padding: 24px 22px;
	margin: 0 0 24px;
}
.aba-success:focus { outline: 2px solid var(--aba-red); outline-offset: 3px; }
.aba-success .aba-eyebrow { color: var(--aba-ochre); margin-bottom: 6px; }
.aba-success h2 { color: var(--aba-paper); font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.08; margin: 0 0 12px; }
.aba-success p { margin: 0 0 10px; max-width: 640px; }
.aba-success a { color: var(--aba-paper); }
.aba-finish .aba-missing { scroll-margin-top: 96px; }


