@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/assets/fonts/cinzel-normal-500-800.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: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-normal-400-700.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: 'Libre Caslon Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/libre-caslon-text-italic-400.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: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/libre-caslon-text-normal-400.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: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/libre-caslon-text-normal-700.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;
}

/* St. Gregory the Great Academy, direction F.
   Navy and gold from the crest, oxblood for liturgical red. Bold serif headings (switchable for review),
   Cinzel for small capital labels, Instrument Sans for reading. Every font is served from /assets/fonts. */

:root {
  --navy-950: #0a1830;
  --navy-900: #0d1f40;
  --navy-800: #132a52;
  --navy-700: #16315f;
  --navy-600: #24477f;
  --gold-700: #8c6a26;
  --gold-600: #a1782b;
  --gold-500: #b88a35;
  --gold-300: #e2b65c;
  --gold-200: #e9cf95;
  --oxblood: #8a2f2a;
  --ink: #1e2633;
  --muted: #59616e;
  --line: #e4dccb;
  --stone: #f1ede3;
  --paper: #fbf9f4;
  --white: #ffffff;

  --display: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --display-weight: 700;
  --display-italic-weight: 400;
  --display-tracking: -0.02em;
  --caps: "Cinzel", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Libre Caslon Text", Georgia, serif;

  --wrap: 1200px;
  --gutter: clamp(18px, 4.2vw, 48px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
  --shadow-lg: 0 24px 60px rgba(10, 24, 48, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .2s var(--ease); }
a:hover { color: var(--oxblood); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding-left: 1.2em; }
li + li { margin-top: .4em; }
button { font: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy-900); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 820px; }

/* ---------- Type ---------- */
h1, h2, h3, h4, .display { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); color: var(--navy-800); line-height: 1.06; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.7rem); line-height: 1.15; }
h1 em, h2 em, .display em { font-style: italic; font-weight: var(--display-italic-weight); }
.kicker { font-family: var(--caps); font-weight: 600; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-600); }
.lead { font-size: clamp(1.08rem, 1rem + .3vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); margin: 2.2rem 0 .7rem; }
.prose h3 { margin: 1.8rem 0 .5rem; }
.prose ul, .prose ol { margin: .8em 0; }
.num { font-family: var(--mono); font-variant-numeric: lining-nums tabular-nums; }

