/*
Theme Name: PFSMF
Theme URI:
Description: Port Fairy Spring Music Festival
Author: Envelope Group
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: pfsmf
*/

:root {
  /* Brand palette — three tiers per colour: highlight, standard, contrast. */

  --c-background: #f7f6ea;

  --c-country-highlight: #ffc471;
  --c-country: #d39b4c;
  --c-country-contrast: #b78641;

  --c-earth-highlight: #ff6c6c;
  --c-earth: #d81414;
  --c-earth-contrast: #b01111;

  --c-glow-highlight: #ffa883;
  --c-glow: #f77741;
  --c-glow-contrast: #b1542d;

  --c-pines-highlight: #dfed6c;
  --c-pines: #9ca648;
  --c-pines-contrast: #7e863a;

  --c-sand-highlight: #fff5d5;
  --c-sand: #e8e6c7;
  --c-sand-contrast: #bdbba4;

  --c-sky-highlight: #bfe8fc;
  --c-sky: #24b5ff;
  --c-sky-contrast: #1f9bda;

  --c-sun-highlight: #ffeba9;
  --c-sun: #f2c42c;
  --c-sun-contrast: #a88825;

  --c-wanderer-highlight: #c892ff;
  --c-wanderer: #8c37e3;
  --c-wanderer-contrast: #6c2baf;

  /* Typefaces (Adobe Fonts kit nvf4soy) */
  --ff-sans: franklin-gothic-urw, sans-serif; /* UI, labels, nav */
  --ff-text: miller-text, serif; /* body copy */
  --ff-headline: miller-headline, serif; /* display headings */

  /* Franklin Gothic URW weights: 300 light, 400 book, 500 medium */
  /* Miller Text weights:         400 roman, 700 bold               */
  /* Miller Headline weights:     300 light, 400 roman, 600 semi-bold */

  /* Fluid type scale */
  --step--1: clamp(0.83rem, 0.78rem + 0.2vw, 0.94rem);
  --step-0: clamp(1rem, 0.95rem + 0.3vw, 1.13rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.6vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 4rem;

  /* Layout */
  --measure: 65ch; /* max line length for readable text */
  --container: 72rem; /* max content width */
  --radius: 4px;

  /* Semantic tokens */
  --c-ink: #1a1918; /* near-black body text */
  --c-paper: #ffffff; /* card / component backgrounds */
  --c-line: #d4d1b8; /* borders, dividers */
  --c-muted: #6b6960; /* secondary / de-emphasised text */
  --c-accent: var(--c-country); /* link / interactive accent */
  --c-focus: var(--c-sky); /* keyboard focus ring */

  /* Breakpoints are documented here for reference; use them in media queries.
	   --bp-s: 30em; --bp-m: 48em; --bp-l: 64em; */
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

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

body {
  margin: 0;
  color: var(--c-ink);
  background: var(--c-background);
  font-family: var(--ff-text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-weight: 300;
  line-height: 1.15;
}
h1 {
  font-size: var(--step-3);
}
h2 {
  font-size: var(--step-2);
}
h3 {
  font-size: var(--step-1);
}

p,
li {
  max-width: var(--measure);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-accent);
}

/* Visible, high-contrast focus for every interactive element. */
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

/* Accessibility utilities */
.screen-reader-text {
  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: var(--space-s);
  top: var(--space-s);
  z-index: 1000;
  padding: var(--space-xs) var(--space-s);
  background: var(--c-paper);
  color: var(--c-ink);
  border: 2px solid var(--c-focus);
  border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(0); /* reveal on keyboard focus */
  clip: auto;
  width: auto;
  height: auto;
}

/* Buttons / CTAs */
.btn {
  display: inline-block;
  padding: 0.7em 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.btn--accent {
  background: var(--c-accent);
  color: var(--c-accent-ink);
}
.btn--accent:hover {
  filter: brightness(0.92);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-m);
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

/* ── Wanderer band: logo + contact ──────────────────────────────────────── */

.footer-top {
  background-color: var(--c-wanderer);
  padding-block: var(--space-xl);
}

.footer-top__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 48em) {
  .footer-top__inner {
    grid-template-columns: 1fr;
  }
}

.footer-top__logo a {
  display: inline-block;
}

.footer-top__logo svg {
  width: 160px;
  height: auto;
  display: block;
}

@media (min-width: 48em) {
  .footer-top__logo svg {
    width: 200px;
  }
}

.footer-top__contact-heading {
  font-family: var(--ff-sans);
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--c-background);
  margin-block-start: 0;
}

.footer-top__address {
  font-family: var(--ff-sans);
  font-size: var(--step-0);
  font-style: normal;
  color: var(--c-background);
  margin-block-end: var(--space-m);
  line-height: 1;
}

.footer-top__phone,
.footer-top__email {
  display: block;
  font-family: var(--ff-sans);
  font-size: var(--step-0);
  color: var(--c-background);
  text-decoration: none;
}

.footer-top__phone {
  margin-block-end: var(--space-s);
}

.footer-top__phone:hover,
.footer-top__phone:focus,
.footer-top__email:hover,
.footer-top__email:focus {
  text-decoration: underline;
}

.footer-top__phone:focus-visible,
.footer-top__email:focus-visible,
.footer-top__logo a:focus-visible {
  outline: 2px solid var(--c-sand);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ── Wanderer band: nav columns ─────────────────────────────────────────── */

.footer-nav {
  background-color: var(--c-wanderer);
  padding-block-start: 0;
  padding-block-end: var(--space-xl);
  border-top: 1px solid rgba(232, 230, 199, 0.2);
}

.footer-nav__inner {
  padding-block-start: var(--space-l);
}

.footer-nav__columns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
}

@media (max-width: 48em) {
  .footer-nav__columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 30em) {
  .footer-nav__columns {
    grid-template-columns: 1fr;
  }
}

.footer-nav__master {
  font-family: var(--ff-sans);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--c-background);
  text-decoration: none;
  display: block;
  margin-block-end: var(--space-s);
}

a.footer-nav__master:hover,
a.footer-nav__master:focus {
  text-decoration: underline;
}

a.footer-nav__master:focus-visible {
  outline: 2px solid var(--c-sand);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.footer-nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-nav__links a {
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  color: var(--c-background);
  text-decoration: none;
}

.footer-nav__links a:hover,
.footer-nav__links a:focus {
  text-decoration: underline;
}

.footer-nav__links a:focus-visible {
  outline: 2px solid var(--c-sand);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ── Wanderer band: Acknowledgement of Country ──────────────────────────── */

.footer-acknowledgement {
  background-color: var(--c-wanderer);
  border-top: 1px solid rgba(232, 230, 199, 0.2);
  padding-block: var(--space-m);
}

.footer-acknowledgement section {
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  color: var(--c-background);
  max-width: var(--measure);
  opacity: 0.8;
  line-height: 1.6;
}

.footer-acknowledgement section p {
  margin: 0;
}

/* ── Sky band: Supporters carousel ─────────────────────────────────────── */

.footer-supporters {
  background-color: var(--c-sky-highlight);
  padding-block: var(--space-xl);
  overflow: hidden;
}

.footer-supporters__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-block-end: var(--space-l);
}

.footer-supporters__title {
  font-family: var(--ff-sans);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--c-wanderer-contrast);
  margin: 0;
}

.footer-supporters__about {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  color: var(--c-wanderer-contrast);
  text-decoration: none;
}

.footer-supporters__about:hover,
.footer-supporters__about:focus {
  text-decoration: underline;
}

.footer-supporters__about:focus-visible {
  outline: 2px solid var(--c-wanderer-contrast);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.footer-supporters__about-icon {
  flex-shrink: 0;
}

.footer-supporters__carousel {
  overflow: hidden;
}

/* The scrolling track contains two identical sets of logos.
   Animating from 0 → -50% scrolls exactly one set's width before looping. */
.supporters-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: pfsmf-supporters-scroll 40s linear infinite;
  mix-blend-mode: multiply;
}

