/* =====================================================================
   NPower Services, Global CSS Foundation
   styles.css, v1.0 (Build Prompt 01)
   Design system per 02_CSS_DESIGN_BLUEPRINT.md (owner-approved palette).
   NPower is a community programs organization, not a nonprofit.
   No framework, no JS, no icon library. Native modern CSS only.
   Section order: 1 Reset, 2 Tokens, 3 Layout, 4 Typography,
   5 Components, 6 Utilities, 7 Responsive, 8 Accessibility.
   ===================================================================== */

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

* { margin: 0; }

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

body {
  min-height: 100svh;
  overflow-x: hidden;              /* no sideways scroll on any page */
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--fg);
  background-color: var(--color-surface);   /* soft off-white, not pure white */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

a { color: var(--link); }

ul[role="list"],
ol[role="list"] { list-style: none; padding: 0; }

:where(h1, h2, h3, h4, h5, h6) {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p,
li { overflow-wrap: break-word; }
:where(p) { text-wrap: pretty; }

:where(a):focus-visible,
:where(button, [type="button"], [type="submit"], [type="reset"]):focus-visible,
:where(input, select, textarea, [tabindex]):focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
  border-radius: var(--radius-xs);
}

::selection {
  background: var(--color-aqua);
  color: var(--color-plum-deep);
}

:target { scroll-margin-block-start: var(--space-16); }

hr {
  border: 0;
  block-size: 1px;
  background: var(--border);
  margin-block: var(--space-8);
}

/* =====================================================================
   2. DESIGN TOKENS
   ===================================================================== */
:root {
  /* ---- Brand palette (owner-approved, 5 colors) ---- */
  --color-aqua:        #85E7ED;   /* bright highlight, dark-surface / accent only */
  --color-plum:        #330134;   /* dark plum */
  --color-plum-mid:    #4D144B;   /* plum-magenta, primary action on light */
  --color-plum-deep:   #210044;   /* deepest plum-indigo, dark surface + body text on light */
  --color-off-white:   #FBF8F9;   /* soft light surface, preferred over pure white */

  /* ---- Derived neutrals / roles (contrast-guaranteed) ---- */
  --color-white:       #FFFFFF;
  --color-surface:     var(--color-off-white);
  --color-panel:       #FFFFFF;
  --color-surface-alt: #F2EAF0;   /* soft plum-tinted off-white */
  --color-text:        #210044;   /* body text on light, 17.33:1 on off-white */
  --color-heading:     #330134;   /* headings on light, 16.65:1 */
  --color-action:      #4D144B;   /* links / primary button on light, 13.11:1 */
  --color-muted:       #635563;   /* secondary / meta text on light, 6.61:1 */
  --color-on-dark:     #FBF8F9;   /* text on dark surfaces, 17.33:1 */
  --color-on-dark-muted: #E7D9E6; /* secondary text on dark, 13.47:1 */
  --color-border:      #E9DFE6;   /* dividers / borders on light */
  --color-border-strong: #D8C7D4;
  --color-border-dark: rgba(255, 255, 255, 0.16);

  /* ---- UI states (AA verified) ---- */
  --color-error:         #B0201A; /* 6.49:1 on off-white */
  --color-error-surface: #FBEDEC;
  --color-success:       #146C43; /* 6.11:1 on off-white */
  --color-success-surface: #EAF3EE;

  /* ---- Gradients (selective accents only) ---- */
  --grad-deep:   linear-gradient(135deg, #210044 0%, #4D144B 100%);
  --grad-accent: linear-gradient(90deg, #4D144B 0%, #85E7ED 100%);
  --grad-glow:   radial-gradient(closest-side, rgba(133, 231, 237, 0.16), transparent);
  --grad-image-overlay: linear-gradient(to top, rgba(33, 0, 68, 0.86) 0%, rgba(33, 0, 68, 0.28) 52%, rgba(33, 0, 68, 0) 100%);

  /* ---- Contextual roles (flip on dark surfaces) ---- */
  --fg:               var(--color-text);
  --fg-heading:       var(--color-heading);
  --fg-muted:         var(--color-muted);
  --link:             var(--color-action);
  --link-hover:       var(--color-plum-deep);
  --accent:           var(--color-action);   /* eyebrow / small accents */
  --border:           var(--color-border);
  --focus-ring-color: var(--color-action);

  /* ---- Typography ----
     Oswald (condensed display) for headings, Inter for body/UI. No script/cursive
     faces are used anywhere. The heading scale is restrained/editorial, not
     poster-scale; because Oswald is condensed the hero can carry a little more size
     (~48px desktop) while staying compact on mobile (~28px). */
  --font-display: "Oswald", "Arial Narrow", Arial, system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  /* Accent = the upright display face (no script/cursive). Kept as a token so the
     rare brand-flourish line stays visually distinct without a decorative font. */
  --font-accent:  "Oswald", "Arial Narrow", Arial, sans-serif;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --text-xs:   0.8125rem;   /* 13px */
  --text-sm:   0.9375rem;   /* 15px */
  --text-base: 1.0625rem;   /* 17px */
  --text-lg:   clamp(1.125rem, 1.05rem + 0.40vw, 1.25rem);
  --text-xl:   clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --text-2xl:  clamp(1.25rem, 1.16rem + 0.40vw, 1.45rem);   /* h3  ~20 -> 23px  */
  --text-3xl:  clamp(1.4rem, 1.24rem + 0.70vw, 1.72rem);    /* h2  ~22 -> 27.5px */
  --text-4xl:  clamp(1.6rem, 1.40rem + 1.00vw, 2.05rem);    /* h1  ~26 -> 33px  */
  --text-5xl:  clamp(1.75rem, 1.20rem + 2.20vw, 3rem);      /* hero/hub h1 ~28 -> 48px (Oswald) */
  --text-display: clamp(2rem, 1.65rem + 1.75vw, 2.7rem);    /* .display ~32 -> 43px */

  --lh-tight:   1.12;   /* tight for Oswald's condensed display forms */
  --lh-snug:    1.28;
  --lh-normal:  1.6;
  --lh-relaxed: 1.75;

  --tracking-tight:  0;
  --tracking-normal: 0;
  --tracking-wide:   0.09em;

  --measure: 68ch;   /* comfortable reading line length */

  /* ---- Spacing scale (8px base) ---- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6.5rem;

  /* Fluid section rhythm (intentionally varied, not uniform) */
  --section-space:    clamp(3rem, 6vw, 5.5rem);
  --section-space-lg: clamp(4rem, 8vw, 8rem);

  /* ---- Content widths ---- */
  --container-max:    75rem;    /* 1200px */
  --container-narrow: 45rem;    /* 720px  */
  --container-wide:   87.5rem;  /* 1400px */
  --container-gutter: clamp(1.25rem, 4vw, 2rem);

  /* ---- Radii (contemporary, not toy-like) ---- */
  --radius-xs:   3px;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 999px;   /* used sparingly, tags only */

  /* ---- Depth (sparse, plum-based) ---- */
  --shadow-sm: 0 1px 3px rgba(33, 0, 68, 0.10);
  --shadow-md: 0 6px 20px rgba(33, 0, 68, 0.12);
  --shadow-lg: 0 16px 40px rgba(33, 0, 68, 0.16);

  /* ---- Motion ---- */
  --t-fast: 150ms ease;
  --t-base: 240ms ease;
  --t-slow: 380ms ease;

  /* ---- Focus ---- */
  --focus-ring-width:  2px;
  --focus-ring-offset: 2px;

  /* ---- Layering ---- */
  --z-base: 0;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
}

/* =====================================================================
   3. GLOBAL LAYOUT PRIMITIVES
   ===================================================================== */

/* Container: one width, two modifiers */
.container {
  width: 100%;
  max-inline-size: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}
.container--narrow { max-inline-size: var(--container-narrow); }
.container--wide   { max-inline-size: var(--container-wide); }

/* Section: vertical rhythm, varied by modifier (not mechanical) */
.section { padding-block: var(--section-space); }
.section--lg    { padding-block: var(--section-space-lg); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--flush { padding-block: 0; }

/* Full-bleed: break a contained ancestor to edge-to-edge safely */
.full-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
}

/* Stack: consistent vertical spacing between flow children */
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-block-start: var(--stack-space, var(--space-6)); }
.stack--xs > * + * { margin-block-start: var(--space-2); }
.stack--sm > * + * { margin-block-start: var(--space-4); }
.stack--lg > * + * { margin-block-start: var(--space-10); }
.stack--xl > * + * { margin-block-start: var(--space-16); }

/* Cluster: horizontal group that wraps gracefully */
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-space, var(--space-4));
}
.cluster--between { justify-content: space-between; }
.cluster--center  { justify-content: center; }
.cluster--sm { --cluster-space: var(--space-2); }

