/* uaclub.org.uk — the 3b redesign: header, menu, footer, homepage, What's On
 *
 * Built to "Handover spec · 3b" (Claude Design, September 2026). Screens 1–6 are the source of truth;
 * the values below are the spec's. Where the screens disagreed with each other the spec's written
 * rules win — notably buttons are 2px-cornered everywhere (§04 "3b is square-cornered"), although
 * the What's On mock-up drew its Donate and sign-up as pills.
 *
 * Phone first. The spec's breakpoints (§03): 390 is the base; at 1024 the desktop header, the
 * two-column hero, the alternating branch halves and the gallery grid take over; 1440 is the
 * artboard, and above it content stays at 1296 while the full-bleed bands keep stretching.
 *
 * Written against the spec's tokens (`--c-*`, `--font-display`, `--font-body`) in tokens.css.
 * Loaded last, after components.css and motion.css.
 */

:root {
  /* Side padding for a full-bleed band whose content caps at 1296: the gutter on anything narrower,
   * then whatever centres 1296. `50%` resolves against the band itself, at the point of use. */
  --px: max(var(--gutter), calc(50% - var(--content-max) / 2));
}

/* =========================================================================
 * Shared pieces
 * ====================================================================== */

/* WordPress spaces the children of every group block with a 24px top margin (the "block gap").
 * These groups are laid out by this file, so that margin only ever showed up as a stray cream strip
 * between sections — and, inside the header, pushed the phone menu 24px down its own screen. */
.sh > *, .sf > *, .home3 > *, .wo > * { margin-block: 0; }

.nowrap { white-space: nowrap; }

/* Buttons (spec §04). Square-cornered, 600 weight, 48px tall on a phone. */
.b3 {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border-radius: var(--radius-btn); border: 1.5px solid transparent;
  font: 600 16px/1.2 var(--font-body); text-decoration: none; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.b3--navy        { background: var(--c-navy); color: var(--c-cream); }
.b3--navy:hover  { background: var(--c-ink); color: var(--c-cream); }
.b3--cream       { background: var(--c-cream); color: var(--c-navy); }
.b3--cream:hover { background: #fff; color: var(--c-navy); }
.b3--line-cream  { border-color: var(--c-cream); color: var(--c-cream); background: transparent; }
.b3--line-cream:hover { background: var(--c-cream); color: var(--c-navy); }
.b3--line-navy   { border-color: var(--c-navy); color: var(--c-navy); background: transparent; }
.b3--yellow      { background: var(--c-yellow); color: var(--c-ink); }
.b3--yellow:hover { background: var(--c-sunflower); color: var(--c-ink); }
.b3--line-navy:hover { background: var(--c-navy); color: var(--c-cream); }

/* Eyebrows: small, navy, 600. The ruled one carries the 2px yellow underline (spec §04 accent rule). */
.eyebrow3 {
  margin: 0; font: 600 12px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-navy);
}
.eyebrow3--rule {
  align-self: flex-start; text-transform: none; letter-spacing: 0; font-size: 13px;
  border-bottom: var(--rule-accent); padding-bottom: 3px;
}
.num3 {
  align-self: flex-start; font: 600 13px/1.4 var(--font-body); color: var(--c-navy);
  border-bottom: var(--rule-accent); padding-bottom: 3px;
}

/* The yellow-underlined text link (spec: "underline thickens to 3px" on hover). */
.u-link {
  align-self: flex-start;
  font: 600 15px/1.4 var(--font-body); color: var(--c-navy);
  text-decoration: underline; text-decoration-color: var(--c-yellow);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.u-link:hover { color: var(--c-ink); text-decoration-thickness: 3px; }

.thumb-empty { display: block; background: var(--c-sand); }

/* ---- Status pills (spec §06) — 26px, glyph + word, never colour alone ---- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font: 600 13px/1 var(--font-body); white-space: nowrap; vertical-align: middle; border: 1px solid transparent;
}
.pill svg { width: 12px; height: 12px; flex: none; }
.pill--link { text-decoration: none !important; cursor: pointer; }
.pill--link:hover { filter: brightness(1.12); }
/* The site's link colours (navy on hover) must not reach the pill: its text keeps the pill's own colour. */
a.pill--enrolling, a.pill--enrolling:hover, a.pill--enrolling:focus, a.pill--enrolling:visited, a.pill--enrolling:active { color: #fff !important; }
.pill--link:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 2px; }
.pill--running    { background: #E1F0E5; color: #1F4D30; }
.pill--enrolling  { background: var(--c-royal); color: #fff; }
.pill--funding    { background: #fff; color: var(--c-ink); border: 1.5px solid #D9A92A; }
.pill--renovation { background: var(--c-sand); color: var(--c-ink); }
.pill--planned    { background: transparent; color: var(--c-text-2); border-color: #8A8F93; }
.ph .pill--planned { color: var(--c-on-navy-2); border-color: var(--c-on-navy-3); }   /* transparent pill on the navy hero */

/* ---- Motion (spec §08c) ------------------------------------------------ *
 * motion.js adds html.js, so without JavaScript nothing is ever hidden. Reveals run once, at 20% in
 * view; groups stagger 80ms per child (--d, capped at 8). Reduced motion: a 150ms fade, no movement. */
.js [data-reveal] { opacity: 0; transform: translate3d(0, var(--m-rise), 0); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity var(--m-slow) var(--e-out) var(--d, 0ms), transform var(--m-slow) var(--e-out) var(--d, 0ms);
}
/* Buttons lift 1px with a 10% dark overlay; press returns to rest. */
.b3, .sh__donate, .mn__donate, .su__btn, .cu__cta--book { position: relative; transition: transform var(--m-fast) var(--e-out), background-color var(--m-fast) linear; }
.b3::after, .sh__donate::after, .mn__donate::after, .su__btn::after, .cu__cta--book::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: #0B1620; opacity: 0;
  transition: opacity var(--m-fast) linear; pointer-events: none;
}
.b3:hover, .sh__donate:hover, .mn__donate:hover, .su__btn:hover, .cu__cta--book:hover { transform: translateY(-1px); }
.b3:hover::after, .sh__donate:hover::after, .mn__donate:hover::after, .su__btn:hover::after, .cu__cta--book:hover::after { opacity: .1; }
.b3:active, .sh__donate:active, .mn__donate:active, .su__btn:active, .cu__cta--book:active { transform: none; }
/* Arrows nudge 4px on hover of their link. */
[data-arr], a > span[aria-hidden="true"]:last-child { display: inline-block; transition: transform var(--m-base) var(--e-out); }
a:hover > [data-arr], a:hover > span[aria-hidden="true"]:last-child { transform: translateX(4px); }
/* Cards lift 2px with a soft shadow; their photograph zooms 1.04 inside its frame. */
.cu__card, .m-card { position: relative; transition: transform var(--m-base) var(--e-out); }
.cu__card::before, .m-card::before {
  content: ""; position: absolute; inset: 0; box-shadow: 0 14px 28px -10px rgba(21, 32, 42, .28);
  opacity: 0; transition: opacity var(--m-base) var(--e-out); pointer-events: none;
}
.cu__card:hover, .m-card:hover { transform: translateY(-2px); }
.cu__card:hover::before, .m-card:hover::before { opacity: 1; }
.cu__media, .br__media, .m-frame { overflow: hidden; }
.cu__media img, .br__media img, .m-frame img { transition: transform var(--m-slow) var(--e-out); }
.cu__card:hover .cu__media img, .m-card:hover .m-frame img { transform: scale(1.04); }
.br__row:hover .br__media img { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; }
  .js [data-reveal].is-in { transition: opacity var(--m-fast) linear; }
  .b3:hover, .sh__donate:hover, .mn__donate:hover, .su__btn:hover, .cu__cta--book:hover,
  .cu__card:hover, .m-card:hover { transform: none; }
  a:hover > [data-arr], a:hover > span[aria-hidden="true"]:last-child { transform: none; }
  .cu__card:hover .cu__media img, .m-card:hover .m-frame img, .br__row:hover .br__media img { transform: none; }
  .sh__brand:hover .sh__logo { animation: none; }
  .sh__bar, .sh__logo, .lang-switch::before, .lang-switch button { transition: none; }
  .mn, .mn.is-open { transition: opacity var(--m-fast) linear, visibility 0s; transform: none; opacity: 0; }
  .mn.is-open { opacity: 1; }
  .mn__sec, .mn__more, .mn__actions, .mn__next, .mn__where,
  .mn.is-open .mn__sec, .mn.is-open .mn__more, .mn.is-open .mn__actions, .mn.is-open .mn__next, .mn.is-open .mn__where { opacity: 1; transform: none; transition: none; }
  .mn__panel, .mn__chev { transition: none !important; }
}

/* =========================================================================
 * Header (spec §05, §08c Motion, §12 Responsive)
 *
 * One bar on every page, cream on navy. Fixed, so the shrink on scroll never moves the page.
 *   - Over a navy hero (body.has-fullbleed-hero on the homepage, body.has-page-hero on redesigned
 *     templates) it starts transparent and the hero sits underneath it.
 *   - Everywhere else it is solid navy from the start, and .sh__spacer reserves its height.
 *   - html.is-solid (motion.js, from the first 8px of scroll): solid navy. Transparent only at rest —
 *     a see-through bar over a scrolling headline left the two overprinting each other.
 *   - html.is-scrolled (once the hero has gone): shadow, 88 → 72px on desktop, logo to 0.83.
 * Phone < 768: logo, switcher, burger. Tablet 768–1279: + Donate. Desktop ≥ 1280: the full bar.
 * ====================================================================== */

:root { --sh-h: 48px; }
@media (min-width: 1280px) { :root { --sh-h: 88px; } }

.sh { position: relative; z-index: 60; font-family: var(--font-body); }
.sh a { text-decoration: none; }
.sh__spacer { height: var(--sh-h); background: var(--c-navy); }
.has-fullbleed-hero .sh__spacer, .has-page-hero .sh__spacer { display: none; }

.sh__bar {
  position: fixed; top: 0; left: 0; right: 0;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--c-navy); color: var(--c-cream);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--sh-h); padding-inline: 16px 8px;
  transition: background-color var(--m-base) var(--e-out), min-height var(--m-base) var(--e-out), box-shadow var(--m-base) var(--e-out);
}
.has-fullbleed-hero .sh__bar, .has-page-hero .sh__bar { background: transparent; }
html.is-solid .sh__bar, html.is-scrolled .sh__bar { background: var(--c-navy); }
html.is-scrolled .sh__bar { box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .35); }
html.admin-bar .sh__bar { top: 32px; }

.sh__brand { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--c-cream); }
.sh__logo { display: block; flex: none; width: 32px; height: 32px; transition: transform var(--m-base) var(--e-out); }
.sh__logo--full { display: none; }
.sh__brand:hover .sh__logo { animation: sh-spin 20s linear infinite; }       /* spec: hover only, never automatic */
@keyframes sh-spin { to { transform: rotate(360deg); } }
.sh__word { font: 500 15px/1.1 var(--font-display); color: var(--c-cream); }

.sh__nav, .sh__account, .sh__donate { display: none; }
.sh__tools { display: flex; align-items: center; gap: 2px; }

/* EN/УКР: one pill; the filled half slides across (spec §08c). Two real buttons underneath. */
.lang-switch { position: relative; display: inline-flex; align-items: center; padding: 2px; border: 1px solid #5B7F93; border-radius: 999px; margin: 0; gap: 0; background: none; }
.lang-switch::before {
  content: ""; position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px);
  border-radius: 999px; background: var(--c-cream); transition: transform var(--m-base) var(--e-out);
}
html[data-lang="uk"] .lang-switch::before { transform: translateX(100%); }
.lang-switch button {
  position: relative; z-index: 1; flex: 1 1 0; min-width: 0; min-height: 26px; margin: 0; padding: 7px 9px;   /* 26px: over the 24px WCAG 2.5.8 minimum */
  border: 0; border-radius: 999px; background: none; box-shadow: none; cursor: pointer;
  font: 600 12px/1 var(--font-body); color: var(--c-on-navy-2); transition: color var(--m-base) var(--e-out);
}
.lang-switch button[aria-pressed="true"] { color: var(--c-ink); background: none; }
.sh .lang-switch { height: auto; }
.sh__tools > .lang-switch { margin-block: 5px; }

.sh__burger { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; cursor: pointer; color: var(--c-cream); }
.sh__burger-bars { display: flex; flex-direction: column; gap: 5px; }
.sh__burger-bars span { display: block; width: 22px; height: 2px; border-radius: 1px; background: currentColor; }

@media (min-width: 768px) {
  .sh__bar { padding-inline: 32px 20px; gap: 16px; }
  .sh__tools { gap: 12px; }
  .sh__donate {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--radius-btn);
    background: var(--c-yellow); color: var(--c-ink); font: 600 15px/1.2 var(--font-body);
  }
  .sh__donate:hover { background: var(--c-sunflower); color: var(--c-ink); }
}

@media (min-width: 1280px) {
  .sh__bar {
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px;
    padding-inline: var(--px); padding-block: 16px;
    border-bottom: 1px solid rgba(220, 228, 234, .25);
  }
  html.is-scrolled .sh__bar { min-height: 72px; padding-block: 8px; border-bottom-color: transparent; }
  html.is-scrolled .sh__logo { transform: scale(.83); }
  .sh__burger { display: none; }

  .sh__nav { display: flex; gap: 28px; font: 500 15px/1.4 var(--font-body); }
  .sh__nav a { color: var(--c-cream); padding: 4px 0; border-bottom: 2px solid transparent; }
  .sh__nav a:hover { color: #fff; }
  .sh__nav a[aria-current="page"] { border-bottom-color: var(--c-yellow); }

  .sh__brand { gap: 12px; justify-self: center; }
  .sh__logo--small { display: none; }
  .sh__logo--full { display: block; width: 48px; height: 48px; }
  .sh__br { display: none; }
  .sh__word { font-size: 20px; font-weight: 400; white-space: nowrap; }

  .sh__tools { justify-content: flex-end; gap: 18px; }
  .sh__tools > .lang-switch { margin: 0; padding: 3px; }
  .lang-switch button { font-size: 13px; padding: 6px 11px; }

  .sh__account { display: flex; }
  .sh__account .nav-account { display: flex; align-items: center; gap: 14px; margin: 0; }
  .sh__account .nav-account__btn, .sh__account .nav-account__user {
    background: none; border: 0; padding: 0; min-height: 0; border-radius: 0; box-shadow: none;
    color: var(--c-cream); font: 500 15px/1.4 var(--font-body); text-decoration: none;
  }
  .sh__account .nav-account__btn:hover, .sh__account .nav-account__user:hover { text-decoration: underline; }
  .sh__account .nav-account__mono { display: none; }

  .sh__donate { min-height: 0; padding: 11px 20px; }
}

/* ---- The menu (artboards 4–6) — below 1280 --------------------------- */

html.menu-open { overflow: hidden; }

.mn {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; height: 100vh; height: 100dvh;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--c-navy); color: var(--c-cream); font-family: var(--font-body);
  transform: translateX(100%); visibility: hidden;
  transition: transform 220ms var(--e-io), visibility 0s linear 220ms;
}
.mn[hidden] { display: none; }
.mn.is-open { transform: none; visibility: visible; transition: transform var(--m-base) var(--e-out), visibility 0s; }
.mn a { color: var(--c-cream); text-decoration: none; }

.mn__head {
  flex: none; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 6px 0 16px; border-bottom: 1px solid var(--c-navy-line);
}
.mn__brand { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; }
.mn__brand img { width: 32px; height: 32px; flex: none; }
/* One line where it fits; on a 390 phone next to the switcher it wraps to two rather than being cut. */
.mn__brand span { font: 500 15px/1.1 var(--font-display); }
.mn__tools { display: flex; align-items: center; gap: 2px; flex: none; }
.mn__tools .lang-switch { margin-block: 7px; }
.mn__close { position: relative; width: 44px; height: 44px; flex: none; background: none; border: 0; padding: 0; cursor: pointer; color: var(--c-cream); }
.mn__x::before, .mn__x::after { content: ""; position: absolute; left: 11px; top: 21px; width: 22px; height: 2px; background: currentColor; }
.mn__x::before { transform: rotate(45deg); }
.mn__x::after  { transform: rotate(-45deg); }

.mn__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; padding-bottom: 20px; }

/* Rows stagger in 40ms apart from 120ms after the panel starts to slide (spec §05). */
.mn__sec, .mn__more, .mn__actions, .mn__next, .mn__where { opacity: 0; transform: translate3d(16px, 0, 0); }
.mn.is-open .mn__sec, .mn.is-open .mn__more, .mn.is-open .mn__actions, .mn.is-open .mn__next, .mn.is-open .mn__where {
  opacity: 1; transform: none;
  transition: opacity var(--m-base) var(--e-out), transform var(--m-base) var(--e-out);
  transition-delay: calc(120ms + var(--i, 0) * 40ms);
}

.mn__nav { padding: 8px 16px 0; }
.mn__sec { border-bottom: 1px solid var(--c-navy-line); }
.mn__h { margin: 0; }
.mn__top {
  width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0; background: none; border: 0; cursor: pointer; text-align: left;
  font: 400 28px/1.15 var(--font-display); color: var(--c-cream);
}
.mn__label { display: flex; align-items: center; gap: 10px; }
.mn__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-yellow); flex: none; }
.mn__chev { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex: none; color: var(--c-yellow); transition: transform var(--m-base) var(--e-out); }
.mn__chev svg { width: 20px; height: 20px; }
.mn__top[aria-expanded="true"] .mn__chev { transform: rotate(180deg); }

/* The panel animates grid-template-rows 0fr → 1fr (spec); visibility keeps closed links out of the tab order. */
.mn__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows var(--m-base) var(--e-out), visibility 0s linear var(--m-base); }
.mn__sec.is-open .mn__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--m-base) var(--e-out), visibility 0s; }
.mn__panel-in { overflow: hidden; min-height: 0; display: flex; flex-direction: column; }
.mn__sec.is-open .mn__panel-in { padding-bottom: 14px; }
.mn__go { display: flex; align-items: center; gap: 6px; min-height: 44px; padding-left: 16px; font: 600 15px/1.3 var(--font-body); color: var(--c-yellow) !important; }
.mn__group { margin: 0; padding: 14px 0 4px 16px; font: 600 12px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-on-navy-3); }
.mn__item { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 12px 0 16px; font: 400 17px/1.3 var(--font-body); color: var(--c-on-navy-2) !important; }
.mn__item:hover { color: #fff !important; }
.mn__item[aria-current="page"] { color: var(--c-cream) !important; font-weight: 600; }
.mn__item[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--c-yellow); }

.mn__more { list-style: none; margin: 0; padding: 12px 16px 0; display: flex; gap: 24px; }
.mn__more a { display: flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--c-on-navy-2) !important; text-decoration: underline !important; text-decoration-color: var(--c-navy-line) !important; text-underline-offset: 5px; }

.mn__actions { padding: 20px 16px 0; display: flex; flex-direction: column; gap: 4px; }
.mn__donate { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: var(--radius-btn); background: var(--c-yellow); color: var(--c-ink) !important; font: 600 17px/1.2 var(--font-body); }
.mn__donate:hover { background: var(--c-sunflower); }
.mn__login { align-self: center; display: flex; align-items: center; min-height: 44px; padding: 0 8px; font: 600 15px/1.2 var(--font-body); text-decoration: underline !important; text-decoration-color: var(--c-yellow) !important; text-decoration-thickness: 2px !important; text-underline-offset: 5px; }

.mn__next { padding: 16px 16px 0; }
.mn__card { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; padding: 14px; border: 1px solid var(--c-navy-line); border-radius: var(--radius-btn); background: #123F58; }
.mn__date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 56px; border-radius: var(--radius-btn); background: var(--c-cream); color: var(--c-navy); line-height: 1; }
.mn__wd { font: 700 11px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.mn__dn { font: 400 24px/1 var(--font-display); }
.mn__card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mn__kicker { font: 700 11px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-yellow); }
.mn__ctitle { font: 400 18px/1.2 var(--font-display); }
.mn__cfoot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.mn__cstate { font-size: 13px; color: var(--c-on-navy-3); }
.mn__cgo { font: 600 14px/1.3 var(--font-body); color: var(--c-yellow); white-space: nowrap; }

.mn__where { padding: 16px 16px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mn__where address { font-style: normal; font-size: 14px; line-height: 1.5; color: var(--c-on-navy-2); }
.mn__where a { display: flex; align-items: center; gap: 6px; min-height: 44px; font: 600 14px/1.2 var(--font-body); white-space: nowrap; }

.mn__foot { margin-top: 20px; padding: 16px 16px 0; border-top: 1px solid var(--c-navy-line); display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; font-size: 13px; color: var(--c-on-navy-3); }
.mn__foot a { min-height: 44px; display: flex; align-items: center; color: var(--c-on-navy-2) !important; }

@media (min-width: 1280px) { .mn { display: none !important; } }

/* =========================================================================
 * Footer (spec §06)
 * ====================================================================== */

.sf { background: var(--c-navy); color: var(--c-on-navy-2); font: 400 15px/1.5 var(--font-body); }
.sf a { color: inherit; text-decoration: none; }
.sf a:hover { color: var(--c-cream); text-decoration: underline; }
.sf ul { list-style: none; margin: 0; padding: 0; }

.sf__wrap { padding: 48px 16px 24px; display: flex; flex-direction: column; gap: 28px; }
.sf__top  { display: flex; flex-direction: column; gap: 28px; }

.sf__brand  { display: flex; flex-direction: column; gap: 14px; }
.sf__lockup { display: flex; align-items: center; gap: 12px; color: var(--c-cream) !important; }
.sf__lockup:hover { text-decoration: none !important; }
.sf__lockup img  { width: 48px; height: 48px; flex: none; }
.sf__lockup span { font: 400 20px/1.2 var(--font-display); white-space: nowrap; }

.sf__facts { display: flex; flex-direction: column; gap: 2px; color: var(--c-cream); }
.sf__facts a { color: var(--c-cream); }
.sf__charity { min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.sf__charity b { color: var(--c-yellow); font-weight: 600; }
.sf__address { padding: 10px 0; }
.sf__reach { display: flex; flex-wrap: wrap; gap: 0 20px; }
.sf__reach a {
  min-height: 44px; display: flex; align-items: center;
  text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 3px;
}

.sf__cols { display: none; }
.sf__acc { border-bottom: 1px solid var(--c-navy-line); }
.sf__acc details { border-top: 1px solid var(--c-navy-line); }
.sf__acc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; min-height: 52px;
  font: 600 16px/1.3 var(--font-body); color: var(--c-cream);
}
.sf__acc summary::-webkit-details-marker { display: none; }
.sf__plus { font-size: 20px; color: var(--c-yellow); transition: transform .15s ease; }
.sf__acc details[open] .sf__plus { transform: rotate(45deg); }
.sf__acc ul { padding-bottom: 12px; }
.sf__acc li a { min-height: 44px; display: flex; align-items: center; }

.sf__legal { margin: 0; display: flex; flex-wrap: wrap; column-gap: 20px; font-size: 13px; }
.sf__legal a { color: var(--c-on-navy-3); min-height: 44px; display: inline-flex; align-items: center; }

/* Tablet 768–1279 (spec §12): two columns, link groups open. Desktop ≥ 1280: brand + three groups. */
@media (min-width: 768px) {
  .sf__wrap { padding: 56px var(--px) 32px; gap: 0; }
  .sf__top {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px;
    padding-bottom: 40px; border-bottom: 1px solid var(--c-navy-line);
  }
  .sf__brand { grid-column: 1 / -1; gap: 12px; }
  .sf__lockup img { width: 64px; height: 64px; }
  .sf__lockup span { font-size: 22px; }
  .sf__facts { gap: 6px; }
  .sf__charity, .sf__reach a { min-height: 0; }
  .sf__address { padding: 0; }
  .sf__reach { gap: 16px; }
  .sf__cols { display: contents; }
  .sf__cols ul { display: flex; flex-direction: column; gap: 10px; }
  .sf__acc { display: none; }
  .sf__legal { padding-top: 24px; }
  .sf__legal a { min-height: 0; }
}
@media (min-width: 1280px) {
  .sf__wrap { padding-top: 64px; }
  .sf__top { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
  .sf__brand { grid-column: auto; }
}


/* =========================================================================
 * Home · Hero + Next up
 * ====================================================================== */

.hx { position: relative; background: var(--c-navy); color: var(--c-cream); overflow: hidden; }
.hx__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 60% center;
}
.hx::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,58,82,.90) 0%, rgba(14,58,82,.84) 55%, rgba(14,58,82,.92) 100%);
}
.hx__inner { position: relative; z-index: 1; }

