/* =========================================================
   Once a Chorister — Design System
   Palette, type and layout derived from the Brand Guidelines
   ========================================================= */

/* =========================================================
   Colour tokens — light (default) and dark.
   Structural "chrome" colours (--red, --slate and their fills) stay
   constant across themes since white text on them already clears
   AAA contrast either way. Only page-level surfaces and the text
   tokens that sit directly on those surfaces change between themes.
   Every pairing below is verified against WCAG 2.2 AAA (7:1 normal
   text / 4.5:1 large text, 3:1 non-text) — see README for the figures.
   ========================================================= */
:root {
  /* Primary — fills/borders/icons (brand colour, constant across themes) */
  --red: #9A201F;
  --red-dark: #6E1615;
  --red-light: #C24B45;
  --red-tint: #F3DEDC;

  /* Secondary — fills/borders/icons (constant across themes) */
  --gold: #B08A3E;
  --gold-light: #D8BE84;
  --gold-tint: #F1E7CF;
  --slate: #2F4C54;
  --slate-light: #5C7D85;
  --slate-tint: #DCE7E9;

  /* Text-safe variants of the hues above — these DO change with theme */
  --red-text: #9A201F;
  --gold-text: #5C4820;
  --slate-text: #2F4C54;

  /* Constant accent for text sitting on a permanently-dark surface
     (header/footer/hero) regardless of the page theme */
  --gold-on-slate: #FDDE9A;

  /* Fixed white, for text/icons on saturated brand-colour surfaces
     (Slate/Red buttons, header, footer, hero) that never change with
     the page theme — distinct from --white, which IS the theme-aware
     card/surface colour and goes dark in dark mode. Never use --white
     for text; use this instead whenever the surface behind it is a
     brand colour rather than a themed card. */
  --white-fixed: #FFFFFF;

  /* A permanently-dark ink, for text on small fixed-light-coloured
     chips (e.g. the gold "MOST POPULAR" ribbon) whose background
     never changes with the page theme */
  --ink-fixed: #241F1D;

  /* Status colours (darkened for AAA on white) */
  --status-green: #256539;

  /* Neutrals — page-level surfaces and body text (these flip in dark mode) */
  --ink: #241F1D;
  --stone: #595250;
  --parchment: #F1E7DA;
  --paper: #FBF6EE;
  --white: #FFFFFF;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --max-width: 1200px;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(36,31,29,0.08);
  --shadow-lg: 0 12px 32px rgba(36,31,29,0.14);
  --focus-color: var(--red);

  --header-height: 76px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red-text: #FF746A;
    --gold-text: #FDDE9A;
    --slate-text: #7BA8B2;
    --status-green: #4CAF6F;
    --ink: #F1E9DE;
    --stone: #AFA89F;
    --parchment: #1D1815;
    --paper: #17130F;
    --white: #221D19;
    --focus-color: #FF746A;
    --red-tint: #3A1917;
    --gold-tint: #332918;
    --slate-tint: #1E2E33;
  }
}
:root[data-theme="dark"] {
  --red-text: #FF746A;
  --gold-text: #FDDE9A;
  --slate-text: #7BA8B2;
  --status-green: #4CAF6F;
  --ink: #F1E9DE;
  --stone: #AFA89F;
  --parchment: #1D1815;
  --paper: #17130F;
  --white: #221D19;
  --focus-color: #FF746A;
  --red-tint: #3A1917;
  --gold-tint: #332918;
  --slate-tint: #1E2E33;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
html { background: var(--paper); }
html { scroll-padding-top: calc(var(--header-height) + 16px); }
body { transition: background-color 0.15s ease, color 0.15s ease; }

/* ---------- Focus (WCAG 2.4.13 Focus Appearance, AAA) ---------- */
:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
  border-radius: 2px;
}
.site-header :focus-visible,
.mobile-nav :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.section--slate :focus-visible,
.section--red :focus-visible,
.event-banner :focus-visible,
.report-box :focus-visible,
.newsletter-band :focus-visible {
  outline-color: var(--white-fixed);
}