/* Grid: responsive, auto-fitting by default */
.grid {
  display: grid;
  gap: var(--grid-gap, var(--space-8));
}
.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Split: media + text composition (not a forced left/right treadmill) */
.split {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.split--text-wide  { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--media-wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split--media-first > .split__media { order: -1; }

/* Reading measure helper */
.measure { max-inline-size: var(--measure); }
.measure--narrow { max-inline-size: 54ch; }

/* Center a text block on its own axis (used deliberately, not everywhere) */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* =====================================================================
   4. TYPOGRAPHY
   ===================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--fg-heading);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--text-4xl); line-height: var(--lh-tight); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); font-weight: var(--fw-semibold); }
h4 { font-size: var(--text-xl);  font-weight: var(--fw-semibold); letter-spacing: var(--tracking-normal); }
h5 { font-size: var(--text-lg);  font-weight: var(--fw-semibold); letter-spacing: var(--tracking-normal); }
h6 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Display: the largest hero-scale headline */
.display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-heading);
}

/* Eyebrow: small label above a heading (accent adapts to surface) */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
}

/* Lede: intro paragraph */
.lede {
  font-size: var(--text-lg);
  line-height: var(--lh-relaxed);
  color: var(--fg);
  max-inline-size: var(--measure);
}

.text-muted { color: var(--fg-muted); }
.text-sm  { font-size: var(--text-sm); }
.text-meta {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  letter-spacing: 0.01em;
}

strong, b { font-weight: var(--fw-semibold); color: inherit; }

/* Prose: readable long-form defaults */
.prose { max-inline-size: var(--measure); }
.prose > * + * { margin-block-start: var(--space-5); }
.prose h2, .prose h3, .prose h4 { margin-block-start: var(--space-10); }
.prose :is(ul, ol) { padding-inline-start: var(--space-6); }
.prose li + li { margin-block-start: var(--space-2); }
.prose a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  transition: color var(--t-fast);
}
.prose a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

/* Inline text link (reusable outside prose) */
.link {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  transition: color var(--t-fast), text-decoration-thickness var(--t-fast);
}
.link:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

/* Quote */
.quote {
  border-inline-start: 3px solid transparent;
  border-image: var(--grad-accent) 1;
  padding-inline-start: var(--space-5);
  font-size: var(--text-lg);
  line-height: var(--lh-relaxed);
  color: var(--fg-heading);
}
.quote cite {
  display: block;
  margin-block-start: var(--space-3);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--fg-muted);
}

/* =====================================================================
   5. COMPONENTS
   ===================================================================== */

/* ---- 5.1 Surfaces (set contextual roles) ---- */
.surface { background-color: var(--color-surface); color: var(--fg); }
.surface--panel { background-color: var(--color-panel); }
.surface--alt   { background-color: var(--color-surface-alt); }

.surface--deep,
.surface--plum,
.surface--gradient {
  color: var(--color-on-dark);
  /* flip contextual roles so nested text stays AA on dark */
  --fg: var(--color-on-dark);
  --fg-heading: var(--color-white);
  --fg-muted: var(--color-on-dark-muted);
  --link: var(--color-aqua);
  --link-hover: var(--color-white);
  --accent: var(--color-aqua);
  --border: var(--color-border-dark);
  --focus-ring-color: var(--color-aqua);
}
.surface--deep     { background-color: var(--color-plum-deep); }
.surface--plum     { background-color: var(--color-plum); }
.surface--gradient { background-color: var(--color-plum-deep); background-image: var(--grad-deep); }

/* Optional restrained glow accent behind a deep surface.
   overflow:hidden keeps the offset glow pseudo-element from causing page overflow. */
.surface--glow { position: relative; isolation: isolate; overflow: hidden; }
.surface--glow::before {
  content: "";
  position: absolute;
  inset-block-start: -20%;
  inset-inline-end: -10%;
  inline-size: 60%;
  block-size: 120%;
  background: var(--grad-glow);
  z-index: -1;
  pointer-events: none;
}

/* ---- 5.2 Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-block-size: 2.75rem;         /* 44px tap target */
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  transition: background-color var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: translateY(1px); }

/* Primary: solid plum action, white text (13.84:1) */
.btn--primary {
  background-color: var(--color-action);
  color: var(--color-white);
}
.btn--primary:hover { background-color: var(--color-plum-deep); }

/* Secondary: outline that adapts to the surface via currentColor */
.btn--secondary {
  background-color: transparent;
  color: var(--link);
  border-color: currentColor;
}
.btn--secondary:hover { background-color: var(--color-surface-alt); color: var(--color-plum-deep); }
/* On dark contexts (hero + dark surfaces) the outline button needs a LIGHT
   default text/border, not the dark --link colour, or it vanishes on the plum. */
.page-hero .btn--secondary,
.surface--deep .btn--secondary,
.surface--plum .btn--secondary,
.surface--gradient .btn--secondary {
  color: var(--color-on-dark);
  border-color: rgba(251, 248, 249, 0.55);
}
.page-hero .btn--secondary:hover,
.surface--deep .btn--secondary:hover,
.surface--plum .btn--secondary:hover,
.surface--gradient .btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border-color: var(--color-white);
}

/* Accent: aqua fill with deep-plum text (12.76:1). High-energy, best on dark. */
.btn--accent {
  background-color: var(--color-aqua);
  color: var(--color-plum-deep);
}
.btn--accent:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--accent:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn--small { min-block-size: 2.25rem; padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn--block { display: flex; inline-size: 100%; }

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---- 5.3 Content object (intentionally neutral base) ---- */
.panel {
  background-color: var(--color-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}
.panel--alt   { background-color: var(--color-surface-alt); }
.panel--flat  { border-color: transparent; }
.panel--deep {
  background-color: var(--color-plum-deep);
  background-image: var(--grad-deep);
  border-color: transparent;
  color: var(--color-on-dark);
  --fg: var(--color-on-dark);
  --fg-heading: var(--color-white);
  --fg-muted: var(--color-on-dark-muted);
  --link: var(--color-aqua);
  --accent: var(--color-aqua);
}
/* Interactive object: subtle lift only when it is genuinely a link/button */
.panel--interactive {
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
}
.panel--interactive:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
}

/* Accent hairline (gradient), used sparingly as a section detail */
.rule-accent {
  border: 0;
  block-size: 3px;
  inline-size: clamp(3rem, 8vw, 5rem);
  border-radius: var(--radius-pill);
  background-image: var(--grad-accent);
  margin-block: var(--space-4);
}

/* Tag / pill (small, sparing) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.3em 0.85em;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  background-color: var(--color-surface-alt);
  color: var(--color-plum);
  border: 1px solid var(--color-border);
}
.tag--accent { background-color: var(--color-aqua); color: var(--color-plum-deep); border-color: transparent; }

/* ---- 5.4 Media / imagery framing ---- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--color-surface-alt);   /* fallback surface, never a broken void */
}
.media > img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
.media--landscape { aspect-ratio: 3 / 2; }
.media--wide      { aspect-ratio: 16 / 9; }
.media--portrait  { aspect-ratio: 3 / 4; }
.media--square    { aspect-ratio: 1 / 1; }

/* Overlay variant: text can sit on the image with guaranteed contrast */
.media--overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-image-overlay);
}
.media__caption {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 1;
  padding: var(--space-6);
  color: var(--color-on-dark);
}
.media__caption :is(h1, h2, h3, h4) { color: var(--color-white); }

