/*
Theme Name: Chisholm Trail Academy by Artis
Theme URI: https://cta.school
Description: Custom theme for Chisholm Trail Academy. The theme owns the design; school staff edit words and images on the page with Artis. Built by Gairy Consulting.
Version: 0.1.0
Author: Gairy Consulting
Author URI: https://www.gairy.co
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: cta
License: GPLv2 or later
*/

:root {
  color-scheme: light;
  --navy: #223970;
  --navy-deep: #111D38;
  --royal: #4372E0;
  --royal-ink: #3561C9; /* royal darkened for small text: 5.6:1 on white, 5.2:1 on paper */
  --gold: #FFD839;
  --paper: #F3F5FA;
  --mist: #E4EAF6;
  --ink: #17213A;
  --slate: #5A6479;
  --white: #FFFFFF;
  --rule: rgba(34, 57, 112, .16);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Catamaran", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; box-shadow: 0 0 0 2px var(--navy-deep); } /* gold ring with a navy inner ring: visible on white and on navy (WCAG 1.4.11) */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--navy-deep); color: var(--white); padding: 12px 16px; border-radius: 3px; font: 600 14px/1 var(--sans); text-decoration: none; }
.skip-link:focus { top: 16px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.pencil-richtext p + p { margin-top: 16px; }
.pencil-richtext a { color: inherit; text-underline-offset: 3px; }
.sr-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: split pill, text + arrow cell */
.btn {
  display: inline-flex; align-items: stretch; text-decoration: none;
  font: 600 14px/1 var(--sans); letter-spacing: .02em;
  border: 1px solid currentColor; border-radius: 3px; overflow: hidden;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .pencil-button__text { padding: 13px 18px 12px; }
.btn i { display: grid; place-items: center; width: 42px; border-left: 1px solid currentColor; font-style: normal; }
.btn i::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s ease; }
.btn:hover i::before { transform: translateX(3px); }
.btn--light { color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--gold { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn--gold i { border-color: rgba(17,29,56,.25); }
.btn--gold:hover { background: #ffe36b; }
.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy i { border-color: rgba(255,255,255,.3); }
.btn--navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn--ghost { color: var(--navy); border-color: var(--rule); }
.btn--ghost i { border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--navy); }

/* Logo: fixed frame so a replacement never changes the header */
.logo-frame { display: block; width: 178px; aspect-ratio: 264 / 52; }
.logo-frame img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }

/* Header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.admin-bar .top { top: 32px; }
.top.solid, .top--solid { background: var(--navy); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; transition: height .3s ease; }
.top.solid .wrap { height: 68px; }
.top-nav { display: flex; align-items: center; gap: 28px; color: var(--white); }
.quick-links { display: flex; align-items: center; gap: 28px; }
.quick-links a { font: 500 14px/1 var(--sans); text-decoration: none; opacity: .9; }
.quick-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle {
  display: inline-flex; align-items: stretch; background: var(--white); color: var(--navy);
  border: 0; border-radius: 3px; font: 600 14px/1 var(--sans); cursor: pointer; padding: 0; overflow: hidden;
}
.menu-toggle .menu-toggle__label { padding: 12px 16px 11px; }
.menu-toggle i { display: grid; place-items: center; width: 40px; border-left: 1px solid var(--rule); }
.menu-toggle i svg { width: 16px; height: 16px; }

/* Mega menu overlay */
.mega {
  position: fixed; inset: 0; z-index: 40; background: var(--navy-deep); color: var(--white);
  overflow-y: auto; padding-top: env(safe-area-inset-top, 0px);
}
.admin-bar .mega { top: 32px; }
.mega[hidden] { display: none; }
.mega-head { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.mega-close { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.5); border-radius: 3px; font: 600 14px/1 var(--sans); padding: 12px 16px 11px; cursor: pointer; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; padding-block: 48px 72px; }
.mega-grid h3 { font-size: 30px; margin-bottom: 18px; }
.mega-grid h3 a { text-decoration: none; }
.mega-grid h3 a:hover { color: var(--gold); }
.mega-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mega-grid li a { text-decoration: none; color: rgba(255,255,255,.78); font-size: 16px; }
.mega-grid li a:hover { color: var(--gold); }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy-deep); overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-slides img.on { opacity: 1; animation: drift 9s ease-out both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 52%, rgba(17,29,56,.5) 0%, rgba(17,29,56,0) 100%),
    linear-gradient(180deg, rgba(17,29,56,.6) 0%, rgba(17,29,56,.45) 28%, rgba(17,29,56,.55) 60%, rgba(17,29,56,.88) 100%);
}
.hero-body {
  position: relative; z-index: 2; text-align: center;
  padding-block: clamp(150px, 20vw, 210px) clamp(80px, 10vw, 120px);
  display: grid; justify-items: center; gap: 28px;
}
.hero h1 { font-size: clamp(38px, 5.6vw, 72px); font-weight: 300; max-width: 17ch; text-shadow: 0 2px 24px rgba(17,29,56,.45); }
.hero h1 em { font-style: italic; font-weight: 400; }
.hero-lede { max-width: 58ch; font-size: clamp(16px, 1.5vw, 19px); color: rgba(255,255,255,.94); text-shadow: 0 1px 12px rgba(17,29,56,.6); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.hero-progress { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 36px; }
.hero-progress button {
  background: none; border: 0; padding: 12px 0 0; cursor: pointer; text-align: left;
  color: rgba(255,255,255,.72); font: 500 13px/1.3 var(--sans); letter-spacing: .02em;
}
.hero-progress button::before { content: ""; display: block; height: 2px; background: rgba(255,255,255,.28); margin-bottom: 10px; }
.hero-progress button b { display: block; height: 2px; margin-top: -12px; margin-bottom: 10px; width: 0; background: var(--gold); }
.hero-progress button.on { color: var(--white); }
.hero-progress button.on b { animation: fill 7s linear forwards; }
.hero-progress:has(.hero-pause) { grid-template-columns: repeat(3, 1fr) auto; }
.hero-progress.paused button.on b { animation-play-state: paused; }
.hero-progress .hero-pause { align-self: end; font: 600 12px/1 var(--sans); color: rgba(255,255,255,.85); background: none; border: 1px solid rgba(255,255,255,.5); border-radius: 3px; padding: 8px 12px; cursor: pointer; }
.hero-progress .hero-pause::before, .hero-progress .hero-pause b { display: none; }
.hero-progress .hero-pause:hover { color: var(--white); border-color: var(--white); }
.is-editing .hero-progress button.on b { animation: none; width: 100%; }
@keyframes fill { to { width: 100%; } }

/* Welcome */
.welcome { background: var(--white); padding-block: clamp(72px, 9vw, 128px); }
.welcome .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.welcome h2 { font-size: clamp(32px, 4vw, 52px); color: var(--navy); }
.welcome h2 em { font-style: italic; }
.welcome .lede { font-size: 19px; color: var(--slate); max-width: 52ch; }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); margin-top: clamp(16px, 3vw, 40px); }
.fact { padding: 28px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--rule); }
.fact strong { display: block; font: 300 clamp(40px, 4.4vw, 60px)/1 var(--serif); color: var(--navy); font-variant-numeric: lining-nums; }
.fact > span { display: block; margin-top: 10px; font-size: 15px; color: var(--slate); max-width: 22ch; }

