/* ==========================================================================
   helpmyclub — application layer

   SYSTEM: "Lifted" (2026-11-05). Restyled to the reference: a lavender field
   with two soft light sources, one very heavy grotesque, floating figure
   cards, and a single white action panel carrying the money.

   WHAT THE COMPONENTS ARE FOR (unchanged from the previous system)
   The previous build learned three things the hard way and they still hold:

     1. THE PAGE HAS A JOB, NOT A DESCRIPTION. A headline, one sentence, and
        then the thing you came to do — with the money split sitting INSIDE
        the panel that takes the payment, so the split and the charge are the
        same object.
     2. ONE CONTAINER WIDTH. The `.wrap` edge is the same on every page; prose
        is constrained by `.measure` inside it, so the line length changes
        without the left margin moving.
     3. CONTROLS ARE STYLED BY EXCLUSION. A password field once rendered as a
        raw browser control because the selector listed input types and
        forgot one. The rule now excludes the types that must not be styled.

   Built on tokens.css. No raw hex below except where a token does not exist;
   every value composes. No inline styles: the CSP is style-src 'self'.
   ========================================================================== */

/* --- fonts ---------------------------------------------------------------
   Self-hosted: no third-party request on first paint, and the CSP needs no
   font-src beyond 'self'. Without these declarations the family names in the
   tokens resolve to nothing and every page falls back to system-ui — which
   looks finished enough that nobody notices it is not the chosen typeface.
   ------------------------------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
/* Body face: Instrument Sans, not Inter.
   Inter is the single most over-used UI typeface on the web and reads as the
   default rather than a decision. Instrument Sans is a variable grotesque with
   more character in the lowercase and half the file size (30 KB against 48 KB),
   so the swap is better on both counts. */
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* METRIC-MATCHED FALLBACKS. Every first visit renders text in the fallback for
   a frame or three, and if the fallback's metrics differ the line box reflows
   when the webfont lands — that was the whole of the 0.051 CLS measured on
   mobile. `size-adjust` and the ascent/descent overrides make Arial occupy the
   same space as the real face, so the swap moves nothing.
   The percentages are MEASURED, not guessed: rendered width ratios of the
   webfont against Arial at 100px were 1.0178 (body) and 1.0354 (display), and
   the ascent/descent are the font's own hhea values divided by that ratio. */
@font-face {
  font-family: "Instrument Sans Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 101.78%;
  ascent-override: 95.30%;
  descent-override: 24.56%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 103.54%;
  ascent-override: 84.80%;
  descent-override: 20.28%;
  line-gap-override: 0%;
}
/* Fraunces is no longer loaded: it was 71 KB for a single pull quote, and the
   quote is now set in the display face. The --font-serif token still resolves
   (to Georgia) for anything that asks for it, at no download cost. */

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  /* THE FIELD. Two soft light sources over a lavender ground. Both are
     decorative and sit far below any text contrast requirement, and no text
     is ever set directly on the ground without a surface between it and the
     page — every card, panel and band is opaque. */
  background-color: var(--color-ground);
  background-image:
    radial-gradient(1200px 620px at 82% -8%, var(--wash-violet) 0%, rgb(233 217 255 / 0) 62%),
    radial-gradient(900px 520px at 6% 12%, var(--wash-amber) 0%, rgb(255 239 214 / 0) 58%),
    linear-gradient(180deg, var(--ground-top) 0%, var(--color-paper-50) 46%, var(--ground-bottom) 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
img, svg { max-width: 100%; display: block; }
/* The footer sits at the bottom of the window on a short page rather than
   floating mid-screen with bare ground beneath it — measured 2026-11-05 on
   /admin/login, where the page ended at 540px and the field carried on. The
   body is the column; `main` takes the slack. */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  text-wrap: balance;
}
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
a { color: var(--color-link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-strong); }
:focus-visible { outline: var(--focus-ring-width) solid var(--focus-color);
  outline-offset: var(--focus-ring-offset); border-radius: 4px; }
/* On a dark ground the violet ring is too weak to see — lime is the
   dark-surface ring, and this is the only place that rule needs stating. */
.on-dark :focus-visible, .hero :focus-visible, .band :focus-visible,
.auth__aside :focus-visible, .footer :focus-visible {
  outline-color: var(--focus-color-dark);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* --- layout ---------------------------------------------------------------
   ONE container width for the whole site (1240px). Everything that is not a
   full-bleed band sits inside `.wrap`, so nav, hero, sections and footer
   share one left and one right edge at every viewport.
   ------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--container-page); margin-inline: auto;
  padding-inline: var(--space-gutter); }
.measure    { max-width: 38rem; }    /* running prose */
.measure--wide { max-width: 52rem; } /* tables, two-column reading */

