/*
 * Public site, direction A "Phrase" (prototypes/phrase.css): sun-yellow page, ink type, chunky bordered words.
 * Mobile first. No web fonts are loaded: the prototype's Bricolage Grotesque, Figtree and DM Mono came from
 * Google Fonts, and public pages make no third-party requests. The stacks below sit close to them on common
 * systems. Follow-up (P3-7): self-host subsetted WOFF2 copies under /assets/fonts if the look needs them.
 */
:root {
  --ink: #1b1340; --sun: #ffd42a; --pink: #ff8fb4; --sky: #8ec5ff; --orange: #ffa24a; --mint: #62dba0; --paper: #fffdf2;
  --display: ui-rounded, "SF Pro Rounded", "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--sun); color: var(--ink); font: 400 16px/1.45 var(--body); }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; }
h1 { margin: 6px 0 10px; font-size: clamp(29px, 8.6vw, 44px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
h2 { margin: 26px 0 8px; font-size: 24px; font-weight: 800; line-height: 1.1; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; padding: 10px 14px; background: var(--ink); color: var(--sun); border-radius: 10px; font-weight: 700; z-index: 10; }
.skip:focus { top: 12px; }

.top, .crumbs, main, .foot { width: 100%; max-width: 46rem; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 16px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font: 800 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.menu ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.menu a { display: inline-block; min-height: 44px; padding: 9px 12px 10px; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper);
  font: 800 15px/1.2 var(--display); text-decoration: none; box-shadow: 0 4px 0 var(--ink); }
.menu li:nth-child(1) a { background: var(--sky); } .menu li:nth-child(2) a { background: var(--pink); } .menu li:nth-child(3) a { background: var(--mint); }
.menu a[aria-current="page"], .menu a:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.menu .lang { background: var(--paper); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; font: 500 13px/1.4 var(--mono); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
/* A 44 px target around a small link, without moving the text (P3-7: touch targets at 360 px). */
.crumbs a, .cats a { display: inline-block; min-width: 44px; padding: 13px 0; margin: -13px 0; text-align: center; }
.cats a { padding-block: 12px; margin-block: -12px; }
.crumbs [aria-current] { opacity: .8; }

main { padding-top: 8px; padding-bottom: 40px; }
.lead { margin: 0 0 8px; font-size: 18px; font-weight: 500; max-width: 36em; }
.count, .updated, .note { font: 500 13px/1.4 var(--mono); letter-spacing: .04em; }
.count { margin: 12px 0 0; text-transform: uppercase; }
.updated { margin-top: 32px; }

.day-head { margin: 22px 0 4px; }
.cards { margin: 0; padding: 0; list-style: none; }
.card { display: grid; grid-template-columns: 84px minmax(0, 1fr) 44px; gap: 12px; padding: 12px 0; border-top: 2px solid var(--ink); }
.card-time { margin: 0; font: 500 18px/1.2 var(--mono); }
.card-time small { display: block; font-size: 12px; line-height: 1.3; }
.card-on { font-size: 13px; line-height: 1.3; }
.card-main > * { margin: 2px 0 0; }
.card-title { margin: 0; font: 700 17px/1.25 var(--body); letter-spacing: 0; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-where, .card-price { font-size: 14px; }
.card-end { font: 400 13px/1.3 var(--mono); }
.card-end em, .facts .mark { font-style: normal; padding: 0 6px; border: 1.5px dashed var(--ink); border-radius: 99px; }
.is-cancelled .card-title a, .is-cancelled .card-time { text-decoration: line-through; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; padding: 0; list-style: none; }
.tag { padding: 1px 8px; border: 2px solid var(--ink); border-radius: 99px; background: var(--paper); font: 700 12px/1.4 var(--mono); text-transform: uppercase; }
.tag-cancelled, .tag-postponed { background: var(--ink); color: var(--sun); }
.tag-sold_out { background: var(--orange); }

.group { margin-top: 28px; }
.group .note { margin: 0 0 8px; }

.subs ul, .links, .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
.subs a, .links a { display: inline-block; min-height: 44px; padding: 11px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); font-weight: 600; font-size: 14px; text-decoration: none; }

.event h1 { margin-bottom: 14px; }
.notice { margin: 12px 0; padding: 12px 16px; border: 3px solid var(--ink); border-radius: 16px; background: var(--orange); }
.notice p { margin: 0; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr); margin: 12px 0; border-top: 2px solid var(--ink); }
.facts dt { margin-top: 10px; font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: 2px 0 10px; font-size: 17px; }
.facts address, .venue-address { font-style: normal; }
.venue-address { margin: 0 0 8px; overflow-wrap: anywhere; min-width: 0; }
.actions { margin: 18px 0; }
.actions a { display: inline-block; min-height: 44px; padding: 10px 14px; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper);
  font: 800 16px/1.2 var(--display); text-decoration: none; box-shadow: 0 4px 0 var(--ink); }
.actions .button { background: var(--mint); }
.actions a:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

.pager ul { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; font: 500 14px var(--mono); }
.pager a { display: inline-block; min-height: 44px; padding: 9px 14px; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper); font-weight: 700; text-decoration: none; }
.empty p { margin: 16px 0 0; }

.foot { padding-top: 20px; padding-bottom: 32px; border-top: 3px solid var(--ink); font-size: 14px; }
.foot h2 { margin-top: 0; font-size: 18px; }
.cats { display: flex; flex-wrap: wrap; gap: 24px 14px; margin: 0 0 14px; padding: 0; list-style: none; }

@media (min-width: 40rem) {
  .facts { grid-template-columns: 9rem minmax(0, 1fr); }
  .facts dt { margin: 0; padding: 12px 0; border-bottom: 1px solid #1b134033; }
  .facts dd { margin: 0; padding: 10px 0; border-bottom: 1px solid #1b134033; }
  .card { grid-template-columns: 100px minmax(0, 1fr) 44px; }
}

/* The answer a list page opens with (02-public-site-seo.md §6), and the robots.txt lines on /robot. */
.answer { margin: 0 0 12px; max-width: 38em; font-size: 16px; line-height: 1.5; }
.code { white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px 12px; border: 3px solid var(--ink); border-radius: 12px; background: var(--paper); font: 500 14px/1.45 var(--mono); }

/* Long runs folded under "En cours" (partials/earlier.php): a plain <details>, keyboard-operable as it is. */
.earlier { margin: 12px 0 20px; }
.earlier > summary { display: list-item; cursor: pointer; max-width: 36em; padding: 10px 14px; border: 3px solid var(--ink); border-radius: 14px;
  background: var(--paper); font: 800 16px/1.3 var(--display); box-shadow: 0 4px 0 var(--ink); }
.earlier > summary:hover { background: var(--sky); }
.earlier > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.earlier[open] > summary { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); margin-bottom: 10px; }

/*
 * The sentence filter (P3-4, partials/filter.php and site.js), from prototypes/phrase.css and the structure rules of
 * prototypes/index.html. The slot is empty without JavaScript; with scripting on, its height is held until the
 * script draws the sentence, so the list below does not jump. [hidden] always wins: a display rule never shows a
 * hidden sheet or panel.
 */
[hidden] { display: none !important; }
.search-form { display: flex; gap: 8px; margin: 14px 0 0; }
.flt-q { flex: 1; min-width: 0; height: 52px; padding: 0 20px; border: 3px solid var(--ink); border-radius: 99px; background: var(--paper); color: var(--ink);
  font: 600 16px var(--body); }
.flt-q::placeholder { color: #1b1340a8; }
.search-go { min-height: 52px; padding: 0 18px; border: 3px solid var(--ink); border-radius: 99px; background: var(--ink); color: var(--sun); font: 800 16px var(--display); cursor: pointer; }
/* The sentence is printed by the server, so nothing is added above the list when the script arrives. Without
   scripting it is not shown at all (nor the script-only search box and status lines); its buttons are disabled
   until the script enables them. */
@media (scripting: none) { .flt-say, .flt-script-only, .flt-count, .flt-hint, .flt-msg { display: none; } }
.flt-word:disabled { cursor: default; }
/* Until the script enables them the words are inert, and look it. If it never starts (blocked, an error), the
   sentence goes after a few seconds, so the visitor sees the list and the search box, not controls that do nothing. */
.flt-word[disabled] { background: transparent; border-style: dashed; box-shadow: none; opacity: .6; }
.flt:not(.flt-on) .flt-say { animation: flt-fold 0s 6s forwards; }
@keyframes sm-gone { to { visibility: hidden; height: 0; margin: 0; overflow: hidden; } }
/* The sentence folds to the height of the button that would unfold it (44 px and its 8 px margin), so a script that
   starts late puts that button in its place without moving the list. */
@keyframes flt-fold { to { visibility: hidden; height: 52px; margin: 0; overflow: hidden; } }
/* The script arrived after that: the sentence stays folded until the visitor asks for it (site.js). */
.flt-folded .flt-say { visibility: hidden; height: 0; margin: 0; overflow: hidden; }
.flt-unfold { display: block; height: 44px; margin: 0 0 8px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 99px; background: var(--paper); color: var(--ink);
  font: 700 15px var(--body); cursor: pointer; }
.flt-off .flt-count { display: none; }
.flt-on .search-go { display: none; }
.flt { margin: 18px 0 6px; }
.flt-say { margin: 0; font: 800 clamp(24px, 6.6vw, 32px)/1.3 var(--display); letter-spacing: -.02em; }
.flt-lead { margin-right: 4px; }
.flt-word { display: inline-block; min-height: 44px; margin: 0 4px 10px 0; padding: 0 10px 3px; font: inherit; letter-spacing: inherit; text-align: left; color: var(--ink);
  border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink); cursor: pointer; transition: transform .08s, box-shadow .08s; }
/* Tapped, its sheet still loading (site.js waiting()): the press shows, with a dashed edge and a busy pointer. */
.flt-word.flt-waiting { cursor: progress; border-style: dashed; transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.flt-word:active, .flt-word[aria-expanded="true"] { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.flt-w-cat { background: var(--pink); } .flt-w-date { background: var(--sky); } .flt-w-time { background: var(--orange); }
.flt-w-where { background: var(--mint); } .flt-w-price { background: var(--paper); }
.flt-hint, .flt-msg { margin: 8px 4px 0; font-size: 14px; }
.flt-msg { padding: 10px 14px; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper); font-weight: 600; }
.flt-count { min-height: 1.4em; margin: 14px 0 0; font: 500 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
/* While another list is being asked, the one on screen is not its answer: dimmed (after a short moment, so a quick
   answer does not flicker). */
.flt-stale { opacity: .75; transition: opacity .15s .15s; }
.flt-inline { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 3px; text-transform: none; letter-spacing: 0; cursor: pointer; }
.flt-inline:disabled, .flt-more:disabled { opacity: .5; cursor: default; }
.flt-out.flt-out-main { min-height: 48px; margin-bottom: 10px; background: var(--mint); }
.flt-out-more { font-size: 15px; }
.flt-more, .flt-out { min-height: 44px; padding: 0 18px; border: 3px solid var(--ink); border-radius: 99px; background: var(--paper); color: var(--ink);
  font: 800 16px var(--display); box-shadow: 0 4px 0 var(--ink); cursor: pointer; }
.flt-more { display: block; margin: 22px auto 0; }
.flt-out { min-height: 44px; font-size: 15px; box-shadow: 0 3px 0 var(--ink); }
.flt-empty { padding: 20px 0; }
.flt-empty > p { font-weight: 700; font-size: 18px; }

/* The open control: a sheet pinned to the bottom of the screen, so it never moves when the sentence re-wraps. */
.flt-stage { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-height: 74vh; max-height: 74dvh; overflow-y: auto; overscroll-behavior: contain;
  width: 100%; max-width: 40rem; margin: 0 auto;
  padding: 6px max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  border: 3px solid var(--ink); border-bottom: 0; border-radius: 22px 22px 0 0; background: var(--paper); animation: flt-rise .2s ease-out; }
@keyframes flt-rise { from { transform: translateY(24px); opacity: 0; } }
.flt-stage-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 4px;
  font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.flt-close { width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 50%; background: none; color: var(--ink); font: 400 28px/1 var(--body); cursor: pointer; }
.flt-s-cat { background: var(--pink); } .flt-s-date { background: var(--sky); } .flt-s-time { background: var(--orange); }
.flt-s-where { background: var(--mint); } .flt-s-price { background: var(--paper); }
.flt-panel-hint, .flt-geo { margin: 10px 0 0; font-size: 14px; text-align: center; }
.flt-geo { font-weight: 700; }
.flt-geo:empty { margin: 0; }
/* The category sheet's plain list (site.js catList): the same choice as checkboxes, folded under the drums. */
.flt-list { margin: 12px 0 0; }
.flt-list > summary { display: list-item; min-height: 44px; padding: 11px 4px; font-weight: 700; text-align: center; cursor: pointer; }
.flt-checks fieldset { margin: 6px 0 0; padding: 4px 10px 8px; border: 2px solid var(--ink); border-radius: 12px; }
.flt-checks legend { padding: 0 6px; font-weight: 700; }
.flt-checks label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.flt-checks input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
@media (min-width: 30rem) { .flt-checks fieldset { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; } .flt-checks legend { grid-column: 1 / -1; } }
.flt-big { margin: 0 0 6px; font: 800 28px/1.1 var(--display); text-align: center; }

/* Two wheels side by side: the category on the left, its sub-categories on the right. */
.flt-reels { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.flt-reels::after { content: "›"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); font: 800 26px/1 var(--display); pointer-events: none; }
.reel { position: relative; height: 150px; perspective: 620px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.reel-drum { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(-108px); }
.reel-item { position: absolute; left: 0; right: 0; top: 50%; display: flex; align-items: center; justify-content: center; padding: 0 16px 0 8px;
  font: 800 16px/1.08 var(--display); text-align: center; overflow: hidden; backface-visibility: hidden; text-wrap: balance; }
.reel-item.is-current { font-size: 17.5px; }
.reel-item.is-pinned::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border: 5px solid currentColor; border-radius: 50%; }
.reel-window { position: absolute; left: 0; right: 0; top: 50%; height: 46px; transform: translateY(-50%); pointer-events: none; border-block: 3px solid var(--ink); }
.reel.is-empty { opacity: .45; cursor: default; }
.reel:focus-visible { outline-offset: -3px; }
.reel.snap .reel-window { animation: flt-thunk .2s ease-out; }
@keyframes flt-thunk { 40% { transform: translateY(-50%) scale(1.035); } }

.flt-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flt-dates button { min-height: 52px; padding: 6px 10px; border: 3px solid var(--ink); border-radius: 16px; background: var(--paper); color: var(--ink);
  font: 800 18px/1.1 var(--display); box-shadow: 0 4px 0 var(--ink); cursor: pointer; }
.flt-dates .flt-d-range { grid-column: 1 / -1; }
.flt-dates button[aria-pressed="true"] { background: var(--ink); color: var(--sun); transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.cal { margin-top: 12px; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-head { margin-bottom: 4px; }
.cal-head span { text-align: center; font: 500 12px var(--mono); text-transform: uppercase; }
.cal-day { position: relative; min-height: 44px; padding: 0; border: 2.5px solid transparent; border-radius: 12px; background: var(--paper); color: var(--ink); font: 700 16px var(--body); cursor: pointer; }
.cal-day small { position: absolute; top: 2px; left: 0; right: 0; font: 500 10px/1 var(--mono); text-transform: uppercase; }
.cal-day.today { border-color: var(--ink); }
.cal-day.in { background: var(--ink); color: var(--sun); }
.cal-day:disabled { opacity: .35; cursor: default; }
/* A ring inside as well as the outline: a chosen day sits between chosen (ink) days, where an ink outline alone is lost. */
.cal-day:focus-visible { outline-offset: 1px; box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 5px var(--ink); }

/* Stepped slider and the two-dot time bar (role slider; the script sets --p, --lo and --hi). */
.sl { position: relative; height: 44px; margin: 4px 18px; touch-action: none; cursor: pointer; }
.sl-track { position: absolute; left: -18px; right: -18px; top: 50%; height: 18px; transform: translateY(-50%); border: 3px solid var(--ink); border-radius: 99px; overflow: hidden; background: var(--paper); }
.sl-fill { height: 100%; width: calc(var(--p, 0) * (100% - 36px) + 18px); background: var(--ink); }
.sl-thumb { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 34px; height: 34px; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--sun); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); transition: transform .12s; }
.sl:active .sl-thumb { transform: translate(-50%, -50%) scale(1.15); }
.sl:focus-visible { outline: none; }
.sl:focus-visible .sl-thumb, .rg-dot:focus-visible::before { outline: 3px solid var(--ink); outline-offset: 3px; }
.rg-dot:focus-visible { outline: none; }
.rg { position: relative; height: 48px; margin: 4px 16px; touch-action: none; cursor: pointer; }
.rg-track { position: absolute; left: -16px; right: -16px; top: 50%; height: 22px; transform: translateY(-50%); border: 3px solid var(--ink); border-radius: 99px; overflow: hidden;
  background: linear-gradient(90deg, #ffc9a3 0%, #fff1a3 14%, #fffdf2 30%, #ffd97a 50%, #ff9a6b 64%, #7d5be0 76%, #1b1340 90%); }
.rg-off { position: absolute; top: 0; bottom: 0; background: #fffdf2d9; }
.rg-off-lo { left: 0; width: calc(var(--lo, 0) * (100% - 32px) + min(16px, var(--lo, 0) * 9999px)); }
.rg-off-hi { right: 0; width: calc((1 - var(--hi, 1)) * (100% - 32px) + min(16px, (1 - var(--hi, 1)) * 9999px)); }
/* A 44 px target around a 30 px dot. */
.rg-dot { position: absolute; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; transition: transform .12s; }
.rg-dot::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.rg-lo { left: calc(var(--lo, 0) * 100%); } .rg-hi { left: calc(var(--hi, 1) * 100%); }
.rg-dot:active { transform: scale(1.15); }
.flt-hours { position: relative; height: 18px; margin: 0 16px; font: 500 12px var(--mono); }
.flt-hours span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.flt-ticks { display: flex; justify-content: space-between; gap: 4px; margin-top: 2px; font: 500 12px var(--mono); }
.flt-hood { display: grid; gap: 6px; margin: 14px 0 0; font-weight: 700; }
.flt-hood select { width: 100%; min-width: 0; min-height: 44px; max-width: 100%; padding: 0 12px; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper); color: var(--ink); font: 600 16px var(--body); }
.flt-hood-now select { box-shadow: 0 0 0 4px var(--sun); }

/* Wider screens: a wider column, two cards to a row, the sheet as a centred panel. */
@media (min-width: 64rem) {
  .top, .crumbs, main, .foot { max-width: 72rem; }
  main > h1, .lead, .answer, .flt { max-width: 46rem; }
  .flt-say { font-size: 34px; }
  .cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; }
  .flt-stage { bottom: 16px; border-bottom: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 10px 40px #1b134040; }
}
/* Reduced motion: no movement at all. The 6 s steps that hide the sentence or show "no script" (sm-gone, sm-late) are
   not motion and must still happen (a bare "animation: none" removed them, leaving dead controls on screen for good). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .flt:not(.flt-on) .flt-say { animation: flt-fold 0s 6s forwards !important; }
  .fav-wait { animation: sm-gone 0s 6s forwards !important; }
  .fav-nojs { animation: sm-late 0s 6s forwards !important; }
}

/* An event's own page (P3-5): status first, facts, one main action, then getting there, keeping it, reporting. */
.event h1, .facts dd, .facts address { overflow-wrap: anywhere; hyphens: auto; }
.status { margin: 0 0 14px; padding: 12px 16px; border: 3px solid var(--ink); border-radius: 16px; background: var(--paper); font-weight: 600; }
.status p { margin: 0; }
.status .tag { margin-right: 6px; font-size: 14px; vertical-align: 1px; }
.status-cancelled, .status-postponed { background: var(--ink); color: var(--paper); }
.status-cancelled .tag, .status-postponed .tag { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.status-sold_out { background: var(--orange); }
.is-cancelled h1 { text-decoration: line-through; text-decoration-thickness: 3px; }
.thanks { margin: 6px 0 12px; padding: 12px 16px; border: 3px solid var(--ink); border-radius: 16px; background: var(--mint); font-weight: 700; }
.facts dd .venue { font-weight: 700; }
.facts a.mark { text-decoration: none; white-space: nowrap; font-size: 14px; }
.facts a.mark:hover { background: var(--paper); }
.end-note { margin: -4px 0 12px; padding-left: 10px; border-left: 3px dashed var(--ink); font-size: 14px; max-width: 38em; }
.end-note:target { background: var(--paper); }
.actions li { flex: 0 1 auto; }
.actions .button { font-size: 18px; padding: 12px 18px; }
.event-more h2 { margin-top: 22px; font-size: 18px; }
.plain { margin: 6px 0; padding: 0; list-style: none; }
.plain li { margin: 6px 0; }
.cal { font-weight: 700; }
.permalink { margin: 6px 0; font-size: 14px; }
.permalink span { display: block; font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.permalink code { display: block; margin-top: 4px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper);
  font: 500 13px/1.4 var(--mono); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.report { margin: 24px 0 0; }
.report > summary { display: list-item; cursor: pointer; max-width: 24em; min-height: 44px; padding: 11px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper);
  font: 700 15px/1.3 var(--display); }
.report form { max-width: 34em; padding: 4px 0 0; }
.report fieldset { margin: 10px 0; padding: 8px 12px 10px; border: 2px solid var(--ink); border-radius: 12px; }
.report legend { padding: 0 6px; font-weight: 700; }
.report fieldset label { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.report input[type="radio"] { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.report label[for] { display: block; margin-top: 10px; font-weight: 600; }
.report textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper);
  color: var(--ink); font: 400 16px/1.4 var(--body); }
.report button { min-height: 44px; margin-top: 8px; padding: 0 18px; border: 3px solid var(--ink); border-radius: 14px; background: var(--ink); color: var(--sun);
  font: 800 16px var(--display); cursor: pointer; }
.report-msg { padding: 10px 12px; border: 3px solid var(--ink); border-radius: 12px; background: var(--orange); font-weight: 700; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 40rem) {
  .end-note { margin-left: 9rem; }
}
/* Nothing a source writes may widen the page: a 200-character title with no space wraps wherever it appears. */
h1, h2, h3, .crumbs li, .card-title, .card-where, .card-price, .status, .notice, .thanks, .note, .lead, .answer, .end-note, .group h2, .report-msg { overflow-wrap: anywhere; min-width: 0; }
.actions a { max-width: 100%; overflow-wrap: anywhere; }

/* The web app (P3-6). A page shown from the copy kept on the device carries this notice, written in by the service
   worker (app/pwa/sw.js): it says when the copy was seen, so a saved list is never taken for the current one. */
/* While the bar is shown, a control reached with Shift+Tab is scrolled clear of it, not under it. */
html:has(#pwa-copy) { scroll-padding-top: 7rem; }
.pwa-copy { position: sticky; top: 0; z-index: 20; padding: 10px max(18px, env(safe-area-inset-left, 0px)); background: var(--ink); color: var(--sun);
  font: 700 15px/1.4 var(--body); border-bottom: 3px solid var(--orange); }
.pwa-copy p { max-width: 46rem; margin: 0 auto; overflow-wrap: anywhere; }
.pwa-copy a { color: var(--sun); white-space: nowrap; }
.pwa-copy a:focus-visible { outline-color: var(--sun); }
.pwa-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pwa-install[hidden] { display: none; }
.pwa-install { font-weight: 700; }
.pwa-points { padding-left: 1.2em; max-width: 38em; }
.pwa-points li { margin: 6px 0; }
.pwa-retry { display: inline-block; min-height: 44px; padding: 10px 16px; border: 3px solid var(--ink); border-radius: 14px; background: var(--mint);
  font: 800 16px/1.2 var(--display); text-decoration: none; box-shadow: 0 4px 0 var(--ink); }
.pwa-retry:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.pwa-saved { margin: 8px 0 0; padding: 0; list-style: none; }
.pwa-saved li { padding: 10px 0; border-top: 2px solid var(--ink); overflow-wrap: anywhere; }
.pwa-saved a { font-weight: 700; }
.pwa-seen { display: block; font: 500 13px/1.4 var(--mono); }

/* Favourites and shared lists (P3-8). The hearts, the header's link and the script's buttons keep their place from
   the first paint and are shown by public/assets/fav.js (html.fav-js: the script runs; .fav-ready: it can keep
   favourites; .fav-has: there is at least one), so nothing moves when they appear. Without scripting they are not
   there at all, and a card has no heart column. */
.fav, .fav-nav, .fav-only { visibility: hidden; }
.fav-ready .fav, .fav-has .fav-nav, .fav-page .fav-only { visibility: visible; }
.fav-nostore .fav-store-only { display: none; }
@media (scripting: none) {
  .fav, .fav-line, .fav-nav, .fav-only, .list-actions.fav-only { display: none; }
  .card { grid-template-columns: 84px minmax(0, 1fr); }
}
@media (scripting: none) and (min-width: 40rem) { .card { grid-template-columns: 100px minmax(0, 1fr); } }
.fav { width: 44px; height: 44px; margin: -6px 0 0; padding: 0; border: 0; border-radius: 50%; cursor: pointer; align-self: start;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.4-4.5-9.4-9C1.2 8.3 3.1 4.6 6.6 4.6c2.2 0 3.6 1.2 4.4 2.6.8-1.4 2.2-2.6 4.4-2.6 3.5 0 5.4 3.7 4 6.9-2 4.5-9.4 9-9.4 9z' fill='none' stroke='%231b1340' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px 26px no-repeat; }
.fav[aria-pressed="true"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.4-4.5-9.4-9C1.2 8.3 3.1 4.6 6.6 4.6c2.2 0 3.6 1.2 4.4 2.6.8-1.4 2.2-2.6 4.4-2.6 3.5 0 5.4 3.7 4 6.9-2 4.5-9.4 9-9.4 9z' fill='%23c00052' stroke='%231b1340' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fav:hover { background-color: #fffdf280; }
.fav-line { margin: 0 0 12px; }
.fav.fav-text { width: auto; min-height: 44px; height: auto; margin: 0; padding: 8px 14px 8px 44px; border: 3px solid var(--ink); border-radius: 14px;
  background-color: var(--paper); background-position: 12px center; color: var(--ink); font: 800 16px/1.2 var(--display); box-shadow: 0 4px 0 var(--ink); }
.fav.fav-text[aria-pressed="true"] { background-color: var(--pink); }
.fav.fav-text:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
@media (forced-colors: active) { .fav[aria-pressed="true"] { outline: 3px solid ButtonText; } }
.fav-count { display: inline-block; min-width: 2.4ch; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: var(--sun);
  font: 700 13px/1.5 var(--mono); text-align: center; }
/* .75: the dimmest a card can be with every text pair at 4.5:1 and the chosen heart at 3:1 (tests/ui/a11y.js computes them). */
.is-passed, .list-over .card { opacity: .75; }
.is-passed .card-time { text-decoration: line-through; text-decoration-thickness: 1px; }
/* The favourites page: "loading" while the script starts; without it (or if it never starts) why there is nothing. */
.fav-nojs { visibility: hidden; height: 0; overflow: hidden; }
.fav-nojs { animation: sm-late 0s 6s forwards; }
.fav-wait { animation: sm-gone 0s 6s forwards; }
@keyframes sm-late { to { visibility: visible; height: auto; overflow: visible; } }
@media (scripting: none) { .fav-nojs { visibility: visible; height: auto; animation: none; } .fav-wait { display: none; } }
/* The favourites are drawn by fav.js after the first paint, when the script arrives late: until then the box reaches
   just past the bottom of the screen (12rem is more than the header, crumbs and title above it, at 360 px and
   at 1280 px), so the footer starts below the fold and is never pushed down in view (layout shift). It is not released
   once a short list is drawn: the footer would then rise into view, which is a shift too. The space left under a
   short list is the rest of the first screen, no more. Without scripting it is not needed. */
@media (scripting: enabled) { .favs { min-height: calc(100vh - 12rem); } }
.list-actions, .fav-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 8px; }
.button-ish { min-height: 44px; padding: 0 18px; border: 3px solid var(--ink); border-radius: 99px; background: var(--paper); color: var(--ink);
  font: 800 16px var(--display); box-shadow: 0 4px 0 var(--ink); cursor: pointer; }
.button-ish:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.button-main { background: var(--mint); }
.button-quiet { box-shadow: none; border-width: 2px; font-size: 15px; }
/* The list kept on the device while the site is asked (fav.js layoutKept): said, so it is not taken for the current one. */
.fav-checking { margin: 12px 0 8px; padding-left: 10px; border-left: 3px dashed var(--ink); font-weight: 600; max-width: 38em; }
.fav-msg { flex-basis: 100%; min-height: 1.4em; margin: 0; font-weight: 600; }
.fav-msg:empty { min-height: 0; }
.fav-total { margin: 0; font: 500 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.fav-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper); }
.fav-ask p { margin: 0; font-weight: 700; flex-basis: 100%; }
.share-box { margin: 8px 0 12px; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 16px; background: var(--paper); max-width: 36rem; }
.share-box label { display: block; font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.share-row { display: flex; gap: 8px; margin-top: 6px; }
.share-row input { flex: 1; min-width: 0; min-height: 44px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); font: 500 14px var(--mono); }
.share-note { margin: 8px 0 0; font-size: 14px; }
.fav-x { min-height: 44px; margin-top: 6px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink);
  font: 700 14px var(--body); cursor: pointer; }
.fav-old { margin: 8px 0 0; padding: 0; list-style: none; }
.fav-old li { padding: 10px 0; border-top: 2px solid var(--ink); overflow-wrap: anywhere; }
.fav-old a { font-weight: 700; }
.fav-old small { display: block; font: 500 13px/1.4 var(--mono); }

/*
 * P3-7: high contrast and the desktop measure.
 * Forced colors (Windows high contrast) replace every background, so a state shown by a fill alone disappears: chosen
 * days and date buttons, the slider's fill, the heart on the page colour. They get the system's highlight instead.
 * "More contrast" drops the faded look of the drum's neighbours and the dimmed loading list.
 */
@media (forced-colors: active) {
  .flt-dates button[aria-pressed="true"], .cal-day.in { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .sl-fill { forced-color-adjust: none; background: Highlight; }
  .fav { forced-color-adjust: none; background-color: #fff; border: 2px solid ButtonText; }
  .reel-item { opacity: 1 !important; }
  .reel-item[aria-selected="true"] { text-decoration: underline; }
  .flt-stale { opacity: 1; }
  .flt-word[disabled] { border-style: dashed; }
}
@media (prefers-contrast: more) {
  .reel-item { opacity: 1 !important; }
  .flt-stale, .is-passed { opacity: 1; }
}
/* Wide screens: lists use two columns of cards; running text and an event's facts keep a readable line. */
@media (min-width: 64rem) {
  main p, .facts, .code, .permalink, .event .actions, .pwa-points, .pwa-saved, .fav-old { max-width: 46rem; }
  .card p, .flt-say, .flt-count, .fav-bar p { max-width: none; }
}

