/* ═══════════════════════════════════════════════════════════════════════
   COMPONENTS — buttons, cards, hero, strips, document library, footer
   ═══════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--tap);
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color      var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform  var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Gold on navy text — the primary CTA. 7.4:1 contrast. */
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: var(--shadow-xs);
}
.btn-gold:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-3); border-color: var(--navy-3); color: var(--white); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-outline-white {
  background: rgba(255,255,255,.06);
  color: var(--white);
  border-color: rgba(255,255,255,.75);
  backdrop-filter: blur(3px);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-sm { min-height: 38px; padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); }
.btn-lg { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-lg); }
.btn-block { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}
.card-media { position: relative; overflow: hidden; background: var(--cream); }
.card-media img { transition: transform var(--dur-slow) var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }

.card-body { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: var(--sp-2); }
.card-body p { font-size: var(--fs-base); color: var(--ink-2); }

.card-meta {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--sp-2);
}
.card-link {
  margin-top: auto;
  padding-top: var(--sp-4);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--navy-3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.card-link:hover { color: var(--navy); gap: var(--sp-3); }

/* ── Stat cards ────────────────────────────────────────────────────────*/
.stat-card {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  margin-bottom: var(--sp-2);
}
.stat-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.4;
}

/* ── Division cards (Elementary / Junior High / Secondary) ─────────────*/
.division-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  background: var(--accent, var(--navy));
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  isolation: isolate;
}
.division-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.division-card-media { position: relative; }
.division-card-media img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
/* Accent-tinted scrim keeps the label readable over any photo */
.division-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,.05) 0%,
    color-mix(in srgb, var(--accent) 55%, transparent) 60%,
    var(--accent) 100%);
}
.division-card-body {
  padding: var(--sp-4);
  background: var(--accent);
  color: var(--white);
  position: relative;
}
/* White, not gold-lt: gold-lt is only 3.36:1 on teal and fails AA for
   this small-caps label. White clears 4.5:1 on all three division colors. */
.division-grade {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--sp-2);
}
.division-card-body h3 { color: var(--white); margin-bottom: var(--sp-2); }
.division-card-body p { color: rgba(255,255,255,.86); font-size: var(--fs-base); margin-bottom: var(--sp-4); }
.division-cta {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.division-card:hover .division-cta { gap: var(--sp-3); }

/* ═══════════════════════════════════════════════════════════════════════
   HOMEPAGE HERO — full-width background video
   ═══════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: clamp(460px, 62vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-video, .hero-poster-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Shown only when prefers-reduced-motion is active (see accessibility.css) */
.hero-poster-fallback { display: none; }

/* Navy overlay — navy at the text, fading to fully transparent at the right.
   ───────────────────────────────────────────────────────────────────────
   The stops are driven by a measurement, not taste: hero text runs from 4%
   to 60% of the hero's width. So the overlay stays at full strength through
   62%, then ramps to 0 by 100%. The photograph is completely uncovered on
   the right, and every glyph still sits on solid navy.

   The old version bottomed out at .55 and carried a second full-height
   layer on top, so the image was never actually visible — the "gradient"
   only ever moved between two shades of murk.

   `transparent` is avoided as a stop: in some engines it interpolates
   through transparent BLACK, greying the midpoint. Stating the same navy
   at alpha 0 keeps the ramp clean. */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(13,31,59,.96)  0%,
      rgba(13,31,59,.94) 40%,
      rgba(13,31,59,.88) 62%,   /* text ends at 60% — full cover to here */
      rgba(13,31,59,.55) 80%,
      rgba(13,31,59,.18) 92%,
      rgba(13,31,59,0)  100%),
    /* Slight vertical seat: keeps the header and the lower edge anchored
       without washing the middle, where the photo should read. */
    linear-gradient(180deg,
      rgba(13,31,59,.42)  0%,
      rgba(13,31,59,0)   38%,
      rgba(13,31,59,0)   68%,
      rgba(8,21,39,.45) 100%);
}

.hero-content { max-width: 720px; padding-block: var(--sp-8); }
.hero-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--gold);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--gold-a45);
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-4);
}
.hero h1 {
  font-size: var(--fs-hero);
  color: var(--white);
  margin-bottom: var(--sp-3);
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero h1 em { font-style: italic; color: var(--gold); }

.hero-slogan {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-style: italic;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--sp-4);
}
.hero-lead {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,.9);
  max-width: 58ch;
  margin-bottom: var(--sp-6);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Video caption / transcript note — WCAG 1.2 */
