/* ═══════════════════════════════════════════════════════════════════════
   PAGES — interior page patterns (prose, sidebars, staff, timeline, etc.)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Long-form prose ───────────────────────────────────────────────────*/
.prose > * + * { margin-top: var(--sp-3); }
/* Generous space ABOVE a heading, tight space below it — the heading binds
   to the text it introduces rather than floating between blocks. */
.prose h2 { margin-top: var(--sp-5); margin-bottom: var(--sp-3); }
.prose h3 { margin-top: var(--sp-4); margin-bottom: var(--sp-2); }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { color: var(--ink-2); }
.prose li { margin-bottom: var(--sp-2); }

/* Lead paragraph under a page title */
.lead {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: var(--sp-4);
  max-width: 62ch;
}

/* ── Section sidebar nav (interior pages) ──────────────────────────────*/
.side-nav {
  position: sticky;
  top: calc(var(--header-h-compact) + var(--sp-3));
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-3);
}
/* Small-caps label, not a serif heading — it is a wayfinding aid, and a
   serif title here competes with the page <h1>. */
.side-nav-title {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--gold-deep);
  padding: 0 var(--sp-2) var(--sp-2);
  margin-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
}
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li { margin: 0; }
.side-nav a {
  display: block;
  padding: var(--sp-2) var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.side-nav a:hover { background: var(--white); border-left-color: var(--gold); }
.side-nav a[aria-current="page"] {
  background: var(--white);
  border-left-color: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

/* ── Staff / leadership cards ──────────────────────────────────────────*/
.staff-card {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.staff-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.staff-photo { aspect-ratio: 1/1; object-fit: cover; width: 100%; background: var(--cream); }
.staff-body { padding: var(--sp-4); }
.staff-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--navy);
  margin: 0 0 2px;
}
.staff-role { font-size: var(--fs-sm); color: var(--ink-3); margin: 0 0 var(--sp-2); }
.staff-contact { font-size: var(--fs-sm); }

/* ── Timeline (history page) ───────────────────────────────────────────*/
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 60px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-6);
  margin: 0;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--navy);
  text-align: right;
  padding-top: 2px;
}
.timeline-body { position: relative; padding-left: var(--sp-4); }
.timeline-body::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-body h3 { font-size: var(--fs-base); margin-bottom: var(--sp-2); }
.timeline-body p { font-size: var(--fs-base); color: var(--ink-2); margin: 0; }

/* ── Info / contact panels ─────────────────────────────────────────────*/
.info-panel {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--accent, var(--navy));
  border-radius: var(--radius);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
}
.info-panel h3 { margin-bottom: var(--sp-3); }
.info-row {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line-2);
  font-size: var(--fs-base);
}
.info-row:last-child { border-bottom: none; }
.info-label {
  flex-shrink: 0;
  width: 92px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}

/* ── Campus panel ──────────────────────────────────────────────────────*/
.campus-card {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.campus-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.campus-body { padding: var(--sp-4); }
.campus-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent, var(--navy));
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-3);
}

/* ── Feature list with checkmarks ──────────────────────────────────────*/
.check-list { list-style: none; padding: 0; margin: 0 0 var(--sp-5); }
.check-list li {
  position: relative;
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-3);
  color: var(--ink-2);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 16px; height: 9px;
  border-left: 2.5px solid var(--gold-deep);
  border-bottom: 2.5px solid var(--gold-deep);
  transform: rotate(-45deg);
}
.on-navy .check-list li { color: rgba(255,255,255,.85); }
.on-navy .check-list li::before { border-color: var(--gold); }

/* ── Numbered steps ────────────────────────────────────────────────────*/
.step-list { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.step-list li {
  counter-increment: step;
  position: relative;
  padding: var(--sp-4) var(--sp-4) var(--sp-4) calc(var(--sp-5) + var(--sp-4));
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  margin: 0;
  box-shadow: var(--shadow-xs);
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 50%;
}
.step-list h3 { font-size: var(--fs-base); margin-bottom: var(--sp-2); }
.step-list p { font-size: var(--fs-base); color: var(--ink-2); margin: 0; }

/* ── Policy / locked text region ───────────────────────────────────────
   Visually identical to body copy; the marker in the HTML tells the CMS
   this region is never editable. */
.policy-text { color: var(--ink-2); }
.policy-text p { max-width: 78ch; }

/* ── Quick-link tiles ──────────────────────────────────────────────────*/
.tile {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
  background: var(--white);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-left-color var(--dur) var(--ease);
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--navy);
}
.tile-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--navy);
}
.tile-desc { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }

/* ── Contact form layout ───────────────────────────────────────────────*/
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.form-field { display: flex; flex-direction: column; }
.form-field-full { grid-column: 1 / -1; }
.form-hint { font-size: var(--fs-sm); color: var(--ink-3); margin-top: var(--sp-2); }

/* ── Job listings (careers) ────────────────────────────────────────────*/
.job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--line-2);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.job-title { font-family: var(--font-display); font-weight: 700; color: var(--navy); margin: 0 0 var(--sp-2); font-size: var(--fs-base); }
.job-meta { font-size: var(--fs-sm); color: var(--ink-3); margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ── Athletics schedule table ──────────────────────────────────────────*/
.schedule-table th { font-size: var(--fs-sm); }
.schedule-table td { font-size: var(--fs-base); }
.schedule-result { font-weight: 700; color: var(--navy); }

/* ── Calendar embed placeholder ────────────────────────────────────────*/
.calendar-embed {
  aspect-ratio: 4/3;
  width: 100%;
  min-height: 480px;
  border: 1px solid var(--calendar-embed-color, var(--line));
  border-radius: var(--radius);
  background: var(--calendar-embed-bg, var(--cream));
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--sp-3);
  color: var(--ink-3);
  box-shadow: 0 14px 30px rgba(13, 31, 59, .12);
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}
.calendar-embed iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