figure { margin: 0; }
figcaption {
  margin-block-start: var(--space-3);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

/* Placeholder: a labeled block for pending photography (not fake imagery) */
.placeholder {
  display: grid;
  place-items: center;
  padding: var(--space-6);
  text-align: center;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  background-color: var(--color-surface-alt);
  border: 1px dashed var(--color-border-strong);
  color: var(--fg-muted);
  font-size: var(--text-sm);
}
.placeholder--portrait { aspect-ratio: 3 / 4; }
.placeholder--deep {
  background-color: var(--color-plum-deep);
  background-image: var(--grad-deep);
  border-color: var(--color-border-dark);
  color: var(--color-on-dark-muted);
}

/* ---- 5.5 Forms (global styling only, no forms built) ---- */
.field { display: flex; flex-direction: column; gap: var(--space-2); }

.label {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--fg-heading);
}
.label .req { color: var(--color-action); font-weight: var(--fw-bold); }
.surface--deep .label .req,
.surface--plum .label .req { color: var(--color-aqua); }

.input,
.textarea,
.select {
  inline-size: 100%;
  min-block-size: 2.75rem;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-panel);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { min-block-size: 7.5rem; resize: vertical; line-height: var(--lh-normal); }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-action) 50%),
                    linear-gradient(135deg, var(--color-action) 50%, transparent 50%);
  background-position: right 1.15rem center, right 0.85rem center;
  background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
  background-repeat: no-repeat;
  padding-inline-end: var(--space-10);
}
.input::placeholder,
.textarea::placeholder { color: var(--color-muted); opacity: 1; }

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--color-action);
  box-shadow: 0 0 0 3px rgba(77, 20, 75, 0.18);
}
.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* Checkbox / radio baseline */
.choice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  line-height: var(--lh-snug);
}
.choice input[type="checkbox"],
.choice input[type="radio"] {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  margin-block-start: 0.15rem;
  accent-color: var(--color-action);
  flex-shrink: 0;
}

.field__help { font-size: var(--text-sm); color: var(--fg-muted); }
.field__error { font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--color-error); }
.field__success { font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--color-success); }

.field--error .input,
.field--error .textarea,
.field--error .select { border-color: var(--color-error); background-color: var(--color-error-surface); }
.field--error .input:focus,
.field--error .textarea:focus { box-shadow: 0 0 0 3px rgba(176, 32, 26, 0.18); }

.field--success .input,
.field--success .textarea,
.field--success .select { border-color: var(--color-success); background-color: var(--color-success-surface); }

.input[disabled],
.textarea[disabled],
.select[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--color-surface-alt);
}

/* Inputs on dark surfaces stay high-clarity (white field, dark text) */
.surface--deep .input,
.surface--deep .textarea,
.surface--deep .select,
.surface--plum .input,
.surface--plum .textarea,
.surface--plum .select { border-color: var(--color-border-dark); }

/* =====================================================================
   6. UTILITIES (low-specificity, single-purpose, kept minimal)
   ===================================================================== */
.flow > * + * { margin-block-start: var(--flow-space, var(--space-4)); }

.mt-0 { margin-block-start: 0; }
.mt-2 { margin-block-start: var(--space-2); }
.mt-4 { margin-block-start: var(--space-4); }
.mt-6 { margin-block-start: var(--space-6); }
.mt-8 { margin-block-start: var(--space-8); }
.mt-12 { margin-block-start: var(--space-12); }
.mb-0 { margin-block-end: 0; }

.hidden { display: none !important; }   /* utility hide, documented single use of !important */

.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link: visible on focus */
.skip-link {
  position: absolute;
  inset-block-start: var(--space-2);
  inset-inline-start: var(--space-2);
  z-index: var(--z-modal);
  padding: var(--space-3) var(--space-5);
  background-color: var(--color-plum-deep);
  color: var(--color-on-dark);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--t-fast);
}
.skip-link:focus { transform: translateY(0); }

/* =====================================================================
   7. RESPONSIVE (intentional recomposition, mobile-friendly)
   ===================================================================== */

/* Tablet and below: grids and splits reduce columns */
@media (max-width: 1023px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .split,
  .split--text-wide,
  .split--media-wide { grid-template-columns: 1fr; }
  .split--media-first > .split__media { order: 0; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  /* keep multi-item auto grids at two columns where they still fit */
  .grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); }

  .btn--responsive { inline-size: 100%; }
  .cluster--stack-sm { flex-direction: column; align-items: stretch; }
}

@media (max-width: 479px) {
  .grid--auto { grid-template-columns: 1fr; }
  h1 { font-size: var(--text-3xl); }
}

/* =====================================================================
   8. ACCESSIBILITY
   ===================================================================== */

/* Respect users who reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .panel--interactive:hover,
  .btn:active,
  .btn--accent:hover { transform: none; }
}

/* Honour forced-colors / high-contrast mode: keep focus visible */
@media (forced-colors: active) {
  .btn { border-color: ButtonText; }
  :focus-visible { outline-color: Highlight; }
}

/* =====================================================================
   SHARED SITE SHELL + HOMEPAGE (Build Prompt 02)
   Consumes the foundation tokens and primitives above. No new color
   system. New values are kept local to their component where possible.
   ===================================================================== */

/* ---- Extra helpers used by the homepage ---- */
.measure-wide { max-inline-size: 52rem; }
.section-head > * + * { margin-block-start: var(--space-3); }
.link--arrow { font-weight: var(--fw-semibold); text-decoration: none; }
.link--arrow::after { content: " \2192"; transition: padding-inline-start var(--t-fast); }
.link--arrow:hover { text-decoration: underline; text-underline-offset: 0.14em; }
.link--arrow:hover::after { padding-inline-start: 0.25em; }

/* =====================================================================
   HEADER + PRIMARY NAVIGATION
   ===================================================================== */
.site-header {
  --header-h: 4.5rem;
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-sticky);
  background-color: var(--color-surface);
  border-block-end: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-block-size: var(--header-h);
}
.brand { display: inline-flex; align-items: center; border-radius: var(--radius-sm); }
.brand__logo { block-size: 3rem; inline-size: auto; }

.primary-nav__list { display: flex; align-items: center; gap: var(--space-1); }
.primary-nav__link {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
  text-decoration: none;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.primary-nav__link:hover { color: var(--color-action); background-color: var(--color-surface-alt); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--space-3);
  min-block-size: 2.75rem;
  padding-inline: var(--space-4);
  background-color: transparent;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-heading);
  font-weight: var(--fw-semibold);
}
.nav-toggle__box { position: relative; inline-size: 20px; block-size: 14px; }
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  inset-inline-start: 0;
  inline-size: 20px;
  block-size: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform var(--t-fast), background-color var(--t-fast);
}
.nav-toggle__bar { inset-block-start: 6px; }
.nav-toggle__bar::before { content: ""; inset-block-start: -6px; }
.nav-toggle__bar::after { content: ""; inset-block-start: 6px; }
.site-header.is-nav-open .nav-toggle__bar { background-color: transparent; }
.site-header.is-nav-open .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-nav-open .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    display: none;
    padding-block: var(--space-2) var(--space-4);
    background-color: var(--color-surface);
    border-block-end: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .site-header.is-nav-open .primary-nav { display: block; }
  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-inline: var(--container-gutter);
  }
  .primary-nav__link { min-block-size: 3rem; border-radius: var(--radius-sm); }
}

/* =====================================================================
   HOMEPAGE, HERO
   ===================================================================== */
.hero { position: relative; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 7rem);
}
.hero__content { max-inline-size: 34rem; }
.hero__eyebrow { margin-block-end: var(--space-4); }
.hero__title {
  font-size: var(--text-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-white);
}
.hero__lead {
  margin-block-start: var(--space-5);
  font-size: var(--text-lg);
  line-height: var(--lh-relaxed);
  color: var(--color-on-dark);
  max-inline-size: 33rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-block-start: var(--space-8); }