.hero-media-note {
  position: absolute;
  bottom: var(--sp-3);
  right: var(--gutter);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.6);
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════
   ENROLLMENT STRIP
   ═══════════════════════════════════════════════════════════════════════ */
.enroll-strip {
  background: var(--gold);
  color: var(--navy);
  padding-block: var(--sp-5);
}
.enroll-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.enroll-text { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.enroll-badge {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  background: var(--navy);
  color: var(--gold);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.enroll-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--navy);
  margin: 0;
}
.enroll-sub { font-size: var(--fs-sm); color: rgba(13,31,59,.82); margin: 0; }

/* ═══════════════════════════════════════════════════════════════════════
   NEWS + EVENTS  (structured for the CMS news module)
   ═══════════════════════════════════════════════════════════════════════ */
.news-card .card-media img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.news-date {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--sp-2);
}
.news-card h3 { font-size: var(--fs-base); line-height: var(--lh-snug); }
.news-card p { font-size: var(--fs-sm); }
.news-pdf {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--navy-3);
  margin-top: var(--sp-3);
}

/* ── Events list ───────────────────────────────────────────────────────*/
.event-list { list-style: none; margin: 0; padding: 0; }
.event-item {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.event-item:last-child { border-bottom: none; }

.event-date {
  flex-shrink: 0;
  width: 66px;
  text-align: center;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-1);
  line-height: 1.1;
}
.event-month {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--gold);
}
.event-day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.event-info { flex: 1; min-width: 0; }
.event-info h3 { font-size: var(--fs-base); margin-bottom: var(--sp-1); }
.event-meta { font-size: var(--fs-sm); color: var(--ink-3); margin: 0; }

/* ═══════════════════════════════════════════════════════════════════════
   RECOGNITION STRIP  (U.S. News · Osprey Wilds · Building Company)
   ═══════════════════════════════════════════════════════════════════════ */
.recognition {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: var(--sp-6);
}
.recognition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-5);
  align-items: stretch;
}
.recognition-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
a.recognition-item:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }

/* Fixed HEIGHT, automatic width — the logos in this strip are not square
   (the U.S. News seal is 107x97, Osprey Wilds is wider still). Forcing a
   62x62 box letterboxed them inside their own footprint, so a wide badge
   rendered smaller than the space it occupied. Matching on height is what
   makes differently-shaped marks look optically consistent in a row. */
.recognition-logo {
  height: 62px;
  width: auto;
  max-width: 92px;      /* keeps an unusually wide mark from crowding the text */
  object-fit: contain;
  flex-shrink: 0;
}
.recognition-text { min-width: 0; }
.recognition-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 2px;
}
.recognition-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-base);
  line-height: 1.25;
  color: var(--navy);
}
.recognition-sub {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════
   HOME AUTHORIZER BAND
   ═══════════════════════════════════════════════════════════════════════ */
.home-authorizer {
  background:
    linear-gradient(135deg, rgba(9, 36, 70, .97), rgba(12, 55, 91, .94)),
    var(--navy);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 4px solid var(--gold);
}
.home-authorizer-inner {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: center;
}
.home-authorizer-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid rgba(215, 179, 75, .55);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.home-authorizer-logo-link:hover,
.home-authorizer-logo-link:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(215, 179, 75, .2), var(--shadow-md);
}
.home-authorizer-logo {
  width: min(100%, 210px);
  height: auto;
  object-fit: contain;
}
.home-authorizer-copy .eyebrow { color: var(--gold); }
.home-authorizer-copy h2 {
  color: var(--white);
  margin-bottom: var(--sp-3);
}
.home-authorizer-copy p {
  max-width: 78ch;
  color: rgba(255,255,255,.88);
  font-size: var(--fs-lg);
}

@media (max-width: 760px) {
  .home-authorizer-inner { grid-template-columns: 1fr; }
  .home-authorizer-logo-link {
    min-height: 130px;
    padding: var(--sp-4);
  }
  .home-authorizer-logo { max-width: 180px; }
  .home-authorizer-copy p { font-size: var(--fs-base); }
}

