/* ==========================================================================
   UPG components and layout. All values come from tokens.css.
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--surface);
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 96px; } /* keep anchored sections clear of the sticky header */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-3);
  font-weight: var(--weight-bold);
}
h1 { font-size: var(--text-3xl); font-weight: var(--weight-heavy); letter-spacing: -0.01em; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); }
p { margin: 0 0 var(--space-4); }

a { color: var(--brand-primary); text-underline-offset: 3px; }
a:hover { color: var(--brand-primary-dark); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; left: var(--space-4); top: -100px;
  background: var(--ink); color: var(--surface);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { top: var(--space-4); color: var(--surface); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--space-8) 0; }
.section--alt { background: var(--surface-alt); }
.section--tint { background: var(--brand-primary-tint); }

.section-head {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  align-items: end; justify-content: space-between;
  margin-bottom: var(--space-6);
}
.section-head h2 { margin: 0; }
.section-head p { margin: var(--space-2) 0 0; color: var(--ink-muted); max-width: 46ch; }

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: var(--space-2);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap-target);
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font: inherit; font-weight: var(--weight-bold); font-size: var(--text-base);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--brand-primary); color: #fff; }
.btn--primary:hover { background: var(--brand-primary-dark); color: #fff; }
.btn--accent { background: var(--brand-accent); color: var(--ink); }
.btn--accent:hover { background: var(--brand-accent-dark); color: var(--ink); }
.btn--outline { border-color: var(--brand-primary); color: var(--brand-primary); background: transparent; }
.btn--outline:hover { background: var(--brand-primary-tint); }
.btn--on-dark { border-color: #fff; color: #fff; background: transparent; }
.btn--on-dark:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 var(--space-4); font-size: var(--text-sm); }

.link-arrow {
  font-weight: var(--weight-bold);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: var(--tap-target);
}
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: var(--space-4);
  min-height: 76px;
}
.logo {
  display: inline-flex; align-items: center; gap: var(--space-3);
  text-decoration: none; color: var(--ink); flex-shrink: 0;
}
.logo-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-primary); color: #fff;
  display: grid; place-items: center;
  font-weight: var(--weight-heavy); font-size: 0.95rem; letter-spacing: .02em;
}
.logo-text { line-height: 1.1; font-weight: var(--weight-bold); font-size: var(--text-sm); }
.logo-text small { display: block; font-weight: var(--weight-regular); color: var(--ink-muted); font-size: var(--text-xs); }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-1); }
.main-nav a {
  display: flex; align-items: center; min-height: var(--tap-target);
  padding: 0 var(--space-3);
  color: var(--ink); text-decoration: none; font-weight: var(--weight-semibold);
  border-radius: var(--radius-sm); white-space: nowrap;
}
.main-nav a:hover { background: var(--surface-alt); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.icon-btn {
  width: var(--tap-target); height: var(--tap-target);
  display: grid; place-items: center;
  border-radius: var(--radius-pill); border: 0; background: transparent;
  color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-alt); }
.icon-btn svg { width: 22px; height: 22px; }

.menu-toggle { display: none; }

@media (max-width: 1240px) {
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: var(--space-3) var(--gutter) var(--space-5);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { font-size: var(--text-lg); }
  .menu-toggle { display: grid; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .header-actions .btn--outline { display: none; }
  .logo-text small { display: none; }
}
@media (max-width: 440px) {
  .site-header .logo-text { display: none; }
  .header-actions { gap: 0; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero { padding: var(--space-7) 0 var(--space-8); background: var(--surface-alt); }
.hero-grid {
  display: grid; gap: var(--space-6);
  grid-template-columns: 1.05fr 1fr; align-items: center;
}
.hero p.lede { font-size: var(--text-lg); color: var(--ink-muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.hero-media { position: relative; }
.hero-media .photo { aspect-ratio: 5 / 4; border-radius: var(--radius-lg); }
.hero-badge {
  position: absolute; left: calc(-1 * var(--space-5)); bottom: var(--space-5);
  background: var(--surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-3) var(--space-4);
  display: flex; gap: var(--space-3); align-items: center;
  font-size: var(--text-sm);
}
.hero-badge strong { display: block; font-size: var(--text-base); }
.hero-badge .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--status-available); flex-shrink: 0; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media .photo { aspect-ratio: 16 / 10; }
  .hero-badge { left: var(--space-4); bottom: var(--space-4); }
}

/* --- Photo placeholder ---------------------------------------------------- */
.photo {
  width: 100%; height: 100%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.0) 0%, rgba(255,255,255,.35) 100%),
    var(--ph, var(--brand-primary-tint));
  display: flex; align-items: flex-start;
  padding: var(--space-3);
  color: var(--ink-muted);
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  overflow: hidden;
}
.photo span {
  background: rgba(255,255,255,.85);
  padding: 2px var(--space-2); border-radius: var(--radius-sm);
}

/* --- Quick routes --------------------------------------------------------- */
.quick-routes {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(4, 1fr);
  margin-top: calc(-1 * var(--space-7));
  position: relative;
}
.route {
  display: flex; flex-direction: column; gap: var(--space-2);
  background: var(--surface); border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  text-decoration: none; color: var(--ink);
  border: 2px solid transparent;
  transition: border-color .15s, transform .15s;
}
.route:hover { border-color: var(--brand-primary); color: var(--ink); transform: translateY(-2px); }
.route-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-primary-tint); color: var(--brand-primary);
  margin-bottom: var(--space-2);
}
.route-icon svg { width: 26px; height: 26px; }
.route strong { font-size: var(--text-lg); }
.route span { color: var(--ink-muted); font-size: var(--text-sm); }
.route--hire .route-icon { background: var(--brand-accent-tint); color: var(--brand-accent-dark); }

@media (max-width: 960px) { .quick-routes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .quick-routes { grid-template-columns: 1fr; gap: var(--space-3); }
  .route { flex-direction: row; align-items: center; padding: var(--space-4); }
  .route-icon { margin: 0; flex-shrink: 0; }
  .route > span:not(.route-icon) { display: none; }
}

/* --- Filter chips --------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.chip {
  min-height: 44px; padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  border: 2px solid var(--line); background: var(--surface);
  font: inherit; font-weight: var(--weight-semibold); font-size: var(--text-sm);
  color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: var(--brand-primary); }
.chip[aria-pressed="true"] { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }

/* --- Event cards ---------------------------------------------------------- */
.card-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.event-card {
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow .15s;
}
.event-card:hover { box-shadow: var(--shadow-md); }
.event-card:hover .arrow-btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.event-card--featured { background: var(--brand-accent-tint); border-color: var(--brand-accent); }
.event-media { position: relative; }
.event-card .photo { aspect-ratio: 4 / 3; height: auto; }
.event-tags { position: absolute; left: var(--space-3); bottom: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.event-tags .tag { box-shadow: var(--shadow-sm); }
.event-body { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; flex: 1; }
.event-date { font-size: var(--text-sm); font-weight: var(--weight-bold); margin: 0 0 var(--space-2); }
.event-body h3 { font-size: var(--text-xl); margin: 0 0 var(--space-2); }
.event-desc { color: var(--ink-muted); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.event-body h3 a { color: var(--ink); text-decoration: none; }
.event-body h3 a:hover { text-decoration: underline; }
.event-body h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.event-card { position: relative; }

.facts { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-1); font-size: var(--text-sm); color: var(--ink-muted); }
.facts li { display: flex; gap: var(--space-2); align-items: flex-start; }
.facts svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--ink); }
.facts strong { color: var(--ink); font-weight: var(--weight-semibold); }

