/* ==========================================================================
   Community Living & Learning, Inc.
   Design system + site styles
   --------------------------------------------------------------------------
   Palette is taken from the CLAL logo: deep indigo field, gold star, white
   hands. Teal is carried over from the previous site as a secondary accent.

   ACCESSIBILITY NOTE: --gold is a light accent. It has roughly 2.2:1 contrast
   on white, so it must NEVER be used for text on a light background. Use it
   for rules, icons, and text on --indigo only (where it clears 6:1).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --indigo-900: #150e38;
  --indigo-800: #211659;
  --indigo: #2a1c6f;
  --indigo-600: #3a2890;
  --indigo-400: #6354ad;
  --indigo-050: #f0eef8;

  --gold: #d4a24a;
  --gold-light: #e8c168;
  --gold-dark: #9a6f21; /* AA-safe gold for text on white (4.9:1) */

  --teal: #3d767d;      /* AA-safe teal for text on white (5.1:1) */
  --teal-light: #82c0c7;
  --teal-050: #eef6f7;

  /* Neutrals */
  --ink: #23262f;
  --body: #4b4b4b;
  --muted: #5f6470;
  --line: #e3e3e9;
  --line-soft: #eeeef3;
  /* Form control borders must clear 3:1 against white (WCAG 1.4.11), which
     the decorative --line does not — use this one on inputs. */
  --line-input: #70708a;
  --bg: #ffffff;
  --bg-alt: #f7f7fa;

  /* Feedback */
  --success: #1d6b45;
  --success-bg: #e7f5ee;
  --error: #a3242c;
  --error-bg: #fdeced;

  /* Type */
  --font-head: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Space + shape */
  --wrap: 1180px;
  --wrap-narrow: 780px;
  /* The header bar runs wider than the page body so the brand and the nav are
     not fighting each other for room. */
  --wrap-wide: 1400px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(21, 14, 56, .06), 0 2px 8px rgba(21, 14, 56, .05);
  --shadow: 0 4px 12px rgba(21, 14, 56, .08), 0 12px 32px rgba(21, 14, 56, .07);
  --shadow-lg: 0 8px 24px rgba(21, 14, 56, .10), 0 24px 56px rgba(21, 14, 56, .10);

  --header-h: 104px;
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--indigo);
  line-height: 1.2;
  margin: 0 0 .55em;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.05rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.6vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); }
h4 { font-size: 1.08rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--indigo-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--indigo); }

ul, ol { padding-left: 1.3em; }
li { margin-bottom: .45em; }