.hero__meta {
  margin-block-start: var(--space-6);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  color: var(--color-on-dark-muted);
}
.hero__media { position: relative; }
.hero__media img {
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* =====================================================================
   HOMEPAGE, PROGRAM DISCOVERY
   ===================================================================== */
.program-kicker,
.program-note .program-kicker {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
}
/* Per-program accents are defined globally in the Programs section below. */

.program-feature-text {
  padding: clamp(var(--space-8), 4vw, var(--space-16));
  background-color: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  border-inline-start: 5px solid var(--accent);
}
.program-feature-text__body { max-inline-size: 46rem; }
.program-feature-text h3 { font-size: var(--text-4xl); margin-block: var(--space-2) var(--space-4); }
.program-feature-text__desc { font-size: var(--text-lg); line-height: var(--lh-relaxed); color: var(--fg); }
.program-feature-text .link--arrow { display: inline-block; margin-block-start: var(--space-5); }

.program-card { display: flex; flex-direction: column; gap: var(--space-5); }
.program-card__body h3 { font-size: var(--text-2xl); margin-block-start: var(--space-1); }
.program-card__body p { color: var(--fg-muted); }
.program-card__body .link--arrow { margin-block-start: var(--space-1); display: inline-block; }

.program-note {
  padding: var(--space-8);
  background-color: var(--color-surface-alt);
  border-radius: var(--radius-md);
  border-inline-start: 4px solid var(--accent);
}
.program-note h3 { font-size: var(--text-2xl); margin-block: var(--space-2) var(--space-3); }
.program-note p { color: var(--fg); margin-block-end: var(--space-4); }

/* =====================================================================
   HOMEPAGE, EVENTS
   ===================================================================== */
.events__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-6); }
.events__cta-bottom { display: none; }

.events-list { display: flex; flex-direction: column; }
.event-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-6);
  border-block-start: 1px solid var(--color-border);
}
.event-row:last-child { border-block-end: 1px solid var(--color-border); }
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-inline-size: 4.75rem;
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  line-height: 1.05;
  text-align: center;
}
.event-date__mon { font-size: var(--text-sm); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-action); }
.event-date__day { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: var(--fw-bold); color: var(--color-heading); }
.event-date__yr { font-size: var(--text-xs); color: var(--fg-muted); }
.event-row__title { font-size: var(--text-xl); margin-block: var(--space-2) var(--space-1); }
.event-row__meta { font-size: var(--text-sm); color: var(--fg-muted); }

.tag--music   { background-color: var(--color-plum-mid);  color: var(--color-white); border-color: transparent; }
.tag--fitness { background-color: var(--color-plum-deep); color: var(--color-white); border-color: transparent; }
.tag--social  { background-color: var(--color-aqua);      color: var(--color-plum-deep); border-color: transparent; }

/* =====================================================================
   HOMEPAGE, PARTICIPATION (dark branded moment)
   ===================================================================== */
.participation__lead {
  margin-block-start: var(--space-5);
  font-size: var(--text-xl);
  line-height: var(--lh-relaxed);
  color: var(--color-on-dark);
}
.participation__verbs {
  margin-block-start: var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: var(--color-white);
}
.mantra {
  margin-block-start: var(--space-8);
  font-family: var(--font-display);  /* upright Oswald display; no script/cursive */
  font-size: var(--text-4xl);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--color-aqua);
}

/* =====================================================================
   HOMEPAGE, STORY
   ===================================================================== */
.story__inner { align-items: center; }
.story__media { margin: 0; }
.story__img {
  inline-size: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.story__body { max-inline-size: 34rem; }
.story__body h2 { margin-block-start: var(--space-2); }
.story__body p { margin-block-start: var(--space-4); }
.story__body .link--arrow { margin-block-start: var(--space-5); display: inline-block; }

/* =====================================================================
   HOMEPAGE, GET INVOLVED
   ===================================================================== */
.involve__card h3 { font-size: var(--text-xl); }
.involve__card p { color: var(--fg-muted); }
.involve__card .link--arrow { display: inline-block; }
.involve__support { margin-block-start: var(--space-8); text-align: center; max-inline-size: 48rem; margin-inline: auto; }

/* =====================================================================
   HOMEPAGE, FINAL CTA
   ===================================================================== */
.final-cta__inner { margin-inline: auto; text-align: center; }
.final-cta__inner h2 { color: var(--color-white); }
.final-cta__lead { margin-block: var(--space-4) var(--space-8); font-size: var(--text-lg); color: var(--color-on-dark); }
.final-cta__inner .hero__actions { justify-content: center; }

/* =====================================================================
   SHARED SHELL, FOOTER
   ===================================================================== */
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: var(--space-10);
  padding-block: var(--section-space);
}
.footer-wordmark { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: var(--fw-bold); color: var(--color-white); }
.footer-wordmark span { color: var(--color-aqua); }
.footer-mantra { font-size: var(--text-sm); font-weight: var(--fw-semibold); letter-spacing: 0.02em; color: var(--color-aqua); }
.footer-descriptor { font-size: var(--text-sm); color: var(--color-on-dark-muted); max-inline-size: 30ch; }
.footer-nav__heading { margin-block-end: var(--space-3); font-size: var(--text-xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--color-on-dark-muted); }
.footer-nav a,
.footer-contact a { display: inline-block; padding-block: var(--space-2); color: var(--color-on-dark); text-decoration: none; }
.footer-nav a:hover,
.footer-contact a:hover { color: var(--color-aqua); text-decoration: underline; text-underline-offset: 0.14em; }
.footer-social { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block-start: var(--space-4); }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  color: var(--color-on-dark);
  transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast);
}
.footer-social a:hover { color: var(--color-plum-deep); background-color: var(--color-aqua); border-color: transparent; text-decoration: none; }
.footer-bottom { border-block-start: 1px solid var(--color-border-dark); padding-block: var(--space-6); }
.footer-bottom p { font-size: var(--text-sm); color: var(--color-on-dark-muted); }

/* =====================================================================
   HOMEPAGE + SHELL RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-8); padding-block: clamp(2.5rem, 8vw, 3.5rem); }
  .hero__media { order: 2; }
  .hero__media img { aspect-ratio: 16 / 10; }
  .events__head { flex-direction: column; align-items: stretch; }
  .events__cta-top { display: none; }
  .events__cta-bottom { display: flex; }
  .event-row { gap: var(--space-4); }
  .event-date { min-inline-size: 4rem; padding: var(--space-2) var(--space-3); }
}

@media (max-width: 560px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .site-footer__brand { grid-column: auto; }
  .event-row { grid-template-columns: auto 1fr; }
}

/* =====================================================================
   PROGRAMS HUB + PROGRAM PAGES (Build Prompt 03)
   Shared shell/tokens/primitives are reused. Variety comes from
   composition and content, not a new palette.
   ===================================================================== */

/* Active nav state (current section) */
.primary-nav__link[aria-current="page"] {
  color: var(--color-action);
  box-shadow: inset 0 -2px 0 var(--color-action);
}
@media (max-width: 860px) {
  .primary-nav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--color-action); }
}

/* Program accents usable anywhere (not only on the homepage) */
[data-accent="rock"]      { --accent: var(--color-plum-mid); }
[data-accent="fitness"]   { --accent: var(--color-plum-deep); }
[data-accent="volunteer"] { --accent: var(--color-plum); }
[data-accent="kindness"]  { --accent: var(--color-plum-mid); }
[data-accent="social"]    { --accent: var(--color-action); }

/* ---- Breadcrumbs ---- */
.breadcrumbs { margin-block-end: var(--space-6); }
.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--text-sm); }
.breadcrumbs__list li { display: flex; align-items: center; gap: var(--space-2); color: var(--fg-muted); }
.breadcrumbs__list li + li::before { content: "/"; opacity: 0.5; }
.breadcrumbs a { color: var(--fg-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 0.14em; }
.breadcrumbs [aria-current="page"] { color: var(--fg); font-weight: var(--fw-medium); }

/* ---- Program hero (base) ---- */
.program-hero { padding-block: clamp(var(--space-12), 5vw, var(--space-20)); }
.program-hero__content { max-inline-size: 42rem; }
.program-hero h1 { font-size: var(--text-4xl); line-height: var(--lh-tight); margin-block-start: var(--space-3); }
.program-hero__lead { margin-block-start: var(--space-5); font-size: var(--text-lg); line-height: var(--lh-relaxed); color: var(--fg); max-inline-size: 42rem; }
.program-hero .hero__actions { margin-block-start: var(--space-8); }

/* Text-led heroes carry a larger headline (no competing photo) */
.program-hero--rock h1,
.program-hero--kindness h1,
.program-hero--social h1,
.program-hero--hub h1 { font-size: var(--text-5xl); }

/* RockAbility: dark branded, graphic + type */
.program-hero--rock__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.program-hero--rock__mark img {
  inline-size: 100%;
  max-inline-size: 22rem;
  margin-inline: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-dark);
}

