/* ============================================================
   BRANDON AREA RESCUE SQUAD — public site stylesheet
   Shared by index.html and team.html.

   Design intent: an established, community-owned Vermont EMS
   organization. Editorial pacing, photography-led composition,
   flat colors, minimal decoration.

   Palette is deliberately small:
     rescue blue · white · warm off-white · deep blue-gray ink
     amber ONLY for primary actions and the 911 notice.
   All foreground/background pairs used here were checked against
   WCAG 2.2 AA (most reach AAA). If you change a color, re-check.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Ink */
  --ink:        #16303C;  /* headings + body            13.8:1 on white */
  --ink-muted:  #4A6470;  /* secondary copy              6.3:1 on white */

  /* Rescue blue */
  --blue:       #0B6FB8;  /* brand blue, large fills     5.3:1 w/ white */
  --blue-strong:#075A97;  /* links + primary buttons     7.2:1 on white */
  --blue-ink:   #0A3550;  /* deep field / footer        12.8:1 w/ white */

  /* Amber — action + safety accent, used sparingly */
  --amber:      #F5A00A;
  --amber-ink:  #331F00;  /* text on amber               7.4:1 */
  --amber-light:#FFC65C;  /* amber on the deep blue field 8.2:1 */

  /* Paper */
  --white:      #FFFFFF;
  --paper:      #FAF7F2;  /* warm off-white sections */
  --paper-2:    #F1EDE6;  /* photo placeholder field */
  --line:       #E2DBD1;
  --line-strong:#CFC5B8;

  /* Chart marks. This is an "emphasis" chart, not a categorical one: the
     current year is the point, the previous year is context. So it is one
     hue plus a de-emphasis gray — not two competing colors.
     Both were validated against the --paper surface:
       #0B6FB8  4.94:1   accent, current year
       #8F8577  3.39:1   de-emphasis, previous year
     CVD separation between them: ΔE 15.9 protanopia, 19.7 normal vision
     (target is 8 and 15). Identity is also carried by the legend, the
     direct label, and the table view — never by color alone. */
  --chart-now:  #0B6FB8;
  --chart-prev: #8F8577;

  /* Footer ink */
  --footer-text: #D6E3EC; /* 9.8:1 on --blue-ink */
  --footer-muted:#A9C2D3; /* 6.9:1 on --blue-ink */

  /* Type: system stacks only — no webfont requests.
     Serif headings give the page editorial weight; the sans body
     stays highly legible for older visitors. */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --measure: 62ch;            /* comfortable line length */
  --page: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --radius: 6px;              /* restrained, not pill-shaped */
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;          /* safety net; layout should never need it */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;  /* sticky header clearance for anchors */
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;       /* 18px */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;        /* avoids lonely one-word heading lines */
}

h1 { font-size: clamp(2.05rem, 5vw, 3.4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.0625rem; font-family: var(--font-sans); font-weight: 700; }

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

ul, ol { margin: 0 0 1.15em; padding-left: 1.25rem; }
li { margin-bottom: 0.4em; }

strong { font-weight: 700; }
address { font-style: normal; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}
/* On the deep blue field, switch the ring to amber so it stays visible */
.hero :focus-visible,
.band :focus-visible,
.site-footer :focus-visible { outline-color: var(--amber-light); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
}
.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

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

/* ---------- 3. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* A modest section label. Not a chip, not a pill, not 10px uppercase. */
.label {
  display: block;
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-strong);
}

.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-muted);
}

.prose > * + * { margin-top: 1.15em; }

/* Alternating image + copy layout. Used for every editorial section
   so the page reads as one composition instead of stacked widgets. */