/* ---------- Minimum target size, 44x44 CSS px (WCAG 2.5.5, AAA) ---------- */
.btn, .btn-sm { min-height: 44px; }
.chip { min-height: 44px; }
.tab-btn { min-height: 44px; }
.az-index a { min-width: 44px; min-height: 44px; }
.social-row a { width: 44px; height: 44px; }
.nav-toggle { min-width: 44px; min-height: 44px; }
.theme-toggle { min-width: 44px; min-height: 44px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red-text); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }
ul, ol { padding-left: 1.25em; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 600; }
h3 { font-size: 21px; font-weight: 600; font-family: var(--font-sans); color: var(--slate-text); }
h4 { font-size: 17px; font-weight: 600; font-family: var(--font-sans); }
/* Cap long-form line length for readability (WCAG 1.4.8, AAA) — a no-op
   wherever a flex/grid parent is already narrower than this. */
p, li { max-width: 75ch; }
p { margin: 0 0 1em; }
.lede { font-size: 19px; color: var(--stone); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 64px 0;
}
.section--tight { padding: 40px 0; }
.section--parchment { background: var(--parchment); }
.section--slate { background: var(--slate); color: var(--white-fixed); }
.section--slate h2, .section--slate h3 { color: var(--white-fixed); }
.section--red { background: var(--red); color: var(--white-fixed); }
.section--red h2 { color: var(--white-fixed); }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 8px;
  display: block;
}
.section--slate .eyebrow, .hero .eyebrow { color: var(--gold-on-slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--red);
  color: var(--white-fixed);
  border-color: var(--red-text);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white-fixed);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--red-text);
  border-color: var(--red-text);
}
.btn-secondary:hover {
  background: var(--red-tint);
  color: var(--red-dark);
  text-decoration: none;
}
.btn-outline-white {
  background: transparent;
  color: var(--white-fixed);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white-fixed);
  text-decoration: none;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--slate);
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white-fixed);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: var(--white-fixed); }
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white-fixed);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  border: 2px solid var(--gold-light);
}
.logo-text small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--gold-on-slate);
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a, .nav-toggle-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--white-fixed);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 6px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current > a {
  color: var(--white-fixed);
  border-bottom-color: var(--red-light);
  text-decoration: none;
}
.caret { font-size: 10px; opacity: 0.75; margin-top: 1px; }

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 18px 10px 10px;
  display: none;
  list-style: none;
  margin: 0;
}
.main-nav > ul > li:hover .mega-menu,
.main-nav > ul > li:focus-within .mega-menu { display: block; }
.mega-menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
}
.mega-menu li a:hover { background: var(--parchment); color: var(--red-text); text-decoration: none; }
.mega-menu li a small { display: block; color: var(--stone); font-weight: 400; font-size: 12.5px; }

.header-cta { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white-fixed);
  font-size: 26px;
  padding: 6px;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--white-fixed);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.theme-toggle:hover { background: rgba(255,255,255,0.12); }
.theme-toggle svg { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}

/* Mobile nav */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0; bottom: 0;
  background: var(--slate);
  z-index: 199;
  overflow-y: auto;
  padding: 8px 0 100px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,0.12); }
.mobile-nav > ul > li > a, .mobile-nav .acc-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  color: var(--white-fixed);
  font-weight: 600;
  font-size: 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.mobile-nav .submenu {
  display: none;
  background: rgba(0,0,0,0.15);
}
.mobile-nav .submenu.is-open { display: block; }
.mobile-nav .submenu li a {
  padding: 12px 24px 12px 40px;
  color: var(--gold-on-slate);
  font-size: 15px;
  font-weight: 500;
  display: block;
}
.mobile-nav .acc-toggle .caret { transition: transform 0.15s; }
.mobile-nav .acc-toggle.is-open .caret { transform: rotate(180deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--slate) 0%, #1c343b 60%, var(--ink-fixed) 100%);
  color: var(--white-fixed);
  padding: 90px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(176,138,62,0.28), transparent 45%),
    radial-gradient(circle at 88% 78%, rgba(154,32,31,0.35), transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 720px; }
