/*
 * Block Community Alliance — component styles.
 *
 * Ported from the approved prototype (v1/css/blocks.css + v2/css/v2.css).
 * Every value reads a theme.json preset; this file declares no custom
 * properties of its own, so theme.json stays the one source of truth.
 *
 * Prototype-only scaffolding (reviewer note pins, placeholder shading,
 * the comment widget) is not carried over.
 */

/* ==========================================================================
   BCA Homepage — Block Styles
   Organized by block. Each section here maps to a Gutenberg block or
   pattern in Phase B. No inline styles, no page-specific CSS.
   ========================================================================== */

/* --- Base ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--base);
  line-height: var(--wp--custom--line-height--body);
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 800;
  line-height: var(--wp--custom--line-height--tight);
  margin: 0 0 var(--wp--preset--spacing--sm);
  letter-spacing: -0.015em;
}

p { margin: 0 0 var(--wp--preset--spacing--sm); }
p:last-child { margin-bottom: 0; }

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

a { color: var(--wp--preset--color--brand); }

:focus-visible {
  outline: 3px solid var(--wp--preset--color--brand-light);
  outline-offset: 3px;
  border-radius: var(--wp--custom--radius--s);
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--wp--preset--color--brand); color: var(--wp--preset--color--ink-invert);
  padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--md);
  z-index: 200; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: var(--wp--preset--spacing--sm); top: var(--wp--preset--spacing--sm); }

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

/* --- Layout helpers ------------------------------------------------------ */

.wrap {
  width: min(var(--wp--custom--width--wide), 100% - (var(--wp--custom--gutter) * 2));
  margin-inline: auto;
}
.wrap--prose { max-width: var(--wp--custom--width--content); }

/* Chrome — header, utility bar, footer — tracks the screen rather than the
   content column. Capping these at the content width is what makes a big
   monitor look like a stretched phone layout. */
.wrap--chrome {
  width: min(var(--wp--custom--width--chrome), 100% - (var(--wp--custom--gutter) * 2));
  margin-inline: auto;
}

.section { padding-block: var(--wp--custom--section-y); }
.section--tint { background: var(--wp--preset--color--surface-alt); }
/* Two same-background sections in a row stack both paddings into a ~2x dead
   zone with no visual seam (Donate, the FAQ/contact-banner pairs). Collapse
   the second section's top padding so the gap is one rhythm step, not two.
   Only exact same-background neighbors collapse; banded sections keep theirs. */
.wp-block-post-content
  .section:not(.section--tint):not(.careers):not(.started):not(.story):not(.housing):not(.give)
  + .section:not(.section--tint):not(.careers):not(.started):not(.story):not(.housing),
.wp-block-post-content .section--tint + .section--tint { padding-block-start: 0; }
/* The one-line "We're hiring." band reads as dead space at full section
   height; it is a divider, not a section. */
.section:has(> .wrap > .careers-line) { padding-block: var(--wp--preset--spacing--xl); }

/* Section intro: small label + large statement, per wireframe structure */
.section-intro { margin-bottom: var(--wp--preset--spacing--xl); }
.section-intro__label {
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 700;
  color: var(--wp--preset--color--sky-text);
  letter-spacing: 0.06em;
  margin: 0 0 var(--wp--preset--spacing--xxs);
}
.section-intro__title {
  font-size: var(--wp--preset--font-size--xxl);
  max-width: 26ch;
  margin: 0;
}
.section-intro__sub {
  font-size: var(--wp--preset--font-size--base);
  color: var(--wp--preset--color--ink-muted);
  margin: var(--wp--preset--spacing--xxs) 0 0;
  max-width: 46ch;
}
.section-intro--center { text-align: center; }
.section-intro--center .section-intro__title { max-width: 24ch; margin-inline: auto; }

/* --- Buttons ------------------------------------------------------------- */

.btn,
/* --- Buttons ------------------------------------------------------------- */ .wp-block-button.btn > .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: var(--wp--preset--font-size--base);
  padding: 0.85em 1.6em;
  border-radius: var(--wp--custom--radius--pill);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--wp--custom--motion--duration) var(--wp--custom--motion--ease),
              color var(--wp--custom--motion--duration) var(--wp--custom--motion--ease),
              border-color var(--wp--custom--motion--duration) var(--wp--custom--motion--ease);
}
.btn--primary,
.wp-block-button.btn--primary > .wp-block-button__link { background: var(--wp--preset--color--brand); color: var(--wp--preset--color--ink-invert); }
.btn--primary:hover,
.wp-block-button.btn--primary:hover > .wp-block-button__link { background: #001a6b; }

.btn--donate,
.wp-block-button.btn--donate > .wp-block-button__link { background: var(--wp--preset--color--alert); color: var(--wp--preset--color--ink-invert); }
.btn--donate:hover,
.wp-block-button.btn--donate:hover > .wp-block-button__link { background: #c31f2e; }

.btn--outline,
.wp-block-button.btn--outline > .wp-block-button__link {
  background: transparent; color: var(--wp--preset--color--brand);
  border-color: var(--wp--preset--color--brand);
}
.btn--outline:hover,
.wp-block-button.btn--outline:hover > .wp-block-button__link { background: var(--wp--preset--color--brand); color: var(--wp--preset--color--ink-invert); }

.btn--on-dark,
.wp-block-button.btn--on-dark > .wp-block-button__link {
  background: var(--wp--preset--color--surface); color: var(--wp--preset--color--brand);
}
.btn--on-dark:hover,
.wp-block-button.btn--on-dark:hover > .wp-block-button__link { background: var(--wp--preset--color--sky-tint); }

.btn--ghost-on-dark,
.wp-block-button.btn--ghost-on-dark > .wp-block-button__link {
  background: transparent; color: var(--wp--preset--color--ink-invert);
  border-color: rgba(255,255,255,.7);
}
.btn--ghost-on-dark:hover,
.wp-block-button.btn--ghost-on-dark:hover > .wp-block-button__link { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--brand); }

/* Text link with underline that thickens on hover — no arrow glyphs */
.link-strong {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  color: var(--wp--preset--color--brand);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-thickness var(--wp--custom--motion--duration) var(--wp--custom--motion--ease);
}
.link-strong:hover { text-decoration-thickness: 4px; }

/* --- Utility bar --------------------------------------------------------- */

.utility {
  background: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--ink-invert);
  font-size: var(--wp--preset--font-size--xs);
}
.utility__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--wp--preset--spacing--md);
  min-height: 2.75rem;
}
.utility__tagline { margin: 0; opacity: .92; }
.utility__links { display: flex; gap: var(--wp--preset--spacing--md); align-items: center; }
.utility__links a {
  color: var(--wp--preset--color--ink-invert); text-decoration: none; font-weight: 500;
}
.utility__links a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 47.99em) {
  .utility__tagline { display: none; }
  .utility__inner { justify-content: center; }
}

/* --- Header / nav -------------------------------------------------------- */

.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--wp--preset--color--surface);
  border-bottom: 1px solid var(--wp--preset--color--line);
}
.header__inner {
  display: flex; align-items: center; gap: var(--wp--preset--spacing--lg);
  min-height: 5rem;
}
.header__logo { flex: 0 0 auto; }
.header__logo img { width: clamp(150px, 16vw, 210px); }

.nav { margin-left: auto; }
.nav__list {
  display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none; margin: 0; padding: 0;
}
.nav__link {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: var(--wp--preset--font-size--base);
  color: var(--wp--preset--color--ink);
  text-decoration: none;
  padding: 0.4em 0;
  border-bottom: 3px solid transparent;
  transition: border-color var(--wp--custom--motion--duration) var(--wp--custom--motion--ease), color var(--wp--custom--motion--duration) var(--wp--custom--motion--ease);
}
.nav__link:hover { color: var(--wp--preset--color--brand); border-bottom-color: var(--wp--preset--color--brand-light); }

.header__actions { display: flex; align-items: center; gap: var(--wp--preset--spacing--sm); }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--base);
  background: none; border: 0; cursor: pointer;
  color: var(--wp--preset--color--ink); padding: 0.5rem;
}
.menu-toggle__bars { display: grid; gap: 4px; width: 22px; }
.menu-toggle__bars span {
  display: block; height: 2.5px; background: currentColor; border-radius: 2px;
}

@media (max-width: 61.99em) {
  .nav { display: none; }
}

/* --- Side drawer menu ---------------------------------------------------
   Slides in from the left over a dimmed page, the way the Montefiore
   reference behaves. White ground, generous spacing, chevrons only on
   items that actually have children.                                    */

.drawer-scrim {
  position: fixed; inset: 0;
  background: rgba(0, 20, 70, .42);
  z-index: 155;
  opacity: 0;
  transition: opacity var(--wp--custom--motion--duration) var(--wp--custom--motion--ease);
}
.drawer-scrim[data-open="true"] { opacity: 1; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;   /* set to left:0 + translateX(-100%) to open from the left */
  width: min(33rem, 92vw);
  background: var(--wp--preset--color--surface);
  z-index: 160;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 320ms var(--wp--custom--motion--ease);
  box-shadow: 0 0 60px rgba(0, 20, 70, .18);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  transition: transform 320ms var(--wp--custom--motion--ease), visibility 0s linear 320ms;
}
.drawer[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
  transition: transform 320ms var(--wp--custom--motion--ease), visibility 0s;
}

.drawer__head {
  padding: var(--wp--preset--spacing--md) var(--wp--preset--spacing--lg);
  display: flex; justify-content: flex-end;
  position: sticky; top: 0;
  background: var(--wp--preset--color--surface);
  z-index: 2;
}
.drawer__close {
  display: inline-flex; align-items: center; gap: 0.7rem;
  flex-direction: row-reverse;
  background: none; border: 0; cursor: pointer;
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--base); color: var(--wp--preset--color--ink);
  padding: 0.5rem 0;
}
.drawer__x { position: relative; width: 18px; height: 18px; }
.drawer__x::before, .drawer__x::after {
  content: ""; position: absolute; top: 50%; left: 0;
  width: 100%; height: 2.5px; background: currentColor; border-radius: 2px;
}
.drawer__x::before { transform: rotate(45deg); }
.drawer__x::after  { transform: rotate(-45deg); }

.drawer__nav { padding: 0 var(--wp--preset--spacing--lg) var(--wp--preset--spacing--xxl); }

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

.drawer__link {
  all: unset;
  box-sizing: border-box;
  display: block; position: relative;
  width: 100%;
  background: none; border: 0; cursor: pointer;
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--xl);
  line-height: var(--wp--custom--line-height--snug);
  color: var(--wp--preset--color--ink);
  text-decoration: none;
  text-align: left;
  padding: var(--wp--preset--spacing--sm) 2.2rem var(--wp--preset--spacing--sm) 0;
  transition: color var(--wp--custom--motion--duration) var(--wp--custom--motion--ease);
}
.drawer__link:hover { color: var(--wp--preset--color--brand); }
.drawer__link--home { color: var(--wp--preset--color--brand); }

.drawer__chev {
  position: absolute; right: 0.4rem; top: 50%; margin-top: -8px;
  width: 12px; height: 12px;
  border-right: 2.5px solid var(--wp--preset--color--ink-muted);
  border-bottom: 2.5px solid var(--wp--preset--color--ink-muted);
  transform: rotate(-45deg);
  transition: transform var(--wp--custom--motion--duration) var(--wp--custom--motion--ease);
}
.drawer__link--parent[aria-expanded="true"] .drawer__chev {
  transform: rotate(45deg);
}

.drawer__sub {
  list-style: none; margin: 0 0 var(--wp--preset--spacing--sm); padding: 0;
  display: none;
}
.drawer__sub[data-open="true"] { display: block; }
.drawer__sub a {
  display: block;
  font-size: var(--wp--preset--font-size--base);
  color: var(--wp--preset--color--ink-muted);
  text-decoration: none;
  padding: 0.45rem 0;
}
.drawer__sub a:hover { color: var(--wp--preset--color--brand); text-decoration: underline; text-underline-offset: 4px; }

.drawer__rule {
  height: 1px; background: var(--wp--preset--color--line);
  margin: var(--wp--preset--spacing--sm) 0;
}

.drawer__list--secondary { display: grid; gap: var(--wp--preset--spacing--xxxs); }
.drawer__list--secondary a {
  display: block;
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--base);
  color: var(--wp--preset--color--ink);
  text-decoration: none;
  padding: 0.5rem 0;
}
.drawer__list--secondary a:hover { color: var(--wp--preset--color--brand); text-decoration: underline; text-underline-offset: 4px; }

.drawer__foot { padding-top: var(--wp--preset--spacing--xxs); }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  /* Fill the viewport below the header. 7.75rem is the utility bar plus the
     header; svh keeps it stable when the mobile address bar hides. Capped so
     it does not become absurd on a very tall monitor. */
  min-height: max(28rem, calc(100vh - 7.75rem));
  min-height: max(28rem, calc(100svh - 7.75rem));
  display: grid; align-items: center;
  overflow: hidden;
  background: var(--wp--preset--color--brand);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

/* Pause control for the background loop.
   WCAG 2.2.2 — any motion running longer than five seconds needs a way
   to stop it. The control only appears if a video actually loads. */
.hero__motion {
  position: absolute;
  right: var(--wp--preset--spacing--sm); bottom: var(--wp--preset--spacing--sm);
  z-index: 4;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(0, 16, 66, .72);
  color: var(--wp--preset--color--ink-invert);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: var(--wp--custom--radius--pill);
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  font-family: var(--wp--preset--font-family--body); font-size: var(--wp--preset--font-size--xs);
  cursor: pointer;
}
.hero__motion:hover { background: rgba(0, 16, 66, .9); }
/* the class sets display, so [hidden] needs to win explicitly */
.hero__motion[hidden] { display: none; }
.hero__motion-icon {
  width: 12px; height: 12px;
  border-left: 3.5px solid currentColor;
  border-right: 3.5px solid currentColor;
}
.hero__motion[data-paused="true"] .hero__motion-icon {
  border: 0;
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}

@media (max-width: 47.99em) {
  .hero__motion-label {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .hero__motion { padding: 0.6rem; }
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,16,66,.92) 0%,
    rgba(0,16,66,.72) 38%,
    rgba(0,16,66,.28) 72%,
    rgba(0,16,66,.18) 100%);
}
.hero__body {
  position: relative; z-index: 2;
  color: var(--wp--preset--color--ink-invert);
  padding-block: var(--wp--preset--spacing--xxxl) var(--wp--preset--spacing--xxl);
}
/* 11/17 (Sophie): on phones the homepage hero stacks like the inside pages —
   the video runs at full opacity with no overlay, and the headline follows
   below on the solid brand band (readability / ADA). */
@media (max-width: 47.9375em) {
  .hero { display: block; min-height: 0; }
  .hero__media { position: relative; inset: auto; }
  .hero__media img, .hero__media video {
    height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  }
  .hero__scrim { display: none; }
  .hero__body { padding-block: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--xl); }
  /* Keep the pause control pinned on the video itself. */
  .hero__motion { top: var(--wp--preset--spacing--sm); bottom: auto; }
}
.hero__title {
  /* The shared scale stops growing at ~1400px. The hero keeps scaling past
     that so the headline holds its proportion in a much taller banner. */
  font-size: clamp(2.99rem, 1.6rem + 3.6vw, 6rem);
  max-width: 16ch;
  margin-bottom: var(--wp--preset--spacing--md);
  text-wrap: balance;
}
.hero__sub {
  font-size: var(--wp--preset--font-size--md);
  max-width: 42ch;
  margin-bottom: var(--wp--preset--spacing--lg);
  line-height: 1.45;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--sm); }

.hero .ph::after { bottom: auto; top: var(--wp--preset--spacing--sm); left: auto; right: var(--wp--preset--spacing--sm); }

/* --- Stats band ---------------------------------------------------------- */

.stats {
  background: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--ink-invert);
  padding-block: var(--wp--preset--spacing--xl);
}
.stats__grid {
  display: grid; gap: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--md);
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.stat__num {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 800;
  font-size: var(--wp--preset--font-size--xxxl);
  line-height: 1;
  display: block;
  margin-bottom: var(--wp--preset--spacing--xxxs);
}
.stat__label {
  font-size: var(--wp--preset--font-size--xs);
  line-height: 1.35;
  opacity: .88;
  max-width: 18ch;
}

/* --- Our Story ----------------------------------------------------------- */

.story__inner { text-align: center; }
.story__title {
  font-size: var(--wp--preset--font-size--xl);
  max-width: 34ch;
  margin-inline: auto;
  color: var(--wp--preset--color--brand);
  line-height: var(--wp--custom--line-height--snug);
}

/* --- Services (2-up) ----------------------------------------------------- */

