/*
 * Elyon College: site styles.
 * Direction: Elyon 02, Refined Teal with the Lamp & Book logo.
 * Tokens first, then base, layout, header, sections, footer, inner pages.
 */

:root {
	--teal: #0F766E;
	--teal-dark: #0A4F4A;
	--teal-deep: #083B37;
	--teal-legacy: #3AB4A0;
	--ink: #111827;
	--slate: #4B5563;
	--line: #D5DEDB;
	--paper: #F8FAF9;
	--white: #FFFFFF;
	--amber: #D97706;
	--amber-light: #F6A93B;
	--tint: #E8F4F1;
	--shadow-sm: 0 1px 2px rgba(8, 59, 55, 0.06), 0 10px 24px -16px rgba(8, 59, 55, 0.28);
	--shadow-lg: 0 2px 4px rgba(8, 59, 55, 0.06), 0 24px 48px -24px rgba(8, 59, 55, 0.38);
	--radius-lg: 12px;

	--font-heading: Montserrat, "Segoe UI", system-ui, sans-serif;
	--font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
	--font-wordmark: "Cormorant Garamond", Georgia, serif;

	--wrap: 75rem;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--section: clamp(3.5rem, 7vw, 5.5rem);
	--radius: 6px;
}

/* ---------- Base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: auto;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.2;
	color: var(--ink);
	margin: 0 0 0.75rem;
	text-wrap: balance;
}

h2 {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	letter-spacing: -0.01em;
}

h3 {
	font-size: 1.3125rem;
}

p {
	margin: 0 0 1rem;
}

a {
	color: var(--teal);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--teal-dark);
	text-decoration-thickness: 2px;
}

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

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

address {
	font-style: normal;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* WordPress wrappers: sections manage their own spacing. */
.wp-site-blocks > * + *,
.site-main--home > * + * {
	margin-block-start: 0;
}

.wp-site-blocks {
	padding: 0;
}

/* ---------- Buttons ---------- */

.btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.875rem;
	padding: 0.7rem 1.35rem;
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--white);
	background: var(--teal);
	border: 2px solid var(--teal);
	border-radius: var(--radius);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover,
.wp-block-button__link:hover {
	color: var(--white);
	background: var(--teal-dark);
	border-color: var(--teal-dark);
}

/* Apply is the one amber element on any screen: the flame from the logo. */
.btn--apply {
	color: var(--ink);
	background: var(--amber);
	border-color: var(--amber);
}

.btn--apply:hover {
	color: var(--ink);
	background: #E8890F;
	border-color: #E8890F;
}

.btn--line {
	color: var(--teal-dark);
	background: transparent;
	border-color: var(--teal);
}

.btn--line:hover {
	color: var(--white);
	background: var(--teal);
	border-color: var(--teal);
}

.btn--on-dark {
	color: var(--white);
	background: transparent;
	border-color: var(--white);
}

.btn--on-dark:hover {
	color: var(--teal-dark);
	background: var(--white);
	border-color: var(--white);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.btn--white {
	color: var(--teal-deep);
	background: var(--white);
	border-color: var(--white);
}

.btn--white:hover {
	color: var(--teal-deep);
	background: var(--tint);
	border-color: var(--tint);
}

.icon {
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
}

.motif {
	position: absolute;
	pointer-events: none;
}

/* ---------- Top bar ---------- */

.topbar {
	font-size: 0.8125rem;
	color: var(--white);
	background: var(--teal-deep);
}

.topbar__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 2.375rem;
}

.topbar__place {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
}

.topbar .icon {
	width: 1rem;
	height: 1rem;
	color: var(--amber-light);
}

.topbar__links {
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.topbar a {
	font-weight: 600;
	color: var(--white);
	text-decoration: none;
}

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

.topbar :focus-visible {
	outline-color: var(--white);
}

@media (max-width: 40rem) {
	.topbar__place {
		display: none;
	}

	.topbar__bar {
		justify-content: flex-end;
	}
}

/* ---------- Header ---------- */

.site-header {
	position: relative;
	z-index: 10;
	background: var(--white);
	border-bottom: 1px solid var(--line);
}

.header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 5.25rem;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--ink);
	text-decoration: none;
	flex: 0 0 auto;
}

.logo__mark {
	width: 3rem;
	height: 3rem;
	flex: 0 0 auto;
}

.logo__text {
	display: flex;
	flex-direction: column;
}

.logo__name {
	font-family: var(--font-wordmark);
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1;
	color: var(--teal);
	white-space: nowrap;
}

.logo__sub {
	margin-top: 0.3rem;
	font-family: var(--font-body);
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ink);
	white-space: nowrap;
}

.logo--on-dark .logo__name,
.logo--on-dark .logo__sub {
	color: var(--white);
}

.nav {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__list a {
	display: block;
	padding: 0.5rem 0;
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
}

.nav__list a:hover,
.nav__list a[aria-current="page"] {
	color: var(--teal-dark);
	border-bottom-color: var(--teal);
}

.nav__end {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.nav__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
}

.nav__phone .icon {
	width: 1.1rem;
	height: 1.1rem;
	color: var(--teal);
}

.nav__phone:hover {
	color: var(--teal-dark);
	text-decoration: underline;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.6rem;
	min-height: 2.75rem;
	padding: 0.5rem 0.9rem;
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ink);
	background: var(--white);
	border: 2px solid var(--ink);
	border-radius: var(--radius);
	cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
	display: block;
	width: 1.125rem;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
}

.nav-toggle__icon {
	position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__icon::before {
	top: -6px;
}

.nav-toggle__icon::after {
	top: 6px;
}

@media (max-width: 68rem) {
	.nav-toggle {
		display: inline-flex;
	}

	.nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.5rem var(--gutter) 1.5rem;
		background: var(--white);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 12px 24px -12px rgba(8, 59, 55, 0.25);
	}

	.nav.is-open {
		display: flex;
	}

	.nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav__list a {
		padding: 0.9rem 0;
		font-size: 1.0625rem;
		border-bottom: 1px solid var(--line);
	}

	.nav__end {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding-top: 1.25rem;
	}

	.nav__phone {
		font-size: 1.0625rem;
	}
}

