/* ==========================================================================
   Excellia School — public stylesheet
   Design tokens lifted from the Lovable "sparkle" reference, converted from
   OKLCH to hex so every browser (and cPanel's older caches) renders them.
   No build step: edit this file and reload.
   ========================================================================== */

:root {
  --navy: #04425f;
  --navy-deep: #00324c;
  --navy-mid: #006085;
  --primary: #0a6e96;
  --primary-dark: #005781;
  --sky: #2eb2ea;
  --sky-light: #67d3fd;
  --ember: #ed3235;
  --ember-dark: #c7232a;
  --success: #32875c;
  --ink: #212426;
  --muted: #66747d;
  --surface: #f1f7fa;
  --surface-2: #e7f2f8;
  --muted-bg: #eef4f7;
  --border: #d9e4ea;
  --white: #ffffff;
  --radius: 0.875rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 1px 2px rgba(4, 66, 95, .06), 0 1px 3px rgba(4, 66, 95, .08);
  --shadow: 0 4px 6px -1px rgba(4, 66, 95, .08), 0 2px 4px -2px rgba(4, 66, 95, .06);
  --shadow-md: 0 10px 15px -3px rgba(4, 66, 95, .12), 0 4px 6px -4px rgba(4, 66, 95, .08);
  --shadow-lg: 0 20px 35px -10px rgba(4, 66, 95, .18);
  --grad-navy: linear-gradient(135deg, #00324c, #006085);
  --grad-sky: linear-gradient(135deg, #67d3fd, #2eb2ea);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4, h5 { line-height: 1.22; color: var(--navy); margin: 0 0 .6em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .8rem 1.5rem; border-radius: var(--radius-sm); font-weight: 650;
  font-size: .96rem; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ember { background: var(--ember); color: #fff; }
.btn-ember:hover { background: var(--ember-dark); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: .5rem 1rem; font-size: .875rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar { background: var(--grad-navy); color: #fff; font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.9); }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-info { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.topbar-cta { display: flex; gap: .75rem; align-items: center; }
.topbar-admission { display: none; font-weight: 700; background: var(--ember); color: #fff !important; padding: .18rem .75rem; border-radius: 999px; }
.topbar-admission:hover { background: var(--ember-dark); text-decoration: none !important; }
.badge-affiliation { background: rgba(255,255,255,.14); padding: .18rem .6rem; border-radius: 999px; font-weight: 600; letter-spacing: .01em; }

.site-header .container { width: min(100% - 2.5rem, 1320px); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 42px; width: auto; max-width: none; }

/* The nav stretches the full header height so each dropdown opens flush under
   its parent -- no gap for the pointer to fall through. */
.main-nav { align-self: stretch; display: flex; margin-left: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 0; }
.main-nav > ul > li { position: relative; display: flex; align-items: center; margin: 0; }
.main-nav a {
  display: block; padding: .5rem .5rem; color: var(--ink); font-weight: 560; font-size: .9rem;
  border-radius: var(--radius-sm); white-space: nowrap;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > a[aria-current="page"], .main-nav > ul > li:focus-within > a { color: var(--primary); background: var(--surface); }
.has-children > a::after { content: "▾"; margin-left: .3rem; font-size: .7em; opacity: .6; }

/* Dropdowns are hidden until the parent is hovered or focused. Selector is
   .main-nav .dropdown so it out-ranks any generic ".main-nav ul" rule. */
.main-nav .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 264px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .5rem; list-style: none; margin: 0; display: none; flex-direction: column; z-index: 70;
  max-height: calc(100vh - var(--header-h) - 60px); overflow-y: auto;
}
.main-nav > ul > li:nth-last-child(-n+3) > .dropdown { left: auto; right: 0; }
.main-nav .has-children:hover > .dropdown, .main-nav .has-children:focus-within > .dropdown { display: flex; }
.main-nav .dropdown li { margin: 0; }
.main-nav .dropdown a { padding: .5rem .7rem; font-size: .9rem; font-weight: 500; white-space: normal; }
.main-nav .dropdown a:hover { background: var(--surface); color: var(--primary); }
.main-nav > ul > li.nav-cta-mobile { display: none; }
.nav-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .5rem .7rem; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px 0; }

@media (max-width: 1439px) {
  .nav-actions .btn { display: none; }
  .topbar-admission { display: inline-block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad-navy); color: #fff; overflow: hidden; }
.hero-slide { position: relative; min-height: min(86vh, 660px); display: flex; align-items: center; }
.hero-slide[hidden] { display: none; } /* display:flex above would otherwise defeat the hidden attribute */
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,32,54,.9) 0%, rgba(0,50,76,.72) 45%, rgba(0,50,76,.35) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 5rem 0 4.5rem; max-width: 720px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28); padding: .4rem .95rem; border-radius: 999px;
  font-size: .84rem; font-weight: 600; margin-bottom: 1.4rem; backdrop-filter: blur(4px);
}
.hero h1, .hero h2.hero-title { color: #fff; margin-bottom: 1.1rem; font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.08; }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.92); margin-bottom: 2rem; max-width: 620px; }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 1.6rem; left: 0; right: 0; z-index: 3; display: flex; gap: .5rem; justify-content: center; }
.hero-dot { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.4); border: none; cursor: pointer; padding: 0; }
.hero-dot[aria-current="true"] { background: #fff; width: 26px; }

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--sky); color: var(--navy-deep); }
.stats-strip .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; }
.stat { padding: 1.4rem 1rem; text-align: center; border-right: 1px solid rgba(0,50,76,.12); }
.stat:last-child { border-right: none; }
.stat-value { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.stat-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; opacity: .8; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 5.25rem) 0; }
.section-alt { background: var(--surface); }
.section-navy { background: var(--grad-navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .section-lead { color: rgba(255,255,255,.85); }
.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary); margin-bottom: .7rem;
}
.section-navy .eyebrow { color: var(--sky-light); }
.section-lead { font-size: 1.08rem; color: var(--muted); }
.section-head.center .section-lead { margin-inline: auto; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sky); }
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.35rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-title { font-size: 1.08rem; margin: 0; font-weight: 700; }
.card-title a { color: var(--navy); }
.card-title a:hover { color: var(--primary); }
.card-text { color: var(--muted); font-size: .93rem; margin: 0; }
.card-link { margin-top: auto; font-weight: 650; font-size: .9rem; color: var(--primary); display: inline-flex; gap: .3rem; align-items: center; }
.card-link::after { content: "→"; transition: transform .2s ease; }
.card:hover .card-link::after { transform: translateX(4px); }
.card-meta { font-size: .8rem; color: var(--muted); display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

/* Pillars (Explore / Achieve / Excel) */
.pillar { background: #fff; border-radius: var(--radius); padding: 2rem 1.75rem; border: 1px solid var(--border); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.pillar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--grad-sky); }
.pillar h3 { margin-bottom: .5rem; }
.pillar p { color: var(--muted); margin: 0; font-size: .95rem; }
.pillar-num { font-size: .75rem; font-weight: 800; letter-spacing: .16em; color: var(--sky); text-transform: uppercase; margin-bottom: .6rem; display: block; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; background: var(--surface-2); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; font-size: .96rem; }
.check-list li::before {
  content: "✓"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px;
  background: rgba(50,135,92,.13); color: var(--success); display: grid; place-items: center;
  font-size: .72rem; font-weight: 800; margin-top: .18rem;
}

/* ---------- Video walkthrough ---------- */
.video-frame {
  position: relative; max-width: 900px; margin: 0 auto; aspect-ratio: 16/9;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #000;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; padding: 0;
  border-radius: 999px; border: 3px solid rgba(255,255,255,.85); background: rgba(0,50,76,.82);
  color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.video-play svg { margin-left: 4px; }
.video-play:hover, .video-play:focus-visible { background: var(--primary); transform: scale(1.07); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding-top: 3.1rem; }
.step::before {
  counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0;
  font-size: 1.7rem; font-weight: 800; color: var(--sky); letter-spacing: -.02em;
}
.step h4 { margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Quote ---------- */
.quote-block {
  background: var(--surface); border-left: 4px solid var(--sky); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.75rem 2rem; font-size: 1.12rem; font-style: italic; color: var(--navy); margin: 0;
}
.quote-block footer { font-style: normal; font-size: .88rem; color: var(--muted); margin-top: .9rem; font-weight: 600; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonial-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.5rem 1.4rem; display: flex; flex-direction: column; gap: 1.1rem; position: relative; overflow: hidden;
}
.testimonial-card::before {
  content: "\201C"; position: absolute; top: -.4rem; right: .9rem; font-size: 4.5rem; font-family: Georgia, "Times New Roman", serif;
  color: var(--surface); font-weight: 700; line-height: 1; z-index: 0; pointer-events: none;
}
.testimonial-quote { position: relative; z-index: 1; font-size: .95rem; color: var(--ink); }
.testimonial-quote p { margin: 0 0 .65em; }
.testimonial-quote p:last-child { margin-bottom: 0; }
.testimonial-quote strong, .testimonial-quote b { color: var(--navy); }
.testimonial-footer { display: flex; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--border); margin-top: auto; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--border); }
.testimonial-parent { font-size: .88rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.testimonial-parent span { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Gallery grid ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.gallery-tile {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); cursor: pointer; border: none; padding: 0; display: block; width: 100%;
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-tile:hover img { transform: scale(1.08); }
.gallery-tile::after {
  content: "🔍"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.4rem;
  background: rgba(0,50,76,.45); opacity: 0; transition: opacity .25s ease;
}
.gallery-tile:hover::after { opacity: 1; }

.album-card .card-media { aspect-ratio: 4/3; }
.album-count {
  position: absolute; bottom: .7rem; right: .7rem; background: rgba(0,50,76,.82); color: #fff;
  padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 650; backdrop-filter: blur(3px);
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,24,40,.94); z-index: 200; display: none; place-items: center; padding: 1.5rem; }
.lightbox[aria-hidden="false"] { display: grid; }
.lightbox img { max-width: min(100%, 1100px); max-height: 84vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: #fff; width: 46px; height: 46px; border-radius: 999px; cursor: pointer; font-size: 1.3rem;
  display: grid; place-items: center; transition: background .2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.28); }
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.9); font-size: .92rem; padding: 0 2rem; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: .75rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 1.1rem 3rem 1.1rem 1.35rem; background: none; border: none;
  font-size: 1.03rem; font-weight: 650; color: var(--navy); cursor: pointer; position: relative; font-family: inherit;
}
.faq-q { list-style: none; display: block; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "+"; position: absolute; right: 1.35rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--sky); font-weight: 400; transition: transform .2s ease; }
.faq-item[open] .faq-q::after, .faq-q[aria-expanded="true"]::after { content: "−"; }
.faq-a { padding: 0 1.35rem 1.25rem; color: var(--muted); font-size: .97rem; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- AEO answer block ---------- */
.answer-block {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 1.35rem 1.6rem; margin-bottom: 2rem;
}
.answer-block h2 { font-size: 1.02rem; margin: 0 0 .5rem; color: var(--primary); }
.answer-block p { margin: 0; font-size: 1.02rem; color: var(--ink); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--surface); border-bottom: 1px solid var(--border); padding: .8rem 0; font-size: .86rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--border); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 600; }

