/* Ed-Merit H.S. School — "Merit, made visible"
   Collegiate senior-secondary. Bootstrap 5.3.3 grid only; everything else here. */

/* metric-matched fallbacks: keep line breaks stable while the web fonts load (no layout shift) */
@font-face { font-family: "BSD Fallback"; src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Arial Narrow"), local("Roboto Condensed Bold"); font-weight: 100 900; size-adjust: 81%; ascent-override: 121.5%; descent-override: 26.3%; line-gap-override: 0%; }
@font-face { font-family: "LF Fallback"; src: local("Arial"), local("ArialMT"), local("Roboto"); font-weight: 100 900; size-adjust: 102.9%; ascent-override: 93.9%; descent-override: 23.9%; line-gap-override: 0%; }

:root {
  --ground: #F5F3EE;
  --paper: #FCFBF8;
  --burg: #5A1A2A;
  --burg-deep: #3F1220;
  --burg-ink: #4A1522;
  --ink: #1E1A1A;
  --ink-soft: #4B4343;
  --mustard: #D9A441;
  --mustard-ink: #7A5716;
  --mustard-soft: #EBCB8B;
  --rule: #D6CEC0;
  --on-burg: #F5F3EE;
  --on-burg-soft: #E3CFD3;
  --err: #A11D2B;
  --err-dark: #FFCFB0;
  --display: "Big Shoulders Display", "BSD Fallback", "Arial Narrow", sans-serif;
  --body: "Libre Franklin", "LF Fallback", Arial, sans-serif;
  --pin: repeating-linear-gradient(90deg, rgba(217, 164, 65, .11) 0 1px, transparent 1px 34px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gap-sec: clamp(4rem, 9vw, 7.5rem);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  font-variant-numeric: lining-nums tabular-nums;
  caret-color: var(--burg);
  scrollbar-color: var(--burg) var(--ground);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--burg); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
ul, ol { padding: 0; margin: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--mustard); color: var(--ink); }
:focus-visible { outline: 3px solid var(--burg); outline-offset: 3px; }
.on-dark :focus-visible, .pin :focus-visible, .hero :focus-visible, .site-footer :focus-visible,
.results :focus-visible, .panel :focus-visible, .mega :focus-visible, .adm-form :focus-visible,
.utility :focus-visible, .phead--burg :focus-visible, .lightbox :focus-visible { outline-color: var(--mustard); }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--mustard); color: var(--ink); padding: .75rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }
.container { --bs-gutter-x: 2rem; width: 100%; padding-left: 1rem; padding-right: 1rem; margin-left: auto; margin-right: auto; }
@media (min-width: 1400px) { .container { max-width: 1280px; } }
[hidden] { display: none !important; }

/* pinstripe ground: varsity jersey stripe, used on burgundy fields */
.pin { background-color: var(--burg); background-image: var(--pin); color: var(--on-burg); }
.pin a:not(.btn) { color: var(--mustard-soft); }

