/* =============================================================
   Discovery Preparatory Academy — Design System
   "Collegiate Editorial" — ivory canvas, oxford-navy ink, antique brass.
   Light-first. Defined once, reused on every page.
   ============================================================= */

/* ---------- 0. Fonts (self-hosted) ---------- */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-400-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-400.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/inter-500-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/inter-500.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/inter-600-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/inter-600.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:600;font-display:swap;src:url(/fonts/playfairdisplay-600i-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:600;font-display:swap;src:url(/fonts/playfairdisplay-600i.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/playfairdisplay-500-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/playfairdisplay-500.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/playfairdisplay-600-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/playfairdisplay-600.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette — Black & Gold (dark theme) */
  --canvas:       #100D08;   /* black page ground */
  --canvas-2:     #17130C;   /* alt dark band / card media */
  --panel:        #1C1710;   /* dark card / input surface */
  --ink:          #D8B76A;   /* GOLD — headings, links, nav, primary marks */
  --ink-deep:     #0A0805;   /* deepest black — gradients / cta */
  --ink-soft:     #B0A07C;   /* muted gold-grey — secondary text */
  --body:         #E8E0CC;   /* warm off-white — reading text on black */

  --gold:         #C79A3E;   /* brass — button surfaces (with dark text) */
  --gold-ink:     #D8B76A;   /* gold TEXT on dark (eyebrows, kickers) */
  --gold-bright:  #E7CB83;   /* bright gold — accents on black */

  --band-bg:      #0B0805;   /* deeper black band background */
  --band-bg-deep: #060402;
  --band-text:    #F1EAD6;   /* cream text on black bands */
  --band-muted:   rgba(241,234,214,0.70);

  --line:         rgba(199,154,62,0.24);   /* gold hairline */
  --line-strong:  rgba(199,154,62,0.42);
  --line-band:    rgba(241,234,214,0.16);/* hairline on dark bands */

  /* Type */
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: clamp(0.80rem, 0.77rem + 0.15vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.08rem);
  --step-1:  clamp(1.18rem, 1.10rem + 0.40vw, 1.38rem);
  --step-2:  clamp(1.45rem, 1.28rem + 0.85vw, 1.95rem);
  --step-3:  clamp(1.80rem, 1.50rem + 1.45vw, 2.65rem);
  --step-4:  clamp(2.10rem, 1.65rem + 2.20vw, 3.45rem);
  --step-5:  clamp(2.70rem, 1.90rem + 3.80vw, 5.20rem);

  /* Space */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;

  --section-y: clamp(3.4rem, 2.4rem + 3.4vw, 6rem);
  --section-y-compact: clamp(2.6rem, 2rem + 2.2vw, 4.2rem);
  --container: 1180px;
  --measure: 66ch;

  --r-sm: 2px; --r-md: 3px; --r-lg: 4px;
  --shadow-1: 0 1px 0 rgba(26,23,18,0.06);
  --shadow-2: 0 24px 50px -34px rgba(26,23,18,0.5);
  --shadow-3: 0 30px 60px -40px rgba(15,13,10,0.6);

  --header-h: 74px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-5));
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture, video { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--sp-4); max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-ink); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

/* ---------- 3. Accessibility ---------- */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: var(--r-sm); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 200;
  background: var(--band-bg-deep); color: var(--band-text);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-md); font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--sp-4); color: var(--band-text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- 4. Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
@media (min-width: 60em) { .container { padding-inline: var(--sp-7); } }

.section { padding-block: var(--section-y); }
.section--compact { padding-block: var(--section-y-compact); }
.section--light { background: var(--canvas-2); }
.section--white { background: var(--panel); }
/* .section--panel is a DARK navy band (see §Dark bands). */
.section--panel { background: var(--band-bg); color: var(--band-text); }

.section__rule { border: 0; border-top: 1px solid rgba(154,122,54,0.38); margin-block: clamp(2.5rem, 2rem + 2vw, 4rem); }

.subhead { margin-bottom: var(--sp-6); }
.subhead h3 { font-size: var(--step-2); }
.mt-lg { margin-top: clamp(2rem, 1.5rem + 1.5vw, 3rem); }

/* Editorial pullquote — italic serif, gold rule. */
.pullquote {
  margin: 0; border-left: 2px solid var(--gold); padding-left: clamp(1rem, 0.5rem + 2vw, 2rem);
  font-family: var(--font-heading); font-size: var(--step-3); font-style: italic; line-height: 1.2;
  max-width: 22ch; color: var(--ink); letter-spacing: -0.01em;
}

/* Newsletter strip — light parchment band above the footer. */
.strip { padding-block: clamp(2rem, 1.5rem + 1.5vw, 3rem); background: var(--canvas-2); border-top: 1px solid var(--line); }
.strip__inner { display: grid; gap: var(--sp-5); align-items: center; }
.strip h2 { font-size: var(--step-2); margin: 0; }
.strip p { color: var(--ink-soft); font-size: 0.95rem; margin: var(--sp-2) 0 0; }
@media (min-width: 48em) { .strip__inner { grid-template-columns: 1fr 1.1fr; gap: var(--sp-7); } }

.stack > * + * { margin-top: var(--sp-4); }
.grid { display: grid; gap: var(--sp-6); }
@media (min-width: 48em) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 48em) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.grid--split { align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 62em) { .grid--split { grid-template-columns: 1fr 1fr; } }

@media (max-width: 61.99em) {
  .cards-snap {
    grid-auto-flow: column; grid-auto-columns: minmax(78%, 20rem);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--sp-5); margin-inline: calc(var(--sp-5) * -1); padding-inline: var(--sp-5);
    padding-block: 0.375rem var(--sp-4); scrollbar-width: thin;
  }
  .cards-snap > .card { scroll-snap-align: start; }
}
@media (max-width: 61.99em) and (min-width: 34em) { .cards-snap { grid-auto-columns: minmax(60%, 22rem); } }

.center { text-align: center; }
.center p { margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }

/* ---------- 5. Eyebrow, section head, lead ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 var(--sp-5);
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold); flex: none; }
.center .eyebrow::before { display: none; }

.section-head { margin-bottom: var(--sp-7); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-bg: var(--gold); --btn-fg: #1c1405; --btn-bd: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3);
  min-height: 48px; padding: 0.8rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd); border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.btn:hover { background: transparent; color: var(--gold-ink); border-color: var(--gold); }
.btn--gold { --btn-bg: var(--gold); --btn-bd: var(--gold); --btn-fg: #1c1405; }
.btn--gold:hover { background: transparent; color: var(--gold-ink); border-color: var(--gold); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline-dark { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--outline-dark:hover { background: var(--ink); color: #1c1405; border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); align-items: center; }
.center .btn-row { justify-content: center; }

/* ---------- 7. Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: transparent;
  border-bottom: 1px solid transparent; transition: border-color 0.25s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.1) blur(10px); backdrop-filter: saturate(1.1) blur(10px);
  transition: background-color 0.25s var(--ease); pointer-events: none;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before { background: color-mix(in srgb, var(--canvas) 95%, transparent); }

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--header-h); }
@media (min-width: 48em) { .header__inner { gap: var(--sp-5); } }

.brand { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: var(--ink); flex: 1 1 auto; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand img, .brand svg { width: 38px; height: auto; color: var(--gold); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font-family: var(--font-heading); font-size: 1.04rem; font-weight: 600; letter-spacing: 0.005em; color: var(--ink); }
.brand__tag { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink); margin-top: 0.15rem; }
@media (max-width: 30em) { .brand__name { font-size: 0.9rem; } .brand__tag { font-size: 0.5rem; letter-spacing: 0.12em; white-space: nowrap; } }
@media (max-width: 22em) { .brand__tag { display: none; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3);
  min-height: 44px; padding: var(--sp-2) var(--sp-3); background: none; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); color: var(--ink); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; flex: none;
}
@media (max-width: 30em) {
  .nav-toggle { gap: 0; min-width: 44px; padding: var(--sp-2); }
  .nav-toggle > span:not(.nav-toggle__bars) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.nav-toggle__bars { position: relative; width: 18px; height: 2px; background: currentColor; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav {
  position: fixed; inset: var(--header-h) 0 0 0; display: flex; flex-direction: column; gap: var(--sp-5);
  padding: var(--sp-7) var(--sp-5) var(--sp-8); background: var(--canvas); border-top: 1px solid var(--line);
  overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform 0.3s var(--ease), visibility 0.3s var(--ease);
}
.nav.is-open { transform: translateX(0); visibility: visible; }
.nav__list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
.nav__link { display: block; padding: var(--sp-3) 0; font-family: var(--font-heading); font-size: var(--step-2); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--gold-ink); }
.nav__cta { align-self: flex-start; }
body.nav-open { overflow: hidden; }

@media (min-width: 62em) {
  .nav-toggle { display: none; }
  .nav { position: static; flex-direction: row; align-items: center; gap: var(--sp-5); padding: 0; background: none; border: 0; overflow: visible; transform: none; visibility: visible; }
  .nav__list { flex-direction: row; gap: var(--sp-5); }
  .nav__link {
    padding: var(--sp-2) 0; font-family: var(--font-body); font-size: 0.76rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 0; position: relative;
  }
  .nav__link:hover { color: var(--ink); }
  .nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.24s var(--ease); }
  .nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
  .nav__cta { padding: 0.55rem 1.1rem; min-height: 42px; }
}

/* ---------- 7b. Programs mega menu (solutions) ---------- */
/* Mobile-first: the mega renders as a stacked sub-list inside the slide-in panel. */
.mega__inner { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-2) 0 0; }
.mega__head { font-family: var(--font-body); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: var(--sp-2); }
.mega__col { display: flex; flex-direction: column; gap: 2px; }
.mega__item { display: block; padding: var(--sp-2) 0; text-decoration: none; color: var(--ink); border-bottom: 0; }
.mega__item:hover { color: var(--gold-ink); }
.mega__t { display: block; font-family: var(--font-heading); font-size: 1rem; line-height: 1.2; }
.mega__d { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.1rem; }
.mega__aside { display: none; }
.mega__eyebrow { font-family: var(--font-body); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); }
.mega__lead { font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.25; color: var(--band-text); }

@media (min-width: 62em) {
  .header__inner { position: relative; }
  .has-mega { position: static; }
  .has-mega > .nav__link { cursor: default; }
  .mega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--band-bg); border: 1px solid var(--line-strong); border-radius: var(--r-md);
    box-shadow: 0 26px 64px rgba(0, 0, 0, 0.55);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    /* Closed state lingers briefly so the cursor can cross from the link into the
       panel without the menu vanishing mid-move (visibility flips only after 0.35s). */
    transition: opacity 0.2s var(--ease) 0.12s, transform 0.2s var(--ease) 0.12s, visibility 0s linear 0.35s;
    z-index: 60;
  }
  /* Transparent bridge fills the header space directly under the trigger so the
     hover path from the link down to the panel is continuous. */
  .has-mega > .nav__link::before { content: ""; position: absolute; left: -0.5rem; right: -0.5rem; top: 100%; height: 2.2rem; }
  .has-mega:hover > .mega, .has-mega:focus-within > .mega {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s;
  }
  .mega__inner {
    display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: var(--sp-6);
    padding: var(--sp-6) var(--sp-7);
  }
  .mega__head { margin-bottom: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line); }
  .mega__col { gap: var(--sp-2); }
  .mega__item { padding: 0.35rem 0; }
  .mega__aside { display: flex; flex-direction: column; gap: var(--sp-3); justify-content: center; padding-left: var(--sp-6); border-left: 1px solid var(--line); }
  .mega__actions { display: flex; flex-direction: column; gap: var(--sp-2); align-items: flex-start; margin-top: var(--sp-2); }
  .mega__actions .btn { width: 100%; text-align: center; }
}

/* ---------- 8. Hero (interior / academy pages: photographic band) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--band-bg); color: var(--band-text); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(16,27,48,0.72) 0%, rgba(16,27,48,0.84) 55%, var(--band-bg) 100%),
    radial-gradient(70% 60% at 18% 26%, rgba(203,167,90,0.22), transparent 70%);
}
.hero__inner { padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem) clamp(4rem, 3rem + 12vw, 9rem); }
.hero__title { max-width: 16ch; color: var(--band-text); }
.hero__title .accent { color: var(--gold-bright); font-style: italic; }
.hero__lead { max-width: 54ch; font-size: var(--step-1); color: var(--band-muted); }
.hero .eyebrow { color: var(--gold-bright); }
.hero .eyebrow::before { background: var(--gold-bright); }

.hero--page .hero__inner { padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem) clamp(3rem, 2rem + 8vw, 6rem); }
.hero--page .hero__title { max-width: 20ch; font-size: var(--step-4); }

/* Breadcrumb */
.crumbs { font-size: var(--step--1); color: var(--band-muted); margin-bottom: var(--sp-5); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.crumbs li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--line-band); }
.crumbs a { color: var(--band-muted); text-decoration: none; }
.crumbs a:hover, .crumbs [aria-current="page"] { color: var(--gold-bright); }