/* ═══════════════════════════════════════════════════════════════════════
   AUTHORIZER PAGE
   ═══════════════════════════════════════════════════════════════════════ */
.authorizer-profile {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: center;
}
.authorizer-profile-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.authorizer-profile-logo:hover,
.authorizer-profile-logo:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(215, 179, 75, .18), var(--shadow-md);
}
.authorizer-profile-logo img {
  width: min(100%, 210px);
  height: auto;
  object-fit: contain;
}
.authorizer-profile-copy h2 { margin-top: 0; }

@media (max-width: 760px) {
  .authorizer-profile { grid-template-columns: 1fr; }
  .authorizer-profile-logo {
    min-height: 130px;
    padding: var(--sp-4);
  }
  .authorizer-profile-logo img { max-width: 180px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   DOCUMENT LIBRARY  (flagship — reused on minutes + policies)
   ═══════════════════════════════════════════════════════════════════════ */
.doc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-5);
}

.doc-search-wrap { position: relative; flex: 1 1 300px; max-width: 420px; }
.doc-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;
}
/* Selector must be at least as specific as base.css's
   `input[type="search"]` shorthand, or the icon overlaps the placeholder. */
input[type="search"].doc-search {
  padding-left: calc(var(--sp-4) * 2 + 18px);
}

/* ═══════════════════════════════════════════════════════════════════════
   COMPACT DOCUMENT TABLE  (replaces the old card list)
   ───────────────────────────────────────────────────────────────────────
   ~48px rows, zebra striping, hover highlight. Used inside accordion
   sections on the Document Library, Meetings & Minutes, and Policies.
   ═══════════════════════════════════════════════════════════════════════ */
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { margin: 0; }

.doc-row {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  align-items: center;
  gap: var(--sp-3);
  min-height: 48px;
  padding: var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--line-2);
  transition: background var(--dur-fast) var(--ease);
}
/* Zebra striping — subtle, on cream so it reads as banding not as state */
.doc-list li:nth-child(even) .doc-row { background: var(--cream-2); }
.doc-row:hover { background: var(--teal-lt); }
.doc-list li:last-child .doc-row { border-bottom: none; }

.doc-row-icon { color: var(--ink-3); display: grid; place-items: center; }

.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;
  min-width: 0;
}
/* Search match highlight — underline carries the meaning, not colour alone */
.doc-row-title mark {
  background: var(--gold-lt);
  color: var(--navy);
  padding: 0 2px;
  border-radius: 2px;
  text-decoration: underline;
}

/* Meeting-type chip, sits inline beside the date */
.doc-type-chip {
  display: inline-block;
  margin-left: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-3);
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 1px var(--sp-3);
  border-radius: var(--radius-pill);
  vertical-align: middle;
}

.doc-row-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--ink-3);
  white-space: nowrap;
}

/* Year chip — gold on navy */
.doc-year {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--navy);
  color: var(--gold);
  padding: 2px var(--sp-3);
  border-radius: var(--radius-pill);
}

.doc-dl {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 36px;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--line-input);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}
.doc-dl:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.doc-dl[hidden] { display: none; }

/* Status chip for meetings whose minutes are not yet posted */
.doc-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-3);
  background: var(--cream);
  border: 1px dashed var(--line-input);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════
   ACCORDION SECTIONS
   ═══════════════════════════════════════════════════════════════════════ */
.doc-accordion { display: grid; gap: var(--sp-2); }

.doc-section {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.doc-section[hidden] { display: none; }

.doc-section-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  min-height: 50px;
  padding: var(--sp-2) var(--sp-5);
  background: var(--white);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--navy);
  /* Decorative brand rule (2.35:1) — exempt from WCAG 1.4.11 because the
     section heading text beside it already conveys the meaning. The
     functional cues are the chevron (4.65:1) and aria-expanded. */
  border-left: 4px solid var(--gold);
  transition: background var(--dur-fast) var(--ease);
}
.doc-section-btn:hover { background: var(--cream); }
.doc-section-btn[aria-expanded="true"] {
  background: var(--cream);
  border-bottom: 1px solid var(--line-2);
}

.doc-section-name { flex: 1; min-width: 0; }