.services__grid {
  display: grid; gap: var(--wp--preset--spacing--xl);
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}
.service-card {
  display: flex; flex-direction: column;
  background: var(--wp--preset--color--surface);
  border-radius: var(--wp--custom--radius--l);
  overflow: hidden;
  border: 1px solid var(--wp--preset--color--line);
}
.service-card__media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body {
  padding: var(--wp--preset--spacing--lg);
  display: flex; flex-direction: column; gap: var(--wp--preset--spacing--sm);
  flex: 1;
}
.service-card__title { font-size: var(--wp--preset--font-size--xl); margin: 0; }
.service-card__text { margin: 0; color: var(--wp--preset--color--ink-muted); }
.service-card__foot { margin-top: auto; padding-top: var(--wp--preset--spacing--xxs); }

.service-card__badge {
  display: flex; align-items: center; gap: var(--wp--preset--spacing--xxs);
  margin-top: var(--wp--preset--spacing--xxs);
}
.service-card__badge img { width: 92px; }

/* --- Housing subsidy band ------------------------------------------------ */

.housing {
  background: var(--wp--preset--color--accent-dark);
  color: var(--wp--preset--color--ink-invert);
  padding-block: var(--wp--preset--spacing--xxl);
}
.housing__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--wp--preset--spacing--lg);
}
.housing__label {
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--xs); letter-spacing: 0.06em;
  margin: 0 0 var(--wp--preset--spacing--xxs); opacity: .95;
}
.housing__title { font-size: var(--wp--preset--font-size--xl); max-width: 26ch; margin: 0; }
.housing__text { max-width: 46ch; margin-top: var(--wp--preset--spacing--sm); }

/* --- Programs (3-up) ----------------------------------------------------- */

.programs__grid {
  display: grid; gap: var(--wp--preset--spacing--lg);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.program {
  display: flex; flex-direction: column;
  border-radius: var(--wp--custom--radius--l);
  overflow: hidden;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--line);
}
.program__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.program__media img { width: 100%; height: 100%; object-fit: cover; }

.program__body { padding: var(--wp--preset--spacing--lg); display: flex; flex-direction: column; gap: var(--wp--preset--spacing--xxs); flex: 1; }
.program__statement {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  line-height: 1.4;
  color: var(--wp--preset--color--sky-text);
  margin: 0 0 var(--wp--preset--spacing--xxxs);
}
.program__name {
  font-size: var(--wp--preset--font-size--lg);
  margin: 0 0 var(--wp--preset--spacing--xxs);
}
.program__text { margin: 0; color: var(--wp--preset--color--ink-muted); }

/* Slider inside the Resident Celebrations card */
.slider { position: relative; height: 100%; }
.slider__track { position: relative; height: 100%; }
.slider__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 450ms var(--wp--custom--motion--ease);
}
.slider__slide[data-active="true"] { opacity: 1; position: relative; }
.slider__nav {
  position: absolute; right: var(--wp--preset--spacing--xxs); bottom: var(--wp--preset--spacing--xxs);
  display: flex; gap: 4px; z-index: 4;
}
.slider__dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--wp--preset--color--surface);
  background: transparent; cursor: pointer; padding: 0;
}
.slider__dot[aria-selected="true"] { background: var(--wp--preset--color--surface); }

/* --- Careers ------------------------------------------------------------- */

.careers { background: var(--wp--preset--color--brand); color: var(--wp--preset--color--ink-invert); }
.careers__grid {
  display: grid; gap: var(--wp--preset--spacing--xxl);
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  align-items: center;
}
.careers__label {
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--xs); letter-spacing: 0.06em;
  color: var(--wp--preset--color--brand-light); margin: 0 0 var(--wp--preset--spacing--xxs);
}
.careers__title { font-size: var(--wp--preset--font-size--xxl); max-width: 18ch; }
.careers__text { max-width: 48ch; opacity: .92; margin-bottom: var(--wp--preset--spacing--lg); }
.reserved--light {
  border-color: var(--wp--preset--color--line);
  background: var(--wp--preset--color--surface-alt);
}
.reserved__tag {
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--xs); letter-spacing: 0.06em;
}
.reserved__name { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: var(--wp--preset--font-size--lg); margin: 0; }
.reserved__note { font-size: var(--wp--preset--font-size--xs); opacity: .78; margin: 0; }

/* --- Video figure -------------------------------------------------------- */

.video-figure { position: relative; margin: 0; border-radius: var(--wp--custom--radius--l); overflow: hidden; }
.video-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; }
.video-figure__play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0,32,132,.28);
  border: 0; cursor: pointer; width: 100%;
  transition: background-color var(--wp--custom--motion--duration) var(--wp--custom--motion--ease);
}
.video-figure__play:hover { background: rgba(0,32,132,.45); }
.video-figure__play span {
  width: 5rem; height: 5rem; border-radius: 50%;
  background: var(--wp--preset--color--surface);
  display: grid; place-items: center;
}
.video-figure__play svg { width: 1.6rem; height: 1.6rem; fill: var(--wp--preset--color--brand); margin-left: 4px; }
/* Visible "Play video" label under the circle (matrix: retain both control
   labels). It must not inherit the circle styling above. */
.video-figure__play { align-content: center; row-gap: var(--wp--preset--spacing--xs); }
.video-figure__play .video-figure__cta {
  width: auto; height: auto; border-radius: var(--wp--custom--radius--pill);
  background: rgba(0,16,66,.72); color: var(--wp--preset--color--ink-invert);
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--xs); letter-spacing: 0.04em;
  padding: 0.4rem 1.1rem; display: inline-block;
}

/* --- In Their Words ------------------------------------------------------ */

.words__grid {
  display: grid; gap: var(--wp--preset--spacing--xxl);
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}
.words__statement {
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  color: var(--wp--preset--color--sky-text);
  margin: var(--wp--preset--spacing--md) 0 var(--wp--preset--spacing--xxxs);
}

/* The Sharika pull-quote is a quote, not a label — it keeps its size */
.careers .pullquote {
  font-family: var(--wp--preset--font-family--heading); font-weight: 800;
  font-size: var(--wp--preset--font-size--md); line-height: var(--wp--custom--line-height--snug);
  color: var(--wp--preset--color--ink-invert);
  margin: var(--wp--preset--spacing--md) 0 var(--wp--preset--spacing--xxs);
  max-width: 30ch;
}

/* Attribution line under a quote or video */
.attrib {
  font-size: var(--wp--preset--font-size--xs);
  opacity: .85;
  margin: 0;
}
.words__headline { font-size: var(--wp--preset--font-size--lg); margin: 0 0 var(--wp--preset--spacing--sm); max-width: 24ch; }

/* --- FAQ ----------------------------------------------------------------- */

.faq__list { border-top: 1px solid var(--wp--preset--color--line); }
.faq__item { border-bottom: 1px solid var(--wp--preset--color--line); }

/* --- Getting Started ----------------------------------------------------- */

.started { background: var(--wp--preset--color--sky-tint); }
.started__inner { text-align: left; }
.started__label {
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--xs); letter-spacing: 0.06em;
  color: var(--wp--preset--color--sky-text); margin: 0 0 var(--wp--preset--spacing--xxs);
}
.started__title { font-size: var(--wp--preset--font-size--xxl); max-width: 18ch; }
.started__lede {
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--md); max-width: 40ch;
  margin-bottom: var(--wp--preset--spacing--xxs);
}
.started__text { max-width: 56ch; margin-bottom: var(--wp--preset--spacing--lg); }

/* --- Footer -------------------------------------------------------------- */

.footer { background: var(--wp--preset--color--brand); color: var(--wp--preset--color--ink-invert); padding-block: var(--wp--preset--spacing--xxl) var(--wp--preset--spacing--lg); }
.footer__top {
  display: grid; gap: var(--wp--preset--spacing--xxl);
  grid-template-columns: minmax(16rem, 1.4fr) repeat(auto-fit, minmax(9rem, 1fr));
  padding-bottom: var(--wp--preset--spacing--xxl);
}
.footer__logo img { width: 220px; margin-bottom: var(--wp--preset--spacing--md); }
.footer__tagline {
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--md); margin-bottom: var(--wp--preset--spacing--xxs);
}
.footer__desc { font-size: var(--wp--preset--font-size--xs); opacity: .82; max-width: 34ch; }

/* Name, address and phone — visible NAP backing the LocalBusiness schema */
.footer__nap {
  font-style: normal;
  font-size: var(--wp--preset--font-size--xs);
  line-height: 1.7;
  margin-top: var(--wp--preset--spacing--md);
  opacity: .95;
}
.footer__nap-name {
  display: block;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--wp--preset--color--brand-light);
  margin-bottom: var(--wp--preset--spacing--xxxs);
}
.footer__nap a {
  color: var(--wp--preset--color--ink-invert);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer__hours { display: block; opacity: .8; margin-top: var(--wp--preset--spacing--xxs); }
.footer__col h3 {
  font-size: var(--wp--preset--font-size--xs); letter-spacing: 0.06em;
  color: var(--wp--preset--color--brand-light); margin-bottom: var(--wp--preset--spacing--sm);
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wp--preset--spacing--xxs); }
.footer__col a { color: var(--wp--preset--color--ink-invert); text-decoration: none; opacity: .9; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 4px; opacity: 1; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top: var(--wp--preset--spacing--md);
  display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--md);
  justify-content: space-between;
  font-size: var(--wp--preset--font-size--xs); opacity: .82;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--md); }
.footer__legal a { color: var(--wp--preset--color--ink-invert); }

/* --- Lightbox ------------------------------------------------------------ */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,10,40,.92);
  display: none; place-items: center;
  padding: var(--wp--custom--gutter);
}
.lightbox[data-open="true"] { display: grid; }
.lightbox__inner { width: min(64rem, 100%); position: relative; }
.lightbox__inner video { width: 100%; border-radius: var(--wp--custom--radius--m); background: #000; }
.lightbox__close {
  position: absolute; top: -3rem; right: 0;
  background: none; border: 0; color: var(--wp--preset--color--ink-invert); cursor: pointer;
  font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: var(--wp--preset--font-size--md);
}
.lightbox__missing {
  background: var(--wp--preset--color--surface); border-radius: var(--wp--custom--radius--m);
  padding: var(--wp--preset--spacing--xxl); text-align: center;
}


/* --- Small-screen header ------------------------------------------------
   At 390px the logo, Donate and the Menu label together overflow the bar.
   Tighten the logo, shrink Donate, drop the word "Menu" — the bars plus
   the visually hidden label still announce correctly.                    */

@media (max-width: 30em) {
  .header__inner { min-height: 4.25rem; gap: var(--wp--preset--spacing--sm); }
  .header__logo img { width: 124px; }
  .header__actions { gap: var(--wp--preset--spacing--xxs); margin-left: auto; }
  .btn--donate,
.wp-block-button.btn--donate > .wp-block-button__link { padding: 0.7em 1.05em; font-size: var(--wp--preset--font-size--xs); }
  .menu-toggle { padding: 0.4rem; }
  .menu-toggle__label { display: none; }
  .hero__title { font-size: var(--wp--preset--font-size--xxxl); }
  .utility__inner { min-height: 2.4rem; }
}

/* --- Footer on small screens --------------------------------------------
   The desktop grid uses a 16rem minimum on the logo column, which forces
   the row wider than a phone and clips the link columns. Stack instead —
   two short lists don't warrant an accordion.                            */

@media (max-width: 47.99em) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--xl);
    padding-bottom: var(--wp--preset--spacing--xl);
  }
  .footer__logo img { width: 180px; }
  .footer__desc { max-width: none; }
  .footer__col ul { gap: var(--wp--preset--spacing--xs); }
  .footer__bottom { flex-direction: column; gap: var(--wp--preset--spacing--sm); }
  .footer__legal { flex-direction: column; gap: var(--wp--preset--spacing--xxs); }
}

/* --- Link row ------------------------------------------------------------
   Related links sitting on one line with a rule between them, rather than
   stacking as loose paragraphs. The icon states what kind of destination it
   is — a video plays, a listing goes somewhere.                          */

.link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wp--preset--spacing--md);
  margin-top: var(--wp--preset--spacing--lg);
  padding-top: var(--wp--preset--spacing--md);
  border-top: 1px solid var(--wp--preset--color--line);
}

.link-row__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  color: var(--wp--preset--color--brand);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-thickness var(--wp--custom--motion--duration) var(--wp--custom--motion--ease);
}
.link-row__item:hover { text-decoration-thickness: 4px; }

.link-row__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--ink-invert);
}
.link-row__icon svg { width: 0.7rem; height: 0.7rem; fill: currentColor; }

/* Divider between items */
.link-row__rule {
  width: 1px;
  align-self: stretch;
  min-height: 1.4rem;
  background: var(--wp--preset--color--line);
}

@media (max-width: 30em) {
  .link-row { gap: var(--wp--preset--spacing--sm); }
  .link-row__rule { display: none; }
  .link-row { flex-direction: column; align-items: flex-start; }
}


/* ── Round two (v2) ─────────────────────────────────────── */

/* ==========================================================================
   v2 — revision round two
   Loads AFTER tokens.css and blocks.css, which are inherited from ../v1/.
   Everything here traces to a specific comment left on v1. Nothing in this
   file is a new design idea; the design language is unchanged from v1.
   ========================================================================== */

/* --- NASET accreditation mark --------------------------------------------
   Comment: "the NASET logo is too small — can we try it larger, or in the
   footer?" Both are shown so the two can be compared side by side. The
   source file (the new School of Excellence mark, 11/18) is 885x456 on a
   transparent background, so 150px is comfortably inside its native size
   and stays sharp on a 2x screen.                                        */

.service-card__badge--lg img { width: 150px; }

/* --- Pals With Paws crops ------------------------------------------------
   Comment: the dog is cut off, and someone is clipped at the edge of the
   baking photo. The pair cells are half of a 3:2 frame, so each cell is
   roughly 3:4 and a centerd crop of a landscape photograph loses both
   edges. Shifting the focal point keeps the subject and drops the clipped
   arm at the left edge out of frame. A proper fix is a crop supplied at
   the right ratio — see the note on the section.                         */

.pair--baking img    { object-position: 62% 42%; }
.pair--outdoors img  { object-position: 38% 50%; }

/* --- Mobile first screen -------------------------------------------------
   Comment: "on my phone the stats, the section under it and the header are
   taking over the site — I can't get to the program buttons."

   Three things were stacking up: a hero sized to the full viewport, a
   stats band running one stat per row at display size, and a sticky
   header on top of both. Together they filled roughly two and a half
   screens before the first service card appeared.

   The hero is capped so the blue stats band breaks the bottom of the
   screen — that edge is what tells someone there is more page. The stats
   go two-up with a smaller numeral, which halves the band's height.     */

@media (max-width: 47.99em) {

  /* Stacked mobile hero (see the block by .hero__body): the video needs no
     viewport-height floor once the text sits below it. */
  .hero { min-height: 0; }
  .hero__body { padding-block: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--xl); }
  .hero__sub { margin-bottom: var(--wp--preset--spacing--md); }

  .stats { padding-block: var(--wp--preset--spacing--lg); }
  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--wp--preset--spacing--md) var(--wp--preset--spacing--sm);
  }
  .stat__num { font-size: var(--wp--preset--font-size--xl); }
  .stat__label { font-size: 0.78rem; max-width: 16ch; }

  /* The two service cards are the point of the page for a parent. Tighten
     the run-up so the first one is reachable in one swipe. */
  .story { padding-block: var(--wp--preset--spacing--xl); }
  .story__title { font-size: var(--wp--preset--font-size--lg); }
}

@media (max-width: 30em) {
  /* blocks.css bumps the hero title back up at this width; keep it in
     proportion to the shorter hero. */
  .hero__title { font-size: var(--wp--preset--font-size--xxl); }
}

/* ==========================================================================
   Round two, part two — Kim's 9/14 pass and the 9/21 copy matrix
   ========================================================================== */

/* --- Pals With Paws, single frame ----------------------------------------
   Kim asked for one image instead of two. The chosen frame is portrait
   (3:4) sitting in a 3:2 card slot, so the focal point is held on the
   subject rather than centerd, which would crop to her midriff.         */

.program__media--portrait img { object-position: 50% 30%; }

/* --- Careers testimonial -------------------------------------------------
   Kim: no video plays on the homepage. The portrait and pull quote become
   one link through to Sharika's full testimonial on the Careers page.
   The whole block is the target, so it needs its own focus treatment —
   a link this large with no visible state is a keyboard trap in spirit. */

.testimonial-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--wp--custom--radius--m);
}
.testimonial-link:focus-visible {
  outline: 3px solid var(--wp--preset--color--brand-light);
  outline-offset: 6px;
}
.testimonial-link .video-figure { transition: transform 240ms var(--wp--custom--motion--ease); }
.testimonial-link:hover .video-figure { transform: translateY(-3px); }

/* 11/18: the "Read Sharika's story" line is gone (there is no story page
   for her), so the link is now the photo alone. */