.calendar-embed--elementary {
  --calendar-embed-color: var(--campus-elementary);
  --calendar-embed-bg: var(--campus-elementary);
}

.calendar-embed--junior {
  --calendar-embed-color: var(--campus-junior);
  --calendar-embed-bg: var(--campus-junior);
}

.calendar-embed--secondary {
  --calendar-embed-color: var(--campus-secondary);
  --calendar-embed-bg: var(--campus-secondary);
}

.calendar-embed--schoolwide {
  --calendar-embed-color: var(--navy);
  --calendar-embed-bg: var(--navy);
}

.calendar-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .5rem;
  margin-top: 1rem;
  margin-bottom: .85rem;
}

.calendar-switch-option input {
  position: absolute;
  opacity: 0;
}

.calendar-switch-option span {
  display: inline-flex;
  box-sizing: border-box;
  height: 2.5rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--calendar-switch-color, var(--navy));
  border-radius: 999px;
  padding: .45rem .8rem;
  background: var(--calendar-switch-tint, #fff);
  color: var(--calendar-switch-text, var(--navy));
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 800;
  line-height: 1;
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.calendar-switch-option--elementary {
  --calendar-switch-color: var(--campus-elementary);
  --calendar-switch-text: var(--campus-elementary-text);
  --calendar-switch-tint: var(--campus-elementary-tint);
}

.calendar-switch-option--junior {
  --calendar-switch-color: var(--campus-junior);
  --calendar-switch-text: var(--campus-junior-text);
  --calendar-switch-tint: var(--campus-junior-tint);
}

.calendar-switch-option--secondary {
  --calendar-switch-color: var(--campus-secondary);
  --calendar-switch-text: var(--campus-secondary-text);
  --calendar-switch-tint: var(--campus-secondary-tint);
}

.calendar-switch-option--schoolwide {
  --calendar-switch-color: var(--navy);
  --calendar-switch-text: var(--navy);
  --calendar-switch-tint: var(--cream-2);
}

.calendar-switch-option input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.calendar-switch-option input:checked + span {
  background: var(--calendar-switch-color, var(--navy));
  border-color: var(--calendar-switch-color, var(--navy));
  color: #fff;
}

.calendar-switch-option:hover span {
  background: var(--calendar-switch-color, var(--navy));
  border-color: var(--calendar-switch-color, var(--navy));
  color: #fff;
}

.calendar-district-link {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  min-height: 2.5rem;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: var(--fs-sm);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.calendar-district-link:hover,
.calendar-district-link:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* Laravel CMS document library */
.document-library {
  display: grid;
  gap: var(--sp-4);
}

.document-toolbar {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.document-search-wrap {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
  max-width: 460px;
}

.document-search-wrap svg {
  position: absolute;
  left: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-3);
  pointer-events: none;
}

.document-search {
  width: 100%;
  min-height: 34px;
  padding-block: 5px;
  padding-left: calc(var(--sp-4) * 2 + 18px);
  border: 1.5px solid var(--line-input);
  border-radius: var(--radius-sm);
  font: inherit;
}

.document-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.document-tabs li {
  margin: 0;
}

.document-tab,
.document-subtab {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  border: 1.5px solid var(--line-input);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.document-tab {
  min-height: 36px;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
}

.document-tab:hover,
.document-subtab:hover {
  background: var(--cream);
  border-color: var(--navy);
}

.document-tab span,
.document-subtab span {
  color: var(--ink-3);
  font-weight: 600;
}

.document-tab-label,
.document-subtab-label {
  min-width: 0;
  color: inherit !important;
}

.document-count-badge {
  flex: 0 0 auto;
  margin-left: var(--sp-1);
  font-variant-numeric: tabular-nums;
}

.document-tab.active,
.document-subtab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.document-tab.active span,
.document-subtab.active span {
  color: rgba(255,255,255,.78);
}

.document-folder[hidden],
.document-row[hidden],
.document-list > li[hidden],
.document-empty[hidden] {
  display: none !important;
}

.document-folder-library {
  display: grid;
  gap: var(--sp-3);
}

.document-folder {
  display: grid;
  grid-template-columns: minmax(10.5rem, 13rem) minmax(0, 1fr);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.document-folder-sidebar {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: var(--sp-3);
  background: var(--navy);
  color: var(--white);
}

.document-folder-sidebar h3 {
  margin: 0 0 var(--sp-1);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  line-height: 1.2;
}

.document-subtab {
  width: 100%;
  justify-content: flex-start;
  gap: var(--sp-2);
  min-height: 34px;
  padding: 6px var(--sp-2);
  text-align: left;
  font-size: var(--fs-xs);
  line-height: 1.2;
}

.document-subtab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-subtab:not(.active) {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
}

.document-subtab:not(.active) span {
  color: rgba(255,255,255,.66);
}

.document-subtab:not(.active):hover {
  background: rgba(255,255,255,.12);
  border-color: var(--gold);
}

.document-folder-sidebar .document-subtab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,.16);
}

.document-folder-sidebar .document-subtab.active span {
  color: var(--navy);
}

.document-folder-content {
  min-width: 0;
}

.document-folder-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 50px;
  padding: var(--sp-2) var(--sp-5);
  border-bottom: 1px solid var(--line-2);
  background: var(--cream);
  color: var(--ink-3);
  font-size: var(--fs-sm);
}

.document-folder-heading span {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--navy);
}

.document-folder-heading strong {
  font-size: var(--fs-xs);
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2px var(--sp-3);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.document-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.document-list li {
  margin: 0;
}

.document-row.doc-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  min-height: 52px;
  padding: var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--line-2);
  transition: background var(--dur-fast) var(--ease);
}

.document-list li:nth-child(even) .document-row {
  background: var(--cream-2);
}