/* Count badge */
.doc-section-count {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 2px var(--sp-3);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.doc-section-btn[aria-expanded="true"] .doc-section-count {
  background: var(--white);
}

/* Gold chevron, rotates on open */
.doc-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--gold-dk);   /* 4.65:1 on white — raw --gold is only 2.35:1 */
  transition: transform var(--dur) var(--ease);
}
.doc-section-btn[aria-expanded="true"] .doc-chevron { transform: rotate(180deg); }

.doc-section-panel { padding: 0; }
.doc-section-panel[hidden] { display: none; }

/* ═══════════════════════════════════════════════════════════════════════
   STICKY TOOLBAR
   ═══════════════════════════════════════════════════════════════════════ */
.doc-toolbar {
  position: sticky;
  top: calc(var(--header-h-compact) - 1px);
  z-index: var(--z-sticky);
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
  display: grid;
  gap: var(--sp-3);
}
.doc-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}
.doc-search-wrap { position: relative; flex: 1 1 260px; min-width: 0; max-width: 460px; }
.doc-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;
}
input[type="search"].doc-search {
  padding-left: calc(var(--sp-4) * 2 + 18px);
  min-height: 42px;
}

.doc-year-select { flex: 0 0 auto; min-width: 150px; }
.doc-year-select select { min-height: 42px; }

/* Filter pills */
.doc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.doc-pills li { margin: 0; }
.pill {
  min-height: 36px;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--line-input);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.pill:hover { background: var(--cream); border-color: var(--navy); }
.pill[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Expand/collapse-all control */
.doc-bulk {
  background: none;
  border: none;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--navy-3);
  text-decoration: underline;
  min-height: 36px;
  padding: 0 var(--sp-2);
  white-space: nowrap;
}
.doc-bulk:hover { color: var(--navy); }

/* Empty-state shown when a search returns nothing */
.doc-empty {
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  color: var(--ink-3);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.doc-empty[hidden] { display: none; }

.doc-count {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  margin-bottom: var(--sp-4);
}

/* ═══════════════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════════════ */
.faq-list { display: grid; gap: var(--sp-3); }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  min-height: var(--tap);
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  transition: background var(--dur-fast) var(--ease);
}
.faq-trigger:hover { background: var(--cream); }
.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--gold);
}
.faq-panel { padding: 0 var(--sp-5) var(--sp-5); }
.faq-panel[hidden] { display: none; }
.faq-panel p { color: var(--ink-2); font-size: var(--fs-base); }

/* ═══════════════════════════════════════════════════════════════════════
   CALLOUTS
   ═══════════════════════════════════════════════════════════════════════ */
.callout {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.callout h3 { margin-bottom: var(--sp-2); }
.callout p { color: var(--ink-2); }

.callout-navy {
  background: var(--navy);
  color: rgba(255,255,255,.88);
  border-left-color: var(--gold);
}
.callout-navy h3 { color: var(--white); }
.callout-navy p { color: rgba(255,255,255,.85); }
.callout-navy a:not(.btn) {
  color: var(--gold);
  font-weight: 700;
  text-decoration-color: rgba(198,166,70,.72);
}
.callout-navy a:not(.btn):hover,
.callout-navy a:not(.btn):focus-visible {
  color: var(--white);
  text-decoration-color: var(--white);
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
/* Compact by design: ONE four-column row, then two quiet utility rows.
   Campus contact info carries the most visual weight — it is what families
   come to the footer for. Everything else recedes. */
#site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.78);
  border-top: 3px solid var(--gold);
  padding-top: var(--sp-5);
  font-size: var(--fs-sm);
}

/* Four columns on one baseline. The campus column is widest because it
   carries addresses; the two link columns are narrow and equal. */
.footer-top {
  display: grid;
  grid-template-columns: 1.05fr 1.4fr .8fr .8fr;
  gap: var(--sp-6) var(--sp-6);
  padding-bottom: var(--sp-6);
  align-items: start;
}
/* Every column heading sits on the same line, whether or not the column
   has a title (the brand column does not). */
.footer-top > * { padding-top: 0; }

/* ── Brand column ──────────────────────────────────────────────────────*/
/* Crest above the wordmark. Side-by-side forced the name onto three
   ragged lines in the narrow first column. */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  text-decoration: none;
  margin-bottom: var(--sp-4);
}
/* 30ch keeps the wordmark on two lines at most and stops the column from
   running so wide that it collides with the campus column beside it. */
