/* ============================================
   EURO PADEL AWARDS 2027 — Master Stylesheet
   ============================================

   COLOUR RULE — read before touching --yellow.
   #FFCC00 on white is 1.51:1 and fails WCAG AA badly. Yellow is a
   dark-ground accent and fill colour ONLY; it must never carry text on a
   light background. On light sections, emphasis comes from --blue.
   tests/test-palette.php enforces this. Run: php tests/run.php

   The blue is a vivid ultramarine, deliberately NOT EU Reflex Blue
   (#003399). The brand reads as European without reading as an EU
   institution. Do not "correct" it.
   ============================================ */

@font-face {
  font-family: 'Neuething Sans';
  src: url('fonts/NeuethingSans-BoldUltraExpanded.woff2') format('woff2'),
       url('fonts/NeuethingSans-BoldUltraExpanded.woff')  format('woff');
  font-weight: 400 900;   /* stops the browser faux-bolding an already-bold face */
  font-style: normal;
  /* block, not swap. The face is preloaded (31 KB, see header.php), so the
     wait is a few hundred ms at most — and swap would flash every heading in
     a narrow fallback, then reflow it ultra-expanded, on every first visit. */
  font-display: block;
}

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

:root {
  --blue-deep:   #080B33;
  --blue-mid:    #0E1466;
  --blue:        #131CB9;
  --blue-hover:  #2831D6;
  --yellow:      #FFCC00;
  --yellow-soft: #FFE066;
  --cream:       #F5F1E8;
  --white:       #FFFFFF;
  --gray-100:    #F7F7F8;
  --gray-200:    #E8E8EC;
  --gray-300:    #D0D0D8;
  --gray-600:    #6B6B7B;
  --gray-800:    #2A2A3A;
  --error:       #B00020;
  /* Gloss's own brand pink, for the /gloss page and credit only. Decorative:
     4.3:1 on white, so it never carries text. */
  --gloss-pink:  #E52254;

  --font-display: 'Neuething Sans', 'Oswald', 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max-w: 1240px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.2,.7,.2,1);

  /* Layout rhythm. One gutter and one section step, fluid between phone
     and desktop, so every page breathes at the same rate. */
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 112px);
  --header-h: 72px;
}
@media (max-width: 1079px) { :root { --header-h: 64px; } }

/* scroll-padding keeps #anchors clear of the sticky header — without it
   every in-page jump lands with the target hidden behind the nav. */
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: calc(var(--header-h) + 24px); }
/* The categories page adds a sticky group bar under the header. */
html:has(.jump) { scroll-padding-top: calc(var(--header-h) + 88px); }

/* Honour a reduced-motion preference: no smooth scrolling, no transforms,
   no transitions. Vestibular triggers are not a style choice. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .btn--primary:hover, .btn--yellow:hover { transform: none; }
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  /* clip, not hidden: hidden makes <body> a scroll container and breaks
     every position: sticky inside it. */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

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

/* Type scale.
   Leading tightens as size grows, which is the optical rule and the opposite
   of what a single shared line-height does: a 16px heading in an
   ultra-expanded face needs MORE room between its lines than a 44px one.
   Everything was locked at 1.15, so small multi-line headings collided.

   The size steps matter too. h3 was 16px against 15.2px body — a ratio of
   1.05, no hierarchy at all. The heading only read as larger because the
   display face is so wide and heavy, which is the face carrying work the
   scale should be doing. */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 3.4vw, 3rem);       line-height: 1.08; letter-spacing: -.012em; text-transform: uppercase; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2.125rem);  line-height: 1.16; letter-spacing: -.008em; text-transform: uppercase; }
h3 { font-size: clamp(1.1875rem, .5vw + 1rem, 1.35rem); line-height: 1.3; letter-spacing: -.004em; margin-bottom: 10px; }
h4 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: .005em; }

/* Visible focus for keyboard users — never remove without a replacement.
   The ring is --blue by default: --yellow is 1.51:1 on white, 1.34:1 on
   cream and 1.41:1 on --gray-100, so a yellow ring is effectively invisible
   on every light page. Yellow is reinstated only on the dark grounds, where
   it reaches 12.56:1. tests/test-palette.php enforces both. */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.page-head :focus-visible,
.cta-band :focus-visible,
.consent :focus-visible,
.facts :focus-visible,
.steps :focus-visible,
.gloss-about :focus-visible,
.gloss-badge :focus-visible,
.sp-gate :focus-visible,
.sp-hero :focus-visible,
.sp-band :focus-visible,
.sec--dark :focus-visible { outline-color: var(--yellow); }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--blue-deep); color: var(--white);
  padding: 12px 20px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 13px 28px; border-radius: 50px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; line-height: 1.2;
  text-align: center;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out),
              border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-hover); transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: var(--blue-deep); }
.btn--yellow:hover { background: var(--yellow-soft); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.4); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* --- The court -----------------------------------------------------------
   The signature graphic: a padel court drawn to scale (includes/court.php).
   Hairline strokes at any size, white at low strength on dark grounds, with
   the net picked out in yellow — the one place the ball colour is a line
   rather than a fill. Always decorative. */
.court { display: block; pointer-events: none; color: rgba(255,255,255,.09); }
.court * { vector-effect: non-scaling-stroke; stroke-width: 1.25px; }
.court .court__net { color: var(--yellow); stroke: var(--yellow); stroke-opacity: .5; stroke-dasharray: 3 5; }

/* --- Header --- */
.site-header { background: var(--blue-deep); color: var(--white); position: sticky; top: 0; z-index: 50; }
.site-header__inner {
  display: flex; align-items: center; gap: 12px;
  min-height: var(--header-h); position: relative;
}
.site-header__logo { margin-right: auto; flex: none; }
.site-header__logo img { height: 44px; width: auto; }
.site-nav ul { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 12px; font-weight: 500; font-size: .9375rem; border-radius: 50px;
}
.site-nav a:hover { color: var(--yellow); }
.site-nav a[aria-current="page"] { color: var(--yellow); }
/* The current page is marked by more than colour: a short bar under it. */
.site-nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px;
  height: 2px; background: var(--yellow); border-radius: 2px;
}
.site-nav__note { display: none; }
.site-header__cta { min-height: 40px; padding: 8px 20px; font-size: .875rem; flex: none; }