.hero h1 { color: var(--white-fixed); margin-bottom: 18px; }
.hero p.lede { color: rgba(255,255,255,0.86); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-window {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  opacity: 0.5;
}
.hero-window::before, .hero-window::after {
  content: "";
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(216,190,132,0.35);
}
.hero-window::after { inset: 80px; border-color: rgba(194,75,69,0.4); }

.page-hero {
  background: var(--slate);
  color: var(--white-fixed);
  padding: 56px 0;
}
.page-hero h1 { color: var(--white-fixed); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 640px; margin-bottom: 0; }
.breadcrumb {
  font-size: 13px;
  color: var(--gold-on-slate);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--gold-on-slate); }
.breadcrumb a:hover { color: var(--white-fixed); }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid rgba(36,31,29,0.08);
}
.trust-strip .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px 24px;
  text-align: center;
}
.trust-stat { flex: 1; min-width: 140px; }
.trust-stat .num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 30px;
  color: var(--red-text);
  display: block;
}
.trust-stat .label {
  font-size: 13px;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .card-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(36,31,29,0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--red-tint);
  color: var(--red-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--stone); flex: 1; }
.card-link { font-weight: 600; font-size: 14px; }

.hub-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(36,31,29,0.06);
  border-top: 4px solid var(--gold);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hub-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.hub-card h3 { color: var(--ink); }
.hub-card p { color: var(--stone); margin-bottom: 0; }

/* ---------- Featured event banner ---------- */
.event-banner {
  background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white-fixed);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.event-banner h3, .event-banner h2 { color: var(--white-fixed); }
.event-banner .meta { display: flex; gap: 20px; flex-wrap: wrap; margin: 14px 0 20px; }
.event-banner .meta div { font-size: 14px; }
.event-banner .meta strong { display: block; font-size: 17px; }
.event-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Quote block ---------- */
.quote-block {
  background: var(--gold-tint);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 36px 40px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
  max-width: 760px;
  margin: 0 auto 32px;
}
.quote-block cite {
  display: block;
  margin-top: 16px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 14px;
  color: var(--stone);
}

/* ---------- Message / chair card ---------- */
.message-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  align-items: flex-start;
}
.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--slate-tint);
  color: var(--slate-text);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---------- Newsletter band ---------- */
.newsletter-band {
  background: var(--slate);
  color: var(--white-fixed);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter-band h3 { color: var(--white-fixed); margin-bottom: 4px; }
.newsletter-band p { color: rgba(255,255,255,0.88); margin: 0; }

/* ---------- Two-column layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head.left { text-align: left; margin: 0 0 32px; }

/* ---------- Tabs ---------- */
.tabs { margin-top: 24px; }
.tab-list {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid rgba(36,31,29,0.1);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-list::-webkit-scrollbar { display: none; }
.tab-btn {
  background: none;
  border: none;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--stone);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.tab-btn.is-active { color: var(--red-text); border-bottom-color: var(--red-text); }
.tab-panel { display: none; padding-top: 32px; }
.tab-panel.is-active { display: block; }

/* ---------- Accordion ---------- */
.accordion-item {
  background: var(--white);
  border: 1px solid rgba(36,31,29,0.09);
  border-radius: var(--radius);
  margin-bottom: 12px;
  /* No overflow:hidden here: it would create a sticky containing block for
     any table nested inside (same trap as .data-table-wrap below), breaking
     sticky table headers. The trigger button carries its own top radius so
     the rounded corners still look right without clipping. */
}
.accordion-trigger {
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--ink);
}
.accordion-trigger .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--red-tint);
  color: var(--red-text);
  font-size: 13px;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
}
.accordion-trigger .icon { color: var(--red-text); font-size: 18px; transition: transform 0.15s; flex-shrink: 0; }
.accordion-trigger.is-open .icon { transform: rotate(45deg); }
.accordion-panel {
  display: none;
  padding: 0 24px 22px 66px;
  color: var(--stone);
}
.accordion-panel.is-open { display: block; }
.accordion-panel p:last-child { margin-bottom: 0; }