@keyframes pfsmf-supporters-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Pause the scroll when the user hovers or focuses a link inside the carousel */
.footer-supporters__carousel:hover .supporters-track,
.footer-supporters__carousel:focus-within .supporters-track {
  animation-play-state: paused;
}

/* Hide duplicate logos for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .supporters-set--clone {
    display: none;
  }
}

.supporters-set {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding-inline: var(--space-l);
  list-style: none;
  margin: 0;
  padding: 0;
  padding-inline: var(--space-l);
}

.supporters-set__item a {
  display: block;
}

.supporters-set__item img {
  max-height: 60px;
  width: auto;
  display: block;
  transition:
    opacity 0.2s ease,
    filter 0.2s ease;
}

.supporters-set__item a:hover img,
.supporters-set__item a:focus img {
  filter: grayscale(0);
  opacity: 1;
}

.supporters-set__item a:focus-visible {
  outline: 2px solid var(--c-wanderer-contrast);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Non-linked logos */
.supporters-set__item > img {
  max-height: 60px;
  width: auto;
  display: block;
}

.supporters-set__text {
  font-family: var(--ff-sans);
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--c-wanderer-contrast);
  white-space: nowrap;
}

/* ── Sand band: bottom bar ──────────────────────────────────────────────── */

.footer-bottom {
  background-color: var(--c-sand);
  padding-block: var(--space-m);
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-s);
}

.footer-bottom__copyright,
.footer-bottom__brand {
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  color: var(--c-wanderer-contrast);
  margin: 0;
}

.footer-bottom__brand a {
  color: var(--c-wanderer-contrast);
  text-decoration: none;
  font-weight: 500;
}

.footer-bottom__brand a:hover,
.footer-bottom__brand a:focus {
  text-decoration: underline;
}

.footer-bottom__brand a:focus-visible {
  outline: 2px solid var(--c-wanderer-contrast);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.module {
  padding-block: var(--space-xl);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--step--1);
  color: var(--c-muted);
  margin: 0 0 var(--space-xs);
}

.module__head {
  margin-bottom: var(--space-m);
}
.module__see-all {
  font-size: var(--step--1);
}

/* Hero */
.module--hero {
  position: relative;
  overflow: hidden;
  height: 75vh; /* fallback: older browsers */
  height: 75svh; /* svh = small viewport height (chrome visible) — stable as mobile browser chrome hides on scroll */
}

/* ── Carousel slides ─────────────────────────────────────────────────────── */

.module--hero__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.module--hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* Single-image: skip fade */
.module--hero--single .module--hero__slide {
  position: relative;
  opacity: 1;
  z-index: 0;
  transition: none;
}

.module--hero__media {
  position: absolute;
  inset: 0;
}

.module--hero__media img,
.module--hero__bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Gentle Ken Burns pan: left → right while the slide is active.
   scale(1.04) keeps edges out of frame during the 1.5 % translateX. */
@keyframes pfsmf-hero-pan {
  from {
    transform: scale(1.04) translateX(-1.5%);
  }
  to {
    transform: scale(1.04) translateX(1.5%);
  }
}

.module--hero__slide.is-active .module--hero__bg {
  animation: pfsmf-hero-pan 8s ease-in-out forwards;
}

/* Gradient scrim — sits above all slides, below lockup/dates */
.module--hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.module--hero__lockup {
  position: absolute;
  bottom: var(--space-l);
  left: var(--space-l);
  z-index: 3;
  width: min(22rem, 55vw); /* scales down on narrow screens */
}

.module--hero__lockup svg {
  display: block;
  width: 100%;
  height: auto;
}

.module--hero__dates {
  position: absolute;
  bottom: var(--space-l);
  right: var(--space-l);
  z-index: 3;
  margin: 0;
  font-family: var(--ff-headline);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(var(--step-1), 3vw, var(--step-3));
  line-height: 1.1;
  text-align: right;
}

/* Whole-hero clickable link — transparent overlay above scrim, below nothing */
.module--hero__link {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 4;
  background: transparent;
}

.module--hero__link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -4px;
}

/* ── Progress bar (multi-image only) — sits below the hero in normal flow ─── */

.module--hero__progress {
  display: flex;
  gap: 4px;
  padding: 0 var(--space-m);
  margin: 0;
  list-style: none;
}

/* Each segment is a full-height button for an extended touch/click target */
.module--hero__seg {
  flex: 1;
  border: 0;
  padding: 12px 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

/* The visible track behind the fill */
.module--hero__seg::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  transform: translateY(-50%);
  background: var(--c-sand);
  border-radius: 2px;
  pointer-events: none;
}

/* The animated fill bar */
.module--hero__seg-fill {
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  margin-top: -1.5px;
  background: var(--c-sand-contrast);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  will-change: transform;
}

.module--hero__seg:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ==========================================================================
   Intro module (home module 02)
   ========================================================================== */

.module--intro {
  padding-block: 0; /* banner image is flush; internal sections set own spacing */
}

/* ── Banner image + logo wrap ─────────────────────────────────────────────── */

.intro__banner-wrap {
  position: relative; /* positions logo relative to banner bottom */
}

.intro__banner {
  height: clamp(16rem, 45svh, 28rem);
  background-attachment: fixed;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: var(--c-sand); /* placeholder while image loads */
}

/* Touch/mobile: fixed background unreliable on iOS — fall back to centred static crop */
@media (hover: none) {
  .intro__banner {
    background-attachment: scroll;
    background-position: center center;
  }
}

/* Logo flag: sits at right edge, half over image / half below */
.intro__logo {
  position: absolute;
  right: clamp(var(--space-m), 5vw, var(--space-xl));
  bottom: 0;
  transform: translateY(50%);
  width: clamp(60px, 9vw, 120px);
  height: auto;
  z-index: 1;
  pointer-events: none;
  color: var(--c-country);
}

.intro__logo svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 30em) {
  .intro__logo {
    display: none; /* too small to read on narrow screens */
  }
}

/* ── Text section ─────────────────────────────────────────────────────────── */

.intro__content {
  padding-block-start: clamp(3.5rem, 8vw, 5.5rem); /* clears logo overhang */
  padding-block-end: var(--space-xl);
}

.intro__text-row {
  display: grid;
  gap: var(--space-l);
  margin-block-end: var(--space-xl);
}

@media (min-width: 48em) {
  .intro__text-row {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.intro__heading {
  font-family: var(--ff-headline);
  font-weight: 300;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

.intro__heading-italic {
  display: block;
  font-style: italic;
  font-size: var(--step-3);
  color: var(--c-glow);
}

.intro__heading-plain {
  display: block;
  font-style: normal;
  font-size: var(--step-3);
  color: var(--c-glow);
}

.intro__body {
  font-family: var(--ff-text);
  font-size: var(--step-0);
  color: var(--c-glow);
  line-height: 1.6;
}

.intro__body p {
  max-width: none;
  margin: 0;
}

.intro__body p + p {
  margin-top: var(--space-s);
}

/* ── People grid ──────────────────────────────────────────────────────────── */

.intro__people {
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 48em) {
  .intro__people {
    grid-template-columns: 1fr 1fr;
  }
}

.intro-person {
  display: flex;
  gap: var(--space-m);
  align-items: flex-start;
}

.intro-person__portrait {
  flex-shrink: 0;
  width: clamp(5rem, 12.5vw, 6.875rem);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

.intro-person__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.intro-person__body {
  flex: 1;
}

.intro-person__name {
  font-family: var(--ff-headline);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-1);
  color: var(--c-country);
  margin: 0 0 0.2em;
  line-height: 1.2;
}

.intro-person__position {
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--c-sand-contrast);
  margin: 0 0 var(--space-s);
  line-height: 1.3;
}

.intro-person__excerpt {
  font-family: var(--ff-text);
  font-size: var(--step-0);
  color: var(--c-country);
  margin: 0 0 var(--space-s);
  max-width: none;
  line-height: 1.5;
}

.intro-person__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--c-country);
  text-decoration: none;
}