/* Photo-led and split heroes (Inclusive Fitness, Volunteer NClusion) */
.program-hero--photo__inner,
.program-hero--split__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* Project: Kindness typographic hero */
.program-hero--kindness__inner { max-inline-size: 62rem; }
.kindness-equation {
  margin-block: var(--space-6);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1rem + 2vw, 2.4rem);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: var(--color-heading);
}
.kindness-equation span { color: var(--color-action); padding-inline: 0.2em; }

/* ---- Programs hub entries ---- */
.program-entry__inner { align-items: center; }
.program-entry__body { max-inline-size: 34rem; }
.program-entry__body h2 { font-size: var(--text-3xl); margin-block-start: var(--space-2); }
.program-entry__who { color: var(--fg-muted); font-size: var(--text-sm); }
.brand-panel {
  max-inline-size: 26rem;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.brand-panel img { inline-size: 100%; display: block; }

/* ---- Shared program bits ---- */
.feature-list { list-style: none; padding: 0; }
.feature-list li { position: relative; padding-inline-start: 1.6em; margin-block: var(--space-2); }
.feature-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.6em;
  inline-size: 0.5em;
  block-size: 0.5em;
  border-radius: 50%;
  background-image: var(--grad-accent);
}
.access-note { font-size: var(--text-sm); color: var(--fg-muted); }
.rock-what { align-items: start; }
.rock-do h3 { font-size: var(--text-xl); margin-block-end: var(--space-4); }

/* ---- Upcoming sessions/events block (runtime will populate) ---- */
.upcoming__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  background-color: var(--color-panel);
  border: 1px solid var(--color-border);
  border-inline-start: 5px solid var(--color-action);
  border-radius: var(--radius-lg);
}
.upcoming__inner > .stack { max-inline-size: 42rem; }
.upcoming__inner h2 { font-size: var(--text-2xl); }


/* ---- Volunteer two audiences ---- */
.two-audiences__card h3 { font-size: var(--text-xl); }
.two-audiences__card p { color: var(--fg-muted); }
.two-audiences__cta { font-weight: var(--fw-semibold); }

/* ---- Project: Kindness ---- */
.kindness-cols { align-items: start; }
.kindness-cols h3 { font-size: var(--text-xl); }
.kindness-brand {
  display: grid;
  place-items: center;
  max-inline-size: 22rem;
  margin-inline: auto;
  padding: var(--space-8);
  background-color: var(--color-panel);
  border-radius: var(--radius-lg);
}
.kindness-brand img { inline-size: 100%; max-inline-size: 15rem; height: auto; }

/* ---- Next Level Social ---- */
.criteria-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.criteria { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.criteria li {
  position: relative;
  padding-inline-start: 2.4em;
  font-size: var(--text-lg);
  font-weight: var(--fw-medium);
  color: var(--fg-heading);
}
.criteria li::before {
  content: "\2713";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.05em;
  inline-size: 1.6em;
  block-size: 1.6em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: var(--color-action);
  color: var(--color-white);
  font-size: 0.75em;
  font-weight: var(--fw-bold);
}
.chip-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.chip-list li {
  padding: 0.55em 1.05em;
  background-color: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-weight: var(--fw-medium);
  font-size: var(--text-sm);
  color: var(--color-heading);
}
.nls-apply { align-items: start; }
.acknowledgement h3 { font-size: var(--text-xl); margin-block-end: var(--space-3); }
.acknowledgement p { font-size: var(--text-sm); color: var(--fg-muted); }
.acknowledgement p + p { margin-block-start: var(--space-3); }
.acknowledgement__link { margin-block-start: var(--space-4); }

/* ---- Program pages responsive ---- */
@media (max-width: 768px) {
  .program-hero--rock__inner,
  .program-hero--photo__inner,
  .program-hero--split__inner { grid-template-columns: 1fr; }
  .program-hero--rock__mark { order: 2; }
  .program-hero--rock__mark img { max-inline-size: 18rem; }
  .criteria-block,
  .nls-apply,
  .rock-what { grid-template-columns: 1fr; }
  .upcoming__inner { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   PUBLIC INTERIOR PAGES (Build Prompt 04)
   about / stories / partners / contact / faq / waiver.
   Reuses shell, tokens, and primitives; light text-led heroes.
   ===================================================================== */

.program-hero--about h1 { font-size: var(--text-5xl); }

/* ---- About ---- */
.about-mantra__mark { margin-block: 0 var(--space-5); }
.about-mantra__lead { font-size: var(--text-xl); line-height: var(--lh-relaxed); color: var(--color-on-dark); }
.about-approach { align-items: start; }
.about-serves { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.about-serves h3 { font-size: var(--text-xl); }
.about-serves p { color: var(--fg-muted); }

/* ---- About: participation-area list (restrained, real visible content) ---- */
.about-area__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.about-area__list li {
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.8rem;
  line-height: 1.25;
}
.about-area__note { color: var(--color-muted); font-size: var(--text-sm); }

/* ---- Stories feed (editorial, not a card grid) ---- */
.story-feed { list-style: none; padding: 0; display: flex; flex-direction: column; }
.story-post { padding-block: var(--space-8); border-block-start: 1px solid var(--color-border); }
.story-post:last-child { border-block-end: 1px solid var(--color-border); }
.story-post h3 { font-size: var(--text-2xl); margin-block: var(--space-3) var(--space-2); }
.story-post h3 a { color: var(--fg-heading); text-decoration: none; }
.story-post h3 a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 0.14em; }
.story-post p { color: var(--fg-muted); max-inline-size: var(--measure); margin-block-end: var(--space-3); }
.story-post--lead { padding-block-start: 0; border-block-start: 0; }
.story-post--lead h3 { font-size: var(--text-3xl); }

/* Generated story cards (published Stories module) */
.story-post--card { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.story-post__thumb { display: block; border-radius: var(--radius-md); overflow: hidden; }
.story-post__thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.story-post__text { display: flex; flex-direction: column; gap: var(--space-2); min-inline-size: 0; }
.story-post__date { color: var(--fg-muted); font-size: var(--text-sm); margin: 0; }
.story-post--card h3 { margin-block: 0; }
.story-post--card .link--arrow { margin-block-start: var(--space-1); }
@media (min-width: 40rem) {
  .story-post--card { grid-template-columns: 16rem minmax(0, 1fr); gap: var(--space-6); }
}

/* Story detail page (/stories/{slug}/) */
.story-detail__head { margin-block-end: var(--space-6); }
.story-detail__title { font-size: var(--text-4xl); margin-block: var(--space-2) 0; }
.story-detail__date { color: var(--fg-muted); margin-block-start: var(--space-3); }
.story-detail__media { margin: 0 0 var(--space-7); border-radius: var(--radius-lg); overflow: hidden; }
.story-detail__media img { width: 100%; height: auto; display: block; }
.story-detail__back { margin-block-start: var(--space-8); }
.story-body { color: var(--fg); }
.story-body > * + * { margin-block-start: var(--space-5); }
.story-body h2 { font-size: var(--text-2xl); margin-block-start: var(--space-7); }
.story-body h3 { font-size: var(--text-xl); margin-block-start: var(--space-6); }
.story-body ul, .story-body ol { padding-inline-start: 1.4em; display: flex; flex-direction: column; gap: var(--space-2); }
.story-body a { color: var(--link); text-decoration: underline; text-underline-offset: 0.14em; }

/* ---- Partners ---- */
.partner-cards h3 { font-size: var(--text-xl); }
.partner-cards p { color: var(--fg-muted); }
.partner-logos {
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: var(--space-6);
}
.partner-logo {
  display: grid; place-items: center;
  padding: var(--space-8) var(--space-6);
  background-color: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.partner-logo img {
  max-block-size: 4.25rem; inline-size: auto; max-inline-size: 100%;
  opacity: 0.85;
  transition: opacity var(--t-base);
}
/* Square/portrait logos (e.g. the detailed Maple Leaf logo with a tagline) read
   tiny under the wide-logo height cap. Double the cap AND trim that card's padding
   so the near-square logo fills the space and its small text is readable. */
.partner-logo:has(img.partner-logo__square) { padding: var(--space-3); }
.partner-logo img.partner-logo__square { block-size: 11rem; inline-size: auto; max-block-size: none; }
.partner-logo:hover img { opacity: 1; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-method { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-5) var(--space-6); }
.contact-method__value { font-size: var(--text-lg); font-weight: var(--fw-semibold); }
.contact-method__value a { color: var(--color-action); text-decoration: none; }
.contact-method__value a:hover { text-decoration: underline; text-underline-offset: 0.14em; }
.contact-social__list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-block-start: var(--space-2); }
.contact-social__list a { color: var(--link); text-decoration: none; font-weight: var(--fw-medium); }
.contact-social__list a:hover { text-decoration: underline; text-underline-offset: 0.14em; }
.contact-form-heading { font-size: var(--text-2xl); margin-block-end: var(--space-6); }
.contact-form { --stack-space: var(--space-5); }
.form-status[hidden] { display: none; }
.form-status {
  margin-block-start: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background-color: var(--color-surface-alt);
  border: 1px solid var(--color-border-strong);
  color: var(--fg);
  font-size: var(--text-sm);
}

/* ---- FAQ (native details/summary, no JS) ---- */
.faq { display: flex; flex-direction: column; }
.faq-item { border-block-end: 1px solid var(--color-border); }
.faq-item:first-child { border-block-start: 1px solid var(--color-border); }
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding-block: var(--space-5);
  min-block-size: 2.75rem;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--fg-heading);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "";
  flex: none;
  inline-size: 0.65em; block-size: 0.65em;
  border-inline-end: 2px solid var(--color-action);
  border-block-end: 2px solid var(--color-action);
  transform: rotate(45deg);
  transition: transform var(--t-fast);
}
.faq-item[open] > summary::after { transform: rotate(-135deg); }
.faq-item > summary:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 2px; border-radius: var(--radius-xs); }
.faq-item__body { padding-block-end: var(--space-6); }
.faq-item__body p { max-inline-size: var(--measure); color: var(--fg); }

/* ---- Waiver ---- */
.waiver-what { align-items: start; }
.waiver-access { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.waiver-access h3 { font-size: var(--text-xl); }
.waiver-access__note { font-size: var(--text-sm); }

/* ---- Interior pages responsive ---- */
@media (max-width: 768px) {
  .contact-grid,
  .about-approach,
  .waiver-what { grid-template-columns: 1fr; }
}

/* =====================================================================
   PROMPT 05 - EVENTS SYSTEM, EVENT DETAIL, IN THE NEWS
   (uses only the locked tokens/palette; aqua on dark surfaces only)
   ===================================================================== */

/* Program tag variants for events (extend existing tag--music/fitness/social) */
.tag--volunteer { background-color: var(--color-plum);      color: var(--color-white); border-color: transparent; }
.tag--kindness  { background-color: var(--color-surface-alt); color: var(--color-plum); border-color: var(--color-border); }

/* Series badge + status markers on event rows (text + icon, never colour alone) */
.ev-series-badge {
  display: inline-block; font-size: var(--text-xs); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-action);
  border: 1px solid var(--color-action); border-radius: var(--radius-pill); padding: 0 var(--space-2); margin-inline-start: var(--space-2);
}
.event-row__title a { color: inherit; text-decoration: none; }
.event-row__title a:hover { text-decoration: underline; }
.ev-status { display: inline-flex; align-items: center; gap: var(--space-2); margin-block-start: var(--space-2); font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--color-text-muted); }
.ev-status__icon { flex: none; }
.ev-status--free { color: var(--color-action); }
.ev-status--ticketed { color: var(--color-heading); }
.ev-status--cancelled { color: var(--color-plum-deep); font-weight: var(--fw-bold); }
.events-empty { text-align: center; }
.program-events .events-list { margin-block-start: 0; }

