/* Public site (index.php, coming-soon.php). Reuses tokens from auth.css
   (--font-sans, --font-heading, --auth-accent, --auth-bg, --auth-text, --auth-muted). */
:root {
  --site-primary: var(--theme-primary);
}

* { box-sizing: border-box; }

body.public-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  background: var(--auth-bg);
  color: var(--auth-text);
  overflow-wrap: anywhere;
}

.public-body #main-content { flex: 1; min-width: 0; }

.site-header {
  background: var(--site-primary);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
}

.site-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a {
  color: #e0edf3;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 25%;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 27, 46, 0.15) 0%, rgba(8, 27, 46, 0.75) 100%);
}

.hero-content {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 32px;
  width: 100%;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
}

.hero-content p {
  margin: 0;
  font-size: 1.05rem;
  color: #e0edf3;
}

/* Sections */
.site-section {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 32px;
}

.site-section h2 {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--site-primary);
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 28px;
  padding-bottom: 14px;
}

/* One accent rule per page, using the installed theme accent. */
.site-section h2.title-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--theme-accent, #80e5d5);
}

.site-section p {
  line-height: 1.7;
  color: var(--auth-text);
  max-width: 70ch;
}

/* ---- Motion / depth layer (PREMIUM-UI-EFFECTS.md) ---- */

/* Content is visible by default, even if JS fails or is disabled. */
.public-body .reveal { opacity: 1; translate: none; }
@media (prefers-reduced-motion: no-preference) {
  .public-body .reveal { transition: opacity .6s ease, translate .6s ease; }
  .public-body .reveal.is-pending { opacity: 0; translate: 0 18px; }
  .public-body .hero-load { animation: public-hero-in .75s ease-out both; }
}
@keyframes public-hero-in {
  from { opacity: 0; translate: 0 20px; }
  to { opacity: 1; translate: 0 0; }
}

/* Independent translate keeps reveal from overriding card lift/tilt. */
.public-body :is(.portal-card, .leadership-card, .gallery-grid figure, .info-card, .home-portal) {
  transition: opacity .6s ease, translate .6s ease, transform .25s ease, box-shadow .25s ease;
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .public-body :is(.portal-card, .leadership-card, .gallery-grid figure, .info-card):hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(16, 42, 67, .14);
  }
  .public-body .leadership-column .tilt-card:hover {
    transform: perspective(900px) translateY(-4px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  }
}

/* Opt out of the 70ch reading-width cap above for sections whose content
   (info cards, criteria text, a form) is meant to use the section's full
   width rather than read as a narrow article column. */
.site-section.full-width p { max-width: none; }

/* Two-up form fields (name/class/phone/etc.) so a form fills its section's
   width with actual fields instead of one narrow column of stacked inputs
   next to empty space. Long fields (message, submit) stay outside this grid
   and span the full row on their own. */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; }
.form-grid .auth-field { margin-bottom: 16px; }
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.about-photo {
  width: 100%;
  height: auto;
  border-radius: var(--auth-radius);
  border: 1px solid var(--auth-border);
}

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

/* Portal login cards */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px;
  margin-top: 24px;
}

.portal-card {
  background: var(--auth-card-bg);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  padding: 24px;
  text-align: center;
}

.portal-card h3 {
  font-family: var(--font-heading);
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--auth-text);
}

.portal-card p {
  margin: 0 0 18px;
  color: var(--auth-muted);
  font-size: 0.85rem;
}

.portal-card a.auth-submit {
  margin-top: 0;
}

/* Static facilities page, using the shared public card palette. */
.facilities-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facility-card { min-width: 0; }
.facility-icon { margin: 0 auto 22px; }
.facility-card h3 { margin-bottom: 12px; }
.facility-card p { margin: 0 auto; }
@media (max-width: 900px) {
  .facilities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .facilities-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Coming soon */
.coming-soon {
  text-align: center;
  padding: 96px 24px;
}

.coming-soon h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--site-primary);
  margin: 0 0 12px;
}