.stack > * + * { margin-top: var(--space-5); }
.row { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.row--between { justify-content: space-between; }
/* `minmax(0, 1fr)`, not the implicit `auto` track. An auto track is sized to
   its content's MIN-CONTENT width, so one wide child (a table with three
   columns of unwrappable dates) pushed the whole page 26px past a 375 viewport
   — measured 2026-11-05 on /f/<code>, where the document was 401px wide and the
   masthead's own button was cut off. A grid column must not be able to widen
   the page from the inside. */
.grid { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48em) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: var(--space-6); }
  .grid--aside { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; gap: var(--space-6); }
}
.section { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.section--tight { padding-block: clamp(1.75rem, 1rem + 3vw, 3rem); }

/* --- the page band --------------------------------------------------------
   Every page that is not the home page opens with the SAME band: an eyebrow,
   an h1 at one fixed size, an optional lede, and the page's one action on the
   right. Before this existed each page invented its own opening.
   ------------------------------------------------------------------------- */
.page-head {
  padding-block: clamp(2rem, 1.2rem + 2.6vw, 3.25rem) var(--space-6);
  border-bottom: 1px solid var(--color-line);
  background: var(--color-band);
}
.page-head__inner { display: grid; gap: var(--space-5); }
@media (min-width: 64em) {
  .page-head__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
.page-head h1 { font-size: var(--text-3xl); max-width: 20ch; }
.page-head .lede { margin-top: var(--space-4); max-width: 46ch; }
.page-head .eyebrow { margin-bottom: var(--space-2); }
.page-head--split .lede { max-width: 40ch; }

/* A section heading shares the page band's left edge and rhythm. */
.section__head { margin-bottom: var(--space-6); }
.section__head h2 { font-size: var(--text-2xl); max-width: 24ch; }
.section__head .lede { margin-top: var(--space-3); }

/* Numbered rows: an ordered process, not a card grid. */
.process { list-style: none; margin: 0; padding: 0; }
.process > li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: var(--space-4); padding-block: var(--space-5); border-top: 1px solid var(--color-line); }
.process > li:last-child { border-bottom: 1px solid var(--color-line); }
.process__n { font-family: var(--font-display); font-weight: var(--weight-heavy);
  font-size: var(--text-xl); line-height: 1; color: var(--color-accent); }
.process h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.process p { margin: 0; color: var(--color-text-muted); max-width: 52ch; }

/* A definition row: label on the left, value on the right, one rule each. */
.spec { margin: 0; }
.spec > div { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: var(--space-4); padding-block: var(--space-4); border-top: 1px solid var(--color-line); }
.spec > div:last-child { border-bottom: 1px solid var(--color-line); }
.spec dt { font-weight: var(--weight-semibold); }
.spec dd { margin: 0; color: var(--color-text-muted); }
@media (max-width: 39.99em) { .spec > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); } }
/* The media query above tests the VIEWPORT, so a `.spec` in a 22rem aside on
   a 1440px screen kept two columns and gave the description about five rems.
   A list that lives in a narrow column says so with this modifier. */
.spec--stack > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }

.skip-link { position: absolute; left: -9999px; display: inline-flex; align-items: center;
  min-height: var(--target); padding: 0 var(--space-4); }
.skip-link:not(:focus) { padding: 0; }
.skip-link:focus { left: var(--space-4); top: var(--space-4); z-index: 100; background: var(--color-surface);
  min-height: var(--target); display: inline-flex; align-items: center;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); }

/* --- masthead -------------------------------------------------------------
   Translucent and part of the field rather than a white slab across it. The
   backdrop blur keeps the links legible when content scrolls under.
   ------------------------------------------------------------------------- */
.masthead { position: sticky; top: 0; z-index: 40;
  background: var(--color-header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgb(228 219 246 / 0.7); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); min-height: var(--masthead-h); }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--color-ink);
  text-decoration: none; font-family: var(--font-display); font-weight: var(--weight-heavy);
  letter-spacing: -0.045em; font-size: 1.32rem;
  min-height: var(--target); }   /* Fitts: the target is the box, not the glyphs */
/* The mark is the crest cut (assets/images/logo-mark.svg) — drawn geometry with
   the chevron genuinely knocked out, so it sits on the white masthead, the
   lavender ground and the ink footer with no plate behind it. */
.brand img { width: 26px; height: 26px; flex: none; }
.brand > span { transform: translateY(1px); }
.nav { display: flex; gap: 0.35rem; align-items: center; }
/* A NAV LABEL MUST NOT WRAP MID-WORD. At 768px — the tablet range the 40em
   rule did not cover — brand + four links + CTA all fitted on one row only by
   breaking every label in half ("How it / works", "For / clubs", "Sign / in",
   "Start a / fundraiser") and doubling the masthead's height. Measured
   2026-11-05 at 768x1024. Now: labels never break, and the masthead drops the
   secondary links below 64em, which is where the row genuinely stops fitting.
   The footer carries the same links, so nothing becomes unreachable. */
.nav a { white-space: nowrap; }
/* DIRECT CHILDREN only. The first version was `.nav a:not(.btn)`, which also
   matched the links INSIDE the menu and hid them — the disclosure opened to an
   empty 18px box. Measured 2026-11-05 at 768: four links, all display:none. */
@media (max-width: 63.99em) {
  .nav > a:not(.btn) { display: none; }
}

/* The small-screen menu. Hidden above 64em, where the full nav is shown; a
   <details> so it needs no script and no ARIA of its own. */
.nav-more { display: none; position: relative; }
@media (max-width: 63.99em) { .nav-more { display: block; } }
.nav-more__summary { list-style: none; cursor: pointer; display: inline-flex;
  align-items: center; min-height: var(--target); padding-inline: var(--space-3);
  border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 600;
  color: var(--color-text-muted); }
.nav-more__summary::-webkit-details-marker { display: none; }
.nav-more__summary::after { content: ""; width: 6px; height: 6px; margin-left: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); }
.nav-more[open] .nav-more__summary { color: var(--color-accent-700); background: var(--color-surface); }
.nav-more__summary:hover { color: var(--color-accent-700); }
.nav-more__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50;
  margin: 0; padding: var(--space-2); list-style: none; min-width: 13rem;
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-raised); }
.nav-more__list a { display: flex; align-items: center; min-height: var(--target);
  padding-inline: var(--space-3); border-radius: var(--radius-sm);
  color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); }
.nav-more__list a:hover { background: var(--color-accent-50); color: var(--color-accent-700); }
@media (max-width: 39.99em) {
  .nav a.btn { min-height: var(--control-h); padding-inline: var(--space-4); font-size: var(--text-sm); }
  .brand { font-size: 1.08rem; }
  :root { --masthead-h: 60px; }
}
/* At 375 the row is: brand 128 + CTA 167 + menu 74 + gaps = 408 against a 375
   viewport. Measured after the menu was added — the menu itself created an
   overflow on every page, which is exactly why the overflow gate exists.
   Below 26em the menu loses its label and becomes the caret alone (it keeps a
   44px target and its aria-label, so it is still "More pages" to a screen
   reader), and the CTA loses its padding. Both are reductions to a control the
   user can still find and hit; neither hides a destination. */
