/* M22: the eight public stylesheets in cascade order, built by scripts/build_css.py; do not edit. */

/* Self-hosted webfonts (no third-party requests).
   Petrona = headings · Work Sans variable 400 to 600 = body & UI.
   Subsets: latin + latin-ext (full French diacritics incl. œ Œ €). */

/* Petrona Bold: latin. The file is Petrona's 700 cut, but the descriptor
   accepts 600 as well, because Petrona runs lighter than the Fraunces it
   replaced and every heading rule in this project asks for 600. Declaring the
   range means both numbers land on this file, with no synthetic bolding. */
@font-face {
  font-family: 'Petrona';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/petrona-700-latin.93bdf470acd9.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Petrona Bold: latin-ext */
@font-face {
  font-family: 'Petrona';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/petrona-700-latin-ext.347106fb1c0c.woff2") format('woff2');
  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;
}
/* Work Sans 400 to 600 (variable): latin */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/worksans-latin.4890688e6436.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Work Sans 400 to 600 (variable): latin-ext */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/worksans-latin-ext.1f8c41030121.woff2") format('woff2');
  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;
}

@layer reset, tokens, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  /* The browser centers a modal <dialog> in the viewport with automatic
     margins. The blanket margin reset above outranks that default and would
     leave every dialog pinned in the top corner, so the centering is put back. */
  dialog { margin: auto; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }
  body { min-height: 100svh; line-height: 1.5; -webkit-font-smoothing: antialiased; }
  img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
  iframe { max-width: 100%; }
  pre { max-width: 100%; overflow-x: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  :focus-visible { outline: 2px solid var(--color-focus, currentColor); outline-offset: 2px; box-shadow: 0 0 0 4px var(--color-focus-halo, transparent); }  /* M22: a halo keeps the ring readable on any ground */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .01ms !important; animation-iteration-count: 1 !important;
      transition-duration: .01ms !important; scroll-behavior: auto !important;
    }
  }
}

/* Design tokens: generated from project/brand.md Part 2 (the SSOT).
   Single committed light look: warm parchment japandi; the ink footer is the
   dark surface. All text pairings validated WCAG 2.2 AA. */
@layer tokens {
  :root {
    color-scheme: light;

    /* colour */
    --color-bg: #F2EDE3;             /* warm parchment */
    --color-surface: #E8E0D0;        /* sand */
    --color-paper: #FFFCF7;          /* M38: the cards' fill on the events page (the admin's paper, M37) */
    --color-border: #D8CDB9;         /* sand, deepened for hairlines */
    --color-text: #1F1A16;           /* warm charcoal, deepened for readability: 14.78:1 on parchment (was #2B2521, 12.95:1) */
    --color-text-muted: #4F463C;     /* clay grey, deepened to the admin's measured value (7.92:1 on parchment, 7.04:1 on sand, 9.02:1 on paper; was #6C6155 at 5.17:1) */
    --color-accent: #A23E2A;         /* brick terracotta: sparingly */
    --color-accent-contrast: #F7F2E8;/* cream on accent */
    --color-accent-fill: var(--color-accent); /* M198: the accent as a fill, a border, an outline or a mark; --color-accent is the accent as text */
    --color-ink: #211C18;            /* footer / dark sections */
    --color-cream: #F7F2E8;          /* text + logo on ink */
    --color-ochre: #B9854D;          /* decorative only, never body text */
    --color-ochre-deep: #8F5F2C;     /* M47: the ochre as text, 5.34:1 on the paper and 4.69:1 on the parchment */
    --color-danger: #8F2F1D;
    --color-success: #3D5A3A;
    --color-control-border: #8F8270;  /* M22: control boundaries at 3.22:1 on parchment (the admin's value); --color-border stays for decorative hairlines */
    --color-focus-halo: var(--color-bg);
    --color-focus: #A23E2A;
    /* M168: the event tags' palette (text colour of the chip). Every value reads 5.4:1 or better on the parchment, the sand and the paper. */
    --color-tag-plum: #6B3A5B;
    --color-tag-teal: #2F5F5E;
    --color-tag-indigo: #3B4A8C;
    --color-tag-forest: #3C5A2E;
    --color-tag-rust: #8A3A1E;
    --color-tag-bronze: #6E4A12;
    --color-tag-slate: #4A4F66;
    --color-tag-wine: #7A2E3E;
    /* kept for the brand-kit tooling */
    --color-cat-danse: var(--color-tag-plum);
    --color-cat-connect: var(--color-tag-teal);

    /* fluid type: ratio 1.25, body 1rem→1.125rem */
    --fs--1: clamp(0.9rem, 0.87rem + 0.15vw, 1rem);   /* the small type carries most of a page's facts, so it starts a step larger */
    --fs-0:  clamp(1rem, 0.96rem + 0.20vw, 1.125rem);
    --fs-1:  clamp(1.25rem, 1.19rem + 0.30vw, 1.41rem);
    --fs-2:  clamp(1.56rem, 1.45rem + 0.55vw, 1.76rem);
    --fs-3:  clamp(1.95rem, 1.74rem + 0.95vw, 2.34rem);
    --fs-4:  clamp(2.4rem, 2.05rem + 1.6vw, 3rem);
    --fs-5: clamp(2.0625rem, 0.75rem + 3.125vw, 3.5rem);  /* M32: About section headings and the mission statement */
    --fs-display: clamp(2.8125rem, 1rem + 5.5vw, 5.5rem);  /* M32: the About title */

    /* spacing: airy japandi rhythm */
    --space-2xs: .25rem; --space-xs: .5rem; --space-sm: .75rem;
    --space-md: 1rem; --space-lg: 1.5rem; --space-xl: 2.5rem;
    --space-2xl: 4rem; --space-3xl: 6rem;
    --space-fluid: clamp(2rem, 1.2rem + 4vw, 5rem);
    --space-section: clamp(3.5rem, 1.5rem + 6.25vw, 7.5rem);  /* M32: the About page's rhythm; M75: 56 to 120 px, down from 72 to 160 */

    /* families */
    --font-heading: 'Petrona', Georgia, 'Times New Roman', serif;
    --font-body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* shape & depth */
    --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-pill: 999px;
    --shadow-2: 0 6px 24px rgb(33 28 24 / .10);
    --border: 1px solid var(--color-border);

    /* layout */
    --container: 80rem;
    --container-narrow: 44rem;
    --gutter: clamp(1.25rem, 0.5rem + 3vw, 5rem);
    --header-h: 56px;

    /* z-index */
    --z-base: 0; --z-sticky: 100; --z-overlay: 800; --z-modal: 900; --z-toast: 1000;

    /* motion */
    --dur-fast: 120ms; --dur-mid: 220ms; --dur-slow: 360ms; --dur-reveal: 600ms;
    --ease: cubic-bezier(.2, 0, .2, 1);
  }
}

/* M198: since 2026-11-09 the public site wears the colours of the USWDS brand specimen
   (project/brand-kit/specimen-uswds.html, values in project/brand-kit/uswds/values.css,
   the copy of 2026-11-04), on the User's word, as the console did on 2026-11-08
   (css/admin-trial-uswds.css). Will has not signed off the specimen and project/brand.md
   is untouched: the block above keeps brand.md's values, and this block, later in the
   same layer, names over them. When the specimen's values change, edit the codes below.
   Deleting this block restores the earlier colours. The three measures on a line are on
   the page #FBF9F8, the surface #EEE7DC and the paper #FFFFFF. The eight tag colours
   are not renamed: each reads 5.86:1 or better on all three. */
@layer tokens {
  :root {
    --color-bg: #FBF9F8;              /* the specimen's page */
    --color-surface: #EEE7DC;         /* the specimen's surface */
    --color-paper: #FFFFFF;           /* the specimen's paper: cards and fields */
    --color-border: #EEE7DC;          /* the specimen's line is its surface; decorative */
    --color-text: #302720;            /* 13.93:1, 11.90:1, 14.62:1 */
    --color-text-muted: #565C65;      /* 6.42:1, 5.49:1, 6.74:1 */
    --color-accent: #822133;          /* the specimen's text accent: 9.03:1, 7.72:1, 9.48:1 */
    --color-accent-fill: #C94C50;     /* the specimen's main colour: white on it 4.53:1; as text it is 4.32:1 on the page, under AA, so text takes --color-accent */
    --color-accent-contrast: #FFFFFF; /* on the accent fill */
    --color-ink: #202925;             /* the specimen's footer band */
    --color-cream: #EDEFF0;           /* text on the band: 12.96:1 */
    --color-ochre: #79847F;           /* decorative only, never body text */
    --color-ochre-deep: #7F5F30;      /* the specimen's warning #936F38 darkened until it reads as text: 5.59:1, 4.77:1, 5.86:1 */
    --color-danger: #B50909;          /* 6.65:1, 5.69:1, 6.98:1; white on it 6.98:1 */
    --color-success: #216E1F;         /* 6.04:1, 5.16:1, 6.34:1 */
    --color-control-border: #79847F;  /* control boundaries: 3.69:1, 3.15:1, 3.87:1 (3:1 required) */
    --color-focus: #C94C50;           /* 4.32:1 on the page (3:1 required) */
  }
}

@layer base {
  html { scroll-padding-block-start: calc(var(--header-h) + var(--space-sm)); }
  body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--fs-0);
    /* Work Sans is a variable face from 400 to 600. At 400 its stems are thin
       enough on the parchment that dark text still reads grey, so the page
       sets its normal weight a half step up. */
    font-weight: 450;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
  }
  main { flex: 1; }

  h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }
  h1 { font-size: var(--fs-4); }
  h2 { font-size: var(--fs-2); }
  h3 { font-size: var(--fs-1); }
  p { text-wrap: pretty; max-inline-size: 70ch; }

  a { color: var(--color-accent); text-underline-offset: .15em; }
  a:hover { text-decoration-thickness: 2px; }

  ::selection { background: var(--color-accent-fill); color: var(--color-accent-contrast); }
}

@layer layout {
  .container {
    width: 100%;
    max-inline-size: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .container--narrow { max-inline-size: var(--container-narrow); }

  .section { padding-block: var(--space-fluid); }

  /* header */
  /* full-bleed bar; the contents sit in the same container as the page and the footer */
  .site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: var(--z-sticky);
    background: var(--color-bg);
    border-block-end: var(--border);
  }
  .site-header__inner {
    width: 100%;
    max-inline-size: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-block-size: var(--header-h);
  }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header {
      background: color-mix(in srgb, var(--color-bg) 80%, transparent);
      -webkit-backdrop-filter: blur(16px) saturate(160%);
      backdrop-filter: blur(16px) saturate(160%);
    }
  }
  @media (min-width: 480px) {
    .site-header__inner { gap: var(--space-md); }
  }

  /* footer: ink surface, cream text + cream logo. M18: one row from 640 px, half the height.
     After M39.2: the row starts at 900 px. M18's 640 fitted a row of two blocks; the newsletter
     column M28 (D5) put between them needs about 850 px before the three fit side by side
     (the brand and the legal links do not shrink, the newsletter block stops at its field's
     14 rem), so between 640 and 830 px the legal links ran past the window. */
  .site-footer {
    background: var(--color-ink);
    color: var(--color-cream);
    padding-block: var(--space-xl);
    margin-block-start: var(--space-3xl);
  }
  .site-footer__inner {
    width: 100%;
    max-inline-size: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
  }
  .site-footer a { color: var(--color-cream); }
  .site-footer .logo-mark { inline-size: 2rem; block-size: auto; color: var(--color-cream); }
  .site-footer__brand { display: flex; align-items: center; gap: var(--space-sm); }
  .site-footer__name { font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-1); line-height: 1.15; margin: 0; }
  /* 2026-09-23: the city under the name */
  .site-footer__place { font-size: var(--fs--1); line-height: 1.3; opacity: .85; margin: 0.1rem 0 0; }
  /* M28 (D5, D5.1): the newsletter block, the social icons under it */
  .site-footer__news { display: grid; gap: var(--space-sm); justify-items: start; }
  /* 2026-09-13 review: the lead reads as the block's title, same size as the brand name */
  .site-footer__lead { font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-1); line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
  .footer-signup { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }
  .footer-signup__field {
    min-inline-size: 14rem;
    flex: 1 1 14rem;
    padding: var(--space-2xs) var(--space-sm);
    min-block-size: 44px;
    border: 1px solid color-mix(in srgb, var(--color-cream) 45%, transparent);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-cream);
    font: inherit;
  }
  .footer-signup__field::placeholder { color: color-mix(in srgb, var(--color-cream) 55%, transparent); }
  .footer-signup__field:focus-visible { outline: 2px solid var(--color-cream); outline-offset: 2px; }
  .site-footer__interests { font-size: var(--fs--1); margin: 0; }
  .site-footer__interests a { font-weight: 400; }
  /* 2026-09-13 review: air around the icon row; the first icon's glyph sits flush
     with the content edge (the 44px tap target is 8px wider than the 28px glyph) */
  .site-footer .social-row { padding-block: 1.5rem .875rem; }
  .site-footer .social-row li:first-child .social-link--icon { margin-inline-start: -8px; }
  .site-footer__heading {
    font-family: var(--font-body);
    font-size: var(--fs--1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-block-end: var(--space-xs);
  }
  .site-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-md); }
  .site-footer__note {
    padding-inline: var(--gutter);  /* 2026-09-13 review: align with the container gutter */
    max-inline-size: var(--container);
    margin-inline: auto;
    margin-block-start: var(--space-md);
    padding-block-start: var(--space-sm);
    border-block-start: 1px solid color-mix(in srgb, var(--color-cream) 20%, transparent);
    font-size: var(--fs--1);
  }
  @media (min-width: 900px) {
    /* M28 (D5): three columns hold the row: brand, newsletter, legal */
    .site-footer__inner { flex-direction: row; align-items: start; gap: var(--space-xl); }
    .site-footer__brand { flex: 0 0 auto; align-items: start; }
    .site-footer__news { flex: 1 1 22rem; }
    .site-footer__inner > .site-footer__nav { flex: 0 0 auto; margin-inline-start: auto; }
    .site-footer__heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  }

  /* simple flowing prose pages */
  .prose { display: grid; gap: var(--space-md); }
  .prose h2 { margin-block-start: var(--space-lg); }
  /* M22: the description's markup (events/markup.py) */
  .prose h3 { margin-block-start: var(--space-md); }
  .prose ul { padding-inline-start: 1.25rem; display: grid; gap: var(--space-2xs); }
}