/* Pillars: alternating split panels */
.pillar { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.pillar figure { margin: 0; position: relative; min-height: 360px; overflow: hidden; }
.pillar figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pillar .copy { display: grid; align-content: center; gap: 22px; padding: clamp(40px, 6vw, 96px) clamp(24px, 6vw, 104px); }
.pillar h2 { font-size: clamp(34px, 3.8vw, 50px); }
.pillar .pencil-richtext { max-width: 46ch; }
.pillar .btn { justify-self: start; margin-top: 6px; }
.pillar--paper .copy { background: var(--paper); color: var(--ink); }
.pillar--paper .pencil-richtext { color: var(--slate); }
.pillar--navy .copy { background: var(--navy); color: var(--white); }
.pillar--navy .pencil-richtext { color: rgba(255,255,255,.82); }
.pillar--mist .copy { background: var(--mist); color: var(--ink); }
.pillar--mist .pencil-richtext { color: var(--slate); }
.pillar.flip figure { order: 2; }

/* Student life carousel */
.life { padding-block: clamp(72px, 9vw, 120px) clamp(56px, 7vw, 96px); background: var(--white); overflow: hidden; }
.life-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.life-head h2 { font-size: clamp(34px, 4vw, 52px); color: var(--navy); }
.life-head .pencil-richtext { color: var(--slate); max-width: 48ch; margin-top: 14px; }
.arrows { display: flex; gap: 10px; }
.arrows button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rule); background: var(--white);
  color: var(--navy); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, background .2s, color .2s;
}
.arrows button:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.arrows svg { width: 16px; height: 16px; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 30%); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.track::-webkit-scrollbar { display: none; }
.tile { position: relative; scroll-snap-align: start; color: var(--ink); display: grid; gap: 16px; align-content: start; }
.tile-frame { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--mist); }
.tile-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover .tile-frame img { transform: scale(1.04); }
.tile h3 { font-size: 26px; color: var(--navy); }
.tile h3 a { text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile p { font-size: 15px; color: var(--slate); margin-top: 6px; max-width: 34ch; }

/* News */
.news { background: var(--navy); color: var(--white); padding-block: clamp(72px, 9vw, 120px); }
.news-head { text-align: center; display: grid; justify-items: center; gap: 16px; margin-bottom: 52px; }
.news-head h2 { font-size: clamp(34px, 4vw, 52px); }
.news-head .pencil-richtext { color: rgba(255,255,255,.78); max-width: 56ch; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-card { position: relative; background: var(--white); color: var(--ink); display: grid; grid-template-rows: auto 1fr; border-radius: 4px; overflow: hidden; transition: transform .25s ease; }
.news-card:hover { transform: translateY(-4px); }
.news-card__frame { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.news-card__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.news-card__body { padding: 20px 20px 26px; display: grid; align-content: start; gap: 12px; }
.news-card__meta { display: flex; gap: 10px; align-items: center; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.news-card__meta b { font-weight: 600; color: var(--royal-ink); }
.news-card__meta b + span { padding-left: 10px; border-left: 1px solid var(--rule); }
.news-card h3 { font-size: 23px; color: var(--navy); }
.news-card h3 a { text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; }
.news-foot { display: flex; justify-content: center; margin-top: 44px; }

/* In Proof edit mode, the whole-card link overlays step aside so every field can be clicked */
.is-editing .tile h3 a::after,
.is-editing .news-card h3 a::after,
.pencil-selection-active .tile h3 a::after,
.pencil-selection-active .news-card h3 a::after { display: none; }

/* Tuition */
.tuition { background: var(--paper); padding-block: clamp(72px, 9vw, 120px); }
.tuition .wrap { display: grid; gap: clamp(32px, 4vw, 52px); }
.tuition h2 { font-size: clamp(34px, 4vw, 52px); color: var(--navy); }
.tuition .intro { display: grid; gap: 20px; }
.tuition .intro { max-width: 760px; }
.tuition .intro .pencil-richtext { color: var(--slate); max-width: 60ch; }
.tuition .intro .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.price-wrap { overflow-x: auto; background: var(--white); border-radius: 4px; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 460px; }
.price-table th, .price-table td { text-align: left; padding: 18px 22px; }
.price-table thead th { font: 600 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); border-bottom: 1px solid var(--rule); }
.price-table thead th.plan { color: var(--navy); background: #FFF6CC; }
.price-table tbody td { border-bottom: 1px solid var(--rule); font-size: 17px; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody td:first-child { font-weight: 600; color: var(--navy); }
.price-table .num { text-align: right; }
.price-table td.plan { background: #FFFBE6; font-weight: 600; color: var(--navy-deep); }
.tuition-table { min-width: 820px; }
.tuition-table tbody th { text-align: left; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--rule); }
.tuition-table tbody tr:last-child th { border-bottom: 0; }
.tuition-table tbody td { vertical-align: top; }
.tuition-table tbody th, .tuition-table tbody td { padding-block: 20px; }
.tuition-table .amt { display: block; font-size: 20px; font-weight: 700; color: var(--navy-deep); line-height: 1.25; }
.tuition-table .per { display: block; margin-top: 4px; font-size: 14px; color: var(--slate); white-space: nowrap; }
.tuition-table td.plan .amt { color: var(--navy-deep); }
.tuition-table td.plan .per { color: var(--navy); }
.tuition-table .fees span { display: block; }
.tuition-table .fees span + span { font-size: 15px; color: var(--slate); margin-top: 2px; }
.tuition-table .tour { color: var(--ink); }
.fine { padding: 16px 22px 20px; font-size: 14px; color: var(--slate); border-top: 1px solid var(--rule); }
.fine .pencil-richtext p + p { margin-top: 4px; }

/* Visit */
.visit { position: relative; min-height: 640px; display: grid; align-items: end; overflow: hidden; }
.visit-bg { position: absolute; inset: 0; }
.visit-bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.visit .wrap { position: relative; z-index: 2; }
.visit-card {
  background: var(--white); max-width: 440px;
  padding: clamp(28px, 4vw, 44px); margin-block: 64px; display: grid; gap: 18px; border-radius: 4px;
}
.visit-card h2 { font-size: clamp(34px, 3.6vw, 46px); color: var(--navy); padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.visit-card .pencil-richtext { color: var(--slate); }
.visit-contact { color: var(--slate); }
.visit-contact strong { color: var(--navy); }
.visit-card .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* Footer */
.site-foot { background: var(--navy-deep); color: rgba(255,255,255,.78); padding-block: 72px 36px; font-size: 15px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.14); }
.foot-top .logo-frame { width: 200px; }
.foot-top p { font: 300 italic clamp(22px, 2.4vw, 30px)/1.2 var(--serif); color: var(--white); text-align: right; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-block: 44px; }
.foot-cols h4 { margin: 0 0 16px; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: var(--gold); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: rgba(255,255,255,.55); }

/* Inner pages without a rebuilt layout yet */
.page-head { background: var(--navy); color: var(--white); padding-block: 160px 64px; }
.page-head h1 { font-size: clamp(38px, 5vw, 64px); font-weight: 300; }
.page-body { padding-block: 64px 96px; }
.page-body .entry { max-width: 68ch; color: var(--slate); }
.page-body .entry > * + * { margin-top: 16px; }

/* Rebuilt interior pages (inc/sections.php) */
.page-hero { position: relative; min-height: min(78vh, 720px); display: grid; align-items: end; color: var(--white); background: var(--navy-deep); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(17,29,56,.55) 0%, rgba(17,29,56,0) 30%, rgba(17,29,56,.5) 60%, rgba(17,29,56,.9) 100%), linear-gradient(90deg, rgba(17,29,56,.45) 0%, rgba(17,29,56,0) 60%); }
.page-hero__body { position: relative; z-index: 2; display: grid; gap: 22px; padding-block: 180px clamp(56px, 7vw, 96px); }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 72px); font-weight: 300; max-width: 18ch; }
.page-hero__lede { max-width: 56ch; font-size: clamp(16px, 1.5vw, 19px); color: rgba(255,255,255,.88); }

.page-photos { padding-block: clamp(20px, 3vw, 40px) 0; }
.photo-row { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 20px; }
.photo-row figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--mist); }
.photo-row img { display: block; width: 100%; height: 100%; object-fit: cover; }