.event-foot {
  margin-top: auto; padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
}

.tag {
  display: inline-flex; align-self: flex-start; align-items: center;
  padding: 2px var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: var(--weight-bold);
  letter-spacing: .02em;
}
.tag--families { background: var(--aud-families-tint); color: #9b2c28; }
.tag--young { background: var(--aud-young-tint); color: #23479a; }
.tag--adults { background: var(--aud-adults-tint); color: #563290; }
.tag--elders { background: var(--aud-elders-tint); color: #135c5c; }
.tag--help { background: var(--aud-help-tint); color: #4a4a1c; }
.tag--new { background: var(--brand-accent); color: var(--ink); }
.tag--plain { background: var(--surface); color: var(--ink); }

/* Round arrow button (Albany-style) */
.arrow-btn {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%; border: 2px solid var(--ink);
  display: grid; place-items: center;
  color: var(--ink); background: transparent;
  transition: background-color .15s, color .15s;
}
.arrow-btn svg { width: 20px; height: 20px; }

/* --- Tabs (Barbican-style "This week") ----------------------------------- */
.display { font-size: var(--text-3xl); font-weight: var(--weight-heavy); letter-spacing: -0.01em; }
.tabs {
  display: flex; gap: var(--space-5);
  border-bottom: 2px solid var(--line);
  margin-bottom: var(--space-5);
  overflow-x: auto; scrollbar-width: none;
}
.tab {
  min-height: var(--tap-target);
  padding: 0 var(--space-1);
  border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: var(--weight-bold); font-size: var(--text-base);
  color: var(--ink-muted);
  border-bottom: 4px solid transparent; margin-bottom: -2px;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand-primary); }

.status { display: inline-flex; align-items: center; gap: var(--space-2); }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.status--available { color: var(--status-available); }
.status--limited { color: var(--status-limited); }
.status--waiting { color: var(--status-waiting); }
.status--dropin { color: var(--ink-muted); }

.empty-note { display: none; padding: var(--space-5); background: var(--surface); border-radius: var(--radius-md); border: 1px dashed var(--line); }

/* --- Get help ------------------------------------------------------------- */
.help-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr 1.3fr; align-items: start; }
@media (max-width: 860px) { .help-grid { grid-template-columns: 1fr; } }
.help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.help-item {
  display: flex; align-items: center; gap: var(--space-4);
  background: var(--surface); border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--line);
}
.help-item:hover { border-color: var(--brand-primary); color: var(--ink); }
.help-item strong { display: block; font-size: var(--text-lg); }
.help-item span { color: var(--ink-muted); font-size: var(--text-sm); }
.help-item::after { content: "→"; margin-left: auto; font-weight: var(--weight-bold); color: var(--brand-primary); }
.urgent {
  margin-top: var(--space-5);
  background: var(--surface); border-left: 6px solid var(--brand-accent);
  border-radius: var(--radius-md); padding: var(--space-5);
}
.urgent h3 { margin-bottom: var(--space-2); }
.urgent a.tel { font-size: var(--text-xl); font-weight: var(--weight-heavy); text-decoration: none; }

/* --- Newsletter ----------------------------------------------------------- */
.newsletter { text-align: center; max-width: 640px; margin: 0 auto; }
.newsletter p { color: var(--ink-muted); }
.newsletter form { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.newsletter input {
  flex: 1; min-height: var(--tap-target);
  border: 2px solid var(--line); border-radius: var(--radius-pill);
  padding: 0 var(--space-5); font: inherit;
}
.newsletter input:focus { border-color: var(--brand-primary); outline: none; box-shadow: 0 0 0 3px var(--brand-primary-tint); }
@media (max-width: 520px) { .newsletter form { flex-direction: column; } }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--surface-dark); color: var(--on-dark); padding: var(--space-8) 0 var(--space-5); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-muted); margin-bottom: var(--space-4); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-about p { color: var(--on-dark-muted); font-size: var(--text-sm); }
.footer-about .logo { color: var(--on-dark); margin-bottom: var(--space-4); }
.footer-about .logo-text small { color: var(--on-dark-muted); }
.socials { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; font-size: var(--text-xs); font-weight: var(--weight-bold); }
.footer-base {
  margin-top: var(--space-7); padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
  font-size: var(--text-xs); color: var(--on-dark-muted);
}
.footer-base ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer-base a { color: var(--on-dark-muted); }


/* --- Large photo cards (Albany-style Visit / Take part / Spaces) ---------- */
.photo-cards { display: grid; gap: var(--space-5); }
.photo-cards--4 { grid-template-columns: repeat(4, 1fr); }
.photo-cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .photo-cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .photo-cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .photo-cards--4, .photo-cards--3 { grid-template-columns: 1fr; } }

.photo-card {
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius-md);
  overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s;
}
.photo-card:hover { color: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.photo-card:hover .arrow-btn { background: var(--ink); color: #fff; }
.photo-card .photo { aspect-ratio: 4 / 3; height: auto; }
.photo-card-body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.photo-card-body h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.photo-card-body p { color: var(--ink-muted); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.photo-card-body .arrow-btn { margin-top: auto; }
.photo-card--hire { background: var(--brand-accent-tint); }

/* --- Impact colour block (Albany-style) ----------------------------------- */
.impact-block {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--brand-accent);
  min-height: 520px;
}
.impact-photo { min-height: 320px; }
.impact-panel {
  padding: var(--space-8) clamp(var(--space-5), 5vw, var(--space-8));
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-5);
  color: var(--ink);
}
.impact-kicker {
  align-self: flex-start;
  background: var(--ink); color: var(--brand-accent);
  font-size: var(--text-xs); font-weight: var(--weight-bold);
  padding: 2px var(--space-3); border-radius: var(--radius-pill);
}
.impact-statement {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  font-weight: var(--weight-heavy); line-height: 1.1; margin: 0;
  max-width: 20ch;
}
.impact-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); border-top: 2px solid rgba(29,36,34,.25); padding-top: var(--space-4); }
.impact-stats strong { display: block; font-size: var(--text-2xl); font-weight: var(--weight-heavy); line-height: 1.1; }
.impact-stats span { font-size: var(--text-sm); }
.btn--dark { background: var(--ink); color: #fff; align-self: flex-start; }
.btn--dark:hover { background: #000; color: #fff; }
.placeholder-value { border-bottom: 2px dotted currentColor; }
@media (max-width: 860px) {
  .impact-block { grid-template-columns: 1fr; }
  .impact-photo { aspect-ratio: 16 / 10; min-height: 0; }
  .impact-panel { padding: var(--space-7) var(--gutter); }
}
@media (max-width: 480px) { .impact-stats { grid-template-columns: 1fr; } }

/* --- Inline donation form (Albany-style) ---------------------------------- */
.donate-section { background: var(--brand-primary); color: #fff; }
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }
@media (max-width: 860px) { .donate-grid { grid-template-columns: 1fr; gap: var(--space-6); } }
.donate-intro h2 { color: #fff; font-size: var(--text-3xl); font-weight: var(--weight-heavy); }
.donate-intro p { color: rgba(255,255,255,.88); max-width: 44ch; }
.donate-intro .eyebrow { color: var(--brand-accent); }
.ways { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-1); }
.ways a { color: #fff; font-weight: var(--weight-bold); display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; }
.ways a::after { content: "→"; }

.donate-card {
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow-md);
}
.donate-card h3 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.donate-card fieldset { border: 0; padding: 0; margin: 0 0 var(--space-4); }
.donate-label { display: block; font-size: var(--text-sm); font-weight: var(--weight-bold); margin-bottom: var(--space-2); padding: 0; }
.donate-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-alt); border-radius: var(--radius-pill); padding: 4px; }
.segmented label {
  min-height: 44px; display: grid; place-items: center;
  border-radius: var(--radius-pill); cursor: pointer;
  font-weight: var(--weight-bold);
}
.segmented input:checked + label { background: var(--ink); color: #fff; }
.segmented input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

.amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-2); }
.amounts legend { grid-column: 1 / -1; }
.amounts label {
  min-height: var(--tap-target); display: grid; place-items: center;
  border: 2px solid var(--line); border-radius: var(--radius-md);
  font-weight: var(--weight-bold); font-size: var(--text-lg); cursor: pointer;
}
.amounts label:hover { border-color: var(--ink); }
.amounts input:checked + label { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.amounts input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 420px) { .amounts { grid-template-columns: repeat(3, 1fr); } }