.editorial {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .editorial { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .editorial--wide-copy { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  /* Visual flip only; copy stays first in the DOM for reading order. */
  .editorial--flip .editorial__media { order: -1; }
}

.editorial__body > * + * { margin-top: 1.15em; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;              /* touch target */
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--blue-strong); color: var(--white); }
.btn--primary:hover { background: var(--ink); color: var(--white); }

.btn--amber { background: var(--amber); color: var(--amber-ink); }
.btn--amber:hover { background: #d98a00; color: var(--amber-ink); }

.btn--quiet { background: transparent; color: var(--blue-strong); border-color: var(--line-strong); }
.btn--quiet:hover { background: var(--white); border-color: var(--blue-strong); color: var(--blue-strong); }

/* For use on the deep blue field only */
.btn--onblue { background: var(--white); color: var(--blue-ink); }
.btn--onblue:hover { background: var(--amber-light); color: var(--amber-ink); }
.btn--onblue-quiet { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn--onblue-quiet:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}
@media (max-width: 26.25em) {           /* 420px — stack cleanly on small phones */
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
}

/* A plain text link with a little more presence than body copy */
.text-link {
  display: inline-block;
  font-weight: 700;
  color: var(--blue-strong);
}

/* ---------- 5. Header + navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  padding-block: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;              /* touch target */
  margin-right: auto;
  min-width: 0;                 /* lets the name shrink instead of overflowing */
  text-decoration: none;
  color: var(--ink);
}
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__name {
  display: block;                /* so max-width applies on small screens */
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.brand__tagline {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.6rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list a {
  display: flex;
  align-items: center;
  min-height: 44px;              /* touch target */
  padding: 0.35rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--blue-strong);
  border-bottom-color: var(--amber);
}

.header__cta { flex: none; }
.header__cta .btn { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 1rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.7rem;
  background: var(--white);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__bars { display: block; width: 20px; flex: none; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nav-toggle__bars span + span { margin-top: 4px; }

/* Mobile navigation. Breakpoint is set by the widest point at which
   the full desktop row still fits without crowding. */
@media (max-width: 67.5em) {           /* 1080px */
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }      /* moves into the mobile panel */

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(22, 48, 60, 0.1);
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .nav[hidden] { display: none; }      /* closed = removed from tab order */

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__list a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0.65rem 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
  }
  /* Current page stays marked by weight and color, not color alone. */
  .nav__list a:hover,
  .nav__list a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav__list a[aria-current="page"] { color: var(--blue-strong); font-weight: 700; }
  .nav__cta-mobile { margin-top: 1.25rem; }
  .nav__cta-mobile .btn { width: 100%; }
}

@media (min-width: 67.5625em) {
  .nav__cta-mobile { display: none; }
  /* Panel is always visible on desktop even though the button set it hidden */
  .nav[hidden] { display: block; }
}

/* No JavaScript: hide the toggle and leave the navigation in the page
   flow so every link stays reachable. */
@media (max-width: 67.5em) {
  html.no-js .nav-toggle { display: none; }
  html.no-js .site-header { position: static; }   /* not a tall sticky block */
  html.no-js .site-header__inner { flex-wrap: wrap; }
  html.no-js .nav {
    position: static;
    flex-basis: 100%;
    padding-inline: 0;
    border-bottom: 0;
    box-shadow: none;
  }
  html.no-js .header__cta { display: block; }     /* keep the action reachable */
}

/* Below the desktop nav, keep the header short: drop the tagline and let the
   name break to two even lines instead of three uneven ones. */
@media (max-width: 45em) {               /* 720px */
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 0.95rem; max-width: 13ch; }
  .brand__tagline { display: none; }
}

@media (max-width: 25.9375em) {          /* 415px */
  .brand__mark { width: 36px; height: 36px; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- 6. Photography ----------
   Placeholder fields for photographs BARS has not supplied yet.
   Each one is a quiet paper field with a note about the photograph
   that belongs there. To use a real photograph: delete the
   .figure__placeholder div and uncomment the <img> above it. */
.figure { margin: 0; }

.figure__frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.figure__frame--wide     { aspect-ratio: 16 / 10; }
.figure__frame--portrait { aspect-ratio: 4 / 5; }
.figure__frame--square   { aspect-ratio: 1 / 1; }
.figure__frame--map      { aspect-ratio: 5 / 4; }

.figure__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.figure__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.5rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0) 60%),
    var(--paper-2);
}
.figure__placeholder::after {   /* thin inner rule — reads as intentional framing */
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  pointer-events: none;
}
.figure__mark { width: 34px; height: 34px; color: var(--blue); opacity: 0.5; }
.figure__hint {
  margin: 0;
  max-width: 34ch;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.figure__caption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  background: var(--blue-ink);
  color: var(--white);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
/* Placeholder field behind the hero copy. A real photograph slots in
   behind the same scrim, so contrast is preserved either way. */
.hero__field {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.028) 0 2px, transparent 2px 9px),
    radial-gradient(120% 90% at 78% 8%, #10496D 0%, var(--blue-ink) 62%);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(10,53,80,0.92) 0%, rgba(10,53,80,0.78) 46%, rgba(10,53,80,0.5) 100%);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(26rem, 62vh, 34rem);
  padding-block: clamp(3rem, 8vw, 5.5rem);
}
.hero h1 { color: var(--white); max-width: 22ch; }
.hero__lede {
  margin-top: 1.25rem;
  max-width: 52ch;
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}
.hero .actions { margin-top: 2rem; }