/* ---------- Data tables ---------- */
.table-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  align-items: center;
}
.search-input {
  flex: 1;
  min-width: 220px;
  padding: 11px 16px;
  border-radius: 6px;
  border: 1px solid rgba(36,31,29,0.18);
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
}
.search-input:focus { outline: 2px solid var(--slate-light); }

/* No overflow-x here: pairing it with position:sticky on thead is a known
   CSS trap (overflow-x != visible forces overflow-y to compute as "auto"
   too, making this div — not the page — the sticky containing block, so
   the header never tracks real page scroll). Table cell text wraps at
   word boundaries instead of needing horizontal scroll. */
/* border-radius: var(--radius) to match .data-table-wrap below. Overflow
   can't clip this (see note above), so the rounding is applied directly to
   the table itself (its own background, e.g. behind unstriped rows, is
   otherwise a plain square that peeks past the wrap's rounded border at
   the corners) and to the actual corner cells on top of it — the header's
   top corners and the last row's bottom corners. Row shading (zebra
   stripes, hover) lives on the <td> rather than the <tr> so it is clipped
   to each cell's own box, including that corner radius, instead of
   squaring off past it. */
.data-table-wrap { border-radius: var(--radius); border: 1px solid rgba(36,31,29,0.09); }
table.data-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: var(--radius); font-size: 14.5px; }
table.data-table th, table.data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(36,31,29,0.07); }
table.data-table th {
  background: var(--slate);
  color: var(--white-fixed);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
table.data-table thead {
  position: sticky;
  top: var(--header-height);
  z-index: 5;
}
table.data-table thead th {
  position: sticky;
  top: var(--header-height);
  z-index: 5;
}
table.data-table thead th:first-child { border-top-left-radius: var(--radius); }
table.data-table thead th:last-child { border-top-right-radius: var(--radius); }
table.data-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius); }
table.data-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius); }
table.data-table th.sortable::after { content: " \2195"; opacity: 0.5; font-size: 11px; }
table.data-table tbody tr:nth-child(even) td { background: var(--parchment); }
table.data-table tbody tr:hover td { background: var(--red-tint); }
.note-row td { color: var(--stone); font-style: italic; font-size: 13.5px; }
.table-empty { text-align: center; padding: 32px; color: var(--stone); display: none; }
.results-count { font-size: 13.5px; color: var(--stone); margin-bottom: 12px; }

/* ---------- Filter chips ---------- */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--slate-tint);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
}
.chip.is-active { background: var(--red); color: var(--white-fixed); }

/* ---------- Directory ---------- */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .directory-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 760px) { .directory-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .directory-grid { grid-template-columns: 1fr; } }

