/* ==========================================================================
   The Wincheap Society – stylesheet
   Colours and fonts are set once here; change them in :root.
   ========================================================================== */

:root {
  /* Colours (taken from the Society's poster) */
  --blue:        #24418f;  /* main brand blue */
  --blue-deep:   #172b66;  /* darkest blue, for gradients and footer */
  --blue-bright: #2f5cc6;  /* the glow in the middle of the poster */
  --lime:        #e8fd84;  /* accent */
  --lime-deep:   #d3ec58;
  --paper:       #f3f6fd;  /* light section background */
  --white:       #ffffff;
  --ink:         #15234f;  /* body text */
  --muted:       #4a5a85;
  --line:        #d6deef;

  --grad-blue: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 55%, var(--blue-bright) 100%);

  /* Fonts */
  --f-display: "Merienda", "Trebuchet MS", sans-serif;
  --f-script:  "Alex Brush", "Brush Script MT", cursive;
  --f-slab:    "Zilla Slab", Rockwell, Georgia, serif;
  --f-body:    "Open Sans", "Segoe UI", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 84px;
  --radius-lg: 28px;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(23, 43, 102, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--blue-deep); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--lime); color: var(--blue-deep); padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 1rem/1 var(--f-body);
  padding: .95em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--blue  { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-deep); }
.btn--lime  { background: var(--lime); color: var(--blue-deep); }
.btn--lime:hover { background: var(--white); }
.btn--outline { border-color: var(--blue-deep); color: var(--blue-deep); background: transparent; }
.btn--outline:hover { background: var(--blue-deep); color: var(--lime); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  color: var(--lime); font-weight: 700; text-decoration: none;
}
.link-arrow::after {
  content: ""; width: .5em; height: .5em;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.link-arrow:hover::after { transform: translateX(3px) rotate(45deg); }
.link-arrow--dark { color: var(--blue); }

.pill {
  display: inline-block;
  background: var(--lime); color: var(--blue-deep);
  border-radius: 999px; padding: .1em 1.1em .2em;
}
/* Script lettering: larger, slightly spaced and thickened so it reads easily */
.script {
  font-family: var(--f-script);
  font-weight: 400;
  letter-spacing: .03em;
  word-spacing: .12em;
  -webkit-text-stroke: .025em currentColor;
  paint-order: stroke fill;
}
.pill--script { font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.25; padding: .12em .9em .22em; }

/* ==========================================================================
   Header & navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(90deg, var(--blue-deep) 0%, var(--blue) 70%, #2a4fa8 100%);
  color: var(--white);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(10, 20, 60, .6); }
.site-header__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: .7rem; color: var(--white); text-decoration: none; }
.brand__mark { width: 58px; flex: none; color: var(--white); }
.brand__mark svg { width: 100%; height: auto; display: block; }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: .005em; white-space: nowrap; }


/* Burger (mobile only) */
.nav-burger {
  display: none;
  align-items: center; gap: .6rem;
  background: rgba(255,255,255,.08); color: var(--white);
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  padding: .55rem 1rem; font: 600 .95rem var(--f-body); cursor: pointer;
}
.nav-burger__bars, .nav-burger__bars::before, .nav-burger__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .25s, background-color .25s;
}
.nav-burger__bars::before, .nav-burger__bars::after { content: ""; position: absolute; left: 0; }
.nav-burger__bars::before { top: -6px; }
.nav-burger__bars::after  { top: 6px; }
.nav-burger[aria-expanded="true"] .nav-burger__bars { background: transparent; }
.nav-burger[aria-expanded="true"] .nav-burger__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .nav-burger__bars::after  { transform: translateY(-6px) rotate(-45deg); }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: block; padding: .55rem clamp(.5rem, .8vw, .75rem);
  color: var(--white); text-decoration: none; font-weight: 600; font-size: .98rem;
  border-radius: 999px;
}
.nav__item.has-sub > .nav__link { padding-right: .2rem; }
.nav__link:hover, .nav__item.is-current > .nav__link { color: var(--lime); }
.nav__item.is-current > .nav__link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }

.nav__toggle {
  display: grid; place-items: center;
  width: 26px; height: 32px; padding: 0; margin-right: .2rem;
  background: none; border: 0; color: rgba(255,255,255,.8); cursor: pointer; border-radius: 6px;
}
.nav__toggle svg { width: 11px; transition: transform .2s; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* "Join us" as a lime pill */
.nav__item--button { margin-left: .6rem; background: var(--lime); border-radius: 999px; }
.nav__item--button > .nav__link { color: var(--blue-deep); padding-left: 1.1rem; }
.nav__item--button > .nav__link:hover { color: var(--blue); }
.nav__item--button.is-current > .nav__link { color: var(--blue-deep); }
.nav__item--button .nav__toggle { color: var(--blue-deep); margin-right: .45rem; }

/* Dropdown panel */
.nav__sub {
  list-style: none; margin: 0; padding: .5rem;
  position: absolute; top: calc(100% + 12px); left: 0;
  min-width: 290px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(23,43,102,.06);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.nav__sub::before { /* hover bridge so the panel doesn't close on the gap */
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.nav__item--button .nav__sub { left: auto; right: 0; }
.nav__sub a {
  display: block; padding: .6rem .85rem; border-radius: 9px;
  color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.35;
}
.nav__sub a:hover { background: var(--paper); color: var(--blue); }
.nav__sub a[aria-current="page"] { background: var(--lime); color: var(--blue-deep); font-weight: 600; }

@media (min-width: 1101px) {
  .nav__item.has-sub:hover > .nav__sub,
  .nav__item.is-open > .nav__sub {
    opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
  }
  .nav__item.has-sub:hover > .nav__toggle svg { transform: rotate(180deg); }
}

/* Mobile navigation */
@media (max-width: 1100px) {
  .nav-burger { display: inline-flex; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    background: var(--grad-blue);
    overflow-y: auto; padding: 1rem var(--gutter) 3rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s, transform .22s, visibility 0s .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  /* the closed menu must never catch taps meant for the page underneath */
  .nav:not(.is-open) { pointer-events: none; }
  body.nav-open { overflow: hidden; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; max-width: 560px; margin: 0 auto; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.14); }
  .nav__link { flex: 1; font-size: 1.15rem; padding: 1rem 0; border-radius: 0; }
  .nav__item.has-sub > .nav__link { padding-right: 0; }
  .nav__toggle { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; margin: 0; }
  .nav__toggle svg { width: 13px; }

  .nav__sub {
    position: static; width: 100%; min-width: 0;
    background: rgba(255,255,255,.07); box-shadow: none;
    opacity: 1; visibility: inherit; transform: none;  /* inherit: stays hidden while the menu is closed */
    display: none; margin: 0 0 1rem; padding: .35rem;
  }
  .nav__sub::before { display: none; }
  .nav__item.is-open > .nav__sub { display: block; }
  .nav__sub a { color: var(--white); padding: .75rem 1rem; }
  .nav__sub a:hover { background: rgba(255,255,255,.1); color: var(--lime); }

  .nav__item--button {
    margin: 1.5rem 0 0; border-radius: var(--radius); border-bottom: 0; padding: 0 .5rem 0 1rem;
  }
  .nav__item--button > .nav__link { padding-left: 0; }
  .nav__item--button .nav__toggle { border-color: rgba(23,43,102,.25); }
  .nav__item--button .nav__sub { background: rgba(23,43,102,.07); }
  .nav__item--button .nav__sub a { color: var(--blue-deep); }
  .nav__item--button .nav__sub a:hover { background: rgba(23,43,102,.08); color: var(--blue-deep); }
}
@media (max-width: 420px) {
  .brand__name { font-size: 1.15rem; }
  .brand__mark { width: 46px; }
  .nav-burger__label { display: none; }
}

/* ==========================================================================
   Home: hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--white);
  background:
    radial-gradient(ellipse 70% 80% at 72% 40%, rgba(84, 135, 235, .8) 0%, rgba(58, 104, 210, .4) 40%, transparent 70%),
    linear-gradient(160deg, #2c4fa6 0%, var(--blue) 60%, #1e3780 100%);
}
/* concentric rings, like the poster */
.hero__rings {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-radial-gradient(circle at 72% 40%, transparent 0 26px, rgba(255,255,255,.055) 26px 27.5px);
  -webkit-mask-image: radial-gradient(circle at 72% 40%, #000 0%, #000 35%, transparent 75%);
          mask-image: radial-gradient(circle at 72% 40%, #000 0%, #000 35%, transparent 75%);
}
/* The opening banner fills the screen below the menu bar */
.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
}
.hero__inner {
  width: 100%;
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) var(--gutter) clamp(6.5rem, 12vw, 8.5rem);
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 6vw, 5rem); align-items: center;
}
.hero__title {
  grid-column: 1 / -1;   /* spans the full width so it sits on one line */
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2rem, 4.9vw, 4rem);
  line-height: 1.1; letter-spacing: -.01em; text-wrap: balance;
  color: var(--white); margin: 0;
  text-shadow: 0 6px 30px rgba(10, 20, 60, .35);
}
.hero__brand .pill { margin-bottom: 1.6rem; }
.hero__lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 30em; color: rgba(255,255,255,.9); }

.hero__event {
  justify-self: end; text-align: right;
  font-family: var(--f-slab);
  /* frosted, slightly see-through white panel */
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-right: 4px solid var(--lime);
  border-radius: 22px 6px 6px 22px;
  padding: 1.5rem 1.75rem 1.6rem;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px -20px rgba(10, 20, 60, .55);
}
.hero__event-label { font: 600 1rem var(--f-body); color: rgba(255,255,255,.75); margin: 0 0 .6rem; }
.hero__event-title { font-size: 1.5rem; font-weight: 600; line-height: 1.25; margin: 0 0 .7rem; color: var(--white); }
.hero__event-when { color: var(--lime); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; margin: 0 0 .9rem; }
.hero__event-when span { display: block; }
.hero__event-venue { color: rgba(255,255,255,.85); font-size: 1.15rem; line-height: 1.4; max-width: 18em; margin: 0 0 1.1rem auto; }
.hero__event .link-arrow { font-family: var(--f-body); }