.document-row:hover {
  background: var(--teal-lt);
}

.document-row:last-child {
  border-bottom: 0;
}

.document-row-copy {
  min-width: 0;
}

.document-row .doc-row-title {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-row-description {
  margin: 2px 0 0;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-row-category {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.document-open-link.doc-dl {
  flex: 0 0 auto;
  min-height: 34px;
}

.external-link-initials {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
}

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

  .document-row.doc-row {
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
  }

  .document-open-link.doc-dl {
    grid-column: 2;
    justify-content: center;
    width: max-content;
  }
}

/* ── Postponed-page notice ─────────────────────────────────────────────*/
.postponed-notice {
  background: var(--cream);
  border: 2px dashed var(--gold-dk);
  border-radius: var(--radius);
  padding: var(--sp-6);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

/* Rounded media — replaces one-off inline border-radius */
.img-rounded { border-radius: var(--radius); }

/* ── Document-browser pages ────────────────────────────────────────────
   These pages are tools, not reading pages: the point is to see the whole
   library at once. Slim the hero and tighten the section padding so the
   accordion list starts near the top of the first screen. */
.page-doc-tool .page-hero { min-height: clamp(180px, 20vw, 250px); }
.page-doc-tool .page-hero-inner {
  padding-block: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
}
.page-doc-tool .page-hero h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.5rem); }
.page-doc-tool .page-hero h1 { margin-bottom: var(--sp-2); }
.page-doc-tool .page-hero-sub { font-size: var(--fs-base); }
.page-doc-tool .section { padding-block: var(--sp-5); }

/* ═══════════════════════════════════════════════════════════════════════
   PANTHERS ATHLETICS
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Banner: navy field, gold crest, championship line ─────────────────*/
.panthers-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--navy-2) 0%, transparent 60%),
    var(--navy);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-md);
}
.panthers-mark {
  width: 88px; height: 88px;
  flex-shrink: 0;
  /* The crest is navy-on-gold; on a navy field it needs a light disc */
  background: var(--white);
  border-radius: 50%;
  padding: var(--sp-2);
}
.panthers-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  color: var(--gold);          /* 7.01:1 on navy */
  margin: 0;
  line-height: 1.1;
}
.panthers-sub {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82); /* 12.1:1 on navy */
  margin: var(--sp-2) 0 0;
}

/* ── Sport cards ───────────────────────────────────────────────────────*/
.sport-grid { gap: var(--sp-4); }

.sport-card {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.sport-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sport-card .card-media { position: relative; }
.sport-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* Season badge — gold on navy, top-right of the photo */
.sport-season {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--gold);
  background: var(--navy);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill);
}

.sport-body { padding: var(--sp-4); }
.sport-body h3 { margin-bottom: var(--sp-1); }
.sport-body p { font-size: var(--fs-base); color: var(--ink-2); margin-bottom: 0; }
.sport-teams {
  font-size: var(--fs-xs) !important;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--crimson) !important;   /* 11.37:1 on white */
  margin-bottom: var(--sp-2) !important;
}

/* ── Schedule table: home/away chips ───────────────────────────────────*/
.schedule-table th {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}
.schedule-table tbody tr:nth-child(even) { background: var(--cream-2); }
.schedule-table td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }

.loc-home, .loc-away {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 1px var(--sp-3);
  border-radius: var(--radius-pill);
}
.loc-home { background: var(--forest-lt); color: var(--forest-dk); }  /* 8.9:1 */
.loc-away { background: var(--cream);     color: var(--ink-2); }      /* 7.2:1 */

/* ═══════════════════════════════════════════════════════════════════════
   PANTHERS HERO — full-bleed slideshow (carried over from V1.0)
   ───────────────────────────────────────────────────────────────────────
   Replaces the standard .page-hero on the Athletics page only. Three
   crossfading photographs behind the Panthers crest and title.

   Accessibility:
     · images are decorative (alt="") — the <h1> carries the meaning
     · the navy scrim keeps white text ≥ 8:1 over any frame
     · prefers-reduced-motion freezes it on the first slide (see below)
   ═══════════════════════════════════════════════════════════════════════ */
.panthers-hero {
  position: relative;
  min-height: clamp(420px, 56vh, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}

.ph-slides { position: absolute; inset: 0; z-index: -2; }
.ph-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  will-change: opacity;
}
.ph-slide img { width: 100%; height: 100%; object-fit: cover; }
.ph-slide.is-active { opacity: 1; }

/* Scrim — navy left-to-right plus a vertical lift, same recipe as the
   homepage hero. White text clears 8:1 anywhere text actually sits. */
.ph-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Dark and flat across the text band (0–60%), then falling away so the
     photograph reads on the right. Holding .86 to 60% keeps white text at
     ≥8:1 and the gold eyebrow at ≥5.5:1 even over a pure-white frame,
     while the right-hand third of the image stays clearly visible. */
  background:
    linear-gradient(100deg,
      rgba(13,31,59,.90) 0%,
      rgba(13,31,59,.86) 60%,
      rgba(13,31,59,.30) 100%),
    linear-gradient(180deg, rgba(13,31,59,.10) 0%, rgba(8,21,39,.38) 100%);
}

.ph-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-block: var(--sp-6);
}

/* The Panthers crest sits directly on the hero photograph — no white disc.
   The mark already carries its own gold ring, so a plate behind it added a
   second, competing circle and flattened the crest against the image.
   A drop-shadow filter (not box-shadow) follows the artwork's actual edge,
   which is what keeps it legible over a busy photo instead. */
.ph-crest {
  width: clamp(140px, 17vw, 210px);
  height: clamp(140px, 17vw, 210px);
  flex-shrink: 0;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55))
          drop-shadow(0 1px 3px rgba(0, 0, 0, .4));
  transform-origin: center;
  will-change: transform;
  animation: crest-enter 1.1s cubic-bezier(.2, .7, .3, 1) both,
             crest-float 6s ease-in-out 1.1s infinite;
}