strong { color: var(--ink); font-weight: 700; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* Visible focus for every interactive element.
   --gold-dark clears the 3:1 that WCAG 1.4.11 requires of a focus indicator;
   the lighter --gold does not, so it must never be used for this. */
:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 2px;
  border-radius: 3px;
}
.on-indigo :focus-visible,
.site-footer :focus-visible,
.site-header .nav a:focus-visible {
  outline-color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-sm { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.section-alt { background: var(--bg-alt); }
.section-indigo {
  background: linear-gradient(160deg, var(--indigo) 0%, var(--indigo-800) 55%, var(--indigo-900) 100%);
  color: #e9e7f4;
}
.section-indigo h2, .section-indigo h3, .section-indigo h1 { color: #fff; }
.section-indigo a { color: var(--gold-light); }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section-indigo .section-head p { color: #c9c4e3; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .7rem;
}
.section-indigo .eyebrow { color: var(--gold-light); }

.lede { font-size: 1.14rem; line-height: 1.65; color: var(--ink); }

/* Pull-out statement — used for the mission and vision, which are quotations of
   the agency's own wording rather than ordinary body copy. */
.statement {
  margin: 0;
  padding: 2.25rem 1.9rem 1.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  position: relative;
}
.statement::before {
  content: "\201C";
  position: absolute;
  top: .4rem;
  left: 1.35rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  opacity: .55;
  pointer-events: none;
}
.statement p {
  position: relative;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--ink);
  font-style: italic;
  margin: 0;
}
.section-alt .statement { background: #fff; }

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

/* Two-column text + media split */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.split.top { align-items: start; }
@media (min-width: 860px) {
  .split.reverse > *:first-child { order: 2; }
  /* Give the media column the larger share — for wide panoramic photos that
     would otherwise read as a thin strip beside the text. */
  .split.media-lg { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
}

/* --------------------------------------------------------------------------
   Mission + vision: a large photo on the left, with the two statements filling
   exactly the same height beside it so neither column leaves dead space.
   -------------------------------------------------------------------------- */
.mission-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 3.5vw, 3rem);
}
.mission-copy { display: flex; flex-direction: column; gap: 1.5rem; }
.mission-copy h2 { font-size: 1.35rem; margin-bottom: .7rem; }
.mission-copy .statement { padding: 1.75rem 1.5rem 1.35rem; }
.mission-copy .statement::before { font-size: 3.1rem; top: .3rem; left: 1.1rem; }
.mission-copy .statement p { font-size: .97rem; line-height: 1.65; }

@media (min-width: 900px) {
  .mission-split {
    /* photo takes the larger share */
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: stretch;
  }
  /* The frame stretches to the row height and the photo covers it, so the top
     and bottom of the image line up with the top and bottom of the text. */
  .mission-split .media-frame { height: 100%; min-height: 460px; }
  .mission-split .media-frame img,
  .mission-split .media-frame .img-ph {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }
  .mission-copy { justify-content: space-between; gap: 1.75rem; }
  .mission-copy > div { flex: 1; display: flex; flex-direction: column; }
  .mission-copy .statement { flex: 1; }
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--indigo);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  line-height: 1.25;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--indigo); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--indigo-600); color: #fff; box-shadow: var(--shadow); }

.btn-gold { background: var(--gold); color: var(--indigo-900); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-light); color: var(--indigo-900); box-shadow: var(--shadow); }