/* ---------- type ---------- */
.display-h {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: .95; letter-spacing: .005em;
  color: var(--burg); margin-bottom: 1.25rem;
}
.display-h--light { color: var(--on-burg); }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
.ico { flex: none; }
.small-note { font-size: .9375rem; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.25rem; border: 2px solid transparent; border-radius: 2px;
  font-family: var(--body); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--burg { background: var(--burg); color: var(--on-burg); }
.btn--burg:hover { background: var(--burg-deep); }
.btn--mustard { background: var(--mustard); color: var(--ink); }
.btn--mustard:hover { background: var(--mustard-soft); }
.btn--ghost-light { border-color: rgba(245, 243, 238, .7); color: var(--on-burg); }
.btn--ghost-light:hover { background: var(--on-burg); color: var(--burg); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- placeholders ---------- */
.ph {
  border: 1.5px dashed #9C8F7E; padding: .85rem 1rem; color: var(--ink-soft); font-size: .975rem; border-radius: 2px;
}
.ph--inline { display: inline-block; padding: .1rem .5rem; margin-top: .25rem; font-size: .9375rem; }
.ph--block p:last-child { margin: 0; }
.ph--board { border-color: rgba(235, 203, 139, .75); color: var(--on-burg); }
.ph--light { margin-top: 1.25rem; }
.sample-tag { display: inline-block; font-size: .9375rem; color: var(--mustard-ink); border-bottom: 1.5px dashed var(--mustard-ink); margin-bottom: 1.25rem; }

/* ---------- header ---------- */
.utility { background: var(--burg-deep); color: var(--on-burg); font-size: .9375rem; }
.utility__row { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: .75rem; }
.utility__link { display: inline-flex; align-items: center; gap: .4rem; color: var(--on-burg); text-decoration: none; padding: .45rem 0; white-space: nowrap; }
.utility__link .ico { width: 16px; height: 16px; }
.utility__link:hover { text-decoration: underline; }
.utility__link--hot { color: var(--mustard); font-weight: 700; }
@media (max-width: 419.98px) { .hide-xs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .utility { font-size: .8125rem; } .utility__row { gap: .5rem; } .utility__link .ico { display: none; } }
@media (min-width: 992px) { .utility__row { justify-content: flex-end; gap: 2rem; } }

.mainbar { position: sticky; top: 0; z-index: 50; background: var(--ground); border-bottom: 1px solid var(--rule); }
.mainbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--burg); transform: scaleY(.34); transform-origin: top; }
.mainbar__row { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }
.brand { display: block; flex: none; margin-right: auto; }
.brand img { height: 52px; width: auto; }
.mainnav { display: none; }
.mainnav__list { display: flex; align-items: center; gap: .25rem; }
.mainnav__item { display: flex; align-items: center; }
.mainnav__link {
  display: block; padding: .5rem .7rem; color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: .02em; text-transform: uppercase;
  border-bottom: 3px solid transparent;
}
.mainnav__link:hover, .mainnav__link[aria-current="page"] { border-bottom-color: var(--mustard); color: var(--burg); }
.mega-toggle { display: grid; place-items: center; width: 32px; height: 40px; margin-left: -.5rem; background: none; border: 0; color: var(--burg); }
.mega-toggle .ico { transition: transform .25s var(--ease); }
.mega-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.mainbar__cta { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 46px; padding: .5rem .9rem;
  background: var(--burg); color: var(--on-burg); border: 0; border-radius: 2px; font-weight: 700;
}
@media (min-width: 576px) { .mainbar__cta { display: inline-flex; } }
@media (min-width: 992px) {
  .mainnav { display: block; }
  .menu-btn { display: none; }
  .brand { margin-right: 1rem; }
  .mainnav { margin-left: auto; }
  .brand img { height: 58px; }
}
@media (max-width: 575.98px) { .brand img { height: 46px; } .mainbar__row { min-height: 64px; } }

/* mega dropdown */
.mega { position: absolute; left: 0; right: 0; top: 100%; background-color: var(--burg); background-image: var(--pin); color: var(--on-burg); padding: 2.5rem 0 2.75rem; border-top: 4px solid var(--mustard); border-bottom: 8px solid var(--burg-deep); }
.mega__title { font-family: var(--display); font-weight: 800; font-size: 1.75rem; text-transform: uppercase; line-height: 1; margin-bottom: 1rem; }
.mega__title a { color: var(--on-burg); text-decoration: none; }
.mega__title a:hover { color: var(--mustard); }
.mega__years li + li { border-top: 1px solid rgba(245, 243, 238, .18); }
.mega__years a { display: flex; align-items: baseline; gap: 1rem; padding: .5rem 0; color: var(--on-burg); text-decoration: none; }
.mega__years b { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--mustard); width: 2.5rem; }
.mega__years a:hover span { text-decoration: underline; }
.mega__streams a { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 2.75rem; line-height: 1.05; color: var(--on-burg); text-decoration: none; }
.mega__streams a:hover { color: var(--mustard); }
.mega__note, .mega__text { color: var(--on-burg-soft); font-size: .9375rem; margin-top: 1rem; }