/* M47: the one card both sites use. The console links it beside admin.css and the
   public bundle builds it in (scripts/build_css.py). Everything here is neutral:
   the palette is the eight custom properties at the top of .toasts, and each site
   declares its own skin (the console's grey in admin.css, the loft's parchment as
   .toasts.toasts--brand in components.css). The script is js/toast.js.
   Layered on purpose: an unlayered declaration beats every layered one whatever the
   specificity, so a layered neutral block loses to the console's unlayered skin and
   can be beaten inside the layer by the public one. Both are what we want. */
@layer components {
  .toasts {
    --toast-bg: #FFFFFF;
    --toast-fg: #52525B;
    --toast-line: #E4E4E7;
    --toast-radius: 12px;
    --toast-shadow: 0 4px 12px rgb(0 0 0 / .08);
    --toast-clearance: 0px;       /* set by the script from the page's bottom bar */
    --toast-gap: 1rem;            /* M177: the space under the stack, .75rem on a phone */

    position: fixed;
    z-index: var(--toast-z, 50);  /* over the console's phone drawer (39) and save bar (30) */
    right: 1rem;
    bottom: calc(var(--toast-gap) + var(--tabbar-h, 0px) + var(--toast-clearance));  /* M177: --tabbar-h is the console's bottom menu, 0 elsewhere */
    display: flex;
    flex-direction: column-reverse;  /* the newest card sits nearest the corner */
    gap: .5rem;
    width: min(24rem, calc(100vw - 2rem));
    pointer-events: none;
  }
  .toast-card {
    pointer-events: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    column-gap: .625rem;
    padding: .75rem .875rem;
    background: var(--toast-bg);
    color: var(--toast-fg);
    border: 1px solid var(--toast-tone-line, var(--toast-line));
    border-radius: var(--toast-radius);
    box-shadow: var(--toast-shadow);
    animation: toast-in 300ms cubic-bezier(.2, 0, .2, 1) both;
  }
  .toast-card--success { --toast-tone: #15803D; --toast-tone-line: #C6E6CE; }
  .toast-card--info    { --toast-tone: #1D4ED8; --toast-tone-line: #C9D8F2; }
  .toast-card--warning { --toast-tone: #B45309; --toast-tone-line: #EEDCB5; }
  .toast-card--error   { --toast-tone: #B91C1C; --toast-tone-line: #F0C9C4; }
  .toast-card__icon { grid-row: 1 / span 2; width: 1.125rem; height: 1.125rem; margin-top: .0625rem; color: var(--toast-tone); flex: 0 0 auto; }
  .toast-card__title { grid-column: 2; margin: 0; font-size: .875rem; font-weight: 600; line-height: 1.35; color: var(--toast-tone); }
  .toast-card__text { grid-column: 2; font-size: .875rem; font-weight: 400; line-height: 1.4; margin: 0; }
  .toast-card__title + .toast-card__text { margin-top: .125rem; }
  .toast-card__undo { grid-column: 2; justify-self: start; margin-top: .375rem; padding: 0; border: 0; background: none; font: inherit; font-size: .875rem; font-weight: 600; color: var(--toast-undo-color, inherit); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
  .toast-card__undo:hover { color: var(--toast-tone); }
  .toast-card__close { grid-column: 3; grid-row: 1; position: relative; width: 1.375rem; height: 1.375rem; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--toast-close-color, #71717A); font-size: 1rem; line-height: 1; cursor: pointer; }
  .toast-card__close:hover { background: var(--toast-close-hover-bg, #F4F4F5); color: var(--toast-close-hover-color, #18181B); }
  .toast-card__undo:focus-visible, .toast-card__close:focus-visible { outline: 2px solid var(--toast-focus, var(--toast-tone)); outline-offset: 2px; }
  .toast-card--leaving { animation: toast-out 200ms cubic-bezier(.2, 0, .2, 1) both; }

  @keyframes toast-in { from { opacity: 0; transform: translateY(50px) scale(.95); } to { opacity: 1; transform: none; } }
  @keyframes toast-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(20px); } }
  @media (prefers-reduced-motion: reduce) {
    .toast-card, .toast-card--leaving { animation: none; }
  }
  @media (max-width: 42.5rem) {
    .toasts { --toast-gap: .75rem; left: .75rem; right: .75rem; width: auto; }
  }
}

@layer components {
  /* brand lockup */
  .brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text);
    text-decoration: none;
  }
  .brand .logo-mark { inline-size: 1.5rem; block-size: auto; color: var(--color-text); }
  .brand__name { font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-0); white-space: nowrap; }
  @media (min-width: 480px) {
    .brand__name { font-size: var(--fs-1); }
  }

  /* nav: hamburger disclosure on small screens (full-height overlay panel),
     inline row from 768px (js forces the disclosure open) */
  .nav-disclosure > summary {
    list-style: none;
    cursor: pointer;
    inline-size: 44px;
    min-block-size: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
  }
  .nav-disclosure > summary::-webkit-details-marker { display: none; }
  .nav-icon { display: block; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .nav-icon line {
    /* M28 (D9): fill-box makes transform-origin: center each line's own centre,
       not the SVG's, which is what Safari needs to draw a straight X. */
    transform-box: fill-box;
    transform-origin: center;
    transition: transform var(--dur-mid) var(--ease), opacity var(--dur-fast) var(--ease);
  }
  /* open state: the three lines morph into an X (the universal close) */
  .nav-disclosure[open] .nav-icon__top { transform: translateY(6px) rotate(45deg); }
  .nav-disclosure[open] .nav-icon__mid { opacity: 0; }
  .nav-disclosure[open] .nav-icon__bot { transform: translateY(-6px) rotate(-45deg); }
  /* absolute (not fixed): the header's backdrop-filter makes it the containing
     block for fixed descendants, which would clip the panel to the header.
     M22: the panel holds the link list and a foot (the next evening, the social links). */
  .nav-panel {
    position: absolute;
    inset-inline: 0;
    inset-block-start: var(--header-h);
    block-size: calc(100svh - var(--header-h));
    z-index: var(--z-overlay);
    overflow-y: auto;
    display: grid;
    align-content: start;
    gap: var(--space-xl);
    padding: var(--space-xl) var(--gutter) max(var(--space-xl), env(safe-area-inset-bottom));
    background: var(--color-bg);
  }
  .nav-panel > ul { display: grid; gap: var(--space-xs); }
  .nav-panel > ul a {
    display: flex;
    align-items: center;
    min-block-size: 48px;
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: var(--fs-2);
    font-weight: 600;
  }
  .nav-panel > ul a:hover { color: var(--color-accent); }
  .nav-panel > ul a[aria-current="page"] {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: .3em;
  }
  .nav-foot { display: grid; gap: var(--space-md); border-block-start: var(--border); padding-block-start: var(--space-lg); }
  .nav-foot__label { font-size: var(--fs--1); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); }
  body.panel-open { overflow: hidden; }
  /* M28 (D9): the panel slides and fades in, its links cascading behind it, and
     the close reverses it (js/nav.js holds the disclosure open for the closing
     animation). Reduced motion gets a panel that is simply there. */
  @media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
    .nav-disclosure[open] .nav-panel { animation: nav-panel-in var(--dur-mid) var(--ease) both; }
    .nav-disclosure[open] .nav-panel > ul > li,
    .nav-disclosure[open] .nav-panel .nav-foot { animation: nav-item-in var(--dur-mid) var(--ease) both; }
    .nav-disclosure[open] .nav-panel > ul > li:nth-child(1) { animation-delay: 60ms; }
    .nav-disclosure[open] .nav-panel > ul > li:nth-child(2) { animation-delay: 100ms; }
    .nav-disclosure[open] .nav-panel > ul > li:nth-child(3) { animation-delay: 140ms; }
    .nav-disclosure[open] .nav-panel > ul > li:nth-child(4) { animation-delay: 180ms; }
    .nav-disclosure[open] .nav-panel > ul > li:nth-child(5) { animation-delay: 220ms; }
    .nav-disclosure[open] .nav-panel .nav-foot { animation-delay: 260ms; }
    .nav-disclosure.is-closing .nav-panel { animation: nav-panel-out var(--dur-fast) var(--ease) both; }
    .nav-disclosure.is-closing .nav-panel > ul > li,
    .nav-disclosure.is-closing .nav-panel .nav-foot { animation: nav-item-out var(--dur-fast) var(--ease) both; animation-delay: 0s; }
  }
  @keyframes nav-panel-in { from { opacity: 0; transform: translateY(-1rem); } to { opacity: 1; transform: none; } }
  @keyframes nav-panel-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-1rem); } }
  @keyframes nav-item-in { from { opacity: 0; transform: translateY(.75rem); } to { opacity: 1; transform: none; } }
  @keyframes nav-item-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(.5rem); } }
  @media (min-width: 768px) {
    .nav-disclosure > summary { display: none; }
    .nav-panel {
      position: static;
      block-size: auto;
      display: block;
      background: none;
      padding: 0;
      overflow: visible;
    }
    .nav-panel > ul { display: flex; gap: var(--space-lg); }
    .nav-panel > ul a {
      min-block-size: 44px;
      font-family: var(--font-body);
      font-size: var(--fs-0);
      font-weight: 500;
    }
    .nav-foot { display: none; }
  }

  /* language toggle: two letters (M7); since M22 a plain link (shareable, opens in a new tab), left of the hamburger */
  .lang-switch {
    margin-inline-start: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--color-control-border);
    border-radius: var(--radius-pill);
    min-block-size: 44px;
    min-inline-size: 44px;
    padding-inline: var(--space-sm);
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--fs--1);
    font-weight: 600;
    letter-spacing: .04em;
  }
  @media (min-width: 768px) {
    .site-nav { order: 1; margin-inline-start: auto; }
    .lang-switch { order: 2; margin-inline-start: 0; }
  }
  .lang-switch:hover { border-color: currentColor; color: var(--color-accent); }

  /* buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    min-block-size: 44px;
    padding: var(--space-xs) var(--space-lg);
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--color-accent-fill);
    color: var(--color-accent-contrast);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  }
  .btn:hover { background: color-mix(in oklab, var(--color-accent-fill), #000 12%); }
  .btn:active { transform: translateY(1px); }
  .btn--ghost {
    background: transparent;
    color: var(--color-accent);
    box-shadow: inset 0 0 0 1px currentColor;
  }
  .btn--ghost:hover { background: color-mix(in srgb, var(--color-accent-fill) 10%, transparent); }
  .btn--small { font-size: var(--fs--1); padding-inline: var(--space-md); }
  .btn--large { font-size: var(--fs-1); min-block-size: 56px; padding: var(--space-sm) var(--space-xl); }  /* M32: the About page's closing action */

  /* hero */
  /* viewport-tall with the copy at the foot: 60svh, then 86svh from 900 px. The height
     holds while the window narrows and steps once, instead of drifting with the width. */
  .hero {
    position: relative;
    min-block-size: 60svh;
    display: flex;
    align-items: flex-end;
    padding-block: var(--space-2xl) var(--space-xl);
    isolation: isolate;
    overflow: clip;
    background: var(--color-ink);
  }
  @media (min-width: 900px) {
    .hero { min-block-size: 86svh; padding-block-end: var(--space-2xl); }
  }
  .hero__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in oklab, var(--color-ink), transparent 15%), color-mix(in oklab, var(--color-ink), transparent 45%)); }
  .hero .logo-mark { inline-size: clamp(3.5rem, 2.5rem + 5vw, 6rem); color: var(--color-cream); margin-block-end: var(--space-lg); }
  .hero h1 { max-inline-size: 22ch; color: var(--color-cream); }
  .hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-block-start: var(--space-xl); }
  .hero__actions .btn--ghost { color: var(--color-cream); }
  /* M22: the focus ring on the two dark grounds: cream ring (15:1 on ink), ink halo keeps it off the picture */
  .hero, .site-footer { --color-focus: var(--color-cream); --color-focus-halo: var(--color-ink); }
  /* M30, generalised in M32: the point of a picture kept in view on every screen (SiteImage.image_focus_x/y, in steps of 5) */
  .focus { object-position: var(--fx, 50%) var(--fy, 50%); }
  .focus--x0 { --fx: 0%; }
  .focus--x5 { --fx: 5%; }
  .focus--x10 { --fx: 10%; }
  .focus--x15 { --fx: 15%; }
  .focus--x20 { --fx: 20%; }
  .focus--x25 { --fx: 25%; }
  .focus--x30 { --fx: 30%; }
  .focus--x35 { --fx: 35%; }
  .focus--x40 { --fx: 40%; }
  .focus--x45 { --fx: 45%; }
  .focus--x50 { --fx: 50%; }
  .focus--x55 { --fx: 55%; }
  .focus--x60 { --fx: 60%; }
  .focus--x65 { --fx: 65%; }
  .focus--x70 { --fx: 70%; }
  .focus--x75 { --fx: 75%; }
  .focus--x80 { --fx: 80%; }
  .focus--x85 { --fx: 85%; }
  .focus--x90 { --fx: 90%; }
  .focus--x95 { --fx: 95%; }
  .focus--x100 { --fx: 100%; }
  .focus--y0 { --fy: 0%; }
  .focus--y5 { --fy: 5%; }
  .focus--y10 { --fy: 10%; }
  .focus--y15 { --fy: 15%; }
  .focus--y20 { --fy: 20%; }
  .focus--y25 { --fy: 25%; }
  .focus--y30 { --fy: 30%; }
  .focus--y35 { --fy: 35%; }
  .focus--y40 { --fy: 40%; }
  .focus--y45 { --fy: 45%; }
  .focus--y50 { --fy: 50%; }
  .focus--y55 { --fy: 55%; }
  .focus--y60 { --fy: 60%; }
  .focus--y65 { --fy: 65%; }
  .focus--y70 { --fy: 70%; }
  .focus--y75 { --fy: 75%; }
  .focus--y80 { --fy: 80%; }
  .focus--y85 { --fy: 85%; }
  .focus--y90 { --fy: 90%; }
  .focus--y95 { --fy: 95%; }
  .focus--y100 { --fy: 100%; }
  /* M18: the admin-managed hero images crossfade (js/hero.js toggles is-active) */
  .hero__images { position: absolute; inset: 0; z-index: -2; }
  .hero__images .hero__image { opacity: 0; transition: opacity 1.5s ease; }
  .hero__images .hero__image.is-active { opacity: 1; }
  @media (prefers-reduced-motion: reduce) {
    .hero__images .hero__image { transition: none; }
  }

  /* M18: the Instagram strip on the home page, photos only */
  .insta-grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
  .insta-grid img { inline-size: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); display: block; }

  /* M22: the home page's « Ce qui se passe ici » and the two kinds of evening */
  .lede { font-size: var(--fs-1); max-inline-size: 40ch; }
  .home-more { display: flex; justify-content: flex-end; }

  /* ---------- M32: the About page as an editorial spread ---------- */
  /* Same words, re-set on a twelve-column grid from 900 px: a typographic
     opening, the group photo at the feature width, the mission as a poster,
     the values in three columns, a full-bleed band, two portraits
     and one button. Square corners on every picture here (D15.1). The two
     placements whose frame changes with the screen wear the .focus classes
     (the point kept in view); the values and the portraits are cut at 4:5.
     Full bleed comes from a section with no side padding, never from a viewport width
     (reset.css keeps the scrollbar gutter stable).
     2026-09-12: « Le lieu » (the group photo and its two paragraphs) is gone
     for good, by the User's own choice; the classes it alone used go with it. */
  .about .section { padding-block: 0; }
  .about > .section + .section { margin-block-start: var(--space-section); }
  /* M75.1: the mission band sits flush under the opening photo, the picture and the
     statement as one unit; the gap resumes under the band. Only when the photo is
     there: a browser without :has keeps the gap, which is the older look, not a break. */
  .about > .about-hero:has(.about-hero__media) + .about-mission { margin-block-start: 0; }
  /* Reviewed design (2026-09-12): the opening is the copy in the page container
     with the « En-tête » picture full width beneath it. The copy carries
     .container in the markup, so its width and gutter are the page's, the
     header's and the footer's. */
  .about-hero__copy { padding-block-start: var(--space-xl); display: grid; gap: var(--space-lg); justify-items: start; }
  .about-more { display: inline-flex; align-items: center; gap: var(--space-md); font-size: var(--fs--1); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; color: inherit; margin-block-start: var(--space-md); }
  .about-more:hover .about-more__arrow { transform: translateY(0.25rem); }
  .about-more__arrow { transition: transform .3s ease; }
  .about-hero__media { margin-block-start: var(--space-xl); }
  .about-title { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.02em; }
  .about-intro { font-size: var(--fs-1); max-inline-size: 36rem; display: grid; gap: var(--space-md); }
  .about-intro p { max-inline-size: none; }
  .about-heading { font-size: var(--fs-5); margin-block-end: var(--space-xl); }
  /* The mission band (reviewed design, 2026-09-12): sand across the whole window,
     square corners and no rule, with the heading and the statement in the page
     container, so the colour reaches both window edges while the words keep the
     page's left and right edges. The section wins its own padding back from
     .about .section, which zeroes it; the double class matches that specificity. */
  .about .about-mission { background: var(--color-surface); padding-block: clamp(3rem, 2rem + 3vw, 4rem); }  /* M75: 48 to 64 px, down from 96, so the band sits as one block among the others and the mission reads close to the photo above and the values below */
  .about-mission__inner { display: grid; gap: var(--space-lg); align-items: start; }
  .about-mission__title { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-5); line-height: 1.05; letter-spacing: -0.02em; }
  .about-mission__text { font-family: var(--font-body); font-size: var(--fs-1); display: grid; gap: var(--space-md); }
  .about-mission__text p { max-inline-size: none; }
  .about-photo { display: block; inline-size: 100%; object-fit: cover; border-radius: 0; }
  .about-photo--header { aspect-ratio: 4 / 3; }
  .about-photo--wide { aspect-ratio: 3 / 2; }
  .about-photo--portrait { aspect-ratio: 4 / 5; }
  .about-bleed { width: 100%; }
  .values, .hosts { display: grid; gap: var(--space-2xl) var(--space-lg); }
  /* M75: the title hangs 12 px under its picture and the paragraph 8 px under the title,
     so on a phone each caption reads as the picture's own and not the next one's */
  .value, .host { display: grid; gap: var(--space-xs); align-content: start; }
  .value h3, .host h3 { font-size: var(--fs-2); margin-block-start: var(--space-2xs); }
  .host__photo--empty { display: grid; place-items: center; background: var(--color-surface); color: var(--color-text-muted); }
  .host__photo--empty .logo-mark { inline-size: 3rem; block-size: auto; }
  .about-close { text-align: center; }
  @media (min-width: 900px) {
    .about-hero__copy { padding-block: var(--space-2xl) 0; }
    /* the mission band's two columns: the heading on the left of the container,
       the statement from the halfway line to the container's right edge */
    .about-mission__inner { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-lg); }
    .about-mission__title { grid-column: 1 / span 5; }
    .about-mission__text { grid-column: 7 / span 6; }
    /* the opening picture: wide rather than tall on a big screen, and capped so a
       1920 px window does not turn it into a full page of photograph */
    .about-photo--header { aspect-ratio: 21 / 9; max-block-size: 72svh; }
    .about-photo--wide { aspect-ratio: 21 / 9; }
    .values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hosts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  /* M39.1: the contact page as the mockup draws it (ideas/local-design/contact/index.html): one
     two-column section from 700 px, the display title, the address as one accent line with
     an arrow, the two networks named beside their icons at the column's foot, and the picture
     in its arch, a fixed height per width with the point kept in view (the .focus classes) */
  .contact { display: grid; gap: 2.125rem; align-items: stretch; }
  .contact__info { display: flex; flex-direction: column; align-items: flex-start; }
  .contact__title { font-size: 4.375rem; line-height: 1.08; letter-spacing: -.055em; margin-block-end: 1.875rem; }
  .contact__intro { display: grid; gap: var(--space-md); margin-block-end: var(--space-lg); }
  .contact__email { display: inline-flex; align-items: center; gap: 1.375rem; max-inline-size: 100%; color: var(--color-accent); font-size: 1.4375rem; letter-spacing: -.04em; text-decoration: none; padding-block-end: .9375rem; border-block-end: 1px solid currentColor; overflow-wrap: anywhere; }
  .contact__email:hover { text-decoration: none; }
  .contact__arrow { flex: 0 0 auto; transition: transform var(--dur-mid) var(--ease); }
  .contact__email:hover .contact__arrow { transform: translate(4px, -4px); }
  .social-row--named { padding-block-start: 1.6875rem; gap: 2rem; }
  .social-link--named { display: inline-flex; align-items: center; gap: .75rem; min-block-size: 44px; color: inherit; font-size: var(--fs--1); text-decoration: none; }
  .social-link--named .icon { inline-size: 1.5rem; block-size: 1.5rem; margin-inline-end: 0; color: var(--color-accent); }
  .social-link--named:hover { text-decoration: underline; text-underline-offset: .3em; }
  .contact__photo { margin: 0; block-size: 22.5rem; overflow: hidden; border-radius: 8.75rem 8.75rem 4px 4px; background: var(--color-surface); }
  .contact__photo img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
  .contact__photo--empty { display: grid; place-items: center; inline-size: 100%; block-size: 100%; color: var(--color-text-muted); }
  .contact__photo--empty .logo-mark { inline-size: 4rem; block-size: auto; }
  @media (min-width: 700px) {
    .contact { grid-template-columns: 1.04fr 1fr; column-gap: 6%; }
    .contact__info { padding-block: 1.875rem .75rem; }
    .contact__title { font-size: clamp(4.0625rem, 7.5vw, 6.75rem); margin-block-end: 3.3125rem; }
    .contact__email { font-size: clamp(1.1875rem, 2.15vw, 1.8125rem); gap: .9375rem; }
    .social-row--named { margin-block-start: auto; padding-block-start: 5rem; gap: 1.375rem; }
    .contact__photo { block-size: 27.5rem; border-radius: 10rem 10rem 4px 4px; }
  }
  @media (min-width: 900px) {
    .contact { column-gap: 8%; }
    .contact__email { gap: 1.625rem; }
    .social-row--named { gap: 2rem; }
    .contact__photo { block-size: 31rem; }
  }
  @media (min-width: 1500px) {
    .contact__info { padding-block-start: 2.8125rem; }
    .contact__photo { block-size: 35.625rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    .contact__arrow { transition: none; }
    .contact__email:hover .contact__arrow { transform: none; }
  }

  /* M18: the one « Légal » page */
  .legal-toc ul { display: flex; flex-wrap: wrap; gap: var(--space-md); }
  .legal-section { scroll-margin-block-start: var(--space-xl); display: grid; gap: var(--space-md); }  /* M22: the bodies are not .prose, so the gap lives here */
  .legal-section h2, .legal-section h3, .legal-section h4 { margin-block-start: var(--space-lg); }  /* M194: a policy's two heading levels */
  .legal-section ol { padding-inline-start: 1.25rem; display: grid; gap: var(--space-2xs); }  /* M194: a numbered list reads like the bullet list of .prose ul */
  .legal-section + .legal-section { margin-block-start: var(--space-2xl); padding-block-start: var(--space-xl); border-block-start: 1px solid color-mix(in oklab, var(--color-ink), transparent 85%); }

  /* event rows (M7): a month-grouped list, never a grid; the whole row is the link */
  .event-month { margin-block-start: var(--space-lg); font-size: var(--fs-1); }
  /* M23: a reading measure for the row. The category chip is aligned to the
     row's right edge, so the row's width is what sets how far it sits from the
     text: 40 rem keeps it near without cramping a long title (the User's call). */
  .event-list { display: grid; max-inline-size: 40rem; }
  .event-row { border-block-end: var(--border); }
  .event-row__link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-block: var(--space-md);
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--dur-fast) var(--ease);
  }
  .event-row__link:hover .event-row__title,
  .event-row__link:focus-visible .event-row__title { color: var(--color-accent); }
  .event-row__link:hover { color: var(--color-accent); }
  .event-row__img {
    flex: 0 0 auto;
    inline-size: 5.5rem;   /* M193: the square thumbnail (480 by 480), the size of the events page's row picture on a phone */
    block-size: 5.5rem;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--color-surface);
  }
  .event-row__img--empty {
    display: grid;
    place-items: center;
    border: var(--border);
    color: var(--color-text-muted);
  }
  .event-row__img--empty .logo-mark { inline-size: 1.75rem; block-size: auto; }
  /* M23: flex: 1 so the text column fills the row whatever the title's length,
     which is what puts every category chip in the same place down the list */
  .event-row__text { flex: 1; display: grid; gap: var(--space-2xs); min-inline-size: 0; }
  .event-row__when { color: var(--color-text); font-weight: 500; font-size: var(--fs--1); }
  /* M23: base.css balances headings, which centres a wrapped title well short
     of the column and leaves the right-aligned chip stranded past it; a row
     title fills its line instead, so the text wraps where the chip sits */
  .event-row__title { font-size: var(--fs-1); color: var(--color-text); text-wrap: pretty; margin-block-start: -.2rem; transition: color var(--dur-fast) var(--ease); }
  /* M22: the « En bref » line and the meta line (price, category, places) */
  .event-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-sm); color: var(--color-text-muted); font-size: var(--fs--1); }
  .event-row__price { color: var(--color-text); font-weight: 500; }
  .event-row__host { color: var(--color-text); font-weight: 500; }  /* M30: « Par <organisateur> » */
  /* M23: the category chip flush right, the same column down the whole list */
  .event-row__cat { margin-inline-start: auto; }

  /* M26: a series shows once a month; its dates sit under the row as square
     buttons, each its own evening. The event page uses the same button. */
  .event-series__dates { display: flex; flex-wrap: wrap; gap: var(--space-2xs); padding-block-end: var(--space-md); }
  .event-series { margin-block-start: var(--space-md); }
  .event-series__label { color: var(--color-text-muted); font-size: var(--fs--1); margin-block-end: var(--space-2xs); }
  /* ---------- M38: the events page in the staff list's shape ---------- */
  /* The staff list (admin.css, M36 and M37) mapped onto the public tokens: its
     paper is --color-paper, its hairline --color-border, its soft fill
     --color-surface, its quiet ink --color-text-muted. */
  /* M175: the search takes the bar's whole line; « Effacer » clears the search alone and takes a line of its own on a phone. */
  .event-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
  .event-tools__field { position: relative; flex: 1 1 0; min-inline-size: 7rem; }
  .event-tools__icon { position: absolute; inset-block-start: 50%; translate: 0 -50%; pointer-events: none; }
  .event-tools__field .event-tools__icon { inset-inline-start: 13px; color: var(--color-text-muted); }
  .event-tools__clear { font-size: var(--fs--1); }
  @media (max-width: 440px) { .event-tools__clear { flex-basis: 100%; } }
  /* ---------- M175: the fixed bar, the row of quick buttons, the filter panel ---------- */
  /* The bar stays at the top of the window while the list scrolls: under the site
     header from 768 px, alone under it, where the header scrolls away on this page
     (relative, never static: the phone menu's panel is placed against the header). */
  .event-bar { position: sticky; inset-block-start: 0; z-index: calc(var(--z-sticky) - 1); display: grid; gap: var(--space-xs); padding-block: var(--space-xs); background: var(--color-bg); }
  /* The User, 2026-11-05: no line under the bar, and the bar is frosted like the site header
     (layout.css), so a row sliding up blurs from the bar's lower edge and stays blurred behind
     the header, where before it vanished under the bar and came back blurred. The blur alone,
     without the header's saturation: the bar is as wide as the container, not the window, and
     a saturated page colour would draw its rectangle on the page. */
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .event-bar { background: color-mix(in srgb, var(--color-bg) 80%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  }
  /* The User, 2026-11-05: the page opens on the search, so the section gives up its tall top space */
  .section:has(.event-bar) { padding-block-start: var(--space-xs); }
  @media (min-width: 768px) { .event-bar { inset-block-start: var(--header-h); } }
  @media (max-width: 767px) { body:has(.event-bar) .site-header { position: relative; } }
  .filter-row { display: flex; gap: var(--space-xs); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .filter-row::-webkit-scrollbar { display: none; }
  /* M175 follow-up (the User, 2026-11-06): where the row is wider than the window, the edge it can
     still scroll towards fades out, so a cut-off button reads as more to come. The two widths follow
     the row's own scroll position (a scroll timeline, no script) and are registered as lengths so
     they slide and do not jump. A row that fits has no timeline, so both stay at 0 and nothing
     fades; a browser without scroll timelines skips the rule and keeps the plain row. */
  @property --fade-start { syntax: "<length>"; inherits: false; initial-value: 0px; }
  @property --fade-end { syntax: "<length>"; inherits: false; initial-value: 0px; }
  @supports (animation-timeline: scroll()) {
    .filter-row { mask-image: linear-gradient(90deg, transparent, black var(--fade-start), black calc(100% - var(--fade-end)), transparent); animation: filter-row-fade linear both; animation-timeline: scroll(self inline); }
  }
  @keyframes filter-row-fade {
    0% { --fade-start: 0px; --fade-end: 56px; }
    8%, 92% { --fade-start: 56px; --fade-end: 56px; }
    100% { --fade-start: 56px; --fade-end: 0px; }
  }
  .filter-chip { display: inline-flex; flex: none; align-items: center; gap: .375rem; min-block-size: 36px; padding-inline: var(--space-sm); border: 1px solid var(--color-control-border); border-radius: var(--radius-sm); background: var(--color-paper); color: var(--color-text); font: inherit; font-size: var(--fs--1); font-weight: 500; white-space: nowrap; text-decoration: none; cursor: pointer; }
  .filter-chip:hover { border-color: var(--color-accent-fill); }
  .filter-chip[aria-current="true"] { border-color: var(--color-accent-fill); background: var(--color-accent-fill); color: var(--color-accent-contrast); }
  .filter-chip--fav[aria-current="true"] svg { fill: currentColor; }
  .filter-panel { position: fixed; inset-block: 0; inset-inline: 0 auto; z-index: var(--z-modal); inline-size: min(26rem, calc(100vw - 3rem)); max-inline-size: none; block-size: 100dvh; max-block-size: none; margin: 0; padding: 0; border: 0; border-inline-end: var(--border); background: var(--color-paper); color: var(--color-text); overflow-y: auto; overscroll-behavior: contain; }
  .filter-panel::backdrop { background: rgb(33 28 24 / .52); }
  .filter-panel__form { display: grid; align-content: start; gap: var(--space-lg); min-block-size: 100%; padding: var(--space-lg); padding-block-end: 0; }
  .filter-panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
  .filter-panel__title { margin: 0; font-family: var(--font-heading); font-size: var(--fs-2); font-weight: 500; }
  .filter-panel__close { display: inline-flex; align-items: center; justify-content: center; inline-size: 44px; block-size: 44px; margin-inline-end: calc(var(--space-sm) * -1); border-radius: var(--radius-pill); color: var(--color-text); }
  .filter-panel__group { display: grid; gap: var(--space-xs); min-inline-size: 0; margin: 0; padding: 0; border: 0; }
  .filter-panel__legend { padding: 0; margin-block-end: var(--space-2xs); font-size: var(--fs-0); font-weight: 600; }
  .filter-panel__pills { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
  /* The User, 2026-11-05: the tick boxes of the categories stand closer, a row as tall as the panel's buttons and no gap between rows */
  .filter-panel__group[data-filter-categories] { gap: 0; }
  .filter-panel__group[data-filter-categories] .choice { min-block-size: 36px; }
  /* a period is a radio drawn as a button: the input stays in the page for the keyboard and the form */
  .filter-pill { position: relative; display: inline-flex; }
  .filter-pill input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; opacity: 0; cursor: pointer; }
  .filter-pill span { display: inline-flex; align-items: center; min-block-size: 36px; padding-inline: var(--space-sm); border: 1px solid var(--color-control-border); border-radius: var(--radius-sm); background: var(--color-paper); font-size: var(--fs--1); font-weight: 500; white-space: nowrap; }
  .filter-pill:hover span { border-color: var(--color-accent-fill); }
  .filter-pill input:checked + span { border-color: var(--color-accent-fill); background: var(--color-accent-fill); color: var(--color-accent-contrast); }
  /* The User, 2026-11-05: the custom period opens the two dates under the buttons, so its button
     carries a small arrow, pointing down while closed and up while open (two borders, no image). */
  .filter-pill input[value="custom"] + span::after { content: ""; inline-size: .4rem; block-size: .4rem; margin-inline-start: var(--space-xs); border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor; rotate: 45deg; translate: 0 -2px; }
  .filter-pill input[value="custom"]:checked + span::after { rotate: 225deg; translate: 0 2px; }
  .filter-pill input:focus-visible + span { outline: 2px solid var(--color-accent-fill); outline-offset: 2px; }
  .filter-panel__range { display: none; gap: var(--space-sm); margin-block-start: var(--space-xs); }
  .filter-panel__group:has(input[value="custom"]:checked) .filter-panel__range { display: grid; }
  .filter-panel__dates { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
  .filter-panel__dates[hidden], .range-calendar[hidden] { display: none; }
  .filter-panel__date { display: grid; gap: var(--space-2xs); font-size: var(--fs--1); font-weight: 500; }
  .filter-panel__date input, .filter-panel__place { min-block-size: 44px; inline-size: 100%; padding-inline: var(--space-sm); border: 1px solid var(--color-control-border); border-radius: var(--radius-sm); background: var(--color-paper); font: inherit; font-size: max(1rem, var(--fs-0)); }
  .filter-panel__summary { margin: 0; color: var(--color-text-muted); font-size: var(--fs--1); }
  /* The User, 2026-11-05: a frame around the calendar, so it reads as one */
  .range-calendar { display: grid; gap: var(--space-xs); padding: var(--space-sm); border: 1px solid var(--color-control-border); border-radius: var(--radius-md); }
  .range-calendar__head { display: flex; align-items: center; justify-content: space-between; }
  .range-calendar__month { font-weight: 600; }
  .range-calendar__nav { display: inline-flex; align-items: center; justify-content: center; inline-size: 44px; block-size: 44px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--color-text); cursor: pointer; }
  .range-calendar__nav:disabled { opacity: .35; cursor: default; }
  .range-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .range-calendar__weekday { padding-block: var(--space-2xs); color: var(--color-text-muted); font-size: .75rem; text-align: center; }
  .range-calendar__day { min-block-size: 44px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--color-text); font: inherit; font-size: var(--fs--1); cursor: pointer; }
  .range-calendar__day.is-today { font-weight: 700; }
  .range-calendar__day.is-between { border-radius: 0; background: var(--color-surface); }
  .range-calendar__day[aria-pressed="true"] { background: var(--color-accent-fill); color: var(--color-accent-contrast); }
  .range-calendar__day:disabled { color: var(--color-text-muted); opacity: .5; cursor: default; }
  .filter-panel__foot { position: sticky; inset-block-end: 0; display: grid; justify-items: center; gap: var(--space-xs); padding-block: var(--space-md); background: var(--color-paper); }
  .filter-panel__foot .btn { inline-size: 100%; }
  /* The User, 2026-11-05: no main button; every choice applies at once, the foot only says how many
     evenings the choices give, and « Effacer tous les filtres » is a button under the panel's title */
  .filter-panel__count { margin: 0; color: var(--color-text-muted); font-size: var(--fs--1); }
  .filter-panel__count:empty { display: none; }
  .filter-panel__clear { justify-self: start; margin-block-start: calc(var(--space-sm) * -1); }
  @media (prefers-reduced-motion: no-preference) {
    .filter-panel[open] { animation: filter-panel-in var(--dur-mid) var(--ease); }
    .filter-panel[open]::backdrop { animation: dialog-fade var(--dur-mid) var(--ease); }
  }
  @keyframes filter-panel-in { from { translate: -100% 0; } }
  /* M58: the live search hides what does not match, and these two boxes each
     set a display of their own, which outranks the browser's own [hidden] rule
     (the M25 lesson from the staff side). */
  .event-list[hidden], .event-bar ~ .event-month[hidden] { display: none; }
  /* M59: the events list when nothing answers the filters. It takes the place
     of the cards, in the cards' own paper, so an empty tab reads as an answer
     rather than a blank page. Never animated: the as-you-type search shows and
     hides it on every keystroke. */
  .event-empty { display: grid; justify-items: center; gap: var(--space-2xs); margin-block-start: var(--space-lg); padding: var(--space-2xl) var(--space-lg); border: var(--border); border-radius: var(--radius-md); background: var(--color-paper); text-align: center; }
  .event-empty__mark { display: block; margin-block-end: var(--space-md); color: var(--color-ochre); opacity: .5; }
  .event-empty__mark .logo-mark { inline-size: 1.75rem; block-size: auto; }
  .event-empty__title { margin: 0; font-family: var(--font-heading); font-size: var(--fs-1); font-weight: 500; line-height: 1.25; text-wrap: balance; }
  .event-empty__text { max-inline-size: 38ch; margin: 0; color: var(--color-text-muted); font-size: var(--fs--1); line-height: 1.7; text-wrap: pretty; }
  .event-empty__action { margin-block-start: var(--space-lg); }
  @media (max-width: 440px) { .event-empty { padding: var(--space-xl) var(--space-md); } }
  .event-list--cards { max-inline-size: none; gap: var(--space-sm); }
  .event-bar ~ .event-month { display: flex; align-items: center; gap: var(--space-sm); margin-block-start: var(--space-lg); font-family: var(--font-body); font-size: var(--fs--1); font-weight: 500; color: var(--color-text-muted); }
  .event-bar ~ .event-month::after { content: ""; flex: 1; block-size: 1px; background: var(--color-border); }
  .event-bar + .event-month, .event-members + .event-month { margin-block-start: var(--space-xs); }
  .event-row--card { border-block-end: 0; padding: var(--space-md); background: var(--color-paper); border: var(--border); border-radius: var(--radius-md); }
  .event-row--card .event-row__link { padding-block: 0; }
  .event-row__date { flex: 0 0 auto; display: grid; justify-items: center; padding-inline-end: var(--space-sm); border-inline-end: 1px solid var(--color-border); text-align: center; line-height: 1.15; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text); }
  .event-row__date-day { display: block; font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-2); letter-spacing: 0; text-transform: none; line-height: 1.1; }
  @media (min-width: 768px) {
    .event-row--card { padding: var(--space-lg) var(--space-xl); }
    .event-row--card .event-row__img { inline-size: 10rem; block-size: 10rem; }
    .event-row__date { padding-inline-end: var(--space-md); }
  }
  @media (max-width: 440px) {
    .event-row--card { padding: var(--space-sm); }
  }
  /* M124 (the User's option A, 2026-09-27): the card with its photo across the
     top, a square since M193, the date block and the text on the line under it. The events
     page's cards take it on phones; the home page's (event-row--stacked) at every
     width. Placed after the M38 rules so it wins over their widths and indent. */
  .event-row--stacked .event-row__link { flex-wrap: wrap; gap: var(--space-sm); }
  .event-row--stacked .event-row__img { inline-size: 100%; block-size: auto; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); }
  @media (max-width: 767px) {
    .event-row--card .event-row__link { flex-wrap: wrap; gap: var(--space-sm); }
    .event-row--card .event-row__img { inline-size: 100%; block-size: auto; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); }
  }
  /* M170 (project/milestones/M170-brief.md; the mockup project/mockups/events-redesign.html): the
     events page's evenings as open rows. A square picture, one text column capped at 36rem, thin
     lines between rows and no card. The row itself stops where the text column does, so the line
     and the highlight end at the heart. The title's link is stretched over the row; the heart and the
     other dates sit above it. Under 650px the picture is 88px and the row no longer highlights. */
  .event-lines { list-style: none; margin: 0; padding: 0; max-inline-size: none; }
  .event-line { --line-picture: 8.25rem; --line-gap: 1.375rem; --line-measure: 36rem; --line-pad: .75rem; --line-inset: .25rem; position: relative; isolation: isolate; display: grid; max-inline-size: calc(var(--line-picture) + var(--line-gap) + var(--line-measure)); grid-template-columns: var(--line-picture) minmax(0, 1fr); gap: var(--line-gap); padding-block: var(--line-pad); }
  .event-line[hidden] { display: none; }
  .event-line + .event-line { border-block-start: 1px solid color-mix(in srgb, var(--color-control-border) 20%, transparent); }
  /* M172 follow-up: the highlight is a box of its own that leaves .25rem around the picture and the heart, the gap of Will's event card (project/brand-kit/specimen-uswds.html) */
  .event-line::before { content: ""; position: absolute; z-index: -1; inset: calc(var(--line-pad) - var(--line-inset)) calc(-1 * var(--line-inset)); border-radius: calc(var(--radius-sm) + var(--line-inset)); transition: background var(--dur-fast) var(--ease); }
  .event-line:hover::before, .event-line:focus-within::before { background: color-mix(in srgb, var(--color-paper) 70%, var(--color-bg)); }
  .event-line__picture { display: block; align-self: start; overflow: hidden; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); background: var(--color-surface); }
  .event-line__picture img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
  .event-line__picture-empty { display: grid; place-items: center; block-size: 100%; color: var(--color-ochre); opacity: .5; }
  .event-line__picture-empty .logo-mark { inline-size: 1.75rem; block-size: auto; }
  .event-line__text { display: flex; flex-direction: column; align-self: start; gap: .5rem; min-inline-size: 0; max-inline-size: var(--line-measure); }
  .event-line__title { margin: 0; padding-inline-end: 2.125rem; font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; text-wrap: pretty; }
  .event-line__link { color: inherit; text-decoration: none; }
  .event-line__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
  .event-line__link:focus-visible { outline: 0; }
  .event-line__link:focus-visible::after { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: var(--radius-sm); }
  .event-line__tags { display: flex; flex-wrap: wrap; gap: .3125rem; margin: 0; }
  .event-line__tag { padding: .1875rem .4375rem; border-radius: 4px; background: var(--color-surface); color: var(--color-text-muted); font-size: .6875rem; line-height: 1.3; }
  .event-line__tag--category { color: var(--color-text); font-weight: 600; } /* M181: the site category, before the organization's tags */
  .event-line__facts { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .75rem; margin: 0; color: var(--color-text-muted); font-size: .8125rem; line-height: 1.4; }
  .event-line__fact { display: inline-flex; align-items: center; gap: .3125rem; }
  .event-line__fact svg { flex: none; }
  .event-line__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin: 0; color: var(--color-text-muted); font-size: .75rem; line-height: 1.5; }
  .event-line__host { display: inline-flex; align-items: center; gap: .4375rem; }
  .event-line__badge { display: grid; place-items: center; inline-size: 1.5rem; block-size: 1.5rem; border: 1.5px solid var(--color-paper); border-radius: 50%; background: var(--color-surface); font-size: .5rem; font-weight: 500; }
  .event-line__foot .chip { font-size: .6875rem; }
  /* M170: the heart, on the row and beside the evening's title */
  .favourite { margin: 0; }
  .favourite__button { display: grid; place-items: center; inline-size: 1.875rem; block-size: 1.875rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--color-control-border); cursor: pointer; }
  .favourite__button:hover { background: var(--color-surface); color: var(--color-accent); }
  .favourite__button[aria-pressed="true"] { color: var(--color-accent); }
  .favourite__button[aria-pressed="true"] svg { fill: currentColor; }
  .event-line .favourite { position: absolute; z-index: 2; inset-block-start: var(--line-pad); inset-inline-end: 0; }
  .event-head--heart { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .event-head--heart .favourite__button { inline-size: 2.75rem; block-size: 2.75rem; }
  /* M170: the invitation to create an account, on the dialog-card recipe */
  .favourite-dialog { text-align: center; }
  .favourite-dialog__close { position: absolute; inset-block-start: .75rem; inset-inline-end: .75rem; inline-size: 2.75rem; block-size: 2.75rem; border: 0; background: none; color: var(--color-text-muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
  .favourite-dialog__title { margin: 0 0 var(--space-sm); font-size: var(--fs-2); }
  .favourite-dialog__text { margin: 0 0 var(--space-lg); color: var(--color-text-muted); }
  .favourite-dialog__action { inline-size: 100%; }
  .favourite-dialog__login { margin: var(--space-md) 0 0; font-size: var(--fs--1); }
  @media (max-width: 650px) {
    .event-line { --line-picture: 5.5rem; --line-gap: .875rem; }
    .event-line::before { display: none; }
    .event-line__title { padding-inline-end: 1.5625rem; font-size: 1rem; line-height: 1.35; }
    .event-line__facts { font-size: .75rem; }
    .event-line__foot { font-size: .6875rem; }
    .event-line__badge { inline-size: 1.375rem; block-size: 1.375rem; border-color: var(--color-bg); }
    .event-line .favourite { inset-block-start: calc(var(--line-pad) - .1875rem); inset-inline-end: -.25rem; }
    .event-line .favourite__button { inline-size: 1.75rem; block-size: 1.75rem; }
  }
  .chip--soon { color: var(--color-accent); }
  .chip {
    display: inline-block;
    justify-self: start;
    padding: 0 var(--space-sm);
    border-radius: var(--radius-pill);
    border: 1px solid currentColor;
    font-size: var(--fs--1);
    font-weight: 600;
    letter-spacing: .02em;
  }
  .chip--soldout { color: var(--color-accent); }
  .chip--cancelled { color: var(--color-text-muted); text-decoration: line-through; }
  .registration-list__address { color: var(--color-text-muted); font-size: var(--fs--1); }

  /* inline social icons (M7): drawn in currentColor, sized to the text line */
  .icon { inline-size: 1em; block-size: 1em; vertical-align: -.125em; margin-inline-end: .4em; }
  .social-link { white-space: nowrap; }

  /* icon-only social links (M10): one row, each a 44 px tap target */
  .social-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }
  .social-link--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 44px;
    min-block-size: 44px;
  }
  .social-link--icon .icon { inline-size: 1.75rem; block-size: 1.75rem; margin-inline-end: 0; vertical-align: middle; }

  .event-meta { display: grid; gap: var(--space-2xs); color: var(--color-text-muted); }
  .event-meta__when { color: var(--color-text); }

  /* forms */
  .field { display: grid; gap: .3125rem; }
  .field[hidden] { display: none; }
  /* The create-account form's bot trap: a box no person sees. Hidden here because the content policy refuses an inline style; clipped, not display: none, so a program reading the page still finds an ordinary text box. */
  .field--trap { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .field label { font-size: .875rem; font-weight: 500; line-height: 1.25rem; }
  .field :where(input:not([type="checkbox"], [type="radio"]), textarea, select), .event-tools :where(input, select) {
    min-block-size: 44px;
    padding-inline: var(--space-md);
    border: 1px solid var(--color-control-border);  /* M22: 3.22:1, WCAG 1.4.11 */
    border-radius: var(--radius-sm);
    background: var(--color-paper);
    appearance: none;
    width: 100%;
    font-size: max(1rem, var(--fs-0));
  }
  .field :where(input, textarea):focus-visible, .event-tools :where(input, select):focus-visible { border-color: var(--color-accent-fill); }
  .event-tools__search { padding-inline-start: 40px; border-radius: var(--radius-pill); }  /* M124.1: room for the magnifier */
  .field [aria-invalid="true"] { border-color: var(--color-danger); }
  .field--choice {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: var(--space-sm);
  }
  .field--choice input { inline-size: 1.25rem; block-size: 1.25rem; accent-color: var(--color-accent-fill); }
  .field--choice label { font-weight: 500; }
  .field--choice .field__help, .field--choice .field__error { grid-column: 2; }
  .field__error { color: var(--color-danger); font-size: .8125rem; line-height: 1.125rem; }
  /* M190 (decision 7): a « Profil social » question: the platform's mark and an « @ » before the username box, one bordered group */
  .social-handle { display: flex; align-items: stretch; border: 1px solid var(--color-control-border); border-radius: var(--radius-sm); background: transparent; overflow: hidden; }
  .social-handle:focus-within { border-color: var(--color-accent-fill); }
  .social-handle__mark, .social-handle__at { display: inline-flex; align-items: center; flex: none; color: var(--color-text-muted); }
  .social-handle__mark { padding-inline: .75rem .25rem; }
  .social-handle__at { padding-inline-end: .125rem; font-weight: 500; }
  .field .social-handle :where(input) { flex: 1 1 auto; min-inline-size: 0; border: 0; border-radius: 0; background: transparent; }
  .field .social-handle :where(input):focus-visible { outline: 0; }
  .field__help { color: var(--color-text-muted); font-size: .8125rem; line-height: 1.125rem; }
  /* interest lists (M6): a compact vertical checkbox list, 44 px rows */
  .field--choices { border: 0; padding: 0; margin: 0; min-inline-size: 0; gap: 0; }
  .field--choices legend { font-size: .875rem; font-weight: 500; line-height: 1.25rem; padding: 0; margin-block-end: .3125rem; }
  .choice {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--space-sm);
    align-items: center;
    min-block-size: 44px;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
  }
  .choice input { inline-size: 1.25rem; block-size: 1.25rem; accent-color: var(--color-accent-fill); }
  .choice small { grid-column: 2; color: var(--color-text-muted); font-size: .8125rem; line-height: 1.125rem; }
  .form__error { color: var(--color-danger); }
  .form-row { display: flex; flex-wrap: wrap; gap: .875rem var(--space-sm); align-items: end; }
  .form-row .field { flex: 1 1 16rem; }
  .form-row .field--choices { flex-basis: 100%; }
  .form-stack { display: grid; gap: .875rem; }
  .form-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }
  .form-actions:empty { display: none; }
  .form-stack > .form-actions { margin-block-start: .625rem; }  /* M173: 24px under the last field (.875rem of gap + .625rem) */
  .account-card .form-stack > .form-actions { padding-block-start: 1.125rem; border-block-start: var(--border); }  /* M173: in a card, the buttons under a thin line */
  .form-note { color: var(--color-text-muted); font-size: var(--fs--1); }
  .btn--danger { background: var(--color-danger); }
  .btn--danger:hover { background: color-mix(in oklab, var(--color-danger), #000 12%); }

  /* inline status / alerts (django messages, allauth notes, form-level errors) */
  .messages { margin-block-start: var(--space-lg); display: grid; gap: var(--space-sm); }
  /* M47: with js/toast.js running, the strip is replaced by the cards */
  html.js .messages { display: none; }
  .alert {
    background: var(--color-surface);
    border: var(--border);
    border-inline-start: 4px solid var(--color-success);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    max-inline-size: none;
  }
  .alert--error { border-inline-start-color: var(--color-danger); }
  .alert--error p { max-inline-size: none; }
  .alert--warning { border-inline-start-color: var(--color-ochre-deep); }
  .badge {
    display: inline-block;
    margin-inline-start: var(--space-xs);
    padding: 0 var(--space-xs);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    border: var(--border);
    font-size: var(--fs--1);
    font-weight: 500;
  }

  /* M44, M193, M197 (project/milestones/M197-brief.md): the event page. The DOM order is the photo, div.event-main
     (the title, the story, the location), div.event-when (the date and location rows) and the panel. Under 900 px
     div.event-main is display: contents and the order property gives the photo, the title, the rows, the story, the
     panel, the location; from 900 px the areas put the photo, the rows and the panel on the left, the panel pinned
     under the sticky header, and div.event-main on the right. */
  .event-page { padding-block-start: var(--space-md); }  /* M197: 16 px above « Retour à tous les événements » and 16 px under it, on the event page only */
  .event-back { font-size: var(--fs--1); color: var(--color-text-muted); margin-block-end: var(--space-md); }
  .event-back a { display: inline-flex; align-items: center; gap: var(--space-xs); min-block-size: 32px; text-decoration: none; }
  .event-back a:hover { color: var(--color-accent); }
  .event-head { display: grid; gap: var(--space-sm); } /* M101: under the photo on a phone, beside it from 900 px (M193); the grid gap spaces it */
  .event-head h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.75rem); letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; max-inline-size: 18ch; }
  .event-head__tags { grid-column: 1 / -1; } /* M181: the labels under the title, across the heart's column */
  .event-layout { display: grid; gap: var(--space-lg); align-items: start; }
  .event-main { display: contents; }  /* M197: under 900 px its three blocks are the layout's own items, placed by order */
  .event-poster { order: 1; } .event-head { order: 2; } .event-when { order: 3; } .event-body { order: 4; } .event-booking { order: 5; } .event-place { order: 6; }
  /* M197: the date and the location, two rows of a small tile beside two lines of text (Luma's sizes: 36 px tiles under 900 px, 40 px from 900 px) */
  .event-when { display: grid; gap: var(--space-sm); min-inline-size: 0; }
  .event-fact { display: flex; align-items: center; gap: var(--space-sm); min-inline-size: 0; color: inherit; text-decoration: none; }
  .event-fact__tile { flex: none; display: grid; place-items: center; inline-size: 36px; block-size: 36px; border: var(--border); border-radius: 8px; overflow: hidden; color: var(--color-text-muted); }
  .event-fact__tile--date { grid-template-rows: 13px 1fr; place-items: stretch; text-align: center; }
  .event-fact__mo { background: var(--color-surface); font-size: 7px; font-weight: 600; letter-spacing: .04em; line-height: 13px; text-transform: uppercase; }
  .event-fact__day { font-size: .875rem; font-weight: 500; line-height: 20px; }
  .event-fact__text { display: grid; min-inline-size: 0; overflow-wrap: anywhere; }
  .event-fact__text b { font-size: .875rem; font-weight: 500; line-height: 1.5; }
  .event-fact__text span { font-size: .8125rem; line-height: 1.5; color: var(--color-text-muted); }
  .event-fact__text i { font-style: normal; margin-inline-start: 4px; color: var(--color-text-muted); }
  .event-fact--link:hover b { color: var(--color-accent); }
  .event-host { color: var(--color-text-muted); font-size: .875rem; }
  .event-poster { margin: 0; overflow: hidden; max-inline-size: 30rem; border-radius: var(--radius-md); background: var(--color-surface); } /* M193: a square; 30rem only binds between a phone and the 900 px grid */
  .event-poster img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; }
  .event-booking { display: grid; gap: var(--space-md); min-inline-size: 0; }
  .booking { display: grid; gap: var(--space-sm); padding: var(--space-md); background: var(--color-paper); border: var(--border); border-radius: var(--radius-md); box-shadow: 0 7px 20px rgb(66 51 32 / .03); }  /* M197: the mockup's 16 px padding and 12 px gap; the box opens on the tickets */
  .booking .registration { padding-block: 0; border-block: 0; }
  .booking .btn { inline-size: 100%; border-radius: var(--radius-sm); justify-content: space-between; padding-inline: var(--space-lg); transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), opacity .3s; }
  .booking .btn::after { content: "↗"; font-size: 1.1em; }
  .booking .btn--ghost::after { content: none; }

  /* M61: one summary line states what is about to be charged. M197: the date and the venue left the panel for div.event-when. */
  .booking__note { color: var(--color-text-muted); font-size: var(--fs--1); }


  /* M197 (project/milestones/M197-brief.md, mockup project/mockups/M197-event-page.html): the ticket card, in Luma's sizes and
     the site's colours. One card for both pickers: a line of tier_picker_qty.html (the name with the minus, the count and the
     plus on one row, the price under the name, the description, a flexible ticket's price box) and a radio card of
     tier_picker.html on the pay page (the same card, chosen by a press, no count). At rest the card is the page's parchment
     with no border; chosen (.is-on, or its radio checked) it is white with a 1 px charcoal border (draft D7). */
  .tiers { border: 0; padding: 0; margin: 0; min-inline-size: 0; display: grid; }
  .tiers__choices { display: grid; gap: var(--space-xs); }
  .tiers__option { position: relative; display: block; min-inline-size: 0; padding: 8px 8px 8px 12px; border: 1px solid transparent; border-radius: 8px; background: var(--color-bg); color: var(--color-text-muted); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .3s, border-color .3s, color .3s; }
  .tiers__option--qty { cursor: default; }
  @media (hover: hover) { .tiers__option:hover { background: var(--color-surface); } }
  .tiers__option.is-on { background: #fff; border-color: var(--color-text); color: var(--color-text); cursor: default; }
  .tiers__option:has(input[type="radio"]:checked) { background: #fff; border-color: var(--color-text); color: var(--color-text); cursor: default; }
  .tiers__option:has(input[type="radio"]:focus-visible) { outline: 2px solid var(--color-text); outline-offset: 2px; }
  .tiers input[type="radio"] { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
  .tiers__row { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-xs); cursor: inherit; }
  .tiers__text { display: grid; min-inline-size: 0; }
  .tiers__name { font-size: var(--fs-0); font-weight: 500; line-height: 1.5; color: var(--color-text); }  /* M201: the card's text takes the page's sizes, the name the body size and the lines under it the small size */
  .tiers__state { margin-inline-start: 6px; padding: 1px 6px; border-radius: 4px; background: var(--color-surface); font-size: .6875rem; font-weight: 600; white-space: nowrap; }
  .tiers__amount { font-size: var(--fs--1); font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; }
  .tiers__desc { display: block; margin-block-start: 4px; font-size: var(--fs--1); font-weight: 400; line-height: 1.5; white-space: pre-line; }  /* M104: the price's description, plain text, its line breaks kept */
  .tiers__help { font-size: var(--fs--1); line-height: 1.5; color: var(--color-text-muted); }
  .tiers__flex { display: grid; gap: 4px; margin-block-start: var(--space-xs); padding-inline-end: 4px; cursor: default; }
  /* M161.1 (D24): on the pay page a flexible ticket's box shows while its radio is checked, by CSS alone so it works
     with the script off. A browser without :has() keeps it shown. */
  @supports selector(:has(*)) {
    .tiers__option--flexible .tiers__flex { display: none; }
    .tiers__option:has(input[type="radio"]:checked) .tiers__flex { display: grid; }
  }
  /* The count: 26 px buttons around the number; on a coarse pointer the area that answers a finger is 44 px. */
  .qty { display: flex; align-items: center; flex: none; }
  .qty__step { position: relative; display: grid; place-items: center; inline-size: 26px; block-size: 26px; padding: 0; border: 0; border-radius: 4px; background: rgb(31 26 22 / .07); color: var(--color-text-muted); font: inherit; cursor: pointer; transition: background .3s, color .3s, opacity .3s, inline-size .3s, visibility .3s; }
  .qty__step svg { display: block; }
  @media (pointer: coarse) { .qty__step::before { content: ""; position: absolute; inset: -9px; } }
  @media (hover: hover) { .qty__step:hover { background: var(--color-text); color: var(--color-cream); } }
  .qty__step:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }
  .qty__step:disabled, .qty__step[aria-disabled="true"], .qty__step[aria-disabled="true"]:hover { opacity: .5; background: rgb(31 26 22 / .07); color: var(--color-text-muted); cursor: not-allowed; }  /* M195: dimmed at a limit, it still answers a press */
  .qty__value { inline-size: 36px; min-inline-size: 36px; padding: 0; border: 0; background: transparent; color: var(--color-text); font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; text-align: center; appearance: textfield; -moz-appearance: textfield; transition: inline-size .3s, min-inline-size .3s, opacity .3s, visibility .3s; }
  .qty__value::-webkit-outer-spin-button, .qty__value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .qty__up { position: relative; display: grid; }
  /* The limit's bubble (draft D3): dark, above the plus, its right edge near the plus under 900 px, centred on it from 900 px.
     event-booking.js writes the sentence, adds .is-on for three seconds on a press, and adds .qty__tip--below when the
     page's top bar leaves no room above. */
  .qty__tip { position: absolute; z-index: 4; inset-block-end: calc(100% + 8px); inset-inline-end: -8px; inline-size: max-content; max-inline-size: 240px; padding: 4px 10px; border-radius: 8px; background: var(--color-text); color: var(--color-cream); font-size: .8125rem; font-weight: 400; line-height: 1.5; text-align: start; white-space: normal; box-shadow: 0 4px 16px rgb(0 0 0 / .14); opacity: 0; visibility: hidden; scale: .9; transform-origin: calc(100% - 21px) 100%; pointer-events: none; transition: opacity .3s, scale .3s, visibility .3s; }
  .qty__tip:empty { display: none; }
  .qty__tip::after { content: ""; position: absolute; inset-block-start: calc(100% - 1px); inset-inline-end: 16px; inline-size: 10px; block-size: 5px; background: inherit; clip-path: polygon(100% 0, 0 0, 50% 100%); }
  .qty__tip--below { inset-block-end: auto; inset-block-start: calc(100% + 8px); transform-origin: calc(100% - 21px) 0; }
  .qty__tip--below::after { inset-block-start: auto; inset-block-end: calc(100% - 1px); clip-path: polygon(0 100%, 100% 100%, 50% 0); }
  .qty__tip.is-on, .qty__step[aria-disabled="true"]:focus-visible + .qty__tip { opacity: 1; visibility: visible; scale: 1; }
  @media (hover: hover) { .qty__step[aria-disabled="true"]:hover + .qty__tip { opacity: 1; visibility: visible; scale: 1; } }
  @media (min-width: 900px) {
    .qty__tip { inset-inline-end: auto; inset-inline-start: 50%; translate: -50% 0; max-inline-size: none; white-space: nowrap; transform-origin: 50% 100%; }
    .qty__tip::after { inset-inline-end: auto; inset-inline-start: 50%; translate: -50% 0; }
    .qty__tip--below { transform-origin: 50% 0; }
  }
  /* The zero look needs the script (the plus does nothing without it), so it sits under scripting: enabled: a card at
     zero shows only its plus and answers a press anywhere, and a flexible card's box waits for a count. With scripting
     off every control shows and the server answers. */
  @media (scripting: enabled) {
    .tiers__option--qty:not(.is-on) { cursor: pointer; }
    .tiers__option--qty:not(.is-on) .qty__value, .tiers__option--qty:not(.is-on) [data-qty-down] { inline-size: 0; min-inline-size: 0; opacity: 0; visibility: hidden; }
    .tiers__option--qty:not(.is-on) .tiers__flex { display: none; }
  }
  .booking .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }  /* M197 (draft D1): event-booking.js sets it while every count is zero, and the press is not sent */
  /* A ticket not on sale, or sold out: greyed, never chosen; its chip beside the name says why. After the rules above, so it wins. */
  .tiers__option.tiers__option--full, .tiers__option.tiers__option--off, .tiers__option.tiers__option--full:hover, .tiers__option.tiers__option--off:hover { background: var(--color-bg); cursor: not-allowed; }
  .tiers__option--full .tiers__name, .tiers__option--off .tiers__name { color: var(--color-text-muted); }
  .tiers__option--full .tiers__amount { text-decoration: line-through; }
  @media (prefers-reduced-motion: reduce) { .tiers__option, .qty__step, .qty__value, .qty__tip, .booking .btn { transition: none; } }
  /* M164, M197: a flexible ticket's price box inside its card: the label, the 40 px field, the hint under it. */
  .flexrow { display: grid; }
  .flexrow__label { display: block; font-size: var(--fs--1); font-weight: 500; line-height: 1.5; color: var(--color-text); margin-block-end: 4px; }
  .flexfield { display: flex; align-items: center; gap: 4px; block-size: 2.5rem; padding-inline: .75rem; border: 1px solid var(--color-control-border); border-radius: var(--radius-sm); background: var(--color-paper); color: var(--color-text); font-size: 1.125rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
  .flexfield:focus-within { border-color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-text); }
  .flexfield > span { font-size: .8em; font-weight: 500; color: var(--color-text-muted); white-space: nowrap; }
  .flexfield input { inline-size: 100%; min-inline-size: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; outline: none; }
  .booking__breakdown { display: block; font-size: .8rem; font-weight: 400; color: var(--color-text-muted); }
  /* M131.1: the add-on picker under « Vous êtes inscrit·e », its title sized as the picker's legend. */
  .booking-add { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--color-border); }
  .booking-add__title { font-family: var(--font-heading); font-size: var(--fs-2); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
  .guests-form__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
  .guests-form__ticket { display: grid; gap: .875rem; padding: var(--space-sm); border: var(--border); border-radius: var(--radius-sm); background: var(--color-paper); }
  .guests-form__line { font-weight: 500; }
  .guests-form__buyer { color: var(--color-text-muted); }
  .guests-form__heading { font-size: var(--fs-1); margin-block-start: var(--space-sm); }

  .booking__form { display: grid; }
  .booking__summary { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); font-size: var(--fs--1); margin-block-start: var(--space-md); padding-block-start: var(--space-md); border-block-start: var(--border); }
  .booking__summary strong { font-size: var(--fs-1); font-weight: 500; font-variant-numeric: tabular-nums; }
  .booking__form .btn { margin-block-start: var(--space-sm); }
  .booking__next { color: var(--color-text-muted); font-size: .8rem; line-height: 1.5; margin-block-start: var(--space-xs); }
  .questions-card__lede { color: var(--color-text-muted); font-size: .8125rem; line-height: 1.25rem; margin-block: 0 var(--space-lg); }  /* M119: the questions page */
  .questions-form { display: grid; gap: .875rem; margin-block-end: var(--space-md); }
  .questions-form .field--group { border: 0; padding: 0; margin: 0; display: grid; gap: .3125rem; }
  .questions-form .field--group legend { padding: 0; margin-block-end: .3125rem; font-size: .875rem; font-weight: 500; line-height: 1.25rem; }
  .booking__approval { color: var(--color-text-muted); font-size: .75rem; letter-spacing: .02em; margin-block-start: var(--space-xs); text-align: center; }  /* M119: the quiet « Sur approbation » under the button */
  .booking__paused { color: var(--color-text-muted); font-size: .8rem; line-height: 1.5; margin-block-start: var(--space-xs); }  /* M156: the paused-lane sentence under « Rejoindre la liste d'attente » */
  /* M121: the discount code box under the ticket options, folded by default, and the old price struck through beside the new one */
  .booking__code { margin-block-start: var(--space-md); font-size: var(--fs--1); }
  .booking__code[hidden] { display: none; }
  .booking__code summary { cursor: pointer; inline-size: fit-content; color: var(--color-accent); text-decoration: underline; text-underline-offset: .15em; }
  .booking__code-row { display: flex; gap: var(--space-xs); margin-block-start: var(--space-xs); }
  .booking__code-row input { flex: 1 1 0; inline-size: 0; min-inline-size: 0; text-transform: uppercase; }  /* M145: a zero basis and width, so the row's minimum is the button alone and never the input's font-dependent intrinsic width, which widened the whole phone column on the Linux runner */
  .booking__code-row .btn { flex: none; inline-size: auto; margin-block-start: 0; }  /* undoes .booking .btn's full width and .booking__form .btn's top margin, so « Appliquer » sits level with the box and the box takes the room */
  .booking__code-applied { margin-block-start: var(--space-xs); }
  .booking__code-remove { background: none; border: 0; padding: 0; font: inherit; color: var(--color-text-muted); text-decoration: underline; cursor: pointer; }
  .tiers__was, .booking__was { color: var(--color-text-muted); font-weight: 400; font-size: .8em; margin-inline-end: .35em; }
  .booking .registration .form-note:first-of-type { margin-block-start: var(--space-md); padding-block-start: var(--space-md); border-block-start: var(--border); }
  /* M65: the dialog card shared by the registration dialog (booking_form.html) and the account
     page's cancellation dialog (profile.css). The panel's paper, its hairline, the large radius,
     a deep soft shadow, the footer's ink at half strength and a faint blur behind it. Under 600px
     it becomes a sheet at the foot of the screen with only its top corners rounded, rising in the
     mid duration; it does not move for someone who asked for less motion. The button and the
     beats never scroll: three beats fit a 390px phone with room to spare. */
  .dialog-card { inline-size: min(26rem, calc(100vw - 2rem)); max-block-size: calc(100svh - 3rem); overflow-y: auto; margin: auto; padding: 2rem 2rem 1.6rem; border: var(--border); border-radius: var(--radius-lg); background: var(--color-paper); color: var(--color-text); box-shadow: 0 24px 60px rgb(33 28 24 / .22), var(--shadow-2); }
  .dialog-card::backdrop { background: rgb(33 28 24 / .52); backdrop-filter: blur(2px); }
  .dialog-card[open] { animation: dialog-rise var(--dur-mid) var(--ease); }
  .dialog-card[open]::backdrop { animation: dialog-fade var(--dur-mid) var(--ease); }
  @keyframes dialog-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes dialog-fade { from { opacity: 0; } to { opacity: 1; } }
  @media (max-width: 600px) {
    .dialog-card { inline-size: 100vw; max-inline-size: none; margin: auto 0 0; border-inline: 0; border-block-end: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 1.6rem 1.35rem calc(1.2rem + env(safe-area-inset-bottom)); }
    @keyframes dialog-rise { from { opacity: 1; transform: translateY(100%); } to { transform: none; } }
  }
  @media (prefers-reduced-motion: reduce) { .dialog-card[open], .dialog-card[open]::backdrop { animation: none; } }
  /* the registration dialog's three beats (draft D2 and D3; the prototype ideas/register-consent) */
  .consent-card { max-inline-size: 26rem; margin-inline: auto; padding: 2rem 2rem 1.6rem; border: var(--border); border-radius: var(--radius-lg); background: var(--color-paper); box-shadow: var(--shadow-2); }  /* the plain page's card: the same paper without the dialog chrome */
  .consent-dialog__eyebrow { margin: 0 0 var(--space-sm); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); }
  .consent-dialog__title { margin: 0 0 var(--space-2xs); font-size: var(--fs-2); }
  .consent-dialog__when { margin: 0 0 var(--space-lg); font-size: var(--fs--1); color: var(--color-text-muted); }
  .consent-dialog__amount { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2xs) var(--space-md); align-items: baseline; padding: var(--space-md) 0; border-block: var(--border); }
  /* M110: the credit line, its own row above the label and the figure */
  .consent-dialog__credit { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-2xs); margin-block-end: var(--space-xs); font-size: var(--fs--1); cursor: pointer; }
  .consent-dialog__credit input { inline-size: 1.05rem; block-size: 1.05rem; flex: none; accent-color: var(--color-accent-fill); }
  .consent-dialog__credit[hidden] { display: none; }
  .consent-dialog__label { font-size: var(--fs--1); }
  .consent-dialog__figure { font-size: var(--fs-1); font-weight: 500; font-variant-numeric: tabular-nums; text-align: end; }
  .consent-dialog__note { grid-column: 1 / -1; margin: 0; font-size: .8rem; color: var(--color-text-muted); }
  .consent-dialog__policy { margin: var(--space-lg) 0; font-size: var(--fs--1); line-height: 1.6; color: var(--color-text-muted); }
  .consent-dialog__policy a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
  .consent-dialog .btn { inline-size: 100%; min-block-size: 48px; margin-block-start: 0; border-radius: var(--radius-pill); justify-content: center; }  /* undoes .booking .btn's square corners, spread and arrow for the dialog's one button */
  .consent-dialog .btn::after { content: none; }
  .questions-card { padding: 1.5rem; }  /* M173: the cards that hold fields; the consent card and the pop-up keep theirs */
  .consent-dialog__later { display: block; inline-size: 100%; margin-block-start: var(--space-sm); padding: .55rem; background: none; border: 0; font: inherit; font-size: var(--fs--1); color: var(--color-text-muted); cursor: pointer; text-align: center; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
  .consent-dialog__later:hover { color: var(--color-text); }
  .consent-dialog__later:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-sm); }
  .event-body { min-inline-size: 0; }
  .event-body > :first-child { padding-block-start: 0; margin-block-start: 0; } /* M101.1: the layout's row gap alone separates the title from the story's first block */
  .event-section { padding-block-start: var(--space-xl); }
  .event-section h2, .event-highlight__title { font-size: var(--fs-2); letter-spacing: -.03em; margin-block-end: var(--space-md); }
  .event-highlight { margin-block-start: var(--space-xl); padding: var(--space-lg); background: var(--color-surface); border-radius: var(--radius-sm); }  /* M102: the box alone, no mark beside the text */
  .event-highlight__inner { display: grid; gap: var(--space-xs); min-inline-size: 0; }
  .event-highlight__title { font-size: var(--fs-1); margin-block-end: var(--space-2xs); }
  .event-highlight__body { font-size: var(--fs--1); color: var(--color-text-muted); line-height: 1.8; display: grid; gap: var(--space-xs); }
  .event-schedule__rows { margin: 0; display: grid; }
  .event-schedule__row { display: grid; grid-template-columns: 8rem 1fr; gap: var(--space-md); padding-block: var(--space-md); border-block-start: var(--border); }
  .event-schedule__row dt { color: var(--color-accent); font-size: var(--fs--1); font-variant-numeric: tabular-nums; }
  .event-schedule__row dd { margin: 0; display: grid; gap: var(--space-2xs); font-size: var(--fs--1); }
  .event-schedule__row dd strong { font-weight: 500; font-size: var(--fs-0); }
  .event-schedule__row dd span { color: var(--color-text-muted); }
  /* M45: a text table, two columns of equal weight (project/milestone-contexts/M45-brief.md, section C4) */
  .event-table__rows { margin: 0; display: grid; }
  .event-table__row { display: grid; grid-template-columns: minmax(6rem, .7fr) minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-md); border-block-start: var(--border); }
  .event-table__row dt, .event-table__row dd strong { color: var(--color-text); font-weight: 500; font-size: var(--fs-0); line-height: 1.5; }
  .event-table__row dd { margin: 0; display: grid; gap: var(--space-2xs); font-size: var(--fs--1); }
  .event-table__row dd span { color: var(--color-text-muted); }
  /* M48: a photo, a silent loop and a video inside the story. Each fills the
     story column and keeps its own shape: a story photo has no fixed frame, so
     there is no crop, no focus point and no zoom. The caption is the small
     muted type the page already uses for its notes. */
  .event-media { display: grid; gap: var(--space-md); }
  .event-figure { margin: 0; display: grid; gap: var(--space-sm); }
  .event-figure img { display: block; inline-size: 100%; block-size: auto; border-radius: var(--radius-md); background: var(--color-surface); }
  .event-figure figcaption, .event-figure__caption { font-size: var(--fs--1); color: var(--color-text-muted); line-height: 1.7; margin: 0; }
  .event-loop, .event-video, .event-video__player { inline-size: 100%; block-size: auto; display: block; border-radius: var(--radius-md); background: var(--color-surface); }
  .event-video { position: relative; overflow: hidden; }
  .event-video__button { display: block; inline-size: 100%; padding: 0; border: 0; background: var(--color-surface); cursor: pointer; border-radius: var(--radius-md); overflow: hidden; }
  .event-video__still { display: block; inline-size: 100%; block-size: auto; }
  .event-video__mark { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; translate: -50% -50%; inline-size: 4rem; block-size: 4rem; display: grid; place-items: center; border-radius: 50%; background: var(--color-ink); color: var(--color-cream); font-size: 1.25rem; padding-inline-start: .2rem; }
  .event-video__player { aspect-ratio: auto; }
  .event-video--playing { background: var(--color-ink); }
  /* M176: the evening's location, the page's last block (after the panel on a phone, under the story from 900 px): a hairline above, the story's heading size, the name as the panel's place line, the rest muted */
  .event-place { padding-block-start: var(--space-lg); border-block-start: var(--border); display: grid; gap: var(--space-2xs); min-inline-size: 0; }
  .event-place h2 { font-size: var(--fs-2); letter-spacing: -.03em; margin-block: 0 var(--space-sm); }
  .event-place p { margin: 0; overflow-wrap: anywhere; }
  .event-place__name { font-weight: 400; }
  .event-place__line, .event-place__note { color: var(--color-text-muted); font-size: var(--fs--1); }
  .event-place__note { margin-block-start: var(--space-2xs); }
  .event-place a { color: var(--color-accent); text-underline-offset: 4px; }
  /* M176.1: Google's still map picture, 40:13 since M197 (640 by 208). While the address is hidden the picture is
     centred on the displaced point and the circle (a radius of 60 px on the picture's 640 px, about 400 m at zoom 14)
     marks the area; it is not a link then. */
  .event-map { position: relative; display: block; aspect-ratio: 40 / 13; overflow: hidden; margin: var(--space-sm) 0 0; border-radius: var(--radius-md); background: var(--color-surface); }
  .event-map[hidden] { display: none; }
  .event-map a { display: block; inline-size: 100%; block-size: 100%; }
  .event-map img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
  .event-map__circle { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; inline-size: 18.75%; aspect-ratio: 1; translate: -50% -50%; border: 2px solid var(--color-accent-fill); border-radius: 50%; background: color-mix(in srgb, var(--color-accent-fill) 18%, transparent); pointer-events: none; }
  /* M178: the phone's register bar, fixed to the foot of the window under 900 px while the
     registration block is below it (js/event-cta.js sets hidden). One step under the header
     in the stack, like the events page's bar. */
  .event-cta { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: calc(var(--z-sticky) - 1); display: flex; padding: var(--space-sm) var(--space-md) calc(var(--space-sm) + env(safe-area-inset-bottom, 0px)); background: var(--color-bg); border-block-start: var(--border); }
  .event-cta[hidden] { display: none; }
  .event-cta__button { flex: 1 1 auto; }
  @media (min-width: 900px) {
    /* M197: the left column is the square photo, the date and location rows and the panel; the right column is
       div.event-main, one grid item, so the location follows the story with nothing holding it down. The last row is
       the flexible one: the photo's and the rows' own rows are exactly their heights, and the panel, pinned inside the
       last row, follows the scroll once the photo has passed. */
    .event-layout { grid-template-columns: minmax(19rem, 1fr) minmax(0, 1.8fr); grid-template-areas: "poster main" "when main" "booking main"; grid-template-rows: auto auto 1fr; column-gap: clamp(var(--space-xl), 4vw, 3.5rem); }
    .event-layout:not(.event-layout--poster) { grid-template-areas: "when main" "booking main"; grid-template-rows: auto 1fr; }
    .event-poster { grid-area: poster; }
    .event-when { grid-area: when; gap: var(--space-sm); }
    .event-main { grid-area: main; display: grid; gap: var(--space-xl); min-inline-size: 0; }
    .event-booking { grid-area: booking; position: sticky; inset-block-start: calc(var(--header-h) + var(--space-md)); }
    .event-fact { gap: var(--space-md); }
    .event-fact__tile { inline-size: 40px; block-size: 40px; }
    .event-fact__tile--date { grid-template-rows: 16px 1fr; }
    .event-fact__mo { font-size: 8px; line-height: 16px; }
    .event-fact__day { font-size: 1rem; line-height: 21px; }
    .event-fact__text b { font-size: 1rem; }
    .event-fact__text span { font-size: .875rem; }
    .event-cta { display: none; }
  }
  @media (min-width: 900px) and (max-height: 700px) { .event-booking { position: static; } }
  @media (max-width: 480px) { .event-schedule__row { grid-template-columns: 7rem 1fr; gap: var(--space-sm); } .event-table__row { grid-template-columns: minmax(4.5rem, .7fr) 1fr; gap: var(--space-sm); } .event-highlight { padding: var(--space-md); } }
  .event-places { color: var(--color-accent); font-weight: 600; }
  /* the registration state as a card (the .alert pattern), success for confirmed, accent for a hold */
  .state { background: var(--color-surface); border: var(--border); border-inline-start: 4px solid var(--color-text-muted); border-radius: var(--radius-sm); padding: var(--space-sm) var(--space-md); font-weight: 500; max-inline-size: none; }
  .state--success { border-inline-start-color: var(--color-success); }
  .state--accent { border-inline-start-color: var(--color-accent-fill); }
  /* M107: the cancel page's outcome, stated before the member confirms (the .state card, accent edge, reading weight) */
  .cancel-outcome { background: var(--color-surface); border: var(--border); border-inline-start: 4px solid var(--color-accent-fill); border-radius: var(--radius-sm); padding: var(--space-sm) var(--space-md); line-height: 1.7; max-inline-size: none; }
  .registration__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
  /* M28 (D7): the contribution call to action, just above the button */
  .registration__contribution { color: var(--color-text-muted); }
  /* the confirmed member's ticket */
  .ticket { background: var(--color-surface); border: var(--border); border-inline-start: 4px solid var(--color-success); border-radius: var(--radius-md); padding: var(--space-lg); display: grid; gap: var(--space-xs); }
  .ticket__title { font-size: var(--fs-1); }
  .ticket__code { font-family: var(--font-heading); font-size: var(--fs-2); }
  /* account page: three stacked cards (M10) */
  .account-card {
    background: var(--color-surface);
    border: var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: grid;
    gap: var(--space-md);
  }
  .account-card > h2 { font-size: var(--fs-1); }
  .account-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
  }
  .account-card__head h2 { font-size: var(--fs-1); }
  .account-card__security {
    border-block-start: var(--border);
    padding-block-start: var(--space-md);
  }

  /* account: identity + attendance history */
  .identity { display: grid; gap: var(--space-xs); }
  .identity__row { display: grid; gap: var(--space-2xs); }
  .identity dt { font-weight: 600; }
  .identity dd a { margin-inline-start: var(--space-xs); }
  .attendance-list { display: grid; }
  .attendance-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-xs) var(--space-md);
    padding-block: var(--space-sm);
    border-block-end: var(--border);
  }
  .attendance-list time { color: var(--color-text-muted); font-size: var(--fs--1); }
  /* M28 (D8): the thumbnail and the link on a past evening, the event_row shape */
  .attendance-list__item { display: block; }
  .attendance-list__link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--color-text);
    text-decoration: none;
  }
  a.attendance-list__link:hover .attendance-list__title { color: var(--color-accent); }
  .attendance-list__img {
    flex: 0 0 auto;
    inline-size: 3.5rem;   /* M193: the square thumbnail */
    block-size: 3.5rem;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--color-surface);
  }
  .attendance-list__img--empty { display: grid; place-items: center; border: var(--border); color: var(--color-text-muted); }
  .attendance-list__img--empty .logo-mark { inline-size: 1.5rem; block-size: auto; }
  .attendance-list__text { display: flex; flex: 1; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2xs) var(--space-md); min-inline-size: 0; }
  .attendance-list__title { font-weight: 500; transition: color var(--dur-fast) var(--ease); }

  /* registration (M8): the button block on the event page, the list on the account page */
  .event-price { color: var(--color-text); font-weight: 600; }
  .event-policies { font-size: .8rem; line-height: 1.6; color: var(--color-text-muted); }
  .event-policies a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
  .event-policies a:hover { color: var(--color-accent); }
  .registration { display: grid; gap: var(--space-sm); padding-block: var(--space-md); border-block: var(--border); }
  .registration form { display: contents; }
  .registration-list { display: grid; }
  .registration-list__item { display: grid; gap: var(--space-xs); padding-block: var(--space-md); border-block-end: var(--border); }
  .registration-list__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs) var(--space-md); }
  .registration-list__head time { color: var(--color-text-muted); font-size: var(--fs--1); }
  .registration-list__status { color: var(--color-text-muted); font-size: var(--fs--1); }

  /* M12: the « add to your calendar » links under a confirmed ticket */
  .calendar-links { font-size: var(--fs--1); }

  /* holding page (parked domain) */
  .holding {
    min-block-size: 100svh;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    gap: var(--space-md);
    padding: var(--space-fluid) var(--gutter);
  }
  .holding .logo-mark { inline-size: clamp(3.5rem, 2.5rem + 5vw, 6rem); color: var(--color-accent); }
  .holding__status { font-family: var(--font-heading); font-size: var(--fs-1); }
  .holding p { max-inline-size: 40ch; color: var(--color-text-muted); }

  /* M76: the staging preview password form, on the holding page's layout */
  .preview-form {
    display: grid;
    gap: .875rem;
    inline-size: 100%;
    max-inline-size: 22rem;
    margin-inline: auto;
    text-align: start;
  }
  .preview-form label { color: var(--color-text-muted); }
  .preview-form__error { color: var(--color-danger); }
  .preview-form .btn { margin-block-start: .625rem; }

  /* status blocks (confirmation pages) */
  .status-card {
    background: var(--color-surface);
    border: var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: grid;
    gap: var(--space-md);
    justify-items: start;
  }
  /* M16, M168: the evening's first event tag, a text chip in the tag's colour on
     the rows; the colour follows the tag, the text is the signal */
  .chip--cat { font-weight: 600; }
  .chip--tag-plum { color: var(--color-tag-plum); }
  .chip--tag-teal { color: var(--color-tag-teal); }
  .chip--tag-indigo { color: var(--color-tag-indigo); }
  .chip--tag-forest { color: var(--color-tag-forest); }
  .chip--tag-rust { color: var(--color-tag-rust); }
  .chip--tag-bronze { color: var(--color-tag-bronze); }
  .chip--tag-slate { color: var(--color-tag-slate); }
  .chip--tag-wine { color: var(--color-tag-wine); }
  h1 .chip--cat { vertical-align: middle; font-size: var(--fs--1); }

  /* ---------- M29: the scroll reveal (D1, D2) ---------- */
  /* js/reveal.js arms only the blocks below the first screen; no script,
     no arming, nothing ever hidden. is-in must come after is-armed here:
     equal specificity, source order decides the settled state. */
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal].is-armed,
    [data-reveal-stagger].is-armed > * { opacity: 0; transform: translateY(16px); }
    [data-reveal].is-in,
    [data-reveal-stagger].is-in > * {
      opacity: 1; transform: none;
      transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
    }
    [data-reveal-stagger].is-in > :nth-child(2) { transition-delay: 60ms; }
    [data-reveal-stagger].is-in > :nth-child(3) { transition-delay: 120ms; }
    [data-reveal-stagger].is-in > :nth-child(4) { transition-delay: 180ms; }
    [data-reveal-stagger].is-in > :nth-child(5) { transition-delay: 240ms; }
    [data-reveal-stagger].is-in > :nth-child(n+6) { transition-delay: 300ms; }
  }

  /* ---------- M29: photos zoom slightly under a real pointer (D3) ---------- */
  @media (hover: hover) and (pointer: fine) {
    .insta-grid li { border-radius: var(--radius-lg); overflow: hidden; }
    .insta-grid img { transition: transform var(--dur-slow) var(--ease); }
    .insta-grid li:hover img { transform: scale(1.03); }
    img.event-row__img { transition: transform var(--dur-slow) var(--ease); }
    .event-row__link:hover img.event-row__img { transform: scale(1.03); }
  }

  /* M47: the public site's skin for the shared card (css/toast.css). The card is
     paper on the page, in the site's own body face, and the accent fill is the
     focus ring. Measured on the card's own fill #FFFFFF with the M198 colours: the
     title tones are success #216E1F 6.34:1, error #B50909 6.98:1, info #302720
     14.62:1 and warning #7F5F30 5.86:1 (the plain --color-ochre is decorative
     only, so the card uses the deepened token); the body #565C65 is 6.74:1 and
     the close glyph reads at the same value. The icon is a graphic and needs only
     3:1. The region takes .toasts.toasts--brand so the skin beats the neutral
     defaults on specificity rather than on file order. */
  .toasts.toasts--brand {
    --toast-bg: var(--color-paper);
    --toast-fg: var(--color-text-muted);
    --toast-line: var(--color-border);
    --toast-radius: var(--radius-md);
    --toast-shadow: var(--shadow-2);
    --toast-z: var(--z-toast);
    --toast-focus: var(--color-focus);
    --toast-undo-color: var(--color-text);
    --toast-close-color: var(--color-text-muted);
    --toast-close-hover-bg: var(--color-surface);
    --toast-close-hover-color: var(--color-text);
  }
  .toasts--brand .toast-card--success { --toast-tone: var(--color-success); --toast-tone-line: color-mix(in srgb, var(--color-success) 28%, var(--color-paper)); }
  .toasts--brand .toast-card--info { --toast-tone: var(--color-text); --toast-tone-line: var(--color-border); }
  .toasts--brand .toast-card--warning { --toast-tone: var(--color-ochre-deep); --toast-tone-line: color-mix(in srgb, var(--color-ochre-deep) 28%, var(--color-paper)); }
  .toasts--brand .toast-card--error { --toast-tone: var(--color-danger); --toast-tone-line: color-mix(in srgb, var(--color-danger) 28%, var(--color-paper)); }
  /* the one control a visitor has to dismiss an error on a phone: a 44 px target
     from the box, the glyph unchanged (the logged rule tap-target-never-from-line-height) */
  @media (max-width: 42.5rem) {
    .toasts--brand .toast-card__close::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
  }
}

@layer utilities {
  .sr-only:not(:focus):not(:focus-within) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .skip-link {
    position: absolute;
    inset-block-start: var(--space-xs);
    inset-inline-start: var(--space-xs);
    z-index: var(--z-toast);
    background: var(--color-ink);
    color: var(--color-cream);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    translate: 0 -300%;
  }
  .skip-link:focus { translate: 0 0; }

  .muted { color: var(--color-text-muted); }
  .flow > * + * { margin-block-start: var(--space-md); }
}
