/* =====================================================================
   Walsall Awards 2026 — main.css
   Design system, layout, components.
   ===================================================================== */

/* ---------- Tokens -------------------------------------------------- */

:root {
  /* Colour */
  --red:        #E01F26;
  --red-deep:   #B0161C;
  --ink:        #141414;
  --ivory:      #FAF7F2;
  --white:      #FFFFFF;
  --grey:       #595959;
  --grey-soft:  #7A7A7A;
  --hairline:   #E4DFD6;
  --gold:       #B08D3C;
  /* Gold is only 2.9:1 on ivory — this darker tone clears AA for text. */
  --gold-deep:  #7A5F1E;

  /* Semantic */
  --bg:           var(--ivory);
  --bg-alt:       var(--white);
  --bg-dark:      var(--ink);
  --fg:           var(--ink);
  --fg-on-dark:   var(--ivory);
  --fg-muted:     var(--grey);
  --link:         var(--red-deep);
  --link-hover:   var(--red);
  --border:       var(--hairline);
  --accent:       var(--red);

  /* Typography */
  --font-display:   "Bodoni Moda", "Times New Roman", Georgia, serif;
  --font-body:      "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --fs-eyebrow:     0.8125rem;
  --fs-small:       0.875rem;
  --fs-body:        clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lead:        clamp(1.125rem, 1.04rem + 0.4vw, 1.25rem);
  --fs-h4:          clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --fs-h3:          clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --fs-h2:          clamp(1.75rem, 1.2rem + 2.6vw, 3.25rem);
  --fs-h1:          clamp(2rem, 1.3rem + 3.4vw, 4.5rem);
  --fs-display:     clamp(2.25rem, 1rem + 5vw, 6rem);

  --lh-tight:       1.1;
  --lh-snug:        1.25;
  --lh-base:        1.55;
  --lh-loose:       1.7;

  --tracking-tight:  -0.015em;
  --tracking-normal: 0;
  --tracking-wide:   0.08em;
  --tracking-xwide:  0.18em;

  /* Spacing */
  --space-xs:    0.25rem;   /*  4px */
  --space-sm:    0.5rem;    /*  8px */
  --space-md:    1rem;      /* 16px */
  --space-lg:    2rem;      /* 32px */
  --space-xl:    4rem;      /* 64px */
  --space-2xl:   6rem;      /* 96px */
  --space-3xl:   8rem;      /*128px */
  --section-y:   clamp(3rem, 5vw + 1rem, 5rem); /* ≥48 mobile, ~80 desktop */

  /* Layout */
  --container:           1200px;
  --container-narrow:    760px;
  --radius-sm:           2px;
  --radius-md:           4px;
  --radius-lg:           6px;
  --border-thin:         1px solid var(--hairline);
  --rule-red:            2px solid var(--red);
  --rule-gold:           1px solid var(--gold);

  --shadow-soft:   0 2px 6px rgba(20,20,20,0.04), 0 12px 30px rgba(20,20,20,0.06);
  --shadow-card:   0 1px 2px rgba(20,20,20,0.04), 0 6px 16px rgba(20,20,20,0.05);

  --duration-fast:   140ms;
  --duration-base:   240ms;
  --duration-slow:   500ms;
  --easing:          cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light scheme is the canonical brand. We do NOT respond to
   prefers-color-scheme: dark — the editorial ivory/ink palette is the
   design. `color-scheme: light` below also forces native UI (form
   controls, scrollbars) to use light variants on dark-mode devices. */

/* ---------- Reset --------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; margin: 0; }
img, picture, svg, video { max-width: 100%; display: block; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: transparent; cursor: pointer; padding: 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--duration-fast) var(--easing); }
a:hover { color: var(--link-hover); }
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Base --------------------------------------------------- */

html {
  /* Force light scheme regardless of the user's system preference, so
     native form controls, scrollbars and selection colours stay light. */
  color-scheme: light;
  scroll-behavior: smooth;
  /* Prevent horizontal scroll even if a fixed/transformed element
     extends past the viewport (mobile drawer, banners). */
  overflow-x: hidden;
  overflow-x: clip;
}
body { overflow-x: hidden; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--fg);
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Typography --------------------------------------------- */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }

h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-snug);
  font-size: var(--fs-h3);
}

h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
}

h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: var(--lh-snug);
}
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  max-width: 70ch;
  margin-block-end: var(--space-md);
}
p:last-child { margin-block-end: 0; }

/* When a parent element explicitly text-aligns center, also centre
   the paragraph block horizontally — otherwise a 70ch p inside a
   wide centred container stays glued to the left and the centred
   text appears off-axis. Covers inline style="text-align:center",
   the .text-center utility, and our centred .cta-block. */
[style*="text-align: center"] p,
[style*="text-align:center"] p,
.text-center p,
.cta-block p,
.section--center p {
  margin-inline: auto;
}

/* Centre the rule and action buttons when a parent is text-align: center. */
[style*="text-align: center"] .hero__rule,
[style*="text-align:center"] .hero__rule { margin-inline: auto; }
[style*="text-align: center"] .hero__actions,
[style*="text-align:center"] .hero__actions { justify-content: center; }

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-loose);
  color: var(--fg);
  max-width: 60ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--tracking-xwide);
  text-transform: uppercase;
  color: var(--red-deep);
  margin-block-end: var(--space-md);
}

.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

/* Italic Bodoni works beautifully for accenting one word. */
.display em,
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--red); }

/* Lists */
.section ul:not([class]) { padding-inline-start: 1.25rem; max-width: 70ch; }
.section ul:not([class]) li { margin-block-end: var(--space-sm); }

/* ---------- Utilities ---------------------------------------------- */