/* ---------- Page header ---------- */
.page-header { background: var(--grad-navy); color: #fff; padding: clamp(2.4rem, 5vw, 3.6rem) 0; }
.page-header h1 { color: #fff; margin-bottom: .35rem; font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
.page-header .page-sub { color: rgba(255,255,255,.85); margin: 0; font-size: 1.05rem; max-width: 700px; }

/* Clicking a sidebar link from #page-content lands the next page here instead
   of at its hero; the sticky header (topbar + nav, taller once the topbar
   wraps to two lines between 620-1239px) would otherwise cover the top of it. */
#page-content { scroll-margin-top: 160px; }

/* ---------- Inner-page hero (page.default: about/campus/academic pages) ---------- */
.page-hero { position: relative; height: clamp(220px, 32vw, 380px); background: var(--grad-navy) center/cover no-repeat; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,50,76,.55) 0%, rgba(0,50,76,.2) 55%, rgba(0,50,76,.9) 100%);
}
.page-hero-wrap { position: relative; z-index: 5; margin-top: clamp(-56px, -8vw, -84px); }
.page-hero-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 5vw, 3rem);
}
.page-hero-card .eyebrow { margin-bottom: .5rem; }
.page-hero-card h1 { margin-bottom: .4rem; }
.page-hero-card .page-sub { color: var(--muted); font-size: 1.04rem; max-width: 68ch; margin: 0; }

