﻿/* Sailing races Â· antidot.gr
   Light: grey-blue paper. Dark: deep blue-black. Red is kept for "today", blue marks short-handed races.
   Type: Fira Sans Condensed + Fira Mono (SIL Open Font License), as in Wind Router. */

:root {
  --paper: #e7ecf2;
  --paper-deep: #d9e1ea;
  --card: #f6f8fb;
  --ink: #0f1a2b;
  --ink-soft: rgba(15, 26, 43, 0.64);
  --ink-faint: rgba(15, 26, 43, 0.16);
  --ink-ghost: rgba(15, 26, 43, 0.06);
  --edge: #1a2f5a;
  --nav: #0c2558;
  --nav-ink: #fff;
  --heart: #e0242f;
  --wave-veil: transparent;
  --today: #e10600;
  --accent: #d21f28;
  --sea: #1f5fbf;
  --sea-soft: rgba(31, 95, 191, 0.1);
  --go: #13804a;
  --warn: #a85700;
  --wx-1: rgba(31, 95, 191, 0.08);
  --wx-2: rgba(31, 95, 191, 0.16);
  --wx-3: rgba(178, 94, 0, 0.16);
  --wx-4: rgba(178, 94, 0, 0.32);
  --sans: "Fira Sans Condensed", "Fira Sans", system-ui, sans-serif;
  --mono: "Fira Mono", ui-monospace, "Courier New", monospace;
  --gutter: 16px;
  --radius: 10px;
  --day: 26px;
  --lane: 54px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1321; --paper-deep: #172034; --card: #141c2d; --edge: #e6ecf5; --nav: #d3e2ff; --nav-ink: #0a1a3d; --heart: #ff4d57; --wave-veil: color-mix(in srgb, var(--card) 86%, transparent);
    --ink: #e6ecf5; --ink-soft: rgba(230, 236, 245, 0.66); --ink-faint: rgba(230, 236, 245, 0.16); --ink-ghost: rgba(230, 236, 245, 0.06);
    --sheet-halo: 0 0 0 1px rgba(122, 168, 255, 0.45), 0 0 28px rgba(122, 168, 255, 0.35); --backdrop: rgba(2, 4, 10, 0.78);
    --today: #ff3b3b; --sea: #7aa8ff; --sea-soft: rgba(122, 168, 255, 0.14); --go: #4cc38a; --warn: #f0a24a;
    --wx-1: rgba(122, 168, 255, 0.1); --wx-2: rgba(122, 168, 255, 0.2); --wx-3: rgba(240, 162, 74, 0.2); --wx-4: rgba(240, 162, 74, 0.38);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1321; --paper-deep: #172034; --card: #141c2d; --edge: #e6ecf5; --nav: #d3e2ff; --nav-ink: #0a1a3d; --heart: #ff4d57; --wave-veil: color-mix(in srgb, var(--card) 86%, transparent);
  --ink: #e6ecf5; --ink-soft: rgba(230, 236, 245, 0.66); --ink-faint: rgba(230, 236, 245, 0.16); --ink-ghost: rgba(230, 236, 245, 0.06);
    --sheet-halo: 0 0 0 1px rgba(122, 168, 255, 0.45), 0 0 28px rgba(122, 168, 255, 0.35); --backdrop: rgba(2, 4, 10, 0.78);
  --today: #ff3b3b; --sea: #7aa8ff; --sea-soft: rgba(122, 168, 255, 0.14); --go: #4cc38a; --warn: #f0a24a;
  --wx-1: rgba(122, 168, 255, 0.1); --wx-2: rgba(122, 168, 255, 0.2); --wx-3: rgba(240, 162, 74, 0.2); --wx-4: rgba(240, 162, 74, 0.38);
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; --day: 30px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
:root { --glow: color-mix(in srgb, var(--paper) 88%, #3a4a66); } /* page-bottom gradient colour; also the footer cards */
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper) radial-gradient(ellipse 70% 55% at 50% 100%, var(--glow), transparent) fixed; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-variant-numeric: tabular-nums; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.ic.sm { width: 15px; height: 15px; vertical-align: -2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.top { padding: 14px 0 10px; }
.top-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 16px; }
@media (min-width: 720px) { .top { position: relative; padding-top: 32px; } .top-row { position: absolute; top: 34px; left: 0; right: 0; margin: 0 auto; } .top h1 { padding-right: 330px; } }
.wordmark { font-weight: 600; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.wordmark .dot { color: var(--accent); }
.top-actions { display: flex; align-items: center; gap: 6px; min-width: 0; }
.area-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--nav); color: var(--nav-ink); font-weight: 600; font-size: 15px; white-space: nowrap; max-width: 52vw; }
.area-btn span { overflow: hidden; text-overflow: ellipsis; }
h1 { font-weight: 500; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem); line-height: 1; letter-spacing: -0.015em; }
h1 .title-year { color: var(--ink-soft); font-weight: 300; }
@media (max-width: 719px) {
  .top-actions { width: 100%; }
  .area-btn { margin-right: auto; }
}
.sub { color: var(--ink-soft); margin-top: 6px; max-width: 44rem; font-size: 17px; }