.btn-outline { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-outline:hover { background: var(--indigo); color: #fff; }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { background: #fff; color: var(--indigo); border-color: #fff; }

.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn-row.center { justify-content: center; }

/* --------------------------------------------------------------------------
   5. Header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 12px rgba(21, 14, 56, .05);
}

.header-bar {
  max-width: var(--wrap-wide);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
  padding-block: .75rem;
}
@media (min-width: 1120px) {
  .header-bar { padding-inline: 32px; }
}

.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; min-width: 0; }
/* The header uses the emblem-only web-banner mark (no wordmark), so the agency
   name sits beside it as text. */
.brand img { height: 72px; width: auto; flex-shrink: 0; }
/* Last-resort guard: if a long nav ever leaves too little room, the name
   ellipsises instead of pushing the page into horizontal scroll. */
.brand-text { display: block; min-width: 0; overflow: hidden; }

.brand-name {
  display: block;
  text-overflow: ellipsis;
  overflow: hidden;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--indigo);
  /* Roomy enough that overflow:hidden above cannot clip the descenders in
     "Community Living & Learning". */
  line-height: 1.3;
  letter-spacing: -.015em;
  margin-bottom: .1rem;
}
.brand-tag {
  display: block;
  font-size: .7rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}

/* Keep the name on one line wherever there is room for it */
@media (min-width: 900px) {
  .brand-name { white-space: nowrap; }
}
/* Between the nav breakpoint and a roomy desktop the bar is tight, so the brand
   scales back rather than shoving the nav off the edge. */
@media (min-width: 1120px) and (max-width: 1439px) {
  .brand img { height: 62px; }
  .brand-name { font-size: 1.02rem; }
  .brand-tag { font-size: .62rem; letter-spacing: .13em; }
}
@media (max-width: 899px) {
  .brand img { height: 62px; }
  .brand-name { font-size: 1.05rem; }
}
/* The agency name stays visible at every width — on a phone it simply wraps
   onto two lines and the emblem shrinks to make room for it. */
@media (max-width: 620px) {
  .brand { gap: .65rem; }
  .brand img { height: 50px; }
  .brand-name { font-size: .88rem; line-height: 1.25; }
  .brand-tag { font-size: .55rem; letter-spacing: .1em; }
}
@media (max-width: 420px) {
  .header-bar { gap: .6rem; }
  .brand { gap: .55rem; }
  .brand img { height: 44px; }
  .brand-name { font-size: .8rem; }
  .brand-tag { font-size: .5rem; letter-spacing: .08em; }
}
@media (max-width: 340px) {
  .brand img { height: 38px; }
  .brand-name { font-size: .74rem; }
  .brand-tag { display: none; }
}

/* Mobile menu button — bare hamburger, no chrome */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-right: -10px;   /* optically align the bars with the page edge */
  background: none;
  border: 0;
  color: var(--indigo);
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle:hover { background: var(--indigo-050); }
.nav-toggle .bars { display: grid; gap: 5px; }
.nav-toggle .bars span {
  display: block;
  width: 24px; height: 2px;
  background: var(--indigo);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }

.nav > ul > li > a,
.nav > ul > li > .sub-toggle {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-head);
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: .65rem .7rem;
  border-radius: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.nav > ul > li > a:hover,
.nav > ul > li > .sub-toggle:hover { color: var(--indigo); background: var(--indigo-050); }

.nav a[aria-current="page"] { color: var(--indigo); }

.nav .caret {
  width: 9px; height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
  flex-shrink: 0;
}
[aria-expanded="true"] > .caret { transform: rotate(-135deg) translate(-2px, -2px); }

.nav .cta-item a {
  background: var(--indigo);
  color: #fff;
  border-radius: 999px;
  padding-inline: 1.25rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  justify-content: center;
}
.nav .cta-item a:hover { background: var(--gold); color: var(--indigo-900); }

/* Mobile-first: nav is a collapsible panel */
@media (max-width: 1119px) {
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: .6rem 20px 1.5rem;
  }
  .nav.open { display: block; }
  .nav > ul > li { border-bottom: 1px solid var(--line-soft); }
  .nav > ul > li:last-child { border-bottom: 0; padding-top: .9rem; }
  .nav > ul > li > a,
  .nav > ul > li > .sub-toggle {
    padding: .95rem .25rem;
    font-size: .98rem;
    justify-content: space-between;
  }
  .nav .submenu {
    display: none;
    padding: 0 0 .8rem .9rem;
    border-left: 2px solid var(--indigo-050);
    margin-left: .25rem;
  }
  .nav .submenu.open { display: block; }
  .nav .submenu a {
    display: block;
    padding: .55rem .25rem;
    font-size: .92rem;
    color: var(--muted);
    text-decoration: none;
  }
  .nav .submenu a:hover { color: var(--indigo); }
}

/* Desktop: horizontal bar with hover dropdowns */
@media (min-width: 1120px) {
  .nav-toggle { display: none; }
  .nav { display: block !important; min-width: 0; }
  .nav > ul { display: flex; align-items: center; justify-content: flex-end; gap: .15rem; }
  .nav > ul > li { position: relative; }
  .nav > ul > li > a,
  .nav > ul > li > .sub-toggle { padding: .7rem .6rem; white-space: nowrap; font-size: .82rem; }
  .nav .cta-item { margin-left: .45rem; }
  .nav .cta-item a { padding-inline: 1rem; }
}

/* Roomy desktops get the full-size bar the design is drawn for */
@media (min-width: 1440px) {
  .header-bar { gap: 2.5rem; }
  .nav > ul { gap: .4rem; }
  .nav > ul > li > a,
  .nav > ul > li > .sub-toggle { padding: .7rem .85rem; font-size: .88rem; }
  .nav .cta-item { margin-left: .75rem; }
  .nav .cta-item a { padding-inline: 1.35rem; }

  .nav .submenu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 232px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--indigo);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    padding: .45rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
  }
  .nav li:hover > .submenu,
  .nav li:focus-within > .submenu,
  .nav .submenu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav .submenu a {
    display: block;
    padding: .55rem .75rem;
    font-size: .88rem;
    color: var(--body);
    text-decoration: none;
    border-radius: 5px;
  }
  .nav .submenu a:hover { background: var(--indigo-050); color: var(--indigo); }
}