.footer-brand-col { max-width: 34ch; }
.footer-crest { width: 64px; height: 64px; flex-shrink: 0; }
/* Small-caps at body size, generously tracked. The previous version was
   display-serif at heading size, which competed with the crest above it
   and with the campus names beside it — three "loud" elements in one
   footer. Letting the crest carry the brand and setting the name quietly
   is what makes a footer read as institutional rather than promotional. */
.footer-name {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--white);
  line-height: 1.35;
  letter-spacing: .14em;
  text-transform: uppercase;
}
/* Sits under the wordmark, not beside the crest, so it never wraps into
   a ragged two-line block. */
.footer-slogan {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  font-style: italic;
  letter-spacing: .01em;
  color: var(--gold);
  margin-top: 6px;
  /* The slogan is a fixed 41-character phrase and reads as a unit; at a
     30ch measure it split across two lines. Its own line or nothing. */
  white-space: nowrap;
}

/* ── Column titles — no heavy gold underline, just quiet caps ──────────*/
.footer-col-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0; }
.footer-links a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: var(--fs-sm);
  display: block;
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease);
}
.footer-links a:hover { color: var(--gold); text-decoration: underline; }

/* ── Campus blocks — the emphasized element ────────────────────────────*/
/* Three entries now (district + two campuses) — tighter gap keeps the
   column balanced against the link columns beside it. */
.footer-campus-col { display: grid; gap: var(--sp-3); align-content: start; }
.footer-campus {
  border-left: 1px solid var(--campus-accent, var(--gold));
  padding-left: var(--sp-3);
}
/* Body face, not display serif. At --fs-md the serif read as a page
   heading; these are labels on an address block. */
.footer-campus-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--white);
  margin-bottom: 3px;
  line-height: 1.3;
  letter-spacing: .01em;
}
.footer-campus-grades {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold);          /* 7.80:1 on navy-deep */
  margin-bottom: var(--sp-2);
}
.footer-campus address {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.78);
  margin-bottom: 2px;
  line-height: 1.45;
}
.footer-phone {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.footer-phone:hover { color: var(--gold); text-decoration: underline; }

/* ── Authorizer credit — STATE-REQUIRED, on every page ────────────────
   Minnesota charter schools must display their authorizer conspicuously.
   The logo sits with the linked name so the credit reads as an official
   attribution rather than a footnote. */
.footer-authorizer-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  /* A faint raised plate instead of a third horizontal rule. Three stacked
     hairlines made the base of the footer read as a table; one soft ground
     separates the required credit without adding another line. */
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  margin-bottom: var(--sp-4);
}

.footer-auth-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  min-width: 0;
}
.footer-auth-logo {
  width: 40px; height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  /* White plate: the Osprey Wilds mark is full-colour and would otherwise
     disappear against the navy footer. */
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.footer-auth-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--gold);            /* 7.80:1 on navy-deep */
  margin-bottom: 1px;
}
.footer-auth-name {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255,255,255,.9);   /* 14.90:1 */
  line-height: 1.3;
}
.footer-auth-link:hover .footer-auth-name { color: var(--gold); }

.footer-partner {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.72);
}
.footer-partner strong { color: rgba(255,255,255,.9); font-weight: 600; }

/* ── Social icons — smaller, quieter ───────────────────────────────────*/
/* Pulled level with the column titles opposite and nudged left so the
   icons align to the crest's optical edge rather than floating. */
.footer-social { display: flex; gap: var(--sp-1); margin-top: var(--sp-4); margin-left: -10px; }
/* The icons are official brand artwork (gold disc, white glyph), so the
   button is only a tap target — no ring, no plate, nothing that would put a
   second circle around a mark that already has one. The old version tinted
   an inline SVG via currentColor; official artwork must never be recoloured. */