/* slide-in panel (phones) */
.panel { position: fixed; inset: 0; z-index: 90; }
.panel__scrim { position: absolute; inset: 0; background: rgba(30, 26, 26, .55); opacity: 0; transition: opacity .3s; }
.panel__sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 90vw); overflow-y: auto;
  background-color: var(--burg-deep); background-image: var(--pin); color: var(--on-burg);
  padding: 1rem 1.25rem 2rem; transform: translateX(100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column;
}
.panel.is-open .panel__scrim { opacity: 1; }
.panel.is-open .panel__sheet { transform: none; }
.panel__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 2px solid var(--mustard); }
.panel__top img { height: 46px; width: auto; }
.panel__close { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .5rem .75rem; background: none; border: 1.5px solid rgba(245, 243, 238, .6); border-radius: 2px; color: var(--on-burg); font-weight: 600; }
.panel__list { margin: .75rem 0 1.5rem; }
.panel__item { border-bottom: 1px solid rgba(245, 243, 238, .16); }
.panel__link, .panel__acc {
  display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 56px; padding: .5rem 0;
  font-family: var(--display); font-weight: 800; font-size: 1.85rem; text-transform: uppercase; line-height: 1;
  color: var(--on-burg); text-decoration: none; background: none; border: 0; text-align: left;
}
.panel__link[aria-current="page"] { color: var(--mustard); }
.panel__acc .ico { width: 24px; height: 24px; transition: transform .25s var(--ease); }
.panel__acc[aria-expanded="true"] .ico { transform: rotate(180deg); }
.panel__sub { padding: 0 0 .75rem 1rem; border-left: 2px solid var(--mustard); margin-bottom: .75rem; }
.panel__sub a { display: block; padding: .55rem 0; color: var(--on-burg); text-decoration: none; font-size: 1.0625rem; }
.panel__sub a:hover { text-decoration: underline; }
.panel__actions { display: grid; gap: .75rem; margin-top: auto; }
body.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; background-color: var(--burg); background-image: var(--pin); color: var(--on-burg); overflow: hidden; display: flex; flex-direction: column; }
.hero__inner { position: relative; z-index: 2; order: 1; }
.hero__copy { padding-top: 2.25rem; padding-bottom: 2.5rem; }
.hero__h {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.4rem, 15vw, 6rem); line-height: .86; letter-spacing: .003em;
}
.hero__h span { display: block; }
.hero__h::after { content: ""; display: block; width: 7.5rem; height: 8px; background: var(--mustard); margin-top: 1.5rem; transform-origin: left; }
.hero__lede { font-size: 1.125rem; max-width: 34rem; margin: 1.5rem 0 .5rem; }
.hero__hi { color: var(--on-burg-soft); margin-bottom: 1.5rem; }
.hero__photo { position: relative; order: 2; height: clamp(260px, 72vw, 420px); background: var(--mustard); clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%); }
.hero__photo picture { position: absolute; inset: 0; clip-path: polygon(0 calc(14% + 12px), 100% 12px, 100% 100%, 0 100%); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 45%; }
.hero__credit { position: absolute; right: .75rem; bottom: .6rem; z-index: 2; margin: 0; font-size: .75rem; padding: .2rem .5rem; background: rgba(30, 26, 26, .72); color: var(--on-burg); }

.ask { border-top: 1px solid rgba(245, 243, 238, .25); padding-top: 1.25rem; max-width: 36rem; }
.ask__q { font-weight: 700; margin-bottom: .75rem; }
.ask__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .9rem; border: 1.5px solid rgba(245, 243, 238, .55); border-radius: 2px;
  font-family: var(--display); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em;
}
.chip input:checked + span { background: var(--mustard); border-color: var(--mustard); color: var(--burg-ink); }
.chip input:focus-visible + span { outline: 3px solid var(--mustard); outline-offset: 3px; }
.chip input:hover + span { border-color: var(--on-burg); }
.ask__go { display: flex; flex-wrap: wrap; gap: .75rem; }
.ask__small { font-size: .9375rem; color: var(--on-burg-soft); margin: 1rem 0 0; }
.ask__small a { color: var(--on-burg); }