.intro-person__link:hover,
.intro-person__link:focus {
  text-decoration: underline;
}

.intro-person__link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--c-country);
  color: white;
  transition: background 0.15s;
}

.intro-person__link:hover .intro-person__link-arrow,
.intro-person__link:focus .intro-person__link-arrow {
  background: var(--c-country-contrast);
}

@media (prefers-reduced-motion: reduce) {
  .intro-person__link-arrow {
    transition: none;
  }
}

/* Carousel: native horizontal scroll, snap, keyboard scrollable */
.carousel {
  position: relative;
}
.carousel__track {
  display: flex;
  gap: var(--space-m);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-s);
  list-style: none;
  margin: 0;
}
.carousel__track > .card {
  flex: 0 0 80%;
  scroll-snap-align: start;
}
@media (min-width: 48em) {
  .carousel__track > .card {
    flex-basis: 30%;
  }
}
.carousel__controls {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-s);
}
.carousel__btn {
  width: 2.75rem;
  height: 2.75rem; /* >=44px touch target */
  border: 2px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-paper);
  cursor: pointer;
}
.carousel__btn[disabled] {
  opacity: 0.4;
  cursor: default;
}

/* Cards */
.card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card__media img {
  width: 100%;
}
.card__body {
  padding: var(--space-s);
}
.card__title {
  margin: 0 0 var(--space-xs);
}
.card__meta {
  color: var(--c-muted);
  font-size: var(--step--1);
  margin: 0;
}

/* ==========================================================================
   Newsletter + Donate module (home module 07)
   Two stacked panels, each a 50/50 grid: content + masked image.
   ========================================================================== */

.module--newsletter {
  padding-block: 0; /* panels handle their own spacing */
}

/* ── Shared panel layout ─────────────────────────────────────────────────── */

.nl-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(22rem, 48svh, 32rem);
  overflow: hidden;
}

/* When only one child (no image set), content spans full width */
.nl-panel > :only-child {
  grid-column: 1 / -1;
}

@media (max-width: 48em) {
  .nl-panel {
    grid-template-columns: 1fr;
  }
}

.nl-panel__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) clamp(var(--space-m), 7vw, var(--space-xl));
}

.nl-panel__image {
  position: relative;
  overflow: hidden;
  min-height: clamp(16rem, 40vw, 28rem);
}

.nl-panel__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.nl-panel__heading {
  font-family: var(--ff-headline);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-3);
  margin: 0 0 var(--space-s);
  line-height: 1.1;
  text-wrap: balance;
  max-width: 20ch;
}

.nl-panel__blurb {
  font-family: var(--ff-sans);
  font-size: var(--step-0);
  font-weight: 300;
  max-width: 38ch;
  margin: 0 0 var(--space-l);
  line-height: 1.5;
}

/* ── Subscribe panel (top, glow orange) ─────────────────────────────────── */

.nl-panel--subscribe {
  background: var(--c-glow);
}

.nl-panel--subscribe .nl-panel__heading {
  color: var(--c-paper);
}

.nl-panel--subscribe .nl-panel__blurb {
  color: rgba(255, 255, 255, 0.88);
}

/* Image: large rounded bottom-left corner (inner edge facing the content) */
.nl-panel--subscribe .nl-panel__image {
  border-radius: 0 0 0 clamp(5rem, 12vw, 10rem);
}

@media (max-width: 48em) {
  /* On mobile the image stacks below; show it above content instead */
  .nl-panel--subscribe .nl-panel__image {
    order: -1;
    border-radius: 0 0 clamp(4rem, 10vw, 8rem) 0;
  }
}

/* ── Subscribe form ──────────────────────────────────────────────────────── */

.nl-form__row {
  display: flex;
  align-items: center;
  gap: var(--space-s);
}

.nl-form__input {
  flex: 1;
  min-width: 0;
  padding: 0.65em 1.1em;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: transparent;
  color: var(--c-paper);
  font: inherit;
  font-size: var(--step-0);
}

.nl-form__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.nl-form__input:focus {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-color: var(--c-paper);
}

.nl-form__submit {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: var(--c-earth-contrast);
  color: var(--c-paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.nl-form__submit:hover {
  background: var(--c-earth);
}

.nl-form__submit:focus-visible {
  background: var(--c-earth);
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

/* ── Donate panel (bottom, sky-highlight blue) ───────────────────────────── */

.nl-panel--donate {
  background: var(--c-sky-highlight);
}

.nl-panel--donate .nl-panel__heading {
  color: var(--c-glow);
}

.nl-panel--donate .nl-panel__blurb {
  color: var(--c-glow-contrast);
}

/* Image: large rounded top-right corner (inner edge facing the content) */
.nl-panel--donate .nl-panel__image {
  border-radius: 0 clamp(5rem, 12vw, 10rem) 0 0;
}

@media (max-width: 48em) {
  .nl-panel--donate .nl-panel__image {
    border-radius: 0 0 0 clamp(4rem, 10vw, 8rem);
  }
}

/* ── Donate buttons ──────────────────────────────────────────────────────── */

.nl-panel__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
}

.nl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1.3em;
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s,
    filter 0.15s;
}

.nl-btn svg {
  flex-shrink: 0;
}

.nl-btn--outline {
  border: 1.5px solid var(--c-glow);
  color: var(--c-glow);
  background: transparent;
}

.nl-btn--outline:hover {
  background: color-mix(in srgb, var(--c-glow) 12%, transparent);
}

.nl-btn--outline:focus-visible {
  outline: 3px solid var(--c-glow-contrast);
  outline-offset: 2px;
}

.nl-btn--filled {
  border: 1.5px solid transparent;
  background: var(--c-earth);
  color: #fff;
}

.nl-btn--filled:hover {
  filter: brightness(0.9);
}

.nl-btn--filled:focus-visible {
  outline: 3px solid var(--c-earth-contrast);
  outline-offset: 2px;
  filter: brightness(0.9);
}

@media (prefers-reduced-motion: reduce) {
  .nl-form__submit,
  .nl-btn {
    transition: none;
  }
}

/*
 * Navigation: fixed pill bar + dropdown menu.
 * Tokens from style.css :root.
 */

/* ── Pill bar ────────────────────────────────────────────── */

/* Mobile-first: full width minus insets */
.site-header {
  position: fixed;
  top: var(--space-s);
  left: var(--space-s);
  right: var(--space-s);
  z-index: 200;
}

/* Desktop: 1/3 viewport width, right-anchored */
@media (min-width: 48em) {
  .site-header {
    left: auto;
    width: 33.333vw;
  }
}

.nav-bar {
  display: flex;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.nav-bar__basket,
.nav-bar__profile,
.nav-bar__toggle {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.65em 1.15em;
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: var(--step--1);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.nav-bar__basket,
.nav-bar__profile {
  background: var(--c-earth-contrast);
  color: var(--c-sand);
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-bar__basket:hover,
.nav-bar__basket:focus-visible,
.nav-bar__profile:hover,
.nav-bar__profile:focus-visible {
  background: var(--c-earth-highlight);
  color: var(--c-earth-contrast);
  outline: none;
}

.nav-bar__toggle {
  background: var(--c-earth);
  color: var(--c-sand);
  border: none;
  font: inherit; /* inherit set above is overridden by font-family/size below */
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: var(--step--1);
  flex: 1; /* fills left side as pill stretches */
  justify-content: flex-end;
}

.nav-bar__toggle:hover,
.nav-bar__toggle:focus-visible {
  background: var(--c-earth-contrast);
  outline: none;
}

/* Small flag icon in donate pill */
.nav-bar__flag {
  flex-shrink: 0;
}

/* Burger → close animation */
.nav-bar__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  flex-shrink: 0;
}

.nav-bar__burger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: center;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

.nav-bar__toggle[aria-expanded="true"] .nav-bar__burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-bar__toggle[aria-expanded="true"] .nav-bar__burger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-bar__toggle[aria-expanded="true"] .nav-bar__burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Dropdown menu ───────────────────────────────────────── */

.primary-nav {
  position: absolute;
  top: calc(100% + var(--space-xs));
  left: 0;
  right: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  max-height: calc(100svh - 5rem);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

/* [hidden] — explicit for safety in case a CSS reset removes UA default */
.primary-nav[hidden] {
  display: none;
}

/* ── Custom scrollbar (always-visible left column) ──────── */

.nav-scrollbar {
  width: 0;
  flex-shrink: 0;
  position: relative;
  background: var(--c-earth-contrast);
  overflow: hidden;
  transition: width 0.2s ease;
  /* Keeps the track and thumb clear of the nav's 1.25rem border-radius */
  padding-block: 1.25rem;
}

/* 5px horizontal padding on each side: total = 5 + thumb + 5 = 16px */
.primary-nav.has-scroll .nav-scrollbar {
  width: 16px;
}

.nav-scrollbar__thumb {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 1.25rem; /* initial; overridden by JS — matches padding-block above */
  height: 40px; /* initial; overridden by JS */
  background: var(--c-earth-highlight);
  border-radius: 999px;
  cursor: grab;
  user-select: none;
  transition: filter 0.15s;
}

.nav-scrollbar__thumb:hover,
.nav-scrollbar__thumb.is-dragging {
  filter: brightness(0.88);
  cursor: grabbing;
}

/* Bottom fade — signals content continues off-screen when scrollable */
.primary-nav.has-scroll::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3.5rem;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.45));
  pointer-events: none;
  z-index: 2;
}

/* ── Scrollable content column ──────────────────────────── */

.primary-nav__scroller {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.primary-nav__scroller::-webkit-scrollbar {
  display: none;
}

.primary-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.primary-nav__item {
  --_bg: var(--nav-bg, var(--c-pines));
  background: var(--_bg);
  /* Auto contrast: snap text to pure black or white based on the section
     colour's OKLab lightness, so it always clears AA whatever colour an
     editor picks. The `* infinity` forces the clamp to 0 or 1 at the 0.578
     lightness threshold. Falls back to white where relative colour is
     unsupported; --nav-text still drives the per-section focus ring. */
  color: #fff;
  color: oklch(from var(--_bg) clamp(0, calc((0.578 - l) * infinity), 1) 0 0);
  display: flex;
  flex-direction: column;
  padding-top: 15px;
  padding-bottom: 35px;
}

/* Each card overlaps the one above, matching the border-radius */
.primary-nav__item + .primary-nav__item {
  border-radius: 25px 25px 0 0;
  margin-top: -25px;
}

/* Parent link row — shared between <a> and toggle <button> variants */
.primary-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-s) var(--space-m);
  text-decoration: none;
  color: inherit;
}