/* §08c: the photograph in its own layers. Ken Burns on .hx__img (the only loop on the site), parallax
   on .hx__par and a deepening navy .hx__shade from motion.js. Reduced motion: all still. */
.hx__media { position: absolute; inset: 0; overflow: hidden; }   /* no z-index: the shade must stack above the ::after overlay */
.hx__par { position: absolute; inset: 0; will-change: transform; }
.hx__img { animation: hx-kb 20s var(--e-io) infinite alternate; will-change: transform; }
.hx.is-paused .hx__img { animation-play-state: paused; }
@keyframes hx-kb { to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); } }
.hx__shade { position: absolute; inset: 0; background: var(--c-navy); opacity: var(--shade, 0); z-index: 1; pointer-events: none; }
.hx::after { z-index: 0; }
.hx__media + .hx__inner { z-index: 2; }

/* Entrance: eyebrow, headline, subline, buttons, Next up — 16px rise, 80ms apart, once. */
.js .hx [data-enter] { animation: hx-in var(--m-slow) var(--e-out) both; animation-delay: calc(var(--e, 0) * 80ms); }
@keyframes hx-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } }

/* The typewriter. The word sits over a hidden "Inverclyde" in one grid cell, so the widest word's
   room is always reserved and nothing reflows. On a phone it takes its own line. */
.tw { display: inline-grid; vertical-align: bottom; }
.tw__ghost, .tw__line { grid-area: 1 / 1; }
.tw__ghost { visibility: hidden; }
.tw__line { white-space: nowrap; }
.tw__caret { display: inline-block; width: 2px; height: .7em; margin-left: .06em; background: var(--c-yellow); vertical-align: baseline; }
.tw__caret[hidden] { display: none; }
@media (max-width: 767px) { .tw { display: grid; } }
.hx__eyebrow [data-tw] { transition: opacity 200ms linear, color 200ms linear; }
.hx__eyebrow.is-tw [data-tw] { opacity: .7; }
.hx__eyebrow.is-tw [data-tw].is-on { opacity: 1; color: var(--c-cream); }

@media (prefers-reduced-motion: reduce) {
  .hx__img { animation: none; }
  .hx__par { will-change: auto; }
  .js .hx [data-enter] { animation: hx-fade var(--m-fast) linear both; animation-delay: 0ms; }
  @keyframes hx-fade { from { opacity: 0; } }
}

/* Phone: the headline block on the photograph (clear of the 48px header over it)… */
.hx__copy { padding: calc(var(--sh-h) + 40px) var(--gutter) 48px; display: flex; flex-direction: column; gap: 20px; }
.hx__eyebrow { margin: 0; font: 400 13px/1.4 var(--font-body); color: var(--c-on-navy-2); }
.hx__title {
  margin: 0; color: var(--c-cream);
  font: 400 44px/1.02 var(--font-display); letter-spacing: -.03em; text-wrap: balance;
}
.hx__title em { color: var(--c-yellow); font-style: italic; }
.hx__lede { margin: 0; max-width: 28em; font: 400 17px/1.5 var(--font-body); color: var(--c-on-navy-2); }
.hx__ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.hx__text-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  color: var(--c-cream); font: 600 16px/1.2 var(--font-body);
  text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 5px;
}
.hx__text-link:hover { color: #fff; text-decoration-thickness: 3px; }

/* …and "Next up" below it, on cream. Its ground covers the photograph behind it. */
.hx__next { position: relative; background: var(--c-cream); color: var(--c-ink); padding: 40px 16px 64px; }

@media (min-width: 1024px) {
  .hx__bg { object-position: center 40%; }
  .hx::after { background: var(--overlay-hero); }
  .hx__inner {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 80px; align-items: center;
    padding: calc(var(--sh-h) + 72px) var(--px) 72px;
  }
  .hx__copy { padding: 0; gap: 32px; }
  .hx__eyebrow { font-size: 15px; color: var(--c-on-navy-3); }
  .hx__title { font-size: clamp(64px, 5.2vw + 12px, 88px); line-height: 1; letter-spacing: -.035em; }
  .hx__lede { font-size: 22px; }
  .hx__ctas { flex-direction: row; align-items: center; gap: 12px; margin-top: 0; }
  .hx__ctas .b3 { min-height: 0; padding: 17px 28px; }
  .hx__ctas .b3--line-cream { padding: 16px 28px; }
  .hx__text-link { padding: 16px 12px; min-height: 0; }
  .hx__next { background: none; color: var(--c-cream); padding: 0; }
}

/* ---- Next up --------------------------------------------------------- */

.nu a { color: inherit; text-decoration: none; }
.nu__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px; border-bottom: var(--rule-heavy);
}
.nu__title { margin: 0; font: 400 26px/1.2 var(--font-display); color: inherit; }
.nu__all { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; font: 600 15px/1.3 var(--font-body); color: var(--c-navy) !important; }

.nu__event { display: grid; grid-template-columns: 80px 1fr; gap: 14px; align-items: center; padding: 16px 0; }
.nu__event img, .nu__event .thumb-empty { width: 80px; height: 80px; object-fit: cover; display: block; }
.nu__event-text { display: flex; flex-direction: column; gap: 4px; }
/* On a phone the status moves under the title as a small ruled tag (screen 2); on desktop it rides
 * on the meta line (screen 1). `display: contents` lets the same markup do both. */
.nu__meta { display: contents; }
.nu__meta time { order: 1; font: 600 13px/1.4 var(--font-body); color: var(--c-navy); }
.nu__sep { display: none; }
.nu__event-title { order: 2; font: 400 19px/1.2 var(--font-display); }
.nu__status { order: 3; align-self: flex-start; font: 600 13px/1.4 var(--font-body); border-bottom: var(--rule-accent); }
.nu__status--announced { border-bottom: 0; color: var(--c-muted); }

.nu__row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center;
  min-height: 52px; border-top: var(--rule-hair);
}
.nu__row:last-child { border-bottom: var(--rule-hair); }
.nu__when, .nu__when time { display: contents; }
.nu__day   { order: 1; font: 600 14px/1.3 var(--font-body); color: var(--c-navy); }
.nu__row-title { order: 2; font: 400 16px/1.35 var(--font-body); }
.nu__time  { order: 3; font: 400 14px/1.3 var(--font-body); color: var(--c-muted); }
/* Upcoming events in the list: a date rather than a weekday, a serif title, two lines at most. */
.nu__row--event { grid-template-columns: 84px 1fr auto; }
.nu__row--event .nu__row-title { font-family: var(--font-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (min-width: 1024px) {
  .nu__head { padding-bottom: 14px; border-bottom: 1px solid var(--c-yellow); }
  .nu__title { font-size: 24px; }
  .nu__all { min-height: 0; color: var(--c-yellow) !important; }

  .nu__event { grid-template-columns: 96px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--c-navy-line); }
  .nu__event img, .nu__event .thumb-empty { width: 96px; height: 96px; }
  .nu__meta { display: block; font: 600 13px/1.4 var(--font-body); color: var(--c-yellow); }
  .nu__meta time { color: inherit; font: inherit; }
  .nu__sep { display: inline; }
  .nu__status, .nu__status--announced { border: 0; color: inherit; font: inherit; }
  .nu__event-title { font-size: 20px; }

  .nu__row {
    grid-template-columns: 96px 1fr; gap: 18px; min-height: 0; padding: 14px 0;
    border-top: 0; border-bottom: 1px solid var(--c-navy-line);
  }
  .nu__row:last-child { border-bottom: 0; }
  .nu__when { display: block; font: 400 15px/1.4 var(--font-body); color: var(--c-on-navy-3); }
  .nu__when time { display: inline; }
  .nu__day, .nu__time { font: inherit; color: inherit; }
  .nu__row-title { font: 500 17px/1.35 var(--font-body); }
  .nu__row--event { grid-template-columns: 96px 1fr; padding: 12px 0; }
  .nu__row--event .nu__day { color: var(--c-yellow); font-weight: 600; }
  .nu__row--event .nu__row-title { font: 400 18px/1.25 var(--font-display); }
}

/* =========================================================================
 * Home · Gallery band (3b-v2 §08c "Gallery motion")
 * Phone: one swipe row of 300×360 tiles, caption below, dots + counter. The rows and tracks are
 * display:contents here, so the tiles marked data-m become one scroller's children.
 * ≥768: two rows of 240px tiles; motion.js drifts them (.is-marquee) or, with reduced motion, each
 * row is its own native scroller (.is-static).
 * ====================================================================== */

.gb { position: relative; background: var(--c-ink); color: var(--c-cream); padding: 48px 0 40px; }
.gb__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 0 var(--gutter) 20px; }
.gb__t { display: flex; flex-direction: column; gap: 4px; }
.gb__t h2 { margin: 0; font: 400 36px/1 var(--font-display); letter-spacing: -.025em; color: inherit; }
.gb__count { font: 400 14px/1.4 var(--font-body); color: var(--c-on-navy-3); }
.gb__ctl { display: flex; align-items: center; gap: 10px; }
.gb__btn {
  width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center;
  padding: 0; border: 1px solid #5B7F93; border-radius: 50%; background: transparent; color: var(--c-cream); cursor: pointer;
  transition: background-color var(--m-fast) linear, border-color var(--m-fast) linear;
}
.gb__btn:hover { background: rgba(247, 244, 238, .08); border-color: var(--c-cream); }
.gb__btn[hidden] { display: none; }
.gb__btn svg { display: block; }
.gb__btn .gb__i-play, .gb__pause[aria-pressed="true"] .gb__i-pause { display: none; }
.gb__pause[aria-pressed="true"] .gb__i-play { display: block; }
.gb__sep { display: none; width: 1px; height: 28px; background: var(--c-navy-line); margin: 0 8px; }
.gb__all { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 15px/1.2 var(--font-body); color: var(--c-yellow) !important; text-decoration: none; white-space: nowrap; }
.gb__all:hover { text-decoration: underline; text-underline-offset: 5px; }
.gb__all-long { display: none; }

.gb__rows {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter);
  padding: 0 var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-behavior: smooth;
}
.gb__rows::-webkit-scrollbar { display: none; }
.gb__rows::after { content: ""; flex: none; width: 4px; }
.gb__vp, .gb__track { display: contents; }
.gb__tile { display: none; }
.gb__tile[data-m] {
  flex: none; width: 300px; display: flex; flex-direction: column; gap: 10px; scroll-snap-align: start;
  color: var(--c-cream) !important; text-decoration: none; cursor: zoom-in;
}
.gb__tile[data-clone] { display: none !important; }
.gb__frame { display: block; width: 100%; height: 360px; overflow: hidden; background: var(--c-navy); }
.gb__frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--m-slow) var(--e-out); }
.gb__cap { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.gb__lbl { font: 600 15px/1.3 var(--font-body); }
.gb__foot { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter) 0; }
.gb__dots { display: flex; gap: 6px; align-items: center; }
.gb__dots i { display: block; height: 8px; width: 8px; border-radius: 4px; background: var(--c-navy-line); transition: width var(--m-base) var(--e-out), background-color var(--m-base) linear; }
.gb__dots i.is-on { width: 24px; background: var(--c-yellow); }
.gb__n { font: 400 13px/1.4 var(--font-body); color: var(--c-on-navy-3); }

/* Reveal: tiles fade and scale in, 80ms apart per row. */
.js .gb .gb__tile { opacity: 0; transform: scale(.96); }
.js .gb.is-in .gb__tile {
  opacity: 1; transform: none;
  transition: opacity var(--m-slow) var(--e-out) var(--d, 0ms), transform var(--m-slow) var(--e-out) var(--d, 0ms);
}

@media (min-width: 768px) {
  .gb { padding: 80px 0 88px; }
  .gb__head { padding: 0 var(--px, var(--gutter)) 32px; gap: 32px; }
  .gb__t { flex-direction: row; align-items: baseline; gap: 20px; }
  .gb__t h2 { font-size: clamp(48px, 3vw + 20px, 64px); letter-spacing: -.03em; }
  .gb__count { font-size: 16px; }
  .gb__sep { display: block; }
  .gb__all { font-size: 16px; }
  .gb__all-long { display: inline; }
  .gb__all-short { display: none; }

  .gb__rows { display: flex; flex-direction: column; gap: 8px; overflow: visible; padding: 0; scroll-snap-type: none; }
  .gb__rows::after { display: none; }
  .gb__vp { display: block; overflow: hidden; }
  .gb__track { display: flex; width: max-content; }
  .gb__tile, .gb__tile[data-m] {
    position: relative; display: block; flex: none; width: var(--w, 300px); height: 240px; margin-right: 8px;
    overflow: hidden; background: var(--c-navy); cursor: zoom-in;
  }
  .gb__tile[data-clone] { display: block !important; }
  .gb__frame { height: 100%; }
  .gb__cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 14px 12px; align-items: flex-end;
    background: linear-gradient(180deg, rgba(14,58,82,0) 0%, rgba(14,58,82,.94) 72%);
    transform: translateY(100%); transition: transform var(--m-base) var(--e-out);
  }
  .gb__tile:hover .gb__cap, .gb__tile:focus-visible .gb__cap { transform: none; }
  .gb__tile:hover .gb__frame img, .gb__tile:focus-visible .gb__frame img { transform: scale(1.06); }
  .gb__track:hover .gb__tile:not(:hover), .gb__rows:focus-within .gb__tile:not(:focus-visible) { opacity: .7; }
  .gb.is-in .gb__tile { transition: opacity var(--m-base) linear, transform var(--m-slow) var(--e-out); }
  .js .gb.is-in .gb__track > .gb__tile:not([data-clone]) { transition-delay: var(--d, 0ms), var(--d, 0ms); }
  .gb__tile:focus-visible { outline-offset: -4px; }
  .gb__track { will-change: transform; }
  .gb__foot { display: none; }

  /* No drift (reduced motion): each row scrolls natively, with snap. */
  .gb.is-static .gb__vp { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--px, var(--gutter)); }
  .gb.is-static .gb__vp::-webkit-scrollbar { display: none; }
  .gb.is-static .gb__tile { scroll-snap-align: start; }
  .gb.is-static .gb__track { will-change: auto; }
  .gb.is-static .gb__tile[data-clone] { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .gb__rows { scroll-behavior: auto; }
  .js .gb .gb__tile { transform: none; }
  .js .gb.is-in .gb__tile { transition: opacity var(--m-fast) linear; }
  .gb__cap { transform: none !important; transition: none; }
  .gb__tile:hover .gb__frame img, .gb__tile:focus-visible .gb__frame img { transform: none; }
  .gb__tile:hover { opacity: .9; }
}

/* ---- The shared lightbox (lightbox.js) ------------------------------- */
html.lb-open { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto;
  background: #0B1620; color: var(--c-cream);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px 16px; }
.lb__title { font: 400 15px/1.3 var(--font-body); color: var(--c-on-navy-2); }
.lb__count { font: 600 15px/1.3 var(--font-body); font-variant-numeric: tabular-nums; }
/* Close and zoom: round outlined buttons in the arrows' language, quiet on the dark ground. */
.lb__tools { display: flex; align-items: center; gap: 10px; }
.lb__tool {
  position: relative; width: 44px; height: 44px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(247, 244, 238, .45); background: rgba(14, 58, 82, .55); color: var(--c-cream); cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.lb__tool:hover { background: rgba(14, 58, 82, .95); border-color: var(--c-cream); }
.lb__tool:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 3px; }
.lb__close:hover { color: var(--c-yellow); border-color: var(--c-yellow); }
.lb__zoom[aria-pressed="true"] { background: var(--c-cream); border-color: var(--c-cream); color: var(--c-navy, #0E3A52); }
.lb__zoom[aria-pressed="true"] .lb__plus { display: none; }
.lb__bar { position: relative; z-index: 3; }
.lb__cap, .lb__strip { position: relative; z-index: 3; background: #0B1620; }
.lb__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 8px 16px; touch-action: none; }
.lb__img { cursor: zoom-in; transform-origin: 50% 50%; }
.lb.is-zoomed .lb__img { cursor: grab; }
.lb.is-panning .lb__img { cursor: grabbing; }
.lb.is-zoomed .lb__nav { opacity: .35; }
.lb.is-zoomed .lb__nav:hover { opacity: 1; }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; user-select: none; }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(247, 244, 238, .5); background: rgba(14, 58, 82, .6);
  color: var(--c-cream); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
}
.lb__nav:hover { background: rgba(14, 58, 82, .9); border-color: var(--c-cream); }
.lb__prev { left: 12px; } .lb__next { right: 12px; }
.lb__cap { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 16px 0; text-align: center; font: 400 15px/1.45 var(--font-body); }
.lb__cap b { font-weight: 600; font-size: 17px; }
.lb__cap > span { color: var(--c-on-navy-3); max-width: 60ch; }
.lb__strip { display: flex; gap: 6px; align-items: center; padding: 14px 16px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid #22384A; margin-top: 14px; }
.lb__strip::-webkit-scrollbar { display: none; }
.lb__thumb { flex: none; width: 48px; height: 48px; padding: 0; border: 0; background: none; opacity: .55; cursor: pointer; }
.lb__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb__thumb:hover { opacity: .85; }
.lb__thumb.is-cur { opacity: 1; outline: 2px solid var(--c-yellow); outline-offset: 2px; }
@media (min-width: 768px) {
  .lb__bar { min-height: 72px; padding: 8px 32px; }
  .lb__stage { padding: 8px 120px; }
  .lb__nav { width: 56px; height: 56px; }
  .lb__tool { width: 48px; height: 48px; }
  .lb__prev { left: 32px; } .lb__next { right: 32px; }
  .lb__thumb { width: 56px; height: 56px; }
  .lb__strip { padding: 18px 32px; }
}

/* =========================================================================
 * Home · Three branches, one door
 * ====================================================================== */

.br { padding-top: 72px; }
.br__head { display: flex; flex-direction: column-reverse; gap: 8px; padding: 0 16px 28px; }
.br__title {
  margin: 0; font: 400 34px/1.05 var(--font-display); letter-spacing: -.02em; color: var(--c-ink); text-wrap: balance;
}
.br__eyebrow { margin: 0; font: 600 12px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-navy); }

.br__rows { display: flex; flex-direction: column; gap: 40px; }
.br__media img { display: block; width: 100%; height: 240px; object-fit: cover; }
.br__text { display: flex; flex-direction: column; gap: 10px; padding: 20px 16px 0; }
.br__text h3 { margin: 0; font: 400 28px/1.15 var(--font-display); color: var(--c-ink); }
.br__text p  { margin: 0; font: 400 16px/1.55 var(--font-body); color: var(--c-text-2); }
.br__link {
  min-height: 44px; display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
  font: 600 15px/1.3 var(--font-body); color: var(--c-navy); text-decoration: none;
}
.br__link:hover { color: var(--c-ink); text-decoration: underline; }

@media (min-width: 1024px) {
  .br { padding-top: 0; }
  .br__head {
    flex-direction: row; justify-content: space-between; align-items: flex-end;
    padding: 104px var(--px) 56px;
  }
  .br__title { font-size: clamp(56px, 3.5vw + 22px, 72px); line-height: 1; letter-spacing: -.03em; }
  .br__eyebrow { font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--c-muted); }
  .br__rows { gap: 0; border-top: 1px solid var(--c-line-soft); }
  .br__row { display: grid; grid-template-columns: 1fr 1fr; }
  .br__media img { height: clamp(480px, 33.34vw, 720px); }   /* 3:2 at 1440, then grows with the width */
  /* The halves bleed to the screen edges, but the words inside them line up with the 1296 content
   * grid like every other heading on the page. A percentage padding on a grid item resolves against
   * its own column — here half the band — so `100% - 1296/2` is exactly the distance from the screen
   * edge to the content edge: 72px at 1440, 632px at 2560. Without it the text half widened with the
   * screen (a 1100px line at 2560) and the middle row's words sat 88px from the edge while every
   * heading above them sat 632px in. */
  .br__text {
    padding-block: 56px; justify-content: center; gap: 18px;
    padding-left: clamp(40px, 6vw, 88px);
    padding-right: max(var(--gutter), calc(100% - var(--content-max) / 2));
  }
  .br__row--flip .br__text {
    order: -1; background: var(--c-sand);
    padding-left: max(var(--gutter), calc(100% - var(--content-max) / 2));
    padding-right: clamp(40px, 6vw, 88px);
  }
  .br__text p { max-width: 34em; }
  .br__text .num3 { font-size: 14px; }
  .br__text h3 { font-size: 48px; line-height: 1.1; letter-spacing: -.02em; }
  .br__text p  { font-size: 19px; line-height: 1.6; }
  .br__link { font-size: 16px; min-height: 0; }
}

/* =========================================================================
 * Home · Coming up
 * ====================================================================== */

.cs { padding: 72px 16px; }
.cs__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.cs__head h2 { margin: 0; font: 400 34px/1.05 var(--font-display); letter-spacing: -.02em; color: var(--c-ink); }
.cs__all { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; font: 600 15px/1.3 var(--font-body); color: var(--c-navy); text-decoration: none; white-space: nowrap; }
.cs__all:hover { color: var(--c-ink); text-decoration: underline; }

/* Home · Coming up: the next event large with its date on the photograph, the ones after it as a
 * dated list (date tile, title, time · venue · status, small photograph). Rows keep long and short
 * titles aligned, which three equal cards could not. */
.nx { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.nx a { text-decoration: none; }
.nx__feat { position: relative; display: flex; flex-direction: column; gap: 18px; }
.nx__media { position: relative; display: block; overflow: hidden; background: var(--c-navy); }
.nx__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--m-slow) var(--e-out); }
.nx__feat:hover .nx__media img { transform: scale(1.03); }
.nx .nx__media > span.db, .nx .nx__media:hover > span.db { position: absolute; left: 0; bottom: 0; display: flex; transform: none; }   /* the tile, not the link-arrow rule */
.nx__fbody { display: flex; flex-direction: column; gap: 12px; }
.nx__meta { margin: 0; font: 600 14px/1.4 var(--font-body); color: var(--c-navy); }
.nx__meta span { color: var(--c-muted); }
.nx__ftitle { margin: 0; font: 400 30px/1.12 var(--font-display); letter-spacing: -.015em; text-wrap: balance; }
.nx__ftitle a { color: var(--c-ink); }
.nx__ftitle a::after { content: ""; position: absolute; inset: 0; }
.nx__ftitle a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.nx__act { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.nx__more { display: inline-flex; align-items: center; gap: 6px; font: 600 15px/1.3 var(--font-body); color: var(--c-navy); border-bottom: 2px solid var(--c-yellow); padding-bottom: 2px; }
.nx__more:hover { color: var(--c-ink); border-bottom-color: var(--c-ink); }
.nx__book { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--radius-btn); background: var(--c-navy); color: var(--c-cream); font: 600 15px/1.3 var(--font-body); }
.nx__book:hover { background: var(--c-ink); color: var(--c-cream); }