.visually-hidden {
  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;
  top: -100px;
  left: var(--space-md);
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  background: var(--ink);
  color: var(--ivory);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: top var(--duration-base) var(--easing);
}
.skip-link:focus { top: var(--space-md); color: var(--ivory); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: var(--section-y);
}
.section--ink {
  background: var(--ink);
  color: var(--fg-on-dark);
}
.section--ink h1, .section--ink h2, .section--ink h3,
.section--ink h4, .section--ink h5, .section--ink h6 { color: var(--fg-on-dark); }
.section--ink p { color: rgba(250, 247, 242, 0.86); }
.section--ink p strong { color: var(--ivory); }
.section--ink ul:not([class]) li,
.section--ink ol:not([class]) li { color: rgba(250, 247, 242, 0.86); }
.section--ink .eyebrow { color: var(--gold); }
.section--ink small { color: rgba(250, 247, 242, 0.6); }
.section--ink a:not(.btn) { color: #FF8B8F; text-decoration-color: rgba(255, 139, 143, 0.5); }
.section--ink a:not(.btn):hover { color: #FFB0B3; }

/* Form readability on dark sections — labels, hints, errors and consent
   default to ink which becomes invisible against the ink background. */
.section--ink .form__label { color: var(--ivory); }
.section--ink .form__hint  { color: rgba(250, 247, 242, 0.65); }
.section--ink .form__consent { color: rgba(250, 247, 242, 0.82); }
.section--ink .form__consent a { color: var(--ivory); text-decoration-color: rgba(250, 247, 242, 0.7); }
.section--ink .form__error  { color: #FF8B8F; }
.section--ink .form__label .required { color: #FF8B8F; }
.section--ink fieldset legend.eyebrow { color: var(--gold); }
.section--ink .form__response--success { background: rgba(176, 141, 60, 0.18); color: var(--ivory); border-left-color: var(--gold); }
.section--ink .form__response--error   { background: rgba(255, 92, 97, 0.16);  color: var(--ivory); border-left-color: #FF5C61; }

.rule {
  border: 0;
  border-top: var(--rule-red);
  width: 80px;
  margin: var(--space-md) 0 var(--space-lg);
}
.rule--gold { border-top: var(--rule-gold); width: 120px; }
.rule--centered { margin-inline: auto; }
.rule--full { width: 100%; border-top: var(--border-thin); }

/* ---------- Buttons ------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration-base) var(--easing),
              color var(--duration-base) var(--easing),
              transform var(--duration-fast) var(--easing),
              box-shadow var(--duration-base) var(--easing);
  min-height: 44px;
}

.btn--red,
a.btn--red,
a.btn--red:link,
a.btn--red:visited {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn--red:hover,
a.btn--red:hover,
a.btn--red:focus { background: var(--red-deep); border-color: var(--red-deep); color: var(--white); }
.btn--red:active { transform: translateY(1px); }

/* NHS-blue variant, used for the Well Wishers donation CTA. */
.btn--blue,
a.btn--blue,
a.btn--blue:link,
a.btn--blue:visited {
  background: #005EB8;
  color: var(--white);
  border: 2px solid #005EB8;
}
.btn--blue:hover,
a.btn--blue:hover,
a.btn--blue:focus { background: #004A94; border-color: #004A94; color: var(--white); }
.btn--blue:active { transform: translateY(1px); }

.btn--outline {
  background: transparent;
  color: var(--red-deep);
  border: 2px solid currentColor;
}
.btn--outline:hover { background: var(--red); color: var(--white); border-color: var(--red); }

.section--ink .btn--outline,
.hero .btn--outline,
.cta-block .btn--outline { color: var(--ivory); }
.section--ink .btn--outline:hover,
.hero .btn--outline:hover,
.cta-block .btn--outline:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

.btn--text {
  background: transparent;
  color: var(--fg-muted);
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
}
.btn--text:hover { color: var(--fg); border-color: var(--hairline); }

.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Header & Nav ------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: saturate(140%) blur(8px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: 0.875rem;
}
.site-header__logo img {
  width: clamp(140px, 18vw, 200px);
  height: auto;
  aspect-ratio: 2000 / 1088;
}

.site-nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-md);
}
.site-nav__bars,
.site-nav__bars::before,
.site-nav__bars::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform var(--duration-base) var(--easing),
              opacity var(--duration-base) var(--easing);
}
.site-nav__bars::before { transform: translateY(-7px); }
.site-nav__bars::after  { transform: translateY(5px); }

.site-nav__list {
  list-style: none; padding: 0; margin: 0;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.4vw, 1.5rem);
  flex-wrap: nowrap;
}
.site-nav__item {
  flex: 0 0 auto;
}
.site-nav__item > a:not(.btn),
.site-nav__parent {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__item > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--duration-base) var(--easing);
}
.site-nav__item > a:not(.btn):hover::after,
.site-nav__item.is-active > a:not(.btn)::after { transform: scaleX(1); }
.site-nav__item.is-active > a:not(.btn) { color: var(--red-deep); }

/* Well-Wishers nav item — NHS blue callout, all states.
   Uses !important to override the generic .is-active red-deep colour
   at every breakpoint (desktop, tablet, mobile drawer). */
.site-nav__item[data-slug="well-wishers"] > a:not(.btn),
.site-nav__item[data-slug="well-wishers"] > a:not(.btn):link,
.site-nav__item[data-slug="well-wishers"] > a:not(.btn):visited,
.site-nav__item[data-slug="well-wishers"] > a:not(.btn):hover,
.site-nav__item[data-slug="well-wishers"] > a:not(.btn):focus,
.site-nav__item[data-slug="well-wishers"].is-active > a:not(.btn) { color: #005EB8 !important; }
.site-nav__item[data-slug="well-wishers"] > a:not(.btn)::after,
.site-nav__item[data-slug="well-wishers"].is-active > a:not(.btn)::after { background: #005EB8 !important; }

.site-nav__item--cta a {
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  min-height: 0;
  white-space: nowrap;
}

/* ---------- Awards dropdown (desktop hover, mobile inline) -------- */

.site-nav__parent {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.site-nav__parent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--duration-base) var(--easing);
}
.site-nav__item.is-active > .site-nav__parent { color: var(--red-deep); }
.site-nav__item.is-active > .site-nav__parent::after,
.site-nav__item--has-dropdown:hover > .site-nav__parent::after,
.site-nav__item--has-dropdown:focus-within > .site-nav__parent::after { transform: scaleX(1); }
.site-nav__chevron {
  display: inline-flex;
  align-items: center;
  transition: transform var(--duration-fast) var(--easing);
}
.site-nav__item--has-dropdown:hover > .site-nav__parent .site-nav__chevron,
.site-nav__item--has-dropdown:focus-within > .site-nav__parent .site-nav__chevron {
  transform: rotate(180deg);
}

.site-nav__sublist {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

/* Desktop: floating dropdown panel ------------------------------- */
@media (min-width: 881px) {
  .site-nav__item--has-dropdown { position: relative; }
  .site-nav__sublist {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    min-width: 180px;
    background: var(--ivory);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-base) var(--easing),
                transform var(--duration-base) var(--easing);
    z-index: 60;
  }
  .site-nav__item--has-dropdown:hover > .site-nav__sublist {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .site-nav__item--has-dropdown:focus-within > .site-nav__sublist {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .site-nav__item--has-dropdown.is-open > .site-nav__sublist {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .site-nav__subitem a {
    display: block;
    padding: 0.6rem 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--duration-fast) var(--easing),
                color var(--duration-fast) var(--easing);
  }
  .site-nav__subitem a:hover { background: rgba(224, 31, 38, 0.06); color: var(--red-deep); }
  .site-nav__subitem.is-active a { color: var(--red-deep); }
}

@media (max-width: 880px) {
  .site-nav__toggle { display: inline-flex; position: relative; z-index: 101; }
  .site-nav__list {
    position: fixed;
    top: 0; right: 0; left: auto;
    width: min(360px, 88vw);
    height: 100vh;            /* fallback */
    height: 100dvh;           /* mobile-safe dynamic viewport */
    max-height: 100vh;
    max-height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(env(safe-area-inset-top) + 72px) var(--space-lg)
             calc(env(safe-area-inset-bottom) + var(--space-lg));
    background: var(--ivory);
    border-left: 1px solid var(--hairline);
    transform: translateX(100%);
    transition: transform var(--duration-base) var(--easing);
    box-shadow: var(--shadow-soft);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 100;
  }
  .site-nav.is-open .site-nav__list { transform: translateX(0); }
  .site-nav__item > a:not(.btn) {
    display: block;
    padding-block: 0.875rem;
    border-bottom: 1px solid var(--hairline);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .site-nav__item > a:not(.btn)::after { display: none; }

  /* Dropdown parent inside the drawer — shows children expanded inline. */
  .site-nav__item--has-dropdown > .site-nav__parent {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding-block: 0.875rem;
    border-bottom: 1px solid var(--hairline);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: default;
  }
  .site-nav__item--has-dropdown > .site-nav__parent::after { display: none; }
  .site-nav__item--has-dropdown > .site-nav__parent .site-nav__chevron { display: none; }
  .site-nav__sublist {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(20, 20, 20, 0.025);
  }
  .site-nav__subitem a {
    display: block;
    padding: 0.75rem 0 0.75rem 1rem;
    border-bottom: 1px solid var(--hairline);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
  }
  .site-nav__subitem.is-active a { color: var(--red-deep); }
  .site-nav__item--cta { margin-top: var(--space-lg); }
  .site-nav__item--cta a {
    display: block;
    text-align: center;
    background: var(--red);
    color: var(--white);
    border: 2px solid var(--red);
    padding: 0.875rem 1.25rem;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    text-decoration: none;
  }
  .site-nav__item--cta a:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--white); }
  .site-nav.is-open .site-nav__bars { background: transparent; }
  .site-nav.is-open .site-nav__bars::before { transform: rotate(45deg); }
  .site-nav.is-open .site-nav__bars::after  { transform: rotate(-45deg); }
}

/* ---------- Breadcrumbs -------------------------------------------- */

.breadcrumbs {
  padding-block: var(--space-md);
  font-size: var(--fs-small);
  color: var(--fg-muted);
}
.breadcrumbs ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-xs);
}
.breadcrumbs a { color: var(--fg-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red-deep); text-decoration: underline; }
.breadcrumbs__sep { margin-inline: var(--space-xs); opacity: 0.5; }
.breadcrumbs [aria-current="page"] { color: var(--fg); font-weight: 700; }

/* Breadcrumbs sitting inside a dark hero — the ink-context defaults, matching
   .section--ink elsewhere. */
.hero .breadcrumbs { color: rgba(250, 247, 242, 0.86); padding-block-end: var(--space-sm); }
.hero .breadcrumbs a { color: rgba(250, 247, 242, 0.86); }
.hero .breadcrumbs a:hover { color: #FF8B8F; text-decoration: underline; }
.hero .breadcrumbs [aria-current="page"] { color: var(--ivory); }

/* ---------- Hero --------------------------------------------------- */

.hero {
  background: var(--ink);
  color: var(--fg-on-dark);
  padding-block: clamp(4rem, 8vw + 2rem, 8rem);
  position: relative;
  overflow: hidden;
}
.hero__eyebrow {
  color: var(--gold);
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--tracking-xwide);
  text-transform: uppercase;
  margin-block-end: var(--space-md);
}
.hero h1 {
  color: var(--ivory);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  max-width: 18ch;
  margin-block-end: var(--space-lg);
}
.hero h1 em { color: var(--red); font-style: italic; font-weight: 500; }
.hero__lead {
  max-width: 56ch;
  font-size: var(--fs-lead);
  color: rgba(250, 247, 242, 0.8);
  margin-block-end: var(--space-xl);
}
.hero__rule {
  width: 80px;
  border: 0;
  border-top: 2px solid var(--red);
  margin: 0 0 var(--space-lg);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* One restrained page-load animation, per CLAUDE.md. */
.hero > * {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 700ms var(--easing) forwards;
}
.hero > *:nth-child(1) { animation-delay: 80ms; }
.hero > *:nth-child(2) { animation-delay: 200ms; }
.hero > *:nth-child(3) { animation-delay: 320ms; }
.hero > *:nth-child(4) { animation-delay: 440ms; }
.hero > *:nth-child(5) { animation-delay: 560ms; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero > * { opacity: 1; transform: none; animation: none; }
}

/* ---------- Page intro (non-home) ---------------------------------- */

.page-intro {
  /* Top is generous, bottom is tighter so the gap to the next section
     doesn't compound on desktop. */
  padding-block: clamp(3rem, 6vw + 1rem, 6rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--ivory);
  color: var(--ink);
}
/* When a default section follows page-intro, trim its top padding too
   so the transition feels coherent. */
.page-intro + .section { padding-block-start: clamp(2rem, 3.5vw + 0.5rem, 3rem); }
/* Tighter paragraph rhythm inside dark sections (hero recap, inaugural). */
.section--ink p { margin-block-end: 0.875rem; }
.section--ink p:last-child { margin-block-end: 0; }
.section--ink .grid p { margin-block-end: 0.875rem; }
.page-intro h1 { margin-block-end: var(--space-md); color: var(--ink); }
.page-intro p { color: var(--ink); }
.page-intro a:not(.btn) { color: var(--red-deep); }
.page-intro__lead { font-size: var(--fs-lead); max-width: 56ch; color: var(--grey); }
.page-intro .breadcrumbs { color: var(--grey); }
.page-intro .breadcrumbs a { color: var(--grey); }
.page-intro .breadcrumbs [aria-current="page"] { color: var(--ink); }

/* ---------- Cards / Grids ------------------------------------------ */

.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform var(--duration-base) var(--easing),
              box-shadow var(--duration-base) var(--easing),
              border-color var(--duration-base) var(--easing);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
.card h3 { font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 700; color: var(--ink); }
.card p { color: var(--ink); }
.card__meta { font-size: var(--fs-small); color: var(--grey); letter-spacing: var(--tracking-wide); text-transform: uppercase; font-weight: 700; }

/* Cards placed on a dark section need light text — overrides .card defaults. */
.section--ink .card h3,
.section--ink .card p,
.section--ink .card li { color: var(--ivory); }
.section--ink .card p strong { color: var(--ivory); }
.section--ink .card a:not(.btn) { color: #FF8B8F; }

/* Category cards: Bodoni display, gold rule, ceremonial feel. */
.category-card {
  position: relative;
  background: var(--white);
  color: var(--ink);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform var(--duration-base) var(--easing), box-shadow var(--duration-base) var(--easing);
}
.category-card p { color: var(--ink); }
.category-card a:not(.btn) { color: var(--red-deep); }
.category-card::before {
  content: "";
  display: block;
  width: 36px;
  border-top: 1px solid var(--gold);
}
.category-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.4rem + 1vw, 1.875rem);
  line-height: var(--lh-snug);
  color: var(--ink);
  margin: 0;
}
.category-card__index {
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: var(--tracking-wide);
  color: var(--gold);
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }

/* Sponsorship & ticket tiers */
.tier {
  background: var(--white);
  color: var(--ink);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.tier p { color: var(--ink); }
.tier a:not(.btn) { color: var(--red-deep); }
.tier__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
}
.tier__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--red-deep);
}
.tier__features { list-style: none; padding: 0; margin: 0; color: var(--ink); }
.tier__features li {
  padding-block: 0.5rem;
  border-bottom: var(--border-thin);
  font-size: 0.9375rem;
  color: var(--ink);
}
.tier__features li:last-child { border-bottom: 0; }

