/* ==========================================================================
   TKDR – design tokens and component library
   --------------------------------------------------------------------------
   Design "ui-ux-pro-max" (Benjamin 2026-11-17, design/ui-ux-pro-max/canvas/*.dc.html):
   navy #1E3A72 as base, accent "volt" #C8F03C, red only for live / hong (and errors),
   blue only for chung, amber for urgency, medal colours; Barlow Condensed (headings) +
   Red Hat Text (text); the start-place grid of the logo as motif; light and dark theme.
   Documentation for the page agents: docs/DESIGN-SYSTEM.md. Live catalogue: /dev/components.

   SHARED FILE. Change only through the coordination. Prefer the components below.
   No inline styles anywhere (CSP style-src 'self'). Use classes.

   Sections
    1  Fonts                       10  Chips, badges, tags, dots, live
    2  Tokens (light, dark, alias) 11  Cards, sections, lists
    3  Base + utilities            12  Tables
    4  Layout                      13  Forms
    5  Site header + theme toggle  14  Stats, progress, notices, flash
    6  Sidebar navigation          15  Event components
    7  Footer                      16  Pagination, empty state, misc
    8  Typography + buttons        17  Brand motifs (slot grid, hero band, medals)
    9  Pills / filters             18  Effects (all off with prefers-reduced-motion)
   ========================================================================== */

/* 1  Fonts – self-hosted (OFL, static/fonts/LICENSE.txt), no request to Google at runtime.
      Anybody stays in static/fonts/ only for brand/build_logo.py (the logo is an SVG with
      paths and needs no web font). ------------------------------------------------------ */
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlowcondensed-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlowcondensed-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlowcondensed-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlowcondensed-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/barlowcondensed-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/barlowcondensed-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Red Hat Text"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/redhattext-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Red Hat Text"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/redhattext-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2  Tokens -------------------------------------------------------------------
   Light theme on :root. Dark theme on [data-theme="dark"] (chosen with the theme button,
   static/js/theme.mjs) and, without a choice, under prefers-color-scheme: dark. The two
   dark blocks below must stay identical.

   Contrast (WCAG 2.x, computed 2026-11-17; text needs >= 4.5:1, borders/focus >= 3:1):
     light  ink #121A2E on bg 15.9 / surface 17.3 / surface-2 14.8
            ink-soft #2C3650 on surface 12.0      ink-2 #4A5570 on surface 7.4 / bg 6.8 /
            surface-2 6.3 / brand-soft 6.1 / tint 6.9
            brand-ink #1E3A72 on surface 11.0 / brand-soft 9.1 / tint 10.3
            brand-ink-strong #12244A on brand-soft 12.5
            white on navy 11.0 · on-hero-2 #C9D5EE on hero 7.5 · volt on hero 8.4 ·
            on-volt #121A2E on volt 13.2 · volt-ink #3D5700 on surface 8.2
            danger/hong #C42B22 on surface 5.7 / bg 5.2 / soft 4.8 · white on #C42B22 5.7
            chung #1660D0 on surface 5.8 / chung-soft 4.9 · white on chung-fill 5.8
            ok #0F6B2E on surface 6.6 / soft 5.8 / bg 6.1 · white on ok-fill 6.6
            warn #7A4A00 on surface 7.5 / soft 6.6 / bg 6.9 · on-warn-fill on warn-fill 11.4
            on-medal #1E2633 on gold 7.8 / silver 8.5 / bronze 5.4
            input-line #7A8499 on surface 3.8 (border) · focus #1E3A72 on bg 10.1
     dark   ink #EAF0FA on bg 16.6 / surface 15.2 / surface-2 13.7
            ink-soft #CBD4E5 on surface 11.6      ink-2 #A3AFC6 on surface 7.9 / bg 8.6 /
            surface-2 7.1 / brand-soft 6.4 / tint 7.3 / warn-soft 7.0
            brand-ink #9DB8F2 on surface 8.7 / brand-soft 7.1 / bg 9.5 / tint 8.2
            brand-ink-strong #C3D3F7 on brand-soft 9.4 · white on brand #3E63B0 5.8
            on-cta #0A1020 on volt 14.4 / cta-hover 15.5 · on-hero-2 on hero 9.4
            danger/hong #FF6B63 on surface 6.2 / soft 5.8 / bg 6.8 · white on hong-fill 5.7
            chung #6AA6FF on surface 7.0 / chung-soft 5.9 · white on chung-fill #1E5FCC 5.9
            ok #6BDB95 on surface 10.1 / soft 8.9 · warn #F5C451 on surface 10.7 / soft 9.5
            input-line #6B7A99 on surface 4.0 (border) · focus volt on bg 14.4 / surface 13.2
   Never put meaning only into a colour: chips carry a text and a dot, corners a letter. */
:root {
  color-scheme: light;
  /* surfaces and text */
  --bg: #F3F5F9;            /* page background */
  --surface: #FFFFFF;       /* cards, header, inputs */
  --surface-2: #E9EDF5;     /* quiet boxes, table head, inactive step, hover */
  --ink: #121A2E;           /* main text */
  --ink-soft: #2C3650;      /* body text in boxes, nav links */
  --ink-2: #4A5570;         /* secondary text, labels */
  --line: #D6DCE7;          /* borders of cards, buttons, header */
  --line-soft: #E6EAF1;     /* row separators */
  --line-strong: #B3BCCD;   /* stronger separators, dashed boxes */
  --input-line: #7A8499;    /* form field borders (>= 3:1) */
  /* brand (navy) */
  --brand: #1E3A72;         /* navy fills (avatar, date blocks, bars) */
  --brand-ink: #1E3A72;     /* links, navy text, active nav */
  --brand-ink-strong: #12244A;
  --brand-soft: #E3E9F6;    /* active nav, info surface */
  --brand-line: #B4C2DD;
  --brand-tint: #F5F7FB;    /* selected row, running period, row hover */
  /* hero band (navy area with white text and volt) */
  --hero: #1E3A72;
  --hero-free: #40598F;     /* free start place on the hero */
  --hero-taken: #FFFFFF;    /* taken start place on the hero */
  --on-hero: #FFFFFF;
  --on-hero-2: #C9D5EE;
  --hero-line: rgba(255, 255, 255, .18);
  --hero-glass: rgba(255, 255, 255, .08);
  /* accent "volt" – on the hero, and the main button in the dark theme */
  --volt: #C8F03C;
  --on-volt: #121A2E;
  --volt-ink: #3D5700;      /* volt as text on light surfaces */
  /* main action (primary button), selection (current step, chosen option) */
  --cta: #1E3A72;
  --cta-hover: #182F5D;
  --on-cta: #FFFFFF;
  --cta-glow: rgba(30, 58, 114, .30);
  --sel: #1E3A72;
  --on-sel: #FFFFFF;
  /* sport colours: chung = blue corner, hong = red corner (and live) */
  --chung: #1660D0;  --chung-fill: #1660D0;  --chung-soft: #E3ECFB;
  --hong: #C42B22;   --hong-fill: #C42B22;   --hong-soft: #FCE8E6;
  /* status */
  --danger: #C42B22; --danger-fill: #C42B22; --danger-soft: #FCE8E6; --danger-line: #F2B8B3;
  --ok: #0F6B2E;     --ok-fill: #0F6B2E;     --ok-soft: #E3F3E8;     --ok-line: #B5DCC1;
  --warn: #7A4A00;   --warn-fill: #F5C451;   --warn-soft: #FDF0D2;   --warn-line: #EDD08A;
  --on-warn-fill: #121A2E;
  --on-fill: #FFFFFF;       /* text on brand/chung/hong/ok/danger fills, both themes */
  /* medals (always with the place as text) */
  --gold: #E2B33C; --silver: #B9C2CF; --bronze: #D08A4E; --on-medal: #1E2633;
  /* always white: QR codes, signatures, stamps, printed cards */
  --paper: #FFFFFF; --paper-ink: #121A2E;
  /* logo and start-place grid */
  --logo-free: #DADCE0; --logo-slot: #1E3A72; --logo-word: #202124; --logo-sub: #5F6368;
  --slot-free: #DADCE0; --slot-taken: #1E3A72; --poom: #1E3A72;
  --bar-fill: #1E3A72;      /* progress bars (dark: volt) */
  /* focus */
  --focus: #1E3A72;
  --focus-ring: 3px solid var(--focus);
  /* shadows */
  --shadow-sm: 0 1px 2px rgba(18, 26, 46, .06);
  --shadow: 0 1px 2px rgba(18, 26, 46, .06), 0 10px 28px rgba(18, 26, 46, .10);
  --shadow-lg: 0 2px 4px rgba(18, 26, 46, .08), 0 18px 40px rgba(18, 26, 46, .16);
  /* select chevron (data URI cannot use currentColor) */
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23121A2E' stroke-width='2'/%3E%3C/svg%3E");
  /* theme toggle icons */
  --icon-moon: block; --icon-sun: none;

  /* type, spacing, radius, motion */
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Red Hat Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --r-xs: 5px; --r-sm: 6px; --r: 10px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.2, .9, .3, 1.3);
  --dur-fast: .15s; --dur: .2s; --dur-slow: .3s;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --max-narrow: 1000px;
  --header-h: 64px;
  --touch: 44px;
}
@media screen {
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A1020; --surface: #111A2E; --surface-2: #18233B;
  --ink: #EAF0FA; --ink-soft: #CBD4E5; --ink-2: #A3AFC6;
  --line: #26324D; --line-soft: #1D2840; --line-strong: #3A4865; --input-line: #6B7A99;
  --brand: #3E63B0; --brand-ink: #9DB8F2; --brand-ink-strong: #C3D3F7; --brand-soft: #1A2A4D;
  --brand-line: #2E4472; --brand-tint: #14203A;
  --hero: #0F1C38; --hero-free: #2A3A5E; --on-hero-2: #B4C2DD;
  --volt-ink: #C8F03C;
  --cta: #C8F03C; --cta-hover: #D6F56A; --on-cta: #0A1020; --cta-glow: rgba(200, 240, 60, .30);
  --sel: #C8F03C; --on-sel: #0A1020;
  --chung: #6AA6FF; --chung-fill: #1E5FCC; --chung-soft: #13284F;
  --hong: #FF6B63; --hong-fill: #C42B22; --hong-soft: #3A1414;
  --danger: #FF6B63; --danger-soft: #3A1414; --danger-line: #6B2420;
  --ok: #6BDB95; --ok-soft: #0E2A1C; --ok-line: #1F5A37;
  --warn: #F5C451; --warn-soft: #2E230A; --warn-line: #5C4512;
  --logo-free: #5F6368; --logo-slot: #FFFFFF; --logo-word: #FFFFFF; --logo-sub: #DADCE0;
  --slot-free: #3A4560; --slot-taken: #9DB8F2; --poom: #9DB8F2;
  --bar-fill: #C8F03C;
  --focus: #C8F03C;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .45);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 20px 44px rgba(0, 0, 0, .55);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23EAF0FA' stroke-width='2'/%3E%3C/svg%3E");
  --icon-moon: none; --icon-sun: block;
}
}
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0A1020; --surface: #111A2E; --surface-2: #18233B;
    --ink: #EAF0FA; --ink-soft: #CBD4E5; --ink-2: #A3AFC6;
    --line: #26324D; --line-soft: #1D2840; --line-strong: #3A4865; --input-line: #6B7A99;
    --brand: #3E63B0; --brand-ink: #9DB8F2; --brand-ink-strong: #C3D3F7; --brand-soft: #1A2A4D;
    --brand-line: #2E4472; --brand-tint: #14203A;
    --hero: #0F1C38; --hero-free: #2A3A5E; --on-hero-2: #B4C2DD;
    --volt-ink: #C8F03C;
    --cta: #C8F03C; --cta-hover: #D6F56A; --on-cta: #0A1020; --cta-glow: rgba(200, 240, 60, .30);
    --sel: #C8F03C; --on-sel: #0A1020;
    --chung: #6AA6FF; --chung-fill: #1E5FCC; --chung-soft: #13284F;
    --hong: #FF6B63; --hong-fill: #C42B22; --hong-soft: #3A1414;
    --danger: #FF6B63; --danger-soft: #3A1414; --danger-line: #6B2420;
    --ok: #6BDB95; --ok-soft: #0E2A1C; --ok-line: #1F5A37;
    --warn: #F5C451; --warn-soft: #2E230A; --warn-line: #5C4512;
    --logo-free: #5F6368; --logo-slot: #FFFFFF; --logo-word: #FFFFFF; --logo-sub: #DADCE0;
    --slot-free: #3A4560; --slot-taken: #9DB8F2; --poom: #9DB8F2;
    --bar-fill: #C8F03C;
    --focus: #C8F03C;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .45);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 20px 44px rgba(0, 0, 0, .55);
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23EAF0FA' stroke-width='2'/%3E%3C/svg%3E");
    --icon-moon: none; --icon-sun: block;
  }
}
/* Old token names (before 2026-11-17) – kept as aliases so every existing rule follows the
   theme. New rules use the names above. The aliases sit on :root, the same element as the
   theme blocks, so they resolve per theme. Printing always uses the light theme (the dark
   blocks are screen-only). */