.nx__side { display: flex; flex-direction: column; }
.nx__eyebrow { margin: 0 0 4px; padding-bottom: 12px; border-bottom: 1px solid var(--c-navy); font: 600 12px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.nx__list { list-style: none; margin: 0; padding: 0; }
.nx__row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) 64px; align-items: center; gap: 16px; padding: 16px 0; border-bottom: var(--rule-hair); }
.nx__rbody { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nx__title { margin: 0; font: 400 19px/1.2 var(--font-display); text-wrap: balance; }
.nx__title a { color: var(--c-ink); }
.nx__title a::after { content: ""; position: absolute; inset: 0; }
.nx__row:hover .nx__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.nx__rmeta { margin: 0; font: 500 13px/1.4 var(--font-body); color: var(--c-muted); }
.nx__st { color: var(--c-navy); font-weight: 600; }
.nx__st--announced { color: var(--c-muted); font-weight: 500; }
.nx__thumb { display: block; width: 64px; height: 64px; object-fit: cover; }
.cu__none { margin: 0; font-size: 17px; color: var(--c-text-2); max-width: 46ch; }

/* Home · Coming up · past events: quieter than what is next (smaller, muted dates, softened photographs). */
.rp { margin-top: 56px; padding-top: 28px; border-top: var(--rule-hair); }
.rp__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.rp__title { margin: 0; font: 400 24px/1.1 var(--font-display); letter-spacing: -.01em; color: var(--c-ink); }
.rp__all { font: 600 14px/1.3 var(--font-body); color: var(--c-navy); text-decoration: none; white-space: nowrap; }
.rp__all:hover { color: var(--c-ink); text-decoration: underline; }
.rp__n { font-weight: 400; color: var(--c-muted); }
.rp__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.rp__item { position: relative; display: flex; flex-direction: column; gap: 8px; }
.rp__media { overflow: hidden; background: var(--c-sand); }
.rp__media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.8); transition: transform var(--m-slow) var(--e-out), filter var(--m-base) var(--e-out); }
.rp__item:hover .rp__media img { transform: scale(1.04); filter: none; }
.rp__meta { margin: 4px 0 0; font: 600 12px/1.3 var(--font-body); letter-spacing: .02em; color: var(--c-muted); }
.rp__name { margin: 0; font: 400 16px/1.25 var(--font-display); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rp__name a { color: var(--c-ink); text-decoration: none; }
.rp__name a::after { content: ""; position: absolute; inset: 0; }
.rp__item:hover .rp__name a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

@media (min-width: 1024px) {
  .cs { padding: 104px var(--px); }
  .cs__head { margin-bottom: 48px; }
  .cs__head h2 { font-size: clamp(56px, 3.5vw + 22px, 72px); line-height: 1; letter-spacing: -.03em; }
  .cs__all { font-size: 16px; min-height: 0; }
  .nx { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: start; }
  .nx--solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
  .nx__ftitle { font-size: clamp(34px, 1.6vw + 16px, 44px); }
  .nx__meta { font-size: 15px; }
  .nx__eyebrow { margin-top: 0; }
  .nx__row { grid-template-columns: auto minmax(0, 1fr) 96px; gap: 20px; padding: 22px 0; }
  .nx__title { font-size: 23px; }
  .nx__rmeta { font-size: 14px; }
  .nx__thumb { width: 96px; height: 96px; }
  .rp { margin-top: 96px; padding-top: 36px; }
  .rp__head { margin-bottom: 28px; }
  .rp__title { font-size: 32px; }
  .rp__all { font-size: 15px; }
  .rp__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .rp__name { font-size: 19px; -webkit-line-clamp: 2; }
}

/* =========================================================================
 * Home · The library
 * ====================================================================== */

.lib { background: var(--c-sand); }
.lib__media img { display: block; width: 100%; height: 300px; object-fit: cover; }
.lib__text { display: flex; flex-direction: column; gap: 14px; padding: 28px 16px 64px; }
.lib__text h2 { margin: 0; font: 400 34px/1.05 var(--font-display); letter-spacing: -.02em; color: var(--c-ink); }
.lib__text p  { margin: 0; font: 400 16px/1.6 var(--font-body); color: var(--c-text-2); }
.lib__text strong { color: var(--c-ink); font-weight: 600; }
.lib__text .b3 { margin-top: 4px; }

@media (min-width: 1024px) {
  /* The design's 1.3fr / 1fr, re-expressed so it holds on a wide screen. The text column is a share
   * of the 1296 content grid (38%, at most 563px — 1fr of 2.3 at 1440) plus the margin outside the
   * grid, so its words stay a steady width and end on the content edge; the photograph takes the
   * rest and keeps bleeding off the left. As plain fractions the text column shrank as the screen
   * grew: 482px of text at 1440, 326px at 3840. */
  .lib {
    display: grid;
    grid-template-columns: minmax(0, 1fr) calc(min(38%, 563px) + max(var(--gutter), 50% - var(--content-max) / 2));
  }
  .lib__media img { height: clamp(600px, 38vw, 900px); }
  /* Right padding = the margin outside the content grid (50vw: within half a scrollbar of the 50%
   * the column uses). */
  .lib__text { padding: 72px max(var(--gutter), calc(50vw - var(--content-max) / 2)) 72px var(--gutter); justify-content: center; gap: 22px; }
  .lib__text p { max-width: 34em; }
  .lib__text .eyebrow3--rule { font-size: 15px; }
  .lib__text h2 { font-size: clamp(44px, 2.8vw + 20px, 60px); line-height: 1; letter-spacing: -.03em; }
  .lib__text p { font-size: 18px; }
  .lib__text .b3 { align-self: flex-start; min-height: 0; padding: 15px 26px; margin-top: 0; }
}

/* =========================================================================
 * Home · What we have built
 * ====================================================================== */

.bt__wrap { padding: 72px 16px 64px; }
.bt__head { border-top: var(--rule-heavy); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
/* The spec sets this very tight (1.05 here, .98 on desktop). Literata's glyph box is about 1.43em
 * tall, so at those line-heights it hangs (1.43 − .98) / 2 ≈ .23em below the line box on every word,
 * descenders or not. The padding gives it room inside the box, so a later `overflow: hidden` could
 * never clip it. Measured: without it the heading overflowed its box by 18px at 76px. */
.bt__head h2 { margin: 0; padding-bottom: .24em; font: 400 34px/1.05 var(--font-display); letter-spacing: -.02em; color: var(--c-ink); }

.bt__quote { margin: 0 0 28px; display: flex; flex-direction: column; gap: 14px; }
.bt__quote blockquote { margin: 0; }
.bt__quote blockquote p {
  margin: 0; font: italic 400 28px/1.2 var(--font-display); letter-spacing: -.01em; color: var(--c-ink); text-wrap: balance;
}
.bt__quote figcaption { font: 400 15px/1.4 var(--font-body); color: var(--c-muted); }
.bt__quote figcaption b { color: var(--c-ink); font-weight: 600; }

/* Four figures, 2 × 2, a yellow rule above (spec §04). The label is the <dt> and comes first in the
 * markup for screen readers; the number is shown above it. */
.st { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: var(--rule-accent); }
.st__cell { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 18px 0; border-bottom: var(--rule-hair); }
.st__cell:nth-child(even) { padding-left: 18px; border-left: var(--rule-hair); }
.st__n { margin: 0; font: 400 48px/1 var(--font-display); color: var(--c-navy); }
.st__label { margin-top: 6px; font: 400 14px/1.4 var(--font-body); color: var(--c-ink); }

.bt__partners { margin-top: 48px; }
.bt__ptitle { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--c-ink); padding-top: 14px; }
.bt__ptitle h3 { margin: 0; padding-bottom: .1em; font: 400 22px/1.2 var(--font-display); color: var(--c-ink); }
.bt__ptitle a { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; font: 600 14px/1.3 var(--font-body); color: var(--c-navy); text-decoration: none; white-space: nowrap; }
.bt__ptitle a:hover { color: var(--c-ink); text-decoration: underline; }

/* The partner-logos block, re-laid: equal ruled cells, logos in grey on white (spec §06). */
.bt__logos .logo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0;
  border-top: var(--rule-hair); background: #fff;
}
.bt__logos .logo-tile {
  height: 88px; display: flex; align-items: center; justify-content: center; padding: 0 16px;
  border: 0; border-bottom: var(--rule-hair); border-radius: 0; background: none; box-shadow: none; min-height: 0;
}
.bt__logos .logo-tile:nth-child(even) { border-left: var(--rule-hair); }
.bt__logos .logo-tile img {
  max-height: 40px; max-width: 100%; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); mix-blend-mode: multiply;
}

@media (min-width: 1024px) {
  .bt { background: var(--c-sand); }
  .bt__wrap { padding: 104px var(--px); }
  .bt__head {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end;
    padding-top: 18px; margin-bottom: 40px;
  }
  .bt__head .eyebrow3 { grid-column: span 3; align-self: start; font-size: 13px; }
  .bt__head h2 { grid-column: span 9; font-weight: 500; font-size: clamp(56px, 3.8vw + 22px, 76px); line-height: .98; letter-spacing: -.03em; }
  .bt__body {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; margin-bottom: 56px;
  }
  .bt__quote { grid-column: span 7; margin: 0; padding-right: 32px; gap: 20px; }
  .bt__quote blockquote p { font-size: clamp(40px, 2.4vw + 18px, 52px); line-height: 1.1; letter-spacing: -.02em; }
  .bt__stats { grid-column: span 5; }
  .st__cell { padding: 22px 0; }
  .st__cell:nth-child(even) { padding-left: 28px; }
  .st__n { font-size: 64px; }
  .st__label { margin-top: 8px; font-size: 15px; }

  .bt__partners {
    margin-top: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
    border-top: 1px solid var(--c-ink); border-bottom: 1px solid var(--c-ink);
  }
  .bt__ptitle { grid-column: span 3; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; border: 0; padding: 22px 0; }
  .bt__ptitle h3 { font-weight: 500; font-size: 26px; }
  .bt__ptitle a { min-height: 0; }
  .bt__logos { grid-column: span 9; }
  .bt__logos .logo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 0; background: none; height: 100%; }
  .bt__logos .logo-tile { height: 96px; padding: 0 20px; border-bottom: 0; border-left: var(--rule-hair); }
  .bt__logos .logo-tile img { max-height: 44px; }
}

/* =========================================================================
 * Home · Get involved, and the sign-up form
 * ====================================================================== */

.gi { background: var(--c-sand); padding: 64px 16px; }
.gi__title { margin: 0; font: 400 34px/1.05 var(--font-display); letter-spacing: -.02em; color: var(--c-ink); }
.gi__items { margin-top: 20px; }
.gi__item { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-top: var(--rule-hair); }
.gi__item:first-child { border-top-color: var(--c-ink); }
.gi__item h3 { margin: 0; font: 400 24px/1.2 var(--font-display); color: var(--c-ink); }
.gi__item p  { margin: 0; font: 400 16px/1.5 var(--font-body); color: var(--c-text-2); }