.social-btn {
  width: var(--tap); height: var(--tap);   /* 44px — full tap target kept */
  display: grid; place-items: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  text-decoration: none;
}
.social-icon {
  width: 28px; height: 28px;
  display: block;
  /* Slightly held back so the row does not out-shout the footer text,
     then brought to full strength on hover. Opacity only — the artwork's
     own colours are never altered. */
  opacity: .88;
  transition: opacity var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.social-btn:hover .social-icon,
.social-btn:focus-visible .social-icon {
  opacity: 1;
  transform: translateY(-2px);      /* subtle lift, per the polish-pass rule */
}

@media (prefers-reduced-motion: reduce) {
  .social-icon { transition: opacity var(--dur-fast) var(--ease); }
  .social-btn:hover .social-icon,
  .social-btn:focus-visible .social-icon { transform: none; }
}

/* ── Bottom bar ────────────────────────────────────────────────────────
   Extra left padding at narrow widths keeps the copyright clear of the
   floating accessibility button, which is fixed at bottom-left. */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-5);
  padding: var(--sp-3) 0 var(--sp-2);
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.68);
}
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer-bottom-links a { color: rgba(255,255,255,.78); font-size: var(--fs-sm); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--gold); text-decoration: underline; }

/* ── Nondiscrimination notice — last, smallest, still legible (8.79:1) ─*/
/* Legal fine print — last, smallest, still 8.79:1 on navy-deep. */
.footer-notice {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.68);
  line-height: 1.6;
  padding-bottom: var(--sp-5);
  max-width: 92ch;
}

/* Note shown when older documents are archived out of a list */
.doc-archive-note {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

/* Footer with three entries (district + two campuses) — equal columns so
   the district does not visually outrank the campuses families need. */
.footer-campuses-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ═══════════════════════════════════════════════════════════════════════
   CAMPUS COLOUR SYSTEM
   ───────────────────────────────────────────────────────────────────────
   Campus colours are ACCENTS on campus-specific content only. They never
   appear on institution-wide pages (About, Admissions, Board, Mission),
   never replace gold's role, and never fill a large background area.

   Allowed: chips · dots · thin bars · borders · small tints
   Not allowed: page backgrounds, hero fills, button fills, body text
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Campus chip — small rounded pill, white text on the campus colour ─
   White clears AA on all three: teal 4.93, forest 7.74, crimson 11.37. */
.campus-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  padding: 4px var(--sp-3);
  border-radius: var(--radius-pill);
  background: var(--navy);          /* default = Schoolwide */
  color: var(--white);
  white-space: nowrap;
}
.campus-chip--elementary { background: var(--campus-elementary); }
.campus-chip--junior     { background: var(--campus-junior); }
.campus-chip--secondary  { background: var(--campus-secondary); }
.campus-chip--schoolwide { background: var(--navy); }

/* ── Campus dot — for inline lists and select options ─────────────────*/
.campus-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--navy);
  /* A ring keeps the dot visible in forced-colours mode, where background
     colours are replaced by the user's palette. */
  box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset;
}
.campus-dot--elementary { background: var(--campus-elementary); }
.campus-dot--junior     { background: var(--campus-junior); }
.campus-dot--secondary  { background: var(--campus-secondary); }
.campus-dot--schoolwide  { background: var(--navy); }

/* ── Legend — makes the colour system self-explaining ─────────────────
   Colour is never the only cue: each swatch is followed by its name. */
.campus-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.campus-legend-item { display: inline-flex; align-items: center; gap: var(--sp-2); }
.campus-legend-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Event rows carry a campus chip ───────────────────────────────────*/
.event-info h3 { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }

/* ── Calendar filter pills take their campus colour when active ───────*/
.pill--elementary[aria-pressed="true"] {
  background: var(--campus-elementary);
  border-color: var(--campus-elementary);
  color: var(--white);
}
.pill--junior[aria-pressed="true"] {
  background: var(--campus-junior);
  border-color: var(--campus-junior);
  color: var(--white);
}
.pill--secondary[aria-pressed="true"] {
  background: var(--campus-secondary);
  border-color: var(--campus-secondary);
  color: var(--white);
}

/* ── Campus-specific document badge ───────────────────────────────────
   Institution-wide documents keep the gold-on-navy badge. */
.doc-badge--elementary { background: var(--campus-elementary); color: var(--white); }
.doc-badge--junior     { background: var(--campus-junior);     color: var(--white); }
.doc-badge--secondary  { background: var(--campus-secondary);  color: var(--white); }

/* ── Footer + contact campus indicators ───────────────────────────────*/
.campus-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: var(--sp-2);
  vertical-align: middle;
}

