/* =====================================================================================================
   Concursuri Pescuit design system (loaded last, after app.css, brand.css and lake.css).
   Navy for structure, water blue for links and data, sun orange only for the main action, red only for LIVE.
   Readable in daylight at the lake: text >= 13px, weights in tabular figures, borders instead of shadows,
   no decorative waves or scenes. Mockups and tokens: design canvas "Design system".
   ===================================================================================================== */
/* headings: Bricolage Grotesque (SIL OFL 1.1, self-hosted, licence in fonts/BricolageGrotesque-OFL.txt) */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2-variations"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"); 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; }
:root {
  --ink: #0A2540; --water: #0A6FC2; --water-ink: #08589B; --sun: #FF6A2B; --sun-hover: #FF8550; --sun-ink: #0A2540;
  --red: #D7263D; --ok: #0F7B53; --ok-bg: #E6F4EE; --sand-bg: #FFF3E3; --sand-line: #F6DFC2; --sand-ink: #9A5B12;
  --navy: #0A2540; --navy-2: #12355A; --navy-3: #1C4A78; --deep: #071B30;
  --float: var(--sun); --float-deep: #E8561A; --float-ink: var(--sun-ink); --lime: var(--sun); --lime-ink: var(--sun-ink);
  --bg: #F3F6F9; --surface: #FFFFFF; --surface-2: #EEF2F6; --border: #E2E8EF; --border-strong: #C9D4DF;
  --text: #0A2540; --text-2: #5A6B7D; --text-3: #3B4C5E; --muted: #5A6B7D;
  --primary: #0A6FC2; --primary-hover: #08589B; --on-primary: #FFFFFF; --link: #0A6FC2; --focus: #0A6FC2; --ocean: #0A6FC2;
  --gold: #FFC542; --on-gold: #0A2540; --gold-ink: #8A4E0B; --medal-gold: #FFC542; --medal-silver: #D5DDE5; --medal-bronze: #F2B48C;
  --success: #0F7B53; --success-bg: #E6F4EE; --success-ink: #0B5E40;
  --danger: #B42318; --danger-bg: #FDECEA; --danger-ink: #8F1D14;
  --warn-bg: #FFF3E3; --warn-ink: #6E4310; --info-bg: #E8F1FA; --info-ink: #08589B;
  --live: #D7263D; --header-bg: #FFFFFF; --header-text: #0A2540; --sand: #FFF3E3;
  --r-sm: 10px; --r-md: 14px; --r-lg: 16px; --r-xl: 20px;
  --shadow-1: none; --shadow-2: 0 8px 24px -12px rgba(10, 37, 64, .35); --shadow-float: 0 -8px 24px -12px rgba(10, 37, 64, .35);
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --fs-xs: .8125rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.0625rem; --fs-xl: 1.3125rem; --fs-2xl: clamp(1.625rem, 1.35rem + 1.2vw, 2.25rem); --fs-3xl: clamp(1.75rem, 1.3rem + 2.2vw, 2.75rem);
  --wave-h: 0px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071B30; --surface: #0D2640; --surface-2: #133152; --border: #1E3D60; --border-strong: #2C5280;
    --text: #EAF1F8; --text-2: #A9BCD0; --text-3: #C9D6E3; --muted: #A9BCD0;
    --primary: #5CB0F5; --primary-hover: #8CC8FA; --on-primary: #04182C; --link: #6DB9F7; --focus: #6DB9F7; --water: #5CB0F5; --water-ink: #8CC8FA;
    --success: #3CC995; --success-bg: #0E3A2C; --success-ink: #8FE5C2; --ok: #3CC995; --ok-bg: #0E3A2C;
    --danger: #FF8A80; --danger-bg: #45161A; --danger-ink: #FFB4AC;
    --warn-bg: #3D2A0E; --warn-ink: #F7D08A; --info-bg: #0F2F4F; --info-ink: #8CC8FA; --sand-bg: #3D2A0E; --sand-line: #5A4018; --sand-ink: #F7D08A;
    --header-bg: #0A2138; --header-text: #EAF1F8; --gold-ink: #F7D08A; --sand: #3D2A0E;
  }
}

/* ---- base ---- */
body { background: var(--bg); color: var(--text); }
h1, h2, .band-head h2, .sec-head h2, .page-head h1 { font-family: var(--font-display); letter-spacing: -.025em; }
h1 { font-weight: 800; } h2 { font-weight: 700; }
a { color: var(--link); } a:hover { color: var(--primary-hover); }
small, .small { font-size: max(13px, var(--fs-xs)); }
.muted { color: var(--text-2); }