@media (min-width: 1024px) {
  .gi { background: var(--c-cream); padding: 96px var(--px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 64px; }
  /* The section name becomes the small navy label over the first column (screen 1). */
  .gi__title { grid-column: 1; font: 600 14px/1.4 var(--font-body); letter-spacing: 0; color: var(--c-navy); margin-bottom: 12px; }
  .gi__items { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; margin: 0; }
  .gi__item { gap: 14px; padding: 0; border: 0; }
  .gi__item h3 { font-size: 36px; }
  .gi__item p  { font-size: 17px; line-height: 1.55; }
  .gi__item .u-link { font-size: 16px; min-height: 0; }
}

/* Sign-up. Phone: a boxed field over a full-width button (screen 2). Desktop: the field sits on a
 * single ink rule with the button at its end (screen 1); on What's On it is a boxed field and a navy
 * button side by side (screen 4 — square, per the spec, rather than the mock-up's pills). */
.su { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 0; }
.su__input {
  min-height: 48px; padding: 0 14px; border: 1px solid var(--c-ink); border-radius: 0;
  background: var(--c-cream); color: var(--c-ink); font: 400 16px/1.3 var(--font-body); width: 100%;
}
.su__input::placeholder { color: #6B7178; opacity: 1; }
.su__btn {
  min-height: 48px; border: 0; border-radius: var(--radius-btn); cursor: pointer;
  background: var(--c-ink); color: var(--c-cream); font: 600 16px/1.2 var(--font-body);
}
.su__btn:hover { background: var(--c-navy); }

@media (min-width: 1024px) {
  .su--line { flex-direction: row; gap: 0; border-bottom: 1.5px solid var(--c-ink); margin-top: 0; }
  .su--line .su__input { border: 0; background: none; padding: 12px 0; min-height: 0; }
  .su--line .su__btn { min-height: 0; padding: 12px 0 12px 16px; background: none; color: var(--c-navy); border-radius: 0; white-space: nowrap; }
  .su--line .su__btn::after { content: " →"; }
  .su--line .su__btn:hover { color: var(--c-ink); background: none; text-decoration: underline; }

  .su--band { flex-direction: row; gap: 8px; width: min(520px, 100%); margin: 0; }
  /* The visible label takes its own line above the field and button. Only here, where the form is a
     row: on a column, wrap + a 100% basis split the form into side-by-side columns. */
  .su--band { flex-wrap: wrap; }
  .su--band .su__label { flex: 1 1 100%; }
  .su--band .su__input { flex: 1; border-color: var(--c-line); border-radius: var(--radius-btn); padding: 14px 20px; min-height: 0; font-size: 15px; }
  .su--band .su__btn { background: var(--c-navy); padding: 14px 22px; min-height: 0; font-size: 15px; }
  .su--band .su__btn:hover { background: var(--c-ink); }
}

/* =========================================================================
 * Page hero (3b-v2 §06 "Page hero") — the navy band the header sits on. Breadcrumb, H1, intro.
 * Used by What's On now and by the content templates as they move over (body.has-page-hero).
 * ====================================================================== */

.ph { background: var(--c-navy); color: var(--c-cream); }
.ph__in {
  padding: calc(var(--sh-h) + 32px + env(safe-area-inset-top, 0px)) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 14px; max-width: var(--page-max); margin-inline: auto; box-sizing: border-box;
}
.ph .breadcrumb { padding: 0; font: 400 13px/1.4 var(--font-body); color: var(--c-on-navy-3); }
.ph .breadcrumb a { color: var(--c-cream); min-height: 24px; }
.ph .breadcrumb .sep { color: var(--c-on-navy-3); }
.ph .breadcrumb strong { color: var(--c-on-navy-2); font-weight: 400; }
.ph__title {
  margin: 0; color: var(--c-cream); padding-bottom: .12em;
  font: 400 var(--text-h1)/.98 var(--font-display); letter-spacing: -.035em;
}
.ph__eyebrow { margin: 0; font: 600 13px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-yellow); }
.ph__eyebrow a { color: inherit; }
.ph .ph__title, .ph h1 { color: var(--c-cream); margin: 0; font: 400 var(--text-h1)/.98 var(--font-display); letter-spacing: -.035em; padding-bottom: .12em; }
.ph__intro a { color: var(--c-cream); text-decoration-color: var(--c-yellow); }
.ph__intro { margin: 0; max-width: 40ch; font: 400 17px/1.5 var(--font-body); color: var(--c-on-navy-2); }
.js .ph__in > * { animation: hx-in var(--m-slow) var(--e-out) both; }
.js .ph__in > :nth-child(2) { animation-delay: 80ms; }
.js .ph__in > :nth-child(3) { animation-delay: 160ms; }
@media (min-width: 768px) {
  .ph__in { padding-top: calc(var(--sh-h) + 56px); padding-bottom: 56px; gap: 18px; }
  .ph__intro { font-size: 20px; }
}
@media (min-width: 1280px) {
  .ph__in { padding: calc(var(--sh-h) + 64px) var(--px) 72px; max-width: none; }
  .ph__intro { font-size: 22px; max-width: 48ch; }
}
/* Photo variant (branch landings; later rooms and classes): text left, the photograph in the right
   five columns from 1024, full width under the title below that. */
.ph--media .ph__text { display: flex; flex-direction: column; gap: 14px; }
.ph__media { margin: 8px calc(-1 * var(--gutter)) -40px; }
.ph__media figure, .ph__media .wp-block-post-featured-image { margin: 0; }
.ph__media img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; display: block; }
.ph__meta { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font: 500 17px/1.4 var(--font-body); color: var(--c-on-navy-2); }
.ph__meta a { color: var(--c-cream); text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }
@media (min-width: 768px) { .ph__media { margin: 8px 0 0; } .ph__meta { font-size: 19px; } }
@media (min-width: 1024px) {
  .ph--media .ph__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
  .ph__media { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .ph__in > * { animation: hx-fade var(--m-fast) linear both; animation-delay: 0ms; }
}

/* =========================================================================
 * What's On v2 (artboards whatson-desktop / whatson-mobile)
 * ====================================================================== */

.wo { background: var(--c-cream); }
.wo > .wk, .wo__sec { padding-inline: var(--gutter); }

/* ---- The week ------------------------------------------------------- */
.wk { padding-top: 32px; scroll-margin-top: calc(var(--sh-h) + 8px); }
.wk__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.wk__nav {
  flex: 1 1 100%; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 44px;
  border: 1px solid var(--c-ink); border-radius: var(--radius-pill); font: 600 14px/1.3 var(--font-body);
}
.wk__step { height: 44px; display: flex; align-items: center; justify-content: center; color: var(--c-ink); text-decoration: none; }
.wk__step:first-child { border-right: var(--rule-hair); }
.wk__step:last-child  { border-left: var(--rule-hair); }
a.wk__step:hover { background: var(--c-sand); }
a.wk__step:first-child:hover { border-radius: 999px 0 0 999px; }
a.wk__step:last-child:hover  { border-radius: 0 999px 999px 0; }
.wk__label { text-align: center; padding: 0 8px; }
.wk__subs { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.wk__ics-other { font: 500 13px/1.3 var(--font-body); color: var(--c-ink-2, var(--c-muted)) !important; text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 3px; }
.wk__today-link, .wk__ics {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--c-line); border-radius: var(--radius-pill); background: #fff;
  font: 600 14px/1.2 var(--font-body); color: var(--c-ink) !important; text-decoration: none;
}
.wk__today-link:hover, .wk__ics:hover { border-color: var(--c-ink); }

.wk__grid { list-style: none; margin: 20px 0 0; padding: 0; border: 1px solid var(--c-ink); }
.wk__day + .wk__day { border-top: var(--rule-hair); }
.wk__det > summary { list-style: none; }
.wk__det > summary::-webkit-details-marker { display: none; }
.wk__head {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 14px; cursor: pointer;
  font: 600 15px/1.3 var(--font-body); color: var(--c-ink);
}
.wk__dnum { font: 400 18px/1 var(--font-display); }
.wk__today { font: 600 11px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; border-radius: 2px; background: var(--c-yellow); color: var(--c-ink); }
.wk__n { margin-left: auto; font: 400 13px/1.3 var(--font-body); color: var(--c-muted); }
.wk__det[open] .wk__n { visibility: hidden; }
.wk__chev { flex: none; transition: transform var(--m-base) var(--e-out); }
.wk__det[open] .wk__chev { transform: rotate(180deg); }
.wk__day--today .wk__head { background: var(--c-ink); color: var(--c-cream); }
.wk__day--today .wk__n { color: var(--c-on-navy-3); }
.wk__slots { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.wk__day--today .wk__slots { background: #FBF9F5; }
.wk__none { margin: 0; padding: 4px; font: 400 14px/1.4 var(--font-body); color: var(--c-muted); }   /* the spec's #8A8F93 is 3.2:1 on cream — below AA for 14px text */

.chip { display: flex; border-radius: var(--radius-chip); text-decoration: none; }
.chip--event { flex-direction: column; gap: 6px; padding: 12px; background: var(--c-navy); color: var(--c-cream); }
.chip--event .chip__time { font: 600 13px/1.3 var(--font-body); color: var(--c-yellow); }
.chip--event .chip__title { font: 400 17px/1.2 var(--font-display); color: var(--c-cream); text-decoration: none; display: flex; align-items: center; min-height: 24px; }
.chip--event .chip__title:hover { text-decoration: underline; }
.chip__book {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0;
  font: 400 13px/1.4 var(--font-body); color: var(--c-cream);
  text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 3px;
}
.chip--class, .chip--ghost { flex-direction: column; gap: 4px; padding: 10px 12px; min-height: 44px; color: var(--c-navy); }
.chip--class { border: 1.5px solid var(--c-navy); background: #fff; }
.chip--class:hover { background: var(--c-sand); }
.chip--ghost { border: 1.5px dashed #8A8F93; background: none; color: var(--c-text-2); }
.chip--ghost:hover { border-color: var(--c-text-2); }
.chip__time { font: 600 13px/1.3 var(--font-body); white-space: nowrap; }
.chip--class .chip__title { font: 600 15px/1.25 var(--font-body); color: var(--c-ink); }
.chip--ghost .chip__title { font: 500 15px/1.25 var(--font-body); color: var(--c-text-2); }
.chip--ghost .pill { align-self: flex-start; margin-top: 4px; }

.wk__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 14px; font: 400 13px/1.4 var(--font-body); color: var(--c-text-2); }
.wk__key { display: inline-flex; align-items: center; gap: 8px; }
.wk__key::before { content: ""; width: 14px; height: 14px; border-radius: 2px; flex: none; }
.wk__key--event::before { background: var(--c-navy); }
.wk__key--class::before { border: 1.5px solid var(--c-navy); }
.wk__key--ghost::before { border: 1.5px dashed #8A8F93; }
.wk__pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- Regular classes ------------------------------------------------ */
.wo__sec { padding-top: 64px; }
.wo__h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 20px; }
.wo__h h2 { margin: 0; font: 400 28px/1.1 var(--font-display); color: var(--c-ink); }
.wo__more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 15px/1.2 var(--font-body); color: var(--c-navy) !important; text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.cc { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cc__card {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "t n a" "t w a" "t s a";
  column-gap: 14px; row-gap: 3px; align-items: center; padding: 14px;
  background: #fff; border: var(--rule-hair); border-radius: var(--radius-chip); color: var(--c-ink) !important; text-decoration: none;
}
.cc__thumb { grid-area: t; width: 56px; height: 56px; align-self: start; display: block; }
.cc__thumb img, .cc__thumb .thumb-empty { width: 56px; height: 56px; object-fit: cover; display: block; }
.cc__thumb .thumb-empty { background: var(--c-sand); }
.cc__name { grid-area: n; font: 400 19px/1.2 var(--font-display); }
.cc__when { grid-area: w; font: 400 14px/1.35 var(--font-body); color: var(--c-text-2); }
.cc__state { grid-area: s; margin-top: 6px; }
.cc__arr { grid-area: a; align-self: start; color: var(--c-navy); font-size: 18px; transition: transform var(--m-base) var(--e-out); }
.cc__card:hover .cc__arr { transform: translateX(4px); }
.cc__card:hover .cc__name { text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }

/* ---- Coming up: events by month ------------------------------------- */
.wo__events { padding-bottom: 72px; }
.wo__big { margin: 0; font: 400 var(--text-h2)/1.05 var(--font-display); letter-spacing: -.025em; color: var(--c-ink); padding-bottom: .1em; }
.er__sum { margin: 8px 0 0; font: 400 15px/1.4 var(--font-body); color: var(--c-muted); }
.er__none { margin: 16px 0 0; color: var(--c-text-2); }
.er__month {
  margin: 28px 0 0; padding-bottom: 10px; border-bottom: 2px solid var(--c-ink);
  font: 600 13px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-navy);
}
.er { list-style: none; margin: 0; padding: 0; }
.er__row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "d x" "d s" "a a";
  column-gap: 16px; row-gap: 10px; padding: 20px 0; border-bottom: var(--rule-hair);
}
.er__media { display: none; }
.er__date { grid-area: d; display: flex; flex-direction: column; gap: 2px; color: var(--c-ink); }
.er__d { font: 400 44px/.95 var(--font-display); letter-spacing: -.02em; }
.er__m { font: 600 13px/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--c-navy); }
.er__wt { font: 400 13px/1.3 var(--font-body); color: var(--c-muted); }
.er__text { grid-area: x; min-width: 0; }
.er__title { margin: 0; font: 400 22px/1.2 var(--font-display); }
.er__title a { color: var(--c-ink); text-decoration: none; }
.er__title a:hover { text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }
.er__desc { margin: 6px 0 0; font: 400 15px/1.5 var(--font-body); color: var(--c-text-2); }
.er__state { grid-area: s; }
.er__act { grid-area: a; }
.er__btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 20px;
  border-radius: var(--radius-btn); font: 600 15px/1.2 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: background-color var(--m-fast) linear, color var(--m-fast) linear;
}
.er__btn--book { background: var(--c-navy); color: var(--c-cream) !important; }
.er__btn--book:hover { background: var(--c-ink); }
.er__btn--notify { border: 1.5px solid var(--c-navy); color: var(--c-navy) !important; background: transparent; }
.er__btn--notify:hover { background: var(--c-navy); color: var(--c-cream) !important; }

/* ---- Keep in touch band --------------------------------------------- */
.kit { background: var(--c-sand); padding: 48px var(--gutter); display: flex; flex-direction: column; gap: 20px; scroll-margin-top: calc(var(--sh-h) + 8px); }
.kit__text h2 { margin: 0 0 8px; font: 400 32px/1.05 var(--font-display); letter-spacing: -.02em; color: var(--c-ink); }
.kit__text p { margin: 0; font: 400 16px/1.5 var(--font-body); color: var(--c-text-2); }
.su__label { display: block; margin: 0 0 2px; font: 600 14px/1.3 var(--font-body); color: var(--c-ink); }

@media (min-width: 768px) {
  .wk__nav { flex: 0 1 auto; grid-template-columns: auto auto auto; }
  .wk__step { padding: 0 18px; }
  .wk__label { padding: 0 20px; white-space: nowrap; }
  .wk__ics { margin-left: auto; }
  .cc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .er__row {
    grid-template-columns: 88px 120px minmax(0, 1fr); grid-template-areas: "d m x" "d m s" "d m a";
    column-gap: 24px; row-gap: 8px; align-items: start;
  }
  .er__media { grid-area: m; display: block; width: 120px; height: 90px; }
  .er__media img, .er__media .thumb-empty { width: 120px; height: 90px; object-fit: cover; display: block; }
  .er__media .thumb-empty { background: var(--c-sand); }
  .er__d { font-size: 56px; }
  .er__act .er__btn { display: inline-flex; }
  .kit { flex-direction: row; align-items: end; justify-content: space-between; padding: 64px var(--gutter); gap: 48px; }
  .kit__text { flex: 1; }
  .kit__text h2 { font-size: 40px; }
}

@media (min-width: 1280px) {
  .wo > .wk, .wo__sec { padding-inline: var(--px); }
  .wk { padding-top: 48px; }

  /* Seven equal columns in a 1px ink frame; the <details> are held open (site.js). */
  .wk__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .wk__day + .wk__day { border-top: 0; border-left: var(--rule-hair); }
  .wk__det { display: flex; flex-direction: column; height: 100%; }
  .wk__head {
    min-height: 0; padding: 12px 14px; cursor: default; border-bottom: 1px solid var(--c-ink);
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n t" "d t";
    row-gap: 2px; align-items: end;
  }
  .wk__dname { grid-area: n; font-size: 14px; }
  .wk__dnum { grid-area: d; font-size: 28px; }
  .wk__today { grid-area: t; align-self: start; }
  .wk__n, .wk__chev { display: none; }
  .wk__slots { min-height: 160px; flex: 1; padding: 10px; gap: 8px; }
  .wk__legend { gap: 12px 28px; padding-top: 18px; font-size: 14px; }
  .wk__pills { margin-left: auto; }

  .wo__sec { padding-top: 72px; }
  .wo__h h2 { font-size: 32px; }
  .cc { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .cc__card { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "t a" "n n" "w w" "s s"; padding: 18px; row-gap: 6px; height: 100%; box-sizing: border-box; align-content: start; }
  .cc__thumb { margin-bottom: 8px; }
  .cc__arr { justify-self: end; }

  .wo__events { padding-top: 104px; padding-bottom: 104px; }
  .wo__big { font-size: 72px; }
  .er__month { margin-top: 40px; }
  .er__row { grid-template-columns: 96px 120px minmax(0, 1fr) 150px 220px; grid-template-areas: "d m x s a"; align-items: center; column-gap: 28px; padding: 24px 0; }
  .er__title { font-size: 26px; }
  .er__act .er__btn { display: flex; width: 100%; box-sizing: border-box; }

  .kit { padding: 80px var(--px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
  .kit__text h2 { font-size: 48px; }
  .kit .su--band { width: 100%; }
}

/* =========================================================================
 * Get involved (3b-v2 artboard involved-*): the commitment ladder
 * ====================================================================== */
.gx2 { background: var(--c-cream); }
.ph__fig { margin: 0; }
.ph__fig img { width: 100%; aspect-ratio: 5 / 4; height: auto; object-fit: cover; display: block; }
.ph__fig figcaption { padding: 8px var(--gutter) 0; font: italic 400 13px/1.4 var(--font-body); color: var(--c-on-navy-3); }
@media (min-width: 768px) { .ph__fig figcaption { padding-inline: 0; } }

.lad__bar {
  position: sticky; top: calc(var(--sh-h) + env(safe-area-inset-top, 0px)); z-index: 5;
  display: flex; gap: 4px 22px; align-items: center; overflow-x: auto; scrollbar-width: none;
  padding: 0 var(--gutter); background: var(--c-cream); border-bottom: var(--rule-hair);
  font: 600 14px/1.2 var(--font-body); white-space: nowrap;
}
.lad__bar::-webkit-scrollbar { display: none; }
.lad__bar a { display: inline-flex; align-items: center; gap: 6px; min-height: 52px; color: var(--c-ink); text-decoration: none; border-bottom: 2px solid transparent; }
.lad__bar a:hover { border-bottom-color: var(--c-yellow); }
.lad__n { font: 600 12px/1 var(--font-body); color: var(--c-navy); letter-spacing: .04em; }
.lad__hint { margin-left: auto; font-weight: 400; color: var(--c-muted); }
html.is-scrolled .lad__bar { top: calc(var(--sh-h) + env(safe-area-inset-top, 0px)); }
@media (min-width: 1280px) { html.is-scrolled .lad__bar { top: 72px; } .lad__bar { padding-inline: var(--px); } }

.lad { padding-top: 56px; }
.lad__head { padding: 0 var(--gutter) 32px; display: flex; flex-direction: column; gap: 10px; }
.lad__head h2 { margin: 0; font: 400 var(--text-h2)/1.02 var(--font-display); letter-spacing: -.03em; color: var(--c-ink); padding-bottom: .08em; }
.lad__head p { margin: 0; font: 400 18px/1.5 var(--font-body); color: var(--c-text-2); }
.lad__row { display: grid; scroll-margin-top: calc(var(--sh-h) + 60px); }
.lad__row:nth-child(even of .lad__row) { background: var(--c-sand); }   /* spec: sand on even rows */
.lad__media { overflow: hidden; }
.lad__media img { width: 100%; height: 260px; object-fit: cover; display: block; }
.lad__text { padding: 32px var(--gutter) 40px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.lad__tag { margin: 0; display: inline-flex; gap: 10px; align-items: baseline; font: 600 13px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--c-navy); padding-bottom: 6px; border-bottom: var(--rule-accent); }
.lad__text h3 { margin: 0; font: 400 30px/1.05 var(--font-display); letter-spacing: -.02em; color: var(--c-ink); }
.lad__text > p:not(.lad__tag) { margin: 0; max-width: 46ch; font: 400 16px/1.55 var(--font-body); color: var(--c-text-2); }
.lad__text .b3 { align-self: stretch; }
.lad__text .su { width: 100%; }

.lad__next { padding: 64px var(--gutter) 0; }
.lad__next h2, .lad__give h2 { margin: 0; font: 400 32px/1.1 var(--font-display); color: var(--c-ink); }
.lad__for { margin: 6px 0 20px; color: var(--c-muted); font-size: 15px; }
.lad__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lad__steps li { display: grid; grid-template-columns: 40px 1fr; grid-template-areas: "n b" "n s"; column-gap: 14px; row-gap: 2px; padding: 18px; background: #fff; border: var(--rule-hair); border-radius: var(--radius-chip); }
.lad__sn { grid-area: n; width: 36px; height: 36px; border-radius: 50%; background: var(--c-navy); color: var(--c-yellow); display: flex; align-items: center; justify-content: center; font: 400 18px/1 var(--font-display); }
.lad__steps b { grid-area: b; font: 400 20px/1.2 var(--font-display); color: var(--c-ink); }
.lad__steps li > span:last-child { grid-area: s; font: 400 15px/1.5 var(--font-body); color: var(--c-text-2); }

.lad__partner { margin-top: 72px; background: var(--c-navy); color: var(--c-cream); padding: 56px var(--gutter); display: grid; gap: 32px; scroll-margin-top: calc(var(--sh-h) + 60px); }
.lad__pt { display: flex; flex-direction: column; gap: 14px; }
.lad__partner h2 { margin: 0; font: 400 clamp(2.25rem, 1.4rem + 2.6vw, 4rem)/1.02 var(--font-display); letter-spacing: -.025em; color: var(--c-cream); }
.lad__pt > p { margin: 0; max-width: 46ch; font: 400 17px/1.55 var(--font-body); color: var(--c-on-navy-2); }
.lad__links { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.lad__more { color: var(--c-yellow) !important; font: 600 16px/1.2 var(--font-body); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.lad__logos { background: var(--c-cream); border-radius: var(--radius-chip); padding: 20px; }

.lad__give { background: var(--c-sand); padding: 56px var(--gutter); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; scroll-margin-top: calc(var(--sh-h) + 60px); }
.lad__give p { margin: 0; max-width: 52ch; font: 400 17px/1.55 var(--font-body); color: var(--c-text-2); }

@media (min-width: 768px) {
  .lad__media img { height: 340px; }
  .lad__text .b3 { align-self: flex-start; }
  .lad__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lad__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lad__row--flip .lad__media { order: 2; }
  .lad__media img { height: 100%; min-height: 480px; }
  .lad__text { padding: 72px; justify-content: center; }
  .lad__text h3 { font-size: 52px; }
  .lad__text > p:not(.lad__tag) { font-size: 18px; }
  .lad__partner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: 96px var(--px); }
  .lad__give { padding: 96px var(--px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; }
  .lad__give h2 { font-size: 56px; grid-row: span 2; }
  .lad__give .b3 { justify-self: start; }
}
@media (min-width: 1280px) {
  .lad__head, .lad__next { padding-inline: var(--px); }
  .lad__head h2 { font-size: 72px; }
  .lad__next h2 { font-size: 40px; }
}

/* =========================================================================
 * Support the Club (3b-v2 artboard donate-*)
 * ====================================================================== */
.spm { background: var(--c-cream); }
.sp__soon {
  margin: 32px var(--gutter) 0; padding: 16px 18px; background: #fff; border-top: 2px solid var(--c-navy);
  display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: start; color: var(--c-navy);
}
.sp__soon p { margin: 0; font: 400 15px/1.5 var(--font-body); color: var(--c-text-2); }
.sp__soon p b { color: var(--c-ink); font-weight: 600; margin-right: 4px; }
.sp__soon a { grid-column: 2; font: 600 15px/1.3 var(--font-body); color: var(--c-navy); text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.sp__online { margin: 32px var(--gutter) 0; padding: 24px; background: #fff; border: var(--rule-hair); }

.sp__ways { padding: 48px var(--gutter) 0; }
.sp__wh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding-bottom: 14px; border-bottom: var(--rule-heavy); }
.sp__wh h2, .sp__does h2, .sp__other h2 { margin: 0; font: 400 var(--text-h2)/1.05 var(--font-display); letter-spacing: -.025em; color: var(--c-ink); padding-bottom: .06em; }
.sp__wh p { margin: 0; font: 600 13px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--c-navy); }
.sp__grid { display: grid; gap: 0; }
.sp__way { padding: 28px 0; border-bottom: var(--rule-hair); display: flex; flex-direction: column; gap: 12px; }
.sp__n { font: 600 13px/1 var(--font-body); color: var(--c-navy); letter-spacing: .06em; }
.sp__way h3 { margin: 0; font: 400 26px/1.1 var(--font-display); color: var(--c-ink); }
.sp__way > p { margin: 0; font: 400 16px/1.55 var(--font-body); color: var(--c-text-2); max-width: 40ch; }
.sp__addr { font-style: normal; font: 600 16px/1.5 var(--font-body); color: var(--c-ink); padding-left: 12px; border-left: var(--rule-accent); }
.sp__big { display: flex; align-items: baseline; gap: 10px; }
.sp__big b { font: 400 48px/1 var(--font-display); color: var(--c-navy); letter-spacing: -.02em; }
.sp__big span { font: 400 14px/1.3 var(--font-body); color: var(--c-muted); }
.sp__act { margin-top: auto !important; padding-top: 6px; }
.sp__legal, .sp__q { margin: 18px 0 0; font: 400 14px/1.5 var(--font-body); color: var(--c-text-2); }
.sp__legal a, .sp__q a { color: var(--c-navy); font-weight: 600; }
.sp__q { margin-top: 6px; }

.sp__does { margin-top: 64px; background: var(--c-sand); padding: 56px var(--gutter); display: flex; flex-direction: column; gap: 24px; }
.sp__lead { margin: 0; max-width: 60ch; font: 400 var(--text-lede)/1.45 var(--font-body); color: var(--c-text-2); }
.sp__tiles { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
.sp__ph { display: block; overflow: hidden; }
.sp__ph img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; transition: transform var(--m-slow) var(--e-out); }
.sp__tiles li:hover .sp__ph img { transform: scale(1.04); }
.sp__tile { display: block; color: inherit; text-decoration: none; border-radius: 2px; }
.sp__tile h3::after { content: '→'; display: inline-block; margin-left: .3em; transition: transform var(--m-fast, .15s) var(--e-out, ease-out); }
.sp__tile:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }
.sp__tile:hover h3::after { transform: translateX(4px); }
.sp__tile:focus-visible { outline: 3px solid var(--c-navy); outline-offset: 4px; }
.sp__tiles h3 { margin: 10px 0 0; font: 400 17px/1.2 var(--font-display); color: var(--c-ink); }
@media (min-width: 768px) { .sp__tiles h3 { font-size: 21px; margin-top: 12px; } }

.sp__other { padding: 64px var(--gutter) 80px; }
.sp__other ul { list-style: none; margin: 18px 0 0; padding: 0; border-top: var(--rule-heavy); }
.sp__other a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "b a" "s a"; gap: 2px 16px; align-items: center; padding: 18px 0; border-bottom: var(--rule-hair); color: var(--c-ink); text-decoration: none; }
.sp__other b { grid-area: b; font: 400 22px/1.2 var(--font-display); }
.sp__other a > span:not(.sp__arr) { grid-area: s; font: 400 15px/1.4 var(--font-body); color: var(--c-text-2); }
.sp__arr { grid-area: a; color: var(--c-navy); font-size: 20px; transition: transform var(--m-base) var(--e-out); }
.sp__other a:hover b { text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }
.sp__other a:hover .sp__arr { transform: translateX(4px); }

@media (min-width: 768px) {
  .sp__soon { grid-template-columns: auto 1fr auto; align-items: center; }
  .sp__soon a { grid-column: 3; }
  .sp__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp__other ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
}
@media (min-width: 1024px) {
  .sp__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp__way { padding: 32px 32px 32px 0; border-bottom: 0; border-right: var(--rule-hair); }
  .sp__way + .sp__way { padding-left: 32px; }
  .sp__way:last-child { border-right: 0; }
  .sp__way h3 { font-size: 30px; }
  .sp__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .sp__soon, .sp__online { margin-inline: var(--px); margin-top: 64px; }
  .sp__ways, .sp__other { padding-inline: var(--px); }
  .sp__does { padding: 96px var(--px); margin-top: 96px; }
  .sp__wh h2 { font-size: 56px; }
  .sp__does h2 { font-size: 64px; }
  .sp__other h2 { font-size: 40px; }
  .sp__other { padding-top: 96px; padding-bottom: 104px; }
}
@media (prefers-reduced-motion: reduce) { .sp__tiles li:hover .sp__ph img, .sp__other a:hover .sp__arr { transform: none; } }

/* ---- Listings: search, taxonomy archives, 404 ------------------------- */
/* A result with no photograph (pages, partners, people) had the 240px media column left empty and
   its text squeezed into what remained beside it. */
.story-row:not(:has(.story-row__media)) { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.ph__search { margin-top: 8px; max-width: 560px; }
.ph__search .wp-block-search__inside-wrapper { display: flex; gap: 8px; border: 0; padding: 0; }
.ph__search .wp-block-search__input {
  flex: 1; min-height: 48px; padding: 0 14px; border: 1px solid var(--c-cream); border-radius: var(--radius-btn);
  background: #fff; color: var(--c-ink); font: 400 16px/1.2 var(--font-body);
}
.ph__search .wp-block-search__button {
  margin: 0; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--radius-btn);
  background: var(--c-yellow); color: var(--c-ink); font: 600 16px/1.2 var(--font-body); cursor: pointer;
}
.ph__search .wp-block-search__button:hover { background: var(--c-sunflower); }
.nf { padding-top: 56px; }

/* ---- Profiles: people and partners ----------------------------------- */
.pfm { background: var(--c-cream); }
.ph__media--portrait img { aspect-ratio: 1 / 1; max-width: 360px; margin-left: auto; }
.ph__logo { background: #fff; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 32px; }
.ph__logo img { max-width: 100%; max-height: 120px; width: auto; height: auto; aspect-ratio: auto; object-fit: contain; }
.ph__mono { font: 400 96px/1 var(--font-display); color: var(--c-navy); }
.ph__acts { margin: 8px 0 0; }
.pf { padding: 48px var(--gutter) 72px; display: flex; flex-direction: column; gap: 20px; }
.pf__bio { font: 400 var(--text-body)/1.6 var(--font-body); color: var(--c-text-2); }
.pf__note { margin: 0; max-width: 60ch; font: 400 15px/1.5 var(--font-body); color: var(--c-muted); }
.pf__back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 16px/1.2 var(--font-body); color: var(--c-navy) !important; text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.pf p { margin: 0; }
@media (max-width: 1023px) { .ph__media--portrait img { max-width: none; } .ph__logo { margin-inline: var(--gutter); } }
@media (min-width: 1280px) { .pf { padding-inline: var(--px); } }

/* ---- Reading pages: headings inside page content ---------------------- */
/* Page content's own section headings took the display H2 (up to 56px) — set for page sections —
   and dwarfed the 18px text they head. Inside a reading column they step down. */
.wp-block-post-content h2 { font: 400 clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem)/1.15 var(--font-display); letter-spacing: -.015em; margin: 1.6em 0 .5em; color: var(--c-ink); }
.wp-block-post-content h3 { font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.2 var(--font-display); margin: 1.4em 0 .4em; color: var(--c-ink); }
.wp-block-post-content > :first-child, .wp-block-post-content > :first-child > :first-child { margin-top: 0; }
/* Several action links in one paragraph: a wrapping row, so the second never starts indented. */
.wp-block-post-content p:has(> .link-action + .link-action) { display: flex; flex-wrap: wrap; gap: 0 28px; }
.wp-block-post-content p:has(> .link-action + .link-action) > .link-action { margin: 0 !important; }

/* ---- Classes index (class-grid) --------------------------------------- */
.cg__h { margin: 56px 0 18px; padding-bottom: 10px; border-bottom: var(--rule-heavy); font: 400 clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem)/1.1 var(--font-display); color: var(--c-ink); }
.card--class { display: flex; flex-direction: column; background: #fff; border: var(--rule-hair); border-radius: var(--radius-chip); overflow: hidden; }
.card--class .card__media { display: block; overflow: hidden; }
.card--class .card__media img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; display: block; transition: transform var(--m-slow) var(--e-out); }
.card--class:hover .card__media img { transform: scale(1.04); }
.card--class .card__body { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 18px 20px 22px; }
.card--class .card__title { margin: 0; font: 400 22px/1.2 var(--font-display); }
.card--class .card__body > p { margin: 0; color: var(--c-text-2); font-size: 15px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .card--class:hover .card__media img { transform: none; } }
/* Fixed columns: an auto-fit grid stretched a lone card (one class Enrolling, one Planned) across the
   whole width, and its 3:2 photograph with it. */
.cg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 768px) { .cg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cg { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

/* The first band under a navy page hero: its own top padding (72px) sat on top of the hero's bottom
   padding and opened an empty gap, worst on a phone. */
.ph + .band { padding-top: 40px; margin-top: 0 !important; }   /* + WordPress's 24px block gap */
/* The content's own top margin was there to clear the title above it, which now lives in the hero. */
.ph + .band .wrap > .measure:first-child, .ph + .band .wrap > div > .measure:first-child { margin-top: 0 !important; }
@media (min-width: 1024px) { .ph + .band { padding-top: 64px; } }
.sx { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 768px) { .sx--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sx__card { padding: 24px; background: #fff; border: var(--rule-hair); border-radius: var(--radius-chip); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sx__card h2 { margin: 0; font: 400 24px/1.2 var(--font-display); color: var(--c-ink); }
.sx__card p { margin: 0; color: var(--c-text-2); font-size: 15px; line-height: 1.55; }
/* In a week cell the Ukrainian "Очікуємо фінансування" is wider than the column; let the pill wrap
   rather than clip. */
.wk__slots .pill { white-space: normal; height: auto; min-height: 26px; padding-block: 3px; line-height: 1.2; max-width: 100%; box-sizing: border-box; }

/* =========================================================================
 * Space / room template (3b-v2 artboards space-library-*, space-hall-*)
 * ====================================================================== */
/* Film stage panel (library). */
.space-stage__panel { padding-top: calc(var(--sh-h) + 32px); padding-bottom: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.space-stage__panel .badge { margin: 0 !important; background: var(--c-cream); color: var(--c-ink); border-radius: 999px; padding: 4px 10px; font: 600 12px/1.2 var(--font-body); letter-spacing: .02em; text-transform: none; }
.space-stage__panel h1 { margin: 0 !important; font: 400 clamp(2.625rem, 1.2rem + 4vw, 5.25rem)/1 var(--font-display); letter-spacing: -.03em; padding-bottom: .08em; }
.space-stage__cafe { margin: 0; display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1.3 var(--font-body); color: var(--c-yellow); }
.space-stage__cafe::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 9h12v5a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5zM16 10h2a2 2 0 0 1 0 4h-2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 9h12v5a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5zM16 10h2a2 2 0 0 1 0 4h-2'/%3E%3C/svg%3E") center/contain no-repeat; }
.space-stage__intro { margin: 0; max-width: 36ch; font: 400 18px/1.5 var(--font-body); color: var(--c-on-navy-2); }
.space-stage__acts { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.space-stage__link { color: var(--c-yellow) !important; font: 600 15px/1.3 var(--font-body); text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 767px) { .space-stage__acts .b3 { width: 100%; } }

/* Body grids. */
.spb { padding: 40px var(--gutter) 64px; display: grid; gap: 32px; }
.spb__content > :first-child { margin-top: 0; }
.spb__content p { font: 400 var(--text-body)/1.6 var(--font-body); color: var(--c-text-2); max-width: 62ch; }
.spb__content > p:first-child { font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.35 var(--font-display); color: var(--c-ink); }
.spb__content > p:last-child em, .spb__content > p:last-child:has(em) { font-family: var(--font-display); font-style: italic; color: var(--c-navy); }
.spb__lead { margin: 0 0 12px; font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.35 var(--font-display); color: var(--c-ink); max-width: 40ch; }
.spb--lib { grid-template-areas: "nav" "text" "aside" "photos"; }
.spb--lib .spb__nav { grid-area: nav; } .spb--lib .spb__text { grid-area: text; } .spb--lib .spb__aside { grid-area: aside; } .spb--lib .spb__photos { grid-area: photos; }
@media (min-width: 1024px) {
  .spb { padding: 64px var(--px) 96px; column-gap: 48px; row-gap: 48px; }
  .spb--lib { grid-template-columns: 220px minmax(0, 1fr) 300px; grid-template-areas: "nav text aside" "nav photos photos"; align-items: start; }
  .spb--lib .spb__nav { position: sticky; top: calc(var(--sh-h) + 24px); align-self: start; }
  .spb--room { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; column-gap: 72px; }
  .spb--room .spb__aside { position: sticky; top: calc(var(--sh-h) + 24px); }
}

/* Grouped house nav — a sticky list on desktop, one swipeable chip row on a phone. */
.hn { display: flex; flex-direction: column; }
.hn__title { margin: 0 0 12px; font: 600 12px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.hn__over { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-top: var(--rule-heavy); border-bottom: var(--rule-hair); font: 600 15px/1.3 var(--font-body); color: var(--c-ink) !important; text-decoration: none; }
.hn__group { margin: 18px 0 0; padding: 0 14px 6px; border-bottom: var(--rule-heavy); font: 600 11px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-navy); }
.hn__item { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 14px; border-bottom: var(--rule-hair); font: 400 15px/1.3 var(--font-body); color: var(--c-text-2) !important; text-decoration: none; }
.hn__item:hover { color: var(--c-ink) !important; background: rgba(236, 230, 219, .5); }
.hn__item.is-current { background: var(--c-sand); color: var(--c-ink) !important; font-weight: 600; }
.hn__item.is-current::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-navy); }
@media (max-width: 1023px) {
  .spb__nav { margin: -8px calc(-1 * var(--gutter)) 0; }
  .hn { flex-direction: row; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px var(--gutter) 12px; border-bottom: var(--rule-hair); }
  .hn::-webkit-scrollbar { display: none; }
  .hn__title { display: none; }
  .hn__over, .hn__item { flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--c-line); border-radius: 999px; white-space: nowrap; font-size: 14px; }
  .hn__over { font-weight: 600; }
  .hn__group { flex: none; margin: 0 0 0 8px; padding: 0; border: 0; white-space: nowrap; font-size: 10px; }
  .hn__item.is-current { border-color: var(--c-ink); }
  .hn__item.is-current::after { display: none; }
}

/* Hours card. */
.hc { background: #fff; border: var(--rule-hair); border-top: 3px solid var(--c-navy); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.hc h2 { margin: 0; font: 400 26px/1.15 var(--font-display); color: var(--c-ink); }
.hc__days { margin: 0; padding-bottom: 10px; border-bottom: var(--rule-heavy); font: 600 12px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-2); }
.hc__rows { margin: 0; }
.hc__row { display: flex; justify-content: space-between; align-items: center; min-height: 48px; border-bottom: var(--rule-hair); }
.hc__row dt { font: 600 15px/1.3 var(--font-body); color: var(--c-ink); }
.hc__row--closed dt { font-weight: 400; color: var(--c-text-2); }
.hc__row dd { margin: 0; font: 400 20px/1 var(--font-display); color: var(--c-ink); }
.hc__sun { margin: 0; font: 600 14px/1.4 var(--font-body); color: var(--c-ink); }
.hc__note { margin: 0; font: 400 14px/1.5 var(--font-body); color: var(--c-text-2); }

/* Photo grid: one large, six small; the rest ride along hidden for the viewer. */
.sg { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding-top: 24px; border-top: var(--rule-heavy); }
.spb--room .sg { margin-top: 40px; }
.sg h2 { margin: 0; font: 400 clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem)/1.1 var(--font-display); letter-spacing: -.02em; color: var(--c-ink); }
.sg__grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sg__tile { position: relative; display: block; overflow: hidden; background: var(--c-sand); aspect-ratio: 1; cursor: zoom-in; }
.sg__tile--lead { grid-column: span 2; aspect-ratio: 3 / 2; }
.sg__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--m-slow) var(--e-out); }
.sg__tile:hover img { transform: scale(1.04); }
@media (min-width: 768px) {
  .sg__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; }
  .sg__tile { aspect-ratio: auto; min-height: 140px; }
  .sg__tile--lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* Book + café band (library). */
.lb2 { background: var(--c-sand); padding: 56px var(--gutter); display: grid; gap: 40px; scroll-margin-top: calc(var(--sh-h) + 8px); }
.lb2__col { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.lb2 h2 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font: 400 clamp(2rem, 1.5rem + 1.6vw, 2.75rem)/1.1 var(--font-display); color: var(--c-ink); }
.lb2 p { margin: 0; max-width: 46ch; font: 400 16px/1.55 var(--font-body); color: var(--c-text-2); }
.su--cafe { width: 100%; max-width: 520px; display: grid; grid-template-columns: 1fr; gap: 8px; margin: 4px 0 0; }
.su--cafe .su__label { margin: 0; }
.su--cafe .su__input { height: 52px; border: 1px solid var(--c-ink); border-radius: var(--radius-btn); padding: 0 14px; font-size: 16px; background: #fff; }
.su--cafe .su__btn { height: 52px; padding: 0 22px; border: 0; border-radius: var(--radius-btn); background: var(--c-yellow); color: var(--c-ink); font: 600 16px/1 var(--font-body); white-space: nowrap; }
.su--cafe .su__btn:hover { background: var(--c-sunflower); }
.su__note { font-size: 13px !important; color: var(--c-muted) !important; }
@media (min-width: 768px) { .su--cafe { grid-template-columns: 1fr auto; } .su--cafe .su__label, .su--cafe .su__note { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .lb2 { padding: 96px var(--px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .lb2__cafe { padding-left: 72px; border-left: var(--rule-hair); }
}

/* Other spaces. */
.os { padding: 56px var(--gutter) 72px; }
.os__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding-top: 18px; border-top: var(--rule-heavy); margin-bottom: 24px; }
.os__head h2 { margin: 0; font: 400 clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem)/1.1 var(--font-display); color: var(--c-ink); }
.os__all { font: 600 15px/1.2 var(--font-body); color: var(--c-navy) !important; text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; }
.os__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.os__card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; color: var(--c-ink) !important; text-decoration: none; }
.os__ph { display: block; width: 100%; overflow: hidden; background: var(--c-sand); }
.os__ph img, .os__ph .thumb-empty { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; display: block; }
.os__name { font: 400 24px/1.2 var(--font-display); }
@media (min-width: 768px) { .os__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .os { padding: 96px var(--px) 104px; } }

/* Room status card + help band. */
.sc { background: #fff; border: var(--rule-hair); border-top: 3px solid var(--c-navy); padding: 20px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.sc__btn { width: 100%; }
.sc__help { font: 600 15px/1.3 var(--font-body); color: var(--c-navy) !important; text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; }
.sc__facts { width: 100%; margin: 0; border-top: var(--rule-hair); }
.sc__facts div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 12px 0; border-bottom: var(--rule-hair); }
.sc__facts dt { font: 600 13px/1.4 var(--font-body); color: var(--c-text-2); }
.sc__facts dd { margin: 0; font: 400 15px/1.4 var(--font-body); color: var(--c-ink); }
.hb { background: var(--c-navy); color: var(--c-cream); padding: 48px var(--gutter); display: flex; flex-direction: column; gap: 20px; }
.hb h2 { margin: 0 0 6px; font: 400 clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem)/1.1 var(--font-display); color: var(--c-cream); }
.hb p { margin: 0; font: 400 16px/1.5 var(--font-body); color: var(--c-on-navy-2); }
.hb__acts { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) { .hb { padding: 72px var(--px); flex-direction: row; align-items: center; justify-content: space-between; } }
/* Grid children must be allowed to shrink: the phone chip row is wider than the screen by design
   (it scrolls), and without min-width:0 it stretched the whole page sideways. */
.spb { grid-template-columns: minmax(0, 1fr); }
.spb > * { min-width: 0; }
@media (min-width: 1024px) { .spb--room { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } .spb--lib { grid-template-columns: 220px minmax(0, 1fr) 300px; } }
/* Room pages lead with the excerpt; their content is body text throughout. */
.spb--room .spb__content > p:first-child, .spb--room .spb__content p { font: 400 var(--text-body)/1.6 var(--font-body); color: var(--c-text-2); }
/* 3b-v2 space-library-mobile: the words first (they start under the fixed header), the film below. */
@media (max-width: 899px) {
  .space-stage__inner { flex-direction: column !important; }
  .space-stage__panel { padding: calc(var(--sh-h) + 24px) var(--gutter) 28px; }
}

/* =========================================================================
 * Class detail (3b-v2 artboards class-*)
 * ====================================================================== */
.ccard { background: #fff; border: var(--rule-hair); border-top: 3px solid var(--c-navy); padding: 20px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ccard__note { margin: 0; font: 400 14px/1.5 var(--font-body); color: var(--c-text-2); }
.ccard__rows { width: 100%; margin: 0; border-top: var(--rule-hair); }
.ccard__rows div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-bottom: var(--rule-hair); }
.ccard__rows dt { font: 600 13px/1.4 var(--font-body); color: var(--c-text-2); }
.ccard__rows dd { margin: 0; font: 400 15px/1.4 var(--font-body); color: var(--c-ink); }
.ccard__how b { display: block; font: 600 14px/1.3 var(--font-body); color: var(--c-ink); margin-bottom: 4px; }
.ccard__how p { margin: 0; font: 400 14px/1.5 var(--font-body); color: var(--c-text-2); }
.ccard__cta { width: 100%; }
.ccard__links { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ccard__links a, .ccard__fund { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 14px/1.2 var(--font-body); color: var(--c-navy) !important; text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.single-uac_class .event-layout--aside-right aside > .card { all: unset; }
.co { padding: 56px var(--gutter) 72px; }
.co__list { grid-template-columns: minmax(0, 1fr) !important; }
@media (min-width: 768px) { .co__list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (min-width: 1024px) { .co { padding: 72px var(--px) 96px; } }
.co .co__card { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "t n a" "t w a" "t s a"; height: auto; }

/* =========================================================================
 * Event detail (3b-v2 artboards event-*)
 * ====================================================================== */
.db { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 48px; height: 56px; background: var(--c-navy); color: var(--c-cream); line-height: 1; }
.db__w { font: 600 9px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.db__d { font: 400 24px/1 var(--font-display); margin: 2px 0; }
.db__m { font: 600 10px/1 var(--font-body); color: var(--c-yellow); }
.db--lg { width: 56px; height: 64px; } .db--lg .db__d { font-size: 28px; }
.db.db--xl { width: 72px; height: 84px; } .db--xl .db__w { font-size: 11px; } .db--xl .db__d { font-size: 40px; margin: 4px 0; } .db--xl .db__m { font-size: 12px; }
.ecard { background: #fff !important; border: var(--rule-hair) !important; border-top: 3px solid var(--c-navy) !important; border-radius: 0 !important; display: flex; flex-direction: column; gap: 14px; }
.ecard__head { display: flex; gap: 14px; align-items: center; }
.ecard__head > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ecard__time { margin: 0; font: 400 14px/1.3 var(--font-body); color: var(--c-text-2); }
.ecard__past { margin: 0; padding: 10px 12px; background: var(--c-sand); border-top: 2px solid var(--c-yellow); font: 400 14px/1.45 var(--font-body); color: var(--c-ink); }
.ecard__rows { border-top: var(--rule-hair); padding-top: 12px; font-size: 15px !important; }
.ecard__map { color: inherit; text-decoration: underline; text-decoration-color: rgba(15, 58, 85, .35); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ecard__map:hover, .ecard__map:focus-visible { color: var(--link); text-decoration-color: currentColor; }
.ecard__map-icon { font-weight: 400; color: var(--ink-soft); }
.ecard .btn { width: 100%; display: flex; justify-content: center; min-height: 48px; border-radius: var(--radius-btn); font: 600 15px/1.2 var(--font-body); }
.ecard .btn--primary { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-cream); }
.ecard .btn--secondary { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-cream); }
.ecard .rule { display: none; }
.eb { margin-top: 48px; padding-top: 18px; border-top: var(--rule-heavy); }
.eb h2 { margin: 0 0 14px; font: 400 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--font-display); color: var(--c-ink); }
.eb__where { margin: 0; display: flex; gap: 10px; align-items: flex-start; font: 400 14px/1.5 var(--font-body); color: var(--c-text-2); }
.eb__where svg { flex: none; margin-top: 2px; color: var(--c-navy); }
.eb__where b { color: var(--c-ink); font-weight: 600; }
.eb__link { margin-left: 28px; display: inline-flex; align-items: center; min-height: 44px; font: 600 14px/1.2 var(--font-body); color: var(--c-navy) !important; text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.single-uac_event .sg { margin-top: 48px; }
.em { list-style: none; margin: 0; padding: 0; }
.em li + li { border-top: var(--rule-hair); }
.em__row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 76px; gap: 14px; align-items: center; padding: 14px 0; color: var(--c-ink) !important; text-decoration: none; }
.em__text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.em__t { font: 400 19px/1.2 var(--font-display); }
.em__m { font: 400 13px/1.3 var(--font-body); color: var(--c-text-2); }
.em__ph img, .em__ph .thumb-empty { width: 76px; height: 56px; object-fit: cover; display: block; }
.em__row:hover .em__t { text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }
/* Phones and tablets: the event's card (date, booking, cost) comes first, not after the text and photos. */
@media (max-width: 899px) { .single-uac_event .event-layout > aside { order: -1; } }
@media (min-width: 1024px) { .single-uac_event .event-layout > aside { position: sticky; top: calc(var(--sh-h) + 24px); align-self: start; } }

/* =========================================================================
 * Our home (3b-v2 artboard house-*)
 * ====================================================================== */
.hsm { background: var(--c-cream); }
.ph--split .ph__side { display: flex; flex-direction: column; gap: 14px; color: var(--c-on-navy-2); }
.ph--split .ph__side p { margin: 0; font: 400 17px/1.55 var(--font-body); color: var(--c-on-navy-2); max-width: 44ch; }
.ph--split .ph__side .wp-block-post-content > * { margin: 0; color: var(--c-on-navy-2); font-size: 17px; }
.ph__addr { display: flex; gap: 8px; align-items: center; }
.ph__addr a { color: var(--c-cream); text-decoration-color: var(--c-yellow); text-underline-offset: 4px; font-size: 14px; }
@media (min-width: 1024px) {
  .ph--split .ph__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
  .ph--split .ph__side { padding-top: 40px; }
  .ph--house .ph__title { font-size: clamp(3.5rem, 2rem + 3.6vw, 5.5rem); }
}
.hs__photo figure { margin: 0; }
.hs__photo img { width: 100%; height: clamp(240px, 32vw, 520px); object-fit: cover; display: block; }
.hb2__h { margin: 0 0 6px; font: 400 clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem)/1.1 var(--font-display); letter-spacing: -.02em; color: var(--c-ink); }
.hb2__sub { margin: 0 0 18px; font: 400 15px/1.5 var(--font-body); color: var(--c-text-2); }
.hb2__cards { grid-template-columns: minmax(0, 1fr) !important; }
@media (min-width: 768px) { .hb2__cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.hb2__spaces { margin-top: 56px; }
.hsl { list-style: none; margin: 14px 0 0; padding: 0; border-top: var(--rule-heavy); }
.hsl a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; min-height: 56px; border-bottom: var(--rule-hair); color: var(--c-ink) !important; text-decoration: none; }
.hsl__name { font: 400 20px/1.2 var(--font-display); }
.hsl a:hover .hsl__name { text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }
.hsl__arr { color: var(--c-navy); }
.hb--rule h2::before { content: ""; display: block; width: 64px; height: 2px; background: var(--c-yellow); margin-bottom: 20px; }
.twl { display: grid; gap: 6px; padding: 40px var(--gutter); background: var(--c-sand); color: var(--c-ink) !important; text-decoration: none; }
.twl__eb { font: 600 12px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-navy); }
.twl__t { font: 400 clamp(1.75rem, 1.2rem + 2vw, 3rem)/1.1 var(--font-display); }
.twl__s { font: 400 14px/1.5 var(--font-body); color: var(--c-text-2); }
.twl:hover .twl__t { text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 6px; }
@media (min-width: 1024px) { .twl { padding: 56px var(--px); grid-template-columns: 1fr auto; align-items: end; } .twl__eb { grid-column: 1 / -1; } }
/* Our home: horizontal class rows (the What's On 5-up card shape is for that page only). */
.hb2__cards .cc__card, .co .co__card { grid-template-columns: 56px minmax(0, 1fr) auto !important; grid-template-areas: "t n a" "t w a" "t s a" !important; height: auto !important; padding: 14px !important; align-content: center !important; }
.hb2__cards .cc__thumb { margin: 0 !important; }
@media (min-width: 1024px) {
  .ph--split .ph__in { padding-top: calc(var(--sh-h) + 56px); padding-bottom: 64px; }
  .ph--house .ph__title { font-size: clamp(4rem, 2rem + 4vw, 6.5rem); line-height: .95; max-width: 7ch; }
  .ph--split .ph__side { padding-top: 64px; }
}

/* =========================================================================
 * About us (3b-v2 artboard about-*)
 * ====================================================================== */
.ph__fig--tall img { aspect-ratio: 4 / 5; max-height: 560px; }
.ab__obj { display: grid; gap: 20px; margin-top: 24px; }
.ab__obj figure { margin: 0; }
.ab__obj figure::before { content: ""; display: block; width: 64px; height: 2px; background: var(--c-yellow); margin-bottom: 16px; }
.ab__obj blockquote { margin: 0; font: italic 400 clamp(1.125rem, 1rem + .4vw, 1.3125rem)/1.6 var(--font-display); color: var(--c-ink); max-width: 68ch; }
.ab__obj figcaption { margin-top: 12px; font: 400 13px/1.4 var(--font-body); color: var(--c-muted); }
.ab__obj figcaption a { color: var(--c-navy); font-weight: 600; }
.ab__reg { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ab__reg span { font: 600 11px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.ab__reg b { font: 400 28px/1.1 var(--font-display); color: var(--c-navy); }
.ab__reg small { font: 400 13px/1.4 var(--font-body); color: var(--c-text-2); max-width: 22ch; }
@media (min-width: 1024px) { .ab__obj { grid-template-columns: minmax(0, 1fr) 160px; gap: 32px; } }
.ab__org, .ab__rec { margin-top: 64px; }
.ab__br { list-style: none; margin: 20px 0 0; padding: 0; border-top: var(--rule-heavy); }
.ab__br li { display: grid; gap: 16px; padding: 20px 0; border-bottom: var(--rule-hair); }
.ab__ph img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; display: block; }
.ab__n { font: 600 12px/1 var(--font-body); color: var(--c-navy); }
.ab__br h3 { margin: 6px 0; font: 400 26px/1.15 var(--font-display); color: var(--c-ink); }
.ab__br p { margin: 0; font: 400 15px/1.55 var(--font-body); color: var(--c-text-2); max-width: 56ch; }
.ab__link { margin-left: 0 !important; }
@media (min-width: 768px) { .ab__br li { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; } }
.ab__people { display: grid; gap: 20px; margin-top: 32px; }
.ab__lead { margin: 0; font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.35 var(--font-display); color: var(--c-ink); }
.ab__stat { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 18px; background: var(--c-sand); border-top: 3px solid var(--c-yellow); transition: background var(--m-fast, .15s), transform var(--m-fast, .15s); }
.ab__stat b { font: 400 64px/.95 var(--font-display); color: var(--c-navy); }
.ab__stat > span { font: 600 13px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-2); }
.ab__stat .eb__link { margin: auto 0 0 !important; padding-top: 16px; align-self: flex-start; display: block; min-height: 0; line-height: 1.45; }
.ab__stat .eb__link i { font-style: normal; display: inline-block; margin-left: 4px; transition: transform var(--m-fast, .15s); }
.ab__stat:hover .eb__link i { transform: translateX(3px); }
.ab__stat .eb__link::after { content: ""; position: absolute; inset: 0; }
.ab__stat:hover { background: var(--c-cream); box-shadow: inset 0 0 0 1px var(--c-line-soft); }
.ab__stat:focus-within { outline: 3px solid var(--c-navy); outline-offset: 2px; }
.ab__stat .eb__link:focus-visible { outline: none; }
@media (min-width: 768px) { .ab__people { grid-template-columns: minmax(0, 1.4fr) 1fr 1fr; gap: 24px 32px; align-items: stretch; } .ab__lead { align-self: center; } }
@media (min-width: 768px) and (max-width: 1023px) { .ab__people { grid-template-columns: 1fr 1fr; } .ab__lead { grid-column: 1 / -1; } }
@media (max-width: 767px) { .ab__people { grid-template-columns: 1fr 1fr; gap: 16px; } .ab__lead { grid-column: 1 / -1; } .ab__stat { padding: 16px; } .ab__stat b { font-size: 48px; } }
.ab__eb { margin: 0 0 6px; font: 600 12px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-navy); }
.ab__tbl { margin: 16px 0 0; border-top: var(--rule-heavy); }
.ab__tbl div { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; padding: 14px 0; border-bottom: var(--rule-hair); }
.ab__tbl dt { font: 600 13px/1.4 var(--font-body); color: var(--c-text-2); }
.ab__tbl dd { margin: 0; font: 600 15px/1.4 var(--font-body); color: var(--c-ink); }
.ab__foot { margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font: 400 14px/1.4 var(--font-body); color: var(--c-text-2); }
.ab__foot span a { color: var(--c-navy); font-weight: 600; }

/* =========================================================================
 * Branch landings (3b-v2 artboards cd-*, se-*)
 * ====================================================================== */
.ph__intro--content p { margin: 0; color: var(--c-on-navy-2); }
.br2 { padding: 40px var(--gutter) 64px; display: flex; flex-direction: column; gap: 48px; }
.br2__text p { font: 400 var(--text-body)/1.6 var(--font-body); color: var(--c-text-2); }
.br2__sec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.br2__sec a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 18px 20px; background: #fff; border: var(--rule-hair); color: var(--c-ink) !important; text-decoration: none; }
.br2__sec b { font: 400 21px/1.2 var(--font-display); }
.br2__sec a > span { grid-column: 1; font: 400 14px/1.4 var(--font-body); color: var(--c-text-2); }
.br2__sec i { grid-row: 1; grid-column: 2; font-style: normal; color: var(--c-navy); }
.br2__sec a:hover b { text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }
@media (min-width: 768px) { .br2__sec ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.br2__list { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair); }
.br2__list a { display: grid; gap: 8px; padding: 16px 0; border-bottom: var(--rule-hair); color: var(--c-ink) !important; text-decoration: none; }
.br2__t { display: flex; flex-direction: column; gap: 4px; }
.br2__t b { font: 400 21px/1.2 var(--font-display); }
.br2__t > span { font: 400 14px/1.45 var(--font-body); color: var(--c-text-2); }
.br2__m { display: flex; align-items: center; gap: 12px; }
.br2__m small { font: 400 13px/1.3 var(--font-body); color: var(--c-text-2); }
.br2__m i { font-style: normal; color: var(--c-navy); margin-left: auto; }
.br2__list a:hover b { text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }
@media (min-width: 768px) { .br2__list a { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
@media (min-width: 1024px) { .br2 { padding: 64px var(--px) 96px; gap: 64px; } }
.hb p:not(.hb__acts) a { color: var(--c-cream); text-decoration-color: var(--c-yellow); }
.ph__addr a { display: inline-flex; align-items: center; min-height: 44px; }
/* About: two columns (nav + text) — no aside column. */
@media (min-width: 1024px) { .spb--lib.ab, .spb--lib.hb2 { grid-template-columns: 220px minmax(0, 1fr) !important; grid-template-areas: "nav text" !important; } .ab .spb__text { max-width: 860px; } }
.br2__text h2 { font: 400 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--font-display); margin: 1.4em 0 .4em; padding-top: 16px; border-top: var(--rule-heavy); }

/* =========================================================================
 * Simple info template (3b-v2 books-*, volunteer-*, … artboards)
 * ====================================================================== */
.ph--split .ph__side .ph__intro { margin: 0; font-size: 17px; max-width: 44ch; color: var(--c-on-navy-2); }
.si { padding: 40px var(--gutter) 64px; display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
.si__text > :first-child { margin-top: 0; }
.si__text h2 { font: 400 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--font-display); margin: 1.4em 0 .5em; color: var(--c-ink); }
.si__text h2:first-child { margin-top: 0; }
.si__text p { font: 400 var(--text-body)/1.6 var(--font-body); color: var(--c-text-2); max-width: 64ch; }
.si__text ul:not([class]) { list-style: none; padding: 0; margin: 0 0 1em; max-width: 64ch; border-top: var(--rule-hair); }
.si__text ul:not([class]) li { position: relative; padding: 10px 0 10px 22px; border-bottom: var(--rule-hair); font: 400 16px/1.5 var(--font-body); color: var(--c-ink); }
.si__text ul:not([class]) li::before { content: "—"; position: absolute; left: 0; color: var(--c-yellow); }
.si__panel { background: #fff; border: var(--rule-hair); border-top: 3px solid var(--c-navy); padding: 20px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; align-self: start; }
.si__panel h2 { margin: 0; font: 400 24px/1.2 var(--font-display); color: var(--c-ink); }
.si__ph img { width: 100%; height: auto; display: block; }
.si__panel .sc__facts dd a { color: var(--c-navy); font-weight: 600; }
@media (min-width: 1024px) { .si { padding: 64px var(--px) 96px; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 72px; } .si__panel { position: sticky; top: calc(var(--sh-h) + 24px); } }
/* Contact + legal. */
.ct { margin: 0; border-top: var(--rule-hair); max-width: 640px; }
.ct div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; border-bottom: var(--rule-hair); }
.ct dt a { font: 600 16px/1.3 var(--font-body); color: var(--c-navy); text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }
.ct dd { margin: 0; font: 400 14px/1.4 var(--font-body); color: var(--c-text-2); }
@media (min-width: 768px) { .ct div { grid-template-columns: 220px 1fr; gap: 16px; align-items: baseline; } }
.ct__fb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px !important; font-size: 14px !important; }
.si__panel > p:has(img), .si__panel img { width: 100%; height: auto; display: block; margin: 0; }
.si--legal .si__side .card, .si--legal .si__side > * { margin: 0; }
.si__text > p:first-child:not([class]) { font: 400 clamp(1.125rem, 1rem + .4vw, 1.375rem)/1.5 var(--font-body); color: var(--c-ink); }

/* =========================================================================
 * News & stories (3b-v2 artboards news-*, story-*)
 * ====================================================================== */
.nw { padding: 40px var(--gutter) 72px; display: flex; flex-direction: column; gap: 56px; }
.nw__lead { display: grid; gap: 24px; align-items: center; }
.nw__ph img, .nw__ph .thumb-empty { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; }
.nw__eb { margin: 0 0 8px; font: 600 12px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-navy); }
.nw__lead h2 { margin: 0 0 12px; font: 400 clamp(2rem, 1.4rem + 2vw, 3rem)/1.05 var(--font-display); letter-spacing: -.02em; }
.nw__lead h2 a { color: var(--c-ink); text-decoration: none; }
.nw__x { margin: 0 0 12px; font: 400 16px/1.55 var(--font-body); color: var(--c-text-2); }
.nw__h { padding-top: 18px; border-top: var(--rule-heavy); margin-bottom: 20px; }
@media (min-width: 1024px) { .nw { padding: 64px var(--px) 96px; } .nw__lead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }
.stg { display: grid; gap: 28px 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .stg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .stg { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stc { display: flex; flex-direction: column; gap: 6px; color: var(--c-ink) !important; text-decoration: none; }
.stc__ph { display: block; overflow: hidden; margin-bottom: 6px; }
.stc__ph img, .stc__ph .thumb-empty { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; display: block; }
.stc__d { font: 400 12px/1.3 var(--font-body); color: var(--c-muted); }
.stc__t { font: 400 22px/1.2 var(--font-display); }
.stc__x { font: 400 14px/1.5 var(--font-body); color: var(--c-text-2); overflow-wrap: anywhere; }
.stc:hover .stc__t { text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }
.st2__ph { padding: 0 var(--gutter); } .st2__ph figure { margin: 0; } .st2__ph img { width: 100%; height: auto; max-height: 560px; object-fit: cover; display: block; }
.ph--story .ph__in { padding-bottom: 40px; }
.st2 { padding: 40px var(--gutter) 72px; display: grid; gap: 24px; }
.st2__text { max-width: 680px; }
.st2__text > :first-child { margin-top: 0; }
.st2__text p { font: 400 var(--text-body)/1.65 var(--font-body); color: var(--c-text-2); }
.st2__text > p:first-of-type { font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.4 var(--font-display); color: var(--c-ink); }
.st2__text figure { margin: 1.5em 0; } .st2__text img { max-width: 100%; height: auto; }
.st2__text blockquote { margin: 1.5em 0; padding-left: 16px; border-left: 2px solid var(--c-yellow); font: italic 400 22px/1.4 var(--font-display); color: var(--c-ink); }
.sts { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.sts a { display: inline-flex; align-items: center; min-height: 44px; font: 600 14px/1.2 var(--font-body); color: var(--c-navy) !important; text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sts .hn__title { flex-basis: 100%; margin: 0; }
@media (min-width: 1024px) { .st2__ph { padding: 0 var(--px); } .st2 { padding: 48px var(--px) 96px; grid-template-columns: 220px minmax(0, 680px); column-gap: 64px; } .sts { flex-direction: column; align-items: flex-start; position: sticky; top: calc(var(--sh-h) + 24px); } }
.stm { background: var(--c-sand); padding: 56px var(--gutter) 72px; }
@media (min-width: 1024px) { .stm { padding: 72px var(--px) 96px; } }

/* Gallery albums + classes index (3b-v2 gallery-*, classes-*). */
.si--wide { grid-template-columns: minmax(0, 1fr) !important; }
/* Gallery albums: white cards with a navy rule (like the site's other cards) — photo, kind · date,
   title, a peek at the next three photos and "Open album". The whole card is one button. */
.ga__f { margin: 0 0 28px; }
.ga { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .ga { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ga { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.ga__a { all: unset; position: relative; box-sizing: border-box; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line-soft); border-top: 3px solid var(--c-navy); cursor: pointer; }
.ga__a[hidden] { display: none !important; }
.ga__a:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 3px; box-shadow: 0 0 0 5px var(--c-ink); }
.ga__ph { position: relative; display: block; overflow: hidden; }
.ga__ph img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; }
.ga__n { position: absolute; right: 10px; bottom: 10px; padding: 4px 9px; background: var(--c-navy); color: var(--c-cream); font: 600 12px/1.2 var(--font-body); }
.ga__b { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; }
.ga__d { font: 600 12px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.ga__t { font: 400 22px/1.25 var(--font-display); color: var(--c-ink); }
.ga__ft { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.ga__peek { display: flex; gap: 4px; }
.ga__peek img, .ga__more { width: 40px; height: 40px; object-fit: cover; display: block; }
.ga__more { display: grid; place-items: center; background: var(--c-sand); color: var(--c-ink); font: 600 12px/1 var(--font-body); }
.ga__go { margin-left: auto; padding-bottom: 2px; border-bottom: 2px solid var(--c-yellow); font: 600 15px/1.2 var(--font-body); color: var(--c-navy); white-space: nowrap; }
.ga__a:hover .ga__go [data-arr] { transform: translateX(4px); }
.ci { padding: 40px var(--gutter) 72px; }
.ci__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .ci__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ci { padding: 64px var(--px) 96px; } .ci__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ci__c { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--c-ink) !important; text-decoration: none; }
.ci__ph { display: block; width: 100%; overflow: hidden; margin-bottom: 4px; }
.ci__ph img, .ci__ph .thumb-empty { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; display: block; }
.ci__w { font: 400 13px/1.3 var(--font-body); color: var(--c-text-2); }
.ci__t { font: 400 24px/1.2 var(--font-display); }
.ci__l { font: 600 14px/1.2 var(--font-body); color: var(--c-navy); text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; min-height: 24px; }

/* Trustees / volunteers grid + person profile (3b-v2 trustees-*, person-*). */
.pg .with-subnav { display: block !important; }
.pg .person-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .pg .person-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.pg .person { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; background: #fff; border: var(--rule-hair); border-radius: 0; color: var(--c-ink) !important; text-decoration: none; }
.pg .person .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; background: var(--c-navy); color: var(--c-cream); font: 400 24px/1 var(--font-display); }
@media (min-width: 1024px) { .pg .person .avatar { width: 72px; height: 72px; font-size: 28px; } }
.pg .person__name { margin: 0; font: 400 20px/1.2 var(--font-display); }
.pg .person__role { margin: 4px 0 0; font: 400 13px/1.3 var(--font-body); color: var(--c-text-2); }
.pg .person:hover .person__name { text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }
.pf { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .pf { grid-template-columns: 240px minmax(0, 680px); column-gap: 80px; padding: 64px var(--px) 96px; } }
.pf__side { display: flex; flex-direction: column; gap: 16px; }
.pf__portrait { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; display: block; }
.pf__portrait--init { display: flex; align-items: center; justify-content: center; background: var(--c-navy); color: var(--c-cream); font: 400 64px/1 var(--font-display); }
.pf__main { display: flex; flex-direction: column; gap: 20px; }
.pf__others { padding-top: 18px; border-top: var(--rule-heavy); }
.pf__others h2 { margin: 0 0 14px; font: 400 26px/1.2 var(--font-display); color: var(--c-ink); }
.pf__others ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pf__others a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px 4px 4px; border: var(--rule-hair); border-radius: 999px; background: #fff; font: 500 14px/1.2 var(--font-body); color: var(--c-ink) !important; text-decoration: none; }
.pf__others a img, .pf__others a > span { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--c-navy); color: var(--c-cream); font: 400 12px/1 var(--font-display); }
.pf__others a > span[aria-hidden="true"], .pf__others a:hover > span[aria-hidden="true"] { display: inline-flex; flex: none; transform: none; }   /* initials, not the link-arrow rule (line 109) */
.pf__others a:hover { border-color: var(--c-ink); }

/* Partners grid + org profile (3b-v2 partners-*, partner-org-*). */
.pgp .with-subnav { display: block !important; }
.pgp .partner-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (min-width: 1024px) { .pgp .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px; } }
.pgp .partner { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: #fff; border: var(--rule-hair); border-radius: 0; color: var(--c-ink) !important; text-decoration: none; }
.pgp .partner .logo-tile { height: 72px; background: none !important; display: flex; align-items: center; justify-content: center; }
.pgp .partner .logo-tile img { max-height: 64px; max-width: 80%; width: auto; object-fit: contain; }
.pgp .partner .logo-tile--name { background: var(--c-sand) !important; }
.pgp .partner__name { margin: 0; font: 600 14px/1.3 var(--font-body) !important; color: var(--c-ink); }
.pgp .partner__meta, .pgp .partner__what { display: none; }
.pgp .partner:hover { border-color: var(--c-ink); }
.pgp .partner:hover .partner__name { text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }
.pgp .band h2 { padding-top: 16px; border-top: var(--rule-heavy); }
.pf__logo { aspect-ratio: auto; height: 120px; padding: 20px; border: var(--rule-hair); margin: 0 !important; }
.pf__logo img { max-height: 80px !important; }
.pf__lead { margin: 0; font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.4 var(--font-display); color: var(--c-ink); max-width: 40ch; }

/* Listings + 404 (3b-v2 archive-*, search-*, notfound-*). */
.lf { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; border-bottom: var(--rule-hair); margin-bottom: 14px; }
.lf__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.lf__k { width: 64px; font: 600 13px/1.3 var(--font-body); color: var(--c-text-2); }
.lf__v { display: flex; flex-wrap: wrap; gap: 8px; }
.lf__c { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; font: 500 14px/1 var(--font-body); color: var(--c-ink) !important; text-decoration: none; }
.lf__c:hover { border-color: var(--c-ink); }
.lf__c.is-on { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-cream) !important; }
.lf__n { margin: 0 0 28px; font: 400 14px/1.3 var(--font-body); color: var(--c-text-2); }
.le { padding: 40px 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.le h2 { margin: 0; font: 400 32px/1.1 var(--font-display); color: var(--c-ink); }
.le p { margin: 0; color: var(--c-text-2); }
.nf2 .ph__in { padding-bottom: 96px; }
.nf2__r { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--c-navy-line); }
.nf2__r a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--c-navy-line); color: var(--c-cream) !important; text-decoration: none; }
.nf2__r b { font: 400 24px/1.2 var(--font-display); }
.nf2__r a > span { grid-column: 1; font: 400 14px/1.3 var(--font-body); color: var(--c-on-navy-2); }
.nf2__r i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; color: var(--c-yellow); }
.nf2__r a:hover b { text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }
@media (min-width: 1024px) { .nf2 .ph__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; padding-top: calc(var(--sh-h) + 72px); padding-bottom: 120px; } .nf2__r { margin-top: 24px; } }

/* Log in inside the site (3b-v2 login-*). Overrides the old two-column login stylesheet. */
body.login.uac-login { display: block !important; min-height: 0; background: var(--c-cream) !important; }
body.uac-login .ua-hero, body.uac-login form.ua-lang, body.uac-login .language-switcher, body.uac-login #backtoblog { display: none !important; }
body.uac-login .lgn { padding: 40px var(--gutter) 72px; display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { body.uac-login .lgn { padding: 64px var(--px) 96px; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); column-gap: 72px; align-items: start; } }
body.uac-login #login { flex: none; width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; display: block; }
body.uac-login #login > * { max-width: none !important; margin-left: 0 !important; }
body.uac-login .ua-signin-head { display: none; }
body.uac-login #loginform, body.uac-login #lostpasswordform, body.uac-login #resetpassform { margin: 0 !important; padding: 24px !important; }
body.uac-login #nav { margin: 14px 0 0 !important; }
body.uac-login .lgn__aside h2 { margin: 0 0 10px; font: 400 clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem)/1.1 var(--font-display); color: var(--c-ink); }
body.uac-login .lgn__aside p { margin: 0 0 18px; color: var(--c-text-2); max-width: 46ch; }
body.uac-login .ph__title { font: 400 var(--text-h1)/.98 var(--font-display); letter-spacing: -.035em; color: var(--c-cream); margin: 0; }
body.uac-login .sf, body.uac-login .sh { font-family: var(--font-body); }