/* ---------- controls ---------- */
.controls { position: sticky; top: 0; z-index: 20; background: transparent; border-bottom: 1px solid transparent; padding: 10px 0; transition: padding .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.controls.condensed { padding: 9px 0; border-bottom-color: var(--ink-faint); box-shadow: 0 6px 20px -12px rgba(10, 20, 40, .35); }
/* Frosted glass on its own layer: blurring the sticky bar itself drew grey tiles in Chrome */
.controls::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease; background: color-mix(in srgb, var(--paper) 55%, transparent); -webkit-backdrop-filter: blur(8px) saturate(1.6); backdrop-filter: blur(8px) saturate(1.6); pointer-events: none; }
.controls.condensed::before { opacity: 1; }
.seg button, .chip-btn { transition: padding .3s ease, background-color .2s ease; }
.controls.condensed .seg button, .controls.condensed .chip-btn { padding-top: 3px; padding-bottom: 3px; }
.view-nav { display: flex; gap: 8px; align-items: center; }
.mini-title { font-weight: 500; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; max-width: 0; opacity: 0; margin-right: -8px; transition: max-width .35s ease, opacity .3s ease, margin .35s ease; }
.mini-title { flex: none; }
.controls.condensed .mini-title { max-width: 260px; opacity: 1; margin-right: 6px; }
@media (max-width: 1100px) { .controls.condensed #subscribeBtn span, .controls.condensed #todayBtn span { display: none; } }
@media (max-width: 960px) { .controls.condensed .mini-title { display: none; } }
.toolbar { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.seg { display: inline-flex; border: 1px solid var(--ink-faint); border-radius: 999px; padding: 2px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; font-size: 15px; }
.seg button[aria-pressed="true"] { background: var(--nav); color: var(--nav-ink); }
.toggles { display: flex; gap: 6px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--ink-faint); font-size: 15px; white-space: nowrap; }
.chip-btn[aria-pressed="true"] { background: var(--ink-ghost); border-color: var(--ink); }
#onlyStarred[aria-pressed="true"] .ic { fill: var(--heart); color: var(--heart); }
@media (max-width: 760px) { #todayBtn span, .seg button span, .toggles .chip-btn span { display: none; } .seg button, .chip-btn { padding: 7px 11px; } }
@media (max-width: 400px) { .toolbar, .toggles { gap: 4px; } .view-nav { gap: 4px; } .seg button, .chip-btn { padding: 7px 8px; } }

/* ---------- area sheet ---------- */
.area-list { display: grid; gap: 4px; padding: 6px 12px 16px; }
.area { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 10px; font-size: 18px; text-align: left; }
.area:hover { background: var(--ink-ghost); }
.area[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.area .n { font-family: var(--mono); font-size: 13px; opacity: 0.65; }
.area .en { font-size: 14px; opacity: 0.6; margin-left: 8px; }

/* ---------- reminders / status ---------- */
main { padding-top: 16px; padding-bottom: 72px; flex: 1 0 auto; width: 100%; }
/* Phones: main spans the screen, so clipping here can't cut the full-width timeline; stops wide bits from zooming the page out */
@media (max-width: 719px) { main { overflow-x: clip; } }
.status { color: var(--ink-soft); font-size: 15px; margin-bottom: 12px; }
.status:empty { display: none; }
.notices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; align-items: start; width: calc(80% + 48px); margin: 18px auto 16px; }
@media (max-width: 719px) { .notices { width: 100%; } }
/* the two notices side by side (stacked on a phone), each with its icon above the card */
.reminders, .news { display: grid; align-items: start; justify-items: start; min-width: 0; }
/* the icon sits inside its card, top left; the card's content is indented to leave room for it */
.rem-bell, .news-ic { grid-area: 1 / 1; z-index: 1; margin: 12px 0 0 14px; pointer-events: none; line-height: 0; }
.rem-bell .ic, .news-ic .ic { width: 30px; height: 30px; }
.rem-card, .news-card { grid-area: 1 / 1; }
.rem-card:not(.compact), .news-card:not(.compact) { justify-self: stretch; padding-left: 58px; }
.reminders:has(.compact) .rem-bell, .news:has(.compact) .news-ic { margin: 6px 0 0 11px; }
.reminders:has(.compact) .rem-bell .ic, .news:has(.compact) .news-ic .ic { width: 20px; height: 20px; }
.reminders .rem-card.compact, .news .news-card.compact { padding-left: 40px; }
.reminders[hidden], .news[hidden] { display: none; }
.reminders { --rem-green: #1f9d55; }
.rem-bell { color: var(--rem-green); flex: none; }
.rem-bell .ic { width: 36px; height: 36px; }
.rem-card { position: relative; max-width: 100%; min-width: 0; border: 1.5px solid var(--rem-green); border-radius: var(--radius); padding: 12px 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--rem-green) 16%, var(--card)), var(--card) 75%); }
.rem-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; }
.rem-x .ic { width: 16px; height: 16px; }
.rem-card h2 { padding-right: 24px; }