/* no decorative waves, scenes or glass */
.cc-hero::after, .ticker::after, .page-band::after, .event-hero::after, .band--navy::after, .site-footer::before { display: none !important; }
.band--navy, .band--navy.offer { padding-bottom: var(--s-7); } .page-band { padding-bottom: var(--s-5); }
.eyebrow::before, .page-band .kicker::before, .offer .kicker::before { display: none; }
.eyebrow, .kicker { font-size: 13px; letter-spacing: .06em; color: var(--text-2); }

/* ---- header (white app bar) ---- */
.site-header { background: var(--header-bg); color: var(--header-text); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border-bottom: 1px solid var(--border); }
.site-header .brand, .site-header .brand b { color: var(--header-text); }
.brand .wordmark { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; color: var(--header-text); }
.brand .wordmark b, .site-footer .brand b { color: #E8561A; }
.brand-mark { filter: none; }
.nav a { color: var(--text-3); }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--water); }
.nav .live-link { color: var(--red); font-weight: 800; }
.menu-toggle { color: var(--text); border-color: var(--border-strong); }
@media (max-width: 859px) { .js .nav { background: var(--surface); border-bottom: 1px solid var(--border); } }
.user-menu summary { color: var(--text); }
.avatar { background: var(--ink); color: #fff; }

/* ---- buttons ---- */
.btn { border-radius: var(--r-md); min-height: 48px; font-weight: 700; box-shadow: none; }
.btn-sm { min-height: 40px; border-radius: 12px; }
.btn-lg { min-height: 54px; border-radius: var(--r-lg); font-size: 1.0625rem; }
.btn:not(.btn-alt):not(.btn-ghost):not(.btn-ghost-light):not(.btn-gold):not(.btn-signal):not(.btn-danger):not(.btn-link) { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn:not(.btn-alt):not(.btn-ghost):not(.btn-ghost-light):not(.btn-gold):not(.btn-signal):not(.btn-danger):not(.btn-link):hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-gold, .btn-signal, .nav a.btn-gold, .page-head .btn:not(.btn-alt) { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); font-weight: 800; box-shadow: none; }
.btn-gold:hover, .btn-signal:hover, .nav a.btn-gold:hover, .page-head .btn:not(.btn-alt):hover { background: var(--sun-hover); border-color: var(--sun-hover); color: var(--sun-ink); }
.btn-alt { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn-alt:hover { background: var(--surface-2); color: var(--text); }
.btn-ghost-light { border-radius: var(--r-md); }
@media (prefers-color-scheme: dark) { .btn:not(.btn-alt):not(.btn-ghost):not(.btn-ghost-light):not(.btn-gold):not(.btn-signal):not(.btn-danger):not(.btn-link) { background: #EAF1F8; border-color: #EAF1F8; color: #0A2540; } }

/* ---- status pills, LIVE ---- */
.badge { border-radius: 999px; font-size: 13px; font-weight: 700; min-height: 26px; }
.tag-live, .badge.b-live, .badge.s-in_progress { background: var(--red); color: #fff; border-radius: 999px; font-size: 12px; letter-spacing: .06em; padding: 4px 10px; }
.tag-live::before, .badge.b-live::before, .badge.s-in_progress::before { background: #fff; animation: ds-ripple 2s ease-out infinite; }
@keyframes ds-ripple { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 80%, 100% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .tag-live::before, .badge.b-live::before, .badge.s-in_progress::before { animation: none; } }
.badge.b-final, .badge.s-finalized { background: var(--ok-bg); color: var(--ok); }
.badge.b-charity { background: var(--sand-bg); color: var(--sand-ink); }
.note.live { border-color: var(--red); background: color-mix(in srgb, var(--red) 7%, var(--surface)); }

/* ---- surfaces: borders, not shadows ---- */
.card, .k, .status-card, details.fold-card { box-shadow: none; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.k:hover { box-shadow: none; border-color: var(--border-strong); transform: none; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), select, textarea { border-radius: var(--r-md); border-color: var(--border-strong); font-size: 16px; min-height: 48px; }
textarea { min-height: 96px; }
label, .label { font-weight: 700; }

/* chips (filters) */
.chip, .tabs .tab { min-height: 40px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.list-body .tabs .tab[aria-current], .tab.on, .tab[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- bands: flat colours, no illustrations ---- */
.band--navy, .band--navy.offer { background: var(--ink); }
.band--mist { background: var(--bg); } .band--white { background: var(--surface); } .band--gold { background: var(--sand-bg); }
.page-band { background: var(--ink); padding-block: var(--s-5); }
.page-band h1 { font-size: var(--fs-2xl); margin-bottom: var(--s-2); }
.page-band .lead { font-size: 1rem; color: #B8C9DA; margin: 0; }
.page-band .kicker { color: #B8C9DA; }
.auth-side { background: var(--ink) !important; }

/* ---- footer ---- */
.site-footer { background: var(--ink); margin-top: var(--s-7); }
.site-footer, .site-footer a { color: #C9D6E3; }
.site-footer h2 { color: #fff; font-family: var(--font-display); }

/* ---- mobile tab bar: white, active item in a pill ---- */
@media (max-width: 859px) {
  .tabbar { background: var(--surface); border-top: 1px solid var(--border); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .tabbar a { color: var(--text-3); font-size: 12px; font-weight: 600; gap: 3px; }
  .tabbar a .ico { width: 22px; height: 22px; padding: 4px 16px; box-sizing: content-box; border-radius: 15px; }
  .tabbar a[aria-current="page"] { color: var(--text); font-weight: 700; }
  .tabbar a[aria-current="page"]::before { display: none; }
  .tabbar a[aria-current="page"] .ico { color: var(--water); background: var(--info-bg); }
  .tabbar a:active { background: var(--surface-2); }
  .tabbar .tab-live .ico { color: var(--red); }
}

/* ======================================================================================================
   Home
   ====================================================================================================== */
.h-top { background: var(--surface); border-bottom: 1px solid var(--border); padding-block: var(--s-4) var(--s-4); }
.h-top h1 { font-size: clamp(1.625rem, 1.2rem + 2vw, 2.5rem); line-height: 1.1; margin: 0; max-width: 18ch; }
.h-top h1 em { font-style: normal; color: var(--water); }
.h-search { display: flex; gap: var(--s-2); margin-top: var(--s-4); max-width: 640px; }
.h-search .field { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--border-strong); }
.h-search .field:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.h-search .field .ico { color: var(--text-2); }
.h-search input[type=search] { flex: 1; min-width: 0; border: 0 !important; background: transparent; min-height: 48px !important; padding: 0; outline: none; }
.h-search .btn { min-height: 50px; }
.h-chips { display: flex; gap: var(--s-2); margin-top: var(--s-3); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.h-chips::-webkit-scrollbar { display: none; }
.h-chips a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.h-chips a:hover { border-color: var(--ink); }
.h-chips a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.h-chips a.live { color: var(--red); }
.h-grid { display: grid; gap: var(--s-6); padding-block: var(--s-4) 0; }
@media (min-width: 960px) { .h-grid { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } .h-grid > aside { position: sticky; top: 84px; display: grid; gap: var(--s-4); } }
.h-sec { margin-top: var(--s-5); } .h-sec:first-child { margin-top: 0; }
.h-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.h-head h2 { margin: 0; font-size: var(--fs-xl); }
.h-head h2 small { font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.h-head a { font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }

/* live card */
.lv { border-radius: var(--r-xl); background: var(--ink); color: #fff; overflow: hidden; }
.lv-in { padding: 14px 16px 4px; }
.lv-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); font-size: 13px; color: #B8C9DA; }
.lv h2, .lv h3 { margin: 10px 0 2px; font-size: 1.3125rem; color: #fff; }
.lv h2 a, .lv h3 a { color: inherit; text-decoration: none; }
.lv p { margin: 0; font-size: 14px; color: #B8C9DA; }
.lv ol { list-style: none; margin: 10px 0 0; padding: 0 16px; }
.lv li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.lv .rk { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: rgba(255, 255, 255, .14); color: #fff; }
.lv li:nth-child(1) .rk { background: var(--medal-gold); color: #0A2540; } .lv li:nth-child(2) .rk { background: var(--medal-silver); color: #0A2540; } .lv li:nth-child(3) .rk { background: var(--medal-bronze); color: #0A2540; }
.lv .nm { flex: 1; min-width: 0; font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv .wt { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-empty { padding: 8px 16px 0; }
.lv-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 12px 12px; min-height: 50px; border-radius: var(--r-md); background: #fff; color: var(--ink) !important; font-weight: 700; font-size: 16px; text-decoration: none; }
.lv-cta:hover { background: #E8F1FA; }
.lv-more { display: flex; gap: var(--s-2); overflow-x: auto; margin-top: var(--s-2); scrollbar-width: none; }
.lv-more a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; }
.lv-more a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* competition rows (open registrations, lists) */
.rows { display: grid; gap: 10px; }
@media (min-width: 640px) and (max-width: 959px) { .rows { grid-template-columns: 1fr 1fr; } }
.cr { position: relative; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.cr:hover { border-color: var(--border-strong); }
.cr-top { display: flex; gap: 12px; }
.cr-date { width: 52px; height: 56px; flex: none; border-radius: 12px; background: var(--info-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text); }
.cr-date b { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1; }
.cr-date span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.cr h3 { margin: 0; font-size: 16px; line-height: 1.3; font-family: var(--font); letter-spacing: 0; }
.cr h3 a { color: var(--text); text-decoration: none; }
.cr h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cr h3 a:focus-visible { outline: none; } .cr:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.cr-meta { display: block; margin-top: 2px; font-size: 14px; color: var(--text-2); }
.cr-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--sand-ink); }
.cr-tag .ico { width: 14px; height: 14px; }
.cr-bot { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.cr-places { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: var(--ok); }
.cr-places.low { color: #C2410C; } .cr-places.none { color: var(--text-2); font-weight: 600; }
.cr-places i { display: block; height: 6px; margin-top: 5px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.cr-places i b { display: block; height: 100%; border-radius: 6px; background: currentColor; }
.cr-fee { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cr-cta { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--sun); color: var(--sun-ink) !important; font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; }
.cr-cta:hover { background: var(--sun-hover); }
.cr-cta.alt { background: var(--surface-2); color: var(--text) !important; font-weight: 700; }

/* results list */
.rl { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); padding: 0 14px; }
.rl a { display: flex; align-items: center; gap: 12px; padding: 13px 0; color: var(--text); text-decoration: none; }
.rl a + a { border-top: 1px solid var(--surface-2); }
.rl a > span:first-child { flex: 1; min-width: 0; }
.rl b { display: block; font-size: 15px; }
.rl small { display: block; font-size: 14px; color: var(--text-2); }
.pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--sand-bg); color: var(--sand-ink); } .pill.info { background: var(--info-bg); color: var(--info-ink); } .pill.mute { background: var(--surface-2); color: var(--text-3); }

/* organiser box */
.org-box { padding: 18px; border-radius: var(--r-lg); background: var(--sand-bg); border: 1px solid var(--sand-line); }
.org-box h2 { margin: 0 0 6px; font-size: 1.25rem; }
.org-box p { margin: 0 0 14px; font-size: 15px; color: var(--text-3); }
.org-box ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; font-size: 15px; }
.org-box li { display: flex; gap: 8px; } .org-box li .ico { color: var(--ok); }
.org-box .btn { width: 100%; }
.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how li { padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); font-size: 15px; color: var(--text-3); }
.how b { display: block; margin-bottom: 4px; color: var(--text); font-size: 16px; }
.how .n { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 8px; border-radius: 50%; background: var(--info-bg); color: var(--water-ink); font-weight: 800; font-size: 14px; }

/* ======================================================================================================
   Competition page
   ====================================================================================================== */
.event-hero { background: var(--surface) !important; color: var(--text); border-bottom: 1px solid var(--border); }
.event-hero::before, .event-hero .cover-art { display: none; }
.event-hero .cover-img { position: static; height: 88px; overflow: hidden; }
.event-hero .cover-img img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.event-hero > .container { padding-block: var(--s-4); }
.event-hero h1 { color: var(--text); text-shadow: none; font-size: clamp(1.625rem, 1.3rem + 1.6vw, 2.375rem); margin: 10px 0 6px; }
.event-hero .breadcrumbs, .event-hero .breadcrumbs a, .event-hero .breadcrumbs [aria-current] { color: var(--text-2); font-size: 14px; }
.event-hero .event-meta, .event-hero .event-meta a { color: var(--text-3); font-size: 15px; }
.event-hero .event-meta .ico { color: var(--water); }
.ev-places { margin-top: var(--s-3); padding: 12px 14px; border-radius: var(--r-md); background: var(--ok-bg); max-width: 560px; }
.ev-places .t { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.ev-places strong { font-size: 18px; font-weight: 800; color: var(--ok); }
.ev-places span { font-size: 14px; color: var(--text-3); }
.ev-places i { display: block; height: 8px; margin-top: 8px; border-radius: 8px; background: color-mix(in srgb, var(--ok) 18%, transparent); overflow: hidden; }
.ev-places i b { display: block; height: 100%; background: var(--ok); border-radius: 8px; }
.ev-places p { margin: 8px 0 0; font-size: 14px; color: var(--text-3); }
.ev-places.low { background: var(--sand-bg); } .ev-places.low strong { color: #C2410C; } .ev-places.low i b { background: #C2410C; }
.ev-places.full { background: var(--surface-2); } .ev-places.full strong { color: var(--text); } .ev-places.full i b { background: var(--text-2); }
.event-nav { background: var(--surface); top: 64px; margin-inline: calc(var(--s-4) * -1); padding-inline: var(--s-2); border-bottom: 1px solid var(--border); scrollbar-width: none; }
.event-nav::-webkit-scrollbar { display: none; }
.event-nav a { font-size: 15px; font-weight: 600; color: var(--text-3); border-bottom: 3px solid transparent; min-height: 48px; padding: 0 12px; }
.event-nav a.on, .event-nav a[aria-current] { color: var(--text); font-weight: 700; border-bottom-color: var(--water); }
.event-nav a .cnt { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-3); font-size: 13px; font-weight: 700; }
@media (min-width: 860px) { .event-nav { margin-inline: 0; border-radius: var(--r-md); border: 1px solid var(--border); } }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts > div { display: block; padding: 0; border: 0; }
.facts dt { font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: none; letter-spacing: 0; }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; }
.facts dd small, .facts dd a.sub { display: block; font-weight: 400; font-size: 14px; color: var(--text-2); }
.sec h2 { font-size: 1.25rem; }
.sec h3[id] { scroll-margin-top: 130px; }
.aside-card .big { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; }
.cta-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-float); border-top: 1px solid var(--border); background: var(--surface); }
.cta-bar > span { flex: 1; font-size: 14px; line-height: 1.25; }
.cta-bar strong { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cta-bar .free { display: block; color: var(--ok); font-weight: 700; } .cta-bar .free.low { color: #C2410C; }
.cta-bar .btn { min-height: 54px; padding: 0 26px; border-radius: var(--r-lg); background: var(--sun) !important; border-color: var(--sun) !important; color: var(--sun-ink) !important; font-weight: 800; font-size: 17px; }

/* ======================================================================================================
   Standings: position, name and weight first; recent weighings and position changes highlighted
   ====================================================================================================== */
.rank-table td { padding: 12px; border-bottom-color: var(--surface-2); }
.rank-table .pos span { width: 32px; height: 32px; border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: 17px; background: var(--surface-2); color: var(--text); }
.rank-table tr.p1 .pos span { background: var(--medal-gold); color: #0A2540; } .rank-table tr.p2 .pos span { background: var(--medal-silver); color: #0A2540; } .rank-table tr.p3 .pos span { background: var(--medal-bronze); color: #0A2540; }
.rank-table .who strong { font-size: 16px; }
.rank-table .who small { font-size: 14px; }
.rank-table .w { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-table .gcell { display: none; }
.rank-table .bib { font-size: 13px; }
.rank-table tr.is-new { background: color-mix(in srgb, var(--ok) 7%, var(--surface)); }
.rank-table .delta { display: inline-flex; align-items: center; min-height: 18px; margin-top: 4px; padding: 0 6px; border-radius: 9px; font-size: 12px; font-weight: 800; }
.rank-table .delta.up { background: var(--ok-bg); color: var(--ok); } .rank-table .delta.down { background: var(--danger-bg); color: var(--danger); }
.rank-table .gain { display: block; margin-top: 3px; font-size: 13px; font-weight: 700; color: var(--ok); }
.rank-table .pos { text-align: center; }
.rank-table .pos > * { margin-inline: auto; }
.std-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 4px; border-radius: var(--r-md); background: var(--surface-2); margin: var(--s-3) 0; max-width: 480px; }
.std-tabs button { min-height: 40px; border: 0; border-radius: 11px; background: transparent; color: var(--text-3); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.std-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: 0 1px 2px rgba(10, 37, 64, .12); }
.live-line { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.offline-note { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: var(--s-2) 0; border-radius: var(--r-md); background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; }
#standings[data-state="live"] .podium { display: none; }
.updated-flash { animation: none !important; }
@media (max-width: 639px) {
  .rank-table tr { gap: 4px 12px; padding: 12px 0; }
  .rank-table .w { font-size: 19px; }
}

/* ---- fixes after first render ---- */
main:has(> .h-top) { padding-top: 0; }
.site-footer .brand .wordmark { color: #fff; }
.nav a.live-link { background: transparent; color: var(--red); font-weight: 800; box-shadow: none; }
.nav a.live-link::before { background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 18%, transparent); }
.nav a.live-link:hover { background: color-mix(in srgb, var(--red) 8%, transparent); color: var(--red); }
.h-search .field input[type=search] { background: transparent !important; border: 0 !important; box-shadow: none !important; outline: none; }
.h-search .btn { align-self: stretch; }
#rules-summary { scroll-margin-top: 130px; }
@media (max-width: 959px) { body:has(.cta-bar) .event-aside { display: none; } }
@media (max-width: 639px) {
  .rank-table tr { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 12px 0; border-bottom: 1px solid var(--surface-2); }
  .rank-table .pos { display: flex; flex-direction: column; align-items: center; }
  .rank-table .who strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.rank-table .who small { display: block; }
@media (max-width: 639px) { .rank-table td { padding: 0; } }
#standings[data-state="live"] > .note { display: none; }
.std-tabs:not([hidden]) ~ [data-pane="general"] > h3, .std-tabs:not([hidden]) ~ [data-pane="teams"] > h3 { display: none; }
[data-pane="sectors"] > h3:first-child { margin-top: var(--s-2); }
.rank-table th.w { font-size: 13px; font-weight: 600; }
.cr--live { background: var(--ink); border-color: var(--ink); color: #fff; }
.cr--live h3 { margin-top: 8px; } .cr--live h3 a { color: #fff; } .cr--live .cr-meta, .cr--live .cr-places.none { color: #B8C9DA; }
.cr-board { list-style: none; margin: 10px 0 0; padding: 0; }
.cr-board li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.cr-board .rk { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: rgba(255, 255, 255, .14); }
.cr-board li:nth-child(1) .rk { background: var(--medal-gold); color: #0A2540; } .cr-board li:nth-child(2) .rk { background: var(--medal-silver); color: #0A2540; } .cr-board li:nth-child(3) .rk { background: var(--medal-bronze); color: #0A2540; }
.cr-board .nm { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-board .wt { font-weight: 800; font-variant-numeric: tabular-nums; }
.cr--live .cr-cta.alt { background: #fff; color: var(--ink) !important; }
.list-body .tabs .tab[aria-current], .tab[aria-current="page"] { box-shadow: none; }
.list-body .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; }

/* ---- app pages (dashboard, organiser, admin, auth): plain page titles, flat cards ---- */
.page-head { background: none; color: var(--text); padding: 0; border-radius: 0; overflow: visible; }
.page-head::after { display: none; }
.page-head h1 { color: var(--text); font-size: var(--fs-2xl); }
.page-head p { color: var(--text-2); }
.page-head .btn-alt { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.page-head .btn-alt:hover { background: var(--surface-2); color: var(--text); }
.auth .card { box-shadow: none; }
.brand-mark { box-shadow: none; filter: none; }
.sidebar a[aria-current="page"] { background: var(--info-bg); color: var(--text); box-shadow: inset 3px 0 0 var(--water); }
.kpi b { font-family: var(--font-display); color: var(--text); }
.flash { border-radius: var(--r-md); box-shadow: none; }
.flash.ok { background: var(--ok-bg); color: var(--success-ink); border-color: transparent; }
.flash.info { background: var(--info-bg); color: var(--info-ink); border-color: transparent; }
.flash.err { background: var(--danger-bg); color: var(--danger-ink); border-color: transparent; }
.save-bar { box-shadow: var(--shadow-float); }
.kpi { padding-bottom: var(--s-4); } .kpi::after { display: none; }
.widget-promo { background: var(--ink) !important; }
.widget-promo .life-ic { background: rgba(255, 255, 255, .1); color: #fff; }
.sidebar { background: var(--ink); }
@media (prefers-color-scheme: dark) { .h-chips a.live, .nav a.live-link, .nav .live-link { color: #FF8A95; } }
.h-chips a.more { border-color: transparent; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