:root {
  --c-white: var(--surface);          /* careful: as TEXT colour on a fill use --on-fill */
  --c-bg: var(--bg);
  --c-surface-2: var(--surface-2);
  --c-line-soft: var(--line-soft);
  --c-line: var(--line);
  --c-line-strong: var(--line-strong);
  --c-input: var(--input-line);
  --c-muted: var(--ink-2);
  --c-text-soft: var(--ink-soft);
  --c-text: var(--ink);
  --c-blue: var(--brand-ink);         /* as a FILL use --brand or --cta */
  --c-blue-strong: var(--brand-ink);
  --c-blue-dark: var(--brand-ink-strong);
  --c-blue-soft: var(--brand-soft);
  --c-blue-line: var(--brand-line);
  --c-blue-tint: var(--brand-tint);
  --c-blue-on-dark: var(--on-hero-2);
  --c-belt-blue: #1A73E8;             /* blue belt colour (a real belt, not the brand) */
  --c-red: var(--danger);
  --c-red-strong: var(--danger);
  --c-red-soft: var(--danger-soft);
  --c-green: var(--ok);
  --c-green-strong: var(--ok);
  --c-green-soft: var(--ok-soft);
  --c-yellow-soft: var(--warn-soft);
  --c-yellow-text: var(--warn);
}

/* 3  Base + utilities ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur-slow) ease, color var(--dur-slow) ease;
}
body.is-public { font-size: 17px; }
img, svg { max-width: 100%; }
a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--dur) ease, text-decoration-thickness var(--dur) ease; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary, [role="button"], label[for], select { cursor: pointer; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
::selection { background: var(--volt); color: var(--on-volt); }
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r); background: var(--ink); color: var(--bg);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 8px; color: var(--bg); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.muted { color: var(--ink-2); }
.text-soft { color: var(--ink-soft); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.strong { font-weight: 700; }
.text-danger { color: var(--danger); }
.text-success { color: var(--ok); }
.text-warn { color: var(--warn); }
.text-blue { color: var(--brand-ink); }
.text-brand { color: var(--brand-ink); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.mt-0 { margin-top: 0; } .mt-xs { margin-top: 4px; } .mt-sm { margin-top: 8px; } .mt-md { margin-top: 16px; } .mt-lg { margin-top: 24px; } .mt-xl { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-xs { margin-bottom: 4px; } .mb-sm { margin-bottom: 8px; } .mb-md { margin-bottom: 16px; } .mb-lg { margin-bottom: 24px; }
.ml-auto { margin-left: auto; }
.w-full { width: 100%; }
.hidden { display: none !important; }
/* The hidden attribute must win over component rules such as `.field { display: flex }`. */
[hidden] { display: none !important; }
/* Guardian fields of the athlete form: part of the surrounding grid, hidden for adults. */
.guardian-wrap { display: contents; }
hr.divider { border: 0; border-top: 1px solid var(--line-soft); margin: 16px 0; }

/* 4  Layout --------------------------------------------------------------- */
.site { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
.site > main { flex: 1; }
/* containers directly in the flex column keep their full width (auto margins would shrink them to the content) */
.site > .container { width: 100%; }
.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: var(--max-narrow); }
.container--form { max-width: 520px; }
/* standard page padding below the header */
.page { padding-top: 36px; padding-bottom: 64px; }
.page--tight { padding-top: 24px; }
/* vertical rhythm */
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--sm { gap: 10px; }
.stack--lg { gap: 28px; }
/* horizontal group that wraps */
.cluster { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cluster--lg { gap: 12px 20px; }
/* heading left, action right */
.spread { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 12px; }
.spread--center { align-items: center; }
/* main column + aside (Dashboard) */
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split__main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.split__aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
/* side column that stays in view while a long main column scrolls (e.g. total + confirm) */
@media (min-width: 960px) and (min-height: 640px) { .split__aside--sticky { position: sticky; top: 16px; } }
/* sidebar navigation + content (club, event admin, platform admin) */
.with-sidebar { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.with-sidebar__nav { flex: 1 1 220px; max-width: 260px; }
.with-sidebar__main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 901px) { .with-sidebar__nav { position: sticky; top: 16px; } }
/* grids */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px 18px; }
.grid-auto--wide { grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 40px; align-items: center; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.promo-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .hero-grid, .feature-grid, .promo-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .with-sidebar__nav { max-width: none; flex-basis: 100%; }
}
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } .grid-auto--wide { grid-template-columns: minmax(0, 1fr); } }
.section { padding-top: 64px; }
.section--last { padding-bottom: 80px; }

/* 5  Site header ------------------------------------------------------------
   Variants: public/app (.site-header), entry flow (--flow), platform admin (--admin, navy).
   The theme button (.theme-toggle, partials/theme_toggle.html) sits in every header. */
.site-header { position: relative; z-index: 20; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); transition: background-color var(--dur-slow) ease; }
.site-header__inner {
  position: relative;
  max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter);
  min-height: var(--header-h); display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; min-height: var(--touch); color: var(--ink); text-decoration: none; border-radius: var(--r-sm); }