.rem-card.compact { display: flex; align-items: center; gap: 8px; padding: 6px 12px; cursor: pointer; color: inherit; font: inherit; }
.rem-card.compact h2 { margin: 0; padding: 0; }
.reminders h2 { font-size: 14px; font-weight: 300; text-transform: uppercase; letter-spacing: 0.06em; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.reminders ul { list-style: none; display: grid; gap: 6px; }
.reminders li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.reminders .when { font-family: var(--mono); font-size: 13px; color: var(--rem-green); text-transform: uppercase; }
.reminders a.name { font-weight: 600; text-decoration: none; }
.reminders.hint { display: block; grid-column: 1 / -1; border: 1px dashed; border-radius: var(--radius); padding: 12px 14px; background: var(--card); border-color: var(--ink-faint); color: var(--ink-soft); }
.sub-note { color: var(--ink-soft); font-size: 15px; }

/* Hydra mile figures: rich red */
:root { --hydra-red: #b3121c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hydra-red: #ff5a63; } }
:root[data-theme="dark"] { --hydra-red: #ff5a63; }

/* ---------- latest news (blue sibling of the reminders card) ---------- */
.news { --news-blue: #2f6fb5; }
.news-ic { color: var(--news-blue); flex: none; }
.news-ic .ic { width: 36px; height: 36px; }
.news-card { position: relative; max-width: 100%; min-width: 0; border: 1.5px solid var(--news-blue); border-radius: var(--radius); padding: 12px 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--news-blue) 16%, var(--card)), var(--card) 75%); }
.news-card h2 { font-size: 14px; font-weight: 300; text-transform: uppercase; letter-spacing: 0.06em; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; padding-right: 24px; }
.news-card.compact { display: flex; align-items: center; gap: 8px; padding: 6px 12px; cursor: pointer; color: inherit; font: inherit; }
.news-card.compact h2 { margin: 0; padding: 0; }
.news-card ul { list-style: none; display: grid; gap: 14px; }
.n-date { display: block; font-size: 12px; font-weight: 400; font-variant-caps: all-small-caps; text-transform: lowercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 2px; }
.news-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 2px; }
.news-card p { color: var(--ink-soft); max-width: 80ch; }
.n-table { margin-top: 8px; max-width: 420px; border: 1px solid color-mix(in srgb, var(--news-blue) 35%, var(--card)); border-radius: 6px; padding: 6px 10px; background: color-mix(in srgb, var(--news-blue) 6%, var(--card)); }
.n-cap { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); text-align: center; margin-bottom: 4px; }
.n-table table { width: 100%; border-collapse: collapse; }
.n-table td { padding: 3px 0; border-bottom: 1px solid color-mix(in srgb, var(--news-blue) 18%, transparent); }
.n-table tr:last-child td { border-bottom: 0; }
.n-table .n-nm { text-align: right; color: var(--ink-soft); font-family: var(--mono); font-size: 14px; }
.n-table .n-ym { text-align: right; font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--hydra-red); font-weight: 700; padding-left: 10px; white-space: nowrap; }
.n-note { font-size: 12px; font-style: italic; color: var(--ink-soft); text-align: center; margin-top: 4px; }
.n-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-weight: 500; color: var(--news-blue); text-decoration: none; }
.n-link:hover { text-decoration: underline; }
.r-hydra { font-size: 15px; font-weight: 700; color: var(--hydra-red); line-height: 1.2; margin-top: 3px; }
.r-hydra small { font-size: 12px; font-weight: 500; color: var(--ink-soft); margin-left: 3px; }
.r-hydra small.u { color: var(--hydra-red); margin-left: 1px; }

/* ---------- today line ---------- */
.today-line { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--today); font-weight: 300; font-size: 19px; letter-spacing: 0.02em; text-transform: uppercase; }
.today-line::before, .today-line::after { content: ""; flex: 1; height: 2px; background: var(--today); }