.words__text { margin-top: var(--wp--preset--spacing--xxs); }

.words__quote {
  margin: var(--wp--preset--spacing--sm) 0 0;
  padding-left: var(--wp--preset--spacing--sm);
  border-left: 3px solid var(--wp--preset--color--accent-dark);
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: var(--wp--preset--font-size--md);
  line-height: var(--wp--custom--line-height--snug);
  color: var(--wp--preset--color--brand);
}

/* Getting Started — two actions now, so they need to sit on a row that
   wraps cleanly on a phone rather than butting against each other. */
.started__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--xs);
}

/* ==========================================================================
   The v1a features Kim confirmed on 9/14
   "Call button and footer locations are useful and should stay... the logo
   animation stays and the scroll movement goes. (My) Final answers."
   The scroll movement and the counting numbers are deliberately absent.
   ========================================================================== */

/* --- Call button, fixed to the bottom on phones --------------------------
   The wireframe gave Donate the only permanent action. For a parent looking
   for services, calling is the higher-value one, and on a phone it is a
   single tap.                                                            */

.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  display: none;
  background: var(--wp--preset--color--surface);
  border-top: 1px solid var(--wp--preset--color--line);
  padding: var(--wp--preset--spacing--xxs) var(--wp--preset--spacing--sm);
  padding-bottom: calc(var(--wp--preset--spacing--xxs) + env(safe-area-inset-bottom, 0px));
  gap: var(--wp--preset--spacing--xxs);
  box-shadow: 0 -4px 20px rgba(0, 20, 70, .12);
}
.actionbar a {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--base);
  text-decoration: none;
  padding: 0.8em 1em;
  border-radius: var(--wp--custom--radius--pill);
  min-height: 48px;
}
.actionbar__call  { background: var(--wp--preset--color--brand); color: var(--wp--preset--color--ink-invert); }
.actionbar__start {
  background: transparent; color: var(--wp--preset--color--brand);
  border: 2px solid var(--wp--preset--color--brand);
}
.actionbar svg { width: 1.05em; height: 1.05em; fill: currentColor; }

@media (max-width: 47.99em) {
  .actionbar { display: flex; }
  .footer { padding-bottom: calc(var(--wp--preset--spacing--xxl) + 3.5rem); }
  /* Pages without the bar (Donate) don't need the extra room. */
  body:not(:has(.actionbar)) .footer { padding-bottom: var(--wp--preset--spacing--xxl); }
}

/* --- Phone in the utility bar ------------------------------------------- */

.utility__phone {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--wp--preset--color--ink-invert); text-decoration: none; font-weight: 600;
}
.utility__phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.utility__phone svg { width: 0.95em; height: 0.95em; fill: currentColor; }

@media (max-width: 30em) {
  /* the tagline gives way before the number does */
  .utility__tagline { display: none; }
}

/* --- Logo animation opener ----------------------------------------------
   Kim reported the resize looking wrong on her phone. On a narrow screen
   the hero is a different shape than the video, so object-fit: cover was
   cropping the mark. Contain against the video's own background color
   letterboxes invisibly instead, and the logo always arrives whole.     */

.hero__brand {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--wp--preset--color--brand);
  z-index: 5;
  transition: opacity 800ms var(--wp--custom--motion--ease);
}
.hero__brand[data-done="true"] { opacity: 0; pointer-events: none; }

@media (max-width: 47.99em) {
  .hero__brand { object-fit: contain; }
}

/* The headline waits behind it, then arrives as the mark clears. */
.hero__body,
.hero--split__inner { transition: opacity 600ms var(--wp--custom--motion--ease); }
.hero[data-opening="true"] .hero__body,
.hero[data-opening="true"] .hero--split__inner { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .hero__brand { display: none; }
  .hero[data-opening="true"] .hero__body,
  .hero[data-opening="true"] .hero--split__inner { opacity: 1; }
}

/* --- Block mark as background texture -----------------------------------
   Kim likes it and deferred the final call to Sophie and Jins. Decorative
   only: it carries no meaning and sits under the content.               */

:is(.watermark-right, .watermark-left) { position: relative; overflow: hidden; }
:is(.watermark-right, .watermark-left) > * { position: relative; z-index: 1; }

:is(.watermark-right, .watermark-left)::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(18rem, 34vw, 34rem);
  aspect-ratio: 1 / 1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}
.watermark-right::before { right: -6%; }
.watermark-left::before  { left: -8%; transform: translateY(-50%) scaleX(-1); }

/* A single-color mark reads as texture; the full-color one at low opacity
   turns into a muddy shape. */
.story::before,
.started::before {
  background-image: url("../../assets/brand/logos/BlockLogoFinal_Icon_Black.svg");
  opacity: 0.045;
}
.careers::before {
  background-image: url("../../assets/brand/logos/BlockLogoFinal_Icon_White.svg");
  opacity: 0.06;
}

@media (max-width: 47.99em) {
  :is(.watermark-right, .watermark-left)::before { width: clamp(14rem, 62vw, 20rem); }
  .watermark-right::before { right: -22%; }
  .watermark-left::before  { left: -24%; }
}

.drawer:focus { outline: none; }
.drawer :is(.drawer__link, .drawer__close, .drawer__sub a, .drawer__list--secondary a, .drawer__foot .btn):focus,
.drawer :is(.drawer__link, .drawer__close, .drawer__sub a, .drawer__list--secondary a, .drawer__foot .btn):focus-visible,
.drawer__foot .wp-block-button.btn):focus > .wp-block-button__link,
.drawer__foot .wp-block-button.btn):focus-visible > .wp-block-button__link {
  outline: none;
}
.drawer :is(.drawer__link, .drawer__close, .drawer__sub a, .drawer__list--secondary a):focus-visible {
  color: var(--wp--preset--color--brand);
}


/* ══════════════════════════════════════════════════════════════════════════
   WordPress compatibility

   The prototype was hand-written HTML. WordPress wraps the same content in
   extra elements, and the ported rules were written for the bare version.
   Everything below reconciles the two. Nothing here is a design decision.
   ══════════════════════════════════════════════════════════════════════════ */

/* --- Block gap -------------------------------------------------------------
   The prototype has no inter-element margins of its own: every space on the
   page comes from a rule above — heading and paragraph bottom margins,
   section padding, each grid's own gap. WordPress's blockGap would add a
   24px margin between every pair of sibling blocks on top of that, which
   showed up as shifted grid tiles (all but the first child pushed down),
   an off-center Donate pill, and phantom gaps between full-width bands.
   It is turned off at the source — theme.json sets blockGap to 0 — so no
   counter-rule is needed here. */

/* --- Template part wrappers -------------------------------------------------
   The block theme wraps each template part in <div class="wp-block-template-
   part">. The header part holds the utility bar plus the sticky header, so
   that wrapper is only 125px tall — and position: sticky can only travel
   within its own parent, so the header never stuck. display: contents
   dissolves the wrapper's box: the utility bar and header become layout
   children of the page itself, exactly as they are in the prototype, and
   the header sticks to the viewport. The wrappers carry no styling of
   their own, so nothing else changes. */
.wp-block-template-part { display: contents; }

/* --- Chassis measure rule ----------------------------------------------------
   pi-chassis caps content paragraphs at 68ch for readability on sites that
   run on the chassis alone. This design sets its own measure per component
   (.prose, .story__title, every card), and the cap left centered labels —
   the "Our Story" eyebrow — anchored to the left inside a 68ch box. Same
   selector, later sheet, so the chassis default is simply switched off. */
.wp-block-post-content p:not([class*="has-"]) { max-width: none; }

/* --- Images --------------------------------------------------------------
   The image block renders <figure class="wp-block-image"><img></figure>.
   The media boxes size and crop the <img> directly, so the figure sat between
   them as an unstyled block and the crop never happened: a 1440x960 image
   inside a 1440x776 hero, overflowing instead of covering.

   display:contents removes the figure's box while keeping the image in place,
   so the media box lays out the image exactly as it did in the prototype.
   A figure with a caption keeps its box, because the caption is positioned
   against it. */
[class*="__media"] > figure:is(.wp-block-image, .wp-block-video):not(:has(> figcaption)) {
  display: contents;
}
[class*="__media"] > figure:is(.wp-block-image, .wp-block-video) { margin: 0; }

/* Any image or video inside a media box fills and crops it, however it got
   there — a block, a pattern, or a client dragging a replacement in. */
[class*="__media"] :is(img, video) {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* --- Buttons -------------------------------------------------------------
   The wrapper keeps the class but must not look like a button; the pill is
   on the link (paired in automatically above). */
.wp-block-button.btn {
  background: none; border: 0; padding: 0; border-radius: 0;
  display: inline-flex;
}
.wp-block-button.btn > .wp-block-button__link { width: 100%; }
.wp-block-buttons { gap: var(--wp--preset--spacing--sm); }

/* --- Headings on dark bands ----------------------------------------------
   theme.json sets heading colour to brand blue for the whole site. An
   explicit colour beats the band's inherited white, so "Living
   independently?" came out blue on green. Inside a dark band a heading takes
   the band's colour. */
.utility :is(h1, h2, h3, h4, h5, h6),
.hero__inner :is(h1, h2, h3, h4, h5, h6),
.hero__body :is(h1, h2, h3, h4, h5, h6),
.stats :is(h1, h2, h3, h4, h5, h6),
.housing :is(h1, h2, h3, h4, h5, h6),
.careers :is(h1, h2, h3, h4, h5, h6),
.footer :is(h1, h2, h3, h4, h5, h6) { color: inherit; }

/* --- FAQ accordion -------------------------------------------------------
   The prototype used a scripted button/panel pair (.faq__q / .faq__a).
   The page uses the core details block, which needs no script and is
   keyboard accessible as it stands, so the styling moves to <summary>. */
.faq__item { padding: 0; }
.faq__item > summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--wp--preset--spacing--md);
  padding: var(--wp--preset--spacing--md) 0;
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--md);
  line-height: var(--wp--custom--line-height--snug);
  color: var(--wp--preset--color--ink);
}
.faq__item > summary::-webkit-details-marker { display: none; }
/* The marker is the prototype's plus, drawn from the summary's pseudo
   elements, turning into a multiply sign when open. */
.faq__item > summary { position: relative; padding-right: 2.4rem; }
.faq__item > summary::before,
.faq__item > summary::after {
  content: ""; position: absolute; right: 0.5rem; top: 50%;
  background: var(--wp--preset--color--brand); border-radius: 2px;
  transition: transform var(--wp--custom--motion--duration) var(--wp--custom--motion--ease);
}
.faq__item > summary::before { width: 1.5rem; height: 3px; transform: translateY(-50%); }
.faq__item > summary::after  { width: 3px; height: 1.5rem; right: 1.15rem; transform: translate(50%, -50%); }
.faq__item[open] > summary::before { transform: translateY(-50%) rotate(45deg); }
.faq__item[open] > summary::after  { transform: translate(50%, -50%) rotate(45deg); }
.faq__item > summary + * {
  padding-bottom: var(--wp--preset--spacing--md);
  max-width: 62ch; color: var(--wp--preset--color--ink-muted);
}

/* --- Dwayne's arc, while frames are missing -------------------------------
   The arc is a three-frame row. Two of the three are archival photographs
   Kim has not found yet, so with one frame the row leaves it stranded at a
   third of the width. Until the others arrive the frames it does have share
   the row. Nothing changes once all three are in. */


/* --- Visually hidden -----------------------------------------------------
   WordPress ships .screen-reader-text and this theme's markup uses it. The
   prototype used .visually-hidden, and so does a lot of pasted content, so
   the two are kept as one rule rather than leaving a name that does nothing. */
.visually-hidden, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* --- Visually hidden -----------------------------------------------------
   WordPress ships .screen-reader-text and this theme's markup uses it. The
   prototype used .visually-hidden, and so does a lot of pasted content, so
   the two are kept as one rule rather than leaving a name that does nothing. */
.visually-hidden, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* --- Group blocks --------------------------------------------------------
   Core's flow layout puts vertical margins between children. The ported
   sections manage their own rhythm, so the two fought over every gap. */
.hero__actions, .started__actions, .utility__links, .header__actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--wp--preset--spacing--sm);
}
.hero__actions > *, .started__actions > *, .utility__links > *, .header__actions > * {
  margin-block: 0;
}


/* ══════════════════════════════════════════════════════════════════════════
   Inner pages

   The prototype drew only the homepage. These carry its system — the same
   tokens, bands, and intro shapes — onto every other page of the site.
   ══════════════════════════════════════════════════════════════════════════ */

/* --- Page hero -------------------------------------------------------------
   The inner-page version of the homepage banner: a brand band with the H1
   and a one-line lede, so every page opens the same way. */
.page-hero {
  background: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--ink-invert);
  padding-block: var(--wp--preset--spacing--xxl) var(--wp--preset--spacing--xl);
}
.page-hero :is(h1, h2, h3, h4, h5, h6) { color: inherit; }
.page-hero h1 { max-width: 22ch; margin: 0; }
.page-hero__kicker {
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--xs); letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--brand-light);
  margin: 0 0 var(--wp--preset--spacing--xxs);
}
/* link-strong on a dark band (the homepage housing banner's "Learn more"
   per the 10/21 matrix: a text link, not a button). */
.link-strong--on-dark { color: var(--wp--preset--color--ink-invert); }

/* The kicker is a real breadcrumb on child pages: ancestors are links,
   dressed exactly like the label so the design does not change. */
.page-hero__kicker a { color: inherit; text-decoration: none; }
.page-hero__kicker a:hover,
.page-hero__kicker a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
/* The `p` in the selector is load-bearing: the chassis caps content
   paragraphs with `.wp-block-post-content p:not([class*="has-"])` and this
   sheet switches that cap off at the same specificity — so a bare class
   selector loses, and the lede ran the full width of every banner (Steve,
   10/14). Matching that specificity here, in the later sheet, wins. */
.page-hero p.page-hero__lede {
  font-size: var(--wp--preset--font-size--md);
  max-width: 52ch; opacity: .92;
  margin: var(--wp--preset--spacing--sm) 0 0;
}
/* A second lede line (the 10/10 ARS hero has one) is a continuation of the
   first, not a new thought — it hugs the lede and reads a step smaller. */
.page-hero p.page-hero__lede + p.page-hero__lede {
  margin-top: var(--wp--preset--spacing--xxs);
  font-size: var(--wp--preset--font-size--sm);
}
/* Air between the lede and the button row, on every banner. */
.page-hero .hero__actions { margin-top: var(--wp--preset--spacing--md); }

/* --- Photo page hero ---------------------------------------------------------
   The matrices spec the service-page heroes as Cover blocks: a photograph
   behind the title with a brand scrim, like the homepage banner at page
   scale. The flat band above stays as the fallback for pages with no image. */
.page-hero--photo {
  position: relative; overflow: hidden;
  /* Centred, not bottom-aligned (Sophie 11/18): at align-items:end the copy
     sat on the hero's floor with all the slack above it — 127px over / 0
     under on Pals With Paws. */
  display: grid; align-items: center;
  /* 11/17 (Sophie): taller banners across the board so the photo reads —
     the old 42vh band cropped too much of every image. */
  min-height: clamp(23rem, 52vh, 36rem);
  padding-block: 0;
}
/* About banner: show the bottom of the building (it was cut off). */
.page-hero--photo .page-hero__media img[src*="about-hero-stillwell"] { object-position: 50% 72%; }
.page-hero--photo .page-hero__media { position: absolute; inset: 0; }
/* People photos carry their faces in the upper third; a centered crop in a
   short hero band beheads them (first seen on the clinic's PT photo). */
.page-hero--photo .page-hero__media img { object-position: 50% 30%; }
/* 11/17 (Sophie): the scrim runs left-to-right — dark behind the text
   column, fading to nothing on the right so the photograph pops. */
.page-hero--photo .page-hero__scrim {
  position: absolute; inset: 0;
  /* The colour is a variable so one page can change it without a second
     gradient: brand navy everywhere by default. */
  background: linear-gradient(
    to right,
    rgb(var(--bca-hero-scrim, 0 16 66) / .92) 0%,
    rgb(var(--bca-hero-scrim, 0 16 66) / .72) 34%,
    rgb(var(--bca-hero-scrim, 0 16 66) / .3) 62%,
    rgb(var(--bca-hero-scrim, 0 16 66) / 0) 84%);
}
/* Green overlay, per page (Steve 11/18, Adult Services): add page-hero--green
   to the hero section. A deep leaf green rather than the brand green itself,
   because white copy over brand green on a bright photo falls under AA; this
   one holds about 5.7:1 behind the text column. On phones, where the photo
   stacks above the copy with no overlay, the band under it goes green too. */