/* Language menu: a <details>, so it opens without JavaScript. */
.lang-menu { position: relative; flex: none; }
.lang-menu > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; min-width: 44px; padding: 0 10px; border-radius: 50px; cursor: pointer;
  font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .08em; color: var(--white);
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover, .lang-menu[open] > summary { color: var(--yellow); }
.lang-menu > summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-menu__panel {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; min-width: 180px;
  background: var(--white); color: var(--blue-deep); border-radius: var(--radius-sm); padding: 6px;
  box-shadow: 0 16px 40px rgba(8,11,51,.3);
}
.lang-menu__panel a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 6px; font-weight: 500; }
.lang-menu__panel a:hover { background: var(--cream); color: var(--blue); }
.lang-menu__panel a[aria-current] { color: var(--blue); font-weight: 700; }
.lang-menu__panel a[aria-current]::after { content: ''; margin-left: auto; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); }

/* "This page is also available in …", offered once by main.js. */
.lang-offer {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; margin: 0 auto; max-width: 560px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  background: var(--blue-deep); color: var(--white); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); padding: 16px 20px; box-shadow: 0 16px 48px rgba(8,11,51,.4);
}
.lang-offer p { flex: 1 1 220px; font-weight: 500; }
.lang-offer__actions { display: flex; align-items: center; gap: 8px; }
.lang-offer__no { background: none; border: 0; color: var(--gray-200); padding: 10px 12px; min-height: 44px; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lang-offer__no:hover { color: var(--yellow); }

/* Translated legal pages say which text applies. */
.legal-note { background: var(--cream); border-left: 3px solid var(--blue); padding: 14px 18px; margin-bottom: 28px; font-size: .9375rem; color: var(--gray-800, #2A2A3A); }
.legal-note a { color: var(--blue); text-decoration: underline; }
.site-header__cta[aria-current="page"] { background: var(--yellow); color: var(--blue-deep); }
.nav-toggle {
  display: none; place-items: center; flex: none;
  min-width: 44px; min-height: 44px; margin-right: -10px;
  background: none; border-radius: 50%;
  /* Explicit gap: margins do not collapse inside a grid, so the cross
     below is computed from this (2px bar + 4px gap = 6px between bars). */
  align-content: center; gap: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--white);
  transition: transform .25s var(--ease-out), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Seven links and a button need ~1000px. Below that the menu becomes a
   full-height sheet under the header rather than a cramped dropdown. */
@media (max-width: 1079px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--blue-deep); border-top: 1px solid rgba(255,255,255,.12);
    padding: 8px var(--gutter) 32px;
    display: flex; flex-direction: column; justify-content: space-between;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease-out), transform .25s var(--ease-out), visibility 0s .25s;
  }
  .site-nav.is-open {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .2s var(--ease-out), transform .25s var(--ease-out), visibility 0s;
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-nav a {
    width: 100%; min-height: 60px; padding: 0; border-radius: 0;
    font-family: var(--font-display); text-transform: uppercase;
    font-size: clamp(1.125rem, 4.6vw, 1.5rem); letter-spacing: -.005em;
  }
  .site-nav a[aria-current="page"]::after { left: auto; right: 0; top: 50%; bottom: auto; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-50%); }
  .site-nav__note {
    display: block; margin-top: 32px; font-family: var(--font-mono);
    font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-300);
  }
  html.nav-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .site-header__logo img { height: 36px; }
  .site-header__cta { padding: 8px 14px; }
  /* Logo, language, Nominate and the burger must share 288px at 320.
     The globe alone still names the language: the summary has an aria-label. */
  .site-header__inner { gap: 8px; }
  .lang-menu > summary { padding: 0; justify-content: center; }
  .lang-menu > summary span { display: none; }
}

/* Translated text runs longer than English, and the display face is very
   wide: let long words hyphenate rather than overflow. English is left
   exactly as it was designed. lang="…" on <html> drives the dictionary. */
:root:not(:lang(en)) :is(h1, h2, h3, .facts__item dt, .btn, legend, .section-label) {
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
}

/* --- Footer --- */
.site-footer { position: relative; overflow: hidden; background: var(--blue-deep); color: var(--white); padding: 72px 0 32px; border-top: 1px solid rgba(255,255,255,.1); }
.site-footer__court { position: absolute; width: 760px; right: -430px; top: -60px; transform: rotate(90deg); color: rgba(255,255,255,.05); }
/* On a phone the court would run behind the logo and links. */
@media (max-width: 859px) { .site-footer__court { display: none; } }
.site-footer__inner { position: relative; display: grid; gap: 40px 32px; grid-template-columns: 1fr 1fr; }
.site-footer__brand { grid-column: 1 / -1; }
.site-footer__brand img { height: 56px; width: auto; margin-bottom: 18px; }
.site-footer__brand p { color: var(--gray-300); max-width: 26rem; }
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.site-footer__h {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 8px;
}
.site-footer__col a { display: inline-flex; align-items: center; min-height: 40px; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__base {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px;
  font-size: .875rem; color: var(--gray-300);
}
.site-footer__base p a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 32px; }
/* Studio credit, as on the British Padel Awards. The label is --gray-300,
   not BPA's 28% white: that was ~2.3:1 and failed AA. */
.gloss-credit { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; }
.gloss-credit__label { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-300); }
.gloss-credit__logo { height: 15px; width: auto; transition: opacity .2s; }
.gloss-credit:hover .gloss-credit__logo { opacity: .8; }
@media (min-width: 860px) { .site-footer__base { align-items: center; } .site-footer__base p { flex: 1 1 auto; } }
@media (min-width: 860px) {
  .site-footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: auto; }
}

/* --- Consent banner --- */
.consent {
  position: fixed; inset: auto 16px 16px 16px; z-index: 90;
  background: var(--blue-deep); color: var(--white);
  padding: 24px; border-radius: var(--radius);
  display: grid; gap: 16px; max-width: 480px;
  box-shadow: 0 12px 48px rgba(0,0,0,.35);
}
.consent__actions { display: flex; gap: 12px; }
.consent__actions .btn { flex: 1; padding: 12px 20px; }
/* Yellow on --blue-deep is 12.56:1. It would NOT be permitted on white. */
.consent__more { font-size: .8125rem; }
.consent__more a { color: var(--yellow); text-decoration: underline; }

/* --- Section scaffolding --- */
.section { padding: var(--section) 0; }
.page-head { position: relative; overflow: hidden; background: var(--blue-deep); color: var(--white); padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); }
.page-head > .container { position: relative; }
.page-head .lede { color: var(--gray-300); }
.page-head .lede a { color: var(--yellow); text-decoration: underline; }
.page-head__court {
  position: absolute; width: min(720px, 120vw); right: -12%; bottom: -38%;
  transform: perspective(900px) rotateX(58deg) rotateZ(-8deg);
  color: rgba(255,255,255,.1);
}
.page-head .hero__actions { margin-top: 32px; }
/* Narrow reading/form column.
   Set on the same element as .container, a narrow max-width inherits that
   container's `margin: 0 auto` and centres itself — while the page-head
   above it stays left-aligned at the gutter. Keep the container full width
   and cap the children instead, so the left edge matches the rest of the
   page. */