@media (max-width: 25.99em) {
  .nav-more__summary { padding-inline: var(--space-2); font-size: 0; }
  .nav-more__summary::after { margin-left: 0; }
  .nav a.btn { padding-inline: var(--space-3); }
  .nav { gap: 0; }
  .brand { font-size: 1rem; }
  .btn__full { display: none; }
  .btn__short { display: inline; }
}
.btn__short { display: none; }
.nav a { color: var(--color-text-muted); text-decoration: none; font-weight: 500;
  font-size: var(--text-sm); display: inline-flex; align-items: center; min-height: var(--target);
  padding-inline: var(--space-3); border-radius: var(--radius-pill);
  transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease; }
.nav a:hover { color: var(--color-accent-600); background: rgb(255 255 255 / 0.7); text-decoration: none; }
/* The button in the nav must not inherit the nav's colour, padding or radius:
   `.nav a` and `.btn` have the same specificity, so the later rule wins per
   property and the label once rendered dark on the accent. */
.nav a.btn { color: var(--color-accent-contrast); text-decoration: none;
  font-size: var(--text-sm); font-weight: var(--weight-bold);
  /* 44px, not 42: measured in the 375px review at 42px tall, under the
     --target floor the rest of the site holds to. A 2px saving is not worth
     being the one control that misses the floor. */
  padding-inline: var(--space-5); min-height: var(--target); border-radius: var(--radius-pill);
  background-image: var(--gradient-action); box-shadow: 0 12px 24px -12px rgb(109 40 217 / 0.85); }
.nav a.btn:hover { color: var(--color-accent-contrast); background-image: var(--gradient-action);
  filter: brightness(1.06); }
.footer a { color: var(--color-footer-ink); text-decoration: none;
  display: inline-flex; align-items: center; min-height: var(--target); }
.footer a:hover { text-decoration: underline; }

/* --- type ----------------------------------------------------------------- */
.eyebrow { font-family: var(--font-body); font-weight: 700;
  font-size: var(--text-xs); letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--color-accent-600); margin: 0 0 var(--space-3); }
/* A printed section number, set in the display face and tabular. It is the
   page's own small signature: the same device appears in the money panel and
   on the process rows, so a reader learns one vocabulary rather than meeting a
   new decoration per section. */
.eyebrow__n { font-family: var(--font-display); font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
  color: var(--color-text-muted); margin-right: 0.7em; }
.eyebrow__n::after { content: "/"; margin-left: 0.7em; color: var(--color-line-strong);

  opacity: 0.55; }
.eyebrow--muted { color: var(--color-text-muted); }
.display { font-size: var(--text-display); line-height: var(--leading-display);
  letter-spacing: var(--tracking-display); font-weight: var(--weight-heavy); }
.h2 { font-size: var(--text-2xl); }
.h3 { font-size: var(--text-xl); }
/* Default is 38rem so running prose NEVER spans the full container. */
.lede { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 38rem; }
/* A lede inside a narrow panel or card steps down to body size: the large
   lede size is for a page opening, not for a 26rem column. */
.lede--tight { font-size: var(--text-base); }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--text-sm); }
.label { font-family: var(--font-body); font-weight: 700; font-size: var(--text-xs);
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-muted); }
/* A pull quote — one line of the club's own voice. The one place the serif
   is still used: a quotation is an editorial object, not a heading. */
.quote { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-snug);
  border-left: 3px solid var(--color-accent); padding-left: var(--space-5);
  max-width: 34rem; margin: 0; }
.quote cite { display: block; margin-top: var(--space-3); font-family: var(--font-body);
  font-style: normal; font-size: var(--text-sm); color: var(--color-text-muted); }

/* A headline whose second line carries the gradient. DISPLAY SIZES ONLY:
   the gradient's lightest stop is 3.51:1 on the ground, which passes AA for
   large bold text and fails it for anything smaller. */
/* TWO-TONE, NOT GRADIENT TEXT.
   The second line is one solid, deep accent rather than a gradient fill. The
   gradient version was the single most recognisable "AI landing page" tell on
   the page — and it also needed a @supports fallback and a forced-colours
   rule to stay legible, which is a lot of machinery for a decoration. A solid
   colour keeps the two-tone structure the reference is built on, has one
   computed contrast ratio (8.97:1), and cannot be confused with every other
   generated hero. */
.display--split span { display: block; }
.display--split .grad { color: var(--color-accent-700); }

/* --- hero -----------------------------------------------------------------
   The home page's opening: a light field (the body IS the field on this
   system), copy left at display size, and the action panel right. There is no
   photographic ground here any more — the photograph lives INSIDE the panel,
   where it identifies the club whose competition you are entering.
   ------------------------------------------------------------------------- */
.hero { position: relative; }
.hero__grid { position: relative; z-index: 2; display: grid; gap: var(--space-6);
  padding-block: clamp(1.5rem, 1rem + 3vw, 3.25rem) clamp(2rem, 1.5rem + 3vw, 3.5rem);
  align-items: start; }
@media (min-width: 64em) {
  .hero__grid { grid-template-columns: minmax(0, 1.06fr) minmax(400px, 0.84fr);
    gap: clamp(1.75rem, 4vw, 4.5rem); }
}
.hero h1 { font-size: var(--text-display); line-height: var(--leading-display);
  letter-spacing: var(--tracking-display); max-width: 16ch; }
/* On a wide screen the hero's display type was capped at 84px while the panel
   beside it grew, which left the headline small relative to it. The display
   step gets its own taller ceiling at xl. Declared AFTER the base rule: a
   media query adds no specificity, so order is what makes this win. */
@media (min-width: 80em) {
  .hero h1 { font-size: clamp(4.25rem, 4.4vw, 6rem); }
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(440px, 0.78fr); }
}
.hero .lede { max-width: 42ch; }
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-6); }
.hero .small { color: var(--color-text-muted); }
/* The media slot is kept for pages that put an image in the hero; on this
   system it is a card, not a full-bleed ground. */