/* Compact legend used inside a form */
.campus-legend--compact {
  margin-bottom: 0;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-xs);
}

/* ═══════════════════════════════════════════════════════════════════════
   ICONS
   ───────────────────────────────────────────────────────────────────────
   All decorative (aria-hidden), always beside a real text label. They give
   a dense policy page something for the eye to catch without adding noise
   or another network request. currentColor means campus theming is free.
   ═══════════════════════════════════════════════════════════════════════ */

/* Tile icon — sits above the tile title */
.tile-icon {
  width: 26px; height: 26px;
  color: var(--accent-text, var(--navy));
  margin-bottom: var(--sp-2);
}
.tile:hover .tile-icon { color: var(--navy); }

/* Section-head icon — a small navy plate beside an h2 */
.section-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--accent-text, var(--navy));
}
.section-icon svg { width: 22px; height: 22px; }

.heading-with-icon {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.heading-with-icon h2 { margin-bottom: 0; }

/* Icon inside an info-panel heading */
.info-panel h3 .panel-icon {
  width: 18px; height: 18px;
  vertical-align: -3px;
  margin-right: var(--sp-2);
  color: var(--accent-text, var(--navy));
}

/* Callout icon — left-aligned beside the callout heading */
.callout-icon {
  width: 20px; height: 20px;
  vertical-align: -4px;
  margin-right: var(--sp-2);
  color: var(--gold-deep);
}

/* Feature strip — icon + label rows for otherwise text-only pages */
.icon-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line-2);
}
.icon-row:last-child { border-bottom: none; }
.icon-row svg {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 2px;
  color: var(--accent-text, var(--navy));
}
.icon-row-text { min-width: 0; }
.icon-row-title {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.icon-row-desc { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }

/* ═══════════════════════════════════════════════════════════════════════
   FLOATING ACCESSIBILITY BUTTON
   ───────────────────────────────────────────────────────────────────────
   Bottom-LEFT on purpose. Bottom-right is where chat widgets, cookie
   banners, and back-to-top buttons cluster; an accessibility control that
   collides with a cookie banner is the one control that must not.
   ═══════════════════════════════════════════════════════════════════════ */
#a11y-fab {
  position: fixed;
  left: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 900;               /* under the mobile nav + lightbox, over content */
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--gold);         /* 7.01:1 */
  border: 1px solid var(--gold);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
#a11y-fab svg { width: 24px; height: 24px; }
#a11y-fab:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }

/* The placeholder message. role="status" announces it; it is also visible,
   so sighted and screen-reader users get the same answer. */
.a11y-fab-note {
  position: fixed;
  left: var(--sp-4);
  bottom: calc(var(--sp-4) + 56px);
  z-index: 900;
  max-width: min(320px, calc(100vw - var(--sp-6)));
  padding: var(--sp-3) var(--sp-4);
  background: var(--navy);
  color: rgba(255,255,255,.92);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              visibility var(--dur);
}
.a11y-fab-note.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Printed pages get no floating UI. */
@media print { #a11y-fab, .a11y-fab-note { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  #a11y-fab:hover { transform: none; }
  .a11y-fab-note { transition: opacity var(--dur) var(--ease), visibility var(--dur); transform: none; }
}

/* Short institutional line in the brand column — gives the column enough
   body to sit against the tall campus column, and states what the school
   IS for anyone who lands on the footer first (search results often do). */
.footer-brand-line {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.72);   /* 9.6:1 on navy-deep */
  line-height: 1.6;
  margin: var(--sp-3) 0 0;
  max-width: 30ch;
}

/* Keep the footer's bottom-left content clear of the floating
   accessibility button (fixed, 48px, bottom-left). */
@media (max-width: 900px) {
  .footer-bottom { padding-left: 60px; }
  .footer-notice { padding-left: 60px; }
}