/* Emergency notice — restrained, and clearly not a dispatch number */
/* Block, not flex: a flex row with a gap inserts space around each text node,
   which put a space before the full stop in "call 911." */
.notice {
  display: block;
  margin-top: 2.25rem;
  padding: 0.7rem 0 0.7rem 1rem;
  border-left: 4px solid var(--amber);
  font-size: 1.0625rem;
}
.notice strong { color: var(--amber-light); }
.notice--onpaper { border-left-color: var(--amber); color: var(--ink); }
.notice--onpaper strong { color: var(--ink); }

.hero__credit {
  margin: 0;
  padding-bottom: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- 8. Editorial detail pieces ---------- */
/* Facts set typographically rather than in statistic cards */
.fact-line {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 40ch;
}
.fact-line b { color: var(--blue-strong); font-weight: 600; }

/* A short editorial list — used for services and training detail.
   Deliberately not a card grid. */
.detail-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  max-width: var(--measure);
}
.detail-list > li {
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.detail-list > li:last-child { border-bottom: 1px solid var(--line); }
.detail-list h3 {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.detail-list p { color: var(--ink-muted); font-size: 1rem; margin: 0; }

/* Communities served — an editorial list, no chips */
.towns {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 2.5rem;
  max-width: 30rem;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}
.towns li {
  break-inside: avoid;
  margin: 0;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.towns li span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Subscription figure — price integrated into the composition */
.price {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  color: var(--ink);
}
.price span {
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}

.fineprint {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 58ch;
}

/* A full-width deep blue band — used once, for the donation appeal */
.band {
  background: var(--blue-ink);
  color: var(--white);
}
.band h2 { color: var(--white); }
.band p { color: rgba(255, 255, 255, 0.9); }
.band .container { padding-block: var(--section-y); }
.band__inner { max-width: 44rem; }

/* ---------- 8b. Headline figures + expand control ----------
   A row of headline numbers set typographically: no boxes, no borders around
   each one, no shadows. One hairline rule carries the whole row, the way
   .fact-line does elsewhere. These are not statistic cards. */
.figures {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 4vw, 3.5rem);
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line-strong);
}
@media (min-width: 40em) { .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.figures__item { margin: 0; max-width: none; }
/* Sans, and proportional figures rather than tabular: equal-width digits look
   loose at display sizes. */
.figures__value {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 5.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.figures__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-muted);
  max-width: 22ch;
}

/* The expand control. <summary> so it needs no JavaScript and reports its own
   expanded state; styled as a quiet button-like row. */
.calls-more { margin-top: clamp(1.75rem, 3vw, 2.5rem); }

/* Hide the body explicitly rather than trusting the UA to do it. Belt and
   braces after a Safari bug where the content of a closed <details> rendered
   anyway. Still opens with no JavaScript: the [open] attribute drives it. */
.calls-more__body { display: none; }
.calls-more[open] .calls-more__body { display: block; }

/* display stays `block` here. Setting flex/inline-flex on a <summary> breaks
   the collapse in Safari, so the flex row is on .calls-more__toggle-inner. */
.calls-more__toggle {
  display: block;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;          /* matches .btn--quiet */
  cursor: pointer;
  list-style: none;
}
.calls-more__toggle-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--blue-strong);
}
.calls-more__toggle::-webkit-details-marker { display: none; }
.calls-more__toggle::marker { content: ""; }
.calls-more__toggle:hover {
  background: var(--white);
  border-color: var(--blue-strong);
}

.calls-more__chevron { width: 18px; height: 18px; flex: none; transition: transform 0.15s ease; }
.calls-more__open { display: none; }
.calls-more[open] .calls-more__closed { display: none; }
.calls-more[open] .calls-more__open { display: inline; }
.calls-more[open] .calls-more__chevron { transform: rotate(180deg); }

.calls-more[open] .calls-more__body { padding-top: clamp(1.75rem, 3.5vw, 2.5rem); }

/* ---------- 8c. Call volume chart ----------
   Grouped columns, twelve months, current year against previous.
   The <table> in the markup is the data source and the accessible twin;
   site.js reads it and draws the plot. Marks are thin, gridlines are
   hairline and solid, and only the latest month carries a direct label. */
.calls {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
@media (min-width: 56em) {
  .calls { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); }
}
.calls__lede { max-width: 46ch; }

.calls__stat { margin: 0; }
/* Proportional figures, not tabular: equal-width digits look loose at
   display sizes. Sans, not the serif — this is data, not editorial voice. */
.calls__value {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(2.75rem, 6vw, 3.9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.calls__stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-muted);
}
.calls__compare {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 30ch;
}