.page-list { padding-block: clamp(72px, 9vw, 128px); }
.page-list .wrap { display: grid; gap: clamp(36px, 4vw, 56px); }
.page-list__head { display: grid; gap: 18px; max-width: 760px; }
.page-list__head h2 { font-size: clamp(34px, 4vw, 52px); color: var(--navy); }
.page-list__head .pencil-richtext { color: var(--slate); max-width: 40ch; }
.rows { border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: 32px; padding-block: 28px; border-bottom: 1px solid var(--rule); }
.row > div { max-width: 72ch; }
.row h3 { font-size: 24px; color: var(--navy); }
.row__detail { font-weight: 600; color: var(--navy); font-size: 15px; margin-bottom: 8px; }
.row__detail:empty { display: none; }
.row .pencil-richtext { color: var(--slate); font-size: 16px; }

.page-facts { padding-block: 0 clamp(72px, 9vw, 112px); }
.page-facts .facts { grid-template-columns: repeat(var(--n, 4), 1fr); margin-top: 0; }
.page-photos + .page-facts { padding-top: clamp(48px, 6vw, 80px); }

.page-quote blockquote { margin: 0; font: 300 clamp(26px, 2.8vw, 38px)/1.25 var(--serif); }
.page-quote__name { color: rgba(255,255,255,.75); font-size: 15px; }