@media (max-width: 26rem) {
	.logo__mark {
		width: 2.5rem;
		height: 2.5rem;
	}

	.logo__name {
		font-size: 1.5rem;
	}

	.logo__sub {
		font-size: 0.5rem;
	}

	.nav-toggle__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(3rem, 6vw, 5.25rem) clamp(6rem, 10vw, 8.5rem);
	color: var(--white);
	background: linear-gradient(115deg, var(--teal-deep) 0%, #0A4843 60%, #0C5650 100%);
}

.hero .motif {
	right: -5rem;
	bottom: -9rem;
	width: min(48rem, 80vw);
	color: var(--white);
	opacity: 0.06;
}

.hero :focus-visible {
	outline-color: var(--white);
}

.hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 2rem;
	row-gap: 2.75rem;
	align-items: end;
}

.hero__copy {
	grid-column: span 7;
}

.hero__title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.875rem, 3.5vw, 2.875rem);
	line-height: 1.14;
	letter-spacing: -0.015em;
	color: var(--white);
}

.hero__lead {
	max-width: 34rem;
	margin: 0;
	font-size: clamp(1.125rem, 1.6vw, 1.25rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
}

.hero__sooner {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	max-width: 36rem;
	margin: 1.5rem 0 0;
	padding: 0.9rem 1.1rem;
	font-size: 1.0625rem;
	line-height: 1.5;
	color: var(--white);
	background: rgba(255, 255, 255, 0.07);
	border-left: 3px solid var(--amber-light);
	border-radius: 0 6px 6px 0;
}

.hero__sooner svg {
	flex: 0 0 auto;
	margin-top: 0.1rem;
}

.hero__sooner strong {
	color: var(--amber-light);
}

.hero__sooner a {
	color: var(--white);
	font-weight: 600;
	white-space: nowrap;
}

.levels__note {
	margin: 0.75rem 0 0;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.85);
}

/* The three levels, drawn as steps that brighten as they climb. Heights follow the credits. */
.levels {
	grid-column: 8 / span 5;
}

.levels__title {
	margin: 0 0 1.25rem;
	font-family: var(--font-heading);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--white);
}

.levels__title span {
	display: block;
}

.levels__title .levels__title-2 {
	color: var(--amber-light);
}

.levels__steps {
	display: flex;
	align-items: flex-end;
	gap: 0.5rem;
	height: 19rem;
	margin: 0;
	padding: 2.75rem 0 0;
	list-style: none;
}

.level {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
}

.level--cert {
	height: 46%;
}

.level--assoc {
	height: 66%;
}

.level--bach {
	height: 100%;
}

.level a {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0.9rem 0.9rem 1rem;
	color: var(--white);
	background: #0C5A54;
	border-top: 4px solid var(--teal-legacy);
	border-radius: 6px 6px 0 0;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.level--assoc a {
	background: var(--teal);
}

.level--bach a {
	color: var(--ink);
	background: var(--white);
	border-top-color: var(--amber);
	box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.45);
}

.level--cert a:hover {
	background: #0E655E;
}

.level--assoc a:hover {
	background: #11837A;
}

.level--bach a:hover {
	background: var(--tint);
}

.level__name {
	margin-bottom: 0.35rem;
	font-family: var(--font-heading);
	font-size: clamp(0.9375rem, 1.4vw, 1.125rem);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.level__fact {
	font-size: 0.9375rem;
	line-height: 1.4;
}

.level__flame {
	position: absolute;
	top: -2.6rem;
	left: 0.9rem;
}

@media (max-width: 60rem) {
	.hero__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__copy,
	.levels {
		grid-column: auto;
	}

	.levels {
		max-width: 32rem;
	}

	.levels__steps {
		height: 16rem;
	}
}

@media (max-width: 26rem) {
	.level a {
		padding: 0.7rem 0.55rem 0.8rem;
	}

	.level__fact {
		font-size: 0.8125rem;
	}

	.level__flame {
		left: 0.55rem;
	}
}

/* ---------- Proof card (overlaps the hero) ---------- */

.proof {
	position: relative;
	z-index: 2;
	margin-top: -3.75rem;
	padding-bottom: 0.5rem;
}

.proof__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 1.6rem 0.75rem;
	list-style: none;
	background: var(--white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

.proof__list li {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	padding: 0.25rem 1.25rem;
	line-height: 1.4;
	color: var(--slate);
	border-left: 1px solid var(--line);
}

.proof__list li:first-child {
	border-left: 0;
}

.proof__list .icon {
	box-sizing: content-box;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0.65rem;
	color: var(--teal);
	background: var(--tint);
	border-radius: 50%;
}

.proof__list strong {
	display: block;
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--ink);
}

.proof__source {
	margin: 1.1rem 0 0;
	padding-inline: 0.25rem;
	font-size: 0.875rem;
	color: var(--slate);
}

@media (max-width: 60rem) {
	.proof__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 1.4rem;
	}

	.proof__list li:nth-child(odd) {
		border-left: 0;
	}
}

@media (max-width: 32rem) {
	.proof__list {
		grid-template-columns: 1fr;
		padding-inline: 0.25rem;
	}

	.proof__list li {
		border-left: 0;
	}
}

/* ---------- Sections ---------- */

.section {
	padding-block: var(--section);
}

.section--paper {
	background: var(--paper);
	border-block: 1px solid var(--line);
}

.section__head {
	max-width: 40rem;
	margin-bottom: 2rem;
}

.section__head h2::before,
.cost__tuition h2::before,
.about__copy h2::before,
.faq__head h2::before {
	content: "";
	display: block;
	width: 3rem;
	height: 4px;
	margin-bottom: 1.1rem;
	background: var(--amber);
	border-radius: 2px;
}

.section__head p {
	margin: 0;
	font-size: 1.125rem;
	color: var(--slate);
}

.section__more {
	margin: 1.75rem 0 0;
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 600;
}

/* ---------- Fact tables ---------- */

.table-scroll {
	overflow-x: auto;
}

.facts-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1.0625rem;
}

.facts-table caption {
	padding-bottom: 0.75rem;
	font-family: var(--font-heading);
	font-size: 1.0625rem;
	font-weight: 600;
	text-align: left;
	color: var(--ink);
}