/* Button-reset for toggle variant (items with children) */
.primary-nav__link--toggle {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.primary-nav__link:hover,
.primary-nav__link:focus-visible {
  outline: none;
}

/* Whole card shifts to contrast colour on hover/focus of the top-level link.
   Set --_bg (not background) so the auto text colour recomputes for the new
   background and stays AA — see .primary-nav__item. */
.primary-nav__item:has(> .primary-nav__link:hover),
.primary-nav__item:has(> .primary-nav__link:focus-visible) {
  --_bg: var(--nav-arrow-bg);
}

/* Chevron rotates 180° when the children are open */
.primary-nav__link--toggle .primary-nav__arrow svg {
  transition: transform 0.3s ease;
}

.primary-nav__item.is-open
  > .primary-nav__link--toggle
  .primary-nav__arrow
  svg {
  transform: rotate(180deg);
}

.primary-nav__text {
  flex: 1;
}

.primary-nav__title {
  display: block;
  font-family: var(--ff-sans);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.1;
}

.primary-nav__subtitle {
  display: block;
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  margin-top: 0.2em;
  opacity: 0.8;
}

/* Arrow: filled circle (contrast), stroke in base colour */
.primary-nav__arrow {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--nav-arrow-bg, var(--c-pines-contrast));
  border: 2px solid var(--nav-arrow-bg, var(--c-pines-contrast));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nav-arrow, var(--c-pines));
  transition: opacity 0.15s;
}

.primary-nav__link:hover .primary-nav__arrow,
.primary-nav__link:focus-visible .primary-nav__arrow {
  opacity: 0.85;
}

/* Smaller arrow for child items */
.primary-nav__arrow--sm {
  width: 2rem;
  height: 2rem;
}

/* Child items list — hidden by default, animated open on .is-open */
.primary-nav__children {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.primary-nav__item.is-open > .primary-nav__children {
  max-height: 60rem; /* large enough to fit any realistic number of children */
}

.primary-nav__child {
  --_bg: var(--nav-arrow-bg);
  background: var(--_bg);
  /* Same auto-contrast as the parent, resolved against this child's own
     (progressively darker) background — see .primary-nav__item. */
  color: #fff;
  color: oklch(from var(--_bg) clamp(0, calc((0.578 - l) * infinity), 1) 0 0);
  border-radius: 15px 15px 0 0;
  padding-bottom: 35px;
  margin-bottom: -25px;
}

/* Each subsequent child 10% darker than the contrast base colour.
   Redefining --_bg cascades to both background and the auto text colour. */
.primary-nav__child:nth-child(2) {
  --_bg: color-mix(in srgb, var(--nav-arrow-bg) 90%, black);
}
.primary-nav__child:nth-child(3) {
  --_bg: color-mix(in srgb, var(--nav-arrow-bg) 80%, black);
}
.primary-nav__child:nth-child(4) {
  --_bg: color-mix(in srgb, var(--nav-arrow-bg) 70%, black);
}
.primary-nav__child:nth-child(5) {
  --_bg: color-mix(in srgb, var(--nav-arrow-bg) 60%, black);
}
.primary-nav__child:nth-child(6) {
  --_bg: color-mix(in srgb, var(--nav-arrow-bg) 50%, black);
}

.primary-nav__child-link {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-m) var(--space-m);
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
}

.primary-nav__child-link:hover,
.primary-nav__child-link:focus-visible {
  background: rgba(0, 0, 0, 0.1);
  outline: none;
}

.primary-nav__child-title {
  display: block;
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: var(--step-0);
}

.primary-nav__child-subtitle {
  display: block;
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  opacity: 0.8;
  margin-top: 0.1em;
  text-wrap: balance;
}

/* Focus ring uses the highlight text colour — automatically on-brand per section */
.primary-nav a:focus-visible,
.primary-nav button:focus-visible {
  outline: 3px solid var(--nav-text, rgba(255, 255, 255, 0.75));
  outline-offset: 2px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nav-bar__burger span {
    transition: none;
  }

  .primary-nav__arrow {
    transition: none;
  }

  .primary-nav__link--toggle .primary-nav__arrow svg {
    transition: none;
  }

  .primary-nav__children {
    transition: none;
  }

  .nav-scrollbar,
  .nav-scrollbar__thumb {
    transition: none;
  }
}

/* ── Programme carousel ────────────────────────────────────── */

.program-carousel {
  padding-block: var(--space-s);
  border-top: 1px solid var(--c-country);
}

.home .program-carousel {
  border-top: none;
}

.program-carousel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-bottom: var(--space-m);
}

.program-carousel__heading {
  font-family: var(--ff-headline);
  font-size: var(--step-1);
  font-weight: 300;
  color: var(--c-country);
  margin: 0;
}

.program-carousel__see-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--c-country);
  text-decoration: none;
}

.program-carousel__see-all:hover,
.program-carousel__see-all:focus-visible {
  text-decoration: underline;
}

.program-carousel__see-all svg {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

/* Full-bleed scroll area */
.program-carousel__bleed {
  position: relative;
  overflow: hidden;
}

/* Left and right edge fade to background colour */
.program-carousel__bleed::before,
.program-carousel__bleed::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(1.5rem, 6vw, 5rem);
  z-index: 1;
  pointer-events: none;
}