.brand:hover { color: var(--ink); }
.brand-logo { display: block; height: 28px; width: auto; aspect-ratio: 742.32 / 150; }
.brand-logo .seat { fill: var(--logo-free); }
.brand-logo .seat--on { fill: var(--logo-slot); }
.brand-logo__word { fill: var(--logo-word); }
/* small phones: logo, theme button, "Log in" and the menu button fit in one row (375 px) */
@media (max-width: 420px) {
  .brand-logo { height: 20px; }
  .site-header__inner { column-gap: 8px; padding-left: 12px; padding-right: 12px; }
  .header-actions { gap: 6px; }
  .header-actions .btn--sm { padding: 0 10px; }
  .navmenu__button { padding: 0 10px; gap: 6px; }
}
.brand__tag { font-size: 13px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: var(--r-sm); background: var(--volt); color: var(--on-volt); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.header-actions form { margin: 0; }
/* main navigation (public and app): rounded items, active = soft navy + bold */
.mainnav { display: flex; gap: 2px; flex-wrap: wrap; }
.mainnav a {
  display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 14px; border-radius: var(--r);
  color: var(--ink); text-decoration: none; font-weight: 500;
  transition: background-color var(--dur) ease, color var(--dur) ease;
}
.mainnav a:hover { background: var(--surface-2); color: var(--ink); }
.mainnav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.mainnav--app a { padding: 0 12px; }
@media (max-width: 720px) { .mainnav--public { display: none; } }
/* menu button (<details>, no JS): replaces the navigation row below 1180 px (app, up to 8 items) / 720 px (public) */
.navmenu { display: none; }
.navmenu__button { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: var(--touch); padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px; transition: border-color var(--dur) ease; }
.navmenu__button:hover { border-color: var(--brand-ink); }
.navmenu__button::-webkit-details-marker { display: none; }
.navmenu__button::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--dur) var(--ease); }
.navmenu[open] > .navmenu__button { background: var(--surface-2); }
.navmenu[open] > .navmenu__button::after { transform: translateY(2px) rotate(225deg); }
.navmenu__panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 8px var(--gutter) 18px; display: flex; flex-direction: column; gap: 12px; animation: fx-drop .22s var(--ease) both; }
.navmenu__links { display: flex; flex-direction: column; }
.navmenu__links a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-left: 4px solid transparent; border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; font-weight: 500; }
.navmenu__links a:hover { background: var(--surface-2); }
.navmenu__links a[aria-current="page"] { border-left-color: var(--brand-ink); background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.navmenu__extra { display: flex; flex-direction: column; gap: 8px; margin: 0; }
@media (max-width: 1180px) {
  .mainnav--app { display: none; }
  .navmenu--app { display: block; }
  .site-header .header-logout { display: none; }
  .user-chip { margin-left: auto; }
}
@media (max-width: 720px) {
  .site-header .header-signup, .site-header .header-lang { display: none; }
  .navmenu--public { display: block; }
}
@media (max-width: 560px) {
  .user-chip__name { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
/* user chip */
.user-chip { margin-left: auto; display: flex; align-items: center; gap: 10px; min-height: var(--touch); padding-right: 4px; border-radius: var(--r); color: var(--ink); text-decoration: none; }
.user-chip:hover { color: var(--ink); }
.user-chip:hover .avatar { box-shadow: 0 0 0 3px var(--brand-soft); }
.user-chip__name { font-size: 15px; font-weight: 700; line-height: 1.2; }
.user-chip__sub { display: block; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--brand); color: var(--on-fill);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  transition: box-shadow var(--dur) ease;
}
/* theme toggle: a real button, shown only with JavaScript (html.has-js, set in layout/base.html);
   without JavaScript the page follows prefers-color-scheme. Icons follow the theme tokens. */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: var(--touch); height: var(--touch); padding: 0; border-radius: var(--r);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}
.icon-btn:hover { border-color: var(--brand-ink); }
.icon-btn svg { display: block; width: 20px; height: 20px; transition: transform var(--dur-slow) var(--ease); }
.icon-btn:hover svg { transform: rotate(-18deg); }
.theme-toggle { display: none; }
.has-js .theme-toggle { display: inline-flex; }
.theme-toggle__moon { display: var(--icon-moon) !important; }
.theme-toggle__sun { display: var(--icon-sun) !important; }
/* app header: the button takes the free space, the user chip follows it */
.has-js .site-header > .site-header__inner > .theme-toggle { margin-left: auto; }
.has-js .site-header > .site-header__inner > .theme-toggle + .user-chip { margin-left: 0; }
/* entry flow header (steps) */
.site-header--flow .site-header__inner { gap: 12px 24px; }
.flow-event { flex: 1 1 240px; min-width: 0; }
.flow-event__name { font-weight: 700; }
.flow-event__info { font-size: 14px; color: var(--ink-2); }
.flow-event__info strong { color: var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; font-size: 15px; }
/* the step texts carry their number ("2 Classes"); done steps get a drawn tick, the current one is filled */
.steps__item {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--touch); padding: 0 14px;
  border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font-weight: 600;
}
.steps__item a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: var(--touch); }
.steps__item a:hover { text-decoration: underline; }
.steps__item--done { background: var(--brand-soft); color: var(--brand-ink); }
.steps__item--done::before { content: ""; flex: none; width: 6px; height: 11px; margin: -3px 2px 0 2px; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.steps__item[aria-current="step"] { background: var(--sel); color: var(--on-sel); font-weight: 700; box-shadow: inset 0 -3px 0 var(--volt); }
/* platform-admin header: navy band, logo in the on-navy colours (brand/README.md) */
.site-header--admin { background: var(--hero); color: var(--on-hero); border-bottom: 0; }
.site-header--admin .brand, .site-header--admin .brand:hover { color: var(--on-hero); }
.site-header--admin .brand-logo .seat { fill: var(--hero-free); }
.site-header--admin .brand-logo .seat--on { fill: #FFFFFF; }
.site-header--admin .brand-logo__word { fill: #FFFFFF; }
.site-header--admin :focus-visible { outline-color: var(--volt); }
.site-header--admin a:not(.brand) { display: inline-flex; align-items: center; min-height: var(--touch); color: var(--on-hero-2); }
.site-header--admin a:not(.brand):hover { color: var(--on-hero); }
.site-header--admin .btn--link { color: var(--on-hero-2); }
.site-header--admin .icon-btn { background: transparent; color: var(--on-hero); border-color: rgba(255, 255, 255, .45); }
.site-header--admin .icon-btn:hover { border-color: #FFFFFF; background: var(--hero-glass); }
.has-js .site-header--admin .theme-toggle + .ml-auto { margin-left: 0; }

/* 6  Sidebar navigation (club, event admin, platform admin) ----------------- */
.sidenav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.sidenav__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.sidenav__title { display: block; font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.1; text-transform: uppercase; overflow-wrap: anywhere; }
.sidenav__sub { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.sidenav__head a { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; font-weight: 600; }
.sidenav a.sidenav__link {
  position: relative; display: flex; align-items: center; min-height: var(--touch); padding: 0 12px 0 14px; border-radius: var(--r);
  color: var(--ink-soft); text-decoration: none; font-weight: 500;
  transition: background-color var(--dur) ease, color var(--dur) ease;
}
.sidenav a.sidenav__link:hover { background: var(--surface-2); color: var(--ink); }
.sidenav a.sidenav__link[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.sidenav a.sidenav__link[aria-current="page"]::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--brand-ink); }
.sidenav__count { margin-left: auto; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* 7  Footer ----------------------------------------------------------------- */
.site-footer { background: var(--surface); color: var(--ink-2); border-top: 1px solid var(--line); }
.site-footer__inner { max-width: var(--max); margin: 0 auto; padding: 44px var(--gutter) 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand { display: block; width: 200px; max-width: 100%; height: auto; margin-bottom: 14px; }
.foot-brand .seat { fill: var(--logo-free); }
.foot-brand .seat--on { fill: var(--logo-slot); }
.foot-brand .brand-logo__word { fill: var(--logo-word); }
.foot-brand .brand-logo__sub { fill: var(--logo-sub); }
.foot-title { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.foot-link { display: flex; align-items: center; min-height: var(--touch); padding: 0; color: var(--ink-soft); text-decoration: none; }
.foot-link:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
/* language switch (POST forms that look like links) */
.lang-switch { display: flex; align-items: center; gap: 4px; }
.lang-switch form { margin: 0; display: inline; }
.lang-switch__current { display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 6px; color: var(--ink); font-weight: 700; }
.lang-switch__sep { color: var(--line-strong); }

/* 8  Typography + buttons ---------------------------------------------------
   Headings in Barlow Condensed 800, upper case (the letters stay as written in the HTML).
   Scale: display 40–84 · page 32–56 · section 26–40 · sub 22–26 · card 20 · body 16/17 · small 14 · tiny 13. */
.disp { font-family: var(--font-display); font-weight: 800; letter-spacing: -.005em; line-height: .95; }
.h-display { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 6vw, 84px); line-height: .95; letter-spacing: -.005em; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.h-page { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 3vw + 18px, 56px); line-height: .98; letter-spacing: -.005em; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.h-page--sm { font-size: clamp(28px, 2vw + 18px, 40px); }
.h-section { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 1.6vw + 18px, 40px); line-height: 1; letter-spacing: -.005em; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.h-card { font-size: 20px; font-weight: 700; line-height: 1.3; }
.h-card--sm { font-size: 18px; }
.h-sub { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 1vw + 16px, 26px); line-height: 1.05; text-transform: uppercase; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.lead { color: var(--ink-2); font-size: 17px; max-width: 40em; }
.page-head { margin-bottom: 24px; }
.page-head .lead { margin-top: 8px; }
.prose p + p { margin-top: 10px; }
.prose ul, .prose ol { padding-left: 22px; }
/* legal texts (/legal, /privacy, /terms): sub-headings and lists from plain text */
.prose .prose__h { margin-top: 28px; margin-bottom: 6px; font-size: 19px; line-height: 1.25; }
.prose .prose__h:first-child { margin-top: 0; }
.prose ul { list-style: disc; margin: 8px 0 0; }
.prose li + li { margin-top: 4px; }
.prose p + ul, .prose ul + p { margin-top: 10px; }
.prose a { overflow-wrap: anywhere; }

/* Buttons: primary (navy; dark theme volt with dark text), secondary (white with line),
   ghost (no frame), neutral, danger, danger-solid, link; extra: volt + on-hero for the navy band.
   Every button is at least 44 px high (touch). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--touch); padding: 0 20px; border-radius: var(--r);
  border: 1.5px solid transparent; background: transparent; color: var(--brand-ink);
  font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1.15; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease, transform .18s var(--ease), box-shadow var(--dur) ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--primary { background: var(--cta); border-color: var(--cta); color: var(--on-cta); }
.btn--primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: var(--on-cta); transform: translateY(-1px); box-shadow: 0 8px 20px var(--cta-glow); }
.btn--primary:active { transform: scale(.97); }
.btn--secondary { background: var(--surface); border-color: var(--line); color: var(--brand-ink); }
.btn--secondary:hover { border-color: var(--brand-ink); color: var(--brand-ink); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--brand-ink); }
.btn--ghost:hover { background: var(--surface-2); color: var(--brand-ink); }
.btn--neutral { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--neutral:hover { border-color: var(--ink-2); color: var(--ink); }
.btn--outline-dark { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline-dark:hover { background: var(--surface-2); color: var(--ink); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--bg); }
.btn--danger { background: var(--surface); border-color: var(--line); color: var(--danger); }
.btn--danger:hover { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.btn--danger-solid { background: var(--danger-fill); border-color: var(--danger-fill); color: var(--on-fill); }
.btn--danger-solid:hover { filter: brightness(1.08); color: var(--on-fill); }
.btn--volt { background: var(--volt); border-color: var(--volt); color: var(--on-volt); }
.btn--volt:hover { color: var(--on-volt); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(200, 240, 60, .35); }
.btn--on-hero { background: transparent; border-color: rgba(255, 255, 255, .45); color: var(--on-hero); }
.btn--on-hero:hover { background: var(--hero-glass); border-color: #FFFFFF; color: var(--on-hero); }
.btn--link { min-height: var(--touch); padding: 0 6px; border: 0; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.btn--link:hover { color: var(--ink); text-decoration-thickness: 2px; }
.btn--sm { min-height: var(--touch); padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 48px; padding: 0 24px; font-size: 16px; }
.btn--xl { min-height: 52px; padding: 0 26px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.btn--start { justify-content: flex-start; }
.btn__icon { width: 18px; height: 18px; flex: none; }
/* button that looks like a plain link (for POST forms inside text) */
.link-button { background: none; border: 0; padding: 0; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.link-button:hover { color: var(--ink); text-decoration-thickness: 2px; }
.link-button--plain { display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 6px; }
.inline-form { display: inline; margin: 0; }

/* 9  Pills / filters / tabs ---------------------------------------------------
   .pill = link or button with frame; pressed/current = filled ink (pressed state also in
   aria-pressed / aria-current, never only by colour). .tabs = underline tabs inside a page. */
.pill-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--touch); padding: 0 16px;
  border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s var(--ease);
}
.pill:hover { border-color: var(--brand-ink); color: var(--ink); }
.pill[aria-pressed="true"], .pill[aria-current="true"], .pill[aria-current="page"], .pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pill small, .pill__sub { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.pill[aria-current] small, .pill[aria-pressed="true"] small { color: inherit; opacity: .85; }
.pill svg { width: 18px; height: 18px; flex: none; }
.pill-select {
  min-height: var(--touch); padding: 0 36px 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface) var(--chevron) no-repeat right 14px center; color: var(--ink);
  font-size: 15px; font-weight: 700; appearance: none;
}
.pill-select:hover { border-color: var(--brand-ink); }
/* underline tabs (section navigation inside a page; links with aria-current="true"|"page") */
.tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs a, .tabs button { position: relative; display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 14px; border: 0; background: none; color: var(--ink); font-weight: 600; text-decoration: none; }
.tabs a::after, .tabs button::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--brand-ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.tabs a:hover::after, .tabs a:focus-visible::after, .tabs [aria-current]::after, .tabs [aria-selected="true"]::after { transform: scaleX(1); }
.tabs [aria-current], .tabs [aria-selected="true"] { color: var(--brand-ink); font-weight: 700; }
/* jump links (months) */
.jump { display: inline-flex; align-items: center; gap: 6px; min-height: var(--touch); padding: 0 14px; border-radius: var(--r); background: var(--surface-2); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; transition: background-color var(--dur) ease; }
.jump:hover { background: var(--brand-soft); color: var(--ink); }
.jump__count { font-weight: 500; color: var(--ink-2); }

/* 10  Chips, badges, tags, dots, live ----------------------------------------
   Status chips carry a text AND a dot (::before). Colours: ok = paid/confirmed/success,
   warn = open payment/waiting list/attention (amber = urgency), danger = error/rejected,
   info = navy, neutral = grey. .chip--plain / --outline: without dot. */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; line-height: 1.4; white-space: nowrap; background: var(--surface-2); color: var(--ink-soft); }
.chip--lg { padding: 4px 12px; font-size: 14px; }
.chip--paid::before, .chip--success::before, .chip--unpaid::before, .chip--danger::before, .chip--waitlist::before,
.chip--warning::before, .chip--info::before, .chip--neutral::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--paid, .chip--success { background: var(--ok-soft); color: var(--ok); }
.chip--unpaid, .chip--waitlist, .chip--warning { background: var(--warn-soft); color: var(--warn); }
.chip--danger { background: var(--danger-soft); color: var(--danger); }
.chip--info { background: var(--brand-soft); color: var(--brand-ink); }
.chip--neutral { background: var(--surface-2); color: var(--ink-soft); }
.chip--outline { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); font-weight: 500; padding: 2px 10px; }
.chip--volt { background: var(--volt); color: var(--on-volt); }
/* country code box ("DE", "CZ") */
.cc { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 20px; padding: 0 5px; border-radius: var(--r-xs); border: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); }
/* square tag (deadline today = amber, closes in N days) */
.tag { display: inline-block; padding: 2px 10px; border-radius: var(--r-sm); font-weight: 700; font-size: 14px; }
.tag--danger { background: var(--warn-fill); color: var(--on-warn-fill); }
.tag--light { background: var(--surface); color: var(--ink); }
.tag--light-danger { background: var(--surface); color: var(--warn); }
.tag--sm { padding: 1px 8px; border-radius: var(--r-xs); font-size: 13px; }
/* status dot */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--ink-2); }
.dot--danger { background: var(--danger); }
.dot--info { background: var(--brand-ink); }
.dot--success { background: var(--ok); }
.dot--warn { background: var(--warn); }
/* live: red dot with a pulse ring (pulse off with reduced motion). .live--badge = filled pill. */
.live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--hong); }
.live::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: fx-ping 1.6s ease-out infinite; }
.live--badge { padding: 3px 12px 3px 10px; border-radius: var(--r-pill); background: var(--hong-fill); color: var(--on-fill); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.live--badge::before { width: 8px; height: 8px; }
/* urgency texts for deadlines (amber) */
.deadline--hot { display: inline-block; padding: 1px 8px; border-radius: var(--r-xs); background: var(--warn-fill); color: var(--on-warn-fill); font-weight: 700; }
.deadline--near { color: var(--warn); font-weight: 700; }
.deadline--far { color: var(--ok); font-weight: 700; }

/* 11  Cards, sections, lists ------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; transition: transform .22s var(--ease), box-shadow .22s ease, border-color .22s ease, background-color var(--dur-slow) ease; }
.card--sm { padding: 16px 20px; }
.card--flush { padding: 0; overflow: hidden; }
.card--lg { border-radius: var(--r-xl); padding: clamp(20px, 3vw, 36px); }
.card--accent { border-left: 6px solid var(--brand-ink); padding: 16px 20px; }
.card--accent-danger { border-left: 6px solid var(--warn); border-radius: var(--r-lg); padding: 22px 24px; }
.card--muted { background: var(--surface-2); border-color: transparent; border-radius: var(--r-lg); padding: 22px 24px; }
.card--brand { background: var(--brand-soft); border-color: transparent; }
.card--auth { max-width: 440px; padding: 32px 32px 28px; }
/* clickable card: lifts on hover/focus inside (whole card is a link or holds one main link) */
.card--lift:hover, .card--lift:focus-within { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-ink); }
.card__head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 12px; }
.card__title { font-size: 20px; font-weight: 700; line-height: 1.25; }
.card__title--sm { font-size: 18px; }
.card__foot { margin-top: 16px; }
/* list with separators (to-dos, changes) */
.list { list-style: none; margin: 0; padding: 0; }
.list__item { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.list__item:last-child { border-bottom: 0; }
.list--top-lines .list__item { border-bottom: 0; border-top: 1px solid var(--line-soft); padding: 10px 0; }
.list__text { flex: 999 1 320px; min-width: 0; }
.list--compact .list__item { padding: 8px 0; justify-content: space-between; font-size: 15px; }
/* description list (club details) */
.details { margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px 20px; }
.details dt { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.details dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.rules { margin: 14px 0 0; padding-left: 20px; font-size: 14px; color: var(--ink-2); }
.rules strong { color: var(--ink); }
/* "or" divider */
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--ink-2); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 12  Tables ---------------------------------------------------------------- */
/* position: relative – the table clips its visually hidden texts too (they are absolute; without it they
   pushed /results 589 px wide on a 375 px phone, QA S-M6). */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap--card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table--min { min-width: 600px; }
.table--wide { min-width: 820px; }
.table th { text-align: left; color: var(--ink-2); font-size: 13px; font-weight: 700; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr { transition: background-color var(--dur-fast) ease; }
.table tbody tr:hover { background: var(--brand-tint); }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table--head-bg thead tr { background: var(--surface-2); }
.table--head-bg th { padding-top: 12px; padding-bottom: 12px; }
.table--head-bg th:first-child, .table--head-bg td:first-child { padding-left: 16px; }
.table--head-bg th:last-child, .table--head-bg td:last-child { padding-right: 16px; }
.table tr.is-selected { background: var(--brand-tint); }
.table tbody tr:last-child td { border-bottom: 1px solid var(--line-soft); }
.table-wrap--card .table tbody tr:last-child td { border-bottom: 0; }
/* a table inside a bordered card never touches its edge */
.table-wrap--card .table th:first-child, .table-wrap--card .table td:first-child { padding-left: 16px; }
.table-wrap--card .table th:last-child, .table-wrap--card .table td:last-child { padding-right: 16px; }
.table-wrap--card .table thead th { padding-top: 12px; }
.table .cell-sub { display: block; font-size: 14px; color: var(--ink-2); }
dd .cell-sub { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.table .cell-num { font-family: var(--font-display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.table .cell-actions { text-align: right; white-space: nowrap; }
.table .cell-person { display: flex; align-items: center; gap: 10px; }
/* Phone variant for any table: every row becomes a card, labels from data-label.
   Add .table--stack to the table and data-label="…" to the cells (like .me-table, .oe-table). */
@media (max-width: 760px) {
  .table--stack { min-width: 0; }
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: 10px 0; border-top: 1px solid var(--line); }
  .table--stack tbody tr td { border: 0; padding: 3px 0; text-align: left; }
  .table--stack td[data-label] { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 2px 10px; align-items: start; }
  .table--stack td[data-label]::before { content: attr(data-label); font-size: 13px; font-weight: 700; color: var(--ink-2); padding-top: 2px; }
  .table--stack td.cell-actions { padding-top: 8px; }
}
/* belt colour bar next to an athlete (real belt colours, same in both themes) */
.belt { width: 6px; height: 32px; border-radius: 2px; flex: none; background: var(--line); }
.belt--white { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line-strong); }
.belt--white-yellow { background: linear-gradient(#FFFFFF 50%, #FBBC04 50%); box-shadow: inset 0 0 0 1px var(--line-strong); }
.belt--yellow { background: #FBBC04; }
.belt--yellow-green { background: linear-gradient(#FBBC04 50%, #34A853 50%); }
.belt--green { background: #34A853; }
.belt--green-blue { background: linear-gradient(#34A853 50%, var(--c-belt-blue) 50%); }
.belt--blue { background: var(--c-belt-blue); }
.belt--blue-red { background: linear-gradient(var(--c-belt-blue) 50%, #D93025 50%); }
.belt--red { background: #D93025; }
.belt--red-black { background: linear-gradient(#D93025 50%, #121A2E 50%); box-shadow: inset 0 0 0 1px var(--line-strong); }
.belt--poom { background: linear-gradient(#D93025 50%, #121A2E 50%); box-shadow: inset 0 0 0 1px var(--line-strong); }
.belt--black { background: #121A2E; box-shadow: inset 0 0 0 1px var(--line-strong); }

/* 13  Forms ----------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-weight: 700; font-size: 15px; }
.label__opt { font-weight: 500; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--input-line); border-radius: var(--r);
  background: var(--surface); color: var(--ink); font-size: 16px;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease, background-color var(--dur-slow) ease;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-2); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--brand-ink); outline: var(--focus-ring); outline-offset: 1px; }
.input:disabled, .select:disabled, .textarea:disabled, .input[readonly] { background: var(--surface-2); color: var(--ink-2); cursor: not-allowed; }
.select { padding: 0 10px; }
.textarea { min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input--lg { min-height: 52px; padding: 0 16px; font-size: 17px; }
.input--sm, .select--sm { min-height: var(--touch); width: auto; border-radius: var(--r-sm); font-size: 15px; }
.input[type="file"] { padding: 10px 12px; }
.input[type="file"]::file-selector-button { margin-right: 12px; min-height: 32px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); font-weight: 700; cursor: pointer; }
.field__hint { font-size: 14px; color: var(--ink-2); }
.field__error { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 700; color: var(--danger); }
.field__error::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--danger-fill); color: var(--on-fill); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.field--error .input, .field--error .select, .field--error .textarea, .input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.field--error .label { color: var(--danger); }
.check { display: flex; gap: 12px; align-items: center; min-height: var(--touch); }
.check--sm { gap: 8px; }
.check input[type="checkbox"], .check input[type="radio"] { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--sel); cursor: pointer; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--sel); }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.legend { font-weight: 700; font-size: 15px; margin-bottom: 4px; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* .form-end: the actions at the END of a form (Benjamin 2026-11-15: whoever fills a form from top to
   bottom finds Save / the main action there, with the same texts as above). Use it on the last
   .form-actions of a form, or as a second set of actions below a long list whose actions also sit
   in a side column (buttons in the form or with form="…", same form, no extra logic). */
.form-end { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
@media (max-width: 560px) {
  .form-end > .btn, .form-end > button.btn { flex: 1 1 100%; justify-content: center; min-height: var(--touch); }
}
/* Agent E: actions that sit in their own small form (import preview) stretch the same way. */
@media (max-width: 560px) {
  .form-end > .inline-form { flex: 1 1 100%; }
  .form-end > .inline-form > .btn { width: 100%; justify-content: center; min-height: var(--touch); }
}
.error-summary { border: 2px solid var(--danger); border-radius: var(--r-md); padding: 14px 18px; background: var(--danger-soft); }
.error-summary__title { font-weight: 700; color: var(--danger); }
.error-summary ul { margin: 6px 0 0; padding-left: 20px; }
.error-summary a { color: var(--danger); }
/* sticky action bar at the bottom (entry flow) */
.action-bar { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(18, 26, 46, .08); z-index: 10; }
.action-bar__inner { max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.action-bar__text { flex: 1 1 240px; }

/* 14  Stats, progress, notices, flash ---------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.stat__label { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 1.2vw + 20px, 40px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat__value--danger { color: var(--warn); }
.stat__value--blue { color: var(--brand-ink); }
.stat-dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-dl dt { font-size: 14px; color: var(--ink-2); }
.stat-dl dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.figure-big { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.figure-big--danger { color: var(--warn); }
.figure-big--blue { color: var(--brand-ink); }
/* progress bar: <progress class="progress" value="586" max="600"> (navy; dark theme volt).
   --success green, --danger amber ("nearly full" / urgency). .fx-grow lets the bar grow in. */
.progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; color: var(--bar-fill); }
.progress::-webkit-progress-bar { background: var(--surface-2); border-radius: var(--r-pill); }
.progress::-webkit-progress-value { background: var(--bar-fill); border-radius: var(--r-pill); }
.progress::-moz-progress-bar { background: var(--bar-fill); border-radius: var(--r-pill); }
.progress--lg { height: 12px; }
.progress--danger { color: var(--warn); }
.progress--danger::-webkit-progress-value { background: var(--warn); }
.progress--danger::-moz-progress-bar { background: var(--warn); }
.progress--success { color: var(--ok); }
.progress--success::-webkit-progress-value { background: var(--ok); }
.progress--success::-moz-progress-bar { background: var(--ok); }
/* notices: soft surface + coloured edge (shape cue besides the colour) */
.notice { padding: 12px 16px; border-radius: var(--r); border-left: 4px solid var(--line-strong); background: var(--surface-2); color: var(--ink-soft); font-size: 15px; }
.notice--info { background: var(--brand-soft); border-left-color: var(--brand-ink); color: var(--brand-ink-strong); }
.notice--success { background: var(--ok-soft); border-left-color: var(--ok); color: var(--ok); }
.notice--warning { background: var(--warn-soft); border-left-color: var(--warn); color: var(--warn); }
.notice--danger { background: var(--danger-soft); border-left-color: var(--danger); color: var(--danger); }
.notice__title { font-weight: 700; display: block; margin-bottom: 2px; }
.notice a { color: inherit; }
/* flash messages (top of main) */
.flashes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.flashes--public { padding-top: 16px; }
.flash { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid transparent; font-weight: 600; animation: fx-rise .4s var(--ease) both; }
.flash::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.flash--success { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.flash--success::before { background: var(--ok); }
.flash--info { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-ink-strong); }
.flash--info::before { background: var(--brand-ink); }
.flash--warning { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.flash--warning::before { background: var(--warn); }
.flash--error { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.flash--error::before { background: var(--danger); }
/* status block with check icon (confirmation) */
.status-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.status-head__icon { flex: 0 0 48px; height: 48px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; animation: fx-pop .45s var(--ease-spring) .1s both; }

/* 15  Event components ------------------------------------------------------ */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero__inner { padding-top: 32px; padding-bottom: 36px; }
.hero__lead { margin-top: 10px; max-width: 40em; color: var(--ink-2); font-size: 17px; }
.hero__facts { margin-top: 16px; display: flex; gap: 16px 32px; flex-wrap: wrap; align-items: flex-end; }
.fact__label { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.fact__sub { margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
/* date mark in lists: big day + weekday */
.datemark { line-height: 1; align-self: start; }
.datemark__day { font-family: var(--font-display); font-weight: 800; font-size: 36px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.datemark__sub { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.datemark--sm .datemark__day { font-size: 28px; }
.datemark--sm .datemark__sub { font-size: 13px; }
/* date badge on an event card image / date block (navy square with white day) */
.datebadge { background: var(--surface); border-radius: var(--r-sm); padding: 4px 9px 5px; text-align: center; line-height: 1; color: var(--ink); }
.datebadge__day { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.datebadge__month { font-size: 12px; font-weight: 700; margin-top: 2px; }
.dateblock { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 72px; padding: 8px 0; border-radius: var(--r-md); background: var(--brand); color: var(--on-fill); text-align: center; line-height: 1; }
.dateblock__day { font-family: var(--font-display); font-weight: 800; font-size: 36px; font-variant-numeric: tabular-nums; }
.dateblock__month { margin-top: 4px; font-size: 12px; font-weight: 700; }
/* discipline sign "grid from the logo" + word below (partials/disc_icon.html) */
.disc-icon { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; max-width: 72px; text-align: center; }
.disc-icon__sign { display: block; flex: none; }
.disc-icon__word { font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--ink-2); }
/* free squares of the discipline sign follow the theme (the SVG carries light colours as attributes) */
.disc-icon__sign rect[fill="#DADCE0"] { fill: var(--slot-free); }
.disc-icon__sign rect[fill="#1E3A72"] { fill: var(--poom); }
/* event card (closing soon) */
.event-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; display: flex; flex-direction: column; transition: transform .22s var(--ease), box-shadow .22s ease, border-color .22s ease; }
.event-card:hover, .event-card:focus-within { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-ink); }
.event-card__media { position: relative; height: 120px; border-radius: var(--r-md); background: var(--brand-soft); overflow: hidden; }
.event-card__media .datebadge { position: absolute; top: 10px; left: 10px; }
.event-card__media .tag { position: absolute; top: 12px; right: 10px; font-size: 13px; padding: 3px 9px; }
.event-card__place { position: absolute; left: 12px; right: 8px; bottom: 4px; font-family: var(--font-display); font-weight: 800; font-size: 46px; line-height: 1; text-transform: uppercase; color: var(--brand-ink); white-space: nowrap; overflow: hidden; }
.event-card__body { padding: 14px 6px 6px; display: flex; flex-direction: column; flex: 1; }
.event-card__title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.event-card__title a { color: var(--ink); text-decoration: none; }
.event-card__title a:hover { text-decoration: underline; }
.event-card__meta { margin-top: 6px; display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 15px; }
.event-card__foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.flag { width: 18px; height: 12px; flex: none; }
/* month list */
.month { margin-top: 28px; }
.month__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0 8px; border-bottom: 2px solid var(--ink); }
.month__title { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; }
.month__count { font-size: 14px; color: var(--ink-2); }
/* event list row: date | tile | name | status | capacity | action */
.row { display: grid; grid-template-columns: 76px 72px minmax(0, 1fr) 200px 190px 168px; grid-template-areas: "d t n s c a"; column-gap: 20px; row-gap: 10px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.r-d { grid-area: d; } .r-t { grid-area: t; } .r-n { grid-area: n; min-width: 0; } .r-s { grid-area: s; font-size: 15px; line-height: 1.35; } .r-c { grid-area: c; font-size: 15px; line-height: 1.35; } .r-a { grid-area: a; }
.row__name { font-weight: 700; font-size: 18px; line-height: 1.3; }
.row__meta { margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); }
@media (max-width: 1100px) { .row { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "d n n" "t n n" ". s c" ". a a"; } .r-t { align-self: start; } }
@media (max-width: 720px) { .row { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "d n" "t n" ". s" ". c" ". a"; } .r-t .disc-icon { max-width: 64px; } }
/* seat bar (SVG with class seatbar) and seat plan figure */
.seatplan { margin: 0; justify-self: end; width: 100%; max-width: 420px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 14px 16px; }
.seatplan svg { display: block; width: 100%; height: auto; }
.seatplan__caption { margin-top: 10px; display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--ink-2); }
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.legend-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--slot-free); }
.legend-swatch--free { background: var(--slot-taken); }
.legend-swatch--taken { background: var(--slot-taken); }
/* organiser promo box */
.promo { background: var(--brand-soft); color: var(--ink); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); }
.promo__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; text-transform: uppercase; text-wrap: balance; }
.promo__text { margin-top: 14px; max-width: 36em; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }
/* ticket / start card */
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; overflow: hidden; }
.ticket__body { flex: 1; min-width: 0; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.ticket__label { font-size: 13px; color: var(--ink-2); }
.ticket__name { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.05; text-transform: uppercase; }
.ticket__line { font-size: 15px; }
.ticket__sub { font-size: 14px; color: var(--ink-2); }
.ticket__stub { width: 150px; border-left: 2px dashed var(--line); padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.ticket__qr { width: 104px; height: 104px; border-radius: var(--r-sm); }
.ticket__code { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .ticket { flex-direction: column; } .ticket__stub { width: auto; border-left: 0; border-top: 2px dashed var(--line); } }

/* 16  Pagination, empty state, misc ------------------------------------------ */
.pagination { margin-top: 18px; }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: var(--touch); min-height: var(--touch); padding: 0 12px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; transition: border-color var(--dur) ease; }
.pagination a:hover { border-color: var(--brand-ink); color: var(--ink); }
.pagination a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pagination .pagination__gap { border: 0; background: transparent; min-width: auto; color: var(--ink-2); }
.pagination .is-disabled { color: var(--line-strong); }
.empty { border: 2px dashed var(--line); border-radius: var(--r-lg); padding: 28px 24px; }
.empty__title { font-weight: 700; color: var(--ink); }
.empty__text { margin: 6px 0 14px; color: var(--ink-soft); }
.later { margin-top: 48px; padding-top: 28px; border-top: 6px solid var(--surface-2); }
.calendar-frame { min-height: 220px; }
.error-page { padding-top: 56px; padding-bottom: 72px; }
.error-page__code { font-family: var(--font-display); font-weight: 800; font-size: 88px; line-height: 1; color: var(--line-strong); }
/* dev component catalogue */
.dev-section { scroll-margin-top: 20px; }
.dev-swatch { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); font-size: 13px; }
.dev-swatch__color { height: 48px; }
.dev-swatch__label { padding: 6px 8px; }
.sw-white { background: var(--surface); } .sw-bg { background: var(--bg); } .sw-surface-2 { background: var(--surface-2); }
.sw-line-soft { background: var(--line-soft); } .sw-line { background: var(--line); } .sw-line-strong { background: var(--line-strong); }
.sw-input { background: var(--input-line); } .sw-muted { background: var(--ink-2); } .sw-text-soft { background: var(--ink-soft); } .sw-text { background: var(--ink); }
.sw-blue { background: var(--brand); } .sw-blue-strong { background: var(--brand-ink); } .sw-blue-dark { background: var(--brand-ink-strong); } .sw-blue-soft { background: var(--brand-soft); } .sw-blue-line { background: var(--brand-line); } .sw-blue-tint { background: var(--brand-tint); } .sw-blue-on-dark { background: var(--on-hero-2); } .sw-belt-blue { background: var(--c-belt-blue); }
.sw-hero { background: var(--hero); } .sw-volt { background: var(--volt); } .sw-cta { background: var(--cta); } .sw-chung { background: var(--chung-fill); } .sw-hong { background: var(--hong-fill); }
.sw-warn-fill { background: var(--warn-fill); } .sw-gold { background: var(--gold); } .sw-silver { background: var(--silver); } .sw-bronze { background: var(--bronze); }
.dev-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.dev-logo { margin: 0; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--ink-2); background: #FFFFFF; }
.dev-logo img { display: block; max-width: 100%; height: 48px; width: auto; }
.dev-logo--navy { background: #1E3A72; color: #FFFFFF; }
.dev-logo--dark { background: #202124; color: #DADCE0; }
.dev-logo--icon img { height: 64px; }
.sw-red { background: var(--danger); } .sw-red-strong { background: var(--danger-fill); } .sw-red-soft { background: var(--danger-soft); }
.sw-green { background: var(--ok); } .sw-green-strong { background: var(--ok-fill); } .sw-green-soft { background: var(--ok-soft); }
.sw-yellow-soft { background: var(--warn-soft); } .sw-yellow-text { background: var(--warn); }
.dev-mark { display: flex; }
.dev-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }

/* 17  Brand motifs -------------------------------------------------------------
   Start-place grid ("Startplatz-Raster" from the logo): partials/slot_grid.html.
   Squares are decoration (aria-hidden); the numbers must always be in the text next to it.
   .slot-grid--3/--6/--10/--12 = columns; --on-hero = colours for the navy band;
   --pop = squares pop in one after the other (effect, off with reduced motion). */
.slot-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.slot-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8%; }
.slot-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.slot-grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.slot-grid--sm { gap: 4px; }
.slot-grid--3 .slot-grid__cell { border-radius: 14%; }
.slot-mark { width: 40px; flex: none; }
.slot-mark--lg { width: 96px; }
.slot-grid__cell { display: block; aspect-ratio: 1; border-radius: 4px; background: var(--slot-free); }
.slot-grid__cell.is-on { background: var(--slot-taken); }
.slot-grid--on-hero .slot-grid__cell { background: var(--hero-free); }
.slot-grid--on-hero .slot-grid__cell.is-on { background: var(--hero-taken); }
.slot-grid--volt .slot-grid__cell.is-on { background: var(--volt); }
.slot-grid--pop .slot-grid__cell { animation: fx-pop .45s var(--ease-spring) both; }
.slot-grid--pop .slot-grid__cell:nth-child(10n+1) { animation-delay: .30s; } .slot-grid--pop .slot-grid__cell:nth-child(10n+2) { animation-delay: .34s; }
.slot-grid--pop .slot-grid__cell:nth-child(10n+3) { animation-delay: .38s; } .slot-grid--pop .slot-grid__cell:nth-child(10n+4) { animation-delay: .42s; }
.slot-grid--pop .slot-grid__cell:nth-child(10n+5) { animation-delay: .46s; } .slot-grid--pop .slot-grid__cell:nth-child(10n+6) { animation-delay: .50s; }
.slot-grid--pop .slot-grid__cell:nth-child(10n+7) { animation-delay: .54s; } .slot-grid--pop .slot-grid__cell:nth-child(10n+8) { animation-delay: .58s; }
.slot-grid--pop .slot-grid__cell:nth-child(10n+9) { animation-delay: .62s; } .slot-grid--pop .slot-grid__cell:nth-child(10n) { animation-delay: .66s; }
.slot-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); }
.slot-legend__item { display: inline-flex; align-items: center; gap: 8px; }
.slot-legend__swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--slot-free); }
.slot-legend__swatch.is-on { background: var(--slot-taken); }
.band--hero .slot-legend { color: var(--on-hero-2); }
.band--hero .slot-legend__swatch { background: var(--hero-free); outline: 1px solid rgba(255, 255, 255, .3); }
.band--hero .slot-legend__swatch.is-on { background: var(--hero-taken); outline: 0; }
/* Hero band: full-width navy section (start page, event page head). White text, volt accent.
   Inside: .band__inner (container), .band__eyebrow, .band__title, .band__lead, .band__panel
   (glass box), .band__stat (big volt number), buttons .btn--volt + .btn--on-hero. */
.band--hero { background: var(--hero); color: var(--on-hero); overflow: hidden; }
.band--rounded { border-radius: var(--r-xl); }
.band--hero a:not(.btn) { color: var(--on-hero); }
.band--hero :focus-visible { outline-color: var(--volt); }
.band__inner { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 64px) var(--gutter) clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: center; }
.band__eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-hero-2); }
.band__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 6vw, 84px); line-height: .95; letter-spacing: -.005em; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.band__lead { font-size: 19px; color: var(--on-hero-2); max-width: 560px; }
.band__panel { background: var(--hero-glass); border: 1px solid var(--hero-line); border-radius: var(--r-xl); padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 18px; }
.band__stat { font-family: var(--font-display); font-weight: 800; font-size: clamp(56px, 7vw, 72px); line-height: .95; color: var(--volt); font-variant-numeric: tabular-nums; }
.band__muted { color: var(--on-hero-2); }
/* countdown boxes ("10 Tage 09 Stunden 41 Minuten") on the band */
.countbox-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.countbox { min-width: 88px; padding: 10px 14px; border-radius: var(--r-md); background: var(--hero-glass); border: 1px solid var(--hero-line); }
.countbox__value { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.countbox__value--volt { color: var(--volt); }
.countbox__label { font-size: 14px; color: var(--on-hero-2); }
/* medals: round, medal colour + place as number (text always says the place) */
.medal { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 6px; border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; background: var(--surface-2); color: var(--ink); }
.medal--gold { background: var(--gold); color: var(--on-medal); }
.medal--silver { background: var(--silver); color: var(--on-medal); }
.medal--bronze { background: var(--bronze); color: var(--on-medal); }
.medal--sm { min-width: 32px; height: 32px; font-size: 17px; }
/* corners (fight): colour + letter, never colour alone */
.corner { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: var(--r-sm); font-weight: 800; font-size: 15px; color: var(--on-fill); }
.corner--chung { background: var(--chung-fill); }
.corner--hong { background: var(--hong-fill); }
.text-chung { color: var(--chung); }
.text-hong { color: var(--hong); }
/* paper: always white (QR code, signature, stamp) also in the dark theme */
.paper { background: var(--paper); color: var(--paper-ink); border-radius: var(--r-md); padding: 12px; }

/* 18  Effects ------------------------------------------------------------------
   Tools for the page agents. All are off with prefers-reduced-motion (block at the end).
   .fx-rise          fade + rise on load            .fx-d1 … .fx-d6  delay steps (80 ms)
   .fx-stagger       children rise one after the other (up to 8)
   .fx-reveal        rise when scrolled into view (static/js/effects.mjs sets .is-in;
                     without JS or with reduced motion the element is simply visible)
   .fx-grow          a <progress> / .fx-bar grows from the left
   .fx-pop           pop in (scale)                 .fx-glint  one shine across (QR, card)
   .fx-pulse         soft pulse ring (live dots)    .fx-lift   lift on hover (cards, tiles)
   .count            count up (partials/count.html; CSS @property, fallback: the final number) */
@property --n { syntax: "<integer>"; inherits: false; initial-value: 0; }
@keyframes fx-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fx-fade { from { opacity: 0; transform: translateY(6px); } }
@keyframes fx-pop { from { opacity: 0; transform: scale(.3); } }
@keyframes fx-grow { from { transform: scaleX(0); } }
@keyframes fx-up { from { transform: scaleY(0); } }
@keyframes fx-count { from { --n: 0; } }
@keyframes fx-glint { to { transform: translateX(110%); } }
@keyframes fx-drop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes fx-ping { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes fx-flash { 0% { box-shadow: 0 0 0 0 var(--ok-line); } 100% { box-shadow: 0 0 0 14px transparent; } }
.fx-rise { animation: fx-rise .6s var(--ease) both; }
.fx-fade { animation: fx-fade .3s ease both; }
.fx-pop { animation: fx-pop .45s var(--ease-spring) both; }
.fx-d1 { animation-delay: .08s; } .fx-d2 { animation-delay: .16s; } .fx-d3 { animation-delay: .24s; }
.fx-d4 { animation-delay: .32s; } .fx-d5 { animation-delay: .40s; } .fx-d6 { animation-delay: .48s; }
.fx-stagger > * { animation: fx-rise .55s var(--ease) both; }
.fx-stagger > :nth-child(2) { animation-delay: .07s; } .fx-stagger > :nth-child(3) { animation-delay: .14s; }
.fx-stagger > :nth-child(4) { animation-delay: .21s; } .fx-stagger > :nth-child(5) { animation-delay: .28s; }
.fx-stagger > :nth-child(6) { animation-delay: .35s; } .fx-stagger > :nth-child(7) { animation-delay: .42s; }
.fx-stagger > :nth-child(n+8) { animation-delay: .49s; }
.has-js .fx-reveal:not(.is-in) { opacity: 0; transform: translateY(18px); }
.has-js .fx-reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.fx-grow::-webkit-progress-value { transform-origin: left center; animation: fx-grow .9s var(--ease) .35s both; }
.fx-grow::-moz-progress-bar { transform-origin: left center; animation: fx-grow .9s var(--ease) .35s both; }
.fx-bar { transform-origin: left center; animation: fx-grow .9s var(--ease) .35s both; }
.fx-bar-up { transform-origin: bottom center; animation: fx-up .7s cubic-bezier(.2, .8, .2, 1.15) both; }
.fx-glint { position: relative; overflow: hidden; }
.fx-glint::after { content: ""; position: absolute; inset: -20%; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .75) 50%, transparent 62%); transform: translateX(-110%); animation: fx-glint 1.5s cubic-bezier(.4, 0, .2, 1) .7s 1 both; pointer-events: none; }
.fx-pulse { animation: fx-ping 1.6s ease-out infinite; border-radius: 50%; }
.fx-lift { transition: transform .22s var(--ease), box-shadow .22s ease, border-color .22s ease; }
.fx-lift:hover, .fx-lift:focus-within { transform: translateY(-3px); box-shadow: var(--shadow); }
.fx-saved { animation: fx-flash 1.2s ease both; }
/* count up: <span class="count" data-count="348"><span class="count__value">348</span><span class="count__run" aria-hidden="true"></span></span>
   effects.mjs sets --to and .is-counting; the real number stays for screen readers and without JS. */
.count__run { display: none; }
.count.is-counting .count__value { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.count.is-counting .count__run { display: inline; --n: var(--to); counter-reset: n var(--n); animation: fx-count 1.4s var(--ease) .3s both; }
.count.is-counting .count__run::after { content: counter(n); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .has-js .fx-reveal:not(.is-in) { opacity: 1; transform: none; }
  .fx-glint::after { display: none; }
  .btn:hover, .btn:active, .card--lift:hover, .fx-lift:hover, .event-card:hover { transform: none !important; }
}
@media print {
  .site-header, .site-footer, .action-bar, .skip-link, .flashes, .theme-toggle { display: none !important; }
  .has-js .fx-reveal:not(.is-in) { opacity: 1; transform: none; }
  body { background: #FFFFFF; }
  .card, .ticket { break-inside: avoid; }
}

/* ==========================================================================
   Area rules (pages). Since D1 they only use tokens that follow the theme.
   ========================================================================== */

/* M2 athletes ---------------------------------------------------------------
   Athlete and official pages (/club/athletes, /club/officials). */
.breadcrumb { font-size: 14px; color: var(--c-muted); margin-bottom: -8px; }
.ath-search { min-width: 200px; max-width: 320px; }
.th-sort { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.th-sort:hover { color: var(--c-text); text-decoration: underline; }
th[aria-sort="ascending"] .th-sort::after { content: " ▲"; font-size: 11px; }
th[aria-sort="descending"] .th-sort::after { content: " ▼"; font-size: 11px; }
.table .cell-person { color: var(--c-text); text-decoration: none; }
.table a.cell-person:hover strong { text-decoration: underline; }
.photo-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.photo-frame {
  width: 120px; aspect-ratio: 3 / 4; flex: none; overflow: hidden;
  border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-bg);
  display: flex; align-items: center; justify-content: center; color: var(--c-muted); font-size: 14px;
}
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* M1 auth/club --------------------------------------------------------------- */
.auth-wrap { display: flex; justify-content: center; padding-block: clamp(24px, 6vw, 48px); }
.auth-wrap > .card--auth { width: 100%; }
.list__item--block { display: block; }
.checks--stack { flex-direction: column; align-items: flex-start; }
.steps-list { margin: 0; padding-left: 20px; }
.steps-list li + li { margin-top: 4px; }
.qr { width: 200px; max-width: 100%; padding: 8px; background: var(--paper); border: 1px solid var(--c-line); border-radius: var(--r); }
.qr svg { display: block; width: 100%; height: auto; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; }
.codes code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 17px; letter-spacing: .04em; }

/* M3 events ------------------------------------------------------------------
   Start page, event page, results and organiser pages (area M3). */
.link-plain { color: inherit; text-decoration: none; }
.link-plain:hover { color: var(--c-blue-dark); text-decoration: underline; }
.hero__link { color: inherit; text-decoration: none; }
.hero__link:hover { color: inherit; text-decoration: underline; }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.how-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
/* seat plan (hero) and seat bar (list rows) */
.seatmap rect { fill: var(--c-line); }
.seatmap rect.is-free { fill: var(--c-blue); }
.seatmap .seatmap__stage { fill: var(--c-line-soft); }
.seatmap__label { fill: var(--c-muted); font-family: var(--font-body); font-size: 11px; font-weight: 500; }
.seatbar { display: block; max-width: 100%; height: auto; margin: 6px 0 4px; }
.seatbar rect { fill: var(--c-line-strong); }
.seatbar rect.is-free { fill: var(--c-blue); }
.promo-seats { display: block; width: 100%; max-width: 320px; height: auto; justify-self: end; }
.flag .flag__edge { stroke: var(--c-line); stroke-width: 0.6; }
.btn__icon--ext { width: 13px; height: 13px; }
/* this weekend */
.weekend-card { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.weekend-card__text { flex: 1 1 280px; min-width: 0; }
/* event page head */
.event-head { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(260px, 340px); gap: 24px; align-items: start; }
.event-head__date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 84px; padding: 10px 12px; border-radius: var(--r-md); background: var(--c-blue-soft); color: var(--c-blue-strong); line-height: 1; }
.event-head__day { font-family: var(--font-display); font-stretch: 70%; font-weight: 900; font-size: 40px; white-space: nowrap; }
.event-head__month { margin-top: 4px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.event-head__main { min-width: 0; }
.event-tabs { gap: 6px; }
@media (max-width: 900px) {
  .event-head { grid-template-columns: auto minmax(0, 1fr); }
  .event-head__side { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .event-head { grid-template-columns: minmax(0, 1fr); } .event-head__date { justify-self: start; } }
/* option cards (radio groups, start options) */
.option-list { display: flex; flex-direction: column; gap: 8px; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-white); cursor: pointer; }
.option input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--sel); }
.option:has(input:checked) { border-color: var(--c-blue); background: var(--c-blue-tint); }
.option__title { display: block; font-weight: 700; }
.option__text { display: block; font-size: 14px; color: var(--c-muted); }
.start-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.start-option { display: flex; flex-direction: column; gap: 4px; min-height: var(--touch); padding: 14px 16px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-white); color: var(--c-text); text-decoration: none; }
.start-option:hover { border-color: var(--c-input); color: var(--c-text); }
.start-option[aria-current="true"] { border: 2px solid var(--c-blue); background: var(--c-blue-tint); padding: 13px 15px; }
.start-option__title { font-weight: 700; }
.start-option__text { font-size: 14px; color: var(--c-muted); }
/* uploaded file row */
.file-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--c-green-soft); }
.file-row__icon { flex: none; padding: 6px 8px; border-radius: var(--r-sm); background: var(--c-white); color: var(--c-green-strong); font-weight: 700; font-size: 13px; }
.file-row__text { flex: 1 1 200px; display: flex; flex-direction: column; }
/* organiser event cards */
.org-event { display: grid; grid-template-columns: 84px minmax(0, 1.4fr) minmax(180px, 1fr) auto; gap: 12px 20px; align-items: center; }
.org-event__action { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
@media (max-width: 900px) {
  .org-event { grid-template-columns: 64px minmax(0, 1fr); }
  .org-event__places, .org-event__action { grid-column: 2; }
  .org-event__action { align-items: flex-start; text-align: left; }
}
.r-a .btn { max-width: 100%; white-space: normal; text-align: center; }
/* club status instead of "Enter" (routes::events::EnterCta): chip + "Show status" */
.cta-status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cta-status .chip, .cta-badge { white-space: normal; }
.cta-badge { align-self: center; }

/* M4 enter -------------------------------------------------------------------
   Entry flow (athletes, category plan, officials, checkout, confirmation) and My entries. */
.enter-check { width: 22px; height: 22px; accent-color: var(--sel); }
.enter-person { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; }
.enter-weight { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.enter-weight__input { width: 76px; }
/* step 2 "Choose classes": one row per athlete. Open rows: white with a blue edge and the
   selects; saved rows: tinted with a green edge, tick and the classes as text. */
.plan-progress { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding: 12px 16px; border-radius: var(--r); background: var(--c-blue-soft); color: var(--c-blue-dark); }
.plan-progress--done { background: var(--c-green-soft); color: var(--c-green-strong); }
.plan-progress__count { font-weight: 700; font-size: 17px; }
.plan-progress__text { font-size: 15px; }
.plan-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: start; padding: 14px 18px 14px 14px; border: 1px solid var(--c-line); border-left: 6px solid var(--c-blue); border-radius: var(--r-md); background: var(--c-white); scroll-margin-top: 16px; }
.plan-row:focus { outline: none; }
.plan-row:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.plan-row--saved, .plan-row--entered { background: var(--c-bg); border-left-color: var(--c-green); }
.plan-row.is-editing:not(.plan-row--open) { background: var(--c-white); border-left-color: var(--c-blue); }
.plan-row__who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.plan-row__person { flex: 1 1 auto; min-width: 0; }
.plan-row__person { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
.plan-row__links { margin-left: auto; }
.plan-row__name { font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.plan-row__sub { font-size: 14px; color: var(--c-muted); }
.plan-row__status { line-height: 1; }
.plan-row__links { display: flex; flex-wrap: wrap; gap: 0 14px; font-size: 14px; }
.plan-row__links a, .plan-row__links .link-button { display: inline-flex; align-items: center; min-height: 32px; }
.plan-row__tick { font-weight: 900; }
.plan-row__body { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; min-width: 0; }
.plan-row__form { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; flex: 1 1 100%; min-width: 0; }
.plan-row__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.plan-row__chosen { margin: 0; flex: 999 1 420px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 16px; }
.plan-row__chosen dt { font-size: 13px; color: var(--c-muted); }
.plan-row__chosen dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.plan-aside .btn { white-space: normal; text-align: center; height: auto; padding-top: 8px; padding-bottom: 8px; }
.plan-row__note { flex-basis: 100%; font-size: 14px; color: var(--c-muted); }
.plan-row__saved { flex-basis: 100%; }
.plan-row__saved:focus { outline: var(--focus-ring); outline-offset: 2px; }
/* the three selects (step 2 rows and "Change" in My entries) */
.class-pick { flex: 999 1 480px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 10px 14px; }
.class-pick .label { font-size: 14px; }
.class-pick__warn { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; }
.class-pick__warn:not(:has(> :not([hidden]))) { display: none; }
.class-pick__error { flex-basis: 100%; }
.class-pick__warn [hidden] { display: none !important; }
.form .class-pick { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) {
  .class-pick { grid-template-columns: minmax(0, 1fr); flex-basis: 100%; }
}
@media (max-width: 560px) {
  .plan-row { padding: 14px 14px 16px 12px; }
  .plan-row__chosen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-row__chosen > div:first-child { grid-column: 1 / -1; }
  .plan-row__actions { width: 100%; }
  .plan-row__actions .btn:not(.btn--link), .plan-row__actions .inline-form { flex: 1 1 140px; }
  .plan-row__actions .inline-form .btn { width: 100%; }
}
/* lines with name and class below each other (review and confirm, basket) */
.list__text .cell-sub, .list__item .cell-sub { display: block; font-size: 14px; color: var(--c-muted); }
/* checkout total */
.pay-sum { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pay-sum > div { display: flex; justify-content: space-between; gap: 12px; }
.pay-sum dt { color: var(--c-text-soft); }
.pay-sum dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 700; }
.pay-sum__total { border-top: 1px solid var(--c-line); padding-top: 10px; }
.pay-sum__total dt, .pay-sum__total dd { font-size: 20px; font-weight: 800; color: var(--c-text); }
.pay-accept { align-items: flex-start; }
/* confirmation tickets */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.ticket__qr { display: block; }
/* My entries */
.my-actions { justify-content: flex-end; gap: 6px 14px; }
@media (max-width: 720px) { .my-actions { justify-content: flex-start; } }
/* My entries on phones: every row becomes a card, no sideways scrolling (QA 2026-11-16, V-M6). */
@media (max-width: 760px) {
  .me-table { min-width: 0; }
  .me-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .me-table, .me-table tbody, .me-table tr, .me-table td { display: block; width: 100%; }
  .me-table tr { padding: 10px 0; border-top: 1px solid var(--c-line); }
  .me-table tbody tr td { border: 0; padding: 3px 0; text-align: left; }
  .me-table td[data-label] { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 2px 10px; align-items: start; justify-items: start; }
  .me-table td[data-label] > .cell-sub { grid-column: 2; }
  .me-table td[data-label]::before { content: attr(data-label); font-size: 13px; font-weight: 700; color: var(--c-muted); padding-top: 2px; }
  .me-table td.num { text-align: left; }
  .me-table td.me-table__none { display: none; }
  .me-table td.cell-actions { padding-top: 8px; }
  .me-table td.cell-actions:empty { display: none; }
}
/* Documents to sign (sign page, club and organiser lists) */
.sig-pad { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sig-pad__canvas { width: 100%; max-width: 520px; aspect-ratio: 10 / 3; height: auto; border: 1px dashed var(--c-input); border-radius: var(--r); background: var(--paper); touch-action: none; cursor: crosshair; }
.sig-svg { display: block; width: 200px; max-width: 100%; height: auto; border-bottom: 1px solid var(--c-line); background: var(--paper); border-radius: var(--r-xs); }
.docs-block { flex-basis: 100%; }
.docs-lines { list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; }
.docs-lines li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 2px 0; }
/* Organiser tables inside a flush card ("Clubs and approvals", "Payments", "Documents") */
.card--flush > .card__head { padding: 16px 20px 0; }
.card--flush > p, .card--flush > .notice { margin: 0 20px 16px; }
.card--flush .table th:first-child, .card--flush .table td:first-child { padding-left: 20px; }
.card--flush .table th:last-child, .card--flush .table td:last-child { padding-right: 20px; }
.table th.cell-num { font-family: inherit; font-stretch: normal; font-weight: 500; font-size: 14px; }
.cell-actions .actions-row { display: flex; flex-wrap: nowrap; gap: 6px; justify-content: flex-end; align-items: flex-start; }
.cell-actions .actions-row details[open] { white-space: normal; min-width: 240px; }
.cell-actions .actions-row details { text-align: left; }
.card--flush > .docs-pills { margin-left: 20px; margin-right: 20px; }
/* Results, club tournaments and archive (docs/ERGEBNISSE-ARCHIV.md) */
.result-classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.result-list { list-style: none; margin: 0; padding: 0; }
.result-list__item { display: flex; gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--c-line-soft); }
.result-list__item:first-child { border-top: 0; }
.result-list__name { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.result-list__name .cell-sub { font-size: 14px; color: var(--c-muted); }
.tour-actions { align-items: flex-start; }
.tour-action--off { display: inline-flex; flex-direction: column; gap: 2px; max-width: 220px; }
.tour-action--off .btn { opacity: .65; cursor: not-allowed; }
.stamp-preview { display: block; max-width: 180px; max-height: 90px; border: 1px dashed var(--c-line); border-radius: var(--r); background: var(--paper); }
/* Turniertag live (club live page, phone first; templates/live/) */
.live-list { list-style: none; margin: 0; padding: 0; }
.live-athlete, .live-doc { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--c-line-soft); }
.live-athlete:first-child, .live-doc:first-child { border-top: 0; }
.live-athlete__main { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.live-num { flex: 0 0 auto; min-width: 52px; height: 44px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); background: var(--brand-soft); color: var(--brand-ink); font-family: var(--font-display); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; }
.live-num--none { background: var(--c-surface-2); color: var(--c-text-soft); }
.live-feed__item { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--c-line-soft); }
.live-feed__item:first-child { border-top: 0; }
.live-feed__item--new { font-weight: 600; }
@media (max-width: 560px) { .live-page .card--sm { padding: 12px 14px; } }
.live-athlete { align-items: flex-start; }
.results-table td:nth-child(3) { min-width: 170px; }
.results-table td:nth-child(5) { min-width: 220px; }
/* Entry periods with fees (templates/org/_fee_periods.html, templates/event/_fee_periods.html, templates/enter/_fee_notice.html) */
.fee-table .input--sm { width: 100%; min-width: 7rem; }
.fee-table td, .fee-table th[scope="row"] { vertical-align: top; }
.fee-table__head { font-weight: 600; color: var(--c-text-soft); padding-top: 18px; white-space: nowrap; }
.fee-table__row--error { background: var(--c-red-soft); }
.fee-table .check { min-height: 36px; }
/* The settings column is narrow (sidebar): each period is a card with a grid of fields. */
@media (max-width: 1500px) {
  .fee-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fee-table, .fee-table tbody, .fee-table td, .fee-table th[scope="row"] { display: block; width: 100%; }
  .fee-table tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 16px; border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 12px; }
  .fee-table th[scope="row"] { grid-column: 1 / -1; padding-top: 0; }
  .fee-table td, .fee-table th[scope="row"] { border: 0; padding: 0; }
  .fee-table td:first-child, .fee-table th:first-child { padding-left: 0; }
  .fee-table td::before { content: attr(data-label); display: block; font-size: 14px; color: var(--c-muted); }
  .fee-table tbody tr:last-child td { border-bottom: 0; }
}
.fee-periods .is-running { background: var(--c-blue-tint); font-weight: 600; }
.fee-periods .is-past { color: var(--c-muted); }
.fee-periods .is-past .fee-periods__strike { text-decoration: line-through; }
.fee-notice { margin: 0; }
.fee-periods th[scope="row"] { color: var(--c-text); font-size: 15px; font-weight: 500; padding: 12px 8px 12px 0; border-top: 1px solid var(--c-line-soft); }
.fee-table .fee-table__check { align-self: end; }
.fee-periods tbody tr:last-child th[scope="row"] { border-bottom: 1px solid var(--c-line-soft); }

/* athlete area: one upcoming start (number + card, lists, history) */
.ath-start { margin-top: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--c-bg); display: grid; gap: 4px; }
.ath-start__number { font-weight: 700; }
.ath-sub { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--c-text-soft); }
.ath-links { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ath-links a { display: inline-flex; align-items: center; min-height: 32px; }
.ath-feed { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ath-feed li { display: grid; grid-template-columns: minmax(0, 12.5em) minmax(0, 1fr); gap: 4px 12px; padding-top: 6px; border-top: 1px solid var(--c-line-soft); }
.ath-feed li:first-child { border-top: 0; padding-top: 0; }
.ath-feed__at { color: var(--c-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .ath-feed li { grid-template-columns: minmax(0, 1fr); } }

/* 17 Athlete area "My area" (/athlete, docs/SPORTLER-KONTO.md "Aufbau ‚Mein Bereich‘") and fight
      numbers (club live page too). Phone first: weigh-in full width, start number and next fight
      side by side, three in a row from 760 px. Agent L, 2026-11-15. */
:root {
  /* medals of the achievements: since D1 (2026-11-17) .medal in section 17; these stay for old rules */
  --c-gold-soft: #FFF4C2;  --c-gold-line: #C99A00;  --c-gold-text: #6B4E00;
  --c-silver-soft: #EEF0F3; --c-silver-line: #9AA0A6; --c-silver-text: #3C4043;
  --c-bronze-soft: #F6E3D3; --c-bronze-line: #B26A34; --c-bronze-text: #7A3E12;
}
.area-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.area-switch { flex-wrap: wrap; margin-bottom: 14px; }
.area-switch__role { font-weight: 400; }
.area-person { margin: 0 0 18px; font-size: 18px; overflow-wrap: anywhere; }
.area-section { margin-bottom: 40px; }
.area-section--last { margin-bottom: 8px; }
.area-section > .h-section { margin-bottom: 12px; }
.area-event { display: grid; gap: 18px; padding: 18px; }
.area-event__name { margin: 0; font-family: var(--font-display); font-stretch: 90%; font-weight: 800; font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.area-event__name a { color: var(--c-text); text-decoration: none; }
.area-event__name a:hover { text-decoration: underline; }
.area-facts { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.area-fact--weigh { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .area-facts { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
  .area-fact--weigh { grid-column: auto; }
}
.area-fact { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-white); }
.area-fact__label { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-muted); }
.area-fact__value { font-family: var(--font-display); font-stretch: 85%; font-weight: 800; font-size: 22px; line-height: 1.15; color: var(--c-text); overflow-wrap: anywhere; }
.area-fact__value--big { font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--c-blue-strong); }
.area-fact__value--none { color: var(--c-muted); }
.area-fact__sub { font-size: 14px; color: var(--c-text-soft); overflow-wrap: anywhere; }
.area-weigh { display: flex; align-items: center; gap: 10px; }
.area-weigh__icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; line-height: 1; }
.area-fact--passed { border: 2px solid var(--c-green); background: var(--c-green-soft); }
.area-fact--passed .area-weigh__icon { background: var(--ok-fill); color: var(--on-fill); }
.area-fact--passed .area-fact__value { color: var(--c-green-strong); }
.area-fact--failed { border: 2px solid var(--c-red); background: var(--c-red-soft); }
.area-fact--failed .area-weigh__icon { background: var(--danger-fill); color: var(--on-fill); }
.area-fact--failed .area-fact__value, .area-fact--failed .area-fact__sub { color: var(--c-red-strong); }
.area-fact--open .area-weigh__icon { border: 2px dashed var(--c-line-strong); color: var(--c-muted); }
.area-classes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.area-classes li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.area-card .btn { min-height: var(--touch); }
@media (max-width: 560px) { .area-card .btn { width: 100%; } .area-event { padding: 14px; } }
.area-history summary { cursor: pointer; font-weight: 700; color: var(--c-blue); min-height: var(--touch); display: flex; align-items: center; }
.area-compact .list__item { align-items: center; }
.bout-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bout-list--area { gap: 8px; }
.bout-list--area .bout-list__item { padding-top: 8px; border-top: 1px solid var(--c-line-soft); }
.bout-list--area .bout-list__item:first-child { border-top: 0; padding-top: 0; }
.bout-list__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.bout-no { font-weight: 800; font-variant-numeric: tabular-nums; }
.bout-list__item--next .bout-no { color: var(--c-blue-strong); }
.bout-list__item--done { color: var(--c-muted); }
.bout-list__item--done .bout-no { text-decoration: line-through; }
.achv-list { gap: 0; }
.achv { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--c-line-soft); }
.achv:first-child { border-top: 0; }
.achv__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.achv__place { font-family: var(--font-display); font-stretch: 85%; font-weight: 800; font-size: 19px; line-height: 1.2; }
.achv__medal { font-weight: 700; }
.achv__files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
/* Competition day: QR of the accreditation first on the page (white quiet zone, large, scannable). */
.daypass { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 auto 22px; padding: 16px; max-width: 420px; border: 2px solid var(--c-blue); border-radius: var(--r-lg); background: var(--c-white); text-align: center; }
.daypass__event { margin: 0; font-size: 14px; font-weight: 700; color: var(--c-text-soft); overflow-wrap: anywhere; }
.daypass__qr { display: block; width: 100%; max-width: 300px; height: auto; border-radius: var(--r-sm); background: var(--paper); }
.daypass__function { margin: 12px 0; font-family: var(--font-display); font-stretch: 85%; font-weight: 850; font-size: 34px; line-height: 1.1; color: var(--c-blue-strong); }
.daypass__name { margin: 0; font-family: var(--font-display); font-stretch: 90%; font-weight: 800; font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.daypass__number { margin: 0 0 6px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.area .chip { white-space: normal; }
/* Kampfweg (fight path) per athlete – club live page and /athlete (templates/live/_fights.html,
   _club_content.html; like the TP4 print "Kampfnummern pro Team"). Phone first: the row wraps, the
   fights are a row of small boxes. Corner = coloured box AND letter B/R; lost = X; dashed = possible. */
.fp-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.fp-card__head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.fp-day { margin: 14px -14px 0; padding: 6px 14px; background: var(--c-surface-2); font-size: 14px; font-weight: 800; letter-spacing: 0.02em; color: var(--c-text); }
.fp-list { list-style: none; margin: 0; padding: 0; }
.fp-athlete { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--c-line-soft); }
.fp-athlete:first-child { border-top: 0; }
.fp-athlete--inactive { color: var(--c-muted); }
.fp-athlete__main { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.fp-athlete__main p { margin: 0; }
.fp-athlete__name { font-size: 17px; }
.fp-athlete__class { font-size: 14px; color: var(--c-text-soft); }
.fp-weigh { display: flex; align-items: flex-start; gap: 7px; font-size: 14px; font-weight: 700; }
.fp-weigh__icon { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; line-height: 1; }
.fp-weigh__detail { font-weight: 400; }
.fp-weigh--passed { color: var(--c-green-strong); }
.fp-weigh--passed .fp-weigh__icon { background: var(--ok-fill); color: var(--on-fill); }
.fp-weigh--failed { color: var(--c-red-strong); }
.fp-weigh--failed .fp-weigh__icon { background: var(--danger-fill); color: var(--on-fill); }
.fp-weigh--open, .fp-weigh--none { color: var(--c-muted); }
.fp-weigh--open .fp-weigh__icon, .fp-weigh--none .fp-weigh__icon { border: 2px dashed var(--c-line-strong); }
.fp-path { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fp-bout { position: relative; display: flex; flex-direction: column; gap: 1px; min-width: 66px; padding: 5px 8px 4px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-white); line-height: 1.15; }
.fp-bout__no { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.fp-bout__round { font-size: 12px; font-weight: 600; color: var(--c-muted); }
.fp-bout__tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--c-blue-strong); }
.fp-corner { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 4px; font-size: 12px; font-weight: 800; color: var(--on-fill); }
.fp-corner--blue { background: var(--chung-fill); }
.fp-corner--red { background: var(--hong-fill); }
.fp-bout__x { margin-left: 2px; font-size: 17px; font-weight: 900; color: var(--c-red-strong); }
.fp-bout__won { margin-left: 2px; font-size: 14px; font-weight: 800; color: var(--c-green-strong); }
.fp-bout--won, .fp-bout--done { background: var(--c-bg); }
.fp-bout--lost { border-color: var(--c-red); background: var(--c-red-soft); }
.fp-bout--next { border: 2px solid var(--c-blue); background: var(--c-blue-soft); padding: 4px 7px 3px; }
.fp-bout--possible { border-style: dashed; border-color: var(--c-line-strong); }
.fp-bout--possible .fp-bout__tag { color: var(--c-muted); }
.fp-next { font-size: 14px; font-weight: 600; color: var(--c-blue-strong); }
.fp-hint { font-size: 14px; color: var(--c-text-soft); }
.fp-live-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.fp-live-cta p { margin: 0; }
.fp-emergency > summary { cursor: pointer; font-weight: 700; min-height: var(--touch); display: flex; align-items: center; }
.fp-jump { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; font-weight: 600; }
.fp-jump a { display: inline-flex; align-items: center; min-height: 32px; }

/* Result files (PDF) per event, Teil 9 (templates/results/_files_public.html, _files_org.html) */
.rfiles { list-style: none; margin: 0; padding: 0; }
.rfile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 0; border-top: 1px solid var(--c-line-soft); }
.rfile:first-child { border-top: 0; }
.rfile__icon { flex: 0 0 auto; width: 40px; height: 48px; border-radius: var(--r-sm); background: var(--c-red-soft); color: var(--c-red-strong); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; display: inline-flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.rfile__text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.rfile__title { font-weight: 700; font-size: 17px; }
.rfile__meta { font-size: 14px; color: var(--c-muted); }
.rfile__actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
@media (max-width: 520px) { .rfile__actions { flex: 1 1 100%; padding-left: 54px; } }
.rf-groups { display: flex; flex-direction: column; gap: 18px; }
.rf-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.rf-group__head .cell-sub { flex-basis: 100%; }
.rf-vlabel { display: none; }
@media (max-width: 640px) {
  .rf-group .table-wrap { overflow: visible; }
  .rf-group .table { min-width: 0; }
  .rf-group .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rf-group .table, .rf-group .table tbody { display: block; }
  .rf-group .table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--c-line-soft); }
  .rf-group .table tbody tr td { display: block; padding: 0; border: 0; }
  .rf-group .table td.nowrap, .rf-group .table td.cell-actions { flex-basis: 100%; }
  .rf-group .table td.cell-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .rf-vlabel { display: inline; }
}

/* My entries: menu of one tournament, at the top of its card (Benjamin 2026-11-15); D1: pill look
   of the design (white pill with frame, hover navy edge, current = filled ink). */
.event-menu { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.event-menu a {
  display: inline-flex; align-items: center; gap: 10px; min-height: var(--touch); padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  color: var(--ink); font-weight: 700; text-decoration: none;
  transition: border-color var(--dur) ease, transform .18s var(--ease), background-color var(--dur) ease;
}
.event-menu a:hover { border-color: var(--brand-ink); color: var(--ink); transform: translateY(-1px); }
.event-menu a[aria-current="page"], .event-menu a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.event-menu a svg { width: 18px; height: 18px; flex: none; }
.event-menu__count { font-weight: 500; font-size: 13px; color: var(--ink-2); }
.event-menu a[aria-current] .event-menu__count { color: inherit; opacity: .85; }

/* Public list "Fight numbers" /events/{slug}/fights (Agent S). Rows reuse the fight path (.fp-*). */
.fpub-event { display: block; font-size: 0.62em; font-weight: 750; overflow-wrap: anywhere; }
.fpub-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.fpub-bar p { margin: 0; }
.fpub-filter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.fpub-filter .field { gap: 4px; }
.fpub-filter__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.fpub-filter__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
@media (min-width: 760px) {
  .fpub-filter { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; align-items: end; }
}
.fpub-club { font-weight: 700; color: var(--c-text); }
/* Discipline sign in the head of the start page highlight and the event page. */
.disc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

/* Organiser "Entries" and "Categories" (/org/events/{id}/entries|categories, Agent T). */
.oe-filter { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 12px; align-items: end; }
.oe-filter .field { gap: 4px; min-width: 0; }
.oe-filter .select { width: 100%; }
.oe-filter__q { grid-column: 1 / -1; }
.oe-filter__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.oe-summary { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.oe-summary a[aria-current] { font-weight: 700; }
.oe-checks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; font-size: 13px; line-height: 1.35; }
.oe-checks li { padding-left: 10px; border-left: 3px solid var(--c-line); }
.oe-checks .oe-check--error { border-color: var(--c-red); color: var(--c-red-strong); }
.oe-checks .oe-check--warn { border-color: var(--c-yellow-text); color: var(--c-yellow-text); }
.oe-checks .oe-check--info { color: var(--c-muted); }
.oe-table { min-width: 760px; }
.oe-table td:nth-child(1) { min-width: 9em; }
.oe-table td:nth-child(4) { min-width: 11em; }
.oe-table th, .oe-table td { padding-left: 6px; padding-right: 6px; }
.oe-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.oe-cat { display: inline-flex; align-items: flex-start; gap: 6px; }
.oe-disc { flex: none; display: inline-flex; padding-top: 3px; }
.oe-disc .disc-icon { max-width: none; }
.oe-disc .disc-icon__sign { width: 16px; height: 16px; }
.oe-disc .disc-icon__word { display: none; }
.oe-sort { color: inherit; font-weight: 700; }
.oe-table th[aria-sort="ascending"] .oe-sort::after { content: " ▲"; }
.oe-table th[aria-sort="descending"] .oe-sort::after { content: " ▼"; }
.oe-table td { vertical-align: top; }
.oe-actions { position: relative; }
.oe-actions > summary { list-style: none; }
.oe-actions > summary::-webkit-details-marker { display: none; }
.oe-actions__body { display: grid; gap: 6px; margin-top: 6px; }
.oe-limit { width: 6em; }
.oe-empty { padding: 16px; }
@media (max-width: 760px) {
  .oe-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .oe-table, .oe-table tbody, .oe-table tr, .oe-table td { display: block; width: 100%; min-width: 0; }
  .oe-table td:nth-child(1), .oe-table td:nth-child(4) { min-width: 0; }
  .oe-table tr { padding: 12px 16px; border-top: 1px solid var(--c-line); }
  .oe-table tbody tr td, .card--flush .oe-table tbody tr td:first-child, .card--flush .oe-table tbody tr td:last-child, .card--flush .oe-table tbody tr:last-child td { border: 0; padding: 3px 0; text-align: left; }
  .oe-table td[data-label] { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 0 10px; align-items: start; }
  .oe-table td[data-label]::before { content: attr(data-label); font-size: 13px; font-weight: 700; color: var(--c-muted); padding-top: 2px; }
  .oe-table td:first-child { display: block; }
  .oe-table td:first-child::before { display: none; }
  .oe-table td.cell-actions { padding-top: 8px; }
}
.ocat-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--c-text-soft); }
.ocat-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.occ-swatch { display: inline-block; width: 18px; height: 18px; border-radius: var(--r-xs); border: 1px solid var(--c-line); }
.ocat-block .h-card { margin: 0; }
.ocat-scroll { margin-top: 10px; position: relative; }
.ocat-grid { border-collapse: separate; border-spacing: 4px; font-size: 14px; }
.ocat-grid th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--c-white); text-align: left; padding: 4px 10px 4px 0; font-weight: 700; white-space: nowrap; }
.ocat-grid td { padding: 0; }
.occ {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  position: relative; min-width: 62px; min-height: var(--touch); padding: 4px 6px; border-radius: var(--r-sm);
  text-decoration: none; line-height: 1.2; text-align: center; border: 2px solid transparent;
}
.occ:hover { text-decoration: none; border-color: var(--c-text); }
.occ__w { font-size: 12px; white-space: nowrap; }
.occ__n { font-size: 17px; font-weight: 800; }
.occ__wl, .occ__max { font-size: 11px; font-weight: 700; white-space: nowrap; }
.occ--0 { background: var(--c-surface-2); color: var(--c-muted); }
.occ--1 { background: var(--c-red-soft); color: var(--c-red-strong); border-color: var(--c-red); }
.occ--2 { background: var(--c-blue-soft); color: var(--c-blue-strong); }
.occ--3 { background: var(--c-blue-line); color: var(--c-blue-dark); }
.occ--4 { background: var(--brand); color: var(--on-fill); }
.occ--5 { background: var(--brand-ink-strong); color: var(--bg); }
.occ--full { outline: 2px dashed var(--c-yellow-text); outline-offset: 1px; }
.occ-swatch.occ--1 { border-color: var(--c-red); }
.ocat-wl { color: var(--c-yellow-text); font-weight: 700; }
.ocat-ones { margin: 0; padding-left: 20px; columns: 2 260px; }

/* QA O-K9 (Agent X): on phones the event and admin menus become compact wrapping pills, so the
   content starts near the top; the payments table becomes cards (like the entries table). */
@media (max-width: 900px) {
  .sidenav--compact { flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 8px; }
  .sidenav--compact .sidenav__head { flex: 0 0 100%; margin-bottom: 2px; padding: 4px 6px 8px; }
  .sidenav--compact a.sidenav__link { min-height: var(--touch); padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; }
  .sidenav--compact a.sidenav__link[aria-current="page"] { border-color: var(--brand-ink); }
  .sidenav--compact a.sidenav__link[aria-current="page"]::before { display: none; }
}
@media (max-width: 760px) {
  .pay-table { min-width: 0; }
  .pay-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pay-table, .pay-table tbody, .pay-table tr, .pay-table td { display: block; width: 100%; }
  .pay-table tr { padding: 12px 16px; border-top: 1px solid var(--c-line); }
  .pay-table tbody tr td, .card--flush .pay-table tbody tr td:first-child, .card--flush .pay-table tbody tr td:last-child, .card--flush .pay-table tbody tr:last-child td { border: 0; padding: 3px 0; text-align: left; }
  .pay-table td[data-label] { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 0 10px; align-items: start; }
  .pay-table td[data-label]::before { content: attr(data-label); font-size: 13px; font-weight: 700; color: var(--c-muted); padding-top: 2px; }
  .pay-table td.cell-actions { padding-top: 8px; }
  .pay-table td.cell-actions .cluster { flex-wrap: wrap; }
}
/* QA O2-K1 (2026-11-17): on phones long button texts in a row ("Diesen Upload übernehmen und
   veröffentlichen") wrap instead of running over the edge (.site has overflow-x: hidden). */
@media (max-width: 480px) {
  .cluster > .inline-form { max-width: 100%; }
  .cluster .btn { white-space: normal; text-align: center; max-width: 100%; }
  .cell-actions .actions-row { flex-wrap: wrap; justify-content: flex-start; }
}

/* QA 2026-11-17 V2-K9 (Agent G1): the athletes list on phones – every row a card, all columns
   (also "Documents") readable without sideways scrolling, like "My entries". */
@media (max-width: 760px) {
  .ath-table { min-width: 0; }
  .ath-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ath-table, .ath-table tbody, .ath-table tr, .ath-table td { display: block; width: 100%; }
  .ath-table tr { padding: 10px 12px; border-top: 1px solid var(--c-line); }
  .ath-table tbody tr td { border: 0; padding: 3px 0; text-align: left; }
  .ath-table td[data-label] { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 2px 10px; align-items: start; justify-items: start; }
  .ath-table td[data-label]::before { content: attr(data-label); font-size: 13px; font-weight: 700; color: var(--c-muted); padding-top: 2px; }
  .ath-table td.cell-actions { padding-top: 8px; }
}
/* QA 2026-11-17 S2-M2 (Agent G1): "delete my account" – every line under a name on its own row,
   and room between breadcrumb and heading (the breadcrumb pulls the next element up by 8px). */
.delete-list .cell-sub { display: block; font-size: 14px; }
.breadcrumb.delete-crumb { margin-bottom: 8px; }
.delete-list .cell-sub.text-danger { color: var(--c-red-strong); }