.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card); background: var(--color-surface); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (min-width: 64em) { .hero__media img { aspect-ratio: 3 / 4; max-height: 34rem; } }
.hero__stats { padding-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }

/* The live chip: lime on a dark ground, and nowhere else. */
.chip-live { display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--color-live-chip-bg); color: var(--color-live-chip-ink);
  border-radius: var(--radius-pill); padding: 0.3rem var(--space-3);
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-xs);
  letter-spacing: 0.08em; text-transform: uppercase; }
.chip-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; }

/* An opening pill: the competition's live state, at a glance. */
.pill { display: inline-flex; align-items: center; gap: var(--space-2);
  background: rgb(255 255 255 / 0.82); border: 1px solid rgb(255 255 255 / 0.9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 0.4rem 0.85rem 0.4rem 0.4rem; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 600; color: var(--color-accent-700);
  box-shadow: 0 8px 20px -14px rgb(76 29 149 / 0.6); }
.pill b { background-image: var(--gradient-action); color: var(--color-white);
  padding: 0.2rem 0.6rem; border-radius: var(--radius-pill);
  font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* --- figures --------------------------------------------------------------
   Real numbers as floating cards. This is the reference's central device and,
   on this product, an honest one: every value is derived from the database on
   the page that renders it (platform_stats(), the fundraiser row), never
   typed into copy. A landing page claiming "£100,000 raised" over a database
   holding £31 is a lie a visitor can check in one click.
   ------------------------------------------------------------------------- */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4); margin-top: var(--space-6); max-width: 34rem; }
.fig { background: rgb(255 255 255 / 0.94); border: 1px solid rgb(255 255 255 / 0.95);
  border-radius: var(--radius-card); padding: 1.05rem 1.05rem 0.95rem;
  box-shadow: var(--shadow-card); }
/* A hair of rotation so the cards read as placed rather than laid out on a
   grid — and it is a decorative transform, so reduced-motion users get the
   same content either way. */
/* The rotation is a two-column device: it makes cards read as PLACED rather
   than gridded. Stacked in one column it does nothing except make the left
   edges disagree, so it is scoped to where it is doing work. */
@media (min-width: 30em) {
  .fig:nth-child(1) { transform: rotate(-1.6deg); }
  .fig:nth-child(2) { transform: rotate(1.3deg) translateY(0.55rem); }
}
@media (prefers-reduced-motion: reduce) { .fig, .fig:nth-child(1),
  .fig:nth-child(2) { transform: none; } }
/* The full-width figure is a LEDGER LINE, not a third metric card.
   Three identical big-number cards is the hero-metric template; one of the
   three becomes a statement row with a dotted leader and its value at the
   right margin, which is the vocabulary the rest of the page (and the money
   panel) already speaks. Two cards and a ruling read as a decision; three
   cards read as a component. */
.fig--wide { grid-column: 1 / -1; display: flex; align-items: baseline; gap: var(--space-3);
  padding: 0.9rem 1.05rem; transform: none; }
.fig--wide > div:last-child { display: flex; align-items: baseline; gap: var(--space-3);
  flex: 1; }
.fig--wide .fig__v { order: 2; margin: 0 0 0 auto; white-space: nowrap; }
.fig--wide .fig__s { order: 1; margin: 0; }
.fig--wide .fig__leader { order: 1; flex: 1; border-bottom: 1px dotted #c9c2b6;
  transform: translateY(-3px); }
.fig__ico { width: 2.1rem; height: 2.1rem; border-radius: 0.7rem; display: grid;
  place-items: center; font-size: 0.9rem; font-weight: 800; flex: none; }
.i-violet { background-image: linear-gradient(135deg, var(--tint-violet-100), var(--tint-violet-200)); color: var(--icon-violet-ink); }
.i-amber  { background-image: linear-gradient(135deg, var(--tint-amber-100), var(--tint-amber-200)); color: var(--icon-amber-ink); }
.i-mint   { background-image: linear-gradient(135deg, var(--tint-mint-100), var(--tint-mint-200)); color: var(--icon-mint-ink); }
.fig__k { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; color: var(--color-text-muted); }
.fig__v { font-family: var(--font-display); font-weight: var(--weight-heavy);
  font-size: 1.9rem; line-height: 1; letter-spacing: -0.035em; margin-top: 0.55rem; }
.fig__s { font-size: 0.72rem; color: var(--color-text-muted); margin-top: 0.45rem;
  line-height: 1.45; }
.fig--wide .fig__v { font-size: 1.55rem; margin-top: 0.2rem; }
.fig--wide .fig__s { margin-top: 0.2rem; }

/* The older definition-list strip, kept for the inner pages that use it. */
.stats { display: grid; gap: var(--space-5); margin: 0; padding: 0; }
.stats > div { background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-card); padding: var(--space-4);
  box-shadow: var(--shadow-card); }
@media (min-width: 48em) { .stats { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--space-4); } }
.stats dt { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-muted);
  margin-bottom: var(--space-2); }
.stats dd { margin: 0; font-family: var(--font-display); font-weight: var(--weight-heavy);
  font-size: var(--text-money); line-height: var(--leading-none); letter-spacing: -0.03em;
  color: var(--color-ink); }
.stats dd .unit { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 600;
  color: var(--color-text-muted); letter-spacing: 0; }
/* On a dark field the same strip inverts and drops its card fill. */
.stats--dark > div { background: transparent; border-color: var(--color-line-navy);
  box-shadow: none; }
.stats--dark dt { color: var(--color-on-navy-muted); }
.stats--dark dd { color: var(--color-on-navy); }
.stats--dark dd .unit { color: var(--color-on-navy-muted); }