/* lime quarter-circle in the corner, like the poster */
.hero__corner {
  position: absolute; right: 0; bottom: 0;
  width: clamp(190px, 26vw, 320px); height: clamp(84px, 10vw, 118px);
  background: var(--lime); color: var(--blue-deep);
  border-top-left-radius: 999px 120px;
  display: flex; align-items: center; justify-content: center; padding-left: 1.5rem;
  font-family: var(--f-slab); font-weight: 600; font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  text-decoration: none;
  transition: background-color .2s;
}
.hero__corner:hover { background: var(--white); }
.hero__corner span { border-bottom: 2px solid transparent; }
.hero__corner:hover span { border-color: currentColor; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__event {
    justify-self: stretch; text-align: left;
    border-right: 1px solid rgba(255, 255, 255, .22); border-left: 4px solid var(--lime);
    border-radius: 6px 22px 22px 6px; padding: 1.25rem 1.35rem 1.4rem;
  }
  .hero__event-venue { margin-left: 0; }
  .hero__rings, .hero { background-position: center; }
}

/* ==========================================================================
   Home: sections
   ========================================================================== */
.intro {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.intro__text { max-width: 36em; }
.intro__text .btn { margin-top: .5rem; }
.intro__photo { margin: 0; position: relative; }
.intro__photo img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px;
  box-shadow: var(--shadow);
}
.intro__photo::before { /* lime offset block behind photo */
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; z-index: -1;
  background: var(--lime); border-radius: var(--radius-lg);
}
.intro__photo { isolation: isolate; }
.intro__photo figcaption { font-size: .85rem; color: var(--muted); margin-top: 1.75rem; }

.campaigns-band { background: var(--grad-blue); color: var(--white); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.campaigns-band__inner {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(3.5rem, 8vw, 5.5rem) var(--gutter);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 5rem);
}
.campaigns-band h2 { color: var(--white); font-family: var(--f-display); }
.campaigns-band__head p { color: rgba(255,255,255,.85); max-width: 26em; }
.campaign-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.2); }
.campaign-list li { border-bottom: 1px solid rgba(255,255,255,.2); }
.campaign-list a {
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: center;
  padding: 1.15rem .25rem; color: var(--white); text-decoration: none;
  transition: padding .2s, color .2s;
}
.campaign-list a::after {
  content: ""; grid-row: 1 / span 2; grid-column: 2;
  width: .6rem; height: .6rem; border-top: 2px solid var(--lime); border-right: 2px solid var(--lime);
  transform: rotate(45deg);
}
.campaign-list strong { font-family: var(--f-slab); font-weight: 600; font-size: 1.35rem; }
.campaign-list span { color: rgba(255,255,255,.75); font-size: .95rem; }
.campaign-list a:hover { padding-left: .75rem; }
.campaign-list a:hover strong { color: var(--lime); }

.news-home { max-width: var(--wrap); margin: 0 auto; padding: clamp(3.5rem, 8vw, 5.5rem) var(--gutter); }
.news-home__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.news-home__head h2 { margin: 0; font-family: var(--f-display); }
.news-home__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }

.news-lead {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--paper); border-radius: var(--radius-lg); overflow: hidden;
}
.news-lead img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-lead__text { padding: 1.5rem 1.75rem 1.75rem; }
.news-lead h3 { font-family: var(--f-slab); font-weight: 600; font-size: 1.7rem; margin: .3rem 0 .5rem; }
.news-lead:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.news-lead p { margin: 0; color: var(--muted); }

time { font-size: .88rem; font-weight: 600; color: var(--blue); }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list li:first-child { border-top: 1px solid var(--line); }
.news-list a { display: block; padding: 1.25rem 0; text-decoration: none; color: var(--ink); }
.news-list h3 { font-family: var(--f-slab); font-weight: 600; font-size: 1.3rem; margin: .2rem 0 .3rem; }
.news-list a:hover h3 { color: var(--blue); text-decoration: underline; text-underline-offset: .15em; }
.news-list p { margin: 0; color: var(--muted); font-size: .97rem; }

.join-band { background: var(--lime); position: relative; overflow: hidden; }
.join-band::after { /* soft blue arc */
  content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%;
  border: 1.5px solid rgba(23,43,102,.15); box-shadow: 0 0 0 40px rgba(23,43,102,.04), 0 0 0 80px rgba(23,43,102,.03);
  pointer-events: none;
}
.join-band__inner {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(2.75rem, 6vw, 4rem) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem;
  position: relative; z-index: 1;
}
.join-band h2 { font-family: var(--f-display); margin-bottom: .3em; }
.join-band p { margin: 0; max-width: 34em; }
.join-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 860px) {
  .intro, .campaigns-band__inner, .news-home__grid { grid-template-columns: 1fr; }
  .intro__photo { margin-right: 1.25rem; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--white);
  background:
    repeating-radial-gradient(circle at 92% 10%, transparent 0 24px, rgba(255,255,255,.05) 24px 25.5px),
    radial-gradient(ellipse 60% 120% at 90% 0%, rgba(64,115,222,.7), transparent 70%),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
}
.page-hero__inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(1.5rem, 3.5vw, 2.5rem) var(--gutter) clamp(1.75rem, 3.5vw, 2.5rem); }
.page-hero__title {
  font-family: var(--f-display); font-weight: 700; color: var(--white);
  font-size: clamp(1.65rem, 3.5vw, 2.5rem); line-height: 1.15; margin: 0 0 .35em; max-width: 28ch;
}
.page-hero__title:last-child { margin-bottom: 0; }
.page-hero__intro { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 38em; margin: 0; color: rgba(255,255,255,.88); }
.page-hero__intro time { color: var(--lime); font-size: inherit; }