/* ---------- 9. Cards (flat editorial) ---------- */
.card {
  display: flex; flex-direction: column; height: 100%; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { border-color: var(--gold); box-shadow: var(--shadow-2); }
.card__media { aspect-ratio: 16 / 9; background: var(--canvas-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; gap: var(--sp-3); padding: 1.4rem; }
.card__kicker { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }
.card__title { margin: 0; font-size: var(--step-2); color: var(--ink); }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card__link { margin-top: auto; padding-top: var(--sp-3); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); text-decoration: none; }
.card--linked { position: relative; }

/* Feature (numbered, hairline) */
.feature { border-top: 1px solid var(--line); padding-top: var(--sp-5); }
.feature__num { display: block; font-family: var(--font-heading); font-variant-numeric: oldstyle-nums; font-size: var(--step-2); color: var(--gold); margin-bottom: var(--sp-3); }
.feature h3 { font-size: var(--step-1); }
.feature p { color: var(--ink-soft); font-size: 0.97rem; }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--sp-6); }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--font-heading); font-variant-numeric: oldstyle-nums; font-size: var(--step-3); color: var(--gold); margin-bottom: var(--sp-2); }
.steps h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.steps p { color: var(--ink-soft); font-size: 0.95rem; }

/* Checklist */
.checklist { list-style: none; display: grid; gap: var(--sp-3); }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 11px; height: 11px; border: 1px solid var(--gold); transform: rotate(45deg); }

/* Media figure */
.figure { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.figure img { width: 100%; }
.figure figcaption { padding: var(--sp-3) var(--sp-4); font-size: var(--step--1); font-style: italic; font-family: var(--font-heading); color: var(--ink-soft); background: var(--panel); }

/* Detail list */
.detail-list { list-style: none; display: grid; gap: var(--sp-6) var(--sp-5); }
@media (min-width: 34em) { .detail-list { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
.detail-list > div { border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.detail-list dt, .detail-list .dt { font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: var(--sp-2); }
.detail-list dd { margin: 0; font-family: var(--font-heading); font-size: var(--step-1); line-height: 1.3; text-wrap: pretty; color: var(--ink); }
.detail-list dd .line { display: block; }
.detail-list dd .line + .line { margin-top: var(--sp-2); }
.detail-list--roster dt { font-family: var(--font-heading); font-size: var(--step-1); letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: var(--sp-1); }
.detail-list--roster dd { font-family: var(--font-body); font-size: 0.9rem; line-height: 1.45; color: var(--ink-soft); }

/* Note / callout */
.note { border-left: 2px solid var(--gold); padding: var(--sp-4) var(--sp-5); background: rgba(154,122,54,0.07); font-size: 0.97rem; color: var(--body); }

/* ---------- 10. CTA band (navy) ---------- */
.cta-band { position: relative; background: var(--band-bg-deep); color: var(--band-text); border-top: 1px solid var(--line-band); text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; color: var(--band-text); }
.cta-band p { color: var(--band-muted); margin-inline: auto; }
.cta-band .eyebrow { color: var(--gold-bright); }
.cta-band .eyebrow::before { background: var(--gold-bright); }

/* ---------- 11. FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-5); width: 100%; padding: var(--sp-5) 0; background: none; border: 0; text-align: left; font-family: var(--font-heading); font-size: var(--step-1); color: var(--ink); cursor: pointer; }
.faq__q:hover { color: var(--gold-ink); }
.faq__icon { position: relative; flex: none; width: 18px; height: 18px; margin-top: 0.4em; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--gold); transition: transform 0.22s var(--ease), opacity 0.22s var(--ease); }
.faq__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a { display: none; padding: 0 0 var(--sp-5); }
.faq__a p { color: var(--ink-soft); }
.faq__a.is-open { display: block; }
.faq__item h3 { margin: 0; font-size: inherit; font-weight: inherit; }

/* ---------- 12. Forms (light context) ---------- */
.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: var(--sp-2); }
.field label { font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em; }
.field .hint { font-size: var(--step--1); color: var(--ink-soft); }
.req { color: var(--gold-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.9rem; background: var(--panel);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--body);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8b8578; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(154,122,54,0.22); }
.field select { appearance: none; background-image: none; padding-right: 2.4rem; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 48em) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); } }
.form-note { font-size: var(--step--1); color: var(--ink-soft); }
.alert { padding: var(--sp-4) var(--sp-5); border-radius: var(--r-sm); border: 1px solid; font-size: 0.97rem; }
.alert[hidden] { display: none; }
.alert--ok { border-color: var(--gold); background: rgba(154,122,54,0.1); color: var(--body); }
.alert--bad { border-color: #B4462F; background: rgba(180,70,47,0.09); color: var(--body); }
.newsletter { display: grid; gap: var(--sp-3); }
@media (min-width: 34em) { .newsletter__row { display: flex; gap: var(--sp-3); } .newsletter__row input { flex: 1; } }

/* ---------- 13. Contact blocks ---------- */
.contact-list { list-style: none; display: grid; gap: var(--sp-5); }
.contact-list .label { display: block; font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: var(--sp-1); }
.contact-list a { font-family: var(--font-heading); font-size: var(--step-1); text-decoration: none; color: var(--ink); }
.contact-list a:hover { color: var(--gold-ink); text-decoration: underline; }

/* ---------- 14. Footer (navy) ---------- */
.site-footer { background: var(--band-bg-deep); color: var(--band-text); border-top: 3px solid var(--gold); padding-block: var(--sp-8) var(--sp-5); }
.site-footer .brand { color: var(--band-text); }
.site-footer .brand__name { color: var(--band-text); }
.site-footer .brand__tag { color: var(--gold-bright); }
.site-footer .brand svg, .site-footer .brand img { color: var(--gold-bright); }
.footer__grid { display: grid; gap: var(--sp-7); }
@media (min-width: 48em) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 75em) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.footer__title { font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: var(--sp-4); }
.footer__list { list-style: none; display: grid; gap: var(--sp-3); }
.footer__list a { color: var(--band-muted); text-decoration: none; font-size: 0.9rem; }
.footer__list a:hover { color: var(--band-text); }
.footer__list li { color: var(--band-muted); font-size: 0.9rem; }
.footer__blurb { color: var(--band-muted); font-size: 0.9rem; max-width: 38ch; margin-top: var(--sp-4); }
.socials { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-band); border-radius: 50%; color: var(--band-muted); }
.socials a:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid var(--line-band); font-size: var(--step--1); color: var(--band-muted); }
.footer__bottom p { margin: 0; }

