/* Self-hosted fonts (no Google request from visitors). SIL Open Font License, see /assets/fonts/LICENSE-*.txt */
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/inter-latin-400-normal.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:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/inter-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/inter-latin-500-normal.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:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/inter-latin-ext-500-normal.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/inter-latin-600-normal.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:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/inter-latin-ext-600-normal.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/inter-latin-700-normal.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:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/inter-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/space-grotesk-latin-500-normal.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:"Space Grotesk";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/space-grotesk-latin-ext-500-normal.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/space-grotesk-latin-700-normal.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:"Space Grotesk";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/space-grotesk-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}

/* =====================================================================
   TouchCircuit — site stylesheet  (prototype v0.1)
   One plain CSS file. No build step, no framework.
   Order: 1 tokens · 2 base · 3 layout · 4 brand · 5 controls ·
          6 list · 7 tournament page · 8 forms · 9 embed builder ·
          10 admin · 11 mock (future features) · 12 utilities

   Theming
   - Put class="tc" on <body> (or any wrapper).
   - data-theme="light" | "dark" on <html> or the wrapper forces a theme;
     no attribute = follows the device (prefers-color-scheme).
   - Fonts: Space Grotesk (headings) + Inter (body), both optional:
     every stack falls back to system fonts.
   - Responsive rules use container queries on .tc, so the same markup
     works in a full page, a narrow column or a preview frame.
   ===================================================================== */

/* ---------- 1. Tokens ------------------------------------------------ */
:root {
  /* type */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --fs-xs: 0.8125rem;  /* 13 — smallest text anywhere */
  --fs-sm: 0.875rem;   /* 14 */
  --fs-md: 1rem;       /* 16 */
  --fs-lg: 1.125rem;   /* 18 */
  --fs-xl: 1.375rem;   /* 22 */
  --fs-2xl: 1.75rem;   /* 28 */
  --fs-3xl: 2.25rem;   /* 36 */
  --fs-4xl: 3rem;      /* 48 */

  /* space (4-pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;

  /* shape */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;
  --tap: 44px;               /* minimum tap target */
  --maxw: 1200px;
}

:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #F7F6F2;             /* off-white base */
  --surface: #FFFFFF;
  --surface-2: #EEEDE7;
  --ink: #14181F;            /* dark slate */
  --ink-2: #3D4552;          /* secondary text  9.6:1 */
  --ink-3: #5A6372;          /* tertiary text   5.6:1 */
  --line: #DCDAD2;
  --line-strong: #9EA4AE;    /* input borders   3:1+ */
  --link: #14181F;

  --accent: #FF5533;         /* electric coral — FILL ONLY: Register, upcoming, featured */
  --accent-hover: #FF6E50;
  --on-accent: #14181F;      /* text on coral  5.6:1 */
  --accent-text: #C2300F;    /* coral as text on light  5.2:1 */
  --accent-soft: #FFE6DE;

  --past: #6E7A8C;           /* muted dusk — past events */
  --past-text: #566173;
  --past-soft: #E4E7EC;

  --ok: #17703A;   --on-ok: #FFFFFF;   --ok-soft: #E2F2E7;
  --warn-text: #8A5300;                --warn-soft: #FFF0D2;
  --danger: #B42318;                   --danger-soft: #FDE7E4;
  --focus: #1F5FD6;

  /* date block */
  --db-bg: #14181F; --db-ink: #FFFFFF; --db-month: #FF6A4D; --db-sub: #C5CAD3;

  --mock-stripe: rgba(20, 24, 31, 0.05);
  --shadow-sm: 0 1px 2px rgba(20, 24, 31, 0.06);
  --shadow: 0 1px 2px rgba(20, 24, 31, 0.06), 0 6px 20px rgba(20, 24, 31, 0.07);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1116;
  --surface: #171B22;
  --surface-2: #222833;
  --ink: #F2F1EC;
  --ink-2: #C9CED6;
  --ink-3: #9AA3B0;
  --line: #2D343F;
  --line-strong: #5B6472;
  --link: #F2F1EC;

  --accent: #FF6B4D;
  --accent-hover: #FF8366;
  --on-accent: #14181F;
  --accent-text: #FF8F78;
  --accent-soft: #3A1F19;

  --past: #8994A6;
  --past-text: #A3ACBA;
  --past-soft: #232933;

  --ok: #6BD48F;   --on-ok: #0E1116;   --ok-soft: #16301F;
  --warn-text: #F5C46E;                --warn-soft: #382A10;
  --danger: #FF8A80;                   --danger-soft: #3A1C1A;
  --focus: #8AB4FF;

  --db-bg: #262C36; --db-ink: #F2F1EC; --db-month: #FF8F78; --db-sub: #A3ACBA;

  --mock-stripe: rgba(255, 255, 255, 0.04);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E1116; --surface: #171B22; --surface-2: #222833;
    --ink: #F2F1EC; --ink-2: #C9CED6; --ink-3: #9AA3B0;
    --line: #2D343F; --line-strong: #5B6472; --link: #F2F1EC;
    --accent: #FF6B4D; --accent-hover: #FF8366; --on-accent: #14181F;
    --accent-text: #FF8F78; --accent-soft: #3A1F19;
    --past: #8994A6; --past-text: #A3ACBA; --past-soft: #232933;
    --ok: #6BD48F; --on-ok: #0E1116; --ok-soft: #16301F;
    --warn-text: #F5C46E; --warn-soft: #382A10;
    --danger: #FF8A80; --danger-soft: #3A1C1A; --focus: #8AB4FF;
    --db-bg: #262C36; --db-ink: #F2F1EC; --db-month: #FF8F78; --db-sub: #A3ACBA;
    --mock-stripe: rgba(255, 255, 255, 0.04);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- 2. Base -------------------------------------------------- */