.facts-table th,
.facts-table td {
	padding: 1rem 1rem 1rem 0;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--line);
}

.facts-table thead th {
	padding-block: 0.6rem;
	font-family: var(--font-heading);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--slate);
	border-bottom: 2px solid var(--ink);
	white-space: nowrap;
}

.facts-table tbody th {
	font-weight: 600;
}

.facts-table tbody th a {
	font-family: var(--font-heading);
	font-size: 1.0625rem;
}

.facts-table .num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.facts-table th:last-child,
.facts-table td:last-child {
	padding-right: 0;
}

.facts-table__note {
	display: block;
	margin-top: 0.2rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 400;
	color: var(--slate);
}

.facts-table--programs {
	min-width: 34rem;
}

.facts-table--tuition {
	min-width: 30rem;
}

/* On phones the programs table becomes a list: one program per block, each fact labelled. */
@media (max-width: 40rem) {
	.facts-table--programs {
		min-width: 0;
	}

	.facts-table--programs thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.facts-table--programs,
	.facts-table--programs tbody,
	.facts-table--programs tr,
	.facts-table--programs th,
	.facts-table--programs td {
		display: block;
	}

	.facts-table--programs tr {
		padding-block: 1rem;
		border-bottom: 1px solid var(--line);
	}

	.facts-table--programs tbody tr:first-child {
		border-top: 2px solid var(--ink);
	}

	.facts-table--programs th,
	.facts-table--programs td {
		padding: 0;
		border: 0;
	}

	.facts-table--programs tbody th {
		margin-bottom: 0.4rem;
	}

	.facts-table--programs td,
	.facts-table--programs td.num {
		display: inline-block;
		padding: 0 0.7rem;
		text-align: left;
		line-height: 1.3;
		color: var(--slate);
		border-left: 1px solid var(--line);
	}

	.facts-table--programs td:first-of-type {
		padding-left: 0;
		border-left: 0;
	}

	.facts-table--programs td:last-child {
		display: block;
		margin-top: 0.2rem;
		padding-left: 0;
		border-left: 0;
	}

	.facts-table--programs td[data-label]::after {
		content: " " attr(data-label);
	}

	.facts-table--tuition {
		min-width: 0;
		font-size: 0.9375rem;
	}

	.facts-table--tuition th,
	.facts-table--tuition td {
		padding-right: 0.5rem;
	}

	.facts-table--tuition thead th {
		font-size: 0.8125rem;
	}
}

/* ---------- Program levels ---------- */

.tiers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	align-items: stretch;
}

.tier {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

.tier__head {
	padding: 1.6rem 1.6rem 1.35rem;
	background: var(--tint);
	border-bottom: 1px solid var(--line);
}

.tier__head .icon {
	width: 2rem;
	height: 2rem;
	margin-bottom: 0.9rem;
	color: var(--teal);
}

.tier__head h3 {
	margin: 0 0 0.3rem;
	font-size: 1.375rem;
}

.tier__head p {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--slate);
}

.tier--bach {
	border-color: var(--teal-deep);
}

.tier--bach .tier__head {
	background: var(--teal-deep);
	border-bottom-color: var(--teal-deep);
}

.tier--bach .tier__head .icon {
	color: var(--amber-light);
}

.tier--bach .tier__head h3 {
	color: var(--white);
}

.tier--bach .tier__head p {
	color: rgba(255, 255, 255, 0.88);
}

.tier__programs {
	flex: 1 1 auto;
	margin: 0;
	padding: 0.4rem 1.6rem 0;
	list-style: none;
}

.tier__programs li {
	padding: 1rem 0;
	border-bottom: 1px solid var(--line);
}

.tier__programs a {
	font-family: var(--font-heading);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
}

.tier__programs span {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.9375rem;
	color: var(--slate);
}

.tier__more {
	margin: 0;
	padding: 1.1rem 1.6rem 1.5rem;
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
}

/* Fields of study: two cards today, a third fits without a style change. */
.tiers--fields {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.tiers--fields .tier__head p {
	margin-top: 0.6rem;
	font-size: 1rem;
	line-height: 1.5;
}

.tier__programs .tag {
	display: inline-block;
	margin: 0 0 0.4rem;
	padding: 0.1rem 0.55rem;
	font-family: var(--font-heading);
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--teal-dark);
	background: var(--tint);
	border-radius: 999px;
}

.tier__programs a {
	display: block;
}

.tier__programs .tier__length {
	color: var(--ink);
}

.tier__foot {
	padding: 1.1rem 1.6rem 1.5rem;
	font-size: 0.9375rem;
}

.tier__foot p {
	margin: 0 0 0.4rem;
}

.tier__foot .tier__fine {
	margin: 0;
	color: var(--slate);
}