/* ---------- 15. 404 ---------- */
.page-404 { display: grid; place-items: center; min-height: calc(100vh - var(--header-h)); text-align: center; padding-block: var(--sp-8); }
.page-404__code { font-family: var(--font-heading); font-size: clamp(5rem, 18vw, 11rem); line-height: 0.9; color: var(--gold); margin: 0 0 var(--sp-5); }

/* ---------- 16. Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 17. Prose (privacy / long-form) ---------- */
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--gold-ink); }

/* ---------- 18. Enrollment gate ---------- */
.enroll-gate { border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: var(--sp-4) var(--sp-4) var(--sp-3); background: var(--panel); }
.enroll-gate > p:first-child { margin-top: 0; }
.enroll-gate__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.5rem 0 1.25rem; }

/* =============================================================
   DARK BANDS — flip child colors for navy sections
   (.section--panel, and anything inside a .hero)
   ============================================================= */
.section--panel h1, .section--panel h2, .section--panel h3, .section--panel h4,
.hero h1, .hero h2, .hero h3 { color: var(--band-text); }
.section--panel p, .section--panel .lead { color: var(--band-muted); }
.section--panel .eyebrow, .hero .eyebrow { color: var(--gold-bright); }
.section--panel .eyebrow::before { background: var(--gold-bright); }
.section--panel a:not(.btn) { color: var(--gold-bright); }
.section--panel a:not(.btn):hover { color: var(--band-text); }
.section--panel .section__rule { border-top-color: var(--line-band); }
.section--panel .feature { border-top-color: var(--line-band); }
.section--panel .feature__num { color: var(--gold-bright); }
.section--panel .feature p { color: var(--band-muted); }
.section--panel .detail-list > div { border-top-color: var(--line-band); }
.section--panel .detail-list dt, .section--panel .detail-list .dt { color: var(--gold-bright); }
.section--panel .detail-list dd { color: var(--band-text); }
.section--panel .pullquote { color: var(--band-text); border-left-color: var(--gold-bright); }
.section--panel .note { color: var(--band-text); background: rgba(203,167,90,0.1); border-left-color: var(--gold-bright); }
.section--panel .btn--outline-dark { --btn-fg: var(--band-text); --btn-bd: var(--line-band); }
.section--panel .btn--outline-dark:hover { --btn-bg: var(--gold); --btn-fg: #1c1405; --btn-bd: var(--gold); }

/* Ghost / plain buttons sitting on a dark band need light ink, not navy. */
.hero .btn--ghost, .section--panel .btn--ghost, .cta-band .btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--band-text); --btn-bd: var(--line-band);
}
.hero .btn--ghost:hover, .section--panel .btn--ghost:hover, .cta-band .btn--ghost:hover {
  --btn-bg: transparent; --btn-fg: var(--band-text); --btn-bd: var(--gold-bright);
}
.hero .btn:not(.btn--gold):not(.btn--ghost) {
  --btn-bg: var(--gold); --btn-bd: var(--gold); --btn-fg: #1c1405;
}
.hero .btn:not(.btn--gold):not(.btn--ghost):hover { --btn-bg: transparent; --btn-fg: var(--band-text); --btn-bd: var(--gold-bright); }

/* =============================================================
   NEW editorial components (homepage)
   ============================================================= */
/* Stat band — big serif numerals on navy */
/* The band catches light twice: a slow sweep across the whole panel (the same
   gesture as the hero plate), and a brighter shimmer that travels through the
   gold figures themselves so they read as leaf rather than flat colour. */