/* Become a member (3b-v2 member-*). */
.mf2 .si__text { max-width: none; }
.mf2 .membership-form__group { counter-increment: mf; margin: 0 0 40px; padding: 18px 0 0; border: 0; border-top: var(--rule-heavy); }
.mf2 .membership-form { counter-reset: mf; }
.mf2 .membership-form__group > legend { display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 18px; font: 400 26px/1.2 var(--font-display); color: var(--c-ink); }
.mf2 .membership-form__group > legend::before { content: counter(mf); width: 28px; height: 28px; border-radius: 50%; background: var(--c-navy); color: var(--c-cream); display: inline-flex; align-items: center; justify-content: center; font: 600 14px/1 var(--font-body); }
.mf2 input[type="text"], .mf2 input[type="email"], .mf2 input[type="tel"], .mf2 input[type="date"], .mf2 select, .mf2 textarea { border: 1px solid var(--c-ink) !important; border-radius: 2px !important; background: #fff; }
.mf2 .check:has(input[type="radio"]) { padding: 14px 16px; border: var(--rule-hair); background: #fff; margin-bottom: 8px; }
.mf2 .check:has(input[type="radio"]:checked) { border-color: var(--c-navy); box-shadow: inset 0 0 0 1px var(--c-navy); }
.mf2__panel h3 { margin: 6px 0 0; padding-top: 14px; border-top: var(--rule-hair); font: 600 14px/1.3 var(--font-body); color: var(--c-ink); }
.mf2__panel p { margin: 0; font: 400 14px/1.5 var(--font-body); color: var(--c-text-2); }
.mf2__steps { list-style: none; margin: 0; padding: 0; width: 100%; }
.mf2__steps li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: var(--rule-hair); font: 400 14px/1.4 var(--font-body); color: var(--c-ink); }
.mf2__steps li > span:first-child { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--c-navy); color: var(--c-navy); display: inline-flex; align-items: center; justify-content: center; font: 600 12px/1 var(--font-body); }
.mf2__q a { color: var(--c-navy); font-weight: 600; }
@media (max-width: 1023px) { .mf2 .si__panel { order: -1; } }
/* Support the Club: closer to the artboard — ways as cards with a navy top rule; gift-does lead beside the heading. */
@media (min-width: 1024px) {
  .sp__grid { gap: 16px; margin-top: 18px; }
  .sp__way, .sp__way + .sp__way { padding: 24px !important; border: var(--rule-hair) !important; border-top: 3px solid var(--c-navy) !important; background: #fff; }
  .sp__wh { border-bottom: 0; }
  .sp__does { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; }
  .sp__does h2 { grid-column: 1; }
  .sp__lead { grid-column: 2; font-size: 16px !important; line-height: 1.6 !important; }
  .sp__tiles { grid-column: 1 / -1; }
  .sp__other ul { border-top: 0 !important; gap: 12px; }
  .sp__other a { padding: 18px 20px !important; background: #fff; border: var(--rule-hair) !important; }
}

/* Headings with a rule above them: padding inside, so the tight line-height cannot overflow the box. */
.nw__h, .pgp .band h2, .br2__text h2, .os__head h2, .cg__h { line-height: 1.15 !important; padding-bottom: .08em; }
.pf__logo { height: auto !important; min-height: 120px; }

/* Bordered headings and legends get a full line-height (Literata's line box overshoots a tight one). */
.nw__h, .pgp .band h2, .os__head h2, .cg__h, .mf2 .membership-form__group > legend { line-height: 1.3 !important; }
.pf__logo { padding: 24px !important; }
.mf2 .membership-form__group > legend { min-height: 34px; padding-block: 4px !important; }
.mf2 .membership-form__group > legend::before { flex: none; }
.br2__text h2 { line-height: 1.3 !important; padding-bottom: .1em; }

/* Lightbox: while the next photograph loads the stage shows a small ring, never the previous photo. */
.lb__stage.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--c-yellow); opacity: 0; animation: lb-spin .8s linear infinite, lb-show 0s .2s forwards; pointer-events: none; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
@keyframes lb-show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lb__stage.is-loading::after { animation: lb-show 0s .2s forwards; } }