/* Events page hero + toolbar */
.events-hero { padding-block: clamp(var(--space-10), 6vw, var(--space-16)) var(--space-8); }
.ev-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: end; justify-content: space-between; padding-block-end: var(--space-4); border-block-end: 1px solid var(--color-border); }
.ev-viewtoggle { display: inline-flex; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; background: var(--color-panel); }
.ev-viewbtn { font: inherit; font-weight: var(--fw-semibold); border: 0; background: transparent; color: var(--color-action); padding: var(--space-2) var(--space-5); cursor: pointer; min-height: 2.5rem; }
.ev-viewbtn.is-active { background: var(--color-action); color: var(--color-white); }
.ev-filters { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.ev-filter { display: flex; flex-direction: column; gap: var(--space-1); }
.ev-filter label { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--color-text-muted); }
.ev-filter select { padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-panel); font: inherit; color: var(--color-text); min-height: 2.5rem; }
.ev-noresults { text-align: center; }

/* Month calendar */
.ev-cal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-block-end: var(--space-4); }
.ev-cal__title { font-size: var(--text-2xl); margin: 0; }
.ev-cal__nav { font: inherit; font-size: var(--text-2xl); line-height: 1; background: var(--color-panel); border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-action); width: 2.75rem; height: 2.75rem; cursor: pointer; }
.ev-cal__nav:hover { border-color: var(--color-action); }
.ev-cal__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ev-cal__grid th { padding: var(--space-2); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); text-align: center; }
.ev-cal__grid td { border: 1px solid var(--color-border); vertical-align: top; height: 6.5rem; padding: var(--space-2); background: var(--color-panel); }
.ev-cal__pad { background: var(--color-surface-alt); }
.ev-cal__daynum { font-weight: var(--fw-bold); font-size: var(--text-sm); color: var(--color-heading); }
.ev-cal__cell.has-events { box-shadow: inset 0 -3px 0 var(--color-aqua); }
.ev-cal__events { list-style: none; margin: var(--space-1) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.ev-cal__event { display: block; font-size: var(--text-xs); line-height: 1.25; color: var(--color-on-dark); background: var(--color-action); border-radius: var(--radius-xs); padding: 2px var(--space-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.ev-cal__event:hover { background: var(--color-plum); }
.ev-cal__event.is-cancelled { background: var(--color-surface-alt); color: var(--color-plum-deep); text-decoration: line-through; }

/* Event detail page */
.breadcrumb { padding-block: var(--space-6) 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-action); }
.ev-detail__head { padding-block: var(--space-8) var(--space-6); }
.ev-detail__when { font-size: var(--text-lg); color: var(--color-text-muted); }
.ev-detail__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-10); }
.ev-detail__aside .panel h2 { font-size: var(--text-base); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); margin-block-end: var(--space-1); }
.ev-aside__h { font-family: var(--font-body); }
.ev-venue__name { font-weight: var(--fw-semibold); }
.ev-banner { border-inline-start: 4px solid var(--color-aqua); background: var(--color-surface-alt); padding: var(--space-4) var(--space-5); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.ev-banner--cancelled { border-inline-start-color: var(--color-plum-deep); }
.ev-series-note { margin-block-start: var(--space-8); }
.ev-reg__contact, .ev-reg__policy { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (min-width: 861px) {
  .ev-detail__grid { grid-template-columns: 1fr 22rem; }
}

/* Homepage "In the news" preview */
.home-news__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); grid-template-columns: repeat(3, 1fr); }
.home-news__item { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); background: var(--color-panel); display: flex; flex-direction: column; gap: var(--space-2); }
.home-news__item--feature { background: var(--grad-deep); color: var(--color-on-dark); border-color: transparent; }
.home-news__item--feature .home-news__src, .home-news__item--feature .home-news__desc { color: var(--color-on-dark-muted); }
.home-news__meta { display: flex; align-items: baseline; gap: var(--space-3); font-size: var(--text-sm); }
.home-news__year { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-xl); color: var(--color-action); }
.home-news__item--feature .home-news__year { color: var(--color-aqua); }
.home-news__src { color: var(--color-text-muted); }
.home-news__headline { font-size: var(--text-lg); margin: 0; }
.home-news__desc { color: var(--color-text-muted); margin: 0; }
@media (max-width: 861px) { .home-news__list { grid-template-columns: 1fr; } }