/* Settles in: a slow, weighted arrival rather than a bounce. Institutional,
   not playful — this is a school crest, not a game UI. */
@keyframes crest-enter {
  from { opacity: 0; transform: scale(.86) translateY(14px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Then breathes. 6s and 5px of travel is slow enough to read as "alive"
   without pulling the eye off the headline. */
@keyframes crest-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* Motion is decoration here — the crest must simply be present and correct
   for anyone who has asked the OS for less movement. */
@media (prefers-reduced-motion: reduce) {
  .ph-crest { animation: none; opacity: 1; transform: none; }
}

.ph-text { min-width: 0; flex: 1 1 320px; max-width: 58%; }
.ph-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--gold);                 /* 7.01:1 on navy */
  margin-bottom: var(--sp-2);
}
.ph-eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--gold);
}
.panthers-hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 1.7rem + 3.4vw, 3.6rem);
  margin-bottom: var(--sp-2);
  /* Capped so the title never runs into the lighter right-hand side of the
     scrim, where white would fall below AA over a bright photo. */
  max-width: 16ch;
  text-shadow: 0 2px 28px rgba(0,0,0,.35);
}
.ph-sub {
  color: rgba(255,255,255,.9);
  font-size: var(--fs-lg);
  max-width: 52ch;
  margin-bottom: var(--sp-3);
}
.ph-record {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);            /* navy on gold — 7.01:1 */
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-pill);
}

/* Slide position indicators */
.ph-dots {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--sp-2);
  z-index: 1;
}
.ph-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.65);
  transition: background var(--dur) var(--ease);
}
.ph-dot.is-active { background: var(--gold); border-color: var(--gold); }

/* Reduced motion: no crossfade, first slide only, dots hidden since
   nothing rotates. */
@media (prefers-reduced-motion: reduce) {
  .ph-slide { transition: none; }
  .ph-slide:not(:first-child) { display: none; }
  .ph-slide:first-child { opacity: 1; }
  .ph-dots { display: none; }
}

@media (max-width: 900px) {
  /* Narrow screens: the scrim covers the full width, so the text may use it */
  .ph-text { max-width: 100%; }
  .panthers-hero h1 { max-width: none; }
}

@media (max-width: 720px) {
  .panthers-hero { min-height: 380px; }
  .ph-inner { gap: var(--sp-4); padding-block: var(--sp-5); }
}

/* ── Core value cards — numbered 01–04 ─────────────────────────────────
   Canonical values from the Brand Guidelines. The numeral is decorative
   framing; the <h3> carries the name. */
.values-grid { gap: var(--sp-4); }

.value-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
}
.value-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold-deep);        /* 6.68:1 on white */
  margin-bottom: var(--sp-2);
}
.value-card h3 { margin-bottom: var(--sp-2); }
.value-card p { color: var(--ink-2); font-size: var(--fs-base); margin-bottom: 0; }

/* Leadership grid — three cards read better centred than stretched */
.leadership-grid { max-width: 860px; }

/* Academy leadership — 1–2 cards, kept narrow so a single card does not
   stretch across the full content column. Detail tinted by the division
   accent set on the wrapping .theme-* element. */
.academy-leaders { max-width: 620px; }
.academy-leaders .staff-card { border-top: 3px solid var(--accent, var(--navy)); }

/* ═══════════════════════════════════════════════════════════════════════
   FORMS — refined
   ───────────────────────────────────────────────────────────────────────
   A family filling one of these is usually doing it on a phone, in a
   hurry, possibly in their second language. The styling aims for calm and
   obvious rather than clever: generous targets, a clear required/optional
   distinction, and states that are never signalled by colour alone.
   ═══════════════════════════════════════════════════════════════════════ */

/* Card that holds the form — lifts it off the page like the other panels */
.form-panel {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

/* Grouped sections inside a long form */
.form-panel fieldset {
  border: none;
  margin: 0 0 var(--sp-5);
  padding: 0;
}
.form-panel fieldset:last-of-type { margin-bottom: 0; }

.form-legend {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--gold-deep);          /* 6.68:1 on white */
  padding: 0 0 var(--sp-2);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.form-legend::after {
  content: "";
  flex: 1;
  height: 1px;
}

/* Labels sit tight to their control — proximity does the grouping */
.form-field label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--sp-2);
}

/* "Optional" is stated, not implied by the absence of an asterisk */
.optional-marker {
  font-weight: 500;
  font-style: italic;
  color: var(--ink-3);
  text-transform: none;
  letter-spacing: 0;
}

.form-field { margin-bottom: var(--sp-4); }
.form-grid { gap: var(--sp-4) var(--sp-5); }

/* Hint text sits BELOW the control it describes */
.form-hint {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  margin-top: var(--sp-2);
  line-height: 1.45;
}

/* ── Custom select — the native arrow is inconsistent across browsers ──*/
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: calc(var(--sp-5) + var(--sp-3));
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D1F3B' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 16px;
  cursor: pointer;
}

/* ── File upload — the native control cannot be styled, so we hide it
      and drive a styled label. The input stays in the accessibility tree
      and remains keyboard-operable; the label is its visible face. ──── */
.file-field input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.file-drop {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 64px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--cream-2);
  border: 2px dashed var(--line-input);   /* 3.69:1 — functional boundary */
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.file-drop:hover { background: var(--cream); border-color: var(--navy); }
/* Focus lands on the hidden input, so mirror the ring onto the visible face */
.file-field input[type="file"]:focus-visible + .file-drop {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}
.file-drop-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.file-drop-text { min-width: 0; }
.file-drop-action {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--navy);
}
.file-drop-name {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-field.has-file .file-drop {
  border-style: solid;
  border-color: var(--forest);
  background: var(--forest-lt);
}
.file-field.has-file .file-drop-name { color: var(--forest-dk); font-weight: 600; }

/* ── Submit row ───────────────────────────────────────────────────────*/
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-4);
  padding-top: var(--sp-4);
  margin-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.form-actions .btn { min-width: 190px; }