.crumbs ol { list-style: none; margin: 0 0 .75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .9rem; }
.crumbs li { color: rgba(255,255,255,.75); display: flex; align-items: center; gap: .5rem; }
.crumbs li + li::before { content: "/"; color: var(--lime); }
.crumbs a { color: rgba(255,255,255,.9); }
.crumbs a:hover { color: var(--lime); }

.page-body {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.75rem) var(--gutter) clamp(3.5rem, 8vw, 6rem);
}
.page-body--sidebar { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.section-nav { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.section-nav__title { font-family: var(--f-display); font-size: 1.15rem; margin: 0 0 .75rem; }
.section-nav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.section-nav a {
  display: block; padding: .5rem 0 .5rem 1rem; margin-left: -2px;
  border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35;
}
.section-nav a:hover { color: var(--blue); border-color: var(--blue); }
.section-nav a[aria-current="page"] { color: var(--blue-deep); font-weight: 700; border-color: var(--lime-deep); background: linear-gradient(90deg, rgba(232,253,132,.5), transparent); }

@media (max-width: 860px) {
  .page-body--sidebar { grid-template-columns: 1fr; }
  .section-nav { position: static; order: 2; background: var(--paper); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
}

/* Long-form content */
.prose { max-width: 70ch; line-height: 1.7; }
/* Pages with a picture gallery use the full width so pictures can be bigger */
.prose:has(.gallery) { max-width: none; }
.prose:has(.gallery) > :not(.gallery) { max-width: 70ch; }
.prose p { margin: 0 0 1.9em; }
.prose > :last-child { margin-bottom: 0; }
.page-body--wide .prose { max-width: none; }
.prose h1, .prose h2 { margin: 3.25rem 0 .8rem; }
.prose h3, .prose h4, .prose h5, .prose h6 { margin: 2.75rem 0 .7rem; }
.prose h1 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.prose h3 { font-size: 1.25rem; }
.prose h4, .prose h5, .prose h6 { font-size: 1.08rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.9em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--blue); }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; }
.prose blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 4px solid var(--lime-deep); font-family: var(--f-slab); font-size: 1.25rem; color: var(--blue-deep); }