/* Rules: the double gold line, brought back from the original design */
.rule2 { height: 5px; border-top: 1px solid var(--gold-500); border-bottom: 1px solid var(--gold-500); opacity: .9; }
.rule2.on-dark { border-color: rgba(226, 182, 92, .7); }
.rule-cross { display: flex; align-items: center; gap: 16px; color: var(--gold-500); font-size: 1rem; }
.rule-cross::before, .rule-cross::after { content: ""; flex: 1; height: 5px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; opacity: .8; }
.rule-cross.short { max-width: 260px; }
.rule-cross.center { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .75em 1.4em; border-radius: var(--radius); border: 1.5px solid transparent; font: 700 .97rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-gold { background: var(--gold-500); color: #fff; }
.btn-gold:hover { background: var(--oxblood); color: #fff; box-shadow: 0 8px 22px rgba(138, 47, 42, .25); }
.btn-navy { background: var(--navy-700); color: #fff; }
.btn-navy:hover { background: var(--navy-900); color: #fff; box-shadow: 0 8px 22px rgba(13, 31, 64, .25); }
.btn-line { border-color: var(--navy-700); color: var(--navy-700); background: transparent; }
.btn-line:hover { background: var(--navy-700); color: #fff; }
.btn-light { border-color: rgba(255, 255, 255, .85); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-light:hover { background: #fff; color: var(--navy-800); }
.btn-soft { background: var(--stone); color: var(--navy-800); }
.btn-soft:hover { background: #e7e0cf; color: var(--navy-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.more { font-weight: 700; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 2px; transition: background-size .35s var(--ease), color .2s; }
.more:hover { background-size: 100% 1px; }
.more::after { content: "→"; transition: transform .25s var(--ease); }
.more:hover::after { transform: translateX(3px); }

/* ---------- Utility bar ---------- */
.utility { background: var(--navy-950); color: #d9c48f; font-size: .84rem; }
.utility .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 38px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { color: var(--gold-200); }
.feast { display: flex; gap: .5em; align-items: baseline; min-width: 0; }
.feast .x { color: var(--gold-300); }
.utility-links { display: flex; gap: 18px; align-items: center; }
.utility .schola { color: var(--gold-300); font-weight: 700; }
@media (max-width: 760px) { .utility-links .hide-sm { display: none; } .utility .wrap { justify-content: center; text-align: center; } .feast { justify-content: center; } }

/* ---------- Header and navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .97); transition: box-shadow .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(10, 24, 48, .1); }
.site-header .rule2 { opacity: 1; }
.site-header .bar { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; color: var(--navy-800); min-width: 0; }
.brand img { width: 58px; height: 58px; flex: none; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-4deg) scale(1.03); }
.brand .name { display: grid; line-height: 1.1; }
.brand .name b { font: 700 1.28rem/1.1 var(--caps); letter-spacing: .06em; color: var(--navy-800); }
.brand .name span { font: 600 .7rem/1.3 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-600); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav > ul > li { margin: 0; position: relative; }
.nav-link, .nav-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 13px; border: 0; background: none; cursor: pointer; font: 600 .97rem/1 var(--sans); color: var(--ink); text-decoration: none; border-radius: var(--radius); position: relative; }
.nav-link::after, .nav-toggle::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 6px; height: 2px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link:hover::after, .nav-toggle:hover::after, .has-sub.open > .nav-toggle::after, .nav-link[aria-current="page"]::after, .nav-toggle.is-current::after { transform: scaleX(1); }
.nav-link:hover, .nav-toggle:hover { color: var(--navy-700); }
.nav-toggle svg { width: 11px; height: 11px; transition: transform .25s var(--ease); }
.has-sub.open > .nav-toggle svg { transform: rotate(180deg); }
.submenu { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 10px); left: -8px; min-width: 300px; background: #fff; box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold-500); border-radius: 0 0 var(--radius) var(--radius); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s; }
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.submenu li { margin: 0; }
.submenu a { display: block; padding: 10px 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; line-height: 1.3; transition: background-color .18s; }
.submenu a:hover, .submenu a:focus-visible { background: var(--stone); color: var(--navy-800); }
.submenu a b { display: block; font-weight: 600; }
.submenu a small { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.submenu a[aria-current="page"] b { color: var(--oxblood); }
.has-sub.open > .submenu { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease), transform .22s var(--ease); }
@media (hover: hover) and (min-width: 1101px) { .has-sub:hover > .submenu { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease), transform .22s var(--ease); } }
.nav .btn { margin-left: 10px; min-height: 44px; padding: .6em 1.3em; }
.menu-button { display: none; width: 48px; height: 48px; border: 0; border-radius: var(--radius); background: var(--stone); color: var(--navy-800); cursor: pointer; align-items: center; justify-content: center; }
.menu-button span:not(.sr-only) { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: background-color .2s; }
.menu-button span:not(.sr-only)::before, .menu-button span:not(.sr-only)::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu-button span:not(.sr-only)::before { top: -7px; }
.menu-button span:not(.sr-only)::after { top: 7px; }
.menu-open .menu-button span:not(.sr-only) { background: transparent; }
.menu-open .menu-button span:not(.sr-only)::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-button span:not(.sr-only)::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  :root { --header-h: 72px; }
  .menu-button { display: inline-flex; }
  .brand img { width: 48px; height: 48px; }
  .brand .name b { font-size: 1.08rem; }
  .nav { position: fixed; left: 0; right: 0; top: var(--nav-top, 110px); bottom: 0; display: block; overflow-y: auto; background: var(--paper); padding: 8px var(--gutter) 40px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav > ul { display: block; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav-link, .nav-toggle { width: 100%; justify-content: space-between; min-height: 58px; padding: 0 4px; font-size: 1.12rem; }
  .nav-link::after, .nav-toggle::after { display: none; }
  .nav-link[aria-current="page"], .nav-toggle.is-current { color: var(--oxblood); }
  .submenu { position: static; min-width: 0; box-shadow: none; border-top: 0; padding: 0 0 12px 8px; opacity: 1; visibility: visible; transform: none; display: none; transition: none; }
  .has-sub.open > .submenu { display: block; }
  .nav .btn { width: 100%; margin: 24px 0 0; min-height: 54px; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand .name span { letter-spacing: .14em; } .brand .name b { font-size: .98rem; } }

/* ---------- Hero (home) ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--navy-900); overflow: hidden; min-height: clamp(560px, 82vh, 760px); display: grid; align-items: center; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transform: scale(1.06); animation: settle 2.6s var(--ease) forwards; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(10, 24, 48, .94) 0%, rgba(10, 24, 48, .86) 38%, rgba(10, 24, 48, .45) 70%, rgba(10, 24, 48, .25) 100%),
  linear-gradient(0deg, rgba(10, 24, 48, .7) 0%, rgba(10, 24, 48, 0) 40%); }
.hero .wrap { padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 9vw, 110px); display: grid; gap: 22px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 1.5rem + 4.4vw, 5rem); max-width: 15ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero h1 em { color: var(--gold-200); display: block; }
.hero .lead { color: rgba(255, 255, 255, .92); font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); max-width: 34em; }
.hero .kicker { color: var(--gold-300); }
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(180deg, rgba(10, 24, 48, .55) 0%, rgba(10, 24, 48, .85) 45%, rgba(10, 24, 48, .96) 100%); }
  .hero-media img { object-position: 30% 30%; }
  .hero { align-items: end; }
}
@keyframes settle { to { transform: scale(1); } }

/* Facts band */
.facts { background: var(--navy-900); color: #fff; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { margin: 0; padding: 22px 22px; display: flex; gap: 12px; align-items: baseline; font: 600 .84rem/1.45 var(--caps); letter-spacing: .12em; text-transform: uppercase; border-left: 1px solid rgba(255, 255, 255, .12); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts li::before { content: "✠"; color: var(--gold-300); font-family: var(--sans); letter-spacing: 0; }
@media (max-width: 980px) { .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts li:nth-child(odd) { border-left: 0; padding-left: 0; } .facts li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); } }
@media (max-width: 520px) { .facts ul { grid-template-columns: minmax(0, 1fr); } .facts li { border-left: 0 !important; padding-left: 0; } .facts li + li { border-top: 1px solid rgba(255, 255, 255, .12); } }

/* ---------- Page head ---------- */
.page-head { position: relative; background: var(--navy-800); color: #fff; overflow: hidden; isolation: isolate; }
.page-head .wrap { position: relative; }
.page-head .wrap::after { content: ""; position: absolute; right: clamp(-40px, -2vw, 0px); top: 50%; width: clamp(240px, 30vw, 380px); height: clamp(240px, 30vw, 380px); transform: translateY(-50%); background: url("/assets/img/crest-768.webp") center / contain no-repeat; opacity: .06; z-index: -1; }
.page-head .wrap { padding-top: clamp(44px, 7vw, 84px); padding-bottom: clamp(40px, 6vw, 72px); display: grid; gap: 14px; }
.page-head h1 { color: #fff; max-width: 20ch; }
.page-head .lead { color: rgba(255, 255, 255, .86); }
.page-head .kicker { color: var(--gold-300); }
.crumbs { font-size: .85rem; color: rgba(255, 255, 255, .7); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.crumbs a:hover { color: var(--gold-200); }
.page-head + .rule2 { margin-top: 3px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section.stone { background: var(--stone); }
.section.white { background: var(--white); }
.section.navy { background: var(--navy-700); color: #fff; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section.navy .kicker { color: var(--gold-300); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 780px; }
.section-head.row { max-width: none; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: end; justify-content: space-between; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.top { align-items: start; }
.split.wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split, .split.wide-left { grid-template-columns: minmax(0, 1fr); } }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 16px; align-content: start; }

/* Tiles and cards: filled, never outlined */
.tile { background: var(--white); display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
a.tile, .tile.lift { text-decoration: none; color: inherit; }
a.tile:hover, .tile.lift:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(10, 24, 48, .12); }
.tile-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-800); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
a.tile:hover .tile-media img { transform: scale(1.04); }
.tile-body { padding: clamp(20px, 2.2vw, 28px); display: grid; gap: 10px; align-content: start; flex: 1; }
.tile-body .more { margin-top: 4px; justify-self: start; }
.panel { background: var(--white); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 34px); }
.panel.stone { background: var(--stone); }
.panel.navy { background: var(--navy-700); color: #fff; }
.panel.navy h2, .panel.navy h3 { color: #fff; }

/* Feature list (navy band) */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .14); }
.features > div { padding: 28px 28px 30px 0; display: grid; gap: 8px; align-content: start; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.features > div:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .14); }
.features h3 { color: var(--gold-200); font-size: 1.45rem; }
.features p { color: rgba(255, 255, 255, .84); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } .features > div { padding-left: 0 !important; border-left: 0 !important; padding-right: 24px; } .features > div:nth-child(even) { padding-left: 24px !important; border-left: 1px solid rgba(255, 255, 255, .14) !important; } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } .features > div, .features > div:nth-child(even) { padding: 22px 0 !important; border-left: 0 !important; } }

/* Options (in person / hybrid / virtual) */
.options { display: grid; gap: 10px; }
.option { background: var(--stone); padding: 20px 24px; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; border-radius: var(--radius); align-items: baseline; }
.option b { font: 700 .9rem/1.3 var(--caps); letter-spacing: .1em; color: var(--oxblood); text-transform: uppercase; }
@media (max-width: 520px) { .option { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Dates */
.dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.date { background: var(--white); display: grid; grid-template-columns: 88px minmax(0, 1fr); border-radius: var(--radius); overflow: hidden; }
.date .day { background: var(--navy-700); color: #fff; display: grid; place-content: center; text-align: center; padding: 14px 0; }
.date .day.holy { background: var(--oxblood); }
.date .day b { font: var(--display-weight) 2.3rem/1 var(--display); }
.date .day span { font: 700 .72rem/1.4 var(--caps); letter-spacing: .14em; color: var(--gold-300); text-transform: uppercase; }
.date .day.holy span { color: var(--gold-200); }
.date .what { padding: 16px 18px; }
.date .what b { display: block; }
.date .what span { color: var(--muted); font-size: .95rem; }
@media (max-width: 980px) { .dates { grid-template-columns: minmax(0, 1fr); } }

/* Quote */
.quote { text-align: center; display: grid; gap: 18px; justify-items: center; }
.quote p { font: italic var(--display-italic-weight) clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem)/1.3 var(--display); color: var(--navy-800); max-width: 28em; }
.quote cite { font: 600 .8rem/1.4 var(--caps); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-600); }

/* ---------- Faculty ---------- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .people { grid-template-columns: minmax(0, 1fr); } }
.person { display: grid; grid-template-columns: 108px minmax(0, 1fr); text-align: left; background: var(--white); border: 0; padding: 0; cursor: pointer; border-radius: var(--radius); overflow: hidden; color: inherit; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.person:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(10, 24, 48, .12); }
.person img, .person .ini { width: 108px; height: 100%; min-height: 132px; object-fit: cover; }
.ini { display: grid; place-items: center; background: var(--navy-700); color: var(--gold-200); font: var(--display-weight) 2rem/1 var(--display); }
.person .who { padding: 16px 18px; display: grid; gap: 4px; align-content: center; }
.person .who b { font: var(--display-weight) 1.3rem/1.15 var(--display); letter-spacing: var(--display-tracking); color: var(--navy-800); }
.person .who span { color: var(--oxblood); font-weight: 700; font-size: .9rem; }
.person .who small { color: var(--muted); font-size: .84rem; }
.board-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .board-split { grid-template-columns: minmax(0, 1fr); } }
.board { display: grid; border-top: 1px solid var(--gold-500); }
.board > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--line); }
.board > div:last-child { border-bottom-color: var(--gold-500); }
.board b { font: var(--display-weight) clamp(1.3rem, 1.15rem + .5vw, 1.55rem)/1.2 var(--display); color: var(--navy-800); }
.board span { font: 600 .76rem/1.3 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); }

/* Dialog */
dialog.modal { border: 0; padding: 0; width: min(920px, calc(100% - 28px)); max-height: calc(100% - 40px); border-radius: 6px; background: #fff; color: var(--ink); box-shadow: 0 40px 90px rgba(0, 0, 0, .4); overflow: hidden; }
dialog.modal[open] { animation: pop .32s var(--ease); }
dialog.modal::backdrop { background: rgba(10, 24, 48, .62); backdrop-filter: blur(2px); animation: fade .3s var(--ease); }
.modal-inner { display: grid; grid-template-columns: 300px minmax(0, 1fr); max-height: calc(100vh - 40px); }
.modal-side { background: var(--navy-700); color: #fff; overflow: hidden; }
.modal-side img, .modal-side .ini { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; height: auto; min-height: 0; font-size: 4rem; }
.modal-side .meta { padding: 18px 22px 24px; display: grid; gap: 4px; }
.modal-side .meta b { color: var(--gold-200); }
.modal-side .meta span { font: italic 500 1rem/1.4 var(--display); color: rgba(255, 255, 255, .82); }
.modal-main { padding: clamp(24px, 3vw, 38px); display: grid; gap: 14px; align-content: start; overflow-y: auto; }
.modal-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.icon-btn { width: 44px; height: 44px; flex: none; border: 0; border-radius: var(--radius); background: var(--stone); color: var(--navy-800); cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.icon-btn:hover { background: #e7e0cf; }
.icon-btn svg { width: 18px; height: 18px; }
.modal-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.modal-nav .btn { min-height: 44px; font-size: .9rem; }
@media (max-width: 720px) { .modal-inner { grid-template-columns: minmax(0, 1fr); } .modal-side { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; } .modal-side img, .modal-side .ini { aspect-ratio: 1; font-size: 2rem; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.swap { animation: swap .35s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Curriculum explorer ---------- */
.explorer { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.explorer-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.mode { display: grid; grid-template-columns: 1fr 1fr; background: var(--stone); border-radius: var(--radius); padding: 4px; }
.mode button { border: 0; background: transparent; min-height: 40px; border-radius: 3px; font-weight: 700; font-size: .9rem; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.mode button[aria-pressed="true"] { background: #fff; color: var(--navy-800); box-shadow: 0 1px 4px rgba(10, 24, 48, .12); }
.picker { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.picker li { margin: 0; }
.picker button { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: transparent; padding: 10px 12px; min-height: 46px; border-radius: var(--radius); cursor: pointer; color: var(--ink); font-weight: 600; transition: background-color .2s, color .2s; }
.picker button img { width: 40px; height: 40px; object-fit: cover; border-radius: 3px; flex: none; }
.picker button:hover { background: var(--stone); }
.picker button[aria-pressed="true"] { background: var(--navy-700); color: #fff; }
.grades { display: flex; flex-wrap: wrap; gap: 6px; }
.grades button { min-width: 48px; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--radius); background: var(--stone); color: var(--navy-800); font-weight: 700; font-size: .92rem; cursor: pointer; transition: background-color .2s, color .2s, transform .2s; }
.grades button:hover { background: #e7e0cf; }
.grades button[aria-pressed="true"] { background: var(--navy-700); color: #fff; }
.grades button.empty { color: #9097a2; }
.ex-panel { background: #fff; border-radius: var(--radius); overflow: hidden; }
.ex-head { position: relative; min-height: 210px; display: grid; align-items: end; color: #fff; background: var(--navy-800); isolation: isolate; }
.ex-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ex-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 24, 48, .92) 0%, rgba(10, 24, 48, .7) 55%, rgba(10, 24, 48, .3) 100%); }
.ex-head .in { padding: 26px clamp(22px, 3vw, 36px); display: grid; gap: 6px; }
.ex-head h2 { color: #fff; font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.8rem); }
.ex-head p { color: rgba(255, 255, 255, .85); }
.ex-head .credit { font-size: .75rem; color: rgba(255, 255, 255, .62); }
.ex-body { padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; }
.grade-block { display: grid; gap: 18px; align-items: start; }
.grade-block .stack { max-width: 72ch; }
.shelf { display: grid; gap: 12px; padding-top: 18px; border-top: 1px dotted var(--line); }
.grade-block:not([hidden]) ~ .grade-block:not([hidden]) { padding-top: 26px; border-top: 1px solid var(--line); }
.grade-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; grid-column: 1 / -1; }
.grade-title b { font: var(--display-weight) clamp(2.6rem, 2rem + 2vw, 4rem)/.9 var(--display); color: var(--oxblood); }
.grade-title span { font: var(--display-weight) 1.4rem/1.1 var(--display); color: var(--navy-800); }
.books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 18px 16px; }
.books li { margin: 0; display: grid; gap: 8px; align-content: start; }
.books .cover { aspect-ratio: 3 / 4; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; display: grid; place-items: center; padding: 10px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.books li:hover .cover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(10, 24, 48, .12); }
.books img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 4px 10px rgba(10, 24, 48, .18); }
.books .t { font-size: .82rem; line-height: 1.3; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.book-list li { margin: 0; background: var(--stone); padding: 4px 10px; border-radius: 99px; font-size: .85rem; color: var(--navy-800); }
.ex-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 16px clamp(22px, 3vw, 36px); border-top: 1px solid var(--line); background: var(--paper); }
@media (max-width: 960px) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .explorer-side { position: static; }
  .picker { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .picker li { flex: none; scroll-snap-align: start; }
  .picker button { white-space: nowrap; background: var(--stone); }
  .picker button img { display: none; }
}
@media (max-width: 640px) { .books { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); } }

/* ---------- Forms and calculators ---------- */
.field { display: grid; gap: 6px; }
.field > span, .field > legend { font-weight: 700; font-size: .92rem; color: var(--navy-800); }
.field small { color: var(--muted); font-size: .84rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid #d8d0bd; border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(36, 71, 127, .14); }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money input { padding-left: 28px; font-family: var(--mono); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius); background: var(--stone); font-weight: 600; font-size: .92rem; color: var(--navy-800); cursor: pointer; transition: background-color .2s, color .2s; }
.seg input:checked + span { background: var(--navy-700); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--navy-700); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--gold-500) var(--p, 50%), #e2dac7 var(--p, 50%)); margin: 12px 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--navy-700); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(10, 24, 48, .35); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--navy-700); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(10, 24, 48, .35); cursor: pointer; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tabs button { border: 0; background: none; padding: 14px 18px; min-height: 52px; font-weight: 700; color: var(--muted); cursor: pointer; position: relative; display: grid; text-align: left; gap: 2px; }
.tabs button small { font-weight: 500; font-size: .8rem; }
.tabs button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; background: var(--oxblood); transform: scaleX(0); transition: transform .3s var(--ease); }
.tabs button[aria-selected="true"] { color: var(--navy-800); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 960px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-form { display: grid; gap: 20px; }
.calc-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .calc-form .row2 { grid-template-columns: minmax(0, 1fr); } }
.result { background: var(--navy-700); color: #fff; border-radius: 6px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.result .big { font: var(--display-weight) clamp(3rem, 2.2rem + 3vw, 4.6rem)/1 var(--display); color: var(--gold-200); letter-spacing: var(--display-tracking); }
.result .lines { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.result .lines div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.result .lines b { font-family: var(--mono); font-weight: 500; }
.result .bar { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; display: flex; }
.result .bar i { display: block; height: 100%; background: var(--gold-300); transition: width .5s var(--ease); }
.result .best { background: rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 14px 16px; }
.result .note { font-size: .88rem; color: rgba(255, 255, 255, .75); }
.result details { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 12px; }
.result summary { cursor: pointer; font-weight: 700; color: var(--gold-200); }
.result ol { padding-left: 1.2em; font-size: .92rem; margin-top: 10px; color: rgba(255, 255, 255, .9); }
.result .tot { font-weight: 700; margin-top: 10px; }
.result .btn-row .btn { flex: 1 1 auto; }

/* Accordion (FAQ) */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 2px; font: var(--display-weight) clamp(1.08rem, 1rem + .3vw, 1.24rem)/1.25 var(--display); color: var(--navy-800); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; flex: none; background: linear-gradient(var(--oxblood), var(--oxblood)) center / 14px 2px no-repeat, linear-gradient(var(--oxblood), var(--oxblood)) center / 2px 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 2px 22px; max-width: 70ch; color: var(--ink); }
.faq details[open] .answer { animation: swap .35s var(--ease); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 14px; }
.steps > li { counter-increment: step; margin: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; background: #fff; padding: clamp(20px, 2.5vw, 28px); border-radius: var(--radius); }
.steps > li::before { content: counter(step); width: 56px; height: 56px; display: grid; place-items: center; background: var(--navy-700); color: var(--gold-200); font: var(--display-weight) 1.7rem/1 var(--display); border-radius: var(--radius); }
.steps h3 { margin-bottom: 8px; }
.steps ul { margin-top: 10px; }
@media (max-width: 520px) { .steps > li { grid-template-columns: minmax(0, 1fr); gap: 12px; } .steps > li::before { width: 44px; height: 44px; font-size: 1.3rem; } }

/* Testing timeline */
.seasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .seasons { grid-template-columns: minmax(0, 1fr); } }
.season { background: #fff; border-radius: var(--radius); overflow: hidden; }
.season h3 { background: var(--navy-700); color: #fff; padding: 16px 22px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 1.5rem; }
.season h3 span { font: 600 .78rem/1 var(--caps); letter-spacing: .14em; color: var(--gold-300); }
.season ul { list-style: none; padding: 8px 22px 18px; margin: 0; }
.season li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: .96rem; }
.season li:last-child { border-bottom: 0; }
.season li span { color: var(--muted); white-space: nowrap; font-size: .88rem; }

/* Calendar */
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; color: var(--muted); }
.cal-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.month { background: #fff; border-radius: var(--radius); padding: 16px 16px 12px; }
.month h3 { font-size: 1.2rem; margin-bottom: 10px; display: flex; justify-content: space-between; }
.month h3 span { font: 500 .85rem/1 var(--sans); color: var(--muted); }
.month table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.month th { font-size: .72rem; color: var(--muted); font-weight: 600; padding: 4px 0; }
.month td { text-align: center; padding: 2px; font-size: .86rem; }
.month td span { display: grid; place-items: center; height: 30px; border-radius: 3px; }
.month td.off span { background: var(--navy-700); color: #fff; }
.month td.holy span { background: var(--oxblood); color: #fff; }
.month td.first span { background: var(--gold-500); color: #fff; }
.month td.inserv span { box-shadow: inset 0 0 0 2px var(--gold-500); }
.month td.today span { outline: 2px solid var(--ink); outline-offset: 1px; font-weight: 700; }
.month td.past span { opacity: .45; }

/* Schedule */
.schedule-img { background: #fff; border-radius: var(--radius); padding: clamp(10px, 2vw, 18px); display: block; }
.schedule-img img { width: 100%; }

/* Give */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .ways { grid-template-columns: minmax(0, 1fr); } }
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--navy-700); color: #fff; font-weight: 700; }
.compare thead th span { display: block; font-weight: 500; font-size: .82rem; color: var(--gold-200); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact-list li { margin: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
.contact-list .ic { width: 48px; height: 48px; display: grid; place-items: center; background: var(--stone); color: var(--navy-700); border-radius: var(--radius); }
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list b { display: block; font: 600 .78rem/1.4 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); }
.contact-list a, .contact-list span { font-size: 1.1rem; overflow-wrap: anywhere; }
.form-note { font-size: .88rem; color: var(--muted); }
.form-ok { display: none; background: var(--stone); padding: 16px 18px; border-radius: var(--radius); }
form.sent .form-ok { display: block; animation: swap .35s var(--ease); }

/* Hours of prayer */
.hours { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--gold-500); border-bottom: 1px solid var(--gold-500); }
.hours li { margin: 0; padding: 26px clamp(16px, 2vw, 28px); display: grid; gap: 6px; align-content: start; }
.hours li + li { border-left: 1px solid var(--line); }
.hours .hour-time { font: 600 .74rem/1.2 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); }
.hours b { font: var(--display-weight) clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.1 var(--display); color: var(--navy-800); }
.hours span:last-child { color: var(--muted); }
@media (max-width: 900px) { .hours { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hours li:nth-child(3) { border-left: 0; } .hours li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .hours { grid-template-columns: minmax(0, 1fr); } .hours li + li { border-left: 0; border-top: 1px solid var(--line); } }

figure { margin: 0; }
figcaption, .credit { font-size: .8rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.photo { border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
/* Footer fade: lightness eases in and out; the warm cream keeps its warmth until it is dark, so no pale band appears. */
.foot-fade { height: clamp(110px, 12vw, 170px); background: linear-gradient(180deg, #fbf9f4 0%, #f6f4ef 8%, #eae8e3 17%, #d7d5d0 25%, #c0beba 33%, #a7a5a1 42%, #8a8b8c 50%, #6d727b 58%, #515b6d 67%, #384862 75%, #253859 83%, #182e54 92%, #132a52 100%); position: relative; }
body:has(main > .section.stone:last-child) .foot-fade { background: linear-gradient(180deg, #f1ede3 0%, #ede9df 8%, #e1ddd3 17%, #cfcbc2 25%, #bab6ac 33%, #a29e95 42%, #868682 50%, #6a6e73 58%, #4f5968 67%, #37465f 75%, #243858 83%, #182e54 92%, #132a52 100%); }
body:has(main > .section.white:last-child) .foot-fade { background: linear-gradient(180deg, #ffffff 0%, #fafafa 8%, #ededed 17%, #dadada 25%, #c3c3c3 33%, #a8a9a9 42%, #8b8e92 50%, #6d7480 58%, #515d70 67%, #384864 75%, #25395a 83%, #182e54 92%, #132a52 100%); }
body:has(main > .section.navy:last-child) .foot-fade { background: var(--navy-800); }
.foot-ihs { background: var(--navy-800); color: var(--gold-300); display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); padding: 18px 0 4px; }
.foot-ihs .ihs { width: clamp(76px, 7vw, 96px); height: auto; flex: none; transform: translateY(-16%); }
.cap-rule { flex: 1; height: 5px; border-top: 1px solid rgba(226, 182, 92, .75); border-bottom: 1px solid rgba(226, 182, 92, .75); position: relative; }
.cap-rule::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; background: var(--gold-300); transform: translate(0, -50%) rotate(45deg); }
.cap-rule:first-child::after { right: -2px; }
.cap-rule:last-child::after { left: -2px; }
.site-footer { background: var(--navy-800); color: rgba(255, 255, 255, .8); font-size: .97rem; }
.site-footer a { color: rgba(255, 255, 255, .86); text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--gold-200); }
.site-footer .wrap { max-width: 1400px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; padding-top: 52px; padding-bottom: 48px; }
.footer-top > div { padding: 4px clamp(18px, 2.6vw, 40px); }
.footer-top > div:first-child { padding-left: 0; }
.footer-top > div + div { border-left: 1px solid rgba(226, 182, 92, .32); }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; } .footer-brand { grid-column: 1 / -1; padding: 0 !important; } .footer-top > div:nth-child(2) { padding-left: 0; border-left: 0; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: minmax(0, 1fr); } .footer-top > div, .footer-top > div:nth-child(3) { grid-column: auto; padding: 0; border-left: 0 !important; } .footer-top > div + div { border-top: 1px solid rgba(226, 182, 92, .32); padding-top: 26px; } }
.site-footer h2 { font: 600 .78rem/1.4 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 8px; }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand p { margin: 0; max-width: 36ch; }
.footer-mark { display: flex; align-items: center; gap: 14px; }
.footer-mark img { width: 72px; height: 72px; flex: none; }
.footer-mark span { display: grid; gap: 4px; }
.footer-mark b { font: 700 1.12rem/1.15 var(--caps); letter-spacing: .04em; color: #fff; white-space: nowrap; }
.site-footer li a { white-space: nowrap; }
.footer-mark small { font: 600 .72rem/1.2 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-300); }
.site-footer a.fl-accent { color: #fff; font-weight: 600; }
.site-footer a.fl-gold { color: var(--gold-300); font-weight: 600; }
.site-footer a.fl-accent span, .site-footer a.fl-gold span { display: inline-block; transition: transform .25s var(--ease); }
.site-footer a.fl-accent:hover span, .site-footer a.fl-gold:hover span { transform: translateX(3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .84rem; color: rgba(255, 255, 255, .6); }
.footer-bottom .motto { font: italic var(--display-italic-weight) 1.05rem/1 var(--display); color: var(--gold-300); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.hero [data-rise] { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
@keyframes rise { to { opacity: 1; transform: none; } }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .hero [data-rise] { opacity: 1; transform: none; }
  .hero-media img { transform: none; }
}
@media print { .utility, .site-header, .foot-fade, .foot-ihs, .site-footer { display: none; } }
.mode-subject .by-grade-only { display: none; }
.section.stone .seg input:not(:checked) + span, .panel.stone .seg input:not(:checked) + span { background: #fff; }
@media (max-width: 700px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; }
}

/* Give directly: two ways, side by side rows */
.give-ways { display: grid; background: #fff; border-radius: var(--radius); padding: 6px clamp(18px, 2.4vw, 30px); }
.give-way { display: grid; justify-items: start; gap: 14px; padding: 24px 0; }
.give-way + .give-way { border-top: 1px solid var(--line); }
.give-way h3 { font-size: 1.35rem; margin: 0 0 2px; }
.give-way p { margin: 0; }
.ps-slot { min-height: 48px; display: flex; align-items: center; }
.ps-slot [data-ps-embed] { margin-left: -16px; }

/* Dates to know: date in its own column, description beside it */
.date-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.date-list li { display: grid; grid-template-columns: 8.6em minmax(0, 1fr); gap: 4px 18px; padding: 13px 0; margin: 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.date-list b { font: 700 1rem/1.35 var(--display); color: var(--navy-800); white-space: nowrap; }
.date-list span { line-height: 1.45; }
.date-list .small { display: block; }
@media (max-width: 360px) { .date-list li { grid-template-columns: minmax(0, 1fr); } }

/* Mission & vision: the vision as a statement, mission and academics side by side */
.creed { display: grid; gap: clamp(32px, 4vw, 52px); }
.creed-vision { display: grid; gap: 14px; max-width: 46em; }
.creed-vision p { margin: 0; font: italic var(--display-italic-weight) clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.35 var(--display); color: var(--navy-800); text-wrap: balance; }
.creed-cols { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); border-top: 1px solid var(--gold-500); padding-top: clamp(24px, 3vw, 36px); }
.creed-cols p { margin: 0; font-size: 1.08rem; }
@media (max-width: 760px) { .creed-cols { grid-template-columns: minmax(0, 1fr); } }
.read-on { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin: 0 0 18px; }

/* Testing: one ruled row per test, three short columns */
.tests { display: grid; border-top: 1px solid var(--gold-500); }
.test { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px clamp(24px, 3vw, 48px); padding: clamp(22px, 2.6vw, 30px) 0; border-bottom: 1px solid var(--line); }
.test header { display: grid; gap: 6px; align-content: start; }
.test h3 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); margin: 0; }
.test-grades { font: 600 .74rem/1.3 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); }
.test-when { font-size: .92rem; color: var(--muted); }
.test h4 { margin: 0 0 4px; font: 700 .82rem/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--navy-700); }
.test p { margin: 0; line-height: 1.55; }
@media (max-width: 900px) { .test { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .test header { grid-column: 1 / -1; } }
@media (max-width: 560px) { .test { grid-template-columns: minmax(0, 1fr); } }

/* Choice: does your family qualify? */
.qualify { background: var(--stone); border-radius: 6px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; box-shadow: inset 0 3px 0 var(--gold-500); }
.qualify h3 { margin: 0; font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); }
.qualify > p { margin: 0; }
.stepper { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold-500); background: #fff; color: var(--navy-800); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.stepper button:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.stepper output { font: 700 2.2rem/1 var(--display); color: var(--navy-800); min-width: 1.6em; text-align: center; }
.stepper span { color: var(--muted); }
.qualify-out { font-size: 1.1rem; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.qualify-out b { font-size: 1.6rem; color: var(--navy-800); margin: 0 2px; }
.limits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.limits li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 8px; margin: 0; border-bottom: 1px dotted var(--line); border-radius: 3px; transition: background .25s var(--ease); font-size: .95rem; }
.limits li b { font-weight: 400; color: var(--navy-800); }
.limits li.on { background: #fff; }
.limits li.on b { font-weight: 700; }
@media (max-width: 420px) { .limits { grid-template-columns: minmax(0, 1fr); } }


/* Daily schedule */
.sched { display: grid; gap: clamp(22px, 3vw, 32px); }
.sched-controls { display: grid; gap: 14px; }
.sched-kinds { margin-bottom: 0; }
.tabs button[aria-pressed="true"] { color: var(--navy-800); }
.tabs button[aria-pressed="true"]::after { transform: scaleX(1); }
.sched-label { font: 600 .72rem/1.3 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); }
.sched-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; background: #fff; border-radius: var(--radius); padding: 8px 6px; box-shadow: 0 1px 2px rgba(10, 24, 48, .06); }
.sb-group { display: flex; align-items: center; gap: 12px; padding: 4px 18px; min-width: 0; }
.sb-group + .sb-group { border-left: 1px solid var(--line); }
.sb-group[hidden] { display: none; }
.sb-days { flex: 1 1 auto; }
.seglite { display: flex; gap: 2px; }
.seglite button { position: relative; border: 0; background: none; padding: 10px 12px; min-height: 42px; font: 600 .95rem/1 var(--sans); color: var(--muted); cursor: pointer; border-radius: 3px; transition: color .2s var(--ease), background .2s var(--ease); }
.seglite button:hover { color: var(--navy-800); background: var(--paper); }
.seglite button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold-500); transform: scaleX(0); transition: transform .3s var(--ease); }
.seglite button[aria-pressed="true"] { color: var(--navy-800); }
.seglite button[aria-pressed="true"]::after { transform: scaleX(1); }
.seglite button.is-today::before { content: ""; position: absolute; top: 5px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--oxblood); }
.seglite button:focus-visible, .sb-select select:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 1px; }
.seglite .s, .sched-kinds .s { display: none; }
.sb-select { position: relative; }
.sb-select select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--paper); border-radius: 3px; min-height: 40px; padding: 0 34px 0 12px; font: 600 .95rem/1 var(--sans); color: var(--navy-800); cursor: pointer; }
.sb-select::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--navy-700); border-bottom: 2px solid var(--navy-700); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
@media (max-width: 760px) {
  .sched-bar { display: grid; padding: 6px 0; gap: 0; }
  .sb-group { padding: 8px 14px; justify-content: space-between; }
  .sb-group + .sb-group { border-left: 0; border-top: 1px solid var(--line); }
  .seglite .l, .sched-kinds .l { display: none; } .seglite .s, .sched-kinds .s { display: inline; }
  .sched-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .seglite button { padding: 10px 9px; }
  .sched-kinds button { padding: 12px 10px; }
}
.sched-out.swap { animation: swap .4s var(--ease); }
.sd-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--gold-500); margin-bottom: 6px; }
.sd-head h2 { margin: 6px 0 0; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); }
.sd-facts { display: flex; gap: 28px; margin: 0; }
.sd-facts div { display: grid; gap: 2px; }
.sd-facts dt { font-size: .82rem; color: var(--muted); }
.sd-facts dd { margin: 0; font: 700 1.35rem/1.1 var(--display); color: var(--navy-800); }
.sd-body { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(24px, 3vw, 48px); align-items: start; }
@media (max-width: 860px) { .sd-body { grid-template-columns: minmax(0, 1fr); } }
.sd-key { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 12px; }
.sd-key ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sd-key li { margin: 0; display: flex; align-items: center; gap: 10px; font-size: .94rem; }
.sd-key i { width: 22px; height: 14px; border-radius: 2px; background: var(--t); box-shadow: inset 0 0 0 1px rgba(30, 38, 51, .12); flex: none; }
.sd-key p { margin: 4px 0 0; }
@media (max-width: 860px) { .sd-key { position: static; order: 2; } .sd-key ul { display: flex; flex-wrap: wrap; gap: 6px 16px; } }
.sd-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--radius); overflow: hidden; }
.sd-list li { display: grid; grid-template-columns: 6.2em 8px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 13px 20px; margin: 0; }
.sd-list li::before { content: ""; grid-column: 2; grid-row: 1; align-self: stretch; border-radius: 2px; background: var(--t); box-shadow: inset 0 0 0 1px rgba(30, 38, 51, .1); }
.sd-list li > time { grid-column: 1; grid-row: 1; }
.sd-list li > .sd-what { grid-column: 3; }
.sd-list li + li { border-top: 1px solid var(--stone); }
.sd-list li.is-break { background: var(--paper); }
.sd-list li.is-break::before { background: transparent; box-shadow: none; }
.sd-list time { font: 700 1.05rem/1.15 var(--display); color: var(--navy-800); font-variant-numeric: lining-nums tabular-nums; }
.sd-list time span { display: block; font: 400 .85rem/1.3 var(--sans); color: var(--muted); }
.sd-what { display: grid; gap: 1px; }
.sd-what b { font-weight: 700; font-size: 1.04rem; }
.sd-what span { color: var(--muted); font-size: .94rem; }
.sd-what span:empty { display: none; }
.sd-slot { font-size: .8rem; color: var(--muted); text-align: right; white-space: nowrap; }
.sd-list li.is-break .sd-what b { font-weight: 600; color: var(--muted); }
.sd-list li.sd-sep { display: block; padding: 10px 20px; background: var(--stone); }
.sd-list li.sd-sep::before { display: none; }
.sd-list li.sd-sep span { font: 600 .7rem/1 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); }
@media (max-width: 560px) {
  .sd-list li { grid-template-columns: 4.4em 6px minmax(0, 1fr); padding: 12px 14px; gap: 2px 12px; }
  .sd-slot { grid-column: 3; text-align: left; }
  .sd-slot:empty { display: none; }
}
/* Teacher colours: the printed schedule's colours, softened */
.t-franzen { --t: #f2b5a8; } .t-laforest { --t: #c3e2b8; } .t-mrsneeck { --t: #f5ec9c; } .t-varga { --t: #cdc2ea; }
.t-schroeder { --t: #f4d6de; } .t-peace { --t: #a9d1d8; } .t-mrneeck { --t: #f6c38f; } .t-nwadibia { --t: #bcbcbc; }
.t-carnes { --t: #dedede; } .t-cdevos { --t: #b9d1f3; } .t-mdevos { --t: #d3e6a8; } .t-sager { --t: #bdebf1; }
.t-crismore { --t: #cdeff0; } .t-father { --t: #e8d9bb; } .t-other { --t: #eee8da; } .t-none { --t: #fff; }
/* Whole-school grid, close to the printed sheet */
.sg-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); -webkit-overflow-scrolling: touch; box-shadow: 0 1px 2px rgba(10, 24, 48, .06); }
.sg { border-collapse: collapse; min-width: 1100px; width: 100%; font-size: .76rem; line-height: 1.2; color: var(--ink); }
.sg th, .sg td { border: 1px solid #cfc7b6; }
.sg .sg-day { background: var(--navy-700); color: #fff; font: 600 .95rem/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; padding: 9px; text-align: center; border-color: var(--navy-700); }
.sg .sg-names th { background: #efe3c3; font: 700 .8rem/1.15 var(--sans); color: var(--navy-800); padding: 7px 4px; text-align: center; }
.sg .sg-times td { background: #f6eed8; font-size: .72rem; color: var(--ink); padding: 5px 3px; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sg .sg-corner { position: sticky; left: 0; z-index: 2; vertical-align: middle; }
.sg tbody th { position: sticky; left: 0; z-index: 1; background: #fff; font: 700 .85rem/1 var(--sans); color: var(--navy-800); padding: 0 10px; text-align: center; white-space: nowrap; box-shadow: 1px 0 0 #cfc7b6; }
.sg tbody td { background: var(--t, #fff); padding: 5px 4px; text-align: center; vertical-align: middle; height: 36px; }
.sg td b { display: block; font-weight: 600; }
.sg td span { display: block; font-size: .72rem; opacity: .85; }
.sg td.is-break b { font-weight: 600; font-size: .8rem; }
.sg td.sg-split { padding: 0; min-width: 96px; }
.sg-two { display: flex; align-items: center; }
.sg-two > div { flex: 1; padding: 5px 3px; }

.sg-hint { margin: 8px 0 0; }
@media (min-width: 1240px) { .sg-hint { display: none; } }
.sched-foot { max-width: 80ch; }
.grade-title h3 { margin: 0; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); color: var(--navy-800); }
.grade-title h3 sup { font-size: .5em; vertical-align: .9em; margin-left: 1px; }

/* Handbook */
.hb { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hb-toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; scrollbar-width: thin; }
.hb-toc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--gold-500); cursor: default; }
.hb-toc summary::-webkit-details-marker { display: none; }
.hb-toc-now { font-size: .88rem; color: var(--navy-800); font-weight: 600; display: none; }
.hb-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 1px; counter-reset: none; }
.hb-toc li { margin: 0; }
.hb-toc a { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); gap: 6px; padding: 7px 10px; border-radius: 3px; color: var(--ink); text-decoration: none; font-size: .92rem; line-height: 1.35; transition: background .2s var(--ease), color .2s var(--ease); }
.hb-toc a i { font: 600 .72rem/1.6 var(--caps); font-style: normal; color: var(--gold-600); letter-spacing: .06em; }
.hb-toc a:hover { background: var(--stone); }
.hb-toc a[aria-current="true"] { background: var(--navy-700); color: #fff; }
.hb-toc a[aria-current="true"] i { color: var(--gold-300); }
.hb-body { display: grid; gap: 0; max-width: 780px; }
.hb-sec { padding: clamp(28px, 3.5vw, 44px) 0; border-top: 1px solid var(--line); scroll-margin-top: -20px; display: grid; gap: 14px; }
.hb-sec:first-child { border-top: 0; padding-top: 0; }
.hb-sec > * { margin: 0; }
.hb-sec h2 { display: grid; gap: 6px; font-size: clamp(1.6rem, 1.35rem + 1vw, 2.15rem); }
.hb-sec h2 i { font: 600 .78rem/1 var(--caps); font-style: normal; letter-spacing: .2em; color: var(--gold-600); }
.hb-sec h3 { font-size: 1.2rem; margin-top: 10px; color: var(--navy-800); }
.hb-sec h4 { font: 700 .82rem/1.3 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--navy-700); margin: 0 0 4px; }
.hb-sec p { max-width: 68ch; }
.hb-sec ul, .hb-sec ol { margin: 0; }
.hb-see { color: var(--muted); font-size: .95rem; }
.hb-note { background: var(--stone); border-radius: var(--radius); padding: 16px 20px; box-shadow: inset 3px 0 0 var(--gold-500); }
.hb-note.muted-note { color: var(--muted); font-style: italic; }
.hb-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 36px; }
.hb-pair h3 { margin-top: 0; }
.hb-pair p { margin: 0; }
.hb-vision { font: italic var(--display-italic-weight) 1.3rem/1.45 var(--display); color: var(--navy-800); }
.hb-check, .hb-x { list-style: none; padding: 0; display: grid; gap: 8px; }
.hb-check li, .hb-x li { margin: 0; padding-left: 28px; position: relative; }
.hb-check li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--gold-600); border-bottom: 2px solid var(--gold-600); transform: rotate(-45deg); }
.hb-x li::before, .hb-x li::after { content: ""; position: absolute; left: 4px; top: .75em; width: 12px; height: 2px; background: var(--oxblood); transform: rotate(45deg); }
.hb-x li::after { transform: rotate(-45deg); }
.hb-three { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--gold-500); border-bottom: 1px solid var(--gold-500); }
.hb-three li { margin: 0; padding: 18px 18px 18px 0; display: grid; gap: 2px; }
.hb-three li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.hb-three b { font: 700 1.25rem/1.2 var(--display); color: var(--navy-800); }
.hb-three span { color: var(--muted); font-size: .94rem; }
.hb-defs { margin: 0; display: grid; border-top: 1px solid var(--line); }
.hb-defs > div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hb-defs dt { font: 700 1.05rem/1.4 var(--display); color: var(--navy-800); }
.hb-defs dd { margin: 0; }
.hb-grades { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 1180px) { .hb-grades { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 480px) { .hb-grades { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hb-grades > div { display: grid; justify-items: center; gap: 2px; padding: 12px 6px 10px; background: #fff; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.hb-grades b { font: 700 1.35rem/1 var(--display); color: var(--navy-800); }
.hb-grades span { white-space: nowrap; }
.hb-grades span { font-size: .85rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.hb-grades em { font-style: normal; font-size: .75rem; color: var(--muted); }
.hb-grades .fail b { color: var(--oxblood); }
.hb-honors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hb-honors > div { background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; align-content: start; }
.hb-honors .kicker { color: var(--gold-300); }
.hb-honors b { font: 700 2.2rem/1 var(--display); color: #fff; }
.hb-honors b small { font: 400 .85rem/1 var(--sans); color: rgba(255, 255, 255, .75); margin-left: 6px; }
.hb-honors p { margin: 0; color: rgba(255, 255, 255, .85); font-size: .92rem; }
.hb-grid { display: grid; border-top: 1px solid var(--line); }
.hb-grid > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hb-grid h3 { margin: 0; font-size: 1.08rem; }
.hb-grid ul { padding-left: 1.1em; display: grid; gap: 4px; }
.hb-grid li, .tier li, .hb-check li, .hb-x li, .hb-steps li { margin: 0; }
@media (max-width: 680px) { .hb-grid > div { grid-template-columns: minmax(0, 1fr); } }
.hb-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.tier { background: #fff; border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; box-shadow: inset 0 3px 0 var(--c); }
.tier p { margin: 0; font-size: .9rem; color: var(--muted); }
.tier ul { margin: 0; padding-left: 1.05em; display: grid; gap: 4px; font-size: .92rem; }
.tier.minor { --c: var(--gold-500); } .tier.major { --c: #b86a2c; } .tier.grave { --c: var(--oxblood); }
.tier .kicker { color: var(--c); }
.hb-fees { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.hb-fees > div { background: #fff; border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; box-shadow: inset 0 0 0 1px var(--line); }
.hb-fees .big b { font: 700 2.4rem/1 var(--display); color: var(--navy-800); }
.hb-fees .big p { margin: 0; color: var(--muted); font-size: .92rem; }
.hb-fees dl { margin: 0; display: grid; }
.hb-fees dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dotted var(--line); }
.hb-fees dd { margin: 0; font: 700 1rem/1.4 var(--display); color: var(--navy-800); }
.hb-steps { padding-left: 1.3em; display: grid; gap: 6px; }
.hb-end { margin-top: 12px; padding-top: 32px; border-top: 1px solid var(--gold-500); display: grid; gap: 16px; justify-items: start; color: var(--muted); }
.hb-end .rule-cross { width: 100%; max-width: 220px; margin: 0; }
@media (max-width: 980px) {
  .hb { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hb-toc { position: sticky; top: var(--header-h); z-index: 5; max-height: none; overflow: visible; margin: 0 calc(var(--gutter) * -1); background: var(--paper); padding: 10px var(--gutter); box-shadow: 0 6px 12px -10px rgba(10, 24, 48, .3); }
  .hb-toc summary { cursor: pointer; padding-bottom: 8px; }
  .hb-toc-now { display: block; }
  .hb-toc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--navy-700); border-bottom: 2px solid var(--navy-700); transform: rotate(45deg); margin-left: 8px; transition: transform .25s var(--ease); }
  .hb-toc details[open] summary::after { transform: rotate(-135deg); }
  .hb-toc ol { max-height: 60vh; overflow: auto; }
  .hb-sec { scroll-margin-top: 30px; }
}
@media (max-width: 680px) {
  .hb-pair, .hb-fees { grid-template-columns: minmax(0, 1fr); }
  .hb-three, .hb-honors, .hb-tiers { grid-template-columns: minmax(0, 1fr); }
  .hb-three li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .hb-defs > div { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .hb { display: block; } .hb-toc, .page-head .btn-row, .hb-end .btn, .crumbs { display: none; }
  .hb-sec { break-inside: avoid-page; } .hb-honors > div { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); } .hb-honors b, .hb-honors p { color: var(--ink); }
}

/* Wrapping: never split a phone number or email; avoid one-word last lines */
a[href^="tel:"], a[href^="mailto:"] { white-space: nowrap; }
p, li, dd, figcaption, .lead, .small, summary, .answer { text-wrap: pretty; }

/* Questions and answers: everything visible, one ruled row per question */
.qa { display: grid; gap: clamp(26px, 3vw, 40px); }
.qa-group { display: grid; grid-template-columns: 12em minmax(0, 1fr); gap: 10px clamp(24px, 3vw, 48px); align-items: start; }
.qa-group:not(:has(h3)) { grid-template-columns: minmax(0, 1fr); }
.qa-group h3 { margin: 0; padding-top: 16px; font: 600 .78rem/1.3 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); border-top: 1px solid var(--gold-500); }
.qa dl { margin: 0; display: grid; border-top: 1px solid var(--gold-500); }
.qa dl > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 6px clamp(20px, 3vw, 40px); padding: 18px 0; border-bottom: 1px solid var(--line); }
.qa dt { font: 700 1.1rem/1.35 var(--display); color: var(--navy-800); text-wrap: balance; }
.qa dd { margin: 0; line-height: 1.6; }
@media (max-width: 900px) { .qa-group { grid-template-columns: minmax(0, 1fr); } .qa-group h3 { border-top: 0; padding-top: 0; } }
@media (max-width: 640px) { .qa dl > div { grid-template-columns: minmax(0, 1fr); } }