/* ---------- list ---------- */
.month { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin: 22px 0 8px; text-align: center; }
.past-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 15px; padding: 6px 0; }
.past-toggle .ic { transition: transform .2s; }
.past-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; } /* one wide card must not widen the whole month (large phone text) */
.week-sep { display: flex; align-items: center; gap: 14px; margin: 16px 0; color: #fff; }
.week-sep::before, .week-sep::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.week-sep svg { width: 21px; height: 21px; flex: none; }
/* after the last race of the year: like the today line, in green, with a finish flag */
.season-end { display: flex; align-items: center; gap: 12px; margin: 22px 0 8px; color: #2e8b57; font-weight: 300; font-size: 19px; letter-spacing: 0.02em; text-transform: uppercase; }
.season-end::before, .season-end::after { content: ""; flex: 1; height: 2px; background: currentColor; }
.season-end svg { width: 24px; height: 24px; flex: none; }
:root[data-theme="dark"] .season-end { color: #5fd08d; }

.race { display: grid; grid-template-columns: 58px minmax(0, 1fr) 150px 112px; gap: 14px; background: var(--card); border: 1px solid var(--ink-faint); border-radius: var(--radius); padding: 12px 12px 12px 10px; position: relative; }
.race.starred { border-color: var(--edge); box-shadow: inset 4px 0 0 var(--edge); }
.race.multi { padding-top: 16px; padding-bottom: 16px; }
.race.multi .r-name { font-size: 21px; }
.race.past { opacity: 0.6; }
.race.featured .r-name::after { content: " â—"; color: var(--accent); font-size: 0.6em; vertical-align: 0.3em; }
.r-date { text-align: center; line-height: 1.05; padding-top: 2px; }
.r-date .dow { display: block; font-size: 13px; text-transform: uppercase; color: var(--ink-soft); }
.r-date .day { display: block; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.r-date .mon { display: block; font-size: 13px; text-transform: uppercase; color: var(--ink-soft); }
.r-date .to { display: block; font-size: 12px; color: var(--ink-soft); margin: 2px 0; }
.r-date .day.end { font-size: 21px; }
.r-body { min-width: 0; }
.r-name { font-size: 18px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.r-meta { color: var(--ink-soft); font-size: 15px; margin-top: 3px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.r-meta .badges { margin-top: 0; align-items: baseline; }
.r-meta .badges:empty { display: none; }
.r-meta > span { display: inline-block; }
.r-meta > span > .ic { margin-right: 4px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge { display: inline-block; white-space: nowrap; font-size: 13px; line-height: 16px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--ink-faint); color: var(--ink-soft); }
.badge > .ic { vertical-align: -3px; margin-right: 4px; } /* inline-block: the text sets the baseline */
.badge.crew { color: var(--sea); border-color: var(--sea); background: var(--sea-soft); font-weight: 600; }
.badge.status { color: var(--today); border-color: var(--today); }
.race.st-off .r-name { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: var(--today); color: var(--ink-soft); }
.race.featured.st-off .r-name::after { content: none; }
.race.crew-double, .race.crew-solo { background: linear-gradient(90deg, var(--sea-soft), transparent 40%), var(--card); }
/* long (> 70 nm) races: faded blue/white swell on the right */
.race.long { --waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 160'%3E%3Cdefs%3E%3ClinearGradient id='f'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23fff'/%3E%3C/linearGradient%3E%3Cmask id='m'%3E%3Crect width='480' height='160' fill='url%28%23f%29'/%3E%3C/mask%3E%3C/defs%3E%3Cg fill='none' stroke-linecap='round' mask='url%28%23m%29'%3E%3Cpath d='M-120 40 Q-90 22 -60 40 T0 40 T60 40 T120 40 T180 40 T240 40 T300 40 T360 40 T420 40 T480 40 T540 40 T600 40 T660 40' stroke='%231f5fbf' stroke-width='10' stroke-opacity='0.16'%3E%3C/path%3E%3Cpath d='M-120 58 Q-90 40 -60 58 T0 58 T60 58 T120 58 T180 58 T240 58 T300 58 T360 58 T420 58 T480 58 T540 58 T600 58 T660 58' stroke='%23ffffff' stroke-width='6' stroke-opacity='0.7'%3E%3C/path%3E%3Cpath d='M-150 82 Q-120 64 -90 82 T-30 82 T30 82 T90 82 T150 82 T210 82 T270 82 T330 82 T390 82 T450 82 T510 82 T570 82 T630 82' stroke='%231f5fbf' stroke-width='10' stroke-opacity='0.13'%3E%3C/path%3E%3Cpath d='M-150 100 Q-120 82 -90 100 T-30 100 T30 100 T90 100 T150 100 T210 100 T270 100 T330 100 T390 100 T450 100 T510 100 T570 100 T630 100' stroke='%23ffffff' stroke-width='6' stroke-opacity='0.6'%3E%3C/path%3E%3Cpath d='M-120 124 Q-90 106 -60 124 T0 124 T60 124 T120 124 T180 124 T240 124 T300 124 T360 124 T420 124 T480 124 T540 124 T600 124 T660 124' stroke='%231f5fbf' stroke-width='10' stroke-opacity='0.1'%3E%3C/path%3E%3Cpath d='M-120 142 Q-90 124 -60 142 T0 142 T60 142 T120 142 T180 142 T240 142 T300 142 T360 142 T420 142 T480 142 T540 142 T600 142 T660 142' stroke='%23ffffff' stroke-width='6' stroke-opacity='0.5'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
  background: linear-gradient(90deg, var(--card) 35%, transparent 80%), linear-gradient(var(--wave-veil), var(--wave-veil)), var(--waves) right center / auto 100% no-repeat, var(--card); }
.race.long.crew-double, .race.long.crew-solo { background: linear-gradient(90deg, var(--sea-soft), transparent 40%), linear-gradient(90deg, var(--card) 35%, transparent 80%), linear-gradient(var(--wave-veil), var(--wave-veil)), var(--waves) right center / auto 100% no-repeat, var(--card); }
/* desktop: the swell drifts very slowly */
@media (min-width: 720px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .race.long { --waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 160'%3E%3Cdefs%3E%3ClinearGradient id='f'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23fff'/%3E%3C/linearGradient%3E%3Cmask id='m'%3E%3Crect width='480' height='160' fill='url%28%23f%29'/%3E%3C/mask%3E%3C/defs%3E%3Cg fill='none' stroke-linecap='round' mask='url%28%23m%29'%3E%3Cpath d='M-120 40 Q-90 22 -60 40 T0 40 T60 40 T120 40 T180 40 T240 40 T300 40 T360 40 T420 40 T480 40 T540 40 T600 40 T660 40' stroke='%231f5fbf' stroke-width='10' stroke-opacity='0.16'%3E%3CanimateTransform attributeName='transform' type='translate' from='0 0' to='-120 0' dur='20s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M-120 58 Q-90 40 -60 58 T0 58 T60 58 T120 58 T180 58 T240 58 T300 58 T360 58 T420 58 T480 58 T540 58 T600 58 T660 58' stroke='%23ffffff' stroke-width='6' stroke-opacity='0.7'%3E%3CanimateTransform attributeName='transform' type='translate' from='0 0' to='120 0' dur='16s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M-150 82 Q-120 64 -90 82 T-30 82 T30 82 T90 82 T150 82 T210 82 T270 82 T330 82 T390 82 T450 82 T510 82 T570 82 T630 82' stroke='%231f5fbf' stroke-width='10' stroke-opacity='0.13'%3E%3CanimateTransform attributeName='transform' type='translate' from='0 0' to='-120 0' dur='23s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M-150 100 Q-120 82 -90 100 T-30 100 T30 100 T90 100 T150 100 T210 100 T270 100 T330 100 T390 100 T450 100 T510 100 T570 100 T630 100' stroke='%23ffffff' stroke-width='6' stroke-opacity='0.6'%3E%3CanimateTransform attributeName='transform' type='translate' from='0 0' to='120 0' dur='18s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M-120 124 Q-90 106 -60 124 T0 124 T60 124 T120 124 T180 124 T240 124 T300 124 T360 124 T420 124 T480 124 T540 124 T600 124 T660 124' stroke='%231f5fbf' stroke-width='10' stroke-opacity='0.1'%3E%3CanimateTransform attributeName='transform' type='translate' from='0 0' to='-120 0' dur='26s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M-120 142 Q-90 124 -60 142 T0 142 T60 142 T120 142 T180 142 T240 142 T300 142 T360 142 T420 142 T480 142 T540 142 T600 142 T660 142' stroke='%23ffffff' stroke-width='6' stroke-opacity='0.5'%3E%3CanimateTransform attributeName='transform' type='translate' from='0 0' to='120 0' dur='21s' repeatCount='indefinite'/%3E%3C/path%3E%3C/g%3E%3C/svg%3E"); }
}
.ap-flag { width: 90px; height: 29px; flex: none; color: var(--ink); display: block; }
.ap-wrap { margin-top: 2px; }

.legs { list-style: none; margin-top: 10px; padding-left: 14px; display: grid; gap: 8px; }
.legs li { position: relative; }
.legs li:not(:last-child)::after { content: ""; position: absolute; left: -12px; top: 12px; width: 2px; height: calc(100% + 8px); background: var(--ink-faint); }
.legs li.ret { color: var(--ink-soft); }
.legs li::before { content: ""; position: absolute; z-index: 1; left: -17px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink-soft); }
.legs .l-when { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); margin-left: 8px; }
.legs .l-when:empty { display: none; }
.legs .l-nm { color: var(--ink-soft); font-size: 14px; }

/* weather: the whole chip is a link to the detailed forecast */
a.wx { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; margin-top: 8px; padding: 4px 10px; border-radius: 8px; background: var(--wx-1); text-decoration: none; }
a.wx:hover { outline: 1px solid var(--ink-soft); }
a.wx.lv2 { background: var(--wx-2); } a.wx.lv3 { background: var(--wx-3); } a.wx.lv4 { background: var(--wx-4); }
.wx .arrow { display: inline-block; }
.wx b { font-weight: 600; }
.wx .go { opacity: 0.55; }
.legs a.wx { margin-top: 4px; }

/* right-hand column: actions + links */
.r-mid a, .r-side a, a.wx { max-width: 100%; overflow-wrap: anywhere; }
.r-mid, .r-side { display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--ink-faint); padding-left: 12px; min-width: 0; }
.r-dist { font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; }
.r-dist small { font-size: 14px; font-weight: 500; color: var(--ink-soft); margin-left: 3px; }
.r-actions { display: flex; gap: 2px; justify-content: flex-start; margin: -6px 0 0 -9px; }
.r-actions .icon-btn { width: 46px; height: 46px; }
.r-actions .icon-btn .ic { width: 30px; height: 30px; }
.r-open { color: var(--go); font-weight: 600; font-size: 14px; }
.cal-btns { display: flex; gap: 6px; margin-left: -6px; }
.cal-btns a { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 6px; border-radius: 8px; text-decoration: none; font-size: 11px; font-family: var(--mono); color: var(--ink-soft); }
.cal-btns a:hover { background: var(--ink-ghost); color: var(--ink); }
.cal-btns .ic { width: 22px; height: 22px; }
.links { display: grid; gap: 7px; font-size: 14px; min-width: 0; }
.links a { display: inline-flex; align-items: flex-start; gap: 6px; text-decoration: none; line-height: 1.2; }
.links a .t { border-bottom: 1px solid var(--ink-faint); overflow-wrap: anywhere; }
.links a:hover .t { border-color: var(--ink); }
.links .ic { margin-top: 1px; }
.links .open { color: var(--go); font-weight: 600; }
.links .closed { color: var(--ink-soft); }
.links .search { color: var(--ink-soft); }
.links .grp { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-top: 4px; }

.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; color: var(--ink-soft); flex: none; }
.icon-btn:hover { background: var(--ink-ghost); color: var(--ink); }
.icon-btn .ic { width: 20px; height: 20px; }
#theme, #lang { width: 34px; height: 34px; border: 1px solid var(--ink-faint); color: var(--ink); }
#theme .ic { width: 18px; height: 18px; }
#lang { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.icon-btn.star[aria-pressed="true"] { color: var(--heart); }
.icon-btn.star[aria-pressed="true"] .ic { fill: currentColor; }

/* hidden race: a thin line */
.race.is-hidden { display: flex; align-items: center; gap: 10px; padding: 2px 6px 2px 12px; background: transparent; border-style: dashed; color: var(--ink-soft); font-size: 14px; opacity: 0.75; }
.race.is-hidden .h-date { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.race.is-hidden .h-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race.is-hidden .icon-btn { width: 30px; height: 30px; }

@media (max-width: 680px) {
  .race { grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .r-mid, .r-side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--ink-faint); padding: 8px 0 0; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
  .r-actions { margin: 0; }
  .race.multi .r-name { font-size: 19px; }
}

.empty { color: var(--ink-soft); padding: 30px 0; text-align: center; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--ink-faint); border-radius: var(--radius); background: var(--card); }
table.races { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 900px; }
table.races th { text-align: left; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); border-bottom: 1px solid var(--ink-faint); padding: 0; background: var(--card); }
table.races th button { width: 100%; text-align: left; padding: 10px 8px; display: flex; gap: 4px; align-items: center; text-transform: inherit; letter-spacing: inherit; }
table.races th button .ic { opacity: 0; transition: transform .2s; }
table.races th[aria-sort] button .ic { opacity: 1; }
table.races th[aria-sort="descending"] button .ic { transform: rotate(180deg); }
table.races td { padding: 8px; border-bottom: 1px solid var(--ink-ghost); vertical-align: top; }
table.races tr.starred td { background: var(--ink-ghost); }
table.races tr.starred td:first-child { box-shadow: inset 3px 0 0 var(--edge); }
table.races tr.is-hidden td { opacity: 0.4; }
table.races tr.past td { color: var(--ink-soft); }
table.races tr.multi .t-name { font-weight: 700; }
table.races .t-name { font-weight: 600; }
/* Phones: the race name fits next to the actions and date before any sideways scrolling; long words break */
@media (max-width: 719px) { table.races td.t-name-cell { width: 38vw; max-width: 38vw; overflow-wrap: anywhere; hyphens: auto; } }
table.races .t-date { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
table.races .st-off .t-name { text-decoration: line-through; text-decoration-color: var(--today); }
table.races tr.today-row td { padding: 14px 8px; border-bottom: 1px solid var(--ink-ghost); }
table.races tr.today-row .today-line { margin: 0; }
table.races .acts { white-space: nowrap; }
table.races .acts .icon-btn { width: 30px; height: 30px; }
table.races .acts .icon-btn .ic { width: 17px; height: 17px; }
table.races a.wx { margin: 0; padding: 2px 7px; font-size: 13px; white-space: nowrap; }
table.races .badge { font-size: 12px; padding: 1px 7px; }
table.races td.club-links { display: table-cell; } /* .links is a grid; a grid td stops stretching to the row height */
table.races .club-links a { display: flex; margin-bottom: 4px; white-space: nowrap; }

/* ---------- timeline ---------- */
.tl-box { position: relative; margin-top: 8px; width: calc(100vw - var(--sbw, 0px)); margin-left: calc(50% - (100vw - var(--sbw, 0px)) / 2); border-block: 1px solid var(--ink-faint); background: var(--card); overflow: hidden; }
.tl-edge { position: absolute; top: 72px; z-index: 5; background: var(--today); color: #fff; font-weight: 700; font-size: 14px; padding: 3px 9px; text-transform: uppercase; letter-spacing: .03em; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.tl-edge.left { left: 0; border-radius: 0 6px 6px 0; }
.tl-edge.right { right: 0; border-radius: 6px 0 0 6px; }
.tl-wrap { background: var(--card); overflow-x: auto; overflow-y: hidden; position: relative; -webkit-overflow-scrolling: touch; cursor: grab; }
.tl-box, .top, .controls { user-select: none; -webkit-user-select: none; }
.tl-wrap.dragging { cursor: grabbing; }
.tl-wrap.dragging .tl-bar { pointer-events: none; }
.tl-wrap::-webkit-scrollbar { height: 16px; }
.tl-wrap::-webkit-scrollbar-track { background: var(--ink-ghost); }
.tl-wrap::-webkit-scrollbar-thumb { background-color: var(--ink-faint); border-radius: 999px; border: 4px solid transparent; background-clip: padding-box; }
.tl-wrap::-webkit-scrollbar-thumb:hover { background-color: var(--ink-soft); }
.tl { position: relative; }
.tl-months { position: relative; height: 40px; border-bottom: 1px solid var(--ink-faint); }
.tl-months span { position: absolute; top: 7px; font-family: var(--mono); font-size: 18px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); padding-left: 6px; border-left: 1px solid var(--ink-faint); height: 33px; white-space: nowrap; }
.tl-days { position: relative; height: 28px; border-bottom: 1px solid var(--ink-faint); }
.tl-days span { position: absolute; top: 5px; width: var(--day); text-align: center; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.tl-days span.we { color: var(--ink); font-weight: 600; }
.tl-grid { position: absolute; inset: 68px 0 0 0; pointer-events: none; }
.tl-grid i { position: absolute; top: 0; bottom: 0; width: var(--day); background: var(--ink-ghost); }
.tl-lanes { position: relative; margin-top: 26px; }
.tl-bar { position: absolute; height: calc(var(--lane) - 10px); display: flex; align-items: center; gap: 7px; text-align: left; font-size: 14px; line-height: 1.15; }
.tl-bar .blk { flex: none; height: 100%; border-radius: 8px; border: 1.5px solid var(--ink-soft); background: var(--card); display: inline-flex; align-items: center; justify-content: center; }
.tl-bar .lbl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tl-bar.multi .blk { border-color: var(--edge); background: var(--paper-deep); }
.tl-bar.starred .blk { background: var(--edge); border-color: var(--edge); color: var(--paper); }
.tl-bar.starred .lbl { font-weight: 700; }
.tl-bar.crew-double .blk, .tl-bar.crew-solo .blk { border-color: var(--sea); border-width: 2px; }
.tl-bar.starred.crew-double .blk, .tl-bar.starred.crew-solo .blk { background: var(--sea); border-color: var(--sea); color: #fff; }
.tl-bar .blk .ic { width: 15px; height: 15px; color: var(--sea); }
.tl-bar.starred .blk .ic { color: inherit; }
.tl-bar .blk { gap: 3px; }
.tl-bar .blk .ic.tl-heart { width: 13px; height: 13px; color: var(--heart); fill: var(--heart); }
.tl-bar.is-hidden { opacity: 0.28; }
.tl-bar.st-off .lbl { text-decoration: line-through; text-decoration-color: var(--today); color: var(--ink-soft); }
.tl-bar.past { opacity: 0.55; }
.tl-bar.past.is-hidden { opacity: 0.18; }
.tl-bar:hover .lbl { text-decoration: underline; }
.tl-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--today); z-index: 3; pointer-events: none; }
.tl-today span { position: absolute; top: 72px; left: 5px; background: var(--today); color: #fff; font-weight: 700; font-size: 15px; padding: 1px 7px; border-radius: 4px; white-space: nowrap; text-transform: uppercase; letter-spacing: .03em; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-soft); font-size: 14px; margin-top: 10px; }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-legend i { display: inline-block; width: 22px; height: 14px; border-radius: 3px; border: 1.5px solid var(--ink-soft); }
.tl-legend i.multi { width: 40px; border-color: var(--edge); background: var(--paper-deep); }
.tl-legend i.star { background: var(--edge); border-color: var(--edge); }
.tl-legend i.crew { border-color: var(--sea); border-width: 2px; }
.tl-legend i.today { width: 2px; border: 0; background: var(--today); border-radius: 0; height: 16px; }

/* ---------- sheets (dialogs) ---------- */
.sheet { border: 0; padding: 0; background: var(--paper); color: var(--ink); width: min(640px, 100vw - 24px); max-height: min(86vh, 900px); margin: auto; border-radius: 14px; box-shadow: var(--sheet-halo, 0 0 0 transparent), 0 20px 60px rgba(0,0,0,.35); }
#areaSheet { width: min(420px, 100vw - 24px); }
.sheet::backdrop { background: var(--backdrop, rgba(4, 8, 16, 0.5)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 0 16px; }
.sheet-head h2 { font-weight: 600; font-size: 24px; }
#detailBody, #subBody { padding: 4px 16px 18px; }
#detailBody .race { border: 0; padding: 4px 0; background: transparent; box-shadow: none; }
/* Windy forecast: near-full-screen, same on phones (overrides the bottom-sheet rule below) */
.sheet.windy-sheet { position: fixed; inset: 40px; width: auto; max-width: none; height: auto; max-height: none; margin: 0; border-radius: 14px; overflow: hidden; }
.windy-sheet[open] { display: flex; flex-direction: column; }
.windy-sheet .sheet-head { align-items: flex-start; padding: 10px 10px 10px 16px; }
.windy-head { min-width: 0; }
.windy-head h2 { font-size: 20px; line-height: 1.2; }
.windy-head p { margin-top: 2px; font-size: 14px; color: var(--ink-soft); }
.windy-head .arrow { display: inline-block; vertical-align: -2px; }
.windy-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.windy-layers { margin-right: 6px; }
.windy-layers button { padding: 6px 14px; font-size: 15px; }
@media (max-width: 700px) { .sheet.windy-sheet { inset: 10px; } .windy-head h2 { font-size: 18px; } .windy-head p { font-size: 13px; } .windy-sheet .sheet-head { flex-wrap: wrap; padding: 8px 6px 8px 12px; } .windy-head { flex: 1 1 calc(100% - 140px); } .windy-tools { display: contents; } .windy-layers { order: 3; margin: 2px 0 0; } }
.windy-out { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; padding: 6px 8px; border-radius: 8px; text-decoration: none; }
.windy-out:hover { outline: 1px solid var(--ink-soft); }
/* Windy's embed can't be styled from here, so it's drawn smaller and scaled up to enlarge its controls */
.windy-frame { --z: 1.35; flex: 1; position: relative; overflow: hidden; background: #3b4a6b; }
#windyFrame { position: absolute; top: 0; left: 0; width: calc(100% / var(--z)); height: calc(100% / var(--z)); transform: scale(var(--z)); transform-origin: 0 0; border: 0; display: block; }
@media (max-width: 700px) { .windy-frame { --z: 1.15; } }
@media (max-width: 560px) { .sheet:not(.windy-sheet), #areaSheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 14px 14px 0 0; max-height: 88vh; } }
.sub-actions { display: grid; gap: 8px; margin: 14px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.btn.primary { background: var(--ink); color: var(--paper); }
.sub-sep { border: 0; border-top: 1px solid var(--ink-faint); margin: 16px 0; }
.copy-row { display: flex; gap: 6px; margin-top: 8px; }
.copy-row input { flex: 1; min-width: 0; font: 12px var(--mono); padding: 8px; border: 1px solid var(--ink-faint); border-radius: 8px; background: var(--card); color: var(--ink); }
#subBody h3 { font-size: 17px; display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }

/* ---------- footer ---------- */
.foot { color: var(--ink-soft); font-size: 13.5px; }
.foot-in { padding-top: 20px; padding-bottom: 40px; display: grid; gap: 4px; }
.disclaimer { max-width: 44rem; margin-top: 6px; }
.wish { font-style: italic; color: var(--ink); margin-top: 10px; }
.wish:empty { display: none; }
.about { margin: 0 0 6px; padding: 14px 0 16px; border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent); }
/* Cards to the rest of antidot.gr */
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; margin-top: 40px; }
.more-card { display: grid; grid-template-columns: 1fr auto; grid-auto-rows: min-content; align-content: center; column-gap: 16px; row-gap: 3px; padding: 16px 18px; background: var(--glow); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; min-width: 0; }
.more-card:hover, .more-card:focus-visible { box-shadow: 0 4px 14px var(--ink-faint); transform: translateY(-2px); }
.more-card img { grid-column: 2; grid-row: 1 / span 2; width: 104px; height: 78px; object-fit: cover; border-radius: calc(var(--radius) - 4px); background: var(--paper-deep); align-self: center; }
.more-card > span { grid-column: 1; min-width: 0; }
.more-title { font-weight: 600; font-size: 15px; }
.more-text { color: var(--ink-soft); font-size: 13px; line-height: 1.35; }
.more-card.home .wordmark { font-size: 26px; line-height: 1.1; }
#updated { margin-top: 56px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent); } /* same line as the week separators */
#updated:empty { display: none; }
.foot-cols { display: grid; gap: 4px; }
@media (min-width: 720px) { .foot-cols { grid-template-columns: 1fr 2fr 1.4fr; gap: 28px; margin: 8px 0; align-items: baseline; } .foot-cols .disclaimer { max-width: none; margin-top: 0; } }
.foot a { text-decoration-color: var(--ink-faint); }

/* All races of the year, written into the page at deploy (tools/prerender.mjs) so crawlers can read them; collapsed by month */
.all-races { margin-top: 96px; color: var(--ink-soft); font-size: 14px; background: var(--glow); border-radius: var(--radius); }
.all-races > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 16px 18px; }
.all-races > summary::-webkit-details-marker { display: none; }
.all-races > summary::after { content: ''; grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 10px; height: 10px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); transition: transform .15s; margin-top: -4px; }
.all-races[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.all-races h2 { color: var(--ink); font-size: 20px; font-weight: 600; margin: 0 0 4px; }
.all-races > summary p { margin: 0; max-width: 44rem; }
.all-months { padding: 2px 18px 12px; background: color-mix(in srgb, #fff 55%, transparent); border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
:root[data-theme="dark"] .all-months { background: color-mix(in srgb, #fff 6%, transparent); }
.all-months > details:first-child { border-top: 0; }
.all-months details { border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.all-months summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 0; color: var(--ink); font-weight: 500; text-transform: capitalize; }
.all-months summary::-webkit-details-marker { display: none; }
.all-months summary::before { content: ''; flex: none; width: 7px; height: 7px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(-45deg); transition: transform .15s; }
.all-months details[open] > summary::before { transform: rotate(45deg); }
.all-months summary span { color: var(--ink-soft); font-weight: 400; text-transform: none; margin-left: -4px; }
.all-races ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 5px; }
.all-races li { line-height: 1.4; }
.all-races time { display: inline-block; min-width: 6.5em; font-variant-numeric: tabular-nums; }
.all-races strong { color: var(--ink); font-weight: 500; }
.all-races em { color: #c0392b; font-style: normal; margin-left: 4px; }

/* FAQ: the same accordion card as the race index (also written by tools/prerender.mjs) */
.all-races.faq { margin-top: 14px; }
.faq .all-months summary { text-transform: none; }
.faq .all-months p { margin: 0 0 12px; max-width: 44rem; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* antidot.gr cookie disks (js/consent.js): grey-blue instead of cream on this page */
body #cookie-consent .cc-main { background: #dce4ee; }
.chip-btn[hidden] { display: none; }
/* lighter grey for the bottom cards (accordions + links to the other pages), light theme only */
:root:not([data-theme="dark"]) .all-races, :root:not([data-theme="dark"]) .more-card { background: #f3f6f9; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 7%, transparent); }
:root:not([data-theme="dark"]) .all-months { background: #fbfcfd; }
/* when the race index + FAQ cards are on the page, the footer cards follow them at the same 14px spacing */
main:has(.faq) + .foot .foot-in { padding-top: 14px; }
main:has(.faq) + .foot .more { margin-top: 0; }
/* answers and race lines start under the row title, past the chevron (7px + rotation + 12px gap) */
.all-months details > p, .all-months details > ul { padding-left: 21px; }
/* race lines: hanging indent, so a wrapped line continues under the race name, not under the date */
.all-races li { padding-left: 7em; text-indent: -7em; }
.all-races li time { min-width: 7em; text-indent: 0; }
/* set by fitToolbar() in app.js when the buttons would run off the screen */
.toolbar { min-width: 0; }
.toolbar.tight .toggles .chip-btn span, .toolbar.tighter #todayBtn span, .toolbar.tighter .seg button span { display: none; }
.toolbar.tight .toggles .chip-btn, .toolbar.tighter .chip-btn, .toolbar.tighter .seg button { padding-left: 11px; padding-right: 11px; }
/* the title always stays on one line; fitTitle() in app.js shrinks the font when it would not fit */
h1#title { white-space: nowrap; }
/* when every notice is collapsed to its pill, the pills sit together on the left instead of in two columns */
.notices:not(:has(.rem-card:not(.compact), .news-card:not(.compact))) { display: flex; flex-wrap: wrap; gap: 10px; }
.notices .reminders.hint { flex-basis: 100%; }
/* distances in the news table never break across lines */
.news-card .n-nm, .news-card .n-ym { white-space: nowrap; }
/* the install button drops its label together with the toolbar toggles (fitToolbar), and on phones */
#installBtn.icon-only span { display: none; }
#installBtn.icon-only { padding-left: 11px; padding-right: 11px; }
@media (max-width: 760px) { #installBtn span { display: none; } }
/* install button: orange, so it stands out from the grey controls */
#installBtn { color: #c2410c; border-color: #ea7a2a; background: color-mix(in srgb, #f97316 12%, transparent); }
#installBtn:hover { background: color-mix(in srgb, #f97316 20%, transparent); }
:root[data-theme="dark"] #installBtn { color: #fdba74; border-color: #f97316; background: color-mix(in srgb, #f97316 16%, transparent); }
/* thin blue lines above and between the news items */
.news-card ul { gap: 0; }
.news-card li { padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--news-blue) 45%, transparent); }
/* thin green lines above and between the races in the Coming up card, like the news card */
.reminders ul { gap: 0; }
.reminders li { padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--rem-green) 45%, transparent); }
/* the club posted something new on the notice board this week (Worker: rrsDoc) */
.links a.rrs-new { color: #c2410c; font-weight: 600; }
.links a.rrs-new .t { border-color: color-mix(in srgb, #c2410c 45%, transparent); }
:root[data-theme="dark"] .links a.rrs-new { color: #fdba74; }