/* --------------------------------------------------------------------------
   6. Hero + page headers
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--indigo) 0%, var(--indigo-800) 60%, var(--indigo-900) 100%);
  color: #e9e7f4;
  overflow: hidden;
}
.hero::after {
  /* soft gold glow echoing the star in the logo */
  content: "";
  position: absolute;
  top: -18%;
  right: -8%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(212, 162, 74, .28) 0%, rgba(212, 162, 74, 0) 68%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem) clamp(1.75rem, 3.5vw, 2.5rem);
}
/* Deliberately smaller than the global h1 scale — the hero photo below is the
   main event here, so the wording sits back and introduces it. */
.hero h1 {
  color: #fff;
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem);
  margin-bottom: .5rem;
}
.hero-sub {
  font-size: clamp(.97rem, .92rem + .25vw, 1.08rem);
  line-height: 1.6;
  color: #cdc8e6;
  max-width: 34em;
  margin-inline: auto;
  margin-bottom: 1.6rem;
}
.hero .btn-lg { padding: .85rem 1.6rem; font-size: .9rem; }
.hero .eyebrow { color: var(--gold-light); }

/* Full-bleed panorama closing the hero */
.hero-banner {
  position: relative;
  z-index: 1;
  line-height: 0;
}
.hero-banner img {
  width: 100%;
  aspect-ratio: 1920 / 765;
  object-fit: cover;
  object-position: center;
}
.hero-banner .img-ph {
  aspect-ratio: 1920 / 765;
  min-height: 0;
  border-radius: 0;
  border-width: 2px 0 0;
}
/* On a phone the native panorama is only ~160px tall, so crop the sides a
   little to keep faces at a readable size. */
@media (max-width: 700px) {
  .hero-banner img, .hero-banner .img-ph { aspect-ratio: 2 / 1; }
}
/* Interior page banner */
.page-header {
  background: linear-gradient(155deg, var(--indigo) 0%, var(--indigo-800) 70%, var(--indigo-900) 100%);
  color: #cdc8e6;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  top: -50%; right: -5%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(212, 162, 74, .22) 0%, rgba(212, 162, 74, 0) 70%);
  pointer-events: none;
}
.page-header .wrap { position: relative; z-index: 1; }
.page-header h1 { color: #fff; margin-bottom: .35rem; }
.page-header p { max-width: 46em; font-size: 1.08rem; color: #cdc8e6; }

/* Breadcrumb */
.crumbs {
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #a49ccb;
  margin-bottom: .85rem;
  font-family: var(--font-head);
  font-weight: 600;
}
.crumbs a { color: var(--gold-light); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { opacity: .5; margin-inline: .45rem; }

/* --------------------------------------------------------------------------
   7. Image placeholders
   Any <img class="ph"> whose file is missing is swapped by js/main.js for a
   labelled dashed box, so photos can be dropped in later with no HTML edits.
   -------------------------------------------------------------------------- */
.img-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-align: center;
  padding: 1.5rem 1.25rem;
  background:
    repeating-linear-gradient(45deg, #f4f4f8 0 10px, #eeeef4 10px 20px);
  border: 2px dashed #b9b6cd;
  border-radius: var(--radius);
  color: var(--muted);
  font-family: var(--font-head);
  min-height: 150px;
  overflow: hidden;
}
.img-ph .ph-icon {
  width: 30px; height: 30px;
  color: var(--indigo-400);
  flex-shrink: 0;
  opacity: .75;
}
.img-ph .ph-label {
  font-size: .84rem;
  font-weight: 700;
  color: var(--indigo);
  line-height: 1.35;
  max-width: 30ch;
}
.img-ph .ph-meta {
  font-family: ui-monospace, SFMono-Regular, 'Cascadia Mono', Consolas, monospace;
  font-size: .68rem;
  color: var(--muted);
  word-break: break-all;
  line-height: 1.5;
  max-width: 34ch;
}
.img-ph.on-dark {
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 10px, rgba(255,255,255,.09) 10px 20px);
  border-color: rgba(255, 255, 255, .35);
}
.img-ph.on-dark .ph-label { color: #fff; }
.img-ph.on-dark .ph-meta { color: #b6b0d6; }
.img-ph.on-dark .ph-icon { color: var(--gold-light); }

/* Aspect helpers — applied to both the real <img> and its placeholder */
.ratio-16x9 { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.ratio-4x3  { aspect-ratio: 4 / 3;  object-fit: cover; width: 100%; }
.ratio-3x2  { aspect-ratio: 3 / 2;  object-fit: cover; width: 100%; }
.ratio-1x1  { aspect-ratio: 1 / 1;  object-fit: cover; width: 100%; }

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
}
.media-frame > .img-ph { border-radius: var(--radius-lg); min-height: 260px; }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card .card-link { margin-top: auto; padding-top: 1.1rem; }

a.card, .card-hover { text-decoration: none; }
a.card:hover, .card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--indigo-400);
}

/* Program cards with a coloured top rule */
.card-program { border-top: 4px solid var(--indigo); }
.card-program:nth-child(2) { border-top-color: var(--teal-light); }
.card-program:nth-child(3) { border-top-color: var(--gold); }

.card-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--indigo-050);
  color: var(--indigo);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }

/* Value / fact tiles */
.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.tile h4 { margin-bottom: .3rem; color: var(--indigo); }
.tile p { font-size: .93rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   9. Staff + board
   -------------------------------------------------------------------------- */
/* Management staff — horizontal cards: round portrait beside the text, so the
   bios get room to breathe instead of being squeezed under a square photo. */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 479px) {
  .staff-grid { grid-template-columns: 1fr; }
}

.staff-card {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 1.6rem 1.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.staff-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--indigo-400);
}

.staff-card .staff-photo {
  width: 104px;
  height: 104px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  /* Supplied headshots are portrait at mixed ratios. Squaring them from dead
     centre can clip foreheads, so bias the crop toward the upper third. */
  object-position: 50% 22%;
  background: var(--bg-alt);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--indigo-050), var(--shadow-sm);
}
/* Placeholder stand-in keeps the same circular footprint */
.staff-card .img-ph.staff-photo {
  border-radius: 50%;
  border: 2px dashed #b9b6cd;
  min-height: 0;
  padding: .5rem;
}
.staff-card .img-ph.staff-photo .ph-meta { display: none; }
.staff-card .img-ph.staff-photo .ph-label { font-size: .62rem; }

.staff-body { min-width: 0; padding: 0; }
.staff-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.14rem;
  color: var(--indigo);
  margin: 0 0 .35rem;
  line-height: 1.25;
}
.staff-role {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-050);
  padding: .25rem .6rem;
  border-radius: 999px;
  margin: 0 0 .8rem;
}
.staff-bio { font-size: .93rem; line-height: 1.65; color: var(--muted); margin: 0; }

@media (max-width: 560px) {
  .staff-card { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
  .staff-card .staff-photo { width: 96px; height: 96px; }
}

/* Board of Directors — initial-medallion cards. Officers carry the indigo
   medallion and a gold rule; general members sit back in teal. */
.board-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.1rem;
}

.board-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .2rem;
  padding: 1.75rem 1.1rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.board-card::before {
  /* the top rule, drawn in-card so it follows the rounded corners */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--teal-light);
}
.board-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--indigo-400);
}

.board-initials {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: .85rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--teal-050);
  color: var(--teal);
  border: 2px solid #cfe4e7;
}