.notice { background: var(--paper); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.4rem; margin: 0 0 1.5rem; }
.notice p:last-child { margin: 0; }
.notice--success { border-color: #2e8b57; background: #eef8f1; }
.notice--error { border-color: #b3261e; background: #fdeeed; }

/* Link cards (campaigns, links) */
.prose .link-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.link-cards li { margin: 0; }
.link-cards a {
  display: flex; flex-direction: column; justify-content: center; gap: .2rem; height: 100%;
  padding: 1.15rem 1.35rem; border-radius: var(--radius);
  border: 1.5px solid var(--line); text-decoration: none;
  font-family: var(--f-slab); font-weight: 600; font-size: 1.2rem; color: var(--blue-deep);
  transition: border-color .2s, background-color .2s;
}
.link-cards a span { font-family: var(--f-body); font-weight: 400; font-size: .92rem; color: var(--muted); }
.link-cards a:hover { border-color: var(--blue); background: var(--paper); }

/* News index */
.news-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.news-index__item a {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.75rem; align-items: center;
  text-decoration: none; color: var(--ink); padding-bottom: 1.25rem; border-bottom: 1px solid var(--line);
}
.news-index__item img, .news-index__noimg { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.news-index__noimg { display: grid; place-items: center; background: var(--grad-blue); color: rgba(255,255,255,.55); }
.news-index__noimg svg { width: 34%; }
.news-index h2 { font-family: var(--f-slab); font-weight: 600; font-size: 1.5rem; margin: .2rem 0 .4rem; }
.news-index a:hover h2 { color: var(--blue); text-decoration: underline; text-underline-offset: .15em; }
.news-index p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .news-index__item a { grid-template-columns: 1fr; gap: 1rem; } }

.story { max-width: 70ch; }
.story__image { margin: 0 0 2rem; }
.story__image img { border-radius: var(--radius-lg); }
.story__back { margin-top: 2.5rem; }

/* Events */
.prose .event-list { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; gap: 1rem; }
.event { display: flex; gap: 1.4rem; align-items: flex-start; padding: 1.4rem; border-radius: var(--radius-lg); background: var(--paper); }
.prose .event { margin: 0; }
.event__title { font-family: var(--f-slab); font-weight: 600; font-size: 1.4rem; margin: 0 0 .35rem; }
.event__meta { font-weight: 600; color: var(--blue); font-size: .97rem; }
.event p:last-child { margin-bottom: 0; }
.date-tile {
  flex: none; width: 76px; padding: .55rem 0 .6rem; text-align: center;
  background: var(--grad-blue); color: var(--white); border-radius: 16px; font-family: var(--f-slab);
}
.date-tile__day { display: block; font-size: 2rem; font-weight: 600; line-height: 1; }
.date-tile__month { display: block; color: var(--lime); font-weight: 600; }
.date-tile__label { display: block; font-family: var(--f-body); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.8); margin-bottom: .15rem; }
.event__title a { color: inherit; text-decoration: none; }
.event__title a:hover { text-decoration: underline; text-underline-offset: .15em; }
.badge {
  display: inline-block; vertical-align: middle; margin-left: .5rem;
  background: var(--lime); color: var(--blue-deep);
  font: 700 .72rem/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em;
  padding: .35em .7em; border-radius: 999px;
}
.event-list--past .event { background: transparent; border: 1.5px solid var(--line); }
.event-list--past .date-tile { background: var(--line); color: var(--blue-deep); }
.event-list--past .date-tile__month { color: var(--blue); }

/* Forms */
.form { margin-top: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { margin: 0 0 1.25rem; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: .4rem; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem 1rem; border: 1.5px solid #b9c5e2; border-radius: 12px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 92, 198, .18); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: .92rem; font-weight: 600; margin: .4rem 0 0; }
.check { display: flex !important; gap: .6rem; align-items: center; font-weight: 400 !important; margin-bottom: .35rem; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--blue); }
.form__privacy { font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  color: rgba(255,255,255,.82);
  background:
    radial-gradient(ellipse 50% 80% at 0% 0%, rgba(47,92,198,.45), transparent 70%),
    var(--blue-deep);
  font-size: .95rem;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--lime); text-decoration: underline; }
.site-footer__inner {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 7vw, 4.5rem) var(--gutter) 2.5rem;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(2rem, 5vw, 4rem);
}
.brand--footer .brand__name { font-size: 1.3rem; }
.site-footer__tagline { font-size: 2.15rem; color: var(--lime); margin: .5rem 0 .75rem; line-height: 1.2; }
.site-footer__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
.footer-col__title { font: 700 1rem var(--f-body); margin: 0 0 .6rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .35rem; line-height: 1.4; }
.footer-col li a { color: rgba(255,255,255,.75); }
.site-footer__base {
  max-width: var(--wrap); margin: 0 auto; padding: 1.25rem var(--gutter) 2rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .88rem;
}
.site-footer__base p { margin: 0; }
@media (max-width: 960px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .section-nav, .hero__corner, .join-band { display: none; }
  .hero, .page-hero { background: none; color: #000; }
  .hero__title, .page-hero__title { color: #000; text-shadow: none; }
}

/* ==========================================================================
   Picture gallery + full-size viewer (lightbox)
   ========================================================================== */
.prose .gallery {
  list-style: none; padding: 0; margin: 2rem 0 2.5rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.25rem;
}
.prose .gallery__item { margin: 0; }
.gallery a {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius); background: var(--paper);
  box-shadow: 0 10px 24px -14px rgba(23, 43, 102, .45);
}
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 0; transition: transform .35s ease;
}
.gallery a::after { /* small "enlarge" badge */
  content: ""; position: absolute; right: .7rem; bottom: .7rem; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; background: rgba(23, 43, 102, .78) no-repeat center / 1.05rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8fd84' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E");
  opacity: .9; transition: opacity .2s, transform .2s;
}
.gallery a:hover img { transform: scale(1.04); }
.gallery a:hover::after { transform: scale(1.08); opacity: 1; }
.gallery__caption { font-size: .92rem; color: var(--muted); margin: .6rem 0 0 !important; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 18, 48, .94); color: var(--white);
}
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox::backdrop { background: transparent; }
.lightbox__stage { display: grid; place-items: center; padding: 4.5rem 4.5rem 1rem; min-height: 0; overflow: hidden; }
.lightbox__img { max-width: min(100%, calc(100vw - 9rem)); max-height: calc(100vh - 10rem); max-height: calc(100dvh - 10rem); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__bar { display: flex; justify-content: center; gap: 1rem; align-items: center; padding: .75rem 1rem 1.5rem; font-size: .95rem; text-align: center; }
.lightbox__count { color: var(--lime); font-weight: 700; }
.lightbox__btn {
  position: fixed; display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: var(--white); font-size: 1.6rem; line-height: 1;
  transition: background-color .2s, color .2s;
}
.lightbox__btn:hover { background: var(--lime); color: var(--blue-deep); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox__stage { padding: 4rem .75rem .5rem; }
  .lightbox__img { max-width: 100%; max-height: calc(100vh - 12rem); max-height: calc(100dvh - 12rem); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; }
  .lightbox__bar { padding-bottom: 5rem; }
}

/* Keep event cards compact (overrides the general page spacing) */
.prose .event__title { margin: 0 0 .4rem; }
.prose .event p { margin: 0 0 .7em; }
.prose .event p:last-child { margin-bottom: 0; }

/* Small group headings inside menus (e.g. "Past campaigns") */
.nav__sub-heading {
  margin: .5rem .85rem .25rem; padding-top: .6rem; border-top: 1px solid var(--line);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
@media (max-width: 1100px) {
  .nav__sub-heading { color: rgba(255,255,255,.65); border-color: rgba(255,255,255,.18); margin: .5rem 1rem .2rem; }
}
.section-nav__heading {
  margin: 1.1rem 0 .4rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.footer-col__heading {
  margin: .8rem 0 .35rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--lime);
}

/* ==========================================================================
   Home banner photo – fades from the left into the blue background
   Three looks to choose from: change hero--photo-b in home.php to -a or -c
   ========================================================================== */
.hero__photo {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: url("../img/hero-wincheap.jpg") 28% 45% / cover no-repeat; /* second number moves the photo: lower % = photo sits lower */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.85) 30%, rgba(0,0,0,.35) 58%, transparent 80%);
          mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.85) 30%, rgba(0,0,0,.35) 58%, transparent 80%);
}
/* a dark-blue wash over the photo keeps the white text easy to read */
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(23,43,102,.42) 0%, rgba(23,43,102,.25) 45%, transparent 80%);
}