/* --- buttons -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--control-h); padding: 0 var(--space-5); border-radius: var(--radius-pill);
  border: 1px solid transparent; font-family: var(--font-body); font-weight: var(--weight-bold);
  font-size: var(--text-base); text-decoration: none; cursor: pointer;
  transition: background-color var(--motion-fast) ease, border-color var(--motion-fast) ease,
              filter var(--motion-fast) ease, transform var(--motion-fast) ease; }
.btn:active { transform: translateY(1px); }
/* ONE page-primary per page: the gradient, the large height, and a shadow
   that lifts it. Size AND colour, so it is never distinguished by colour
   alone (Von Restorff). */
.btn--primary { background-image: var(--gradient-action); color: var(--color-accent-contrast);
  min-height: var(--control-h-lg); padding-inline: var(--space-6);
  box-shadow: var(--shadow-action); }
.btn--primary:hover { color: var(--color-accent-contrast); filter: brightness(1.07); }
.btn--secondary { background: var(--color-surface); color: var(--color-ink);
  border-color: var(--color-line-strong); }
.btn--secondary:hover { background: var(--color-band); color: var(--color-ink); }
.btn--quiet { background: transparent; color: var(--color-text-muted); padding-inline: var(--space-3); }
.btn--quiet:hover { color: var(--color-accent-600); }
.btn--block { width: 100%; }
.btn[disabled] { background-image: none; background-color: var(--color-disabled-bg);
  color: var(--color-disabled-ink); cursor: not-allowed; border-color: transparent; box-shadow: none; }
.btn[disabled]:active { transform: none; }

/* --- cards ---------------------------------------------------------------- */
.card { background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-card); padding: var(--space-5); box-shadow: var(--shadow-card); }
.card--raised { box-shadow: var(--shadow-raised); border-color: transparent; }
.card__title { font-size: var(--text-lg); margin-bottom: var(--space-2); }
/* A card with a coloured spine — used where a block belongs to one thing
   (one competition on the dashboard) rather than being a generic panel. */
.card--spine { border-left: 3px solid var(--color-accent); }
@media (min-width: 64em) {
  .card--sticky { position: sticky; top: calc(var(--masthead-h) + var(--space-4)); }
}

/* --- money panel: always a white surface, ink numerals -------------------- */
.money { background: var(--color-money-panel); border: 1px solid var(--color-line);
  border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-card); }
.money__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
@media (min-width: 64em) {
  .money:not(.money--hero) .money__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.money__field { display: flex; flex-direction: column; gap: var(--space-1); }
.money__value { font-family: var(--font-display); font-weight: var(--weight-heavy);
  font-size: var(--text-money); line-height: var(--leading-none); letter-spacing: var(--tracking-display);
  color: var(--color-money-ink); font-variant-numeric: tabular-nums;
  /* A money value is never broken across lines: "£12 / 5.00" reads as £12. */
  white-space: nowrap; }
.money__value--club { color: var(--color-money-positive); }
.money__note { margin: var(--space-4) 0 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.money--hero { max-width: 30rem; }
.money--hero .money__value,
.money--compact .money__value { font-size: var(--text-2xl); }
.money__value--sm { font-size: var(--text-xl); }
.rule { border: 0; border-top: 1px solid var(--color-line); margin: var(--space-4) 0; }
.callout { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 48em) { .callout { grid-template-columns: minmax(0, 1fr) auto; } }
/* In the 24rem form column even two columns of £125.00 collide, so the compact
   panel is a label/value list — one row per figure, value right-aligned. */
.money--compact .money__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
.money--compact .money__field { flex-direction: row; align-items: baseline;
  justify-content: space-between; gap: var(--space-4);
  border-bottom: 1px solid var(--color-line); padding-bottom: var(--space-2); }
.money--compact .money__field:last-child { border-bottom: 0; padding-bottom: 0; }

/* --- the split table ------------------------------------------------------
   Where one entry fee goes, as an object inside the panel that charges it.
   The club's row is tinted because it is the number the page exists to show.
   ------------------------------------------------------------------------- */
.split { margin-top: var(--space-3); border: 1px solid var(--color-line);
  border-radius: var(--radius-md); overflow: hidden; background: rgb(248 245 255 / 0.7); }
.split__row { display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.55rem 0.9rem; font-size: var(--text-sm); color: var(--color-text-muted); }
.split__row + .split__row { border-top: 1px solid var(--split-rule); }
.split__row b { color: var(--color-ink); font-variant-numeric: tabular-nums;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; }
.split__row--club { background-image: linear-gradient(90deg, var(--split-club-from), var(--split-club-to)); }
.split__row--club span, .split__row--club b { color: var(--color-accent-700); font-weight: 700; }

/* The impact line: what this specific payment gives the club. */
.impact { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  margin-top: var(--space-3); padding: 0.7rem 0.9rem; border-radius: var(--radius-md);
  background-image: linear-gradient(135deg, var(--tint-amber-100), var(--tint-amber-200)); font-size: var(--text-sm);
  color: var(--color-caution-600); }
.impact b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800;
  letter-spacing: -0.03em; }

/* --- the action panel -----------------------------------------------------
   One white panel holding the photograph, the controls, the split and the
   single charge. The split sits HERE, not in a card beside the page, because
   the split and the payment must be the same object.
   ------------------------------------------------------------------------- */
.panel { background: var(--color-surface); border-radius: var(--radius-lg); padding: 0.875rem;
  box-shadow: var(--shadow-raised); border: 1px solid rgb(255 255 255 / 0.9); }
.panel__photo { position: relative; border-radius: var(--radius-card); overflow: hidden;
  height: 15.75rem; background: var(--color-paper-100); }
.panel__photo img { width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 34%; display: block; }
.panel__tag { position: absolute; left: 0.75rem; bottom: 0.75rem; display: flex;
  align-items: center; gap: 0.45rem; background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 0.45rem 0.75rem; border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 700; color: var(--color-accent-700);
  box-shadow: 0 8px 18px -12px rgb(76 29 149 / 0.7); }
.panel__tag i { width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-club-600); display: block; }
.panel__body { padding: 1.15rem 0.5rem 0.5rem; }
.panel__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.panel__title { font-family: var(--font-display); font-weight: var(--weight-heavy);
  font-size: 1.3rem; letter-spacing: -0.03em; margin: 0; }