.board-card .board-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--indigo);
  line-height: 1.3;
}
.board-card .board-role {
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Officers */
.board-card.is-officer::before { background: var(--gold); }
.board-card.is-officer .board-initials {
  background: var(--indigo);
  color: var(--gold-light);
  border-color: var(--indigo);
}
.board-card.is-officer .board-role { color: var(--teal); }

/* --------------------------------------------------------------------------
   10. Testimonials
   -------------------------------------------------------------------------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.75rem 1.6rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.quote-card::before {
  content: "\201C";
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: .5;
  position: absolute;
  top: .35rem; left: 1.1rem;
}
.quote-card blockquote {
  margin: 1.5rem 0 1.3rem;
  font-size: 1.03rem;
  line-height: 1.65;
  color: var(--ink);
  position: relative;
  z-index: 1;
  flex: 1;
}
.quote-attr { margin-top: auto; display: flex; align-items: center; gap: .85rem; }
.quote-attr > span:last-child { display: flex; flex-direction: column; }
.quote-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  flex-shrink: 0;
}
.quote-name { font-family: var(--font-head); font-weight: 700; color: var(--indigo); font-size: .97rem; line-height: 1.3; }
.quote-role { font-size: .8rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   10b. Carousel
   Built on native scroll-snap, so it still works as a swipeable row with no
   JavaScript at all. main.js layers on dots, arrows, and looping autoplay.
   -------------------------------------------------------------------------- */
.carousel { position: relative; }

.carousel-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* room for the card shadow + hover lift, clipped back by negative margin */
  padding: .5rem .35rem 1rem;
  margin: -.5rem -.35rem -1rem;
  scrollbar-width: none;
}
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-viewport:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 4px; border-radius: var(--radius-lg); }

@media (prefers-reduced-motion: reduce) {
  .carousel-viewport { scroll-behavior: auto; }
}

.carousel-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.carousel-slide {
  margin: 0;
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
}
.carousel-slide > * { width: 100%; }

@media (min-width: 760px) {
  .carousel-slide { flex-basis: calc((100% - 1.5rem) / 2); }
}
@media (min-width: 1100px) {
  .carousel-slide { flex-basis: calc((100% - 3rem) / 3); }
}

/* Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--indigo);
  background: #fff;
  color: var(--indigo);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn:hover { background: var(--indigo); color: #fff; transform: scale(1.06); }
.carousel-btn:active { transform: scale(1); }

.carousel-dots { display: flex; gap: .55rem; align-items: center; }
.carousel-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: #c3c0d6;
  cursor: pointer;
  transition: background .18s ease, width .18s ease;
}
.carousel-dots button:hover { background: var(--indigo-400); }
.carousel-dots button[aria-selected="true"] {
  background: var(--indigo);
  width: 30px;
  border-radius: 999px;
}
/* The tap target stays 44px even though the dot is small */
.carousel-dots button::after {
  content: "";
  position: absolute;
  inset: -16px -6px;
}
.carousel-dots button { position: relative; }

/* --------------------------------------------------------------------------
   11. Programs — anchored detail blocks
   -------------------------------------------------------------------------- */
.program-block { padding-block: clamp(2.75rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line-soft); }
.program-block:last-of-type { border-bottom: 0; }

.program-title-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.program-badge {
  flex-shrink: 0;
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--indigo);
  color: var(--gold-light);
}
.program-badge svg { width: 27px; height: 27px; }
.program-title-row h2 { margin: 0; }

.pull-quote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--teal-050);
  border-left: 4px solid var(--teal-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--indigo);
}

/* Checklist */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; margin: 0; }
.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 21px; height: 21px;
  margin-top: .22rem;
  border-radius: 50%;
  background: var(--teal-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d767d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* --------------------------------------------------------------------------
   12. Events
   -------------------------------------------------------------------------- */
.event-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 760px) {
  .event-card { grid-template-columns: 300px 1fr; }
  .event-card.no-media { grid-template-columns: 1fr; }
}
.event-media { background: var(--bg-alt); }
.event-media .img-ph { border-radius: 0; border-width: 0; height: 100%; min-height: 200px; }
.event-body { padding: 1.6rem 1.75rem; }