/* A: blue-tinted photo (the photo takes on the site's blue) */
.hero--photo-a .hero__photo { mix-blend-mode: luminosity; opacity: .55; }

/* B: natural colour, softly faded */
.hero--photo-b .hero__photo { opacity: .45; }

/* C: stronger blue-tinted photo across more of the banner */
.hero--photo-c .hero__photo {
  mix-blend-mode: luminosity; opacity: .75;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 40%, rgba(0,0,0,.5) 68%, transparent 92%);
          mask-image: linear-gradient(90deg, #000 0%, #000 40%, rgba(0,0,0,.5) 68%, transparent 92%);
}
.hero--photo-c .hero__photo::after {
  background: linear-gradient(90deg, rgba(23,43,102,.7) 0%, rgba(23,43,102,.45) 50%, rgba(23,43,102,.1) 90%);
}

/* On narrow screens the photo sits at the top and fades downwards */
@media (max-width: 860px) {
  .hero__photo, .hero--photo-c .hero__photo {
    background-size: 175% auto; background-position: 34% 0;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.7) 40%, transparent 85%);
            mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.7) 40%, transparent 85%);
  }
  .hero__photo::after, .hero--photo-c .hero__photo::after {
    background: linear-gradient(180deg, rgba(23,43,102,.5) 0%, rgba(23,43,102,.35) 50%, transparent 85%);
  }
}

/* A soft shadow behind the banner text so it stays crisp over the photo */
.hero__title, .hero__lead { text-shadow: 0 2px 14px rgba(10, 20, 60, .55), 0 1px 3px rgba(10, 20, 60, .45); }

/* ==========================================================================
   Next event panel – light versions
   Change hero__event--white in home.php to --frost or --lime to try the others
   ========================================================================== */
.hero__event--white, .hero__event--frost, .hero__event--lime {
  border: 0; box-shadow: 0 24px 50px -22px rgba(10, 20, 60, .6);
}
.hero__event--white .hero__event-label,
.hero__event--frost .hero__event-label,
.hero__event--lime  .hero__event-label {
  color: var(--blue); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700;
}
.hero__event--white .hero__event-title,
.hero__event--frost .hero__event-title,
.hero__event--lime  .hero__event-title { color: var(--blue-deep); }
.hero__event--white .hero__event-when,
.hero__event--frost .hero__event-when { color: var(--blue); }
.hero__event--white .hero__event-venue,
.hero__event--frost .hero__event-venue { color: var(--muted); }
.hero__event--white .link-arrow,
.hero__event--frost .link-arrow,
.hero__event--lime  .link-arrow { color: var(--blue); }