.tc {
  container: tc / inline-size;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:where(.tc) *, :where(.tc) *::before, :where(.tc) *::after { box-sizing: border-box; }
:where(.tc) :is(h1, h2, h3, h4) {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}
:where(.tc) :is(p, ul, ol, dl, dd, figure) { margin: 0; }
:where(.tc) a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
:where(.tc) a:hover { text-decoration-thickness: 2.5px; }
.tc :focus-visible,
.tc .is-focus { outline: 3px solid var(--focus); outline-offset: 2px; }
:where(.tc) :is(time, .num) { font-variant-numeric: tabular-nums; }
:where(.tc) img { display: block; max-width: 100%; }
.icon {
  width: 1.25em; height: 1.25em; flex: none; display: inline-block;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 3. Layout ------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-4); }
@container tc (min-width: 720px) { .container { padding-inline: var(--s-6); } }


.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); min-height: 64px;
}
.site-nav { display: flex; align-items: center; gap: var(--s-2); }
.site-nav .navlink { display: none; }
.site-nav .navlink.navlink--acct { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-2); font-weight: 600; text-decoration: none; }
@container tc (min-width: 720px) {
  .site-nav .navlink {
    display: inline-flex; align-items: center; min-height: var(--tap);
    padding: 0 var(--s-3); font-weight: 600; text-decoration: none; border-radius: var(--r-md);
  }
  .site-nav .navlink:hover { background: var(--surface-2); }
  .site-nav .navlink[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
}

.site-footer {
  border-top: 1px solid var(--line); margin-top: var(--s-7);
  padding-block: var(--s-6); font-size: var(--fs-sm); color: var(--ink-3);
}
.site-footer__inner { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); }
.site-footer a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: var(--tap); }

.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.page-title { font-size: var(--fs-2xl); }
@container tc (min-width: 720px) { .page-title { font-size: var(--fs-3xl); } }
.lede { font-size: var(--fs-lg); color: var(--ink-2); max-width: 60ch; }
.eyebrow {
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-3);
}

/* ---------- 4. Brand ------------------------------------------------- */
.logo {
  display: inline-flex; align-items: center; min-height: var(--tap);
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1;
}
.logo:hover { text-decoration: none; }
/* Logo mark = "Long pass": a swing that thickens into a touch ball.
   The ball's seam is a mask, so it stays a ball in one colour.
   Two-colour: trail = currentColor, ball = --accent.
   One-colour: add .logo--mono (or set --mark-acc: currentColor).
   Ball detail by rendered mark size: stitches >= 64px, seam 24-64px,
   heavy trail + thick seam < 24px (headers, favicons).
   Note: mask ids must be unique per page; inline once per page, or use a <symbol>. */
.logo__c {
  width: 0.8em; height: 0.8em; margin: 0 0.05em 0 0.05em;
  overflow: visible; flex: none; position: relative; top: -0.01em;
}
.logo__trail { fill: currentColor; }
.logo__ball { fill: var(--mark-acc, var(--accent)); }
.logo--mono { --mark-acc: currentColor; }
/* legacy (round-1 mark, archive only) */
.logo__track { fill: none; stroke: currentColor; stroke-width: 13; stroke-linecap: round; }
.logo__dot { fill: var(--accent); }
.logo--mono .logo__dot { fill: currentColor; }
.app-icon {
  display: grid; place-items: center; width: 64px; height: 64px;
  border-radius: 22%; background: var(--db-bg); color: var(--db-ink);
}
.app-icon svg { width: 62%; height: 62%; overflow: visible; }

/* ---------- 5. Controls: buttons, chips, badges, switch ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap); padding: 10px 18px;
  border: 2px solid transparent; border-radius: var(--r-md);
  font: 600 var(--fs-md)/1.2 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .12s, border-color .12s;
}
a.btn { text-decoration: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); }      /* Register / main call */
.btn--primary:hover { background: var(--accent-hover); }
.btn--ink { background: var(--ink); color: var(--bg); }                     /* site actions */
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--surface-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ok { background: var(--ok); color: var(--on-ok); }
.btn--danger-ghost { background: transparent; color: var(--danger); border-color: currentColor; }
.btn--lg { min-height: 56px; padding: 14px 24px; font-size: var(--fs-lg); border-radius: 12px; }
.btn--block { width: 100%; }
.btn--icon { padding: 0; width: var(--tap); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 26px; padding: 2px 10px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.2;
  color: var(--ink-2); background: transparent; white-space: nowrap;
}
/* level chip: 4 bars, filled up to the level (shape, not colour, carries meaning) */
.chip--level { background: var(--surface-2); border-color: transparent; color: var(--ink); }
.chip--level::before {
  content: ""; width: 14px; height: 11px; flex: none;
  background:
    linear-gradient(var(--b1, currentColor), var(--b1, currentColor)) 0 100% / 2.5px 40% no-repeat,
    linear-gradient(var(--b2, currentColor), var(--b2, currentColor)) 3.8px 100% / 2.5px 60% no-repeat,
    linear-gradient(var(--b3, currentColor), var(--b3, currentColor)) 7.6px 100% / 2.5px 80% no-repeat,
    linear-gradient(var(--b4, currentColor), var(--b4, currentColor)) 11.4px 100% / 2.5px 100% no-repeat;
}
.chip--level[data-level="1"] { --b2: var(--line-strong); --b3: var(--line-strong); --b4: var(--line-strong); }
.chip--level[data-level="2"] { --b3: var(--line-strong); --b4: var(--line-strong); }
.chip--level[data-level="3"] { --b4: var(--line-strong); }