.event-date {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--indigo-050);
  color: var(--indigo);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: 999px;
  margin-bottom: .85rem;
}
.event-meta { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .4rem; }
.event-meta li { display: flex; gap: .6rem; align-items: center; font-size: .93rem; color: var(--muted); margin: 0; }
.event-meta svg { width: 17px; height: 17px; color: var(--teal); flex-shrink: 0; }

.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .28rem .65rem;
  border-radius: 4px;
}
.badge-upcoming { background: var(--success-bg); color: var(--success); }
.badge-past { background: #eeeef3; color: var(--muted); }

/* Countdown */
.countdown { display: flex; gap: .6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.countdown div {
  min-width: 66px;
  text-align: center;
  background: var(--indigo);
  color: #fff;
  border-radius: 8px;
  padding: .55rem .4rem;
}
.countdown .cd-num { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; line-height: 1; }
.countdown .cd-label { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #b6b0d6; margin-top: .25rem; }

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   13. Gallery
   -------------------------------------------------------------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.gallery-filters button {
  font-family: var(--font-head);
  font-size: .84rem;
  font-weight: 600;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--body);
  cursor: pointer;
  transition: all .16s ease;
}
.gallery-filters button:hover { border-color: var(--indigo-400); color: var(--indigo); }
.gallery-filters button[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 1rem;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  position: relative;
}
.gallery-item .img-ph { border-radius: 0; border-width: 0; min-height: 0; }
.gallery-item figcaption {
  padding: .65rem .85rem;
  font-size: .84rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--indigo);
  background: #fff;
  border-top: 1px solid var(--line-soft);
}

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
fieldset:last-of-type { margin-bottom: 1.5rem; }
legend {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--indigo);
  padding: 0 0 .35rem;
  margin-bottom: 1.1rem;
  border-bottom: 2px solid var(--gold);
  width: 100%;
}

.field { margin-bottom: 1.15rem; }
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0 1.1rem;
}

label {
  display: block;
  font-family: var(--font-head);
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .4rem;
}
.req { color: var(--error); margin-left: .15rem; }
.hint { display: block; font-family: var(--font-body); font-size: .82rem; font-weight: 400; color: var(--muted); margin-top: .2rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], input[type="url"], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  padding: .72rem .85rem;
  border: 1px solid var(--line-input);
  border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--indigo-400); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(42, 28, 111, .15);
}
textarea { min-height: 130px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6470' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 16px;
  padding-right: 2.4rem;
}

input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--error);
  background: var(--error-bg);
}
.field-error {
  display: none;
  font-size: .83rem;
  color: var(--error);
  margin-top: .35rem;
  font-weight: 600;
}
.field-error.show { display: block; }

.choice-list { display: grid; gap: .6rem; margin-top: .2rem; }
.choice {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.choice:hover { border-color: var(--indigo-400); background: var(--indigo-050); }
.choice input { margin: .28rem 0 0; accent-color: var(--indigo); width: 17px; height: 17px; flex-shrink: 0; }
.choice span { font-size: .94rem; color: var(--body); }
.choice-inline { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice-inline .choice { flex: 0 1 auto; }

/* Honeypot — hidden from humans, catches bots */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: .95rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.form-status.show { display: block; }
.form-status.success { background: var(--success-bg); color: var(--success); border-color: #a9dbc2; }
.form-status.error { background: var(--error-bg); color: var(--error); border-color: #f0b7bb; }

/* --------------------------------------------------------------------------
   15. Donate
   -------------------------------------------------------------------------- */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: .7rem;
  margin-bottom: 1.1rem;
}
.amount-opt { position: relative; }
.amount-opt input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.amount-opt span {
  /* This span IS the control — the real radio is visually hidden — so its
     border carries the 3:1 requirement. */
  display: block;
  text-align: center;
  padding: 1rem .5rem;
  border: 2px solid var(--line-input);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--indigo);
  background: #fff;
  transition: all .15s ease;
}
.amount-opt input:hover + span { border-color: var(--indigo-400); }
.amount-opt input:checked + span {
  border-color: var(--indigo);
  background: var(--indigo);
  color: #fff;
}
.amount-opt input:focus-visible + span { outline: 3px solid var(--gold-dark); outline-offset: 2px; }
.amount-note { font-size: .85rem; color: var(--muted); margin-top: .3rem; }

.give-way {
  display: flex;
  gap: 1.1rem;
  padding: 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  height: 100%;
}
.give-way .give-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--teal-050);
  color: var(--teal);
}
.give-way .give-icon svg { width: 24px; height: 24px; }
.give-way h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.give-way p { font-size: .93rem; color: var(--muted); margin: 0; }