.form-required-note { font-size: var(--fs-sm); color: var(--ink-3); margin: 0; }

/* ── Error summary — focus lands here on a failed submit ──────────────*/
.form-errors {
  background: var(--crimson-lt);
  border: 1px solid var(--crimson);
  border-left: 4px solid var(--crimson);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.form-errors h2 {
  font-size: var(--fs-md);
  color: var(--crimson-dk);          /* 14.53:1 on crimson-lt */
  margin-bottom: var(--sp-2);
}
.form-errors ul { margin: 0; padding-left: var(--sp-4); }
.form-errors li { margin-bottom: var(--sp-1); }
.form-errors a { color: var(--crimson-dk); font-weight: 600; }

/* ── Success panel ───────────────────────────────────────────────────*/
.form-success {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  background: var(--navy);
  color: rgba(255,255,255,.9);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-md);
}
.form-success-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--navy);
  background: var(--gold);
  border-radius: 50%;
}
.form-success h2 { color: var(--white); margin-bottom: var(--sp-2); font-size: var(--fs-xl); }
.form-success p { margin-bottom: 0; }
.form-success a { color: var(--gold-lt); }

@media (max-width: 520px) {
  .form-panel { padding: var(--sp-4); }
  .form-actions .btn { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════
   DIVISION PAGES — the campus colour carries through
   ───────────────────────────────────────────────────────────────────────
   Navy stays structural (header, footer, hero scrim, headings). The campus
   colour appears as accents so the page reads unmistakably teal / forest /
   crimson without shouting.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Hero overlay — carries the division colour ────────────────────────
   Each academy's hero is tinted with its own colour instead of plain navy,
   so Elementary / Junior High / Secondary are identifiable at a glance.

   WHY IT IS A NAVY-CAMPUS BLEND AND NOT THE RAW CAMPUS COLOUR:
   the campus colours are far lighter than navy, and the hero carries body
   text at rgba(255,255,255,.88). Measured over a bright photo:

     overlay              white H1     sub-text
     raw teal    (solid)    4.93          3.73  <- FAILS 4.5 even at 100%
     raw forest  (solid)    7.74          5.86
     raw crimson (solid)   11.37          8.61

   Teal cannot carry the sub-line at ANY opacity. Blending 45% campus into
   navy keeps navy doing the contrast work while the hue still reads
   unmistakably teal / forest / crimson:

     navy + 45% teal    -> 9.89 H1 / 7.49 sub
     navy + 45% forest  -> 12.22 H1 / 9.26 sub
     navy + 45% crimson -> 14.91 H1 / 11.30 sub

   Stops mirror the navy hero exactly — same six-stop curve, same fade to
   fully transparent on the right — so only the HUE differs between a
   division page and any other interior page.

   ONE TRAP WORTH KNOWING: color-mix AVERAGES the alpha channels. Mixing an
   opaque --accent into rgba(navy, 0) yields alpha 0.45, not 0 — so the
   gradient never actually reached transparent and the photo stayed covered
   (measured: brightness fell at the right edge instead of rising).
   The fix is to build one opaque --tint, then fade THAT into `transparent`,
   so the whole colour reaches zero alpha together. */
.page-division .page-hero::after {
  /* Now that the hero is a solid field rather than a photo, the tint no
     longer needs to fight an image — so it becomes the field itself. A
     flat 45% campus/navy blend, with the same faint top-left lift the
     navy hero uses, so division and non-division pages feel identical
     apart from hue.
     Contrast (measured): white H1 9.9 / 12.2 / 14.9 : 1 for teal /
     forest / crimson; sub-text 7.5 / 9.3 / 11.3 : 1. All pass AA. */
  background:
    radial-gradient(120% 150% at 12% 0%,
      color-mix(in srgb, var(--accent) 55%, #162C52) 0%,
      transparent 62%),
    color-mix(in srgb, var(--accent) 45%, #0D1F3B);
}

/* Gold rule under the hero becomes the campus colour on division pages */
.page-division .page-hero-rule { background: var(--accent); }

/* Hero eyebrow + title accent */
.page-division .page-hero-campus {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-3);
}

/* Section eyebrows take the campus colour — the -text variant, which
   clears AA on both white and cream (teal would fail with the base). */
.page-division .eyebrow { color: var(--accent-text); }
.page-division .eyebrow::before { background: var(--accent); }

/* Thin campus bar under page images */
.page-division .img-rounded,
.page-division .sport-card img { border-bottom: 4px solid var(--accent); }

/* Leadership card detail */
.page-division .academy-leaders .staff-card { border-top-color: var(--accent); }
.page-division .staff-role { color: var(--accent-text); font-weight: 600; }

/* Tiles + link hovers pick up the campus colour */
.page-division .tile { border-left-color: var(--accent); }
.page-division .tile:hover { border-left-color: var(--accent-text); }
.page-division .side-nav a:hover,
.page-division .side-nav a[aria-current="page"] { border-left-color: var(--accent); }
.page-division main a:not(.btn):not(.drop-link):hover { color: var(--accent-text); }

/* Step numbers + check marks */
.page-division .step-list li::before { background: var(--accent); color: var(--white); }
.page-division .check-list li::before { border-color: var(--accent-text); }

/* ═══════════════════════════════════════════════════════════════════════
   ENROLLMENT APPLICATION — apply.html + apply-online.html
   ───────────────────────────────────────────────────────────────────────
   Two paths (online / paper) and the multi-step web form. Everything here
   degrades: without JS the stepper is hidden, every step is visible, and
   the form is one long page that still submits.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Landing: the two paths ───────────────────────────────────────────*/
.apply-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.apply-card-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin-bottom: var(--sp-3);
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--navy);
}
.apply-card-icon svg { width: 24px; height: 24px; }
.apply-card h3 { margin-bottom: var(--sp-2); }
.apply-card > p { color: var(--ink-2); }

.apply-card-list {
  list-style: none;
  margin: var(--sp-3) 0 var(--sp-4);
  padding: 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.apply-card-list li {
  position: relative;
  padding-left: var(--sp-4);
  margin-bottom: var(--sp-2);
}
.apply-card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-deep);
}
/* Push the button to the bottom so both cards align regardless of copy */
.apply-card .btn { margin-top: auto; }