.assoc-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(36,31,29,0.06);
  display: flex;
  flex-direction: column;
}
.assoc-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--slate) 0%, var(--slate-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.assoc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.assoc-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.assoc-body h4 { margin-bottom: 4px; font-size: 15px; }
.assoc-body .region-tag { font-size: 11.5px; color: var(--gold-text); text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 10px; }
.assoc-body .closed-tag { font-size: 11px; color: var(--stone); font-style: italic; }
.assoc-actions { margin-top: auto; display: flex; gap: 8px; padding-top: 10px; }
.assoc-actions .btn { flex: 1; padding: 8px 10px; font-size: 12.5px; }

.az-index { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.az-index a {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 1px solid rgba(36,31,29,0.12);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-text);
}
.az-index a:hover { background: var(--slate); color: var(--white-fixed); text-decoration: none; }

.callout {
  background: var(--slate-tint);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.callout p { margin: 0; color: var(--slate-text); font-weight: 600; }

/* ---------- Sample clause wording ---------- */
.clause-sample {
  background: var(--parchment);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin-top: 14px;
}
.clause-sample .clause-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 6px;
}
.clause-sample p { margin: 0; font-size: 14px; color: var(--ink); font-style: italic; }
.clause-sample p + p { margin-top: 8px; }

/* ---------- Sticky TOC (constitution/safeguarding) ---------- */
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; } }
.doc-toc {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  font-size: 14px;
}
.doc-toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--stone); margin-bottom: 10px; }
.doc-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.doc-toc a { color: var(--ink); font-weight: 500; }
.doc-toc a:hover { color: var(--red-text); }
.doc-body { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.doc-body h2 { border-bottom: 2px solid var(--gold-tint); padding-bottom: 10px; margin-top: 40px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h4 { color: var(--slate-text); margin-top: 20px; }
.doc-footnote { color: var(--stone); font-size: 13.5px; font-style: italic; border-top: 1px solid rgba(36,31,29,0.1); padding-top: 20px; margin-top: 30px; }

.report-box {
  background: var(--red);
  color: var(--white-fixed);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.report-box strong { display: block; font-size: 17px; margin-bottom: 4px; }
.report-box p { margin: 0; color: rgba(255,255,255,0.94); font-size: 14px; }

/* ---------- Pricing table ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--gold); position: relative; }
.price-card.featured::before {
  content: "MOST POPULAR";
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: var(--white-fixed); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.05em; padding: 4px 12px; border-radius: 12px;
}
.price-card .amount { font-family: var(--font-serif); font-size: 34px; font-weight: 700; color: var(--red-text); margin: 10px 0; }
.price-card .amount span { font-size: 14px; color: var(--stone); font-family: var(--font-sans); }
.price-card ul { list-style: none; padding: 0; text-align: left; font-size: 13.5px; color: var(--stone); flex: 1; margin-bottom: 20px; }
.price-card li { padding: 4px 0; }

/* ---------- Programme schedule ---------- */
.schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .schedule-grid { grid-template-columns: 1fr; } }
.schedule-day { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.schedule-day h3 { background: var(--slate); color: var(--white-fixed); margin: 0; padding: 16px 20px; }
.schedule-list { list-style: none; margin: 0; padding: 0; }
.schedule-list li { display: flex; gap: 14px; padding: 14px 20px; border-bottom: 1px solid rgba(36,31,29,0.07); font-size: 14.5px; }
.schedule-list li:last-child { border-bottom: none; }
.schedule-time { color: var(--red-text); font-weight: 700; flex-shrink: 0; width: 66px; }

/* ---------- Calendar / events ---------- */
.event-entry { margin-bottom: 10px; }
.event-row {
  display: grid;
  grid-template-columns: 100px 1fr 160px auto;
  gap: 16px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.event-row.has-panel-open { border-radius: var(--radius) var(--radius) 0 0; box-shadow: none; border-bottom: 1px solid rgba(36,31,29,0.09); }
.event-row-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: nowrap; }
@media (max-width: 700px) { .event-row { grid-template-columns: 1fr; text-align: left; gap: 8px; } .event-row-actions { justify-content: flex-start; } }
.event-venue-panel {
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
}
.event-venue-panel h4 { margin: 0 0 4px; font-size: 14px; color: var(--red-text); }
.event-venue-panel p { margin: 0 0 16px; font-size: 14.5px; color: var(--stone); max-width: none; }
.event-venue-panel p:last-child { margin-bottom: 0; }
.event-year { font-family: var(--font-serif); font-weight: 700; font-size: 22px; color: var(--red-text); text-align: center; }
.event-type-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 4px;
}
.badge-festival { background: var(--red-tint); color: var(--ink); }
.badge-agm { background: var(--slate-tint); color: var(--ink); }
.badge-tour { background: var(--gold-tint); color: var(--ink); }
.status-tag { font-size: 12.5px; font-weight: 700; text-align: right; }
.status-confirmed { color: var(--status-green); }
.status-tbc { color: var(--gold-text); }
.status-available { color: var(--red-text); }
.status-closed { color: var(--stone); }

/* ---------- Doc / publication cards ---------- */
.doc-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.doc-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 8px;
  background: var(--red-tint);
  color: var(--red-text);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 12px;
}
.doc-meta { flex: 1; min-width: 0; }
.doc-meta h4 { margin: 0 0 4px; font-size: 15px; }
.doc-meta .doc-sub { font-size: 13px; color: var(--stone); }
.type-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--slate-tint);
  color: var(--ink);
  margin-right: 8px;
}