.statband { background: var(--band-bg); color: var(--band-text); position: relative; overflow: hidden; isolation: isolate; }
.statband::after {
  content: ""; position: absolute; inset: -40% -20%; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 43%, rgba(240, 224, 180, 0.10) 50%, transparent 57%);
  animation: orbit-sweep 9s ease-in-out infinite;
}
.statband .container { position: relative; z-index: 2; }
.statband .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.statband .stat { padding: clamp(2rem, 4vw, 3.2rem) clamp(0.8rem, 2vw, 1.8rem); border-left: 1px solid var(--line-band); }
.statband .stat:first-child { border-left: 0; }
.statband .stat__n { font-family: var(--font-heading); font-variant-numeric: oldstyle-nums; font-size: clamp(2.1rem, 4vw, 3.2rem); color: var(--gold-bright); line-height: 1; letter-spacing: -0.02em; }
/* Gold-leaf shimmer. Guarded by @supports and applied only after the solid
   colour above, so the figures stay legible if background-clip:text is
   unavailable — and forced-colors mode opts out entirely. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .statband .stat__n {
    background: linear-gradient(100deg,
      var(--gold-bright) 0%, var(--gold-bright) 38%,
      #FFF3D2 47%, #FFFDF6 50%, #FFF3D2 53%,
      var(--gold-bright) 62%, var(--gold-bright) 100%);
    background-size: 260% 100%;
    background-position: 130% 0;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: stat-shimmer 9s ease-in-out infinite;
  }
  .statband .stat:nth-child(2) .stat__n { animation-delay: 0.35s; }
  .statband .stat:nth-child(3) .stat__n { animation-delay: 0.7s; }
  .statband .stat:nth-child(4) .stat__n { animation-delay: 1.05s; }
}
@keyframes stat-shimmer { 0%, 100% { background-position: 130% 0; } 50% { background-position: -30% 0; } }
@media (forced-colors: active) {
  .statband .stat__n { -webkit-text-fill-color: currentColor; color: currentColor; animation: none; }
  .statband::after { display: none; }
}
.statband .stat__l { margin-top: var(--sp-3); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--band-muted); }
@media (max-width: 760px) { .statband .stats { grid-template-columns: repeat(2, 1fr); } .statband .stat:nth-child(odd) { border-left: 0; } .statband .stat:nth-child(n+3) { border-top: 1px solid var(--line-band); } }

/* Programs index — editorial table of contents */
.index__row { display: grid; grid-template-columns: auto 1fr auto auto; gap: clamp(1rem, 3vw, 2.4rem); align-items: baseline; padding: 1.6rem 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; transition: padding-left 0.3s var(--ease); }
.index__row:last-child { border-bottom: 1px solid var(--line); }
.index__row:hover { padding-left: 0.6rem; }
.index__n { font-family: var(--font-heading); font-variant-numeric: oldstyle-nums; font-size: 1.5rem; color: var(--gold); }
.index__main h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0; display: inline; background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.35s var(--ease); padding-bottom: 3px; }
.index__row:hover .index__main h3 { background-size: 100% 1px; }
.index__desc { margin: 0.5rem 0 0; color: var(--ink-soft); font-size: 0.97rem; max-width: 54ch; }
.index__kicker { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; align-self: center; }
.index__arrow { align-self: center; color: var(--gold); font-size: 1.3rem; opacity: 0; transform: translateX(-6px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.index__row:hover .index__arrow { opacity: 1; transform: translateX(0); }
@media (max-width: 640px) { .index__row { grid-template-columns: auto 1fr; } .index__kicker, .index__arrow { display: none; } }

/* Image plate — art-directed photo frame */
.plate { position: relative; aspect-ratio: 4/5; border: 0; overflow: hidden; margin: 0;
  background: radial-gradient(120% 80% at 70% 12%, rgba(231,203,131,0.42), transparent 58%), linear-gradient(160deg, #0A0805 0%, #17130C 55%, #2A2110 100%);
  box-shadow: var(--shadow-3); }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate__frame { display: none; }
.plate__tag { position: absolute; left: 8%; right: 8%; bottom: 30px; z-index: 3; text-align: center; font-family: var(--font-heading); font-style: italic; font-weight: 500; font-size: clamp(1.05rem, 1.6vw, 1.25rem); letter-spacing: 0.01em; text-transform: none; color: var(--gold-bright); line-height: 1.3; }
.plate__tag::before { content: ""; display: block; width: 34px; height: 1px; margin: 0 auto 12px; background: var(--gold-bright); opacity: 0.7; }
.plate__crest { position: absolute; right: 15px; top: 13px; width: 40px; z-index: 3; color: var(--gold-bright); opacity: 0.9; }

/* Editorial hero (homepage) — asymmetric split */
.edhero { background: var(--canvas); }
.edhero__grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(1rem, 1.6vw, 2rem) clamp(2.4rem, 4vw, 4rem); }
.edhero__display { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; margin: 0.3rem 0 1.2rem; color: var(--ink); }
.edhero__display em { color: var(--gold-ink); }
.edhero__lead { font-size: clamp(1.02rem, 1.4vw, 1.22rem); color: var(--body); max-width: 36ch; margin: 0 0 1.5rem; }
.edhero__meta { margin-top: 1.5rem; display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.edhero__plate .plate { aspect-ratio: 4 / 4.4; max-height: min(72vh, 660px); }
.edhero__meta span { position: relative; padding-left: 1.1rem; }
.edhero__meta span::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
@media (max-width: 860px) { .edhero__grid { grid-template-columns: 1fr; } .edhero__plate { order: -1; max-width: 22rem; } }

/* Quote spread — drop cap */
.quotespread { background: var(--canvas-2); }
.quotespread__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.quotespread__big { font-family: var(--font-heading); font-style: italic; font-size: clamp(1.9rem, 4vw, 3rem); color: var(--ink); line-height: 1.14; letter-spacing: -0.01em; margin: 0; }
.quotespread__big::before { content: "\201C"; color: var(--gold); }
.quotespread__attr { margin-top: 1.4rem; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.dropcap:first-letter { font-family: var(--font-heading); float: left; font-size: 3.6rem; line-height: 0.78; padding: 0.35rem 0.6rem 0.1rem 0; color: var(--gold-ink); font-weight: 600; }
@media (max-width: 780px) { .quotespread__grid { grid-template-columns: 1fr; } }

/* Seal (credibility) */
.seal { width: 108px; height: 108px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; text-align: center; position: relative; flex: none; }
.seal::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line); border-radius: 50%; }
.seal span { font-size: 0.54rem; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.5; color: var(--ink-soft); max-width: 82px; }
.seal svg { width: 30px; color: var(--gold); margin-bottom: 4px; }

/* ---------- Blog / Journal ---------- */
.blog-cards { display: grid; gap: clamp(1rem, 0.5rem + 1.5vw, 1.6rem); margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .blog-cards { grid-template-columns: repeat(2, 1fr); } }
.post-card {
  display: flex; flex-direction: column; height: 100%; position: relative; isolation: isolate;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  text-decoration: none; color: inherit;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.post-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--gold); border-radius: var(--r-md) var(--r-md) 0 0;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.post-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.post-card:hover::before { transform: scaleX(1); }
.post-card__cat { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 0.7rem; }
.post-card__title { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.65rem); line-height: 1.2; margin: 0 0 0.55rem; }
.post-card__excerpt { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; margin: 0 0 1.5rem; }
.post-card__meta {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1rem; border-top: 1px solid var(--line);
}
.post-card__date { color: var(--ink-soft); font-size: 0.78rem; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }
.post-card__read { color: var(--gold-ink); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.post-card:hover .post-card__read { color: var(--gold); }
.post-card__read span { transition: transform 0.25s var(--ease); display: inline-block; }
.post-card:hover .post-card__read span { transform: translateX(3px); }

/* ---------- Header search (disclosure) ---------- */
/* The search form (input + button) — shared by the disclosure panel. */
.nav-search { display: flex; align-items: center; width: 100%; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.nav-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 28%, transparent); }
.nav-search__input { flex: 1 1 auto; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 1rem; padding: 0.7rem 0.2rem 0.7rem 0.85rem; }
.nav-search__input::placeholder { color: var(--ink-soft); opacity: 1; }
.nav-search__input:focus { outline: none; }
.nav-search__btn { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; border: 0; background: none; color: var(--gold-ink); cursor: pointer; }
.nav-search__btn:hover { color: var(--gold); }

.navsearch { position: relative; }
.navsearch__btn { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.navsearch__btn::-webkit-details-marker { display: none; }
.navsearch__btn::marker { content: ""; }
.navsearch__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: var(--r-sm); }

/* Mobile (drawer): the summary reads as a nav-link row; the field opens inline. */
.navsearch { width: 100%; }
.navsearch__btn { width: 100%; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); font-family: var(--font-heading); font-size: var(--step-2); }
.navsearch[open] .navsearch__btn { color: var(--gold-ink); }
.navsearch__pop { padding-top: var(--sp-3); }