.page-cta { background: var(--paper); padding-block: clamp(72px, 9vw, 120px); text-align: center; }
.page-cta .wrap { display: grid; justify-items: center; gap: 20px; }
.page-cta h2 { font-size: clamp(34px, 4vw, 52px); color: var(--navy); }
.page-cta .pencil-richtext { color: var(--slate); max-width: 52ch; }
.page-cta .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* Statement band */
.page-statement { background: var(--paper); padding-block: clamp(72px, 9vw, 120px); text-align: center; }
.page-statement .wrap { display: grid; justify-items: center; gap: 20px; }
.page-statement h2 { font-size: clamp(34px, 4vw, 52px); color: var(--navy); }
.page-statement__intro { font: 300 clamp(20px, 2vw, 26px)/1.4 var(--serif); color: var(--ink); max-width: 40ch; }

/* Stacking panels: each sticks under the header and the next slides over it (top set in site.js) */
.panel { position: sticky; top: 68px; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 68px); }
.panel figure { margin: 0; position: relative; overflow: hidden; min-height: 360px; }
.panel figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel.flip figure { order: 2; }
.panel__copy { display: grid; align-content: center; gap: 22px; padding: clamp(48px, 6vw, 96px) clamp(24px, 6vw, 104px); }
.panel h2 { font-size: clamp(32px, 3.6vw, 48px); }
.panel__intro { max-width: 46ch; }
.panel--navy .panel__copy { background: var(--navy); color: var(--white); }
.panel--navy .panel__intro, .panel--navy .item .pencil-richtext { color: rgba(255,255,255,.8); }
.panel--paper .panel__copy { background: var(--paper); color: var(--ink); }
.panel--mist .panel__copy { background: var(--mist); color: var(--ink); }
.panel--paper h2, .panel--mist h2, .panel--paper .item h3, .panel--mist .item h3, .panel--paper .item__detail, .panel--mist .item__detail { color: var(--navy); }
.panel--paper .panel__intro, .panel--mist .panel__intro, .panel--paper .item .pencil-richtext, .panel--mist .item .pencil-richtext { color: var(--slate); }
.items { border-top: 1px solid var(--rule); margin-top: 6px; }
.panel--navy .items, .panel--navy .item { border-color: rgba(255,255,255,.2); }
.item { border-bottom: 1px solid var(--rule); }
.item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; }
.item summary::-webkit-details-marker { display: none; }
.item h3 { font-size: 24px; }
.item summary i { position: relative; flex: none; width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 3px; opacity: .6; transition: opacity .2s ease; }
.item summary:hover i { opacity: 1; }
.item summary i::before, .item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.item summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s ease; }
.item[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.item__body { display: grid; gap: 8px; padding-bottom: 20px; max-width: 60ch; }
.item__detail { font-weight: 600; font-size: 15px; }
.item__detail:empty { display: none; }
.item .pencil-richtext { font-size: 16px; }
.is-editing .panel { position: relative; top: auto !important; }

/* Shared section head; people, schedule, FAQ, gallery */
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: clamp(34px, 4vw, 52px); color: var(--navy); }
.section-head .pencil-richtext { color: var(--slate); max-width: 56ch; }
.page-statement .btn { margin-top: 8px; }
.page-statement .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.panel__copy > .btn { justify-self: start; margin-top: 6px; }
.page-people, .page-faq, .page-gallery { padding-block: clamp(72px, 9vw, 120px); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px 24px; }
.person { margin: 0; display: grid; gap: 14px; align-content: start; }
.person__frame { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--mist); }
.person__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 24px; color: var(--navy); }
.person p { color: var(--slate); font-size: 15px; margin-top: 4px; }
.page-schedule { background: var(--paper); padding-block: clamp(72px, 9vw, 120px); }
.schedule { border-top: 1px solid var(--rule); }
.schedule__row { display: grid; grid-template-columns: 1.2fr 1.2fr .6fr 1.6fr; gap: 24px; align-items: baseline; padding-block: 22px; border-bottom: 1px solid var(--rule); }
.schedule__row h3 { font-size: 24px; color: var(--navy); }
.schedule__row p { color: var(--slate); }
.schedule__row p:nth-of-type(2) { color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }
.page-schedule .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.page-faq .item h3 { color: var(--navy); font-size: 22px; }
.page-faq .item summary i { color: var(--navy); }
.page-faq .item .pencil-richtext { color: var(--slate); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--mist); }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Label/value specs */
.page-specs { padding-block: clamp(72px, 9vw, 120px) clamp(40px, 5vw, 64px); }
.specs { margin: 0; border-top: 1px solid var(--rule); max-width: 960px; }
.specs > div { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 24px; padding-block: 16px; border-bottom: 1px solid var(--rule); }
.specs dt { font-weight: 600; color: var(--navy); }
.specs dd { margin: 0; color: var(--slate); }

