/* ============================================================
   Waldo County YMCA — Theme & Design System
   ------------------------------------------------------------
   Rebuilt to the YMCA of the USA brand (Brand Quick Guide,
   Jan 2026) and the national ymca.org visual language shown in
   new-inspiration.png: bold blues, angular diagonal cuts,
   magenta call-to-action buttons, big impact numbers, and
   photo-led cards.

   Priorities (in order):
     1. On brand — official Y palette + Cachet Pro typography.
     2. Accessible — text pairings meet WCAG 2.1 AA contrast,
        visible focus, motion-reduction, never color-only cues.
     3. Mobile-first — fluid type/space, angular effects that
        gracefully relax on small screens.

   Everything is driven by CSS custom properties so the whole
   site stays consistent and easy to re-skin.
   ============================================================ */

/* ---------- FONTS: Cachet Pro (licensed web fonts) ----------
   Brand primary font. Falls back to Verdana per the brand guide
   ("for online applications where Cachet Pro is not available,
   use Verdana"), then a system stack. */
@font-face {
  font-family: "Cachet Pro";
  src: url("../fonts/CachetW05-ExtraLight.woff2") format("woff2"),
       url("../fonts/CachetW05-ExtraLight.woff") format("woff");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cachet Pro";
  src: url("../fonts/CachetW05-Book.woff2") format("woff2"),
       url("../fonts/CachetW05-Book.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cachet Pro";
  src: url("../fonts/CachetW05-Medium.woff2") format("woff2"),
       url("../fonts/CachetW05-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cachet Pro";
  src: url("../fonts/CachetW05-Bold.woff2") format("woff2"),
       url("../fonts/CachetW05-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* --- Official YMCA brand palette (Brand Quick Guide, p.8) ---
     Hex values are the exact brand swatches. Contrast-checked
     roles are assigned below; bright fills are for large areas
     and graphics only, never small body text. */
  --y-blue:         #0060af;  /* PMS 661C  — primary deep blue     */
  --y-blue-mid:     #0089d0;  /* PMS 3005C — mid blue (large fills) */
  --y-blue-bright:  #00aeef;  /* Process Cyan — accent fills only  */
  --y-magenta:      #c6168d;  /* PMS 233C  — primary CTA (5.4:1)   */
  --y-purple:       #92278f;  /* PMS 2415C — CTA hover / accents   */
  --y-purple-deep:  #5c2e91;  /* PMS 268C  — deep purple accents   */
  --y-red:          #ed1c24;  /* PMS 485C  — alerts / accents      */
  --y-red-deep:     #a92b31;  /* PMS 1807C — Youth accent (AA text)*/
  --y-orange:       #f47920;  /* PMS 152C  — warm accent fill      */
  --y-gold:         #fcaf17;  /* PMS 137C  — warm accent fill      */
  --y-teal:         #01a490;  /* PMS 3268C — Healthy accent        */
  --y-teal-deep:    #006b6b;  /* PMS 3298C — Healthy accent (text) */

  /* Hover/darker shades (kept AA for white text) */
  --y-blue-dark:    #004a87;
  --y-magenta-dark: #92278f;

  /* --- Neutrals (brand gray/black/white) --- */
  --color-ink:       #231f20;  /* PMS Process Black — body text    */
  --color-ink-soft:  #4a4a4c;  /* secondary text (~7:1 on white)   */
  --color-gray:      #636466;  /* Cool Gray 11 — muted (5.9:1)     */
  --color-surface:   #ffffff;  /* page background                  */
  --color-surface-2: #f2f6fa;  /* cool tinted section              */
  --color-surface-3: #e6eef5;  /* cards on tinted sections         */
  --color-border:    #d6dee6;
  --color-border-strong: #b3c1cf;

  /* --- Semantic roles (use these in components) --- */
  --color-primary:        var(--y-blue);
  --color-primary-hover:  var(--y-blue-dark);
  --color-on-primary:     #ffffff;
  --color-cta:            var(--y-magenta);
  --color-cta-hover:      var(--y-magenta-dark);
  --color-link:           var(--y-blue);
  --color-link-hover:     var(--y-blue-dark);
  --color-focus-ring:     #92278f;   /* high-contrast against blue+white */
  --color-text:           var(--color-ink);
  --color-text-muted:     var(--color-gray);
  --color-bg:             var(--color-surface);

  /* --- Pillar accent colors (areas of impact) --- */
  --pillar-youth:   var(--y-red-deep);   /* Youth Development  */
  --pillar-healthy: var(--y-teal-deep);  /* Healthy Living     */
  --pillar-social:  var(--y-purple);     /* Social Responsibility */

  /* --- Typography: Cachet Pro → Verdana → system --- */
  --font-sans: "Cachet Pro", Verdana, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font-sans);

  --fs-100: 0.833rem;   /* fine print            */
  --fs-200: 1rem;       /* body (16px base)      */
  --fs-300: 1.2rem;     /* lead / large body     */
  --fs-400: 1.5rem;     /* h4 / card title       */
  --fs-500: 1.85rem;    /* h3                    */
  --fs-600: clamp(1.9rem, 2vw + 1.2rem, 2.5rem);  /* h2 — fluid   */
  --fs-700: clamp(2.4rem, 4.5vw + 1rem, 4rem);    /* h1 — fluid   */
  --fs-stat: clamp(2.6rem, 4vw + 1.2rem, 3.9rem); /* impact numbers */

  --lh-tight: 1.08;
  --lh-snug:  1.3;
  --lh-base:  1.6;

  --fw-light:   200;
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-bold:    700;

  /* --- Spacing scale (8px rhythm) --- */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* --- Layout --- */
  --container-max: 75rem;   /* ~1200px */
  --container-pad: var(--space-5);

  /* --- Shape & depth --- */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0,42,80,0.06), 0 2px 6px rgba(0,42,80,0.08);
  --shadow-md: 0 8px 18px rgba(0,42,80,0.10), 0 2px 6px rgba(0,42,80,0.06);
  --shadow-lg: 0 20px 45px rgba(0,42,80,0.16);

  /* --- Brand blue gradient (kept dark enough that white/near-white
     text stays WCAG AA across the whole gradient, not just one end) --- */
  --grad-blue: linear-gradient(120deg, #004a87 0%, var(--y-blue) 55%, #0a6fb8 100%);

  /* --- Angular motif --- */
  --slant: 2.2rem;   /* diagonal cut depth used across sections */

  /* --- Motion --- */
  --transition: 170ms ease;
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-200);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;   /* contain angular overhangs */
}

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

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

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-4);
  color: var(--color-ink);
  font-weight: var(--fw-bold);
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-700); text-transform: none; }
h2 { font-size: var(--fs-600); }
h3 { font-size: var(--fs-500); }
h4 { font-size: var(--fs-400); }

/* An emphasized word inside a headline (as in the inspiration's
   "Like *This* Place") — italic accent in a neighboring color. */
.accent-italic { font-style: italic; font-weight: var(--fw-medium); }

p { margin: 0 0 var(--space-4); max-width: 68ch; }
.lead { font-size: var(--fs-300); color: var(--color-text-muted); line-height: var(--lh-snug); font-weight: var(--fw-regular); }
small, .fine-print { font-size: var(--fs-100); color: var(--color-text-muted); }

a { color: var(--color-link); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--color-link-hover); }

/* Section eyebrow — small bold uppercase colored label */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-100);
  font-weight: var(--fw-bold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--y-magenta);
  margin: 0 0 var(--space-3);
}
/* ---------------------------------------------------------------------------
   Eyebrow on a colored banner.

   ⚠️ BOTH SELECTORS BELOW ARE LOAD-BEARING. Reported by the client 2026-08-21:
   "Our areas of focus needs a better color contrast."

   `wcy_page_intro()` wraps the eyebrow in an `<a>` when it is given an
   `eyebrow_url`. The global `a { color: var(--color-link) }` then beat this
   rule — an anchor is matched on the element itself — so the link rendered in
   #0060af, which is **the exact mid stop of the banner gradient**. Measured
   contrast: 1.00:1. Not "low contrast": invisible. It affected every page
   calling wcy_page_intro() with a link — the three Impact pages, Community
   Sponsors, Our Team, Community Partners.

   The `.page-header p` rule (0,1,1) also outranked the single class here
   (0,1,0), so even the unlinked eyebrow was never getting #eaf6ff. Both are
   now stated at a specificity that wins, and both resolve to white:
   5.28:1 against the lightest end of the gradient, which passes AA for small
   text with room to spare. The underline stays — it is a link and should look
   like one. --------------------------------------------------------------- */
