/* UNISON TECHNICAL COLLEGE — site styles. Palette from the UTC design brief. */
:root {
  --navy: #102d55;
  --blue: #1769aa;
  --sky: #77bce8;
  --gold: #d7ae4b;
  --burgundy: #641f38;
  --mist: #eef4f8;
  --ink: #1b2430;
  --muted: #55627a;
  --line: #d9e3ec;
  --white: #fff;
  --radius: 10px;
  --max: 1160px;
  --font: Inter, "Segoe UI", Aptos, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; }
body { margin: 0; max-width: 100%; overflow-x: clip; font: 16px/1.65 var(--font); color: var(--ink); background: var(--white); -webkit-text-size-adjust: 100%; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: .6rem; display: block; }

/* top bar + header */
.topbar { background: var(--navy); color: #cfe3f5; font-size: .85rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: space-between; padding-block: .45rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: var(--gold); }
header.site { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand .mark { width: 56px; height: 56px; flex: none; background: url("../assets/logo.png") center/contain no-repeat; font-size: 0; color: transparent; overflow: hidden; }
.brand strong { display: block; font-size: 1rem; line-height: 1.1; }
.brand small { color: var(--muted); font-size: .72rem; letter-spacing: .06em; }
nav.main ul { list-style: none; display: flex; flex-wrap: wrap; gap: .15rem; margin: 0; padding: 0; }
header.site .wrap > .brand, header.site .wrap > nav.main { min-width: 0; }
nav.main a { display: block; padding: .5rem .75rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
nav.main a:hover { background: var(--mist); }
nav.main a[aria-current="page"] { color: var(--blue); background: var(--mist); }
nav.main a.cta { background: var(--blue); color: #fff; }
nav.main a.cta:hover { background: var(--navy); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .55rem .8rem; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; }
@media (max-width: 1100px) {
  .menu-btn { display: block; }
  nav.main { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; padding: .75rem 1.25rem 1rem; }
  nav.main a { padding: .8rem .75rem; }
}

/* buttons */
.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: 8px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #e4be63; color: var(--navy); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-line { border-color: var(--blue); color: var(--blue); }
.btn-line:hover { background: var(--blue); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* hero: branded gradient shows until the admin-published hero is ready.
   The min-height matches the dynamic hero so replacing it never shifts the page. */
.hero { color: #fff; min-height: clamp(440px, 72vh, 660px); display: flex; align-items: center; background: linear-gradient(135deg, #102d55, #1e5a91); transition: opacity .25s ease; }
.hero .wrap { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { max-width: 58ch; color: #dcebf7; font-size: 1.08rem; }
.hero .eyebrow { color: var(--gold); }
.page-hero { background: var(--navy); color: #fff; }
.page-hero .wrap { padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero h1 { color: #fff; margin-bottom: .4rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { color: #cfe3f5; max-width: 62ch; margin: 0; }
.crumbs { font-size: .82rem; color: #9fc3e3; margin-bottom: .8rem; }
.crumbs a { color: #cfe3f5; }

/* sections */
section.block { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
section.alt { background: var(--mist); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 70ch; }
.grid { display: grid; gap: 1.25rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card.accent { border-top: 4px solid var(--gold); }
.tile { background: #fff; border-left: 4px solid var(--blue); padding: 1rem 1.2rem; border-radius: 6px; }
.tile b { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tile span { font-weight: 700; color: var(--navy); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--mist); color: var(--blue); padding: .2rem .55rem; border-radius: 999px; margin-bottom: .6rem; }
ul.check { list-style: none; padding: 0; margin: 0 0 1em; }
ul.check li { padding-left: 1.7rem; position: relative; margin-bottom: .5rem; }
ul.check li::before { content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .5rem; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg) scale(.8); }
ol.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 1rem; }
ol.steps li { counter-increment: s; padding: 1rem 1.2rem 1rem 3.6rem; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
ol.steps li::before { content: counter(s); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 800; }

/* image placeholders */
.ph { display: grid; place-items: center; text-align: center; min-height: 220px; border: 2px dashed #9db8cf; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #f4f8fb, #f4f8fb 12px, #eaf1f7 12px, #eaf1f7 24px); color: var(--muted); padding: 1rem; font-size: .88rem; }
.ph b { display: block; color: var(--navy); letter-spacing: .06em; font-size: .8rem; text-transform: uppercase; }
.ph.wide { min-height: 320px; }
.gallery-item { padding: .75rem; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.gallery-item figcaption { padding: .75rem .25rem .25rem; font-size: .9rem; color: var(--muted); }

/* notice, tables */
.notice { border-left: 5px solid var(--gold); background: #fff9e8; padding: 1rem 1.2rem; border-radius: 6px; font-size: .95rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; background: #fff; min-width: 520px; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: #fff; font-size: .85rem; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }

/* filters, faq, forms */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filters button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .45rem 1rem; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: .7rem; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
details.faq p { margin: .7rem 0 0; }
form.stack { display: grid; gap: 1rem; }
label { font-weight: 600; font-size: .92rem; display: grid; gap: .3rem; }
input, select, textarea { font: inherit; padding: .7rem .8rem; border: 1px solid #b7c6d6; border-radius: 8px; width: 100%; background: #fff; color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
.check-row { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check-row input { width: auto; margin-top: .35rem; }
.form-status { min-height: 1.5em; font-weight: 600; color: var(--navy); }

.admin-login { max-width: 460px; margin-inline: auto; }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.admin-tabs button { border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: .45rem 1rem; font: inherit; font-weight: 600; cursor: pointer; }
.admin-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.admin-panel[hidden] { display: none; }
.admin-grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(280px, 360px) 1fr; align-items: start; }
.admin-grid form.stack { gap: .75rem; }
.admin-table { min-width: 640px; font-size: .86rem; }
.admin-table td, .admin-table th { padding: .55rem .7rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.row-actions button { border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 6px; padding: .3rem .6rem; font: inherit; font-size: .8rem; cursor: pointer; }
.row-actions button.danger { color: #8a1c1c; border-color: #e3b4b4; }
.row-actions button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.admin-note { font-size: .85rem; color: var(--muted); }

@media (max-width: 760px) {
  .admin-grid { grid-template-columns: 1fr; }
}

/* footer */
footer.site { background: var(--navy); color: #cfe3f5; font-size: .93rem; }
footer.site .wrap { padding-block: 3rem 1.5rem; }
footer.site h3 { color: #fff; font-size: 1rem; }
footer.site a { color: #cfe3f5; text-decoration: none; }
footer.site a:hover { color: var(--gold); text-decoration: underline; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: .4rem; }
.legal { border-top: 1px solid rgba(255,255,255,.18); margin-top: 2rem; padding-top: 1rem; font-size: .82rem; color: #9fc3e3; }
.motto { color: var(--gold); font-weight: 700; }

@media print { header.site, .topbar, footer.site, .actions, .filters { display: none; } }

/* =====================================================================
   Media & motion: banners, image slots, sliders, hero, video, leaders
   ===================================================================== */
[hidden] { display: none !important; }

/* Every admin-managed image keeps its space while it downloads, then fades in.
   This stops later page text from flashing into view before the media appears. */
.media-img { opacity: 0; transition: opacity .35s ease; }
.media-img.is-loaded { opacity: 1; }
.media-img.is-error { opacity: 0; }

/* Hide fallback copy from the first paint until /api/site has decided whether
   an uploaded image will replace it, so text never flashes then disappears. */
.media-resolving .hero > .wrap,
.media-resolving [data-slot] > div,
.media-resolving [data-leader-photo] > div { visibility: hidden; }
@keyframes mediaFailsafe { to { visibility: visible; } }
.media-resolving .hero > .wrap,
.media-resolving [data-slot] > div,
.media-resolving [data-leader-photo] > div { animation: mediaFailsafe 0s 2s forwards; }

/* page header banners (optional image behind the title, set from Super Admin) */
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; max-width: none; }
.page-hero.has-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(16,45,85,.92) 25%, rgba(16,45,85,.55)); }
.page-hero.has-banner h1, .page-hero.has-banner p { text-shadow: 0 1px 10px rgba(0,0,0,.3); }

/* photo slots that replace the dashed placeholders once an image is uploaded */
.ph[data-slot] { aspect-ratio: 3 / 2; min-height: 0; }
.ph.wide[data-slot] { aspect-ratio: 16 / 9; }
.ph[data-leader-photo] { aspect-ratio: 4 / 5; min-height: 0; width: 100%; max-width: 340px; }
.ph.has-media { position: relative; display: block; min-height: 0; padding: 0; border: 0; background: linear-gradient(135deg, #eef4f8, #dbe8f2); overflow: hidden; border-radius: var(--radius); }
.ph.has-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.img-error { display: none; }

/* hover and rollover effects (hover-capable devices only; touch devices stay stable) */
.zoom { overflow: hidden; }
.zoom img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.card, .tile, .btn, .video-card { transition: transform .25s ease, box-shadow .25s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
@media (hover: hover) {
  .zoom:hover img, .card:hover .zoom img { transform: scale(1.06); }
  .card:hover, .video-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16,45,85,.13); }
  .tile:hover { box-shadow: 0 6px 18px rgba(16,45,85,.1); }
  .btn:hover { transform: translateY(-1px); }
}
.btn:active, .card:active { transform: scale(.99); }
nav.main a { position: relative; }
nav.main a:not(.cta)::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .28rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
nav.main a:not(.cta):hover::after, nav.main a[aria-current="page"]::after { transform: scaleX(1); }
.news-cover { margin: -1.4rem -1.4rem 1rem; border-radius: var(--radius) var(--radius) 0 0; }
.news-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* scroll reveal (uses 'translate' so it never fights hover transforms) */
.js-reveal .reveal { opacity: 0; translate: 0 18px; }
.js-reveal .reveal.in { opacity: 1; translate: 0 0; }
.js-reveal .reveal { transition: opacity .6s ease, translate .6s ease, transform .25s ease, box-shadow .25s ease, background-color .2s ease; }

/* carousel: native scroll-snap, so swipe, momentum and keyboard scrolling work everywhere */
.carousel { position: relative; --gap: 1rem; --pv: 1; }
.carousel-track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: var(--radius); }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.carousel-slide { flex: 0 0 calc((100% - (var(--pv) - 1) * var(--gap)) / var(--pv)); scroll-snap-align: start; min-width: 0; }
.carousel-btn { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(16,45,85,.86); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 3; transition: background-color .2s ease, scale .2s ease; }
.carousel-btn.prev { left: .6rem; }
.carousel-btn.next { right: .6rem; }
.carousel-btn .icon, .carousel-pause .icon, .video-play .icon { display: grid; place-items: center; }
.carousel-btn svg { width: 22px; height: 22px; }
@media (hover: hover) { .carousel-btn:hover { background: var(--blue); scale: 1.08; } }
.carousel.single .carousel-btn, .carousel.single .carousel-dots { display: none; }
.carousel-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .9rem; }
.carousel-dots button { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: #b7c6d6; cursor: pointer; transition: width .3s ease, background-color .3s ease; }
.carousel-dots button::after { content: ""; position: absolute; inset: -12px -5px; }
.carousel-dots button[aria-current="true"] { width: 26px; background: var(--blue); }
.carousel-pause { position: absolute; right: .6rem; top: .6rem; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(16,45,85,.7); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 3; }
.carousel-pause svg { width: 18px; height: 18px; }

.slide-fig { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); background: linear-gradient(135deg, #eef4f8, #dbe8f2); }
.slide-fig img, .slide-fig .slide-link { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide-fig figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: .15rem; padding: 2.4rem 1rem .9rem; color: #fff; font-size: .9rem; background: linear-gradient(transparent, rgba(8,24,48,.86)); pointer-events: none; }
.slide-fig figcaption strong { font-size: 1rem; }

/* dynamic hero (image slideshow, single image or background video) */
.hero-dynamic { position: relative; min-height: clamp(440px, 72vh, 660px); background: var(--navy); color: #fff; transition: opacity .25s ease; }
.hero-dynamic .carousel-track { border-radius: 0; }
.hero-slide { --ov: .55; position: relative; display: flex; align-items: center; min-height: clamp(440px, 72vh, 660px); overflow: hidden; background: linear-gradient(135deg, #102d55, #1e5a91); }
.hero-slide .hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hero-slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(8,24,48,var(--ov)); }
.hero-slide .wrap { position: relative; z-index: 2; display: flex; padding-block: 3.5rem 5rem; }
.hero-slide.align-center .wrap { justify-content: center; text-align: center; }
.hero-slide.align-center .actions { justify-content: center; }
.hero-slide.align-right .wrap { justify-content: flex-end; text-align: right; }
.hero-slide.align-right .actions { justify-content: flex-end; }
.hero-copy { max-width: 640px; }
.hero-copy h1, .hero-copy h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 .6rem; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.hero-copy .eyebrow { color: var(--gold); text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-copy p { color: #eef4f8; font-size: 1.08rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-dynamic .carousel-dots { position: absolute; left: 0; right: 0; bottom: 1.1rem; margin: 0; z-index: 3; }
.hero-dynamic .carousel-dots button { background: rgba(255,255,255,.55); }
.hero-dynamic .carousel-dots button[aria-current="true"] { background: var(--gold); }
.hero-dynamic .carousel-pause { top: auto; bottom: .8rem; right: 1rem; }
@media (max-width: 640px) {
  .hero, .hero-dynamic { min-height: 420px; }
  .hero-slide { min-height: 420px; }
  .hero-slide .wrap { padding-block: 2.5rem 4.2rem; }
  .hero-dynamic .carousel-btn { width: 38px; height: 38px; }
  .carousel-btn.prev { left: .3rem; }
  .carousel-btn.next { right: .3rem; }
}

/* video sections: a thumbnail first, the video loads only when played */
.video-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.video-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0b1f3a, #123a63); }
.video-frame > img, .video-frame > video, .video-frame > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; max-width: none; }
.video-frame > video { object-fit: contain; background: #000; }
.video-play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.video-play > span { width: 68px; height: 68px; border-radius: 50%; background: rgba(16,45,85,.88); display: grid; place-items: center; transition: transform .25s ease, background-color .25s ease; }
.video-play svg { width: 28px; height: 28px; margin-left: 3px; }
@media (hover: hover) { .video-play:hover > span { transform: scale(1.1); background: var(--blue); } }
.video-body { padding: 1rem 1.2rem 1.2rem; }
.video-body h3 { margin-bottom: .3rem; }
.video-body p { margin: 0; color: var(--muted); font-size: .93rem; }

/* branded fallback for photo positions that have no image yet (no 'add a photo' instructions shown to visitors) */
.ph.brand-ph { border-style: solid; border-color: var(--line); background: linear-gradient(135deg, #f4f8fb, #e6eff7); }
.ph.brand-ph > div { display: grid; justify-items: center; gap: .35rem; }
.ph-logo { width: 84px; height: 84px; object-fit: contain; margin-bottom: .4rem; }
.ph.compact { min-height: 0; padding: .9rem; margin-bottom: 1rem; max-width: 340px; }
.ph.compact .ph-logo { width: 56px; height: 56px; margin: 0; }
.ph.brand-ph b { color: var(--navy); }

/* map */
.map-embed { position: relative; width: 100%; height: clamp(320px, 52vw, 480px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; max-width: 100%; min-width: 0; height: 100%; border: 0; }
.map-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }

/* gallery */
.gallery-grid { column-width: 260px; column-gap: 1rem; }
.gallery-grid > .empty-state { column-span: all; }
.gallery-item { display: block; margin: 0 0 1rem; padding: 0; break-inside: avoid; border-radius: var(--radius); background: var(--mist); position: relative; overflow: hidden; }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-open img { display: block; width: 100%; height: auto; border-radius: 0; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .7rem; color: #fff; font-size: .88rem; background: linear-gradient(transparent, rgba(8,24,48,.82)); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
@media (hover: hover) { .gallery-item:hover figcaption, .gallery-item:focus-within figcaption { opacity: 1; } }
@media (hover: none) { .gallery-item figcaption { opacity: 1; } }
.gallery-grid > .gallery-group { column-span: all; break-inside: avoid; margin: 0 0 2.5rem; }
.gallery-group-head { margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.gallery-group-head h3 { margin: 0; }
.gallery-group-head p { margin: .4rem 0 0; color: var(--muted); }
.gallery-subgrid { column-width: 260px; column-gap: 1rem; }
.empty-state { text-align: center; padding: 2.5rem 1rem; border: 1px dashed #9db8cf; border-radius: var(--radius); background: var(--mist); }
.empty-state p { max-width: 52ch; margin: 0 auto; color: var(--muted); }
.empty-state h2 { font-size: 1.3rem; }

.lightbox { inset: 0; border: 0; padding: 0; background: transparent; max-width: 100%; max-height: 100%; width: 100%; height: 100%; color: #fff; }
.lightbox::backdrop { background: rgba(5,14,30,.92); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; padding: 1rem; }
.lightbox figure { margin: 0; display: grid; gap: .6rem; justify-items: center; min-width: 0; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { text-align: center; max-width: 70ch; }
.lb-close, .lb-nav { border: 0; background: rgba(255,255,255,.14); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-close { position: absolute; top: .8rem; right: .8rem; z-index: 2; }
@media (max-width: 640px) { .lightbox[open] { grid-template-columns: 1fr; } .lb-nav { position: absolute; top: 50%; z-index: 2; } .lb-prev { left: .5rem; } .lb-next { right: .5rem; } }

.news-more { margin: .8rem 0 0; padding: .6rem .9rem; }
.news-more p { font-size: .93rem; }

/* director and leadership */
.leader-photo { margin: 0 0 1rem; overflow: hidden; background: linear-gradient(135deg, #eef4f8, #dbe8f2); border-radius: var(--radius); max-width: 340px; }
.leader-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.leader-photo.style-portrait { aspect-ratio: 4 / 5; }
.leader-photo.style-square { aspect-ratio: 1; }
.leader-photo.style-wide { aspect-ratio: 16 / 10; max-width: 100%; }
.leader-photo.style-circle { aspect-ratio: 1; max-width: 240px; border-radius: 50%; }
.leader-more { margin-top: 1rem; }
.leader-more h4 { margin: .9rem 0 .3rem; font-size: 1rem; color: var(--navy); }
.leader-more p { margin: 0 0 .6rem; }
.leader-more ul { margin: 0; padding-left: 1.2rem; }
.leader-feature { display: grid; gap: 2rem; grid-template-columns: minmax(220px, 340px) 1fr; align-items: center; }
.leader-feature .leader-photo { margin: 0; }
.leader-feature .leader-sign { font-weight: 700; color: var(--navy); }
@media (max-width: 760px) { .leader-feature { grid-template-columns: 1fr; } .leader-feature .leader-photo { max-width: 280px; } }
.leader-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.leader-card .leader-photo { max-width: 100%; margin-bottom: 1rem; }
.leader-card .leader-sign { font-weight: 700; color: var(--navy); }
.leader-feature-grid { display: grid; gap: 2.5rem; }
.leader-feature-card { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.leader-feature-card:first-child { border-top: 0; padding-top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .js-reveal .reveal { opacity: 1; translate: 0 0; }
  .zoom:hover img, .card:hover .zoom img, .card:hover, .video-card:hover, .btn:hover { transform: none; }
}
