/* DCS 2026 ------------------------------------------------------------------
   Brand blue from the logo, a deep navy for structure, gold from the cross for
   calls to action. Literata for headings, Public Sans for everything else.
---------------------------------------------------------------------------- */

/* Fonts, served from the theme (assets/fonts, SIL Open Font License). latin-ext only
   downloads when a page uses those characters. */
@font-face { font-family: "Literata"; font-style: normal; font-weight: 500 650; font-display: swap; src: url("../fonts/literata-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 500 650; font-display: swap; src: url("../fonts/literata-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/public-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/public-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/public-sans-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/public-sans-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* AVIF photos (DCS Core) come wrapped in <picture>; let the <img> lay out as before. */
picture { display: contents; }

:root {
	--blue: #0068b4;
	--blue-ink: #0a4f86;
	--navy: #0a3d66;
	--navy-deep: #0f2338;
	--gold: #e3a72f;
	--gold-soft: #f6e3b8;
	--green: #3f8a4f;
	--red: #b3261e;
	--ink: #14233a;
	--muted: #566377;
	--line: #dfe6ee;
	--tint: #f2f6fa;
	--paper: #ffffff;

	--font-display: "Literata", Georgia, "Times New Roman", serif;
	--font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 8px;
	--section: clamp(48px, 7vw, 88px);
	--shadow: 0 1px 2px rgba(10, 40, 80, .06), 0 6px 20px -8px rgba(10, 40, 80, .18);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }

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

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

a { color: var(--blue-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue); text-decoration-thickness: 2px; }

/* Dark blue on light backgrounds, gold on dark ones: at least 3:1 against both. */
:focus-visible { outline: 3px solid var(--focus, var(--blue-ink)); outline-offset: 2px; border-radius: 2px; }
.utility, .hero, .quote, .support, .site-footer, .page-hero.has-image { --focus: var(--gold); }
.alert { --focus: #fff; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 650;
	line-height: 1.2;
	color: var(--ink);
	text-wrap: balance;
	margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

.icon { flex: none; width: 1.1em; height: 1.1em; vertical-align: -.15em; }
.icon-ext { width: .8em; height: .8em; margin-left: .3em; opacity: .7; vertical-align: 0; }

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	z-index: 100; top: 8px; left: 8px;
	padding: 10px 16px;
	background: var(--paper); color: var(--ink);
	box-shadow: var(--shadow);
}

.muted { color: var(--muted); }

.eyebrow {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--blue);
	margin-bottom: .6rem;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

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

.btn, .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .7em 1.2em;
	border: 0;
	border-radius: 6px;
	font: 700 .95rem/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, box-shadow .15s;
}
.btn--primary, .wp-block-button__link { background: var(--blue); color: #fff; }
.btn--primary:hover, .wp-block-button__link:hover { background: var(--blue-ink); color: #fff; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #f0bb4f; color: var(--ink); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--quiet { background: var(--paper); color: var(--blue-ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--quiet:hover { box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); }

/* Alert -------------------------------------------------------------------- */

.alert { background: var(--red); color: #fff; }
.alert__inner { display: flex; gap: 14px; align-items: flex-start; padding-block: 14px; }
.alert__icon { width: 26px; height: 26px; margin-top: 2px; }
.alert__heading { margin: 0; font-weight: 700; font-size: 1.05rem; }
.alert__text { margin: .2em 0 0; font-size: .95rem; }

/* Utility bar -------------------------------------------------------------- */

.utility { background: var(--navy); color: #d6e6f4; font-size: .84rem; }
.utility__list {
	list-style: none;
	margin: 0; padding: 7px 0;
	display: flex; flex-wrap: wrap; justify-content: flex-end;
	gap: 4px 22px;
}
.utility a { color: inherit; text-decoration: none; white-space: nowrap; }
.utility a:hover { color: #fff; text-decoration: underline; }

/* Header and navigation ------------------------------------------------------- */

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }

.brand { flex: none; display: block; }
.brand img { width: clamp(210px, 22vw, 260px); height: auto; }

.primary-nav { margin-left: auto; }
.primary-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav__item { position: relative; display: flex; align-items: center; }
.primary-nav__link {
	display: block;
	padding: 10px 6px 10px 12px;
	font-weight: 600;
	font-size: .98rem;
	color: var(--ink);
	text-decoration: none;
	border-radius: 6px;
}
.primary-nav__item:not(.has-children) .primary-nav__link { padding-right: 12px; }
.primary-nav__link:hover { color: var(--blue); }
.primary-nav__item.is-current > .primary-nav__link { color: var(--blue); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.primary-nav__toggle {
	display: grid; place-items: center;
	width: 28px; height: 28px;
	padding: 0; border: 0; border-radius: 4px;
	background: transparent; color: var(--muted);
	cursor: pointer;
}
.primary-nav__toggle .icon { transition: transform .15s; }
.primary-nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.subnav {
	list-style: none;
	margin: 0; padding: 8px;
	position: absolute; top: 100%; left: 0;
	min-width: 250px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	display: none;
}
.subnav a { display: block; padding: 8px 12px; border-radius: 5px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.subnav a:hover, .subnav a[aria-current="page"] { background: var(--tint); color: var(--blue-ink); }
.primary-nav__toggle[aria-expanded="true"] + .subnav { display: block; }
@media (hover: hover) and (min-width: 1081px) {
	.primary-nav__item.is-hover > .subnav { display: block; }
}

.primary-nav__utility { display: none; }

.site-header__cta { flex: none; }
.menu-toggle {
	display: none;
	align-items: center; gap: 6px;
	margin-left: auto;
	padding: 9px 12px;
	border: 1px solid var(--line); border-radius: 6px;
	background: var(--paper); color: var(--ink);
	font: 700 .9rem var(--font-body);
	cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }

/* The phone button's words are hidden visually, never removed, so it keeps its name. */
@media (max-width: 1240px) {
	.cta-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
}

@media (max-width: 1080px) {
	.utility { display: none; }
	.site-header__inner { min-height: 72px; gap: 12px; }
	.brand img { width: 210px; }
	.menu-toggle { display: inline-flex; }
	.site-header__cta { order: 2; padding: .6em .8em; }
	.site-header__cta .cta-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
	.site-header__cta .icon { width: 20px; height: 20px; }
	.menu-toggle { order: 3; margin-left: 0; }
	.primary-nav {
		order: 4;
		position: absolute; top: 100%; left: 0; right: 0;
		max-height: calc(100vh - 72px);
		overflow-y: auto;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
		padding: 8px max(var(--gutter), env(safe-area-inset-left, 0px)) 20px;
		display: none;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav__list { flex-direction: column; gap: 0; }
	.primary-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.primary-nav__link { flex: 1; padding: 14px 0; font-size: 1.05rem; }
	.primary-nav__item.is-current > .primary-nav__link { box-shadow: none; }
	.primary-nav__toggle { width: 44px; height: 44px; }
	.subnav { position: static; flex-basis: 100%; min-width: 0; border: 0; box-shadow: none; padding: 0 0 10px 8px; }
	.primary-nav__utility {
		display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px;
		list-style: none; margin: 16px 0 0; padding: 0;
		font-size: .95rem;
	}
	.primary-nav__utility a { display: block; padding: 8px 0; color: var(--blue-ink); text-decoration: none; }
	.site-header .primary-nav { margin-left: 0; }
	/* The logo shrinks first, so the buttons stay on screen at 320px (400% zoom). */
	.brand { margin-right: auto; flex: 0 1 auto; min-width: 0; }
}

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

.section { padding-block: var(--section); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }
.section-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.section-intro { max-width: 62ch; color: var(--muted); font-size: 1.08rem; margin-bottom: 28px; }

.photo-placeholder {
	display: grid; place-items: center;
	width: 100%; height: 100%; min-height: 200px;
	background: repeating-linear-gradient(135deg, var(--tint) 0 12px, #e8eef5 12px 24px);
	color: var(--muted); font-size: .85rem; font-weight: 600; letter-spacing: .04em;
}

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

.hero {
	position: relative;
	display: grid; align-items: end;
	min-height: clamp(440px, 64vh, 660px);
	background: var(--navy);
	color: #fff;
	isolation: isolate;
	overflow: hidden;
}
.hero__image, .hero__image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__image { z-index: -2; }
.hero__image img { object-fit: cover; object-position: center 35%; }
.hero.has-image::after {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(6, 26, 46, 0) 30%, rgba(6, 26, 46, .85) 100%),
		linear-gradient(90deg, rgba(6, 26, 46, .6) 0%, rgba(6, 26, 46, 0) 70%);
}
.hero__inner { padding-block: 120px clamp(36px, 6vw, 64px); }
.hero__title {
	color: #fff;
	font-size: clamp(2.1rem, 5.4vw, 3.6rem);
	line-height: 1.08;
	max-width: 15ch;
	margin-bottom: .35em;
}
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40ch; color: #e6eef6; margin-bottom: 1.5em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* What's happening + Upcoming ------------------------------------------------- */

.happening { background: var(--tint); border-top: 1px solid var(--line); }
.happening__grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
.happening__grid.is-calendar-only { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tiles--archive { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tile { position: relative; }
.tile__link {
	display: flex; flex-direction: column; height: 100%;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	color: var(--ink);
	text-decoration: none;
	transition: box-shadow .15s, transform .15s, border-color .15s;
}
.tile__link:hover { color: var(--ink); border-color: #c9d6e3; box-shadow: var(--shadow); transform: translateY(-2px); }
.tile__poster { aspect-ratio: 1 / 1; background: var(--tint); max-width: 100%; }
.tile__poster img { width: 100%; height: 100%; object-fit: cover; }
.tile__placeholder { display: grid; place-items: center; height: 100%; padding: 16px; text-align: center; font-family: var(--font-display); font-size: 1.3rem; background: var(--navy); color: #fff; }
.tile__body { padding: 12px 14px 14px; }
.tile__meta { margin: 0 0 2px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tile__title { margin: 0; font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.35; }
.tile__link:hover .tile__title { color: var(--blue-ink); }
.tile__badge {
	position: absolute; top: 10px; left: 10px;
	padding: 3px 9px; border-radius: 4px;
	background: var(--gold); color: var(--ink);
	font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
	pointer-events: none;
}

.events { list-style: none; margin: 0; padding: 0; }
.event { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.event:first-child { border-top: 1px solid var(--line); }
.event__date { display: flex; flex-direction: column; align-items: center; line-height: 1; padding-top: 2px; }
.event__mon { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.event__day { font-family: var(--font-display); font-size: 1.55rem; font-weight: 650; color: var(--blue); margin-top: 3px; }
.event__body { display: flex; flex-direction: column; min-width: 0; }
.event__title { font-weight: 700; line-height: 1.35; }
.event__when { font-size: .88rem; color: var(--muted); }
.event__details { margin-top: 6px; font-size: .92rem; }
.event__details summary { cursor: pointer; color: var(--blue-ink); font-weight: 600; }
.event__details div { margin-top: 6px; overflow-wrap: anywhere; }

/* Numbers strip --------------------------------------------------------------- */

.stats { background: var(--tint); border-block: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(var(--count, 3), minmax(0, 1fr)); }
.stat { margin: 0; padding: 26px 12px; text-align: center; display: flex; flex-direction: column; justify-content: flex-end; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { font-family: var(--font-display); font-weight: 650; font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--navy); line-height: 1.1; }
/* Wordy values ("Preschool – Grade 12") a size down, so they stay on one line beside short ones. */
.stat__num--long { font-size: clamp(1.25rem, 2.3vw, 1.8rem); }
.stat__label { color: var(--muted); font-size: .95rem; }

/* Divisions ------------------------------------------------------------------- */

.divisions__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.divisions__more { margin: 22px 0 0; color: var(--muted); }
.divisions__more a { font-weight: 700; }
.division {
	--accent: var(--blue);
	display: flex; flex-direction: column;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--tint);
	color: var(--ink);
	text-decoration: none;
	transition: box-shadow .15s, transform .15s;
}
.division--2 { --accent: var(--green); }
.division--3 { --accent: var(--gold); }
.division:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.division__image { aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; }
.division__image img { width: 100%; height: 100%; object-fit: cover; }
.division__body { padding: 18px 20px 20px; border-top: 5px solid var(--accent); }
.division__title { font-size: 1.35rem; margin: 0; }
.division__grades { margin: 2px 0 10px; color: var(--muted); }
.division__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--blue-ink); }

/* Program cards: on Programs side by side; in page text ([dcs_programs]) as rows. */
.programs { padding-top: clamp(32px, 5vw, 56px); }
.programs__intro { max-width: 62ch; margin-bottom: 32px; font-size: 1.15rem; }
.programs__intro > :last-child { margin-bottom: 0; }
.program-cards .divisions__grid { gap: 26px; }
.program-cards .division__body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 24px; }
.program-cards .division__title { font-size: 1.55rem; margin: 0; }
.division__text { margin: 0 0 18px; font-size: .97rem; }
.program-cards .division__more { margin-top: auto; }
.program-cards img { border-radius: 0; }
.program-cards--rows .divisions__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.program-cards--rows .division { flex-direction: row; }
.program-cards--rows .division__image { flex: 0 0 36%; aspect-ratio: auto; min-height: 190px; }
.program-cards--rows .division__body { border-top: 0; border-left: 5px solid var(--accent); padding: 18px 22px 20px; }
.program-cards--rows .division__title { font-size: 1.35rem; }
.program-cards--rows .division__text { margin-bottom: 12px; }
.program-cards--rows .program-row { margin-top: 18px; }
.program-row {
	display: grid; grid-template-columns: minmax(0, 1fr);
	margin-top: 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--paper);
	color: var(--ink);
	text-decoration: none;
	transition: box-shadow .15s, transform .15s;
}
.program-row.has-image { grid-template-columns: 300px minmax(0, 1fr); }
.program-row:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.program-row__image img { width: 100%; height: 100%; object-fit: cover; }
.program-row__body { padding: 22px 24px 24px; border-left: 5px solid var(--navy); }
.program-row .eyebrow { margin-bottom: .3rem; }
.program-row__title { font-size: 1.45rem; margin: 0 0 .35em; }
.program-cards--rows .program-row__title { font-size: 1.35rem; margin-top: 0; }
.program-row__text { margin: 0 0 14px; max-width: 70ch; }

/* Testimonial ----------------------------------------------------------------- */

.quote { background: var(--navy); color: #fff; }
.quote__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: var(--section); }
.quote__inner.has-image { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; align-items: center; }
.quote__image img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.quote__figure { margin: 0; max-width: 46rem; }
.quote__text { margin: 0; font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.4; }
.quote__text p { margin: 0 0 .6em; }
.quote__text::before { content: "“"; display: block; font-size: 3.5rem; line-height: .6; color: var(--gold); margin-bottom: 8px; }
.quote__who { margin-top: 16px; display: flex; flex-direction: column; color: #cfe0f0; font-size: .95rem; }
.quote__who strong { color: #fff; }

/* Joining DCS ----------------------------------------------------------------- */

.joining__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.joining__image { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; }
.joining__image img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; counter-reset: step; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.step { counter-increment: step; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; color: var(--muted); }
.step::before {
	content: counter(step);
	display: grid; place-items: center;
	width: 36px; height: 36px; border-radius: 50%;
	background: var(--blue); color: #fff;
	font-weight: 800;
}
.step__title { display: block; color: var(--ink); font-size: 1.08rem; }

/* Support band ---------------------------------------------------------------- */

.support { position: relative; background: var(--navy-deep); color: #e2ecf6; isolation: isolate; overflow: hidden; }
.support__image, .support__image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.support__image { z-index: -2; }
.support__image img { object-fit: cover; object-position: center 40%; }
.support__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 35, 56, .94) 0%, rgba(15, 35, 56, .8) 55%, rgba(15, 35, 56, .45) 100%); }
.support__inner { padding-block: clamp(56px, 8vw, 96px); max-width: calc(var(--container) + var(--gutter) * 2); }
.support__inner > * { max-width: 34rem; }
.support__title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }

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

.site-footer { background: var(--navy-deep); color: #b9c8d8; font-size: .95rem; }
.site-footer a { color: #dce8f4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 40px; }
.site-footer__mark { width: 56px; height: 56px; margin-bottom: 12px; }
.site-footer__name { margin: 0; color: #fff; font-family: var(--font-display); font-weight: 650; font-size: 1.2rem; }
.site-footer__tagline { margin: 0 0 14px; font-style: italic; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer__heading { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8ea4bb; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer__social a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 18px; font-size: .85rem; }
.site-footer__legal p { margin: 0; }

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

.page-hero { position: relative; background: var(--tint); border-bottom: 1px solid var(--line); isolation: isolate; overflow: hidden; }
.page-hero__inner { padding-block: clamp(36px, 6vw, 64px) clamp(28px, 4vw, 44px); }
.page-hero__title { font-size: clamp(2rem, 4.6vw, 3rem); margin: 0; max-width: 22ch; }
.page-hero__lede { margin: .5em 0 0; font-size: 1.15rem; color: var(--muted); }
.page-hero.has-image { background: var(--navy); color: #fff; border: 0; min-height: clamp(280px, 38vh, 420px); display: grid; align-items: end; }
.page-hero.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 26, 46, .2) 0%, rgba(6, 26, 46, .6) 40%, rgba(6, 26, 46, .88) 100%); }
.page-hero__image, .page-hero__image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero__image { z-index: -2; }
.page-hero__image img { object-fit: cover; object-position: center 35%; }
.page-hero.has-image .page-hero__title { color: #fff; }
.page-hero.has-image .eyebrow, .page-hero.has-image .page-hero__lede { color: #dbe8f4; }

.page-layout { padding-block: clamp(32px, 5vw, 56px) var(--section); }
.page-layout > .entry { max-width: 760px; }
.page-layout.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.page-layout.has-side > .entry { max-width: none; }
/* Text keeps a readable line length; photos, posters, columns and tables use the whole column. */
.page-layout .entry-content > :is(p, ul, ol, dl, h2, h3, h4, h5, h6, blockquote, details) { max-width: 760px; }

/* The side column runs the full height so the visit card can stay in view while reading. */
.page-side { align-self: stretch; display: flex; flex-direction: column; gap: 32px; }
.visit-card { position: sticky; top: 24px; padding: 22px 22px 20px; border-radius: var(--radius); background: var(--tint); border-top: 4px solid var(--gold); }
.visit-card__title { font-size: 1.3rem; margin-bottom: .35em; }
.visit-card p { font-size: .95rem; }
.visit-card__phone { width: 100%; justify-content: center; margin-bottom: 14px; }
.visit-card__email { margin: 0 0 6px; font-size: .9rem; overflow-wrap: anywhere; }
.visit-card__address { font-style: normal; font-size: .9rem; line-height: 1.6; color: var(--muted); }
.visit-card__note { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
/* A page's own Side card group, shown in the visit card's place. */
.side-card > .is-style-side-card > :first-child { margin-top: 0; }
.side-card > .is-style-side-card > :last-child { margin-bottom: 0; }
.side-card h2 { font-size: 1.3rem; margin-bottom: .45em; }
.side-card p { overflow-wrap: anywhere; }

.child-pages ul { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--gold); }
.child-pages a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 4px; border-bottom: 1px solid var(--line); font-weight: 600; text-decoration: none; color: var(--ink); }
.child-pages a:hover { color: var(--blue); }

/* Content written in the editor ----------------------------------------------------- */

/* Long email addresses and URLs in old content wrap instead of widening the page. */
.entry-content { overflow-wrap: anywhere; }
.entry-content > * { margin-block: 0 1.1em; }
.entry-content h2 { font-size: clamp(1.5rem, 2.6vw, 1.85rem); margin-top: 1.6em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.4em; }
.entry-content h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; margin-top: 1.2em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content img { border-radius: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content blockquote { margin-inline: 0; padding-left: 18px; border-left: 4px solid var(--gold); font-family: var(--font-display); font-size: 1.15rem; }
.entry-content hr, .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.entry-content iframe { max-width: 100%; }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 28px; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 781px) { .wp-block-column { flex-basis: 100%; } }
.wp-block-image figcaption, .wp-element-caption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.wp-block-file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wp-block-file__button { background: var(--blue); color: #fff; padding: .4em .9em; border-radius: 5px; font-size: .9rem; text-decoration: none; }
/* Content sits left-aligned in the container, so wide blocks extend to the right. */
.alignwide { max-width: none; width: min(var(--container), calc(100vw - 2 * var(--gutter))); }
.aligncenter { margin-inline: auto; text-align: center; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
/* Older pages float images resized wider than the column; cap them so text beside them stays readable. */
.entry-content .wp-block-image.alignleft, .entry-content .wp-block-image.alignright { max-width: min(50%, 360px); }
.entry-content .wp-block-image.alignleft img, .entry-content .wp-block-image.alignright img { width: 100% !important; height: auto !important; }
@media (max-width: 640px) {
	.entry-content .wp-block-image.alignleft, .entry-content .wp-block-image.alignright { float: none; max-width: 100%; margin-inline: 0; }
}
/* A photo beside a short section stays in it: the next heading or row of photos starts below. */
.entry-content > :is(h2, .wp-block-gallery) { clear: both; }
.entry-content > .wp-block-gallery { margin-block: 1.6em; }
/* Phones show galleries two across; an odd last photo spans the row, kept landscape so a
   portrait photo doesn't fill the screen. */
/* List style "Steps": numbered circles, as in Joining DCS. A bold start is the step's title. */
.entry-content .is-style-steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 18px; margin-block: 1.4em; }
.entry-content .is-style-steps > li { counter-increment: step; position: relative; min-height: 36px; margin: 0; padding-left: 50px; color: var(--muted); }
.entry-content .is-style-steps > li::before {
	content: counter(step);
	position: absolute; left: 0; top: 0;
	display: grid; place-items: center;
	width: 36px; height: 36px; border-radius: 50%;
	background: var(--blue); color: #fff;
	font-weight: 800;
}
.entry-content .is-style-steps > li > strong:first-child { display: block; padding-top: 5px; color: var(--ink); font-size: 1.08rem; }
@media (max-width: 599px) {
	.wp-block-gallery.is-cropped > .wp-block-image:last-child:nth-child(odd) img { aspect-ratio: 3 / 2; }
}
/* Group block "Notice" style. */
.is-style-notice { padding: 18px 22px; border: 2px solid var(--blue-ink); border-radius: var(--radius); background: var(--tint); }
.is-style-notice > :first-child { margin-top: 0; }
.is-style-notice > :last-child { margin-bottom: 0; }
/* Group block "Card" style: the program cards' look, without the photo. The bar moves to the top on phones. */
.is-style-card { gap: 10px; margin-block: 18px; padding: 18px 22px 20px; border-left: 5px solid var(--blue); border-radius: var(--radius); background: var(--tint); }
.is-style-card > :first-child { margin-top: 0; }
.is-style-card > :last-child { margin-bottom: 0; }
.is-style-card .wp-block-file { font-size: inherit; }
.is-style-card .wp-block-file a { font-weight: 700; }
.has-text-align-center { text-align: center; }
.dcs-draft-note { padding: 14px 16px; border-radius: 6px; background: var(--gold-soft); color: var(--ink); font-size: .95rem; }

.search-form { display: flex; gap: 8px; margin-bottom: 24px; max-width: 520px; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: .65em .8em; border: 1px solid #c7d3df; border-radius: 6px; font: inherit; }
.search-submit { padding: .65em 1.1em; border: 0; border-radius: 6px; background: var(--blue); color: #fff; font: 700 .95rem var(--font-body); cursor: pointer; }

.result-list { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.result { padding: 14px 0; border-bottom: 1px solid var(--line); }
.result__title { font-weight: 700; font-size: 1.1rem; }
.result__excerpt { margin: 4px 0 0; color: var(--muted); }

.nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.page-numbers { padding: 6px 12px; border-radius: 5px; border: 1px solid var(--line); text-decoration: none; }
.page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Contact Us: the form beside the phone, address and family links */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "message details"; gap: 48px; align-items: start; padding-block: clamp(32px, 5vw, 56px) var(--section); }
.contact__message { grid-area: message; max-width: 680px; }
.contact__message .entry-content > :first-child { margin-top: 0; }
.contact__details { grid-area: details; display: flex; flex-direction: column; gap: 16px; }
.contact-card { padding: 20px 22px; border-radius: var(--radius); background: var(--tint); }
.contact-card--call { border-top: 4px solid var(--gold); }
.contact-card__title { font-size: 1.2rem; margin: 0 0 .6em; }
.contact-card p, .contact-card address { font-size: .95rem; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card__phone { width: 100%; justify-content: center; margin-bottom: 12px; font-size: 1.1rem; }
.contact-card__email { overflow-wrap: anywhere; }
.contact-card address { font-style: normal; line-height: 1.6; margin: 0 0 10px; }
.contact-card__directions { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.contact-card__note { margin-top: 12px; font-size: .88rem !important; color: var(--muted); }
.contact-card__links { list-style: none; margin: 0; padding: 0; }
.contact-card__links li + li { margin-top: 8px; }
.contact-card__links a { font-weight: 600; }

/* Contact Form 7. Turnstile comes first in the form's markup; show it just above Send. */
.wpcf7-form { display: flex; flex-direction: column; }
.wpcf7-form .wpcf7-turnstile { order: 1; }
.wpcf7-form p:has(.wpcf7-submit) { order: 2; }
.wpcf7-form .wpcf7-response-output { order: 3; }
.wpcf7-form p { margin: 0 0 18px; }
.wpcf7-form label { display: block; font-weight: 600; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea, .wpcf7 select {
	width: 100%; min-height: 46px; margin-top: 6px; padding: .6em .75em; border: 1px solid #9fb0c2; border-radius: 6px; font: inherit; font-weight: 400; background: #fff;
}
.wpcf7 textarea { height: 170px; resize: vertical; }
.wpcf7 input[type="submit"] { padding: .8em 1.8em; border: 0; border-radius: 6px; background: var(--blue); color: #fff; font: 700 1rem var(--font-body); cursor: pointer; }
.wpcf7 input[type="submit"]:hover { background: var(--blue-ink); }
.wpcf7-not-valid-tip { margin-top: 4px; color: var(--red); font-size: .9rem; font-weight: 400; }
.wpcf7 form .wpcf7-response-output { margin: 18px 0 0; padding: 12px 14px; border-radius: 6px; }
.wpcf7-turnstile { margin-bottom: 18px; }

/* Tile page, tile archive, filters ---------------------------------------------------- */

.tile-page { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); padding-block: clamp(32px, 5vw, 56px) var(--section); align-items: start; }
.tile-page__poster img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.tile-page__body { max-width: 680px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters a { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--ink); background: var(--paper); }
.filters a:hover { border-color: var(--blue); color: var(--blue); }
.filters a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Staff ----------------------------------------------------------------------------- */

.staff__group + .staff__group { margin-top: 56px; }
.staff__group .section-title { margin-bottom: 20px; padding-bottom: 10px; border-bottom: 3px solid var(--gold); display: inline-block; }
.staff__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 28px 20px; }
.person { margin: 0; }
.person__photo { aspect-ratio: 3 / 4; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--tint); margin-bottom: 10px; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__initials { display: grid; place-items: center; height: 100%; font-family: var(--font-display); font-size: 2.4rem; color: var(--blue); }
.person__name { margin: 0; font-weight: 700; line-height: 1.3; }
.person__role { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }

/* Calendar -------------------------------------------------------------------------- */

.calendar__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.calendar__month { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.calendar__nav { display: flex; gap: 8px; }
.calendar__nav .btn { padding: .5em .9em; }
.calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 40px; }
.calendar__dow { padding: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--tint); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar__day { min-height: 118px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.calendar__day.is-other-month { background: #fafbfd; }
.calendar__day.is-other-month .calendar__num { font-weight: 400; }
.calendar__num { font-size: .85rem; font-weight: 700; color: var(--muted); }
.calendar__day.is-today .calendar__num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; }
.calendar__event { font-size: .78rem; line-height: 1.3; padding: 3px 6px; border-radius: 4px; background: var(--tint); border-left: 3px solid var(--blue); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.calendar__event.is-all-day { background: #e3eef8; }
.calendar__time { font-weight: 700; margin-right: 3px; }
.calendar__list { max-width: 760px; }
.calendar__list-title { font-size: 1.3rem; }
.calendar__subscribe { margin-top: 48px; padding: 24px; border-radius: var(--radius); background: var(--tint); max-width: 760px; }
.calendar__subscribe h3 { font-size: 1.2rem; margin-bottom: .3em; }
.calendar__subscribe-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* Responsive -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
	.tiles--archive { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.happening__grid { grid-template-columns: minmax(0, 1fr); }
	.divisions__grid { grid-template-columns: minmax(0, 1fr); }
	.division { flex-direction: row; }
	.division__image { flex: 0 0 38%; aspect-ratio: auto; min-height: 150px; }
	.division__body { border-top: 0; border-left: 5px solid var(--accent); display: flex; flex-direction: column; justify-content: center; }
	.program-row.has-image { grid-template-columns: minmax(0, 1fr); }
	.program-row__image { aspect-ratio: 16 / 9; }
	.joining__grid, .quote__inner.has-image { grid-template-columns: minmax(0, 1fr); }
	.page-layout.has-side { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.visit-card { position: static; }
	/* Phone and address first, then the form, then the family links. */
	.contact { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 16px; }
	.contact__details { display: contents; }
	.contact__message { grid-area: auto; order: 1; margin-block: 24px 16px; }
	.contact__details > nav { order: 2; }
	.tile-page { grid-template-columns: minmax(0, 1fr); }
	.tile-page__poster { max-width: 420px; }
	.calendar__grid { display: none; }
}

@media (max-width: 640px) {
	body { font-size: 1rem; }
	.tiles, .tiles--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.tile__body { padding: 10px 11px 12px; }
	.tile__title { font-size: .92rem; }
	.stats__grid { grid-template-columns: minmax(0, 1fr); }
	.stat { padding: 16px 12px; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 10px; }
	.stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
	.division { flex-direction: column; }
	.division__image { flex-basis: auto; aspect-ratio: 16 / 9; min-height: 0; }
	.division__body { border-left: 0; border-top: 5px solid var(--accent); }
	.program-cards--rows .division { flex-direction: column; }
	.program-cards--rows .division__image { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
	.program-cards--rows .division__body { border-left: 0; border-top: 5px solid var(--accent); }
	.is-style-card { border-left: 0; border-top: 5px solid var(--blue); }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.hero__inner { padding-top: 160px; }
	.hero__actions .btn { flex: 1 1 auto; justify-content: center; }
	.brand img { width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.tile__link:hover, .division:hover, .program-row:hover { transform: none; }
}