.program-carousel__bleed::before {
  left: 0;
  background: linear-gradient(to right, var(--c-background), transparent);
}

.program-carousel__bleed::after {
  right: 0;
  background: linear-gradient(to left, var(--c-background), transparent);
}

.program-carousel__track {
  display: flex;
  gap: var(--space-s);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
  margin: 0;
  padding: var(--space-xs) var(--space-m) var(--space-m);
  scrollbar-width: none;
}

.program-carousel__track::-webkit-scrollbar {
  display: none;
}

/* On wide screens, align first card with the container's left edge */
@media (min-width: 72rem) {
  .program-carousel__track {
    padding-inline: calc((100vw - var(--container)) / 2 + var(--space-m));
  }
}

/* Nav arrows below the track */
.program-carousel__nav {
  display: flex;
  gap: var(--space-s);
  margin-top: var(--space-m);
}

.program-carousel__btn {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1.5px solid var(--c-country);
  border-radius: 50%;
  background: transparent;
  color: var(--c-country);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    color 0.15s;
}

.program-carousel__btn:hover,
.program-carousel__btn:focus-visible {
  background: var(--c-country);
  color: var(--c-background);
  outline: none;
}

.program-carousel__btn:focus-visible {
  outline: 3px solid var(--c-country);
  outline-offset: 2px;
}

.program-carousel__btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

.program-carousel__btn svg {
  width: 1rem;
  height: 1rem;
}

/* ── Programme card ────────────────────────────────────────── */

.program-card {
  position: relative;
  flex: 0 0 clamp(220px, 60vw, 280px);
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  overflow: hidden;
  scroll-snap-align: start;
  list-style: none;
}

@media (min-width: 48em) {
  .program-card {
    flex: 0 0 clamp(200px, 22vw, 280px);
  }
}

.program-card__link {
  display: block;
  position: absolute;
  inset: 0;
  text-decoration: none;
  color: inherit;
}

.program-card__link:focus-visible {
  outline: 3px solid white;
  outline-offset: -4px;
  border-radius: 1rem;
}

.program-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.program-card__link:hover .program-card__bg {
  transform: scale(1.04);
}

/* Gradient overlay: card colour at bottom, transparent at top.
   Holds the card colour solid to 20% before fading, so the text that sits
   over the lower band keeps a strong, AA-passing backdrop. */
.program-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--card-colour, #333) 0%,
    var(--card-colour, #333) 20%,
    transparent 65%
  );
}

.program-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-s);
  transition: transform 0.4s ease;
}

.program-card__link:hover .program-card__body {
  transform: translateY(-12px);
}

.program-card__title {
  font-family: var(--ff-headline);
  font-size: var(--step-2);
  font-weight: 300;
  color: white;
  margin: 0;
  line-height: 1.1;
  text-wrap: balance;
}

.program-card__subtitle {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: var(--step-0);
  color: rgba(255, 255, 255, 0.9);
  margin: 0.3em 0 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.4s ease;
}

.program-card__link:hover .program-card__subtitle {
  max-height: 2em;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .program-card__bg,
  .program-card__body,
  .program-card__subtitle,
  .program-card__book-btn {
    transition: none;
  }

  .program-card__link:hover .program-card__subtitle {
    max-height: 2em;
  }
}

/* ── Acknowledgement of Country module ──────────────────────────────────── */

.module--acknowledgement {
  background-color: var(--c-glow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 28rem;
  overflow: hidden;
}

@media (max-width: 48em) {
  .module--acknowledgement {
    grid-template-columns: 1fr;
  }

  .acknowledgement__content {
    order: -1;
  }
}

.acknowledgement__image {
  position: relative;
  min-height: 20rem;
}

.acknowledgement__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  mix-blend-mode: multiply;
}

@media (max-width: 48em) {
  .acknowledgement__image {
    min-height: 16rem;
  }
}

.acknowledgement__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-l);
}

.acknowledgement__logo {
  width: 3.5rem;
  height: auto;
  color: var(--c-country);
}

.acknowledgement__logo svg {
  width: 100%;
  height: auto;
  display: block;
}

.acknowledgement__title {
  font-family: var(--ff-headline);
  font-size: var(--step-3);
  color: var(--c-pines-contrast);
  max-width: 35ch;
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: var(--space-m);
}

.acknowledgement__title-line {
  display: block;
  font-weight: 300;
  font-style: italic;
}

.acknowledgement__title-sub {
  display: block;
  font-weight: 400;
  font-style: normal;
}

.acknowledgement__body {
  font-family: var(--ff-text);
  font-size: var(--step-0);
  font-weight: 100;
  max-width: 35ch;
  margin: 0;
}

.acknowledgement__body p {
  max-width: 35ch;
  line-height: 1.3;
}

.acknowledgement__aboriginal,
.acknowledgement__translation {
  font-family: var(--ff-text);
  font-style: italic;
  font-weight: 400;
}

.acknowledgement__aboriginal {
  color: var(--c-ink);
  margin-bottom: var(--space-s);
}

.acknowledgement__translation {
  color: var(--c-ink);
  margin-top: var(--space-s);
}

.acknowledgement__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background-color: var(--c-earth-contrast);
  color: var(--c-background);
  margin-top: var(--space-xs);
}

.acknowledgement__cta:hover,
.acknowledgement__cta:focus {
  filter: brightness(1.15);
}

.acknowledgement__cta:focus-visible {
  outline: 3px solid var(--c-background);
  outline-offset: 2px;
}

.acknowledgement__cta svg {
  flex-shrink: 0;
}

/* ==========================================================================
   Programme archive (archive-event.php)
   ========================================================================== */

/* ── Hero ───────────────────────────────────────────────────────────────────── */

.program-archive__hero {
  position: relative;
  height: 55svh;
  min-height: 18rem;
  overflow: hidden;
  background: var(--c-sky-highlight);
}

.program-archive__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Intro row: "Your program" ← → "10—12 October" ─────────────────────────── */

.program-archive__intro {
  padding-block: var(--space-l);
}

.program-archive__intro-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-m);
  flex-wrap: wrap;
}

.program-archive__title,
.program-archive__dates {
  font-family: var(--ff-headline);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-3);
  color: var(--c-country);
  margin: 0;
  line-height: 1.15;
}

/* ── Filter bar ─────────────────────────────────────────────────────────────── */

.program-archive__filters {
  padding-block: var(--space-m);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.program-filters {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-l);
  flex-wrap: wrap;
}

.program-filters__group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* Per-group pill colour tokens */
.program-filters__group--day {
  --pill-colour: var(--c-pines);
  --pill-colour-contrast: var(--c-pines-contrast);
}

.program-filters__group--type {
  --pill-colour: var(--c-sky);
  --pill-colour-contrast: var(--c-sky-contrast);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45em 1.1em;
  border: 1px solid var(--pill-colour);
  border-radius: 999px;
  background: transparent;
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--pill-colour);
  cursor: pointer;
  line-height: 1;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.filter-pill:hover {
  background: color-mix(in srgb, var(--pill-colour) 12%, transparent);
  border-color: var(--pill-colour);
  color: var(--pill-colour-contrast);
}

.filter-pill:focus-visible {
  outline: 3px solid var(--pill-colour);
  outline-offset: 2px;
}

.filter-pill[aria-pressed="true"] {
  background: var(--pill-colour);
  border-color: var(--pill-colour);
  color: var(--c-background);
}

@media (prefers-reduced-motion: reduce) {
  .filter-pill {
    transition: none;
  }
}

/* Clear-all-filters (×) button — a JS-only affordance. Hidden until any filter
   is active (program-filter.js adds .is-visible); pinned to the right end of
   the bar by the auto inline-start margin. */
.program-filters__clear {
  margin-inline-start: auto;
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-paper);
  color: var(--c-ink);
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.program-filters__clear.is-visible {
  display: inline-flex;
}

.program-filters__clear:hover {
  background: var(--c-sand);
}

.program-filters__clear:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .program-filters__clear {
    transition: none;
  }
}

