/*
 * Night Session, the look of www.trackdaylist.com (docs/night-session/brief.md, plan of
 * 2026-11-15; the only look since the owner's choice of 2026-11-17): the site's one stylesheet,
 * loaded by every page (the file keeps its name, see app/Night.php). No build step, no import,
 * no third-party request: the fonts are this site's files (public/assets/fonts/NOTICE.txt).
 *
 * Rules kept from the plan: lime is a signal (logo, places available, active states, current
 * month, the latest provenance step, one call-to-action card), never a decorative fill; status is
 * a label plus a shape, never colour alone; no opacity on cancelled track days; input borders and
 * outline buttons at 3:1 or more (--border-input); 44 px targets for controls.
 */

/* Geist and Geist Mono, variable (weight 100 to 900), Google's latin and latin-ext subsets. */
@font-face { font-family: 'Geist'; src: url('../fonts/Geist-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap;
  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: 'Geist'; src: url('../fonts/Geist-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap;
  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: 'Geist Mono'; src: url('../fonts/GeistMono-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap;
  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: 'Geist Mono'; src: url('../fonts/GeistMono-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap;
  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; }

:root {
  color-scheme: dark;
  /* Surfaces */
  --bg: #0A0A0C;
  --surface: #131418;
  --surface-2: #1B1C22;
  --line: #26282F;
  --line-soft: #1F2026;
  --line-strong: #3F414A;
  /* Inputs and outline buttons: 4.97 / 4.62 / 4.27 to 1 on --bg / --surface / --surface-2 (WCAG 1.4.11). */
  --border-input: #7C7F8C;
  /* Text: --muted passes 4.5:1 everywhere; --dim is decorative or large text only. */
  --text: #F4F4F5;
  --text-2: #D4D4D8;
  --muted: #A1A1AA;
  --dim: #71717A;
  /* The one signal colour */
  --accent: #C8FF2E;
  --accent-ink: #0A0A0C;
  --accent-soft: rgba(200, 255, 46, 0.12);
  /* Availability */
  --ok: var(--accent);
  --ok-bg: var(--accent-soft);
  --warn: #FFB020;
  --warn-bg: rgba(255, 176, 32, 0.14);
  --full: #FF7A7A;
  --full-dot: #FF4D4D;
  --full-bg: rgba(255, 77, 77, 0.14);
  /* The light booking card (listing page) */
  --card-light: #F4F4F5;
  --card-light-muted: #52525B;
  --warn-light-bg: #FFF1D6;
  --warn-light-text: #7A4B00;
  --warn-light-dot: #E08A00;
  /* The other states on the light card (not in the brief; 4.5:1 or more, tested). */
  --ok-light-bg: #E8F5C8;
  --ok-light-text: #3A5A06;
  --full-light-bg: #FDE4E4;
  --full-light-text: #9F1C1C;
  --line-light: #71717A;
  /* Radii */
  --r-pill: 999px;
  --r-sm: 12px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-2xl: 28px;
  /* Type */
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  /* Layout */
  --gutter: 16px;
  --wrap: 1240px;
}
@media (min-width: 720px) { :root { --gutter: 24px; } }

/* ------------------------------------------------------------------------------------------ */
/* Base                                                                                         */
/* ------------------------------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
/* hidden always wins over a display rule (.report-form, .btn). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Lime on the light booking card is 1.07:1: a dark ring there (WCAG 2.4.7, 1.4.11). */
.book :focus-visible { outline-color: #0A0A0C; }
h1, h2, h3 { color: var(--text); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); letter-spacing: -0.03em; }
h3 { font-size: 1.1rem; letter-spacing: -0.02em; }
p { margin: 0 0 0.75em; }
small { font-size: 0.85em; }
strong, b { color: var(--text); font-weight: 600; }
q { quotes: '“' '”'; }
:lang(fr) q { quotes: '« ' ' »'; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 60; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
.hint { color: var(--muted); font-size: 0.9rem; }

/* Buttons: pills, 44 px tall. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--r-pill); border: 1px solid transparent;
  font: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--text); color: var(--bg); }
.btn.primary:hover { background: #fff; }
.btn.ghost, .btn.ext { background: transparent; color: var(--text); border-color: var(--border-input); }
.btn.ghost:hover, .btn.ext:hover { background: var(--surface-2); }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.wide { width: 100%; }
.btn[disabled] { cursor: progress; }
.btn svg { flex: none; }
/* The round arrow: a link to the listing page, named for its circuit (aria-describedby). */
.btn-round { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--text); color: var(--bg); text-decoration: none; }
.btn-round:hover { background: #fff; }

/* Pills: tags, status, chips. */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-2); font-size: 0.75rem; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.tag.veh-bike { background: var(--text); color: var(--bg); font-weight: 600; }
.tag.veh-car { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--text); font-weight: 600; }

/* Availability: a label plus a shape (circle, triangle, cross, ring, bar), never colour alone. */
.st { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 600; line-height: 1.25; border: 1px solid transparent; }
.st.a-available { background: var(--ok-bg); color: var(--ok); }
.st.a-few { background: var(--warn-bg); color: var(--warn); }
.st.a-full { background: var(--full-bg); color: var(--full); }
.st.a-unknown { background: transparent; color: var(--muted); border: 1px dashed var(--dim); }
.st.a-cancelled { background: var(--surface-2); color: var(--muted); }
.dot { position: relative; display: inline-block; flex: none; width: 8px; height: 8px; }
.a-available .dot { border-radius: 50%; background: var(--ok); }
.a-few .dot { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--warn); }
.a-full .dot::before, .a-full .dot::after { content: ''; position: absolute; left: 3px; top: -1px; width: 2px; height: 10px; background: var(--full-dot); transform: rotate(45deg); }
.a-full .dot::after { transform: rotate(-45deg); }
.a-unknown .dot { border-radius: 50%; border: 1.5px solid var(--muted); }
.a-cancelled .dot { width: 9px; height: 3px; border-radius: 2px; background: var(--muted); }

/* Forms: a 3:1 border on every control. */
select, input[type="text"], input[type="email"], input[type="url"], textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--border-input); border-radius: var(--r-sm);
  font: inherit; color: var(--text); background: var(--bg);
}
textarea { min-height: 128px; resize: vertical; }
input[readonly] { background: var(--surface-2); color: var(--muted); }
.chk { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; font-size: 0.95rem; cursor: pointer; }
.chk input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.chk small { color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
/* "notice", not "banner": ad-blocker lists hide elements named like ads (2026-11-15). */
.notice { padding: 12px 16px; border-radius: var(--r-md); font-weight: 600; margin: 12px 0; }
.notice.err { background: var(--full-bg); color: var(--full); }

/* ------------------------------------------------------------------------------------------ */
/* Header: one row; the phone menu is a <details>, so it opens without JavaScript.             */
/* ------------------------------------------------------------------------------------------ */

.site-header { position: relative; z-index: 30; border-bottom: 1px solid var(--line-soft); background: var(--bg); }
.bar { display: flex; align-items: center; gap: 8px 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; flex: none; }
.glyph { width: 44px; height: 32px; color: var(--accent); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); color: var(--muted); font-size: 0.9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; border: 1px solid transparent; }
.nav a:hover { color: var(--text); }
/* The current section: shaded and underlined (the shade alone is 1.16:1, not a cue). */
.nav a[aria-current] { background: var(--surface-2); color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav a.cta { background: var(--text); color: var(--bg); font-weight: 600; padding: 0 18px; }
.nav a.cta:hover { background: #fff; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--muted); font-size: 0.875rem; font-weight: 500; text-decoration: none; border-radius: var(--r-pill); }
.lang:hover { color: var(--text); }
.nav-desk { display: none; }
/*
 * Phones: the language link on the right, the menu button in a place kept for it at the end of
 * the row. Opened, the menu takes a row of its own under the brand and pushes the page down (in
 * the flow, never over the content: a focused link is never hidden under it, WCAG 2.4.11); the
 * button stays where it was.
 */
.lang { margin-left: auto; }
@media (max-width: 1079px) {
  .bar { position: relative; flex-wrap: wrap; column-gap: 10px; padding-top: 14px; padding-bottom: 14px; padding-right: calc(var(--gutter) + 52px); }
  .lang { padding: 0 6px; }
  /* Closed, the menu is an empty item (its button is placed absolutely): no gap for it either. */
  .menu { flex: 0 0 0; margin-left: -10px; }
  .menu[open] { flex: 1 0 100%; margin-left: 0; }
  .menu > summary { position: absolute; top: 14px; right: var(--gutter); }
}
.menu > summary { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text); cursor: pointer; list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--surface-2); }
.nav-menu { display: grid; gap: 4px; padding: 4px 0 20px; }
.nav-menu a { min-height: 48px; padding: 0 16px; border-radius: var(--r-md); font-size: 1.0625rem; color: var(--text-2); }
.nav-menu a.cta { justify-content: center; margin-top: 8px; border-radius: var(--r-pill); }
@media (min-width: 1080px) {
  .nav-desk { display: flex; flex: 1; align-items: center; gap: 2px; min-width: 0; }
  .nav-desk .cta { margin-left: auto; }
  .lang { margin-left: 0; }
  .menu { display: none; }
}