.chart { margin: 0; }
.chart__canvas { padding-left: 2.75rem; }   /* room for the y-axis labels */

.chart__plot {
  position: relative;
  height: clamp(170px, 24vw, 250px);
}
.chart__grid { position: absolute; inset: 0; }
.chart__grid > span {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);        /* hairline, solid, recessive */
}
.chart__grid > span:last-child { border-top-color: var(--line-strong); }  /* baseline */
.chart__grid i {
  position: absolute;
  right: calc(100% + 0.5rem);
  top: 0;
  transform: translateY(-50%);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;       /* these do align vertically */
}

.chart__series { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.chart__month {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;                                 /* the surface gap does the separating */
}
.chart__bar {
  position: relative;
  flex: 1 1 0;
  min-width: 3px;
  max-width: 20px;                          /* never fill the slot */
  border-radius: 3px 3px 0 0;               /* rounded cap, square at the baseline */
}
.chart__bar--now  { background: var(--chart-now); }
.chart__bar--prev { background: var(--chart-prev); }

/* Only the most recent month is labelled. A number on every bar goes unread. */
.chart__peak {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.chart__axis { display: flex; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.chart__axis li {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--ink-muted);
}
/* Thin the axis labels rather than shrink them past legibility. */
@media (max-width: 34em) {
  .chart__axis li:nth-child(even) { visibility: hidden; }
}

.chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.1rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-muted);                  /* text token, never the mark color */
  max-width: none;
}
.chart__key { display: inline-flex; align-items: center; gap: 0.5rem; }
.chart__swatch { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.chart__swatch--now  { background: var(--chart-now); }
.chart__swatch--prev { background: var(--chart-prev); }

.chart__table { margin-top: 1.5rem; }
.chart__table-scroll { overflow-x: auto; }  /* wide content scrolls in itself */
.chart table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.25rem 0 0;
  font-size: 1rem;
}
.chart caption {
  text-align: left;
  padding-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.chart th, .chart td {
  text-align: left;
  padding: 0.5rem 1rem 0.5rem 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.chart td { font-variant-numeric: tabular-nums; }
.chart thead th { font-weight: 700; }
.chart tfoot th, .chart tfoot td {
  font-weight: 700;
  color: var(--ink);
  border-bottom: 0;
  border-top: 2px solid var(--line-strong);
}
.chart__note {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* ---------- 9. Team page ---------- */
.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.page-hero__inner { max-width: 44rem; }

.roles {
  display: grid;
  gap: 1.25rem 2.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .roles { grid-template-columns: 1fr 1fr; } }
.roles > li {
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.roles h3 {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.roles p { margin: 0; font-size: 0.98rem; color: var(--ink-muted); }

/* Team directory. Career staff and volunteers use one identical
   presentation — participation is small metadata, never a badge. */
.profiles {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 34em)   { .profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62em)   { .profiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.profile { margin: 0; }
.profile__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.profile__portrait img { width: 100%; height: 100%; object-fit: cover; }
.profile__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.15rem;
}
.profile__role {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue-strong);
}
.profile__meta {
  margin: 0.15rem 0 0.75rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.profile__bio { margin: 0; font-size: 1rem; color: var(--ink-muted); max-width: none; }
.profile__quote {
  margin: 0.9rem 0 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--line-strong);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--ink);
}

/* ---------- 10. Footer ---------- */
.site-footer {
  background: var(--blue-ink);
  color: var(--footer-text);
  padding-block: clamp(2.75rem, 5vw, 4rem) 1.75rem;
}
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: var(--white); }

.footer-grid {
  display: grid;
  gap: 2rem clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 40em)  { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em)  { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.site-footer h2,
.site-footer h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.9rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.footer-brand img { width: 46px; height: 46px; flex: none; }
.footer-brand strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--white);
}
.site-footer p { color: var(--footer-muted); }

.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 0.6rem; line-height: 1.55; }
.footer-list a { display: inline-block; padding-block: 0.15rem; }

.footer-emergency {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 198, 92, 0.45);
  border-left-width: 4px;
  border-left-color: var(--amber-light);
  border-radius: var(--radius);
  color: var(--footer-text);
}
.footer-emergency strong { color: var(--amber-light); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.92rem;
  color: var(--footer-muted);
}
.footer-bottom p { margin: 0; max-width: none; }

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

/* ---------- 12. Print ---------- */
@media print {
  .site-header, .nav-toggle, .skip-link, .actions { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .hero { background: none; color: #000; }
  .hero h1, .hero__lede { color: #000; }
}