/* ── Programme grid ─────────────────────────────────────────────────────────── */

.program-archive__grid {
  padding-block: var(--space-xl);
}

.program-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-s);
}

@media (min-width: 48em) {
  .program-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-m);
  }
}

@media (min-width: 64em) {
  .program-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Day-group headers — span all columns, hidden when filters are active */
.program-grid__day-header {
  grid-column: 1 / -1;
  max-width: none;
  padding-block: var(--space-m) var(--space-s);
  border-bottom: 1px solid var(--c-sand);
}

.program-grid__day-label {
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0;
}

/* Archive card: image area above, sub-card below */
.program-card--archive {
  flex: none;
  width: 100%;
  max-width: none;
  overflow: visible;
  aspect-ratio: unset;
  border-radius: 0;
}

/* The link IS the flex column container for archive cards */
.program-card--archive .program-card__link {
  position: static;
  display: flex;
  flex-direction: column;
}

.program-card--archive .program-card__link:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 1rem;
}

.program-card--archive .program-card__image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
  flex-shrink: 0;
}

/* Match nav-card title contrast logic: auto-switch black/white from card hue. */
.program-card--archive .program-card__title {
  color: #fff;
  color: oklch(
    from var(--card-colour, var(--c-earth))
      clamp(0, calc((0.578 - l) * infinity), 1) 0 0
  );
}

/* Image still scales on hover; body stays put — no upward slide */
.program-card--archive .program-card__link:hover .program-card__body {
  transform: none;
}

/* Sub-card: subtitle + date/price/booking below the image */
.program-card__sub {
  border: 1px solid var(--c-sand);
  border-top: none;
  border-radius: 0 0 1rem 1rem;
  padding: var(--space-s);
}

/* Subtitle in sub-card: dark text, always visible */
.program-card--archive .program-card__subtitle {
  max-height: none;
  opacity: 1;
  overflow: visible;
  transition: none;
  color: var(--card-colour-contrast, var(--c-earth-contrast));
  margin: 0 0 var(--space-xs);
  font-size: var(--step-0);
  line-height: 1;
}

/* Meta row: date/price left, booking pill right */
.program-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.program-card__meta-info {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.program-card__event-date,
.program-card__price {
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  line-height: 1.25;
}

.program-card__event-date {
  font-weight: 500;
  color: var(--c-country-contrast);
}

.program-card__price {
  color: var(--c-country-contrast);
}

.program-card__book-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-inline-start: auto;
  padding: 0.3em 0.8em;
  border: 1px solid var(--card-colour, var(--c-earth));
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--card-colour, var(--c-earth));
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background 0.15s,
    color 0.15s;
}

.program-card__book-btn:hover,
.program-card__book-btn:focus-visible {
  background: var(--card-colour, var(--c-earth));
  color: #fff;
  outline: none;
}

.program-card__book-btn:focus-visible {
  outline: 3px solid var(--card-colour, var(--c-earth));
  outline-offset: 2px;
}

/* ── Programme intro card ────────────────────────────────────────────────── */

.program-intro-card {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-sand);
  border-radius: 1rem;
  overflow: hidden;
  max-width: none;
}

/* Permanent dismissal. JS adds .is-dismissed once (on close, scroll-past, or
   filter select) and never removes it, so the card stays collapsed out of the
   grid even after filters are cleared. The compound selector outranks the
   .program-intro-card display:flex above. */
.program-intro-card.is-dismissed {
  display: none;
}

/* Dismiss (×) button — a JS-only affordance. Hidden until program-filter.js
   adds .is-enhanced, so the card stays whole when JS is unavailable. */
.program-intro-card__dismiss {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-background);
  color: var(--c-ink);
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.program-intro-card.is-enhanced .program-intro-card__dismiss {
  display: inline-flex;
}

.program-intro-card__dismiss:hover {
  background: var(--c-sand);
}

.program-intro-card__dismiss:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .program-intro-card__dismiss {
    transition: none;
  }
}

.program-intro-card__image-wrap {
  flex: 0 0 auto;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.program-intro-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

@media (min-width: 30em) {
  .program-intro-card {
    flex-direction: row;
  }

  .program-intro-card__image-wrap {
    flex: 0 0 50%;
    aspect-ratio: unset;
  }
}

.program-intro-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-m);
  gap: var(--space-s);
}

.program-intro-card__title {
  font-family: var(--ff-headline);
  font-size: var(--step-1);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  color: var(--c-glow);
  margin: 0;
}

.program-intro-card__blurb {
  font-family: var(--ff-text);
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--c-country);
  flex: 1;
}

.program-intro-card__blurb > * + * {
  margin-top: 0.75em;
}

.program-intro-card__blurb > *:first-child {
  margin-top: 0;
}

.program-intro-card__link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  text-decoration: none;
  padding: 0.4em 1em;
  border: 1px solid var(--c-country);
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--c-country);
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
  margin-top: auto;
}

.program-intro-card__link:hover {
  background: var(--c-country);
  color: #fff;
}

.program-intro-card__link:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

/* "No results" message — hidden by default, shown by JS */
.program-archive__no-results {
  font-family: var(--ff-sans);
  color: var(--c-muted);
  padding-block: var(--space-l);
  text-align: center;
  max-width: none;
}

/* ==========================================================================
   Testimonials module (home module 05)
   ========================================================================== */

.module--testimonials {
  padding-block: 0;
  background: var(--c-sky-highlight);
  overflow: hidden;
}

/* ── Track & slides ──────────────────────────────────────────────────────── */

.testimonials__track {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Without JS: all slides visible, stacked */
.testimonial-slide {
  display: grid;
  grid-template-columns: 1fr;
  min-height: clamp(20rem, 55vh, 34rem);
  max-width: none; /* override global li { max-width: var(--measure) } */
}

@media (min-width: 48em) {
  .testimonial-slide {
    grid-template-columns: 55fr 45fr;
  }
}

/* With JS: stack all slides in the same grid cell, fade between them */
.testimonials--js .testimonials__track {
  display: grid;
}

.testimonials--js .testimonial-slide {
  grid-row: 1;
  grid-column: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.testimonials--js .testimonial-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .testimonials--js .testimonial-slide {
    transition: none;
  }
}

/* ── Left column: image ──────────────────────────────────────────────────── */

.testimonial-slide__image {
  position: relative;
  overflow: hidden;
  min-height: 18rem;
  /* Heavily rounded bottom-right corner — sky bg shows through the cut */
  border-radius: 0 0 clamp(6rem, 16vw, 14rem) 0;
}

@media (min-width: 48em) {
  .testimonial-slide__image {
    min-height: 0; /* grid row defines height */
  }
}

.testimonial-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Right column: content ───────────────────────────────────────────────── */

.testimonial-slide__content {
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) clamp(var(--space-m), 5vw, var(--space-xl));
}

.testimonials__section-label {
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--c-sky-contrast);
  margin: 0;
  letter-spacing: 0.02em;
}

.testimonial-slide__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--space-l);
}

/* Quote mark SVG */
.testimonials__quote-mark {
  display: block;
  width: clamp(2.5rem, 4.5vw, 4rem);
  height: auto;
  color: var(--c-sky);
  margin-block-end: var(--space-m);
  line-height: 0;
}

.testimonials__quote-mark svg {
  display: block;
  width: 100%;
  height: auto;
}

.testimonial-slide__quote {
  font-family: var(--ff-headline);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-1);
  color: var(--c-sky-contrast);
  margin: 0 0 var(--space-m);
  line-height: 1.15;
  text-wrap: balance;
  max-width: none;
}

.testimonial-slide__quote p {
  margin: 0;
  max-width: none;
}

.testimonial-slide__author {
  font-family: var(--ff-headline);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-1);
  color: var(--c-sky-contrast);
  margin: 0;
}

.testimonial-slide__author cite {
  font-style: inherit;
}

.testimonial-slide__position {
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  color: var(--c-sky-contrast);
  opacity: 0.7;
  margin: 0.2em 0 0;
}