.apply-submit-line {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  margin-top: var(--sp-3);
  line-height: 1.5;
}

/* ── Required documents checklist ─────────────────────────────────────*/
.doc-check-list { list-style: none; margin: var(--sp-4) 0 0; padding: 0; }
.doc-check-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line-2);
}
.doc-check-item:last-child { border-bottom: none; }
.doc-check-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 3px;
  color: var(--gold-deep);
}
.doc-check-text { min-width: 0; }
.doc-check-text strong { display: block; color: var(--navy); }
.doc-check-desc { font-size: var(--fs-sm); color: var(--ink-2); }

/* ── Stepper ──────────────────────────────────────────────────────────*/
.stepper { margin: var(--sp-5) 0; }
.stepper-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  margin: 0; padding: 0;
}
.step-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-2);
}
.step-num {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line-input);
  font-size: 11px;
  color: var(--navy);
}
/* Current step: navy plate + gold marker. The aria-current attribute is
   what actually conveys this to assistive tech — colour is the visual
   echo, never the only signal. */
.step-item.is-current {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.step-item.is-current .step-num {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.step-item.is-done { background: var(--white); color: var(--navy); }
.step-item.is-done .step-num {
  background: var(--navy); border-color: var(--navy); color: var(--white);
}

/* ── Steps ────────────────────────────────────────────────────────────*/
.form-step legend.form-legend { flex-wrap: wrap; }
.step-of {
  display: block;
  width: 100%;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: var(--ls-caps);
  margin-bottom: 2px;
}
.step-note {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  margin: calc(var(--sp-3) * -1) 0 var(--sp-4);
}
.step-actions { justify-content: flex-start; }
.step-actions .form-required-note { margin-left: auto; }

/* ── Repeatable blocks ────────────────────────────────────────────────*/
.repeat-block {
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
  background: var(--cream-2);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.repeat-block-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
}
.repeat-block-title {
  font-size: var(--fs-md);
  margin: 0;
  color: var(--navy);
}
.block-remove {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-input);
  border-radius: var(--radius-sm);
  padding: 6px var(--sp-3);
  min-height: 44px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--crimson-dk);
  cursor: pointer;
}
.block-remove:hover { background: var(--crimson-lt); border-color: var(--crimson); }

.btn-add { margin-bottom: var(--sp-3); }
.add-limit { font-size: var(--fs-sm); color: var(--ink-3); margin: 0 0 var(--sp-3); }

.subsection { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.subsection-title {
  font-size: var(--fs-md);
  color: var(--navy);
  margin: 0 0 var(--sp-3);
}

/* ── Choice sets (radio / checkbox groups) ────────────────────────────*/
.choice-set { border: none; margin: 0 0 var(--sp-4); padding: 0; }
.choice-set legend {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--navy);
  padding: 0;
  margin-bottom: var(--sp-2);
}
.choice-list { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.choice-list-stacked { flex-direction: column; gap: var(--sp-2); }

/* The whole row is the target, so it clears 44px comfortably */
.choice {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--ink);
}
.choice:hover { border-color: var(--navy); background: var(--cream-2); }
.choice input { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--navy); }
.choice input:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.choice-described { align-items: flex-start; }
.choice-body { display: block; min-width: 0; }
.choice-label { display: block; font-weight: 700; color: var(--navy); }
.choice-desc { display: block; font-size: var(--fs-sm); color: var(--ink-2); margin-top: 2px; line-height: 1.45; }
.choice-compact { margin-bottom: var(--sp-3); }