/* In the News timeline */
.news-hero { padding-block: clamp(var(--space-12), 7vw, var(--space-20)); }
.news-hero__note { font-size: var(--text-sm); color: var(--color-on-dark-muted); }
.news__inner { max-inline-size: 60rem; margin-inline: auto; }
.news-year { margin-block-start: var(--space-12); }
.news-year:first-child { margin-block-start: 0; }
.news-year__label { font-size: var(--text-4xl); color: var(--color-heading); border-block-end: 2px solid var(--color-border); padding-block-end: var(--space-2); margin-block-end: var(--space-6); }
.news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.news-item { border: 1px solid var(--color-border); border-inline-start: 5px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-6); background: var(--color-panel); }
.news-item--media { border-inline-start-color: var(--color-action); }
.news-item--podcast { border-inline-start-color: var(--color-plum-deep); }
.news-item--milestone { border-inline-start-color: var(--color-aqua); }
.news-item--recognition { border-inline-start-color: var(--color-plum); }
.news-item--landmark { background: var(--grad-deep); color: var(--color-on-dark); border-color: transparent; }
.news-item--landmark .news-item__source, .news-item--landmark .news-item__date, .news-item--landmark .news-item__sig { color: var(--color-on-dark-muted); }
.news-item--landmark .news-item__headline { color: var(--color-white); }
.news-item--landmark .link { color: var(--color-aqua); }
.news-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font-size: var(--text-sm); margin-block-end: var(--space-2); }
.news-chip { font-size: var(--text-xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.05em; padding: 2px var(--space-3); border-radius: var(--radius-pill); }
.news-chip--media { background: var(--color-action); color: var(--color-white); }
.news-chip--podcast { background: var(--color-plum-deep); color: var(--color-white); }
.news-chip--milestone { background: var(--color-aqua); color: var(--color-plum-deep); }
.news-chip--recognition { background: var(--color-surface-alt); color: var(--color-plum); border: 1px solid var(--color-border); }
.news-item__source { font-weight: var(--fw-semibold); color: var(--color-heading); }
.news-item__date { color: var(--color-text-muted); }
.news-item__flag { font-family: var(--font-display); font-weight: var(--fw-semibold); color: var(--color-aqua); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.05em; margin-block-end: var(--space-1); }
.news-item__headline { font-size: var(--text-2xl); margin-block: var(--space-1) var(--space-3); }
.news-item__summary { margin-block-end: var(--space-3); }
.news-item__sig { font-size: var(--text-sm); color: var(--color-text-muted); font-style: italic; margin-block-end: var(--space-3); }
.news-item__quote { border-inline-start: 3px solid var(--color-aqua); padding-inline-start: var(--space-4); margin-block: var(--space-4); font-family: var(--font-display); font-size: var(--text-lg); }
.news-item__quote cite { display: block; font-family: var(--font-body); font-size: var(--text-sm); font-style: normal; color: var(--color-text-muted); margin-block-start: var(--space-2); }
.news-item--landmark .news-item__quote cite { color: var(--color-on-dark-muted); }
.news-outro { margin-block-start: var(--space-12); text-align: center; }

@media (max-width: 600px) {
  .ev-cal__grid td { height: auto; min-height: 3.5rem; }
  .ev-toolbar { flex-direction: column; align-items: stretch; }
}

/* =====================================================================
   PROMPT 06 - PROGRAMS DROPDOWN + FULL-WIDTH HERO SYSTEM
   ===================================================================== */

/* ---- Programs dropdown ---- */
.primary-nav__item.has-dropdown { position: relative; }
.primary-nav__toggle {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  gap: var(--space-1);
}
.primary-nav__caret {
  inline-size: 0;
  block-size: 0;
  margin-inline-start: var(--space-1);
  border-inline: 4px solid transparent;
  border-block-start: 5px solid currentColor;
  transition: transform var(--t-fast);
}
.has-dropdown.is-open .primary-nav__caret { transform: rotate(180deg); }
.primary-nav__toggle.is-current { color: var(--color-action); }

.programs-menu {
  position: absolute;
  inset-block-start: calc(100% + var(--space-2));
  inset-inline-start: 0;
  z-index: 60;
  min-inline-size: 18rem;
  padding: var(--space-5);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.programs-menu[hidden] { display: none; }
.programs-menu__all {
  display: inline-block;
  margin-block-end: var(--space-4);
  font-weight: var(--fw-bold);
  color: var(--color-action);
  text-decoration: none;
}
.programs-menu__all:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .primary-nav__item.has-dropdown { position: static; }
  .primary-nav__toggle { inline-size: 100%; justify-content: space-between; min-block-size: 3rem; }
  .programs-menu {
    position: static;
    min-inline-size: 0;
    padding: 0 0 var(--space-2) var(--space-4);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
}

/* ---- Full-width hero (image-backed, DB-driven, replaceable) ---- */
.page-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-block-size: clamp(320px, 52vh, 560px);
  overflow: hidden;
  background: var(--grad-deep);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.page-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(33, 0, 68, 0.12) 0%, rgba(33, 0, 68, 0.35) 45%, rgba(33, 0, 68, 0.86) 100%);
}
.page-hero--gradient-left .page-hero__scrim {
  background: linear-gradient(90deg, rgba(33, 0, 68, 0.92) 0%, rgba(33, 0, 68, 0.6) 42%, rgba(33, 0, 68, 0.18) 100%);
}
.page-hero--veil .page-hero__scrim {
  background: linear-gradient(160deg, rgba(33, 0, 68, 0.55), rgba(77, 20, 75, 0.62));
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(var(--space-12), 8vw, var(--space-20)) clamp(var(--space-8), 5vw, var(--space-12));
  color: var(--color-on-dark);
}
.page-hero__eyebrow { color: var(--color-aqua); }
.page-hero__title {
  color: var(--color-white);
  font-size: var(--text-5xl);
  line-height: var(--lh-tight);
  max-inline-size: 24ch;
}
.page-hero__lead {
  margin-block-start: var(--space-4);
  color: var(--color-on-dark);
  font-size: var(--text-lg);
  line-height: var(--lh-relaxed);
  max-inline-size: 46rem;
}
.page-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-block-start: var(--space-8); }
.page-hero .breadcrumbs { margin-block-end: var(--space-5); }
.page-hero .breadcrumbs a { color: var(--color-on-dark-muted); }
.page-hero .breadcrumbs [aria-current] { color: var(--color-on-dark); }
.page-hero .breadcrumbs__list li:not(:last-child)::after { color: var(--color-on-dark-muted); }

@media (max-width: 768px) {
  .page-hero { min-block-size: clamp(300px, 60vh, 460px); }
  .page-hero__title { font-size: var(--text-4xl); }
}

/* Homepage hero: ~30% taller, with the logo + text content centered as a group in
   the hero, both horizontally and vertically (scoped to home only). Height comes
   from min-height, not font-size. The logo sits to the left of the text (order:-1)
   while the content stays first in the DOM for screen readers; justify-content +
   align-items center the whole group. */
.page-hero[data-hero="home"] { min-block-size: clamp(420px, 68vh, 720px); align-items: center; }
.page-hero__inner--split { display: flex; align-items: center; justify-content: center; gap: clamp(var(--space-6), 5vw, var(--space-12)); }
.page-hero__content { flex: 0 1 auto; min-inline-size: 0; }
.page-hero__brand { flex: 0 0 auto; order: -1; }
.page-hero__logo {
  display: block; height: auto; inline-size: clamp(165px, 18.7vw, 255px); max-inline-size: 100%;
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow-md);
}
@media (max-width: 768px) {
  .page-hero[data-hero="home"] { min-block-size: clamp(390px, 78vh, 600px); }
  .page-hero__inner--split { flex-direction: column; align-items: center; }
  .page-hero__brand { order: 0; align-self: center; }
  .page-hero__logo { inline-size: 165px; }
}

/* ---- Prompt 06: public forms (register/waiver/NLS) ---- */
.hp-field { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.stack--md > * + * { margin-block-start: var(--space-6); }
.contact-form fieldset { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6) var(--space-6); }
.contact-form legend { font-family: var(--font-display); font-weight: var(--fw-semibold); padding-inline: var(--space-2); }
.grid--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 600px) { .grid--3 { grid-template-columns: 1fr; } }
/* Event-detail hero: status marker + tags legible on the dark hero */
.page-hero .ev-status { color: var(--color-on-dark); }
.page-hero .ev-status--free { color: var(--color-aqua); }
.page-hero .ev-series-badge { color: var(--color-aqua); border-color: var(--color-aqua); }

/* ===== Prompt 07: public architecture (nav, Fitness/RockAbility sections) ===== */

/* Simplified single-column Programs dropdown */
.programs-menu__list { display: flex; flex-direction: column; gap: 2px; }
.programs-menu__list a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--color-heading);
  text-decoration: none;
  font-weight: var(--fw-medium);
}
.programs-menu__list a:hover { background: var(--color-surface-alt); color: var(--color-action); }