.amount-input {
  display: flex; align-items: center; gap: var(--space-2);
  border: 2px solid var(--line); border-radius: var(--radius-md);
  padding: 0 var(--space-4); min-height: var(--tap-target);
  font-weight: var(--weight-bold);
}
.amount-input:focus-within { border-color: var(--brand-primary); box-shadow: 0 0 0 3px var(--brand-primary-tint); }
.amount-input input { border: 0; outline: none; font: inherit; flex: 1; min-width: 0; background: transparent; }

.donate-impact {
  margin: var(--space-4) 0; padding: var(--space-3) var(--space-4);
  background: var(--brand-accent-tint); border-radius: var(--radius-md);
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
}
.btn--block { width: 100%; font-size: var(--text-lg); min-height: 56px; }
.donate-secure { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--text-xs); color: var(--ink-muted); margin: var(--space-3) 0 0; }
.donate-secure svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
@media (max-width: 420px) {
  .tabs { gap: var(--space-4); }
  .tab { font-size: var(--text-sm); }
}

/* ==========================================================================
   Inner pages: What's On listing and event detail
   ========================================================================== */

/* --- Page header + breadcrumb --------------------------------------------- */
.page-head { background: var(--surface-alt); padding: var(--space-5) 0 var(--space-7); }
.breadcrumb { font-size: var(--text-sm); margin-bottom: var(--space-5); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--ink-muted); }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: var(--weight-semibold); }
.page-head .lede { font-size: var(--text-lg); color: var(--ink-muted); max-width: 52ch; margin: 0; }

/* --- Filter bar ------------------------------------------------------------ */
.filters {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-5);
  margin-top: calc(-1 * var(--space-6)); position: relative;
  box-shadow: var(--shadow-sm);
}
.filters .chips { margin-bottom: var(--space-4); }
.filter-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: end; }
.field { display: grid; gap: var(--space-1); }
.field label, .field-label { font-size: var(--text-sm); font-weight: var(--weight-bold); }
.select {
  min-height: var(--tap-target); min-width: 180px;
  border: 2px solid var(--line); border-radius: var(--radius-md);
  padding: 0 var(--space-6) 0 var(--space-4);
  font: inherit; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d2422' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; color: var(--ink);
}
.select:focus { border-color: var(--brand-primary); outline: none; box-shadow: 0 0 0 3px var(--brand-primary-tint); }
.check {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: var(--tap-target); padding: 0 var(--space-4);
  border: 2px solid var(--line); border-radius: var(--radius-pill);
  font-weight: var(--weight-semibold); font-size: var(--text-sm); cursor: pointer;
}
.check input { width: 20px; height: 20px; accent-color: var(--brand-primary); margin: 0; }
.check:has(input:checked) { border-color: var(--brand-primary); background: var(--brand-primary-tint); }
.filter-clear { margin-left: auto; background: none; border: 0; font: inherit; font-weight: var(--weight-bold); color: var(--brand-primary); text-decoration: underline; cursor: pointer; min-height: var(--tap-target); }

.filters-toggle { display: none; width: 100%; justify-content: space-between; }
@media (max-width: 760px) {
  .filters { padding: var(--space-4); }
  .filters-toggle { display: flex; }
  .filters-body { display: none; margin-top: var(--space-4); }
  .filters.is-open .filters-body { display: block; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .select { width: 100%; }
  .filter-clear { margin-left: 0; text-align: left; }
}

/* --- Results bar + view switch -------------------------------------------- */
.results-bar { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; margin: var(--space-6) 0 var(--space-5); }
.results-count { font-weight: var(--weight-bold); margin: 0; }
.view-switch { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--surface-alt); border-radius: var(--radius-pill); padding: 4px; }
.view-switch button {
  min-height: 40px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-pill);
  background: none; font: inherit; font-weight: var(--weight-bold); font-size: var(--text-sm); cursor: pointer; color: var(--ink);
}
.view-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.load-more { display: flex; justify-content: center; margin-top: var(--space-6); }

/* --- By-day view ----------------------------------------------------------- */
.day-group { margin-bottom: var(--space-6); }
.day-group h2 { font-size: var(--text-xl); padding-bottom: var(--space-2); border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.day-list { list-style: none; margin: 0; padding: 0; }
.day-item {
  position: relative;
  display: grid; grid-template-columns: 130px 1fr auto; gap: var(--space-4); align-items: center;
  padding: var(--space-4) 0; border-bottom: 1px solid var(--line);
}
.day-item:hover { background: var(--surface-alt); }
.day-time { font-weight: var(--weight-bold); }
.day-main h3 { font-size: var(--text-base); margin: 0 0 2px; }
.day-main h3 a { color: var(--ink); text-decoration: none; }
.day-main h3 a::after { content: ""; position: absolute; inset: 0; }
.day-main h3 a:hover { text-decoration: underline; }
.day-meta { font-size: var(--text-sm); color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); align-items: center; }
.day-item .status { font-size: var(--text-sm); font-weight: var(--weight-semibold); white-space: nowrap; }
@media (max-width: 620px) {
  .day-item { grid-template-columns: 1fr; gap: var(--space-1); }
}

/* --- Help strip ------------------------------------------------------------ */
.help-strip {
  display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between;
  background: var(--brand-primary-tint); border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6); margin-top: var(--space-7);
}
.help-strip p { margin: 0; max-width: 56ch; }
.help-strip strong { display: block; font-size: var(--text-lg); }

/* --- Event detail ---------------------------------------------------------- */
.detail-hero { position: relative; }
.detail-hero .photo { aspect-ratio: 21 / 8; min-height: 260px; border-radius: 0; }
.detail-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-7);
  align-items: start; padding: var(--space-7) 0 var(--space-8);
}
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; gap: var(--space-6); } }
.detail-main > .tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.detail-main h1 { margin-bottom: var(--space-4); }
.detail-main .lede { font-size: var(--text-lg); color: var(--ink-muted); }
.detail-main h2 { font-size: var(--text-xl); margin-top: var(--space-7); }
.detail-main ul.ticks { padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.detail-main ul.ticks li { padding-left: 32px; position: relative; }
.detail-main ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-primary-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%231f5c4a' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
}