@media (min-width: 992px) {
  .hero { display: block; min-height: min(calc(100vh - 116px), 780px); }
  .hero__inner { display: flex; align-items: center; min-height: inherit; }
  .hero__inner > .row { width: 100%; }
  .hero__copy { padding-top: 4rem; padding-bottom: 4.5rem; }
  .hero__photo { position: absolute; top: 0; right: 0; bottom: 0; height: auto; width: 47%; clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%); }
  .hero__photo picture { clip-path: polygon(calc(24% + 18px) 0, 100% 0, 100% 100%, 18px 100%); }
  .hero__photo img { object-position: 78% 50%; }
  .hero__h { font-size: clamp(4.5rem, 7.2vw, 6rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__h span { animation: rise .9s var(--ease) both; }
  .hero__h span:nth-child(2) { animation-delay: .08s; }
  .hero__h span:nth-child(3) { animation-delay: .16s; }
  .hero__h::after { animation: draw .9s .35s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- at a glance ---------- */
.glance { border-bottom: 1px solid var(--rule); }
.glance__row { margin: 0; }
.glance__cell { padding: 1.75rem 1.25rem 1.75rem 0; border-bottom: 1px solid var(--rule); }
.glance dt { font-weight: 700; color: var(--burg); margin-bottom: .35rem; }
.glance dd { margin: 0; font-size: .975rem; }
.glance__big { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.1; text-decoration: none; }
@media (min-width: 992px) {
  .glance__cell { border-bottom: 0; padding: 2rem 1.5rem; border-left: 4px double var(--rule); }
  .glance__cell:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- stream explorer ---------- */
.streams { padding: var(--gap-sec) 0; }
.streams__head { margin-bottom: 1rem; }
.streams__intro { color: var(--on-burg-soft); margin: 0 0 1.25rem; }
.streams__ph { margin-bottom: 2rem; }
.streams__tabs { display: flex; flex-wrap: wrap; gap: .25rem .5rem; border-bottom: 2px solid rgba(245, 243, 238, .25); margin-bottom: 2.5rem; }
.streams__tab {
  background: none; border: 0; padding: .1rem .5rem .25rem; margin-bottom: -2px; border-bottom: 2px solid transparent;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.85rem, 7.5vw, 4.75rem); line-height: 1;
  color: rgba(245, 243, 238, .72); transition: color .2s, background-color .2s;
}
.streams__tab:hover { color: var(--on-burg); }
.streams__tab[aria-selected="true"] { background: var(--mustard); color: var(--burg-ink); border-bottom-color: var(--mustard); }
.streams__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%); }
.streams__h { font-family: var(--body); font-size: 1rem; font-weight: 700; color: var(--mustard-soft); margin: 0 0 .5rem; }
.streams__h:not(:first-child) { margin-top: 1.5rem; }
.lineup--core li { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.02; }
.lineup--also { margin-top: .6rem; }
.lineup--also li { font-size: 1rem; color: var(--on-burg-soft); }
.lineup--also li::before { content: "+ "; color: var(--mustard); font-weight: 700; }
.streams__small { font-size: .9375rem; color: var(--on-burg-soft); margin-top: 1rem; }
.streams__leads li { padding: .45rem 0; border-top: 1px solid rgba(245, 243, 238, .16); }
.streams__suits { margin: 0; }
.streams__aside { margin: 2rem 0 1.5rem; padding-top: 1rem; border-top: 3px double rgba(235, 203, 139, .55); font-size: 1.0625rem; }
@media (prefers-reduced-motion: no-preference) {
  .streams__panel:not([hidden]) { animation: panel-in .45s var(--ease) both; }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- roadmap (home) ---------- */
.road { padding: var(--gap-sec) 0; }
.road__intro { color: var(--ink-soft); margin: 0 0 1.25rem; }
.road__now { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 1.5rem 0 2.5rem; }
.road__now-q { margin: 0; font-weight: 700; }
.road__now-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.road__now-btns button { min-height: 44px; padding: .35rem .85rem; border: 1.5px solid var(--burg); border-radius: 2px; background: none; color: var(--burg); font-weight: 700; }
.road__now-btns button[aria-pressed="true"] { background: var(--burg); color: var(--on-burg); }
.road__now-out { margin: 0; flex-basis: 100%; color: var(--ink); }
.road__list { display: grid; gap: 2.5rem 1.75rem; grid-template-columns: 1fr; counter-reset: yr; border-top: 4px double var(--burg); padding-top: 1.5rem; }
@media (min-width: 576px) { .road__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .road__list { grid-template-columns: repeat(4, 1fr); } }
.road__year { position: relative; padding-top: .25rem; transition: opacity .3s; }
.road__num {
  font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 9vw, 7.5rem); line-height: .8; margin: 0 0 1rem;
  color: transparent; -webkit-text-stroke: 2px var(--burg); transition: color .3s;
}
.road__fig img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.road__h { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.65rem; line-height: 1; color: var(--burg); margin: 1rem 0 .5rem; }
.road__text { font-size: .975rem; }
.road__mark { display: inline-block; margin: 0; font-weight: 700; font-size: .9375rem; color: var(--mustard-ink); border-top: 3px solid var(--mustard); padding-top: .35rem; }
.road__list.has-active .road__year:not(.is-next) { opacity: .5; }
.road__year.is-next .road__num { color: var(--burg); -webkit-text-stroke-color: var(--burg); }
.road__year.is-next::before { content: ""; position: absolute; top: -1.75rem; left: 0; right: 0; height: 6px; background: var(--mustard); }
.road__foot { margin: 2.5rem 0 0; }

/* ---------- results board ---------- */
.results { background: var(--burg-deep); color: var(--on-burg); padding: var(--gap-sec) 0; }
.results__text { color: var(--on-burg-soft); }
.board__frame { border: 1px solid var(--mustard); outline: 1px solid var(--mustard); outline-offset: -7px; padding: 1.75rem 1.5rem 1.25rem; }
.board__flag { color: var(--mustard); font-weight: 700; font-size: .9375rem; text-align: center; margin-bottom: 1rem; }
.board__table { width: 100%; border-collapse: collapse; }
.board__table th, .board__table td { text-align: left; padding: .7rem .5rem; border-bottom: 1px dashed rgba(235, 203, 139, .45); vertical-align: top; }
.board__table thead th { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; color: var(--mustard); border-bottom: 2px solid var(--mustard); }
.board__table tbody th { font-family: var(--display); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; }
.board__blank { color: var(--on-burg-soft); font-size: .9375rem; }
.board__note { margin: 1rem 0 0; font-size: .9375rem; color: var(--on-burg-soft); }
.board .ph--board { margin-top: 1rem; }
@media (max-width: 575.98px) {
  .board__frame { padding: 1.25rem .9rem .75rem; }
  .board__table thead { display: none; }
  .board__table tr { display: grid; grid-template-columns: auto 1fr; gap: 0 .75rem; padding: .6rem 0; border-bottom: 1px dashed rgba(235, 203, 139, .45); }
  .board__table th, .board__table td { border: 0; padding: .1rem 0; }
  .board__table td.board__blank { grid-column: 1 / -1; }
}

/* ---------- steps (home) ---------- */
.admit { padding: var(--gap-sec) 0; }
.admit__text { color: var(--ink-soft); }
.steps { display: grid; grid-template-columns: 1fr; counter-reset: step; border-top: 4px double var(--burg); }
@media (min-width: 768px) { .steps { grid-template-columns: 1fr 1fr; } }
.steps__item { counter-increment: step; padding: 1.5rem 1.5rem 1.25rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) { .steps__item:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--rule); } }
.steps__item::before { content: counter(step); display: block; font-family: var(--display); font-weight: 800; font-size: 3.5rem; line-height: .9; color: var(--mustard-ink); margin-bottom: .5rem; }
.steps__h { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; color: var(--burg); margin-bottom: .35rem; }
.steps__item p { margin: 0; color: var(--ink-soft); }