@media (min-width: 62em) {
  /* Desktop: summary shrinks to a magnifier icon; the field drops as a popover. */
  .navsearch { width: auto; }
  .navsearch__btn {
    width: 38px; height: 38px; justify-content: center; gap: 0; padding: 0;
    border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--ink-soft);
  }
  .navsearch__btn:hover { color: var(--gold-ink); border-color: var(--gold); }
  .navsearch[open] .navsearch__btn { color: var(--gold-ink); border-color: var(--gold); }
  .navsearch__label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .navsearch__pop {
    position: absolute; top: calc(100% + 12px); right: 0; z-index: 60; width: 20rem; max-width: 80vw;
    padding: 0.55rem; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-2);
  }
  .navsearch__pop::before {
    content: ""; position: absolute; top: -6px; right: 13px; width: 10px; height: 10px;
    background: var(--canvas); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg);
  }
  .navsearch__pop .nav-search__input { font-size: 0.95rem; padding: 0.62rem 0.2rem 0.62rem 0.75rem; }
}

/* ---------- Search results page ---------- */
.search-hero { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); flex-wrap: wrap; align-items: stretch; }
.search-hero__input { flex: 1 1 18rem; min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--panel); color: var(--ink); font: inherit; font-size: 1.05rem; padding: 0.85rem 1rem; }
.search-hero__input::placeholder { color: var(--ink-soft); opacity: 1; }
.search-hero__input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.search-hero .btn { flex: none; }
.search-count { margin-top: var(--sp-6); color: var(--ink-soft); font-size: 0.88rem; letter-spacing: 0.02em; }
.search-results { list-style: none; margin: var(--sp-3) 0 0; padding: 0; }
.search-result { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.search-result:last-child { border-bottom: 1px solid var(--line); }
.search-result__link { display: inline-flex; flex-direction: column; gap: 0.2rem; text-decoration: none; }
.search-result__kind { font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }
.search-result__title { font-family: var(--font-heading); font-size: clamp(1.2rem, 1rem + 0.9vw, 1.5rem); color: var(--ink); line-height: 1.2; }
.search-result__link:hover .search-result__title { color: var(--gold-ink); }
.search-result__snip { margin: 0.5rem 0 0.35rem; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; max-width: 66ch; }
.search-result__snip mark { background: color-mix(in srgb, var(--gold-bright) 45%, transparent); color: inherit; padding: 0 0.12em; border-radius: 2px; }
.search-result__url { display: inline-block; font-size: 0.78rem; color: var(--ink-soft); opacity: 0.75; word-break: break-word; font-variant-numeric: tabular-nums; }

/* ---------- Hero centrepiece: armillary sphere ----------
   A scholar's instrument of navigation, rendered in CSS 3D. Three gilded rings
   orbit a crest; beads of light travel each ring. No JavaScript is required for
   the motion — js/hero.js only adds an optional pointer parallax by writing the
   --tilt-* custom properties, which is why nothing breaks under a strict CSP.
   Every animation is disabled under prefers-reduced-motion (see the end). */
.plate--orbit {
  background:
    radial-gradient(120% 90% at 50% 8%, color-mix(in srgb, var(--gold) 12%, transparent) 0%, transparent 58%),
    linear-gradient(170deg, #1f1810 0%, var(--band-bg) 55%, #0a0805 100%);
}
.orbit { position: absolute; inset: 0; overflow: hidden; }
.orbit__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Editorial light layers, composited over the rendered sphere. */
.orbit__rule {
  position: absolute; left: 14%; right: 14%; height: 1px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold-bright) 55%, transparent), transparent);
}
.orbit__rule--a { top: 30%;    animation: orbit-rule 1.5s var(--ease) both 0.35s; }
.orbit__rule--b { bottom: 30%; animation: orbit-rule 1.5s var(--ease) both 0.55s; }
.orbit__sheen {
  position: absolute; inset: -40%; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(240, 224, 180, 0.13) 50%, transparent 58%);
  animation: orbit-sweep 9s ease-in-out infinite;
}
@keyframes orbit-rule  { from { opacity: 0; transform: scaleX(0.2); } to { opacity: 1; transform: none; } }
@keyframes orbit-sweep { 0%, 100% { transform: translateX(-24%); } 50% { transform: translateX(24%); } }

/* Staggered entrance for the hero column — the reveal system adds .is-visible. */
.edhero__grid .reveal { transition-delay: 0ms; }
.edhero__grid > div > .reveal:nth-child(2) { transition-delay: 90ms; }
.edhero__grid > div > .reveal:nth-child(3) { transition-delay: 180ms; }
.edhero__grid > div > .reveal:nth-child(4) { transition-delay: 270ms; }
.edhero__grid > div > .reveal:nth-child(5) { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .orbit__sheen { animation: none; }
  .orbit__rule--a, .orbit__rule--b { animation: none; opacity: 1; transform: none; }
  .edhero__grid .reveal { transition-delay: 0ms; }
  /* Hold the shimmer still on a lit position rather than a transparent one. */
  .statband::after { animation: none; }
  .statband .stat__n { animation: none; background-position: 50% 0; }
}