.panel__fee { font-size: var(--text-xs); font-weight: 700; color: var(--color-text-muted); }
.panel__fee b { color: var(--color-ink); font-size: var(--text-base);
  font-family: var(--font-display); font-weight: 800; }
.panel__small { margin: 0.7rem 0.15rem 0; font-size: 0.7rem; line-height: 1.55;
  color: var(--color-text-muted); text-align: center; }
.panel__small a { text-decoration: underline; }
@media (min-width: 64em) { .panel--sticky { position: sticky; top: calc(var(--masthead-h) + var(--space-4)); } }

/* The segmented control: two mutually exclusive entry modes. */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; margin-top: var(--space-4);
  padding: 0.25rem; background: var(--color-paper-100); border-radius: var(--radius-pill); }
.seg label { display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.55rem 0.5rem; font-size: 0.78rem; font-weight: 600;
  color: var(--color-text-muted); border-radius: var(--radius-pill); cursor: pointer;
  min-height: 38px; text-align: center; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--color-surface); color: var(--color-accent-700);
  box-shadow: 0 4px 12px -6px rgb(76 29 149 / 0.4); }
.seg label:focus-within { outline: var(--focus-ring-width) solid var(--focus-color);
  outline-offset: 2px; }
.dot { width: 0.75rem; height: 0.75rem; border-radius: 50%;
  border: 1.5px solid var(--color-line-strong); display: inline-block; flex: none; }
.seg label:has(input:checked) .dot { border: 4px solid var(--color-accent-600); }

/* --- steps ---------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--space-5); }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { position: relative; padding-top: var(--space-6); }
.step::before { counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 2rem; height: 2rem; display: grid; place-items: center;
  border-radius: var(--radius-pill); background: var(--color-accent-50); color: var(--color-accent-700);
  font-family: var(--font-display); font-weight: var(--weight-heavy); font-size: var(--text-sm); }
.step h3 { font-size: var(--text-base); margin-bottom: var(--space-1); }
.step p { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0; }

/* --- notices -------------------------------------------------------------- */
.notice { border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm); border: 1px solid; border-left-width: 3px;
  margin-bottom: var(--space-4); }
.notice--ok { background: var(--color-club-50); border-color: var(--color-club-600); color: var(--color-ink); }
.notice--error { background: var(--color-danger-50); border-color: var(--color-danger-600); color: var(--color-ink); }
/* "Action needed, nothing is broken" — the email-confirmation banner. Amber, so
   it is neither the green of a success nor the red of a failure; an unverified
   address is a task, not an incident. */
.notice--due { background: var(--color-caution-50); border-color: var(--color-caution-600); color: var(--color-ink); }
/* Informational notices are BLUE, not accent-tinted.
   They once used an accent-50 tint beside the danger-50 tint — two tints of
   the same hue — so "this is the demo" and "your session expired" looked
   identical. Measured 2026-11-04 on the demo page, where the banner
   explaining the page read as a warning. */
.notice--info { background: var(--color-default-blue-50); border-color: var(--color-default-blue-600); color: var(--color-ink); }
.banner { background: var(--color-default-blue-50); border-block: 1px solid var(--color-default-blue-100);
  color: var(--color-ink); padding-block: var(--space-3); font-size: var(--text-sm); }
.banner .wrap { display: flex; gap: var(--space-3); align-items: baseline; flex-wrap: wrap; }
.banner strong { font-weight: 700; }

/* --- forms ----------------------------------------------------------------
   EVERY control type, in ONE rule, selected by EXCLUSION.
   The earlier build listed input[type=text|email|number|date] and NOT
   password. A password field therefore rendered as the browser default:
   Arial 13px in a 21px box with a 2px inset border, above a 44px Inter
   field. Selecting by exclusion means a control type added later inherits
   the design instead of escaping it.
   ------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.field > label { font-weight: var(--weight-semibold); font-size: var(--text-sm); color: var(--color-ink); }
.field .hint { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }
.field__error { color: var(--color-danger-600); font-size: var(--text-sm); }

/* `:where()` around the exclusion list keeps the SAME selectivity (those types
   are still excluded) while contributing ZERO to the selector's specificity.
   Without it the list weighs (0,9,1), which outranks `.field--error input`
   (0,1,1) — so the error border below never applied and an invalid field looked
   exactly like a valid one. Measured 2026-11-05: entry/club_share/email all had
   aria-invalid="true" and `.field--error` while their border stayed
   rgb(228,219,246) instead of the danger red. A base element rule should not
   outrank a state class. */
input:where(:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="range"]):not([type="color"]):not([type="file"])),
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: var(--control-h);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: var(--leading-snug);
  color: var(--color-ink);
  /* A FIELD IS A SURFACE, NOT A TINT. It used to be rgb(248 245 255 / 0.9) —
     0.15 apart from the lavender ground, so seven stacked fields read as one
     undifferentiated wall of text with no edges. White is the same surface the
     cards, the money panel and the radio options already use. */
  background-color: var(--color-surface);
  /* --color-line-strong, NOT --color-line.
     The hairline token is a 1.19:1 decorative divider: on the lavender ground a
     field bordered with it is invisible, which is exactly what "start looks
     weird, hard to see" described. WCAG 1.4.11 asks 3:1 for a control boundary,
     and this measures 3.59:1 on the ground and 3.87:1 on the field's own fill.
     A divider token and a control-boundary token are different jobs. */
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
/* ::placeholder had NO RULE ANYWHERE, so every field with placeholder text
   rendered the browser default #757575 — 4.28:1 against the field, under the
   4.5:1 WCAG 1.4.3 minimum for text, and a different grey from the hints
   beside it. Measured live on /start and /join, 2026-11-05. */