/* ---------- notices + voices ---------- */
.notes-sec { padding: 0 0 var(--gap-sec); }
.notices li { padding: 1rem 0; border-top: 1px solid var(--rule); }
.notices li:last-child { border-bottom: 1px solid var(--rule); }
.notices__t { font-weight: 700; color: var(--burg); margin-bottom: .25rem; }
.notices p:last-child { margin: 0; color: var(--ink-soft); }

/* ---------- visit / map ---------- */
.visit-sec, .contact-map { padding: 0 0 var(--gap-sec); }
.visit { border: 1px solid var(--rule); border-top: 6px solid var(--burg); background: var(--paper); }
.visit__info { padding: 2rem 1.5rem; }
.visit__h { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 4vw, 3.25rem); line-height: .95; color: var(--burg); margin-bottom: 1rem; }
.visit__addr { font-size: 1.125rem; margin-bottom: .5rem; }
.visit__meta { color: var(--ink-soft); font-size: .9375rem; }
.actions li { border-top: 1px solid var(--rule); }
.actions li:last-child { border-bottom: 1px solid var(--rule); }
.actions a { display: flex; align-items: center; gap: .7rem; min-height: 52px; font-weight: 700; text-decoration: none; }
.actions a:hover { text-decoration: underline; }
.visit__map { border-top: 1px solid var(--rule); }
@media (min-width: 992px) { .visit__info { padding: 2.5rem; } .visit__map { border-top: 0; border-left: 1px solid var(--rule); } }
.map { height: 100%; display: flex; flex-direction: column; }
.map iframe { display: block; width: 100%; flex: 1 1 auto; min-height: 340px; border: 0; }
.map__fallback { padding: 1.25rem 1.5rem; border-top: 1px solid var(--rule); }
.map__fallback-name { display: flex; align-items: center; gap: .5rem; font-weight: 700; margin-bottom: .25rem; }