.container--narrow { max-width: var(--max-w); }
.container--narrow > * { max-width: 45rem; }

/* The gate is a standalone full-page card with no heading above it to align
   to, so it keeps its centred treatment. */
.sp-gate .container--narrow { max-width: 30rem; }
.sp-gate .container--narrow > * { max-width: none; }

/* Measure. `ch` is the width of the zero glyph, which in DM Sans is well
   under the average character, so 62ch was rendering ~85 characters a line.
   Set in rem against a 60-75 character target and verified by measurement. */
.lede { text-wrap: pretty; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34rem; margin-top: 16px; line-height: 1.5; }

.section-label {
  display: inline-block; font-family: var(--font-mono);
  font-size: .75rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
/* On dark grounds only — 12.56:1 on --blue-deep. Never on white (1.51:1). */
.section-label--light { color: var(--yellow); }
.page-head .section-label { color: var(--yellow); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.section-head__link { flex: none; }

.prose { max-width: 36rem; }
.prose h2 { margin: 40px 0 14px; color: var(--blue); font-size: clamp(1.125rem, 1.4vw + .6rem, 1.45rem); line-height: 1.25; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose a:not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose a:not(.btn):hover { color: var(--blue-hover); }
.prose code { font-family: var(--font-mono); font-size: .875em; background: var(--gray-100); padding: 2px 6px; border-radius: 4px; }

/* Prose with a facts panel beside it on wide screens, below it on narrow. */
.with-aside { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .with-aside { grid-template-columns: minmax(0, 1fr) 22rem; gap: 64px; } }
.aside-card { background: var(--cream); border-radius: var(--radius); padding: 28px; }
.aside-card h2 { font-size: 1rem; color: var(--blue); margin-bottom: 16px; }
.aside-card dl { display: grid; gap: 14px; }
.aside-card dt { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-600); }
.aside-card dd { font-weight: 700; color: var(--blue-deep); line-height: 1.4; }
.aside-card dd a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.aside-card p { font-size: .9375rem; line-height: 1.55; }
.aside-card p + p { margin-top: 12px; }
.aside-card .btn { margin-top: 20px; width: 100%; }
@media (min-width: 960px) { .aside-card { position: sticky; top: calc(var(--header-h) + 24px); } }

/* --- Hero --- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 112px);
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(19,28,185,.55), transparent 70%),
    var(--blue-deep);
}
/* The court seen from the stands: laid flat and receding, so the hero reads
   as a floor the type stands on rather than a pattern behind it. */
.hero__court {
  position: absolute; left: 50%; bottom: -18%; width: max(1100px, 130%);
  transform: translateX(-50%) perspective(1000px) rotateX(64deg);
  color: rgba(255,255,255,.16);
}
/* On a phone the copy runs the full height of the hero; keep the floor
   below the paragraph so no line crosses the text. */
@media (max-width: 700px) { .hero__court { display: none; } }
.hero__inner { position: relative; display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(1.85rem, 5vw, 4.25rem); line-height: 1.04; max-width: 60rem; }
.hero .lede { color: var(--gray-300); margin-top: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
/* When and where, set as a ticket stub beside the headline. */
.hero__when {
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius);
  padding: 24px; background: rgba(8,11,51,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero__when dt { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 6px; }
.hero__when dd { margin-bottom: 18px; }
.hero__when dd:last-child { margin-bottom: 0; }
.hero__when .hero__date { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.05; text-transform: uppercase; }
.hero__when a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.hero__when a:hover { color: var(--yellow); }
.hero__when .hero__place { color: var(--gray-300); font-size: .9375rem; font-weight: 400; }
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) 20rem; gap: 64px; align-items: end; }
  .hero h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); }
}
/* The header already carries the logo; repeating it beside the headline
   squeezed the headline into six lines. The court is the hero's picture. */

/* --- Facts strip --- */
.facts { background: var(--blue-mid); color: var(--white); }
.facts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts__item {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  padding: 28px 16px 28px 0; border-top: 1px solid rgba(255,255,255,.12);
}
.facts__item:nth-child(-n+2) { border-top: 0; }
.facts__item:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.12); }
.facts__item dd { order: 1; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.75rem); white-space: nowrap; line-height: 1; color: var(--yellow); }
.facts__item dd.facts__when { font-size: clamp(1.05rem, 2vw, 1.4rem); line-height: 1.15; text-transform: uppercase; color: var(--white); white-space: normal; }
.facts__item dt { order: 2; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-300); line-height: 1.45; }
.facts__item dd.facts__note { order: 3; white-space: normal; font-family: var(--font-body); font-size: .875rem; line-height: 1.45; color: var(--gray-300); }
.facts__item dd.facts__note a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
/* Exactly three facts (the homepage) sit three across even on a phone;
   a 2x2 grid would strand the third on its own row. */
@media (max-width: 859px) {
  .facts__list:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts__list:has(> :nth-child(3):last-child) .facts__item { border-top: 0; padding: 24px 8px 24px 12px; border-left: 1px solid rgba(255,255,255,.12); }
  .facts__list:has(> :nth-child(3):last-child) .facts__item:first-child { border-left: 0; padding-left: 0; }
  /* Three across leaves ~90px a column at 320: the spaced mono labels
     ("COUNTRIES & TERRITORIES") need tighter tracking to fit. */
  .facts__list:has(> :nth-child(3):last-child) .facts__item dt { letter-spacing: .04em; font-size: .625rem; overflow-wrap: anywhere; }
}
/* Light variant: blue figures on cream. Never yellow on a light ground. */
.facts--light { background: var(--cream); color: var(--gray-800); }
.facts--light .facts__item { border-color: rgba(8,11,51,.12); }
.facts--light .facts__item dd { color: var(--blue); }
.facts--light .facts__item dt { color: var(--gray-600); }
.facts--light .facts__item dd.facts__note { color: var(--gray-600); }
@media (min-width: 860px) {
  .facts__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .facts__item, .facts__item:nth-child(even) { border-top: 0; padding: 36px 24px; border-left: 1px solid rgba(255,255,255,.12); }
  .facts--light .facts__item, .facts--light .facts__item:nth-child(even) { border-left-color: rgba(8,11,51,.12); }
  .facts__item:first-child { border-left: 0; padding-left: 0; }
}