.page-hero--green { --bca-hero-scrim: 52 88 0; }
/* The green stops short of the people (Steve 11/18: "much less green on
   the right"). It is solid under the copy and gone by 54% of the width,
   where the navy default runs to 84%. To make that safe the lede is held
   to 40ch so the copy ends before the fade, and the title and lede carry a
   soft shadow for the stretch of title that reaches into it. */
.page-hero--photo.page-hero--green .page-hero__scrim {
  background: linear-gradient(
    to right,
    rgb(var(--bca-hero-scrim) / .92) 0%,
    rgb(var(--bca-hero-scrim) / .86) 26%,
    rgb(var(--bca-hero-scrim) / .5) 39%,
    rgb(var(--bca-hero-scrim) / .12) 48%,
    rgb(var(--bca-hero-scrim) / 0) 54%);
}
.page-hero.page-hero--green p.page-hero__lede { max-width: 40ch; }
.page-hero--photo.page-hero--green :is(h1, .page-hero__lede) { text-shadow: 0 1px 14px rgb(24 44 0 / .5); }
@media (max-width: 47.9375em) {
  .page-hero--photo.page-hero--green { background: var(--wp--preset--color--accent-dark); }
}
/* Adult Services banner: the people are on the right of the classroom
   photo and the green wall is on the left, under the copy. */
.page-hero--photo .page-hero__media img[src*="about-dsp-classroom"] { object-position: 88% 22%; }
/* "page-hero--photo-right" (Block 11/18, Adult Services): the photo starts
   38% of the way across instead of at the left edge, so the people sit
   clear of the title and copy. The band behind the copy is the overlay
   colour itself, and the overlay fades the photo's left edge into it. */
@media (min-width: 48em) {
  .page-hero--photo.page-hero--photo-right { background: rgb(var(--bca-hero-scrim, 0 16 66)); }
  .page-hero--photo.page-hero--photo-right .page-hero__media { inset: 0 0 0 38%; }
  .page-hero--photo.page-hero--photo-right .page-hero__media img[src*="about-dsp-classroom"] { object-position: 70% 24%; }
  .page-hero--photo.page-hero--photo-right .page-hero__scrim {
    background: linear-gradient(
      to right,
      rgb(var(--bca-hero-scrim, 0 16 66) / 1) 0%,
      rgb(var(--bca-hero-scrim, 0 16 66) / 1) 38%,
      rgb(var(--bca-hero-scrim, 0 16 66) / .55) 43%,
      rgb(var(--bca-hero-scrim, 0 16 66) / 0) 52%);
  }
}
/* Sky Blue reads fine on the flat band; over a photograph it vanishes into
   bright sky, so the kicker goes white there. */
.page-hero--photo .page-hero__kicker { color: var(--wp--preset--color--ink-invert); opacity: .88; }
.page-hero--photo > .wrap {
  position: relative; z-index: 2;
  /* Symmetric, so centring isn't pulled off by uneven padding. */
  padding-block: var(--wp--preset--spacing--xl);
}
/* 11/17 (Sophie): on phones the photo hero stacks instead of cropping —
   the full-bleed image (or video) sits on top with no overlay, and the
   banner text follows below on the solid brand band, like the homepage. */
@media (max-width: 47.9375em) {
  .page-hero--photo {
    display: block;
    min-height: 0;
  }
  .page-hero--photo .page-hero__media { position: static; inset: auto; }
  .page-hero--photo .page-hero__media :is(img, video) {
    display: block; width: 100%;
    aspect-ratio: 4 / 3; object-fit: cover;
  }
  .page-hero--photo .page-hero__scrim { display: none; }
  .page-hero--photo > .wrap {
    padding-block: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--xl);
  }
}

/* --- Reading column --------------------------------------------------------
   Long-form content: a measure a person can actually read, with the page's
   own rhythm rather than the block defaults. */
.prose { max-width: 62ch; }
.prose > * + * { margin-block-start: var(--wp--preset--spacing--sm); }
.prose > :is(h2, h3) { margin-block-start: var(--wp--preset--spacing--xl); }
/* A heading straight after its eyebrow label stays tight to it — the big
   margin is for a new topic, and the label IS the new topic's first line. */
.prose > .section-intro__label + :is(h2, h3) { margin-block-start: 0; }
.prose h2 { font-size: var(--wp--preset--font-size--xl); }
.prose h3 { font-size: var(--wp--preset--font-size--lg); }
.prose ul, .prose ol { padding-inline-start: 1.2em; }
.prose li + li { margin-block-start: var(--wp--preset--spacing--xxs); }

/* --- Split: content beside a card ----------------------------------------- */
.split {
  display: grid; gap: var(--wp--preset--spacing--xl);
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 1fr);
  align-items: start;
}
@media (max-width: 47.99em) { .split { grid-template-columns: 1fr; } }

.info-card {
  background: var(--wp--preset--color--sky-tint);
  border-radius: var(--wp--custom--radius--l);
  padding: var(--wp--preset--spacing--lg);
}
.info-card > h2, .info-card > h3 {
  font-size: var(--wp--preset--font-size--lg);
  margin: 0 0 var(--wp--preset--spacing--sm);
}
/* A heading part-way down a card needs air above it — "Let's Connect" was
   sitting flush against the email address above it (Sophie 11/18). */
.info-card > :is(h2, h3):not(:first-child) { margin-block-start: var(--wp--preset--spacing--lg); }
.info-card address { font-style: normal; }

/* Social icons inside a light card: same block as the footer, laid out in a
   row, with the circle re-tinted for a light background. */
.info-card .footer__social ul { flex-direction: row; flex-wrap: wrap; gap: var(--wp--preset--spacing--sm); }
.info-card .footer__social a { background: rgba(0, 16, 66, 0.08); color: var(--wp--preset--color--brand); }
.info-card .footer__social a:hover,
.info-card .footer__social a:focus-visible { background: rgba(0, 16, 66, 0.16); }

/* Contact: the form is capped at 40rem, but its grid column ran to ~905px on
   a wide screen, leaving a dead strip between the form and the card
   (Steve 11/18). Size both columns to their content and centre the pair. */
@media (min-width: 62em) {
  .split:has(> .contact-form) {
    grid-template-columns: minmax(0, 40rem) minmax(18rem, 30rem);
    justify-content: center;
    column-gap: var(--wp--preset--spacing--xxl);
  }
}
.info-card .footer__nap { display: block; margin-top: var(--wp--preset--spacing--sm); }
.info-card .footer__nap-name {
  display: block;
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--brand);
}
/* The NAP block was styled for the footer's dark blue, where its links are
   white. On the card's pale blue, white text is invisible ink. */
.info-card .footer__nap { color: var(--wp--preset--color--ink); }
.info-card .footer__nap a { color: var(--wp--preset--color--sky-text); }
.info-card .footer__hours { color: var(--wp--preset--color--ink-muted); }

/* The contact form, wherever [pi_form] drops it.

   Gravity's own CSS is switched off (bca-core pins the legacy markup and
   disables the plugin stylesheet), so everything the form wears is here.
   Spacing is one grid gap, not per-field margins — Steve 10/8: the stock
   form had "way too much space". */
.pi-form { max-width: 40rem; }
.pi-form .gform_fields {
  display: grid; gap: var(--wp--preset--spacing--xs);
  margin: 0; padding: 0; list-style: none;
}
.pi-form .gfield { margin: 0; }
.pi-form .gform_wrapper input:not([type=submit]),
.pi-form .gform_wrapper select,
.pi-form .gform_wrapper textarea {
  width: 100%;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius--s);
  padding: 0.6em 0.85em;
  font: inherit;
  line-height: 1.4;
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--ink);
}
.pi-form .gform_wrapper textarea { min-height: 8.5rem; }
.pi-form .gform_wrapper .gfield_label {
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--sm);
  display: block; margin-block-end: 0.3em;
}
.pi-form .gfield_required { color: var(--wp--preset--color--alert); margin-inline-start: 0.2em; }
.pi-form .gfield_description,
.pi-form .gfield_validation_message,
.pi-form .validation_error {
  font-size: var(--wp--preset--font-size--xs);
  color: var(--wp--preset--color--ink-muted);
  margin-block-start: 0.3em;
}
.pi-form .gfield_validation_message,
.pi-form .validation_error { color: var(--wp--preset--color--alert); }
.pi-form .gform_footer { margin-block-start: var(--wp--preset--spacing--sm); padding: 0; }
/* The Submit is the same pill as every other button on the site. */
.pi-form .gform_wrapper :is(input[type=submit], button[type=submit], .gform_button) {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--ink-invert);
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--base);
  border: 2px solid transparent; border-radius: var(--wp--custom--radius--pill);
  padding: 0.85em 1.6em; cursor: pointer;
  transition: background-color var(--wp--custom--motion--duration) var(--wp--custom--motion--ease);
}
.pi-form .gform_wrapper :is(input[type=submit], button[type=submit], .gform_button):hover { background: #001a6b; }

/* --- Video library: filter + grid -------------------------------------------
   Proposal §03: YouTube-powered, filterable, lightbox playback. Desktop
   filters are pill buttons on one scrollable row with arrows when the row
   overflows (Steve, 10/8); on a phone the row gives way to a dropdown. */
.vfilter { display: flex; align-items: center; gap: var(--wp--preset--spacing--xxs); margin-block-end: var(--wp--preset--spacing--md); }
.vfilter__track {
  display: flex; gap: var(--wp--preset--spacing--xxs);
  overflow-x: auto; flex: 1; min-width: 0;
  scrollbar-width: none;
  padding-block: 4px; /* keeps focus rings from clipping */
}
.vfilter__track::-webkit-scrollbar { display: none; }
.vfilter__pill {
  flex: 0 0 auto; white-space: nowrap;
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--brand);
  background: var(--wp--preset--color--surface);
  border: 2px solid var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius--pill);
  padding: 0.5em 1.1em; cursor: pointer;
  transition: background-color var(--wp--custom--motion--duration) var(--wp--custom--motion--ease),
              color var(--wp--custom--motion--duration) var(--wp--custom--motion--ease);
}
.vfilter__pill:hover { border-color: var(--wp--preset--color--brand); }
.vfilter__pill[aria-pressed="true"] {
  background: var(--wp--preset--color--brand);
  border-color: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--ink-invert);
}
.vfilter__arrow {
  flex: 0 0 auto; width: 2.4rem; height: 2.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wp--preset--color--surface);
  border: 2px solid var(--wp--preset--color--line);
  border-radius: 50%; cursor: pointer;
}
.vfilter__arrow:hover { border-color: var(--wp--preset--color--brand); }
.vfilter__arrow[disabled] { opacity: 0.35; cursor: default; }
.vfilter__chev {
  width: 9px; height: 9px;
  border-right: 2.5px solid var(--wp--preset--color--brand);
  border-bottom: 2.5px solid var(--wp--preset--color--brand);
  transform: rotate(-45deg) translate(-1px, -1px);
}
.vfilter__arrow--prev .vfilter__chev { transform: rotate(135deg) translate(-1px, -1px); }
.vfilter__selectwrap { display: none; flex: 1; }
.vfilter__select {
  width: 100%;
  font: inherit; font-weight: 600;
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--surface);
  border: 2px solid var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius--s);
  padding: 0.6em 0.85em;
}
@media (max-width: 47.99em) {
  .vfilter__track, .vfilter__arrow { display: none; }
  .vfilter__selectwrap { display: block; }
}

.vgrid {
  display: grid; gap: var(--wp--preset--spacing--lg);
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}
.vcard[hidden] { display: none; }
.vcard .video-figure { aspect-ratio: 16 / 9; }
.vcard .video-figure img { width: 100%; height: 100%; object-fit: cover; }
.vcard__cat {
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--xs);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--wp--preset--color--sky-text);
  margin: var(--wp--preset--spacing--xxs) 0 0;
}
.vcard__title { font-size: var(--wp--preset--font-size--lg); margin: 0.15em 0 0; }
.lightbox__embed { width: min(90vw, 960px); aspect-ratio: 16 / 9; height: auto; display: block; }
/* Vertical films (YouTube Shorts): height-led so a phone-shaped frame fits the screen. */
.lightbox__embed--portrait { width: min(90vw, calc(80vh * 9 / 16)); aspect-ratio: 9 / 16; margin-inline: auto; border-radius: var(--wp--custom--radius--m); }
/* Shrink the lightbox box to the vertical player so Close sits at its corner. */
.lightbox__inner:has(.lightbox__embed--portrait) { width: fit-content; }
.vcard .video-figure { background: var(--wp--preset--color--ink); }

/* --- Hub cards: a parent page routing to its children ---------------------- */
.hub-grid {
  display: grid; gap: var(--wp--preset--spacing--lg);
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  /* Explicit, so no environment (core blockGap margins, cached chassis CSS)
     can turn the rows ragged: cards stretch to equal height per row and
     carry no stray margins of their own (Steve's 11/17 ADP dev screenshot). */
  align-items: stretch;
}
.hub-grid > * { margin: 0; min-width: 0; }
/* A callout directly after a card grid (ADP's 1:1 Community Habilitation)
   was touching the grid's last row on dev — give it its own breathing room. */
.hub-grid + .info-card { margin-block-start: var(--wp--preset--spacing--lg); }

/* Whatever follows a text/photo split needs real separation: the copy was
   running straight into the card grid beneath it with no gap at all
   (Steve 11/18, Preschool "Education and therapy"). Block gap does not
   reach these siblings, so it is set here. */
.wrap > .split + * { margin-block-start: var(--wp--preset--spacing--xl); }
.hub-grid .program {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius--l);
  overflow: hidden;
}
.hub-grid .program__body { padding: var(--wp--preset--spacing--md); }

/* --- Programme cards ---------------------------------------------------------
   On the live prototype the three programme tiles are cards: white, rounded,
   photo on top, body below. Same treatment as the inner-page hub cards. */
.programs__grid .program {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius--l);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 20, 70, .06);
}
.programs__grid .program__body { padding: var(--wp--preset--spacing--md) var(--wp--preset--spacing--md) var(--wp--preset--spacing--lg); }
.programs__grid .program__media { border-radius: 0; }

/* --- Pending-asset frames ----------------------------------------------------
   The dashed "pending" frames came OFF every published page for launch
   (10/22): a missing asset's module is now omitted or stood in for by an
   approved photo. The frame styles live on only where a frame can still
   appear — unpublished drafts in the editor — via the editor stylesheet,
   so the public sheet carries no rule that matches nothing. */
.ph-frame {
  display: grid; place-items: center;
  aspect-ratio: 3 / 2;
  border: 2px dashed var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius--m);
  background: var(--wp--preset--color--surface-alt);
  padding: var(--wp--preset--spacing--md);
}
.ph-frame__text {
  text-align: center;
  font-size: var(--wp--preset--font-size--xs);
  color: var(--wp--preset--color--ink-muted);
  max-width: 26ch;
  margin: 0;
}
.ph-frame__text strong {
  display: block;
  font-family: var(--wp--preset--font-family--heading);
  color: var(--wp--preset--color--ink);
  margin-bottom: 0.3em;
}
.ph-frame--video { aspect-ratio: 16 / 9; }

/* --- Pull quotes on inner pages -------------------------------------------- */
.quotecard { margin: var(--wp--preset--spacing--md) 0; }
.quotecard__quote {
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--md);
  line-height: var(--wp--custom--line-height--snug);
  color: var(--wp--preset--color--brand);
  border-left: 4px solid var(--wp--preset--color--accent);
  padding-left: var(--wp--preset--spacing--sm);
  margin: 0 0 var(--wp--preset--spacing--xxs);
}
.quotecard .attrib { color: var(--wp--preset--color--ink-muted); opacity: 1; }

/* --- Contact form column ---------------------------------------------------- */
.contact-form > h2 { margin-top: 0; }

/* ── 10/20 master-matrix components ────────────────────────────────────── */

/* Jump nav (Pals With Paws, How to Get Started): pill links in a row. */
/* Sticks under the sticky header as you scroll (Steve 11/18). The header is
   81px desktop / 69px mobile; the bar goes full-bleed so page content can't
   show through beside it, with padding that keeps the pills on the same left
   edge as .wrap content. z-index sits below the header's 100. */
.jumpnav {
  display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--xs);
  padding-block: var(--wp--preset--spacing--sm);
  padding-inline: max(var(--wp--custom--gutter), (100% - var(--wp--custom--width--wide)) / 2);
  position: sticky; top: 69px; z-index: 90;
  background: var(--wp--preset--color--surface);
  border-block-end: 1px solid var(--wp--preset--color--line);
}
@media (min-width: 48em) { .jumpnav { top: 81px; } }
/* Phones: five pills wrapped to three rows (160px) is too tall to pin, so
   it becomes one swipeable row. */