/* interactive filter chip */
.fchip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--tap); padding: 0 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink);
  font: 600 var(--fs-sm)/1 var(--font-body); white-space: nowrap; cursor: pointer; text-decoration: none;
}
.fchip[aria-pressed="true"], .fchip--on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: var(--r-sm);
  font-size: 0.75rem; font-weight: 700; line-height: 1.25;
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
.badge .icon { width: 13px; height: 13px; stroke-width: 2.5; }
.badge--featured  { background: var(--accent-soft); color: var(--accent-text); }
.badge--expected  { background: var(--warn-soft);   color: var(--warn-text); }
.badge--cancelled { background: var(--danger-soft); color: var(--danger); }
.badge--past      { background: var(--past-soft);   color: var(--past-text); }
.badge--listed    { background: var(--surface-2);   color: var(--ink-2); }
.badge--ok        { background: var(--ok-soft);     color: var(--ok); }
.badge--new       { background: var(--ink);         color: var(--bg); }

.switch {
  display: inline-flex; align-items: center; gap: var(--s-3);
  min-height: var(--tap); font-weight: 600; cursor: pointer;
}
.switch input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  position: relative; width: 46px; height: 28px; border-radius: var(--r-pill);
  background: var(--line-strong); cursor: pointer; transition: background .15s;
}
.switch input::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--surface); transition: transform .15s;
}
.switch input:checked { background: var(--ink); }
.switch input:checked::before { transform: translateX(18px); }