/* Executive Director message section. */
.ed-band { padding-block: var(--sp-8); }
.ed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--sp-6) var(--sp-7);
  align-items: start;
}
.ed-portrait {
  margin: 0;
  position: sticky;
  top: calc(var(--header-h, 96px) + var(--sp-4));
  align-self: start;
}
.ed-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--radius-sm);
  display: block;
}
.ed-portrait::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(198, 166, 70, .55);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}
.ed-body { position: relative; min-width: 0; }
.ed-heading {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--navy);
  margin-bottom: var(--sp-4);
  text-wrap: balance;
}
.ed-quote {
  position: absolute;
  top: -18px;
  left: -46px;
  width: 92px;
  height: 74px;
  color: var(--gold);
  opacity: .22;
  pointer-events: none;
  z-index: 0;
}
.ed-prose p {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--navy);
  max-width: 62ch;
  margin-bottom: var(--sp-4);
}
.ed-salutation { font-style: normal; }
.ed-list {
  position: relative;
  z-index: 1;
  margin: 0 0 var(--sp-4) var(--sp-4);
  padding: 0;
  list-style: none;
  max-width: 62ch;
}
.ed-list li {
  position: relative;
  padding-left: var(--sp-4);
  margin-bottom: var(--sp-2);
  font-size: var(--fs-base);
  color: var(--ink-2);
  line-height: 1.6;
}
.ed-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 10px;
  height: 1.5px;
  background: var(--gold);
}
.ed-signoff {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: var(--sp-5) 0 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  max-width: 62ch;
}
.ed-closing {
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--ink-2);
  margin-bottom: var(--sp-2);
}
.ed-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--navy);
}
.ed-title,
.ed-org {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--gold-deep);
}
.ed-org { color: var(--ink-3); font-weight: 600; }

@media (max-width: 860px) {
  .ed-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .ed-portrait { max-width: 320px; position: relative; top: auto; }
  .ed-quote { left: -12px; top: -10px; width: 62px; height: 50px; }
}

/* V2.1 board/document widgets: fiscal-year badges and compact two-column lists. */
.doc-year--fy { white-space: nowrap; }
.doc-year--policy {
  background: var(--cream);
  color: var(--ink-2);
  border: 1px solid var(--line);
  font-weight: 600;
  letter-spacing: 0;
}
.event-item.is-past .event-date {
  background: var(--cream);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.event-item.is-past .event-month,
.event-item.is-past .event-day,
.event-item.is-past h3 { color: var(--ink-2); }
.doc-grid .doc-row-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.doc-grid .doc-dl { flex-shrink: 0; white-space: nowrap; }

@media (min-width: 900px) {
  .doc-grid,
  .event-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(var(--rows, 1), auto);
    grid-auto-flow: column;
    column-gap: var(--sp-6);
    row-gap: 0;
    position: relative;
  }
  .doc-grid::before,
  .event-grid::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: rgba(13, 31, 59, .10);
    pointer-events: none;
  }
  .doc-grid .doc-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--sp-2) var(--sp-3);
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding-block: var(--sp-3);
    border-bottom: 1px solid rgba(13, 31, 59, .12);
  }
  .doc-grid > li { height: 52px; overflow: hidden; }
  .doc-grid li:nth-child(even) .doc-row { background: transparent; }
  .doc-grid .doc-row:hover { background: var(--teal-lt); }
  .doc-grid li:nth-child(var(--rows)) .doc-row,
  .doc-grid li:last-child .doc-row { border-bottom: none; }
  .doc-grid .doc-row-icon { order: 0; }
  .doc-grid .doc-row-title { order: 1; flex: 1 1 90px; }
  .doc-grid .doc-row-meta {
    order: 2;
    flex: 0 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    overflow: hidden;
    white-space: nowrap;
  }
  .doc-grid .doc-row-meta > .doc-meta-text { display: none; }
  .doc-grid .doc-year { flex: 0 0 auto; }
  .doc-grid .doc-year--policy { font-size: var(--fs-xs); }
  .doc-grid .doc-year--policy .doc-adopted-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
  .doc-grid .doc-dl { order: 3; flex: 0 0 auto; margin-left: auto; }
  .event-grid > li {
    height: 76px;
    overflow: hidden;
    border-bottom: 1px solid rgba(13, 31, 59, .12);
  }
  .event-grid .event-item,
  .event-grid > li > * { height: 100%; }
  .event-grid .event-item { padding-block: var(--sp-2); }
  .event-grid > li:hover { background: var(--teal-lt); }
  .event-grid .event-info h3 { font-size: var(--fs-base); }
}

@media print {
  .doc-grid { display: block; }
  .doc-grid::before { display: none; }
  .doc-grid .doc-row { break-inside: avoid; }
}