@media (max-width: 47.99em) {
  .jumpnav {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .jumpnav::-webkit-scrollbar { display: none; }
  .jumpnav a { white-space: nowrap; }
}
/* Anchor targets must clear both sticky bars when jumped to. */
html:has(.jumpnav) { scroll-padding-top: 9.5rem; }
/* Desktop: 81px header + ~72px bar, plus breathing room so the eyebrow
   above each target heading shows (Kim 11/19: jump links landed under the bar). */
@media (min-width: 48em) { html:has(.jumpnav) { scroll-padding-top: 10.75rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.jumpnav a {
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--xs); letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none;
  color: var(--wp--preset--color--brand);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 999px; padding: .4em 1em;
}
.jumpnav a:hover, .jumpnav a:focus-visible {
  background: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--ink-invert);
}

/* Two-column service list (Article 16). */
ul.svc-list {
  columns: 2; column-gap: var(--wp--preset--spacing--lg);
  list-style: none; padding: 0; margin: var(--wp--preset--spacing--md) 0 0;
}
ul.svc-list li {
  break-inside: avoid; padding: .55em 0 .55em 1.4em; position: relative;
  border-bottom: 1px solid var(--wp--preset--color--line);
  font-weight: 600;
}
ul.svc-list li::before {
  content: ""; position: absolute; left: 0; top: 1.05em;
  width: .55em; height: .55em; border-radius: 50%;
  background: var(--wp--preset--color--accent, var(--wp--preset--color--brand));
}
@media (max-width: 679px) { ul.svc-list { columns: 1; } }

/* Leadership grid: monogram tiles until headshots arrive. */
.person-grid {
  display: grid; gap: var(--wp--preset--spacing--md);
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  margin-top: var(--wp--preset--spacing--lg);
}
.person { text-align: center; }
.person__tile {
  aspect-ratio: 1; border-radius: var(--wp--custom--radius--m);
  background: color-mix(in srgb, var(--wp--preset--color--brand) 8%, white);
  border: 1px solid var(--wp--preset--color--line);
  display: grid; place-items: center;
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--xxl);
  color: var(--wp--preset--color--brand);
}
.person img { aspect-ratio: 1; object-fit: cover; border-radius: var(--wp--custom--radius--m); }
.wp-block-post-content p.person__name {
  margin: var(--wp--preset--spacing--xs) 0 0; font-weight: 700;
  font-family: var(--wp--preset--font-family--heading);
}
.wp-block-post-content p.person__title {
  margin: 0; font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--ink-muted); opacity: .8;
}

/* History timeline (About): static stacked beats, year label above each. */
ol.timeline { list-style: none; padding: 0; margin: var(--wp--preset--spacing--lg) 0 var(--wp--preset--spacing--md); }
ol.timeline li {
  position: relative; padding: 0 0 var(--wp--preset--spacing--md) var(--wp--preset--spacing--lg);
  border-left: 3px solid var(--wp--preset--color--brand-light);
  max-width: 60ch;
}
ol.timeline li:last-child { padding-bottom: 0; }
.timeline__year {
  display: block;
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--brand);
  margin-bottom: var(--wp--preset--spacing--xxs);
}
ol.timeline li::before {
  content: ""; position: absolute; left: -8px; top: .45em;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--wp--preset--color--brand);
}

/* Numbered steps (Housing "How It Works", Preschool "How to Enroll"). */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: var(--wp--preset--spacing--md) 0 0; }
ol.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 var(--wp--preset--spacing--sm) 3rem; max-width: 56ch;
}
ol.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--ink-invert);
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
}

/* Careers line (GM-careers-line, Preschool). */
.careers-line {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--wp--preset--spacing--md);
}
.wp-block-post-content p.careers-line__lead {
  margin: 0;
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--brand);
}

/* Trust badge strip, logo + lines (Preschool 10/20). */
.badge-strip {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--wp--preset--spacing--lg);
}
.badge-strip__logo img { max-width: 10rem; height: auto; }
/* A logo is never cropped. Inside a text column the strip's logo was
   picking up the "photo in running text" rule further down (3:2, cover),
   which cut the NASET mark off on both sides on Preschool (Steve 11/18).
   The extra class in the selector is what outranks that rule. */
.wp-block-post-content .prose .badge-strip__logo .wp-block-image img,
.wp-block-post-content .badge-strip__logo img {
  width: auto; max-width: 10rem; height: auto;
  aspect-ratio: auto; object-fit: contain;
}
.wp-block-post-content p.badge-strip__line {
  margin: 0 0 var(--wp--preset--spacing--xxs);
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--brand);
  max-width: 44ch;
}

/* Display line (Mission & Values vision statement). */
.wp-block-post-content h2.display-line,
h2.display-line {
  font-size: var(--wp--preset--font-size--xxl);
  color: var(--wp--preset--color--brand);
  max-width: 24ch; margin-top: var(--wp--preset--spacing--lg);
}
/* 11/18: the vision line now sits directly under its "Our Vision" eyebrow
   instead of closing the section, so it takes the eyebrow's tight spacing
   rather than the large gap it needed after a paragraph. */
.wp-block-post-content .section-intro__label + h2.display-line { margin-top: 0; }

/* Small legal/footnote line (Article 16 cert, Housing disclaimer). */
.wp-block-post-content p.legal-line {
  font-size: var(--wp--preset--font-size--xs); opacity: .75;
  max-width: 64ch; margin-top: var(--wp--preset--spacing--md);
}

/* ── 10/27 layout pass (Steve's page review) ─────────────────────────────

   ONE LEFT EDGE. The 10/22 rule centered any lone prose column, so a page
   jumped between two left edges as you scrolled — the hero, intros and
   card grids on the wide wrap, text-only sections on a narrow centered
   column. Every section now starts on the hero's edge; a lone text column
   keeps a comfortable reading width and simply ends on the right.
   (Closing/statement bands, .section--center, still center as a whole.) */
.section > .wrap > .prose:only-child { max-width: 70ch; }
.section > .wrap > .quotecard:only-child { max-width: 60ch; }

/* Legal pages: "On this page" links in the left column, text beside it. */
.legal-layout {
  display: grid; gap: var(--wp--preset--spacing--xxl);
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 70ch);
  align-items: start;
}
.legal-toc {
  position: sticky; top: calc(var(--wp--preset--spacing--xxl) + 3rem);
  border-left: 3px solid var(--wp--preset--color--line);
  padding-left: var(--wp--preset--spacing--sm);
}
.legal-toc__title {
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--xs);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--wp--preset--color--sky-text);
  margin: 0 0 var(--wp--preset--spacing--xs);
}
.legal-toc ol { list-style: none; margin: 0; padding: 0; }
.legal-toc li + li { margin-top: var(--wp--preset--spacing--xxs); }
.legal-toc a {
  font-size: var(--wp--preset--font-size--sm); line-height: 1.35;
  color: var(--wp--preset--color--ink); text-decoration: none;
}
.legal-toc a:hover, .legal-toc a:focus-visible { color: var(--wp--preset--color--brand); text-decoration: underline; }
.legal-layout .prose > h2:first-child, .legal-layout .prose > :first-child { margin-top: 0; }
.legal-layout .prose h2 { scroll-margin-top: 7rem; }
@media (max-width: 61.99em) {
  .legal-layout { grid-template-columns: 1fr; gap: var(--wp--preset--spacing--lg); }
  .legal-toc { position: static; }
}

/* PHOTOS: one treatment everywhere. Card photos were rounded by their
   card; standalone photos were square — so the same page mixed both. Every
   content photo now gets the card radius. Photos inside a card, a hero or
   a logo strip are the card's/band's business and stay as they are. */
.wp-block-post-content .wp-block-image img,
.wp-block-post-content figure.video-figure,
.wp-block-post-content .split > * > .wp-block-image img {
  border-radius: var(--wp--custom--radius--l);
}
.wp-block-post-content :is(.page-hero__media, .program__media, .service-card__media, .badge-strip__logo, .person) .wp-block-image img,
.wp-block-post-content :is(.page-hero__media, .program__media, .service-card__media, .badge-strip__logo) img {
  border-radius: 0;
}
/* A program__media photo used as the picture half of a text|photo split
   (Careers "Where you can make a difference") is not inside a card, so the
   frame itself takes the radius; overflow:hidden clips the photo to it. */
.wp-block-post-content .split > .program__media {
  border-radius: var(--wp--custom--radius--l);
}

/* Tall phone photos in a text column ran the full column height (Jacob's
   chef photo, the Nature Project, cookie decorating, Robert Jordan). A
   photo inside running text is now a landscape frame, cropped toward the
   top third where the faces are. */
.wp-block-post-content .prose .wp-block-image img {
  width: 100%; aspect-ratio: 3 / 2; height: auto;
  object-fit: cover; object-position: 50% 30%;
}

/* Text-only cards beside photo cards (Sensory gym, Adaptive Yoga, "Grads,
   celebrated") read as broken photo cards, stretched to the row height
   with nothing in them. Without a photo a card becomes a tinted fact
   panel instead, so the empty height reads as intentional. */
.hub-grid .program:not(:has(.program__media)) {
  background: var(--wp--preset--color--sky-tint);
  border-color: transparent;
  display: flex; flex-direction: column; justify-content: center;
}
.hub-grid .program:not(:has(.program__media)) > .program__body { flex: 0 0 auto; }

/* Direct Contact banner (GM-direct-contact): copy left, button right. */
.contact-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--wp--preset--spacing--lg);
  background: var(--wp--preset--color--sky-tint);
  border-radius: var(--wp--custom--radius--l);
  padding: var(--wp--preset--spacing--xl);
}
.contact-banner__copy { flex: 1 1 32rem; max-width: 64ch; }
.contact-banner__copy > h2 { margin: 0 0 var(--wp--preset--spacing--xs); }
.contact-banner__copy > p { margin: 0 0 var(--wp--preset--spacing--xs); }
.wp-block-post-content p.contact-banner__line {
  font-weight: 600; color: var(--wp--preset--color--ink); margin: 0;
}
.contact-banner .hero__actions { margin-top: 0; }

/* Grids and pairs. */
.hub-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 47.99em) { .hub-grid--2 { grid-template-columns: 1fr; } }
/* An in-page anchor span inside a card grid is a scroll target, not a grid
   cell (the DHWW anchor took a whole column on ADP). */
.hub-grid > span[id]:empty { position: absolute; }
.hub-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 61.99em) { .hub-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 39.99em) { .hub-grid--3 { grid-template-columns: 1fr; } }
/* Two photos side by side at the same size (ADP vignettes, Housing gallery). */
.pair {
  display: grid; gap: var(--wp--preset--spacing--lg);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start; margin-block: var(--wp--preset--spacing--lg);
}
.pair .prose { max-width: none; }
.pair--gallery .wp-block-image img {
  width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover;
  border-radius: var(--wp--custom--radius--l);
}
@media (max-width: 39.99em) { .pair { grid-template-columns: 1fr; } }
/* A photo column inside a split fills its column at a landscape ratio. */
.split > .prose:only-of-type .wp-block-image img,
.split > .prose .wp-block-image:only-child img { width: 100%; }

/* Insight box (Kim, 10/26): schedule-type facts in a box right under the
   hero, not a banner. Two columns of facts on desktop. */
.section--insight { padding-block: var(--wp--preset--spacing--xl) 0; }
.insight {
  background: var(--wp--preset--color--sky-tint);
  border-radius: var(--wp--custom--radius--l);
  padding: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--xl);
  display: grid; gap: var(--wp--preset--spacing--md);
}
.insight .info-card { background: none; padding: 0; border-radius: 0; }
.insight .info-card ul { columns: 2; column-gap: var(--wp--preset--spacing--xl); margin: 0; }
.insight .info-card li { break-inside: avoid; }
.insight .badge-strip {
  border-top: 1px solid var(--wp--preset--color--line);
  padding-top: var(--wp--preset--spacing--md);
}
@media (max-width: 47.99em) { .insight .info-card ul { columns: 1; } }

/* Homepage programs: the celebrations slider's dots sat on top of the
   photo (Kim: move them below). They now sit centered under the photo. */
.programs__grid .program__media:has(.slider) { overflow: visible; }
.programs__grid .program__media:has(.slider) .slider__track { position: absolute; inset: 0; overflow: hidden; height: auto; }
.programs__grid .program__media:has(.slider) .slider { position: static; }
.programs__grid .program__media:has(.slider) .slider__slide { height: 100%; }
.programs__grid .slider__nav {
  right: auto; left: 50%; bottom: calc(-1 * var(--wp--preset--spacing--md));
  transform: translateX(-50%);
}
.programs__grid .slider__dot { border-color: var(--wp--preset--color--brand); }
.programs__grid .slider__dot[aria-selected="true"] { background: var(--wp--preset--color--brand); }
.programs__grid .program .program__body { padding-top: var(--wp--preset--spacing--xl); }

/* Homepage service cards: equal heights, buttons on one line. */
.services__grid { align-items: stretch; }
.service-card__body > .wp-block-buttons:last-child,
.service-card__body > :last-child:has(.wp-block-button) { margin-top: auto; }

/* Contrast (Kim, 10/26: hero decks and footer text read pale). Text on the
   dark bands goes to full white. */
.page-hero p.page-hero__lede, .page-hero--photo .page-hero__kicker { opacity: 1; }
.footer :is(p, .footer__desc, .footer__hours, li, a) { opacity: 1; }

/* Statement and closing bands (.section--center): everything centers. */
.section--center .wrap { text-align: center; }
.section--center .wrap > * { margin-inline: auto; }
.section--center .wrap p { margin-inline: auto; }
.section--center .hero__actions { justify-content: center; }
/* Breathing room between copy and the buttons under it (Steve, 10/23: the
   "Not sure where to begin?" close sat its buttons right on the line
   above). One rule for every section-level button row that follows text;
   the page hero keeps its own tighter md gap via .page-hero .hero__actions. */
:where(p, ul, ol, blockquote, h2, h3, .wp-block-group) + :is(.hero__actions, .wp-block-buttons) {
  margin-top: var(--wp--preset--spacing--lg);
}
.section--center .prose { max-width: 68ch; margin-inline: auto; }

/* =============================================================================
   QA round, 5 November 2026 — fixes from the full-site review.
   ========================================================================== */

/* Text-only cards: content starts at the top like their photo neighbours,
   so headings line up across a row. */
.hub-grid .program:not(:has(.program__media)) { justify-content: flex-start; }