/* ── Acknowledgement box ──────────────────────────────────────────────*/
.ack-box {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.ack-box .choice { border: none; background: none; padding: 0; }
.ack-box .choice:hover { background: none; }

/* ── Policy / notice text inside the form ─────────────────────────────*/
.policy-note {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}
.about-note {
  padding: var(--sp-3) var(--sp-4);
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
}
.callout-inline {
  padding: var(--sp-3) var(--sp-4);
  background: var(--cream);
  border-left: 3px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  margin: var(--sp-4) 0;
}

/* ── Language survey rows ─────────────────────────────────────────────*/
.lang-row {
  padding: var(--sp-4);
  margin-bottom: var(--sp-3);
  background: var(--cream-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.lang-languages { margin-top: var(--sp-3); margin-bottom: 0; }

/* ── Declaration terms ────────────────────────────────────────────────*/
/* Scrollable, but focusable and labelled as a region so keyboard users can
   reach and scroll it — a scroll container that cannot be focused traps
   its content away from keyboard-only visitors. */
.terms-scroll {
  max-height: 340px;
  overflow-y: auto;
  padding: var(--sp-4);
  background: var(--cream-2);
  border: 1px solid var(--line-input);
  border-radius: var(--radius);
}
.terms-scroll:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.terms-list { margin: 0; padding-left: var(--sp-5); }
.terms-list li {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}
.terms-list li:last-child { margin-bottom: 0; }
.sig-note { margin-bottom: var(--sp-3); font-style: italic; }

/* ── Review ───────────────────────────────────────────────────────────*/
.review-output { margin-top: var(--sp-4); }
.review-block {
  padding: var(--sp-4);
  margin-bottom: var(--sp-3);
  background: var(--cream-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.review-block h3 {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-md);
  color: var(--navy);
  margin: 0 0 var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
}
.review-edit {
  margin-left: auto;
  background: none;
  border: 1px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 6px var(--sp-3);
  min-height: 44px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}
.review-edit:hover { background: var(--navy); color: var(--white); }
.review-list { margin: 0; }
.review-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line-2);
}
.review-row:last-child { border-bottom: none; }
.review-row dt {
  flex: 0 0 40%;
  min-width: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-2);
  margin: 0;
}
.review-row dd { flex: 1 1 0; min-width: 0; margin: 0; font-size: var(--fs-sm); color: var(--navy); }
.review-empty { color: var(--ink-3); font-style: italic; }

/* ── Confirmation ─────────────────────────────────────────────────────*/
.confirm-docs {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  background: rgba(255,255,255,.07);
  border-radius: var(--radius);
}
.confirm-docs h3 { color: var(--gold-lt); font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.confirm-doc-list { margin: var(--sp-3) 0 0; padding-left: var(--sp-5); font-size: var(--fs-sm); }
.confirm-doc-list li { margin-bottom: var(--sp-2); }

.form-help-line {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  text-align: center;
}

/* ── Print: the confirmation must survive on paper ────────────────────*/
@media print {
  .stepper, .step-actions, .form-help-line, #print-confirmation { display: none; }
  .form-success { background: none; color: #000; border-left: 3px solid #000; box-shadow: none; }
  .confirm-docs { background: none; border: 1px solid #000; }
  .confirm-docs h3 { color: #000; }
}

/* ═══════════════════════════════════════════════════════════════════════
   NEWSLETTERS — archive cards + flipbook viewer
   ───────────────────────────────────────────────────────────────────────
   Uses the established tokens only: navy/gold/cream, the 8px spacing
   scale, existing button and accordion components. The flipbook adds no
   new colours and no new type sizes.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Archive cards — GALLERY STYLE ─────────────────────────────────────
   Rebuilt as a compact poster grid rather than wide horizontal rows.
   The reason is capacity: four issues a year means the old row layout
   would grow into a very long page within two years. A grid puts roughly
   five issues in the height one row used to take, and the year accordions
   keep older years collapsed by default. */
.nl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr));
  gap: var(--sp-4);
}
.nl-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nl-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* Cover is decorative — the title link beside it carries the meaning, so
   it is aria-hidden and out of the tab order. Two adjacent links to the
   same destination would otherwise be announced twice. */
.nl-cover {
  position: relative;
  display: block;
  background: var(--cream);
  border-bottom: 1px solid var(--line-2);
}
.nl-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 17/22;      /* the page proportion of the newsletter itself */
  object-fit: cover;
  object-position: top;     /* mastheads matter more than footers */
}

/* Quarter badge, gold on navy, sitting on the cover corner. */
.nl-badge {
  position: absolute;
  top: var(--sp-2); left: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  color: var(--gold);
  background: var(--navy);
  padding: 3px var(--sp-2);
  border-radius: var(--radius-pill);
}

.nl-body { padding: var(--sp-3); display: flex; flex-direction: column; flex: 1; }
.nl-title { font-size: var(--fs-sm); margin: 0 0 2px; line-height: 1.3; }
.nl-title a { color: var(--navy); text-decoration: none; }
.nl-title a:hover { text-decoration: underline; }
.nl-meta { font-size: var(--fs-xs); color: var(--ink-3); margin: 0 0 var(--sp-3); }
.nl-actions { margin-top: auto; display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.nl-actions .btn { flex: 1 1 auto; min-width: 0; padding-inline: var(--sp-3); }

/* Featured "Latest Issue" — the one horizontal card, given real presence. */
.nl-card--featured {
  flex-direction: row;
  border-top: 3px solid var(--gold);
  gap: var(--sp-5);
  padding: var(--sp-4);
  align-items: flex-start;
}
.nl-card--featured .nl-cover {
  flex: 0 0 168px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.nl-card--featured .nl-body { padding: 0; }
.nl-card--featured .nl-title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.nl-card--featured .nl-meta { font-size: var(--fs-sm); }
.nl-card--featured .nl-actions .btn { flex: 0 0 auto; }

.nl-quarter { margin-bottom: var(--sp-5); }
.nl-quarter:last-child { margin-bottom: 0; }
.nl-quarter-title {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 560px) {
  .nl-card--featured { flex-direction: column; }
  .nl-card--featured .nl-cover { flex: 0 0 auto; width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .nl-card:hover { transform: none; }
}

/* ── Flipbook viewer ───────────────────────────────────────────────────*/
.fb-shell { background: var(--navy-deep); border-radius: var(--radius); overflow: hidden; }

.fb-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3) var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-4);
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.fb-bar-title { color: var(--white); font-size: var(--fs-base); margin: 0; }
.fb-bar-badge {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(198,166,70,.5);
  padding: 3px var(--sp-2);
  border-radius: var(--radius-pill);
}
.fb-bar-spacer { flex: 1; }

/* Stage: the page(s) themselves */
.fb-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  min-height: 40vh;
  perspective: 2000px;      /* gives the flip its depth */
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(255,255,255,.05), transparent 70%),
    var(--navy-deep);
}
.fb-spread { display: flex; gap: 2px; max-width: 100%; }
.fb-page { margin: 0; max-width: 100%; }
.fb-page img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76vh;
  width: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  background: var(--white);
}
.fb-spread.is-two-up .fb-page.is-left  img { border-radius: 2px 0 0 2px; }
.fb-spread.is-two-up .fb-page.is-right img { border-radius: 0 2px 2px 0; }