/* People */
.person {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  color: var(--ink);
}
.person__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--ink);
}
.person__role { font-size: var(--fs-small); color: var(--grey); letter-spacing: var(--tracking-wide); text-transform: uppercase; font-weight: 700; }

/* ---------- Forms -------------------------------------------------- */

.form {
  display: grid;
  gap: var(--space-md);
  max-width: var(--container-narrow);
}
.form__row { display: grid; gap: var(--space-md); }
@media (min-width: 640px) {
  .form__row--two { grid-template-columns: 1fr 1fr; }
}
.form__field { display: flex; flex-direction: column; gap: 0.375rem; }
.form__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
/* --red is 4.47:1 on ivory, just under AA. --red-deep clears it at 6.6:1. */
.form__label .required { color: var(--red-deep); margin-inline-start: 2px; }
.form__hint { font-size: 0.8125rem; color: var(--fg-muted); }
.form__error {
  display: none;
  font-size: 0.8125rem;
  color: var(--red-deep);
  font-weight: 700;
}
.form__field.is-invalid .form__error { display: block; }

.form__field input,
.form__field select,
.form__field textarea {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.875rem;
  font-size: 1rem;
  color: var(--ink);
  min-height: 44px;
  transition: border-color var(--duration-fast) var(--easing),
              box-shadow var(--duration-fast) var(--easing);
}
.form__field textarea { min-height: 160px; resize: vertical; }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(224, 31, 38, 0.15);
}
.form__field.is-invalid input,
.form__field.is-invalid select,
.form__field.is-invalid textarea {
  border-color: var(--red-deep);
  box-shadow: 0 0 0 3px rgba(176, 22, 28, 0.12);
}

.form__consent {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--fg-muted);
}
/* `.form__field input` above was written for text inputs, but it matches
   every input in the block — so checkboxes inherited a 44px min-height,
   padding and a border, leaving the box sitting ~15px below its own label
   text. Give them their own sizing. The 44px touch target is not lost:
   .form__consent is a <label> wrapping the input, so the whole row toggles. */
.form__field input[type="checkbox"],
.form__field input[type="radio"],
.form__consent input[type="checkbox"] {
  min-height: 0;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--red-deep);
  cursor: pointer;
  /* Inherit the label's type, so the 1lh below resolves against the label's
     line box (21.7px) rather than the 1rem the blanket rule forced on it. */
  font: inherit;
  line-height: inherit;
}
.form__consent { cursor: pointer; }

/* Centre the box on the FIRST line of the label, which may wrap.
   1lh is the line box height; the static value is the fallback for
   browsers without it. */
.form__consent input[type="checkbox"] {
  margin-top: 0.15rem;
  margin-top: calc((1lh - 1.15rem) / 2);
}

/* Honeypot — visually & screen-reader hidden */
.form__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
}

.form__actions { display: flex; gap: var(--space-md); align-items: center; flex-wrap: wrap; }
.form__response {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9375rem;
  display: none;
}
.form__response.is-visible { display: block; }
.form__response--success {
  background: rgba(176, 141, 60, 0.1);
  color: var(--ink);
  border-left: 3px solid var(--gold);
}
.form__response--error {
  background: rgba(176, 22, 28, 0.08);
  color: var(--red-deep);
  border-left: 3px solid var(--red-deep);
}