.coming-soon p {
  color: var(--auth-muted);
}

.coming-soon a {
  display: inline-block;
  margin-top: 24px;
  color: var(--theme-link);
  font-weight: 600;
  text-decoration: none;
}

.contact-map { border-radius: var(--auth-radius); overflow: hidden; border: 1px solid var(--auth-border); margin: 8px 0 28px; }
.contact-map iframe { width: 100%; height: 380px; display: block; border: 0; }

/* Gallery's own layout (filters, grid, lightbox) lives in assets/css/gallery.css,
   loaded only on gallery.php — same page-specific-CSS pattern as hero-slider.css. */

.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin-top: 8px; }
.staff-grid .leadership-card { max-width: none; padding: 18px; }
.staff-grid .leadership-photo,
.staff-grid .leadership-avatar-placeholder { width: 96px; height: 96px; font-size: 1.5rem; }
.leadership-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; max-width: 1092px; }
.leadership-column { min-width: 0; }
.leadership-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
/* Management shares one heading, with cards filling the section in equal columns. */
.management-layout .leadership-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.management-layout .leadership-card {
  position: relative;
  max-width: none;
  padding: 12px;
  border: 1px solid var(--auth-border);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, var(--auth-card-bg));
  box-shadow: 0 4px 6px rgba(16, 42, 67, .04), 0 16px 32px -18px rgba(16, 42, 67, .3);
}
.management-photo-panel {
  width: 100%;
  aspect-ratio: 1;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--auth-bg);
  border-bottom: 3px solid var(--theme-accent);
}
.management-layout .leadership-photo,
.management-layout .leadership-avatar-placeholder {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
}
.management-layout .leadership-avatar-placeholder {
  font-size: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(135deg, var(--site-primary), var(--theme-primary));
}
.management-card-body { width: 100%; flex: 1; padding: 24px 14px 16px; }
.management-layout .leadership-name { font-size: 1.3rem; line-height: 1.35; margin-bottom: 10px; }
.management-layout .leadership-title { color: var(--site-primary); font-size: .72rem; font-weight: 700; letter-spacing: .1em; margin: 0; }
.management-layout .leadership-education { color: var(--theme-accent); font-size: 1.05rem; font-weight: 700; font-style: normal; margin: 8px 0 0; }
.management-layout .leadership-message { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--auth-border); color: var(--auth-muted); font-size: .88rem; line-height: 1.75; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .public-body .management-layout .leadership-card:hover {
    transform: perspective(1100px) translateY(-8px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    box-shadow: 0 8px 12px rgba(16, 42, 67, .06), 0 28px 44px -16px rgba(16, 42, 67, .28);
    border-color: var(--theme-accent);
  }
}
@media (max-width: 1000px) {
  .management-layout .leadership-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .management-layout .leadership-grid { grid-template-columns: minmax(0, 1fr); }
}
.leadership-card { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 498px; min-width: 0; text-align: center; padding: 24px; background: var(--auth-card-bg); border: 1px solid var(--auth-border); border-radius: var(--auth-radius); }
.leadership-card .leadership-name,
.leadership-card .leadership-title,
.leadership-card .leadership-message { width: 100%; text-align: center; margin-inline: auto; }
.leadership-card .leadership-photo,
.leadership-card .leadership-avatar-placeholder { flex-shrink: 0; margin-inline: auto; }
.leadership-card .leadership-message { max-width: 450px; }
.leadership-card > :last-child { margin-bottom: 0; }
.leadership-photo,
.leadership-avatar-placeholder { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 14px; display: block; object-fit: cover; }
.leadership-avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--site-primary); color: #fff; font-size: 2.2rem; font-weight: 700; font-family: var(--font-heading); }
.leadership-name { font-family: var(--font-heading); font-size: 1.1rem; margin: 0 0 2px; color: var(--site-primary); }
.leadership-title { font-size: 0.8rem; color: var(--auth-muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 10px; }
.leadership-education { font-size: 0.85rem; color: var(--auth-text); margin: 0 0 10px; }
.principal-qualifications { font-family: Arial, Helvetica, sans-serif; color: #1f3a52; font-size: 0.85rem; line-height: normal; margin: 0 0 10px; }
.principal-qualifications p { margin: 0; }
.principal-qualifications p + p { margin-top: 0.6em; }
.leadership-message { font-size: 0.9rem; color: var(--auth-text); line-height: 1.6; }

/* SITE-FOOTER.md: school info + contact + social, two link columns, bottom bar. */
.site-footer-main { background: var(--site-primary); color: #dce8ee; }
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--font-heading); font-size: 1.15rem; color: #fff; }
.footer-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.footer-tagline { color: #b9cbd6; font-size: 0.9rem; line-height: 1.7; max-width: 42ch; margin: 0 0 20px; }
.footer-contact-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: #dce8ee; }
.footer-contact-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--theme-accent, #80e5d5); }
.footer-contact-list a { color: #dce8ee; text-decoration: none; }
.footer-contact-list a:hover { color: var(--theme-accent, #80e5d5); }
.footer-social-heading { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #9fb4c1; margin: 0 0 12px; }
.footer-social-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; transition: background 0.15s, color 0.15s; }
.footer-social-btn svg { width: 18px; height: 18px; }
.footer-social-btn:hover { background: var(--theme-accent, #80e5d5); color: var(--theme-accent-text, #10364a); }
.footer-links-col h3 { font-family: var(--font-heading); font-weight: 400; font-size: 1rem; color: #fff; margin: 0 0 16px; }
.footer-links-col { display: flex; flex-direction: column; }
.footer-links-col a { color: #b9cbd6; text-decoration: none; font-size: 0.88rem; padding: 6px 0; }
.footer-links-col a:hover { color: var(--theme-accent, #80e5d5); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 32px;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  font-size: 0.78rem;
  color: #9fb4c1;
}
.footer-bottom p { margin: 0; }
.site-footer-credit { margin-top: 0; font-size: 0.78rem; }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; padding: 44px 24px 32px; }
  .footer-bottom { flex-direction: column; padding: 16px 24px; }
}

/* SITE-FOOTER.md: floating quick-action sidebar, docked to the right edge. */
.quick-sidebar {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quick-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--site-primary, #12334d);
  color: #fff;
  box-shadow: 0 6px 18px rgba(16, 42, 67, 0.25);
  transition: background 0.15s, transform 0.15s;
}
.quick-sidebar-item svg { width: 22px; height: 22px; }
.quick-sidebar-item:hover { background: var(--theme-accent, #80e5d5); color: var(--theme-accent-text, #10364a); transform: scale(1.08); }
@media (max-width: 700px) {
  .quick-sidebar { right: 10px; gap: 8px; }
  .quick-sidebar-item { width: 40px; height: 40px; }
  .quick-sidebar-item svg { width: 19px; height: 19px; }
}

@media (max-width: 600px) {
  .site-header-inner { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 38vh; }
}
/* Homepage: midnight blue, teal, and cool-white editorial styling, campus photography, and clear portal access. */
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 20; padding: 12px 20px; background: #fff; color: #12334d; }
.skip-link:focus { top: 12px; }
.public-body a:focus-visible { outline: 3px solid #087e8b; outline-offset: 5px; }
.home-page {
  --site-primary: #12334d;
  --auth-bg: #f7fbfd;
  --auth-text: #102a43;
  --auth-muted: #526879;
  --auth-border: #d5e3eb;
}
.public-body .site-header { background: #ffffff; border-top: 4px solid var(--site-primary, #12334d); border-bottom: 1px solid var(--auth-border); }
.public-body .site-header-inner { max-width: 1240px; padding: 20px 32px; }
.public-body .site-brand { color: var(--site-primary, #12334d); font-size: 1.15rem; gap: 12px; }
.public-body .site-logo { width: 48px; height: 48px; flex-shrink: 0; }
.public-body .site-nav a { color: #485d6d; font-size: .83rem; padding: 10px; }
.public-body .site-nav a:hover, .public-body .site-nav a.active { color: var(--site-primary, #12334d); background: #e2f3f4; }
.welcome-hero { position: relative; isolation: isolate; color: #fff; background: #102a43; }
.welcome-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; z-index: -2; }
.welcome-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,27,46,.9), rgba(8,27,46,.66) 43%, rgba(8,27,46,.13)), linear-gradient(0deg, rgba(8,27,46,.4), transparent 40%); }
.welcome-inner { max-width: 1240px; margin: auto; padding: 80px 32px 30px; }
.welcome-copy { max-width: 680px; }
.eyebrow { font-family: var(--font-sans); font-size: .7rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--site-primary, #12334d); margin: 0 0 20px; }
.eyebrow.light { color: #99e8df; line-height: 1.7; }
.welcome-copy h1 { font-family: var(--font-heading); font-size: clamp(2.8rem, 5.4vw, 4.7rem); font-weight: 500; line-height: 1.08; letter-spacing: -.04em; margin: 0 0 25px; }
.welcome-copy h1 em { color: #80e5d5; font-weight: 400; }
.welcome-description { max-width: 440px; font-size: 1rem; line-height: 1.8; color: #e0edf3; margin: 0; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.site-button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 49px; padding: 13px 22px; border: 1px solid transparent; border-radius: 4px; text-decoration: none; font-size: .83rem; font-weight: 650; transition: background .2s, transform .2s; }
.button-primary { background: #80e5d5; color: #10364a; }
.button-primary:hover { background: #a5f1e6; transform: translateY(-2px); }
.button-outline { border-color: #b9d4e0; color: #fff; background: rgba(8,27,46,.25); }
.button-outline:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.hero-caption { margin-top: 65px; display: flex; gap: 12px; align-items: center; color: #daeaf1; font-size: .7rem; letter-spacing: .07em; }
.hero-caption > span { width: 34px; height: 1px; background: #80e5d5; }
.values-strip { display: grid; grid-template-columns: repeat(3, 1fr); padding: 25px max(32px, calc((100% - 1176px) / 2)); background: #12334d; color: #f2f9fc; }
.values-strip > div { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 8px 16px; border-right: 1px solid #3c627a; font-size: .88rem; }
.values-strip > div:last-child { border: 0; }
.value-number { color: #80e5d5; font-family: var(--font-heading); font-size: 1.35rem; font-style: italic; }
.home-page .site-section { max-width: 1240px; padding: 85px 32px; }
.school-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.story-image-wrap { position: relative; isolation: isolate; padding: 0 20px 22px 0; }
.story-image-wrap::before { content: ''; position: absolute; top: 24px; left: 24px; right: 0; bottom: 0; border: 1px solid #c6dce4; z-index: -1; }
.story-image { width: 100%; height: 400px; display: block; object-fit: cover; border-radius: 5px; }
.story-note { position: absolute; right: 0; bottom: 0; padding: 22px 30px; color: #f2f9fc; background: #12334d; font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.4; box-shadow: 0 8px 24px #102a4318; }
.story-note span { float: left; padding-right: 18px; font-size: 2.6rem; color: #80e5d5; }
.home-page .site-section h2 { font-size: clamp(2rem, 3.3vw, 2.9rem); line-height: 1.17; font-weight: 500; letter-spacing: -.03em; color: #102a43; margin: 0 0 30px; }
.home-page h2 em { color: #087782; font-weight: 400; }
.home-page .site-section .eyebrow { color: #146573; margin: 0 0 17px; }
.story-copy > p:not(.eyebrow) { font-size: .93rem; color: #4d6373; line-height: 1.85; }
.story-principles { display: flex; flex-wrap: wrap; gap: 12px 22px; border-top: 1px solid #d5e3eb; padding-top: 21px; margin-top: 24px; font-size: .76rem; color: #12334d; font-weight: 600; }
.story-principles span::before { content: '\2713'; color: #087782; margin-right: 8px; }
.portal-section { background: #edf5f8; border-block: 1px solid #d8e6ed; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.home-page .section-heading h2 { margin-bottom: 0; }
.home-page .section-heading > p { color: #4d6373; font-size: .9rem; margin: 0; }
.home-page .portal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 36px; }
.home-portal { display: flex; flex-direction: column; background: #ffffff; padding: 28px; border: 1px solid #d5e3eb; border-radius: 7px; text-decoration: none; color: #102a43; transition: transform .2s, box-shadow .2s, border-color .2s; }
.home-portal:hover { transform: translateY(-5px); box-shadow: 0 14px 35px #102a4312; border-color: #70bdb9; }
.portal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.portal-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #dff6f1; color: #12665c; }
.portal-icon svg { width: 25px; height: 25px; }
.portal-staff .portal-icon { color: #1e6296; background: #e6f1fc; }
.portal-admin .portal-icon { color: #146573; background: #e4edf7; }
/* Refined public card icons: monochrome maroon, a fine gold rim, and warm enamel.
   Shared by facilities.php (.facility-icon), the homepage login cards
   (.portal-icon), and Admissions/Contact's info cards (.info-icon). */
.public-body .facility-icon,
.public-body .info-icon,
.public-body .portal-icon {
  --card-icon-ink: #702b3e;
  --card-icon-ring: #b99a60;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  padding: 0;
  line-height: 0;
  border: 1px solid var(--card-icon-ring);
  border-radius: 50%;
  color: var(--card-icon-ink);
  background: linear-gradient(145deg, #fffefa 10%, #f4ecdc 100%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.8), 0 5px 12px rgba(85,55,30,.1);
}
.public-body .facility-icon svg,
.public-body .info-icon svg,
.public-body .portal-icon svg {
  display: block;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.public-body .info-icon,
.public-body .portal-icon { width: 54px; height: 54px; }
.public-body .info-icon svg,
.public-body .portal-icon svg { width: 28px; height: 28px; }
.public-body .info-icon { margin: 0 auto 16px; }
@media (prefers-reduced-motion: no-preference) {
  .public-body .facility-icon,
  .public-body .info-icon,
  .public-body .portal-icon { transition: transform .25s ease, box-shadow .25s ease; }
  .public-body .home-portal:focus-visible .portal-icon {
    transform: translateY(-2px) scale(1.035);
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.8), 0 8px 18px rgba(85,55,30,.16);
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .public-body .facility-card:hover .facility-icon,
  .public-body .portal-card:hover .info-icon,
  .public-body .home-portal:hover .portal-icon {
    transform: translateY(-2px) scale(1.035);
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.8), 0 8px 18px rgba(85,55,30,.16);
  }
}
.portal-label { font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: #526879; }
.home-portal h3 { font-family: var(--font-heading); font-weight: 400; font-size: 1.45rem; margin: 26px 0 10px; }
.home-page .home-portal p { font-size: .86rem; color: #4d6373; line-height: 1.75; margin: 0 0 26px; }
.portal-link { display: flex; justify-content: space-between; border-top: 1px solid #d8e6ed; padding-top: 19px; margin-top: auto; color: #12334d; font-size: .83rem; font-weight: 650; }
.portal-link > span { font-size: 1.2rem; line-height: 1; }
.school-signoff { text-align: center; padding: 54px 24px; }
.school-signoff img { border-radius: 50%; object-fit: cover; }
.school-signoff p { font-family: var(--font-heading); font-size: clamp(1.45rem, 3vw, 2rem); color: #12334d; margin: 15px 0 12px; }
.school-signoff em { color: #087782; }
.school-signoff > span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #526879; }
#about, #portals { scroll-margin-top: 24px; }
.site-brand-name { min-width: 0; line-height: 1.35; }
/* School logo: a one-time entrance and accent ring, with a gentle interactive lift. */
.site-logo-motion { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; }
.site-logo-motion .site-logo { display: block; }
.site-logo-motion::before { content: ''; position: absolute; inset: -5px; border: 2px solid var(--theme-accent); border-radius: 50%; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .site-logo-motion { animation: school-logo-enter 750ms cubic-bezier(.2,.7,.3,1) both; }
  .site-logo-motion::before { animation: school-logo-ring 1200ms ease-out 350ms both; }
  .site-logo-motion .site-logo { transition: transform 250ms ease, box-shadow 250ms ease; }
  .site-brand:focus-visible .site-logo { transform: translateY(-2px) rotate(-4deg) scale(1.04); box-shadow: 0 5px 14px rgba(16, 42, 67, .18); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .site-brand:hover .site-logo { transform: translateY(-2px) rotate(-4deg) scale(1.04); box-shadow: 0 5px 14px rgba(16, 42, 67, .18); }
}
@keyframes school-logo-enter {
  from { opacity: 0; transform: translateY(6px) scale(.88) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}
@keyframes school-logo-ring {
  0% { opacity: 0; transform: scale(.9); }
  30% { opacity: .75; }
  100% { opacity: 0; transform: scale(1.2); }
}
.site-menu-toggle { display: none; }
.public-body .site-nav[hidden] { display: none; }
.site-menu-toggle svg { width: 22px; height: 22px; flex-shrink: 0; }
.site-menu-toggle .menu-icon-close { display: none; }
.site-menu-toggle[aria-expanded="true"] .menu-icon-bars { display: none; }
.site-menu-toggle[aria-expanded="true"] .menu-icon-close { display: block; }
.site-menu-toggle:focus-visible { outline: 3px solid var(--theme-focus); outline-offset: 4px; }
.public-body .site-nav a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.hero-content p { max-width: 65ch; line-height: 1.7; }
.public-body:not(.home-page) .site-section + .site-section { border-top: 1px solid var(--auth-border); }
.page-content p { max-width: 80ch; margin: 0 0 24px; }
.page-content p:last-child { margin-bottom: 0; }
.page-content-full p { max-width: none; }
.about-grid > * { min-width: 0; }
.about-grid > div > p:first-child { margin-top: 0; }
.about-photo { display: block; }
@media (max-width: 1000px) {
  .public-body .site-header-inner { flex-direction: column; justify-content: center; }
  .school-story { gap: 38px; }
  .home-portal { padding: 22px; }
  .portal-label { font-size: .55rem; }
}
@media (max-width: 700px) {
  .public-body .site-header-inner { padding: 16px 20px; align-items: center; gap: 14px; }
  .public-body .site-brand { font-size: clamp(.82rem, 3.6vw, 1.05rem); }
  .public-body .site-brand-name { white-space: nowrap; }
  .public-body .site-nav { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .public-body .site-nav a { padding: 9px 8px; font-size: .75rem; }
  .public-body .nav-ready .site-header-inner { flex-direction: row; justify-content: space-between; }
  .public-body .nav-ready .site-brand { flex: 1; min-width: 0; }
  .nav-ready .site-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: var(--auth-card-bg);
    color: var(--site-primary);
    font: 600 .8rem var(--font-sans);
    cursor: pointer;
    flex-shrink: 0;
  }
  .public-body .nav-ready .site-nav { flex-basis: 100%; grid-template-columns: 1fr; padding-top: 12px; border-top: 1px solid var(--auth-border); }
  .public-body .nav-ready .site-nav a { justify-content: flex-start; padding: 12px; font-size: .9rem; }
  .hero { min-height: 240px; }
  .hero-content { padding: 40px 24px; }
  .site-section { padding: 44px 24px; }
  .about-grid { gap: 28px; }
  .leadership-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .leadership-card { max-width: none; padding: 20px; }
  .welcome-inner { padding: 58px 24px 25px; }
  .welcome-hero::before { background: linear-gradient(90deg, rgba(8,27,46,.88), rgba(8,27,46,.5)); }
  .welcome-copy h1 { font-size: clamp(2.65rem, 8.8vw, 3.6rem); }
  .hero-caption { margin-top: 45px; font-size: .63rem; }
  .values-strip { padding: 14px 12px; }
  .values-strip > div { flex-direction: column; text-align: center; gap: 6px; padding: 6px; font-size: .68rem; }
  .value-number { font-size: 1.15rem; }
  .home-page .site-section { padding: 54px 24px; }
  .school-story { grid-template-columns: 1fr; gap: 36px; }
  .story-image { height: 330px; }
  .section-heading { display: block; }
  .home-page .section-heading > p { margin-top: 20px; }
  .home-page .portal-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .home-portal { padding: 25px; }
  .portal-label { font-size: .65rem; }
}
/* Keep the complete school name beside an accessible, compact menu button. */
@media (max-width: 480px) {
  .public-body .site-header-inner { padding-inline: 12px; gap: 8px; }
  .public-body .site-brand { gap: 8px; }
  .public-body .site-logo { width: 36px; height: 36px; }
  .nav-ready .site-menu-toggle { width: 44px; min-width: 44px; padding: 10px; }
  .site-menu-toggle > span { display: none; }
}
@media (max-width: 380px) {
  .welcome-actions { flex-direction: column; }
  .story-image { height: 280px; }
  .story-note { padding: 18px; font-size: 1.1rem; }
  .contact-map iframe { height: 280px; }
}
/* Desktop navigation tab layout. Mobile keeps its original vertical menu. */
@media (min-width: 701px) {
  .public-body .site-nav {
    flex-wrap: nowrap;
    align-items: center;
    gap: 3px;
    padding: 5px;
    border: 1px solid var(--auth-border);
    border-radius: 14px;
    background: var(--auth-bg);
    box-shadow: 0 2px 8px rgba(16, 42, 67, .04);
  }
  .public-body .site-nav a {
    position: relative;
    white-space: nowrap;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .01em;
    color: var(--auth-muted);
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  }
  .public-body .site-nav a:hover { background: var(--auth-border); color: var(--site-primary); }
  .public-body .site-nav a.active {
    background: var(--site-primary);
    color: #fff;
    box-shadow: 0 2px 5px rgba(16, 42, 67, .16);
  }
  .public-body .site-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: calc(50% - 9px);
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--theme-accent);
  }
}
@media (max-width: 700px) {
  .public-body .site-nav a { background: var(--auth-bg); }
  .public-body .site-nav a:hover { background: var(--auth-border); color: var(--site-primary); }
  .public-body .site-nav a.active { background: var(--site-primary); color: #fff; }
}
@media (min-width: 1001px) {
  .public-body .site-header-inner { flex-wrap: nowrap; gap: 24px; }
  .public-body .site-brand { min-width: 0; flex: 1; }
  .public-body .site-nav { flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .public-body *, .public-body *::before, .public-body *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .public-body .reveal, .public-body .hero-load { opacity: 1 !important; translate: none !important; }
  .public-body :is(.portal-card, .leadership-card, .gallery-grid figure, .info-card, .home-portal, .site-button, .quick-sidebar-item) {
    transform: none !important;
  }
}
@media print {
  .public-body .reveal, .public-body .hero-load { opacity: 1 !important; translate: none !important; animation: none !important; }
}