/* ---------- Section family layout (sidebar of sibling pages + content) ---------- */
.page-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.section-nav { position: sticky; top: calc(var(--header-h) + 1.25rem); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.section-nav-head { padding: .95rem 1.15rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.section-nav-head span { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.section-nav ul { list-style: none; margin: 0; padding: .5rem; display: grid; gap: .15rem; }
.section-nav li { margin: 0; }
.section-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .68rem .9rem; border-radius: var(--radius-sm); font-size: .93rem; font-weight: 600;
  color: var(--ink); border-left: 3px solid transparent;
}
.section-nav a:hover { background: var(--surface); color: var(--primary); }
.section-nav a[aria-current="page"] { background: var(--navy); color: #fff; border-left-color: var(--sky); }
.section-nav a[aria-current="page"]::after { content: "→"; flex-shrink: 0; }

/* ---------- Leadership / profile message ---------- */
.profile-intro { display: flex; gap: clamp(1.5rem, 4vw, 2.75rem); align-items: flex-start; flex-wrap: wrap; margin-bottom: 2.25rem; }
.profile-portrait { position: relative; flex-shrink: 0; width: 190px; }
.profile-portrait::before {
  content: ""; position: absolute; top: 16px; left: 16px; width: 100%; height: 100%;
  border: 3px solid var(--sky); border-radius: var(--radius-lg); z-index: 0;
}
.profile-portrait img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 4px solid #fff; outline: 1px solid var(--border);
}
.profile-meta { flex: 1; min-width: 260px; padding-top: .35rem; }
.profile-meta .role-badge {
  display: inline-block; background: var(--surface); color: var(--primary); border: 1px solid var(--border);
  padding: .3rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 700; margin-bottom: .7rem;
}
.profile-meta h2 { margin-bottom: 0; }
.page-body { min-width: 0; }

@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .section-nav { position: static; }
  .profile-intro { flex-direction: column; align-items: center; text-align: center; }
  .profile-meta { min-width: 0; }
}

@media (max-width: 620px) {
  .page-hero-wrap { margin-top: -40px; }
  .page-hero-card { padding: 1.25rem 1.35rem; }
  .profile-portrait { width: 150px; }
}

/* ---------- Rich content ---------- */
.prose { max-width: 780px; font-size: 1.04rem; }
.prose > h2 { margin-top: 2.1em; font-size: 1.55rem; }
.prose > h3 { margin-top: 1.7em; font-size: 1.2rem; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; box-shadow: var(--shadow-sm); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
/* A table this wide (the fee tables run to 9-10 columns) will always need to
   scroll on any normal screen -- the fix isn't fitting it in, it's making
   that scrolling obvious. The table keeps its own scrollbar always visible
   (rather than the OS's hover/auto-hide one), the first column stays put as
   a sticky anchor while the rest scrolls, and .table-wrap (below) adds a
   "swipe" hint via JS for touch screens where even a styled scrollbar is
   invisible until touched. */
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .93rem;
  display: block; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--muted) var(--surface);
}
.prose table::-webkit-scrollbar { height: 9px; }
.prose table::-webkit-scrollbar-track { background: var(--surface); }
.prose table::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.prose table::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.prose th, .prose td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: left; }
.prose th { background: var(--surface); font-weight: 700; color: var(--navy); }
.prose table th:first-child, .prose table td:first-child {
  position: sticky; left: 0; background: #fff; white-space: normal; min-width: 140px;
  box-shadow: 2px 0 4px rgba(0,0,0,.06);
}
.prose table th:first-child { background: var(--surface); z-index: 1; }
.table-wrap { position: relative; }
.table-scroll-hint {
  display: none; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--primary);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: .3rem .8rem; margin: -.9rem 0 1rem; width: fit-content;
}
.table-wrap.is-scrollable .table-scroll-hint { display: flex; }
.prose blockquote { border-left: 3px solid var(--sky); margin: 1.5rem 0; padding: .5rem 1.2rem; color: var(--muted); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose figure { margin: 1.5rem 0; }

/* ---------- Embedded photo galleries ----------
   WordPress (Envira Gallery) left these as schema.org ImageGallery/ImageObject
   blocks: a flat stack of full-width photos, one after another. Grid them into
   thumbnails instead and hand them to the lightbox (see app.js) so they open
   full-size with left/right navigation, matching the dedicated gallery pages. */
.prose [itemtype$="ImageGallery"] { margin: 1.75rem 0; }
.prose [itemtype$="ImageGallery"] > div {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .7rem;
}
.prose [itemtype$="ImageObject"], .prose [itemtype$="ImageObject"] > div { margin: 0; }
.prose [itemtype$="ImageObject"] a {
  display: block; position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); cursor: zoom-in; text-decoration: none;
}
.prose [itemtype$="ImageObject"] img {
  width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; box-shadow: none;
  transition: transform .35s ease;
}
.prose [itemtype$="ImageObject"] a:hover img { transform: scale(1.06); }
.prose [itemtype$="ImageObject"] a::after {
  content: "🔍"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.3rem;
  color: #fff; background: rgba(0,50,76,.35); opacity: 0; transition: opacity .2s ease;
}
.prose [itemtype$="ImageObject"] a:hover::after { opacity: 1; }