::placeholder { color: var(--color-text-muted); opacity: 1; }
textarea { min-height: 8rem; padding-top: var(--space-3); resize: vertical; }
select {
  padding-right: 2.6rem;
  font-weight: 600;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-accent-600) 50%),
                    linear-gradient(135deg, var(--color-accent-600) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) calc(50% + 1px), calc(100% - 0.95rem) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
/* The password field's own control. A masked field is the one input where the
   user cannot check their work; the reveal is a real button inside the field. */
.input-wrap { position: relative; display: block; }
.input-wrap input { padding-right: 3.5rem; }
.input-wrap__button {
  position: absolute; top: 50%; right: 0.3rem; transform: translateY(-50%);
  min-width: var(--target); min-height: var(--target);
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
  color: var(--color-text-muted); font-family: var(--font-body); font-size: var(--text-xs);
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
}
.input-wrap__button:hover { color: var(--color-accent-600); background: var(--color-paper-100); }

input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) {
  border-color: var(--color-line-strong);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--color-accent-600);
  outline: var(--focus-ring-width) solid var(--focus-color);
  outline-offset: 1px;
}
input:disabled, select:disabled, textarea:disabled {
  background-color: var(--color-disabled-bg); color: var(--color-disabled-ink); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--color-danger-600); }
/* Chrome's autofill paints its own pale-yellow field and ignores background.
   The inset shadow is the only override it honours. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-ink);
  box-shadow: 0 0 0 1000px var(--color-surface) inset;
  transition: background-color 9999s ease-in-out 0s;
}
fieldset { border: 0; padding: 0; margin: 0 0 var(--space-4); }
legend { font-weight: var(--weight-semibold); padding: 0; margin-bottom: var(--space-2); }
.radio-row { display: grid; gap: var(--space-2); }
.radio-option { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3);
  border: 1px solid var(--color-line-strong); border-radius: var(--radius-md);
  background: var(--color-surface); }
.radio-option input { margin-top: 0.25rem; width: 1.15rem; height: 1.15rem; accent-color: var(--color-accent-600); }
.radio-option strong { display: block; font-size: var(--text-sm); }
.radio-option span { display: block; font-size: var(--text-sm); color: var(--color-text-muted); }

/* --- the auth layout ------------------------------------------------------
   Sign in, register, forgotten password, reset and "join by code".
   The page is split — a dark panel carrying the one piece of proof that makes
   someone want the account, and a white panel carrying the form at
   --container-form. Below 56em the dark panel follows the form, because
   somebody who has just tapped "Sign in" wants the field, not a manifesto.
   ------------------------------------------------------------------------- */
/* The FORM comes first in the DOM, the panel is visually on the LEFT.
   Source order is what a screen-reader user and the Tab order follow, and a
   level-2 heading before the page's only level-1 is a heading-order defect no
   amount of visual placement fixes. Measured 2026-11-05 on all four auth pages:
   the aside rendered first in source and announced "Every competition you are
   in" before "Sign in." Reordering the DOM and using grid placement to restore
   the left column keeps both correct. */
.auth { display: grid; max-width: var(--container-page); margin-inline: auto; }
@media (min-width: 56em) {
  /* NOT a 50/50 split. The form column needs --container-form and its gutters;
     everything else belongs to the dark panel. An even split gave the form half
     720px to centre a 416px card in (a 152px margin either side, which reads as
     a card floating in nothing) while the aside got the same 720px for a
     headline, two figures and a footnote. Splitting by what each side actually
     holds is what makes /register stop looking like a different layout from
     every other auth page: the card fills its column on all of them. */
  .auth {
    grid-template-columns: minmax(0, 1fr) clamp(30rem, 38vw, 34rem);
    min-height: calc(100vh - var(--masthead-h));
  }
  .auth__main  { grid-column: 2; grid-row: 1; }
  .auth__aside { grid-column: 1; grid-row: 1; }
}
.auth__aside { position: relative; background: var(--color-ink-band); color: var(--color-on-navy);
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); display: flex; flex-direction: column;
  justify-content: center; gap: var(--space-6); overflow: hidden;
  background-image: radial-gradient(600px 300px at 100% 0%, var(--color-hero-wash) 0%, rgb(59 29 110 / 0) 70%); }
@media (max-width: 55.99em) {
  .auth__aside { padding-block: var(--space-6); }
  .auth__aside h2 { font-size: var(--text-xl); }
}
/* The dark panel is one lockup, not three items pinned to three edges.
   `justify-content: space-between` distributed any extra height into TWO voids
   — on /register (the tallest card, 862px) that was 290px above the figures and
   another 290px below the footnote, which is what "register looks weird
   compared to others" was pointing at: the same component, a quarter more
   empty. Centring the cluster leaves one gap split evenly top and bottom, and
   the wider measure lets the headline hold the column it is given. */
.auth__aside h2 { color: var(--color-on-navy); font-size: var(--text-2xl); max-width: 22ch; }
.auth__aside p { color: var(--color-on-navy-muted); max-width: 42ch; }
.auth__aside .label { color: var(--color-live-500); }
.auth__aside .stats { max-width: 32rem; }
.auth__main { display: flex; align-items: center; justify-content: center;
  padding: clamp(1.75rem, 1rem + 4vw, 4rem) var(--space-gutter); }
.auth__card { width: 100%; max-width: var(--container-form);
  background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow-raised); }
.auth__card h1 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
/* A page whose card is its only content — a confirmation result, a dead end —
   centres it and may be wider than a form column, because it carries prose
   rather than fields. A class, not a style attribute: `style-src 'self'` blocks
   the attribute outright. */
.auth__card--wide { max-width: 42rem; margin-inline: auto; }
.auth__card .lede { font-size: var(--text-base); margin-bottom: var(--space-6); }
.auth__foot { margin-top: var(--space-6); padding-top: var(--space-4);
  border-top: 1px solid var(--color-line); font-size: var(--text-sm); color: var(--color-text-muted); }