/* ---------- Footer ------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--ivory);
  padding-block: var(--space-2xl) var(--space-lg);
  margin-top: 0;
}
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: var(--tracking-xwide);
  text-transform: uppercase;
  color: var(--gold);
  margin-block-end: var(--space-md);
}
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--red); text-decoration: underline; }
.site-footer__grid {
  display: grid;
  gap: var(--space-xl) var(--space-lg);
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
}
@media (max-width: 880px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
.site-footer__brand img { width: 200px; height: auto; aspect-ratio: 2000 / 1088; margin-block-end: var(--space-md); }
.site-footer__brand p { color: rgba(250, 247, 242, 0.7); max-width: 32ch; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer__social {
  display: flex !important;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.site-footer__social a {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(250, 247, 242, 0.2);
  border-radius: 50%;
  color: var(--ivory);
  transition: border-color var(--duration-fast) var(--easing), background var(--duration-fast) var(--easing);
}
.site-footer__social a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.site-footer__partners-logos {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}
.site-footer__partners-logos a {
  display: inline-flex;
  align-items: center;
  opacity: 0.92;
  transition: opacity var(--duration-base) var(--easing), transform var(--duration-base) var(--easing);
}
.site-footer__partners-logos a:hover { opacity: 1; transform: translateY(-1px); }
.site-footer__partners-logos img {
  display: block;
  width: auto;
  height: auto;
  max-height: 36px;
  /* white council logo + colour FC badge both look clean on ink */
}
.site-footer__partners-logos img[alt="Walsall FC"] { max-height: 48px; }

.site-footer__partner-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 160px;
  background: transparent;
}

.site-footer__base {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  color: rgba(250, 247, 242, 0.5);
  font-size: var(--fs-small);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.site-footer__legal-inline {
  display: flex;
  align-items: center;
  gap: clamp(0.875rem, 2vw, 1.5rem);
}
.site-footer__legal-inline a {
  color: rgba(250, 247, 242, 0.65);
  text-decoration: none;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
}
.site-footer__legal-inline a:hover {
  color: var(--ivory);
  text-decoration: underline;
}
.site-footer__sep {
  display: inline-block;
  margin-inline: 0.5rem;
  color: rgba(250, 247, 242, 0.3);
}
.site-footer__made-by {
  display: inline-flex;
  align-items: center;
  vertical-align: -2px;
  margin: 0 0.15rem;
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--easing), transform var(--duration-fast) var(--easing);
}
.site-footer__made-by:hover { opacity: 0.8; transform: translateY(-1px); }
.site-footer__gloss-logo {
  display: block;
  height: 13px;
  width: auto;
  opacity: 0.8;
}
@media (max-width: 640px) {
  .site-footer__gloss-logo { height: 10px; }
}

/* ---------- Back to top -------------------------------------------- */

.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(5rem, 10vh, 6rem);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ivory);
  display: inline-flex;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  z-index: 40;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity var(--duration-base) var(--easing),
              transform var(--duration-base) var(--easing),
              background var(--duration-fast) var(--easing);
}
.back-to-top.is-visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.back-to-top:hover { background: var(--red); color: var(--white); }

/* ---------- Cookie banner ------------------------------------------ */

.cookie-banner {
  position: fixed;
  left: var(--space-md);
  right: var(--space-md);
  bottom: var(--space-md);
  max-width: calc(100% - 2 * var(--space-md));
  max-width: calc(100dvw - 2 * var(--space-md));
  background: var(--ink);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  z-index: 60;
  padding-block: var(--space-md);
  box-sizing: border-box;
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.cookie-banner p { margin: 0; max-width: 60ch; color: rgba(250, 247, 242, 0.85); flex: 1 1 280px; }
.cookie-banner a { color: var(--ivory); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: var(--space-sm); margin-inline-start: auto; flex-wrap: wrap; }
@media (max-width: 540px) {
  .cookie-banner__inner { gap: var(--space-sm); }
  .cookie-banner__actions { width: 100%; justify-content: flex-end; margin-inline-start: 0; }
}
.cookie-banner .btn--text { color: rgba(250, 247, 242, 0.7); }
.cookie-banner .btn--text:hover { color: var(--ivory); border-color: rgba(250, 247, 242, 0.3); }

/* ---------- noscript banner ---------------------------------------- */

.noscript-banner {
  background: var(--red-deep);
  color: var(--white);
  text-align: center;
  padding: var(--space-md);
}
.noscript-banner a { color: var(--ivory); text-decoration: underline; font-weight: 700; }

/* ---------- Data tables (horizontally scrollable on narrow screens) ---- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: var(--space-md);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
}
.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  color: var(--ink);
}
.data-table thead { background: rgba(20, 20, 20, 0.04); }
.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}
.data-table th {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--grey);
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  background: rgba(20, 20, 20, 0.05);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  color: var(--red-deep);
  white-space: nowrap;
}

/* ---------- inWalsall Magazine: masthead + hero ------------------- */

.inwalsall-masthead {
  display: inline-flex;
  align-items: center;
  background: var(--ivory);
  border-radius: var(--radius-md);
  padding: clamp(0.75rem, 1.5vw, 1.25rem) clamp(1.25rem, 2.5vw, 2rem);
  margin: 0 0 var(--space-lg);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  line-height: 0;
  max-width: 100%;
}
.inwalsall-masthead__logo {
  display: block;
  height: clamp(36px, 5vw, 64px);
  width: auto;
  aspect-ratio: 2000 / 461;
  max-width: none;
  object-fit: contain;
}

/* ---------- inWalsall Magazine: hero with photo bg ---------------- */

.hero--bg-image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero--bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(20,20,20,0.88), rgba(20,20,20,0.7)),
                    var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.hero--bg-image .hero__eyebrow,
.hero--bg-image .hero__sub,
.hero--bg-image .hero__tagline {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: var(--tracking-xwide);
  text-transform: uppercase;
  margin-block-end: var(--space-md);
  display: block;
}
.hero--bg-image .hero__tagline {
  color: var(--ivory);
  letter-spacing: 0.12em;
  text-align: center;
  margin-inline: auto;
}

/* Side-by-side image + text rows (alternating layout) */
.split {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-right .split__media { order: 2; }
}
.split__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink);
}
.split__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Feature cards (used on inWalsall and similar landing pages) */
.feature-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-base) var(--easing), box-shadow var(--duration-base) var(--easing);
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.feature-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--grey-bg);
}
.feature-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--easing);
}
.feature-card:hover .feature-card__media img { transform: scale(1.04); }
.feature-card__body {
  padding: clamp(1.25rem, 2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}
.feature-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 0.7vw, 1.625rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.feature-card__body p { color: var(--ink); margin: 0; }

/* ---------- Checkout details (2-step Stripe flow) ----------------- */

.order-summary {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: clamp(1rem, 2vw, 1.5rem);
  margin-block-end: var(--space-xl);
  display: grid;
  gap: var(--space-md);
}
.order-summary__label {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--grey);
}
.order-summary__line {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 0.7vw, 1.625rem);
  color: var(--ink);
}
.order-summary__price { color: var(--red-deep); font-weight: 600; }

.checkout-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 var(--space-xl);
}
.checkout-fieldset > legend {
  display: block;
  margin-block-end: var(--space-md);
}
.checkout-fieldset > p { color: var(--grey); margin-block-end: var(--space-md); }

.guest-row {
  padding-block: var(--space-md);
  border-top: 1px solid var(--hairline);
}
.guest-row:first-child { border-top: 0; padding-top: 0; }
.guest-row__label {
  margin: 0 0 var(--space-sm);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}

/* ---------- Inline Stripe buy form on tier cards ------------------ */

.ticket-buy {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.ticket-buy__row {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .ticket-buy__row { grid-template-columns: 90px 1fr; }
}
.ticket-buy__qty,
.ticket-buy__email {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.ticket-buy__qty-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 700;
}
.ticket-buy input[type="number"],
.ticket-buy input[type="email"] {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: 0.9375rem;
  min-height: 44px;
}
.ticket-buy input:focus {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(224, 31, 38, 0.15);
}
.ticket-buy__submit { margin-top: 0.25rem; width: 100%; }
.ticket-buy__error {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--red-deep);
  font-weight: 700;
}

/* ---------- Photo grid (Walsall landmarks) ------------------------- */

.photo-grid {
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .photo-grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 2;
  background: var(--grey-bg);
  margin: 0;
}
.photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--easing);
  display: block;
}
.photo-card:hover img { transform: scale(1.04); }
.photo-card__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.75rem 1rem 0.875rem;
  background: linear-gradient(to top, rgba(20,20,20,0.85), transparent);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

/* Auto-rotating full-bleed photo carousel (CSS-only fade).
   Cycle: 24s total / 4 slides = 6s each. First slide always renders
   immediately to avoid a black flash before the animation kicks in. */