/* Financial aid form (markup from the CTA Financial Aid Requests plugin) */
.page-form { padding-block: clamp(40px, 5vw, 64px) clamp(72px, 9vw, 120px); }
.aid-form { max-width: 960px; display: grid; gap: 28px; }
.aid-section { border: 0; margin: 0; padding: clamp(24px, 3vw, 40px); background: var(--paper); border-radius: 6px; }
.aid-section > legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; font: 400 clamp(26px, 2.6vw, 32px)/1.15 var(--serif); color: var(--navy); }
.aid-section__intro { clear: both; color: var(--slate); max-width: 64ch; margin-bottom: 8px; }
.aid-grid { clear: both; display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px 16px; margin-top: 14px; }
.aid-w-full { grid-column: span 12; } .aid-w-half { grid-column: span 6; } .aid-w-third { grid-column: span 4; } .aid-w-quarter { grid-column: span 3; }
.aid-field { display: grid; gap: 6px; align-content: start; }
.aid-field[hidden] { display: none; }
.aid-field > label, .aid-field legend { font-weight: 600; font-size: 15px; color: var(--ink); padding: 0; }
.aid-field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.aid-form input[type="text"], .aid-form input[type="email"], .aid-form input[type="tel"], .aid-form select {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--white);
  border: 1px solid rgba(34,57,112,.28); border-radius: 4px; padding: 11px 12px; min-height: 46px;
}
.aid-form input:focus, .aid-form select:focus { outline: 2px solid var(--royal); outline-offset: 1px; border-color: var(--royal); }
.aid-money { position: relative; display: block; }
.aid-money > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--slate); }
.aid-money input { padding-left: 26px !important; font-variant-numeric: tabular-nums; }
.aid-options { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 6px; }
.aid-options label, .aid-check { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; cursor: pointer; }
.aid-options input, .aid-check input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.aid-check { align-items: flex-start; font-weight: 600; }
.aid-check input { margin-top: 2px; }
.aid-req { color: #B42318; }
.aid-help { font-size: 14px; color: var(--slate); }
.aid-error { font-size: 14px; color: #B42318; font-weight: 600; }
.aid-field.has-error input, .aid-field.has-error select { border-color: #B42318; }
.aid-rows { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 8px 12px; margin-top: 6px; }
.aid-rows__head { font-size: 13px; font-weight: 600; color: var(--slate); }
.aid-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--rule); font-weight: 600; color: var(--navy); }
.aid-total output { font: 400 26px/1 var(--serif); font-variant-numeric: tabular-nums lining-nums; }
.aid-form input[type="file"] { font: inherit; padding: 12px; background: var(--white); border: 1px dashed rgba(34,57,112,.4); border-radius: 4px; }
.aid-notice { padding: 18px 20px; border-radius: 4px; background: #FEF3F2; color: #7A271A; }
.aid-notice ul { margin: 8px 0 0; padding-left: 20px; }
.aid-notice a { color: inherit; }
.aid-submit { display: grid; gap: 12px; justify-items: start; }
.aid-submit .btn { border: 0; cursor: pointer; font-size: 15px; }
.aid-submit p { font-size: 14px; color: var(--slate); max-width: 60ch; }
.aid-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aid-done { background: var(--paper); padding: clamp(28px, 4vw, 48px); border-radius: 6px; display: grid; gap: 14px; max-width: 760px; }
.aid-done h2 { font-size: clamp(30px, 3vw, 40px); color: var(--navy); }
.aid-done p { color: var(--slate); }
.aid-done strong { color: var(--navy); font-variant-numeric: tabular-nums; }

/* Steps, price table, embeds, people placeholders */
.page-steps, .page-table, .page-embed { padding-block: clamp(64px, 8vw, 110px); }
.page-steps { background: var(--paper); }
.person__frame { display: grid; place-items: center; }
.person__initials { font: 300 clamp(40px, 5vw, 56px)/1 var(--serif); color: var(--navy); }
.person__mail a { color: var(--slate); font-size: 14px; word-break: break-all; }
.page-table { background: var(--paper); }
.page-table .price-wrap { max-width: 1100px; box-shadow: 0 1px 2px rgba(17,29,56,.05), 0 10px 30px rgba(17,29,56,.06); }
.page-table .price-table thead th.plan { background: var(--gold); color: var(--navy-deep); }
.page-table .price-table td.plan { background: #FFF6CC; }
.page-table .price-table tbody td { font-size: 18px; padding-block: 20px; }
.page-table .price-table tbody th { font-family: var(--serif); font-size: 21px; font-weight: 400; }
.embed { width: 100%; min-height: 240px; }
.embed iframe { display: block; width: 100%; }
.page-embed .embed { background: var(--white); border-radius: 6px; overflow: hidden; }

/* Contact Form 7 forms inside embeds: same look as the aid form */
.page-embed .wpcf7 { background: var(--paper); border-radius: 6px; padding: clamp(24px, 4vw, 44px); max-width: 860px; }
.page-embed .embed:has(.wpcf7) { background: transparent; }
.wpcf7-form { display: grid; gap: 0; }
.wpcf7-form > p, .wpcf7-form > div > p { margin: 0 0 22px; display: grid; gap: 8px; max-width: 640px; }
.wpcf7-form br { display: none; }
.wpcf7-form .form-section { font-size: 22px; color: var(--navy); margin: 18px 0 14px; }
.wpcf7-form .form-section:first-child { margin-top: 0; }
.wpcf7-form label, .wpcf7-form > p:not(:has(.wpcf7-submit)) { font: 600 15px/1.4 var(--sans); color: var(--ink); }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form input[type="number"], .wpcf7-form select, .wpcf7-form textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--white);
  border: 1px solid rgba(34,57,112,.28); border-radius: 4px; padding: 11px 12px; min-height: 46px; box-shadow: none;
}
.wpcf7-form textarea { min-height: 120px; }
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { outline: 2px solid var(--royal); outline-offset: 1px; border-color: var(--royal); }
/* Radio and checkbox choices as pills; the input covers the pill so a click anywhere selects it */
.wpcf7-radio, .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.wpcf7-list-item { position: relative; margin: 0; display: inline-flex; }
.wpcf7-list-item input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.wpcf7-list-item-label { display: inline-block; padding: 9px 16px; border: 1px solid rgba(34,57,112,.28); border-radius: 3px; background: var(--white); font: 500 15px/1.2 var(--sans); color: var(--ink); transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.wpcf7-list-item:hover .wpcf7-list-item-label { border-color: var(--navy); }
.wpcf7-list-item:has(input:checked) .wpcf7-list-item-label { background: var(--navy); border-color: var(--navy); color: var(--white); }
.wpcf7-list-item:has(input:focus-visible) .wpcf7-list-item-label { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Send button: navy pill with the arrow cell, matching .btn--navy */
.wpcf7-form > p:has(.wpcf7-submit) { position: relative; display: inline-flex; width: max-content; max-width: 100%; margin-top: 8px; }
.wpcf7-submit {
  font: 600 15px/1 var(--sans); letter-spacing: .02em; color: var(--white); background: var(--navy);
  border: 1px solid var(--navy); border-radius: 3px; padding: 15px 64px 14px 22px; cursor: pointer; transition: background-color .2s ease;
}
.wpcf7-submit:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.wpcf7-form > p:has(.wpcf7-submit)::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 44px; border-left: 1px solid rgba(255,255,255,.3); pointer-events: none;
  background: var(--white); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4'/%3E%3C/svg%3E") center / 15px 15px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
}
.wpcf7-spinner { position: absolute; right: -36px; top: 50%; transform: translateY(-50%); margin: 0; }
.wpcf7-not-valid-tip { font-size: 14px; color: #B42318; font-weight: 600; margin-top: 4px; }
.wpcf7-not-valid { border-color: #B42318 !important; }
.wpcf7 form .wpcf7-response-output { margin: 18px 0 0; padding: 14px 16px; border-radius: 4px; border: 0; background: var(--white); font-size: 15px; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { background: #FEF3F2; color: #7A271A; }
.wpcf7 form.sent .wpcf7-response-output { background: #FFF6CC; color: var(--navy-deep); }

/* Tabs: underlined labels with a gold bar under the active one (the homepage hero's pattern) */
.page-tabs { padding-block: clamp(40px, 5vw, 64px) clamp(72px, 9vw, 120px); scroll-margin-top: 80px; }
.tablist { display: grid; grid-template-columns: repeat(var(--tabs, 3), 1fr); gap: 0 clamp(16px, 3vw, 40px); margin-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.tablist[hidden] { display: none; }
.tablist [role="tab"] { position: relative; font: 600 clamp(15px, 1.4vw, 18px)/1.25 var(--sans); color: var(--slate); background: none; border: 0; border-radius: 0; padding: 4px 0 18px; text-align: left; cursor: pointer; transition: color .2s ease; }
.tablist [role="tab"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.tablist [role="tab"]:hover { color: var(--navy); }
.tablist [role="tab"][aria-selected="true"] { color: var(--navy); }
.tablist [role="tab"][aria-selected="true"]::after { transform: scaleX(1); }
.tablist [role="tab"]:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.tabpanel { scroll-margin-top: 90px; }
.tabpanel:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 4px; }
.page-tabs:not(.is-tabbed) .tabpanel + .tabpanel { margin-top: clamp(56px, 7vw, 88px); }
.page-tabs .specs { max-width: 760px; }
.map { margin: 0 0 clamp(28px, 4vw, 40px); max-width: 860px; }
.map iframe { display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 280px; border: 0; border-radius: 6px; background: var(--mist); }
.map figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 12px; font-size: 15px; color: var(--slate); }
.map figcaption a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }

/* Blog posts and news listings */
.post-head { background: var(--paper); padding-block: clamp(130px, 14vw, 170px) clamp(40px, 5vw, 64px); }
.post-head .wrap { display: grid; gap: 18px; }
.post-head h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 300; color: var(--navy); max-width: 22ch; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 15px; color: var(--slate); }
.post-meta a { color: var(--royal-ink); font-weight: 600; text-decoration: none; }
.post-meta a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-meta a + time { padding-left: 14px; border-left: 1px solid var(--rule); }
.post-body { display: grid; gap: clamp(28px, 4vw, 44px); padding-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 104px); }
.post-figure { margin: 0; max-width: 460px; }
.post-figure img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 1px 2px rgba(17,29,56,.06), 0 14px 40px rgba(17,29,56,.10); }
.entry { max-width: 68ch; font-size: 18px; line-height: 1.7; color: var(--ink); }
.entry > * + * { margin-top: 1.1em; }
.entry h2, .entry h3, .entry h4 { color: var(--navy); margin-top: 1.8em; }
.entry h2 { font-size: clamp(26px, 3vw, 32px); }
.entry h3 { font-size: 24px; }
.entry h4 { font: 600 18px/1.4 var(--sans); }
.entry h2 + *, .entry h3 + *, .entry h4 + * { margin-top: .6em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: .45em; }
.entry li::marker { color: var(--navy); }
.entry a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(34,57,112,.4); text-underline-offset: 3px; }
.entry a:hover { text-decoration-color: var(--navy); }
.entry strong { font-weight: 700; color: var(--navy-deep); }
.entry img { max-width: 100%; height: auto; border-radius: 4px; }
.entry figure { margin-inline: 0; }
.entry figcaption { font-size: 14px; color: var(--slate); margin-top: 8px; }
.entry blockquote { margin: 1.6em 0; padding: 0; font: 300 clamp(22px, 2.4vw, 28px)/1.35 var(--serif); color: var(--navy); }
.entry blockquote cite { display: block; margin-top: 10px; font: 400 15px/1.4 var(--sans); color: var(--slate); font-style: normal; }
.entry hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2em; }
.entry .wp-block-button__link { display: inline-block; background: var(--navy); color: var(--white); text-decoration: none; font: 600 15px/1 var(--sans); padding: 14px 20px; border-radius: 3px; }
.entry .wp-block-button__link:hover { background: var(--navy-deep); }
.entry .wp-block-embed iframe, .entry iframe { max-width: 100%; }
.entry .wp-block-embed__wrapper { position: relative; }
.entry table { border-collapse: collapse; width: 100%; font-size: 16px; }
.entry th, .entry td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.post-back a { font-weight: 600; color: var(--navy); text-decoration: none; }
.post-back a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.news--more .news-head { margin-bottom: 36px; }
.post-head--list .post-head__intro { color: var(--slate); max-width: 60ch; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 6px; }
.cat-filter a { position: relative; font-weight: 600; font-size: 15px; color: var(--slate); text-decoration: none; padding-bottom: 8px; }
.cat-filter a:hover, .cat-filter a[aria-current="page"] { color: var(--navy); }
.cat-filter a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); }
.post-list { padding-block: clamp(40px, 5vw, 64px) clamp(72px, 9vw, 112px); }
.post-list .news-card { border: 1px solid var(--rule); }
.post-empty { color: var(--slate); }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border: 1px solid var(--rule); border-radius: 3px; color: var(--navy); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.pagination .page-numbers:hover { border-color: var(--navy); }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pagination .page-numbers.dots { border: 0; }