/* --- Intro --- */
.intro { padding: var(--section) 0; background: var(--cream); }
.intro__inner { display: grid; gap: 40px; align-items: center; }
/* A section heading followed by prose (intro, venue). */
h2 + .prose { margin-top: 20px; }
/* Rotating ceremony photographs. Stacked in one 4:3 box and cross-faded;
   the box reserves its space, so nothing shifts as photos load or change. */
.intro__slides { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--blue-deep); }
.intro__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s var(--ease-out);
}
.intro__slides img.is-active { opacity: 1; }
@media (min-width: 960px) { .intro__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }

/* --- Home: the category index ---
   An editorial table of contents rather than a wall of identical cards:
   every award is named on the homepage, grouped and numbered as on
   /categories, so the page answers "what can I nominate for?" outright. */
.index-groups { padding: var(--section) 0; }
.group-index { margin-top: 40px; border-bottom: 1px solid var(--gray-200); }
.group-index__row {
  display: grid; gap: 12px 24px; padding: 28px 0;
  border-top: 1px solid var(--gray-200);
  grid-template-columns: 2.25rem minmax(0, 1fr);
}
.group-index__num { font-family: var(--font-mono); font-size: .875rem; color: var(--blue); padding-top: 4px; }
.group-index__head h3 { margin-bottom: 4px; }
.group-index__head h3 a { color: var(--blue); }
.group-index__head h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.group-index__head p { color: var(--gray-600); font-size: .9375rem; line-height: 1.5; }
.group-index__awards { grid-column: 2; display: grid; gap: 8px; }
.group-index__awards li { display: flex; gap: 12px; line-height: 1.4; color: var(--gray-800); }
.group-index__n { font-family: var(--font-mono); font-size: .75rem; color: var(--gray-600); padding-top: 3px; flex: none; }
@media (min-width: 960px) {
  .group-index__row { grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; padding: 36px 0; }
  /* Columns, not a grid: numbers read down then across, 01-04 | 05-07. */
  .group-index__awards { grid-column: 3; display: block; columns: 2; column-gap: 24px; }
  .group-index__awards li { break-inside: avoid; margin-bottom: 10px; }
}

/* --- Home: how it works --- */
.steps { position: relative; background: var(--blue-mid); color: var(--white); padding: var(--section) 0; counter-reset: step; }
.steps__list { display: grid; gap: 0; margin-top: 40px; }
.steps__item {
  counter-increment: step; position: relative;
  padding: 24px 0 28px 56px; border-top: 1px solid rgba(255,255,255,.15);
}
.steps__item::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 26px;
  font-family: var(--font-mono); font-size: .875rem; color: var(--yellow);
}
.steps__item h3 { color: var(--white); margin-bottom: 8px; text-transform: uppercase; font-size: 1.125rem; }
.steps__item p { color: var(--gray-300); line-height: 1.55; font-size: .9375rem; }
.steps__item a { color: var(--yellow); text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 860px) {
  .steps__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .steps__item { padding: 56px 0 0; border-top: 2px solid rgba(255,255,255,.15); }
  /* A yellow segment on each rule: the four steps read as one rally. */
  .steps__item::after { content: ''; position: absolute; left: 0; top: -2px; width: 48px; height: 2px; background: var(--yellow); }
  .steps__item::before { top: 20px; }
}

/* --- Categories page --- */
/* Sticky group bar. Sideways-scrolling on a phone, with the scrollbar
   hidden but the edge faded so it is clear there is more to the right. */
.jump {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--gray-200);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
}
.jump ul {
  display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
}
.jump ul::-webkit-scrollbar { display: none; }
.jump li { flex: none; }
.jump a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--gray-300); border-radius: 50px;
  font-size: .875rem; font-weight: 500; color: var(--gray-800); white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.jump a span { font-family: var(--font-mono); font-size: .75rem; color: var(--gray-600); }
.jump a:hover { border-color: var(--blue); color: var(--blue); }
.jump a[aria-current] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.jump a[aria-current] span { color: var(--gray-200); }
@media (min-width: 1240px) { .jump ul { -webkit-mask-image: none; mask-image: none; } }

.category-group { padding: var(--section) 0; }
.category-group:nth-of-type(even) { background: var(--gray-100); }
.category-group__inner { display: grid; gap: 32px; }
.category-group__head h2 { color: var(--blue-deep); font-size: clamp(1.45rem, 1.9vw, 1.8rem); }
.category-group__sub { color: var(--gray-600); margin-top: 10px; max-width: 26rem; line-height: 1.5; }
.category-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.category-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
}
.category-card__num { font-family: var(--font-mono); font-size: .8125rem; color: var(--blue); margin-bottom: 14px; }
.category-card h3 { color: var(--blue); }
.category-card p:not(.category-card__num) { color: var(--gray-600); font-size: .9375rem; line-height: 1.5; }
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .category-group__inner { grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); gap: 48px; align-items: start; }
  .category-group__head { position: sticky; top: calc(var(--header-h) + 96px); }
}

/* Ultramarine, not navy: a navy band ran straight into the navy footer. */
.cta-band { position: relative; overflow: hidden; background: var(--blue); color: var(--white); padding: var(--section) 0; text-align: center; }
.cta-band > .container { position: relative; }
.cta-band__court {
  /* Sunk below the button, so the net never runs through the heading. */
  position: absolute; left: 88%; bottom: -62%; width: 900px;
  transform: translateX(-50%) perspective(900px) rotateX(60deg);
  color: rgba(255,255,255,.08);
}
.cta-band h2 { max-width: 22ch; margin: 0 auto 28px; }
.cta-band h2:has(+ .cta-band__sub) { margin-bottom: 16px; }
.cta-band__sub { color: var(--gray-200); text-wrap: pretty; margin: 0 auto 28px; max-width: 30rem; }

/* --- Venue --- */
.venue { display: grid; gap: 40px; }
.venue__cards { display: grid; gap: 16px; }
.venue__card { background: var(--gray-100); border-radius: var(--radius); padding: 24px; }
.venue__card h3 { color: var(--blue); }
.venue__card p:not(.category-card__num) { color: var(--gray-800); font-size: .9375rem; line-height: 1.55; }
.venue__source { margin-top: 24px; font-size: .8125rem; color: var(--gray-600); line-height: 1.5; max-width: 36rem; }
.venue__source a { color: var(--blue); text-decoration: underline; }
@media (min-width: 960px) {
  .venue { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 72px; }
}