/* ── Controls: arrows + CTA ──────────────────────────────────────────────── */

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  margin-top: auto;
  flex-wrap: wrap;
}

.testimonials__arrows {
  display: flex;
  gap: var(--space-xs);
}

.testimonials__btn {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--c-sky);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.testimonials__btn:hover,
.testimonials__btn:focus-visible {
  background: var(--c-sky-contrast);
  outline: none;
}

.testimonials__btn:focus-visible {
  outline: 3px solid var(--c-sky-contrast);
  outline-offset: 2px;
}

.testimonials__btn[disabled] {
  opacity: 0.4;
  cursor: default;
}

.testimonials__btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.testimonials__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.65em 1.3em;
  background: var(--c-sky);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
}

.testimonials__cta:hover,
.testimonials__cta:focus-visible {
  background: var(--c-sky-contrast);
  color: white;
  outline: none;
}

.testimonials__cta:focus-visible {
  outline: 3px solid var(--c-sky-contrast);
  outline-offset: 2px;
}

.testimonials__cta svg {
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .testimonials__btn,
  .testimonials__cta {
    transition: none;
  }
}

/* ==========================================================================
   Single event page
   ========================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.event-hero {
  position: relative;
  height: clamp(22rem, 85svh, 46rem);
  overflow: hidden;
  background: var(--c-ink);
}

.event-hero__media {
  position: absolute;
  inset: 0;
}

.event-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.event-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--card-colour, #333) 0%,
    var(--card-colour, #333) 15%,
    transparent 60%
  );
}

/* ── Site-wide logo mark (flag SVG, fixed top-left, hidden on home) ───────── */

.site-logo-mark {
  position: fixed;
  top: var(--space-m);
  left: var(--space-m);
  z-index: 200;
  display: block;
  line-height: 0;
  text-decoration: none;
}

.site-logo-mark svg {
  width: clamp(36px, 4vw, 56px);
  height: auto;
  fill: currentColor;
}

.site-logo-mark:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
  border-radius: var(--radius);
}

.event-hero__foot {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container);
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-m);
  padding: var(--space-m);
}

.event-hero__title {
  font-family: var(--ff-headline);
  font-weight: 300;
  font-size: clamp(var(--step-3), 5vw, 4.5rem);
  /* Match nav-card / archive-card title contrast logic: auto-switch black or
     white from the hue the hero overlay fades to (--card-colour), so the title
     always clears AA whatever colour an editor picks. Falls back to white where
     relative colour is unsupported. */
  color: #fff;
  color: oklch(
    from var(--card-colour, var(--c-earth))
      clamp(0, calc((0.578 - l) * infinity), 1) 0 0
  );
  margin: 0;
  line-height: 1.05;
  max-width: 65%;
  text-wrap: balance;
}

.event-hero__title--sans {
  font-family: var(--ff-sans);
}

.event-hero__book {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1.2em;
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  font-weight: 500;
  /* Same auto-contrast as the title: the pill sits in the solid band the
     overlay fades to, so its text + border track black/white from --card-colour
     (border/hover use currentColor so they follow whichever is picked). */
  color: #fff;
  color: oklch(
    from var(--card-colour, var(--c-earth))
      clamp(0, calc((0.578 - l) * infinity), 1) 0 0
  );
  border: 1.5px solid color-mix(in srgb, currentColor 80%, transparent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.event-hero__book:hover,
.event-hero__book:focus-visible {
  background: color-mix(in srgb, currentColor 15%, transparent);
  border-color: currentColor;
  outline: none;
}

.event-hero__book:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* ── Body: two-column section ─────────────────────────────────────────────── */

.event-body {
  padding-block: var(--space-m);
}

.event-body__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 48em) {
  .event-body__inner {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

/* Left: subtitle */
.event-body__subtitle {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: var(--step-3);
  color: var(--card-colour-contrast, var(--c-earth-contrast));
  margin: 0 0 var(--space-m);
  line-height: 1.1;
  max-width: none;
}

/* Left: lead paragraph */
.event-body__lead {
  font-family: var(--ff-headline);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--card-colour-contrast, var(--c-earth-contrast));
  margin-bottom: var(--space-m);
  line-height: 1.4;
}

.event-body__lead p {
  margin: 0;
}

/* Left: body wysiwyg */
.event-body__content {
  margin-bottom: var(--space-l);
}

/* Left: booking button */
.event-body__book {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1.3em;
  background: var(--card-colour, var(--c-earth));
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  font-weight: 500;
  color: white;
  text-decoration: none;
  transition: filter 0.15s;
}

.event-body__book:hover,
.event-body__book:focus-visible {
  filter: brightness(0.88);
  color: white;
}

/* Booking button + free-event label row */
.event-book-row {
  display: flex;
  align-items: center;
  gap: var(--space-s);
}

.event-free-label {
  font-family: var(--ff-sans);
  font-size: var(--step--2);
  font-weight: 500;
  color: var(--c-country);
  letter-spacing: 0.03em;
  text-transform: none;
}

/* Right: meta details */
.event-meta {
  margin: 0 0 var(--space-l);
  padding: 0;
}

.event-meta__item {
  display: block;
  padding-block: var(--space-xs);
  border-top: 1px solid var(--c-country);
}

.event-meta__item:first-child {
  border-top: none;
}

.event-meta__item:last-child {
  border-bottom: 1px solid var(--c-country);
}

.event-meta__value {
  font-family: var(--ff-sans);
  font-size: var(--step-0);
  color: var(--c-glow);
  margin: 0;
  max-width: none;
}

/* Right: concert program running order */
.event-program {
  list-style: none;
  margin: 0 0 var(--space-l);
  padding: 0;
}

.event-program__item {
  margin-bottom: var(--space-s);
  max-width: none;
}

.event-program__composer {
  display: block;
  font-family: var(--ff-text);
  font-style: normal;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--c-country);
}

.event-program__piece {
  display: block;
  font-family: var(--ff-text);
  font-style: italic;
  font-size: var(--step--1);
  color: var(--c-country);
  text-wrap: pretty;
}

.event-program__date {
  font-style: normal;
}

/* Right: download button */
.event-notes-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1.3em;
  background: var(--c-country-contrast);
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--c-sand);
  text-decoration: none;
  transition: filter 0.15s;
}

.event-notes-btn:hover,
.event-notes-btn:focus-visible {
  background: var(--c-country);
  color: var(--c-sand-highlight);
}

@media (prefers-reduced-motion: reduce) {
  .event-hero__book,
  .event-body__book,
  .event-notes-btn {
    transition: none;
  }
}

/* Right: participating artists */
.event-artists {
  list-style: none;
  margin: var(--space-l) 0 0;
  padding: 0;
}

.event-artists__item {
  margin-bottom: var(--space-xxs);
}

.event-artists__name {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--c-country);
}

.event-artists__instrument {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: var(--step--1);
  color: var(--c-country);
}

.event-artists__members {
  list-style: none;
  margin: var(--space-xs) 0 0 var(--space-m);
  padding: 0;
}

.event-artists__member {
  margin-bottom: var(--space-2xs);
}

/* ── Event concertina (program + artists) ──────────────────────────────────── */

.event-concertina__body {
  position: relative;
}

[data-collapsed="true"] .event-concertina__body {
  overflow: hidden;
  max-height: var(--concertina-height, 999px);
}

.event-concertina__fade {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5rem;
  background: linear-gradient(to bottom, transparent, var(--c-background));
  pointer-events: none;
}

[data-collapsed="true"] .event-concertina__fade {
  display: block;
}

/* Hidden until JS sets aria-expanded, ensuring clean no-JS fallback. */
.event-concertina__toggle {
  display: none;
}

.event-concertina__toggle[aria-expanded] {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: var(--space-xs);
  background: none;
  border: none;
  padding: 0;
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--c-country);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.event-concertina__toggle[aria-expanded]:hover,
.event-concertina__toggle[aria-expanded]:focus-visible {
  color: var(--c-country-contrast);
}