/* Steps on a dark panel: the counter chip inverts and the copy lightens. */
.steps--dark { gap: var(--space-4); }
.steps--dark .step { padding-top: var(--space-6); }
.steps--dark .step::before { background: transparent; color: var(--color-live-500);
  border: 1px solid var(--color-line-navy); }
.steps--dark .step h3 { color: var(--color-on-navy); }
.steps--dark .step p { color: var(--color-on-navy-muted); }

/* --- tables --------------------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th, .table td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--color-line); }
.table th { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--color-text-muted); font-weight: 700; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr.is-me { background: var(--color-accent-50); }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-display);
  font-weight: 800; letter-spacing: -0.01em; }
.table--rows tbody tr:hover { background: var(--color-paper-50); }

/* A SEVEN-COLUMN TABLE DOES NOT FIT A PHONE. Below 48em the same rows are
   rendered as cards — the table markup stays, the presentation stops
   pretending to be a table. */
@media (max-width: 47.99em) {
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack thead { display: none; }
  .table--stack tr { border: 1px solid var(--color-line); border-radius: var(--radius-card);
    padding: var(--space-4); margin-bottom: var(--space-3); background: var(--color-surface); }
  .table--stack td { border: 0; padding: 0; }
  .table--stack td + td { margin-top: var(--space-2); }
  .table--stack td[data-label]::before { content: attr(data-label) ": ";
    font-family: var(--font-body); font-size: var(--text-xs); text-transform: uppercase;
    letter-spacing: var(--tracking-label); color: var(--color-text-muted); }
  .table--stack td.num { text-align: left; }
  .table--stack .btn { width: 100%; margin-top: var(--space-3); }
}

/* --- badges --------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: 0.15rem var(--space-2);
  border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; }
.badge--alive { background: var(--state-alive-bg); color: var(--state-alive-ink); }
/* "Taking entries" — an OPEN, actionable state. It used the caution pair, so
   the one competition a visitor could join was the one drawn as a warning. */
.badge--open { background: var(--state-open-bg); color: var(--state-open-ink); }
.badge--out { background: var(--state-out-bg); color: var(--state-out-ink); }
.badge--due { background: var(--state-due-bg); color: var(--state-due-ink); }
.badge--live { background: var(--color-live-chip-bg); color: var(--color-live-chip-ink); }

/* --- empty state ---------------------------------------------------------- */
.empty { text-align: center; padding: var(--space-7) var(--space-4); }
.empty img { width: 160px; margin: 0 auto var(--space-4); }
.empty h3 { margin-bottom: var(--space-2); }

/* --- the closing band -----------------------------------------------------
   Dark, full-bleed, one statement and one action. It ends a page the way the
   hero opens it, so a long page has an envelope instead of trailing off.
   ------------------------------------------------------------------------- */
.band { background: var(--color-ink-band); color: var(--color-on-navy);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); margin-top: var(--space-8);
  background-image: radial-gradient(700px 340px at 100% 0%, var(--color-hero-wash) 0%, rgb(59 29 110 / 0) 72%); }
.band h2 { color: var(--color-on-navy); font-size: var(--text-2xl); max-width: 22ch; }
.band p { color: var(--color-on-navy-muted); max-width: 40ch; }
.band__inner { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 48em) { .band__inner { grid-template-columns: minmax(0, 1fr) auto; } }
.band .btn--secondary { background: transparent; color: var(--color-on-navy);
  border-color: var(--color-line-navy); }
.band .btn--secondary:hover { background: rgb(255 255 255 / 0.1); color: var(--color-on-navy); }

/* --- footer --------------------------------------------------------------- */
.footer { background: var(--color-footer-bg); color: var(--color-footer-muted);
  padding-block: var(--space-7) var(--space-6); font-size: var(--text-sm); }
.footer__grid { display: grid; gap: var(--space-5); }
@media (min-width: 48em) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
/* The footer column labels are <h2>, not <h4>: the page's only h1 is the page
   title, and jumping from h1 straight to h4 skips two levels. The element is a
   heading for a screen-reader user navigating by heading; the SIZE is a visual
   decision, so it is set here rather than by choosing a smaller tag. */
.footer h2, .footer h4 { color: var(--color-footer-ink); font-size: var(--text-sm);
  margin: 0 0 var(--space-2); font-weight: var(--weight-heavy);
  font-family: var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
/* A short word ('Terms') is narrower than 44px on its own. min-width makes
   the target 44x44 without stretching the text or the layout. */
.footer a, .nav a { min-width: var(--target); }
.footer__legal { margin-top: var(--space-6); padding-top: var(--space-5);
  border-top: 1px solid var(--color-line-navy); color: var(--color-footer-muted); }
.footer__brand { font-family: var(--font-display); font-weight: var(--weight-heavy);
  font-size: 1.25rem; color: var(--color-footer-ink); letter-spacing: -0.04em; }

/* --- utilities ------------------------------------------------------------ */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* The full spacing scale, both directions. A utility that does not exist is
   worse than no utility: it reads as applied. */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: var(--space-1); } .mb-1 { margin-bottom: var(--space-1); }
.mt-2 { margin-top: var(--space-2); } .mb-2 { margin-bottom: var(--space-2); }
.mt-3 { margin-top: var(--space-3); } .mb-3 { margin-bottom: var(--space-3); }
.mt-4 { margin-top: var(--space-4); } .mb-4 { margin-bottom: var(--space-4); }
.mt-5 { margin-top: var(--space-5); } .mb-5 { margin-bottom: var(--space-5); }
.mt-6 { margin-top: var(--space-6); } .mb-6 { margin-bottom: var(--space-6); }
.text-center { text-align: center; }
.code { font-family: var(--font-mono); background: var(--color-accent-50);
  padding: 0.1rem 0.4rem; border-radius: var(--radius-sm); letter-spacing: 0.06em; }