/* --- Gloss (studio credit page) --- */
.gloss-head__logo { display: block; height: clamp(30px, 5vw, 44px); width: auto; margin: 8px 0 28px; }
.gloss-head .btn svg, .gloss-about .btn svg { width: 14px; height: 14px; fill: currentColor; }
.gloss-intro { color: var(--gray-600); max-width: 36rem; margin-top: 16px; line-height: 1.6; }
.gloss-grid { margin-top: 40px; }
@media (min-width: 1000px) { .gloss-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Gloss pink as a hairline on the cards: a nod to the partner's brand that
   carries no text, so the contrast rule above is never in play. */
.gloss-card { border-top: 3px solid var(--gloss-pink); }

.gloss-about { position: relative; background: var(--blue-deep); color: var(--white); padding: var(--section) 0; }
.gloss-about__inner { display: grid; gap: 48px; align-items: center; }
.gloss-about__logo { height: 34px; width: auto; margin-bottom: 28px; }
.gloss-about h2 { margin-bottom: 18px; max-width: 18ch; }
.gloss-about p { color: var(--gray-300); max-width: 34rem; margin-bottom: 14px; }
.gloss-about .btn { margin-top: 14px; }
.gloss-about__stats { display: grid; gap: 14px; }
.gloss-about__stats > div {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid rgba(255,255,255,.12); border-left: 3px solid var(--gloss-pink);
  border-radius: var(--radius-sm); padding: 20px 24px; background: rgba(255,255,255,.03);
}
.gloss-about__stats dd { order: 1; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.2; overflow-wrap: anywhere; }
.gloss-about__stats dd a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-transform: none; font-family: var(--font-body); font-weight: 700; }
.gloss-about__stats dt { order: 2; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-300); }
@media (min-width: 900px) { .gloss-about__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; } }

.gloss-badge { background: var(--blue-deep); border-top: 1px solid rgba(255,255,255,.1); padding: 64px 0; text-align: center; }
.gloss-badge__label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-300); margin-bottom: 24px; }
.gloss-badge__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 32px; }
.gloss-badge__epa { height: 56px; width: auto; }
.gloss-badge__gloss { height: 28px; width: auto; }
.gloss-badge__divider { width: 1px; height: 44px; background: rgba(255,255,255,.2); }

/* Self-nomination: "How do you know them?" does not apply. */
fieldset:has(input[name="self_nomination"]:checked) .form-field--relationship { display: none; }

/* --- Nominee graphic page (/nominee-card) --- */
.nc-msg { margin-bottom: 24px; }
.nc-formats { list-style: none; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.nc-tile { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.nc-tile__art { background: var(--blue-deep); display: grid; place-items: center; padding: 18px; min-height: 300px; }
.nc-tile__art img { width: auto; height: auto; max-width: 100%; max-height: 340px; border-radius: 4px; }
.nc-tile__body { padding: 18px 20px 22px; display: grid; gap: 6px; justify-items: start; }
.nc-tile__name { font-size: 1rem; color: var(--blue-deep); }
.nc-tile__meta { font-size: .875rem; color: var(--gray-600); margin-bottom: 10px; }
.nc-panel { margin: 48px auto 0; max-width: 46rem; background: var(--cream); border-radius: var(--radius); padding: 32px; }
.nc-panel h2 { margin-bottom: 10px; color: var(--blue-deep); }
.nc-panel p { color: var(--gray-800); margin-bottom: 18px; line-height: 1.6; }
.nc-form input[type="file"] { display: block; width: 100%; padding: 14px; border: 1px dashed var(--gray-300); border-radius: var(--radius-sm); background: var(--white); margin-bottom: 16px; font: inherit; }
.nc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nc-actions--remove { margin-top: 12px; }
.nc-small { font-size: .875rem; color: var(--gray-600) !important; margin: 20px 0 0 !important; }
@media (max-width: 640px) { .nc-panel { padding: 24px 20px; } }

/* --- Contact --- */
.contact-layout { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1fr) 22rem; gap: 72px; } }

/* --- Forms --- */
.stack-form, .nomination-form { display: grid; gap: 24px; max-width: 720px; }
.nomination-form fieldset { border: 0; display: grid; gap: 20px; padding: 28px; background: var(--gray-100); border-radius: var(--radius); min-width: 0; }
.nomination-form legend {
  /* Floated so it renders inside the tinted panel as its heading, instead of
     straddling the panel's top edge, which is a legend's default. */
  float: left; width: 100%; padding: 0; margin-bottom: 4px;
  font-family: var(--font-display); text-transform: uppercase; font-size: 1rem; line-height: 1.3; color: var(--blue);
}
.form-field { display: grid; gap: 6px; min-width: 0; }
.form-field label { font-weight: 700; font-size: .9375rem; }
.form-field input[type="text"], .form-field input[type="email"], .form-field input[type="url"],
.form-field select, .form-field textarea {
  font-family: inherit; font-size: 1rem; padding: 12px 14px; min-height: 48px;
  border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  background: var(--white); color: var(--gray-800); width: 100%; max-width: 100%;
}
.form-field textarea { resize: vertical; line-height: 1.6; }
.form-field input[type="file"] { font-size: .9375rem; max-width: 100%; }
.form-field--check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.form-field--check input { margin-top: 3px; flex: none; width: 20px; height: 20px; accent-color: var(--blue); }
.form-field--check a { color: var(--blue); text-decoration: underline; }
.form-hint { font-size: .8125rem; color: var(--gray-600); }
.form-hint.is-over { color: var(--error); font-weight: 600; }