.key-details {
  position: sticky; top: 100px;
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.key-details h2 { font-size: var(--text-lg); margin-bottom: var(--space-4); }
.kd-list { margin: 0 0 var(--space-5); display: grid; gap: var(--space-3); }
.kd-list div { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-2) var(--space-3); align-items: start; }
.kd-list svg { width: 22px; height: 22px; margin-top: 2px; }
.kd-list dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; font-weight: var(--weight-bold); color: var(--ink-muted); grid-column: 2; }
.kd-list dd { margin: 0; font-weight: var(--weight-semibold); grid-column: 2; }
.kd-list div > svg { grid-row: 1 / span 2; }
.kd-actions { display: grid; gap: var(--space-3); }
.kd-actions .btn { width: 100%; }
.kd-note {
  margin-top: var(--space-4); padding: var(--space-3) var(--space-4);
  border: 2px dashed var(--line); border-radius: var(--radius-md);
  font-size: var(--text-sm);
}
.contact-card { display: flex; gap: var(--space-4); align-items: center; margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.contact-card .avatar { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.contact-card p { margin: 0; font-size: var(--text-sm); }
.contact-card strong { display: block; font-size: var(--text-base); }

.map { aspect-ratio: 16 / 9; border-radius: var(--radius-md); margin-bottom: var(--space-4); }
.getting-here { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (max-width: 620px) { .getting-here { grid-template-columns: 1fr; } }
.getting-here div { background: var(--surface-alt); border-radius: var(--radius-md); padding: var(--space-4); font-size: var(--text-sm); }
.getting-here strong { display: block; font-size: var(--text-base); margin-bottom: var(--space-1); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; min-height: var(--tap-target);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: var(--space-3) 0; font-weight: var(--weight-bold);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand-primary); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-muted); }

.safeguard { display: flex; gap: var(--space-3); background: var(--surface-alt); border-radius: var(--radius-md); padding: var(--space-4); font-size: var(--text-sm); margin-top: var(--space-5); }

/* Registration form */
.register { background: var(--surface-alt); border-radius: var(--radius-lg); padding: var(--space-6); margin-top: var(--space-7); }
.register h2 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.input {
  width: 100%; min-height: var(--tap-target);
  border: 2px solid var(--line); border-radius: var(--radius-md);
  padding: 0 var(--space-4); font: inherit; background: var(--surface);
}
textarea.input { padding: var(--space-3) var(--space-4); min-height: 110px; resize: vertical; }
.input:focus { border-color: var(--brand-primary); outline: none; box-shadow: 0 0 0 3px var(--brand-primary-tint); }
.hint { font-size: var(--text-xs); color: var(--ink-muted); font-weight: var(--weight-regular); }
.form-success { display: none; background: var(--brand-primary-tint); border-left: 6px solid var(--brand-primary); padding: var(--space-4); border-radius: var(--radius-md); margin-top: var(--space-4); }

.share { display: flex; gap: var(--space-2); align-items: center; margin-top: var(--space-5); font-size: var(--text-sm); font-weight: var(--weight-bold); }
.share a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); text-decoration: none; font-size: var(--text-xs); }

/* Sticky mobile action bar */
.mobile-cta { display: none; }
@media (max-width: 960px) {
  .key-details { position: static; }
  .mobile-cta {
    display: flex; gap: var(--space-3); align-items: center; justify-content: space-between;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(23,33,30,.08);
    padding: var(--space-3) var(--gutter);
  }
  .mobile-cta p { margin: 0; font-size: var(--text-sm); line-height: 1.3; }
  .mobile-cta strong { display: block; }
  .has-mobile-cta { padding-bottom: 80px; }
}
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brand-primary); border-radius: 0; }
/* Compact key-details rows: icon · label · value on one line */
.kd-list { gap: var(--space-2); }
.kd-list div { grid-template-columns: 24px 104px 1fr; gap: var(--space-3); align-items: center; }
.kd-list div > svg { grid-row: auto; width: 20px; height: 20px; margin: 0; }
.kd-list dt { grid-column: 2; }
.kd-list dd { grid-column: 3; }
.key-details { padding: var(--space-5); }
.key-details .contact-card { margin-top: var(--space-4); padding-top: var(--space-4); }

/* ==========================================================================
   Our Centres + single centre page
   ========================================================================== */

/* --- Schematic map with pins --------------------------------------------- */
.centre-map {
  position: relative; aspect-ratio: 21 / 9; min-height: 280px;
  border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, #dbe7e1 0 18%, transparent 19%),
    radial-gradient(circle at 75% 70%, #dbe7e1 0 14%, transparent 15%),
    linear-gradient(115deg, transparent 47%, #c8d6de 47% 50%, transparent 50%),
    linear-gradient(20deg, transparent 60%, #e6ece9 60% 62%, transparent 62%),
    linear-gradient(160deg, transparent 30%, #e6ece9 30% 32%, transparent 32%),
    #eef2ef;
  border: 1px solid var(--line);
  margin-top: calc(-1 * var(--space-6));
}
.centre-map .map-label { position: absolute; left: var(--space-4); top: var(--space-4); background: rgba(255,255,255,.9); padding: 2px var(--space-2); border-radius: var(--radius-sm); font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--ink-muted); }
.pin {
  position: absolute; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; cursor: pointer; font: inherit; padding: 0;
}
.pin-dot {
  width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--brand-primary); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md); border: 3px solid #fff;
}
.pin-dot span { transform: rotate(45deg); font-weight: var(--weight-heavy); font-size: var(--text-sm); }
.pin-name { background: var(--surface); padding: 2px var(--space-2); border-radius: var(--radius-sm); font-size: var(--text-xs); font-weight: var(--weight-bold); white-space: nowrap; box-shadow: var(--shadow-sm); }
.pin:hover .pin-dot, .pin[aria-pressed="true"] .pin-dot { background: var(--brand-accent); color: var(--ink); }
@media (max-width: 620px) { .pin-name { display: none; } .centre-map { aspect-ratio: 4 / 3; } }

/* --- Centre cards ---------------------------------------------------------- */
.centre-cards { display: grid; gap: var(--space-5); grid-template-columns: repeat(3, 1fr); margin-top: var(--space-6); }
@media (max-width: 1024px) { .centre-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .centre-cards { grid-template-columns: 1fr; } }
.centre-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s, border-color .2s;
}
.centre-card.is-highlighted { border-color: var(--brand-accent); box-shadow: 0 0 0 3px var(--brand-accent); }
.centre-card .photo { aspect-ratio: 16 / 10; height: auto; position: relative; }
.centre-num {
  position: absolute; right: var(--space-3); top: var(--space-3);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-primary); color: #fff; display: grid; place-items: center;
  font-weight: var(--weight-heavy); font-size: var(--text-sm);
}
.centre-card-body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.centre-card-body h2 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.centre-card-body h2 a { color: var(--ink); text-decoration: none; }
.centre-card-body h2 a:hover { text-decoration: underline; }
.centre-card-body .facts { margin-bottom: var(--space-4); }
.offer-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.offer-tags .tag { background: var(--surface-alt); color: var(--ink); }
.centre-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.open-now { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--status-available); display: inline-flex; align-items: center; gap: var(--space-2); }
.open-now::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }

.also-run {
  display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between;
  border: 2px dashed var(--line); border-radius: var(--radius-lg); padding: var(--space-5); margin-top: var(--space-6);
}
.also-run p { margin: 0; }
.todo { background: #fff3c4; color: #6b4e00; font-size: var(--text-xs); font-weight: var(--weight-bold); padding: 2px var(--space-2); border-radius: var(--radius-sm); white-space: nowrap; }

/* --- Plan your visit band --------------------------------------------------- */
.visit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 960px) { .visit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .visit-grid { grid-template-columns: 1fr; } }
.visit-item { background: var(--surface); border-radius: var(--radius-md); padding: var(--space-5); }
.visit-item svg { width: 28px; height: 28px; color: var(--brand-primary); margin-bottom: var(--space-3); }
.visit-item h3 { margin-bottom: var(--space-2); }
.visit-item p { font-size: var(--text-sm); color: var(--ink-muted); }