.setup-note {
  background: #fffaf0;
  border: 1px solid #f0dcb4;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem;
  font-size: .92rem;
  color: #6b5320;
}
.setup-note strong { color: #543f14; }
.setup-note code {
  background: #f6ecd6;
  padding: .1rem .35rem;
  border-radius: 3px;
  font-size: .88em;
}

/* --------------------------------------------------------------------------
   16. Newsletter / long-form article
   -------------------------------------------------------------------------- */
.article { max-width: 760px; }
.article h2 { margin-top: 2.5rem; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: 1.9rem; }
.article ul, .article ol { margin-bottom: 1.15em; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.stat {
  background: var(--indigo-050);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  border-bottom: 3px solid var(--indigo);
}
.stat .stat-num { font-family: var(--font-head); font-size: 1.75rem; font-weight: 800; color: var(--indigo); line-height: 1.1; }
.stat .stat-label { font-size: .85rem; color: var(--muted); margin-top: .3rem; }

.issue-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.issue-card h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.issue-card .issue-meta { font-size: .86rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   17. Contact
   -------------------------------------------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.35rem; }
.contact-list li { display: flex; gap: 1rem; margin: 0; }
.contact-list .ci {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--indigo-050);
  color: var(--indigo);
}
.contact-list .ci svg { width: 21px; height: 21px; }
.contact-list .cl-label {
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .15rem;
}
.contact-list .cl-value { font-size: 1.02rem; color: var(--ink); }
.contact-list .cl-value a { color: var(--indigo-600); }

.dept-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.dept-table th, .dept-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.dept-table th {
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--bg-alt);
}
.dept-table td { color: var(--body); }
.dept-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.map-frame iframe { display: block; width: 100%; height: 340px; border: 0; }

/* --------------------------------------------------------------------------
   18. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--indigo) 0%, var(--indigo-600) 100%);
  color: #e9e7f4;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  bottom: -60%; left: -10%;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(212, 162, 74, .25) 0%, rgba(212, 162, 74, 0) 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdc8e6; max-width: 46em; margin-inline: auto; margin-bottom: 1.75rem; }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--indigo-900);
  color: #b6b0d6;
  padding-block: clamp(2.75rem, 5vw, 4rem) 0;
  font-size: .94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2.25rem;
  padding-bottom: 2.5rem;
}
.footer-brand { grid-column: span 1; }
@media (min-width: 900px) { .footer-brand { grid-column: span 1; max-width: 300px; } }
.footer-brand img { height: 76px; width: auto; margin-bottom: 1rem; background: #fff; border-radius: 8px; padding: .5rem; }
.footer-brand p { font-size: .9rem; line-height: 1.65; }

.site-footer h3 {
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #b6b0d6; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .7rem; line-height: 1.55; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: .25rem; }

.social-row { display: flex; gap: .6rem; margin-top: 1.1rem; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  transition: background .18s ease, transform .18s ease;
}
.social-row a:hover { background: var(--gold); color: var(--indigo-900); transform: translateY(-2px); }
.social-row svg { width: 19px; height: 19px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: .86rem;
  color: #8f88b5;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

.eeo-note {
  font-size: .84rem;
  color: #8f88b5;
  padding-bottom: 1.4rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   20. Back to top
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--indigo);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s, background .18s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold); color: var(--indigo-900); }
.to-top svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   21. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .to-top, .btn, .gallery-filters, form { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .hero, .page-header, .section-indigo, .cta-band { background: none !important; color: #000 !important; }
  .hero h1, .page-header h1, .section-indigo h2 { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