.photo-rotator {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--ink);
}
@media (max-width: 720px) { .photo-rotator { aspect-ratio: 4 / 3; } }
.photo-rotator__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  animation: photo-rotate 24s infinite ease-in-out;
}
.photo-rotator__slide:first-child { opacity: 1; }
.photo-rotator__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes photo-rotate {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  25%  { opacity: 1; }
  29%  { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-rotator__slide { animation: none; opacity: 0; }
  .photo-rotator__slide:first-child { opacity: 1; }
}

/* Single hero-style photo banner (full-bleed inside its container) */
.photo-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--ink);
}
@media (max-width: 720px) { .photo-banner { aspect-ratio: 4 / 3; } }
.photo-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Video grid (Walsall heritage) -------------------------- */

.video-section {
  background: var(--ink);
  margin: 0;
  padding: 0;
  width: 100%;
}
.video-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .video-grid--multi { grid-template-columns: repeat(2, 1fr); }
}
.video-card {
  background: var(--ink);
  overflow: hidden;
  border: 0;
}
.video-card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-card__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-card__meta {
  padding: clamp(0.875rem, 1.5vw, 1.25rem);
  color: var(--ivory);
}
.video-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  line-height: 1.25;
  margin: 0;
  color: var(--ivory);
}
.video-card__caption {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  color: rgba(250, 247, 242, 0.6);
  letter-spacing: 0.04em;
}

/* ---------- Misc CTA blocks ---------------------------------------- */

.cta-block {
  background: var(--ink);
  color: var(--ivory);
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  text-align: center;
}
.cta-block h2 { color: var(--ivory); margin-block-end: var(--space-md); }
.cta-block p { margin-inline: auto; color: rgba(250, 247, 242, 0.8); margin-block-end: var(--space-lg); }
.cta-block .btn--outline { color: var(--ivory); }
.cta-block .btn--outline:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
/* Equal-height columns with buttons pinned to the same baseline. */
.cta-block .grid > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.cta-block .grid > div > p {
  margin-inline: 0;
  margin-block-end: 0;
}
.cta-block .grid > div > .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- Partners & Sponsors carousel --------------------------- */
.partners-strip {
  background: var(--white);
  border-top: 1px solid var(--hairline);
  padding-block-start: var(--space-xl);
  padding-block-end: 20px;
  overflow: hidden;
}
.partners-strip__title {
  display: block;
  text-align: center;
  margin-bottom: var(--space-lg);
}
.partners-strip__marquee {
  position: relative;
  overflow: hidden;
}
.partners-strip__track {
  display: flex;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  width: max-content;
  animation: partners-scroll 45s linear infinite;
}
.partners-strip__item {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 180px;
}
.partners-strip__item img {
  display: block;
  height: clamp(52px, 6vw, 80px);
  width: auto;
  max-width: 200px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
@keyframes partners-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* one full set (since we render twice) */
}
@media (prefers-reduced-motion: reduce) {
  .partners-strip__track { animation: none; justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .partners-strip { padding-block-start: var(--space-lg); }
  .partners-strip__item img { height: 44px; }
}

/* ---------- Charity partners row (Well Wishers + NHS) -------------- */
.charity-partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
  padding: var(--space-xl) var(--space-lg);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}
.charity-partners__logo {
  display: block;
  height: clamp(72px, 8vw, 110px);
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

/* ---------- Footer venue block (WFC logo + date/place) ------------- */
.site-footer__venue {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: var(--space-md);
}
.site-footer__brand .site-footer__venue-logo {
  display: block;
  height: 48px;
  width: 48px;
  max-width: none;
  aspect-ratio: auto;
  flex: 0 0 auto;
  margin: 0;
  object-fit: contain;
}

/* ---------- Print -------------------------------------------------- */
/* Lightweight subset here; full set in print.css. */
@media print {
  .site-header, .site-footer, .cookie-banner, .back-to-top,
  .noscript-banner, .form, .hero__actions { display: none !important; }
  body { background: white; color: black; }
}

/* ---------- Brand assets page ------------------------------------- */
.brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}
.brand-logo {
  display: flex;
  flex-direction: column;
}
.brand-logo__stage {
  display: grid;
  place-items: center;
  padding: var(--space-2xl) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  min-height: 220px;
}
.brand-logo__stage--light { background: var(--ivory); border: 1px solid var(--hairline); }
.brand-logo__stage--dark  { background: var(--ink);   border: 1px solid #2a2a2a; }
.brand-logo__stage img { max-width: 100%; height: auto; }
.brand-logo h3 {
  margin-block: var(--space-sm) var(--space-xs);
}

.brand-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.brand-swatch {
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 200px;
  justify-content: flex-end;
  color: var(--ivory);
  border: 1px solid rgba(250,247,242,0.12);
}
.brand-swatch__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}
.brand-swatch__hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.brand-swatch__role {
  font-size: 0.8125rem;
  margin-top: 0.5rem;
  opacity: 0.75;
}

.brand-type {
  padding: var(--space-xl);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--white);
}
.brand-type__sample {
  color: var(--red);
  margin-bottom: var(--space-md);
}
.brand-type h3 { margin: 0 0 var(--space-md); font-size: 1.5rem; }
.brand-type ul { padding-left: 1.25rem; }


/* ---------- Nomination deadline notice ------------------------------ */

.deadline{
  display:inline-block;
  margin-block-start:var(--space-md);
  padding:.55rem .9rem;
  border-left:3px solid var(--red);
  background:rgba(224,31,38,.06);
  border-radius:var(--radius-sm);
  font-size:0.9375rem;
  color:var(--ink);
}
/* On the ink hero the tinted panel disappears — invert it there. */
.deadline--hero,
.section--ink .deadline{
  background:rgba(250,247,242,.08);
  color:var(--ivory);
  border-left-color:var(--red);
}

/* =====================================================================
   Event photo gallery + lightbox
   ===================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: var(--space-sm);
  margin-block-start: var(--space-lg);
}

.gallery__item { margin: 0; }

/* Photos beyond the first batch. The rule is inverted under <noscript>
   below, so with JS off every photo is visible rather than stranded
   behind a button that cannot work. */
.gallery__item.is-beyond { display: none; }

.gallery__link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--hairline);
  aspect-ratio: 3 / 2;
}

.gallery__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.gallery__link:hover img,
.gallery__link:focus-visible img { transform: scale(1.04); opacity: 0.92; }

.gallery__link:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.gallery__more {
  margin-block-start: var(--space-lg);
  text-align: center;
}

.gallery__credit {
  margin-block-start: var(--space-md);
  font-size: 0.875rem;
  color: #595959;
}

/* ---- Lightbox ------------------------------------------------------ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 20, 20, 0.94);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
}

.lightbox[hidden] { display: none; }

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox__caption {
  margin-block-start: var(--space-sm);
  color: rgba(250, 247, 242, 0.72);
  font-size: 0.875rem;
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  background: rgba(250, 247, 242, 0.08);
  color: var(--ivory);
  border: 1px solid rgba(250, 247, 242, 0.22);
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(250, 247, 242, 0.2); }

.lightbox__close:focus-visible,
.lightbox__nav:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* 44px minimum touch target. */
.lightbox__nav {
  width: 56px; height: 56px;
  font-size: 2rem;
}

.lightbox__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 48px; height: 48px;
  font-size: 1.75rem;
}

@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lightbox__nav { width: 48px; height: 48px; font-size: 1.5rem; }
  .lightbox__figure { grid-row: 1; }
  .lightbox__nav--prev { grid-row: 2; justify-self: start; }
  .lightbox__nav--next { grid-row: 2; justify-self: end; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .gallery__link img { transition: none; }
  .gallery__link:hover img,
  .gallery__link:focus-visible img { transform: none; }
}

@media print {
  .gallery__more, .lightbox { display: none !important; }
  .gallery__item.is-beyond { display: none !important; }
}

/* =====================================================================
   News & Updates
   ===================================================================== */

.news-list {
  display: grid;
  gap: var(--space-xl);
}

.news-card {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
  padding-block-end: var(--space-xl);
  border-block-end: 1px solid var(--hairline);
}

.news-card:last-child { border-block-end: 0; padding-block-end: 0; }

