/* St. Joseph's School, Banka */
:root {
  --blue: #0b4a9e;
  --blue-deep: #07306b;
  --navy: #061d44;
  --red: #d2101f;
  --gold: #f6b93b;
  --ink: #1b2533;
  --muted: #5d6878;
  --line: #e1e7f0;
  --tint: #f3f6fb;
  --sans: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(6, 29, 68, .45);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.75 var(--sans); color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; color: var(--blue-deep); text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.ic { flex: none; vertical-align: -3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 999px; border: 2px solid var(--blue); background: var(--blue); color: #fff; font: 600 15px var(--sans); cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; transform: translateY(-1px); }
.btn-red { background: var(--red); border-color: var(--red); }
.btn-red:hover { background: #a80c18; border-color: #a80c18; }
.btn-light { background: #fff; border-color: #fff; color: var(--blue-deep); }
.btn-light:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-small { padding: 6px 14px; font-size: 13.5px; }

/* Top bar */
.topbar { background: var(--navy); color: #d7e2f6; font-size: 13.5px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-block: 7px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; }
.topbar li, .topbar a { display: inline-flex; align-items: center; gap: 7px; color: inherit; }
.topbar a:hover { color: var(--gold); }
.topbar .ic { width: 15px; height: 15px; }
.topbar .pill { background: var(--red); color: #fff; padding: 3px 14px; border-radius: 999px; font-weight: 600; animation: pulse 1.6s ease-in-out infinite; }
.topbar .pill:hover { color: #fff; background: #a80c18; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(210, 16, 31, .28); } }

/* Header and menu */
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 18px -8px rgba(6, 29, 68, .35); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.logo img { width: 262px; height: auto; }
.nav-toggle { display: none; background: var(--blue); color: #fff; border: 0; border-radius: 10px; width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .ic { width: 24px; height: 24px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav > ul > li { position: relative; }
.nav a, .nav button { display: flex; align-items: center; gap: 4px; padding: 10px 11px; border-radius: 8px; border: 0; background: none; font: 500 14.5px var(--sans); color: var(--ink); cursor: pointer; white-space: nowrap; }
.nav button .ic { width: 14px; height: 14px; }
.nav > ul > li > a:hover, .nav > ul > li > button:hover, .nav > ul > li > .on { color: var(--blue); background: var(--tint); }
.nav > ul > li > .on { font-weight: 600; box-shadow: inset 0 -3px 0 var(--red); border-radius: 8px 8px 0 0; }
.has-sub > ul { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border-radius: 0 0 var(--radius) var(--radius); border-top: 3px solid var(--red); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s; }
.has-sub > ul.two { columns: 2; min-width: 470px; }
.has-sub > ul li { break-inside: avoid; }
.has-sub:hover > ul, .has-sub:focus-within > ul, .has-sub.open > ul { opacity: 1; visibility: visible; transform: none; }
.nav > ul > li:nth-last-child(-n+2) > ul { left: auto; right: 0; }
.has-sub > ul a { white-space: normal; padding: 8px 12px; font-size: 14px; }
.has-sub > ul a:hover, .has-sub > ul a.on { background: var(--tint); color: var(--blue); }

/* Home: slider */
.hero { position: relative; height: clamp(360px, 62vw, 640px); background: var(--navy); overflow: hidden; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.slide.on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 29, 68, .82) 0%, rgba(6, 29, 68, .45) 48%, rgba(6, 29, 68, 0) 78%); }
.hero-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: #fff; }
.hero-text p { margin: 0; font-size: clamp(18px, 2.6vw, 28px); font-weight: 500; color: var(--gold); }
.hero-text h1 { color: #fff; font-size: clamp(30px, 5.4vw, 62px); font-weight: 800; margin: 0 0 10px; max-width: 13em; letter-spacing: -.01em; }
.hero-text span { font-size: clamp(14px, 1.6vw, 18px); font-weight: 500; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .22); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.hero-nav:hover { background: var(--red); }
.hero-nav .ic { width: 24px; height: 24px; }
.hero-nav.prev { left: 16px; }
.hero-nav.next { right: 16px; }

/* Sections */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.tint { background: var(--tint); }
.heading { text-align: center; margin-bottom: 36px; }
.heading p { margin: 0; color: var(--red); font-weight: 600; letter-spacing: .04em; }
.heading h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; margin: 0; }
.heading::after { content: ""; display: block; width: 86px; height: 4px; margin: 14px auto 0; border-radius: 4px; background: linear-gradient(90deg, var(--red) 50%, var(--blue) 50%); }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.split.narrow { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.split-text p { text-align: justify; hyphens: auto; }
.split-img img { width: 100%; border-radius: var(--radius); box-shadow: 14px 14px 0 var(--gold), var(--shadow); }
.sign { border-left: 4px solid var(--red); padding-left: 14px; color: var(--muted); }
.sign b { color: var(--blue-deep); }

/* Home: facilities strip */
.facilities { background: linear-gradient(120deg, var(--blue-deep), var(--blue)); padding: 42px 0; }
.facility-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.facility-grid a { background: #fff; border-radius: var(--radius); padding: 26px 16px 20px; text-align: center; transition: transform .2s, box-shadow .2s; }
.facility-grid a:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -22px rgba(0, 0, 0, .7); }
.facility-grid img { margin: 0 auto 12px; width: 64px; height: 64px; }
.facility-grid h3 { margin: 0; font-size: 18px; font-weight: 600; }

/* Home: toppers */
.topper-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-bottom: 30px; }
.topper { width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px 18px; text-align: center; box-shadow: var(--shadow); border-top: 5px solid var(--gold); }
.topper-photo { position: relative; width: 124px; height: 124px; margin: 0 auto 14px; }
.topper-photo img, .topper-photo span { width: 124px; height: 124px; border-radius: 50%; object-fit: cover; object-position: top; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--blue); }
.topper-photo span { display: grid; place-items: center; background: var(--tint); color: var(--blue); font-size: 50px; font-weight: 700; }
.topper-rank { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); background: var(--red); color: #fff; font-size: 12px; font-weight: 600; padding: 1px 12px; border-radius: 999px; white-space: nowrap; }
.topper h3 { margin: 0; font-size: 17px; font-weight: 600; }
.topper-score { margin: 2px 0; font-size: 28px; font-weight: 800; color: var(--red); line-height: 1.2; }
.topper p { text-align: center; }
.topper-class { margin: 0; font-size: 13.5px; color: var(--muted); }

/* Home: news, notices, downloads */
.boards-bg { background: var(--tint) url(../images/bg.jpg); }
.boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.board { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; border-bottom: 5px solid var(--red); }
.board h2 { margin: 0; padding: 16px 20px; background: var(--red); color: #fff; font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.board.blue { border-color: var(--blue); }
.board.blue h2 { background: var(--blue); }
.board.green { border-color: #12805a; }
.board.green h2 { background: #12805a; }
.board ul { list-style: none; margin: 0; padding: 6px 20px; height: 250px; overflow-y: auto; flex: 1; }
.board li { border-bottom: 1px dashed var(--line); }
.board li a { display: block; padding: 10px 0; color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.board li a:hover { color: var(--red); }
.board time { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.board .ic { width: 14px; height: 14px; }
.board h2 .ic { width: 20px; height: 20px; }
.none { color: var(--muted); font-style: italic; padding: 14px 0; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; }
.board .more { padding: 12px 20px; border-top: 1px solid var(--line); }

/* Home: mission */
.mission { background: linear-gradient(120deg, var(--navy), var(--blue-deep)); color: #dbe6f8; }
.mission h2 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); }
.mission b { color: #fff; }
.video-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 50px -30px #000; }
.video-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.video-card:hover img { transform: scale(1.05); }
.video-card .play { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255, 255, 255, .3); }
.video-card .play .ic { width: 26px; height: 26px; fill: currentColor; margin-left: 3px; }
.video-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: #dbe6f8; font-size: 13.5px; }
.video-text strong { display: block; color: #fff; font-size: 16px; }

/* Photo grids and lightbox */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.photo-grid.five { grid-template-columns: repeat(5, 1fr); }
.photo { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--tint); box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo:hover img { transform: scale(1.07); }
.photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 10px; background: linear-gradient(transparent, rgba(6, 29, 68, .9)); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.35; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4, 12, 28, .94); display: grid; place-items: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 8px; object-fit: contain; }
.lightbox figcaption { color: #fff; padding-top: 12px; font-weight: 500; text-align: center; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: var(--red); }
.lightbox .ic { width: 24px; height: 24px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* Home: popup */
.popup { position: fixed; inset: 0; z-index: 150; background: rgba(4, 12, 28, .8); display: grid; place-items: center; padding: 20px; }
.popup[hidden] { display: none; }
.popup-box { position: relative; background: #fff; border-radius: var(--radius); padding: 10px; max-width: min(640px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; }
.popup-box img { width: 100%; border-radius: 8px; }
.popup-box img + img { margin-top: 10px; }
.popup-close { position: sticky; float: right; top: 0; margin: 0 0 -40px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--red); color: #fff; cursor: pointer; display: grid; place-items: center; }

/* Inner pages */
.banner { background: linear-gradient(120deg, rgba(6, 29, 68, .96), rgba(11, 74, 158, .9)), url(../images/slider/sl13.jpg) center / cover; color: #fff; padding: clamp(34px, 6vw, 62px) 0; border-bottom: 5px solid var(--red); }
.banner .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.banner h1 { color: #fff; margin: 0; font-size: clamp(26px, 4vw, 40px); font-weight: 700; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; font-size: 14.5px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: var(--gold); }
.crumbs a:hover { color: #fff; }

.prose { display: flow-root; }
.prose h2 { font-size: clamp(21px, 2.6vw, 27px); font-weight: 600; margin-top: 1.3em; padding-left: 14px; border-left: 5px solid var(--red); }
.prose > h2:first-child, .prose > .verse > h2:first-of-type { margin-top: 0; }
.prose h2.center { border: 0; padding: 0; }
.prose p, .prose li { text-align: justify; hyphens: auto; }
.prose ol, .prose ul { padding-left: 1.5em; margin: 0 0 1em; }
.prose li { margin-bottom: .55em; padding-left: .2em; }
.prose li::marker { color: var(--red); font-weight: 600; }
.prose > img, .prose > .verse > img { float: right; clear: right; width: min(40%, 420px); margin: 6px 0 18px 30px; border-radius: var(--radius); box-shadow: 10px 10px 0 var(--gold), var(--shadow); }
.prose > img:last-child { float: none; margin: 26px auto 14px; width: min(100%, 520px); }
.prose img.orn, .prose > .verse > img.orn { float: none; width: auto; margin: 18px auto; box-shadow: none; border-radius: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--blue); color: #fff; font-weight: 600; }
.prose tr:nth-child(even) td { background: var(--tint); }
.prose td h2 { margin: 0; border: 0; padding: 0; font-size: 18px; color: var(--red); }
.prose td p { text-align: left; }
.table-wrap { overflow-x: auto; }
.verse { text-align: center; }
.verse h2 { border: 0; padding: 0; }
.verse p { text-align: center; font-size: 17px; line-height: 2; }
.pre { white-space: pre-line; }
.empty { text-align: center; padding: 40px 16px; background: var(--tint); border: 2px dashed var(--line); border-radius: var(--radius); }
.empty h2 { border: 0; padding: 0; margin: 0 0 6px; }
.empty p { text-align: center; margin: 0 0 12px; color: var(--muted); }
.empty p:last-child { margin: 0; }

.tabs { list-style: none; padding: 0 !important; margin: 0 0 28px !important; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tabs li { margin: 0; padding: 0; }
.tabs a { display: block; padding: 7px 20px; border-radius: 999px; border: 2px solid var(--blue); color: var(--blue); font-weight: 600; font-size: 14.5px; }
.tabs a:hover, .tabs a.on { background: var(--blue); color: #fff; }

table.list th { white-space: nowrap; }
table.list td:first-child { width: 80px; }
.news-list { display: grid; gap: 18px; }
.news { border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); scroll-margin-top: 110px; }
.news time { display: inline-flex; align-items: center; gap: 7px; color: var(--red); font-weight: 600; font-size: 14px; }
.news h2 { border: 0; padding: 0; margin: 4px 0 8px; font-size: 20px; }
.news p { margin: 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.video { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 1px solid var(--line); }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video figcaption { padding: 12px 16px; font-weight: 600; color: var(--blue-deep); }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form.one { grid-template-columns: 1fr; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 5px; color: var(--blue-deep); }
.form sup { color: var(--red); }
.form input[type="text"], .form input[type="email"], .form input[type="password"], .form input[type="url"], .form input[type="date"], .form select, .form textarea { width: 100%; padding: 11px 14px; border: 1.5px solid #c6d0de; border-radius: 10px; font: 400 15.5px var(--sans); color: var(--ink); background: #fff; }
.form input[type="file"] { width: 100%; padding: 8px; border: 1.5px dashed #c6d0de; border-radius: 10px; font: 400 14.5px var(--sans); background: var(--tint); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 74, 158, .18); }
.form textarea { resize: vertical; }
.form small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.field-validation-error { display: block; color: var(--red); font-size: 13.5px; font-weight: 500; margin-top: 4px; }
.input-validation-error { border-color: var(--red) !important; }
.validation-summary-errors { background: #fdecec; color: #a00c17; border-radius: 10px; padding: 12px 16px; font-weight: 500; margin-bottom: 16px; }
.validation-summary-errors ul { margin: 0; padding: 0; list-style: none; }
.msg { background: #e6f6ec; color: #136037; border-radius: 10px; padding: 12px 16px; font-weight: 600; text-align: left !important; }
.form-box { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: var(--radius); padding: clamp(20px, 4vw, 38px); box-shadow: var(--shadow); }
.form-box h2 { border: 0; padding: 0; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.contact-cards > div { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: var(--tint); border-bottom: 5px solid var(--blue); }
.contact-cards > div > .ic { width: 54px; height: 54px; padding: 14px; border-radius: 50%; background: var(--blue); color: #fff; margin-bottom: 10px; }
.contact-cards h2 { border: 0; padding: 0; margin: 0 0 4px; font-size: 19px; }
.contact-cards p { text-align: center; margin: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.contact-grid h2 { margin-top: 0; }
.map { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Footer */
.footer { background: var(--navy); color: #c3d0e8; font-size: 15px; border-top: 5px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 3fr 5fr 4fr; gap: 40px; padding-block: 54px 40px; }
.footer h2 { color: #fff; font-size: 20px; font-weight: 600; margin-bottom: 18px; padding-bottom: 10px; position: relative; }
.footer h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 3px; background: var(--gold); border-radius: 3px; }
.footer a { color: #c3d0e8; }
.footer a:hover { color: var(--gold); }
.footer .more { color: var(--gold); }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.footer-links li { padding: 4px 0; break-inside: avoid; }
.footer-links a::before { content: "›"; color: var(--gold); margin-right: 8px; font-weight: 700; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .ic { color: var(--gold); margin-top: 5px; }
.footer-bottom { background: #041432; font-size: 14px; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; padding-block: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom strong, .footer-bottom a { color: #fff; }

/* Smaller screens */
@media (max-width: 1140px) {
  .logo img { width: 210px; }
  .nav a, .nav button { padding: 10px 8px; font-size: 14px; }
}
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 90px); overflow-y: auto; padding: 8px 16px 18px; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a, .nav button { width: 100%; justify-content: space-between; padding: 12px 10px; font-size: 15.5px; white-space: normal; text-align: left; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav > ul > li > .on { box-shadow: inset 3px 0 0 var(--red); border-radius: 0; }
  .has-sub > ul, .has-sub > ul.two { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; columns: 1; min-width: 0; padding: 0 0 8px 14px; transition: none; }
  .has-sub.open > ul { display: block; }
  .has-sub.open > button .ic { transform: rotate(180deg); }
  .boards { grid-template-columns: 1fr; }
  .photo-grid.five { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:nth-child(2) { grid-row: 2; grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .topbar-in { justify-content: center; }
  .topbar-info li:nth-child(2) { display: none; }
  .header-in { min-height: 70px; }
  .logo img { width: 200px; }
  .split, .split.narrow, .contact-grid { grid-template-columns: 1fr; }
  .split-img { order: -1; max-width: 460px; margin-inline: auto; padding-right: 14px; }
  .facility-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .photo-grid.five { grid-template-columns: 1fr 1fr; }
  .hero-nav { display: none; }
  .hero-shade { background: rgba(6, 29, 68, .6); }
  .prose > img, .prose > .verse > img { float: none; width: min(100%, 460px); margin: 6px auto 22px; }
  .prose p, .prose li, .split-text p { text-align: left; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid > div:nth-child(2) { grid-row: auto; }
  .lightbox { padding: 60px 8px; }
  .video-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