.form-error, .form-success, .form-notice {
  border-radius: var(--radius); padding: 28px; margin-bottom: 32px;
}
/* The panel can be wide; its prose should not be. */
.form-error p, .form-success p, .form-notice p { max-width: 36rem; }
.form-error   { background: #FDECEF; border: 1px solid var(--error); color: var(--error); }
.form-error ul { margin-top: 8px; padding-left: 20px; list-style: disc; }
.form-success { background: var(--cream); border: 1px solid var(--blue); }
.form-success h2, .form-notice h2 { color: var(--blue); margin-bottom: 10px; font-size: clamp(1.15rem, 1.4vw + .6rem, 1.5rem); }
.form-notice  { background: var(--cream); border: 1px solid var(--blue); }
/* :not(.btn) — these panels hold buttons too. Unscoped, `.form-notice a`
   (0,1,1) beats `.btn--primary` (0,1,0) and painted the button's label blue
   on its own blue fill: an invisible "Hear when nominations open".
   tests/test-palette.php guards this. */
.form-notice a:not(.btn), .form-success a:not(.btn) { color: var(--blue); text-decoration: underline; }
.form-notice__action { margin-top: 20px; }
.ticks { display: grid; gap: 10px; margin: 0 0 20px; }
.ticks li { position: relative; padding-left: 28px; line-height: 1.5; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .35em; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.contact-direct { margin-top: 32px; color: var(--gray-600); }
.contact-direct a { color: var(--blue); text-decoration: underline; overflow-wrap: anywhere; }

/* Ghost button needs a dark outline when it sits on a light ground. */
.btn--ghost-dark { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn--ghost-dark:hover { background: var(--blue); color: var(--white); }

/* The honeypot must be invisible but reachable by bots, and skipped by
   screen readers and keyboards. type="hidden" would be read and skipped
   by the bots we are trying to catch. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 700px) {
  .hero__actions .btn, .cta-band .btn { width: 100%; }
  .nomination-form fieldset { padding: 24px 16px; }
  .section-head__link { width: 100%; }
}

/* ============================================
   Gated sponsorship deck (/sponsorship-2027)
   Yellow appears only on the dark grounds here —
   --blue-deep, --blue-mid and the photo overlays.
   ============================================ */

/* --- Gate --- */
.sp-gate { background: var(--blue-deep); color: var(--white); min-height: 78vh; display: grid; align-items: center; padding: 64px 0; }
.sp-gate__logo { width: min(320px, 70%); height: auto; margin-bottom: 32px; }
/* "Opportunities" is one 13-letter word in an ultra-expanded face: at the
   global h1 floor it is wider than a 360px phone, and the grid let the
   column grow to fit it, scrolling the whole page sideways. */
.sp-gate > .container { width: 100%; min-width: 0; }
.sp-gate h1 { font-size: clamp(1.4rem, 6.4vw, 1.8rem); }
.sp-gate .lede { color: var(--gray-300); margin-bottom: 32px; }
.sp-gate__form { display: grid; gap: 18px; max-width: 420px; margin-top: 8px; }
.sp-gate__form .form-field label { color: var(--white); }
.sp-gate__form .form-field input,
.sp-gate__form input {
  font-family: inherit; font-size: 1rem; padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06); color: var(--white); width: 100%;
}
.sp-gate__form .form-field input:focus,
.sp-gate__form input:focus { background: rgba(255,255,255,.12); }
.sp-gate__form button { margin-top: 8px; justify-self: start; }
.sp-gate__err { background: rgba(255,255,255,.1); border-left: 3px solid var(--yellow); padding: 12px 16px; margin-bottom: 24px; border-radius: var(--radius-sm); }
.sp-gate__foot { margin-top: 28px; font-size: .875rem; color: var(--gray-300); }
.sp-gate__foot a { color: var(--yellow); text-decoration: underline; }

/* --- Deck hero --- */
.sp-hero {
  position: relative; color: var(--white); padding: 96px 0 88px;
  background: var(--blue-deep) var(--sp-hero-img) center/cover no-repeat;
}
.sp-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,11,51,.78), rgba(8,11,51,.94)); }
.sp-hero .container { position: relative; }
.sp-hero .lede { color: var(--gray-300); }
.sp-hero__for { margin-top: 24px; font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }

/* --- Photography attribution --- */
.sp-photonote { background: var(--blue-mid); color: var(--white); padding: 16px 0; }
.sp-photonote p { font-size: .8125rem; color: var(--gray-300); max-width: 88ch; }

/* --- Generic section rhythm --- */
.sec { padding: 72px 0; }
.sec--tint { background: var(--gray-100); }
.sec--dark { background: var(--blue-deep); color: var(--white); }
.sec--dark .lede, .sec--dark .sp-note { color: var(--gray-300); }
.sec--dark .form-field label { color: var(--white); }
.sec--dark .sp-note a { color: var(--yellow); }
/* Scoped through .form-field so these reach (0,2,1) and actually beat
   `.form-field input[type="text"]`. Written as `.sec--dark input` alone they
   were (0,1,1): the select and textarea won on source order but the text and
   email inputs lost, so the same form rendered two white boxes and two dark
   ones — with a yellow caret on the white ones, invisible while typing. */
.sec--dark .form-field input,
.sec--dark .form-field select,
.sec--dark .form-field textarea {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); color: var(--white);
}

.sp-two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; margin-top: 28px; }
.sp-figure { margin: 0; }
.sp-figure img { border-radius: var(--radius); width: 100%; }
.sp-figure figcaption { margin-top: 10px; font-size: .75rem; color: var(--gray-600); font-family: var(--font-mono); letter-spacing: .04em; }

/* --- Tier cards --- */
.sp-tiers { display: grid; gap: 24px; margin-top: 32px; }
.sp-tier { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 32px; }
.sp-tier--headline { border-color: var(--blue); border-width: 2px; background: var(--cream); }
.sp-tier__head { border-bottom: 1px solid var(--gray-200); padding-bottom: 20px; margin-bottom: 20px; }
.sp-tier__head h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); color: var(--blue); margin-bottom: 8px; }
.sp-tier__price { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1; color: var(--blue-deep); }
.sp-tier__value { margin-top: 10px; color: var(--gray-600); }
.sp-tier__avail { margin-top: 10px; display: inline-block; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; background: var(--blue); color: var(--white); padding: 4px 12px; border-radius: 50px; }
.sp-tier__summary { margin-bottom: 18px; }
.sp-tier__naming { font-family: var(--font-display); text-transform: uppercase; background: var(--blue-deep); color: var(--white); padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .9375rem; line-height: 1.4; }
.sp-tier__inherits { font-weight: 600; color: var(--blue); margin-bottom: 10px; }
.sp-tier__list { display: grid; gap: 8px; margin-bottom: 20px; }
.sp-tier__list li { padding-left: 22px; position: relative; font-size: .9375rem; }
/* Blue, not yellow: these bullets sit on white and cream, where --yellow is
   1.51:1 and effectively invisible. Yellow bullets appear only inside
   .sp-feature, which is on --blue-deep. */
.sp-tier__list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.sp-tier__addon { background: var(--gray-100); border-radius: var(--radius-sm); padding: 14px 18px; font-size: .9375rem; margin-bottom: 18px; }
.sp-tier__positioning { font-style: italic; color: var(--gray-600); border-left: 3px solid var(--yellow); padding-left: 16px; margin-bottom: 24px; }