/* --- Single centre: hero + info bar ---------------------------------------- */
.centre-hero { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 440px; background: var(--surface-alt); }
.centre-hero-text { padding: var(--space-7) clamp(var(--space-5), 5vw, var(--space-8)); display: flex; flex-direction: column; justify-content: center; }
.centre-hero-text .breadcrumb { margin-bottom: var(--space-5); }
.centre-hero-text .lede { font-size: var(--text-lg); color: var(--ink-muted); max-width: 40ch; }
.centre-hero .photo { min-height: 300px; border-radius: 0; }
@media (max-width: 860px) {
  .centre-hero { grid-template-columns: 1fr; }
  .centre-hero .photo { order: -1; aspect-ratio: 16 / 10; min-height: 0; }
  .centre-hero-text { padding: var(--space-6) var(--gutter); }
}
.info-bar { background: var(--ink); color: #fff; }
.info-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.info-bar .container > * { padding: var(--space-4) var(--space-4); border-left: 1px solid rgba(255,255,255,.15); display: flex; gap: var(--space-3); align-items: center; min-height: 76px; }
.info-bar .container > *:first-child { border-left: 0; padding-left: 0; }
.info-bar svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--brand-accent); }
.info-bar small { display: block; font-size: var(--text-xs); color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: var(--weight-bold); }
.info-bar a { color: #fff; font-weight: var(--weight-bold); }
.info-bar strong { font-weight: var(--weight-bold); }
@media (max-width: 860px) {
  .info-bar .container { grid-template-columns: 1fr 1fr; }
  .info-bar .container > * { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.15); }
}
@media (max-width: 480px) { .info-bar .container { grid-template-columns: 1fr; } }

/* --- In-page section nav ---------------------------------------------------- */
.subnav { position: sticky; top: 76px; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-5); overflow-x: auto; scrollbar-width: none; }
.subnav a { display: flex; align-items: center; min-height: 56px; white-space: nowrap; color: var(--ink); font-weight: var(--weight-bold); text-decoration: none; border-bottom: 4px solid transparent; }
.subnav a:hover, .subnav a.is-active { border-bottom-color: var(--brand-primary); }
.centre-page [id] { scroll-margin-top: 150px; }

/* --- Services at this centre ------------------------------------------------ */
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
@media (max-width: 760px) { .service-list { grid-template-columns: 1fr; } }
.service {
  display: grid; grid-template-columns: 160px 1fr; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
}
.service .photo { height: 100%; min-height: 160px; }
.service-body { padding: var(--space-5); display: flex; flex-direction: column; }
.service-body h3 { margin-bottom: var(--space-2); }
.service-body p { font-size: var(--text-sm); color: var(--ink-muted); margin-bottom: var(--space-3); }
.service-contact { font-size: var(--text-sm); margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.service-contact strong { display: block; }
@media (max-width: 460px) { .service { grid-template-columns: 1fr; } .service .photo { aspect-ratio: 16 / 9; min-height: 0; } }

/* --- Rooms for hire --------------------------------------------------------- */
.rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 1024px) { .rooms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .rooms { grid-template-columns: 1fr; } }
.room { background: var(--surface); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.room .photo { aspect-ratio: 4 / 3; height: auto; }
.room-body { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; flex: 1; }
.room-body h3 { margin-bottom: var(--space-2); }
.room-specs { list-style: none; margin: 0 0 var(--space-4); padding: 0; font-size: var(--text-sm); color: var(--ink-muted); display: grid; gap: 2px; }
.room-specs strong { color: var(--ink); }
.room-price { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); font-weight: var(--weight-bold); }

/* --- Opening hours ------------------------------------------------------------ */
.visit-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-7); align-items: start; }
@media (max-width: 860px) { .visit-layout { grid-template-columns: 1fr; gap: var(--space-6); } }
.hours { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
.hours th, .hours td { text-align: left; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: var(--weight-semibold); }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: var(--weight-heavy); color: var(--brand-primary); }
.hours caption { text-align: left; font-weight: var(--weight-bold); font-size: var(--text-lg); margin-bottom: var(--space-2); }

/* --- Contact people ------------------------------------------------------------ */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
@media (max-width: 960px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .people { grid-template-columns: 1fr; } }
.person { display: flex; gap: var(--space-3); align-items: center; background: var(--surface); border-radius: var(--radius-md); padding: var(--space-4); }
.person .photo { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; padding: 0; }
.person p { margin: 0; font-size: var(--text-sm); }
.person strong { display: block; font-size: var(--text-base); }
.photo .centre-num { background: var(--brand-primary); color: #fff; padding: 0; border-radius: 50%; }
.todo { white-space: normal; }
.centre-map { width: 100%; }
.centre-map .map-label { right: var(--space-4); }
@media (max-width: 620px) { .centre-map { min-height: 0; } }
@media (max-width: 620px) { .centre-map .map-label { display: none; } }

/* ==========================================================================
   Hire a space
   ========================================================================== */
.hire-hero { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--brand-accent); min-height: 480px; }
.hire-hero-text { padding: var(--space-7) clamp(var(--space-5), 5vw, var(--space-8)); display: flex; flex-direction: column; justify-content: center; }
.hire-hero-text .breadcrumb a, .hire-hero-text .breadcrumb li + li::before { color: var(--ink); }
.hire-hero-text .lede { font-size: var(--text-lg); max-width: 40ch; }
.hire-hero .photo { min-height: 300px; border-radius: 0; }
.hire-stats { display: flex; flex-wrap: wrap; gap: var(--space-6); margin: var(--space-5) 0; }
.hire-stats strong { display: block; font-size: var(--text-2xl); font-weight: var(--weight-heavy); line-height: 1.1; }
.hire-stats span { font-size: var(--text-sm); }
@media (max-width: 860px) {
  .hire-hero { grid-template-columns: 1fr; }
  .hire-hero .photo { order: -1; aspect-ratio: 16 / 9; min-height: 0; }
  .hire-hero-text { padding: var(--space-6) var(--gutter); }
}

.rooms--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .rooms--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .rooms--3 { grid-template-columns: 1fr; } }
.room { border: 1px solid var(--line); }
.room .event-media .event-tags { left: var(--space-3); }
.room-uses { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-bottom: var(--space-4); }
.room-uses span { font-size: var(--text-xs); font-weight: var(--weight-semibold); background: var(--surface-alt); padding: 2px var(--space-2); border-radius: var(--radius-sm); }
.room-centre { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--brand-primary); margin: 0 0 var(--space-1); }