/* One eyebrow style everywhere: small, bold, uppercase. */
.section-intro__label, .housing__label, .careers__label, .started__label, .page-hero__kicker {
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Phone numbers never break across lines. */
a[href^="tel:"] { white-space: nowrap; }

/* Programme card titles: no underline at rest (matches every other card). */
.program__name a { text-decoration: none; }
.program__name a:hover, .program__name a:focus-visible { text-decoration: underline; }

/* "A day at Block" photo on Adult Day Programs takes the photo radius. */
.wp-block-post-content .ads-media > .program__media { border-radius: var(--wp--custom--radius--l); }

/* "See all FAQs" sits clear of the last question. */
.faq__list + p, .faq__list + .wp-block-paragraph { margin-top: var(--wp--preset--spacing--lg); }

/* FAQ page: each topic heading gets room above it, not below. */
.faq__list + .section-intro { margin-top: var(--wp--preset--spacing--xxl); }
.section-intro:has(+ .faq__list) { margin-bottom: var(--wp--preset--spacing--md); }

/* Headings never sit on the text below them. */
.prose > :is(h2, h3) + p, .info-card > :is(h2, h3) + p,
.careers__title + .careers__text, .housing__title + .housing__text,
.started__title + .started__lede { margin-top: var(--wp--preset--spacing--sm); }
.started__title { max-width: 24ch; }

/* Paragraphs inside info cards breathe like body copy. */
.info-card > * + * { margin-top: var(--wp--preset--spacing--sm); }

/* Quick facts box clears the stats band below it. */
.section--insight { padding-bottom: var(--wp--preset--spacing--xl); }

/* Media gallery: three across on desktop, two on tablet. */
@media (min-width: 62em) { .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Leadership: four across with a centred last row; two across on phones. */
.person-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.person-grid > .person { flex: 0 0 calc((100% - 3 * var(--wp--preset--spacing--md)) / 4); }
@media (max-width: 61.99em) { .person-grid > .person { flex-basis: calc((100% - 2 * var(--wp--preset--spacing--md)) / 3); } }
@media (max-width: 39.99em) { .person-grid > .person { flex-basis: calc((100% - var(--wp--preset--spacing--md)) / 2); } }
/* Board of Directors in columns instead of one long list. */
.board-list > .wp-block-list { columns: 3; column-gap: var(--wp--preset--spacing--xl); }
.board-list > .wp-block-list li { break-inside: avoid; }
.board-list { max-width: none; }
@media (max-width: 61.99em) { .board-list > .wp-block-list { columns: 2; } }
@media (max-width: 39.99em) { .board-list > .wp-block-list { columns: 1; } }

/* Stats bands: three figures stay on one row on phones. */
@media (max-width: 47.99em) {
  .stats__grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Clinical Services "two doors": equal columns, matching photos; stacks on phones like every .split. */
@media (min-width: 48em) { .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split--even .wp-block-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Closing bands with a lone button: the button centres with the heading. */
.section--center .wp-block-buttons { justify-content: center; }

/* A single headshot used as a section photo stays portrait-sized. */
.split > .prose .wp-block-image img[src*="robert-jordan"] { max-width: 22rem; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }

/* Compliance: the sections after the "On this page" layout (reporting,
   contacts, policy list) line up with the article column instead of
   jumping back to the page edge. */
@media (min-width: 62em) {
  .wp-block-post-content:has(.legal-layout) > .section:not(:has(.legal-layout)):not(.started) > .wrap {
    padding-inline-start: calc(16rem + var(--wp--preset--spacing--xxl));
  }
}
.wp-block-post-content:has(.legal-layout) > .section > .wrap > h2 {
  font-size: var(--wp--preset--font-size--xl); margin-bottom: var(--wp--preset--spacing--md);
}
.wp-block-post-content:has(.legal-layout) > .section .hub-grid { max-width: 70ch; }

/* Preschool "Outdoor playground" card: keep the child's head in frame. */
.program__media img[src*="prek-child-with-dog"] { object-position: 50% 0%; }

/* Focal points for wide banner photos reused inside 3:2 cards, where a
   centered crop pushes the people out of frame. Applied to the hero uses
   too so the same photo reads the same everywhere. */
.program__media img[src*="pwp-hero-adult-kiss-leila"] { object-position: 80% 35%; }
.program__media img[src*="ars-hero-jenga"],
.page-hero--photo .page-hero__media img[src*="ars-hero-jenga"] { object-position: 68% 40%; }
.program__media img[src*="clinical-hero-speech"],
.page-hero--photo .page-hero__media img[src*="clinical-hero-speech"] { object-position: 70% 40%; }
/* Donate hero: keep the kids' heads clear of the top edge. */
.page-hero--photo .page-hero__media img[src*="donate-hero-prek-kids-swing"] { object-position: 50% 22%; }

/* Careers "Our People" portraits reuse .video-figure for the rounded frame,
   but they are stills: a gentler 4:3 crop biased toward the face, instead of
   the 16:10 video crop that turns a square headshot into an extreme close-up. */
.words .video-figure img { aspect-ratio: 4 / 3; object-position: center 25%; }

/* Text beside photos (Preschool, Pals With Paws, Housing): photos that used
   to sit under the text now run down the right-hand column on desktop and
   follow the text on phones. */
.split--media { align-items: start; }
.split--media > .split__photos { max-width: none; display: grid; gap: var(--wp--preset--spacing--lg); }
.split--media > .split__photos > * + * { margin-block-start: 0; }

/* Alternate the media side so consecutive sections don't both run photo-right
   (Steve 11/18). Desktop only: the source order stays text-first, so screen
   readers and phones read heading → copy → photos regardless. */
@media (min-width: 48em) {
  .split--flip { grid-template-columns: minmax(16rem, 1fr) minmax(0, 1.4fr); }
  .split--flip > :first-child { order: 2; }
  .split--flip > .split__photos { order: 1; }
}
/* Video on the left, copy on the right (About "Get to know us", Steve 11/18).
   Same idea as split--flip but the media is the larger column and the copy
   is centred against it. Source order stays copy-first for screen readers
   and phones. */
@media (min-width: 48em) {
  .split--media-first { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
  .split--media-first > :first-child { order: 2; }
}
/* Two photos in one media column left a tall orphan with dead space beside it.
   Pair them side by side instead, so the block's height sits near the text's. */
@media (min-width: 48em) {
  .split--media > .split__photos:has(> .wp-block-image:nth-child(2)) {
    grid-template-columns: 1fr 1fr;
    gap: var(--wp--preset--spacing--md);
  }
}
.wp-block-post-content .split--media .split__photos .wp-block-image img {
  width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--wp--custom--radius--l);
}
.split__photos .attrib { margin-top: calc(-1 * var(--wp--preset--spacing--md)); }

/* =============================================================================
   11/14 matrix round, 17 November 2026.
   ========================================================================== */

/* Footer social column: icons only, stacked vertically (matrix 11/14). */
.footer__social ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--wp--preset--spacing--md); }
.footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: currentColor; }
.footer__social a:hover, .footer__social a:focus-visible { background: rgba(255, 255, 255, 0.24); }
.footer__social svg { width: 1.35rem; height: 1.35rem; }
@media (max-width: 47.99em) { .footer__social ul { flex-direction: row; } }

/* Quick Facts card beside the hero (matrix: overlapping card, solid
   background, not sticky; mobile: full-width card directly under the hero).
   The page puts the card right after the hero section; on desktop it is
   pulled up over the hero's bottom edge and parked on the right. */
.qf-card {
  position: relative; z-index: 2; background: var(--wp--preset--color--surface, #fff);
  box-shadow: 0 1rem 2.5rem rgb(10 31 68 / 0.14);
}
@media (min-width: 62em) {
  .wp-block-post-content > .qf-card, .wp-block-post-content > * > .qf-card {
    /* One shared width for the card and the photo rail under it, so the
       card is exactly the width of the image (Steve 11/17). */
    --bca-qf-width: 32rem;
    max-width: var(--bca-qf-width); margin-left: auto;
    /* Flush with the content wrap's right edge (the same line the header
       menu sits on), computed exactly like .wrap's own width. */
    margin-right: calc((100% - min(var(--wp--custom--width--wide), 100% - (var(--wp--custom--gutter) * 2))) / 2);
    /* Sits lower on the hero (Steve 11/18, from his DevTools pass on
       Preschool): 7rem of overlap, with the text column lifted to match
       below. -13rem rode too high on the photo. */
    margin-top: -7rem; margin-bottom: calc(-1 * var(--wp--preset--spacing--lg));
  }
  /* The section that follows the card doesn't need its full top padding —
     the card's overhang already provides the air. */
  .wp-block-post-content > .qf-card + .section,
  .wp-block-post-content > * > .qf-card + .section { padding-block-start: var(--wp--preset--spacing--xl); }
  /* The section under the card: its photo rail matches the card's width,
     so card and photo stack as one aligned column instead of two widths. */
  .wp-block-post-content > .qf-card + .section .split,
  .wp-block-post-content > * > .qf-card + .section .split {
    grid-template-columns: minmax(0, 1fr) 32rem;
  }
  /* The card hangs below the hero, which left the text column stranded
     ~116px under the banner (Steve 11/17). Lift only the text so it starts
     just below the hero; the photo column keeps its place clear of the
     card, whatever height the card happens to be. */
  .wp-block-post-content > .qf-card + .section .split > :first-child,
  .wp-block-post-content > * > .qf-card + .section .split > :first-child {
    /* Paired with the card's -7rem above: move one and the other has to
       follow by the same amount, or the text drifts off the hero's edge. */
    margin-block-start: -9.5rem;
  }
}
@media (max-width: 61.99em) {
  .wp-block-post-content > .qf-card, .wp-block-post-content > * > .qf-card {
    margin-top: calc(-1 * var(--wp--preset--spacing--lg));
    margin-inline: var(--wp--preset--spacing--md);
  }
}

/* Heading weight: Sophie is choosing between bold and regular H2s.
   --bca-h2-weight flips the whole site in one line. */
/* 11/18 call: every H2 back to 600, and a lighter 500 for chosen headings.
   The lighter one is a block style — Heading → Styles → "Light" in the
   editor, class is-style-light — and is also applied to the Our Story and
   Housing Subsidy band headings by their own classes, so it shows on a
   theme upload with no sync.
   The Adobe Fonts kit (uao7avb) serves all-round-gothic at 400 and 700
   only (checked on dev 11/18), so today 600 renders as Bold and 500 as
   Book. Adding Demi (600) and Medium (500) to the kit makes these exact
   with no code change. */
:root { --bca-h2-weight: 600; --bca-h2-weight-light: 500; }
.wp-block-post-content h2, .prose h2, .section h2 { font-weight: var(--bca-h2-weight); }
h2.is-style-light, h2.story__title, h2.housing__title {
  --bca-h2-weight: var(--bca-h2-weight-light);
  font-weight: var(--bca-h2-weight-light);
}

/* Footer, 11/18 call. Links match the address text; the four labels
   (Discover, Connect and the two location names) step up one size. */
.footer__col ul { font-size: var(--wp--preset--font-size--xs); line-height: 1.7; }
.footer__col h3, .footer .footer__nap-name {
  font-size: var(--wp--preset--font-size--base);
  /* All caps on the four labels (Steve 11/18). Done in CSS so the text in
     the menu and config stays in normal case for screen readers and search. */
  text-transform: uppercase;
}
/* Columns sized to their content and spread with equal gaps, so the social
   icons end on the wrap's right edge instead of stranded mid-row with dead
   space beyond them. The two addresses sit side by side, which fills the
   logo column and makes the gap to Discover the same as every other gap;
   they wrap back to stacked when the column is too narrow for both. */
@media (min-width: 48em) {
  .footer__top {
    grid-template-columns: fit-content(33rem) repeat(3, max-content);
    justify-content: space-between;
    column-gap: var(--wp--preset--spacing--xl);
  }
  .footer .footer__nap { display: inline-block; vertical-align: top; margin-inline-end: var(--wp--preset--spacing--xl); }
  .footer .footer__nap:last-child { margin-inline-end: 0; }
}

/* Video control button: smaller and quieter than a CTA (matrix note). */
.hero__motion .hero__motion-label { font-size: var(--wp--preset--font-size--xs); font-weight: 500; letter-spacing: 0.02em; }

/* =============================================================================
   11/18 afternoon round (Steve, after the Block call).
   ========================================================================== */

/* --- Header dropdowns -------------------------------------------------------
   Each bar item with children gets a rounded panel listing the same links
   the drawer's accordion shows (both read the one menu). A mouse opens it on
   hover; the chevron button opens it for keyboard and touch. The parent
   label stays a real link to its own page. */
.nav__item { position: relative; display: flex; align-items: center; gap: 0.2rem; }
.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem; padding: 0;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--wp--preset--color--ink);
}
.nav__toggle:hover { background: var(--wp--preset--color--sky-tint); color: var(--wp--preset--color--brand); }
.nav__chev {
  width: 0.5rem; height: 0.5rem; margin-top: -0.2rem;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--wp--custom--motion--duration) var(--wp--custom--motion--ease);
}
.nav__toggle[aria-expanded="true"] .nav__chev,
.nav__item--has-sub:hover .nav__chev { transform: translateY(0.2rem) rotate(225deg); }
.nav__sub {
  position: absolute; z-index: 110;
  top: calc(100% + 0.6rem); left: -1rem;
  min-width: 15rem; margin: 0; padding: var(--wp--preset--spacing--xxs);
  list-style: none;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius--l);
  box-shadow: 0 18px 40px rgba(0, 16, 66, 0.14);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition:
    opacity 160ms var(--wp--custom--motion--ease),
    transform 160ms var(--wp--custom--motion--ease),
    visibility 0s linear 160ms;
}
/* An invisible bridge across the gap between the label and the panel, so
   the pointer can travel down to it without the panel closing on the way. */
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -0.7rem; height: 0.7rem; }
.nav__item--has-sub:hover > .nav__sub,
.nav__sub[data-open="true"] {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
/* Esc closes a panel that hover opened, until the pointer leaves the item
   (content that appears on hover has to be dismissible without moving). */
.nav__item--has-sub[data-dismissed="true"]:hover > .nav__sub:not([data-open="true"]) {
  opacity: 0; visibility: hidden;
}
.nav__sub a {
  display: block; white-space: nowrap;
  padding: 0.65em 0.9em;
  border-radius: var(--wp--custom--radius--m);
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--ink); text-decoration: none;
}
.nav__sub a:hover,
.nav__sub a:focus-visible { background: var(--wp--preset--color--sky-tint); color: var(--wp--preset--color--brand); }
.nav__sub a[aria-current="page"] { color: var(--wp--preset--color--brand); }
@media (prefers-reduced-motion: reduce) {
  .nav__sub, .nav__chev { transition: none; }
}
/* The bar on a small laptop. Between the point where the bar appears and a
   comfortable desktop width, the labels were wrapping onto two lines and
   Donate and Menu were stacking. Labels never wrap, the actions stay on one
   line, and the bar tightens its type and spacing until there is room. */
.nav__link { white-space: nowrap; }
.header .header__actions { flex-wrap: nowrap; flex: 0 0 auto; }
@media (min-width: 62em) and (max-width: 74.99em) {
  .header__inner { gap: var(--wp--preset--spacing--sm); }
  .header__logo img { width: 140px; }
  .nav__list { gap: 0.6rem; }
  .nav__link { font-size: var(--wp--preset--font-size--sm); }
  .nav__item { gap: 0; }
  .header .btn--donate,
  .header .wp-block-button.btn--donate > .wp-block-button__link { padding: 0.7em 1.1em; font-size: var(--wp--preset--font-size--sm); }
}

/* --- Contact: form on the banner's left edge, fields the full column ----------
   Supersedes the centred 40rem pair above: Block wants "Send us a message"
   to start on the same line as the banner copy and the fields to use the
   width, not sit in a narrow column with space either side. */
@media (min-width: 62em) {
  .split:has(> .contact-form) {
    grid-template-columns: minmax(0, 1.6fr) minmax(20rem, 1fr);
    justify-content: stretch;
    column-gap: var(--wp--preset--spacing--xxl);
    align-items: start;
  }
}
.contact-form .pi-form { max-width: none; }
/* First / Last and Email / Confirm Email sit two-up once the column has
   room; one long box per half-thought was most of the empty space. */
@media (min-width: 40em) {
  .contact-form .pi-form .ginput_complex {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--wp--preset--spacing--md); row-gap: var(--wp--preset--spacing--xs);
  }
  .contact-form .pi-form .ginput_complex > * { margin: 0; min-width: 0; }
}
/* Gravity's float-clearing div would take a grid cell of its own. */
.contact-form .pi-form .ginput_complex > .gf_clear { display: none; }
/* Gravity writes the email pair as box-then-label while the name pair is
   label-then-box. Side by side that reads as a mistake, so the email
   labels are shown above their boxes too. Visual order only: each label is
   still tied to its box, so a screen reader announces them correctly. */
.contact-form .pi-form .ginput_container_email > span { display: flex; flex-direction: column-reverse; }

/* --- Feature row: one card laid on its side -----------------------------------
   Photo beside the copy on desktop, stacked on phones. First used for Pals
   With Paws under the Preschool enrichment grid. */
.program--feature { margin-block-start: var(--wp--preset--spacing--lg); }
.program--feature > * { margin: 0; }
@media (min-width: 48em) {
  .program--feature {
    display: grid; grid-template-columns: minmax(14rem, 24rem) minmax(0, 1fr);
    align-items: stretch;
  }
  /* The photo fills whatever height the copy and the minimum give the row;
     it never sets the height itself, or a portrait photo makes the card
     as tall as the photo. */
  .program--feature > .program__media { aspect-ratio: auto; min-height: 22rem; height: 100%; }
  /* The image block's figure is display:contents inside a card's media
     frame, so the photo itself is what gets positioned. */
  .wp-block-post-content .program--feature > .program__media .wp-block-image img {
    position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
  }
  .program--feature > .program__body {
    justify-content: center;
    padding: var(--wp--preset--spacing--xl);
    gap: var(--wp--preset--spacing--xs);
  }
}
.program--feature .wp-block-buttons { margin-block-start: var(--wp--preset--spacing--xs); }
/* Keeps the trainer's head and the dog both in frame at the feature crop.
   Stacked on a phone the photo is portrait, so its frame is too — a 3:2
   frame cut off her head and the dog at once. */
.program__media img[src*="prek-pals-with-paws-dog"] { object-position: 50% 40%; }
@media (max-width: 47.99em) {
  .program--feature > .program__media:has(img[src*="prek-pals-with-paws-dog"]) { aspect-ratio: 4 / 5; }
}

/* --- Card carousel: THE standard for a row of cards that scrolls ---------------
   Use this for every card carousel on the site so they all behave the same.

   Markup is one group with the class "carousel" holding the cards. Add
   "carousel--4" for four across on a wide desktop. Everything else is added
   by bca.js at run time: the previous / next buttons, the dots, and the
   labels a screen reader needs. Nothing in the saved markup carries an
   attribute the block editor would reject.

   It is a real scroller with scroll snapping, so it swipes on a phone,
   scrolls with a trackpad, works with the keyboard, and still works as a
   plain scrolling row if the script never runs. Below the widest layout the
   card width is set so part of the next card always shows — that sliver is
   what tells people there is more. */