[data-collapsed="false"] .event-concertina__toggle svg {
  transform: rotate(180deg);
}

/* ── Booking page ──────────────────────────────────────────────────────────── */

.booking-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--c-paper);
}

/* Header */
.booking-header {
  background: var(--c-glow);
}

.booking-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-s) var(--space-m);
}

.booking-header__provider {
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  font-weight: 500;
  color: white;
  letter-spacing: 0.04em;
  margin: 0;
}

/* Back button — used in both header and footer */
.booking-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.45em 1.1em;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.booking-back-btn:hover,
.booking-back-btn:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.booking-back-btn:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}

/* Body */
.booking-body {
  flex: 1;
  padding-block: var(--space-xl);
}

.booking-body__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-m);
}

/* Left column */
.booking-body__logo {
  margin-bottom: var(--space-l);
}

.booking-body__logo svg {
  width: clamp(130px, 20vw, 200px);
  height: auto;
}

.booking-body__title {
  font-family: var(--ff-headline);
  font-weight: 300;
  font-size: clamp(var(--step-2), 4vw, var(--step-3));
  color: var(--c-glow);
  margin: 0 0 var(--space-m);
  line-height: 1.05;
  max-width: 18ch;
}

.booking-meta {
  margin: 0;
  padding: 0;
}

.booking-meta__item {
  display: block;
  border-bottom: 1px solid var(--c-glow);
  padding-block: var(--space-s);
}

.booking-meta__item:first-of-type {
  border-top: 1px solid var(--c-glow);
}

.booking-meta__value {
  font-family: var(--ff-sans);
  font-size: var(--step-0);
  color: var(--c-glow);
  margin: 0;
}

/* Right column: widget */
.booking-body__widget {
  min-height: 18rem;
}

.booking-body__widget iframe {
  width: 100%;
  border: none;
  display: block;
}

.booking-widget-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18rem;
  border: 2px dashed var(--c-line, #ddd);
  border-radius: 0.75rem;
  font-family: var(--ff-sans);
  font-size: var(--step-0);
  color: var(--c-muted);
}

/* Footer */
.booking-footer {
  background: var(--c-wanderer);
  padding-block: var(--space-xl);
}

.booking-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-m);
}

@media (min-width: 52em) {
  .booking-footer__inner {
    grid-template-columns: auto 1fr;
    gap: clamp(var(--space-l), 5vw, var(--space-xl));
    align-items: start;
  }
}

.booking-footer__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  align-items: flex-start;
}

.booking-footer__logo svg {
  width: clamp(90px, 14vw, 140px);
  height: auto;
}

.booking-footer__aoc {
  font-family: var(--ff-text);
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 52ch;
  line-height: 1.65;
  align-self: center;
}

@media (prefers-reduced-motion: reduce) {
  .booking-back-btn {
    transition: none;
  }
}

/* ==========================================================================
   Content page (generic Pages + blog Posts)
   Shared by page.php and single.php. --card-colour is set on .content-page
   from the colour scheme field and tints the hero/band accents, the headings
   and the links.
   ========================================================================== */

/* ── Header ──────────────────────────────────────────────────────────────────
   Image variant: full-bleed banner image, then a header block (date / title /
   subtitle) beneath it. Band variant: the same header block on a light colour-tint
   band of matching height. Both backgrounds are light, so text is near-black
   (--c-ink) for AA contrast. */

/* Shared banner height for the image strip and the colour band. */
:root {
  --content-banner-h: clamp(12rem, 30svh, 20rem);
}

/* Full-bleed hero image (image variant only) */
.content-hero__media {
  width: 100%;
  height: var(--content-banner-h);
  overflow: hidden;
  background: var(--c-ink);
}

.content-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Text block below the image / inside the band */
.content-hero__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-block: clamp(var(--space-l), 6vw, var(--space-xl));
}

.content-hero__title {
  font-family: var(--ff-headline);
  font-weight: 300;
  font-size: clamp(var(--step-3), 5vw, 4rem);
  line-height: 1.05;
  color: var(--c-ink);
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;
}

.content-hero__subtitle {
  font-family: var(--ff-headline);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-1);
  line-height: 1.35;
  color: var(--c-ink);
  opacity: 0.85;
  margin: 0;
  max-width: 44ch;
}

.content-hero__meta {
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-ink);
  margin: 0;
  max-width: none;
}

/* Band variant — light tint background is set inline on the section. Give it the
   same minimum banner height as the image and centre the text within it. */
.content-hero--band {
  display: flex;
  align-items: center;
  min-height: var(--content-banner-h);
}

.content-hero--band > .container {
  width: 100%;
}

/* ── Body wrap + sidebar layout ──────────────────────────────────────────── */

.content-page__body-wrap {
  padding-block: var(--space-xl);
}

.content-page__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
}

@media (min-width: 48em) {
  .content-page__layout {
    grid-template-columns: 16rem 1fr;
    gap: var(--space-xl);
    align-items: start;
  }

  .content-page__sidebar {
    position: sticky;
    top: var(--space-l);
  }
}

/* Single-column body: a comfortable reading measure. */
.content-page__main--single {
  max-width: 46rem;
}

/* ── Section sidebar nav ──────────────────────────────────────────────────── */

.subpage-nav {
  font-family: var(--ff-sans);
  border-top: 2px solid var(--card-colour);
  padding-top: var(--space-s);
}

.subpage-nav__title {
  font-family: var(--ff-headline);
  font-weight: 400;
  font-size: var(--step-1);
  line-height: 1.2;
  margin: 0 0 var(--space-s);
}

.subpage-nav__title a {
  color: var(--card-colour);
  text-decoration: none;
}

.subpage-nav__list,
.subpage-nav .children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.subpage-nav .children {
  margin-left: var(--space-s);
}

.subpage-nav .page_item {
  margin: 0;
}

.subpage-nav a {
  display: block;
  padding: 0.45em 0;
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--c-line);
  line-height: 1.3;
}

.subpage-nav__list a:hover,
.subpage-nav__list a:focus-visible {
  color: var(--card-colour);
}

.subpage-nav .current_page_item > a,
.subpage-nav a[aria-current="page"] {
  color: var(--card-colour);
  font-weight: 600;
}

/* ── Editor body content ──────────────────────────────────────────────────── */

.content-page__body > :first-child {
  margin-top: 0;
}

.content-page__body h2,
.content-page__body h3,
.content-page__body h4 {
  font-family: var(--ff-headline);
  font-weight: 300;
  line-height: 1.15;
  color: var(--card-colour);
  margin: 1.8em 0 0.5em;
  max-width: var(--measure);
}

.content-page__body h2 {
  font-size: var(--step-2);
}
.content-page__body h3 {
  font-size: var(--step-1);
}
.content-page__body h4 {
  font-size: var(--step-0);
  font-weight: 400;
}

/* "Heading rule" format from the editor Formats dropdown. */
.content-page__body .has-rule {
  border-bottom: 2px solid var(--card-colour);
  padding-bottom: 0.2em;
}

.content-page__body p {
  margin: 0 0 1em;
}

.content-page__body a {
  color: var(--card-colour);
  text-underline-offset: 2px;
}

.content-page__body ul,
.content-page__body ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.content-page__body li {
  margin-bottom: 0.35em;
}

.content-page__body blockquote {
  margin: var(--space-l) 0;
  padding-left: var(--space-m);
  border-left: 3px solid var(--card-colour);
  font-family: var(--ff-headline);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--c-ink);
}

.content-page__body img {
  border-radius: 5px;
}

.content-page__body figure {
  margin: var(--space-l) 0;
}

.content-page__body figcaption {
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  color: var(--c-muted);
  margin-top: var(--space-xs);
}

/* Paginated content (wp_link_pages). */
.content-page__pages {
  margin-top: var(--space-l);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: baseline;
  font-family: var(--ff-sans);
  font-size: var(--step--1);
}

.content-page__pages a {
  color: var(--card-colour);
}