.rates { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; }
.rates th, .rates td { padding: var(--space-4); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.rates thead th { background: var(--ink); color: #fff; font-size: var(--text-sm); }
.rates tbody th { font-weight: var(--weight-bold); }
.rates td small { display: block; color: var(--ink-muted); font-size: var(--text-xs); }
.table-scroll { overflow-x: auto; border-radius: var(--radius-md); }
.table-scroll .rates { min-width: 560px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--radius-md); padding: var(--space-5); position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; margin-bottom: var(--space-3);
  background: var(--brand-accent); color: var(--ink); font-weight: var(--weight-heavy);
}
.steps h3 { margin-bottom: var(--space-2); }
.steps p { font-size: var(--text-sm); color: var(--ink-muted); margin: 0; }

.enquiry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-7); align-items: start; }
@media (max-width: 960px) { .enquiry-layout { grid-template-columns: 1fr; gap: var(--space-6); } }
.enquiry-form { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-6); border: 1px solid var(--line); }
.enquiry-form fieldset { border: 0; padding: 0; margin: 0 0 var(--space-5); }
.enquiry-form legend { font-size: var(--text-lg); font-weight: var(--weight-bold); margin-bottom: var(--space-3); padding: 0; }
.enquiry-form .select { width: 100%; min-width: 0; }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 620px) { .form-grid--3 { grid-template-columns: 1fr; } }
.field .check { min-height: 44px; }
.aside-card { background: var(--surface-alt); border-radius: var(--radius-lg); padding: var(--space-5); }
.aside-card + .aside-card { margin-top: var(--space-4); }
.aside-card h3 { margin-bottom: var(--space-2); }
.aside-card p { font-size: var(--text-sm); }
.req { color: var(--aud-families); }

/* ==========================================================================
   Take Part, Get Help, Support Us, About
   ========================================================================== */

/* Split block: text beside a photo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split .photo { aspect-ratio: 4 / 3; height: auto; border-radius: var(--radius-lg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--space-5); } .split--reverse > :first-child { order: 0; } }

/* Audience section header with colour stripe */
.audience-section { border-top: 8px solid var(--pc, var(--brand-primary)); }
.programme-list { list-style: none; margin: var(--space-5) 0; padding: 0; display: grid; gap: var(--space-2); }
.programme-list a {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  min-height: 56px; padding: var(--space-3) var(--space-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  color: var(--ink); text-decoration: none; font-weight: var(--weight-bold);
}
.programme-list a:hover { border-color: var(--ink); }
.programme-list a span { font-weight: var(--weight-regular); color: var(--ink-muted); font-size: var(--text-sm); display: block; }
.programme-list a::after { content: "→"; color: var(--brand-primary); }

/* Jump links */
.jump-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.jump-links a {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4);
  border-radius: var(--radius-pill); background: var(--surface); border: 2px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: var(--weight-semibold); font-size: var(--text-sm);
}
.jump-links a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pc, var(--brand-primary)); }
.jump-links a:hover { border-color: var(--ink); }

/* Checkbox grid in forms */
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
@media (max-width: 520px) { .check-grid { grid-template-columns: 1fr; } }
.check-grid .check { border-radius: var(--radius-md); justify-content: flex-start; }

/* Urgent help banner */
.urgent-banner {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--space-5);
  background: var(--surface); border-left: 8px solid var(--brand-accent);
  border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-md);
  margin-top: calc(-1 * var(--space-6)); position: relative;
}
.urgent-banner h2 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.urgent-banner .tel { font-size: var(--text-2xl); font-weight: var(--weight-heavy); text-decoration: none; display: block; }
.urgent-banner p { margin: 0; font-size: var(--text-sm); }
.urgent-banner > div + div { border-left: 1px solid var(--line); padding-left: var(--space-5); }
@media (max-width: 860px) {
  .urgent-banner { grid-template-columns: 1fr; }
  .urgent-banner > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--space-4); }
}

.calm-head { background: var(--brand-primary-tint); }
.what-to-expect { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-4); }
@media (max-width: 760px) { .what-to-expect { grid-template-columns: 1fr; } }
.what-to-expect div { background: var(--surface-alt); border-radius: var(--radius-md); padding: var(--space-4); font-size: var(--text-sm); }
.what-to-expect strong { display: block; font-size: var(--text-base); margin-bottom: var(--space-1); }

.lang-note { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; font-size: var(--text-sm); }
.lang-note span { font-weight: var(--weight-semibold); }

/* Ways to help grid */
.ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 960px) { .ways-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ways-grid { grid-template-columns: 1fr; } }
.way {
  position: relative; display: flex; flex-direction: column; gap: var(--space-2);
  background: var(--surface); border-radius: var(--radius-md); padding: var(--space-5);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.way:hover { border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow-md); }
.way:hover .arrow-btn { background: var(--ink); color: #fff; }
.way .route-icon { margin: 0 0 var(--space-2); }
.way h3 { margin: 0; }
.way p { font-size: var(--text-sm); color: var(--ink-muted); margin: 0 0 var(--space-3); }
.way .arrow-btn { margin-top: auto; }

/* Impact examples */
.impact-examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 760px) { .impact-examples { grid-template-columns: 1fr; } }
.impact-examples div { background: var(--brand-accent-tint); border-radius: var(--radius-md); padding: var(--space-5); }
.impact-examples strong { display: block; font-size: var(--text-3xl); font-weight: var(--weight-heavy); line-height: 1; margin-bottom: var(--space-2); }

.story-card .photo { aspect-ratio: 4 / 3; height: auto; }
.trust-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin-top: var(--space-6); }
.trust-mark { border: 2px dashed var(--line); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--ink-muted); }

.giftaid { display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: center; background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-6); }
.giftaid-badge { width: 96px; height: 96px; border-radius: 50%; background: var(--brand-primary); color: #fff; display: grid; place-items: center; text-align: center; font-weight: var(--weight-heavy); line-height: 1.1; font-size: var(--text-sm); }
.giftaid-badge strong { display: block; font-size: var(--text-xl); }
@media (max-width: 520px) { .giftaid { grid-template-columns: 1fr; } }

/* About */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }
.value { border-top: 4px solid var(--brand-accent); padding-top: var(--space-4); }
.value h3 { margin-bottom: var(--space-2); }
.value p { font-size: var(--text-sm); color: var(--ink-muted); margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--brand-primary-tint); }
.timeline li { position: relative; padding: 0 0 var(--space-5) var(--space-6); }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--brand-primary); border: 3px solid var(--surface); }
.timeline strong { display: block; font-size: var(--text-lg); color: var(--brand-primary); }
.timeline p { margin: 0; color: var(--ink-muted); }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (max-width: 620px) { .doc-list { grid-template-columns: 1fr; } }
.doc-list a {
  display: flex; align-items: center; gap: var(--space-4); min-height: 64px;
  padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  color: var(--ink); text-decoration: none; font-weight: var(--weight-bold);
}
.doc-list a:hover { border-color: var(--ink); }
.doc-list .doc-icon { width: 40px; height: 48px; border-radius: 4px; background: var(--brand-primary-tint); color: var(--brand-primary); display: grid; place-items: center; font-size: var(--text-xs); font-weight: var(--weight-heavy); flex-shrink: 0; }
.doc-list small { display: block; font-weight: var(--weight-regular); color: var(--ink-muted); }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 960px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .team { grid-template-columns: repeat(2, 1fr); } }
.member .photo { aspect-ratio: 1; height: auto; border-radius: var(--radius-md); margin-bottom: var(--space-3); }
.member strong { display: block; }
.member span { font-size: var(--text-sm); color: var(--ink-muted); }

.logo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-4); }
@media (max-width: 860px) { .logo-strip { grid-template-columns: repeat(3, 1fr); } }
.logo-strip div { aspect-ratio: 3 / 2; border: 2px dashed var(--line); border-radius: var(--radius-md); display: grid; place-items: center; font-size: var(--text-xs); color: var(--ink-muted); font-weight: var(--weight-semibold); text-align: center; padding: var(--space-2); }
/* audience colours are too light for small text; keep eyebrows dark, colour lives in the stripe */
.audience-section .eyebrow { color: var(--ink) !important; }
.audience-section .eyebrow::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--pc); margin-right: var(--space-2); }
.team { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* ==========================================================================
   BRAND LAYER — UPG Brand Guidelines v1.0 (draft, October 2026)
   ========================================================================== */

/* Typography: Cubano for display headlines, Poppins Bold (tight) for headlines */
h1, h2, h3, h4 { letter-spacing: var(--tracking-headline); }
h1, .display, .impact-statement, .donate-intro h2,
.hire-stats strong, .impact-stats strong, .impact-examples strong, .giftaid-badge strong, .stat strong {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; line-height: 1.02;
}
h1, .display { text-transform: uppercase; }
.impact-statement { text-transform: uppercase; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); max-width: 18ch; }