/* Small phones (≤ 359px): the footer wordmark wraps instead of pushing the page 16px wider. */
@media (max-width: 359px) { .sf__lockup span { white-space: normal; font-size: 18px; } }
/* Stand-alone email links in the contact tables: at least a 24px tap target (WCAG 2.5.8). */
.ct dt a, .sc__facts dd a { display: inline-block; padding-block: 3px; }
/* Donate carries a small heart: giving, said without words. It beats once on hover. */
.sh__donate, .mn__donate { gap: 8px; }
.i-heart { flex: none; display: block; transform-origin: 50% 60%; }
.sh__donate:hover .i-heart, .mn__donate:hover .i-heart { animation: heart-beat .6s var(--e-out) 1; }
@keyframes heart-beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.22); } 60% { transform: scale(.95); } }
@media (prefers-reduced-motion: reduce) { .sh__donate:hover .i-heart, .mn__donate:hover .i-heart { animation: none; } }
/* A status pill inside a narrow card (e.g. "Очікуємо фінансування" in three tablet columns) wraps
   rather than running off the card and the page. Single-line pills look exactly as before. */
.cc__state { min-width: 0; }
.cc__state .pill, .ci__c .pill, .stc .pill { max-width: 100%; box-sizing: border-box; white-space: normal; height: auto; min-height: 26px; padding-block: 4px; line-height: 1.2; }
/* "Other classes" on tablets: two roomy columns rather than three cramped ones (titles and the arrow collided). */
@media (min-width: 768px) and (max-width: 1023px) { .co__list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* Form pages (page-form.html): the form in a white navy-ruled card under the text; panel beside. */
.fm-card { margin-top: 24px; max-width: 560px; background: #fff; border: var(--rule-hair); border-top: 3px solid var(--c-navy); padding: 20px; }
@media (min-width: 768px) { .fm-card { padding: 24px 28px 28px; } }
.si--form .si__text .fm-card p { max-width: none; }
.fm-card .btn--block { width: auto; padding-inline: 22px; }
.fm-card form > :last-child { margin-bottom: 0; }
.fm-card__lead { margin: 0 0 18px; font: 400 16px/1.55 var(--font-body); color: var(--c-ink) !important; }
.fm-card__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0; }
.fm-card__addr { font: 500 14px/1.3 var(--font-body); color: var(--c-text-2); }
.seg { border: 0; padding: 0; margin: 0 0 var(--space-6, 24px); }
.seg legend { padding: 0; margin-bottom: 8px; font: 600 16px/1.3 var(--font-body); color: var(--c-ink); }
.seg__opts { display: inline-flex; border: 1px solid var(--c-ink); border-radius: 2px; }
.seg__opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg__opts label, .field .seg__opts label { display: inline-flex; align-items: center; align-self: stretch; min-height: 40px; margin: 0; padding: 0 18px; font: 600 14px/1 var(--font-body); color: var(--c-ink); cursor: pointer; }
.seg__opts label + input + label { border-left: 1px solid var(--c-ink); }
.seg__opts input:checked + label { background: var(--c-ink); color: var(--c-cream); }
.seg__opts input:focus-visible + label { outline: 2px solid var(--c-yellow); outline-offset: 2px; position: relative; z-index: 1; }
.fm-logos { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fm-logos a { display: grid; place-items: center; height: 64px; padding: 8px; border: var(--rule-hair); background: #fff; }
.fm-logos img { max-width: 100%; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.fm-ways { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fm-ways li { display: flex; align-items: center; gap: 10px; color: var(--c-navy); }
.fm-ways a { font: 600 15px/1.3 var(--font-body); color: var(--c-navy); text-decoration-color: var(--c-yellow); text-underline-offset: 4px; padding-block: 3px; }
.si--form .fm-card .caption { font: 400 13px/1.5 var(--font-body); color: var(--c-text-2); margin-top: 14px !important; }
.fm-card form > .check:last-of-type { padding-top: 14px; border-top: var(--rule-hair); }
.si__panel--stat { gap: 4px; }
.si__big { margin: 0; font: 400 64px/1 var(--font-display); color: var(--c-navy); }
.si__lbl { margin: 0 0 12px; padding-bottom: 14px; width: 100%; border-bottom: var(--rule-hair); font: 500 14px/1.3 var(--font-body); color: var(--c-ink); }
.si__ph { width: 100%; }
.si__ph img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* Search (search-*): box, chips, rows with the match marked. */
.sr { padding: 40px var(--gutter) 72px; max-width: 880px; }
@media (min-width: 1024px) { .sr { padding: 56px var(--px) 96px; } }
.sr__form { display: flex; gap: 8px; max-width: 560px; margin: 0 0 20px; }
.sr__form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--c-ink); border-radius: 2px; background: #fff; font: 400 17px/1.2 var(--font-body); color: var(--c-ink); }
.sr__form input:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 2px; }
.sr__form .b3 { min-height: 48px; }
.sr__f { margin: 0 0 16px; }
.sr__n { margin: 0 0 8px; padding-bottom: 14px; border-bottom: 2px solid var(--c-ink); font: 400 14px/1.4 var(--font-body); color: var(--c-text-2); }
.sr__list { list-style: none; margin: 0; padding: 0; }
.sr__row { padding: 18px 0; border-bottom: var(--rule-hair); }
.sr__row[hidden] { display: none !important; }
.sr__k { margin: 0 0 4px; font: 600 11px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.sr__t { margin: 0 0 6px; font: 400 22px/1.25 var(--font-display); }
.sr__t a { color: var(--c-navy); text-decoration: none; }
.sr__t a:hover { text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }
.sr__x { margin: 0; max-width: 70ch; font: 400 15px/1.55 var(--font-body); color: var(--c-text-2); overflow-wrap: anywhere; }
.sr__x mark { background: #FCEBB0; color: var(--c-ink); padding: 0 1px; }
.sr__m { margin: 6px 0 0; font: 400 13px/1.3 var(--font-body); color: var(--c-muted); }

/* Partners without a logo: the name as a wordmark — display serif, navy, a short yellow rule — filling the
   card, so it holds its own beside real logos instead of reading as a missing image. */
.pgp .partner--word { justify-content: center; }
.pgp .partner .logo-tile--word { flex: 1; height: auto !important; min-height: 112px; flex-direction: column; padding: 8px 12px; background: none !important; border: 0; }
.partner__word { margin: 0; max-width: 18ch; font: 400 clamp(1.3rem, 1.1rem + .6vw, 1.65rem)/1.15 var(--font-display); color: var(--c-navy); text-align: center; text-wrap: balance; }
.partner__word::after { content: ""; display: block; width: 28px; height: 3px; margin: 12px auto 0; background: var(--c-yellow); transition: width var(--m-base) var(--e-out); }
.pgp .partner--word:hover .partner__word::after { width: 56px; }
@media (prefers-reduced-motion: reduce) { .partner__word::after { transition: none; } }
/* Real logos: one optical height, so a small mark (Beacon) is not lost beside a big one. */
.pgp .partner .logo-tile { height: 88px; }
.pgp .partner .logo-tile img { height: 56px; max-height: none; max-width: 78%; width: auto; object-fit: contain; }
.partner__word { display: block; }
.partner__word--lg { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.logo-tile--word { display: flex; align-items: center; justify-content: center; background: none; }
.pf__logo:has(.partner__word) { display: flex; align-items: center; justify-content: center; background: #fff; }

/* Members' office — people, roles, branches. */
.office-tag--role { margin: 0 4px 4px 0; padding: 3px 8px; background: #E8EEF3; color: var(--c-navy); font-weight: 600; letter-spacing: 0; }
.office-tag--role.is-ended { background: transparent; border: 1px dashed var(--c-line); color: var(--c-muted); text-decoration: line-through; }
.office-roles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.office-roles li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-bottom: 12px; border-bottom: var(--rule-hair); }
.office-inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.office-inline input[type=date] { max-width: 11rem; min-height: 32px; }
.office-row { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.office-row .field label { display: block; }
.office-row .field label input { display: block; width: 100%; margin-top: 4px; }
.btn--sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.office-branch { margin-bottom: 16px; }
.office-branch h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.office-links { display: inline-flex; gap: 12px; margin-top: 6px; }
.office-checks { margin: 0 0 20px; padding: 12px 16px; background: #fff; border: var(--rule-hair); border-left: 4px solid var(--c-yellow); }
.office-checks.is-ok { border-left-color: #2E7D4F; }
.office-checks.is-ok p { margin: 0; font: 500 14px/1.4 var(--font-body); }
.office-checks summary { cursor: pointer; font: 600 15px/1.4 var(--font-body); color: var(--c-ink); }
.office-checks ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.office-checks li { position: relative; padding-left: 20px; font: 400 14px/1.45 var(--font-body); }
.office-checks li::before { content: "!"; position: absolute; left: 0; top: 1px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-yellow); color: var(--c-ink); font: 700 10px/14px var(--font-body); text-align: center; }
.office-checks li.is-info::before { content: "i"; background: #E8EEF3; color: var(--c-navy); }
.office-checks a { color: var(--c-ink); text-decoration-color: var(--c-yellow); text-underline-offset: 3px; }
button.link-action { background: none; border: 0; padding: 0; min-height: 24px; font: 500 13px/1.3 var(--font-body); color: var(--c-text-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
button.link-action:hover { color: #A32020; }

/* Phones: reveals rise further and ease out longer — the section slides up with the scroll rather than
   popping in. (Triggered as its top edge appears; see motion.js.) */
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { transform: translate3d(0, 40px, 0); }
  .js [data-reveal].is-in {
    transition: opacity 700ms cubic-bezier(.22, .8, .3, 1) var(--d, 0ms), transform 900ms cubic-bezier(.16, 1, .3, 1) var(--d, 0ms);
  }
}

/* Phones: the hero shows its photograph. A light veil at the top lets Greenock and the river through
   (still drifting on its Ken Burns), deepening to navy where the headline sits, low in the frame. */
@media (max-width: 1023px) {
  .hx::after { background: none; }
  .hx__copy {
    min-height: min(100svh, 820px); justify-content: flex-end; padding-top: calc(var(--sh-h) + 30vh);
    background: linear-gradient(180deg, rgba(14,58,82,.34) 0%, rgba(14,58,82,.40) 24%, rgba(14,58,82,.80) 50%, rgba(14,58,82,.95) 70%, rgba(14,58,82,.97) 100%);
  }
  /* The photo layer covers only the headline area (not Next up below), so the crop lands on the hills
     and the river rather than the sky. */
  .hx__media { bottom: auto; height: min(100svh, 820px); }
  .hx__bg { object-position: 60% 62%; }
  .hx__title, .hx__lede, .hx__eyebrow { text-shadow: 0 1px 18px rgba(8, 30, 44, .45); }
  .hx__eyebrow { color: var(--c-cream); }
}
/* Small phones: the two-line wordmark keeps each line whole ("Ukrainian Club" never breaks to a third). */
.sh__word { white-space: nowrap; }
@media (max-width: 379px) { .sh__word { font-size: 14px; } }
/* The narrowest phones (320px): the longer Ukrainian name may wrap rather than push the menu off screen. */
@media (max-width: 359px) { .sh__word { white-space: normal; } }

/* Bare cards (no box of their own: Coming up, stories, listings). The hover lift used to draw its shadow
   exactly at the content's edge, so the text sat flush against it. On hover a white panel now opens
   16px beyond the content, behind it — the lift has room to breathe; nothing moves at rest. */
@media (hover: hover) and (min-width: 768px) {
  .cu__card, .stc, .ci__c { isolation: isolate; }
  .cu__card::before, .stc::before, .ci__c::before {
    inset: -16px -18px -18px; z-index: -1; border-radius: 4px;
    background: #fff; box-shadow: 0 18px 36px -14px rgba(21, 32, 42, .26), 0 0 0 1px rgba(21, 32, 42, .05);
  }
}
/* Tablet: Coming up is a list of rows on hairlines — the panel hugs the row and covers its rules. */
@media (hover: hover) and (min-width: 768px) and (max-width: 1023px) {
  .cu__card:not(.cu__card--featured)::before { inset: -2px -18px; }
}
/* What's on · Past events: the same rhythm as Coming up, on a quieter sand ground. */
.wo__past { padding-bottom: 72px; border-top: var(--rule-hair); }
.wo__past .er__sum { margin-bottom: 24px; }
@media (min-width: 1024px) { .wo__past { padding-top: 88px; padding-bottom: 104px; } }
.st2__meta .byline { color: var(--c-cream); text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }
.st2__meta .byline:hover { color: #fff; }

/* Home gallery on phones: photos slide in from the right one after another, then drift with the scroll
   (motion.js sets --gp 0→1 as the band crosses the screen). Reduced motion: the plain fade above. */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .js .gb .gb__tile[data-m] { opacity: 0; transform: translate3d(56px, 0, 0); }
  .js .gb.is-in .gb__tile[data-m] {
    opacity: 1; transform: none;
    transition: opacity 600ms cubic-bezier(.22, .8, .3, 1) var(--d, 0ms), transform 900ms cubic-bezier(.16, 1, .3, 1) var(--d, 0ms);
  }
  /* While the page scroll drives the row, no snapping or smooth-scroll fighting it. */
  .gb.is-driven .gb__rows { scroll-snap-type: none; scroll-behavior: auto; }
  /* The ribbon's second copy of the photographs (hidden from assistive tech, not focusable). */
  .gb.is-loop .gb__tile[data-m][data-clone] { display: flex !important; opacity: 1; transform: none; }
  .gb__frame img { transform: scale(1.12) translate3d(0, calc((.5 - var(--gp, .5)) * 7%), 0); transition: none; will-change: transform; }
  .gb .gb__head { transform: translate3d(0, calc((.5 - var(--gp, .5)) * 14px), 0); }
}
.wo__past-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.wo__all { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 16px/1.2 var(--font-body); color: var(--c-navy) !important; text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 5px; }
.wo__all-n { font-weight: 400; color: var(--c-text-2); }
.wo__past--all { border-top: 0; padding-top: 0; }
.wo__year { margin: 48px 0 20px; padding-top: 14px; border-top: 2px solid var(--c-ink); font: 400 clamp(1.6rem, 1.3rem + 1vw, 2.2rem)/1.5 var(--font-display); color: var(--c-ink); }
.wo__past--all .wo__year:first-child { margin-top: 8px; }
.wo__back { margin: 48px 0 0; }
.wo__past--all + .wo__back, .wo__back { padding-bottom: 72px; }
@media (min-width: 1024px) { .wo__back { padding-bottom: 104px; } }

/* The library film: never the browser's own player UI (iPhone shows its controls when the video itself
   is tapped). Taps fall through to the film wrapper, which turns the sound on. */
.space-stage__video { pointer-events: none; }
.space-stage__film { cursor: pointer; }
/* Lightbox slide: the outgoing copy and the incoming photograph stay inside the stage. */
.lb__stage { overflow: hidden; }
.lb__ghost { object-fit: contain; z-index: 0; }
.lb__img { position: relative; z-index: 1; will-change: transform; }

/* Home hero: a slow looping drift — the photograph breathes and pans a little (22s each way), with the
   scroll parallax from motion.js on top. Reduced motion: still (rule above). */
@keyframes hx-drift {
  0%   { transform: scale(1.06) translate3d(0, 0, 0); }
  50%  { transform: scale(1.12) translate3d(-2.2%, -1.4%, 0); }
  100% { transform: scale(1.07) translate3d(1.6%, -.4%, 0); }
}
.hx__img { animation: hx-drift 22s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .hx__img { animation: none; } }
.lb__nav { z-index: 2; }

/* About · How we work: the five values as a ruled row, then the two sides of the impact. */
.ab__how { padding-top: 40px; border-top: var(--rule-hair); margin-top: 40px; }
.ab__vals { list-style: none; margin: 20px 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ab__vals li { padding: 8px 16px; border: 1px solid var(--c-ink); border-radius: 999px; font: 500 15px/1.2 var(--font-body); color: var(--c-ink); background: #fff; }
.ab__impact { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .ab__impact { grid-template-columns: 1fr 1fr; } }
.ab__impact > div { padding: 20px 22px; background: #fff; border: var(--rule-hair); border-top: 3px solid var(--c-navy); }
.ab__impact h3 { margin: 0 0 8px; font: 400 22px/1.3 var(--font-display); color: var(--c-ink); }
.ab__impact p { margin: 0; font: 400 15px/1.6 var(--font-body); color: var(--c-text-2); }
.ab__impact strong { color: var(--c-ink); }
.ab__how .ab__foot { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }
.ab__impact ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ab__impact li { font: 400 15px/1.55 var(--font-body); color: var(--c-text-2); }
.ab__impact li b { color: var(--c-ink); font-weight: 600; }
/* Addresses open the map: a quiet underline in the yellow accent, readable on light and navy. */
a.addr { color: inherit !important; text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a.addr:hover { text-decoration-thickness: 3px; }

/* The house page: rooms as a ruled list of links (name + one line), and the photo grid in the text column. */
.house-rooms { list-style: none; margin: 0 0 8px; padding: 0; border-top: var(--rule-hair); max-width: 64ch; }
.house-rooms li { border-bottom: var(--rule-hair); }
.house-rooms a { display: grid; gap: 2px; padding: 14px 28px 14px 0; position: relative; text-decoration: none; color: var(--c-ink) !important; }
.house-rooms a::after { content: "→"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--c-navy); transition: transform var(--m-base) var(--e-out); }
.house-rooms a:hover::after { transform: translate(4px, -50%); }
.house-rooms b { font: 400 20px/1.3 var(--font-display); }
.house-rooms a:hover b { text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }
.house-rooms span span, .house-rooms > li > a > span { font: 400 15px/1.5 var(--font-body); color: var(--c-text-2); }
.si__text .sg { margin: 40px 0; }
.si__text .sg h2 { margin-top: 0; }
.eb__where .addr, dd .addr, .ph__meta .addr { display: inline-block; padding-block: 3px; }

/* ===== Our story (page-story): a timeline down a navy rule, photos beside each milestone ===== */
.stp { padding: 40px var(--gutter) 24px; max-width: 1180px; margin: 0 auto; }
@media (min-width: 1024px) { .stp { padding: 72px var(--px) 32px; } }
.stp > .lede { display: none; }   /* shown in the hero */
.stp h2 { font: 400 clamp(1.6rem, 1.25rem + 1.2vw, 2.25rem)/1.25 var(--font-display); color: var(--c-ink); margin: 0 0 12px; }
.stp p, .stp li { font: 400 var(--text-body, 17px)/1.65 var(--font-body); color: var(--c-text-2); max-width: 62ch; }
.tl { position: relative; display: flex; flex-direction: column; gap: 56px; padding-left: 28px; border-left: 2px solid var(--c-navy); }
.tl__item { position: relative; display: grid; gap: 12px 48px; grid-template-columns: minmax(0, 1fr); }
.tl__item::before { content: ""; position: absolute; left: -37px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-yellow); box-shadow: 0 0 0 4px var(--c-cream, #F7F4EE), 0 0 0 6px var(--c-navy); }
.tl__when { margin: 0; font: 600 13px/1.3 var(--font-body) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--c-navy) !important; }
.tl__item ul { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair); max-width: 62ch; }
.tl__item li { padding: 9px 0 9px 22px; position: relative; border-bottom: var(--rule-hair); color: var(--c-ink) !important; }
.tl__item li::before { content: "—"; position: absolute; left: 0; color: var(--c-yellow); }
@media (min-width: 1024px) {
  .tl { padding-left: 48px; gap: 88px; }
  .tl__item { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .tl__item::before { left: -57px; }
  .tl__item > .tl__when, .tl__item > h2, .tl__item > p, .tl__item > ul { grid-column: 1; }
  .tl__item > .tl__ph, .tl__item > .tl__pair { grid-column: 2; grid-row: 1 / span 6; }
}
.tl__ph { margin: 0; }
.tl__ph a { display: block; overflow: hidden; background: var(--c-sand); }
/* The photo's own shape, so a wide group shot keeps everyone in it; only a very tall one is trimmed, around its uac_focus. */
.tl__ph img { width: 100%; height: auto; aspect-ratio: auto; max-height: min(80vh, 760px); object-fit: cover; display: block; transition: transform var(--m-slow) var(--e-out); }
.tl__ph a:hover img { transform: scale(1.03); }
.tl__ph figcaption { margin-top: 8px; font: 400 13px/1.4 var(--font-body); color: var(--c-muted); }
.tl__pair { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.tl__pair .tl__ph img { aspect-ratio: 4 / 5; }
.tl__ph--press img { aspect-ratio: auto; object-fit: contain; background: #fff; }
.st-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 72px 0; background: var(--c-line-soft); border: 1px solid var(--c-line-soft); }
@media (min-width: 900px) { .st-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.st-stats div { background: var(--c-navy); color: var(--c-cream); padding: 24px 20px; display: flex; flex-direction: column; gap: 6px; }
.st-stats b { font: 400 clamp(2rem, 1.5rem + 1.6vw, 3rem)/1.1 var(--font-display); color: var(--c-yellow); }
.st-stats span { font: 400 14px/1.4 var(--font-body); color: var(--c-on-navy-2); }
.st-block { margin: 0 0 64px; }
.st-block--split { display: grid; gap: 24px 48px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1024px) { .st-block--split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .st-block--rev > :first-child { order: 2; } }
.st-block--split h2 + p { margin-bottom: 28px; }
.st-quote { margin: 0 0 48px; padding: 32px 28px; background: var(--c-navy); color: var(--c-cream); border-left: 4px solid var(--c-yellow); }
.st-quote p { margin: 0 0 12px; font: 400 clamp(1.3rem, 1.1rem + .8vw, 1.8rem)/1.35 var(--font-display) !important; color: var(--c-cream) !important; max-width: none; }
.st-quote cite { font: 400 14px/1.5 var(--font-body); font-style: normal; color: var(--c-on-navy-2); }
.st-more { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 56px; }
.stp__partners { padding: 48px var(--gutter) 64px; border-top: var(--rule-hair); max-width: 1180px; margin: 0 auto; }
@media (min-width: 1024px) { .stp__partners { padding: 64px var(--px) 88px; } }
.stp__partners h2 { font: 400 clamp(1.4rem, 1.2rem + .8vw, 1.9rem)/1.3 var(--font-display); margin: 0 0 24px; color: var(--c-ink); }
.tl__ph--press img { height: auto !important; max-height: none; }
.ab__strip { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 24px; }
@media (min-width: 768px) { .ab__strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ab__strip a { display: block; overflow: hidden; }
.ab__strip img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; transition: transform var(--m-slow) var(--e-out); }
.ab__strip a:hover img { transform: scale(1.04); }

/* People photos: crops keep heads in frame (cover-cropping from the centre cut the tops off). */
.tl__ph img, .ga__ph img, .ci__ph img, .stc__ph img, .ab__strip img, .sg__tile img, .gb__frame img,
.cc__card img, .cu__media img, .nw__lead img, .ab__ph img, .si__ph img, .space-stage img { object-position: 50% 28%; }
/* Timeline photos: the width/height attributes must not stretch the frame (left an empty band on phones). */
.tl__ph img { height: auto !important; }
/* Timeline photos are lightbox tiles but keep their own shape (not the square grid tile). */
.tl__ph a.sg__tile { aspect-ratio: auto; height: auto; }
.tl__ph a.sg__tile img { position: static; height: auto !important; aspect-ratio: 3 / 2; }
.tl__pair .tl__ph a.sg__tile img { aspect-ratio: 4 / 5; }
.tl__ph--press a.sg__tile img { aspect-ratio: auto; object-fit: contain; }
.stp img, .ab__strip img, .si__text img { contain-intrinsic-size: none !important; }
.tl__ph--press a.sg__tile img { aspect-ratio: 1024 / 594 !important; height: auto !important; width: 100% !important; }

/* ===== The house (page-thehouse) ===== */
.th__band { background: var(--c-navy); }
.th__band .wp-block-post-featured-image { margin: 0; }
.th__band img { width: 100%; height: auto; max-height: 72vh; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 40%; display: block; }
@media (max-width: 767px) { .th__band img { aspect-ratio: 4 / 3; } }
.th__quote { margin-top: 0; }
.th__rooms { margin: 0 0 72px; }
.th__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--c-ink); }
.th__head h2 { margin: 0; }
.th__intro p { margin: 0 0 28px; }
.th__inside { margin: 0 0 72px; }
.th__inside h2 { margin-bottom: 18px; }
.th__why { margin: 0 0 64px; padding: 32px 28px; background: #fff; border: var(--rule-hair); border-top: 3px solid var(--c-navy); }
.th__why p { margin: 0; }
.th__band { margin-top: -1px; } .th__band .wp-block-post-featured-image, .th__band figure { margin: 0 !important; }
@media (max-width: 767px) {
  .th__rooms .ci__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .th__rooms .ci__t { font-size: 18px; }
  .th__rooms .stc__x { font-size: 13px; }
}

/* ===== Visit us (page-visit) ===== */
.vs__facts { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 0 0 64px; }
@media (min-width: 900px) { .vs__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vs__fact { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--c-navy); color: var(--c-cream); }
.vs__k { margin: 0; font: 600 12px/1.3 var(--font-body) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--c-yellow) !important; }
.vs__v { margin: 0 0 6px; flex: 1; font: 400 18px/1.5 var(--font-body) !important; color: var(--c-cream) !important; }
.vs__fact a.addr { color: var(--c-cream) !important; }
.vs__mail { color: var(--c-cream) !important; text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }
.vs__btn { align-self: flex-start; }
.vs__h2 { margin-top: 32px !important; }
.vs__access { margin-bottom: 24px; }
.vs__safe { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin: 0 0 64px; }
@media (min-width: 768px) { .vs__safe { grid-template-columns: 1fr 1fr; } }
.vs__safe section { padding: 24px; background: #fff; border: var(--rule-hair); border-top: 3px solid var(--c-yellow); }
.vs__safe h2 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem) !important; }
.vs__safe p { margin: 0 0 8px; }
.vs__pop { margin: 0 0 72px; padding: 40px 32px; background: var(--c-navy); color: var(--c-cream); border-left: 4px solid var(--c-yellow); }
.vs__pop h2 { color: var(--c-cream) !important; margin: 0 0 8px; }
.vs__pop p { color: var(--c-on-navy-2) !important; font-size: 18px !important; margin: 0; }
/* Story stats: the charity number is twice as long as the other figures — its own size, never past its box. */
.st-stats div { min-width: 0; }
.st-stats b { overflow-wrap: anywhere; }
.st-stats div:last-child b { font-size: clamp(1.5rem, 0.9rem + 1.5vw, 2.3rem); line-height: 1.25; padding-top: .35em; }
/* Full-width sections: --px already centres the content at --content-max; a max-width here squeezed it on large screens. */
.stp, .stp__partners { max-width: none !important; }

/* Hover panel: only grows while hovered (an invisible full-size panel widened the page by 2px on tablets),
   and the Coming up section never scrolls sideways because of it. */
@media (hover: hover) and (min-width: 768px) {
  .cu__card::before, .stc::before, .ci__c::before { inset: 0; transition: opacity var(--m-base) var(--e-out), inset var(--m-base) var(--e-out); }
  .cu__card:hover::before, .stc:hover::before, .ci__c:hover::before { inset: -16px -18px -18px; }
}
@media (hover: hover) and (min-width: 768px) and (max-width: 1023px) {
  .cu__card:not(.cu__card--featured):hover::before { inset: -2px -18px; }
}
.cs { overflow-x: clip; }

/* Search: full-width section (the --px padding centres it); the column width lives on the children. */
.sr { max-width: none !important; }
.sr > * { max-width: 880px; }

/* Long names never spill out of their boxes on small phones. */
.partner__word, .hsl__name, .ci__t, .stc__t { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 359px) { .partner__word { font-size: 1.15rem; } }
/* Status pills wrap in tight columns instead of spilling out of their outline. */
.er .pill, .cu .pill, .hsl .pill { max-width: 100%; white-space: normal; height: auto; min-height: 26px; padding-block: 4px; line-height: 1.2; }
.chip .pill { max-width: 100%; white-space: normal; height: auto; min-height: 26px; padding-block: 4px; line-height: 1.2; }

/* Insurance page: the cover as a small facts table, then the certificate itself. */
.ins { margin: 0 0 24px; border-top: var(--rule-hair); max-width: 62ch; }
.ins div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding: 10px 0; border-bottom: var(--rule-hair); }
.ins dt { font: 600 13px/1.4 var(--font-body); color: var(--c-text-2); }
.ins dd { margin: 0; font: 500 16px/1.4 var(--font-body); color: var(--c-ink); }
.ins__doc { margin: 0 0 16px; max-width: 360px; }
.ins__doc a { display: block; border: var(--rule-hair); box-shadow: 0 10px 24px -14px rgba(21, 32, 42, .35); transition: transform var(--m-base) var(--e-out); }
.ins__doc a:hover { transform: translateY(-2px); }
.ins__doc img { display: block; width: 100%; height: auto; }
.ins__dl { margin: 0 0 24px; }
.pill > span { min-width: 0; }
.chip .pill { font-size: 11.5px; padding-inline: 8px; gap: 4px; } .pill > span { overflow-wrap: anywhere; hyphens: auto; }

/* Stat tiles that open their page: the whole tile is the link target */
.st__cell--link { position: relative; }
.st__a { color: inherit; text-decoration: none; }
.st__a::after { content: ''; position: absolute; inset: 0; }
.st__cell--link:hover .st__label, .st__a:focus-visible { text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.st__a:focus-visible { outline: 3px solid var(--c-navy); outline-offset: 4px; }
.st-stats a { background: var(--c-navy); color: var(--c-cream); padding: 24px 20px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; min-width: 0; transition: background var(--m-fast, .15s); }
.st-stats a:hover { background: var(--c-ink); }
.st-stats a:hover span { text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }
.st-stats a:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: -3px; }

/* Split page headers (title left, intro right): the text column had no gap, so the breadcrumb sat on
   the title's top edge — the giant title's glyph box rose into the breadcrumb row and swallowed its
   links. Same rhythm as the photo variant; the breadcrumb always stays on top and clickable. */
.ph--split .ph__text { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) { .ph--split .ph__text { gap: 18px; } }
.ph .breadcrumb { position: relative; z-index: 2; }

/* Videos (inc/video.php): a poster with a play button; the player loads on click. */
.vid { margin: 32px 0; max-width: 64ch; }
.vid--tall { max-width: 340px; margin-inline: auto; }
.vid__frame { position: relative; aspect-ratio: 16 / 9; background: var(--c-navy); overflow: hidden; }
.vid--tall .vid__frame { aspect-ratio: 9 / 16; }
.vid__play, .vid__player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; margin: 0; }
.vid__play { display: block; cursor: pointer; text-decoration: none; background: var(--c-navy); color: var(--c-cream); }
.vid__poster { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, opacity .2s; }
.vid__play:hover .vid__poster { transform: scale(1.02); opacity: .92; }
.vid__blank { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 20px; text-align: left; background: radial-gradient(120% 90% at 85% 10%, rgba(242,196,0,.22), transparent 60%), var(--c-navy); }
.vid__svc { font: 600 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--c-yellow); }
.vid__what { font: 400 clamp(1.1rem, 1rem + .5vw, 1.4rem)/1.25 var(--font-display); color: var(--c-cream); max-width: 28ch; }
.vid__btn { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; display: grid; place-items: center; background: var(--c-yellow); color: var(--c-navy); box-shadow: 0 6px 24px rgba(0,0,0,.28); transition: transform var(--m-fast, .15s); }
.vid .vid__play .vid__btn { display: grid; place-items: center; }
.vid--own .vid__frame { background: #000; }
.vid--own .vid__player { background: #000; object-fit: contain; }
/* Facebook: their own player, copied. A wide black stage with the reel standing in the middle, the
   page's picture and name top left, Share top right, a white ring play button dead centre. */
.vid--fb .vid__frame { background: #000; border-radius: 12px; display: flex; justify-content: center; }
.vid--fb .vid__reel { position: relative; height: 100%; width: 100%; overflow: hidden; }
.vid--fb.vid--tall .vid__reel { width: auto; aspect-ratio: 9 / 16; max-width: 100%; }
.vid--fb .vid__play { background: #000; font-family: Helvetica, Arial, sans-serif; }
.vid--fb .vid__poster { object-fit: cover; }
.vid--fb .vid__by { position: absolute; inset: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 20px 84px 40px 20px; color: #fff; background: linear-gradient(rgba(0,0,0,.45), transparent); }
.vid--fb .vid__ava { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; }
.vid--fb .vid__name { min-width: 0; font: 400 18px/1.2 Helvetica, Arial, sans-serif; text-align: left; overflow-wrap: anywhere; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.vid--fb .vid__share { position: absolute; top: 18px; right: 18px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff !important; text-decoration: none !important; font: 400 15px/1.2 Helvetica, Arial, sans-serif; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.vid--fb .vid__share svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.vid--fb .vid__share:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 2px; }
.vid.is-playing .vid__share { display: none; }
.vid .vid--fb .vid__btn, .vid--fb .vid__play .vid__btn { inset: 0; margin: auto; width: 28%; max-width: 140px; min-width: 64px; height: auto; aspect-ratio: 1; background: rgba(0,0,0,.45); color: #fff; border: 6px solid #fff; box-shadow: 0 0 10px rgba(0,0,0,.2); box-sizing: border-box; }
.vid--fb .vid__btn svg { width: 88%; height: 88%; margin: 0; }
.vid--fb .vid__who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vid--fb .vid__sub { font: 400 14px/1.3 Helvetica, Arial, sans-serif; color: rgba(255,255,255,.88); text-align: left; text-shadow: 0 1px 2px rgba(0,0,0,.35); overflow-wrap: anywhere; }
.vid--own .vid__by { padding-right: 20px; }
.vid--fb .vid__reel .vid__player { position: absolute; inset: 0; width: 100%; height: 100%; }
.vid--fb .vid__btn path { stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
@media (max-width: 699px) {
	.vid--fb .vid__by { padding: 14px 70px 30px 14px; gap: 10px; }
	.vid--fb .vid__ava { width: 40px; height: 40px; }
	.vid--fb .vid__name { font-size: 16px; }
	.vid--fb .vid__share { top: 12px; right: 12px; font-size: 13px; }
	.vid--fb .vid__play .vid__btn { border-width: 4px; }
}
@media (min-width: 700px) {
	.vid--fb.vid--tall { max-width: 64ch; margin-inline: 0; }
	.vid--fb.vid--tall .vid__frame { aspect-ratio: auto; height: min(640px, 80vh); }
}
.vid__btn svg { margin-left: 3px; }
.vid__play:hover .vid__btn { transform: scale(1.07); }
.vid__play:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 3px; }
.vid__cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-top: 10px; font: 400 14px/1.45 var(--font-body); color: var(--c-text-2); }
.vid--tall .vid__cap { flex-direction: column; }
.vid__out { font: 600 14px/1.3 var(--font-body); color: var(--c-navy); text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap; }
.vid .vid__note { margin: 6px 0 0; font: 400 12px/1.4 var(--font-body); color: var(--c-muted); max-width: none; }
.vid.is-playing .vid__note { display: none; }
@media (prefers-reduced-motion: reduce) { .vid__poster, .vid__btn { transition: none; } .vid__play:hover .vid__poster, .vid__play:hover .vid__btn { transform: none; } }

/* The bridge to the Club's earlier banners: their sunflower bouquet, faint, in the footer corner. */
.sf { position: relative; overflow: hidden; }
/* Footer motif: the sunflower bouquet from the earlier banners, shown whole; it sits in the right margin on wide screens. */
.sf::after { content: ""; position: absolute; right: max(12px, calc(50% - 1000px)); bottom: 16px; height: 340px; aspect-ratio: 1; pointer-events: none; background: var(--c-yellow); opacity: .08; -webkit-mask: url(../brand/bouquet-web.svg) center / contain no-repeat; mask: url(../brand/bouquet-web.svg) center / contain no-repeat; }
@media (min-width: 1700px) { .sf::after { opacity: .12; } }
@media (max-width: 767px) { .sf::after { height: 230px; right: 8px; bottom: 12px; opacity: .07; } }

/* /about/our-look/ — brand kit (inc/brand.php) */
.bk { padding: 40px var(--gutter) 72px; display: grid; gap: 56px; max-width: 1200px; }
.bk__toc { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 16px; border-bottom: var(--rule-hair); }
.bk__toc a { font: 600 14px/1.3 var(--font-body); color: var(--c-navy); text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.bk__sec { scroll-margin-top: 96px; }
.bk__sec h2 { margin: 0 0 16px; font: 400 clamp(1.6rem, 1.3rem + 1vw, 2.2rem)/1.15 var(--font-display); color: var(--c-ink); }
.bk__sec h3 { margin: 28px 0 8px; font: 400 1.35rem/1.2 var(--font-display); color: var(--c-ink); }
.bk__sec p { max-width: 64ch; font: 400 16px/1.6 var(--font-body); color: var(--c-text-2); }
.bk__note { font-size: 14px !important; }
.bk__eb { margin: 0 0 6px; font: 600 12px/1.3 var(--font-body) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--c-navy) !important; }
.bk__facts { margin: 0; border-top: var(--rule-heavy); max-width: 860px; }
.bk__facts div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px; padding: 12px 0; border-bottom: var(--rule-hair); }
@media (min-width: 640px) { .bk__facts div { grid-template-columns: 180px minmax(0, 1fr); } }
.bk__facts dt { font: 600 13px/1.5 var(--font-body); color: var(--c-text-2); }
.bk__facts dd { margin: 0; font: 400 16px/1.5 var(--font-body); color: var(--c-ink); }
.bk__facts a, .bk__sec p a { color: var(--c-navy); text-decoration-color: var(--c-yellow); text-underline-offset: 3px; }
.bk__logos { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin: 20px 0; }
@media (min-width: 900px) { .bk__logos { grid-template-columns: 1fr 1fr 0.8fr; } }
.bk__logo { margin: 0; display: flex; flex-direction: column; }
.bk__logo img { display: block; width: 100%; height: 170px; object-fit: contain; padding: 28px; box-sizing: border-box; }
.bk__logo--light img { background: var(--c-cream); border: 1px solid var(--c-line-soft); }
.bk__logo--dark img { background: var(--c-navy); }
.bk__logo figcaption { margin-top: 10px; font: 600 14px/1.4 var(--font-body); color: var(--c-ink); }
.bk__dls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bk__dl { display: inline-flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--c-line); background: #fff; text-decoration: none !important; color: var(--c-navy) !important; min-height: 44px; justify-content: center; }
.bk__dl:hover { border-color: var(--c-navy); }
.bk__dl:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 2px; }
.bk__dl-t { font: 600 13px/1.25 var(--font-body); }
.bk__dl-m { font: 400 12px/1.2 var(--font-body); color: var(--c-muted); }
.bk__rules { margin: 8px 0 0; padding: 0; list-style: none; max-width: 70ch; border-top: var(--rule-hair); }
.bk__rules li { position: relative; padding: 10px 0 10px 22px; border-bottom: var(--rule-hair); font: 400 15px/1.5 var(--font-body); color: var(--c-ink); }
.bk__rules li::before { content: "—"; position: absolute; left: 0; color: var(--c-yellow); }
.bk__earlier { display: grid; gap: 28px; padding: 32px; background: var(--c-navy); color: var(--c-cream); }
@media (min-width: 900px) { .bk__earlier { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; padding: 48px; } }
.bk__earlier h2 { color: var(--c-cream); }
.bk__earlier p { color: var(--c-on-navy-2); }
.bk__earlier .bk__eb { color: var(--c-yellow) !important; }
.bk__bridge { width: 200px; height: auto; margin-top: 12px; }
.bk__earlier-pics { display: grid; grid-template-columns: 1fr 0.62fr; gap: 16px; align-items: end; }
.bk__earlier-pics figure { margin: 0; }
.bk__earlier-pics img { display: block; width: 100%; height: auto; background: #fff; }
.bk__earlier-pics figure:last-child img { max-height: 420px; object-fit: contain; background: transparent; }
.bk__earlier-pics figcaption { margin-top: 8px; font: 400 13px/1.4 var(--font-body); color: var(--c-on-navy-2); }
.bk__sw { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.bk__sw li { display: flex; flex-direction: column; gap: 4px; font: 400 14px/1.4 var(--font-body); color: var(--c-ink); }
.bk__chip { display: block; height: 84px; border: 1px solid var(--c-line-soft); margin-bottom: 6px; }
.bk__sw code { font: 600 14px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--c-navy); }
.bk__sw small { font-size: 12px; color: var(--c-muted); }
.bk__use { font-size: 13px; color: var(--c-text-2); }
.bk__fonts { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .bk__fonts { grid-template-columns: 1fr 1fr; } }
.bk__fonts > div { padding: 20px; border: 1px solid var(--c-line-soft); background: #fff; }
.bk__fonts p { margin: 0; }
.bk__f1 { font: 400 36px/1.2 var(--font-display) !important; color: var(--c-ink) !important; margin-bottom: 8px !important; }
.bk__f2 { font: 500 34px/1.2 var(--font-body) !important; color: var(--c-ink) !important; margin-bottom: 8px !important; }
.bk__files { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
@media (min-width: 700px) { .bk__files { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bk__wide { grid-column: 1 / -1; } }
.bk__files figure { margin: 0; display: flex; flex-direction: column; }
.bk__stage { display: flex; align-items: center; justify-content: center; padding: 28px; background: var(--c-sand); border-top: 3px solid var(--c-yellow); }
.bk__files .bk__stage img { display: block; max-width: 100%; height: auto; box-shadow: 0 6px 22px rgba(14, 58, 82, .22); }
@media (min-width: 700px) { .bk__tall .bk__stage, .bk__tall + figure .bk__stage { height: 520px; } .bk__tall .bk__stage img, .bk__tall + figure .bk__stage img { width: auto; max-height: 100%; } }
@media (max-width: 699px) { .bk__tall .bk__stage img { max-height: 460px; width: auto; } }
.bk__wide .bk__stage img { width: 100%; max-width: 900px; }
.bk__files figcaption { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; font: 400 14px/1.4 var(--font-body); color: var(--c-text-2); }
.bk__fn b { margin-right: 6px; }
.bk__files figcaption b { color: var(--c-ink); }
.bk__qrs { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0 20px; }
@media (min-width: 900px) { .bk__qrs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bk__qr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 16px; background: #fff; border: 1px solid var(--c-line); text-align: center; }
.bk__qr img { display: block; width: 100%; max-width: 160px; height: auto; aspect-ratio: 1; }
.bk__qr figcaption { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 400 13px/1.4 var(--font-body); color: var(--c-text-2); }
.bk__qr figcaption b { font: 600 15px/1.3 var(--font-body); color: var(--c-ink); }
.bk__qr .bk__dls { justify-content: center; }
.bk__arts { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin: 0 0 20px; }
@media (min-width: 700px) { .bk__arts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bk__art { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--c-line); background: #fff; }
.bk__art-stage { display: flex; align-items: center; justify-content: center; height: 200px; padding: 20px; background: var(--c-sand); }
.bk__art--dark .bk__art-stage { background: var(--c-navy); }
.bk__art-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.bk__art .bk__dl { display: flex; border: 0; border-top: 1px solid var(--c-line); width: 100%; box-sizing: border-box; padding: 12px 14px; }
.bk__qr--key { border: 2px solid var(--c-navy); border-top: 6px solid var(--c-yellow); }

.bk__sig { margin: 8px 0; padding: 16px 20px; max-width: 60ch; overflow-x: auto; background: #fff; border: 1px solid var(--c-line-soft); font: 400 14px/1.6 var(--font-body); color: var(--c-ink); white-space: pre; }
.bk__guide { margin-top: 20px; }
/* Links inside the facts list: a full-height tap target on phones without changing the line. */
.bk .bk__facts dd a, .bk a.addr { display: inline-block; padding: 4px 0; }
.bk__toc a, .vid .vid__out { display: inline-block; padding: 4px 0; }
.bk { grid-template-columns: minmax(0, 1fr); }
.bk > * { min-width: 0; }

/* =========================================================================
 * Scottish Parliament milestone card (render_milestone): navy, the poster, one link to the news.
 * ====================================================================== */
.ms { margin: 0 0 40px; }
.ms--band { margin: 0; padding: 40px var(--gutter); background: var(--c-cream); }
@media (min-width: 1024px) { .ms--band { padding: 56px var(--px); } }
.ms__card {
  display: grid; grid-template-columns: 1fr; text-decoration: none; color: var(--c-cream);
  background: var(--c-navy); border-bottom: 4px solid var(--c-yellow); overflow: hidden;
}
.ms__ph { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.ms__ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ms__text { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px; }
.ms__eyebrow { font: 600 12px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-yellow); }
.ms__title { font: 400 clamp(24px, 3vw, 34px)/1.15 var(--font-display); color: var(--c-cream); }
.ms__more { font: 600 15px/1.4 var(--font-body); color: var(--c-cream); text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.ms__card:hover .ms__ph img, .ms__card:focus-visible .ms__ph img { transform: scale(1.03); }
.ms__card:hover .ms__more { color: var(--c-yellow); }
.ms__card:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 3px; }
@media (min-width: 768px) {
  .ms__card { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .ms__ph { aspect-ratio: auto; min-height: 220px; }
  .ms__text { padding: 32px 40px; }
}
@media (prefers-reduced-motion: reduce) { .ms__ph img { transition: none; } }

/* Home page feature band (milestone_band): navy, the chamber photograph fading into it, three facts. */
.msb { position: relative; background: var(--c-navy); color: var(--c-cream); overflow: hidden; }
.msb::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, #0057B7 0 50%, #FFD700 50% 100%); z-index: 2; }
.msb__in { display: flex; flex-direction: column-reverse; }
.msb__ph { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.msb__ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 1.2s ease; }
.msb__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--c-navy) 0%, rgba(14, 58, 82, 0) 45%); }
.msb__text { position: relative; z-index: 1; padding: 8px var(--gutter) 56px; display: flex; flex-direction: column; gap: 20px; }
.msb__kicker { margin: 0; display: flex; align-items: center; gap: 8px; font: 600 12px/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--c-yellow); }
.msb__kicker span { margin-left: 6px; }
.msb__flag { width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); flex: none; }
.msb__title { margin: 0; font: 400 clamp(32px, 4.4vw, 56px)/1.05 var(--font-display); letter-spacing: -.01em; color: var(--c-cream); max-width: 16ch; }
.msb__title em { font-style: italic; color: var(--c-yellow); }
.msb__lede { margin: 0; max-width: 52ch; font: 400 17px/1.6 var(--font-body); color: var(--c-on-navy-2, rgba(255, 255, 255, .82)); }
.msb__facts { margin: 8px 0 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--c-navy-line, rgba(255, 255, 255, .18)); }
.msb__facts > div { padding: 14px 0; border-bottom: 1px solid var(--c-navy-line, rgba(255, 255, 255, .18)); display: flex; align-items: baseline; gap: 16px; }
.msb__facts dt { font: 400 22px/1.1 var(--font-display); color: var(--c-cream); min-width: 7.5em; }
.msb__facts dd { margin: 0; font: 400 14px/1.4 var(--font-body); color: var(--c-on-navy-2, rgba(255, 255, 255, .82)); }
.msb__acts { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) {
  /* The chamber fills the right of the band at its own size (1536 × 640, so never blown up), both flags
     in view; the text sits on the navy to its left, which the photograph fades into. */
  .msb__in { display: block; position: relative; min-height: 600px; }
  .msb__ph { position: absolute; top: 0; right: 0; bottom: 0; left: 38%; aspect-ratio: auto; }
  .msb__ph img { object-position: 38% 50%; }
  .msb__ph::after { background: linear-gradient(90deg, var(--c-navy) 0%, rgba(14, 58, 82, .8) 10%, rgba(14, 58, 82, .2) 24%, rgba(14, 58, 82, 0) 36%); }
  .msb__text { width: min(46%, 640px); box-sizing: content-box; padding: 80px 0 80px var(--px); min-height: 440px; justify-content: center; }
  .msb__title { font-size: clamp(36px, 3.4vw, 50px); max-width: 18ch; }
  .msb__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--c-navy-line, rgba(255, 255, 255, .18)); }
  .msb__facts > div { flex-direction: column; gap: 6px; padding: 18px 20px 18px 0; border-bottom: 0; }
  .msb__facts > div + div { padding-left: 20px; border-left: 1px solid var(--c-navy-line, rgba(255, 255, 255, .18)); }
  .msb__facts dt { min-width: 0; font-size: 24px; }
  .msb:hover .msb__ph img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) { .msb__ph img { transition: none; } }

/* The milestone page (page-scottish-parliament.html): hero like the home page's band, then the
   announcement in a reading column beside the poster. */
.mph { position: relative; overflow: hidden; }
.mph::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, #0057B7 0 50%, #FFD700 50% 100%); z-index: 3; }
.mph .ph__in { position: relative; display: flex; flex-direction: column-reverse; padding: 0; max-width: none; gap: 0; }
.mph__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; padding: 8px var(--gutter) 48px; }
.mph__ph { position: relative; aspect-ratio: 16 / 10; margin-top: calc(var(--sh-h) + env(safe-area-inset-top, 0px)); overflow: hidden; }
.mph__ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.mph__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--c-navy) 0%, rgba(14, 58, 82, 0) 45%); }
.mph .mph__title { margin: 0; color: var(--c-cream); font: 400 clamp(36px, 3.8vw, 54px)/1.04 var(--font-display); letter-spacing: -.02em; max-width: 20ch; }
.mph__lede { margin: 0; max-width: 52ch; font: 400 18px/1.55 var(--font-body); color: var(--c-on-navy-2, rgba(255, 255, 255, .82)); }
.mph .msb__facts { max-width: 640px; }
@media (min-width: 1024px) {
  .mph .ph__in { display: block; min-height: 640px; }
  .mph__ph { position: absolute; top: 0; right: 0; bottom: 0; left: 36%; margin: 0; aspect-ratio: auto; }
  .mph__ph img { object-position: 50% 50%; }
  .mph__ph::after { background: linear-gradient(90deg, var(--c-navy) 0%, rgba(14, 58, 82, .8) 10%, rgba(14, 58, 82, .2) 24%, rgba(14, 58, 82, 0) 36%), linear-gradient(180deg, rgba(14, 58, 82, .85) 0%, rgba(14, 58, 82, 0) 22%); }
  .mph__text { width: min(48%, 680px); box-sizing: content-box; padding: calc(var(--sh-h) + 40px) 0 64px var(--px); gap: 18px; }
  .mph .msb__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--c-navy-line, rgba(255, 255, 255, .18)); }
  .mph .msb__facts > div { flex-direction: column; gap: 6px; padding: 18px 20px 18px 0; border-bottom: 0; }
  .mph .msb__facts > div + div { padding-left: 20px; border-left: 1px solid var(--c-navy-line, rgba(255, 255, 255, .18)); }
  .mph .msb__facts dt { min-width: 0; font-size: 24px; }
}

.mpb { display: grid; gap: 40px; padding: 56px var(--gutter) 72px; max-width: var(--page-max); margin-inline: auto; box-sizing: border-box; }
.mpb__text { max-width: 68ch; font: 400 18px/1.7 var(--font-body); color: var(--c-ink); }
.mpb__text > * { margin: 0 0 1.1em; }
.mpb__text .mpb__hi { font: 400 clamp(22px, 2.2vw, 28px)/1.35 var(--font-display); color: var(--c-navy); }
.mpb__text h2 { margin: 1.8em 0 .6em; font: 400 clamp(28px, 3vw, 40px)/1.1 var(--font-display); color: var(--c-navy); letter-spacing: -.01em; }
.mpb__quote { margin: 1.6em 0; padding: 4px 0 4px 28px; border-left: 4px solid var(--c-yellow); font: italic 400 clamp(26px, 3vw, 38px)/1.2 var(--font-display); color: var(--c-navy); }
.mpb__text strong { color: var(--c-navy); }
.mpb__close { margin-top: 2em !important; padding-top: 28px; border-top: 1px solid var(--c-line); font: 400 clamp(24px, 2.6vw, 32px)/1.25 var(--font-display); color: var(--c-navy); }
.mpb__side { display: flex; flex-direction: column; gap: 28px; }
.mpb__poster { margin: 0; }
.mpb__poster a { display: block; overflow: hidden; border-bottom: 4px solid var(--c-yellow); box-shadow: 0 18px 40px -24px rgba(14, 58, 82, .55); }
.mpb__poster img { display: block; width: 100%; height: auto; transition: transform .6s ease; }
.mpb__poster a:hover img { transform: scale(1.03); }
.mpb__poster figcaption { margin-top: 10px; font: 400 13px/1.4 var(--font-body); color: var(--c-muted); }
.mpb__label { margin: 0 0 10px; font: 600 12px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-navy); }
.mpb__btns { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mpb__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--c-navy); color: var(--c-navy); font: 600 14px/1 var(--font-body); text-decoration: none; }
.mpb__btn:hover, .mpb__btn:focus-visible { background: var(--c-navy); color: var(--c-cream); }
@media (min-width: 1024px) {
  .mpb { grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; padding: 88px var(--px) 104px; max-width: none; }
  .mpb__side { position: sticky; top: calc(var(--sh-h) + 24px); align-self: start; }
}
@media (prefers-reduced-motion: reduce) { .mpb__poster img { transition: none; } }

/* Home page news panel (milestone_band): the milestone page's navy look, but held to the page width
   on the cream, shorter, and with only the title, the date and one link (so it never reads as a hero). */
.mf { background: var(--c-cream); padding: 48px var(--gutter) 56px; }
.mf__panel { position: relative; display: flex; flex-direction: column; max-width: var(--content-max, 1320px); margin-inline: auto; background: var(--c-navy); color: var(--c-cream); text-decoration: none; overflow: hidden; }
.mf__panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #0057B7 0 50%, #FFD700 50% 100%); z-index: 2; }
.mf__ph { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.mf__ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform 1s ease; }
.mf__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--c-navy) 0%, rgba(14, 58, 82, 0) 50%); }
.mf__text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 4px 24px 32px; }
.mf__kicker { display: flex; align-items: center; gap: 8px; font: 600 12px/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--c-yellow); }
.mf__kicker > span { margin-left: 4px; }
.mf__title { font: 400 clamp(28px, 2.8vw, 40px)/1.12 var(--font-display); letter-spacing: -.01em; color: var(--c-cream); max-width: 20ch; }
.mf__title em { font-style: italic; color: var(--c-yellow); }
.mf__date { font: 400 15px/1.4 var(--font-body); color: var(--c-on-navy-2, rgba(255, 255, 255, .8)); }
.mf__more { margin-top: 4px; font: 600 15px/1.4 var(--font-body); color: var(--c-cream); text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.mf__panel:hover .mf__more, .mf__panel:focus-visible .mf__more { color: var(--c-yellow); }
.mf__panel:hover .mf__ph img { transform: scale(1.03); }
.mf__panel:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 4px; }
@media (min-width: 1024px) {
  .mf { padding: 72px var(--px) 80px; }
  .mf__panel { display: block; min-height: 400px; }
  .mf__ph { position: absolute; top: 0; right: 0; bottom: 0; left: 38%; aspect-ratio: auto; }
  .mf__ph img { object-position: 50% 45%; }
  .mf__ph::after { background: linear-gradient(90deg, var(--c-navy) 0%, rgba(14, 58, 82, .75) 12%, rgba(14, 58, 82, .15) 30%, rgba(14, 58, 82, 0) 42%); }
  .mf__text { width: 46%; min-height: 400px; box-sizing: border-box; justify-content: center; padding: 56px 0 56px 56px; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .mf__ph img { transition: none; } }

/* Long titles in the page hero (long_title_class): smaller, never hyphenated. */
.ph .ph__title.is-long { font-size: clamp(34px, 4.4vw, 68px); line-height: 1.04; letter-spacing: -.025em; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; }
.ph .ph__title.is-xlong { font-size: clamp(30px, 3.6vw, 56px); }