/* ---------- Contact ---------- */
.people-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 760px) { .people-grid { grid-template-columns: 1fr; } }
.person-card { background: var(--white); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.person-card .avatar { margin: 0 auto 14px; width: 72px; height: 72px; font-size: 24px; }
.person-card h4 { margin-bottom: 2px; }
.person-card .role { color: var(--red-text); font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; }
.person-card .assoc { color: var(--stone); font-size: 13.5px; }
.vp-list { list-style: none; padding: 0; columns: 3; column-gap: 24px; }
@media (max-width: 760px) { .vp-list { columns: 1; } }
.vp-list li { padding: 8px 0; border-bottom: 1px solid rgba(36,31,29,0.08); font-weight: 500; }

/* ---------- Forms ---------- */
.form-panel { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  padding: 11px 14px;
  border-radius: 6px;
  border: 1px solid rgba(36,31,29,0.2);
  background: var(--slate-tint);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  line-height: 1.3;
}
.form-row textarea { height: auto; }
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23595250' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: 2px solid var(--slate-light); background-color: var(--white); }
.form-hint { font-size: 12.5px; color: var(--stone); margin-top: 4px; }
.form-success {
  display: none;
  background: var(--gold-tint);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-top: 16px;
  font-size: 14.5px;
}
.form-success.is-visible { display: block; }
.form-error {
  display: none;
  background: rgba(178, 58, 58, 0.08);
  border-left: 4px solid #b23a3a;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-top: 16px;
  font-size: 14.5px;
}
.form-error.is-visible { display: block; }
.form-privacy-notice { font-size: 13px; color: var(--stone); line-height: 1.5; margin: -4px 0 18px; }
.form-privacy-notice a { color: inherit; text-decoration: underline; }
.form-row-checkbox { display: flex; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 0;
}
.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border-radius: 5px;
  border: 1.5px solid rgba(36,31,29,0.3);
  background: var(--slate-tint);
  position: relative;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"]:checked {
  background: var(--red);
  border-color: var(--red);
}
.checkbox-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px; width: 5px; height: 9px;
  border: solid var(--white-fixed);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-label input[type="checkbox"]:focus-visible { outline: 2px solid var(--slate-light); outline-offset: 2px; }