/* 1. Solid white card with a lime edge */
.hero__event--white {
  background: var(--white);
  border-right: 6px solid var(--lime);
  border-radius: 22px 8px 8px 22px;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* 2. Frosted glass: mostly white, a hint of the photo shows through */
.hero__event--frost {
  background: rgba(255, 255, 255, .8);
  border-radius: 22px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero__event--frost::before { /* lime strip along the top */
  content: ""; position: absolute; left: 1.75rem; right: 1.75rem; top: 0; height: 5px; border-radius: 0 0 5px 5px; background: var(--lime-deep);
}
.hero__event--frost { position: relative; }
/* 3. Lime card */
.hero__event--lime {
  background: var(--lime);
  border-radius: 22px;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.hero__event--lime .hero__event-when { color: var(--blue); }
.hero__event--lime .hero__event-venue { color: var(--ink); }

@media (max-width: 860px) {
  .hero__event--white { border-right: 0; border-left: 6px solid var(--lime); border-radius: 8px 22px 22px 8px; }
  .hero__event--frost, .hero__event--lime { border-radius: 18px; }
}

/* ==========================================================================
   Festive decoration for Christmas events (home page next event panel)
   ========================================================================== */
.hero__event--christmas { position: relative; overflow: hidden; isolation: isolate; padding-top: 3.1rem; }
.hero__event--christmas > :not(.festive-snow):not(.festive-holly) { position: relative; z-index: 1; }

/* holly sprig in the top corner */
.festive-holly {
  position: absolute; top: .35rem; left: .5rem; width: 80px; height: auto; z-index: 1;
  transform: rotate(-12deg); filter: drop-shadow(0 3px 4px rgba(20, 60, 30, .25));
}

/* gently falling snowflakes behind the text */
.festive-snow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cpath d='M20.0 23.0L20.0 37.0M26.1 26.5L13.9 33.5M26.1 33.5L13.9 26.5' stroke='%2393abe0' stroke-width='1.6' stroke-linecap='round' fill='none'/%3E%3Cpath d='M120.0 9.0L120.0 21.0M125.2 12.0L114.8 18.0M125.2 18.0L114.8 12.0' stroke='%2393abe0' stroke-width='1.6' stroke-linecap='round' fill='none'/%3E%3Cpath d='M75.0 87.0L75.0 103.0M81.9 91.0L68.1 99.0M81.9 99.0L68.1 91.0' stroke='%2393abe0' stroke-width='1.6' stroke-linecap='round' fill='none'/%3E%3Cpath d='M160.0 114.0L160.0 126.0M165.2 117.0L154.8 123.0M165.2 123.0L154.8 117.0' stroke='%2393abe0' stroke-width='1.6' stroke-linecap='round' fill='none'/%3E%3Cpath d='M35.0 143.0L35.0 157.0M41.1 146.5L28.9 153.5M41.1 153.5L28.9 146.5' stroke='%2393abe0' stroke-width='1.6' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M50.0 16.0L50.0 24.0M53.5 18.0L46.5 22.0M53.5 22.0L46.5 18.0' stroke='%23bccbee' stroke-width='1.4' stroke-linecap='round' fill='none'/%3E%3Cpath d='M100.0 66.5L100.0 73.5M103.0 68.2L97.0 71.8M103.0 71.8L97.0 68.2' stroke='%23bccbee' stroke-width='1.4' stroke-linecap='round' fill='none'/%3E%3Cpath d='M15.0 81.0L15.0 89.0M18.5 83.0L11.5 87.0M18.5 87.0L11.5 83.0' stroke='%23bccbee' stroke-width='1.4' stroke-linecap='round' fill='none'/%3E%3Cpath d='M70.0 107.0L70.0 113.0M72.6 108.5L67.4 111.5M72.6 111.5L67.4 108.5' stroke='%23bccbee' stroke-width='1.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-size: 180px 180px, 120px 120px;
  opacity: .6;
  animation: festive-snowfall 22s linear infinite;
}
@keyframes festive-snowfall {
  from { background-position: 0 0, 40px 0; }
  to   { background-position: 0 180px, 40px 240px; }
}
@media (prefers-reduced-motion: reduce) { .festive-snow { animation: none; } }

/* a festive red for the dates */
.hero__event--christmas .hero__event-when { color: #b3122f; }
.hero__event--christmas .hero__event-label { color: #2e7d4a; }

@media (max-width: 860px) {
  .festive-holly { left: auto; right: .4rem; top: .25rem; width: 64px; transform: rotate(12deg); }
  .hero__event--christmas { padding-top: 2.4rem; }
}


/* Campaign logo floated beside the opening text (centred above it on phones) */
.prose .campaign-logo { float: right; width: clamp(140px, 22%, 200px); margin: .25rem 0 1rem 1.75rem; }
.prose .campaign-logo img { width: 100%; height: auto; border-radius: 0; }
.prose h2 { clear: both; }
@media (max-width: 640px) {
  .prose .campaign-logo { float: none; display: block; width: 160px; margin: 0 auto 1.5rem; }
}

/* Single full-width picture that can be enlarged (e.g. a plan) */
.prose .gallery--single { grid-template-columns: 1fr; max-width: 70ch; }
.gallery--single img { aspect-ratio: auto; object-fit: contain; background: var(--white); }

/* Residents' contributions: quoted letters */
.prose .contribution { margin: 0 0 1.75rem; padding: 1.5rem 1.75rem 1.25rem; background: var(--paper); border-left: 4px solid var(--lime-deep); border-radius: 0 var(--radius) var(--radius) 0; }
.prose .contribution blockquote { margin: 0; padding: 0; border: 0; font-family: var(--f-body); font-size: 1rem; color: var(--ink); }
.prose .contribution blockquote p { margin-bottom: 1em; }
.prose .contribution blockquote ol { margin-bottom: 1em; }
.prose .contribution figcaption { font-weight: 700; color: var(--blue); font-size: .95rem; }
.prose .contribution figcaption::before { content: "— "; }

/* Simple timeline list */
.prose .timeline { list-style: none; padding-left: 0; border-left: 3px solid var(--lime-deep); margin-left: .35rem; }
.prose .timeline li { position: relative; padding: 0 0 .9rem 1.4rem; margin: 0; }
.prose .timeline li::before { content: ""; position: absolute; left: -9px; top: .55em; width: 13px; height: 13px; border-radius: 50%; background: var(--blue); border: 2px solid var(--white); }

/* Competition results list */
.prose .results { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.5rem; margin: 1.5rem 0; padding: 1.25rem 1.5rem; background: var(--paper); border-radius: var(--radius); }
.prose .results dt { font-weight: 700; color: var(--blue-deep); }
.prose .results dd { margin: 0; }
@media (max-width: 520px) { .prose .results { grid-template-columns: 1fr; gap: .15rem; } .prose .results dd { margin-bottom: .7rem; } }

/* ==========================================================================
   Festive page banner (fairy lights and lanterns) – used by the Christmas page
   ========================================================================== */
.page-hero--christmas .page-hero__inner { padding-top: clamp(4.25rem, 7vw, 5.25rem); position: relative; z-index: 1; }
.festive-hero { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
/* drawn at its natural size (never stretched), centred, and simply runs off both edges */
.fairy-lights { position: absolute; top: 0; left: 50%; width: 3840px; max-width: none; height: 70px; transform: translateX(-50%); }
.fl-glass { filter: drop-shadow(0 0 4px var(--c)) drop-shadow(0 0 9px var(--c)); animation: fl-twinkle 2.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes fl-twinkle { 0%, 100% { opacity: 1; } 45% { opacity: .35; filter: none; } 55% { opacity: .5; } }

.lantern { position: absolute; top: 0; width: 46px; height: auto; transform-origin: 50% 0; animation: lantern-sway 5s ease-in-out infinite; }
.lantern--1 { right: 8%; width: 84px; }
.lantern--2 { right: 2.5%; width: 66px; top: -22px; animation-delay: -2.2s; }
.lantern__halo { animation: lantern-flicker 3.2s ease-in-out infinite; }
@keyframes lantern-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes lantern-flicker { 0%, 100% { opacity: 1; } 40% { opacity: .82; } 60% { opacity: .95; } }
@media (max-width: 760px) { .lantern--2 { display: none; } .lantern--1 { right: 1%; width: 62px; } }
@media (prefers-reduced-motion: reduce) { .fl-glass, .lantern, .lantern__halo { animation: none; } }

/* ==========================================================================
   Faint photo collage behind a page banner (set $heroPhotos on a page)
   ========================================================================== */
.page-hero--photos { isolation: isolate; }
.page-hero__photos { position: absolute; inset: 0; z-index: -1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; pointer-events: none; }
.page-hero__photos span {
  background-size: cover; background-position: center 40%;
  opacity: .4;
  /* each photo fades softly into the next */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
  margin: 0 -6%;
}
.page-hero__photos span:first-child { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 82%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 82%, transparent 100%); margin-left: 0; }
.page-hero__photos span:last-child  { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 100%); margin-right: 0; }
.page-hero__photos--1 span { -webkit-mask-image: none; mask-image: none; margin: 0; }
/* a blue wash on top keeps the white text easy to read */
.page-hero__photos::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,43,102,.55) 0%, rgba(23,43,102,.3) 60%, rgba(23,43,102,.45) 100%); }
.page-hero--photos .page-hero__title, .page-hero--photos .page-hero__intro { text-shadow: 0 2px 12px rgba(10,20,60,.55); }
.prose .photo-credits { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .78rem; line-height: 1.5; color: var(--muted); }

/* Two photos: one at each side, fading towards an open middle */
.page-hero__photos--2 { grid-template-columns: 40% 1fr 40%; grid-auto-flow: row; }
.page-hero__photos--2 span { margin: 0; }
.page-hero__photos--2 span:first-child { grid-column: 1; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 45%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 45%, transparent 100%); }
.page-hero__photos--2 span:last-child  { grid-column: 3; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 55%, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 55%, #000 100%); }
@media (max-width: 640px) {
  .page-hero__photos span:nth-child(n+2) { display: none; }   /* one photo on phones */
  .page-hero__photos span:first-child { -webkit-mask-image: none; mask-image: none; margin: 0; }
}
.page-hero__photos--2::after { background: linear-gradient(90deg, rgba(23,43,102,.35) 0%, rgba(23,43,102,.5) 50%, rgba(23,43,102,.35) 100%); }
.page-hero__photos--2 span { opacity: .5; }

/* One photo: on the left, fading into the blue */
.page-hero__photos--1 { grid-template-columns: 48% 1fr; grid-auto-flow: row; }
.page-hero__photos.page-hero__photos--1 span:only-child { grid-column: 1; margin: 0; opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 50%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 50%, transparent 100%); }
.page-hero__photos--1::after { background: linear-gradient(90deg, rgba(23,43,102,.35) 0%, rgba(23,43,102,.45) 50%, rgba(23,43,102,.3) 100%); }
@media (max-width: 640px) { .page-hero__photos--1 { grid-template-columns: 100% 0; } }