@media (max-width: 620px) {
  .prose [itemtype$="ImageGallery"] > div { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: .5rem; }
}

/* ---------- Article ---------- */
.article-header { margin-bottom: 2rem; }
.article-meta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; font-size: .87rem; color: var(--muted); margin-bottom: 1rem; }
.article-meta .pill { background: var(--surface); border: 1px solid var(--border); padding: .18rem .7rem; border-radius: 999px; font-weight: 600; font-size: .8rem; color: var(--navy); }
.article-hero { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow-md); background: var(--surface-2); }
.article-hero img { width: 100%; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-card h3 { font-size: 1.02rem; margin-bottom: .9rem; }
.glance-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; color: var(--navy); font-size: .93rem; }
.glance-list li { margin: 0; }
.glance-list a { font-weight: 600; }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.mini-item { display: grid; grid-template-columns: 76px 1fr; gap: .8rem; align-items: center; }
.mini-item img { width: 76px; height: 58px; object-fit: cover; border-radius: var(--radius-sm); }
.mini-item a { font-size: .92rem; font-weight: 620; color: var(--navy); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini-item a:hover { color: var(--primary); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag-pill { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .25rem .75rem; font-size: .82rem; color: var(--muted); }
.tag-pill:hover { border-color: var(--sky); color: var(--primary); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: .4rem; justify-content: center; align-items: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: .5rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; color: var(--navy); background: #fff;
}
.pagination .active, .pagination span[aria-current="page"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a:hover { border-color: var(--sky); color: var(--primary); }
.pagination .disabled { opacity: .45; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-card { display: flex; gap: 1rem; padding: 1.35rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; }
.contact-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--surface);
  display: grid; place-items: center; font-size: 1.15rem; color: var(--primary);
}
.contact-card h4 { margin: 0 0 .25rem; font-size: .98rem; }
.contact-card p { margin: 0; font-size: .93rem; color: var(--muted); }
.contact-card a { font-weight: 600; }

.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 620; font-size: .9rem; margin-bottom: .4rem; color: var(--navy); }
.form-control {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .96rem; font-family: inherit; background: #fff; color: var(--ink); transition: border-color .16s ease, box-shadow .16s ease;
}
.form-control:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(46,178,234,.18); }
textarea.form-control { min-height: 130px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; }
.alert { padding: .9rem 1.15rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-size: .93rem; font-weight: 550; }
.alert-success { background: rgba(50,135,92,.1); border: 1px solid rgba(50,135,92,.3); color: #1f6b46; }
.alert-error { background: rgba(237,50,53,.08); border: 1px solid rgba(237,50,53,.28); color: var(--ember-dark); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-navy); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3.2rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 620px; margin-inline: auto; }
.cta-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: clamp(2.75rem, 5vw, 4rem) 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .93rem; }
.footer-list a { color: rgba(255,255,255,.75); }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { height: 52px; background: #fff; border-radius: var(--radius-sm); padding: .4rem .6rem; margin-bottom: 1rem; }
.footer-contact { display: grid; gap: .7rem; font-size: .93rem; }
.footer-contact a { color: rgba(255,255,255,.9); }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact div { display: flex; gap: .6rem; align-items: flex-start; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 1.25rem 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .75rem; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: .75rem; } .mb-2 { margin-bottom: 1.5rem; } .mb-3 { margin-bottom: 2.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.divider { height: 1px; background: var(--border); margin: 2.5rem 0; border: 0; }
.notice { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; font-size: .95rem; color: var(--muted); }

/* ---------- 404 ---------- */
.error-page { padding: clamp(3rem, 8vw, 6rem) 0; text-align: center; }
.error-code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; color: var(--surface-2); line-height: 1; margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1239px) {
  .nav-toggle { display: block; }
  .nav-wrap { position: relative; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: -1.25rem; right: -1.25rem; margin: 0; background: #fff;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); max-height: calc(100vh - var(--header-h) - 44px); overflow-y: auto;
  }
  .main-nav[aria-expanded="true"] { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: .75rem; gap: 0; }
  .main-nav > ul > li { display: block; }
  .main-nav a { padding: .8rem .9rem; border-radius: var(--radius-sm); white-space: normal; }
  .main-nav .dropdown { position: static; display: none; box-shadow: none; border: none; max-height: none; overflow: visible; padding: 0 0 0 .75rem; min-width: 0; }
  .main-nav .has-children:hover > .dropdown, .main-nav .has-children:focus-within > .dropdown { display: none; }
  .main-nav .has-children.open > .dropdown { display: flex; }
  .has-children > a { display: flex; justify-content: space-between; align-items: center; }
  .has-children.open > a::after { content: "▴"; }
  .main-nav > ul > li.nav-cta-mobile { display: block; padding-top: .5rem; }
  .nav-cta-mobile .btn { width: 100%; }
  .nav-actions .btn { display: none; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .topbar-info { font-size: .76rem; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 1.75rem); }
  .hero-slide { min-height: 74vh; }
  .stat { border-right: none; border-bottom: 1px solid rgba(0,50,76,.12); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .65rem; }
  .brand img { height: 36px; }
  .nav-wrap { min-height: 64px; }
  .topbar .container { min-height: 34px; }
  .topbar-cta, .topbar-info .hide-sm { display: none; }
  .topbar-info { gap: .75rem; }
}

@media print {
  .site-header, .site-footer, .cta-band, .lightbox { display: none; }
  .section { padding: 1rem 0; }
}