.sp-feature { background: var(--blue-deep); color: var(--white); border-radius: var(--radius-sm); padding: 24px; margin-bottom: 18px; }
.sp-feature h4 { color: var(--yellow); margin-bottom: 10px; }          /* 12.56:1 on --blue-deep */
.sp-feature p { font-size: .9375rem; color: var(--gray-300); }
.sp-feature ul { display: grid; gap: 6px; margin-top: 14px; }
.sp-feature li { padding-left: 18px; position: relative; font-size: .875rem; }
.sp-feature li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }

.sp-blocks { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 20px; }
.sp-block { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 20px; }
.sp-block h4 { color: var(--blue); margin-bottom: 8px; font-size: .9375rem; }
.sp-block p { font-size: .875rem; color: var(--gray-600); }

/* --- Full-bleed photo band --- */
.sp-band { position: relative; color: var(--white); padding: 96px 0; background: var(--blue-deep) var(--sp-band-img) center/cover no-repeat; }
.sp-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,11,51,.82), rgba(8,11,51,.92)); }
.sp-band .container { position: relative; }
.sp-band .lede { color: var(--gray-300); }
.sp-band__credit { margin-top: 24px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; color: var(--gray-300); }

/* --- Comparison table --- */
.sp-tablewrap { overflow-x: auto; margin-top: 28px; }
.sp-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; font-size: .9375rem; min-width: 640px; }
.sp-table th, .sp-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--gray-200); }
.sp-table th { background: var(--blue-deep); color: var(--white); font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.sp-table tr:last-child td { border-bottom: 0; }
.sp-table .num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--blue); }
.sp-table tr.is-headline { background: var(--cream); }
.sp-table a { color: var(--blue); text-decoration: underline; }
.sp-note { margin-top: 16px; font-size: .8125rem; color: var(--gray-600); }

/* --- Ladder --- */
.sp-ladder { display: grid; gap: 2px; margin-top: 28px; counter-reset: rung; }
.sp-ladder li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: baseline; background: var(--white); padding: 20px 24px; border: 1px solid var(--gray-200); }
.sp-ladder li:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.sp-ladder li:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
.sp-ladder__price { font-family: var(--font-display); font-size: 1.25rem; color: var(--blue); }
.sp-ladder__line { color: var(--gray-800); }

.sp-gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 28px 0 36px; }

@media (max-width: 860px) {
  .sp-two { grid-template-columns: 1fr; }
  .sp-ladder li { grid-template-columns: 1fr; gap: 6px; }
  .sp-hero { padding: 64px 0 56px; }
  .sp-band { padding: 64px 0; }
  .sp-tier { padding: 24px; }
  .sec { padding: 48px 0; }
}

/* ============================================
   Form field repairs
   ============================================ */

/* --- Browser autofill -------------------------------------------------
   THE BUG THIS FIXES: click a saved field and it turns a solid block with
   the text invisible.

   When a browser autofills, it paints its own background that the
   `background` property cannot override, while the author's `color`
   survives. On the dark forms that left white text on a pale box.

   An inset box-shadow with a large spread is the only way to repaint that
   background, and -webkit-text-fill-color the only way to recolour the text.

   Three things this must get right, each of which broke it before:

   1. NO `transition` on `color`. The usual trick freezes the autofill fade
      with an absurd transition delay, but applied to `color` it also means
      that when a field STOPS being autofilled its text colour animates back
      over ~7 days — so the text stays stuck at the wrong colour and is
      unreadable on the opposite ground. Background only.
   2. `:-webkit-autofill` and the standard `:autofill` must be SEPARATE
      rules. In one selector list, a browser that does not understand one of
      them discards the entire rule, so non-Chromium browsers got nothing.
   3. !important, because the colours being fought are browser-forced. */

input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: var(--gray-800) !important;
  -webkit-box-shadow: 0 0 0 100px var(--white) inset !important;
          box-shadow: 0 0 0 100px var(--white) inset !important;
  caret-color: var(--gray-800);
  transition: background-color 600000s 0s;
}
input:autofill, textarea:autofill, select:autofill {
  -webkit-text-fill-color: var(--gray-800) !important;
  box-shadow: 0 0 0 100px var(--white) inset !important;
  caret-color: var(--gray-800);
  transition: background-color 600000s 0s;
}

/* Dark grounds. #171A3F is the opaque equivalent of rgba(255,255,255,.06)
   over --blue-deep, computed rather than eyeballed. */
.sp-gate__form .form-field input:-webkit-autofill,
.sp-gate__form input:-webkit-autofill,
.sec--dark .form-field input:-webkit-autofill,
.sec--dark .form-field textarea:-webkit-autofill,
.sec--dark .form-field select:-webkit-autofill {
  -webkit-text-fill-color: var(--white) !important;
  -webkit-box-shadow: 0 0 0 100px #171A3F inset !important;
          box-shadow: 0 0 0 100px #171A3F inset !important;
  caret-color: var(--yellow);
}
.sp-gate__form .form-field input:autofill,
.sp-gate__form input:autofill,
.sec--dark .form-field input:autofill,
.sec--dark .form-field textarea:autofill,
.sec--dark .form-field select:autofill {
  -webkit-text-fill-color: var(--white) !important;
  box-shadow: 0 0 0 100px #171A3F inset !important;
  caret-color: var(--yellow);
}

/* Belt and braces: whatever the autofill state, text on a dark field is
   white and text on a light field is dark. -webkit-text-fill-color wins
   over `color` wherever it is set, so it is pinned here too rather than
   left to whatever an autofill rule last applied. */
.form-field input, .form-field select, .form-field textarea { -webkit-text-fill-color: var(--gray-800); }
.sp-gate__form .form-field input,
.sec--dark .form-field input,
.sec--dark .form-field select,
.sec--dark .form-field textarea { -webkit-text-fill-color: var(--white); }

/* --- Caret and selection, so typing is always visible --- */
.form-field input, .form-field select, .form-field textarea { caret-color: var(--blue); }
.sec--dark .form-field input,
.sec--dark .form-field select,
.sec--dark .form-field textarea,
.sp-gate__form .form-field input { caret-color: var(--yellow); }

/* --- Placeholders --------------------------------------------------
   Left to the browser these land near #757575 on white (4.6:1, adequate)
   but become near-invisible on the dark grounds. Set explicitly on both. */
.form-field ::placeholder { color: var(--gray-600); opacity: 1; }
.sp-gate__form .form-field ::placeholder,
.sp-gate__form ::placeholder,
.sec--dark .form-field ::placeholder { color: rgba(255,255,255,.62); opacity: 1; }