/* ------------------------------------------------------------------------------------------ */
/* Text pages, errors                                                                           */
/* ------------------------------------------------------------------------------------------ */

.hero { padding: 56px 0 12px; }
.hero h1 { max-width: 22ch; }
.hero .lead { color: var(--muted); font-size: 1.125rem; max-width: 60ch; }
.prose { padding-top: 16px; padding-bottom: 80px; font-size: 1.0625rem; line-height: 1.65; }
.prose > * { max-width: 760px; }
.prose h2 { margin-top: 1.8em; font-size: 1.625rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--muted); }
.prose address { font-style: normal; }
.prose dl > dt { font-weight: 600; color: var(--text); margin-top: 10px; }
.prose dl > dd { margin: 0 0 4px; }
.qa { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 6px; }
.qa h2 { font-size: 1.25rem; margin-top: 1em; }
.measure { margin-top: 40px; }
.measure h2 { margin-top: 0; font-size: 1.25rem; }

/* ------------------------------------------------------------------------------------------ */
/* Footer: four columns                                                                         */
/* ------------------------------------------------------------------------------------------ */

.site-footer { border-top: 1px solid var(--line-soft); padding: 56px 0 28px; color: var(--muted); font-size: 0.9375rem; }
/* Footer links sit in their own lists, so no underline at rest (owner 2026-11-15); hover and
   keyboard focus bring it back. */
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--text); text-decoration: underline; }
.site-footer h2 { color: var(--muted); font-size: 0.875rem; font-weight: 500; letter-spacing: 0; margin: 0 0 10px; }
.f-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .f-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.f-about p { max-width: 36ch; }
.f-brand { color: var(--text); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; }
.f-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.f-grid ul a { display: inline-block; padding: 3px 0; } /* a 24 px target (WCAG 2.5.8) */
.f-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 0.875rem; }
.f-bottom p { margin: 0; }
.f-bottom a { display: inline-block; padding: 3px 0; }

/* ------------------------------------------------------------------------------------------ */
/* Calendar: hero and season chart (the months navigation on wide screens)                      */
/* ------------------------------------------------------------------------------------------ */

.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.cal-hero { padding: 36px 0 28px; }
.hero-grid { display: grid; gap: 32px; }
.upd { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 5px 13px 5px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--muted); font-size: 0.8125rem; }
.upd .ring { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cal-hero h1, .h1-sub { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.cal-hero h1 { margin: 0; max-width: 17ch; }
/* Large text: --dim passes 3:1 there (4.09 on --bg). */
.h1-sub { margin: 0.06em 0 0; color: var(--dim); }
.cal-hero .lead { margin: 22px 0 0; color: var(--muted); font-size: 1.0625rem; max-width: 56ch; }
.back { margin: 24px 0 0; }
/* Small phones: the update date is in the line above the first card, not twice. */
@media (max-width: 639px) { .upd { display: none; } }
.season { display: none; }
@media (min-width: 960px) {
  .cal-hero { padding: 48px 0 36px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); align-items: end; gap: 48px; }
  .season { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 12px; }
}
.season-h { margin: 0 0 12px; color: var(--text); font-size: 0.875rem; font-weight: 600; letter-spacing: 0; }
.season ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.season li { flex: 1 1 0; min-width: 0; }
.season a { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 152px; padding: 6px 2px; border-radius: 10px; color: var(--muted); text-decoration: none; border: 1px solid transparent; }
.season a:hover { background: var(--surface-2); }
.season .sn { color: var(--text-2); font-size: 0.75rem; }
/* The month's whole name is the link's text; one monospace character shows: its initial. */
.season .sm { display: block; width: 1ch; overflow: hidden; white-space: nowrap; font-size: 0.75rem; }
.season .sb { display: block; width: 100%; max-width: 34px; border-radius: 6px; background: var(--line-strong); }
/* The current month: lime, and a dot under its initial (not colour alone; "ce mois-ci" in words). */
.season .is-now .sb { background: var(--accent); }
.season .is-now a::after { content: ''; flex: none; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--text); }
/* The month this page shows: a white ring and an underlined initial, on top of its fill. */
.season a[aria-current] .sb { box-shadow: inset 0 0 0 2px var(--text); }
.season a[aria-current] .sm { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
/* Month pages below 960 px: the months as links instead of the chart, all in view (they wrap,
   so the page's own month is never scrolled out of sight). */
.months-row { padding-bottom: 8px; }
.months-row ul { list-style: none; margin: 0; padding: 2px var(--gutter); display: flex; flex-wrap: wrap; gap: 6px; }
.months-row a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--text-2); font-size: 0.875rem; text-decoration: none; white-space: nowrap; }
.months-row .n { color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; }
.months-row .is-now a { border-color: var(--accent); }
.months-row .is-now a::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.months-row a[aria-current] { background: var(--text); color: var(--bg); font-weight: 600; }
.months-row a[aria-current] .n { color: var(--bg); }
@media (min-width: 960px) { .months-row { display: none; } }
.bar-1 { height: 10px; } .bar-2 { height: 19px; } .bar-3 { height: 29px; } .bar-4 { height: 38px; } .bar-5 { height: 48px; }
.bar-6 { height: 58px; } .bar-7 { height: 67px; } .bar-8 { height: 77px; } .bar-9 { height: 86px; } .bar-10 { height: 96px; }

/* ------------------------------------------------------------------------------------------ */
/* Calendar: the hero's search (owner, 2026-11-16; Tdl\Search), in the left column            */
/* ------------------------------------------------------------------------------------------ */

/* The form is a container: its bar lays itself out by its own width (one row from 860 px, two
   rows from 520 px, stacked below), whatever the column leaves it. Controls on --surface; the
   button is the white pill, lime stays a signal. The bar has a lime frame (owner, 2026-11-17,
   like Booking's yellow one): the rings in and under it are white, so a ring is never mistaken
   for the frame (WCAG 2.4.7, 1.4.11). */