.carousel {
  --carousel-gap: var(--wp--preset--spacing--md);
  display: grid; grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: var(--carousel-gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Room for a card's focus ring, which the scroller would otherwise clip. */
  padding-block: 4px;
  /* Run to the screen edge on small screens so the peek is cut by the
     screen, not by an invisible margin. */
  margin-inline-end: calc(-1 * var(--wp--custom--gutter));
  padding-inline-end: var(--wp--custom--gutter);
  scroll-padding-inline-end: var(--wp--custom--gutter);
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { margin: 0; min-width: 0; scroll-snap-align: start; }
.carousel .program {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius--l);
  overflow: hidden;
}
.carousel .program__body { padding: var(--wp--preset--spacing--md); }
.carousel .program__name { font-size: var(--wp--preset--font-size--md); }
@media (min-width: 40em) {
  .carousel { grid-auto-columns: calc((100% - var(--wp--custom--gutter) - 2 * var(--carousel-gap)) / 2.25); }
}
@media (min-width: 62em) {
  .carousel {
    grid-auto-columns: calc((100% - 3 * var(--carousel-gap)) / 3.25);
    margin-inline-end: 0; padding-inline-end: 0; scroll-padding-inline-end: 0;
  }
}
@media (min-width: 75em) {
  /* Four across, all in view: nothing to scroll, so the script hides the
     controls. A fifth card brings the peek back. */
  .carousel--4 { grid-auto-columns: calc((100% - 3 * var(--carousel-gap)) / 4); }
  .carousel--4:has(> :nth-child(5)) { grid-auto-columns: calc((100% - 4 * var(--carousel-gap)) / 4.25); }
}
.carousel__nav {
  display: flex; align-items: center; justify-content: center;
  gap: var(--wp--preset--spacing--sm);
  margin-block-start: var(--wp--preset--spacing--md);
}
.carousel__nav[hidden] { display: none; }
.carousel__btn {
  flex: 0 0 auto; width: 2.75rem; height: 2.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wp--preset--color--surface);
  border: 2px solid var(--wp--preset--color--line);
  border-radius: 50%; cursor: pointer;
  color: var(--wp--preset--color--brand);
}
.carousel__btn:hover:not([disabled]) { border-color: var(--wp--preset--color--brand); }
.carousel__btn[disabled] { opacity: 0.35; cursor: default; }
.carousel__chev {
  width: 9px; height: 9px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg) translate(-1px, -1px);
}
.carousel__btn--prev .carousel__chev { transform: rotate(135deg) translate(-1px, -1px); }
/* Each dot is a 24px target with the small circle drawn inside it: a bare
   11px dot is under the minimum touch target (WCAG 2.5.8). */
.carousel__dots { display: flex; align-items: center; }
.carousel__dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.carousel__dot::before {
  content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%;
  border: 2px solid var(--wp--preset--color--brand);
}
.carousel__dot[aria-current="true"]::before { background: var(--wp--preset--color--brand); }
@media (prefers-reduced-motion: reduce) { .carousel { scroll-behavior: auto; } }

/* --- Fading photo slider ---------------------------------------------------------
   One photo at a time, cross-fading to the next. Markup is a group with the
   class "photo-fade" holding ordinary image blocks — add or remove photos in
   the editor and the slider follows. With one photo, or with no script, it
   is simply the photo(s); bca.js adds is-enhanced and the controls only when
   there is something to fade between. */
.photo-fade { position: relative; }
.photo-fade > .wp-block-image { margin: 0; }
.photo-fade > .wp-block-image + .wp-block-image { margin-block-start: var(--wp--preset--spacing--md); }
.wp-block-post-content .photo-fade .wp-block-image img {
  width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--wp--custom--radius--l);
}
.photo-fade.is-enhanced { display: grid; }
.photo-fade.is-enhanced > .wp-block-image {
  grid-area: 1 / 1; margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 700ms ease, visibility 0s linear 700ms;
}
.photo-fade.is-enhanced > .wp-block-image[data-active="true"] {
  opacity: 1; visibility: visible; transition-delay: 0s;
}
.photo-fade__controls {
  grid-area: 1 / 1; align-self: end; justify-self: center; z-index: 2;
  display: flex; align-items: center; gap: 0.15rem;
  margin-block-end: var(--wp--preset--spacing--sm);
  padding: 0.2rem 0.5rem;
  background: rgba(0, 16, 66, 0.72);
  border-radius: var(--wp--custom--radius--pill);
}
.photo-fade__dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.photo-fade__dot::before {
  content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%;
  border: 2px solid var(--wp--preset--color--ink-invert);
}
.photo-fade__dot[aria-current="true"]::before { background: var(--wp--preset--color--ink-invert); }
.photo-fade__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.5rem; padding: 0;
  background: none; border: 0; cursor: pointer;
  color: var(--wp--preset--color--ink-invert);
}
/* Pause is two bars; play is a triangle. Drawn in CSS so there is no icon
   file to go missing. */
.photo-fade__icon { display: block; width: 0.7rem; height: 0.8rem; border-inline: 0.22rem solid currentColor; }
.photo-fade__toggle[data-paused="true"] .photo-fade__icon {
  width: 0; height: 0;
  border-block: 0.42rem solid transparent; border-inline-start: 0.7rem solid currentColor; border-inline-end: 0;
}
.photo-fade :is(.photo-fade__dot, .photo-fade__toggle):focus-visible { outline: 2px solid var(--wp--preset--color--ink-invert); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .photo-fade.is-enhanced > .wp-block-image { transition: none; }
}

/* --- Bullets with a line of detail under each ---------------------------------
   A normal list block with the class "feature-list": each item is a bold
   title, a line break, then the detail. Two columns on desktop. Replaces
   the four blue therapy cards on Preschool (Block, 11/18): the same facts
   as part of the copy rather than a second row of boxes. */
.wp-block-post-content ul.feature-list {
  list-style: none; margin: var(--wp--preset--spacing--md) 0 0; padding: 0;
  display: grid; gap: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--lg);
}
@media (min-width: 62em) {
  .wp-block-post-content ul.feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.wp-block-post-content ul.feature-list > li {
  position: relative; margin: 0; padding-inline-start: 1.35rem;
  color: var(--wp--preset--color--ink-muted);
}
.wp-block-post-content ul.feature-list > li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: var(--wp--preset--color--brand-light);
}
.wp-block-post-content ul.feature-list > li strong {
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  color: var(--wp--preset--color--ink);
}

/* --- No heads cut off (Steve 11/18) -----------------------------------------------
   Both photos are whole in their files; the frame was cropping them from
   the middle. Each is moved so the faces are inside the frame.

   The nature card is a tall photo in a wide frame, and no position keeps
   both the heads and the hen, so that row of cards gets a slightly taller
   4:3 frame (two of its four photos are 4:3 already). */
.wp-block-post-content .prose .wp-block-image img[src*="prek-stacie-children"] { object-position: 50% 10%; }
.hub-grid:has(img[src*="prek-nature-company"]) .program__media { aspect-ratio: 4 / 3; }
.program__media img[src*="prek-nature-company"] { object-position: 50% 12%; }
/* The slider's replacement photos, framed on the children's faces. */
.photo-fade img[src*="prek-jacob-chef"] { object-position: 50% 10%; }
.photo-fade img[src*="prek-kid-swing"] { object-position: 50% 45%; }

/* --- Showcase: one big stage, tiles underneath -----------------------------------
   For "show me this place": tour videos and photos together. Markup is a
   group with the class "showcase" holding ordinary image blocks.
     - An image block whose link goes to a YouTube video is a VIDEO tile.
     - An image block with no link is a PHOTO tile.
     - The image block's caption is the tile's label.
   So adding a tour is: add an image, paste the YouTube link on it, type a
   caption. bca.js builds the stage and the tiles from that. Picking a
   video tile plays it right there on the stage; picking a photo shows it
   large. With no script the images simply sit in a grid and the video ones
   open on YouTube.

   Add "showcase--portrait" when the photos are tall (apartment interiors). */
.showcase { display: grid; gap: var(--wp--preset--spacing--sm); min-width: 0; }
.showcase:not(.is-enhanced) { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.showcase > .wp-block-image { margin: 0; }
.wp-block-post-content .showcase > .wp-block-image img {
  width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover;
  border-radius: var(--wp--custom--radius--m);
}
.showcase > .wp-block-image figcaption {
  margin: var(--wp--preset--spacing--xxxs) 0 0;
  font-size: var(--wp--preset--font-size--xs); font-weight: 600; text-align: left;
  color: var(--wp--preset--color--ink);
}
.showcase.is-enhanced > .wp-block-image { display: none; }
.showcase__stage {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--wp--custom--radius--l);
  background: var(--wp--preset--color--brand-dark);
}
.showcase--portrait .showcase__stage { aspect-ratio: 4 / 5; }
.wp-block-post-content .showcase__stage .showcase__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  aspect-ratio: auto; object-fit: cover; border-radius: 0;
}
.showcase__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.showcase__caption {
  margin: 0; min-height: 1.5em;
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--ink);
}
/* Tiles are small cards — thumbnail on top, label under — kept to a fixed
   size so two tiles do not stretch to fill the row. */
.showcase__rail {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--wp--preset--spacing--xs);
  /* auto-fill with a flexible maximum: a fixed maximum makes the browser
     count columns by that maximum, which gave one tile per row on a phone. */
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
}
.showcase--portrait .showcase__rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.showcase__rail > li { margin: 0; min-width: 0; }
.showcase__tile {
  display: flex; flex-direction: column; gap: 0.4rem;
  width: 100%; height: 100%; padding: 0.35rem 0.35rem 0.5rem; text-align: left;
  background: var(--wp--preset--color--surface);
  border: 2px solid var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius--m);
  font: inherit; color: var(--wp--preset--color--ink); cursor: pointer;
}
.showcase__tile:hover { border-color: var(--wp--preset--color--brand-light); }
.showcase__tile[aria-current="true"] {
  border-color: var(--wp--preset--color--brand);
  background: var(--wp--preset--color--sky-tint);
}
.showcase__thumb {
  position: relative; flex: 0 0 auto; width: 100%; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 6px; background: var(--wp--preset--color--line);
}
.wp-block-post-content .showcase__thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  aspect-ratio: auto; object-fit: cover; border-radius: 0;
}
/* The small play mark on a video tile's thumbnail. */
.showcase__thumb[data-kind="video"]::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--wp--preset--color--surface);
}
.showcase__thumb[data-kind="video"]::before {
  content: ""; position: absolute; z-index: 1; inset: 0; margin: auto;
  width: 0; height: 0; transform: translateX(1px);
  border-block: 0.3rem solid transparent;
  border-inline-start: 0.5rem solid var(--wp--preset--color--brand);
}
.showcase__label {
  min-width: 0; padding-inline: 0.15rem;
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--xs); line-height: 1.25;
}
.showcase__kind {
  display: block; margin-top: 0.15rem;
  font-family: var(--wp--preset--font-family--body); font-weight: 400;
  font-size: 0.78rem; color: var(--wp--preset--color--ink-muted);
}

/* A photo that is taller than the stage (a phone shot in a wide stage) is
   shown whole instead of having its top and bottom cut off. bca.js sets
   this when the photo loads. */
.wp-block-post-content .showcase__stage .showcase__img[data-fit="contain"] { object-fit: contain; }
/* Photographs are 3:2; video is 16:9. */
.showcase--photo .showcase__stage { aspect-ratio: 3 / 2; }

/* "showcase--side": on a wide screen the tiles become a list beside the
   stage, so the player gets the width and nothing sits under it. */
@media (min-width: 62em) {
  .showcase--side.is-enhanced:has(> .showcase__rail) {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 21rem);
    grid-template-areas: "stage rail" "caption rail";
    column-gap: var(--wp--preset--spacing--md); align-items: start;
  }
  .showcase--side.is-enhanced > .showcase__stage { grid-area: stage; }
  .showcase--side.is-enhanced > .showcase__caption { grid-area: caption; }
  .showcase--side.is-enhanced > .showcase__rail { grid-area: rail; grid-template-columns: 1fr; }
  .showcase--side .showcase__tile { flex-direction: row; align-items: center; gap: 0.7rem; padding: 0.45rem; height: auto; }
  .showcase--side .showcase__thumb { flex: 0 0 7.5rem; width: 7.5rem; }
  .showcase--side .showcase__label { font-size: var(--wp--preset--font-size--sm); }
}

/* --- Tabs -------------------------------------------------------------------
   A group with the class "tabs" holding groups with the class "tabs__panel".
   Each panel starts with a "tabs__head" group: its heading becomes the tab,
   and a small label line above the heading becomes the line under it.
   bca.js builds the row of tabs and shows one panel at a time. With no
   script the panels simply follow one another, each under its heading. */
.tabs { display: grid; gap: var(--wp--preset--spacing--md); min-width: 0; }
.tabs > .tabs__panel { display: grid; gap: var(--wp--preset--spacing--sm); min-width: 0; margin: 0; }
.tabs > .tabs__panel[hidden] { display: none; }
.tabs__head > * { margin: 0; }
.tabs.is-enhanced .tabs__head { display: none; }
.tabs__list {
  display: flex; flex-wrap: wrap; gap: 0.35rem; justify-self: start; max-width: 100%;
  padding: 0.35rem; margin: 0;
  background: var(--wp--preset--color--sky-tint);
  border-radius: var(--wp--custom--radius--l);
}
.tabs__tab {
  display: grid; gap: 0.1rem; flex: 1 1 auto; min-width: 9rem;
  padding: 0.6rem 1.15rem; text-align: left;
  background: transparent; border: 0; cursor: pointer;
  border-radius: var(--wp--custom--radius--m);
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--md); line-height: 1.2;
  color: var(--wp--preset--color--brand);
}
.tabs__tab:hover { background: rgba(0, 32, 132, 0.08); }
.tabs__tab[aria-selected="true"] {
  background: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--ink-invert);
}
.tabs__tab-sub {
  font-family: var(--wp--preset--font-family--body); font-weight: 400;
  font-size: var(--wp--preset--font-size--xs); letter-spacing: 0;
  color: var(--wp--preset--color--ink-muted);
}
.tabs__tab[aria-selected="true"] .tabs__tab-sub { color: inherit; opacity: 0.85; }
@media (max-width: 39.99em) {
  .tabs__list { justify-self: stretch; }
  .tabs__tab { flex: 1 1 0; min-width: 0; align-content: center; padding-inline: 0.7rem; font-size: 0.95rem; }
}
.wp-block-post-content p.tabs-label { margin: var(--wp--preset--spacing--xl) 0 var(--wp--preset--spacing--xs); }