/* Section labels: short dash above uppercase tracked text (guidelines' page titles) */
.eyebrow {
  display: block; color: var(--ink);
  font-size: var(--text-xs); font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.eyebrow::before { content: ""; display: block; width: 40px; height: 3px; background: currentColor; margin-bottom: var(--space-3); }
.audience-section .eyebrow::before { width: 40px; height: 3px; border-radius: 0; display: block; margin: 0 0 var(--space-3); background: var(--pc); }

/* Logo */
.logo-img { display: block; width: 72px; height: 72px; }
.site-footer .logo-img { width: 96px; height: 96px; }
@media (max-width: 440px) { .logo-img { width: 60px; height: 60px; } }

/* Red edge bar (guidelines' vertical red bar, here along the top) */
.site-header { border-top: 6px solid var(--upg-red); }
.header-inner { min-height: 88px; }
.subnav { top: 94px; }
.centre-page [id] { scroll-margin-top: 170px; }
[id] { scroll-margin-top: 110px; }
.key-details { top: 116px; }

/* Buttons: red primary; mint secondary highlight with black text */
.btn--accent { background: var(--upg-mint); color: var(--upg-black); }
.btn--accent:hover { background: var(--brand-accent-dark); color: var(--upg-black); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--surface-alt); color: var(--ink); }