@media (min-width: 820px) {
  .news-card { grid-template-columns: 1.1fr 1fr; }
  /* Image to the right of the copy reads as an illustration rather than a
     banner, and keeps the headline at the top-left where the eye starts. */
  .news-card__media { grid-column: 2; }
  .news-card__body  { grid-column: 1; grid-row: 1; }
}

.news-card__media {
  display: block;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 3 / 2;
  background: var(--hairline);
}

.news-card__media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card__media img { transform: scale(1.03); }

.news-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0 0 var(--space-sm);
  font-size: 0.875rem;
  color: #595959;
}

.news-type {
  display: inline-block;
  padding: 0.2em 0.7em;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.news-card__title { margin: 0 0 var(--space-sm); }
.news-card__title a { text-decoration: none; }
.news-card__title a:hover,
.news-card__title a:focus-visible { text-decoration: underline; }

.news-card__more { margin-block-start: var(--space-md); }

/* ---- Article ------------------------------------------------------- */

.news-hero {
  width: 100%;
  height: auto;
  border-radius: 3px;
  display: block;
}

.news-body {
  max-width: 42rem;   /* ~70 characters */
}

.news-body p { margin-block-end: var(--space-md); }
.news-body p:last-child { margin-block-end: 0; }

.news-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-md);
  align-items: center;
  padding-block-start: var(--space-lg);
  border-block-start: 1px solid var(--hairline);
}

.news-pager__link {
  display: block;
  text-decoration: none;
  min-width: 0;
}

.news-pager__link--next { text-align: right; }

.news-pager__dir {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #595959;
}

.news-pager__title {
  display: block;
  margin-block-start: 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .news-pager { grid-template-columns: 1fr; text-align: center; }
  .news-pager__link--next { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .news-card__media img { transition: none; }
  .news-card:hover .news-card__media img { transform: none; }
}

@media print {
  .news-pager { display: none; }
}

/* News card with no hero image — one column, not an empty second one. */
@media (min-width: 820px) {
  .news-card--no-media { grid-template-columns: 1fr; }
  .news-card--no-media .news-card__body { grid-column: 1; }
}

.section--tight { padding-block: var(--space-lg); }

.news-coverage__head {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #595959;
  margin-block-end: var(--space-sm);
}

.news-coverage { margin: 0; padding-left: 1.1rem; }
.news-coverage li { margin-block: 0.35rem; }

/* Crop news card images slightly above centre. These are photographs of
   people, and a centred 3:2 crop of a near-square portrait takes the top
   off their head. */
.news-card__media img { object-position: center 25%; }

/* =====================================================================
   Click-to-play video embed
   ===================================================================== */

.video {
  margin: var(--space-lg) 0 0;
  /* No max-width. The container is 1200px on desktop; capping the video at
     56rem (896px) left it 300px narrower than the headings and body text
     beside it, which read as a shrunken video rather than a deliberate
     inset. It now matches the page's own content width. */
}

.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: 4px;
  overflow: hidden;
}

.video__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: block;
}

.video__play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.video__play:hover img,
.video__play:focus-visible img { transform: scale(1.03); filter: brightness(0.85); }

.video__play:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* The play button itself — brand red, not the YouTube mark. */
.video__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 6px 28px rgba(20, 20, 20, 0.45);
  transition: transform 0.25s ease, background 0.25s ease;
}

.video__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent var(--ivory);
}

.video__play:hover .video__icon,
.video__play:focus-visible .video__icon { transform: translate(-50%, -50%) scale(1.08); }

.video__caption {
  margin-block-start: var(--space-sm);
  font-size: 0.875rem;
  color: #595959;
}

@media (max-width: 640px) {
  .video__icon { width: 64px; height: 64px; }
  .video__icon::after { border-width: 12px 0 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .video__play img,
  .video__icon { transition: none; }
  .video__play:hover img,
  .video__play:focus-visible img { transform: none; }
  .video__play:hover .video__icon,
  .video__play:focus-visible .video__icon { transform: translate(-50%, -50%); }
}

@media print { .video { display: none; } }

/* ---------- Timeline (includes/timeline.php) ------------------------
   Vertical on phones, a row of five on wide screens. State is carried by
   the label text as well as colour: Complete / Happening now / Coming up. */

.timeline {
  --tl-marker: 2.25rem;
  list-style: none; margin: var(--space-xl) 0 0; padding: 0;
  display: grid;
}
.timeline__step {
  position: relative;
  display: grid; grid-template-columns: var(--tl-marker) minmax(0, 1fr); gap: var(--space-md);
  align-content: start; /* steps in a row stretch to the tallest; keep content at the top */
  padding-block-end: var(--space-lg);
}
.timeline__step:last-child { padding-block-end: 0; }

/* Connector: from this marker to the next one. Solid once a stage is done. */
.timeline__step:not(:last-child)::before {
  content: ""; position: absolute;
  left: calc(var(--tl-marker) / 2 - 1px); top: var(--tl-marker); bottom: 0;
  width: 2px; background: var(--hairline);
}
.timeline__step.is-done:not(:last-child)::before { background: var(--ink); }

.timeline__marker {
  position: relative; z-index: 1;
  width: var(--tl-marker); height: var(--tl-marker); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--hairline);
  color: var(--ivory); font-size: 1rem; font-weight: 700; line-height: 1;
}
.is-done .timeline__marker { background: var(--ink); border-color: var(--ink); }
.is-now  .timeline__marker { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 6px rgba(224, 31, 38, 0.14); }
.is-now  .timeline__marker::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid var(--red); opacity: 0;
  animation: timeline-pulse 2.4s var(--easing) infinite;
}
.is-next .timeline__marker { border-color: var(--red); }
@keyframes timeline-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}

.timeline__body { min-width: 0; padding-block-start: 0.35rem; max-width: 34rem; }
.timeline__status {
  font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: var(--tracking-xwide);
  text-transform: uppercase; color: var(--fg-muted); margin-block-end: var(--space-xs);
}
.is-now  .timeline__status { color: var(--red-deep); }
.is-next .timeline__status { color: var(--gold-deep); }
.timeline__when { font-weight: 700; font-size: var(--fs-small); margin-block-end: var(--space-xs); }
.timeline__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: var(--lh-snug);
  text-wrap: balance; margin-block-end: var(--space-sm);
}
.timeline__text { color: var(--fg-muted); font-size: var(--fs-small); line-height: var(--lh-base); }
.is-now .timeline__text { color: var(--fg); }

@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-lg); }
  .timeline__step { grid-template-columns: 1fr; gap: var(--space-md); padding-block-end: 0; }
  .timeline__step:not(:last-child)::before {
    left: var(--tl-marker); right: calc(-1 * var(--space-lg));
    top: calc(var(--tl-marker) / 2 - 1px); bottom: auto;
    width: auto; height: 2px;
  }
  .timeline__body { padding-block-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .is-now .timeline__marker::after { animation: none; }
}
@media print {
  .is-now .timeline__marker::after { display: none; }
}

/* ---------- Public vote (vote.php, assets/js/vote.js) ----------------
   Each finalist is a <label> wrapping a visually hidden radio, so the whole
   card is the touch target. A choice shows as a red border AND a tick, never
   colour alone. */

.timeline__link { margin-block-start: var(--space-md); }

.vote-preview {
  margin-block: var(--space-lg) 0;
  padding: var(--space-md);
  border-left: 3px solid var(--gold);
  background: rgba(176, 141, 60, 0.1);
  border-radius: var(--radius-sm);
  max-width: 70ch;
}

.ballot__jump { margin-block-end: var(--space-lg); }
.ballot__jump-title { font-size: var(--fs-small); font-weight: 700; margin-block-end: var(--space-sm); }
.ballot__jump-list { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.ballot__jump a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 44px; padding: 0.5rem 0.875rem;
  border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--white); color: var(--ink);
  font-size: var(--fs-small); text-decoration: none; line-height: 1.25;
}
.ballot__jump a:hover { border-color: var(--ink); color: var(--ink); }
.ballot__jump a.is-chosen { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.ballot__jump a.is-chosen::before { content: "\2713"; font-weight: 700; }

.ballot { display: grid; gap: 0; }
.ballot__category {
  border: 0; margin: 0; min-width: 0;
  padding: var(--space-lg) 0;
  border-top: var(--border-thin);
  scroll-margin-top: 6rem;
}
/* Floated so the legend sits inside the fieldset rather than notching its top border. */
.ballot__legend { float: left; width: 100%; padding: 0; margin-block-end: var(--space-md); }
.ballot__legend + * { clear: both; }
.ballot__count {
  display: block;
  font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: var(--tracking-xwide);
  text-transform: uppercase; color: var(--fg-muted); margin-block-end: var(--space-xs);
}
.ballot__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); line-height: var(--lh-snug);
  text-wrap: balance; margin: 0;
}
.ballot__category.is-chosen .ballot__count::after { content: " \00B7  Chosen"; color: var(--red-deep); }