/* The turn. A 3D rotate that settles — readable, not gimmicky. */
.fb-spread {
  transform-origin: center left;
  transition: transform .26s var(--ease), opacity .26s var(--ease);
}
.fb-spread.is-entering.from-right { transform: rotateY(-14deg) translateX(3%); opacity: 0; }
.fb-spread.is-entering.from-left  { transform: rotateY(14deg) translateX(-3%); opacity: 0; }

/* Controls */
.fb-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.12);
  flex-wrap: wrap;
}
.fb-btn {
  min-width: var(--tap); min-height: var(--tap);
  display: inline-grid; place-items: center;
  gap: var(--sp-2);
  grid-auto-flow: column;
  padding: 0 var(--sp-3);
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(198,166,70,.42);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}
.fb-btn:hover:not(:disabled) { background: var(--gold); color: var(--navy); }
.fb-btn:disabled { opacity: .35; cursor: default; }
.fb-indicator {
  color: rgba(255,255,255,.9);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: 0 var(--sp-3);
  min-width: 84px;
  text-align: center;
}

/* Fullscreen — a class, not the Fullscreen API: the API is inconsistent
   on iOS and would hide the site chrome entirely. Escape still exits. */
.fb-shell.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
.fb-shell.is-fullscreen .fb-stage { flex: 1; min-height: 0; }
.fb-shell.is-fullscreen .fb-page img { max-height: none; height: 100%; }
body.fb-locked { overflow: hidden; }

/* The accessible alternative, stated rather than implied */
.fb-alt {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  margin-top: var(--sp-4);
}

@media (prefers-reduced-motion: reduce) {
  .fb-spread { transition: none; }
  .fb-spread.is-entering { transform: none; opacity: 1; }
  .nl-card:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   GALLERY — photo grid, video grid, lightbox
   Established tokens only; reuses the .pill filter component.
   ═══════════════════════════════════════════════════════════════════════ */

.gal-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: var(--sp-3);
}
.gal-item { margin: 0; }

/* The whole tile is one button — a click target that is also the label. */
.gal-thumb {
  display: block; width: 100%; padding: 0;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gal-thumb:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gal-thumb img {
  display: block; width: 100%; aspect-ratio: 4/3;
  object-fit: cover; background: var(--cream);
}
.gal-cap {
  display: block;
  padding: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--navy);
}
.gal-empty { color: var(--ink-3); padding: var(--sp-4) 0; }

/* ── Lightbox ──────────────────────────────────────────────────────────*/
/* The dialog is the viewport, and the image must never push the caption
   or controls off-screen — that is what happened at first: a tall portrait
   photo drove the control bar below the fold, so Close was unreachable by
   mouse. The inner box owns the height budget and the image flexes inside. */
.gal-lb {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  padding: var(--sp-4);
  overflow: auto;
}
.gal-lb-backdrop { position: absolute; inset: 0; background: rgba(8,21,39,.92); }
.gal-lb-inner {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: calc(100vh - var(--sp-6));
  display: flex; flex-direction: column; gap: var(--sp-3);
  min-height: 0;
}
.gal-lb-img {
  max-width: 100%;
  min-height: 0;
  flex: 1 1 auto;          /* shrinks so the bar below always fits */
  object-fit: contain;
  width: auto; height: auto;
  display: block; margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  background: var(--navy-2);
}
.gal-lb-bar {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-3); flex-wrap: wrap;
  flex: 0 0 auto;          /* never compressed away */
}
.gal-lb-cap { color: var(--white); font-weight: 700; font-size: var(--fs-base); margin: 0; }
.gal-lb-count { color: rgba(255,255,255,.72); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.gal-lb-btn {
  min-width: var(--tap); min-height: var(--tap);
  display: inline-grid; place-items: center;
  background: transparent; color: var(--gold);
  border: 1px solid rgba(198,166,70,.42);
  border-radius: var(--radius-sm);
  font-size: var(--fs-base); font-weight: 700;
  cursor: pointer;
}
.gal-lb-btn:hover { background: var(--gold); color: var(--navy); }
body.gal-locked { overflow: hidden; }

/* ── Video cards ───────────────────────────────────────────────────────*/
.gal-video-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--sp-4);
}
.gal-video-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.gal-video { width: 100%; aspect-ratio: 16/9; display: block; background: var(--navy); }
/* Honest empty state — a poster with a label, never a broken player. */
.gal-video-pending {
  aspect-ratio: 16/9;
  display: grid; place-items: center;
  background: var(--navy) center/cover no-repeat;
  color: var(--gold);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: var(--ls-caps); text-transform: uppercase;
}
.gal-video-body { padding: var(--sp-4); }
.gal-video-body h3 { font-size: var(--fs-base); margin-bottom: var(--sp-2); }
.gal-video-body p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }

/* ── Gallery hub cards ─────────────────────────────────────────────────*/
.gal-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px,100%),1fr)); gap: var(--sp-4); }
.gal-hub-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gal-hub-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.gal-hub-card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gal-hub-body { padding: var(--sp-4); }
.gal-hub-body h2 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); color: var(--navy); }
.gal-hub-body p { font-size: var(--fs-base); color: var(--ink-2); margin: 0 0 var(--sp-2); }
.gal-hub-count { font-size: var(--fs-sm); color: var(--gold-deep); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .gal-thumb:hover, .gal-hub-card:hover { transform: none; }
}

/* Document Library: quick access */
.doc-quick-head {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--navy);
  margin-bottom: var(--sp-3);
}

.doc-quick-note {
  color: var(--ink-2);
  margin-bottom: var(--sp-4);
  max-width: 62ch;
}

.doc-quick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.doc-quick-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: var(--tap);
  padding: var(--sp-4);
  background: var(--white);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.doc-quick-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
  border-left-color: var(--gold);
}

.doc-quick-label {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.doc-quick-meta {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  line-height: 1.4;
}