@media (max-width: 60rem) {
	.tiers {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Finish sooner ---------- */

.sooner {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 1.5rem 2.5rem;
	align-items: center;
	margin-top: 2.5rem;
	padding: 2.25rem 2.5rem;
	background: var(--tint);
	border-left: 6px solid var(--amber);
	border-radius: var(--radius-lg);
}

.sooner__lead {
	grid-column: span 6;
}

.sooner__flame {
	display: block;
	margin-bottom: 0.9rem;
}

.sooner__lead h3 {
	font-size: 1.5rem;
}

.sooner__lead p {
	margin: 0;
	font-size: 1.125rem;
}

.sooner__how {
	grid-column: 7 / -1;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sooner__how li {
	display: flex;
	gap: 0.75rem;
	padding-block: 0.75rem;
	border-top: 1px solid rgba(15, 118, 110, 0.22);
}

.sooner__how li:first-child {
	padding-top: 0;
	border-top: 0;
}

.sooner__how .icon {
	margin-top: 0.1rem;
	color: var(--teal);
}

@media (max-width: 52rem) {
	.sooner {
		grid-template-columns: minmax(0, 1fr);
		padding: 1.75rem 1.4rem;
	}

	.sooner__lead,
	.sooner__how {
		grid-column: auto;
	}
}

/* ---------- Ways to study ---------- */

.formats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.format {
	padding: 1.75rem 1.6rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

.format__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 1.1rem;
	color: var(--white);
	background: var(--teal);
	border-radius: 50%;
}

.format p {
	margin: 0;
	color: var(--slate);
}

@media (max-width: 52rem) {
	.formats {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}
}

/* ---------- Cost ---------- */

.cost {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 2.5rem 3rem;
}

.cost__tuition {
	grid-column: span 7;
}

.cost__tuition h2 {
	margin-bottom: 1.5rem;
}

.cost__fees {
	margin: 1.25rem 0 0;
	font-size: 0.9375rem;
	color: var(--slate);
}

.cost__aid {
	grid-column: 8 / -1;
	align-self: start;
	padding: 2rem 2rem 2.25rem;
	color: var(--white);
	background: var(--teal-deep);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

.cost__aid h3 {
	color: var(--white);
}

.cost__aid p {
	color: rgba(255, 255, 255, 0.9);
}

.cost__aid a:not(.btn) {
	color: var(--white);
}

.cost__aid :focus-visible {
	outline-color: var(--white);
}

.plain-list {
	margin: 0 0 1.1rem;
	padding: 0;
	list-style: none;
}

.plain-list li {
	display: flex;
	gap: 0.7rem;
	padding: 0.7rem 0;
	font-weight: 600;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.plain-list li:first-child {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.plain-list .icon {
	color: var(--amber-light);
}

@media (max-width: 60rem) {
	.cost {
		grid-template-columns: minmax(0, 1fr);
	}

	.cost__tuition,
	.cost__aid {
		grid-column: auto;
	}

}

/* ---------- About ---------- */

.about {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 2.5rem 3rem;
	align-items: center;
}

.about__copy {
	grid-column: span 6;
}

.about__copy p {
	max-width: 36rem;
}

.about__media {
	grid-column: 7 / -1;
	position: relative;
	margin: 0;
}

.about__photo {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

figure.about__media::before {
	content: "";
	position: absolute;
	top: 1.25rem;
	right: -1.25rem;
	bottom: -1.25rem;
	left: 1.25rem;
	background: var(--teal);
	border-radius: var(--radius-lg);
}

/* Shown until a real building photo is added as assets/img/building.jpg. */
.about__media--card {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 21rem;
	overflow: hidden;
	padding: 2.25rem;
	color: var(--white);
	background: linear-gradient(140deg, var(--teal-deep) 0%, #0C5650 100%);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

.about__media--card .motif {
	top: -3rem;
	right: -4rem;
	width: 24rem;
	color: var(--white);
	opacity: 0.1;
}

.about__media--card > :not(.motif) {
	position: relative;
}

.about__media--card p,
.about__media--card address {
	margin: 0 0 0.6rem;
	font-size: 1.125rem;
}

.about__media--card .about__place {
	margin-bottom: 0.9rem;
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.about__media--card a:not(.btn) {
	color: var(--white);
}

.about__media--card .btn {
	margin-top: 0.6rem;
}

.about__media--card :focus-visible {
	outline-color: var(--white);
}

@media (max-width: 52rem) {
	.about {
		grid-template-columns: minmax(0, 1fr);
	}

	.about__copy,
	.about__media {
		grid-column: auto;
	}
}

/* ---------- Questions ---------- */

.faq {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 2rem 3rem;
}

.faq__head {
	grid-column: span 4;
}

.faq__head p {
	color: var(--slate);
}

.faq__list {
	grid-column: 5 / -1;
	border-top: 2px solid var(--ink);
}

.faq__item {
	border-bottom: 1px solid var(--line);
}

.faq__item summary {
	position: relative;
	display: block;
	padding: 1.1rem 2.75rem 1.1rem 0;
	cursor: pointer;
	list-style: none;
}

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

.faq__item summary h3 {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.35;
}

.faq__item summary:hover h3 {
	color: var(--teal-dark);
}

.faq__item summary::after {
	content: "";
	position: absolute;
	top: 1.55rem;
	right: 0.4rem;
	width: 0.7rem;
	height: 0.7rem;
	border-right: 2px solid var(--teal);
	border-bottom: 2px solid var(--teal);
	transform: translateY(-50%) rotate(45deg);
	transition: transform 0.15s ease;
}

.faq__item[open] summary::after {
	transform: translateY(-10%) rotate(-135deg);
}

.faq__item p {
	max-width: 40rem;
	margin: 0;
	padding: 0 0 1.4rem;
	color: var(--slate);
}

@media (max-width: 52rem) {
	.faq {
		grid-template-columns: minmax(0, 1fr);
	}

	.faq__head,
	.faq__list {
		grid-column: auto;
	}
}

/* ---------- Apply band ---------- */

.cta {
	position: relative;
	overflow: hidden;
	padding-block: clamp(2.75rem, 5vw, 4rem);
	color: var(--white);
	background: var(--teal);
}

.cta .motif {
	top: -4rem;
	left: 38%;
	width: 26rem;
	color: var(--white);
	opacity: 0.1;
}

.cta__inner {
	position: relative;
}

.cta__inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.25rem 2rem;
	align-items: center;
}

.cta h2 {
	margin: 0;
	color: var(--white);
}

.cta p {
	grid-column: 1;
	margin: 0;
	font-size: 1.125rem;
}

.cta .actions {
	grid-column: 2;
	grid-row: 1 / span 2;
	margin-top: 0;
}

.cta :focus-visible,
.site-footer :focus-visible {
	outline-color: var(--white);
}

@media (max-width: 52rem) {
	.cta__inner {
		grid-template-columns: 1fr;
	}

	.cta .actions {
		grid-column: 1;
		grid-row: auto;
		margin-top: 1.25rem;
	}
}

/* ---------- Footer ---------- */

.site-footer {
	color: var(--white);
	background: var(--teal-deep);
}

.footer {
	padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer a {
	color: var(--white);
	text-decoration: none;
}

.footer a:hover {
	text-decoration: underline;
}

.footer__grid {
	display: grid;
	grid-template-columns: 1.25fr 1.45fr 1fr 1fr 1fr;
	gap: 2.5rem 2rem;
}

.footer__address {
	margin-top: 1.5rem;
	line-height: 1.7;
}

.footer__heading {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--white);
}

.footer__nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer__nav li {
	margin-bottom: 0.6rem;
	font-size: 0.9375rem;
	line-height: 1.4;
}

.footer__legal {
	margin-top: 3rem;
	padding-top: 1.5rem;
	font-size: 0.875rem;
	line-height: 1.55;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.footer__legal p {
	max-width: 60rem;
	margin: 0 0 0.6rem;
	color: rgba(255, 255, 255, 0.86);
}

.footer__legal a {
	text-decoration: underline;
}

@media (max-width: 76rem) {
	.footer__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 60rem) {
	.footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 34rem) {
	.footer__grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Inner pages ---------- */

/* Heading band: breadcrumb, title, one-sentence answer, key facts, actions. */
.page-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(2rem, 4.5vw, 3.25rem) clamp(2.25rem, 5vw, 3.75rem);
	color: var(--white);
	background: linear-gradient(115deg, var(--teal-deep) 0%, #0A4843 60%, #0C5650 100%);
}

.page-hero--slim {
	padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
}

.page-hero .motif {
	right: -3rem;
	bottom: -11rem;
	width: min(30rem, 60vw);
	color: var(--white);
	opacity: 0.06;
}

.page-hero__inner {
	position: relative;
}

.page-hero :focus-visible {
	outline-color: var(--white);
}

.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.5rem;
	margin: 0 0 1.1rem;
	padding: 0;
	font-size: 0.9375rem;
	list-style: none;
	color: rgba(255, 255, 255, 0.82);
}

.crumbs li + li::before {
	content: "/";
	margin-right: 0.5rem;
	opacity: 0.55;
}

.crumbs a {
	color: var(--white);
	text-decoration-color: rgba(255, 255, 255, 0.45);
}

.page-hero__title {
	max-width: 24ch;
	margin: 0;
	font-size: clamp(1.875rem, 4.2vw, 2.875rem);
	letter-spacing: -0.02em;
	line-height: 1.12;
	color: var(--white);
}

.page-hero--slim .page-hero__title {
	max-width: 32ch;
	font-size: clamp(1.75rem, 3.4vw, 2.375rem);
}

.page-hero__lead {
	max-width: 44rem;
	margin: 1rem 0 0;
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
}

.page-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0;
	margin: 1.4rem 0 0;
	padding: 0;
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	list-style: none;
}

.page-hero__facts li {
	padding-right: 1rem;
	margin-right: 1rem;
	border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.page-hero__facts li:last-child {
	padding-right: 0;
	margin-right: 0;
	border-right: 0;
}

.page-hero .actions {
	margin-top: 1.6rem;
}

/* Body: a reading column and, on most pages, a side card. */
.page-body {
	padding-block: clamp(2.5rem, 5vw, 4rem) var(--section);
}

.page-body--tight {
	padding-block: 0 var(--section);
}

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 20.5rem;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}

.layout__main {
	max-width: 46rem;
}

.layout__aside {
	position: sticky;
	top: 1.5rem;
	display: grid;
	gap: 1.25rem;
}

@media (max-width: 60rem) {
	.layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.layout__aside {
		position: static;
	}

	/* Program pages: the facts card comes before the long description. */
	.layout--aside-first .layout__aside {
		grid-row: 1;
	}
}

/* Landing page: a wider side column that holds the request form. */
.layout--form {
	grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
}

.request {
	padding: 1.25rem;
	background: var(--white);
	box-shadow: var(--shadow-sm);
	scroll-margin-top: 1rem;
}

.request p {
	font-size: 0.9375rem;
	color: var(--slate);
}

.request__frame {
	display: block;
	width: 100%;
	height: 56rem;
	border: 0;
}

@media (max-width: 60rem) {
	.layout--form {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Forms built into the theme (inc/forms.php). */
.form-page {
	max-width: 52rem;
	scroll-margin-top: 1rem;
}

.eform__note {
	margin: 0 0 1.5rem;
	font-size: 0.9375rem;
	color: var(--slate);
}

.eform__req {
	color: #B42318;
}

.eform__section {
	margin: 0 0 2rem;
	padding: 1.5rem clamp(1.1rem, 3vw, 1.75rem) 1.75rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}

.eform__section > legend {
	padding: 0 0.5rem;
	margin-left: -0.5rem;
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--ink);
}

.eform__intro {
	margin: 0.25rem 0 1rem;
	color: var(--slate);
}

.eform__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 1.1rem 1.25rem;
}

.eform__field {
	grid-column: span 12;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

.eform__field--half {
	grid-column: span 6;
}

.eform__field--third {
	grid-column: span 4;
}

.eform__field--quarter {
	grid-column: span 3;
}

.eform label,
.eform__choices > legend {
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ink);
}

.eform__help {
	font-size: 0.9375rem;
	color: var(--slate);
}

.eform input[type="text"],
.eform input[type="email"],
.eform input[type="tel"],
.eform input[type="date"],
.eform select,
.eform textarea {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.55rem 0.75rem;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: var(--white);
	border: 1px solid #A9B7B3;
	border-radius: var(--radius);
}

.eform textarea {
	min-height: 7.5rem;
	resize: vertical;
}

.eform input:focus-visible,
.eform select:focus-visible,
.eform textarea:focus-visible {
	outline: 3px solid var(--teal);
	outline-offset: 1px;
	border-color: var(--teal);
}

.eform__choices {
	margin: 0;
	padding: 0;
	border: 0;
}

.eform__choices > legend {
	margin-bottom: 0.5rem;
	padding: 0;
	line-height: 1.4;
}

.eform__choices > div {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
}

.eform .eform__choice {
	display: inline-flex;
	gap: 0.5rem;
	align-items: center;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 400;
	cursor: pointer;
}

.eform .eform__choice--box {
	align-items: flex-start;
}

.eform__choice input {
	width: 1.15rem;
	height: 1.15rem;
	margin: 0.2rem 0 0;
	flex: none;
	accent-color: var(--teal);
}

.has-error input,
.has-error select,
.has-error textarea {
	border-color: #B42318;
}

.eform__error {
	font-size: 0.9375rem;
	font-weight: 600;
	color: #B42318;
}

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

.eform__actions {
	margin: 0 0 2rem;
}

.form-notice {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: var(--radius-lg);
}

.form-notice p,
.form-notice ul {
	margin: 0;
}

.form-notice ul {
	margin-top: 0.5rem;
	padding-left: 1.25rem;
}

.form-notice--ok {
	background: var(--tint);
	border: 1px solid var(--teal);
}

.form-notice--error {
	background: #FEF3F2;
	border: 1px solid #B42318;
}

@media (max-width: 40rem) {
	.eform__field--half,
	.eform__field--third,
	.eform__field--quarter {
		grid-column: span 12;
	}
}

/* Contact Form 7 on the Contact page. */
.contact-form {
	max-width: 36rem;
	margin-bottom: 2rem;
	padding: 1.5rem clamp(1.1rem, 3vw, 1.75rem);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}

.contact-form .wpcf7-form p {
	margin: 0 0 1.1rem;
}

.contact-form label {
	display: block;
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ink);
}

.contact-form .wpcf7-form-control-wrap {
	display: block;
	margin-top: 0.35rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.55rem 0.75rem;
	font: inherit;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 400;
	color: var(--ink);
	background: var(--white);
	border: 1px solid #A9B7B3;
	border-radius: var(--radius);
}

.contact-form textarea {
	min-height: 8rem;
	resize: vertical;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
	outline: 3px solid var(--teal);
	outline-offset: 1px;
	border-color: var(--teal);
}

.contact-form .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.7rem 1.5rem;
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 600;
	color: var(--white);
	background: var(--teal);
	border: 0;
	border-radius: var(--radius);
	cursor: pointer;
}

.contact-form .wpcf7-submit:hover {
	background: var(--teal-dark);
}

.contact-form .wpcf7-not-valid-tip {
	margin-top: 0.3rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #B42318;
}

.contact-form .wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
	border-radius: var(--radius);
}

/* Reading text, for built pages and for pages written in the WordPress editor. */
.prose > :first-child {
	margin-top: 0;
}

.prose h2 {
	margin-top: 2.75rem;
	scroll-margin-top: 1.5rem;
}

.prose h3 {
	margin-top: 1.9rem;
	font-size: 1.1875rem;
}

.prose h4,
.prose h5,
.prose h6 {
	margin: 1.6rem 0 0.5rem;
	font-family: var(--font-heading);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink);
}

.prose ul,
.prose ol {
	margin: 0 0 1.1rem;
	padding-left: 1.35rem;
}

.prose li {
	margin-bottom: 0.45rem;
}

.prose li > ul,
.prose li > ol {
	margin-top: 0.45rem;
}

.prose a {
	overflow-wrap: anywhere;
}

.prose hr {
	margin-block: 2rem;
	border: 0;
	border-top: 1px solid var(--line);
}

.prose--wide {
	max-width: 46rem;
	margin-top: 2.5rem;
}

.fine {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--slate);
}

/* Pages written in the WordPress editor. */
.site-main--page .prose {
	max-width: calc(46rem + 2 * var(--gutter));
	margin-inline: auto;
	padding: clamp(2.5rem, 5vw, 3.75rem) var(--gutter) var(--section);
}

.site-main--page .prose > * {
	max-width: none;
}

/* WordPress clears block margins inside a layout container; set the rhythm here. */
.site-main--page .prose > * + * {
	margin-block-start: 1rem;
}

.site-main--page .prose > h1,
.site-main--page .prose > h2 {
	margin-block-start: 2.75rem;
}

.site-main--page .prose > h3,
.site-main--page .prose > h4,
.site-main--page .prose > h5,
.site-main--page .prose > h6 {
	margin-block-start: 1.9rem;
}

.site-main--page .prose > :first-child {
	margin-block-start: 0;
}

.site-main--page .prose > h1 + *,
.site-main--page .prose > h2 + *,
.site-main--page .prose > h3 + *,
.site-main--page .prose > h4 + *,
.site-main--page .prose > h5 + *,
.site-main--page .prose > h6 + * {
	margin-block-start: 0.6rem;
}

.site-main--page .prose h1 {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.prose table,
.site-main--plain .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}

.prose .wp-block-table {
	margin: 0 0 1.25rem;
	overflow-x: auto;
}

.prose .wp-block-table th,
.prose .wp-block-table td,
.site-main--plain .wp-block-table th,
.site-main--plain .wp-block-table td {
	padding: 0.85rem 1rem 0.85rem 0;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid var(--line);
}

.prose .wp-block-table thead th,
.site-main--plain .wp-block-table thead th {
	font-family: var(--font-heading);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--slate);
	border-bottom: 2px solid var(--ink);
}

.prose .wp-block-details {
	padding-block: 1rem;
	border-bottom: 1px solid var(--line);
}

.prose .wp-block-details summary {
	font-family: var(--font-heading);
	font-weight: 600;
	cursor: pointer;
}

.prose .wp-block-image img {
	border-radius: var(--radius);
}

/* Blog posts and post lists (templates/single.html, templates/archive.html, the Blog page). */
.site-main--post .post-head {
	max-width: calc(46rem + 2 * var(--gutter));
	margin-inline: auto;
	padding: clamp(2rem, 4vw, 3rem) var(--gutter) 0;
}

.site-main--post .post-head .wp-block-post-date {
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
	color: var(--slate);
}

.site-main--post .post-head .wp-block-post-featured-image {
	margin: 0;
}

.site-main--post .post-head img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
}

.site-main--post .post-head + .prose {
	padding-top: 2rem;
}

.site-main--page .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-main--page .wp-block-post-template > li {
	margin: 0;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--line);
}

.site-main--page .wp-block-post-template .wp-block-post-title {
	margin: 0 0 0.35rem;
	font-size: 1.375rem;
}

.site-main--page .wp-block-post-template .wp-block-post-date {
	font-size: 0.9375rem;
	color: var(--slate);
}

.site-main--page .wp-block-post-template .wp-block-post-excerpt {
	margin-top: 0.6rem;
}

.site-main--page .wp-block-post-excerpt__more-link {
	font-family: var(--font-heading);
	font-weight: 600;
}

.site-main--page .wp-block-query-pagination {
	margin-top: 1.5rem;
	gap: 1rem;
}

/* Blog-style templates and the 404 page keep the plain layout. */
.site-main--plain {
	padding-block: clamp(2.5rem, 5vw, 4rem) var(--section);
}

.site-main--plain .page-title {
	margin-bottom: 1.5rem;
	font-size: clamp(1.875rem, 3.5vw, 2.75rem);
	letter-spacing: -0.015em;
}

.site-main--plain h2 {
	margin-top: 2.5rem;
}

.site-main--plain h3 {
	margin-top: 1.75rem;
}

.not-found {
	padding-block: 2rem;
}

/* Side card. */
.card {
	padding: 1.5rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}

.card > :last-child {
	margin-bottom: 0;
}

.card__title {
	margin: 0 0 1rem;
	font-size: 1.125rem;
	letter-spacing: 0;
}

.card--dark {
	color: var(--white);
	background: var(--teal-deep);
	border-color: var(--teal-deep);
}

.card--dark .card__title {
	color: var(--white);
}

.card--dark :focus-visible {
	outline-color: var(--white);
}

.card__links {
	display: grid;
	gap: 0.55rem;
	margin: 1.1rem 0 0;
	padding-top: 1.1rem;
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	border-top: 1px solid var(--line);
}

.card .todo {
	margin-top: 1rem;
}

.aside-note {
	margin: 0;
	padding-inline: 0.25rem;
	font-size: 0.9375rem;
	color: var(--slate);
}

.glance {
	margin: 0;
}

.glance dt {
	margin-top: 0.9rem;
	font-size: 0.875rem;
	color: var(--slate);
}

.glance dt:first-child {
	margin-top: 0;
}

.glance dd {
	margin: 0.1rem 0 0;
	font-weight: 600;
	line-height: 1.4;
}

.glance dd p {
	margin: 0 0 0.35rem;
	font-weight: 400;
}

.glance--contact dd {
	font-size: 1.0625rem;
}

.glance--contact address {
	margin-bottom: 0.25rem;
}

/* Fact tables on inner pages. */
.facts-table--pairs tbody th {
	width: 38%;
	padding-right: 1.5rem;
}

.facts-table--pairs td {
	font-weight: 400;
}

.facts-table--areas,
.facts-table--refund {
	max-width: 28rem;
}

.facts-table__total th,
.facts-table__total td {
	font-weight: 700;
	border-bottom: 2px solid var(--ink);
}

.facts-table--fees td:last-child {
	color: var(--slate);
}

.course-table {
	min-width: 30rem;
	font-size: 1rem;
}

.course-table th,
.course-table td {
	padding-block: 0.6rem;
}

.course-table__group th,
.course-table__group td {
	padding-top: 1.5rem;
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 700;
	color: var(--teal-dark);
	border-bottom: 2px solid var(--teal);
}

.course-table tbody:first-of-type .course-table__group th,
.course-table tbody:first-of-type .course-table__group td {
	padding-top: 0.9rem;
}

.course-table__area td {
	padding-top: 0.9rem;
	padding-bottom: 0.3rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--slate);
	border-bottom: 0;
}