.hsearch { container: hsearch / inline-size; margin-top: 30px; }
.hs-bar { background: var(--surface); }
.hs-icon { flex: none; width: 20px; height: 20px; color: var(--muted); }
.hs-go { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 0; border-radius: var(--r-pill); background: var(--text); color: var(--bg); font: inherit; font-size: 0.9375rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.hs-go:hover { background: #fff; }
/* Où, Quand, Quoi, then the button; stacked first (phones). */
.is-fields .hs-bar { display: grid; grid-template-columns: minmax(0, 1fr); padding: 6px; border: 3px solid var(--accent); border-radius: var(--r-xl); }
.is-fields :focus-visible { outline-color: var(--text); }
.hs-field { position: relative; display: grid; align-content: center; gap: 2px; min-width: 0; padding: 10px 14px; border-radius: var(--r-md); }
.hs-field:hover { background: var(--surface-2); }
/* Dividers between the fields, inset: a line across (stacked) or down (side by side). */
.hs-when::before, .hs-what::before { content: ''; position: absolute; top: 0; left: 14px; right: 14px; height: 1px; background: var(--line-strong); }
.hs-label { color: var(--muted); font-size: 0.8125rem; font-weight: 500; line-height: 1.3; }
.hs-control { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hsearch select, .hs-dates input { min-width: 0; min-height: 34px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); font: inherit; font-size: 1rem; font-weight: 500; }
.hsearch option, .hsearch optgroup { background: var(--surface); color: var(--text); }
/* The select's own arrow is replaced by one drawn in CSS (no image: the CSP allows none inline). */
.hs-select { position: relative; }
.hs-select select { width: 100%; padding-right: 22px; text-overflow: ellipsis; -webkit-appearance: none; appearance: none; cursor: pointer; }
.hs-select::after { content: ''; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.hs-dates { flex-wrap: wrap; gap: 0 14px; }
.hs-date { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.hs-date label { color: var(--muted); font-size: 0.875rem; }
.hs-dates input { width: 8.6rem; cursor: text; }
.is-fields .hs-go { margin-top: 6px; width: 100%; }
@container hsearch (min-width: 520px) {
  .is-fields .hs-bar { grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.55fr); grid-template-areas: "where what" "when go"; }
  .hs-where { grid-area: where; }
  .hs-what { grid-area: what; }
  .hs-when { grid-area: when; }
  .hs-what::before { top: 12px; bottom: 12px; left: 0; right: auto; width: 1px; height: auto; }
  .is-fields .hs-go { grid-area: go; align-self: center; justify-self: stretch; width: auto; margin: 6px 4px 0 10px; }
}
@container hsearch (min-width: 860px) {
  .is-fields .hs-bar { grid-template-columns: minmax(0, 1.1fr) minmax(min-content, 1.5fr) minmax(0, 1fr) auto; grid-template-areas: "where when what go"; }
  .hs-when::before { top: 12px; bottom: 12px; left: 0; right: auto; width: 1px; height: auto; }
  .is-fields .hs-go { margin: 0 4px 0 6px; }
}
@supports selector(:has(*)) {
  .hs-field select:focus-visible, .hs-field input:focus-visible, .hs-control :focus-visible { outline: none; }
  /* The field's control only: focus in its popover is shown there, not around the field. */
  .hs-field:has(.hs-control :focus-visible) { outline: 2px solid var(--text); outline-offset: -2px; background: var(--surface-2); }
}

/* The popovers (search.js; owner, 2026-11-17): the native fields stay hidden in the form and
   hold the values sent. Cards on --surface under their field, 44 px
   targets; lime marks what is chosen (the check, the range's ends), rings are white. The form is
   raised above the band and the list, and nothing around it clips. */
.hsearch.is-live { position: relative; z-index: 20; }
.hs-field.is-open { background: var(--surface-2); }
.hs-field.is-open .hs-select::after { margin-top: -2px; transform: rotate(-135deg); }
.hs-combo, .hs-trigger { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 34px; margin: 0; padding: 0 22px 0 0; border: 0; border-radius: 0; background: transparent; color: var(--text); font: inherit; font-size: 1rem; font-weight: 500; line-height: 34px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
/* Stronger than the forms' input[type="text"] rule: no box inside the bar. */
.hsearch input.hs-combo { min-height: 34px; padding: 0 22px 0 0; border: 0; border-radius: 0; background: transparent; cursor: text; -webkit-appearance: none; appearance: none; }
.hs-combo::placeholder { color: var(--muted); opacity: 1; }
.hs-trigger { display: flex; align-items: center; gap: 10px; padding-right: 0; }
.hs-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hs-pop { position: absolute; top: 100%; left: 0; z-index: 1; color: var(--text-2); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65); font-size: 1rem; line-height: 1.4; text-align: left; animation: hs-in 0.14s ease-out; }
@keyframes hs-in { from { opacity: 0; transform: translateY(-4px); } }
.hs-pop-list { width: max(100%, 20rem); }
.hs-list { position: relative; max-height: min(24rem, 55vh); overflow-y: auto; overscroll-behavior: contain; padding: 6px; scrollbar-color: var(--line-strong) transparent; }
.hs-group-h { padding: 12px 12px 4px; color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.hs-group { margin-top: 2px; }
.hs-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: var(--r-sm); color: var(--text); cursor: pointer; }
.hs-opt:hover { background: var(--surface-2); }
.hs-opt.is-active { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--text); }
.hs-opt.is-chosen { font-weight: 600; }
.hs-opt-t { min-width: 0; overflow-wrap: anywhere; }
.hs-check { flex: none; width: 14px; height: 8px; margin: -4px 0 0 1px; border-left: 2px solid transparent; border-bottom: 2px solid transparent; transform: rotate(-45deg); }
.is-chosen .hs-check { border-color: var(--accent); }
.hs-none { margin: 0; padding: 4px 18px 14px; color: var(--muted); }
.hs-none:empty { padding: 0; }
.hs-cal { --cal-band: rgba(200, 255, 46, 0.15); --cal-pre: rgba(200, 255, 46, 0.07); width: max-content; padding: 12px 16px 12px; }
.hs-nav { position: absolute; top: 12px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.hs-nav .hs-icon { color: currentColor; }
.hs-nav:hover { background: var(--surface-2); }
.hs-nav[aria-disabled="true"] { color: var(--dim); border-color: var(--line); background: none; cursor: default; }
.hs-prev { left: 12px; }
.hs-next { right: 12px; }
.hs-months { display: flex; gap: 28px; }
.hs-month { flex: none; width: 308px; }
.hs-month-h { margin: 0 0 4px; padding: 0 44px; color: var(--text); font-size: 1rem; font-weight: 600; line-height: 44px; letter-spacing: -0.01em; text-align: center; }
.hs-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0 2px; }
.hs-grid th { height: 28px; padding: 0; color: var(--muted); font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 400; text-align: center; }
.hs-grid td { height: 44px; padding: 0; text-align: center; }
.hs-day { position: relative; display: block; width: 44px; height: 44px; margin: 0 auto; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text); font: inherit; font-family: var(--font-mono); font-size: 0.875rem; font-variant-numeric: tabular-nums; cursor: pointer; }
.hs-day:hover { background: var(--surface-2); }
.hs-day:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.hs-day[aria-disabled="true"] { color: var(--dim); background: none; cursor: default; }
.hs-day[aria-current="date"] { font-weight: 700; }
.hs-day[aria-current="date"]::after { content: ''; position: absolute; left: 50%; bottom: 7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.hs-grid td.is-band { background: var(--cal-band); }
.hs-grid td.is-band.is-pre { background: var(--cal-pre); }
.hs-grid td.is-band-start { background: linear-gradient(90deg, transparent 50%, var(--cal-band) 50%); }
.hs-grid td.is-band-end { background: linear-gradient(90deg, var(--cal-band) 50%, transparent 50%); }
.hs-grid td.is-band-start.is-pre { background: linear-gradient(90deg, transparent 50%, var(--cal-pre) 50%); }
.hs-grid td.is-band-end.is-pre { background: linear-gradient(90deg, var(--cal-pre) 50%, transparent 50%); }
.hs-day.is-start, .hs-day.is-end, .hs-day.is-start:hover, .hs-day.is-end:hover { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.hs-day.is-pre-end { box-shadow: inset 0 0 0 2px var(--accent); }
.hs-cal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.hs-cal-sum { flex: 1 1 12rem; margin: 0; color: var(--muted); font-size: 0.8125rem; }
.hs-cal-sum strong, .hs-cal-sum span { display: block; }
.hs-cal-sum strong { color: var(--text); font-size: 0.9375rem; font-weight: 600; }
.hs-clear, .hs-done { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-pill); font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; }
.hs-clear { background: transparent; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.hs-clear:hover { background: var(--surface-2); }
.hs-done { padding: 0 22px; background: var(--text); color: var(--bg); }
.hs-done:hover { background: #fff; }
/* A stacked bar (phones): search.js gives the popover the bar's width; the month fills it. */
@container hsearch (max-width: 519px) {
  .hs-cal { width: auto; padding: 10px 10px 12px; }
  .hs-prev { left: 8px; }
  .hs-next { right: 8px; }
  .hs-month { flex: 1 1 auto; width: auto; }
  .hs-cal-sum { flex-basis: 100%; }
  .hs-done { flex: 1 1 auto; }
}

/* ------------------------------------------------------------------------------------------ */
/* Calendar: the band (two chips, "Filtres", the views; the vehicle is the search's "Quoi")     */
/* ------------------------------------------------------------------------------------------ */

.band { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.band-in { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 10px; padding-top: 12px; padding-bottom: 12px; }
.chips-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chip { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--text-2); font-size: 0.875rem; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; }
.chip:hover { border-color: var(--border-input); color: var(--text); }
/* Active filter: lime border, tint and text (11:1), and a border kept in forced colours. */
.chip[aria-current] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.filters-box > summary { list-style: none; }
.filters-box > summary::-webkit-details-marker { display: none; }
.filters-box[open] > summary { border-color: var(--text); color: var(--text); }
.filters-box .count { color: var(--accent); font-weight: 700; }
.fpanel { padding: 16px 0 4px; }
.filter-form { display: grid; gap: 18px; }
.fgroup { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; min-width: 0; }
.fgroup > label, .fgroup > legend, .fgroup > summary { color: var(--text); font-weight: 600; font-size: 0.875rem; padding: 0; }
.fgroup > label.chk { padding: 9px 0; font-weight: 400; color: var(--text-2); font-size: 0.95rem; }
.fgroup .chips { display: flex; flex-wrap: wrap; gap: 0 18px; }
.circuits { border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 14px; }
.circuits > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; }
.circuits > summary::-webkit-details-marker { display: none; }
/* A chevron: flex removes the summary's own marker. */
.circuits > summary::after { content: ''; margin: 0 4px 3px auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.circuits[open] > summary::after { margin-bottom: -3px; transform: rotate(-135deg); }
.circuits .count, .filters-box .circuits .count { color: var(--accent); }
.circuits fieldset { border: 0; margin: 0 0 6px; padding: 0; min-width: 0; }
.circuits legend { padding: 8px 0 0; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.cty { margin: 12px 0 0; color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.chk-t { min-width: 0; overflow-wrap: anywhere; }
.chk-t small { display: block; font-size: 0.8125rem; line-height: 1.3; }
.factions { display: flex; flex-wrap: wrap; gap: 10px; }
/* The view switcher: a segmented control; the current view in --line and weight 600 (not colour alone). */
.views ul { list-style: none; margin: 0; padding: 2px; display: flex; flex-wrap: wrap; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
/* inline-block, not flex: a flex box would drop the spaces around "×". */
.views a { display: inline-block; min-height: 44px; padding: 12px 11px; border-radius: 9px; color: var(--muted); font-size: 0.875rem; font-weight: 500; line-height: 20px; text-decoration: none; white-space: nowrap; border: 1px solid transparent; }
.views a:hover { color: var(--text); }
/* The current view: the white pill of the vehicle switch (a shade alone was 1.25:1). */
.views a[aria-current] { background: var(--text); color: var(--bg); font-weight: 600; }
/* The default list is cards on a phone and rows from 960 px: the matching entry looks current. */
.views[data-auto] a[data-mode="cards"] { background: var(--text); color: var(--bg); font-weight: 600; }
.views-band { display: none; }
.views-menu { margin-top: 20px; }
/* Phones: the chips scroll in one row; "Filtres" is a full-width panel holding the form and the views. */
@media (max-width: 959px) {
  .band-in { padding-left: 0; padding-right: 0; }
  .chips-row { width: 100%; overflow-x: auto; padding: 2px var(--gutter); scrollbar-width: none; }
  .chips-row::-webkit-scrollbar { display: none; }
  .filters-box { width: 100%; padding: 0 var(--gutter); }
  .filters-box > summary { width: 100%; justify-content: center; }
}
@media (min-width: 960px) {
  .views[data-auto] a[data-mode="cards"] { background: none; color: var(--muted); font-weight: 500; }
  .views[data-auto] a[data-mode="list"] { background: var(--text); color: var(--bg); font-weight: 600; }
  .views-band { display: block; margin-left: auto; }
  .views-menu { display: none; }
  /* "Filtres" opened takes a row of its own in the band and pushes the page down (in the flow,
     never over the list: a focused field is never hidden under it, WCAG 2.4.11). */
  .filters-box[open] { flex: 1 0 100%; }
  .fpanel { margin-top: 12px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); }
  .filter-form { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 28px; }
  .filter-form .circuits, .filter-form .factions { grid-column: 1 / -1; }
  .circuits fieldset { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); column-gap: 20px; }
}

/* ------------------------------------------------------------------------------------------ */
/* Calendar: the D111-7 block (tick row; one sentence on phones), the count                    */
/* ------------------------------------------------------------------------------------------ */

.cal-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 80px; }
.d111 { display: grid; gap: 16px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px 32px; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; }
.ticks svg { flex: none; margin-top: 2px; color: var(--accent); }
.d111-short { display: none; margin: 0; color: var(--text-2); font-size: 0.9375rem; }
.meta-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.results-count { margin: 0; color: var(--text); font-size: 0.9375rem; font-weight: 600; }
.meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 0.875rem; }
.meta a { display: inline-block; padding: 2px 0; color: var(--text-2); }
@media (min-width: 960px) { .ticks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 959px) {
  .ticks { display: none; }
  .d111-short { display: block; }
}
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); padding: 32px 24px; text-align: center; }
.more-months a { display: inline-block; margin-right: 12px; padding: 2px 0; }

/* ------------------------------------------------------------------------------------------ */
/* Calendar: a track day. The card is the base layout (phones, "Cartes", the views); rows      */
/* (date outside the card) for .is-compact ("Liste") and for .is-auto (the default list) from   */
/* 960 px. Plain CSS cannot share one rule between "always" and "from 960 px", so the row rules */
/* are written twice, once for .is-compact and once for .is-auto in the 960 px query: keep them */
/* alike (tested).                                                                              */
/* ------------------------------------------------------------------------------------------ */

.month { display: grid; gap: 14px; }
.month h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 14px 0 0; font-size: clamp(1.4rem, 2.4vw, 1.625rem); }
.month h2 small { color: var(--muted); font-size: 0.8125rem; font-weight: 400; letter-spacing: 0; }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
/* min(): one full-width column on a screen narrower than a card (320 px). */
.items.is-cards { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
@media (min-width: 640px) and (max-width: 959px) { .items.is-auto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The outline panel: the drawing on a dot grid, or the dot grid alone. */
.olp { display: flex; align-items: center; justify-content: center; background-color: var(--bg); background-image: radial-gradient(var(--line) 1px, transparent 1.2px); background-size: 12px 12px; background-position: 6px 6px; }
.ol { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--text); stroke-width: 2.5px; stroke-linecap: round; stroke-linejoin: round; }

/* Card */
.ev { position: relative; min-width: 0; }
.ev-card { height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
/* Cancelled: a dashed border and the name struck through; no opacity (it took text under 4.5:1). */
.ev.is-cancelled .ev-card { border-style: dashed; border-color: var(--line-strong); }
.ev.is-cancelled .ev-track a { text-decoration: line-through; text-decoration-thickness: 2px; }
/* Card panel: a top band for the date badge and the status pill, the drawing below them. */
.ol-row { height: 150px; padding: 58px 24px 12px; border-radius: 19px 19px 0 0; }
.ev-date { position: absolute; z-index: 1; top: 12px; left: 12px; margin: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 6px 10px 7px; border-radius: var(--r-sm); background: var(--text); color: var(--bg); line-height: 1; }
.ev-date .wd { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0; white-space: nowrap; }
.ev-date .dd { margin-top: 3px; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.03em; }
.ev-date .mm { margin-top: 3px; font-size: 0.75rem; text-transform: uppercase; }
/* The status pill sits on the panel, top right (its availability date inside it). */
.ev-av { position: absolute; z-index: 1; top: 12px; right: 12px; max-width: calc(100% - 112px); margin: 0; display: flex; justify-content: flex-end; }
.st .tail { font-weight: 400; }
.ev-main { min-width: 0; padding: 16px 18px 4px; }
.ev-tags { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ev-track { margin: 0 0 4px; font-size: 1.25rem; letter-spacing: -0.025em; }
.ev-track a { color: var(--text); text-decoration: none; }
.ev-track a:hover { text-decoration: underline; }
.ev-title { margin: 0 0 4px; color: var(--text-2); font-size: 0.875rem; font-style: italic; overflow-wrap: anywhere; }
.ev-place, .ev-org { margin: 0 0 2px; color: var(--muted); font-size: 0.875rem; }
.ev-org .orgn { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.ev-side { margin-top: auto; padding: 10px 18px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; }
.ev-price { grid-column: 1; margin: 0; color: var(--muted); font-size: 0.8125rem; }
.ev-price .amt { margin: 0 1px; color: var(--text); font-size: 1.625rem; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.ev-price.is-none { color: var(--text-2); font-size: 0.9375rem; font-weight: 500; }
.ev-pnote { grid-column: 1; margin: 0; color: var(--muted); font-size: 0.75rem; }
.ev-act { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.ev-act .btn-round { margin-left: auto; }
.ev-ext { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--text-2); font-size: 0.875rem; }
.ev-ext:hover { color: var(--text); }
.t-short { display: none; }

/* Rows, every width ("Liste"). */
.is-compact .ev { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 16px; }
.is-compact .ev-date { position: static; padding: 14px 0 0; background: none; color: var(--text); }
.is-compact .ev-date .wd { color: var(--muted); font-weight: 500; }
.is-compact .ev-date .dd { font-size: 2.125rem; font-weight: 600; }
.is-compact .ev-date.is-range .dd { font-size: 1.5rem; }
.is-compact .ev-card { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(230px, 290px); gap: 0 20px; padding: 14px; }
.is-compact .ol-row { width: 140px; height: 108px; padding: 10px 16px; border-radius: var(--r-md); }
.is-compact .ev-main { align-self: center; padding: 0; }
.is-compact .ev-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "price price" "note note" "ext ext" "av arrow"; justify-items: end; align-content: space-between; gap: 2px 10px; margin: 0; padding: 0; text-align: right; }
.is-compact .ev-price { grid-area: price; }
.is-compact .ev-pnote { grid-area: note; }
.is-compact .ev-act { display: contents; }
.is-compact .ev-ext { grid-area: ext; min-height: 44px; }
.is-compact .ev-av { grid-area: av; position: static; max-width: none; align-self: center; white-space: nowrap; }
.is-compact .btn-round { grid-area: arrow; margin: 6px 0 0; }
.is-compact .t-long { display: none; }
.is-compact .t-short { display: inline; }

/* Below 720 px, "Liste" keeps the date outside and drops the drawing, the details under the name. */
@media (max-width: 719px) {
  .is-compact .ev { grid-template-columns: 48px minmax(0, 1fr); gap: 0 10px; }
  .is-compact .ev-date .dd { font-size: 1.5rem; }
  .is-compact .ev-date.is-range .dd { font-size: 1.125rem; }
  .is-compact .ev-card { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .is-compact .ol-row { display: none; }
  .is-compact .ev-side { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "price price" "note note" "av av" "ext arrow"; justify-items: start; text-align: left; }
  .is-compact .ev-av { white-space: normal; margin-top: 6px; }
  .is-compact .btn-round { justify-self: end; }
}

/* The default list from 960 px: the same rows (keep in step with the rules above). */
@media (min-width: 960px) {
  .is-auto .ev { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 16px; }
  .is-auto .ev-date { position: static; padding: 14px 0 0; background: none; color: var(--text); }
  .is-auto .ev-date .wd { color: var(--muted); font-weight: 500; }
  .is-auto .ev-date .dd { font-size: 2.125rem; font-weight: 600; }
  .is-auto .ev-date.is-range .dd { font-size: 1.5rem; }
  .is-auto .ev-card { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(230px, 290px); gap: 0 20px; padding: 14px; }
  .is-auto .ol-row { width: 140px; height: 108px; padding: 10px 16px; border-radius: var(--r-md); }
  .is-auto .ev-main { align-self: center; padding: 0; }
  .is-auto .ev-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "price price" "note note" "ext ext" "av arrow"; justify-items: end; align-content: space-between; gap: 2px 10px; margin: 0; padding: 0; text-align: right; }
  .is-auto .ev-price { grid-area: price; }
  .is-auto .ev-pnote { grid-area: note; }
  .is-auto .ev-act { display: contents; }
  .is-auto .ev-ext { grid-area: ext; min-height: 44px; }
  .is-auto .ev-av { grid-area: av; position: static; max-width: none; align-self: center; white-space: nowrap; }
  .is-auto .btn-round { grid-area: arrow; margin: 6px 0 0; }
  .is-auto .t-long { display: none; }
  .is-auto .t-short { display: inline; }
}

/* ------------------------------------------------------------------------------------------ */
/* Weather (tasks/weather-plan.md): a row's or card's first day, the listing page's days, the   */
/* credit. Our own line icons (night/symbols.php, wx-*) take their stroke here, through <use>.  */
/* ------------------------------------------------------------------------------------------ */

.wx-ico { flex: none; fill: none; stroke: currentColor; stroke-width: 1.6px; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
/* One line in the card's or row's main column, the same in every list mode: no row rule needed. */
.ev-wx { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--text-2); font-size: 0.875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-wx .wx-ico { width: 18px; height: 18px; color: var(--text); }
/* The raindrop before the chance of rain (owner, 2026-11-17): smaller, in the text, its stroke  */
/* thicker on its 24-unit grid so it draws the same 1.2 px line as the 18 px sky icon.           */
.ev-wx .wx-drop { width: 14px; height: 14px; margin-right: 2px; vertical-align: -2px; stroke-width: 2px; }
.wx-credit { margin: 0; color: var(--muted); font-size: 0.8125rem; }
.wx-credit a { display: inline-block; padding: 2px 0; color: var(--text-2); }
/* On the calendar, between the D111-7 block and the list: closer to the list it credits. */
.cal-body > .wx-credit { margin: -8px 0 -14px; }
/* The listing page: a box per day (side by side when there is room), then the time and the credit. */
.wx-days { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.wx-days > li { min-width: 0; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); }
.ev-body .wx-days h3 { margin: 0 0 8px; color: var(--muted); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; }
.wx-cond { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--text); font-size: 1.0625rem; font-weight: 600; line-height: 1.25; }
.wx-fig { margin: 0; display: grid; gap: 2px; font-size: 0.875rem; }
.wx-fig > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; padding: 3px 0; border-top: 1px solid var(--line-soft); }
.wx-fig dt { color: var(--muted); }
.wx-fig dd { margin: 0 0 0 auto; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wx-upd { margin: 0 0 2px; color: var(--muted); font-size: 0.8125rem; }

/* ------------------------------------------------------------------------------------------ */
/* Views: the sentence and the key (month, weekends, grid)                                      */
/* ------------------------------------------------------------------------------------------ */

.view-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.view-hint { margin: 0; max-width: 62ch; color: var(--muted); font-size: 0.9375rem; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.legend li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 0.8125rem; }
.legend .dot, .nm-bar .dot, .gx .dot, .wk-light .dot { width: 10px; height: 10px; }
.legend .a-few .dot, .nm-bar.a-few .dot, .gx.a-few .dot, .wk-light .a-few .dot { width: 0; height: 0; border-left-width: 6px; border-right-width: 6px; border-bottom-width: 10px; }
.legend .a-full .dot::before, .legend .a-full .dot::after, .nm-bar.a-full .dot::before, .nm-bar.a-full .dot::after, .gx.a-full .dot::before, .gx.a-full .dot::after { left: 4px; height: 12px; }
.legend .a-cancelled .dot, .nm-bar.a-cancelled .dot, .gx.a-cancelled .dot, .wk-light .a-cancelled .dot { width: 11px; height: 3px; }
/* Not stated: a dashed ring (the glyph alone carries the state in the grid). */
.legend .a-unknown .dot, .nm-bar.a-unknown .dot, .gx.a-unknown .dot, .wk-light .a-unknown .dot { border: 2px dashed var(--muted); }
.wempty { margin: 0; padding: 6px 0; color: var(--muted); font-size: 0.875rem; }
.wk-light { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.875rem; }
.wk-light a { display: flex; align-items: flex-start; gap: 10px; min-height: 24px; color: var(--text-2); }
.wk-light .dot { margin-top: 5px; }

/* ------------------------------------------------------------------------------------------ */
/* Month view: day boxes and bars stacked in one grid cell per week; bars placed by classes     */
/* (start column, span, lane), never a style attribute (CSP). Nothing here clips: a focused     */
/* bar keeps its whole ring.                                                                    */
/* ------------------------------------------------------------------------------------------ */

.nmv { display: grid; gap: 6px; }
.nmv h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 10px 0 6px; font-size: clamp(1.4rem, 2.4vw, 1.875rem); }
.nmv h2 small { color: var(--muted); font-size: 0.8125rem; font-weight: 400; letter-spacing: 0; }
.nm-head, .nm-days, .nm-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 6px; }
.nm-head span { padding: 0 10px 2px; color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; }
.nm-head .we { color: var(--text); }
.nm-week { display: grid; }
.nm-days, .nm-bars { grid-area: 1 / 1; }
.nm-day { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; min-height: 112px; padding: 10px 12px; border-radius: var(--r-md); background: #111216; border: 1px solid #22242A; }
.nm-day.we { background: #16171C; }
.nm-day.past { background: transparent; border-color: #16171B; }
.nm-day.out { background: transparent; border-color: transparent; }
.nm-day.today { border-color: var(--accent); }
.mday { color: var(--text); font-size: 0.875rem; font-weight: 600; line-height: 1.4; }
.nm-day.past .mday { color: var(--muted); font-weight: 400; }
.nm-day.today .mday { color: var(--accent); }
.nm-auj { padding: 1px 7px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: 0.75rem; font-weight: 700; line-height: 1.5; text-transform: uppercase; }
/* A week made only of past days or days outside the month stays low. */
.nm-week.is-low .nm-day { min-height: 56px; }
.nm-bars { list-style: none; margin: 0; padding: 42px 0 8px; row-gap: 4px; grid-auto-rows: minmax(40px, auto); align-content: start; }
.bc1 { grid-column-start: 1; } .bc2 { grid-column-start: 2; } .bc3 { grid-column-start: 3; } .bc4 { grid-column-start: 4; }
.bc5 { grid-column-start: 5; } .bc6 { grid-column-start: 6; } .bc7 { grid-column-start: 7; }
.bs1 { grid-column-end: span 1; } .bs2 { grid-column-end: span 2; } .bs3 { grid-column-end: span 3; } .bs4 { grid-column-end: span 4; }
.bs5 { grid-column-end: span 5; } .bs6 { grid-column-end: span 6; } .bs7 { grid-column-end: span 7; }
.bl1 { grid-row: 1; } .bl2 { grid-row: 2; } .bl3 { grid-row: 3; }
.nm-bar { min-width: 0; margin: 0 6px; }
.nm-bar a { display: flex; align-items: center; gap: 9px; min-width: 0; height: 100%; min-height: 40px; padding: 4px 10px 4px 12px; border-radius: 10px; border: 1px solid transparent; color: var(--text); text-decoration: none; }
.nm-bar a:hover .bn { text-decoration: underline; }
/* The status tint with a faint outline all round, no stripe on the left (owner, 2026-11-15: the
   generated-design cliché); the glyph's shape and colour carry the status, the link name its word. */
.nm-bar.a-available a { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.nm-bar.a-few a { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.nm-bar.a-full a { background: var(--full-bg); border-color: color-mix(in srgb, var(--full-dot) 30%, transparent); }
.nm-bar.a-unknown a { background: transparent; border: 1px dashed var(--border-input); }
.nm-bar.a-cancelled a { background: var(--surface-2); }
.nm-bar.a-cancelled .bn { text-decoration: line-through; }
/* Continued from the week before: square left side, no edge; continues after: square right side. */
.nm-bar.is-cont a { border-top-left-radius: 0; border-bottom-left-radius: 0; box-shadow: none; }
.nm-bar.is-cut a { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.bt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.bn, .bm { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn { font-size: 0.875rem; font-weight: 600; }
.bm { color: var(--muted); font-size: 0.75rem; }
.nm-more { grid-column: 1 / -1; grid-row: 4; margin: 0 6px; }
.nm-more summary { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--text); font-size: 0.8125rem; font-weight: 600; cursor: pointer; list-style: none; }
.nm-more summary::-webkit-details-marker { display: none; }
.nm-more .wk-light { margin-top: 8px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
/* Phones: the glyph alone in each bar (a 24 px target at least), the names in the link's text. */
@media (max-width: 719px) {
  .nm-head, .nm-days, .nm-bars { column-gap: 3px; }
  .nm-head span { padding: 0 2px; text-align: center; }
  .nm-day { flex-direction: column; align-items: center; justify-content: flex-start; min-height: 56px; padding: 6px 2px; border-radius: 10px; }
  .nm-auj { padding: 0 3px; }
  .nm-bars { padding-top: 30px; grid-auto-rows: minmax(24px, auto); }
  /* Today's box holds its number and "Auj." one above the other: that week's bars start lower. */
  .nm-week:has(.today) .nm-bars { padding-top: 50px; }
  .nm-bar { margin: 0 2px; }
  .nm-bar a { justify-content: center; min-height: 24px; padding: 4px; }
  .bt { display: none; }
}

/* ------------------------------------------------------------------------------------------ */
/* Weekends view: a card per weekend, its date column, its thin bar, its sentence, its rows     */
/* ------------------------------------------------------------------------------------------ */

.wk { display: grid; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.wk.is-next { border-color: var(--line-strong); }
.wk-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--text); }
.wk-pill { align-self: center; padding: 2px 8px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.wk-date .wd { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; }
.wk-date .dd { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.03em; }
.wk-date .mm { color: var(--text-2); }
.wk-body { display: grid; gap: 10px; min-width: 0; }
.wk-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.wk-h h2 { margin: 0; font-size: 1.25rem; letter-spacing: -0.02em; }
.wk-n { margin: 0; color: var(--muted); font-size: 0.875rem; }
.wk-n strong { color: var(--text); }
.abar { display: flex; gap: 4px; height: 8px; }
.abar .seg { flex: 1 1 0; min-width: 8px; border-radius: var(--r-pill); }
.abar .a-available { background: var(--ok); }
.abar .a-few { background: var(--warn); }
.abar .a-full { background: var(--full-dot); }
.abar .a-unknown { background: var(--dim); }
.p1 { flex-grow: 1; } .p2 { flex-grow: 2; } .p3 { flex-grow: 3; } .p4 { flex-grow: 4; } .p5 { flex-grow: 5; }
.p6 { flex-grow: 6; } .p7 { flex-grow: 7; } .p8 { flex-grow: 8; } .p9 { flex-grow: 9; } .p10 { flex-grow: 10; }
.p11 { flex-grow: 11; } .p12 { flex-grow: 12; } .p13 { flex-grow: 13; } .p14 { flex-grow: 14; } .p15 { flex-grow: 15; }
.p16 { flex-grow: 16; } .p17 { flex-grow: 17; } .p18 { flex-grow: 18; } .p19 { flex-grow: 19; } .p20 { flex-grow: 20; }
.bulletin { margin: 0; color: var(--muted); font-size: 0.8125rem; }
.bulletin .tail { white-space: nowrap; }
.items.is-nested { gap: 8px; margin-top: 4px; }
/* Nested rows: a card with a smaller panel on phones; from 720 px a row inside the weekend card. */
.is-nested .ev-card { background: #0F1013; border-color: #22242A; border-radius: 16px; }
.ol-nested { height: 132px; padding: 54px 24px 10px; border-radius: 15px 15px 0 0; }
@media (min-width: 720px) {
  .wk { grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 22px 24px; }
  .wk-date { flex-direction: column; align-items: flex-start; gap: 6px; }
  .wk-pill { align-self: flex-start; }
  .wk-date .dd { font-size: 3rem; line-height: 1; letter-spacing: -0.045em; }
  .wk-date .mm { font-size: 1rem; }
  .is-nested .ev { display: grid; grid-template-columns: 84px 60px minmax(0, 1fr); grid-template-areas: "pic date main" "pic date side"; align-items: center; gap: 6px 14px; padding: 10px 12px 10px 10px; background: #0F1013; border: 1px solid #22242A; border-radius: 16px; }
  .is-nested .ev.is-cancelled { border-style: dashed; border-color: var(--line-strong); }
  .is-nested .ev-card { display: contents; }
  .is-nested .ol-nested { grid-area: pic; align-self: start; width: 84px; height: 60px; padding: 6px 10px; border-radius: 10px; }
  .is-nested .ev-date { grid-area: date; align-self: start; position: static; padding: 2px 0 0; background: none; color: var(--text); }
  .is-nested .ev-date .wd { color: var(--muted); font-weight: 500; }
  .is-nested .ev-date .dd { font-size: 1.25rem; font-weight: 600; }
  .is-nested .ev-main { grid-area: main; padding: 0; }
  .is-nested .ev-tags { margin-bottom: 4px; }
  .is-nested .ev-track { font-size: 1.0625rem; }
  .is-nested .ev-side { grid-area: side; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; padding: 0; }
  .is-nested .ev-price .amt { font-size: 1.25rem; }
  .is-nested .ev-av { position: static; max-width: none; white-space: nowrap; }
  .is-nested .ev-act { display: contents; }
  .is-nested .ev-ext { min-height: 44px; }
  .is-nested .btn-round { margin-left: auto; }
  .is-nested .t-long { display: none; }
  .is-nested .t-short { display: inline; }
}

/* ------------------------------------------------------------------------------------------ */
/* Circuits by weeks: a real table scrolling sideways, the circuit column (--trk wide) kept in  */
/* place. position: relative makes the box the containing block of the visually hidden texts   */
/* (without it they widen the page); scroll-padding-left keeps a focused link clear of the      */
/* column (WCAG 2.4.11).                                                                        */
/* ------------------------------------------------------------------------------------------ */

.gscroll { --trk: 9.5rem; position: relative; overflow-x: auto; scroll-padding-left: var(--trk); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.grid-scroll { margin: 0; }
.cgrid { min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.8125rem; }
.cgrid th, .cgrid td { padding: 0; border-bottom: 1px solid var(--line); }
.cgrid thead th { padding: 6px 4px 10px; background: var(--surface); color: var(--muted); font-weight: 500; text-align: center; white-space: nowrap; }
.cgrid .gm th { padding: 16px 8px 2px 12px; border-bottom: 0; color: var(--text); font-size: 0.8125rem; font-weight: 600; text-align: left; }
.cgrid .gw th { font-family: var(--font-mono); font-size: 0.75rem; }
/* This week: lime and underlined (not colour alone). */
.cgrid .gw th.now { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cgrid .trk { position: sticky; left: 0; z-index: 1; width: var(--trk); min-width: var(--trk); max-width: var(--trk); padding: 10px 14px; background: var(--surface); border-right: 1px solid var(--line); font-weight: 400; text-align: left; }
.cgrid thead .trk { z-index: 2; vertical-align: bottom; color: var(--muted); font-size: 0.875rem; }
.trk-in { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trk-t { min-width: 0; }
.ol-sm { display: none; flex: none; width: 42px; height: 28px; background: none; }
.ol-sm.is-empty { background-image: radial-gradient(var(--line-strong) 1px, transparent 1.2px); background-size: 7px 7px; border-radius: 6px; }
.ol-sm .ol { stroke: var(--dim); stroke-width: 1.5px; }
.cgrid .tn { display: block; color: var(--text); font-size: 0.875rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.cgrid .trk small { color: var(--muted); font-size: 0.75rem; }
.cgrid .rg th { padding: 8px 14px; background: #0F1013; color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-align: left; text-transform: uppercase; }
.cgrid .rg th span { position: sticky; left: 14px; }
.cgrid td { min-width: 3.25rem; height: 64px; text-align: center; vertical-align: middle; border-left: 1px solid #1B1C22; }
.cgrid .m0 { border-left: 1px solid var(--line); }
/* An empty week: a small dot, the rhythm of the table without noise. */
.cgrid td:empty::after { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); vertical-align: middle; }
.gx { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: 2px; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid transparent; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600; text-decoration: none; }
.gx:hover .gd { text-decoration: underline; }
.gx.a-available { background: var(--ok-bg); color: var(--ok); }
.gx.a-few { background: var(--warn-bg); color: var(--warn); }
.gx.a-full { background: var(--full-bg); color: var(--full); }
.gx.a-unknown { background: transparent; color: var(--muted); border: 1px dashed var(--border-input); }
.gx.a-cancelled { background: var(--surface-2); color: var(--muted); }
.gx.a-cancelled .gd { text-decoration: line-through; }
@media (min-width: 720px) {
  .ol-sm { display: block; }
  .cgrid td { min-width: 76px; }
}
@media (min-width: 960px) {
  .gscroll { --trk: 260px; }
}

/* ------------------------------------------------------------------------------------------ */
/* Calendar: "Comment fonctionne le calendrier": six numbered cards and the one lime card      */
/* ------------------------------------------------------------------------------------------ */

.how { margin-top: 24px; padding-top: 40px; border-top: 1px solid var(--line-soft); }
.how-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.how-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.125rem); }
.how-head a { display: inline-block; padding: 2px 0; font-size: 0.9375rem; }
.how-body { display: grid; gap: 14px; }
.how-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.how-cards li { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--muted); font-size: 0.9375rem; }
.how-n { display: block; margin-bottom: 12px; color: var(--accent); font-size: 0.8125rem; }
.how-cards strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.3; }
.how-org { margin: 0; }
.how-org a { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; height: 100%; min-height: 168px; padding: 24px; border-radius: var(--r-lg); background: var(--accent); color: var(--accent-ink); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; text-decoration: none; }
.how-org a:hover { text-decoration: underline; }
.how-org svg { align-self: flex-end; width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: var(--accent-ink); color: var(--accent); }
@media (min-width: 960px) { .how-body { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); } }

/* ------------------------------------------------------------------------------------------ */
/* Listing page: hero card with the outline, the light booking card, tiles, facts, organiser,  */
/* provenance, other dates, the report form; on phones a bar at the bottom.                     */
/* ------------------------------------------------------------------------------------------ */

.ev-wrap { padding-top: 20px; padding-bottom: 80px; }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); font-size: 0.875rem; }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--dim); }
.crumbs a { display: inline-block; padding: 3px 0; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.ev-hero { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2xl); }
.ev-hero-text { min-width: 0; padding: 26px 22px 24px; }
.ev-hero .tags { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ev-hero h1 { margin: 0 0 16px; max-width: 18ch; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.04; }
.ev-when { margin: 0 0 4px; color: var(--text); font-size: 1.125rem; font-weight: 500; }
.ev-where, .ev-by { margin: 0 0 4px; color: var(--muted); }
.ev-title { margin: 14px 0 0; color: var(--text-2); font-size: 1.0625rem; overflow-wrap: anywhere; }
.ev-art { position: relative; min-height: 220px; border-top: 1px solid var(--line); border-radius: 0 0 27px 27px; }
.ol-lg { position: absolute; inset: 0; padding: 30px 36px 46px; border-radius: inherit; }
/* Double stroke: a wide dark underlay, the white line on top. No start/finish marker. */
.ol-lg .ol { stroke-width: 4px; }
.ol-lg .ol-under { stroke: var(--line-strong); stroke-width: 14px; }
.ev-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.ev-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.ev-body .panel h2 { margin: 0 0 12px; font-size: 1.375rem; }
@media (min-width: 960px) {
  .ev-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .ev-hero-text { padding: 40px; }
  .ev-art { min-height: 300px; border-top: 0; border-left: 1px solid var(--line); border-radius: 0 27px 27px 0; }
  .ev-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 20px; margin-top: 20px; }
  .ev-aside { grid-column: 2; grid-row: 1; position: sticky; top: 24px; }
  .ev-body { grid-column: 1; grid-row: 1; }
}

/* The light booking card: the one light surface, so the action is seen. A dark focus ring here. */
.book { color-scheme: light; padding: 22px; border-radius: var(--r-xl); background: var(--card-light); color: #0A0A0C; }
.book h2 { margin: 0 0 6px; color: var(--card-light-muted); font-size: 0.875rem; font-weight: 500; letter-spacing: 0; }
.book a:not(.btn) { color: #0A0A0C; }
.book .price { margin: 0; color: #0A0A0C; }
.book .price strong { color: #0A0A0C; font-size: 0.9375rem; font-weight: 500; }
.book .price .amt { margin: 0 2px; font-size: 3rem; font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; white-space: nowrap; }
.book .price.is-none { font-weight: 600; }
.book .pnote { margin: 4px 0 0; color: var(--card-light-muted); font-size: 0.8125rem; }
.book .avail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 16px 0; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid transparent; font-size: 0.875rem; font-weight: 600; }
.book .avail .tail { margin-left: auto; font-weight: 400; }
.book .a-available { background: var(--ok-light-bg); color: var(--ok-light-text); }
.book .a-few { background: var(--warn-light-bg); color: var(--warn-light-text); }
.book .a-full { background: var(--full-light-bg); color: var(--full-light-text); }
.book .a-unknown { background: transparent; border: 1px dashed var(--line-light); color: var(--card-light-muted); }
.book .a-cancelled { background: #E4E4E7; color: #3F3F46; }
.book .a-available .dot { background: var(--ok-light-text); }
.book .a-few .dot { border-bottom-color: var(--warn-light-dot); }
.book .a-full .dot::before, .book .a-full .dot::after { background: var(--full-light-text); }
.book .a-unknown .dot { border-color: var(--card-light-muted); }
.book .a-cancelled .dot { background: #3F3F46; }
.book .opens { margin: -6px 0 14px; color: var(--card-light-muted); font-size: 0.875rem; }
.book .btn.primary { background: #0A0A0C; color: #F4F4F5; }
.book .btn.primary:hover { background: #26282F; }
.book .btn.primary svg { color: var(--accent); }
.book .btn.ghost { background: transparent; color: #0A0A0C; border-color: var(--line-light); }
.book .btn.ghost:hover { background: #E4E4E7; }
.book .tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.book .tools .btn { flex: 1 1 auto; padding: 10px 14px; font-size: 0.875rem; }
.book .note { margin: 14px 0 0; color: var(--card-light-muted); font-size: 0.8125rem; }
.book .link-sm { margin: 8px 0 0; font-size: 0.8125rem; }
.book .link-sm a { display: inline-block; padding: 3px 0; }
.ev-aside .how-mini { margin: 12px 4px 0; color: var(--muted); font-size: 0.8125rem; }
.ev-aside .how-mini a { color: var(--text-2); }

/* Key facts as tiles: only those with data. */
.tiles { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tiles > div { min-width: 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.tiles .tile-w { grid-column: 1 / -1; }
.tiles dt { margin-bottom: 6px; color: var(--muted); font-size: 0.8125rem; }
.tiles dd { margin: 0; color: var(--text); font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }
.tiles .tv { display: block; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.tiles .tn { display: block; margin-top: 6px; color: var(--text-2); font-size: 0.8125rem; font-weight: 400; }
.lv-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 720px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles .tile-w { grid-column: span 2; }
}
@media (max-width: 399px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

.brief { color: var(--text-2); font-size: 1.0625rem; line-height: 1.65; overflow-wrap: anywhere; }
.facts { margin: 16px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 16px; }
.desc .src { margin: 0 0 12px; color: var(--muted); font-size: 0.8125rem; }
.org-text { color: var(--text-2); overflow-wrap: anywhere; }
.addr { margin-bottom: 8px; color: var(--text-2); font-style: normal; }
.coords { color: var(--muted); font-size: 0.8125rem; }
.org { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 16px; }
.avatar { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; background: var(--text); color: var(--bg); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.ev-body .org h2 { margin: 0 0 2px; color: var(--muted); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; }
.org-name { margin: 0; font-size: 1.25rem; overflow-wrap: anywhere; }
.org .hint { margin: 2px 0 0; }
.org-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 720px) {
  .org { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .org-links { grid-column: auto; justify-content: flex-end; }
}
/* Provenance: the dated steps, the latest in lime (with its position: last). */
.prov .steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 14px; }
.prov .steps li { display: grid; gap: 2px; padding-top: 10px; border-top: 2px solid var(--line-strong); color: var(--text-2); font-size: 0.9375rem; }
.prov .steps time { color: var(--muted); font-size: 0.8125rem; }
.prov .steps .is-last { border-top-color: var(--accent); }
.prov .steps .is-last time { color: var(--accent); }
@media (min-width: 720px) { .prov .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.others { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.others a { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: var(--r-md); color: var(--text-2); text-decoration: none; }
.others a:hover { background: var(--surface-2); }
.otile { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; width: 60px; min-height: 60px; border-radius: var(--r-sm); background: var(--text); color: var(--bg); line-height: 1.15; }
.otile .wd, .otile .mm { font-size: 0.75rem; text-transform: uppercase; }
.otile .dd { font-size: 1.125rem; font-weight: 700; }
.others b { display: block; color: var(--text); overflow-wrap: anywhere; }
.others small { color: var(--muted); }

/* The report form (report.js), in night/event.php. */
.rep > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; }
.rep > summary::-webkit-details-marker { display: none; }
.rep > summary::after { content: ''; margin: 0 4px 3px auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.rep[open] > summary::after { margin-bottom: -3px; transform: rotate(-135deg); }
.ev-body .rep > summary h2 { margin: 0; font-size: 1.125rem; }
.report-form { display: grid; gap: 14px; margin-top: 14px; }
.report-form .fld label:not(.chk) { display: block; margin-bottom: 6px; color: var(--text); font-size: 0.9375rem; font-weight: 600; }
.req { color: var(--muted); font-size: 0.85em; font-weight: 400; }
.err { margin: 4px 0 0; color: var(--full); font-size: 0.875rem; }
.err:empty { display: none; }
[aria-invalid="true"] { border-color: var(--full) !important; }
.two { display: grid; gap: 14px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rep-status { margin: 0; font-weight: 600; }
.rep-status.is-ok { color: var(--ok); }
.rep-status.is-err { color: var(--full); }

/* Phones: the "from" price and the organiser's site in a bar at the bottom (none when cancelled).
   scroll-padding keeps the focused element above it (WCAG 2.4.11); room under the footer. */
.bbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); }
.bbar-price { margin: 0; min-width: 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.2; }
.bbar-price .amt { color: var(--text); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.bbar .btn { flex: none; padding: 10px 16px; }
.bbar .btn svg { color: var(--bg); }
@media (max-width: 959px) {
  html:has(.bbar) { scroll-padding-bottom: 96px; }
  body:has(.bbar) .site-footer { padding-bottom: 104px; }
}
@media (min-width: 960px) { .bbar { display: none; } }

/* ------------------------------------------------------------------------------------------ */
/* Modes                                                                                        */
/* ------------------------------------------------------------------------------------------ */

/* Forced colours drop backgrounds: the current item keeps a border, not colour alone. */
@media (forced-colors: active) {
  .nav a[aria-current], .chip[aria-current], .views a[aria-current], .season a[aria-current], .months-row a[aria-current] { border: 2px solid CanvasText; }
  .season .is-now a::after { background: CanvasText; forced-color-adjust: none; }
  .st, .tag, .btn, .btn-round { border: 1px solid CanvasText; }
  .glyph, .ticks svg { color: CanvasText; }
  .ol { stroke: CanvasText; }
  .ol-lg .ol-under { stroke: GrayText; }
  /* The five glyph shapes are drawn with backgrounds and borders: kept, in the system text colour. */
  .dot, .dot::before, .dot::after { forced-color-adjust: none; }
  .a-available .dot, .a-cancelled .dot, .a-full .dot::before, .a-full .dot::after { background: CanvasText; }
  .a-few .dot { border-bottom-color: CanvasText; }
  .a-unknown .dot, .legend .a-unknown .dot, .nm-bar.a-unknown .dot, .gx.a-unknown .dot, .wk-light .a-unknown .dot { border-color: CanvasText; }
  .nm-bar a, .gx, .legend li { border: 1px solid CanvasText; }
  .nm-day.today, .cgrid .gw th.now { outline: 2px solid CanvasText; }
  /* The search's popovers: the list's focus ring and the range are shadows and fills. */
  .hs-opt.is-active { outline: 2px solid Highlight; outline-offset: -2px; }
  .hs-day[aria-pressed="true"] { border: 2px solid Highlight; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print {
  .site-header, .site-footer, .filters, .filters-box, #signaler, .bbar, .menu, .views, .chips-row, .months-row { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3, strong, b, a { color: #000; }
  .panel, .ev-card, .book { background: #fff; border-color: #999; }
}