.ballot__finalists {
  display: grid; gap: var(--space-md);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 640px) {
  .ballot__finalists { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
}

.finalist {
  position: relative;
  display: flex; flex-direction: column; gap: var(--space-sm);
  padding: var(--space-sm) var(--space-sm) var(--space-md);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 0 transparent;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--easing),
              box-shadow var(--duration-fast) var(--easing),
              transform var(--duration-fast) var(--easing);
}
.finalist:not(.finalist--static):hover { border-color: var(--ink); transform: translateY(-2px); }
.finalist--static { cursor: default; }

/* Hidden but still focusable and announced; the card shows the state. */
.finalist__input {
  position: absolute; opacity: 0;
  width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.finalist:has(.finalist__input:focus-visible) { outline: 2px solid var(--red); outline-offset: 3px; }
.finalist:has(.finalist__input:checked) {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), var(--shadow-card);
}

.finalist__photo {
  display: block; width: 100%; aspect-ratio: 1 / 1;
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--ivory);
}
.finalist__photo img {
  width: 100%; height: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; object-position: center 25%;
}
.finalist__photo--contain { background: var(--white); border: var(--border-thin); }
.finalist__photo--contain img { object-fit: contain; object-position: center; padding: 8%; }
.finalist__photo--initials {
  display: grid; place-items: center;
  border: 1px solid rgba(176, 141, 60, 0.45);
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem); letter-spacing: 0.02em;
  color: var(--gold-deep);
}

.finalist__name {
  font-weight: 700; line-height: var(--lh-snug);
  padding-inline: var(--space-xs); overflow-wrap: anywhere;
  text-wrap: balance;
}

.finalist__tick {
  position: absolute; top: calc(var(--space-sm) + 0.5rem); right: calc(var(--space-sm) + 0.5rem);
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92); border: 2px solid var(--hairline);
  color: var(--white); font-weight: 900; font-size: 1rem; line-height: 1;
  transition: background-color var(--duration-fast) var(--easing), border-color var(--duration-fast) var(--easing);
}
.finalist__input:checked ~ .finalist__tick { background: var(--red); border-color: var(--red); }
.finalist__input:checked ~ .finalist__tick::before { content: "\2713"; }

.ballot__clear[hidden] { display: none; }
.ballot__clear { margin-block-start: var(--space-md); }

.ballot__submit {
  margin: var(--space-lg) 0 0; padding: var(--space-lg) 0 0; min-width: 0;
  border: 0; border-top: var(--rule-red);
  display: grid; gap: var(--space-md); max-width: var(--container-narrow);
  scroll-margin-top: 6rem;
}
.ballot__summary { color: var(--fg-muted); max-width: 60ch; }

/* Running count, pinned to the foot of the screen while the ballot is in view. */
.ballot__bar {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  margin-block-start: var(--space-lg);
  padding: 0.625rem var(--space-md);
  background: var(--ink); color: var(--ivory);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -6px 20px rgba(20, 20, 20, 0.12);
}
.ballot__bar[hidden] { display: none; }
.ballot__bar-count { font-weight: 700; font-size: var(--fs-small); margin: 0; }
.ballot__bar-count span { font-family: var(--font-display); font-size: 1.375rem; margin-inline-end: 0.15rem; }
.ballot__bar-go { padding-inline: 1.1rem; white-space: nowrap; }
@media (max-width: 420px) {
  .ballot__bar { padding-inline: var(--space-sm); gap: var(--space-sm); }
  .ballot__bar-go { padding-inline: 0.75rem; letter-spacing: 0.08em; }
}
/* Out of the way once the submit step itself is on screen. */
.ballot__bar.is-away { opacity: 0; transform: translateY(100%); pointer-events: none; }
.ballot__bar { transition: opacity var(--duration-base) var(--easing), transform var(--duration-base) var(--easing); }

.ballot-done {
  max-width: var(--container-narrow);
  padding: var(--space-lg);
  background: var(--white);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 6rem;
}
.ballot-done[hidden] { display: none; }
.ballot-done__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); margin-block-end: var(--space-md); }
.ballot-done__title:focus { outline: 0; }
.ballot-done__title:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.ballot-done__lead { font-weight: 700; margin-block-end: var(--space-sm); }
.ballot-done__list { display: grid; gap: 0; margin-block-end: var(--space-md); }
.ballot-done__list li {
  display: grid; gap: 0.1rem; padding-block: 0.625rem; border-bottom: var(--border-thin);
}
.ballot-done__cat { font-size: var(--fs-small); color: var(--fg-muted); }
.ballot-done__already { padding: var(--space-sm) var(--space-md); background: var(--ivory); border-radius: var(--radius-sm); margin-block-end: var(--space-md); }
.ballot-done__note { color: var(--fg-muted); margin-block-end: var(--space-md); max-width: 60ch; }

@media (prefers-reduced-motion: reduce) {
  .finalist:not(.finalist--static):hover { transform: none; }
}
@media print {
  .ballot__bar, .ballot__jump, .ballot__clear, .finalist__tick { display: none !important; }
  .finalist { break-inside: avoid; }
}

/* Finalist photo upload (finalist.php) */
.finalist-upload { display: grid; gap: var(--space-xl); align-items: start; }
.finalist-upload__preview { max-width: 18rem; display: grid; gap: var(--space-md); }
.finalist-upload__preview h2 { font-size: var(--fs-h4, 1.25rem); }
@media (min-width: 800px) {
  .finalist-upload { grid-template-columns: 18rem minmax(0, 1fr); }
}
.ballot__category > .ballot__title { margin-block-end: var(--space-md); }

/* =====================================================================
   Finalist picker (choose-finalists.php)
   ===================================================================== */
.picker { max-width: 720px; }
.picker__flash { max-width: 720px; margin-block-end: var(--space-lg); }
.picker__progress { height: 6px; background: rgba(20, 20, 20, 0.08); border-radius: 3px; overflow: hidden; margin-block-end: var(--space-md); }
.picker__progress span { display: block; height: 100%; background: var(--red); }
.picker__step { font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); margin: 0; }
.picker__title { margin-block: 0.25rem var(--space-sm); }
.picker__hint { color: var(--grey); margin-block-end: var(--space-md); }
.picker__empty { padding: var(--space-md); background: rgba(20, 20, 20, 0.04); border-left: 3px solid var(--gold); }
.picker__list { display: grid; gap: 0.625rem; }
.picker-card {
  display: flex; align-items: center; gap: var(--space-md);
  min-height: 64px; padding: 0.75rem var(--space-md);
  background: #fff; border: 2px solid rgba(20, 20, 20, 0.14); border-radius: var(--radius-md);
  cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.picker-card:hover { border-color: var(--ink); }
.picker-card input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: var(--red); cursor: pointer; }
.picker-card:has(input:checked) { border-color: var(--red); background: #fff6f6; }
.picker-card:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.picker-card__text { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.picker-card__name { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; overflow-wrap: anywhere; }
.picker-card__meta { font-size: var(--fs-small); color: var(--grey); }
.picker__others { margin-block-start: var(--space-md); }
.picker__others summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.picker__others .picker__list { margin-block-start: 0.5rem; }
.picker__count { margin-block: var(--space-lg) 0; font-size: 1.0625rem; }
.picker__saving { min-height: 1.5em; margin: 0.25rem 0 0; font-size: var(--fs-small); color: var(--grey); }
.picker__nav { display: flex; gap: var(--space-sm); margin-block-start: var(--space-md); }
.picker__nav .btn { min-height: 48px; flex: 1; justify-content: center; }
.picker__jump { margin-block-start: var(--space-sm); text-align: center; }
.picker-review { list-style: none; padding: 0; margin: var(--space-md) 0 var(--space-lg); display: grid; gap: 0.625rem; }
.picker-review__item { padding: 0.875rem var(--space-md); background: #fff; border: 1px solid rgba(20, 20, 20, 0.14); border-radius: var(--radius-md); }
.picker-review__item.is-empty { border-left: 4px solid var(--red); }
.picker-review__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); }
.picker-review__cat { font-weight: 700; }
.picker-review__edit { flex: none; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; color: var(--red-deep); }
.picker-review__names { list-style: none; padding: 0; margin: 0.375rem 0 0; }
.picker-review__names li { padding-block: 0.125rem; }
.picker-review__names li::before { content: "\2713\00a0"; color: var(--red); font-weight: 700; }
.picker-review__none { margin: 0.375rem 0 0; color: var(--red-deep); font-weight: 700; }
.picker-submit { padding: var(--space-md); background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-md); }
.picker-submit__confirm { display: flex; gap: var(--space-sm); align-items: flex-start; cursor: pointer; }
.picker-submit__confirm input { flex: none; width: 24px; height: 24px; margin-top: 2px; accent-color: var(--red); }
@media print { .picker__nav, .picker__jump, .picker-submit { display: none; } }