/* Donate: prominent navigation CTA (far right on desktop) */
.primary-nav__item--donate { margin-inline-start: var(--space-2); }
.primary-nav__donate {
  color: var(--color-white);
  background-color: var(--color-action);
  font-weight: var(--fw-semibold);
}
.primary-nav__donate:hover { color: var(--color-white); background-color: var(--color-plum-deep); }
@media (max-width: 860px) {
  .primary-nav__item--donate { margin-inline-start: 0; }
  .primary-nav__donate { justify-content: center; margin-block-start: var(--space-2); }
}

/* Fitness "jump to a class" chips */
.fit-jump { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block-start: var(--space-8); }
.fit-jump a {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-heading);
  text-decoration: none;
  font-weight: var(--fw-medium);
  font-size: var(--text-sm);
}
.fit-jump a:hover { background: var(--color-action); color: var(--color-white); border-color: var(--color-action); }

/* Program detail sections (Fitness + RockAbility subprograms) */
.fit-prog__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(var(--space-6), 4vw, var(--space-10));
}
.fit-prog__body { flex: 1 1 24rem; }
.fit-prog__body h2 { font-size: var(--text-3xl); }
.fit-prog__reg { color: var(--fg-muted); }
.fit-prog__figure { flex: 1 1 18rem; max-inline-size: 26rem; margin: 0; }
.fit-prog__figure img {
  inline-size: 100%;
  block-size: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@media (min-width: 761px) {
  .fit-prog--reverse .fit-prog__figure { order: -1; }
}

/* Program hub: subprogram chip links under a family */
.program-subs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin-block: var(--space-3) var(--space-1);
}
.program-subs a {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-heading);
  text-decoration: none;
}
.program-subs a:hover { background: var(--color-surface-alt); color: var(--color-action); }

/* ===== Prompt 08: fundraiser campaign pages (/support/<slug>/) ===== */
.support-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(var(--space-6), 4vw, var(--space-12)); align-items: start; }
.support-aside { position: sticky; top: var(--space-6); }
.support-cta { padding: var(--space-6); }
.support-progress { margin-block-end: var(--space-5); }
.support-progress__bar { height: 10px; border-radius: 999px; background: var(--color-surface-alt); overflow: hidden; }
.support-progress__bar span { display: block; height: 100%; background: var(--grad-accent, var(--color-action)); }
.support-progress__label { margin-block-start: var(--space-2); color: var(--fg-muted); font-size: var(--text-sm); }
.support-amts { border: 0; padding: 0; margin: 0; }
.support-amts legend { font-family: var(--font-display); font-weight: var(--fw-semibold); padding: 0; margin-block-end: var(--space-2); }
.support-amts__grid { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block-end: var(--space-3); }
.support-amt { display: inline-flex; align-items: center; gap: var(--space-1); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-4); cursor: pointer; font-weight: var(--fw-medium); }
.support-amt:has(input:checked) { border-color: var(--color-action); box-shadow: inset 0 0 0 1px var(--color-action); }
.support-amt input { accent-color: var(--color-action); }
.support-optin { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--text-sm); color: var(--fg-muted); }
.support-form__note { font-size: var(--text-sm); color: var(--fg-muted); }

/* ===== Featured Content (owner-managed block, injected between hero and body) =====
   Publisher emits the whole <section> only when the owner has content, so when
   Featured Content is removed nothing renders here (no orphan wrapper/spacing). */
.featured-content__inner { display: grid; gap: clamp(var(--space-6), 4vw, var(--space-10)); align-items: center; }
.featured-content--split .featured-content__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.featured-content--image .featured-content__inner { justify-items: center; }
.featured-content--text .featured-content__body { max-inline-size: var(--measure); margin-inline: auto; }
.featured-content__media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.featured-content__media img { display: block; width: 100%; height: auto; }
.featured-content--image .featured-content__media { max-inline-size: 60rem; width: 100%; }
.featured-content__body > * + * { margin-block-start: var(--space-4); }
.featured-content__actions { margin-block-start: var(--space-5); }
@media (max-width: 768px) {
  .featured-content--split .featured-content__inner { grid-template-columns: 1fr; }
}

/* ===== Insert Waiver block (owner-managed, one per page) =====================
   Emitted whole by the Publisher only when a published waiver is linked, so an
   empty/removed/archived block renders nothing (no orphan wrapper/spacing). */
.waiver-block__inner { max-inline-size: var(--measure); margin-inline: auto; text-align: center; }
.waiver-block__title { margin-block: 0 var(--space-4); }
.waiver-block__inner > p { margin-block: 0 var(--space-4); }
.waiver-block__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-block-start: var(--space-5); }
.waiver-block__embed { margin-block-start: var(--space-5); }
.waiver-block__frame { width: 100%; min-height: 60rem; border: 1px solid var(--color-border, #e6e0ec); border-radius: var(--radius-lg); background: #fff; }
.waiver-block__fallback { margin-block-start: var(--space-3); font-size: 0.9375rem; }

/* ===== Video embeds (permanent page content: restored YouTube videos) =====
   16:9 via aspect-ratio reserves layout space before the iframe loads (no CLS).
   Privacy-enhanced youtube-nocookie embeds, lazy-loaded below the fold. */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-plum-deep);
  box-shadow: var(--shadow-md);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video-figure { margin: 0; }
.video-figure figcaption { margin-block-start: var(--space-3); font-size: var(--text-sm); color: var(--fg-muted); }
.video-single { inline-size: 100%; max-inline-size: 52rem; margin-inline: auto; }
.video-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--space-8) var(--space-6);
}

/* Upright display accent -- very limited use only; never UI/critical text. */
.script-accent { font-family: var(--font-accent); font-weight: var(--fw-semibold); line-height: 1.2; }

/* ===== Event venue map + directions (public event detail) ===== */
.ev-venue__note { font-size: var(--text-sm); color: var(--fg-muted); margin-block-start: var(--space-2); }
.ev-map { margin-block-start: var(--space-4); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.ev-map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; }

/* Registration check-in QR + inline checkbox question */
.reg-qr { margin-block: var(--space-6); }
.reg-qr__img { max-inline-size: 220px; }
.reg-qr__img svg { width: 100%; height: auto; background: #fff; padding: var(--space-3); border-radius: var(--radius-md); border: 1px solid var(--border); }
.check-inline { display: flex; gap: var(--space-2); align-items: flex-start; }
@media (max-width: 860px) { .support-layout { grid-template-columns: 1fr; } .support-aside { position: static; } }

/* Hero robustness: let the grid item shrink to the track (default min-width:auto
   can let a long title push .page-hero__inner past the viewport, then get clipped
   by the hero's overflow:hidden). Keeps long titles wrapping inside the viewport. */
.page-hero__inner { min-inline-size: 0; }
.page-hero__title { overflow-wrap: break-word; }

/* ===== Event artwork (flyer) + clickable event cards + attendee sections
        (Lori event / registration refinement) ===== */

/* Whole event card clickable: the title anchor is stretched over the row. One
   accessible link, no nested anchors, no overlay swallowing keyboard focus. */
.event-row { position: relative; }
.event-row__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.event-row:hover { background-color: var(--color-surface-alt); }

/* Optional event-card preview thumbnail (a tasteful crop is fine for a preview). */
.event-row__media { margin-block-end: var(--space-3); }
.event-row__thumb {
  display: block; inline-size: 100%; max-inline-size: 460px;
  block-size: 150px; object-fit: cover;
  border-radius: var(--radius-md); border: 1px solid var(--border);
}

/* Event detail artwork panel: adapts to ANY aspect ratio (portrait flyer, square,
   or landscape) using contain, so nothing important is cropped and Lori never has
   to make a special horizontal graphic. Branded backdrop keeps it looking premium. */
.ev-artwork {
  margin: 0 0 var(--space-6);
  padding: var(--space-4);
  background-color: var(--color-surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; justify-content: center; align-items: center;
}
.ev-artwork__img {
  display: block; inline-size: auto; block-size: auto;
  max-inline-size: 100%; max-block-size: 68vh;
  object-fit: contain; border-radius: var(--radius-sm);
}

/* Registration form: per-attendee sections (name + optional meal + dietary). */
.attendee {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-4); margin-block-end: var(--space-4);
}
.attendee__title { font-weight: 600; margin: 0 0 var(--space-3); }