/* A row of small photos with a label under each — four across, two on a phone. */
.photo-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wp--preset--spacing--xs); }
.photo-strip > .wp-block-image { margin: 0; }
.wp-block-post-content .photo-strip > .wp-block-image img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--wp--custom--radius--m);
}
.photo-strip > .wp-block-image figcaption {
  margin: var(--wp--preset--spacing--xxxs) 0 0; text-align: left;
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--ink);
}
.info-card > .photo-strip { margin-top: var(--wp--preset--spacing--md); }
@media (max-width: 29.99em) { .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Housing: the story beside its photo. Both columns are fluid and the text
   fills its column, so there is never a dead gap between them however wide
   the screen is (Steve 11/18). */
@media (min-width: 62em) {
  .split--gallery { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; column-gap: var(--wp--preset--spacing--xl); }
  .split--gallery > .prose { max-width: none; }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
}
.hub-grid + .legal-line, .tabs + .legal-line { margin-block-start: var(--wp--preset--spacing--lg); }

/* --- Photo viewer (lightbox) ----------------------------------------------
   bca.js wraps each photo in a "photo-strip" in a button, and adds an
   Enlarge button to a photo on a showcase stage. Either opens the photo large
   in a <dialog>; arrows, keys and swipe step through the group. */
.photo-strip__open {
  position: relative; display: block; width: 100%; padding: 0; margin: 0;
  border: 0; background: none; cursor: zoom-in;
  border-radius: var(--wp--custom--radius--m);
}
.photo-strip__open img { transition: filter var(--wp--custom--motion--duration) var(--wp--custom--motion--ease); }
.photo-strip__open:hover img { filter: brightness(1.06); }
.photo-strip__open::after {
  content: ""; position: absolute; right: 0.4rem; bottom: 0.4rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: rgb(255 255 255 / 0.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002084' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / 1.05rem no-repeat;
  box-shadow: 0 1px 4px rgb(0 16 66 / 0.25);
}
.photo-strip__open:focus-visible { outline: 3px solid var(--wp--preset--color--brand-light); outline-offset: 3px; }

.wp-block-post-content .showcase__stage .showcase__img.is-zoomable { cursor: zoom-in; }
.showcase__zoom {
  position: absolute; z-index: 2; right: 0.75rem; bottom: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 2.5rem; padding: 0.45rem 0.9rem 0.45rem 0.6rem;
  border: 0; border-radius: var(--wp--custom--radius--pill);
  background: rgb(255 255 255 / 0.95); color: var(--wp--preset--color--brand);
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--xs); cursor: pointer;
  box-shadow: 0 2px 8px rgb(0 16 66 / 0.25);
}
.showcase__zoom-icon { width: 1.1rem; height: 1.1rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002084' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / contain no-repeat; }
.showcase__zoom:hover { background: #fff; }
.showcase__zoom:focus-visible { outline: 3px solid var(--wp--preset--color--brand-light); outline-offset: 3px; }

dialog.photo-viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: clamp(0.75rem, 3vw, 2.5rem);
  border: 0; background: transparent; color: var(--wp--preset--color--ink-invert);
  overflow: hidden;
}
dialog.photo-viewer::backdrop { background: rgb(0 12 48 / 0.96); }
html:has(dialog.photo-viewer[open]) { overflow: hidden; }
.photo-viewer__frame { position: relative; height: 100%; display: grid; place-items: center; padding-inline: 4rem; }
.photo-viewer__figure { margin: 0; display: grid; gap: 0.75rem; justify-items: center; max-width: min(100%, 80rem); }
.photo-viewer__img {
  display: block; width: auto; height: auto; max-width: 100%;
  max-height: calc(100vh - 9rem); max-height: calc(100dvh - 9rem);
  object-fit: contain; border-radius: var(--wp--custom--radius--m);
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.35);
}
.photo-viewer__caption {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.25rem 1rem;
  margin: 0; text-align: center;
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--md);
}
.photo-viewer__count {
  font-family: var(--wp--preset--font-family--body); font-weight: 400;
  font-size: var(--wp--preset--font-size--sm); opacity: 0.8;
}
.photo-viewer__btn, .photo-viewer__close {
  position: absolute; display: grid; place-items: center;
  width: 3rem; height: 3rem; padding: 0; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / 0.95); color: var(--wp--preset--color--brand); cursor: pointer;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.3);
}
.photo-viewer__btn:hover, .photo-viewer__close:hover { background: #fff; }
.photo-viewer__btn:focus-visible, .photo-viewer__close:focus-visible { outline: 3px solid var(--wp--preset--color--brand-light); outline-offset: 3px; }
.photo-viewer__btn { top: 50%; transform: translateY(-50%); }
.photo-viewer__btn--prev { left: 0; }
.photo-viewer__btn--next { right: 0; }
.photo-viewer__close { top: 0; right: 0; font-size: 2rem; line-height: 1; }
.photo-viewer__chev { width: 0.7rem; height: 0.7rem; border: solid currentColor; border-width: 0 3px 3px 0; }
.photo-viewer__btn--prev .photo-viewer__chev { transform: translateX(2px) rotate(135deg); }
.photo-viewer__btn--next .photo-viewer__chev { transform: translateX(-2px) rotate(-45deg); }
.photo-viewer[data-single] .photo-viewer__btn, .photo-viewer[data-single] .photo-viewer__count { display: none; }
/* Phones: the arrows move under the photo, beside the caption, where a thumb reaches them. */
@media (max-width: 47.99em) {
  .photo-viewer__frame { padding-inline: 0; padding-block: 3.5rem 4rem; }
  .photo-viewer__img { max-height: calc(100vh - 12rem); max-height: calc(100dvh - 12rem); }
  .photo-viewer__btn { top: auto; bottom: 0; transform: none; }
  .photo-viewer__caption { font-size: var(--wp--preset--font-size--base); }
}
@media (prefers-reduced-motion: no-preference) {
  dialog.photo-viewer[open] .photo-viewer__figure { animation: bca-viewer-in 220ms ease-out; }
  dialog.photo-viewer[open]::backdrop { animation: bca-viewer-fade 220ms ease-out; }
}
@keyframes bca-viewer-in { from { opacity: 0; transform: scale(0.97); } }
@keyframes bca-viewer-fade { from { opacity: 0; } }

/* --- Block screenshot round, 11/18 evening -------------------------------- */

/* A subline straight under a section H2 gets a real gap (Preschool
   enrichment, About close: "more top padding"). */
.wp-block-post-content .section-intro__title + :is(.section-intro__text, .section-intro__sub) { margin-top: var(--wp--preset--spacing--sm); }

/* "See All FAQs" sits clear of the last question. */
.wp-block-post-content :is(.wrap, .faq__list) > details.faq__item + p { margin-top: var(--wp--preset--spacing--lg); }

/* Standard closing band, "cta-close" (About, Mission & Values, Leadership).
   One shape everywhere: label, H2, one line, one primary button, then
   optional text links, with the same gaps between each. */
.wp-block-post-content .cta-close .wrap > h2 { margin: 0; }
.wp-block-post-content .cta-close .wrap > h2 + p { margin-top: var(--wp--preset--spacing--sm); }
.wp-block-post-content .cta-close .section-intro__label + h2 { margin-top: var(--wp--preset--spacing--xxs); }
.wp-block-post-content .cta-close .hero__actions { margin-top: var(--wp--preset--spacing--md); }
.wp-block-post-content .cta-close p.cta-close__links { margin-top: var(--wp--preset--spacing--lg); margin-bottom: 0; }
.wp-block-post-content .cta-close p.cta-close__lead {
  max-width: 52ch; margin-top: 0;
  font-family: var(--wp--preset--font-family--heading); font-weight: 700;
  font-size: var(--wp--preset--font-size--md); line-height: var(--wp--custom--line-height--snug);
  color: var(--wp--preset--color--brand);
}

/* Homepage: Justin's photo caption centered under the photo, and a gap
   above "WHY BLOCK?" so it reads as its own beat. */
.wp-block-post-content .attrib--center { text-align: center; }
.wp-block-post-content .words p.words__why { margin-top: var(--wp--preset--spacing--lg); }

/* Preschool: "We're hiring." is now an H2; same look as before. */
.wp-block-post-content h2.careers-line__lead {
  margin: 0;
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--brand);
}

/* One-column feature list with a small setting tag after each name
   (Adult Residential Services residences). */
.wp-block-post-content ul.feature-list.feature-list--single { grid-template-columns: 1fr; }
.feature-list__tag {
  display: inline-block; margin-left: 0.35rem; padding: 0.05rem 0.55rem;
  border-radius: var(--wp--custom--radius--pill);
  background: var(--wp--preset--color--sky-tint); color: var(--wp--preset--color--sky-text);
  font-family: var(--wp--preset--font-family--body); font-weight: 600;
  font-size: var(--wp--preset--font-size--xs); letter-spacing: 0.02em; vertical-align: 0.1em;
}

/* Leadership: three people per row (Executive 3 + 3, Senior 3 + 2,
   centred), the landscape photo band, the board in one column, and the
   Senior Team sitting close under the Executive Team. */
@media (min-width: 40em) {
  .person-grid.person-grid--3 > .person { flex: 0 0 calc((100% - 2 * var(--wp--preset--spacing--xl)) / 3); }
}
.person-grid.person-grid--3 { column-gap: var(--wp--preset--spacing--xl); max-width: 58rem; margin-inline: auto; }
@media (max-width: 39.99em) { .person-grid.person-grid--3 { column-gap: var(--wp--preset--spacing--md); } .person-grid.person-grid--3 > .person { flex: 0 0 calc((100% - var(--wp--preset--spacing--md)) / 2); } }
.section.section--tight { padding-block: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--xl); }
.section.section--flush-top { padding-top: 0; }
.wp-block-post-content .wide-photo img { width: 100%; height: auto; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--wp--custom--radius--l); }
@media (max-width: 39.99em) { .wp-block-post-content .wide-photo img { aspect-ratio: 3 / 2; } }
.wp-block-post-content .board-list > .wp-block-list { columns: 1; }

/* Mission & Values: Vivian's quote now follows the cards. */
.wp-block-post-content .quotecard--after { margin-top: var(--wp--preset--spacing--xl); max-width: 60rem; }

/* Photo focal points for this round, so nobody loses the top of their head. */
.wp-block-post-content img[src*="as-mixing-batter"] { object-position: 50% 22%; }
.wp-block-post-content img[src*="related-pals-with-paws"] { object-position: 50% 40%; }
.wp-block-post-content img[src*="related-clinical"] { object-position: 50% 30%; }
.wp-block-post-content img[src*="ars-safety-stairs"] { object-position: 60% 25%; }
.wp-block-post-content img[src*="ars-independence-van"] { object-position: 55% 20%; }
.wp-block-post-content img[src*="ars-staff-resident-reading"] { object-position: 40% 30%; }
/* The pool photo is a wide panorama with the child at the right edge: show it whole. */
.wp-block-post-content .split__photos .wp-block-image img[src*="mission-child-pool"] { aspect-ratio: auto; height: auto; object-fit: contain; }
.split--media:has(img[src*="mission-child-pool"]) { align-items: center; }

/* --- Donate page, rebuilt 11/18 evening ------------------------------------
   Phone feedback from Block: the form was far down the page and the photo was
   huge; donors had to pick a fund without knowing what each one was; the form
   scrolled inside its own box. */

/* A shorter banner. */
@media (min-width: 48em) {
  .page-hero--photo.page-hero--compact { min-height: clamp(18rem, 40vh, 26rem); }
}
@media (max-width: 47.9375em) {
  .page-hero--photo.page-hero--compact .page-hero__media :is(img, video) { aspect-ratio: 16 / 9; }
  .page-hero--photo.page-hero--compact > .wrap { padding-block: var(--wp--preset--spacing--md) var(--wp--preset--spacing--lg); }
}
.page-hero--photo .page-hero__media img[src*="as-individual-baking"] { object-position: 50% 18%; }

/* Giving section: funds on the left, the form on the right. */
.give { background: var(--wp--preset--color--sky-tint); }
.give__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wp--preset--spacing--lg); }
.give__grid > * { min-width: 0; }
.give__funds > * { margin-block: 0; }
.wp-block-post-content .give__funds .give__title { margin-top: var(--wp--preset--spacing--xxs); }
.wp-block-post-content .give__funds .give__intro { margin-top: var(--wp--preset--spacing--sm); max-width: 46ch; }
@media (min-width: 62em) {
  .give__grid { grid-template-columns: minmax(0, 1fr) calc(426px + 2 * var(--wp--preset--spacing--md)); column-gap: var(--wp--preset--spacing--xxl); align-items: start; }
  /* No sticky column: the live form is only a little taller than the fund
     list, so a sticky list drifted against it (Steve 11/18). Both columns
     scroll with the page. */
}

/* One card per fund: photo on top, then the name and one line on what it
   pays for. Same names and order as the fund dropdown in the form.
   Desktop: two across, with the General Fund (the default choice) as one
   wide card on top (Steve 11/18: the thumbnails were too small). */
.fund-list { margin-top: var(--wp--preset--spacing--md); }
.fund {
  display: grid; grid-template-rows: auto 1fr; margin: 0;
  background: #fff; border-radius: var(--wp--custom--radius--l); overflow: hidden;
  box-shadow: 0 1px 3px rgb(0 32 132 / .08);
}
.fund > .wp-block-image { margin: 0; }
.wp-block-post-content .fund .fund__photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0;
}
.fund__text { padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--md) var(--wp--preset--spacing--md); }
.fund__text > * { margin: 0; }
.wp-block-post-content .fund h3.fund__name { font-size: var(--wp--preset--font-size--md); line-height: 1.25; }
.wp-block-post-content .fund p.fund__line { margin-top: 0.3rem; font-size: var(--wp--preset--font-size--sm); line-height: 1.5; color: var(--wp--preset--color--ink-muted); }
@media (min-width: 48em) {
  .fund-list.carousel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wp--preset--spacing--md); }
  .fund-list.carousel > .fund:first-child { grid-column: 1 / -1; grid-template-rows: auto; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; }
  .wp-block-post-content .fund:first-child .fund__photo img { aspect-ratio: 16 / 9; height: 100%; }
  .fund:first-child .fund__text { padding: var(--wp--preset--spacing--md) var(--wp--preset--spacing--lg); }
  .wp-block-post-content .fund:first-child h3.fund__name { font-size: var(--wp--preset--font-size--lg); }
}
.wp-block-post-content .fund img[src*="prek-kid-swing"] { object-position: 50% 30%; }
.wp-block-post-content .fund img[src*="adp-mural-group"] { object-position: 50% 20%; }
.wp-block-post-content .fund img[src*="home-residence-game-night"] { object-position: 70% 35%; }
.wp-block-post-content .fund img[src*="related-pals-with-paws"] { object-position: 50% 35%; }

/* The form: a white panel on desktop; edge to edge on phones, no padding,
   because the form is already a box of its own. */
.give__form { background: #fff; border-radius: var(--wp--custom--radius--l); padding: var(--wp--preset--spacing--md); box-shadow: 0 6px 24px rgb(0 32 132 / .08); }
.give__embed iframe { display: block; width: 100%; border: 0; }
/* Donorbox's Classic form is a fixed 424px wide and sits at the left of its
   frame, which left 40px more space on the right (Steve 11/18). Cap the frame
   at the form's width and centre it. Revisit if Block switches to the
   OmniGive form, which fills its frame. */
.wp-block-post-content .give__embed iframe { max-width: 426px !important; margin-inline: auto; }
.wp-block-post-content .give__form p.give__alt { margin: var(--wp--preset--spacing--sm) 0 0; font-size: var(--wp--preset--font-size--sm); }
@media (max-width: 47.9375em) {
  .give__form {
    margin-inline: calc(-1 * var(--wp--custom--gutter, 1.25rem));
    padding: 0 0 var(--wp--preset--spacing--md); border-radius: 0; box-shadow: none;
  }
  .wp-block-post-content .give__form p.give__alt { padding-inline: var(--wp--custom--gutter, 1.25rem); }
}

/* Why give: the programs line and the Pals With Paws card. */
.wp-block-post-content p.why__programs { text-align: center; max-width: 52ch; margin: var(--wp--preset--spacing--xl) auto var(--wp--preset--spacing--lg); font-weight: 600; color: var(--wp--preset--color--brand); }
.pwp-spot { display: grid; gap: var(--wp--preset--spacing--md); align-items: center; }
.pwp-spot__copy > :first-child { margin-top: 0; }
.pwp-spot__photo .wp-block-image { margin: 0; }
.wp-block-post-content .pwp-spot__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: var(--wp--custom--radius--m); }
@media (min-width: 48em) { .pwp-spot { grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr); column-gap: var(--wp--preset--spacing--xl); } }

/* Required disclosures: bold, at least 10 pt (NY Exec. Law 174-b). */
.donate-legal { padding-block: var(--wp--preset--spacing--lg); }
.wp-block-post-content p.donate-legal__text { font-weight: 700; font-size: 0.875rem; line-height: 1.6; color: var(--wp--preset--color--ink); max-width: none; }
/* Donate's photo-and-copy rows centre the copy against the photo. */
.give ~ .section .split--media { align-items: center; }
.give ~ .section .split--media + .split--media { margin-top: var(--wp--preset--spacing--xl); }

/* Phones: the fund cards are the site's standard card carousel (arrows and
   dots from bca.js, same as Our Spaces). From tablet up they are a plain
   list, nothing overflows, and the script hides the controls. */
.fund-list.carousel { --carousel-gap: var(--wp--preset--spacing--xs); }
@media (max-width: 47.9375em) {
  .fund-list.carousel .fund { height: 100%; }
  .wp-block-post-content .fund .fund__photo img { aspect-ratio: 16 / 9; }
  .wp-block-post-content .give__funds .give__intro { font-size: var(--wp--preset--font-size--sm); }
  .give__grid { gap: var(--wp--preset--spacing--sm); }
}
@media (min-width: 48em) {
  .fund-list.carousel {
    grid-auto-flow: row; grid-auto-columns: auto;
    overflow: visible; scroll-snap-type: none;
    margin-inline-end: 0; padding-inline-end: 0; scroll-padding-inline-end: 0;
  }
}

/* Breadcrumbs (the "Home / Donate" trail above the eyebrow): lighter than the
   eyebrow so the two don't read as two bold labels (Steve 11/18). Normal
   case, regular weight, a touch smaller; the eyebrow below keeps its look. */
.page-hero nav.page-hero__kicker {
  font-family: var(--wp--preset--font-family--body); font-weight: 400;
  text-transform: none; letter-spacing: 0.01em;
  font-size: var(--wp--preset--font-size--xs);
  opacity: .85;
}
.page-hero nav.page-hero__kicker [aria-current="page"] { font-weight: 600; }
/* Clear space between the trail and the eyebrow, so they read as two things. */
.page-hero nav.page-hero__kicker { margin-bottom: var(--wp--preset--spacing--md); }