/* ---------- 6. Tournament list ---------------------------------------- */
/* flags: pure CSS, no images, no emoji. Country name is always in text. */
.flag {
  display: inline-block; flex: none; width: 21px; height: 14px; border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); background: var(--surface-2);
}
.flag--nl { background: linear-gradient(#AE1C28 0 33.4%, #FFF 0 66.6%, #21468B 0); }
.flag--fr { background: linear-gradient(90deg, #0055A4 0 33.4%, #FFF 0 66.6%, #EF4135 0); }
.flag--be { background: linear-gradient(90deg, #000 0 33.4%, #FDDA24 0 66.6%, #EF3340 0); }
.flag--de { background: linear-gradient(#000 0 33.4%, #DD0000 0 66.6%, #FFCE00 0); }
.flag--it { background: linear-gradient(90deg, #009246 0 33.4%, #FFF 0 66.6%, #CE2B37 0); }
.flag--ie { background: linear-gradient(90deg, #169B62 0 33.4%, #FFF 0 66.6%, #FF883E 0); }
.flag--es { background: linear-gradient(#AA151B 0 25%, #F1BF00 0 75%, #AA151B 0); }
.flag--pt { background: linear-gradient(90deg, #046A38 0 40%, #DA291C 0); }
.flag--at { background: linear-gradient(#C8102E 0 33.4%, #FFF 0 66.6%, #C8102E 0); }
.flag--lu { background: linear-gradient(#EA141D 0 33.4%, #FFF 0 66.6%, #51ADDA 0); }
.flag--ch { background: linear-gradient(#FFF, #FFF) center / 16% 62% no-repeat, linear-gradient(#FFF, #FFF) center / 46% 22% no-repeat, #DA291C; }
.flag--gb-eng { background: linear-gradient(#CE1124, #CE1124) center / 100% 22% no-repeat, linear-gradient(#CE1124, #CE1124) center / 15% 100% no-repeat, #FFF; }

/* date block */
.datebox {
  --db-w: 72px;
  width: var(--db-w); min-height: 76px; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 4px; border-radius: var(--r-md); text-align: center;
  background: var(--db-bg); color: var(--db-ink);
  font-family: var(--font-display); font-variant-numeric: tabular-nums; line-height: 1;
}
.datebox__m { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--db-month); }
.datebox__d { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; margin-top: 5px; }
.datebox__d--range { font-size: 21px; letter-spacing: -0.04em; }
.datebox__w { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; margin-top: 6px; color: var(--db-sub); }
.datebox--past, .datebox--cancelled { --db-bg: var(--past-soft); --db-ink: var(--past-text); --db-month: var(--past-text); --db-sub: var(--past-text); }
.datebox--expected { --db-bg: transparent; --db-ink: var(--ink); --db-month: var(--accent-text); --db-sub: var(--ink-3); border: 2px dashed var(--line-strong); }
.datebox--lg { --db-w: 104px; min-height: 112px; border-radius: 14px; }
.datebox--lg .datebox__m { font-size: var(--fs-sm); }
.datebox--lg .datebox__d { font-size: 40px; }
.datebox--lg .datebox__d--range { font-size: 30px; }
.datebox--lg .datebox__w { font-size: var(--fs-xs); }

/* season strip (month filter + "season at a glance") */
.season { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.season__m {
  flex: none; display: grid; grid-template-rows: 26px auto auto; justify-items: center; align-items: end;
  min-width: 58px; min-height: var(--tap); padding: 8px 6px 6px;
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  color: var(--ink); text-decoration: none; line-height: 1.1;
}

.season__bar { width: 14px; height: calc(var(--n, 0) * 6px + 2px); max-height: 26px; border-radius: 3px 3px 1px 1px; background: var(--accent); }
.season__name { font: 700 var(--fs-sm)/1.1 var(--font-display); margin-top: 6px; }
.season__count { font-size: 0.75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.season__m--past .season__bar { background: var(--past); }
.season__m--past .season__name { color: var(--past-text); }
.season__m[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.season__m[aria-current="true"] .season__count { color: inherit; }

/* desktop filter bar */
.filters {
  display: grid; gap: var(--s-3); align-items: end;
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)) auto;
  padding: var(--s-4); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
/* phone filter bar: one compact row, the rest behind <details> (no JS) */
.mfilter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.mfilter__bar { display: flex; gap: var(--s-2); padding: var(--s-2); }
.mfilter__bar .search { flex: 1; min-width: 0; }
.mfilter__toggle { list-style: none; }
.mfilter__toggle::-webkit-details-marker { display: none; }
.mfilter__count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-size: 0.75rem; font-weight: 700;
}
.mfilter__panel { display: grid; gap: var(--s-3); padding: var(--s-3) var(--s-2) var(--s-2); }
.mfilter__active { display: flex; gap: 6px; overflow-x: auto; padding: 0 var(--s-2) var(--s-2); }
.mfilter__active .fchip { min-height: 36px; padding: 0 10px 0 12px; }   /* 36 visible + 8 gap = 44 hit row */

.search { position: relative; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 40px; }

.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); margin: var(--s-5) 0 var(--s-2); }
.list-head__count { font-size: var(--fs-sm); color: var(--ink-3); }

.month-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-5) 0 var(--s-2); margin-bottom: var(--s-3);
  border-bottom: 2px solid var(--ink);
}
.month-head h2 { font-size: var(--fs-xl); }
.month-head span { font-size: var(--fs-sm); color: var(--ink-3); }
.month-head--past { border-bottom-color: var(--past); }
.month-head--past h2 { color: var(--past-text); }

.tlist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }

/* tournament card */
.tcard {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.tcard:hover { border-color: var(--line-strong); }
.tcard:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.tcard__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tcard__title { font-size: 1.1875rem; line-height: 1.2; }
.tcard__title a { color: inherit; text-decoration: none; }
.tcard__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* whole card is the link */
.tcard__title a:focus-visible { outline: none; }
.tcard__when { margin-top: 4px; font-weight: 600; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.tcard__where { display: flex; align-items: center; gap: 7px; margin-top: 2px; font-size: 0.9375rem; color: var(--ink-2); }
.tcard__org { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 1px; }
.tcard__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tcard__aside { display: none; }
@container tc (min-width: 720px) {
  .tcard { grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; padding: 16px 20px; }
  .tcard__title { font-size: var(--fs-xl); }
  .tcard__aside {
    display: flex; flex-direction: column; align-items: flex-end; gap: 6px; align-self: center;
    font-size: var(--fs-sm); color: var(--ink-3); text-align: right; min-width: 150px;
  }
  .tcard__aside strong { color: var(--ink); font-weight: 600; }
  .tcard__go { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink); }
}
.tcard--featured { border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tcard--cancelled .tcard__title { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--ink-3); }
.tcard--cancelled .tcard__when { text-decoration: line-through; color: var(--ink-3); }
.tcard--past { background: transparent; box-shadow: none; }
.tcard--past .tcard__title { color: var(--ink-2); }

/* home layout + side rail */
.home { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@container tc (min-width: 1040px) { .home { grid-template-columns: minmax(0, 1fr) 300px; } }
.rail { display: grid; gap: var(--s-4); align-content: start; }
.panel { padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel h2, .panel h3 { font-size: var(--fs-lg); margin-bottom: var(--s-3); }
.actions { list-style: none; padding: 0; display: grid; gap: 2px; }
.action {
  display: flex; align-items: center; gap: var(--s-3);
  min-height: 56px; padding: 8px 10px; border-radius: var(--r-md);
  color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.25;
}

.action:hover { background: var(--surface-2); }
.action small { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--ink-3); }
.action__ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--surface-2); }

.sponsor { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-xs); color: var(--ink-3); text-decoration: none; min-height: var(--tap); }

.sponsor__label { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.sponsor__img { width: 120px; height: 40px; object-fit: contain; object-position: left center; flex: none; }
.sponsor__logo {
  display: grid; place-items: center; width: 120px; height: 40px; flex: none;
  border: 1px dashed var(--line-strong); border-radius: var(--r-sm);
  font-size: 0.75rem; color: var(--ink-3); background: var(--surface);
}

.hero { padding: var(--s-6) 0 var(--s-5); }
.hero h1 { font-size: var(--fs-2xl); max-width: 18ch; }
@container tc (min-width: 720px) { .hero h1 { font-size: var(--fs-4xl); } }
.hero p { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--fs-lg); }

/* ---------- 7. Tournament page ---------------------------------------- */
.crumbs { display: flex; align-items: center; gap: var(--s-2); min-height: var(--tap); font-size: var(--fs-sm); font-weight: 600; }
.thero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: start; padding: var(--s-3) 0 var(--s-5); }
.thero h1 { font-size: 1.875rem; }
@container tc (min-width: 720px) { .thero { gap: var(--s-5); } .thero h1 { font-size: var(--fs-4xl); } }
.thero__meta { display: grid; gap: 2px; margin-top: var(--s-2); color: var(--ink-2); font-weight: 500; }
.thero__meta .where { display: flex; align-items: center; gap: 8px; }

.tpage { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@container tc (min-width: 960px) { .tpage { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-6); align-items: start; } }

.facts { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@container tc (min-width: 720px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s-3); padding: 12px var(--s-4); border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); padding-top: 3px; }
.facts dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.facts dd small { display: block; font-weight: 400; color: var(--ink-3); font-size: var(--fs-sm); }
.facts dd .chip { margin: 0 4px 4px 0; }

.enter { padding: var(--s-5); background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-lg); }
.enter h2 { font-size: var(--fs-xl); }
.enter__deadline { display: flex; gap: var(--s-2); align-items: flex-start; margin: var(--s-3) 0; padding: var(--s-3); border-radius: var(--r-md); background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.enter__deadline .icon { color: var(--accent-text); margin-top: 2px; }
.enter__text { color: var(--ink-2); margin-bottom: var(--s-4); }
.enter__actions { display: grid; gap: var(--s-2); }
.enter__note { font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--s-2); }

.section { padding-top: var(--s-6); }
.section > h2 { font-size: var(--fs-xl); margin-bottom: var(--s-3); }

.source-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  background: var(--surface-2); font-size: var(--fs-sm); color: var(--ink-2);
}
.source-line a { font-weight: 600; display: inline-flex; align-items: center; min-height: var(--tap); }

/* ---------- 8. Forms --------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
.form-group {
  margin: 0; min-width: 0; padding: var(--s-5);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  display: grid; gap: var(--s-4);
}
.form-group legend {
  float: left; width: 100%; padding: 0; margin-bottom: var(--s-1);
  display: flex; align-items: center; gap: var(--s-3);
  font: 700 var(--fs-xl)/1.2 var(--font-display);
}
.form-group legend + * { clear: both; }
.step-n {
  display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none;
  border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 var(--fs-md)/1 var(--font-display);
}
.form-group--private { background: var(--surface-2); border: 2px solid var(--ink); }
.private-note { display: flex; align-items: center; gap: var(--s-2); font-weight: 700; font-size: var(--fs-sm); }
.private-note small { font-weight: 400; color: var(--ink-2); }

.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.field__label .opt { font-weight: 400; color: var(--ink-3); }
.field__label .req { color: var(--accent-text); }
.field__hint { font-size: var(--fs-xs); color: var(--ink-3); }
.field__error { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--danger); }
.input, .select, .textarea {
  width: 100%; min-height: var(--tap); padding: 10px 12px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);   /* 16px: no zoom on iOS */
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.textarea { min-height: 112px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 15px; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger);
}
.input-group { display: flex; }
.input-group .select { border-radius: var(--r-md) 0 0 var(--r-md); width: 96px; }
.input-group .input { border-radius: 0 var(--r-md) var(--r-md) 0; border-left: 0; }

.grid-2, .grid-3 { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@container tc (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.checks { display: flex; flex-wrap: wrap; gap: var(--s-2); border: 0; padding: 0; margin: 0; }
.check {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: var(--tap); padding: 0 14px 0 12px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--fs-sm); cursor: pointer; background: var(--surface);
}
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.check:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.check--box { border-radius: var(--r-md); align-items: flex-start; padding: 12px 14px; font-weight: 400; }
.check--box input { margin-top: 2px; }

.alert { display: flex; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-md); }
.alert--error { border: 2px solid var(--danger); background: var(--danger-soft); color: var(--ink); }
.alert--error .icon { color: var(--danger); }
.alert--error ul { padding-left: 1.1em; margin-top: 4px; }
.alert--error a { color: var(--ink); font-weight: 600; }
.alert--save { border: 2px solid var(--ink); background: var(--warn-soft); color: var(--ink); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }

.editlink { display: flex; gap: var(--s-2); }
.editlink .input { font-family: var(--font-mono); font-size: var(--fs-sm); background: var(--surface-2); }
.success-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: var(--on-ok); }
.success-mark .icon { width: 28px; height: 28px; stroke-width: 3; }

/* ---------- 9. Embed builder ------------------------------------------- */
.builder { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@container tc (min-width: 1000px) { .builder { grid-template-columns: 380px minmax(0, 1fr); align-items: start; } }
.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.seg label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 9px; font-weight: 600; font-size: var(--fs-sm); cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--ink); color: var(--bg); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 1px; }
.snippet { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.snippet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 6px 6px 6px var(--s-4); border-bottom: 1px solid var(--line); }
.snippet__head h3 { font-size: var(--fs-md); }
.snippet__head p { font-size: var(--fs-xs); color: var(--ink-3); }
.snippet pre {
  margin: 0; padding: var(--s-4); overflow-x: auto;
  background: #14181F; color: #E7E9EE; font: 400 0.8125rem/1.65 var(--font-mono);
}
.snippet pre .k { color: #FF8F78; } .snippet pre .s { color: #B9E4A8; } .snippet pre .c { color: #8C96A5; }
.preview-frame { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.preview-frame__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 8px var(--s-3); border-bottom: 1px solid var(--line); font-size: var(--fs-xs); color: var(--ink-3); }
.preview-frame__stage { padding: var(--s-5); display: flex; justify-content: center; }

/* ---------- 10. Admin -------------------------------------------------- */
.admin { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100%; }
@container tc (min-width: 1000px) { .admin { grid-template-columns: 232px minmax(0, 1fr); } }
.admin-nav { padding: var(--s-4); border-right: 1px solid var(--line); background: var(--surface); }
.admin-nav ul { list-style: none; padding: 0; display: grid; gap: 2px; margin-top: var(--s-4); }
.admin-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  min-height: var(--tap); padding: 0 var(--s-3); border-radius: var(--r-md);
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
}
.admin-nav a:hover { background: var(--surface-2); color: var(--ink); }
.admin-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.admin-main { padding: var(--s-5) var(--s-6) var(--s-7); display: grid; gap: var(--s-6); align-content: start; min-width: 0; }
.admin-section > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-3); }
.admin-section h2 { font-size: var(--fs-xl); }
.count-pill { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: 0.75rem; font-weight: 700; }
.admin-nav a[aria-current="page"] .count-pill { background: var(--bg); color: var(--ink); }

.stats { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 4px; }
.stat__label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.stat__value { font: 700 var(--fs-3xl)/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat__sub { font-size: var(--fs-xs); color: var(--ink-3); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 36px; margin-top: var(--s-2); }
.bars span { flex: 1; min-height: 2px; height: calc(var(--v) * 1%); background: var(--ink-3); border-radius: 2px 2px 0 0; }
.bars span:last-child { background: var(--ink); }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th {
  text-align: left; white-space: nowrap; padding: 10px 12px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3);
  background: var(--surface-2); border-bottom: 1px solid var(--line-strong);
}
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .nowrap { white-space: nowrap; }
.table td strong { font-weight: 600; }
.table small { display: block; color: var(--ink-3); font-size: var(--fs-xs); }
.table a { font-weight: 600; }
.cell-actions { display: flex; gap: 6px; justify-content: flex-end; }
.cell-actions .btn { padding: 8px 14px; font-size: var(--fs-sm); }

.queue { display: grid; gap: var(--s-3); }
.qitem {
  display: grid; gap: var(--s-4); grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: start;
  padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.qitem h3 { font-size: var(--fs-lg); }
.qitem__meta { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 2px; }
.qitem__private { font-size: var(--fs-sm); padding: var(--s-3); border-radius: var(--r-md); background: var(--surface-2); }
.qitem__private b { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 2px; }
.qitem__actions { display: grid; gap: 6px; min-width: 120px; }

.log { list-style: none; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.log li { display: grid; grid-template-columns: 150px 110px minmax(0, 1fr); gap: var(--s-3); padding: 10px var(--s-4); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.log li:last-child { border-bottom: 0; }
.log time { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-3); padding-top: 2px; }

.toolbar { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

/* ---------- 11. Mock boxes (future features — never mistaken for live) -- */
.mock {
  position: relative; padding: 40px var(--s-5) var(--s-5);
  border: 2px dashed var(--line-strong); border-radius: var(--r-lg);
  background: repeating-linear-gradient(135deg, transparent 0 11px, var(--mock-stripe) 11px 12px), var(--bg);
}
.mock__tag {
  position: absolute; top: 0; left: var(--s-4); transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border: 2px dashed var(--line-strong); border-radius: var(--r-pill);
  background: var(--bg); color: var(--ink-2);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.mock .btn, .mock input, .mock select { pointer-events: none; }
.mock__note { font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--s-3); }

/* Instagram share card (future): 1080×1350 poster, shown scaled */
.poster {
  aspect-ratio: 1080 / 1350; width: 100%; max-width: 288px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px; border-radius: 10px; overflow: hidden;
  background: #14181F; color: #FFFFFF; font-family: var(--font-display);
}
.poster__date { font-size: 64px; font-weight: 700; line-height: .9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.poster__date span { display: block; color: #FF6A4D; font-size: 20px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.poster__name { font-size: 26px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.poster__place { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: #C5CAD3; margin-top: 8px; }
.poster__foot { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.poster .chip { color: #FFFFFF; border-color: rgba(255, 255, 255, .5); }

/* ---------- 12. Utilities ---------------------------------------------- */
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); }
.hide-narrow { display: none; }
@container tc (min-width: 720px) { .hide-narrow { display: revert; } .hide-wide { display: none; } }

/* ---------- Home hero (full-bleed; photo optional) ---------------------- */
/* Gradient fallback now. Drop public/hero.jpg in and the photo shows under a dark overlay. */
.hero--home {
  padding: var(--s-6) 0 var(--s-5); color: #fff;
  background:
    radial-gradient(60% 90% at 85% 0%, rgba(255, 85, 51, 0.35), transparent 70%),
    linear-gradient(135deg, #14181F 0%, #1E2733 100%);
}
.hero--photo {
  background:
    linear-gradient(rgba(12, 16, 22, 0.68), rgba(12, 16, 22, 0.82)),
    url(/assets/hero.jpg) center / cover no-repeat,
    linear-gradient(135deg, #14181F 0%, #1E2733 100%);
}
.hero--home h1 { max-width: 20ch; color: #fff; }
.hero-cards { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
@container tc (min-width: 720px) { .hero-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } }
.hcard {
  display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-start;
  padding: var(--s-4); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.22);
}
.hcard h2 { font-size: var(--fs-lg); color: #fff; }
.hero .hcard p { margin: 0; font-size: var(--fs-base, 1rem); color: rgba(255, 255, 255, 0.88); }
.hcard .btn { margin-top: auto; }
.hcard form { width: 100%; margin-top: auto; }
.hcard .field__label, .hcard .field__hint, .hcard .small, .hcard .opt { color: rgba(255, 255, 255, 0.85); }
.hcard a:not(.btn) { color: #fff; text-decoration: underline; }
.hcard .input { width: 100%; }
.hcard .alert { width: 100%; }
.list-anchor { scroll-margin-top: var(--s-4); }
#list { scroll-margin-top: var(--s-4); }
.list-summary { padding-top: var(--s-4); }

/* ---------- Trust label ---------------------------------------------- */
.trust { font-size: var(--fs-sm); }
.trust--org { color: var(--ink-2); font-weight: 600; }

/* ---------- Floating report button + panel (no JS: :target) ------------- */
.fab {
  position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: 30;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font: 700 1.375rem/1 var(--font-body, inherit);
  text-decoration: none; box-shadow: var(--shadow);
}
.fab:hover { background: var(--accent); color: var(--on-accent); }
.report-pop { display: none; }
.report-pop:target {
  display: block; position: fixed; z-index: 40; right: var(--s-3); bottom: var(--s-3); left: var(--s-3);
  max-height: 85vh; overflow: auto; padding: var(--s-4); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
@container tc (min-width: 720px) { .report-pop:target { left: auto; width: 440px; right: var(--s-4); bottom: calc(var(--s-4) + 56px); } }
.report-pop__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.report-pop__head h2 { font-size: var(--fs-lg); }
.report-pop__form { display: grid; gap: var(--s-3); }

/* ---------- Footer groups ---------------------------------------------- */
.footer-groups { display: grid; grid-template-columns: 1fr; gap: var(--s-4); width: 100%; }
@container tc (min-width: 720px) { .footer-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.site-footer__inner { flex-direction: column; align-items: stretch; }
@container tc (min-width: 720px) { .site-footer__inner { flex-direction: row; align-items: flex-start; } .site-footer__about { max-width: 34ch; flex: none; } .footer-groups { flex: 1; } }
.site-footer .footer-groups { display: grid; gap: var(--s-4); }
.fgroup ul { list-style: none; margin: 0; padding: 0; }
.fgroup__h { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: var(--s-1); }
.hero .hcard .field__hint, .hero .hcard .small, .hero .hcard .field__label { font-size: var(--fs-xs); }

/* ---------- Home: hero card alignment + side blocks under the hero ------- */
.hero-cards { align-items: stretch; }
.hcard { height: 100%; }
.hcard > .btn, .hcard > form { margin-top: auto; }
.nform { display: grid; gap: 8px; width: 100%; margin-top: auto; }
.nform .field__label { font-weight: 400; line-height: 1.35; }
.nform__row { display: flex; gap: 8px; align-items: stretch; }
.nform__row .input { flex: 1 1 0; min-width: 0; width: auto; }
.nform__row .btn { flex: none; }
@media (max-width: 360px) { .nform__row { flex-direction: column; } }
/* The email field's intrinsic width must never widen a card or the hero grid (phone overflow, desktop button sticking out). */
.hero-cards { grid-template-columns: minmax(0, 1fr); }
@container tc (min-width: 720px) { .hero-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hcard { min-width: 0; }
.nform { grid-template-columns: minmax(0, 1fr); }
.hcard .nform__row .input { flex: 1 1 0; min-width: 0; width: 0; }

}

/* ---------- Home round 3 (Maxime 2026-12-02): side panels on the right, more breathing room ---------- */
.home__main { min-width: 0; }
@container tc (min-width: 1040px) { .home { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-7); } }
.rail { gap: var(--s-5); }
.rail .panel { padding: var(--s-5); }
.rail .panel h2 { margin-bottom: var(--s-3); }
.tlist { gap: var(--s-4); }
.tcard { padding: 18px; gap: 16px; }
.tcard__when { margin-top: 6px; }
.tcard__where { margin-top: 4px; }
.tcard__org { margin-top: 4px; }
.tcard__chips { margin-top: 12px; }
@container tc (min-width: 720px) { .tlist { gap: 20px; } .tcard { padding: 22px 26px; gap: 24px; } }
.month-head { padding-top: var(--s-6); margin-bottom: var(--s-4); }
.list-head { margin-top: var(--s-6); }
.hero-cards { gap: var(--s-4); }
@container tc (min-width: 720px) { .hero-cards { gap: var(--s-5); } }
.hcard { padding: var(--s-5); gap: var(--s-3); }

/* With the rail beside it, the list column is narrower: search + buttons on row 1, the four selects on row 2, so no select is cut off. */
@container tc (min-width: 1040px) {
  .home__main .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home__main .filters > .field:first-child { grid-row: 1; grid-column: 1 / span 3; }
  .home__main .filters > .row { grid-row: 1; grid-column: 4; justify-self: end; }
}

/* =====================================================================
   TouchCircuit — app additions on top of tc.css (the design's stylesheet).
   Only what the live app needs and the design did not draw.
   ===================================================================== */
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; }

/* honeypot field: invisible to people, filled by bots */
.hp { position: absolute !important; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* more flags (CSS only, country name is always in text) */
.flag--gb { background:
  linear-gradient(#C8102E, #C8102E) center / 100% 20% no-repeat,
  linear-gradient(#C8102E, #C8102E) center / 12% 100% no-repeat,
  linear-gradient(#FFF, #FFF) center / 100% 36% no-repeat,
  linear-gradient(#FFF, #FFF) center / 22% 100% no-repeat, #012169; }
.flag--dk { background: linear-gradient(#FFF, #FFF) 32% 0 / 12% 100% no-repeat, linear-gradient(#FFF, #FFF) 0 50% / 100% 16% no-repeat, #C8102E; }
.flag--se { background: linear-gradient(#FECC02, #FECC02) 32% 0 / 14% 100% no-repeat, linear-gradient(#FECC02, #FECC02) 0 50% / 100% 20% no-repeat, #006AA7; }
.flag--no { background: linear-gradient(#00205B, #00205B) 32% 0 / 8% 100% no-repeat, linear-gradient(#00205B, #00205B) 0 50% / 100% 10% no-repeat, linear-gradient(#FFF, #FFF) 32% 0 / 18% 100% no-repeat, linear-gradient(#FFF, #FFF) 0 50% / 100% 24% no-repeat, #BA0C2F; }
.flag--fi { background: linear-gradient(#002F6C, #002F6C) 32% 0 / 14% 100% no-repeat, linear-gradient(#002F6C, #002F6C) 0 50% / 100% 22% no-repeat, #FFF; }
.flag--pl { background: linear-gradient(#FFF 0 50%, #DC143C 0); }
.flag--hu { background: linear-gradient(#CE2939 0 33.4%, #FFF 0 66.6%, #477050 0); }
.flag--ro { background: linear-gradient(90deg, #002B7F 0 33.4%, #FCD116 0 66.6%, #CE1126 0); }
.flag--ee { background: linear-gradient(#0072CE 0 33.4%, #000 0 66.6%, #FFF 0); }
.flag--lt { background: linear-gradient(#FDB913 0 33.4%, #006A44 0 66.6%, #C1272D 0); }
.flag--bg { background: linear-gradient(#FFF 0 33.4%, #00966E 0 66.6%, #D62612 0); }
.flag--mc, .flag--id { background: linear-gradient(#CE1126 0 50%, #FFF 0); }
.flag--cz { background: linear-gradient(to right bottom, #11457E 0 50%, transparent 50%) 0 0 / 50% 50% no-repeat, linear-gradient(to right top, #11457E 0 50%, transparent 50%) 0 100% / 50% 50.5% no-repeat, linear-gradient(#FFF 0 50%, #D7141A 0); }
.flag--gr { background: repeating-linear-gradient(#0D5EAF 0 11.1%, #FFF 0 22.2%); }
.flag--mt { background: linear-gradient(90deg, #FFF 0 50%, #CF142B 0); }

/* switch inside a GET form (submits on change, button for no-JS) */
.switch-form { display: inline-flex; align-items: center; gap: var(--s-2); }

/* phone filter: the panel opens on its own row under the search bar */
.mfilter__bar { flex-wrap: wrap; }
.mfilter__bar > details { display: contents; }
.mfilter__bar > details > .mfilter__panel { flex-basis: 100%; border-top: 1px solid var(--line); padding: 16px 4px 4px; }
.mfilter__toggle { cursor: pointer; }

/* confirmation strip (saved, reported, ...) */
.alert--ok { border: 2px solid var(--ok); background: var(--ok-soft); color: var(--ink); align-items: center; }
.alert--ok .icon { color: var(--ok); }
.alert--info { border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); }

/* text pages (about, FAQ, for organisers) */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--s-6); }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--s-5); }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 6px; }
.prose li::marker { color: var(--ink-3); }
.faq details { border-bottom: 1px solid var(--line); padding: var(--s-3) 0; }
.faq summary { font: 700 var(--fs-lg)/1.3 var(--font-display); cursor: pointer; min-height: var(--tap); display: flex; align-items: center; }
.faq details > div { color: var(--ink-2); padding: var(--s-2) 0 var(--s-2); display: grid; gap: var(--s-3); }

/* summary sentence under a page title ("There are 12 ... Updated ...") */
.summary { color: var(--ink-2); font-size: var(--fs-lg); max-width: 62ch; }
.updated { font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--s-2); }

/* pricing / plans */
.plans { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@container tc (min-width: 820px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.plan--main { border: 2px solid var(--ink); }
.plan__price { font: 700 var(--fs-3xl)/1 var(--font-display); letter-spacing: -0.02em; }
.plan__price small { font: 500 var(--fs-sm)/1.2 var(--font-body); color: var(--ink-3); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li .icon { width: 18px; height: 18px; color: var(--ok); margin-top: 1px; }

/* country tiles */
.tiles { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); list-style: none; padding: 0; }
.tile { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); font-weight: 600; }
.tile:hover { border-color: var(--line-strong); }
.tile small { margin-left: auto; color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }

.empty { padding: var(--s-6) var(--s-5); text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--ink-2); }
.empty .btn { margin-top: var(--s-4); }

.admin-main .table td form { display: inline; }
.qitem__actions form { display: grid; }
@container tc (max-width: 900px) { .qitem { grid-template-columns: auto minmax(0, 1fr); } .qitem__private, .qitem__actions { grid-column: 1 / -1; } .log li { grid-template-columns: 1fr; gap: 4px; } .admin-main { padding: var(--s-4); } }
.admin-nav .logo { justify-content: flex-start; }

/* demo club page (a made-up club site with its own look) */
.club { font: 17px/1.6 Georgia, "Times New Roman", serif; background: #FBF8F2; color: #2A2522; min-height: 100vh; }
.club__note { background: #14181F; color: #F2F1EC; font: 600 13px/1.3 system-ui, sans-serif; text-align: center; padding: 8px 16px; }
.club__note a { color: #FFB4A3; }
.club__bar { background: #1E4D3A; color: #FFF; }
.club__bar-in { max-width: 1080px; margin: 0 auto; padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.club__bar b { font-size: 22px; letter-spacing: .02em; }
.club__bar nav { display: flex; gap: 18px; font: 600 15px system-ui, sans-serif; }
.club__bar a { color: #FFF; text-decoration: none; }
.club__wrap { max-width: 1080px; margin: 0 auto; padding: 28px 20px; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .club__wrap { grid-template-columns: minmax(0, 1fr) 320px; } }
.club h1 { font-size: 36px; margin: 0 0 8px; color: #1E4D3A; }
.club aside { background: #EFE7D8; border-radius: 4px; padding: 18px; }
.club aside h3 { margin: 0 0 8px; color: #1E4D3A; }
.club pre { background: #EFE7D8; padding: 10px; font-size: 12px; white-space: pre-wrap; word-break: break-all; border-radius: 4px; }

/* small fixes after the screenshot pass */
.admin-nav a.logo { gap: 0; padding: 0; min-height: var(--tap); color: var(--ink); background: none; }
.section > h2 + .mock { margin-top: var(--s-5); }
input.input[type="date"] { height: 46px; }
.hero .updated { font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--s-2); }

/* Admin: wide tables scroll inside their box, not the page (monthly numbers) */
.admin-section{min-width:0}

/* Share kit: share sheet, copy link, WhatsApp */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__label { font: 600 0.875rem/1.4 var(--font-body); color: var(--ink-2); margin-right: 4px; }
.panel > .share .share__label { flex-basis: 100%; color: var(--ink); font-size: 1rem; }
.hero .share { margin-top: 16px; }
.share .btn[data-done="1"] { border-color: var(--ok, #1a7f4b); }
.share .btn { min-height: 36px; padding: 6px 12px; font-size: 0.875rem; gap: 6px; }
.share .btn .icon { width: 16px; height: 16px; }
.hero .share__label { display: none; }

/* Share card kit on the tournament page: the real generated images */
.cardkit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; align-items: start; }
.cardkit__poster { width: 100%; max-width: 288px; height: auto; border-radius: 10px; display: block; }
.cardkit__og { width: 100%; max-width: 320px; height: auto; border-radius: 8px; border: 1px solid var(--line); display: block; }

/* "How this list is ordered" (⚖️ Ruth B3) */
.order-note { font-size: var(--fs-xs, 0.8125rem); color: var(--ink-3); margin: -4px 0 12px; }

/* Legal drafts: placeholders Maxime fills before launch; reject-with-reason form */
mark.todo { background: #FFF3C4; color: var(--ink); padding: 0 4px; border-radius: 4px; }
.reject-form { display: grid; gap: 6px; }
.reject-form .select, .reject-form .input { min-height: 36px; font-size: 0.875rem; }
.prose .table td, .prose .table th { vertical-align: top; }