/* --- Focus state on the fields themselves ---
   A ring alone is easy to miss; the field should also change. */
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--blue);
  background: var(--white);
}
.sp-gate__form .form-field input:focus,
.sp-gate__form input:focus,
.sec--dark .form-field input:focus,
.sec--dark .form-field select:focus,
.sec--dark .form-field textarea:focus {
  border-color: var(--yellow);
  background: rgba(255,255,255,.12);
}

/* --- Select dropdowns on dark grounds ---
   The popup list inherits the control's colours in several browsers, which
   on a dark control renders dark-on-dark. Pin both. */
.sec--dark option, .sp-gate__form option { background: var(--white); color: var(--gray-800); }
/* The dark select's own closed-state text */
.sec--dark .form-field select { color: var(--white); }

/* --- Disabled and invalid --- */
.form-field input:disabled, .form-field select:disabled, .form-field textarea:disabled {
  background: var(--gray-100); color: var(--gray-600); cursor: not-allowed;
}
.form-field input[aria-invalid="true"], .form-field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

/* --- Touch targets ---------------------------------------------------
   The WCAG 2.2 target-size minimum is 24px and the practical comfortable
   minimum is 44px. Header, menu and footer targets are sized where they are
   defined above; this note stays so nobody shrinks them back. */

/* --- Button press feedback --- */
.btn:active { transform: translateY(1px); }
.btn--primary:active { background: var(--blue-deep); }

/* --- iOS zoom-on-focus ---------------------------------------------
   Safari zooms the viewport when a focused control's text is under 16px.
   Every control here is already 1rem; the admin is pinned separately. */
@media (max-width: 700px) {
  .form-field input, .form-field select, .form-field textarea,
  .sp-gate__form input { font-size: 16px; }
}

/* Gallery photographs are cropped to a common shape. One of the set is
   portrait 1560x2768; left at its natural ratio it towers over its
   neighbours and wrecks the grid. */
.sp-gallery img { aspect-ratio: 3 / 2; object-fit: cover; }
.sp-two .sp-figure img { aspect-ratio: 16 / 9; object-fit: cover; }

/* ============================================
   Print
   ============================================
   A sponsorship proposal gets printed and forwarded inside a prospect's
   business — that is how the decision actually gets made. Unstyled, the
   dark grounds either swallow a cartridge or get dropped by "background
   graphics off", taking the white text with them and leaving blank pages.
   ============================================ */
@media print {
  @page { margin: 16mm; }

  html { scroll-padding-top: 0; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.45; }

  /* Chrome and screen furniture have no business on paper. */
  .site-header, .site-footer, .consent, .nav-toggle, .skip-link, .jump, .court,
  .sp-gate, .cta-band, form, .stack-form, .nomination-form { display: none !important; }

  /* Invert every dark ground rather than trusting background printing. */
  .sp-hero, .sp-band, .sp-photonote, .sec--dark, .page-head, .hero, .facts, .steps,
  .sp-feature, .sp-tier__naming {
    background: none !important; color: #000 !important;
    padding: 0 !important; min-height: 0 !important;
  }
  .sp-hero::before, .sp-band::before { display: none !important; }
  .sp-hero .lede, .sp-band .lede, .sec--dark .lede, .page-head .lede,
  .sp-photonote p, .sp-feature p, .site-footer__brand p { color: #000 !important; }
  .section-label, .section-label--light, .page-head .section-label,
  .sp-hero__for, .sp-band__credit, .sp-feature h4 { color: #000 !important; }

  .container { max-width: none; padding: 0; }
  .sec, .sp-hero, .sp-band, .category-group { padding: 12pt 0 !important; }

  /* Keep a package on one page wherever it will fit. */
  .sp-tier, .sp-block, .sp-feature, .category-card, figure {
    break-inside: avoid; page-break-inside: avoid;
    border: 1pt solid #ccc !important; background: none !important;
  }
  .sp-tier { padding: 10pt !important; margin-bottom: 10pt; }
  h1, h2, h3, h4 { break-after: avoid; page-break-after: avoid; color: #000 !important; }
  .sp-tier__price { color: #000 !important; }
  .sp-tier__avail { background: none !important; color: #000 !important; border: 1pt solid #000; }
  .sp-tier__list li::before { background: #000 !important; }

  /* Photographs are the expensive part of a colour print and make no
     argument on paper that the words do not. */
  .sp-gallery, .sp-figure, .sp-two .sp-figure { display: none !important; }
  .sp-two { display: block !important; }

  .sp-table { min-width: 0; font-size: 9pt; }
  .sp-table th { background: none !important; color: #000 !important; border-bottom: 1pt solid #000; }

  /* A printed page loses every href, so put the important ones back. */
  .prose a[href^="http"]::after,
  .prose a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}


/* ============================================
   UI text leading
   ============================================
   1.65 is set on <body> for long-form reading. Card copy, counts, captions,
   hints and list items are UI text, not prose: at that leading they float
   apart and the component stops reading as one object. */
.category-card, .sp-tier, .stat, .sp-block,
.stat__l, .form-hint, .sp-figure figcaption,
.sp-tier__value, .sp-tier__avail, .sp-block p, .sp-feature li,
.sp-tier__list li, .site-footer__legal, .sp-note, .sp-band__credit,
.sp-photonote p, .consent p, .contact-direct, .admin-muted {
  line-height: 1.5;
}
.sp-tier__summary, .sp-tier__positioning, .sp-feature p { line-height: 1.55; }

/* Headings inside cards sit closer to the copy they introduce. */
.category-card h3, .venue__card h3, .sp-block h4, .sp-feature h4 { margin-bottom: 8px; }

/* Long category names in a narrow card: allow a break rather than an
   overflow, and balance the two lines instead of leaving one orphan word. */
.category-card h3, .group-index h3 { overflow-wrap: break-word; hyphens: none; }

/* The table upgrade sits under the ticket allocation it modifies, rather
   than as a separate column nothing else would fill. */
.sp-table__note { display: block; margin-top: 4px; font-size: .8125rem; color: var(--gray-600); }
.sp-tier__hosp { margin-top: 8px; font-size: .875rem; color: var(--blue); line-height: 1.5; }

/* The smallest phones still in use (320px). The ultra-expanded face runs
   roughly one em per capital, so single long words — "Sponsorship",
   "850 m²" — need a smaller step than the fluid scale reaches. */
@media (max-width: 359px) {
  h1 { font-size: 1.5rem; }
  .facts__item dd { font-size: 1.3rem; }
}