/* ---------- Public events list (website calendar) ---------- */
.evt-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.75rem; }
.evt {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1rem 1.1rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.evt__date {
  flex: none; display: grid; place-items: center; min-width: 3.6rem;
  padding: 0.45rem 0.5rem; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}
.evt__mon { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }
.evt__day { font-family: var(--font-heading); font-size: 1.45rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.evt__body { display: grid; gap: 0.2rem; }
.evt__title { font-family: var(--font-heading); font-size: 1.12rem; line-height: 1.25; color: var(--ink); }
.evt__meta { font-size: 0.84rem; color: var(--ink-soft); letter-spacing: 0.01em; }
.evt__notes { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; margin-top: 0.15rem; }
@media (max-width: 30em) { .evt { gap: 0.85rem; padding: 0.85rem 0.9rem; } }

/* ---------- Ledger tables (calendar, catalog) ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.8rem; }
.ledger { width: 100%; border-collapse: collapse; min-width: 30rem; }
.ledger th, .ledger td { text-align: left; padding: 0.72rem 1.2rem 0.72rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger thead th { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); border-bottom-color: var(--line-strong); font-weight: 600; }
.ledger td:first-child, .ledger th:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; padding-right: 1.6rem; }
.ledger tbody tr:hover td { background: color-mix(in srgb, var(--gold) 6%, transparent); }
.prose .ledger { margin-bottom: 0; }
.prose .ledger td, .prose .ledger th { font-size: 0.95rem; }

/* ---------- Public form: choice groups + spacing ----------
   Class-based on purpose: the site CSP is style-src 'self' (no unsafe-inline),
   so inline style="" attributes are stripped by the browser. Layout must live
   in the stylesheet. */
.form h2 { margin-top: 2.5rem; margin-bottom: 0.6rem; }
.form > h2:first-of-type { margin-top: 1.5rem; }
.form .btn-row { margin-top: 2.5rem; }
.form .form-note { margin-top: 1rem; }
.form-errors { margin: 1.5rem 0; }
.form-errors ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.form-fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
.form-fieldset--tight { margin-bottom: 1rem; }
.form-fieldset--top { margin: 1rem 0 0; }
.form-legend { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.optional { font-weight: 400; font-size: 0.8rem; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.field--narrow { max-width: 14rem; }
.field--gap { margin-top: 1rem; }
.form-details { margin-top: 1.5rem; }
.form-summary { cursor: pointer; font-weight: 600; }
.choice { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 400; line-height: 1.45; }
.choice input { margin: 0.15rem 0 0; accent-color: var(--gold); flex: none; }
.choice-list { display: grid; gap: 0.5rem; margin-top: 0.4rem; }
.choice-list .choice { padding: 0.65rem 0.85rem; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease); }
.choice-list .choice:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 5%, transparent); }
.choice-grid { display: grid; gap: 0.5rem 1.2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 0.4rem; }
.choice-grid .choice { align-items: center; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 0.3rem; }
.choice-row .choice { align-items: center; }
.eyebrow--center { justify-content: center; }
.btn-row--center { justify-content: center; }
.enroll-confirm { margin: 2.5rem auto 0; max-width: 640px; text-align: left; }

/* Nationwide virtual-learning callout */
.learn-nationwide {
  margin: var(--sp-6) 0 0; padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--panel);
  text-align: center; font-family: var(--font-heading); font-size: var(--step-1); color: var(--body);
  text-wrap: balance;
}
.learn-nationwide strong { color: var(--gold-ink); }

/* Trust band — certified teachers + values pillars */
.trustband { text-align: center; }
.trustband__lead {
  font-family: var(--font-heading); font-style: italic; font-size: var(--step-2);
  color: var(--gold-ink); margin: 0 0 var(--sp-4); text-wrap: balance;
}
.trustband__pillars {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem 1.4rem; margin: 0; padding: 0;
}
.trustband__pillars li {
  position: relative; padding-left: 1.4rem;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--body);
}
.trustband__pillars li::before { content: "\2022"; position: absolute; left: 0.35rem; color: var(--gold); }
.trustband__pillars li:first-child { padding-left: 0; }
.trustband__pillars li:first-child::before { content: none; }

/* Long multi-section application (international) */
.appnav { margin: 0 0 var(--sp-6); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
.appnav__title { font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 var(--sp-3); }
.appnav__list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem 1.1rem; margin: 0; padding: 0; }
.appnav__list a { font-size: 0.82rem; color: var(--ink-soft); text-decoration: none; }
.appnav__list a:hover { color: var(--gold-ink); }
.form-section { scroll-margin-top: calc(var(--header-h) + var(--sp-4)); }
.form .form-section { margin: 0 0 var(--sp-7); padding: var(--sp-6) 0 0; border-top: 1px solid var(--line); }
.form .form-section:first-of-type { border-top: 0; padding-top: 0; }
.form .form-section > .form-legend { font-family: var(--font-heading); font-size: var(--step-1); font-weight: 600; margin-bottom: var(--sp-4); color: var(--ink); }
.form .form-section .form__row + .form__row, .form .form-section .field + .field, .form .form-section .form__row + .field, .form .form-section .field + .form__row, .form .form-section fieldset + * , .form .form-section * + fieldset { margin-top: var(--sp-4); }
.upload-field input[type="file"] { display: block; width: 100%; padding: 0.5rem 0; color: var(--body); font: inherit; }
.upload-field input[type="file"]::file-selector-button { margin-right: 0.8rem; padding: 0.55rem 0.95rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--canvas-2); color: var(--ink); cursor: pointer; font: inherit; font-weight: 600; }
.upload-field input[type="file"]::file-selector-button:hover { border-color: var(--gold); color: var(--gold-ink); }

/* ---------- Layout utilities ----------
   The site CSP is style-src 'self' (no unsafe-inline), so inline style=""
   attributes are stripped by the browser. Anything that used to be an inline
   style lives here as a class instead. See the no-inline-styles rule. */
.u-center      { justify-content: center; }
.u-pt-0        { padding-top: 0; }
.u-mt-1        { margin-top: 1.6rem; }
.u-mt-2        { margin-top: 2rem; }
.u-mt-3        { margin-top: 2.4rem; }
.u-narrow-34   { max-width: 34ch; margin: 0; }
.u-narrow-44   { max-width: 44ch; }
.u-step-3      { font-size: var(--step-3); }
.u-grid-center { display: grid; place-items: center; }
.u-row-between { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.u-row-gap     { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); flex-wrap: wrap; }