.eyebrow--onblue,
.page-header .eyebrow--onblue { color: #fff; }

.eyebrow--onblue a {
  color: inherit;
  text-decoration-color: rgba(255, 255, 255, 0.6);
}
.eyebrow--onblue a:hover,
.eyebrow--onblue a:focus-visible {
  color: #fff;
  text-decoration-color: #fff;
}

/* A short slanted accent bar used under headings/stats */
.accent-bar {
  width: 3.5rem; height: 5px; border: 0;
  background: var(--y-magenta);
  margin: var(--space-3) 0 var(--space-5);
  transform: skewX(-20deg);
}
.accent-bar--center { margin-inline: auto; }
.accent-bar--onblue { background: var(--y-blue-bright); }

/* ---------- ACCESSIBILITY HELPERS ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-3); top: -100%;
  background: var(--y-magenta); color: #fff;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
  z-index: 2000; transition: top var(--transition); text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.section { padding-block: var(--space-8); position: relative; }
.section--tint { background: var(--color-surface-2); }
.section--tight { padding-block: var(--space-7); }
.section__head { max-width: 60ch; margin-bottom: var(--space-6); }
.section__head--center { margin-inline: auto; text-align: center; }

.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: var(--space-3) var(--space-6);
  font: inherit; font-weight: var(--fw-bold); font-size: var(--fs-200);
  line-height: 1.1;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; text-decoration: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-1px); }
/* Primary CTA = brand magenta, matching the inspiration's buttons */
.btn--primary { background: var(--y-magenta); color: #fff; }
.btn--primary:hover { background: var(--y-magenta-dark); color: #fff; }
/* Blue action */
.btn--blue { background: var(--y-blue); color: #fff; }
.btn--blue:hover { background: var(--y-blue-dark); color: #fff; }
/* Outline (adapts to context via currentColor) */
.btn--outline { background: transparent; color: var(--y-blue); border-color: var(--y-blue); }
.btn--outline:hover { background: var(--y-blue); color: #fff; }
/* ---- Deprecated aliases (CLIENT 2026-08-14, "Use consistent button style") ----
   Four variants existed that were either duplicates of another or a third and
   fourth CTA color on a site whose CTA is magenta:

     .btn--secondary  identical to .btn--outline
     .btn--donate     identical to .btn--primary
     .btn--red        a second registration-button color (Youth Sports)
     .btn--purple     a third (Summer Camp, Mitch Philbrook)

   Every template now uses .btn--primary / .btn--blue / .btn--outline plus the
   size and icon modifiers. These aliases stay only so a class typed into the
   editor by the client keeps working; do not use them in new markup. */
.btn--secondary { background: transparent; color: var(--y-blue); border-color: var(--y-blue); }
.btn--secondary:hover { background: var(--y-blue); color: #fff; }
.btn--donate { background: var(--y-magenta); color: #fff; }
.btn--donate:hover { background: var(--y-magenta-dark); color: #fff; }
.btn--sm { min-height: 38px; padding: var(--space-2) var(--space-4); font-size: var(--fs-100); }
.btn--lg { min-height: 54px; padding: var(--space-4) var(--space-7); font-size: var(--fs-300); }

/* On dark/blue backgrounds, outline buttons go white */
.on-blue .btn--outline, .btn--outline-light {
  color: #fff; border-color: rgba(255,255,255,0.85);
}
.on-blue .btn--outline:hover, .btn--outline-light:hover { background: #fff; color: var(--y-blue); border-color:#fff; }

/* ---------- UTILITY BAR (persistent buttons) ---------- */
.utility-bar { background: var(--y-blue); color: #fff; }
.utility-bar__inner {
  display: flex; align-items: center; justify-content: flex-end;
  gap: var(--space-2); min-height: 40px; flex-wrap: wrap;
}
.utility-bar a {
  color: #fff; text-decoration: none; font-size: var(--fs-100);
  font-weight: var(--fw-medium); padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 0.4em;
}
.utility-bar a:hover { background: rgba(255,255,255,0.14); }
.utility-bar a.is-emphasis { background: var(--y-magenta); font-weight: var(--fw-bold); }
.utility-bar a.is-emphasis:hover { background: var(--y-magenta-dark); }

/* ---------- SITE HEADER / NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(0,42,80,0.04);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: var(--space-3);
  text-decoration: none; color: var(--color-ink); }
.brand img, .brand svg { height: 52px; width: auto; display: block; }
.brand__mark {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  background: var(--y-blue); color: #fff; font-weight: 800; font-size: 1.5rem;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}
.brand__name { font-weight: var(--fw-bold); font-size: var(--fs-400); line-height: 1.05; letter-spacing: -0.01em; }
.brand__name small { display:block; font-size: 0.6em; font-weight: var(--fw-medium); color: var(--y-blue); letter-spacing: 0.02em; }

.primary-nav ul { list-style: none; display: flex; align-items: center; gap: var(--space-1); margin: 0; padding: 0; }
.primary-nav a {
  display: inline-block; padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm); text-decoration: none;
  color: var(--color-ink); font-weight: var(--fw-medium); font-size: 1.02rem;
}
.primary-nav a:hover { background: var(--color-surface-2); color: var(--y-blue); }
.primary-nav a[aria-current="page"] {
  color: var(--y-blue);
  box-shadow: inset 0 -4px 0 var(--y-magenta);   /* underline cue, not color alone */
  border-radius: 0;
}

/* Dropdown submenus — desktop opens on hover/keyboard focus; mobile uses a
   toggle button (see the max-width media query). Works with a WP menu or the
   designed fallback; both output .menu-item-has-children + .sub-menu. */
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  position: absolute; top: 100%; left: 0; z-index: 60;
  min-width: 15rem; padding: var(--space-2);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu,
.primary-nav .menu-item-has-children.is-open > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.primary-nav .sub-menu a { white-space: nowrap; }
.primary-nav .menu-item-has-children > a::after {
  content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.4em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.12em); vertical-align: middle; opacity: 0.65;
}
/* Second level (Programs → hub → page): grandchild submenu flies out to the side,
   and its parent's chevron points right instead of down. */
.primary-nav .sub-menu .sub-menu { top: -0.5rem; left: 100%; margin-left: 4px; }
/* …unless there is no room on the right. nav.js measures and adds .is-flipped;
   see the comment there for why this cannot be done in CSS alone.

   A first-level dropdown flips by aligning its right edge to its parent; a
   flyout flips to the opposite side of its parent. Two different corrections,
   one flag — hence the two rules. */
.primary-nav > ul > .menu-item-has-children > .sub-menu.is-flipped {
  left: auto; right: 0;
}
.primary-nav .sub-menu .sub-menu.is-flipped {
  left: auto; right: 100%; margin-left: 0; margin-right: 4px;
}
.primary-nav .sub-menu .menu-item-has-children > a { display: flex; align-items: center; }
.primary-nav .sub-menu .menu-item-has-children > a::after {
  margin-left: auto; margin-right: -0.1em; transform: rotate(-45deg);
}
.submenu-toggle { display: none; }

.nav-toggle {
  display: none;
  min-height: 46px; min-width: 46px;
  align-items: center; gap: var(--space-2);
  background: var(--y-blue); border: 0; color:#fff;
  border-radius: var(--radius-sm); cursor: pointer; font: inherit; font-weight: var(--fw-bold);
  padding: var(--space-2) var(--space-4);
}

@media (max-width: 60rem) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--color-surface); border-bottom: 3px solid var(--y-magenta);
    padding: var(--space-3) var(--container-pad);
    display: none; box-shadow: var(--shadow-md);
  }
  .primary-nav[data-open="true"] { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: var(--space-1); }
  .primary-nav a { display: block; padding: var(--space-3); }
  .primary-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--y-magenta); }

  /* Submenus stack inline. Visible by default (no-JS safe); JS makes them
     collapsible with a toggle button. */
  .primary-nav .menu-item-has-children { position: static; display: flex; flex-wrap: wrap; align-items: center; }
  .primary-nav .menu-item-has-children > a { flex: 1 1 auto; }
  .primary-nav .menu-item-has-children > a::after { display: none; }
  .primary-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 3px solid var(--color-border);
    border-radius: 0; margin: 0 0 var(--space-1) var(--space-4); padding: 0;
    flex-basis: 100%;
  }
  .primary-nav.js-nav .sub-menu { display: none; }
  .primary-nav.js-nav .menu-item-has-children.is-open > .sub-menu { display: flex; }
  .primary-nav.js-nav .submenu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 46px; min-height: 46px; padding: 0;
    background: transparent; border: 0; color: var(--color-ink);
    font: inherit; font-size: 1.05rem; line-height: 1; cursor: pointer;
  }
  .primary-nav.js-nav .submenu-toggle[aria-expanded="true"] { color: var(--y-blue); }
  .primary-nav.js-nav .submenu-toggle[aria-expanded="true"] .submenu-toggle__icon { transform: rotate(180deg); }
}

/* ============================================================
   HERO — angular blue, photo panel, headline with italic accent
   ============================================================ */
.hero {
  position: relative;
  background: var(--grad-blue);
  color: #fff;
  overflow: hidden;
}
/* Faint diagonal chevron texture, like the inspiration's hero */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 62%, rgba(255,255,255,0.06) 62% 70%, transparent 70%),
    linear-gradient(115deg, transparent 74%, rgba(255,255,255,0.05) 74% 80%, transparent 80%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  gap: var(--space-7);
  padding-block: var(--space-9);
}
.hero__content { max-width: 34rem; }
.hero h1 { color: #fff; font-size: var(--fs-700); }
.hero h1 .accent-italic { color: #7fe0ff; }
.hero p { color: rgba(255,255,255,0.94); font-size: var(--fs-300); line-height: var(--lh-snug); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
/* Button row for body sections (outside the hero). */
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-5); }
.hero .btn--outline { color:#fff; border-color: rgba(255,255,255,0.9); }
.hero .btn--outline:hover { background:#fff; color: var(--y-blue); }

/* Angular photo panel on the right */
.hero__media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
  box-shadow: var(--shadow-lg);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media .placeholder-panel { position:absolute; inset:0; }

@media (max-width: 60rem) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-6); padding-block: var(--space-8); }
  .hero__media { aspect-ratio: 16 / 10; clip-path: polygon(6% 0, 100% 0, 100% 88%, 94% 100%, 0 100%, 0 12%); }
}

/* ============================================================
   HERO SLIDER — full-bleed rotating slides (front page)
   Each slide reuses the hero two-column layout; only one is
   visible at a time via a translating track. All slide colors
   are dark enough to keep white text WCAG AA.
   ============================================================ */
.hero-slider { position: relative; overflow: hidden; }
.hero-slider__viewport { overflow: hidden; }
.hero-slider__track { display: flex; transition: transform 500ms ease; }
@media (prefers-reduced-motion: reduce) { .hero-slider__track { transition: none; } }

/* display:flex + a flex:1 inner is what lets a short slide's photograph fill the
   band. The track sizes every slide to the tallest one; without this the inner
   grid stays only as tall as its own copy, and a slide carrying just a heading
   (the video slide) leaves a field of flat color under the photo.

   ⚠️ RE-APPLIED 2026-08-21. This rule, the flex:1 below and the media's
   min-height were present on 8/19 and had been lost from the copy on disk by
   8/21 — see the note in CLIENT-NOTES about theme.css and functions.php having
   drifted apart. If it goes missing again, the symptom is a hero photo that
   stops halfway down the slide. */
.hero-slide {
  flex: 0 0 100%; min-width: 100%; position: relative; color: #fff; overflow: hidden;
  display: flex; flex-direction: column;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 62%, rgba(255,255,255,0.06) 62% 70%, transparent 70%),
    linear-gradient(115deg, transparent 74%, rgba(255,255,255,0.05) 74% 80%, transparent 80%);
}
.hero-slide__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: center;
  gap: var(--space-7); padding-block: var(--space-9);
  flex: 1 1 auto;
}
.hero-slide__content { max-width: 34rem; }
.hero-slide h2 { color: #fff; font-size: var(--fs-700); letter-spacing: -0.01em; }
.hero-slide .eyebrow { color: #fff; }
.hero-slide p { color: #fff; font-size: var(--fs-300); line-height: var(--lh-snug); }
.hero-slide__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-slide .btn--outline { color: #fff; border-color: rgba(255,255,255,0.9); }
.hero-slide .btn--outline:hover { background: #fff; color: var(--y-blue); }

/* SLIDE COLOR IS THE CLIENT'S NOW  (2026-08-21)

   The seven hardcoded gradient variants below are kept only as a fallback for
   a slide with no color chosen. Live slides get an inline gradient built from
   their chosen swatch by wcy_slide_style(), which also sets the text color, so
   nothing here can be overridden into an unreadable pairing.

   Do not add an eighth variant. Add a swatch to wcy_pb_palette() instead — the
   gradient generates itself and the client can then pick it. */
.hero-slide--blue   { background: linear-gradient(120deg, #004a87 0%, #0060af 55%, #0a6fb8 100%); }
.hero-slide--purple { background: linear-gradient(120deg, #3f1f66 0%, #6a3287 100%); }
.hero-slide--gold   { background: linear-gradient(120deg, #6e300f 0%, #a54f18 100%); }
.hero-slide--teal   { background: linear-gradient(120deg, #003f3f 0%, #006b6b 100%); }
.hero-slide--deep   { background: linear-gradient(120deg, #00365f 0%, #0060af 100%); }
.hero-slide--gray   { background: linear-gradient(120deg, #333436 0%, #636466 100%); }
.hero-slide--red    { background: linear-gradient(120deg, #7a0f16 0%, #a92b31 100%); }
/* A slide with no color set at all still needs to be readable. */
.hero-slide { background: var(--grad-blue); }

/* Poster-style media — a flyer shown whole on white rather than cropped. Was
   tied to the red slide; it is now a per-slide choice, because which slides
   carry a poster is a content decision and content is theirs. */
.hero-slide__media--contain { background: #fff; }
.hero-slide__media--contain img { object-fit: contain; padding: var(--space-3); }
.hero-slide__media--cover img { object-fit: cover; }

/* Media panel.
   CLIENT 2026-08-14, item 71: "Update Slides to reflect new format for program
   banners." Their example puts the photograph on the left, running the full
   height of the band, with the chevron as its trailing edge and the copy to the
   right — the same composition as the department banners. So the media is now
   the first grid column, stretched to the band's height, with the container's
   own padding canceled so the photo reaches the edge of the measure rather
   than floating in a gutter.

   --chev matches the department banner ratio (0.238 x height) at the ~420px
   band this slider renders at. */
.hero-slide__media {
  position: relative;
  --chev: 96px;
  align-self: stretch;
  min-height: 24rem;
  margin-block: calc(-1 * var(--space-9));
  /* Bleed to the left edge of the viewport, as in the client's example. The
     distance from the container's content box to the screen edge is its own
     padding plus, on screens wider than the measure, half the leftover. A grid
     item's percentage margins resolve against the grid area rather than the
     container, so this is computed from the container variables instead of the
     usual `calc(50% - 50vw)` trick, which would silently be wrong here. */
  margin-inline-start: calc(-1 * (
    (100vw - min(100vw, var(--container-max))) / 2 + var(--container-pad)
  ));
  /* ── THE ROUNDED POINT  (CLIENT 2026-08-23, redone 2026-08-31) ───────────
     "Make the home page slider chevron more rounded on the right side point."
     Then, on seeing it: "it's not well rounded, it has more of a multi-pointed
     look."

     Both notes are about this polygon. `polygon()` has no radius, so a vertex
     written as `100% 50%` is mathematically sharp and no border-radius will
     touch it; the rounding has to be SAMPLED INTO THE POLYGON. The first
     attempt sampled the wrong curve, in the wrong places, and the client was
     describing exactly that.

     ⚠️ WHAT THE ARTWORK ACTUALLY DOES — measured, not guessed. The supplied
     PNG's arms meet at 120.0°, and its corner is a TRUE CIRCULAR FILLET: a
     circle of R = 317.2 fits the whole corner with an rms error of 0.47px on a
     1509px-wide image. The arms stay dead straight until 11.70% of the way
     along, then turn cleanly. The tip is cut back by 6.27% of the chevron's
     depth. tools/chevron-fillet.py measures all four numbers off the PNG and
     prints this block; do not hand-edit the points.

     ⚠️ THE TRANSFER NEEDS NO FUDGE FACTOR, AND THE OLD NOTE HERE WAS WRONG TO
     ADD ONE. It reasoned that a blunter vertex needs a proportionally bigger
     fillet and picked ±16% of the height by eye. But "how far along the arm"
     and "cutback ÷ depth" are both preserved by the squash from the artwork's
     120° corner to this panel's ~150° one, because that squash is affine. So
     the artwork's own numbers carry straight over, and the shape below is the
     branded corner, not an impression of it: measured against the PNG mapped
     onto this panel, it is within 0.72px everywhere. The shape it replaced was
     out by 3.16px and bowed the arms over ±32% of the height, which is why it
     read as a bend rather than a corner.

     ⚠️ THE SAMPLING WAS BACKWARDS, AND THAT IS THE "MULTI-POINTED" BIT. The old
     nine points sat at t = 0, .075, .15, .3, .5, .7, .85, .925, 1 — crowded at
     the ends, where the curve is nearly straight, and sparse across the tip,
     where all the turning happens. The last chord before the apex therefore
     met its mirror at 19.7° on a 420px band: a visible corner, with two more
     of ~12° either side. Three corners in a row is a point that looks like
     three points.

     These 21 sit at equal turn angle around the arc, so every joint carries
     the same 2.6° and none of them reads. Both ends are tangent to the
     straight edge by construction.

     Why it stays responsive: the tangent points are at ±5.85% of the height
     and 0.1169 × --chev across, which is on the straight edge at any height —
     the edge runs from (--chev, 0) to (0, 50%), so its offset at ±5.85% is
     exactly 0.1169 × --chev whatever the band's height. Change --chev freely. */
  clip-path: polygon(
    0 0,
    calc(100% - var(--chev)) 0,
    calc(100% - 0.1170 * var(--chev)) 44.149%,
    calc(100% - 0.1069 * var(--chev)) 44.687%,
    calc(100% - 0.0978 * var(--chev)) 45.240%,
    calc(100% - 0.0896 * var(--chev)) 45.806%,
    calc(100% - 0.0826 * var(--chev)) 46.384%,
    calc(100% - 0.0765 * var(--chev)) 46.971%,
    calc(100% - 0.0716 * var(--chev)) 47.567%,
    calc(100% - 0.0677 * var(--chev)) 48.169%,
    calc(100% - 0.0649 * var(--chev)) 48.777%,
    calc(100% - 0.0633 * var(--chev)) 49.388%,
    calc(100% - 0.0627 * var(--chev)) 50.000%,
    calc(100% - 0.0633 * var(--chev)) 50.612%,
    calc(100% - 0.0649 * var(--chev)) 51.223%,
    calc(100% - 0.0677 * var(--chev)) 51.831%,
    calc(100% - 0.0716 * var(--chev)) 52.433%,
    calc(100% - 0.0765 * var(--chev)) 53.029%,
    calc(100% - 0.0826 * var(--chev)) 53.616%,
    calc(100% - 0.0896 * var(--chev)) 54.194%,
    calc(100% - 0.0978 * var(--chev)) 54.760%,
    calc(100% - 0.1069 * var(--chev)) 55.313%,
    calc(100% - 0.1170 * var(--chev)) 55.851%,
    calc(100% - var(--chev)) 100%,
    0 100%
  );
}
.hero-slide__media img { width: 100%; height: 100%; object-fit: cover; }

/* Controls */
.hero-slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85); background: rgba(0,0,0,0.20); color: #fff;
  display: grid; place-items: center; cursor: pointer; font-size: 1.6rem; line-height: 1;
  transition: background var(--transition);
}
.hero-slider__btn:hover { background: rgba(0,0,0,0.4); }
.hero-slider__btn--prev { left: var(--space-4); }
.hero-slider__btn--next { right: var(--space-4); }
.hero-slider__dots {
  position: absolute; bottom: var(--space-4); left: 0; right: 0; z-index: 3;
  display: flex; gap: var(--space-2); justify-content: center; margin: 0; padding: 0;
}
.hero-slider__dot {
  width: 13px; height: 13px; border-radius: 50%; padding: 0;
  border: 2px solid #fff; background: transparent; cursor: pointer;
}
.hero-slider__dot[aria-current="true"] { background: #fff; }

@media (max-width: 60rem) {
  .hero-slide__inner { grid-template-columns: 1fr; gap: var(--space-6); padding-block: var(--space-8) var(--space-9); }
  /* Stacked: the photo sits above the copy and spans the measure, so the
     chevron becomes a bottom-pointing edge rather than a trailing one. The
     bleed and the negative block margin are canceled — they only make sense
     beside the copy. */
  /* Stacked slides are as tall as the wordiest one in the deck, so anything
     centered floats in a field of color. Top-align instead. */
  .hero-slide__inner { align-items: start; }
  .hero-slide__media {
    --chev: 40px;
    aspect-ratio: 16 / 10;
    align-self: auto;
    min-height: 0;   /* the desktop floor would stretch this past its ratio */
    margin-block: 0;
    margin-inline-start: 0;
    /* The same fillet as the desktop point, rotated a quarter turn: the
       chevron points DOWN here, so the arm fraction is +/-5.85% of the WIDTH
       and the offset is x --chev of the height. Same 21 samples, reversed,
       because this edge is traced right to left. */
    clip-path: polygon(
      0 0,
      100% 0,
      100% calc(100% - var(--chev)),
      55.851% calc(100% - 0.1170 * var(--chev)),
      55.313% calc(100% - 0.1069 * var(--chev)),
      54.760% calc(100% - 0.0978 * var(--chev)),
      54.194% calc(100% - 0.0896 * var(--chev)),
      53.616% calc(100% - 0.0826 * var(--chev)),
      53.029% calc(100% - 0.0765 * var(--chev)),
      52.433% calc(100% - 0.0716 * var(--chev)),
      51.831% calc(100% - 0.0677 * var(--chev)),
      51.223% calc(100% - 0.0649 * var(--chev)),
      50.612% calc(100% - 0.0633 * var(--chev)),
      50.000% calc(100% - 0.0627 * var(--chev)),
      49.388% calc(100% - 0.0633 * var(--chev)),
      48.777% calc(100% - 0.0649 * var(--chev)),
      48.169% calc(100% - 0.0677 * var(--chev)),
      47.567% calc(100% - 0.0716 * var(--chev)),
      46.971% calc(100% - 0.0765 * var(--chev)),
      46.384% calc(100% - 0.0826 * var(--chev)),
      45.806% calc(100% - 0.0896 * var(--chev)),
      45.240% calc(100% - 0.0978 * var(--chev)),
      44.687% calc(100% - 0.1069 * var(--chev)),
      44.149% calc(100% - 0.1170 * var(--chev)),
      0 calc(100% - var(--chev))
    );
  }
  .hero-slide h2 { font-size: clamp(2rem, 7vw, 2.6rem); }
  .hero-slider__btn { width: 40px; height: 40px; font-size: 1.3rem; }
  .hero-slider__btn--prev { left: 4px; } .hero-slider__btn--next { right: 4px; }
}

/* ============================================================
   BRANDED PLACEHOLDER PANELS
   Stand in for real photography; each is an editable image
   region so a real photo swaps in with no code change.
   ============================================================ */
.placeholder-panel {
  display: grid; place-items: center; height: 100%; width: 100%;
  color: rgba(255,255,255,0.92);
  background: linear-gradient(135deg, var(--y-blue) 0%, var(--y-blue-mid) 60%, var(--y-blue-bright) 100%);
  position: relative; overflow: hidden;
}
.placeholder-panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 55%, rgba(255,255,255,0.10) 55% 63%, transparent 63%);
}
.placeholder-panel .y-mark { width: 34%; max-width: 120px; opacity: 0.9; position: relative; z-index:1; }
.placeholder-panel--youth   { background: linear-gradient(135deg, var(--y-red-deep), var(--y-red)); }
.placeholder-panel--healthy { background: linear-gradient(135deg, var(--y-teal-deep), var(--y-teal)); }
.placeholder-panel--social  { background: linear-gradient(135deg, var(--y-purple-deep), var(--y-purple)); }
.placeholder-panel--gold    { background: linear-gradient(135deg, var(--y-orange), var(--y-gold)); }
.placeholder-panel__label {
  position: absolute; bottom: var(--space-3); left: 0; right: 0; z-index: 1;
  text-align: center; font-size: var(--fs-100); font-weight: var(--fw-medium);
  letter-spacing: 0.04em; color: rgba(255,255,255,0.9);
}

/* ============================================================
   PILLAR / PROGRAM CARDS (Our Programs — three areas of impact)
   ============================================================ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__media { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.card__eyebrow {
  display: inline-block; font-size: var(--fs-100); font-weight: var(--fw-bold);
  letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: var(--space-2);
}
.card h3 { margin-bottom: var(--space-3); }
.card p { margin-bottom: var(--space-4); }
.card__link {
  margin-top: auto; font-weight: var(--fw-bold); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4em; color: var(--y-blue);
}
.card__link::after { content: "\203A"; font-size: 1.3em; line-height: 0; }
.card__link:hover { color: var(--y-blue-dark); gap: 0.65em; }

/* Pillar accents: colored top strip + eyebrow, paired with text */
.card--youth   { border-top: 5px solid var(--pillar-youth); }
.card--healthy { border-top: 5px solid var(--pillar-healthy); }
.card--social  { border-top: 5px solid var(--pillar-social); }
.card--youth   .card__eyebrow { color: var(--pillar-youth); }
.card--healthy .card__eyebrow { color: var(--pillar-healthy); }
.card--social  .card__eyebrow { color: var(--pillar-social); }

/* Cards without a media panel (interior templates put content directly in
   .card) get inner padding, so text never touches the edge. Media cards keep
   full-bleed images with padding supplied by .card__body. */
.card:not(:has(.card__media)) { padding: var(--space-5); }
.card--link { padding: var(--space-5); }
/* Normalize card headings regardless of level (h2/h3) used in templates. */
.card > h2, .card > h3, .card--link h3 { font-size: var(--fs-400); margin-bottom: var(--space-3); }
.card > p { margin-bottom: var(--space-4); }
/* Giving tiers on /donate: the whole card is the link, because it opens the
   donation form with that amount already selected. Inherits .card's hover lift;
   only needs the anchor defaults reset and a visible focus ring, since a card
   sized target gives keyboard users nothing to see otherwise. */
.card--give { text-decoration: none; color: inherit; }
.card--give:focus-visible { outline: 3px solid var(--y-blue); outline-offset: 2px; }
.card--give p { margin-bottom: var(--space-3); }
.card--give__cue { margin-top: auto; font-weight: var(--fw-bold); color: var(--y-blue);
  display: inline-flex; align-items: center; gap: 0.4em; }
.card--give__cue::after { content: "\203A"; font-size: 1.25em; line-height: 0; }
.card--give:hover .card--give__cue { color: var(--y-blue-dark); gap: 0.6em; }

/* Plain trailing links inside interior cards read like the card__link cue. */
.card > a:not(.btn):last-child { font-weight: var(--fw-bold); text-decoration: none; color: var(--y-blue); display: inline-flex; align-items: center; gap: 0.4em; }
.card > a:not(.btn):last-child::after { content: "\203A"; font-size: 1.25em; line-height: 0; }
.card > a:not(.btn):last-child:hover { color: var(--y-blue-dark); gap: 0.6em; }

/* ============================================================
   IMPACT STATS
   ============================================================ */
.stats { display: grid; gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.stat { border-left: 4px solid var(--y-magenta); padding-left: var(--space-4); }
.stat__num { font-size: var(--fs-stat); font-weight: var(--fw-bold); color: var(--y-blue); line-height: 1; letter-spacing: -0.02em; }
.stat__label { display: block; margin-top: var(--space-2); color: var(--color-ink); font-weight: var(--fw-medium); }
.on-blue .stat { border-left-color: var(--y-blue-bright); }
.on-blue .stat__num { color: #fff; }
.on-blue .stat__label { color: rgba(255,255,255,0.9); }

/* ============================================================
   NEWS & STORIES
   ============================================================ */
.news-card { display: flex; flex-direction: column; background: var(--color-surface);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition); }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-card__media { aspect-ratio: 16 / 9; position: relative; }
.news-card__media img { width:100%; height:100%; object-fit: cover; }
.news-card__tag {
  position: absolute; top: var(--space-3); left: var(--space-3);
  background: #fff; color: var(--y-purple); font-size: var(--fs-100);
  font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.25em 0.7em; border-radius: var(--radius-pill);
}
.news-card__body { padding: var(--space-5); display:flex; flex-direction:column; flex:1; }
.news-card__meta { font-size: var(--fs-100); color: var(--color-text-muted); margin-bottom: var(--space-2); }
.news-card h3 { font-size: var(--fs-400); margin-bottom: var(--space-3); }
.news-card h3 a { color: var(--color-ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--y-blue); }

/* ============================================================
   DONATE / SUPPORT BAND — blue, angular top, preset tiers
   ============================================================ */
.support-band {
  position: relative;
  background: var(--grad-blue);
  color: #fff;
  margin-top: var(--space-8);
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}
.support-band::before {
  content:""; position:absolute; inset:0;
  background: linear-gradient(115deg, transparent 60%, rgba(255,255,255,0.06) 60% 68%, transparent 68%);
  pointer-events:none;
}
.support-band .container { position: relative; z-index: 1; padding-block: var(--space-8) var(--space-8); }
.support-band h2 { color:#fff; }
.support-band p { color: rgba(255,255,255,0.94); }
.support-band__grid { display: grid; gap: var(--space-6); grid-template-columns: 1.1fr 1fr; align-items: center; }
.tier-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin: var(--space-5) 0; }
.tier {
  display: block; text-align: left; text-decoration: none;
  background: rgba(255,255,255,0.10); border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-md); padding: var(--space-4);
  color: #fff; transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.tier:hover { background: #fff; color: var(--y-blue); border-color:#fff; transform: translateY(-2px); }
.tier__amt { font-size: var(--fs-500); font-weight: var(--fw-bold); display:block; line-height:1; }
.tier__for { font-size: var(--fs-100); display:block; margin-top: var(--space-2); }
@media (max-width: 60rem) {
  .support-band__grid { grid-template-columns: 1fr; }
  .support-band { clip-path: polygon(0 1.2rem, 100% 0, 100% 100%, 0 100%); }
}

/* ---------- ALERT BAR (site-wide notice, under the nav) ----------
   CLIENT 2026-08-31. Colors are NOT here: the fill and the ink are the
   client's to set, so they arrive as an inline style on .alert-bar. This file
   owns the shape and nothing else, which is what lets the two controls work
   without a stylesheet change or a cache clear.

   No sticky. The header above it is `position: sticky; top: 0`, so as the page
   scrolls the bar slides up behind it and the nav stays put — a notice is
   something you read on arrival, not a thing that follows you down a long page
   eating a line of a phone screen. */
.alert-bar {
  /* A hairline for the one case the fill cannot handle: White on white. Too
     faint to see on any of the other thirteen swatches. */
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.alert-bar__inner {
  display: flex; align-items: baseline; justify-content: center;
  flex-wrap: wrap; gap: var(--space-1) var(--space-3);
  padding-block: var(--space-3);
  text-align: center;
}
.alert-bar__text {
  margin: 0;
  font-size: var(--fs-200); font-weight: var(--fw-medium); line-height: 1.4;
  text-wrap: balance;
}
/* `currentColor` throughout, so the link takes the ink the client chose without
   a second control for it — and cannot become the one unreadable thing on an
   otherwise readable bar. */
.alert-bar__link {
  color: inherit; font-weight: var(--fw-bold); white-space: nowrap;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.alert-bar__link:hover { text-decoration-thickness: 3px; }
.alert-bar__link:focus-visible {
  outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px;
}

@media (max-width: 40rem) {
  /* The link drops to its own line rather than dangling one word below the
     message, which is what `flex-wrap` alone does to a sentence of this
     length. */
  .alert-bar__inner { flex-direction: column; align-items: center; }
  .alert-bar__text { font-size: var(--fs-100); }
}

/* ---------- CTA BAND (kept for interior templates) ---------- */
.cta-band { background: var(--y-blue); color: #fff; position: relative; overflow:hidden; }
.cta-band .container { padding-block: var(--space-8); text-align: center; position:relative; z-index:1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.94); margin-inline: auto; }
.cta-band .btn--secondary, .cta-band .btn--outline { color: #fff; border-color: rgba(255,255,255,0.9); }
.cta-band .btn--secondary:hover, .cta-band .btn--outline:hover { background: #fff; color: var(--y-blue); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-5); }

/* ============================================================
   SITE FOOTER — deep brand blue, angular top
   ============================================================ */
.site-footer {
  background: var(--y-blue-dark); color: #dbe8f4;
  padding-block: calc(var(--space-8) + var(--slant)) var(--space-6);
  position: relative;
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
.site-footer a { color: #a9d5f5; }
.site-footer a:hover { color: #fff; }
.site-footer h2 { color: #fff; font-size: var(--fs-400); margin-top: var(--space-3); }
.footer-grid {
  display: grid; gap: var(--space-6);
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  padding-top: var(--space-4);
}
.footer-brand__mark { margin-bottom: var(--space-3); }
.footer-brand__mark img { height: 58px; width: auto; }
.footer-badge { margin-top: var(--space-5); }
.footer-badge img { width: 104px; height: auto; }
.footer-bottom {
  margin-top: var(--space-7); padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.16);
  font-size: var(--fs-100); color: #a9bccf;
}
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.footer-social { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; gap: var(--space-4); }
.footer-social a { font-weight: var(--fw-medium); }
@media (max-width: 60rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 32rem) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   INTERIOR PAGES — header, prose, callouts, lists
   (restyled so interior templates inherit the new look)
   ============================================================ */
.page-header {
  background: var(--grad-blue);
  color: #fff; position: relative; overflow: hidden;
}
.page-header::before {
  content:""; position:absolute; inset:0;
  background: linear-gradient(115deg, transparent 66%, rgba(255,255,255,0.06) 66% 74%, transparent 74%);
}
.page-header .container { padding-block: var(--space-8); position: relative; z-index: 1; }
.page-header h1 { color:#fff; margin-bottom: var(--space-3); }
.page-header p { color: rgba(255,255,255,0.94); margin-bottom: 0; font-size: var(--fs-300); }

.prose { max-width: none; }   /* fill the container (symmetric margins = container padding), matching hero + callouts */
.prose p, .callout p { max-width: none; }   /* override global p{max-width:68ch} so interior body copy fills the container too */
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { margin-top: var(--space-7); }
.prose ul, .prose ol { padding-left: var(--space-5); }
.prose li { margin-bottom: var(--space-2); }
.prose li > ul { margin-top: var(--space-2); }

.callout {
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--y-blue);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}
.callout > :last-child { margin-bottom: 0; }
.callout--pending { border-left-color: var(--y-purple); background: #f8f2f8; }
.callout--highlight { border-left-color: var(--y-teal-deep); background: #eef7f5; }
.callout__label {
  display: inline-block; font-size: var(--fs-100); font-weight: var(--fw-bold);
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: var(--space-2);
  color: var(--y-purple);
}

/* Content figure (page photos) */
.page-figure { margin: 0 0 var(--space-5); border-radius: var(--radius-md); overflow: hidden; }
.page-figure img { width: 100%; height: auto; display: block; }

/* Constrained poster/flyer (e.g., current openings) */
.flyer { max-width: 32rem; margin: var(--space-4) 0 0; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); overflow: hidden; }
.flyer img { width: 100%; height: auto; display: block; }

/* Data tables (membership rates, financial-aid reductions) — accessible + responsive */
.table-region { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: var(--space-4); }
.table-region table { width: 100%; min-width: 42rem; border-collapse: collapse; font-size: var(--fs-200); }
.table-region caption { caption-side: top; text-align: left; font-weight: var(--fw-bold);
  color: var(--y-blue); font-size: var(--fs-300); margin-bottom: var(--space-3); }
.table-region th, .table-region td { border: 1px solid var(--color-border); padding: var(--space-3);
  text-align: center; vertical-align: middle; }
.table-region thead th { background: var(--y-blue); color: #fff; font-weight: var(--fw-bold); line-height: 1.25; }
.table-region thead small { display: block; font-weight: var(--fw-medium); font-size: var(--fs-100); color: rgba(255,255,255,0.9); }
.table-region tbody th[scope="row"] { text-align: left; background: #eef3f7; font-weight: var(--fw-bold); }
.table-region tbody th[scope="row"] small { display: block; font-weight: var(--fw-medium); color: var(--color-text-muted); }
.table-region tbody tr:nth-child(even) td { background: rgba(0,96,175,0.045); }
.table-note { font-size: var(--fs-100); color: var(--color-text-muted); margin-top: var(--space-3); }
.table-note > * + * { margin-top: var(--space-2); }

/* Board / staff member cards (headshot + name + role + bio) */
.member-grid { display: grid; gap: var(--space-6) var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
  margin: var(--space-5) 0 var(--space-7); }
.member { min-width: 0; }
.member__photo { aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden;
  background: #eef3f7; margin-bottom: var(--space-3); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member__info strong { color: var(--y-blue); font-size: var(--fs-300); line-height: 1.2; }
.member__role { color: var(--color-text-muted); font-size: var(--fs-100); font-weight: var(--fw-medium); }
.member__info p { max-width: none; font-size: var(--fs-200); }
.member__info p + p { margin-top: var(--space-2); }
.member-grid + h3 { margin-top: var(--space-7); }

/* THE STAFF DIRECTORY, AS THE SAME COMPONENT  (CLIENT 2026-09-09)

   > "For 'Our Team', we'd like to be able to add staff pictures. Can we set
   >  this up like the Board page with the name displayed in blue text
   >  underneath the picture, gray text below that with the position, and a
   >  link to email when the name and/or photo is clicked on?"

   Everything in that sentence except the last clause is `.member` already, so
   Our Team is `.member` and this is only the last clause. The photo box is an
   <a> on that page rather than a <div>, and the name is an <a> around the
   <strong> that `.member__info strong` has always painted blue.

   No underline at rest: the name is already the one blue thing on a card of
   gray and black, and twelve underlined names is a page of ruled lines. It
   arrives on hover and on focus, where a link is being asked about. */
.member--staff .member__photo { display: block; }
.member--staff .member__photo:focus-visible { outline: 3px solid var(--y-blue); outline-offset: 2px; }
.member__link { text-decoration: none; }
.member__link:hover strong,
.member__link:focus-visible strong { text-decoration: underline; text-underline-offset: 2px; }

/* Small muted hint text under a block. Kept general — also used on Events. */
.give-hint { font-size: var(--fs-100); color: var(--color-text-muted); }

/* ---------------------------------------------------------------------------
   Little Green Light donation form (2026-08-10) — page-donate-form.php
   LGL injects the form and ships its own stylesheet with it. Everything below
   is theme chrome around the embed or a scoped escape from a global rule that
   would distort LGL's markup. Do not restyle LGL's internals here — the form
   is edited in LGL, and a change there would silently undo it.
   --------------------------------------------------------------------------- */

.lgl-embed { max-width: 46rem; margin-top: var(--space-5); }

/* Global resets the embed must escape: `p { max-width: 68ch }` truncates LGL's
   field help text mid-column, and the theme's heading font/letter-spacing
   overrides LGL's own type scale on its section headings. */
.lgl-embed p { max-width: none; }
.lgl-embed h1,
.lgl-embed h2,
.lgl-embed h3,
.lgl-embed h4 { font-family: inherit; letter-spacing: normal; text-wrap: initial; }

/* LGL also offers an iframe embed. If the Y ever switches to it, this keeps the
   frame full-width instead of the fixed pixel width in LGL's snippet. */
.lgl-embed iframe { width: 100%; border: 0; display: block; }

.info-list { display: grid; gap: var(--space-2); margin: 0; }
.info-list div { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.info-list dt { font-weight: var(--fw-bold); min-width: 9rem; }
.info-list dd { margin: 0; color: var(--color-text-muted); }

.back-link { display: inline-block; margin-top: var(--space-6); font-weight: var(--fw-bold); }

.link-hub { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.link-hub li { margin: 0; }
.link-hub a {
  display: block; padding: var(--space-4) var(--space-5);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-left: 4px solid var(--y-blue);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--color-ink); font-weight: var(--fw-bold);
  transition: box-shadow var(--transition), transform var(--transition);
}
.link-hub a:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--y-blue-dark); }
.link-hub li.is-pending span {
  display: block; padding: var(--space-4) var(--space-5);
  background: var(--color-surface-2); border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md); color: var(--color-text-muted); font-weight: var(--fw-medium);
}
.link-hub .is-pending small { display: block; font-weight: var(--fw-regular); }
.link-hub a small { display: block; margin-top: 0.15em; font-size: var(--fs-100);
  font-weight: var(--fw-regular); color: var(--color-text-muted); }
.link-hub a:hover small { color: var(--color-text-muted); }

/* CLIENT 2026-09-03: "Would like to tighten gap between 'Programs in this area'
   and cards on Youth Development page."

   A heading sitting directly on top of a grid of boxes is a label for it, not a
   paragraph before it, so it takes the label's spacing rather than the 1rem
   every other h2 gets. The cards' own top padding adds another 1rem inside the
   border, which is why the default reads as roughly twice the gap it measures.

   Written as `+` on the heading rather than a margin on .link-hub so it only
   applies where a heading really is immediately above — a hub that follows a
   paragraph keeps the normal rhythm. */
:is(h2, h3) + .pcards { margin-top: calc(var(--space-1) - var(--space-4)); }

/* CLIENT 2026-11-03: "On Social Responsibility page add 'tight' spacing
   between 'Programs in the Area' header and boxes below. Same on 'Our Y'
   after the 'More about our Y' header."

   The rule above used to cover the link boxes too, and pulled them 12px up
   into the heading's margin — measured on staging, 4px from the foot of the
   heading to the top border of the first box, so "Programs in this area" sat
   on the boxes (descenders all but touching). The program CARDS have their
   own top padding inside the edge, which is why the pull is right for them;
   a link box's border IS its edge. So the boxes take the heading's own 16px
   margin and nothing else: 4px → 16px, the same distance the 2026-09-04 seam
   rule settles "Programs in this area" at on Youth Development. */
:is(h2, h3) + .link-hub { margin-top: 0; }

/* ---------------------------------------------------------------------------
   THE SEAM BETWEEN TWO PLAIN BANDS  (CLIENT 2026-09-04, and the real answer to
   the note above)

   ⚠️ THE FIRST FIX FOR THAT NOTE MISSED, AND THE SCREENSHOT IS WHY. The rule
   above assumes the heading and the cards are in the SAME band. On the page
   Allison was actually looking at they are not: she had emptied the program
   list and rebuilt it as Card blocks in a build area, so "Programs in this
   area" is the last thing in its band and the cards are the first thing in the
   next one. The gap she was pointing at was never the heading's margin — it was
   4rem of padding at the bottom of one band plus 4rem at the top of the next.

   CEO Corner is the same seam with nothing to do with headings: Russell's bio
   band ends, the posts band begins, and 8rem of white space sits between two
   boxes that are plainly one piece of page.

   So the boundary is charged once, not twice. Only between two bands that BOTH
   have no fill of their own: a tinted or colored band needs its full padding
   because the color is what makes it read as a band, and collapsing across a
   color change would crowd the fill against its own contents.

   `.page-header` is excluded as a predecessor — the banner already sets the
   distance to the content under it, and it is not a band in this sense. */
:where(.section, .block-section):not(.section--tint):not(.section--filled):not([style*="--sec-bg"])
  + :where(.section, .block-section):not(.section--tint):not(.section--filled):not([style*="--sec-bg"]) {
  padding-top: 0;
}

/* A heading left as the last thing in its band is a label for whatever comes
   next, so it neither carries a paragraph's worth of space under it nor is held
   a full band's distance from the thing it names. With the seam above already
   charged once, this is what takes "Programs in this area" from 144px above its
   cards to 16px.

   Scoped to plain bands for the same reason as the seam: a heading at the foot
   of a colored band still needs the fill's own padding under it. */
:where(.section, .block-section) > .container > :is(h2, h3):last-child {
  margin-bottom: 0;
}
:where(.section, .block-section):not(.section--tint):not(.section--filled):not([style*="--sec-bg"]):has(> .container > :is(h2, h3):last-child) {
  padding-bottom: var(--space-4);
}

/* THE FOOT OF A BAND, CHARGED ONCE  (CLIENT 2026-09-09)

   > "On 'Careers & Volunteering' can we tighten the space between the picture
   >  and 'Employment' heading (same with picture and text on the 'Youth & Teen
   >  Membership' page)?"

   Measured, both were 88px, and it was two spacers doing one job. A block's
   `padding-block` is the rhythm BETWEEN blocks; at the foot of a band there is
   no next block, and the band's own padding is what sets that distance. Every
   band on the site that ends in a block has been paying both. */
:where(.section, .block-section) > .container > .block:last-child,
:where(.section, .block-section) > .container > .block-row:last-child > .block-col > .block:last-child {
  padding-bottom: 0;
}

/* A picture left as the last thing in a plain band is an illustration for what
   comes after it, exactly as a heading left there is a label for it — same
   shape of rule, same scoping, and for the same reason: a tinted or colored
   band still needs its fill's own padding underneath. Takes the two pages
   above from 88px to 32px. */
:where(.section, .block-section):not(.section--tint):not(.section--filled):not([style*="--sec-bg"]):has(> .container > .block--image:last-child) {
  padding-bottom: var(--space-6);
}

/* A FLYER CAROUSEL LEFT AS THE LAST THING IN A PLAIN BAND  (CLIENT 2026-10-21)

   > "Tighten spacing between flyer carousel and buttons on Adult Sports
   >  Current Leagues and Programs page."

   Measured on staging at 1280: 112px from the foot of the flyers to the top of
   her buttons — the carousel's own 48px bottom margin plus the band's 64px
   bottom padding, with the buttons in the block area after the band. Same two
   spacers doing one job as the picture rule above, and the same answer: the
   carousel drops its margin when nothing in the band follows it, and a plain
   band ending in one takes 32px underneath, which is where the picture rule
   puts a picture. 112px → 32px.

   Scoped exactly like the picture rule, guards and all, for the same reason —
   a tinted or colored band still needs its fill's own padding under the
   flyers. A carousel with something after it in its band (Adult Aquatics)
   keeps its 48px. */
:where(.section, .block-section) > .container > .offerings:last-child {
  margin-bottom: 0;
}
:where(.section, .block-section):not(.section--tint):not(.section--filled):not([style*="--sec-bg"]):has(> .container > .offerings:last-child) {
  padding-bottom: var(--space-6);
}

/* A SPECIAL-EVENT PAGE'S DETAILS BAND AND WHAT SHE BUILDS UNDER IT
   (CLIENT 2026-11-02)

   > "tighten spacing between the call out box and section below it on the
   >  Golf Fore Kids page, and between the call out box and picture on the
   >  Halloween page."
   > River Races: "tighten up the spacing before the picture".

   Every special-event page is the same shape: a Details band (intro, the
   call-out, sometimes a line of links) and then her own photos, posters and
   buttons in the block area after it. Measured on staging at 1280 the two were
   held 87px (Halloween), 103px (Golf, to the teal band) and 104px (River Races)
   apart: the band's 64px of bottom padding, the first block's 24px of top
   padding, and on River Races the last paragraph's 16px margin leaking through.
   The same "two spacers doing one job" as the picture and carousel rules above.

   The band is marked `section--event` by its template (golf-fore-kids,
   halloween, river-races, ugly-sweater-party, healthy-kids-day,
   mitch-philbrook, and page.php — every page she builds). On the band's
   default Medium spacing, plain, it takes 32px underneath, nothing it holds
   leaks a margin past that, and a plain block area directly after it starts
   at its first block's edge. 87 / 103 / 104px → 32px.

   A band she has set to another spacing, or colored, keeps what she chose. */
.section--event > .container > :last-child,
.section--event > .container > :last-child > :last-child {
  margin-bottom: 0;
}
.section--event.u-pad-md:not(.section--tint):not(.section--filled):not([style*="--sec-bg"]) {
  padding-bottom: var(--space-6);
}
.section--event.u-pad-md:not(.section--tint):not(.section--filled):not([style*="--sec-bg"])
  + .block-section:not(.section--tint):not(.section--filled):not([style*="--sec-bg"]) > .container > .block:first-child,
.section--event.u-pad-md:not(.section--tint):not(.section--filled):not([style*="--sec-bg"])
  + .block-section:not(.section--tint):not(.section--filled):not([style*="--sec-bg"]) > .container > .block-row:first-child > .block-col > .block:first-child {
  padding-top: 0;
}

/* A PICTURE, A "None" SPACER, THEN WORDS: THE WORDS ARE ITS CAPTION
   (CLIENT 2026-11-02)

   > River Races: "tighten up the spacing … between the photo and photo
   >  credit."

   She had already tried: a Spacer block set to None between the photo and the
   credit line. A None spacer was 0px tall and did nothing, because the space
   was never the spacer's — it was the photo block's 24px of bottom padding,
   the credit block's 24px of top padding and her <h5>'s own top margin, 70px
   in all. After a picture, None now means what it says: the picture and the
   block after the spacer lose the padding that faces it, and the gap is the
   credit line's own top margin. 70 → 22px.

   ⚠️ AFTER A PICTURE ONLY. Written for any block first, it also closed up
   the two other places she has a None spacer — Health Enhancement Options'
   paragraph came to sit 12px under its call-out box, and Swim Lessons' list
   24px closer to its buttons — neither of which she asked about, and the
   first of which looked wrong. */
.block--image:has(+ .block--spacer.u-pad-none) { padding-bottom: 0; }
.block--image + .block--spacer.u-pad-none + .block { padding-top: 0; }

/* THE SPONSOR STRIP AND THE WORDS THAT INTRODUCE IT  (CLIENT 2026-09-09)

   > "On 'Community Sponsors' can we tighten up the spacing between the
   >  'Special Thanks to our Sponsors!' paragraph and the scrolling banner
   >  below?"

   136px from the last line of the paragraph to the first logo: 16px of the
   paragraph's own margin, 24px of block rhythm, 48px at the foot of the band
   and 48px inside the top of the strip. The strip keeps its 48 — it is a
   tinted band and the tint has to clear its own contents — so the seam is
   charged on the plain side instead.

   ⚠️ THE THREE :not() GUARDS ARE LOAD-BEARING, NOT DECORATION. Without them
   this selector weighs (0,2,0) — `:where()` is free and `:has()` only carries
   its argument — which TIES with `.block-section.u-pad-snug` further down the
   file, and a tie is settled by source order. The band above the strip is
   `u-pad-snug`, so the rule lost and this fix did nothing at all: measured
   48px of band padding and 134px from the paragraph to the first logo, which
   is where it started. The guards take it to (0,5,0), and they are the same
   three the two seam rules above already carry for the same reason — a tinted
   or filled band still needs its own fill's padding underneath.

   ⚠️ AND THE REGEX TEST IN client-0909-tests.php COULD NOT SEE THAT. It
   matched the rule's text, which was present and correct and inert. A
   stylesheet assertion proves a rule was written, never that it applies.
   Measured after the fix: 16px of band padding, 32px from the paragraph to
   the tint's edge, 102px to the first logo (the strip's own 48px top padding
   plus 22px inside the item is the rest, and that padding is the tint
   clearing its contents). */
:where(.section, .block-section):not(.section--tint):not(.section--filled):not([style*="--sec-bg"]):has(+ :where(.section, .block-section) > .container > .sponsor-band) {
  padding-bottom: var(--space-4);
}

/* Events: monthly/recurring cards with colored icon tiles. */
.event-grid { list-style: none; padding: 0; margin: var(--space-5) 0 0;
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.event { display: flex; gap: var(--space-4); align-items: center; min-width: 0;
  padding: var(--space-4); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition); }
.event:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.event__icon { flex: none; width: 4rem; height: 4rem; border-radius: var(--radius-md);
  display: grid; place-items: center; }
.event__icon img { width: 2.5rem; height: 2.5rem; object-fit: contain; display: block; }
.event__body { min-width: 0; }
.event__body h3 { font-size: var(--fs-300); line-height: 1.2; margin: 0; color: var(--color-ink); }
.event__body h3 a { color: inherit; text-decoration: none; }
.event__body h3 a:hover { color: var(--y-blue-dark); text-decoration: underline; }
.event__body p { max-width: none; margin: 0.2em 0 0; font-size: var(--fs-200);
  color: var(--color-text-muted); font-weight: var(--fw-medium); }
.event__icon--purple  { background: #f2e5f2; }
.event__icon--teal    { background: #d9f2ee; }
.event__icon--gold    { background: #fdefd0; }
.event__icon--blue    { background: #dceffb; }
.event__icon--magenta { background: #fae4f2; }
.event__icon--red     { background: #fce0e1; }

/* Blog: single-post hero image + posts-index pagination. */
.post-hero { margin: 0 0 var(--space-6); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.post-hero img { width: 100%; height: auto; }
/* CLIENT 2026-11-03: the featured image in a CEO Corner post, "scaled to
   display smaller and aligned right with text tightened around it" (single.php
   says why it is a per-post choice). A third of the column, never more than
   20rem; the post's text wraps round it and the .prose clearing below keeps
   the next band from wrapping too. On a phone a third of the screen is a
   postage stamp, so under 40rem it is the picture above the text again —
   full column width, as it was. */
.post-hero--right {
  float: right;
  width: min(36%, 20rem);
  margin: 0.35rem 0 var(--space-4) var(--space-5);
}
.post-hero--right ~ .prose::after { content: ""; display: block; clear: both; }
@media (max-width: 40rem) {
  .post-hero--right { float: none; width: auto; margin: 0 0 var(--space-5); }
}
.pagination { margin-top: var(--space-7); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.pagination a, .pagination .current {
  display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
  padding: 0 var(--space-3); border-radius: var(--radius-sm); text-decoration: none; font-weight: var(--fw-bold);
}
.pagination a { background: var(--color-surface); border: 1px solid var(--color-border); color: var(--y-blue); }
.pagination a:hover { background: var(--y-blue); color: #fff; }
.pagination .current { background: var(--y-blue); color: #fff; }

.contact-card { display: grid; gap: var(--space-1); }
.contact-card .name { font-weight: var(--fw-bold); color: var(--color-ink); }
.contact-card .role { color: var(--color-text-muted); font-size: var(--fs-100);
  text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding-block: var(--space-9); }

/* ============================================================
   ADDED 7/28 — header search + tagline, footer newsletter,
   Programs tile menu, virtual tour embed.
   ============================================================ */

/* Screen-reader-only text (WordPress convention). */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Utility bar: search ---------- */
.utility-bar__inner { justify-content: space-between; }
.utility-bar__links { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.utility-search { display: flex; align-items: center; gap: 0; }
.utility-search input[type="search"] {
  height: 28px; width: 13rem; max-width: 40vw;
  padding: 0 var(--space-2); font-size: var(--fs-100);
  border: 1px solid rgba(255,255,255,0.35); border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: rgba(255,255,255,0.12); color: #fff;
}
.utility-search input[type="search"]::placeholder { color: rgba(255,255,255,0.72); }
.utility-search input[type="search"]:focus {
  outline: 2px solid #fff; outline-offset: 1px;
  background: #fff; color: var(--color-ink);
}
.utility-search input[type="search"]:focus::placeholder { color: var(--color-text-muted); }
.utility-search button {
  height: 28px; width: 32px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.35); border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255,255,255,0.12); color: #fff; cursor: pointer;
}
.utility-search button:hover { background: rgba(255,255,255,0.26); }
.utility-search svg { width: 16px; height: 16px; }
@media (max-width: 48rem) {
  .utility-bar__inner { justify-content: center; }
  .utility-search { order: 2; width: 100%; }
  .utility-search input[type="search"] { width: 100%; max-width: none; }
}

/* Brand tagline sits under the site name. */
.brand__name small { color: var(--color-text-muted); font-style: italic; }
@media (max-width: 30rem) { .brand__name small { display: none; } }

/* ---------- Footer: newsletter ---------- */
.footer-newsletter { margin-top: var(--space-6); }
.footer-newsletter h2 { margin-top: 0; font-size: var(--fs-300); }
.footer-newsletter p { margin: 0 0 var(--space-2); max-width: none; }
.footer-newsletter label { display: block; font-size: var(--fs-100); margin-bottom: 0.25em; }
.footer-newsletter input[type="email"],
.footer-newsletter input[type="text"] {
  width: 100%; max-width: 20rem; padding: var(--space-2);
  border: 1px solid rgba(255,255,255,0.35); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.10); color: #fff;
}
.footer-newsletter input:focus { outline: 2px solid #fff; background: #fff; color: var(--color-ink); }
.footer-newsletter .req { color: #ff9db5; }
.footer-newsletter.is-placeholder {
  border: 1px dashed rgba(255,255,255,0.35);
  border-radius: var(--radius-md); padding: var(--space-3);
}
.site-footer .fine-print { font-size: var(--fs-100); color: #a9bccf; }

/* ---------- Programs: full-bleed color tiles ---------- */
.program-menu__title {
  text-align: center; font-size: var(--fs-600);
  color: var(--color-text-muted); font-weight: var(--fw-bold);
  margin: 0 0 var(--space-6);
}
.program-tiles { display: grid; gap: var(--space-3); }
.tile {
  position: relative; display: flex; align-items: center; gap: var(--space-5);
  min-height: 150px; padding: 0 var(--space-5);
  text-decoration: none; color: #fff; overflow: hidden;
  transition: filter var(--transition);
}
.tile:hover { filter: brightness(1.06); color: #fff; }
.tile:focus-visible { outline: 3px solid var(--color-ink); outline-offset: -3px; }
.tile__media { flex: none; width: 150px; align-self: stretch; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile__label {
  font-size: clamp(1.75rem, 4vw, 3rem); font-weight: var(--fw-bold); line-height: 1.05;
}
.tile__sub { font-size: 0.62em; font-weight: var(--fw-medium); }
/* Alternating layout, matching the old site: image left-of-center on odd tiles,
   right-of-center on even ones. `order` keeps the DOM order intact. */
.tile { justify-content: center; }
.tile__media { order: 1; }
.tile__label  { order: 2; margin-right: auto; }
.tile--img-right .tile__media { order: 2; }
.tile--img-right .tile__label  { order: 1; margin-right: 0; margin-left: auto; }
.tile--orange  { background: var(--y-orange); }
.tile--blue    { background: #0a8ed9; }
.tile--red     { background: #f9483f; }
.tile--teal    { background: var(--y-teal); }
.tile--magenta { background: #cf1c8f; }
.tile--sky     { background: #29b6f0; }
@media (max-width: 40rem) {
  .tile { min-height: 110px; gap: var(--space-3); padding: 0 var(--space-3); }
  .tile__media { width: 92px; }
}
.program-menu__tour { text-align: center; margin-top: var(--space-7); }

/* ---------- Virtual tour embed ---------- */
.tour-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 420px;
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
  background: var(--color-border);
}
.tour-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  justify-content: center; margin-top: var(--space-6);
}
.tour-contact { text-align: center; margin-top: var(--space-5); }
.tour-contact p { max-width: 46rem; margin-inline: auto; }
@media (max-width: 40rem) { .tour-embed { min-height: 320px; } }

/* ============================================================
   CHILDCARE SECTION — banner header, member-benefit badge,
   print links, camp + weekly-theme lists.
   ============================================================ */

/* Colored banner strip with an inset square photo, as on the old site. */
.page-header--banner { background: #f9483f; color: #fff; padding-block: 0; }

/* ── THE SLASHES, BACK ON THE PROGRAM HEADERS  (CLIENT 2026-08-23) ─────────
   "Add the header slashes back to the program page header backgrounds, we had
   those before but they got changed."

   They were never deleted. `.page-header::before` still paints its diagonal on
   all 26 of these — it just stopped being visible when the program pages moved
   to the banner variant, and BOTH reasons matter:

     1. The band sits at 66–74% along a 115° gradient. On a tall header that is
        a slash across the middle; on a 128px-high, full-width banner the axis
        is almost horizontal, so the band lands hard against the right edge —
        directly underneath the chevron watermark, which is a much stronger
        shape in the same place. It reads as part of the chevron, not as a
        slash.
     2. At 6% white it was tuned against the blue gradient. On the flat brand
        reds and magentas of the banner variants it is close to invisible.

   So this is a re-place, not a restore: two bands, moved LEFT of the watermark
   into the empty color beside the title, and lifted enough to read on a flat
   fill. Verified by screenshotting a banner header rather than by reading the
   rule, because the previous version was also "present" by that test. */

/* ── AND MOVED AGAIN, TO THE RIGHT, AT EQUAL WIDTH  (CLIENT 2026-08-31) ────
   "Program header slashes — make same width, right side of header instead of
   left, consistent across all pages, and dropdown for slashes and chevron
   option selection."

   All four parts of that note are one change, and the fourth is what makes the
   first three safe.

   ⚠️ THE WIDTHS WERE NOT EQUAL AND THE NOTE ABOVE IS WHY. The re-place in
   August put one band at 6% of the axis and the second at 4%, tapering, because
   they were tucked into the narrow strip of empty color to the LEFT of the
   title and the second one had less room. Moved right they have the same room
   as each other, so they are the same width: 5% each, 4% apart.

   ⚠️ AND THEY ARE NOW ONE RULE FOR BOTH HEADER SHAPES. `.page-header` (tall,
   on the blue gradient) had a single 8% band at 66%; `.page-header--banner`
   (128–200px, flat brand color) had those two on the left. Two headers, two
   different marks, which is precisely the "consistent across all pages" the
   client asked for and did not have. One declaration, both selectors.

   ⚠️ 0.09 ON BOTH, WHICH IS A COMPROMISE AND WORTH KNOWING ABOUT. The old
   values were tuned per background — 0.06 for the blue gradient, 0.10 for the
   flat fills. A single alpha cannot be optimal on both; 0.09 reads on the flat
   reds and magentas without shouting on the gradient. Consistency was the
   explicit ask, so it wins over the last 1% of tuning on one of the two.

   ⚠️ THIS PUTS THEM BACK UNDER THE CHEVRON, WHICH IS THE PROBLEM THE 2026-08-23
   NOTE ABOVE SOLVED BY MOVING THEM LEFT. That is not an oversight and it is why
   the client asked for the dropdown in the same sentence: Global Content →
   Buttons and headers → "Decoration on colored page headers" picks which of
   the two shapes the band wears. Ship state is "both", which is what the site
   renders today. */
.page-header::before,
.page-header--banner::before {
  background:
    linear-gradient(115deg, transparent 58%, rgba(255,255,255,0.09) 58% 63%, transparent 63%),
    linear-gradient(115deg, transparent 67%, rgba(255,255,255,0.09) 67% 72%, transparent 72%);
}

/* The dropdown. A class on <body> from wcy_appearance_body_class(); absent —
   and so is every rule below — on a site that has never opened the setting. */
body.wcy-hdr-chevron .page-header::before,
body.wcy-hdr-chevron .page-header--banner::before,
body.wcy-hdr-none .page-header::before,
body.wcy-hdr-none .page-header--banner::before { background: none; }
body.wcy-hdr-slashes .page-header--banner::after,
body.wcy-hdr-none .page-header--banner::after { display: none; }
.page-header--banner.page-header--camp { background: var(--y-magenta); }
.page-header__banner {
  display: flex; align-items: center; gap: var(--space-5); min-height: 128px;
}
.page-header__thumb { flex: none; width: 128px; align-self: stretch; display: block; }
.page-header__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-header--banner h1 {
  margin: 0; color: #fff; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.05;
}
.page-header__parent { margin: 0; font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: var(--fw-bold); }
.page-header__parent a { color: #fff; text-decoration: none; }
.page-header__parent a:hover { text-decoration: underline; }
@media (max-width: 40rem) {
  .page-header__banner { gap: var(--space-3); min-height: 92px; }
  .page-header__thumb { width: 84px; }
}

/* Narrower measure for text-led interior pages. */
.container--narrow { max-width: 54rem; }

/* Centered page title, echoing the old site's underlined gray headings. */
.page-title {
  text-align: center; color: var(--color-text-muted);
  font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 var(--space-6);
  text-decoration: underline; text-underline-offset: 0.12em;
  text-decoration-thickness: 2px;
}
.section-heading { text-align: center; color: var(--y-blue); margin-top: var(--space-7); }
/* Deep red (#a92b31, the palette's "Deep red") — Summer 2026 on Summer Day
   Camps, CLIENT 2026-10-06. The heading's Color control still wins: it is an
   inline style. */
.section-heading--red { color: var(--y-red-deep); }

/* Photo with the "Annual Member Benefit!" flag overlapping its lower-left. */
.page-figure { position: relative; margin: 0 0 var(--space-6); }
.page-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius-md); }
.member-benefit {
  position: absolute; left: var(--space-3); bottom: var(--space-4); max-width: 17rem;
  background: #fff; border: 3px solid var(--y-orange); border-radius: var(--radius-md);
  padding: var(--space-3); box-shadow: var(--shadow-md);
}
.member-benefit p { margin: 0; font-size: var(--fs-100); font-weight: var(--fw-bold);
  color: var(--y-blue); line-height: 1.3; max-width: none; }
.member-benefit--purple { border-color: var(--y-purple); }
.member-benefit--purple p { color: var(--y-magenta); }
@media (max-width: 40rem) {
  .member-benefit { position: static; max-width: none; margin-top: var(--space-3); }
}

/* Red "Click here to print…" links, matching the old site. */
.print-link { text-align: center; margin: var(--space-5) 0; }
.print-link a {
  color: var(--y-red); font-weight: var(--fw-bold); font-size: var(--fs-300);
  text-decoration: underline; text-underline-offset: 0.15em;
}
.print-link a:hover { color: var(--y-red-deep); }

/* Centered HOURS block. */
.hours-block { text-align: center; margin: var(--space-5) 0; }
.hours-block p { max-width: none; margin: 0; }

.btn-row--stacked { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
/* Deprecated — see the alias note in the BUTTONS section. */
.btn--purple { background: var(--y-purple); color: #fff; }
.btn--purple:hover { background: var(--y-purple-deep); color: #fff; }

/* Dotted divider between the camp guide and the weekly themes.
   --dot-c is the client's color, set inline by wcy_dot_rule(); purple is what
   an <hr class="dot-rule"> with no color says, as it always did. */
.dot-rule {
  border: 0; margin: var(--space-7) auto; width: 14rem; height: 6px;
  background-image: radial-gradient(circle, var(--dot-c, var(--y-purple)) 2.5px, transparent 2.6px);
  background-size: 16px 6px; background-repeat: repeat-x;
}

/* Camp guide: colored headings, one per camp. */
.camp-list h3, .theme-list h3 { font-size: var(--fs-300); margin: var(--space-5) 0 var(--space-1); }
.camp__name--curiosity { color: #29b6f0; }
.camp__name--discovery { color: var(--y-orange); }
.camp__name--explorer  { color: var(--y-teal); }
.camp__name--adventure { color: var(--y-magenta); }

/* Weekly themes: date line above a colored theme title. */
.theme__title { display: block; font-weight: var(--fw-bold); }
.theme__week { font-size: var(--fs-200); }
.theme__week--1 { color: var(--y-red); }
.theme__week--2 { color: var(--y-orange); }
.theme__week--3 { color: #e0a800; }
.theme__week--4 { color: var(--y-teal); }
.theme__week--5 { color: var(--y-blue); }
.theme__week--6 { color: #29b6f0; }
.theme__week--7 { color: var(--y-purple); }
.theme__week--8 { color: var(--y-magenta); }

/* ---------------------------------------------------------------------------
   Health & Fitness section (audited 2026-07-28)
   --------------------------------------------------------------------------- */

/* The old site's H&F banner is teal, not the childcare red. */
.page-header--fitness { background: var(--y-teal-deep); }

/* Standalone member-benefit note: same styling, but centered in the flow rather
   than pinned over a photo (these pages have no hero image). */
/* Bottom margin is NOT optional: `.member-benefit` carries `box-shadow:
   var(--shadow-md)`, which paints outside the border box. With `… auto 0` the
   shadow fell across the first line of the text below it — reported by the
   client on both Swim Lessons and Health Enhancement Options (7/30). */
.member-benefit--standalone {
  position: static; max-width: 46rem; margin: var(--space-5) auto var(--space-5);
  font-size: var(--fs-100); font-weight: var(--fw-bold);
  color: var(--y-blue); line-height: 1.35; text-align: center;
}

/* Small centered note under a page title (sub-heading, fee caveat, "click the
   photos to learn more"). */
.page-note {
  text-align: center; color: var(--color-text-muted);
  font-size: var(--fs-100); margin: calc(var(--space-2) * -1) auto var(--space-5);
  max-width: 46rem;
}
.page-title--caps { letter-spacing: 0.02em; }
/* CLIENT 2026-11-03: the Healthy Kids Day gallery heading — "remove underline
   on gallery title, make text blue". Y Blue on white is 6.4:1. */
.page-title--blue { color: var(--y-blue); text-decoration: none; }
.lead--emphasis { font-weight: var(--fw-bold); font-style: italic; text-align: center; }
.h-inline { text-align: center; margin-top: var(--space-6); }

.btn-row--center { justify-content: center; }

/* Emphasis carried over from the old pages. */
.label-inline { color: var(--y-teal-deep); letter-spacing: 0.03em; }
.text-alert { color: var(--y-red-deep, #c1272d); }

/* The old Personal Training page uses middle dots, not bullets. */
.list-middot { list-style: none; padding-left: var(--space-4); }
.list-middot li { position: relative; }
.list-middot li::before {
  content: "\00b7"; position: absolute; left: -0.9em;
  font-weight: var(--fw-bold); font-size: 1.4em; line-height: 1;
}

/* Training package box. */
.packages-note {
  max-width: 46rem; margin: var(--space-5) auto 0; padding: var(--space-4);
  background: var(--color-surface-alt, #f4f6f8); border-radius: var(--radius-md);
  text-align: center;
}
.packages-note p { margin: 0; font-weight: var(--fw-bold); line-height: 1.6; }

/* Class flyers: poster images shown whole, never cropped. */
.flyer-grid {
  display: grid; gap: var(--space-4); margin-top: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.flyer-grid .flyer { max-width: none; margin: 0; }

/* Trainer photos, each linking to a bio PDF. */
.trainer-grid {
  list-style: none; padding: 0; margin: var(--space-5) 0 0;
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.trainer { margin: 0; text-align: center; }
.trainer__name { font-size: var(--fs-200); margin: 0 0 var(--space-2); }
.trainer__photo { display: block; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease; }
.trainer__photo:hover, .trainer__photo:focus-visible {
  box-shadow: var(--shadow-md); transform: translateY(-2px); }
.trainer__photo img { width: 100%; height: auto; display: block; }

/* Blue band of "Click here…" links above the footer. */
.page-links-band { background: var(--y-blue); color: #fff; padding-block: var(--space-5); }
.page-links-band ul { list-style: none; padding: 0; margin: 0; display: grid;
  gap: var(--space-3); justify-items: center; text-align: center; }
.page-links-band a { color: #fff; font-weight: var(--fw-bold); font-size: var(--fs-100); }
.page-links-band a:hover { color: #fff; text-decoration-thickness: 2px; }

/* Responsive embeds. Written for the Google Calendar iframe that used to sit on
   Group Exercise; that came out on 2026-08-23 when the Y moved to an events
   plugin. The wrapper stays because it is brand-neutral and an embed dropped
   into a block area still needs a frame — the two calendar-height rules that
   went with it did not, and are gone. */
.embed-responsive { position: relative; margin-top: var(--space-5);
  border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.embed-responsive iframe { width: 100%; display: block; border: 0; }

/* ---------------------------------------------------------------------------
   Aquatics section (audited 2026-07-28)
   --------------------------------------------------------------------------- */

.page-header--aquatics { background: var(--y-blue); }

/* Non-clickable group label on the Aquatics hub ("Youth Aquatics"). */
.hub-group__title { margin-top: var(--space-6); margin-bottom: var(--space-3);
  font-size: var(--fs-300, 1.25rem); }

/* A single poster centered in the column (pool rules, meet poster, flyers). */
.flyer--centered { margin-left: auto; margin-right: auto; }
.flyer--centered a { display: block; }
.flyer-grid--pair { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

/* "Have questions? Email the Aquatics Director here." */
.director-link { text-align: center; margin: var(--space-5) 0; }
.director-link a { font-weight: var(--fw-bold); font-size: var(--fs-200); }

/* Kicker sitting above a page title ("TRAINED TO SAVE"). */
.page-title__eyebrow { display: block; font-size: var(--fs-100);
  letter-spacing: 0.12em; color: var(--y-blue); margin-bottom: var(--space-2); }

.page-note--shout { font-weight: var(--fw-bold); color: var(--y-magenta);
  letter-spacing: 0.04em; }

.prose--centered { text-align: center; }
.prose--centered p { margin-left: auto; margin-right: auto; }

/* The old Swim Lessons page uses a row of asterisks as a divider. */
.rule-asterisks { text-align: center; letter-spacing: 0.25em;
  color: var(--color-text-muted); margin: var(--space-6) 0 var(--space-5); }

/* Masters Swim meet-results years. */
.year-list { list-style: none; padding: 0; margin: var(--space-4) 0 0;
  display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.year-list li { margin: 0; }
.year-list a { display: inline-block; padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  font-weight: var(--fw-bold); text-decoration: none; }
.year-list a:hover { border-color: var(--y-blue); background: var(--y-blue); color: #fff; }

/* --- Aquatics: additions after the 7/28 asset drop --------------------------- */

/* The "Have questions? Email the Aquatics Director here." link is a full-width
   blue button on the old site, not a plain text link. */
.director-link a {
  display: block; max-width: 34rem; margin-inline: auto;
  background: var(--y-blue); color: #fff; text-align: center;
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-md);
  text-decoration: underline; text-underline-offset: 3px;
}
.director-link a:hover, .director-link a:focus-visible {
  background: var(--y-blue-dark, #004a87); color: #fff;
}

/* Hub with a signup column alongside it (Aquatics). */
.hub-with-aside { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 60rem) {
  .hub-with-aside { grid-template-columns: minmax(0, 1fr) 20rem; }
}
.signup-box {
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-5); background: #fff;
}
.signup-box__title { font-size: var(--fs-300); margin: 0 0 var(--space-2); }
.signup-box__required { font-size: var(--fs-100); color: var(--color-text-muted); margin: 0 0 var(--space-3); }
.signup-box__star { color: var(--y-red-deep); }
.signup-box__form p { margin: 0 0 var(--space-3); }
.signup-box__form label { display: block; font-size: var(--fs-100); font-weight: var(--fw-bold); margin-bottom: 0.25rem; }
.signup-box__form input[type="email"], .signup-box__form input[type="text"] {
  width: 100%; padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm, 4px);
  font: inherit;
}

/* Embedded plugin form (Gravity Forms on the DPP page). */
.form-block { margin-top: var(--space-6); padding: var(--space-5);
  background: var(--color-surface-alt, #f4f6f8); border-radius: var(--radius-md); }
.form-block__title { margin-top: 0; font-size: var(--fs-300); text-align: center; }
.form-block__note { text-align: center; margin-top: 0; }
.form-block__fallback { text-align: center; }
.hub-with-aside__main { min-width: 0; }
.hub-with-aside__side { min-width: 0; }

/* Data tables (Membership rate tables). Spotted unstyled during the Aquatics
   audit — the class was used in page-membership.php but never defined. */
.data-table { width: 100%; border-collapse: collapse; margin: var(--space-5) 0; }
.data-table th, .data-table td {
  padding: var(--space-3); text-align: left; border-bottom: 1px solid var(--color-border); }
.data-table thead th { background: var(--y-blue); color: #fff; }
.data-table tbody tr:nth-child(even) { background: var(--color-surface-alt, #f4f6f8); }
.data-table caption { text-align: left; font-weight: var(--fw-bold); margin-bottom: var(--space-2); }

/* ---------------------------------------------------------------------------
   AOA — Active Older Adults (audited 2026-07-28)
   --------------------------------------------------------------------------- */

.page-header--aoa { background: var(--y-purple); }

/* The AOA banner heading is two lines: "AOA" over "(Active Older Adults)". */
.page-header__sub { display: block; font-size: 0.6em; font-weight: var(--fw-regular); }

/* Sub-line under a page title ("Social Activities" on Weekly Activities). */
.page-title__sub { display: block; font-size: 0.65em; font-weight: var(--fw-regular);
  color: var(--color-text-muted); margin-top: var(--space-2); }

/* Wide banner image (the Adult Sports strip). */
.flyer--wide { max-width: 44rem; }

/* ---------------------------------------------------------------------------
   Fixes 2026-07-28 (client review)
   --------------------------------------------------------------------------- */

/* Utility paragraphs must not inherit the global `p { max-width: 68ch }`.
   THIS was why "centered" buttons still looked left-of-center: `.btn-row` is a
   <p>, so its flex box was capped at 68ch and left-aligned inside the column —
   the button was centered perfectly, just inside a box narrower than the page.
   `.prose p` already opts out; these classes sit outside `.prose` and need the
   same escape. Applies to every centered utility paragraph, not just buttons. */
.btn-row,
.print-link,
.director-link,
.sched-top,
.sched-note__label,
.sched-note__body,
.rule-asterisks,
.form-block__note,
.signup-box__required { max-width: none; }

.btn-row--center { justify-content: center; }

/* ---------------------------------------------------------------------------
   Schedules page (audited 2026-07-28)
   --------------------------------------------------------------------------- */

.sched-nav { background: var(--color-surface-alt, #f4f6f8); padding-block: var(--space-4);
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--color-border); }
.sched-nav ul { list-style: none; margin: 0; padding: 0; display: flex;
  flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.sched-nav li { margin: 0; }
.sched-nav__link { display: inline-block; padding: var(--space-2) var(--space-5);
  border-radius: 999px; font-weight: var(--fw-bold); text-decoration: none; color: #fff; }
.sched-nav__link:hover, .sched-nav__link:focus-visible { color: #fff; filter: brightness(0.9); }

/* Section color coding, mirroring the old site's blue / yellow / cyan swoops. */
.sched--pool    { background: var(--y-blue); }
.sched--gym     { background: var(--y-orange, #f47920); color: #1b1b1b; }
.sched--groupex { background: var(--y-teal-deep); }
.sched-nav__link.sched--gym { color: #1b1b1b; }

.sched-section { scroll-margin-top: 5rem; }
.sched-title { color: #fff; padding: var(--space-3) var(--space-5); border-radius: var(--radius-md);
  text-align: center; margin-bottom: var(--space-4); }
.sched-title.sched--gym { color: #1b1b1b; }

.sched-note { text-align: center; margin-bottom: var(--space-5); }
.sched-note__label { font-weight: var(--fw-bold); margin: 0; }
.sched-note__body { margin: 0; color: var(--color-text-muted); }

.sched-grid { display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.sched-card { margin: 0; }
.sched-card a { display: block; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); overflow: hidden; background: #fff;
  transition: box-shadow .15s ease, transform .15s ease; }
.sched-card a:hover, .sched-card a:focus-visible {
  box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sched-card img { width: 100%; height: auto; display: block; }
.sched-card__caption { margin-top: var(--space-2); text-align: center;
  font-size: var(--fs-100); font-weight: var(--fw-bold); }

.sched-top { text-align: center; margin-top: var(--space-5); }

/* ---------------------------------------------------------------------------
   Search results (search.php, added 2026-07-28)
   --------------------------------------------------------------------------- */

.page-header--search .search-query { font-style: italic; }
.search-count { margin: var(--space-2) 0 0; opacity: 0.9; }

.search-refine { margin-bottom: var(--space-6); }
.search-form { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.search-form__input {
  flex: 1 1 16rem; min-width: 0; font: inherit;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
}
.search-form__input:focus-visible { outline: 2px solid var(--y-blue); outline-offset: 1px; }
.search-form__submit { flex: 0 0 auto; }

.search-results { list-style: none; margin: 0; padding: 0; }
.search-result { margin: 0 0 var(--space-6); padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border); }
.search-result:last-child { border-bottom: 0; }
.search-result__parent { margin: 0 0 0.15em; font-size: var(--fs-100);
  font-weight: var(--fw-bold); color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; max-width: none; }
.search-result__title { margin: 0 0 var(--space-2); font-size: var(--fs-400, 1.35rem); }
.search-result__snippet { margin: 0 0 var(--space-2); max-width: none; }
.search-result__snippet mark { background: #fff2a8; color: inherit; padding: 0 0.15em; }
.search-result__url { margin: 0; font-size: var(--fs-100);
  color: var(--color-text-muted); word-break: break-word; max-width: none; }

.search-empty { margin-top: var(--space-4); }
.search-empty__title { margin-top: 0; }
.search-empty__subtitle { margin-top: var(--space-7, 2.5rem); }

/* ---------------------------------------------------------------------------
   Youth Sports section (audited 2026-07-28)
   --------------------------------------------------------------------------- */

/* The old site's Youth Sports banner is the bright process cyan, not the deep
   primary blue used by Aquatics. Heading text is white with the same soft drop
   shadow the Wix banner carries, so it stays legible over the light fill. */
.page-header--youth { background: var(--y-blue-bright); }
.page-header--youth h1,
.page-header--youth .page-header__parent a {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* "ANNUAL MEMBER BENEFIT!" flag: an outlined box with a decorative asterisk
   hanging off its top-left corner. Present on Soccer, Field Hockey, Basketball
   and the hub — but NOT on T-Ball or Lion's Den, so it is opt-in per template.

   Colors: the shout line is brand blue and the benefit line is the deep red
   (6.8:1 on white). The bright #f47920 the old site uses for this text is only
   2.9:1 and would fail AA at this size. */
.benefit-flag {
  position: relative; max-width: 46rem; margin: var(--space-5) auto var(--space-6);
  padding-left: var(--space-4);
}
.benefit-flag__star {
  position: absolute; left: 0; top: -0.35em;
  font-size: var(--fs-500, 2rem); line-height: 1; color: var(--y-orange);
}
.benefit-flag__box {
  border: 3px solid var(--y-teal); border-radius: 999px;
  padding: var(--space-3) var(--space-5); text-align: center;
  background: var(--color-surface);
}
.benefit-flag p { margin: 0; max-width: none; line-height: 1.35; }
.benefit-flag__shout {
  font-weight: var(--fw-bold); font-size: var(--fs-100);
  color: var(--y-blue); letter-spacing: 0.04em;
}
.benefit-flag__text { font-weight: var(--fw-bold); font-size: var(--fs-100); color: var(--y-red-deep); }
@media (max-width: 40rem) {
  .benefit-flag__box { border-radius: var(--radius-md); }
}

/* Red registration button. Uses the deep brand red rather than #ed1c24: white
   on #ed1c24 is 4.38:1 and misses AA for normal-size text. */
/* Deprecated — see the alias note in the BUTTONS section. */
.btn--red { background: var(--y-red-deep); color: #fff; }
.btn--red:hover { background: #8e2229; color: #fff; }

/* Links band, Youth Sports variant: an intro line and the TeamReach app icon
   sit above the "Click here…" links. */
.page-links-band__head {
  display: flex; align-items: center; justify-content: center; gap: var(--space-4);
  flex-wrap: wrap; margin-bottom: var(--space-4);
}
.page-links-band__intro { margin: 0; max-width: 34rem; font-size: var(--fs-100); }
.page-links-band__icon { flex: none; display: block; width: 5rem; }
.page-links-band__icon img { width: 100%; height: auto; display: block; border-radius: var(--radius-md); }

/* Program lists (Soccer, Basketball): each program is an underlined name over
   a paragraph, matching the old pages. Not headings on the old site, but they
   act as ones, so they are marked up as h3 and styled back down. */
.program-list h3 {
  font-size: var(--fs-200, 1rem); font-weight: var(--fw-regular);
  text-decoration: underline; text-underline-offset: 0.2em;
  margin: var(--space-6) 0 var(--space-2);
}
.program-list h3:first-child { margin-top: 0; }

/* Dotted rule between the photo and the program list on Youth Soccer. */
.dot-rule--ink {
  background-image: radial-gradient(circle, var(--color-ink) 2.5px, transparent 2.6px);
  width: 22rem;
}

/* Single centered statement pages (T-Ball, Lion's Den): the whole page is one
   large heading. */
.statement {
  text-align: center; max-width: 42rem; margin: var(--space-8, 4rem) auto;
  font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.25;
}

/* Nested hub link (Lion's Den under Youth Basketball), matching the old hub's
   indented second-level bullet. */
.link-hub--nested { margin-top: var(--space-3); padding-left: var(--space-5); grid-template-columns: 1fr; }
.link-hub--nested a { border-left-color: var(--y-red-deep); }

/* "Youth Basketball" sits above the program list at body size on the old
   page, not as a display heading. Correct semantics, matching visual weight. */
.page-title--plain {
  font-size: var(--fs-200, 1rem); font-weight: var(--fw-regular);
  text-align: center; margin: var(--space-7, 3rem) 0 var(--space-4);
}

/* The RESULTS Basketball line: prominent, but a sentence rather than a heading. */
.statement--sub { font-weight: var(--fw-bold); margin-top: var(--space-5); }

/* ---------------------------------------------------------------------------
   Adult Sports section (audited 2026-07-28)
   --------------------------------------------------------------------------- */

/* The old site's Adult Sports banner is brand magenta. Same soft drop shadow the
   Wix banner heading carries. Unlike Youth Sports, the parent name on the child
   pages is plain text, not a link back to the hub — matched below. */
.page-header--adult { background: var(--y-magenta); }
.page-header--adult h1,
.page-header--adult .page-header__parent { text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.page-header--adult .page-header__parent { color: #fff; }

/* Poster walls on the old Adult Sports pages are laid out two across with the
   third centered beneath, not three in a row. */
.flyer-grid--2up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flyer-grid--2up > :last-child:nth-child(odd) {
  grid-column: 1 / -1; justify-self: center; max-width: calc(50% - var(--space-4));
}
@media (max-width: 44rem) {
  .flyer-grid--2up { grid-template-columns: 1fr; }
  .flyer-grid--2up > :last-child:nth-child(odd) { max-width: none; }
}

/* Centered seasonal note under the "Summertime Adjustments:" heading on Open Gym.
   The old page sets it as three separate short lines, not a paragraph. */
.center-note { text-align: center; margin: var(--space-5) auto var(--space-6); max-width: 40rem; }
.center-note p { max-width: none; margin: 0 0 var(--space-4); }
.center-note p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   Events + Y News (audited 2026-07-28)
   --------------------------------------------------------------------------- */

/* Colored full-width title bars the old event pages use in place of a banner
   photo. Healthy Kids Day is mid-blue, Mitch Philbrook deep purple — both AA
   for white text at this size. */
.event-title-bar { padding-block: var(--space-6); text-align: center; }
.event-title-bar h1 { margin: 0; color: #fff; font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-transform: uppercase; letter-spacing: 0.01em; }
.event-title-bar--kids { background: var(--y-blue-mid); }
.event-title-bar--mitch { background: var(--y-purple-deep); }
.event-title-bar--news { background: var(--y-gold); }
.event-title-bar--news h1 { color: var(--color-ink); text-transform: none; }

/* Horizontal photo strip ("Some photos from last year:"). Scrolls on narrow
   screens the way the old slideshow does, but is a plain scroller — no JS, and
   keyboard/screen-reader accessible. */
.photo-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 1fr);
  gap: var(--space-3); overflow-x: auto; padding-bottom: var(--space-3);
  scroll-snap-type: x mandatory; margin-top: var(--space-4);
}
.photo-strip img { width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: var(--radius-md); scroll-snap-align: start; aspect-ratio: 3 / 2; }
/* CLIENT 2026-11-03 (Healthy Kids Day): "Center photo credit text beneath
   gallery and make text gray."

   It was always text-align: center — and sat 81px left of center at 1280 for
   the Y News reason (2026-11-02): it is a <p>, the global `p { max-width:
   68ch }` held its box narrower than the column, and that box sat at the left.
   `max-width: none` centers it under the gallery. Gray is the site's muted
   text, #636466, 5.9:1 on white (AA). */
.photo-credit { text-align: center; font-weight: var(--fw-bold);
  margin-top: var(--space-3); font-size: var(--fs-100);
  max-width: none; color: var(--color-text-muted); }

/* Y News: one block per issue — a dated heading over that issue's page images. */
.issue { margin-top: var(--space-8, 4rem); }
.issue__label { text-align: center; font-weight: var(--fw-bold);
  font-size: var(--fs-300); letter-spacing: 0.04em; margin: 0; }
.issue__sub { text-align: center; font-style: italic; margin: var(--space-1) 0 0;
  font-size: var(--fs-200); max-width: none; }
/* CLIENT 2026-11-02: "For the Y News page, I'd like the second line for report
   titles centered underneath the first." It was always text-align: center —
   inside a box the global `p { max-width: 68ch }` held to 654px at the left of
   an 816px column, so "2025 Annual Report" was centered 81px left of the date
   line above it. `max-width: none` gives it the date line's width. */
/* CLIENT 2026-10-23: "make the centerfold pages on the newsletters scale to
   fit the height of the other pages in the carousel". Was a grid of equal-WIDTH
   columns, so a two-page spread (one wide picture) came out half as tall as
   the pages beside it. Now every page is one HEIGHT and its width follows from
   its shape (the <img> carries width/height — wcy_news_issue()).

   The height is the one that fits the whole issue across the column — the
   column's width, less the gaps, over the sum of the pages' width-to-height
   ratios, both printed on the strip by wcy_news_issue() — clamped. A
   three-page issue with a centerfold then sits on one line with nothing cut
   off (255px tall in the 816px column at 1280); an eleven-page annual report
   hits the 15.5rem floor and scrolls, as it did. The floor is as low as it
   can go without pushing those three-page issues into a scroll, and keeps an
   annual report's pages close to the size they were. `cqi` is the issue's own width, which is
   why `.issue` is the container. The 4px is rounding: without it a strip that
   fits exactly measured 817px of content in an 816px box, and scrolled by 1px. */
.issue { container-type: inline-size; }
.issue__pages {
  --issue-h: clamp(15.5rem, calc((100cqi - var(--issue-gaps, 2) * var(--space-3) - 4px) / var(--issue-fit, 2.32)), 20rem);
  display: flex; align-items: flex-start;
  gap: var(--space-3); overflow-x: auto; padding-bottom: var(--space-3);
  scroll-snap-type: x mandatory; margin-top: var(--space-4);
}
.issue__pages img { flex: 0 0 auto; height: var(--issue-h); width: auto; max-width: none;
  display: block;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  scroll-snap-align: start; }

/* Staff directory: name over a contact link, matching the old page's plain list. */
.staff-list { list-style: none; padding: 0; margin: var(--space-5) 0 0; }
.staff-list li { margin: 0 0 var(--space-5); }
.staff-list__name { display: block; font-weight: var(--fw-bold); margin-bottom: 0.2em; }

/* Paired decorative icons (Repair Cafe). */
.icon-pair { display: flex; justify-content: center; gap: var(--space-6);
  flex-wrap: wrap; margin: var(--space-5) 0; }
.icon-pair figure { margin: 0; max-width: 12rem; }
.icon-pair img { width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------------------
   Lightbox (added 2026-07-28, for the Y News newsletter galleries)
   --------------------------------------------------------------------------- */

/* Thumbnails that open the viewer. */
.is-zoomable { cursor: zoom-in; }
.is-zoomable:focus-visible { outline: 3px solid var(--y-magenta); outline-offset: 2px; }

/* Lock the page behind the overlay. */
.has-lightbox, .has-lightbox body { overflow: hidden; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(12, 14, 18, 0.94);
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto 1fr;
  align-items: center; gap: var(--space-3); padding: var(--space-3);
}
.lightbox[hidden] { display: none; }

.lightbox__bar {
  grid-column: 1 / -1; grid-row: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); color: #fff;
}
.lightbox__counter { margin: 0; max-width: none; font-weight: var(--fw-bold);
  font-size: var(--fs-100); color: #fff; }
.lightbox__tools { display: flex; gap: var(--space-3); }

.lightbox__btn {
  font: inherit; font-size: var(--fs-100); font-weight: var(--fw-bold);
  color: #fff; background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45); border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4); cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.lightbox__nav {
  grid-row: 2; align-self: center;
  font: inherit; font-size: 2.5rem; line-height: 1; color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 50%;
  width: 3rem; height: 3rem; cursor: pointer; flex: none;
}
.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox__nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lightbox__nav[hidden] { visibility: hidden; display: block; }

.lightbox__figure {
  grid-column: 2; grid-row: 2; margin: 0;
  width: 100%; height: 100%; min-height: 0;
  display: grid; place-items: center; overflow: auto;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.lightbox__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; display: block; cursor: zoom-in;
  background: #fff; border-radius: var(--radius-sm);
}

/* Zoomed: render at natural size and let the figure scroll in both axes. */
.lightbox__figure.is-zoomed { place-items: start center; cursor: grab; }
.lightbox__figure.is-zoomed .lightbox__img {
  max-width: none; max-height: none; width: auto; cursor: grab;
}
.lightbox__figure.is-dragging,
.lightbox__figure.is-dragging .lightbox__img { cursor: grabbing; }

.lightbox__caption {
  grid-column: 1 / -1; color: #fff; opacity: 0.85;
  font-size: var(--fs-100); text-align: center; margin-top: var(--space-2);
}
.lightbox__figure.is-zoomed .lightbox__caption { display: none; }

@media (max-width: 40rem) {
  .lightbox { gap: var(--space-2); padding: var(--space-2); }
  .lightbox__nav { width: 2.5rem; height: 2.5rem; font-size: 1.75rem; }
  .lightbox__btn { padding: var(--space-2) var(--space-3); }
}

/* "Supported by" partner badge — smaller than a flyer, centered, no frame. */
.sponsor-badge { margin: var(--space-5) auto; max-width: 20rem; }
.sponsor-badge img { width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------------------
   SUSTAINING SPONSOR LOGO WALL  (CLIENT 2026-08-19)

   Replaces the flat flyer image. The one hard problem here is that supplied
   logos never share a shape: Viking is 2499x1566, First National is 729x264,
   Maine State is a 900x900 square. Sizing them by width makes the square logos
   enormous and the wide ones tiny; sizing by height does the reverse.

   So each cell is a fixed-height box and the logo is contained inside it. That
   makes every logo occupy the same optical area regardless of proportion, which
   is the convention on sponsor walls precisely because it treats sponsors of
   the same tier equally. Do not swap this for a width-based rule.

   White background, always: these are third-party marks with transparent
   backgrounds, several of them dark. On a tinted section a dark logo would
   disappear, and we may not recolor someone else's trademark.
   --------------------------------------------------------------------------- */
.sponsor-wall { margin: var(--space-5) 0 var(--space-7); }

.sponsor-wall__tier {
  margin: var(--space-6) 0 var(--space-3);
  text-align: center;
  font-size: var(--fs-200);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.sponsor-wall__tier:first-child { margin-top: 0; }

.sponsor-wall__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  justify-items: stretch;
}

.sponsor-wall__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7.5rem;
  padding: var(--space-4);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.sponsor-wall__item img {
  max-width: 100%;
  max-height: 5.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* The lead tier gets one wide cell and a taller logo, so the top sponsor reads
   as the top sponsor without needing a label to say so. */
.sponsor-wall__grid--lead { grid-template-columns: 1fr; }
.sponsor-wall__grid--lead .sponsor-wall__item { min-height: 11rem; }
.sponsor-wall__grid--lead .sponsor-wall__item img { max-height: 8.5rem; }

/* A linked logo is a link, so it needs a focus ring and a hover state; an
   unlinked one must not pretend to be interactive. */
.sponsor-wall__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform var(--transition);
}
.sponsor-wall__link:hover,
.sponsor-wall__link:focus-visible { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
  .sponsor-wall__link { transition: none; }
  .sponsor-wall__link:hover,
  .sponsor-wall__link:focus-visible { transform: none; }
}

/* ---------------------------------------------------------------------------
   YMCA360 live schedule (2026-07-29)
   The y360 plugin ships its own stylesheets (y360-public.css and, with the
   "New" style option, y360-public-new.css). Everything below is either the
   theme's own chrome around the embed, or a scoped escape from global rules
   that would otherwise distort the plugin's markup. Do not restyle the
   plugin's internals here — a plugin update would silently undo it.
   --------------------------------------------------------------------------- */

.sched--live { background: var(--y-purple); }

.sched-live__embed { margin-bottom: var(--space-5); }

/* Global resets the plugin must escape.
   1. `p { max-width: 68ch }` caps the plugin's rows and legends mid-column —
      the same bug that made the "centered" buttons look off-center in July.
   2. `svg { display: block }` breaks the plugin's inline FontAwesome icons,
      which are laid out as inline glyphs next to their labels.
   3. The theme's heading font/letter-spacing overrides the plugin's own
      type scale, so filter panel headings come out oversized. */
.sched-live__embed p { max-width: none; }
.sched-live__embed svg { display: inline-block; vertical-align: middle; }
.sched-live__embed h1,
.sched-live__embed h2,
.sched-live__embed h3,
.sched-live__embed h4 { font-family: inherit; letter-spacing: normal; text-wrap: initial; }

/* The embed is a filter sidebar (.filter-side) beside a week grid, so it needs
   more room than the 75rem `--container-max` the rest of the site uses.
   The plugin's own CSS handles the small-screen collapse. */
.sched-live .container { max-width: 82rem; }

/* ---------------------------------------------------------------------------
   YMCA360 app guides (2026-07-29) — page-ymca360.php
   --------------------------------------------------------------------------- */

/* Screenshot beside the guides; stacks under 48rem. The phone mockup is a tall
   portrait PNG with a transparent background, so it needs no frame. */
.y360-app { display: grid; gap: var(--space-6); align-items: start;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
@media (max-width: 48rem) { .y360-app { grid-template-columns: 1fr; } }

.y360-app__shot { margin: 0; }
.y360-app__shot img { width: 100%; height: auto; cursor: zoom-in; }
.y360-app__shot figcaption { margin-top: var(--space-2); text-align: center; }

/* Guide cards. A list, because that's what it is — the bullets are removed
   rather than the semantics. */
.doc-grid { list-style: none; margin: var(--space-5) 0 0; padding: 0;
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.doc-grid li { margin: 0; }

.doc-card { border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-4); background: var(--color-surface, #fff); }
.doc-card__link { display: flex; flex-direction: column; gap: var(--space-1);
  text-decoration: none; }
.doc-card__link:hover .doc-card__title,
.doc-card__link:focus-visible .doc-card__title { text-decoration: underline; }
.doc-card__title { font-weight: var(--fw-bold); color: var(--color-link); }
/* Escapes the global `p { max-width: 68ch }`, which would cap the description
   inside an already-narrow card. */
.doc-card__desc { max-width: none; margin: var(--space-2) 0 0;
  font-size: var(--fs-100); color: var(--color-text-muted); }

/* ===========================================================================
   CLIENT EDITS — 2026-08-14 (Lulu Al-Matrouk, "New Website Notes Updated")
   ===========================================================================
   Each block below names the instruction it implements, so the next person can
   trace a rule back to the request rather than guessing at intent. */

/* ---------------------------------------------------------------------------
   "Enlarge Heading text in banners on Program subpages to same size as other
    headings, move Sub-heading to banner."

   The section name (Aquatics, Youth Sports …) is now the display-size line, and
   the page's own name sits beneath it inside the banner instead of repeating as
   a gray underlined title further down. The page name stays the <h1> — the
   visual hierarchy is inverted deliberately, the document outline is not.
   --------------------------------------------------------------------------- */
.page-header__titles { min-width: 0; padding-block: var(--space-4); }

.page-header__parent {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: var(--lh-tight);
}

.page-header__title {
  margin: var(--space-2) 0 0;
  color: #fff;
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.85rem);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  letter-spacing: 0;
  text-wrap: balance;
}

/* The eyebrow and sub-line traveled into the banner with their headings, so
   both need the on-dark treatment. Scoped, so the white-background page titles
   that still use these classes are untouched. */
.page-header__title .page-title__eyebrow {
  color: rgba(255, 255, 255, 0.82);
  font-weight: var(--fw-bold);
  /* Sits between the section name and the page name, so it needs air above it
     as well as below or the three lines read as one run-on block. */
  margin: var(--space-2) 0 var(--space-1);
}
.page-header__title .page-title__sub {
  color: rgba(255, 255, 255, 0.9);
  margin-top: var(--space-1);
}

/* Drop shadows already applied to the banner heading on the two sports sections
   need to carry to the new subheading, or it loses contrast on the light fills. */
.page-header--youth .page-header__title,
.page-header--adult .page-header__title { text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }

@media (max-width: 40rem) {
  .page-header__titles { padding-block: var(--space-3); }
}

/* ---------------------------------------------------------------------------
   "Use new format for Call Out boxes."

   Was: a flat tinted panel with a 5px left rule. Now: a white card lifted off
   the page with a colored header strip, so a call-out reads as a distinct
   object rather than as an indented paragraph. Color still carries the
   variant, but it is no longer the only signal — the strip and the shadow work
   without it.
   --------------------------------------------------------------------------- */
.callout {
  position: relative;
  border: 1px solid var(--color-border);
  border-left: 0;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-6);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.callout::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 8px;
  background: var(--y-blue);
}
.callout--pending { background: var(--color-surface); }
.callout--pending::before { background: var(--y-purple); }
.callout--highlight { background: var(--color-surface); }
.callout--highlight::before { background: var(--y-teal-deep); }

/* Magenta call-out for anything time-sensitive (registration windows, closures). */
.callout--alert::before { background: var(--y-magenta); }
.callout--alert .callout__label { color: var(--y-magenta); }

.callout__label {
  color: var(--y-blue);
  margin-bottom: var(--space-3);
}
.callout--highlight .callout__label { color: var(--y-teal-deep); }

/* A call-out that needs to sit centered in a narrow column. */
.callout--center { text-align: center; }

@media (max-width: 40rem) {
  .callout { padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5); }
}

/* ---------------------------------------------------------------------------
   "Add form icon to buttons linking to forms." / "Use consistent button style
    for links."

   .btn--form is any .btn variant plus a document glyph, drawn with CSS rather
   than an image so it inherits the button's color in every state and costs no
   request. Pair it with the variant that fits the context — the icon marks
   "this opens a form", it is not a color of its own.
   --------------------------------------------------------------------------- */
.btn--form::before {
  content: "";
  flex: none;
  width: 1em;
  height: 1.15em;
  background: currentColor;
  /* Sheet with a folded corner and three rule lines. */
  -webkit-mask-image: var(--icon-form);
          mask-image: var(--icon-form);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}

:root {
  --icon-form: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M12 0H3a3 3 0 0 0-3 3v18a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8l-8-8Zm.5 2.6L17.4 7.5H14a1.5 1.5 0 0 1-1.5-1.5V2.6ZM4.5 11h11v2h-11v-2Zm0 4h11v2h-11v-2Zm0 4h7v2h-7v-2Z'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------------------
   "All posters open to New Tab with full size, printable displays."

   A poster is artwork carrying the details, so it has to be readable at full
   size. The image becomes a link to the full-size file; the affordance is a
   corner badge that appears on hover/focus rather than a caption that pushes
   the layout around. The badge is decorative — the link's own accessible name
   says where it goes.
   --------------------------------------------------------------------------- */
.poster-link {
  position: relative;
  display: block;
  text-decoration: none;
  cursor: zoom-in;
}
.poster-link img { transition: transform var(--transition); }
.poster-link:hover img,
.poster-link:focus-visible img { transform: scale(1.015); }

.poster-link__badge {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: rgba(35, 31, 32, 0.85);
  color: #fff;
  font-size: var(--fs-100);
  font-weight: var(--fw-bold);
  line-height: 1.4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.poster-link:hover .poster-link__badge,
.poster-link:focus-visible .poster-link__badge { opacity: 1; transform: translateY(0); }

/* Touch devices get no hover, so the badge is always visible there. */
@media (hover: none) {
  .poster-link__badge { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------------
   "Additionally, we'd like these elements to display a program description when
    hovered over."

   The description lives in the markup at all times — hidden visually on
   pointer devices and revealed on hover/focus, shown outright everywhere else.
   Screen readers always reach it, and a keyboard user gets it on focus, because
   the reveal is driven by :focus-within on the tile itself.
   --------------------------------------------------------------------------- */
.tile__text { order: 2; margin-right: auto; min-width: 0; }
.tile--img-right .tile__text { order: 1; margin-right: 0; margin-left: auto; }
.tile__text .tile__label { display: block; margin: 0; }

.tile__desc {
  display: block;
  max-width: 46ch;
  margin: var(--space-2) 0 0;
  font-size: var(--fs-200);
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
  color: rgba(255, 255, 255, 0.95);
}

@media (hover: hover) and (min-width: 40rem) {
  /* Reserve the room the description will need, so revealing it does not shove
     the tiles below it down the page. Sized for the two- or three-line
     description these tiles are meant to carry — keep the copy to a sentence or
     two and the layout never moves. */
  .tile { min-height: 210px; }

  .tile__desc {
    /* Collapsed by default; grid-template-rows animates to auto content height
       without hardcoding a max-height that would clip longer descriptions. */
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    transition: grid-template-rows var(--transition), opacity var(--transition),
                margin-top var(--transition);
  }
  .tile__desc > span { overflow: hidden; }

  .tile:hover .tile__desc,
  .tile:focus-visible .tile__desc,
  .tile:focus-within .tile__desc {
    grid-template-rows: 1fr;
    margin-top: var(--space-2);
    opacity: 1;
  }
}

/* No description supplied yet — the wrapper collapses instead of leaving a gap. */
.tile__desc:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  .tile__desc { transition: none; }
  .poster-link img { transition: none; }
}

/* ---------------------------------------------------------------------------
   "Move Private Lessons poster next to Group Swim Lessons (3 across)." /
   "Enlarge 'What age group does the student fall into?' graphic."
   --------------------------------------------------------------------------- */
.flyer-grid--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 52rem) { .flyer-grid--trio { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .flyer-grid--trio { grid-template-columns: 1fr; } }

/* Drops the 32rem cap .flyer carries, for charts meant to be read in place. */
.flyer--full { max-width: none; }

/* Form icon on a plain text link (the blue page-links band), as distinct from
   .btn--form on a button. Same glyph, sized to the surrounding text. */
.has-form-icon::before {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 1em;
  margin-right: 0.45em;
  vertical-align: -0.12em;
  background: currentColor;
  -webkit-mask-image: var(--icon-form);
          mask-image: var(--icon-form);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}

/* ---------------------------------------------------------------------------
   "Remove footer banner on Program pages and add sidebar." /
   "Include sidebar on most pages."  (CLIENT 2026-08-14)

   .page-layout wraps everything below a page's banner and puts the rail beside
   it. Templates inside are untouched: they still open `.section > .container`
   as before, and the rules below strip that container's own width and padding
   so it fills the content column instead of nesting a second gutter inside one.
   That is what lets one wrapper serve sixty templates.
   --------------------------------------------------------------------------- */
.page-layout {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Inner sections lose their own gutter and cap — the layout owns both now. */
.page-layout__main .container,
.page-layout__main .container--narrow { max-width: none; padding-inline: 0; }

/* Section rhythm inside a column is not page rhythm. The 4rem block padding
   .section carries is sized for full-bleed bands separated by nothing else; in
   a column it reads as a hole between paragraphs. */
.page-layout__main > .section { padding-block: var(--space-6); }
.page-layout__main > .section:first-child { padding-top: var(--space-7); }

/* …and on a page she builds herself, when the first thing under the banner is
   her OWN band (CLIENT 2026-11-02, Fill the WCY Bus: "tighten space between
   the banner and photo").

   page.php's Details band prints nothing until she types into it, so on
   Bumps & Babies and Fill the WCY Bus the first thing in the column is the
   block area after it, which the rule above never named. Fill the WCY Bus's
   photo sat 194px under the banner (the duplicated editor text and its band);
   with that gone it would have sat 24px under it, on her "None" spacing, and
   Bumps & Babies' poster 88px. Both 48px now — a template band's first words'
   distance, measured to the picture's edge: the block area's top padding is
   the distance and its first block does not add its own. Plain block areas
   only — a colored one keeps the padding its fill needs.

   ⚠️ SCOPED TO page.php (`.page-layout--event`, wcy_layout_open()). Written
   for every layout first, it moved 25 of her 67 staging pages — every page
   whose column she starts with her own content — none of which she asked
   about. */
.page-layout--event > .page-layout__main > .block-section:first-child:not(.section--tint):not(.section--filled):not([style*="--sec-bg"]) {
  padding-top: var(--space-7);
}
.page-layout--event > .page-layout__main > .block-section:first-child:not(.section--tint):not(.section--filled):not([style*="--sec-bg"]) > .container > .block:first-child,
.page-layout--event > .page-layout__main > .block-section:first-child:not(.section--tint):not(.section--filled):not([style*="--sec-bg"]) > .container > .block-row:first-child > .block-col > .block:first-child {
  padding-top: 0;
}

/* A tinted section inside the column becomes a panel rather than a full-bleed
   band. Without this it would sit flush to the text with no breathing room. */
.page-layout__main .section--tint {
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  padding-inline: var(--space-5);
}

@media (min-width: 64rem) {
  .page-layout {
    display: grid;
    align-items: start;
    gap: var(--space-7);
    grid-template-columns: minmax(0, 1fr) 18.5rem;
  }
  .page-rail { position: sticky; top: calc(74px + var(--space-5)); }
}

.page-layout__main { min-width: 0; }

/* Below 64rem the rail drops under the content. It stays useful there — it is
   the only place several of these destinations appear on a program page — so it
   is not hidden, just restyled to sit horizontally where there is room. */
.page-rail { min-width: 0; margin-top: var(--space-6); }
@media (min-width: 64rem) { .page-rail { margin-top: var(--space-8); } }

/* ---------- Sidebar: the link list ---------- */
.rail-nav {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.rail-nav ul { list-style: none; margin: 0; padding: 0; }
.rail-nav li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  transition: background var(--transition);
}
.rail-nav li:first-child { border-top: 0; }
.rail-nav li:hover { background: var(--color-surface-2); }

.rail-nav__icon {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  color: var(--y-blue);
}
.rail-nav__text { min-width: 0; }
.rail-nav__link {
  display: block;
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  text-decoration: none;
  color: var(--color-ink);
}
.rail-nav li:hover .rail-nav__link { color: var(--y-blue); text-decoration: underline; }
.rail-nav__note {
  display: block;
  font-size: var(--fs-100);
  color: var(--color-text-muted);
  line-height: var(--lh-snug);
  margin-top: 0.1rem;
}

/* ---------- Sidebar: the giving block ---------- */
.rail-give {
  margin-top: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--y-magenta);
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* The same angular motif the hero and page headers use, so the block reads as
   part of the system rather than a pasted-in ad. */
.rail-give::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 62%, rgba(255,255,255,0.10) 62% 72%, transparent 72%);
  pointer-events: none;
}
.rail-give > * { position: relative; }
.rail-give__kicker {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-100);
  font-weight: var(--fw-bold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.rail-give__text {
  margin: 0 0 var(--space-4);
  max-width: none;
  font-size: var(--fs-100);
  line-height: var(--lh-snug);
  color: rgba(255, 255, 255, 0.95);
}
.rail-give .btn--primary { background: #fff; color: var(--y-magenta); }
.rail-give .btn--primary:hover { background: var(--color-surface-2); color: var(--y-magenta); }

/* The Aquatics newsletter signup, which the client asked to keep, sits above
   the links when the rail carries it. */
.page-rail .signup-box { margin-bottom: var(--space-5); }

/* Stacked under the content on narrower screens, the rail's three blocks read
   better side by side than as one tall column. */
@media (min-width: 40rem) and (max-width: 63.999rem) {
  .page-rail { display: grid; gap: var(--space-5); grid-template-columns: 1fr 1fr; align-items: start; }
  .page-rail .signup-box { margin-bottom: 0; grid-column: 1 / -1; }
  .rail-give { margin-top: 0; }
}

/* The page-links band inside the content column. Same component, but it is a
   panel now rather than a full-bleed strip — the strip was the "footer banner"
   the client asked to remove from program pages, and the rail has taken over
   the links it was repeating. What is left is page-specific, so it stays. */
.page-links-band--inline {
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-top: var(--space-6);
}
.page-links-band--inline .container { padding-inline: 0; }
.page-links-band--inline ul { text-align: left; }
.page-links-band--inline .page-links-band__head { margin-bottom: var(--space-4); }
/* CLIENT 2026-10-21: with every link switched off the head is the last thing in
   the band (wcy_page_links_band() no longer prints the empty list), so it
   gives up the gap it kept between itself and the links. */
.page-links-band .page-links-band__head:last-child { margin-bottom: 0; }


/* "Is there a way to make the 'Join Now' button more prominent or to call
   attention to it?"  A soft ring that fades outward — it draws the eye without
   moving the button or shifting anything around it. Stops under
   prefers-reduced-motion, where the button simply keeps its larger size. */
.btn--attention { position: relative; }
.btn--attention::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--y-magenta);
  opacity: 0;
  animation: wcy-attention 2.8s ease-out infinite;
  pointer-events: none;
}
@keyframes wcy-attention {
  0%   { opacity: 0.65; transform: scale(1); }
  70%  { opacity: 0;    transform: scale(1.13); }
  100% { opacity: 0;    transform: scale(1.13); }
}
@media (prefers-reduced-motion: reduce) {
  .btn--attention::after { animation: none; opacity: 0.5; transform: none; }
}

/* Photo beside a block of copy — "add photo of Anne left of Health Coach
   section, use rounded corners" (CLIENT 2026-08-14). Stacks under 44rem, where
   a 14rem image column would squeeze the text to nothing. */
.media-split {
  display: grid;
  gap: var(--space-5);
  align-items: start;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  margin-top: var(--space-6);
}
@media (max-width: 44rem) { .media-split { grid-template-columns: 1fr; } }

.media-split__figure { margin: 0; }
.media-split__figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}
.media-split__body > :first-child { margin-top: 0; }

/* "Make box for 'Dan Horton Masters Swim Meet Results from Previous Years' and
   add photo of Dan Horton, use rounded edges." (CLIENT 2026-08-14) */
.results-box {
  display: grid;
  gap: var(--space-5);
  align-items: start;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  margin-top: var(--space-7);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
}
@media (max-width: 44rem) { .results-box { grid-template-columns: 1fr; } }

.results-box__figure { margin: 0; }
.results-box__figure img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }
.results-box__body > h2 { margin-top: 0; font-size: var(--fs-400); }


/* A contact line that is a line, not a button — "Remove button and add line for
   email contact" (CLIENT 2026-08-14, Pool Rules). Distinct from .director-link,
   which is the full-width blue block the client asked to drop here. */
.contact-line { margin-top: var(--space-5); font-weight: var(--fw-bold); }

/* ---------------------------------------------------------------------------
   "Current Offerings" carousel (CLIENT 2026-08-14) — six pages ask for this.

   Native scroll-snap, so it works with no JavaScript. carousel.js adds the
   arrows and sets .has-nav only when the strip actually overflows.
   --------------------------------------------------------------------------- */
.offerings { position: relative; margin: 0 0 var(--space-7); }
.offerings__title { margin: 0 0 var(--space-4); font-size: var(--fs-500); color: var(--y-blue); }

.offerings__viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Room for the focus ring, which would otherwise be clipped by the overflow. */
  padding: 4px;
  margin: -4px;
  scrollbar-width: thin;
}
.offerings__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-5);
}
.offerings__item {
  margin: 0;
  flex: 0 0 auto;
  width: min(20rem, 72vw);
  scroll-snap-align: start;
}
.offerings__item .poster-link {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}
.offerings__item img { width: 100%; height: auto; display: block; }

/* Arrows: created by JS, revealed only when there is something to scroll to. */
.offerings__nav { display: none; }
.offerings.has-nav .offerings__nav {
  display: flex;
  gap: var(--space-2);
  position: absolute;
  top: 0;
  right: 0;
}
.offerings__arrow {
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  font: inherit; font-size: 1.5rem; line-height: 1;
  background: var(--color-surface);
  color: var(--y-blue);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), opacity var(--transition);
}
.offerings__arrow:hover:not(:disabled) { background: var(--y-blue); color: #fff; border-color: var(--y-blue); }
.offerings__arrow:disabled { opacity: 0.35; cursor: default; }

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

/* ---------------------------------------------------------------------------
   Program block — photo beside a description, used down the Adult Aquatics
   hub. Same idea as .media-split but with a heading spanning both columns, so
   a long program name does not squeeze the photo.
   --------------------------------------------------------------------------- */
.program-block {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.program-block:first-of-type { border-top: 0; padding-top: 0; }
.program-block__title { margin: 0 0 var(--space-4); font-size: var(--fs-500); color: var(--y-blue); }

.program-block__media { margin: 0 0 var(--space-4); }
.program-block__media img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-md);
}
.program-block__more { margin: var(--space-4) 0 0; }

@media (min-width: 44rem) {
  .program-block {
    display: grid;
    gap: 0 var(--space-6);
    grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
    grid-template-areas: "title title" "media body";
  }
  .program-block__title { grid-area: title; }
  .program-block__media { grid-area: media; margin-bottom: 0; }
  .program-block__body  { grid-area: body; min-width: 0; }
}

/* A description the Y has not written yet collapses rather than leaving a gap.
   Same rule as .tile__desc:empty — see the note there. */
.prose:empty { display: none; }

/* ---------------------------------------------------------------------------
   Fact tiles — page-swim-safety.php (CLIENT 2026-08-14, "jazzing up content")

   Stat tiles, not a chart: figure, label, then the client's own sentence.

   ONE accent across all three, not three hues. These are three facets of a
   single point about drowning risk, not three categories — coloring them
   differently would assert a distinction the copy does not make. The figure
   stays in ink and the accent lives in the rule above it, so no text is
   carrying meaning by color alone.
   --------------------------------------------------------------------------- */
.fact-tiles {
  list-style: none;
  margin: var(--space-6) 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.fact-tile {
  margin: 0;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--y-red-deep);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.fact-tile__figure {
  margin: 0;
  max-width: none;
  font-size: var(--fs-stat);
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--color-ink);
  /* Proportional figures deliberately: tabular-nums gives every digit a '0'
     width, which reads loose at display size. Reserved for aligned columns. */
  font-variant-numeric: proportional-nums;
}
.fact-tile__label {
  margin: var(--space-2) 0 0;
  max-width: none;
  font-size: var(--fs-200);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--color-ink);
}
.fact-tile__body {
  margin: var(--space-3) 0 0;
  max-width: none;
  font-size: var(--fs-100);
  line-height: var(--lh-snug);
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------------
   Full-length board bios in a pop-up (CLIENT 2026-08-14) — page-board.php

   .member__full is the bio as it sits in the page before bio-dialog.js moves it
   into a <dialog>. It is styled for that inline state on purpose: with no
   JavaScript the bio reads perfectly well under the short one, and that is the
   fallback rather than a hidden block nobody can reach.
   --------------------------------------------------------------------------- */
.member__full { margin-top: var(--space-3); font-size: var(--fs-100); }
.member__full:empty { display: none; }

/* CLIENT 2026-11-03: "full bio pops up when clicking on picture or name
   instead of link below text." The name is the button (bio-dialog.js wraps
   the <strong> in it), the photo opens the same pop-up, and the "Read full
   bio" link that used to sit under the short bio is gone.

   The button is dressed as the name it already was — blue, bold, no box — and
   gets Our Team's cue: an underline on hover and on focus, where a control is
   being asked about, and none at rest (twenty-six underlined names is a page
   of ruled lines). */
.member__name-btn {
  display: inline;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}
.member__name-btn:hover strong,
.member__name-btn:focus-visible strong { text-decoration: underline; text-underline-offset: 2px; }
.member__name-btn:focus-visible { outline: 3px solid var(--y-blue); outline-offset: 2px; border-radius: 2px; }
.member__photo--opens { cursor: pointer; }
.member__photo--opens img { transition: transform var(--transition); }
.member__photo--opens:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .member__photo--opens img { transition: none; }
  .member__photo--opens:hover img { transform: none; }
}

.bio-dialog {
  width: min(38rem, calc(100vw - 2rem));
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}
.bio-dialog::backdrop { background: rgba(35, 31, 32, 0.55); }
.bio-dialog__inner { position: relative; padding: var(--space-6); }
.bio-dialog__title { margin: 0 var(--space-7) var(--space-4) 0; font-size: var(--fs-500); color: var(--y-blue); }
.bio-dialog__body { font-size: var(--fs-200); }
.bio-dialog__body > :last-child { margin-bottom: 0; }

.bio-dialog__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  font: inherit; font-size: 1.6rem; line-height: 1;
  background: var(--color-surface-2);
  color: var(--color-ink);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.bio-dialog__close:hover { background: var(--color-surface-3); }

/* ---------------------------------------------------------------------------
   eNews band under the homepage slider (CLIENT 2026-08-14).

   Sits between the hero and the welcome section, so it uses the brand blue
   rather than a tint — a pale band there reads as a gap between two sections
   rather than as a thing in its own right.
   --------------------------------------------------------------------------- */
.enews-band { background: var(--y-blue); color: #fff; }
.enews-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  padding-block: var(--space-5);
}
.enews-band__text { min-width: 0; }
.enews-band__title { margin: 0; color: #fff; font-size: var(--fs-400); }
/* Reported by the client 2026-08-21: the supporting line wrapped, leaving a
   lone "Y." on a second line.

   The cause was `max-width: 46ch` against a 65-character sentence — the limit
   was set for a shorter line than the one actually shipped. Raised to 68ch so
   the default copy sits on one line at the widths this band is read at.

   `text-wrap: pretty` is the part that matters longer-term. This is an editable
   region: the Y can lengthen the sentence whenever they like, and at some width
   any sentence wraps. `pretty` tells the browser never to leave a single word
   stranded on the last line, so the orphan cannot come back — including on the
   narrow screens where this line always wraps. Browsers without it fall back to
   ordinary wrapping, which is where we were anyway. */
.enews-band__note {
  margin: var(--space-1) 0 0;
  max-width: 68ch;
  font-size: var(--fs-100);
  color: rgba(255, 255, 255, 0.9);
  text-wrap: pretty;
}

.enews-band__form { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.enews-band__form input[type="email"] {
  min-width: min(20rem, 60vw);
  padding: var(--space-3) var(--space-4);
  font: inherit;
  color: var(--color-ink);
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
}
.enews-band__form input[type="email"]::placeholder { color: var(--color-text-muted); }
.enews-band__form input[type="email"]:focus-visible { border-color: var(--y-blue-bright); }

@media (max-width: 44rem) {
  .enews-band__form { width: 100%; }
  .enews-band__form input[type="email"] { flex: 1 1 12rem; min-width: 0; }
}

/* ---------------------------------------------------------------------------
   Impact landing pages (CLIENT 2026-08-14) — Youth Development, Healthy Living,
   Social Responsibility.

   The pillar color is carried by the photo's frame and the program list's
   left rules, not by the body text — a pillar hue as text would fail contrast at
   body size, and the page has to read the same in all three.
   --------------------------------------------------------------------------- */
.impact-hero {
  margin: 0 0 var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border-bottom: 6px solid var(--pillar-youth);
}
.impact-hero img { width: 100%; height: auto; display: block; }
.impact-hero--youth   { border-bottom-color: var(--pillar-youth); }
.impact-hero--healthy { border-bottom-color: var(--pillar-healthy); }
.impact-hero--social  { border-bottom-color: var(--pillar-social); }

.link-hub--youth a   { border-left-color: var(--pillar-youth); }
.link-hub--healthy a { border-left-color: var(--pillar-healthy); }
.link-hub--social a  { border-left-color: var(--pillar-social); }

/* The About page's areas-of-focus headings are links now. Keep them looking
   like headings, not like body links. */
.card__body h3 > a { color: inherit; text-decoration: none; }
.card__body h3 > a:hover { color: var(--y-blue); text-decoration: underline; }

/* ---------------------------------------------------------------------------
   Program cards — the Areas-of-Focus design, applied across the Program Menu
   and the six program hubs (CLIENT 2026-08-14).

   Whole card is the link, so the hit target is the card and not just its title.
   --------------------------------------------------------------------------- */
.pcards {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  margin: var(--space-5) 0 var(--space-6);
}

/* "Cards across" — a client choice, from wcy_pb_scales()['columns'].
   Each fixed count still collapses on small screens: a client picking "Four
   across" is describing a desktop layout, not asking for four 90px cards on a
   phone. min(100%, …) is what keeps the last row from overflowing. */
.pcards--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcards--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcards--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 60rem) {
  .pcards--cols-3, .pcards--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .pcards--cols-2, .pcards--cols-3, .pcards--cols-4 { grid-template-columns: 1fr; }
}

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.pcard:hover, .pcard:focus-visible {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--color-ink);
}

/* CLIENT 2026-08-19: the Y supplied every program photograph cropped square
   ("They're cropped square right now, but I could upload uncropped photos if
   room is needed"). At the old 3 / 2 this crop beheaded the Aquatics lifeguard
   and cut the swimmers in half, so the card follows the crop the client chose
   rather than the other way round. Square also matches the banner thumb, which
   means one upload serves both places. */
.pcard__media { display: block; aspect-ratio: 1 / 1; background: var(--color-surface-3); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* A card with no photo yet keeps the grid even without showing an empty well. */
.pcard__media--empty { display: none; }

.pcard__body { display: block; padding: var(--space-4) var(--space-5) var(--space-5); }
.pcard__title {
  display: block;
  font-size: var(--fs-400);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--y-blue);
}
.pcard:hover .pcard__title { text-decoration: underline; }
.pcard__note { display: block; margin-top: 0.15rem; color: var(--color-text-muted); }

.pcard__desc {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--fs-100);
  line-height: var(--lh-snug);
  color: var(--color-text-muted);
}
.pcard__desc:empty { display: none; }

/* Same reveal rule as the old tiles: hidden until hover on pointer devices,
   always shown on touch and narrow screens where there is no hover. */
@media (hover: hover) and (min-width: 40rem) {
  .pcard__desc {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    transition: grid-template-rows var(--transition), opacity var(--transition),
                margin-top var(--transition);
  }
  .pcard__desc > span { overflow: hidden; }
  .pcard:hover .pcard__desc,
  .pcard:focus-visible .pcard__desc,
  .pcard:focus-within .pcard__desc {
    grid-template-rows: 1fr;
    margin-top: var(--space-3);
    opacity: 1;
  }
}

/* And the list fallback, for hubs with no photographs yet. */
.link-hub__desc {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--fs-100);
  line-height: var(--lh-snug);
  color: var(--color-text-muted);
}
.link-hub__desc:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  .pcard, .pcard__desc { transition: none; }
}

/* ---------------------------------------------------------------------------
   "Enlarge photos used in banners on Programs pages and Department landing
    pages, use swoop to add visual interest.  Add Page intro text to Department
    Landing pages."  (CLIENT 2026-08-14)

   The photo goes from 128px to 200px and gains a curved trailing edge — the
   "swoop". It is a border-radius on the image's own box rather than a clip-path
   or an overlay graphic, so it costs nothing, scales with the banner, and does
   not need an asset that could go stale.
   --------------------------------------------------------------------------- */
.page-header__thumb {
  width: 200px;
  border-end-end-radius: 55% 70%;
  border-start-end-radius: 12% 20%;
  overflow: hidden;
}
@media (max-width: 60rem) { .page-header__thumb { width: 150px; } }
@media (max-width: 40rem) { .page-header__thumb { width: 104px; border-end-end-radius: 45% 60%; } }

/* ---------------------------------------------------------------------------
   THE REAL CHEVRON  (CLIENT 2026-08-19)

   The "swoop" above was an approximation, written before we had the shape. The
   Y has now supplied the chevron itself — "a Y proprietary shape ... so it can
   be made any color" — and their own banner mock-up (New Website Notes, ex. by
   item 45) uses it two ways at once: as the trailing edge of the photograph,
   and as a tonal watermark bleeding off the right of the color band.

   Both are done here, so the border-radius swoop above is overridden rather
   than deleted — if the chevron is ever pulled, removing this block restores
   the previous banner exactly.

   --chev is the depth of the point. The real glyph runs 609 units across for
   1280 of half-height, so depth = 0.238 x band height; the values below are
   that ratio at each breakpoint. Keep them in step if the band height changes.
   --------------------------------------------------------------------------- */
:root { --chev-ratio: 0.238; }

/* Same fillet as the slider's point — see the long note on .hero-slide__media.
   The two are one shape and must not be one sharp and one soft. */
.page-header--banner .page-header__thumb {
  --chev: 48px;
  border-radius: 0;
  clip-path: polygon(
    0 0,
    calc(100% - var(--chev)) 0,
    calc(100% - 0.1170 * var(--chev)) 44.149%,
    calc(100% - 0.1069 * var(--chev)) 44.687%,
    calc(100% - 0.0978 * var(--chev)) 45.240%,
    calc(100% - 0.0896 * var(--chev)) 45.806%,
    calc(100% - 0.0826 * var(--chev)) 46.384%,
    calc(100% - 0.0765 * var(--chev)) 46.971%,
    calc(100% - 0.0716 * var(--chev)) 47.567%,
    calc(100% - 0.0677 * var(--chev)) 48.169%,
    calc(100% - 0.0649 * var(--chev)) 48.777%,
    calc(100% - 0.0633 * var(--chev)) 49.388%,
    calc(100% - 0.0627 * var(--chev)) 50.000%,
    calc(100% - 0.0633 * var(--chev)) 50.612%,
    calc(100% - 0.0649 * var(--chev)) 51.223%,
    calc(100% - 0.0677 * var(--chev)) 51.831%,
    calc(100% - 0.0716 * var(--chev)) 52.433%,
    calc(100% - 0.0765 * var(--chev)) 53.029%,
    calc(100% - 0.0826 * var(--chev)) 53.616%,
    calc(100% - 0.0896 * var(--chev)) 54.194%,
    calc(100% - 0.0978 * var(--chev)) 54.760%,
    calc(100% - 0.1069 * var(--chev)) 55.313%,
    calc(100% - 0.1170 * var(--chev)) 55.851%,
    calc(100% - var(--chev)) 100%,
    0 100%
  );
}
@media (max-width: 60rem) { .page-header--banner .page-header__thumb { --chev: 36px; } }
@media (max-width: 40rem) { .page-header--banner .page-header__thumb { --chev: 25px; } }

/* The watermark. A mask, not an <img>, so the shape is painted in whatever
   color we choose — here a wash of white over the band's own color, which
   means it works on every one of the seven banner variants without a per-page
   rule. Decorative only, so it is hidden from assistive tech and never
   intercepts a click. */
.page-header--banner { position: relative; overflow: hidden; }
.page-header--banner::after {
  content: "";
  position: absolute;
  inset-block: -12%;
  inset-inline-end: -3%;
  aspect-ratio: 1509 / 2560;
  background: rgba(255, 255, 255, 0.10);
  /* ⚠️ RE-APPLIED 2026-08-21, INLINE ON PURPOSE. A CSS mask that points at an
     external SVG is subject to the image's origin: under file:// every file is
     its own origin, so url("../img/chevron.svg") silently resolves to nothing
     and the chevron does not paint at all — in every tools/render.php preview,
     and on any setup serving theme assets from a separate host. The copy on
     disk had reverted to the url() form. assets/img/chevron.svg stays the
     editable source of truth; if you change it, re-encode it here. */
  -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNTA5IDI1NjAiIHJvbGU9ImltZyIgYXJpYS1oaWRkZW49InRydWUiIGZvY3VzYWJsZT0iZmFsc2UiPiA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDI1NjApIHNjYWxlKDAuMSwtMC4xKSIgZmlsbD0iY3VycmVudENvbG9yIiBzdHJva2U9Im5vbmUiPiA8cGF0aCBkPSJNOTAwIDI1NTQzIGMtNDIyIC03MiAtNzQ3IC0zODEgLTgzMiAtNzkyIC0xNiAtNzkgLTE5IC0xMjAgLTE1IC0yMzEgNiAtMTU0IDI4IC0yNTUgODEgLTM2NSAxOCAtMzggMzg0IC02NzcgODEzIC0xNDIwIDQyOSAtNzQyIDE0NDMgLTI0OTcgMjI1MyAtMzkwMCAzNDE2IC01OTE1IDMwNjEgLTUyOTQgMzE0MSAtNTQ4MCAxNjIgLTM3OCAyNDUgLTc1MiAyNTYgLTExNjUgMTQgLTUzNSAtOTAgLTEwMTcgLTMyMSAtMTQ4MCAtMzQgLTY5IC02MzUgLTExMTcgLTEzMzYgLTIzMzAgLTcwMCAtMTIxMyAtMTU3MyAtMjcyNSAtMTk0MCAtMzM2MCAtMzY3IC02MzUgLTk3OCAtMTY5MyAtMTM1OCAtMjM1MSAtMzgwIC02NTggLTcwMSAtMTIyMiAtNzE1IC0xMjU1IC01MiAtMTI1IC02MiAtMTg2IC02MSAtMzc0IDAgLTE2MCAyIC0xODMgMjcgLTI2NSAxMDUgLTM1MCAzNTcgLTU5NiA3MTUgLTY5OCBsNzcgLTIyIDI2NzUgLTMgYzE4NjcgLTIgMjcxMyAwIDI4MDAgOCA2MTMgNTMgMTE3MCAyNzMgMTY0MCA2NDYgMTA5IDg3IDMyNyAzMDUgNDEzIDQxNCAxMjUgMTU2IDE4MiAyNTAgNzA3IDExNjAgMjg4IDQ5OCA2NzQgMTE2NiA4NTggMTQ4NSAxODQgMzE5IDYzNSAxMTAwIDEwMDIgMTczNSAzNjcgNjM1IDExMjEgMTk0MCAxNjc1IDI5MDAgNTU0IDk2MCAxMDU3IDE4MzEgMTExOCAxOTM1IDE0MyAyNDUgMjAzIDM2NCAyNjYgNTIzIDgyIDIwOCAxMzkgNDM3IDE3NiA3MDQgMjUgMTc3IDMwIDU2MSAxMSA3NDggLTQxIDM4MyAtMTQ5IDc1NyAtMzEwIDEwNzQgLTM0IDY2IC0zNzMgNjU5IC03NTMgMTMxNiAtMTAzNSAxNzkyIC0yMTIyIDM2NzMgLTM4ODEgNjcyMCAtODcxIDE1MTAgLTE2MTQgMjc5MCAtMTY1MCAyODQ1IC05NyAxNTAgLTE4MyAyNTYgLTMyNyA0MDQgLTQ1MSA0NjMgLTEwMDIgNzQwIC0xNzAwIDg1MyBsLTE0MCAyMyAtMjY3MCAxIGMtMTQ2OCAxIC0yNjgxIDAgLTI2OTUgLTN6Ii8+IDwvZz4gPC9zdmc+") no-repeat center / contain;
          mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNTA5IDI1NjAiIHJvbGU9ImltZyIgYXJpYS1oaWRkZW49InRydWUiIGZvY3VzYWJsZT0iZmFsc2UiPiA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDI1NjApIHNjYWxlKDAuMSwtMC4xKSIgZmlsbD0iY3VycmVudENvbG9yIiBzdHJva2U9Im5vbmUiPiA8cGF0aCBkPSJNOTAwIDI1NTQzIGMtNDIyIC03MiAtNzQ3IC0zODEgLTgzMiAtNzkyIC0xNiAtNzkgLTE5IC0xMjAgLTE1IC0yMzEgNiAtMTU0IDI4IC0yNTUgODEgLTM2NSAxOCAtMzggMzg0IC02NzcgODEzIC0xNDIwIDQyOSAtNzQyIDE0NDMgLTI0OTcgMjI1MyAtMzkwMCAzNDE2IC01OTE1IDMwNjEgLTUyOTQgMzE0MSAtNTQ4MCAxNjIgLTM3OCAyNDUgLTc1MiAyNTYgLTExNjUgMTQgLTUzNSAtOTAgLTEwMTcgLTMyMSAtMTQ4MCAtMzQgLTY5IC02MzUgLTExMTcgLTEzMzYgLTIzMzAgLTcwMCAtMTIxMyAtMTU3MyAtMjcyNSAtMTk0MCAtMzM2MCAtMzY3IC02MzUgLTk3OCAtMTY5MyAtMTM1OCAtMjM1MSAtMzgwIC02NTggLTcwMSAtMTIyMiAtNzE1IC0xMjU1IC01MiAtMTI1IC02MiAtMTg2IC02MSAtMzc0IDAgLTE2MCAyIC0xODMgMjcgLTI2NSAxMDUgLTM1MCAzNTcgLTU5NiA3MTUgLTY5OCBsNzcgLTIyIDI2NzUgLTMgYzE4NjcgLTIgMjcxMyAwIDI4MDAgOCA2MTMgNTMgMTE3MCAyNzMgMTY0MCA2NDYgMTA5IDg3IDMyNyAzMDUgNDEzIDQxNCAxMjUgMTU2IDE4MiAyNTAgNzA3IDExNjAgMjg4IDQ5OCA2NzQgMTE2NiA4NTggMTQ4NSAxODQgMzE5IDYzNSAxMTAwIDEwMDIgMTczNSAzNjcgNjM1IDExMjEgMTk0MCAxNjc1IDI5MDAgNTU0IDk2MCAxMDU3IDE4MzEgMTExOCAxOTM1IDE0MyAyNDUgMjAzIDM2NCAyNjYgNTIzIDgyIDIwOCAxMzkgNDM3IDE3NiA3MDQgMjUgMTc3IDMwIDU2MSAxMSA3NDggLTQxIDM4MyAtMTQ5IDc1NyAtMzEwIDEwNzQgLTM0IDY2IC0zNzMgNjU5IC03NTMgMTMxNiAtMTAzNSAxNzkyIC0yMTIyIDM2NzMgLTM4ODEgNjcyMCAtODcxIDE1MTAgLTE2MTQgMjc5MCAtMTY1MCAyODQ1IC05NyAxNTAgLTE4MyAyNTYgLTMyNyA0MDQgLTQ1MSA0NjMgLTEwMDIgNzQwIC0xNzAwIDg1MyBsLTE0MCAyMyAtMjY3MCAxIGMtMTQ2OCAxIC0yNjgxIDAgLTI2OTUgLTN6Ii8+IDwvZz4gPC9zdmc+") no-repeat center / contain;
  pointer-events: none;
  z-index: 0;
}
/* The titles must sit above the watermark. */
.page-header--banner .page-header__banner { position: relative; z-index: 1; }

@media (max-width: 40rem) { .page-header--banner::after { display: none; } }

/* A browser without mask support simply never paints the pseudo-element's
   background, so the banner falls back to flat color. Nothing to guard. */

/* Taller banner to suit the larger photo, and to give the new intro line room.
   The block padding is zeroed here so the photograph runs the full height of the
   band — inherited from `.page-header .container`, it was leaving 64px of color
   above and below a 200px photo and making the banner 328px tall for no reason.
   The titles carry their own padding instead. */
.page-header--banner .page-header__banner {
  min-height: 200px;
  padding-block: 0;
}
@media (max-width: 60rem) { .page-header--banner .page-header__banner { min-height: 150px; } }
@media (max-width: 40rem) { .page-header--banner .page-header__banner { min-height: 104px; } }

.page-header__lead {
  margin: var(--space-2) 0 0;
  max-width: 56ch;
  font-size: var(--fs-200);
  line-height: var(--lh-snug);
  color: rgba(255, 255, 255, 0.92);
}
.page-header__lead:empty { display: none; }
@media (max-width: 40rem) { .page-header__lead { font-size: var(--fs-100); } }

/* Photo on a giving tile — "Add photos to 'What your gift can do' boxes"
   (CLIENT 2026-08-14). Only rendered when one has been supplied, so the tiles
   without photos are unchanged rather than showing an empty well. */
.card--give__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-sm); margin-bottom: var(--space-3); }
.card--give__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Gallery slot sizing is inherited from .photo-strip; nothing extra needed. */

/* A hero slide carrying a video instead of a photograph (CLIENT 2026-08-14).
   Sized exactly like the image it replaces, so the slide's layout is identical
   whichever it is. */
.hero-slide__video { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (prefers-reduced-motion: reduce) {
  /* Autoplay is a motion preference, not a decoration one. Showing controls is
     what makes the poster frame actionable rather than a dead image. */
  .hero-slide__video { animation: none; }
}

/* ===========================================================================
   CLIENT DESIGN CONTROLS  (2026-08-21)

   The classes wcy_section_open() emits when the Y makes a choice. Every one of
   them is a step on a scale, never a free value — see wcy_pb_scales() for the
   labels the client actually reads.

   These are the only utility classes in this stylesheet, and that is on
   purpose. A utility layer that grows past what the editor can emit becomes a
   second, undocumented way to build pages. If a class is not offered as a
   choice, it should not be here.
   ======================================================================== */

/* Vertical space. .section already sets padding-block, so these override it.

   BOTH selectors, and that is not tidiness. A Flexible Page's section divider
   renders as .block-section, not .section, so while these rules named only
   .section the "Vertical space" control on a client-built section silently did
   nothing at all — one of the four settings the client had been told a section
   gives them. Found 2026-08-22 by measuring the computed padding rather than
   reading the markup; nothing in the HTML is wrong, which is why no parse, no
   test and no DOM comparison could see it.

   Any new spacing step has to be added to BOTH lists, or it breaks on exactly
   one of the two kinds of section. */
.section.u-pad-none, .block-section.u-pad-none { padding-block: 0; }
.section.u-pad-sm,   .block-section.u-pad-sm   { padding-block: var(--space-5); }
/* 'snug' reproduces .section--tight exactly. The retrofit that put client
   controls on every band needed a step equal to --space-7, or the eleven
   bands that used .section--tight would have silently grown to --space-8. */
.section.u-pad-snug, .block-section.u-pad-snug { padding-block: var(--space-7); }
.section.u-pad-md,   .block-section.u-pad-md   { padding-block: var(--space-8); }
.section.u-pad-lg,   .block-section.u-pad-lg   { padding-block: var(--space-9); }
.section.u-pad-xl,   .block-section.u-pad-xl   { padding-block: calc(var(--space-9) * 1.6); }

/* Content width. Applied to the container, so it composes with the page's own
   max-width rather than fighting it. */
.container.u-width-narrow { max-width: 54rem; }
.container.u-width-normal { max-width: var(--container-max); }
.container.u-width-wide   { max-width: 90rem; }
.container.u-width-full   { max-width: none; }

/* ---------------------------------------------------------------------------
   How far a band's COLOR runs — as against how far its WORDS run, which is the
   control immediately above. The two are separate because nearly every band
   wants both at once: color to the screen edges, words in a readable measure.

   CLIENT 2026-08-31: "when we change a background color in a section it only
   fills the container, not the full width of the screen."

   They were right, and specifically on the 56 templates that carry the sidebar.
   Those put every band inside .page-layout, which is capped at --container-max
   and padded, so a fill stopped at the content column. Everywhere else — the
   Flexible Page, the templates with no rail — a band is already a child of
   <main> and already reaches the edges, which is why this looked inconsistent
   rather than simply wrong.

   ⚠️ THE MARGIN AND THE PADDING ARE ONE MOVE, NOT TWO. The margin pulls the
   band out to the viewport edges; the padding puts back exactly what the margin
   took, so the .container inside lands on the same pixel it did before. That is
   what makes this safe to switch on halfway down a page: the color moves, the
   text does not. Delete the padding and every line in the band jumps left.

   ⚠️ IT OVERHANGS BY A FLAT 100vw RATHER THAN REACHING FOR THE EDGE, and the
   difference is the whole reason this works. The usual trick for this is
   `margin-inline: calc(50% - 50vw)`, which centers the band on ITS OWN box —
   fine when that box is centered in the page, wrong the moment it is not. The
   content column is not: the sidebar sits to its right, so the column's center
   is about 170px left of the screen's. Measured, `calc(50% - 50vw)` put the
   band at -172px..1268px on a 1440px screen — a full-width band, short of the
   right edge and hanging off the left. `.hero-slide__media` carries a note
   about the same trap.

   Overhanging a fixed 100vw each way asks no question about where the band
   sits. Every edge of every screen is inside 100vw of every column on this
   site, so coverage is guaranteed from anywhere, at any width, at any nesting
   depth, with no layout value repeated here to fall out of sync. `body` has
   carried `overflow-x: hidden` since the hero chevron needed it, so the
   overhang is clipped rather than scrolled.

   A band that is ALREADY full width — every template without a rail, and every
   Flexible Page — computes to the same box it had before, so the class is inert
   exactly where it would have made no difference. That is why it is offered on
   every section rather than only on the ones inside the sidebar layout.
   --------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------
   A plugin's shortcode, rendered where the client pasted it.

   Deliberately almost nothing: the events plugin ships its own stylesheet and
   the site should not be second-guessing it. What is here is the two things a
   plugin cannot know about the page it landed on — that this column is narrow,
   and that a wide month grid has to be able to scroll rather than push the page
   sideways.
   --------------------------------------------------------------------------- */
.shortcode-embed { margin-top: var(--space-5); }
.shortcode-embed > iframe { width: 100%; border: 0; min-height: 34rem; }
/* A month view is a table and tables do not reflow. Its own scroller, so the
   page keeps its width. */
.shortcode-embed > table,
.shortcode-embed .tribe-events-calendar,
.shortcode-embed [class*="calendar"] { max-width: 100%; }
.shortcode-embed { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.section--bleed,
.block-section--bleed,
.page-layout__main .section--bleed {
  margin-inline: -100vw;
  padding-inline: 100vw;
  /* .section--tint rounds its corners inside the sidebar layout, where it is a
     panel in the column. A band that reaches the screen edges has no corners
     left to round. */
  border-radius: 0;
}

.u-align-left   { text-align: left; }
.u-align-center { text-align: center; }
/* Centering a section should center its buttons and media too, not just its
   prose — otherwise "Centered" visibly only half works. */
.u-align-center .btn-row,
.u-align-center .pcards,
.u-align-center .prose > * { margin-inline: auto; }
.u-align-center .prose p { max-width: 62ch; }

/* ---------------------------------------------------------------------------
   A section carrying a client-chosen fill.

   pb_color_style() sets both `background` and `color` inline, the second being
   the foreground the palette guarantees is readable on that fill. This block is
   what makes the guarantee hold for the things inside the section, which
   otherwise keep the stylesheet's own colors and can land dark-on-dark.

   This is the same failure that made "Our areas of focus" invisible: a link
   inheriting a global blue onto a blue banner. Fixing it once, here, means the
   client cannot reproduce it from the editor no matter which swatch they pick.
   --------------------------------------------------------------------------- */
.section--filled :is(h1, h2, h3, h4, h5, h6),
.section--filled p,
.section--filled li,
.section--filled .eyebrow,
.section--filled .page-title,
.section--filled .card__title { color: inherit; }

/* Links keep their underline — on a filled band the color difference that
   normally marks a link is gone, so the underline is the only thing left
   saying "this is a link". */
.section--filled a { color: inherit; text-decoration: underline; }
.section--filled a:hover { text-decoration-thickness: 2px; }

/* Buttons are the exception: a CTA has to stay the CTA color, and the magenta
   is AA against every fill in the palette. Outline buttons take the inherited
   foreground so they stay visible on a dark fill. */
.section--filled .btn--primary { color: #fff; }
.section--filled .btn--outline { color: inherit; border-color: currentColor; }

/* A card sitting on a filled band keeps its own white surface and dark text —
   inheriting there would make the card unreadable. */
.section--filled :is(.card, .pcard, .callout, .sponsor-wall__item) { color: var(--color-ink); }
.section--filled :is(.card, .pcard, .callout) :is(h1,h2,h3,h4,h5,h6,p,li) { color: inherit; }

/* …and the links inside it keep their own look too, which is the half of that
   reset that was missing. CLIENT 2026-09-09: "Can we remove the underline
   under the linked 'Learn more' text or at least from underneath the little
   arrow symbol?"

   The underline rule above is right about a link ON a fill: the color
   difference that marks a link is gone there, so the underline is the only
   thing left. Inside a card none of that holds — the card supplies its own
   white surface and its own blue, and `.card__link` already ends in an arrow.
   The band was overruling all three, and `.card__link`'s own
   `text-decoration: none` lost on specificity without anything to say so.

   Buttons are here for the same reason and it is the same bug: the two
   application buttons on Careers were rendering underlined inside a tinted
   band. A button's shape is its affordance; nothing about a fill changes that.

   ⚠️ Body links inside a card are deliberately NOT included. Those have no
   arrow and no shape of their own, so on any surface the underline is what
   makes them findable — they only get their color back. */
.section--filled :is(.card, .pcard, .callout, .sponsor-wall__item) a { color: var(--color-link); }
.section--filled :is(.card, .pcard, .callout) :is(.card__link, .card--give__cue),
.section--filled :is(.card--give, .pcard, .doc-card__link),
.section--filled .btn { text-decoration: none; }

/* ===========================================================================
   FLEXIBLE PAGE — SECTIONS, ROWS AND COLUMNS
   (CLIENT 2026-08-21, extended 2026-08-22)

   Three levels, and only three:

     .block-section  a band. Background color, vertical space, content width,
                     alignment. Created by a "Start a new section" block.
     .block-row      a row of columns. Created automatically when blocks with
                     widths sit next to each other.
     .block-col      one column, spanning n of twelve.

   Twelfths because it divides by 2, 3, 4 and 6 — every arrangement the Y is
   likely to want, with no awkward remainders.

   A row of one full-width block skips the grid entirely; see wcy_render_row().
   Most of a page is full-width blocks, and wrapping each one in two extra divs
   for nothing makes the markup harder to read.
   ======================================================================== */

.block-section > .container { padding-block: 0; }

.block-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: start;
}
.block-col { min-width: 0; }   /* or a long word in a narrow column overflows */

.block-col--12 { grid-column: span 12; }
.block-col--9  { grid-column: span 9; }
.block-col--8  { grid-column: span 8; }
.block-col--6  { grid-column: span 6; }
.block-col--4  { grid-column: span 4; }
.block-col--3  { grid-column: span 3; }

/* Columns collapse rather than compress. A quarter-width column on a phone is
   about 80px of text, which is unreadable — so below the breakpoints every
   column widens and eventually the row becomes a stack. Deliberately NOT a
   client setting: there is no good reason to want four columns on a 390px
   screen, and offering the choice only invites the wrong one. */
@media (max-width: 60rem) {
  .block-col--3, .block-col--4 { grid-column: span 6; }
}
@media (max-width: 40rem) {
  .block-col--3, .block-col--4, .block-col--6, .block-col--8, .block-col--9 { grid-column: span 12; }
}

/* ---- The blocks themselves --------------------------------------------- */

.block { position: relative; }
.block--heading,
.block--text,
.block--button,
.block--image,
.block--poster,
.block--callout { padding-block: var(--space-5); }

/* A block carrying its own fill needs breathing room inside it, because the
   fill makes its edges visible. */
.block--filled { padding-inline: var(--space-5); border-radius: var(--radius-md); }

.block__heading { margin: 0; }
.block__heading--sm { font-size: var(--fs-400); }
.block__heading--md { font-size: var(--fs-500); }
.block__heading--lg { font-size: var(--fs-600); }
.block__heading--xl { font-size: var(--fs-700); line-height: var(--lh-tight); }

/* Image sizes are steps, matching the 'imgsize' scale in wcy_pb_scales(). In a
   column the column is already the limit, so these caps only bite at full
   width — which is the case they exist for. */
.block__figure { margin: 0; }
.block__figure img { width: 100%; height: auto; display: block; border-radius: var(--radius-md); }
.block__figure--sm   { max-width: 20rem; }
.block__figure--md   { max-width: 34rem; }
.block__figure--lg   { max-width: 52rem; }
.block__figure--full { max-width: none; }
.u-align-center .block__figure,
.u-align-center .block__poster { margin-inline: auto; }
/* CLIENT 2026-10-21: "Center poster" on Youth Field Hockey. A poster's <a>
   carries the size class but not .block__figure, so the rule above missed it
   and a Medium poster sat on the left of a Centered section. It names both
   now, and posters have their own Alignment control (inc/blocks.php). */

.block__poster { display: block; border-radius: var(--radius-md); overflow: hidden; }
.block__poster img { width: 100%; height: auto; display: block; }
.block__poster:hover { box-shadow: var(--shadow-md); }
.block__poster:focus-visible { outline: 3px solid var(--y-magenta); outline-offset: 2px; }

/* A card in a column fills the column's height, so a row of cards carrying
   different amounts of text still lines up along the bottom. */
.block-col > .pcard { height: 100%; }

.callout.section--filled { border-left-color: currentColor; }

.block--spacer { padding-block: 0; }
.block--spacer.u-pad-none { height: 0; }
.block--spacer.u-pad-sm { height: var(--space-5); }
.block--spacer.u-pad-md { height: var(--space-8); }
.block--spacer.u-pad-lg { height: var(--space-9); }
.block--spacer.u-pad-xl { height: calc(var(--space-9) * 1.6); }

/* The flexible page's banner. Same shape as every other page header, so a
   client-built page does not look like a different site; the color is theirs. */
.page-header--flexible { color: #fff; }
.page-header--flexible h1 { color: inherit; }
.page-header--flexible .page-header__lead { color: inherit; opacity: 0.92; }
.page-header--flexible .page-header__lead:empty { display: none; }

/* ===========================================================================
   SUSTAINING SPONSOR BAND  (Y News)
   Flagged 2026-08-21, built 2026-08-22.

   functions.php has emitted this markup since the sponsor roster moved to a
   global repeater; the stylesheet never gained the matching rules, so it has
   been rendering as a bare bulleted list of logos on a live page.

   The marquee is two identical tracks side by side. The first carries the real
   alt text; the second is aria-hidden and exists only so that when the pair
   has traveled exactly one track's width the loop can restart with the same
   pixels under the viewport edge — that is what makes it seamless rather than
   snapping back. Any change to the animation distance has to stay at exactly
   -100%, or the seam becomes visible.
   ------------------------------------------------------------------------ */

.sponsor-band {
  padding-block: var(--space-7);
  background: var(--color-surface-2);
  overflow: hidden;                     /* the viewport bleeds to both edges */
}

.sponsor-band__title {
  margin: 0 0 var(--space-5);
  text-align: center;
  font-size: var(--fs-500);
  color: var(--y-blue);
}

.section--filled .sponsor-band__title { color: inherit; }

/* The viewport is deliberately full-bleed: a marquee that stops at the
   container edge reads as a broken carousel rather than a continuous band. */
.sponsor-band__viewport {
  display: flex;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.sponsor-band__track {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-4);
  margin: 0;
  padding: 0 var(--space-2) 0 0;
  list-style: none;
  animation: wcy-sponsor-scroll 48s linear infinite;
}

/* Hovering or tabbing into the band stops it, so a logo can actually be read
   and a link inside it can actually be hit. */
.sponsor-band:hover .sponsor-band__track,
.sponsor-band:focus-within .sponsor-band__track {
  animation-play-state: paused;
}

.sponsor-band__item {
  flex: 0 0 auto;
  width: 12rem;
  min-height: 6rem;
  padding: var(--space-3);
}

.sponsor-band__item img { max-height: 4rem; }

@keyframes wcy-sponsor-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

@media (max-width: 40rem) {
  .sponsor-band__item { width: 9rem; min-height: 5rem; }
  .sponsor-band__item img { max-height: 3.25rem; }
  .sponsor-band__track { animation-duration: 32s; }
}

/* Reduced motion: no animation at all. The band becomes a normal horizontal
   scroller, so every sponsor is still reachable — hiding the duplicate track
   keeps a screenful of logos from appearing twice with no motion to explain
   why. */
@media (prefers-reduced-motion: reduce) {
  .sponsor-band__viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
    scroll-snap-type: x proximity;
  }
  .sponsor-band__track { animation: none; }
  .sponsor-band__track[aria-hidden="true"] { display: none; }
  .sponsor-band__item { scroll-snap-align: center; }
}

/* ===========================================================================
   READY-MADE BLOCKS INSIDE A BLOCK AREA
   (CLIENT 2026-08-22)

   Some of the components a client can now drop onto a page — the Support the Y
   band, the scrolling sponsor band — emit their OWN <section> with its own
   .container inside. Placed in a block area they end up as a band inside a band
   and a container inside a container: doubled vertical padding, and content
   squeezed to a max-width twice over.

   These rules undo exactly that nesting and nothing else. They are scoped to
   .block-section so the same components on the pages we built are untouched.
   ------------------------------------------------------------------------ */

.block-section :is(.cta-band, .sponsor-band) {
  /* The outer band already supplies the vertical rhythm. */
  padding-block: 0;
  /* And it is already inside a max-width container, so the inner one must not
     constrain again — but the fill still has to reach the block's own edges. */
  margin-inline: calc(var(--space-5) * -1);
  padding-inline: var(--space-5);
  border-radius: var(--radius-md);
}

.block-section :is(.cta-band, .sponsor-band) > .container {
  max-width: none;
  padding-inline: 0;
}

/* The scrolling band keeps its own breathing room: it is a strip of logos, not
   a paragraph, and zero padding puts the cards hard against the text above. */
.block-section .sponsor-band { padding-block: var(--space-6); }

/* A Flyer carousel block. .offerings is NOT a band — no fill, no .container of
   its own — so it needs none of the un-nesting above; the rules there would
   give it a negative margin it has no background to fill. All it needs is its
   bottom margin dropped, because inside a block area the section's own padding
   already supplies that gap and the two together read as a hole. */
.block--flyers .offerings { margin-bottom: 0; }

/* An editor-only note, shown when a ready-made block cannot render — currently
   only the live schedule with its plugin switched off. Visitors never see it. */
.block__notice {
  margin: 0;
  padding: var(--space-4);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-size: var(--fs-200);
}

/* ==========================================================================
   BUTTON STYLING, BENEFIT BOXES AND THE PER-PAGE ACCENT   (CLIENT 2026-08-23)
   ========================================================================== */

/* Shape. The default button is rounded; "Rectangle" squares it off. Both keep
   the same height and padding, so a row of mixed shapes still lines up. */
.btn--round { border-radius: var(--radius-pill, 999px); }
.btn--rect  { border-radius: 2px; }

/* A button filled from the palette. The fill and the ink are written inline by
   wcy_render_block(), because the ink is the CLIENT's choice once
   wcy_button_ink() has confirmed it is legible on that fill — so it must not be
   something a stylesheet can overrule. All this rule does is keep the hover
   from reverting to the default magenta. */
.btn--custom:hover { filter: brightness(0.92); }

/* The Membership benefit box, as a block. Reuses .card so it is the same
   component rather than a copy of it; only the colored top edge is new, and it
   is the one thing that told the two Membership boxes apart.

   height:100% is what makes two side by side line up along the bottom, as they
   do on the Membership page — there they sit in a .grid, which equalizes them;
   in a block row they are flex items and would otherwise each be as tall as
   its own list. Two boxes of visibly different height read as a mistake. */
.block--panel { margin: 0; height: 100%; }

/* Its column has to stretch first, or height:100% resolves against a column
   that is already only as tall as its own contents. .block-row is
   align-items:start on purpose; this opts one column out of it. */
.block-col--stretch { align-self: stretch; }
.card--edged { border-top: 5px solid var(--y-blue); }  /* color written inline */

/* Per-page accent. Set as a custom property on <body> by header.php — the one
   file every page goes through — because the page header itself is written in
   three different places and a control that works on 4 templates out of 79 is
   worse than none.

   Two selectors, not one: .has-page-accent .page-header is 0,2,0, which beats
   every .page-header--variant background (0,1,0) whatever the source order, so
   the client's choice wins on the banner pages too. The flat swatch replaces
   the gradient deliberately — a two-stop gradient derived from one arbitrary
   palette color is not something we can promise looks deliberate. */
.has-page-accent .page-header { background: var(--wcy-accent); }
.has-page-accent .page-header .container { position: relative; z-index: 1; }

/* A document block: a PDF the client dropped onto a page. Reads as a thing to
   download rather than as a sentence with a link in it, because that is what it
   is — and the file-type is stated, since a link that silently opens a PDF on a
   phone is a small unkindness. */
.block--doc { margin: 0; }
.doc-link {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border, #dcdcde); border-radius: var(--radius-md);
  background: #fff; text-decoration: none; color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.doc-link:hover { border-color: var(--y-blue); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.doc-link__icon {
  flex: none; width: 30px; height: 38px; border-radius: 3px;
  background: var(--y-blue);
  /* A dog-eared sheet, drawn rather than fetched: one more request for an icon
     this small is not worth it, and an <img> here would need alt text that
     repeats the label beside it. */
  clip-path: polygon(0 0, 68% 0, 100% 26%, 100% 100%, 0 100%);
}
.doc-link__text { display: flex; flex-direction: column; }
.doc-link__label { font-weight: var(--fw-bold); color: var(--y-blue); }
.doc-link__note { font-size: var(--fs-100); color: var(--color-text-muted); }

/* ============================================================
   HEADING APPEARANCE  (CLIENT 2026-08-31)

   The classes inc/type-controls.php puts on a heading when the Y has chosen
   something other than "As designed". Nothing here applies unless they have,
   so a site nobody has restyled renders exactly as before.

   ⚠️ THE SIZE CLASSES GO ON A SPAN *INSIDE* THE HEADING, NEVER ON THE HEADING.
   `em` resolves against the PARENT's font size, so `font-size: 0.85em` on an
   <h2> does not scale it — it replaces its size with 0.85 x the body text.
   Measured: 38.4px became 13.6px, and the fluid clamp() that makes h1 and h2
   shrink on a phone was thrown away with it. On a child of the heading the same
   declaration means what it looks like it means, and it keeps working under all
   eighteen rules in this file that override a heading's font-size.

   inc/type-controls.php emits the span, and only when a size is chosen.

   The multipliers are duplicated in wcy_type_size_steps(); PHP needs them to
   work out how small a heading can get, which is what decides its contrast
   threshold. Change both together.
   ============================================================ */
:is(h1, h2, h3, h4, h5, h6) > .wcy-ts-sm { font-size: 0.85em; }
:is(h1, h2, h3, h4, h5, h6) > .wcy-ts-lg { font-size: 1.15em; }
:is(h1, h2, h3, h4, h5, h6) > .wcy-ts-xl { font-size: 1.35em; }

/* The four faces that exist in assets/fonts. There is no italic; see the note
   on the 'weight' scale in functions.php. */
.wcy-fw-light  { font-weight: 200; }
.wcy-fw-book   { font-weight: 400; }
.wcy-fw-medium { font-weight: 500; }
.wcy-fw-bold   { font-weight: 700; }

/* Offset and thinned: a default underline on a 30px Cachet heading collides
   with the descenders of g, y and p, which this site's headings are full of
   ("Healthy Living", "Youth Development", "Programs"). */
.wcy-tu {
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 0.05em;
}

/* CLIENT 2026-10-21: Italic, on a Heading block ("Thank you for a great 2026
   season!" on Youth T-Ball). A slanted Book, not a true italic — Cachet Pro
   ships none — which is what the header tagline and .accent-italic already
   show. See the 'hitalic' field in inc/blocks.php. */
.wcy-ti { font-style: italic; }

/* There is deliberately NO override for `.section--filled`, which sets a band's
   heading color to the swatch's guaranteed-readable pairing (line 3251). The
   chosen color is emitted as an inline style, and an inline style outranks any
   selector — nothing in this file uses !important, so it wins with no help.
   A specificity rule here would be dead code that reads as load-bearing. */

/* ═══════════════════════════════════════════════════════════════════════════
   WAVE 20 — THE SQUARE BUTTON, THE PULSE, THE BORDER   (CLIENT 2026-08-31)

   Three notes, three settings, and every one of them ships in the state the
   site is already in. PHP side: inc/appearance.php.

   ⚠️ READ THIS BEFORE ADDING A PSEUDO-ELEMENT TO ANYTHING IN THIS SECTION.
   Both ::before and ::after are already spoken for on the elements these
   settings land on, and the first draft of this file collided with both:

     .callout::before   the colored left edge on every call-out on the site
     .btn--form::before the document glyph on five template buttons
     .btn--attention::after  the Membership page's Join now ring

   So the square button's highlight is a background LAYER, not a pseudo-element,
   and the pulse ring is ::after and shares its keyframes with .btn--attention.
   Each choice is explained where it is made.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ---------------------------------------------------------------------------
   1. ALLISON'S SQUARE BUTTON

   Her mock-up is a soft-cornered magenta tile with a broad diagonal highlight
   across it, white bold text, two lines deep.

   ⚠️ THE CORNER IS 8px, NOT 0 AND NOT 2. The Button block has had a
   "Rectangle" shape since August at `border-radius: 2px`, which reads as a
   sharp-cornered box. The mock-up's corner is visibly rounded — soft enough to
   look drawn rather than cropped. `rect` is left exactly as it was; this is a
   third shape, not a redefinition of the second.

   ⚠️ THE HIGHLIGHT IS `background-image`, WHICH ONLY WORKS BECAUSE OF THREE
   OTHER THINGS. Every filled button variant sets `background:` — a SHORTHAND,
   which resets background-image to none. So:

     1. These rules are at the END of the stylesheet. At equal specificity the
        later declaration wins, so `.btn--square`'s image beats the `none`
        implied by `.btn--primary`'s shorthand above it.
     2. There is an explicit :hover rule below. `.btn--primary:hover` is (0,2,0)
        and would otherwise strip the gloss the moment the pointer arrived —
        which is exactly how the first draft failed, and only on hover, which is
        the hardest kind of failure to notice in a screenshot.
     3. wcy_render_block() emits `background-color:` and not `background:` for a
        Button block with a custom color, for the same reason. See the note
        there.

   ⚠️ 115deg IS NOT A COINCIDENCE. It is the angle of the header slashes, the
   hero chevron texture and the banner marks. A gloss at 105 or 120 would look
   like a different site's button.
   --------------------------------------------------------------------------- */
:root {
  --btn-gloss: linear-gradient(115deg,
      rgba(255,255,255,0)    34%,
      rgba(255,255,255,0.20) 34%,
      rgba(255,255,255,0.20) 54%,
      rgba(255,255,255,0)    54%);
}

.btn--square,
.btn--square:hover,
body.wcy-btn-square .btn:not(.btn--round):not(.btn--rect):not(.btn--square),
body.wcy-btn-square .btn:not(.btn--round):not(.btn--rect):not(.btn--square):hover {
  border-radius: 8px;
  background-image: var(--btn-gloss);
}

/* ⚠️ THE OUTLINE BUTTON KEEPS THE CORNER AND LOSES THE GLOSS. .btn--outline is
   transparent, so a white highlight over nothing is a pale stripe floating on
   whatever is behind the button. It is a real state on this site — every
   secondary action is an outline button — not a hypothetical. */
.btn--outline.btn--square,
.btn--outline.btn--square:hover,
body.wcy-btn-square .btn--outline:not(.btn--round):not(.btn--rect):not(.btn--square) {
  background-image: none;
}
/* …except once it is hovered, when it fills with blue and the gloss applies
   again exactly as it does on any other filled button. */
body.wcy-btn-square .btn--outline:not(.btn--round):not(.btn--rect):not(.btn--square):hover {
  background-image: var(--btn-gloss);
}

/* ---------------------------------------------------------------------------
   2. THE PULSE, AS A SETTING

   `.btn--attention` has drawn this ring on the Membership page's Join now
   button since 2026-08-14. The client asked for it "for other elements … as a
   setting option (buttons, images, text blocks, etc)", so the ring gets a class
   that is not about buttons — and the two share one keyframe rule, because two
   copies of an animation is how they drift apart.

   ⚠️ `border-radius: inherit` IS WHY ONE RULE COVERS ALL OF THEM. The ring is
   drawn by a pseudo-element inset round the box; inheriting the radius means it
   hugs a pill button, an 8px square button, a framed photo and a square-
   cornered text box with no per-element CSS.

   ⚠️ THE RING IS PULLED INSIDE ON THREE COMPONENTS, AND IT HAS TO BE. A ring at
   `inset: -4px` is drawn OUTSIDE the border box, and `.callout`, `.pcard` and a
   framed `.block__figure` all carry `overflow: hidden` — which clips it away
   entirely. Not faintly: completely, so the setting appears to do nothing. They
   get an inset ring instead, which reads as a highlight rather than a halo and
   is the better of the two answers available inside a clipping box.

   ⚠️ THE COLOR IS NOT INHERITED. `currentColor` was the first draft and it
   paints a black ring round a photograph, because a <figure>'s text color is
   the body ink. Brand magenta on everything that is not itself colored.
   --------------------------------------------------------------------------- */
.wcy-pulse { position: relative; }
.wcy-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--y-magenta);
  opacity: 0;
  animation: wcy-attention 2.8s ease-out infinite;
  pointer-events: none;
  z-index: 1;
}

/* The three that clip. */
.callout.wcy-pulse::after,
.pcard.wcy-pulse::after,
.block__figure.wcy-pulse::after,
a.block__poster.wcy-pulse::after { inset: 2px; }

/* ⚠️ A SQUARE BUTTON THAT ALSO PULSES. .btn--square is a background layer and
   .wcy-pulse is ::after, so the two do not fight — but the square button's
   radius is 8px and `inherit` on the ring picks that up automatically. Listed
   here only so the next person does not go looking for the rule that makes it
   work. */

@media (prefers-reduced-motion: reduce) {
  .wcy-pulse::after { animation: none; opacity: 0.5; transform: none; }
}

/* ---------------------------------------------------------------------------
   3. THE BORDER, AS A SETTING

   Three weights, because a free number field is how one card ends up with a
   17px border and the one beside it 3px. --wcy-bd-c is set inline by
   wcy_block_border_decl() when the client picks a color and is otherwise never
   set, so the fallback inside the shorthand is what paints.

   ⚠️ THE PADDING IS ON THE TEXT BLOCKS ONLY. A border drawn tight against a
   photograph is a frame. A border drawn tight against a paragraph is a mistake
   — the words touch the line. `.callout`, `.card` and `.pcard` already carry
   their own padding, so only the bare text and heading blocks gain any.
   --------------------------------------------------------------------------- */
.wcy-bd {
  border-style: solid;
  border-width: var(--wcy-bd-w, 2px);
  border-color: var(--wcy-bd-c, var(--color-border-strong));
  border-radius: var(--radius-md);
}
.wcy-bd--thin  { --wcy-bd-w: 1px; }
.wcy-bd--med   { --wcy-bd-w: 3px; }
.wcy-bd--thick { --wcy-bd-w: 6px; }

.block--text.wcy-bd,
.block--heading.wcy-bd { padding: var(--space-4) var(--space-5); }

/* A framed picture must not let the image's own corners poke through the
   frame's. */
.block__figure.wcy-bd,
a.block__poster.wcy-bd { overflow: hidden; display: block; }

/* ⚠️ AND THE SAME TWO SHAPES FOR THE HAND-BUILT PAGES  (CLIENT 2026-08-31 note
   3, closed in 3.16.1).

   The rules above name elements inc/blocks.php draws, so they reach the
   Flexible Pages and the build areas and nothing else. A region in one of the
   81 templates carries whatever class its author wrote — `prose`,
   `table-region`, `hours-block`, `camp-list`, `page-figure`, `card__media` —
   and a stylesheet listing those is a list that goes stale the next time
   somebody writes a template. So wcy_look_controls() declares the SHAPE and
   these two rules paint it: `--pad` for a box of words, `--frame` for a
   picture. Both are emitted only when a border is actually set, so neither can
   move a page nobody has restyled.

   ⚠️ `--frame` DOES NOT SET `display`, unlike `.block__figure.wcy-bd` above. It
   also lands on link regions, and `.btn` is inline-block: `display: block`
   there would stretch every bordered button across its whole column. */
.wcy-bd--pad   { padding: var(--space-4) var(--space-5); }
.wcy-bd--frame { overflow: hidden; }

/* ⚠️ A BORDERED BUTTON OVERRIDES THE 2px TRANSPARENT ONE `.btn` ALREADY HAS.
   Every button on this site is drawn with `border: 2px solid transparent` so
   that filled and outline buttons are the same size. Without this, choosing
   "Thin" would set a 1px border on something already reserving 2px and the
   button would move by a pixel while appearing to gain nothing. */
.btn.wcy-bd { border-style: solid; }

/* ---------------------------------------------------------------------------
   4. THE PROMOTED REGISTER LINK IN THE SIDEBAR   (CLIENT 2026-08-31)

   "on the Programs pages, have the Register link pulsate — use chevron as arrow
   on left side to make it stand out. ONLY on Programs pages."

   ⚠️ THE ARROW IS THE ROW'S ICON, NOT AN EXTRA MARK IN THE MARGIN, AND THE
   FIRST VERSION LEARNED THAT THE HARD WAY.

   An absolutely-positioned triangle at `left: -12px` is the obvious build and
   it renders nothing at all: `.rail-nav` carries `overflow: hidden` — it has to,
   so the first and last rows clip to the list's rounded corners — and the arrow
   sits outside the list. Every unit test passed, the DOM gate saw no change it
   could object to, and the feature was invisible. A screenshot found it.

   So wcy_sidebar() swaps that row's glyph for the Y's chevron instead. Same
   position, no new element, and the seven rows stay in line.

   ⚠️ THE RING NEEDS A RADIUS TO HANG ON. `.wcy-pulse::after` inherits its
   border-radius, and a rail link has none — so the ring drew a hard-cornered
   rectangle round the words, which reads as a stray box rather than as
   emphasis. The link becomes an inline-block chip with a pill radius, pulled
   back by its own padding so the text does not move.
   --------------------------------------------------------------------------- */
.rail-nav__item--promoted .rail-nav__icon {
  color: var(--y-magenta);
  animation: wcy-nudge 2.8s ease-in-out infinite;
}

.rail-nav__link--promoted {
  font-weight: var(--fw-bold);
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: 2px var(--space-3);
  margin-inline-start: calc(var(--space-3) * -1);
}

/* The arrow points AT the link, so it leans toward it rather than pulsing in
   place — two things pulsing inside the same 20px would read as a glitch. The
   ring and the nudge share a 2.8s period so they stay in step. */
@keyframes wcy-nudge {
  0%, 62%, 100% { transform: translateX(0); }
  74%           { transform: translateX(3px); }
  86%           { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .rail-nav__item--promoted .rail-nav__icon { animation: none; }
}

/* ---------------------------------------------------------------------------
   5. CEO CORNER   (CLIENT 2026-08-31)

   "add russell photo and about text and make the layout more dazzling — latest
   post section larger, sidebar, etc."

   Two components: the introduction band, and the lead story. The rest of the
   page is the existing .news-card grid, which is already the right thing for
   "eight more posts" and gets no attention here.
   --------------------------------------------------------------------------- */

/* ⚠️ NOT `.media-split`. That component is a fixed 14rem picture column — the
   right proportion for the head-and-shoulders shot on Health & Fitness, and
   too small for the portrait this band is built around. Same idea, larger, and
   with a collapse rule of its own because the breakpoint is different: this one
   has to stack sooner, since it lives inside the content column beside the
   sidebar rather than across the page. */
.ceo-intro {
  display: grid;
  gap: var(--space-6);
  align-items: start;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.ceo-intro--textonly { grid-template-columns: 1fr; }
@media (max-width: 52rem) { .ceo-intro { grid-template-columns: 1fr; } }

.ceo-intro__figure { margin: 0; }
.ceo-intro__figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.ceo-intro__body > :first-child { margin-top: 0; }
.ceo-intro__body > :last-child { margin-bottom: 0; }

/* The lead story. "Larger" is not a bigger card — the thing that makes a story
   read as the lead is that it gets a standfirst and a real button, which a card
   has no room for. */
.ceo-feature {
  display: grid;
  gap: 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-7);
}
.ceo-feature__media { display: block; aspect-ratio: 21 / 9; }
.ceo-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ceo-feature__body { padding: var(--space-6); }
.ceo-feature__meta {
  font-size: var(--fs-100); color: var(--color-text-muted);
  margin-bottom: var(--space-3); display: flex; align-items: center; gap: var(--space-2);
}

/* The one flash of color on the page, and the reason it is a flag rather than
   a colored heading: the heading is a link, and a magenta link on a page of
   blue links reads as a different KIND of link rather than a more important
   one. */
.ceo-feature__flag {
  background: var(--y-magenta); color: #fff;
  font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.25em 0.7em; border-radius: var(--radius-pill);
}
.ceo-feature__title { font-size: var(--fs-600); margin: 0 0 var(--space-3); line-height: 1.15; }
.ceo-feature__title a { color: var(--color-ink); text-decoration: none; }
.ceo-feature__title a:hover { color: var(--y-blue); }
.ceo-feature__excerpt {
  font-size: var(--fs-300); color: var(--color-ink-soft);
  margin: 0 0 var(--space-5); max-width: 60ch;
}

/* ⚠️ THE LEAD STORY GOES SIDE-BY-SIDE ONLY WHERE THERE IS ROOM, AND THIS PAGE
   HAS A SIDEBAR. At 64rem the content column is roughly 44rem wide, which is
   where a 21:9 image above the words stops being the better arrangement. */
@media (min-width: 64rem) {
  .ceo-feature { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: stretch; }
  .ceo-feature__media { aspect-ratio: auto; height: 100%; }
  .ceo-feature__body { display: flex; flex-direction: column; justify-content: center; }
}

.ceo-empty { color: var(--color-text-muted); }

/* ---------------------------------------------------------------------------
   6. THE FORM BLOCK   (CLIENT 2026-08-31)

   "Forms — embed block — diabetes page example."

   `.form-block` itself is unchanged — it has styled the Diabetes Prevention
   page's enquiry form since July and this is the same panel, reached from the
   block palette instead of from one template. Three additions only.
   --------------------------------------------------------------------------- */

/* The note under the heading is rich text now, so it arrives as one or more
   <p> rather than as a <p> with the class on it. The class moved to a wrapper;
   these two lines keep the spacing the single paragraph used to have. */
.form-block__note > :first-child { margin-top: 0; }
.form-block__note > :last-child { margin-bottom: 0; }

/* Same story for the fallback message. */
.form-block__fallback > :first-child { margin-top: 0; }
.form-block__fallback > :last-child { margin-bottom: 0; }

/* ⚠️ A FORM IN A NARROW COLUMN IS STILL A FORM. The panel can now sit in a
   half- or third-width column, where its own padding plus a forms plugin's
   input padding leaves very little room for the input itself. The padding
   tightens below the width at which columns are still side by side. */
@media (max-width: 60rem) {
  .block--form .form-block { padding: var(--space-4); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CLIENT 2026-09-28 — THE SQUARE BUTTON AS A TILE, AND THE TRAINERS BAND

   Theme 3.20.0. Notes in CLIENT-EDITS-2026-09-28.md.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ---------------------------------------------------------------------------
   1. A SQUARE BUTTON BESIDE A BOX IS A TILE

   > "I'd like the button next to the 'Free 6th-grade membership' callout to be
   >  more square so that it sits next to the call out box more neatly"
   > "Same as on the Youth Membership page … (maybe the button text needs to be
   >  slightly bigger with this adjustment, too)"

   Both buttons were a 54px bar pinned to the top of a column whose neighbor
   was a call-out three times its height — and pushed a further 24px down by
   `.btn-row`'s own top margin, so even their top edges did not line up.

   wcy_render_row() marks the column `block-col--tile` when a Square button
   shares its row (inc/blocks.php, with the reasoning). Here the column, the
   block, the row and the button each fill the one outside them, so the tile's
   top and bottom edges are the call-out's top and bottom edges: both blocks
   carry the same `padding-block`, and the foot-of-band rule strips the same
   bottom padding from both when theirs is the last row.

   ⚠️ ONLY WHILE THE TWO ARE SIDE BY SIDE. Below 60rem a quarter or a third
   column widens to half and the row wraps, and below 40rem everything stacks.
   A tile the height of nothing is a big empty button, so under that width it
   is the ordinary button again. 60.0625rem is the first width the column
   rules at 60rem no longer apply.

   ⚠️ THE BLOCK'S OWN FILL LOSES ITS SIDE PADDING HERE. Both of her buttons sit
   in a block filled White on a white band — invisible, except that
   `.block--filled` pads it 24px each side, which would have narrowed the
   quarter-width tile on Youth & Teen to 132px and made it taller than wide. A
   tile's own color is its fill; the box round it has nothing left to frame.
   --------------------------------------------------------------------------- */
@media (min-width: 60.0625rem) {
  .block-col--tile { display: flex; }
  .block-col--tile > .block--button {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding-inline: 0;
  }
  .block-col--tile > .block--button > .btn-row {
    flex: 1 1 auto;
    margin: 0;
    align-items: stretch;
  }
  .block-col--tile .btn {
    flex: 1 1 auto;
    min-height: 7rem;
    padding: var(--space-4);
    font-size: var(--fs-400);
    line-height: 1.15;
    text-align: center;
    text-wrap: balance;
  }
}

/* ---------------------------------------------------------------------------
   1b. A ROW OF BUTTONS ON A PHONE  (CLIENT 2026-11-03)

   > "On Group Exercise Classes the mobile page isn't showing the buttons as
   >  being the same width. Would also be [good] to tighten the spacing between
   >  those buttons on the mobile view." — and the same on Personal Training,
   >  Swim Lessons, Bluefish, Adult Aquatics, the Childcare pages, the Sports
   >  pages and AOA Weekly Activities.
   > "On Adult Aquatics mobile view, buttons for Masters Swim Results don't
   >  line up."

   `block-row--buttons` is a row whose columns are all Button blocks
   (wcy_render_row() says why it is decided there). Measured on staging at
   390px: each button its own width (235–342px), a White-filled one 24px in
   from the rest, and 88–113px between one button and the next.

   Below 60rem — where the tile above stops being a tile — each button fills
   its column, so every button in the row is one width, and a fill round it
   loses its side padding (every filled Button block in those rows on staging
   is White on a white band: a box nobody can see, pushing the button in).
   Below 40rem, where the columns stack, the stack is held together: 12px
   between buttons — the gap two buttons in one button row already have — and
   the row's first and last buttons keep the distance to whatever is above and
   below it, so only the space INSIDE the stack moves. 112px → 12px.

   Desktop is untouched apart from the centering fix underneath.
   --------------------------------------------------------------------------- */
@media (max-width: 60rem) {
  .block-row--buttons > .block-col > .block--button { padding-inline: 0; }
  .block-row--buttons > .block-col > .block--button > .btn-row { flex-wrap: nowrap; }
  .block-row--buttons .btn { width: 100%; }
}
@media (max-width: 40rem) {
  .block-row--buttons { row-gap: var(--space-3); }
  .block-row--buttons > .block-col:not(:first-child) > .block--button { padding-top: 0; }
  .block-row--buttons > .block-col:not(:last-child) > .block--button { padding-bottom: 0; }
  .block-row--buttons > .block-col:not(:first-child) > .block--button > .btn-row { margin-top: 0; }
  /* `.btn-row` is a <p>, so it also carries the paragraph's 16px below it —
     inside the column (a grid item does not let it collapse away). Missed in
     the first cut of this rule: the stack measured 28px apart, not 12. */
  .block-row--buttons > .block-col:not(:last-child) > .block--button > .btn-row { margin-bottom: 0; }
}

/* A Button block set to Centered now centers its button.

   It never did: `.u-align-center .btn-row { margin-inline: auto }` centers a
   box, and `.btn-row` is a full-width flex row, so the button stayed at its
   left edge. On a desktop that was the second half of "Masters Swim Results
   don't line up" — eight Centered pills each at the left of its quarter, the
   White-filled 2023 and 2016 24px further in than the rest. Centered, a fill's
   padding moves nothing: the center of the box is the center of the box.
   (Measured on staging: every Centered Button block is in a row of columns;
   the tiles among them fill their column, so centering does not move them.) */
.block--button.u-align-center > .btn-row { justify-content: center; }

/* ---------------------------------------------------------------------------
   1c. BUTTON WORDS: CENTERED, AND ON ONE LINE WHERE THEY FIT  (CLIENT 2026-11-10)

   > "Some of the buttons on mobile have text spread over 2 lines and aligned
   >  left. Can we have any text that can be kept on one line, and all button
   >  text aligned center?"

   ALIGNED LEFT. `.btn` is a flex box, and it centers its words as one item —
   until they wrap. A wrapped item is as wide as the button, and its lines then
   follow the text-align it inherits, which is left. So: text-align on `.btn`
   itself, every button, every width. text-wrap: balance makes a label that
   still has to wrap break into two even lines, not one long and one short.

   TWO LINES. Measured on staging at 390px: nine buttons wrap, every one a
   Large button with 48px of padding each side, every one made 342 or 294px
   wide by its column and not by its words.
     - Seven are in a row of buttons, which fills its column below 60rem (1b).
       There the side padding draws nothing — the button's width is the
       column's — it only takes room from the words. 16px, the padding a tile
       has on a desktop.
     - Two are the tile beside a call-out (Youth & Teen Membership, Teen Time),
       a button of its own width in a White box that pads it 24px each side.
       On a desktop a tile's box already loses its side padding (2, "THE
       BLOCK'S OWN FILL"); below 60rem it now does too, so the box never
       narrows a tile at any width. Every such box on staging is White on
       white, so the only thing that moves is the button: 24px nearer the
       content edge, where every other button already is.
     - Below 40rem a Large button in a Button block takes the side padding of
       an ordinary button: 32px. It is the one rule here a visitor can see on a
       button that never wrapped — the single Large buttons on a phone are
       32px narrower (Donate today 215 → 183px).
   At 390 all nine then fit (the longest, "Summer Camp Registration Form",
   needs 315 of 342px), and at 375 and 414. On a 360px phone the two longest
   still wrap — centered and even now.

   The home page's own buttons are not Button blocks and are not touched.
   --------------------------------------------------------------------------- */
.btn { text-align: center; text-wrap: balance; }
@media (max-width: 40rem) {
  .block--button .btn--lg { padding-inline: var(--space-6); }
}
@media (max-width: 60rem) {
  .block-row--buttons .block--button .btn { padding-inline: var(--space-4); }
  .block-col--tile > .block--button { padding-inline: 0; }
}

/* ---------------------------------------------------------------------------
   2. THE TRAINERS HEADING, ON ONE LINE AT DESKTOP

   > "the header text centered (on one line for desktop would be great)"

   "Meet our American Council on Exercise Certified Trainers" is 56 characters
   of bold display type. At the h2 size it needs about 950px and the content
   column beside the rail is 808px at 1280 — so it broke after "Council" and
   the Y had shrunk it to try to stop that.

   So the heading is sized from the width it actually has: 3.9% of its band's
   content box, which is 31.5px in 808px and 24.6px in the 632px a 1024px
   screen leaves. Measured in Cachet Pro Bold — 25.24px of line per px of
   type, less the 1px letter-spacing on 56 characters — that is one line with
   about 70px to spare at every desktop width. Below 1.5rem it stops shrinking
   and wraps instead, because an h2 that reads as small print on a phone is
   worse than one on three balanced lines.

   ⚠️ A CONTAINER QUERY, NOT A VIEWPORT UNIT. The column's width depends on the
   rail beside it, and the band's own width setting, not on the window. `vw`
   would have been right at exactly one window size.

   The size control on the heading still works — its span is 0.85em or 1.15em
   of THIS — so a Y who has set it Smaller gets a smaller single line, and one
   who sets it Larger gets a line that wraps, which is what Larger means.
   --------------------------------------------------------------------------- */
.section--trainers > .container { container-type: inline-size; }
.trainers-heading {
  font-size: clamp(1.5rem, 3.9cqi, var(--fs-600));
  text-align: center;
  margin-bottom: 0;
}

/* The instruction goes under the photos it is about. `.page-note` is written
   for the line under a TITLE and pulls itself up into it; this one is pushed
   down off the grid instead. */
.page-note--below { margin: var(--space-5) auto 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   WAVE 28 — ALLISON'S EDITS OF 23 OCTOBER   (theme 3.23.0)
   Notes: CLIENT-EDITS-2026-10-23.md
   ═══════════════════════════════════════════════════════════════════════════ */

/* ---------------------------------------------------------------------------
   1. A CALL-OUT'S LEFT EDGE — ANY PALETTE COLOR, OR NONE

   > "Be able to change or remove the color from the left side of call out
   >  boxes."

   The stripe is `.callout::before` (8px, blue / teal / magenta by variant).
   PHP side: wcy_callout_edge_look() in inc/type-controls.php, used by the
   Call-out block and by every template call-out.

   ⚠️ TWO CLASSES ON THE SELECTOR, AND THAT IS THE POINT. `.callout--highlight
   ::before` and `.callout--alert::before` are one class each, and both come
   AFTER the base rule — a single-class override written here would win or
   lose by source order alone. `.callout.callout--edge` outranks every variant
   wherever it sits. */
.callout.callout--edge::before { background: var(--callout-edge); }

/* No stripe: the pseudo-element goes, and the box gets back the left border
   `.callout` takes away (it is `border-left: 0` precisely because the stripe
   stood in for it) and the even padding the stripe's extra 8px no longer
   needs. After `.callout.section--filled`, which would otherwise make that
   border the text color — white down the side of a purple box. */
.callout.callout--noedge::before { content: none; }
.callout.callout--noedge {
  border-left: 1px solid var(--color-border);
  padding-left: var(--space-5);
}
@media (max-width: 40rem) {
  .callout.callout--noedge { padding-left: var(--space-4); }
}

/* ---------------------------------------------------------------------------
   2. MEMBERSHIP: THE GRAY NOTES UNDER THE TABLES

   > "Make gray text under tables on Membership page stretch to width of page.
   >  Tighten spacing between text under last rate table and financial aid
   >  distributed box."

   Width: the global `p { max-width: 68ch }`, which at fine-print size is
   about 540px — two-thirds of an 808px table. The notes belong to the table
   above them and now run its full width.

   Spacing: measured on staging at 1280, about 87px from the foot of the
   reduction table's note to the top of Allison's "$113,124 distributed" box.
   The note's own 16px bottom margin plus the band's 64px bottom padding, with
   her box in the block area after the band — the same two spacers doing one
   job that the picture and carousel rules above already answer, and the same
   answer: the note drops its margin when it ends the band, and a plain band
   ending in one takes 32px underneath. Guards as those rules have them — a
   tinted or colored band keeps its fill's padding. */
.table-note,
.table-note p { max-width: none; }

:where(.section, .block-section) > .container > .table-note:last-child,
:where(.section, .block-section) > .container > .table-note:last-child > :last-child {
  margin-bottom: 0;
}
:where(.section, .block-section):not(.section--tint):not(.section--filled):not([style*="--sec-bg"]):has(> .container > .table-note:last-child) {
  padding-bottom: var(--space-6);
}

/* ---------------------------------------------------------------------------
   3. A HOMEPAGE SLIDE WHOSE WORDS ARE ARTWORK

   > "I'd like to place the attached .png opposite the video on the homepage in
   >  place of the current text (including label above the heading) with the
   >  'Join today' button centered below it."

   front-page.php prints the artwork inside the slide's <h2> (it is the
   heading) and marks the copy column `--art`. Centered as a column, the
   artwork as wide as the column allows, the button under it.

   The column is `max-width: 34rem` for running copy; artwork is not running
   copy and is allowed the column's full track instead. Height-capped too: the
   lettering is wide and short, but a tall graphic dropped in here later must
   not push the button out of the slide. */
.hero-slide__content--art {
  max-width: none;
  justify-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-slide__art { margin: 0; line-height: 0; width: 100%; }
.hero-slide__art img {
  display: block;
  width: 100%;
  max-width: 36rem;
  max-height: 22rem;
  object-fit: contain;
  margin-inline: auto;
}
.hero-slide__content--art .hero-slide__actions { justify-content: center; }
@media (max-width: 60rem) {
  .hero-slide__art img { max-width: 28rem; }
}

/* ---------------------------------------------------------------------------
   4. THE EVENTS CALENDAR   (inc/calendar.php, assets/js/calendar.js)

   > "Yes, I agree with setting up a monthly calendar separate from Y360. If
   >  you're able to populate it with our holiday closures and current monthly
   >  events, that would be awesome."

   One month at a time once calendar.js has run (`.cal--js`); with no script
   every month is listed in turn. A seven-column table on wide screens, and
   under 40rem a list of only the days that have something on them — a 7-up
   grid at 390px is 50px a day, which holds a date and nothing else.

   Colors, all checked at AA for the 13px text they carry:
     event chip   ink #231f20 on #eaf2fa ........ 14.4:1
     CLOSED       Deep red #a92b31 on #fbeaea .... 5.9:1
     HOURS        Purple #92278f on #f5ecf5 ...... 6.3:1
   A closure is red AND says "Closed" — the word carries it, not the color. */
.cal { margin-top: var(--space-5); }
.cal__month + .cal__month { margin-top: var(--space-7); }
.cal--js .cal__month { display: none; }
.cal--js .cal__month.is-current { display: block; }
.cal--js .cal__month + .cal__month { margin-top: 0; }

.cal__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); margin-bottom: var(--space-4);
}
.cal__title { margin: 0; font-size: var(--fs-500); text-align: center; flex: 1 1 auto; }
.cal__nav {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--y-blue); background: #fff; color: var(--y-blue);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.cal__nav:hover:not(:disabled) { background: var(--y-blue); color: #fff; }
.cal__nav:focus-visible { outline: 3px solid var(--color-focus-ring); outline-offset: 2px; }
.cal__nav:disabled { opacity: 0.35; cursor: default; }
.cal__nav[hidden] { display: none; }

.cal__grid {
  width: 100%; table-layout: fixed; border-collapse: collapse;
  background: #fff;
}
.cal__grid th {
  font-size: var(--fs-100); font-weight: var(--fw-bold); text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--color-text-muted);
  padding: var(--space-2); text-align: left; border-bottom: 2px solid var(--y-blue);
}
.cal__grid abbr { text-decoration: none; }
.cal__day {
  vertical-align: top; height: 7.5rem; padding: var(--space-2);
  border: 1px solid var(--color-border);
}
.cal__day--out { background: var(--color-surface-2); }
.cal__day--closed { background: #fdf3f3; }
.cal__date { display: inline-block; font-weight: var(--fw-bold); font-size: var(--fs-100); min-width: 1.75em; text-align: center; line-height: 1.75em; border-radius: 50%; }
.cal__day.is-today .cal__date,
.cal__row.is-today .cal__row-date { background: var(--y-magenta); color: #fff; }

.cal__items { list-style: none; margin: var(--space-1) 0 0; padding: 0; }
.cal__item {
  font-size: var(--fs-100); line-height: var(--lh-snug);
  background: #eaf2fa; color: var(--color-ink);
  border-radius: var(--radius-sm, 4px); padding: 3px 6px; margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.cal__item:last-child { margin-bottom: 0; }
.cal__item a { color: inherit; font-weight: var(--fw-bold); }
.cal__what { font-weight: var(--fw-bold); }
.cal__time, .cal__note { display: block; }
.cal__note { font-style: italic; }
.cal__flag {
  display: block; font-weight: var(--fw-bold); text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 0.75rem;
}
.cal__item--closed { background: #fbeaea; color: var(--y-red-deep); }
.cal__item--hours { background: #f5ecf5; color: var(--y-purple); }

.cal__list, .cal__empty { display: none; }

@media (max-width: 40rem) {
  .cal__grid { display: none; }
  .cal__list { display: block; list-style: none; margin: 0; padding: 0; }
  .cal__empty { display: block; color: var(--color-text-muted); }
  .cal__row {
    display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--space-3);
    padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border);
  }
  .cal__row-date { font-weight: var(--fw-bold); font-size: var(--fs-100); align-self: start; padding: 3px 6px; border-radius: var(--radius-sm, 4px); }
  .cal__row .cal__item { font-size: var(--fs-200); }
  .cal__title { font-size: var(--fs-400); }
}

/* The editors-only box listing entries the calendar could not place. */
.cal__warn {
  border: 2px solid var(--y-red-deep); background: #fdf3f3; color: var(--color-ink);
  border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); margin-top: var(--space-4);
}
.cal__warn p { margin: 0 0 var(--space-2); max-width: none; }
.cal__warn ul { margin: 0; padding-left: 1.2em; }

/* ===========================================================================
   HOMEPAGE POP-UP AD  (CLIENT 2026-11-03) — inc/promo-popup.php,
   assets/js/promo-popup.js

   "Something with a similar look to the 'Support the Y' block in the sidebar,
   but with a border and option to include an icon … popping up in the
   righthand corner." So: `.rail-give`'s fill, slash and type, plus a border
   (`.wcy-bd`, with the weight and color she picks) and an icon at the left.

   The fill and its readable ink arrive as --promo-bg / --promo-ink from the
   same palette swatch; the button swaps the two, so it reads on any fill she
   can pick (the swatch pairs are AA by construction).

   ⚠️ z-index 900: over the sticky header (100) and the nav dropdowns, UNDER the
   lightbox overlay (1000) and the skip link (2000). Nothing else on the site is
   fixed to the bottom-right corner.
   --------------------------------------------------------------------------- */
.promo-pop {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 900;
  width: min(24rem, calc(100vw - 2 * var(--space-5)));
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--promo-bg, var(--y-magenta));
  color: var(--promo-ink, #fff);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
/* `display` is never set above, so the [hidden] attribute keeps its own
   display:none — but say it anyway: one later `display: flex` would otherwise
   publish the card with no JavaScript and no way to close it. */
.promo-pop[hidden] { display: none; }
.promo-pop.is-entering { transform: translateY(1.5rem); opacity: 0; }

/* The sidebar giving block's slash. */
.promo-pop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 62%, rgba(255,255,255,0.10) 62% 72%, transparent 72%);
  pointer-events: none;
}
.promo-pop > * { position: relative; }

.promo-pop__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-right: var(--space-6); /* clear of the close button */
}
.promo-pop__icon { flex: 0 0 3rem; width: 3rem; }
.promo-pop__icon img { display: block; width: 100%; height: auto; }
.promo-pop__body { flex: 1 1 auto; min-width: 0; }
.promo-pop__kicker {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-100);
  font-weight: var(--fw-bold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.promo-pop__text {
  margin: 0 0 var(--space-4);
  max-width: none;
  font-size: var(--fs-100);
  line-height: var(--lh-snug);
}
.promo-pop__text:last-child { margin-bottom: 0; }
.promo-pop .promo-pop__btn {
  background: var(--promo-ink, #fff);
  color: var(--promo-bg, var(--y-magenta));
}
.promo-pop .promo-pop__btn:hover { background: var(--promo-ink, #fff); color: var(--promo-bg, var(--y-magenta)); filter: brightness(0.94); }
.promo-pop .promo-pop__btn:focus-visible,
.promo-pop__close:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.promo-pop .promo-pop__btn:focus-visible { outline-color: var(--promo-ink, #fff); }

/* ⚠️ z-index 1, OR IT CANNOT BE CLICKED. `.promo-pop > *` makes the card's
   contents `position: relative` (to lift them over the slash), and the content
   box comes after this button in the source — so it painted on top of it and
   took every click. Found by the browser test pressing Close and timing out. */
.promo-pop__close {
  position: absolute;
  z-index: 1;
  top: var(--space-2);
  right: var(--space-2);
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit; font-size: 1.6rem; line-height: 1;
  cursor: pointer;
}
.promo-pop__close:hover { background: color-mix(in srgb, currentColor 16%, transparent); }

/* Phones: the full width of the screen, 12px from each edge. */
@media (max-width: 40rem) {
  .promo-pop {
    left: 12px; right: 12px; bottom: 12px;
    width: auto;
    padding: var(--space-4);
  }
}
@media (prefers-reduced-motion: reduce) {
  .promo-pop { transition: none; }
}
@media print {
  .promo-pop { display: none !important; }
}