/* Page headers: red "chapter" blocks with white Cubano titles */
.page-head { background: var(--brand-primary); color: #fff; }
.page-head h1 { color: #fff; }
.page-head .lede, .page-head p { color: #fff; }
.page-head .breadcrumb a, .page-head .breadcrumb [aria-current], .page-head .breadcrumb li + li::before { color: #fff; }
.page-head .jump-links a { border-color: rgba(255,255,255,.6); }
.calm-head { background: var(--surface-alt); color: var(--ink); }
.calm-head h1 { color: var(--ink); }
.calm-head .lede, .calm-head p { color: var(--ink-muted); }
.calm-head .breadcrumb a, .calm-head .breadcrumb li + li::before { color: var(--ink-muted); }
.calm-head .breadcrumb [aria-current] { color: var(--ink); }

/* Homepage hero: red Cubano headline on light grey */
.hero h1 { color: var(--upg-red); }

/* Colour blocks */
.impact-block { background: var(--brand-primary); }
.impact-panel { color: #fff; }
.impact-panel p { color: #fff; }
.impact-stats { border-top-color: rgba(255,255,255,.4); }
.impact-kicker { background: var(--upg-black); color: var(--upg-mint); }
.hire-hero { background: var(--upg-mint); }
.donate-intro .eyebrow { color: #fff; }
.value { border-top-color: var(--upg-red); }
.route--hire .route-icon { background: var(--brand-accent-tint); color: var(--ink); }
.route-icon { background: var(--brand-primary-tint); color: var(--brand-primary); }

/* Audience tags, redrawn from the palette (readable text colours) */
.tag--families { background: #fde8e8; color: #a80f14; }
.tag--young { background: #c9fff6; color: #00574b; }
.tag--adults { background: #eeeeee; color: var(--upg-black); }
.tag--elders { background: var(--upg-black); color: #fff; }
.tag--help { background: #f4f4f4; color: var(--upg-black); border: 1px solid var(--line); }
.tag--new { background: var(--upg-mint); color: var(--upg-black); }

/* Photo placeholders: red duotone, as in the guidelines' photography */
.photo { background: linear-gradient(135deg, #e7797c 0%, #f4c3c4 100%) !important; color: var(--upg-black); position: relative; }
.hero-media .photo, .impact-photo, .centre-hero .photo, .hire-hero .photo, .detail-hero .photo, .split .photo {
  background: linear-gradient(135deg, #c9353a 0%, #ef8f92 100%) !important;
}
.photo.map, .centre-map { background-color: #f4f4f4; }
.photo.map { background: repeating-linear-gradient(45deg, #eeeeee 0 12px, #f6f6f6 12px 24px) !important; }
/* For real photos: <div class="photo photo--duotone"><img …></div> gives the red duotone treatment */
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo--duotone img { filter: grayscale(1) contrast(1.1); }
.photo--duotone::after { content: ""; position: absolute; inset: 0; background: var(--upg-red); mix-blend-mode: multiply; opacity: .8; pointer-events: none; }

/* Footer: UPG Black with reversed logo */
.footer-about .logo { margin-bottom: var(--space-4); }
.values { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }
/* Hire hero: UPG Black with mint highlights (mint stays an accent, per guidelines) */
.hire-hero:not([style]) { background: var(--upg-black); color: #fff; }
.hire-hero:not([style]) h1 { color: #fff; }
.hire-hero:not([style]) .lede { color: #fff; }
.hire-hero:not([style]) .breadcrumb a, .hire-hero:not([style]) .breadcrumb [aria-current], .hire-hero:not([style]) .breadcrumb li + li::before { color: #fff; }
.hire-hero:not([style]) .hire-stats strong { color: var(--upg-mint); }
.hire-hero:not([style]) .btn--dark { background: var(--brand-primary); }
.hire-hero:not([style]) .btn--dark:hover { background: var(--brand-primary-dark); }
.hire-hero:not([style]) .btn--outline { border-color: #fff !important; color: #fff !important; }
.hire-hero:not([style]) .btn--outline:hover { background: rgba(255,255,255,.12); }
/* Wide card: spans two columns in a 3-column grid (4 centres + hire) */
.photo-card--wide, .centre-cards .photo-card--wide { grid-column: span 2; }
.photo-card--wide .photo { aspect-ratio: 8 / 3; }
@media (max-width: 860px) { .photo-card--wide { grid-column: auto; } .photo-card--wide .photo { aspect-ratio: 4 / 3; } }
@media (max-width: 1024px) { .centre-cards .photo-card--wide { grid-column: span 2; } }
@media (max-width: 620px) { .centre-cards .photo-card--wide { grid-column: auto; } }

/* ==========================================================================
   LIMITED PALETTE + LARGER LOGO (23 Oct 2026)
   Red, black, greys and white only; colour comes from photography.
   ========================================================================== */

/* Header deep enough for the full ring logo to be legible; compacts on scroll */
:root { --logo-size: 128px; --logo-size-compact: 88px; --header-compact: 108px; }
.site-header .logo-img { width: var(--logo-size); height: var(--logo-size); transition: width .2s, height .2s; }
.header-inner { min-height: calc(var(--logo-size) + 24px); transition: min-height .2s; }
.site-header.is-compact .logo-img { width: var(--logo-size-compact); height: var(--logo-size-compact); }
.site-header.is-compact .header-inner { min-height: calc(var(--logo-size-compact) + 14px); }
.subnav { top: var(--header-compact); }
.key-details { top: calc(var(--header-compact) + 20px); }
[id] { scroll-margin-top: calc(var(--header-compact) + 16px); }
.centre-page [id] { scroll-margin-top: calc(var(--header-compact) + 72px); }
@media (max-width: 1240px) { .main-nav { top: 100%; } }
@media (max-width: 760px) { :root { --logo-size: 96px; --logo-size-compact: 76px; --header-compact: 96px; } }
@media (max-width: 440px) {
  :root { --logo-size: 84px; --logo-size-compact: 72px; --header-compact: 92px; }
  .site-header .logo-img { width: var(--logo-size); height: var(--logo-size); }
  .site-header.is-compact .logo-img { width: var(--logo-size-compact); height: var(--logo-size-compact); }
}
.site-footer .logo-img { width: 128px; height: 128px; }

/* Tags: label text carries the meaning; neutral chips */
.tag--families, .tag--young, .tag--adults, .tag--elders, .tag--help, .tag--plain {
  background: #fff; color: var(--upg-black); border: 1px solid var(--line);
}
.tag--new { background: var(--brand-primary); color: #fff; border: 0; }
.event-tags .tag { border: 0; }

/* Remove remaining mint */
.event-card--featured { background: #fff; border: 2px solid var(--upg-black); }
.impact-kicker { background: var(--upg-black); color: #fff; }
.hire-hero:not([style]) .hire-stats strong { color: #fff; }
.info-bar svg { color: var(--upg-red); }
.route--hire .route-icon, .route-icon { background: #f4f4f4; color: var(--brand-primary); }
.photo-card--hire { background: #fff; }
.steps li::before { background: var(--upg-black); color: #fff; }
.impact-examples div { background: #f4f4f4; }
.urgent, .urgent-banner { border-left-color: var(--brand-primary); }
.btn--accent { background: var(--brand-primary); color: #fff; }
.btn--accent:hover { background: var(--brand-primary-dark); color: #fff; }
.hero-badge .dot { background: var(--brand-primary); }
.todo { background: #f4f4f4; color: var(--upg-black); border: 1px dashed var(--upg-dark-grey); }

/* Placeholders: light grey until real photos arrive (no tinted colour blocks) */
.photo { background: repeating-linear-gradient(135deg, #e9e9e9 0 14px, #f1f1f1 14px 28px) !important; }
.hero-media .photo, .impact-photo, .centre-hero .photo, .hire-hero .photo, .detail-hero .photo, .split .photo {
  background: repeating-linear-gradient(135deg, #e2e2e2 0 14px, #ececec 14px 28px) !important;
}
.photo span { background: #fff; }
/* Safe areas on phones with notches / home bars */
.site-header { top: env(safe-area-inset-top, 0px); }
.mobile-cta { padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); }

/* ==========================================================================
   HOMEPAGE: full-width banner with overlay header (Albany-style)
   ========================================================================== */
/* Header floats over the banner; white stamp logo, large. Turns solid on scroll. */
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; transition: background-color .2s, border-color .2s; }
.site-header--overlay .logo-img--on-light { display: none; }
.site-header--overlay .logo-img--on-photo { --logo-size: 200px; width: var(--logo-size); height: var(--logo-size); filter: drop-shadow(0 2px 10px rgba(0,0,0,.25)); }
.site-header--overlay .header-inner { min-height: 0; padding-block: var(--space-5); align-items: flex-start; }
.site-header--overlay .main-nav a, .site-header--overlay .icon-btn { color: #fff; }
.site-header--overlay .main-nav a:hover, .site-header--overlay .icon-btn:hover { background: rgba(255,255,255,.14); }
.site-header--overlay .btn--outline { border-color: #fff; color: #fff; }
.site-header--overlay .btn--outline:hover { background: rgba(255,255,255,.14); }
.site-header--overlay .main-nav, .site-header--overlay .header-actions { margin-top: var(--space-3); }
/* Scrolled: back to the standard white bar and colour logo */
.site-header--overlay.is-compact { background: var(--surface); border-bottom-color: var(--line); }
.site-header--overlay.is-compact .header-inner { padding-block: 0; align-items: center; min-height: calc(var(--logo-size-compact) + 14px); }
.site-header--overlay.is-compact .logo-img--on-photo { display: none; }
.site-header--overlay.is-compact .logo-img--on-light { display: block; width: var(--logo-size-compact); height: var(--logo-size-compact); }
.site-header--overlay.is-compact .main-nav a, .site-header--overlay.is-compact .icon-btn { color: var(--ink); }
.site-header--overlay.is-compact .main-nav a:hover, .site-header--overlay.is-compact .icon-btn:hover { background: var(--surface-alt); }
.site-header--overlay.is-compact .btn--outline { border-color: var(--ink); color: var(--ink); }
.site-header--overlay.is-compact .main-nav, .site-header--overlay.is-compact .header-actions { margin-top: 0; }
/* Open mobile menu is always a white panel */
.site-header--overlay .main-nav.is-open a { color: var(--ink); }

/* The banner */
.hero-banner {
  position: relative; overflow: hidden;
  height: clamp(560px, 88vh, 860px);
  background: var(--upg-black) url("../img/hero-banner.jpg") center 35% / cover no-repeat;
  color: #fff;
}
.hero-banner-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(35,31,32,.55) 0%, rgba(35,31,32,0) 32%),
    linear-gradient(to top, rgba(35,31,32,.78) 0%, rgba(35,31,32,.25) 38%, rgba(35,31,32,0) 60%);
}
.hero-banner-content { position: absolute; left: 0; right: 0; bottom: var(--space-8); z-index: 1; }
.hero-banner h1 {
  color: #fff; margin: 0;
  font-size: clamp(3.2rem, 1.6rem + 7vw, 8rem); line-height: .92; max-width: 9ch;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero-banner-kicker {
  margin: 0 0 var(--space-4); font-size: var(--text-sm); font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
}
.hero-banner-kicker::before { content: ""; display: block; width: 40px; height: 3px; background: var(--upg-red); margin-bottom: var(--space-3); }
.hero-pause {
  position: absolute; z-index: 2; right: var(--gutter); bottom: var(--space-5);
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 40px; padding: 0 var(--space-4);
  border: 0; border-radius: var(--radius-pill);
  background: rgba(35,31,32,.7); color: #fff; font: inherit; font-size: var(--text-sm); font-weight: var(--weight-semibold); cursor: pointer;
}
.hero-pause svg { width: 16px; height: 16px; }

/* Opening copy under the banner */
.hero-intro { padding-block: var(--space-7); border-bottom: 1px solid var(--line); }
.hero-intro-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; }
.hero-intro-lede { margin: 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.4; font-weight: var(--weight-medium); max-width: 34ch; text-wrap: pretty; }
.hero-intro-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.on-today { flex-basis: 100%; margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--ink-muted); display: flex; align-items: center; gap: var(--space-2); }
.on-today .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-primary); }
.home .quick-routes { margin-top: var(--space-7); }

@media (max-width: 1240px) {
  .site-header--overlay .main-nav { margin-top: 0; }
}
@media (max-width: 860px) {
  .site-header--overlay .logo-img--on-photo { --logo-size: 132px; }
  .hero-intro-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero-banner { height: clamp(480px, 80vh, 680px); }
  .hero-banner-content { bottom: var(--space-7); }
}
@media (max-width: 440px) {
  .site-header--overlay .logo-img--on-photo { --logo-size: 108px; }
  .site-header--overlay .header-actions .btn--primary { display: inline-flex; }
  .hero-banner { height: 78vh; min-height: 460px; }
}
@media (prefers-reduced-motion: reduce) { .site-header--overlay, .site-header .logo-img { transition: none; } }