.article { max-width: 720px; margin-inline: auto; }
.article__meta { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1.6rem; }
.article__meta .dot { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; display: inline-block; }
.article__body { font-size: 1.06rem; line-height: 1.75; }
.article__body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.4rem 0 0.8rem; }
.article__body h3 { font-size: 1.3rem; margin: 1.9rem 0 0.6rem; }
.article__body p { margin: 0 0 1.2rem; max-width: none; }
.article__body ul, .article__body ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.article__body ul { list-style: disc; } .article__body ol { list-style: decimal; }
.article__body li { margin: 0.4em 0; }
.article__body li::marker { color: var(--gold-ink); }
.article__body blockquote { margin: 1.8rem 0; padding-left: 1.3rem; border-left: 2px solid var(--gold); font-family: var(--font-heading); font-style: italic; font-size: 1.35rem; line-height: 1.35; color: var(--ink); }
.article__lead { font-family: var(--font-heading); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45; color: var(--body); margin: 0 0 1.6rem; }
.article__back { display: inline-block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); text-decoration: none; margin-bottom: 1.5rem; }
.article__back:hover { color: var(--ink); }

/* ---------- Accreditation badge (Cognia) ---------- */
.accred { display: flex; flex-direction: column; align-items: center; gap: 0.65rem; margin: 0 auto 2.2rem; text-align: center; }
.accred__badge { width: 140px; height: 140px; border-radius: 50%; box-shadow: 0 6px 18px rgba(16, 27, 48, 0.12); }
.accred__caption { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.accred__caption strong { color: var(--gold-ink); font-weight: 700; }
/* On the dark governance panel, use band colours so the caption stays legible. */
.section--panel .accred__caption { color: var(--band-muted); }
.section--panel .accred__caption strong { color: var(--gold-bright); }

/* ---------- School crest (official DPA seal) ---------- */
/* Transparent PNG (white background removed); drop-shadow follows the emblem outline. */
.hero-seal { display: block; width: 92px; height: 92px; margin: 0 0 1.1rem; filter: drop-shadow(0 4px 10px rgba(16, 27, 48, 0.22)); }
.figure--seal { display: flex; justify-content: center; align-items: center; }
.figure--seal img { width: 100%; max-width: 300px; height: auto; aspect-ratio: 1 / 1; filter: drop-shadow(0 8px 20px rgba(16, 27, 48, 0.16)); }
@media (max-width: 40em) { .hero-seal { width: 74px; height: 74px; } }

/* ============================================================
   Page feedback widget — DOM is built by js/main.js (CSP-safe:
   no inline styles, no innerHTML of user input). A quiet tab,
   bottom-right, that opens a small panel scoped to the page.
   ============================================================ */
.fb-tab {
  position: fixed; left: 18px; bottom: 18px; z-index: 940;
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.6rem 0.95rem;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.02em; line-height: 1;
  color: #1c1405; background: var(--gold);
  border: 1px solid var(--gold-ink); border-radius: 999px;
  box-shadow: 0 6px 20px rgba(16, 27, 48, 0.28); cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.fb-tab:hover { background: var(--gold-bright); transform: translateY(-1px); }
.fb-tab:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.fb-tab svg { width: 16px; height: 16px; flex: none; color: var(--gold-bright); }

.fb-panel {
  position: fixed; left: 18px; bottom: 68px; z-index: 941;
  width: min(340px, calc(100vw - 36px));
  background: var(--panel); color: var(--body);
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  box-shadow: 0 18px 50px rgba(16, 27, 48, 0.30);
  padding: 1.1rem 1.15rem 1.15rem;
  font-family: var(--font-body);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.fb-panel.is-open { opacity: 1; transform: translateY(0); }
.fb-panel[hidden] { display: none; }

.fb-panel__title { font-family: var(--font-heading); font-size: 1.1rem; color: var(--ink); margin: 0 2rem 0.15rem 0; }
.fb-panel__page { font-size: 0.72rem; color: var(--ink-soft); margin: 0 0 0.7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-panel__page strong { color: var(--gold-ink); font-weight: 600; }

.fb-textarea {
  width: 100%; box-sizing: border-box; min-height: 92px; resize: vertical;
  font-family: var(--font-body); font-size: 0.9rem; line-height: 1.5;
  color: var(--body); background: var(--canvas-2);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 0.55rem 0.65rem;
}
.fb-textarea:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 1px; border-color: var(--gold); }

.fb-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.8rem; }
.fb-btn {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  padding: 0.5rem 0.95rem; border-radius: var(--r-md); cursor: pointer;
  border: 1px solid var(--gold); background: var(--gold); color: #1c1405;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.fb-btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.fb-btn:disabled { opacity: 0.5; cursor: default; }
.fb-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fb-btn--ghost { background: transparent; color: var(--ink-soft); border-color: var(--line-strong); }
.fb-btn--ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink-soft); }
.fb-actions[hidden] { display: none; }

.fb-close {
  position: absolute; top: 0.5rem; right: 0.5rem;
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--ink-soft); font-size: 1.25rem; line-height: 1;
  border-radius: 50%; cursor: pointer;
}
.fb-close:hover { color: var(--ink); background: var(--line); }
.fb-close:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 1px; }

.fb-note { margin: 0.2rem 0 0; font-size: 0.92rem; color: var(--gold-ink); }
.fb-msg { font-size: 0.75rem; color: #b0402f; margin: 0.4rem 0 0; }
.fb-msg[hidden], .fb-note[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .fb-tab, .fb-panel, .fb-btn { transition: none; }
}

/* "Have a question?" tab — same widget shell as feedback, opposite corner. */
.ask-tab   { left: auto; right: 18px; bottom: 92px; background: var(--gold); border-color: var(--gold-ink); color: #1c1405; }
.ask-tab:hover { background: var(--gold-bright); }
.ask-tab svg { color: var(--ink-deep); }
.ask-panel { left: auto; right: 18px; bottom: 142px; }
.fb-input {
  width: 100%; box-sizing: border-box;
  font-family: var(--font-body); font-size: 0.9rem; line-height: 1.4;
  color: var(--body); background: var(--canvas-2);
  border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 0.5rem 0.65rem;
}
.fb-input:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 1px; border-color: var(--gold); }
.fb-field { margin-bottom: 0.6rem; }
.fb-field > label { display: block; font-size: 0.72rem; color: var(--ink-soft); margin: 0 0 0.2rem; letter-spacing: 0.02em; }

@media print { .fb-tab, .fb-panel, .ask-tab, .ask-panel { display: none !important; } }