/* ---------- page heads ---------- */
.phead { position: relative; padding: 2.25rem 0 3.25rem; }
.phead--burg { background-color: var(--burg); background-image: var(--pin); color: var(--on-burg); }
.phead--burg::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(52%, 640px); height: 10px; background: var(--mustard); clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.phead--ivory { border-bottom: 4px double var(--burg); }
.phead--short { padding-bottom: 2rem; }
.phead__h { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(3rem, 9vw, 5.75rem); line-height: .9; margin: 1rem 0 1.25rem; }
.phead--ivory .phead__h { color: var(--burg); }
.phead__lede { font-size: 1.125rem; max-width: 42rem; margin: 0; }
.phead--burg .phead__lede { color: var(--on-burg); }
.phead__hi { margin: .75rem 0 0; color: var(--on-burg-soft); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9375rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .7; }
.phead--burg .crumbs a { color: var(--on-burg); }

/* cut-corner figures */
.cut-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; clip-path: polygon(0 0, 88% 0, 100% 14%, 100% 100%, 0 100%); }
.cut-fig--small { margin-top: 1.5rem; }

/* ---------- about ---------- */
.about-intro, .about-lead, .acad-road, .acad-subj, .adm-steps, .adm-faq, .expect, .contact-actions, .contact-form, .prose-sec { padding: var(--gap-sec) 0; }
.about-intro { padding-bottom: calc(var(--gap-sec) * .8); }
.ledger { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: .975rem; }
.ledger th, .ledger td { text-align: left; padding: .75rem .5rem .75rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger thead th { color: var(--burg); border-bottom: 3px double var(--burg); }
.ledger td:last-child { color: var(--ink-soft); font-size: .9375rem; }
.about-ph { padding: var(--gap-sec) 0; }
.about-ph .ph--board { margin-bottom: 2.5rem; }
.quote-ph { margin: 0; padding: 2rem 1.75rem; border: 1.5px dashed rgba(235, 203, 139, .75); }
.quote-ph p { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.15; }
.quote-ph footer { color: var(--on-burg-soft); font-size: .9375rem; }
.slots { margin-bottom: 2rem; }
.slot { display: grid; gap: .25rem 1.5rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.slot:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) { .slot { grid-template-columns: 14rem 1fr; align-items: baseline; } }
.slot__role { font-weight: 700; color: var(--burg); }

/* ---------- academics ---------- */
@media (min-width: 992px) { .acad-road__side { position: sticky; top: 110px; } }
.vroad { border-top: 4px double var(--burg); }
.vroad__year { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1.75rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 110px; }
@media (min-width: 768px) { .vroad__year { grid-template-columns: 8.5rem 1fr; gap: 1.5rem; } }
.vroad__num { font-family: var(--display); font-weight: 800; font-size: clamp(4.5rem, 9vw, 7rem); line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--burg); margin: 0; }
.vroad__year:target .vroad__num { color: var(--burg); }
.vroad__h { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.85rem; line-height: 1; color: var(--burg); margin-bottom: .6rem; }
.vroad__body p:last-child { margin: 0; color: var(--ink-soft); }
.acad-streams { padding: var(--gap-sec) 0; }
.acad-streams__intro { color: var(--on-burg-soft); max-width: 40rem; }
.acad-streams .ph--board { margin: 1rem 0 2rem; }
.table-scroll { overflow-x: auto; }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 1rem .9rem 1rem 0; border-bottom: 1px solid rgba(245, 243, 238, .2); }
.compare thead th { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 2.4rem; line-height: 1; color: var(--mustard); border-bottom: 3px double var(--mustard); scroll-margin-top: 110px; }
.compare tbody th { color: var(--mustard-soft); font-weight: 700; width: 12rem; }
.acad-streams__tip { margin: 2rem 0 0; max-width: 46rem; }