/* ---------- Booking / checkout ---------- */
.booking-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.booking-card--row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.item-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.choice-group { margin-top: 14px; }
.choice-group-label { font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.choice-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 340px; }
.item-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  background: var(--paper);
  border: 1.5px solid rgba(36,31,29,0.14);
  border-radius: 10px;
  padding: 12px 34px 12px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.12s, background-color 0.12s;
}
.item-tile:hover { border-color: var(--red); }
.item-tile.is-selected { background: var(--red-tint); border-color: var(--red); }
.item-tile-icon { font-size: 17px; }
.item-tile-label { font-weight: 600; font-size: 14px; color: var(--ink); }
.item-tile-price { font-size: 12.5px; color: var(--stone); }
.item-tile.is-selected .item-tile-price { color: var(--red-text); }
.item-tile-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(36,31,29,0.22);
  background: var(--white);
}
.item-tile.is-selected .item-tile-check,
.donation-tile.is-selected .item-tile-check {
  background: var(--red);
  border-color: var(--red);
}
.item-tile.is-selected .item-tile-check::after,
.donation-tile.is-selected .item-tile-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--white-fixed);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.item-tile-grid--stacked { grid-template-columns: 1fr; }
.item-tile-tags { font-size: 12px; color: var(--stone); text-transform: uppercase; letter-spacing: 0.03em; }
.item-tile.is-selected .item-tile-tags { color: var(--red-text); }

.donation-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--paper);
  border: 1.5px solid rgba(36,31,29,0.14);
  border-radius: 10px;
  padding: 4px 14px 4px 4px;
  transition: border-color 0.12s, background-color 0.12s;
}
.donation-tile.is-selected { background: var(--red-tint); border-color: var(--red); }
.donation-toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 12px 8px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.donation-toggle-btn .item-tile-check { position: relative; top: 0; right: 0; flex-shrink: 0; }
.donation-amount-wrap { display: flex; align-items: center; gap: 4px; font-size: 14.5px; flex-shrink: 0; }
.donation-amount-wrap input {
  width: 70px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1.5px solid rgba(36,31,29,0.14);
  font-family: inherit;
  font-size: 14.5px;
}

.form-row input.is-locked {
  background: var(--parchment);
  color: var(--stone);
  cursor: not-allowed;
}
.callout-note {
  font-size: 13px;
  color: var(--gold-text);
  background: var(--gold-tint);
  border-radius: 8px;
  padding: 8px 12px;
  margin: -4px 0 4px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--slate); color: rgba(255,255,255,0.85); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white-fixed); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255,255,255,0.88); font-size: 14.5px; }
.site-footer a:hover { color: var(--gold-on-slate); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.88);
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white-fixed);
  font-size: 14px;
}
.social-row a:hover { background: var(--red); text-decoration: none; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--red); color: var(--white-fixed); padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

@media (max-width: 760px) {
  .section { padding: 44px 0; }
  h1 { font-size: 30px; }
}

/* ---------- Photo gallery + lightbox ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--parchment);
  border: none;
  padding: 0;
  display: block;
  width: 100%;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, opacity 0.4s ease;
  opacity: 0;
}
.gallery-item img.is-loaded { opacity: 1; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gallery-sentinel { height: 1px; }
.gallery-loading {
  text-align: center;
  padding: 20px;
  color: var(--stone);
  font-size: 14px;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,8,7,0.55);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox-overlay.is-open { opacity: 1; pointer-events: auto; }
.lightbox-figure {
  max-width: min(90vw, 1100px);
  max-height: 88vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(0.97);
  transition: transform 0.2s ease;
}
.lightbox-overlay.is-open .lightbox-figure { transform: scale(1); }
.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 16px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.08);
  display: block;
}
.lightbox-figure figcaption {
  color: var(--white-fixed);
  font-size: 14.5px;
  text-align: center;
  max-width: 640px;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--white-fixed);
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

/* ---------- Social embeds ---------- */
.social-embed-wrap { max-width: 560px; }
.social-embed-placeholder {
  background: var(--parchment);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  max-width: 480px;
}
.social-embed-placeholder p { color: var(--stone); margin-bottom: 20px; }
.social-visit-link { margin-top: 16px; font-size: 13.5px; color: var(--stone); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  background: var(--slate);
  color: var(--white-fixed);
  padding: 20px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.9); flex: 1 1 320px; min-width: 0; max-width: none; }
.cookie-banner a { color: var(--gold-on-slate); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .lightbox-close { top: 10px; right: 10px; }
}