.course-table__code {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	color: var(--slate);
}

.course-table__choice td:first-child {
	font-style: italic;
	color: var(--slate);
	white-space: nowrap;
}

.prose .table-scroll {
	margin-bottom: 1.25rem;
}

.concentration {
	margin-top: 2rem;
	padding: 1.5rem clamp(1.1rem, 3vw, 1.75rem);
	border: 1px solid var(--line);
	border-top: 4px solid var(--teal);
	border-radius: var(--radius-lg);
}

.concentration h3 {
	margin-top: 0;
	font-size: 1.3125rem;
}

.concentration__sub {
	display: block;
	margin-top: 0.2rem;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 400;
	color: var(--slate);
}

.concentration .fine {
	margin-bottom: 0;
}

@media (max-width: 40rem) {
	.course-table {
		min-width: 0;
		font-size: 0.9375rem;
	}

	.course-table th,
	.course-table td {
		padding-right: 0.6rem;
	}

	.course-table__choice td:first-child {
		white-space: normal;
	}

	.facts-table--pairs tbody th {
		width: 42%;
		padding-right: 0.75rem;
	}
}

/* Steps in a process: a real sequence, so they are numbered. */
.steps {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.prose .steps {
	padding-left: 0;
}

.steps > li {
	position: relative;
	margin: 0;
	padding: 0 0 1.5rem 3.25rem;
	counter-increment: step;
}

.steps > li::before {
	content: counter(step);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 2.125rem;
	height: 2.125rem;
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 700;
	color: var(--white);
	background: var(--teal);
	border-radius: 50%;
}

.steps > li::after {
	content: "";
	position: absolute;
	top: 2.4rem;
	bottom: 0.3rem;
	left: 1.03rem;
	width: 2px;
	background: var(--line);
}

.steps > li:last-child {
	padding-bottom: 0;
}

.steps > li:last-child::after {
	display: none;
}

.steps h3 {
	margin: 0 0 0.35rem;
	padding-top: 0.25rem;
	font-size: 1.125rem;
}

.steps p:last-child {
	margin-bottom: 0;
}

.two-lists {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 2.5rem;
	margin-bottom: 1.25rem;
}

.two-lists h4 {
	margin-top: 0.5rem;
}

@media (max-width: 40rem) {
	.two-lists {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* A fact the college still has to confirm. Staging only; see 'show_todos' in the facts file. */
.todo {
	margin: 0 0 1.25rem;
	padding: 0.7rem 0.9rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #5B3A00;
	background: #FFF6E5;
	border: 1px dashed var(--amber);
	border-radius: var(--radius);
}

/* Related pages. */
.related {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}

.related h2 {
	margin: 0 0 1.25rem;
	font-size: 1.25rem;
}

.related ul,
.prose .related ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: 1.1rem 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.related li {
	margin: 0;
}

.related a {
	font-family: var(--font-heading);
	font-weight: 600;
}

.related span {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.9375rem;
	color: var(--slate);
}

.sooner--flat {
	margin-top: 0;
}

.sooner__lead h2 {
	margin-bottom: 0.6rem;
	font-size: 1.5rem;
	color: inherit;
}

.faq__list--page {
	margin-top: 0.5rem;
}

/* Apply page. */
.apply-intro {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: start;
}

.plain-list--dark li,
.plain-list--dark li:first-child {
	font-weight: 400;
	border-color: var(--line);
}

.plain-list--dark .icon {
	color: var(--teal);
}

.apply-form {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	overflow: hidden;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	scroll-margin-top: 1rem;
}

.apply-form__head {
	padding: 1.25rem clamp(1.1rem, 3vw, 1.75rem);
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.apply-form__head h2 {
	margin: 0 0 0.25rem;
	font-size: 1.25rem;
}

.apply-form__head p {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--slate);
}

.apply-form__frame {
	display: block;
	width: 100%;
	min-height: 72rem;
	border: 0;
}

.apply-help {
	margin: 1.5rem 0 0;
}

@media (max-width: 52rem) {
	.apply-intro {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Contact page. */
.contact {
	display: grid;
	grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.who {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem 2.5rem;
}

.who h3 {
	margin-top: 0;
}

.who p {
	margin-bottom: 0.5rem;
}

@media (max-width: 52rem) {
	.contact,
	.who {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Calendar page. */
.terms {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem clamp(1.5rem, 3vw, 2.5rem);
	align-items: start;
}

.term h2 {
	margin: 0 0 0.5rem;
	padding-bottom: 0.6rem;
	font-size: 1.3125rem;
	border-bottom: 2px solid var(--ink);
}

.facts-table--dates {
	font-size: 1rem;
}

.facts-table--dates th,
.facts-table--dates td {
	padding-block: 0.7rem;
}

.facts-table--dates tbody th {
	width: 42%;
	font-weight: 400;
	color: var(--slate);
	white-space: nowrap;
}

.facts-table--dates .is-key th,
.facts-table--dates .is-key td {
	font-weight: 700;
	color: var(--ink);
}

@media (max-width: 60rem) {
	.terms {
		grid-template-columns: minmax(0, 1fr);
		max-width: 34rem;
	}
}

/* ---------- Ask Elyon (built-in answers box) ---------- */

.ask {
	position: fixed;
	right: clamp(0.75rem, 2vw, 1.5rem);
	bottom: clamp(0.75rem, 2vw, 1.5rem);
	z-index: 50;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.75rem;
	font-size: 1rem;
}

.ask[hidden],
.ask__panel[hidden] {
	display: none;
}

.ask__open {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 3.25rem;
	padding: 0.7rem 1.25rem;
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 600;
	color: var(--white);
	background: var(--teal-deep);
	border: 2px solid var(--white);
	border-radius: 999px;
	box-shadow: var(--shadow-lg);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ask__open:hover {
	background: var(--teal);
}

.ask.is-open .ask__open {
	display: none;
}

.ask__panel {
	display: flex;
	flex-direction: column;
	width: min(24rem, calc(100vw - 1.5rem));
	height: min(34rem, calc(100vh - 6rem));
	height: min(34rem, calc(100dvh - 6rem));
	overflow: hidden;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: 0 4px 8px rgba(8, 59, 55, 0.08), 0 28px 60px -18px rgba(8, 59, 55, 0.5);
}

.ask__head {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.8rem 0.8rem 0.8rem 1.1rem;
	color: var(--white);
	background: var(--teal-deep);
}

.ask__head .logo__mark {
	width: 2rem;
	height: 2rem;
}

.ask__head h2 {
	flex: 1 1 auto;
	margin: 0;
	font-size: 1.125rem;
	letter-spacing: 0;
	color: var(--white);
}

.ask__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	color: var(--white);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.ask__close:hover {
	background: rgba(255, 255, 255, 0.14);
}

.ask__head :focus-visible {
	outline-color: var(--white);
}

.ask__log {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.1rem;
	overflow-y: auto;
	background: var(--paper);
}

.ask__msg {
	max-width: 88%;
	padding: 0.7rem 0.9rem;
	line-height: 1.5;
	border-radius: 12px;
}

.ask__msg p {
	margin: 0;
}

.ask__msg--bot {
	align-self: flex-start;
	color: var(--ink);
	background: var(--white);
	border: 1px solid var(--line);
	border-bottom-left-radius: 3px;
}

.ask__msg--user {
	align-self: flex-end;
	color: var(--white);
	background: var(--teal);
	border-bottom-right-radius: 3px;
}

.ask__link {
	display: inline-block;
	margin-top: 0.6rem;
	font-family: var(--font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
}

.ask__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.ask__caption {
	flex: 1 0 100%;
	margin: 0;
	font-size: 0.875rem;
	color: var(--slate);
}

.ask__choice {
	padding: 0.5rem 0.85rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	color: var(--teal-dark);
	background: var(--white);
	border: 1.5px solid var(--teal);
	border-radius: 999px;
	cursor: pointer;
}

.ask__choice:hover {
	color: var(--white);
	background: var(--teal);
}

.ask__form {
	display: flex;
	gap: 0.5rem;
	padding: 0.75rem;
	background: var(--white);
	border-top: 1px solid var(--line);
}

.ask__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 2.75rem;
	padding: 0.5rem 0.85rem;
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--ink);
	background: var(--white);
	border: 1.5px solid #8A9794;
	border-radius: var(--radius);
}

.ask__input::placeholder {
	color: var(--slate);
}

.ask__send {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 2.75rem;
	height: 2.75rem;
	color: var(--white);
	background: var(--teal);
	border: 0;
	border-radius: var(--radius);
	cursor: pointer;
}

.ask__send:hover {
	background: var(--teal-dark);
}

.ask__note {
	margin: 0;
	padding: 0 0.9rem 0.75rem;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--slate);
	background: var(--white);
}

@media (max-width: 30rem) {
	.ask__open span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.ask__open {
		width: 3.5rem;
		height: 3.5rem;
		padding: 0;
		justify-content: center;
	}
}

/* ---------- Print and motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
	}
}

@media print {
	.nav,
	.nav-toggle,
	.cta,
	.actions,
	.ask {
		display: none !important;
	}

	.site-footer {
		color: #000;
		background: none;
	}
}

/* Blog post byline (v0.7.0). */
.post-head .post-byline {
	margin: 0.25rem 0 1rem;
	color: inherit;
	opacity: 0.85;
}
.post-head .post-byline::before {
	content: "By ";
}