/* Photos floated beside the text: <figure class="photo-right"> or <figure class="photo-left"> */
.prose .photo-left, .prose .photo-right { width: min(45%, 320px); margin: .35rem 0 1.25rem; }
.prose .photo-right { float: right; margin-left: 1.75rem; }
.prose .photo-left  { float: left;  margin-right: 1.75rem; }
.prose .photo-left img, .prose .photo-right img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 10px 24px -14px rgba(23, 43, 102, .45); }
.prose .photo-left figcaption, .prose .photo-right figcaption { font-size: .85rem; line-height: 1.4; margin-top: .5rem; }
.prose h2, .prose h3 { clear: both; }
@media (max-width: 600px) {
  .prose .photo-left, .prose .photo-right { float: none; width: 100%; margin: 1.25rem 0; }
}

/* Small photo credit at the foot of the home page */
.home-credits { max-width: var(--wrap); margin: 0 auto; padding: .9rem var(--gutter); font-size: .78rem; color: var(--muted); }
.home-credits a { color: var(--muted); }

/* Social media link (Contact page) */
.prose .social-link a {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .6rem 1.1rem .6rem .7rem; border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 700; text-decoration: none; color: var(--blue-deep); background: var(--white);
  transition: border-color .2s, background-color .2s;
}
.prose .social-link a:hover { border-color: var(--blue); background: var(--paper); }
.prose .social-link img { width: 28px; height: 28px; border-radius: 0; flex: none; }