/* ---------- admissions ---------- */
.bigsteps { counter-reset: s; border-top: 4px double var(--burg); }
.bigsteps__item { counter-increment: s; display: grid; grid-template-columns: 4rem 1fr; gap: .25rem 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.bigsteps__item::before { content: counter(s); grid-row: span 2; font-family: var(--display); font-weight: 800; font-size: 4.5rem; line-height: .8; color: var(--burg); }
.bigsteps__h { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.85rem; line-height: 1; color: var(--burg); }
.bigsteps__item p { margin: 0; color: var(--ink-soft); }
.adm-steps .cut-fig { margin-top: 1.5rem; }
.adm-guide { padding: var(--gap-sec) 0; }
.agetable { width: 100%; border-collapse: collapse; }
.agetable caption { caption-side: bottom; text-align: left; color: var(--on-burg-soft); font-size: .9375rem; padding-top: .75rem; }
.agetable th, .agetable td { text-align: left; padding: .8rem 0; border-bottom: 1px solid rgba(245, 243, 238, .2); }
.agetable thead th { color: var(--mustard); border-bottom: 3px double var(--mustard); }
.agetable tbody th { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; }
.adm-guide__lede { color: var(--on-burg-soft); }
.doclist { display: grid; grid-template-columns: 1fr; gap: 0 2rem; }
@media (min-width: 768px) { .doclist { grid-template-columns: 1fr 1fr; } }
.doclist li { display: flex; gap: .75rem; padding: .7rem 0; border-top: 1px solid rgba(245, 243, 238, .2); }
.doclist li::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: .45em; background: var(--mustard); clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%); }
.faq__item { border-top: 1px solid var(--rule); }
.faq__item:last-child { border-bottom: 1px solid var(--rule); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 56px; padding: .9rem 0; font-weight: 700; font-size: 1.0625rem; color: var(--burg); cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--burg), var(--burg)) center / 100% 2px no-repeat, linear-gradient(var(--burg), var(--burg)) center / 2px 100% no-repeat; transition: transform .25s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 1.25rem; margin: 0; max-width: 46rem; }
.adm-form { background-color: var(--burg-deep); background-image: var(--pin); color: var(--on-burg); padding: var(--gap-sec) 0; }
.adm-form a { color: var(--mustard-soft); }