/* Missing finalist addresses (finalist-emails.php) */
.contacts__row { padding: 0.875rem var(--space-md); background: #fff; border: 1px solid rgba(20, 20, 20, 0.14); border-left: 4px solid var(--red); border-radius: var(--radius-md); }
.contacts__row.is-done { border-left-color: var(--gold); }
.contacts__name { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; overflow-wrap: anywhere; }
.contacts__row { scroll-margin-top: 6rem; min-width: 0; }
.contacts__row input { min-height: 48px; }
.contacts__entry { display: flex; gap: 0.5rem; align-items: stretch; }
.contacts__entry input { flex: 1; min-width: 0; }
.contacts__save { min-height: 48px; padding-inline: 1rem; justify-content: center; flex: none; }
.contacts__saved { display: block; margin-block-start: 0.375rem; font-size: var(--fs-small); font-weight: 700; color: var(--ink); }
.contacts__saved::before { content: "\2713\00a0"; color: var(--gold); }
.contacts__saved--error { color: var(--red); }
.contacts__saved--error::before { content: none; }
.contacts__note { margin-block: var(--space-sm) 0; }

/* Public vote: finalist search (vote.php) */
.vote-search { background: #fff; border: 1px solid rgba(20, 20, 20, 0.12); padding: var(--space-md); margin-block-end: var(--space-lg); }
.vote-search__row { display: flex; gap: var(--space-sm); }
.vote-search__row input { flex: 1; min-width: 0; min-height: 48px; font-size: 1.0625rem; padding: 0 14px; border: 1px solid rgba(20, 20, 20, 0.3); }
.vote-search__clear[hidden] { display: none !important; }
.vote-search__result { margin: 0.5rem 0 0; font-size: var(--fs-small); color: var(--grey); }
.vote-search__result:empty { display: none; }
.finalist.is-hit { outline: 3px solid var(--gold); outline-offset: 2px; }
.ballot__category[hidden], .finalist[hidden] { display: none !important; }
@media print { .vote-search { display: none; } }

/* =====================================================================
   Finalist kit (finalist.php): graphic, vote link and QR, email badge
   ===================================================================== */
.kit__lead { max-width: 60ch; }
.kit__flash { max-width: 60ch; margin-block-end: var(--space-lg); }
.kit__grid { display: grid; gap: var(--space-lg); align-items: start; }
@media (min-width: 900px) { .kit__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.kit__canvas { display: block; width: 100%; max-width: 480px; height: auto; aspect-ratio: 4 / 5; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); }
#kit-qr.kit__canvas { aspect-ratio: 1; }
.kit__canvas--badge { max-width: 600px; aspect-ratio: 4 / 1; margin-block: var(--space-md); }
.kit__tools { display: grid; gap: var(--space-md); align-content: start; }
.kit__buttons { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.kit__buttons .btn { min-height: 48px; }
.kit__caption { width: 100%; padding: 12px; font: inherit; font-size: 0.9375rem; line-height: 1.5; border: 1px solid rgba(20, 20, 20, 0.3); background: #fff; color: var(--ink); resize: vertical; }
.kit__link { display: flex; gap: var(--space-sm); }
.kit__link input { flex: 1; min-width: 0; min-height: 48px; padding: 0 12px; border: 1px solid rgba(20, 20, 20, 0.3); font-family: ui-monospace, monospace; font-size: 0.875rem; }
.kit__status { min-height: 1.5em; margin: 0; font-size: var(--fs-small); }
.section--ink .kit__caption, .section--ink .kit__name input { color: var(--ink); }
.section--ink .kit__name .form__hint, .section--ink .kit__status { color: rgba(250, 247, 242, 0.75); }
.section--ink .kit__name .form__hint a { color: var(--ivory); }
.section--ink .btn--text { color: var(--ivory); }
@media print { .kit { display: none; } }

/* Public vote: arrived from a finalist's own vote link */
.vote-shared { background: var(--ink); color: var(--ivory); padding: var(--space-md); margin-block-end: var(--space-lg); border-left: 4px solid var(--gold); max-width: 70ch; }
.vote-shared strong { color: #fff; }

/* Finalist press release (finalist.php): a sheet of paper on the ink section */
.press { background: var(--ivory); color: var(--ink); padding: clamp(1.25rem, 4vw, 2.5rem); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); font-size: 0.9375rem; line-height: 1.6; max-width: 65ch; overflow-wrap: anywhere; }
.section--ink .press p { color: var(--ink); margin: 0 0 0.875rem; }
.section--ink .press .press__label { color: #B4151D; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; margin-block-end: 1.25rem; }
.section--ink .press .press__title { font-family: var(--font-display, Georgia, serif); font-size: clamp(1.375rem, 3vw, 1.75rem); line-height: 1.2; font-weight: 600; margin-block-end: 0.5rem; }
.section--ink .press .press__subtitle { font-style: italic; color: #555; margin-block-end: 1.25rem; }
.section--ink .press .press__ends { text-align: center; font-weight: 700; margin-block: 1.5rem; }
.section--ink .press .press__h2 { font-weight: 700; margin-block: 1.25rem 0.5rem; }
.section--ink .press .press__note { font-size: 0.875rem; color: #444; }
.section--ink .kit__name textarea { width: 100%; color: var(--ink); }

/* Finalist ticket offer (finalist.php #tickets) */
.offer { max-width: 760px; }
.offer__group { border: 0; padding: 0; margin: 0 0 var(--space-lg); }
.offer__legend { font-family: var(--font-display); font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-block-end: var(--space-sm); padding: 0; }
.offer__options { display: grid; gap: var(--space-sm); }
.offer__option { display: grid; grid-template-columns: auto 1fr auto; column-gap: var(--space-sm); align-items: baseline; padding: 14px 16px; min-height: 44px; border: 1px solid rgba(20, 20, 20, 0.2); background: #fff; cursor: pointer; }
.offer__option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.offer__option input { margin: 0; width: 20px; height: 20px; align-self: center; accent-color: var(--red); }
.offer__name { font-weight: 700; }
.offer__price { font-weight: 700; white-space: nowrap; }
.offer__price s { font-weight: 400; color: #666; margin-inline-start: 4px; }
.offer__desc { grid-column: 2 / -1; font-size: var(--fs-small); color: #555; }
.offer__guests { display: grid; gap: var(--space-sm); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.offer__guests input { max-width: 120px; }
.offer__names { display: grid; gap: var(--space-xs, 8px); }
.offer__summary { display: grid; gap: var(--space-sm); justify-items: start; padding-block-start: var(--space-md); border-top: 1px solid rgba(20, 20, 20, 0.15); }
.offer__total { font-size: 1.25rem; margin: 0; }
.offer__summary .btn { min-height: 48px; }
.offer__summary .btn:disabled { opacity: 0.55; cursor: not-allowed; }
.offer-booked { max-width: 760px; margin-block-end: var(--space-lg); padding: var(--space-md); border-left: 3px solid var(--gold); background: rgba(176, 141, 60, 0.08); }
.offer-booked h3 { margin-block-start: 0; }
.offer-booked ul { margin: 0 0 var(--space-sm); padding-inline-start: 1.25rem; }
@media (max-width: 480px) {
  .offer__option { grid-template-columns: auto 1fr; }
  .offer__price { grid-column: 2; }
}
.finalist-cta { margin-block-start: var(--space-md); }