/* Action rail: fixed on the right edge, a bottom bar on phones */
@media (min-width: 783px) { :root { --gutter: clamp(80px, 6vw, 96px); } } /* side gutters clear the 64px rail */
.rail { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 25; display: grid; }
.rail__link { position: relative; display: grid; place-items: center; width: 64px; height: 64px; background: var(--navy); color: var(--white); text-decoration: none; transition: background-color .2s ease; }
.rail__link + .rail__link { border-top: 1px solid rgba(143,172,240,.55); }
.rail__link i { width: 26px; height: 26px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.rail__link--inquire { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 9.5c0 3-2.9 5.3-6.5 5.3-.8 0-1.6-.1-2.3-.3L2.5 16l.9-2.9C2.5 12.1 2 10.9 2 9.5 2 6.5 4.9 4.2 8.5 4.2s6 2.3 6 5.3z'/%3E%3Cpath d='M16.6 8.6c3 .4 5.4 2.5 5.4 5 0 1.2-.5 2.3-1.3 3.2l.8 2.7-3-1.3c-.7.2-1.4.3-2.2.3-2.4 0-4.5-1-5.6-2.6'/%3E%3C/svg%3E"); }
.rail__link--visit { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21.5s-6.5-6.2-6.5-11.3a6.5 6.5 0 0 1 13 0c0 5.1-6.5 11.3-6.5 11.3z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/svg%3E"); }
.rail__link--apply { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.2 4.6l5.2 5.2'/%3E%3Cpath d='M15.6 3.2a1.6 1.6 0 0 1 2.3 0l2.9 2.9a1.6 1.6 0 0 1 0 2.3l-1.4 1.4-5.2-5.2z'/%3E%3Cpath d='M14.2 4.6L8 7.2 3 21l13.8-5 2.6-6.2'/%3E%3Cpath d='M3 21l6.3-6.3'/%3E%3Ccircle cx='11.1' cy='12.9' r='1.6'/%3E%3C/svg%3E"); }
.rail__link .pencil-button__text {
  position: absolute; right: 100%; top: 0; bottom: 0; display: flex; align-items: center; padding-inline: 20px;
  background: var(--navy-deep); font: 600 14px/1 var(--sans); white-space: nowrap;
  opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.rail__link:hover, .rail__link:focus-visible { background: var(--navy-deep); }
.rail__link:hover .pencil-button__text, .rail__link:focus-visible .pencil-button__text { opacity: 1; transform: none; }
.is-editing .rail__link .pencil-button__text { opacity: 1; transform: none; pointer-events: auto; background: var(--navy); }

@media (max-width: 980px) {
  .welcome .wrap, .tuition .wrap { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar { grid-template-columns: 1fr; min-height: 0; }
  .pillar.flip figure { order: 0; }
  .panel { position: relative; top: auto !important; grid-template-columns: 1fr; min-height: 0; }
  .panel.flip figure { order: 0; }
  .panel figure { aspect-ratio: 16 / 10; min-height: 0; }
  .pillar figure { aspect-ratio: 16 / 10; min-height: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .track { grid-auto-columns: minmax(250px, 44%); }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .quick-links { display: none; }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 782px) {
  .admin-bar .top, .admin-bar .mega { top: 46px; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .rail { top: auto; bottom: 0; left: 0; transform: none; grid-template-columns: repeat(3, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--navy); }
  .rail__link { width: auto; height: 56px; display: flex; justify-content: center; gap: 10px; }
  .rail__link + .rail__link { border-top: 0; border-left: 1px solid rgba(143,172,240,.55); }
  .rail__link i { width: 22px; height: 22px; }
  .rail__link .pencil-button__text { position: static; padding: 0; background: none; opacity: 1; transform: none; pointer-events: auto; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .schedule__row { grid-template-columns: 1fr 1fr; gap: 6px 16px; }
  .specs > div { grid-template-columns: 1fr; gap: 4px; }
  .aid-w-half, .aid-w-third { grid-column: span 12; }
  .aid-w-quarter { grid-column: span 6; }
  .aid-rows { grid-template-columns: 1fr 1fr; }
  .aid-rows__head { display: none; }
  .schedule__row h3, .schedule__row p:last-child { grid-column: 1 / -1; }
  .people { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
@media (max-width: 560px) {
  .top .logo-frame { width: 150px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding-right: 12px; }
  .fact + .fact { padding-left: 12px; }
  .fact:nth-child(3) { padding-left: 0; }
  .cards, .cards--3 { grid-template-columns: 1fr; }
  .track { grid-auto-columns: 78%; }
  .hero-progress { gap: 10px; }
  .hero-progress button { font-size: 11px; }
  .foot-top p { text-align: left; }
  .visit { min-height: 0; padding-top: 240px; }
  .foot-cols { grid-template-columns: 1fr; }
  .photo-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .photo-row figure:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .page-facts .facts { grid-template-columns: 1fr 1fr; }
  .mega-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 24px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slides img.on { animation: none; }
  .hero-progress button.on b { animation: none; width: 100%; }
  * { transition: none !important; }
}

/* Cookie banner (Complianz): restyled to the theme, white card, navy type */
#cmplz-cookiebanner-container .cmplz-cookiebanner {
  font-family: var(--sans); color: var(--ink);
  background: var(--white); border: 1px solid var(--mist); border-radius: 4px;
  box-shadow: 0 18px 48px rgba(17, 29, 56, .18);
  padding: 24px 24px 20px; gap: 14px; max-width: calc(100vw - 32px);
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-title {
  font: 400 24px/1.15 var(--serif); color: var(--navy); letter-spacing: -.01em;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-close { color: var(--slate); }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-close:hover { color: var(--navy); }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-divider { display: none; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-message { font-size: 15px; line-height: 1.55; color: var(--slate); }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-category { background: var(--paper); border-radius: 3px; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-category-title { font-weight: 600; color: var(--navy); }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons { gap: 8px; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn {
  font: 600 14px/1 var(--sans); letter-spacing: .02em; height: auto; min-height: 44px; padding: 13px 18px 12px;
  border: 1px solid var(--rule); border-radius: 3px; background: var(--white); color: var(--navy);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn:hover { border-color: var(--navy); }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn.cmplz-accept { background: var(--navy); border-color: var(--navy); color: var(--white); }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn.cmplz-accept:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-links a,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-link { color: var(--navy); font-size: 13px; text-underline-offset: 3px; }
#cmplz-cookiebanner-container .cmplz-cookiebanner :focus-visible,
#cmplz-manage-consent .cmplz-manage-consent:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; box-shadow: 0 0 0 2px var(--navy-deep); }
body #cmplz-manage-consent .cmplz-btn.cmplz-manage-consent {
  font: 600 13px/1 var(--sans); background: var(--navy); color: var(--white);
  border: 0; border-radius: 3px 3px 0 0; padding: 10px 14px;
}

/* Radio groups in forms: fieldset + legend so screen readers announce the question */
.wpcf7-form fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; max-width: 640px; }
.wpcf7-form legend { font: 600 15px/1.4 var(--sans); color: var(--ink); padding: 0; margin-bottom: 8px; }
.wpcf7-list-item > label { position: relative; display: inline-flex; margin: 0; font: inherit; }
/* Complianz prints an empty cookie-policy link until a policy page exists; keep it out of the tab order */
#cmplz-cookiebanner-container .cmplz-links .cmplz-link:empty { display: none; }

/* Tuition table on phones: placed last and scoped to .price-wrap so it outranks the .page-table cell rules */
@media (max-width: 782px) { /* one block per grade, label beside value, so the total never scrolls off-screen */
  .tuition-table { min-width: 0; }
  .tuition-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tuition-table, .tuition-table tbody, .tuition-table tr, .tuition-table th, .tuition-table td { display: block; }
  .tuition-table tbody tr { padding: 18px 20px; border-bottom: 1px solid var(--rule); }
  .tuition-table tbody tr:last-child { border-bottom: 0; }
  .price-wrap .tuition-table tbody th { padding: 0 0 8px; border: 0; }
  .price-wrap .tuition-table tbody td { display: flow-root; padding: 6px 0; border: 0; text-align: right; }
  .tuition-table tbody td::before { content: attr(data-label); float: left; margin-right: 16px; text-align: left; font: 600 12px/1.6 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
  .price-wrap .tuition-table tbody td.plan { margin: 6px -20px; padding: 10px 20px; }
  .tuition-table .amt { font-size: 18px; }
}

/* Hero slides: hidden slides ignore clicks so the visible photo is the one clicked */
.hero-slides img { pointer-events: none; }
.hero-slides img.on { pointer-events: auto; }