/* ---------- form ---------- */
.form { max-width: 52rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .85rem; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid #8C8079; border-radius: 2px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--mustard); outline-offset: 1px; border-color: var(--burg); }
.field [aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
.field__hint { font-size: .875rem; color: var(--ink-soft); margin: .3rem 0 0; }
.field__err { font-size: .9rem; font-weight: 600; color: var(--err); margin: .3rem 0 0; }
.field__err:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.form__status { margin: 0; font-weight: 600; }
.form__status.is-ok { color: #1F5E3A; }
.form__status.is-err { color: var(--err); }
.form__small { font-size: .875rem; color: var(--ink-soft); margin: 1rem 0 0; }
.hp { position: absolute; left: -9999px; }
.form--dark .opt, .form--dark .field__hint, .form--dark .form__small { color: var(--on-burg-soft); }
.form--dark .field__err, .form--dark .form__status.is-err { color: var(--err-dark); }
.form--dark .form__status.is-ok { color: #BDE8C9; }
.form--dark .field [aria-invalid="true"] { border-color: var(--err-dark); }
.form--dark .form__small a { color: var(--mustard-soft); }

/* ---------- campus ---------- */
.expect__list { display: grid; grid-template-columns: 1fr; gap: 0 2rem; border-top: 4px double var(--burg); }
@media (min-width: 768px) { .expect__list { grid-template-columns: 1fr 1fr; } }
.expect__item { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.expect__h { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; color: var(--burg); margin-bottom: .25rem; }
.expect__item p { margin: 0; }
.expect__item .ph { margin-top: .5rem; }
.gallery-sec { padding: var(--gap-sec) 0; }
.gallery-sec__note { color: var(--on-burg-soft); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 2rem; }
@media (min-width: 992px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 1rem; }
  .gallery__item--0 { grid-row: span 2; }
  .gallery__item--3 { grid-column: span 2; }
  .gallery__item--5 { grid-column: span 2; }
}
.gallery__btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--burg-deep); overflow: hidden; }
.gallery__btn img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s var(--ease); }
@media (min-width: 992px) { .gallery__btn img { aspect-ratio: auto; } }
.gallery__btn:hover img { transform: scale(1.03); }
.gallery__cap { position: absolute; left: 0; bottom: 0; padding: .35rem .7rem; background: var(--burg-deep); color: var(--on-burg); font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.2rem; }
.gallery__ico { position: absolute; top: .6rem; right: .6rem; padding: 4px; width: 30px; height: 30px; background: var(--mustard); color: var(--ink); }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(30, 14, 18, .94); display: grid; place-items: center; padding: 1rem; }
.lightbox__inner { position: relative; width: min(1100px, 100%); color: var(--on-burg); }
.lightbox__img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
.lightbox__cap { margin: .75rem 3.5rem 0 0; }
.lightbox__count { margin: 0; color: var(--on-burg-soft); font-size: .9375rem; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 2px; background: var(--mustard); color: var(--ink); }
.lightbox__close { top: -.5rem; right: 0; transform: translateY(-100%); }
.lightbox__prev { left: .5rem; top: 40%; }
.lightbox__next { right: .5rem; top: 40%; }

/* ---------- contact ---------- */
.contact-actions { padding-bottom: 2.5rem; }
.bigactions { margin: 0; border-top: 4px double var(--burg); }
.bigactions li { border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) { .bigactions li + li { border-left: 1px solid var(--rule); } }
.bigactions a { display: grid; grid-template-columns: auto 1fr; gap: .1rem .9rem; align-items: center; padding: 1.5rem 1.25rem; text-decoration: none; color: var(--ink); height: 100%; transition: background-color .2s; }
.bigactions a:hover { background: var(--paper); }
.bigactions .ico { grid-row: span 2; width: 28px; height: 28px; color: var(--burg); }
.bigactions__t { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.75rem; line-height: 1; color: var(--burg); }
.bigactions__d { color: var(--ink-soft); }

/* ---------- prose ---------- */
.prose { max-width: 44rem; }
.prose ul { list-style: square; padding-left: 1.25rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- footer ---------- */
.site-footer { background-color: var(--burg-deep); background-image: var(--pin); color: var(--on-burg); padding: 4rem 0 1.5rem; border-top: 8px solid var(--mustard); }
.site-footer a { color: var(--on-burg); }
.site-footer__logo { width: 280px; max-width: 100%; height: auto; }
.site-footer__note { margin-top: 1rem; font-size: .875rem; color: var(--on-burg-soft); }
.site-footer__h { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; color: var(--mustard); margin-bottom: .75rem; }
.site-footer__addr { margin-bottom: .75rem; }
.site-footer__muted { color: var(--on-burg-soft); font-size: .9375rem; }
.site-footer__links li { padding: .2rem 0; }
.site-footer__base { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(245, 243, 238, .2); font-size: .875rem; color: var(--on-burg-soft); }
.site-footer__base p { margin: 0 0 .35rem; }

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