/* ============================================================
   DAWNFALL - components

   The site's design system, read with tokens.css. No design value
   lives here: every colour, size, opacity, radius, shadow and
   duration is a token of tokens.css, and
   Website/tools/check-design-tokens.mjs fails on anything else.
   A component is written once and reused by its class; a page adds
   layout around components, never a variant of one.

     1. Base              6. Content blocks
     2. Layout, type      7. Panels, tabs, rows
     3. Controls          8. Footer and site chrome
     4. Nav               9. Public page components
     5. Night header     10. Small screens, touch, motion

   Only what a converted page or a shared script uses is here, which
   the same check holds: a component of the prototype
   (proto/design-directions, Website/public/prototypes/proto.css)
   comes back with the page that needs it.

   The header's links, its drawer and its menus keep the class
   names public/scripts/nav.js and lang.js write, the same on every
   page of the site.
   ============================================================ */


/* ── 1. Base ───────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: var(--color-scheme); }

body {
  margin: 0;
  min-height: var(--page-min-h);
  display: flex;
  flex-direction: column;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
strong { font-weight: var(--fw-strong); }

/* The one focus ring of the system: a hairline-weight band of the ring colour, held off the
   control by the offset so the control keeps its own edge. A field wears it whenever it holds the
   focus (a mouse click included, since the caret alone is easy to lose), and so do the boxes that
   behave as a field: the chip list of the admin panel and Kara's input. Never a halo of its own
   (tests/site/design-system-contrast.test.js, "the focus ring").
   A folding card clips its content to its round corners, its summary's ring included: the card
   wears the ring of its focused summary instead (fold). */
:focus-visible,
.input:focus,
.panel-chips:focus-within,
.chat-input:focus,
.fold:has(> .fold-head:focus-visible),
.news-article:has(> .news-article-header:focus-visible),
.cl-entry:has(> .cl-entry-head:focus-visible) { outline: var(--bw-strong) solid var(--c-ring); outline-offset: var(--focus-offset); }

/* Hidden means hidden, whatever display a component gives the element: the list states, the
   drawer, its entries and the partner form's legal groups are all shown and hidden this way. */
[hidden] { display: none !important; }

/* The system's scrollbars, on every box that scrolls, the page itself included: a thin thumb of the
   ink, stronger under the pointer and while it is dragged, on no track and with no arrow. Its track
   stands in from each end of its edge by the largest radius a box that scrolls is drawn with, so
   the thumb runs on the straight part of the edge and never reaches a rounded corner; the page,
   which has none, runs it end to end. Chrome, Edge, Safari and the launcher's WebView2 draw these
   parts, and set aside every one of them as soon as a box declares the standard properties, so
   those are given only to a browser without the parts (Firefox), which clips its own scrollbar to
   a box's corners. */
::-webkit-scrollbar { width: var(--scrollbar-w); height: var(--scrollbar-w); }
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner { background-color: transparent; }
::-webkit-scrollbar-track:vertical   { margin-block: var(--scrollbar-inset); }
::-webkit-scrollbar-track:horizontal { margin-inline: var(--scrollbar-inset); }
:root::-webkit-scrollbar-track:vertical,
:root::-webkit-scrollbar-track:horizontal { margin: 0; }
::-webkit-scrollbar-thumb {
  background-color: var(--c-thumb);
  background-clip: padding-box;
  border: var(--scrollbar-gap) solid transparent;
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active { background-color: var(--c-thumb-strong); }
::-webkit-scrollbar-button { display: none; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--c-thumb) transparent; }
}

/* An anchor lands below the sticky nav rather than under it. */
[id] { scroll-margin-top: var(--nav-h); }

/* The skip link's landing: focusable so the next Tab starts inside the page, but not a control,
   so it draws no ring around the whole page. */
main[tabindex="-1"]:focus { outline: none; }

.icon    { width: var(--icon);    height: var(--icon);    flex: none; }

/* The theme an element is for: the moon offers the night, the sun offers the day. The night is
   every theme but the day (tokens.css, layer 6). */
/* A theme change is one cross-fade of the whole page (lang.js), never each element fading at
   its own pace: a gradient cannot fade, so it would be in the new theme while the colours beside
   it were still half way. While the theme is written, every transition of the page stands still.
   `!important` is legitimate here and on no other transition but the reduced-motion block's:
   the freeze must win over every rule that declares a transition, whatever its selector, and
   only `!important` wins by construction rather than by a specificity race
   (`.nav-links a:not(.btn)` outranked it without; tests/site/design-system-base.test.js). */
:root[data-theme-switching] *,
:root[data-theme-switching] *::before,
:root[data-theme-switching] *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: var(--dur-theme); }

:root[data-theme="light"] [data-when-theme="dark"],
:root:not([data-theme="light"]) [data-when-theme="light"] { display: none; }


/* ── 2. Layout, type ───────────────────────────────────────── */

.wrap { width: 100%; max-width: var(--w-page); margin-inline: auto; padding-inline: var(--gutter); }

.section      { padding-block: var(--section-pad); }
.section--alt { background-color: var(--c-bg-alt); }

/* A stack's one column is as wide as the stack and never wider: what a child holds that runs
   sideways (the shop's carousel, a long word) scrolls or breaks inside the child, and the page never
   scrolls sideways for it. */
.stack    { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); justify-items: start; }
.stack-lg { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
/* A heading that follows the body of the section before it (a paragraph, a list, a form, a table,
   or a block holding one) opens a section: its own body stands one step nearer it than the stack's
   room, so it reads with what follows it and not with what it follows. A heading's group stands
   there as its heading does, and its lines stand that same step nearer each other: the eyebrow
   reads with its heading, not with the paragraph above the group. A first heading, and one under
   its own kicker, keep the stack's room. Markup: `div.stack-lg > p.lead + h2.h2 + div.cards`. */
.stack > :is(p, ul, ol, dl, table, form, blockquote, pre, :not(hgroup):has(p, ul, ol, dl, table, form, blockquote, pre)) + :is(h1, h2, h3, h4, h5, h6, hgroup) + *,
.stack > :is(p, ul, ol, dl, table, form, blockquote, pre, :not(hgroup):has(p, ul, ol, dl, table, form, blockquote, pre)) + hgroup > * + *    { margin-top: calc(var(--sp-3) - var(--sp-4)); }
.stack-lg > :is(p, ul, ol, dl, table, form, blockquote, pre, :not(hgroup):has(p, ul, ol, dl, table, form, blockquote, pre)) + :is(h1, h2, h3, h4, h5, h6, hgroup) + *,
.stack-lg > :is(p, ul, ol, dl, table, form, blockquote, pre, :not(hgroup):has(p, ul, ol, dl, table, form, blockquote, pre)) + hgroup > * + * { margin-top: calc(var(--sp-5) - var(--sp-6)); }

/* A label over a heading, and the same label over a group of the mobile drawer. */
.eyebrow,
.ov-group-label {
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-accent-ink);
}
/* A heading's group (HTML's hgroup): a heading and the line that is its own, the eyebrow over it.
   It says what belongs to the heading and takes no box: its lines are items of the stack it stands
   in, at that stack's room. Markup: `div.stack > hgroup > p.eyebrow + h2.h2`. */
hgroup { display: contents; }

.display { font-size: var(--fs-display); font-weight: var(--fw-display); letter-spacing: var(--ls-display); line-height: var(--lh-tight); }
.h2,
.card-cover-name { font-size: var(--fs-h2); font-weight: var(--fw-heading); letter-spacing: var(--ls-heading); line-height: var(--lh-heading); }
.h3      { font-size: var(--fs-h3); font-weight: var(--fw-strong); line-height: var(--lh-heading); }
.lead    { font-size: var(--fs-lead); color: var(--c-text-soft); max-width: var(--w-lead); }
.soft    { color: var(--c-text-soft); }
/* What is read character by character: an identifier beside a name. */
.code    { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--c-text-soft); }


/* ── 3. Controls ───────────────────────────────────────────── */

/* The drawer's two language buttons are this button, small and secondary: lang.js writes them
   with a class of their own, so they join these rules rather than copy them. */
.btn,
.ov-lang-btn,
.filter-btn {
  height: var(--control-h);
  padding-inline: var(--control-pad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  border: var(--bw-hair) solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: var(--fw-strong);
  line-height: var(--lh-control);
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast), filter var(--dur-fast);
}
/* The theme button keeps its lift while lang.js holds it disabled: see btn-disabled. */
.btn:hover:not(:disabled),
.btn[data-theme-switch]:hover,
.ov-lang-btn:hover,
.filter-btn:hover { transform: translateY(var(--lift)); filter: brightness(var(--brighten)); }
.btn::-webkit-details-marker { display: none; }

/* Every gradient of the system is painted from the border's outer edge (`border-box`): a gradient
   sized to the padding box repeats under a transparent border, and its far end then shows as a
   seam of the other colour round the pill (FIX-1, the nav's shop button). Written on every one,
   bordered or not, so none can come back (tests/site/design-system-surfaces.test.js). */
.btn-primary       { background: var(--g-accent) border-box; color: var(--c-on-accent); box-shadow: var(--sh-glow); }
.btn-primary:hover { box-shadow: var(--sh-glow-strong); }
/* .btn-ghost is the name terms.js writes its secondary button by: the same button. */
.btn-secondary,
.btn-ghost,
.ov-lang-btn,
.filter-btn,
.input[type="file"]::file-selector-button { background: var(--c-surface); color: var(--c-text); border-color: var(--c-line-strong); }

/* What cannot be taken back: delete, ban, revoke. */
.btn-danger        { background-color: var(--c-danger-wash); color: var(--c-danger-ink); }

.btn-lg   { height: var(--control-h-lg); padding-inline: var(--sp-6); font-size: var(--fs-body); }
.btn-sm,
.ov-lang-btn,
.filter-btn,
.input[type="file"]::file-selector-button { height: var(--control-h-sm); padding-inline: var(--sp-4); }
/* An icon alone: as wide as it is tall, so it lines up with the buttons beside it. */
.btn-icon { width: var(--control-h-sm); padding-inline: 0; }

/* A field packs its label, control and hint at the top: beside a taller neighbour (one with a hint,
   a counter or an error under its control) it must not spread out, or the two controls of the row
   stop lining up. */
.field       { display: grid; gap: var(--sp-2); align-content: start; font-size: var(--fs-small); font-weight: var(--fw-strong); }
.field--full { grid-column: 1 / -1; }
.field-required::after { content: " *"; color: var(--c-danger-ink); }

.input {
  width: 100%;
  height: var(--control-h);
  padding-inline: var(--sp-4);
  background-color: var(--c-field);
  border: var(--bw-hair) solid var(--c-line-strong);
  border-radius: var(--r-pill);
  font-weight: var(--fw-body);
  /* A prompt longer than its field ends with an ellipsis, never in the middle of a letter. The
     audit accepts it on a phone only: wider, the field is given the room its prompt needs. */
  text-overflow: ellipsis;
  transition: border-color var(--dur-fast);
}
/* A field's prompt, and the prompt of a field of chips, whose input is not an .input (admin/modules/
   chip-list.js): the browser's own grey stood at 3.75:1 on the night's field. */
.input::placeholder,
.panel-chip-input::placeholder { color: var(--c-text-soft); }
/* A search field draws no clear button of the browser's own (a blue cross in Chrome, nothing in
   Firefox): the system's one way to empty it is Escape (admin/modules/search-input.js). */
.input[type="search"]::-webkit-search-cancel-button,
.input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.input--sm          { height: var(--control-h-sm); }
/* A file picker is the field's frame around its button, the site's small secondary one (above),
   and the chosen file's name after it: as tall as it needs. */
.input[type="file"] { height: auto; min-height: var(--control-h); padding-block: var(--sp-2); cursor: pointer; }
/* Its button is the site's small secondary one, where the browser drew it grey and bevelled: it
   joins that button's colours and size (above) and takes the button's frame and type here, without
   its transition, which the theme's freeze cannot reach on a pseudo-element. */
.input[type="file"]::file-selector-button {
  margin-inline-end: var(--sp-3);
  border-width: var(--bw-hair);
  border-style: solid;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: var(--fw-strong);
  cursor: pointer;
}
.input[aria-invalid="true"] { border-color: var(--c-danger-ink); }
.input--area        { height: var(--field-area-h); padding-block: var(--sp-3); border-radius: var(--r-md); resize: vertical; line-height: var(--lh-body); }

/* A drop-down list: the browser's arrow replaced by a chevron drawn in the text's colour, set in
   from the end by the field's own padding. */
select.input {
  appearance: none;
  padding-right: var(--chevron-room);
  background-image:
    linear-gradient(var(--eighth-turn), transparent var(--centre), currentColor var(--centre)),
    linear-gradient(var(--three-eighths-turn), currentColor var(--centre), transparent var(--centre));
  background-position:
    calc(100% - var(--sp-4) - var(--chevron-size)) var(--centre),
    calc(100% - var(--sp-4)) var(--centre);
  background-size: var(--chevron-size) var(--chevron-size);
  background-repeat: no-repeat;
}

/* The list a drop-down opens is the system's menu (section 4: the language list, the account menu),
   wherever the browser lets a page draw it: `appearance: base-select`, the platform's customizable
   select, keeps the element a real select (its keyboard, its form value, what a screen reader
   says) and hands its list to the page. A browser without it (the check is `@supports`) opens its
   own list under the same closed field. The closed field does not change: the chevron stays the
   system's, so the browser's own picker icon is hidden.
   These rules repeat the menu's values rather than join its selectors: a browser that cannot read
   `::picker(select)` drops every rule that names it, and would drop the menu with it.
   tests/site/design-system-select.test.js holds the two to the same tokens. The chosen option
   takes the accent ink, as the chosen language does; the field shows its label too, so the colour
   is never the only sign. */
@supports (appearance: base-select) {
  select.input,
  select.input::picker(select) { appearance: base-select; }
  /* A base select lays its label out as a flex row with padding of its own: centred in the
     field's height like every input's text. */
  select.input { padding-block: 0; align-items: center; }
  select.input::picker-icon { display: none; }
  /* The chosen option as the workspaces' selects show it (admin/modules/select.js): their button
     holds the browser's mirror of that option, the button itself a box-less wrapper of the
     browser's (display: contents), and the mirror stands on one line, ending in its ellipsis where
     the field is narrower than the option. The label the browser draws for a select without that
     button wraps instead, and runs past its field. The open list shows every option whole. */
  select.input > .select-button > selectedcontent { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* The list opens on whichever side of its field has the more room, and never taller than that
     side (the browser's own sizing): a field in a window's upper half opens it under itself, as the
     menus do. Asked to try under first, a list too tall for either side stood over its own field,
     and one too tall for the room under it ran past the window (the layout audit's anchored-layer
     rule, on the panel's dialogs and forms). */
  select.input::picker(select) {
    position-try-order: most-block-size;
    margin-block: var(--sp-2);
    padding: var(--sp-2);
    background: var(--c-surface);
    color: var(--c-text);
    border: none;
    border-radius: var(--r-md);
    box-shadow: var(--sh-menu);
    font-size: var(--fs-small);
  }
  select.input option {
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-xs);
    font-weight: var(--fw-strong);
    cursor: pointer;
  }
  select.input option:hover { background-color: var(--c-accent-wash); }
  select.input option:checked { color: var(--c-accent-ink); }
  select.input option::checkmark { display: none; }
  /* Under a finger an option is as tall as every menu's entries (section 10, the touch target). */
  @media (pointer: coarse) {
    select.input option { min-height: var(--touch-target); display: flex; align-items: center; }
  }
  /* On a phone the list is never wider than its field, a long option wrapping inside it: as wide as
     its longest option, it ran 198px past the window at 360, its start pushed off its field's, and
     579px wide in a 412px window. Every phone held upright is under --bp-table-narrow (480px; 400
     left out the 412 and 430 of the large ones). Not at every width: on a desktop a filter's list
     a little wider than its field, or a dialog's list as wide as its longest mode, stands inside
     the window on its field's start, as it should. */
  @media (max-width: 30rem) {
    select.input::picker(select) { max-inline-size: anchor-size(self-inline); }
    select.input option { white-space: normal; overflow-wrap: anywhere; }
  }
}

/* A box beside its words sits on their first line: in a run of boxes whose words wrap, or stretched
   to a taller neighbour's height, every box of the run stays on one line. */
.check       { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--fs-small); font-weight: var(--fw-body); }
/* A box beside its words, and a box standing alone under its field's label: there it stands in
   the middle of a control's height, so it lines up with the inputs of the fields beside it. */
/* No margin of the browser's at the side: the box starts on its column's edge, where the label and
   the fields above it start. */
.check input,
.field > input[type="checkbox"] { width: var(--icon); height: var(--icon); flex: none; margin-inline: 0; accent-color: var(--c-accent); }
.check input { margin-block: var(--check-first-line) 0; }
.field > input[type="checkbox"] { margin-block: var(--check-in-control); }
/* Every box and every round of the site has its shape written, in every state: the browser paints
   a box's round corners itself and leaves its CSS radius at 0, and the focus ring and an error's
   outline follow that CSS radius. A box just ticked holds the focus, so its square ring, in the
   accent the tick fills the box with, read as a ticked box that had lost its round corners (owner's
   review, 2026-11-18). The radius is the one the browser paints, so the ring runs round the box. */
input[type="checkbox"] { border-radius: var(--r-check); }
input[type="radio"]    { border-radius: var(--r-pill); }

/* A link inside words: the accent, underlined. The base rule takes a link's colour and underline
   away so that a component can draw it; this is the component for one that sits in a sentence or
   a cell, written as .link where a page or a script writes it by hand (a card's website, a
   credit's source), and reaching the links of markup no script classes: running text a
   dictionary string writes (data-i18n-html: a notice, a card's sentence, a soft line), rich text
   (`.prose`, an article's body), the wording of a list's steps, a box's words, the terms. */
.link,
.check a,
.terms-links a,
.notice a,
.card > p a,
.soft a,
.prose a,
.news-content a,
.cl-content a,
.adm-procedure a { color: var(--c-accent-ink); text-decoration: underline; }

/* .ai-tag is the "IA" / "AI" marker the Kara widget writes: a badge on its header. An article's
   tags, a changelog entry's mode and version are the badges community/content-render.js writes.
   A badge is a run of words, laid out as text (FIX-1): a flex box would make each run of its text
   an item of its own and drop the space at the run's edge ("+ 50 <span>bonus</span>" read
   "+ 50bonus"). It never grows wider than what holds it and never breaks inside a word, whatever
   the box around it allows its own words (a card breaks a long one anywhere): it wraps between
   words, and the page gives the longest word its room (tests/site/design-system-badges.test.js). */
.badge,
.ai-tag,
.news-article-tag,
.cl-mode-badge,
.cl-version {
  display: inline-block;
  max-width: 100%;
  padding: var(--sp-1) var(--sp-2);
  background-color: var(--c-wash);
  color: var(--c-text-soft);
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  line-height: var(--lh-control);
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
}
/* A badge's tone says where a thing stands: the accent for what waits to be picked up, green for
   what has landed, amber for work under way, red for what is stopped or counts against. Untoned,
   it is a neutral fact. A role and a grade each have a tone of their own, the colour /account
   draws them in (admin/modules/state-badge.js says which). */
.badge--accent,
.cl-version     { background-color: var(--c-accent-wash);  color: var(--c-accent-ink); }
.badge--success { background-color: var(--c-success-wash); color: var(--c-success-ink); }
.badge--warn    { background-color: var(--c-warn-wash);    color: var(--c-warn-ink); }
.badge--danger  { background-color: var(--c-danger-wash);  color: var(--c-danger-ink); }
.badge--role-player  { background-color: var(--c-role-player-wash);  color: var(--c-role-player-ink); }
.badge--role-partner { background-color: var(--c-role-partner-wash); color: var(--c-role-partner-ink); }
.badge--role-admin   { background-color: var(--c-role-admin-wash);   color: var(--c-role-admin-ink); }
.badge--grade-bronze { background-color: var(--c-grade-bronze-wash); color: var(--c-grade-bronze-ink); }
.badge--grade-silver { background-color: var(--c-grade-silver-wash); color: var(--c-grade-silver-ink); }
.badge--grade-gold   { background-color: var(--c-grade-gold-wash);   color: var(--c-grade-gold-ink); }
/* The brand badge is a highlight a page puts forward (the best offer, what is free, what is still
   in development), never who someone is: a role is a toned badge like the others. */
.badge--brand   { background: var(--g-accent) border-box; color: var(--c-on-accent); padding: var(--sp-2) var(--sp-3); letter-spacing: var(--ls-label); text-transform: uppercase; }
/* The highlight in gold instead of the lotus, on a brand badge: the shop's limited edition, on its
   gold-tinted pack, in a gradient laid as the lotus one is. The deep gold under white words on the
   light ground, the site's gold under ink on the dark one, so the words and the ribbon itself both
   stand out of the tinted card. */
.badge--gold    { background: var(--g-ribbon-gold) border-box; color: var(--c-on-ribbon-gold); }
/* A brand badge's shape for a state among others of that shape (the download page's systems): in
   the success green for what can be had now, beside what is still in development; with no
   highlight, the untoned badge's wash and ink, for what is neither had nor under way. */
.badge--ready   { background: var(--c-success); color: var(--c-on-accent); }
.badge--plain   { background: var(--c-wash); color: var(--c-text-soft); }
.ai-tag         { background-color: var(--c-surface); color: var(--c-text); }

/* A standing notice, and the answer a form gives. window.showFormAlert (lang.js) writes the
   answer's class itself, `form-alert` with `error` or `success`, so it is styled by that name. */
.notice,
.form-alert { padding: var(--sp-4); background-color: var(--c-accent-wash); border-radius: var(--r-md); font-size: var(--fs-small); }
.form-alert.error   { background-color: var(--c-danger-wash);  color: var(--c-danger-ink); }
.form-alert.success { background-color: var(--c-success-wash); color: var(--c-success-ink); }

.tile {
  width: var(--tile);
  height: var(--tile);
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--g-accent) border-box;
  color: var(--c-on-accent);
  border-radius: var(--r-md);
  font-size: var(--fs-small);
  font-weight: var(--fw-heading);
  line-height: var(--lh-control);
}
.tile--sm    { width: var(--avatar); height: var(--avatar); border-radius: var(--r-xs); font-size: var(--fs-label); }
.tile--lg    { width: var(--tile-lg); height: var(--tile-lg); font-size: var(--fs-h2); }
/* An initial drawn from its attribute, so it never runs into the name beside the tile. */
.tile[data-initial]::before { content: attr(data-initial); }
/* A picture is the tile: nothing is painted under it. A ground or a hairline under a picture clipped
   to round corners shows through the edge pixels the clip smooths, a grey rim round a dark picture
   (FIX-1, the New Nations logo). A transparent picture shows the card or the row it stands on
   (tests/site/design-system-surfaces.test.js). */
.tile:has(img) { background: none; }
.tile img      { width: 100%; height: 100%; object-fit: cover; }

/* The face of a skin, drawn on its canvas by lang.js (dfDrawSkinHead), the player's real skin.
   Pixel art: square, with corners barely eased, never a circle. */
.avatar {
  width: var(--avatar);
  height: var(--avatar);
  flex: none;
  border-radius: var(--r-xs);
  image-rendering: pixelated;
}


/* ── 4. Nav ────────────────────────────────────────────────── */

/* Every child keeps its width: nav.js measures what overflows the bar and moves it into the
   drawer, which a squeezed child would hide from it. */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  min-height: var(--nav-h);
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.nav > * { flex: none; }

/* The glass is a layer of its own. A backdrop-filter on the nav itself would make it the
   containing block of everything fixed inside it, and the mobile drawer and its backdrop would
   be laid out in the nav's box instead of the window. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--c-nav);
  -webkit-backdrop-filter: var(--nav-blur);
  backdrop-filter: var(--nav-blur);
}

.nav-brand      { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-h3); font-weight: var(--fw-heading); letter-spacing: var(--ls-heading); }
.nav-brand img  { width: var(--logo-nav); height: var(--logo-nav); }
.nav-brand-name span { color: var(--c-accent-ink); }
/* What a tool of the site calls itself beside the brand: "Admin", "Partenaire". */
.nav-brand-note { color: var(--c-text-soft); font-weight: var(--fw-body); }

/* The links nav.js writes into every page's header: plain links, and groups behind a button. Each
   is a compact control of the scale, as tall as the shop's button among them. */
.nav-links { display: flex; align-items: center; font-size: var(--fs-small); font-weight: var(--fw-strong); white-space: nowrap; }
.nav-links a:not(.btn),
.nav-dropdown-btn {
  height: var(--control-h-sm);
  padding: 0 var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: none;
  border: none;
  color: var(--c-text-soft);
  cursor: pointer;
  transition: color var(--dur-fast);
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"],
.nav-dropdown-btn:hover,
.nav-dropdown.open .nav-dropdown-btn { color: var(--c-text); }

.nav-dropdown { position: relative; }
.nav-dropdown-chevron,
.menu-chevron { transition: transform var(--dur-fast); }
.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown.open .nav-dropdown-chevron,
.menu-anchor.open .menu-chevron { transform: rotate(var(--half-turn)); }

/* The three controls on the right are the same small button: one height, one border, one shape. */
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: var(--sp-3); }

.account-summary { padding-left: var(--sp-2); }

/* A menu under its button: the language list, the account menu and the header's link groups.
   The first two open on their button alone (lang.js, nav.js set `open`); a link group also
   opens under the pointer, and stays open while a link in it holds the focus. */
/* The anchor lays its button out as a flex item, never on a line of text: on a line, the button
   stood on the text's baseline and the line's descent made the anchor taller than its button, so
   the language button sat 0.8px under the theme button beside it. Standing in a block (the
   account menu's box, a table cell), it is aligned by its top for the same reason. */
.menu-anchor { position: relative; display: inline-flex; vertical-align: top; }

.menu,
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + var(--sp-2));
  right: 0;
  z-index: var(--z-menu);
  min-width: var(--menu-w);
  padding: var(--sp-2);
  display: grid;
  background: var(--c-surface);
  border-radius: var(--r-md);
  box-shadow: var(--sh-menu);
  font-size: var(--fs-small);
}
.nav-dropdown-menu { right: auto; left: 0; width: max-content; }
/* The gap between the button and its menu, kept under the pointer so the menu does not close
   on the way down to it. */
.nav-dropdown-menu::before { content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: var(--sp-2); }

.menu-anchor:not(.open) > .menu,
.nav-dropdown:not(.open):not(:hover) > .nav-dropdown-menu:not(:focus-within) { display: none; }

/* A menu inside a card is laid against its own button and out of every box's clip. Absolute in its
   anchor, the skin's model list of /account hung from its button's end edge, wider than the button,
   so it overhung the card's start, and the card, which clips its content to its round corners
   (panels, section 7), cut it there (ACC-2). Where the browser lays an element against another
   (anchor positioning), each anchor names itself for its own menu alone, and the menu stands in
   the window's frame, so no box clips it: under its button from the button's start edge, and on
   the button's other side, or above it, when the window has no room there. The header's menus,
   at the bar's end, keep hanging from their button's end edge. A row's menu is a popover its
   script lays (admin/modules/row-menu.js) and keeps that placement.
   Where the browser cannot (no anchor-scope: Firefox before 147, an older Safari or WebView), a
   menu inside a card or a panel still hangs from its button's start edge, by plain positioning,
   under the anchor rule's weight so that rule wins where it applies; and the panel holding it open
   stops clipping, so the part of the list past the panel's foot is drawn rather than cut. */
:where(.panel, .card) .menu-anchor > .menu:where(:not([popover])) { right: auto; left: 0; }
@supports not (anchor-scope: all) {
  .panel:has(.menu-anchor.open > .menu:not([popover])) { overflow: visible; }
}
@supports (anchor-scope: all) {
  .menu-anchor { anchor-name: --menu-anchor; anchor-scope: --menu-anchor; }
  .menu-anchor > .menu:not([popover]) {
    position: fixed;
    inset: auto;
    position-anchor: --menu-anchor;
    position-area: block-end span-inline-end;
    position-try-fallbacks: flip-inline, flip-block;
    margin-block: var(--sp-2);
  }
  .nav-actions .menu-anchor > .menu:not([popover]) { position-area: block-end span-inline-start; }
}

.menu-item,
.nav-dropdown-menu a,
.nav-overflow a {
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  display: block;
  background: none;
  border: none;
  border-radius: var(--r-xs);
  font-weight: var(--fw-strong);
  text-align: start;
  cursor: pointer;
}
.menu-item:hover,
.nav-dropdown-menu a:hover,
.nav-overflow a:hover { background-color: var(--c-accent-wash); }
/* An entry that cannot be taken back (a row's delete): the danger button's tone. */
.menu-item--danger       { color: var(--c-danger-ink); }
.menu-item--danger:hover { background-color: var(--c-danger-wash); }
/* The chosen option of a list a button opens: the language, and the skin's model on /account. */
.lang-picker-option.active,
.skin-model-picker-option.active { color: var(--c-accent-ink); }

.menu-rule,
.nav-links-sep { margin-block: var(--sp-2); border-top: var(--bw-hair) solid var(--c-line); }
/* A line of words under a menu's entries, which nothing chooses (admin/modules/row-menu.js,
   `notes`): what an empty menu says, or a rule about what it lists. Set in as an entry is. */
.menu-note { padding: var(--sp-2) var(--sp-3); color: var(--c-text-soft); font-size: var(--fs-label); }

/* What nav.js moved into the drawer leaves the bar entirely, whatever display it had there. */
.nav-collapsed { display: none !important; }

/* The burger: three lines that cross when the drawer is open. nav.js shows it (`visible`) once
   something has moved into the drawer. */
.nav-burger         { display: none; flex-direction: column; gap: var(--sp-1); }
.nav-burger.visible { display: inline-flex; }
.nav-burger span {
  width: var(--icon);
  height: var(--bw-strong);
  background-color: currentColor;
  border-radius: var(--r-pill);
  transition: transform var(--dur-normal), opacity var(--dur-normal);
}
.nav-burger.open span:nth-child(1) { transform: translateY(calc(var(--sp-1) + var(--bw-strong))) rotate(var(--eighth-turn)); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(calc(-1 * (var(--sp-1) + var(--bw-strong)))) rotate(calc(-1 * var(--eighth-turn))); }

/* The drawer: a menu under the burger on a wide screen, the whole window below the bar on a
   phone (section 8). */
.nav-overflow {
  position: absolute;
  top: calc(100% + var(--sp-2));
  right: var(--gutter);
  z-index: var(--z-menu);
  width: var(--menu-w);
  max-height: calc(var(--viewport-h) - var(--nav-h) - var(--sp-4));
  padding: var(--sp-2);
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  background: var(--c-surface);
  border-radius: var(--r-md);
  box-shadow: var(--sh-menu);
  font-size: var(--fs-small);
}
.nav-overflow ul { display: grid; }
.ov-group-label  { padding: var(--sp-3) var(--sp-3) var(--sp-1); }
.ov-lang-row     { padding: var(--sp-2) var(--sp-3); display: flex; gap: var(--sp-2); }
.ov-lang-btn     { flex: 1; }

/* Appended inside the nav by nav.js, below the drawer in the nav's own stacking context. */
.nav-backdrop {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  z-index: var(--z-backdrop);
  background-color: var(--c-scrim);
  animation: ds-fade-in var(--dur-normal) var(--ease-out) both;
}

@keyframes ds-fade-in   { from { opacity: 0; } }
@keyframes ds-drawer-in { from { opacity: 0; transform: translateY(calc(-1 * var(--sp-2))); } }
@keyframes ds-drawer-out { to  { opacity: 0; transform: translateY(calc(-1 * var(--sp-2))); } }


/* ── 5. Night header ───────────────────────────────────────── */

/* The top of a public page: the night sky, and on it the light text a night needs. A head has one
   other skin, the plain head of /scp-3008 (`.page-head.plain`, below): the same head with no
   picture at all. */
.night          { position: relative; overflow: hidden; color: var(--c-night-text); }
.night > .wrap  { position: relative; z-index: var(--z-content); }
.night .eyebrow { color: var(--c-night-eyebrow); }
.night .lead    { color: var(--c-night-text-soft); }
.night :focus-visible { outline-color: var(--c-night-ring); }
/* The dictionary marks a title's brand word with a bare <span> (lang.js, `*.title`), which a
   language switch writes back in: the page's own class would not survive it. */
.page-head .display span { color: var(--c-night-brand); }

.page-head { padding-block: var(--sp-8); background-image: var(--g-night-head); }

/* == component: plain-head == used by: game == */
/* The head of a game that has no picture of its own (SCP-3008, until the owner draws one): no
   picture and no night, the page's own ground and ink in each theme, the brand word in the
   accent's ink (tests/site/design-system-contrast.test.js). `section.page-head.plain > div.wrap`. */
.page-head.plain { background-image: none; background-color: var(--c-bg-alt); color: var(--c-text); }
.plain .lead     { color: var(--c-text-soft); }
.page-head.plain .display span { color: var(--c-accent-ink); }

/* The stars (scripts/sky.js) fill the night header behind its text. */
.sky       { position: absolute; inset: 0; overflow: hidden; pointer-events: none; container-type: inline-size; }
/* The sky is wider than its header by the overscan each side, and slides by as much: the browser
   runs the slide off the main thread, and the script only redraws what twinkles. */
.sky-drift { position: absolute; inset-block: 0; inset-inline: calc(-1 * var(--sky-overscan)); animation: sky-drift var(--dur-sky-drift) ease-in-out infinite alternate; }
.sky-layer,
.orrery-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes sky-drift {
  from { transform: translateX(calc(-1 * var(--sky-overscan))); }
  to   { transform: translateX(var(--sky-overscan)); }
}

/* The solar system of /new-nations (scripts/orrery.js): a diagram as wide as its column up to
   --orrery-w, wider than tall as the tilted orbits are, its two canvases filling the stage. The
   names on it are set in the stage's type, which the script reads off the stage to write them on
   the canvas; a screen reader reads them from the list beside it.
   `figure.orrery > div.orrery-stage + ul.visually-hidden + figcaption`. */
.orrery             { position: relative; width: 100%; max-width: var(--orrery-w); margin-inline: auto; display: grid; gap: var(--sp-3); }
.orrery-stage       { position: relative; aspect-ratio: var(--orrery-aspect); font-size: var(--fs-label); font-weight: var(--fw-strong); }
.orrery figcaption  { font-size: var(--fs-small); text-align: center; }

/* What a screen reader reads and the eye does not: the names a drawing shows. */
.visually-hidden { position: absolute; width: var(--hidden-box); height: var(--hidden-box); margin: calc(-1 * var(--hidden-box)); padding: 0; border: 0; overflow: hidden; clip-path: inset(var(--centre)); white-space: nowrap; }


/* ── 6. Content blocks ─────────────────────────────────────── */

/* A card's own sentences are soft; what a card nests (a form's groups) keeps its own colour. A word
   too long for its line (a name, an address someone wrote) breaks inside the round corners. Its one
   column is as wide as its padding leaves and never wider, as a stack's is: a child that cannot
   shrink (a button's label on one line) never pushes the column past the card's padding. */
.card     { padding: var(--sp-5); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); align-content: start; background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--sh-card); overflow-wrap: anywhere; }
.card > p,
.card-action > p { color: var(--c-text-soft); font-size: var(--fs-small); }
/* Where a card of a set ends in what can be done with it: a large button and a line under it, or one
   soft line that says there is nothing to do yet. It keeps that room in every card of the set, so the
   cards stand at one height and their names and states in line, side by side or one under another
   (the download page's three systems).
   `div.card > h2 + div.tags + div.card-action.centred`. */
.card-action { display: grid; gap: var(--sp-3); align-content: start; min-block-size: var(--card-action-h); }
.cards    { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--card-min), 1fr)); gap: var(--sp-5); }
.cards--wide { grid-template-columns: repeat(auto-fit, minmax(var(--benefit-min), 1fr)); }
/* Three or four cards of equal standing that stay whole: never a row with one card alone under it.
   Three stand in one row, or one column. Four stand in one row, two by two, or one column. The grid
   is the query container, asked about its own width: each card takes the next column of a single
   row; where a row of four cards at --card-min no longer fits (--bp-cards-four), four stand two by
   two, odd cards in the first column and even ones in the second; where three no longer fit
   (--bp-cards-whole), three stand in one column; and where two no longer fit (--bp-cards-pair),
   every set does. */
.cards--whole { container-type: inline-size; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
@container (min-width: 31.5rem) and (max-width: 64.5rem) {
  .cards--whole:has(> :nth-child(4)) > :nth-child(odd)  { grid-column: 1; }
  .cards--whole:has(> :nth-child(4)) > :nth-child(even) { grid-column: var(--column-second); }
}
@container (max-width: 48rem) {
  .cards--whole:not(:has(> :nth-child(4))) > * { grid-column: 1; }
}
@container (max-width: 31.5rem) {
  .cards--whole > * { grid-column: 1; }
}

/* A numbered list of cards: the number is drawn by the list, not typed in the page. */
.cards--numbered         { counter-reset: card; }
.cards--numbered > .card { counter-increment: card; }
.cards--numbered > .card::before { content: counter(card, decimal-leading-zero); color: var(--c-accent-ink); font-size: var(--fs-small); font-weight: var(--fw-heading); }

/* Cards of one width, in rows from the start of the line. */
/* Centred, and `auto-fit` so that a single partner sits in the middle (owner decision, 2026-10-11). */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, var(--partner-card)); justify-content: center; gap: var(--sp-5); }
.partner-card { width: var(--partner-card); font-weight: var(--fw-strong); transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast); }
a.partner-card:hover { transform: translateY(var(--lift)); box-shadow: var(--sh-menu); }
.partner-card-name   { max-width: 100%; }

/* An article and a changelog entry as community/content-render.js writes them, on /news, on
   /changelogs and in the admin panel's preview: a folding card (fold, section 9: its card,
   summary, title, chevron and body), its body the site's prose (prose, section 9). Its tags, mode
   and version are the site's badge (section 3). What only an entry has is here. */
.news-article-meta,
.cl-entry-meta { flex: 1; min-width: 0; display: grid; gap: var(--sp-2); }
.cl-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-article-byline,
.cl-entry-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); color: var(--c-text-soft); font-size: var(--fs-small); }
.news-article-author { font-weight: var(--fw-strong); }
.news-article-tags { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.news-article-cover { width: 100%; max-height: var(--cover-max-h); object-fit: cover; }

.terms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-7) var(--sp-8); }
.term       { display: grid; gap: var(--sp-3); align-content: start; }
.term p     { color: var(--c-text-soft); }

.apply-head { display: grid; gap: var(--sp-4); }
.form       { padding: var(--sp-6); gap: var(--sp-5); }
.form-grid  { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }

/* A form's rows: a public form's grid and the admin panel's form (ds/panel.css, .df-form) give
   each field three rows, its label, its control and what sits under it, and the field lays itself
   on them as a subgrid: in two columns, a label that wraps to two lines makes that row taller for
   both fields, whatever sits under either control, and the two controls stay level. A label
   stands on its control; the field's gap is the label's foot and the notes' head, since the rows
   of a subgrid take no gap of their own. A fieldset (a group of boxes under its legend) lays its
   own content out and stays one block. */
.form-grid > .field:not(fieldset),
.df-form > .field { grid-row: span var(--field-rows); grid-template-rows: subgrid; row-gap: 0; }
.form-grid > .field:not(fieldset) > :first-child,
.df-form > .field > .df-field-label { align-self: end; padding-block-end: var(--sp-2); }
.form-grid > .field:not(fieldset) > :nth-child(3),
.df-form > .field > .df-field-notes { padding-block-start: var(--sp-2); }
/* Notes belong under their own control (ALIGN-2): a control of the system's one height (a line of
   text, a select, a box) holds them right under its foot, beside a neighbour's taller control (a
   text area, a group of boxes) as beside one of its own height. They lie across the control's row
   and the notes' row, from the control's height down: the line's rows still follow the tallest of
   either field, the controls stay level, and two fields of one height keep their notes level. A
   taller control's notes stay on the notes' row, under the line's tallest control. The control (a
   field's second child, after its label) is placed on its row by name too: an item placed by its row is placed before those that are not,
   and the control would otherwise be put after the notes that took its cell. */
.form-grid > .field:not(fieldset):has(> .input:not(.input--area):not(.input--sm)) > :nth-child(2),
.form-grid > .field:not(fieldset):has(> input[type="checkbox"]) > :nth-child(2),
.df-form > .field:has(> .input:not(.input--area):not(.input--sm)) > :nth-child(2),
.df-form > .field:has(> input[type="checkbox"]) > :nth-child(2) { grid-row: var(--field-control-line); grid-column: 1 / -1; }
.form-grid > .field:not(fieldset):has(> .input:not(.input--area):not(.input--sm)) > :nth-child(3),
.form-grid > .field:not(fieldset):has(> input[type="checkbox"]) > :nth-child(3),
.df-form > .field:has(> .input:not(.input--area):not(.input--sm)) > .df-field-notes,
.df-form > .field:has(> input[type="checkbox"]) > .df-field-notes {
  grid-row: var(--field-control-line) / -1;
  grid-column: 1 / -1;
  align-self: start;
  margin-block-start: var(--control-h);
}
/* What sits under a control: a hint (a public page writes `small.field-hint` in the label, the
   admin's form.js a `.df-field-hint` in its block of notes), an error and a counter. */
.df-field-notes { display: grid; gap: var(--sp-2); align-content: start; }
/* Nothing to say under the control (the error is hidden until the server refuses): no block, and
   no room kept for one. */
.df-field-notes:not(:has(> :not([hidden]))) { display: none; }
.field-hint,
.df-field-hint,
.df-field-error,
.df-field-counter { font-size: var(--fs-label); font-weight: var(--fw-body); line-height: var(--lh-body); }
.field-hint,
.df-field-hint    { color: var(--c-text-soft); }
.df-field-error,
.df-field-counter--over { color: var(--c-danger-ink); font-weight: var(--fw-strong); }
.df-field-counter { text-align: end; font-variant-numeric: tabular-nums; }


/* ── 7. Panels, tabs, rows ─────────────────────────────────── */

/* Who a workspace belongs to, at its top: a picture, a name, what it is. */
.identity       { display: flex; align-items: center; gap: var(--sp-4); }
.identity > img { width: var(--tile-lg); height: var(--tile-lg); padding: var(--sp-3); object-fit: contain; background: var(--c-surface); border-radius: var(--r-md); box-shadow: var(--sh-card); }
.identity-text  { display: grid; gap: var(--sp-2); justify-items: start; min-width: 0; }
.identity-sub   { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }

/* A panel clips what it holds to its own corners: a row's hover or a group's band can never show
   a square corner past a round one. Its blocks stand one under the other, each set in from its
   edges and the last one off its foot; a run of rows and a group's band reach the edges
   themselves and set their own words in (ds/panel.css names them).
   The last block is the last one the panel draws, not the last one its markup holds: a form that
   opens under its button, an alert waiting for its message and a run of buttons whose buttons are
   all hidden (actions, section 9) follow it hidden, and `:last-child` named them, so the panel's
   foot went to a block that is not drawn and the button above it stood on the panel's edge
   (ACC-2, /account's settings). A block is drawn unless it is `[hidden]` or such a run; it is the
   foot's when no drawn block follows it. The test is written under `:where()`, so that what reaches
   the edges (ds/panel.css) still sets its own foot by its class.
   The admin panel's screen root, .panel-screen, which every screen writes, is drawn as a panel
   when it holds none of its own, and is the column its panels stand in otherwise. */
.panel,
.panel-screen:not(:has(> .panel)) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--sp-4);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  overflow: clip;
}
.panel > *,
.panel-screen:not(:has(> .panel)) > * { margin-inline: var(--sp-5); }
.panel > :where(:not([hidden], .actions:not(:has(> :not([hidden]))))):where(:not(:has(~ :not([hidden], .actions), ~ .actions > :not([hidden])))),
.panel-screen:not(:has(> .panel)) > :where(:not([hidden], .actions:not(:has(> :not([hidden]))))):where(:not(:has(~ :not([hidden], .actions), ~ .actions > :not([hidden])))) { margin-block-end: var(--sp-5); }
.panel > .panel-head,
.panel-screen:not(:has(> .panel)) > .panel-head { margin: 0; padding: var(--sp-4) var(--sp-5) 0; }
.panel > .panel-head:where(:not(:has(~ :not([hidden], .actions), ~ .actions > :not([hidden])))),
.panel-screen:not(:has(> .panel)) > .panel-head:where(:not(:has(~ :not([hidden], .actions), ~ .actions > :not([hidden])))) { padding-bottom: var(--sp-4); }
.panel > .group-label,
.panel-screen:not(:has(> .panel)) > .group-label { margin-inline: 0; }

.panel-head  { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
/* The title keeps its width, the count reads beside it, the tools take what is left. */
.panel-title { flex: none; max-width: 100%; overflow-wrap: anywhere; font-size: var(--fs-h3); font-weight: var(--fw-strong); line-height: var(--lh-heading); }
.panel-count { color: var(--c-text-soft); font-size: var(--fs-small); font-weight: var(--fw-body); }
/* The tools take the room the title leaves, and go to a line of their own under it before their
   search or filter box would shrink: the box stands at the width that holds the longest prompt the
   panels give one. Only where a line of its own is too narrow (a phone) does the box shrink, never
   under a card's width, and its prompt end in its ellipsis. */
.panel-tools { margin-left: auto; flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--sp-2) var(--sp-3); }
/* Its width is written, not a flex basis: the tools' own width, which decides whether they go under
   the title, counts a box by the width it asks for. */
.panel-tools .input { flex: 0 1 auto; width: var(--search-w); max-width: 100%; min-width: min(100%, var(--card-min)); }
/* A second heading inside one panel, opening a block of its own. */
.panel-subhead { min-width: 0; font-size: var(--fs-body); font-weight: var(--fw-strong); line-height: var(--lh-heading); }

/* The band a run of rows is filed under: the neutral wash, never the accent a row takes. */
.group-label { padding: var(--sp-3) var(--sp-5); background-color: var(--c-wash); }

/* Facts a panel shows and does not let you change: a label beside its value, one under the other. */
.panel-facts { display: grid; }
/* A fact's label stands on its value's first line, whatever the value is: words that wrap, a badge,
   or a button (a player's e-mail, shown on request), whose label otherwise stood at its top edge. */
.panel-fact  { padding-block: var(--sp-3); display: grid; grid-template-columns: var(--fact-label-w) minmax(0, 1fr); align-items: baseline; gap: var(--sp-4); border-top: var(--bw-hair) solid var(--c-line); font-size: var(--fs-small); }
.panel-fact:first-child { padding-top: 0; border-top: none; }
.panel-fact dt { color: var(--c-text-soft); }
.panel-fact dd { font-weight: var(--fw-strong); overflow-wrap: anywhere; }
/* A value that is a picture (a partner's logo tile) has no line of words: its label stands on its
   middle, not on its foot, where a baseline would put it (ADM-3). */
.panel-fact:has(> dd > .tile) { align-items: center; }

/* A table: a header in small capitals over rows of hairlines, the last row without one, so
   there is no rounded box for a square corner to poke out of. A screen's table (.table) sits in a
   frame of its own, its cells carrying their own inset so the header and the row lines run to the
   frame, and a row takes the accent wash under the pointer. The frame clips to its round corners
   and never scrolls: nothing in it is ever wider than it, because how its columns share the room,
   and the cards its rows become where they cannot, are the workspaces' (ds/panel.css, "Tables").
   A document's bare table (.prose, section 9) is the same table.
   One alignment for every cell (owner's reviews, 2026-11-18): a header and the cells under it get
   the same inset and the same alignment, so a cell's content starts where its column's name
   starts, whatever column it is; only a figure and a row's actions stand against the end, by their
   column's kind (ds/panel.css, "Tables"). A column's name stands on one line: a table too narrow
   for its names lays its rows as cards instead, unless wrapping a name lets a workspace's table
   hold (ds/panel.css). A badge sits in the middle of its line, level with the words of the cells
   beside it. */
.table-wrap { overflow: clip; border: var(--bw-hair) solid var(--c-line); border-radius: var(--r-md); }
.table,
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.table th,
.table td,
.prose th,
.prose td   { padding: var(--sp-3) var(--sp-4); text-align: start; vertical-align: middle; border-bottom: var(--bw-hair) solid var(--c-line); }
.table th,
.prose th   { color: var(--c-text-soft); font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: var(--ls-label); text-transform: uppercase; white-space: nowrap; }
.table td .badge { vertical-align: middle; white-space: nowrap; }
.table tbody tr:last-child td,
.prose tbody tr:last-child td { border-bottom: none; }
/* A document's table ends at its last line, as a paragraph does: what follows it stands the grid's
   gap under its last words, a heading as far as after a paragraph. */
.prose tbody tr:last-child td { padding-bottom: 0; }
.table tbody tr:hover { background-color: var(--c-accent-wash); }

/* Rows of tabs: segmented pills on the alternate ground, the chosen one raised. A script marks it
   `aria-selected`, a link `aria-current`, a filter of segments `aria-pressed`. A tab is a control
   of the scale: a compact one inside its bar's --sp-1 inset, so that a bar of tabs stands as tall
   as the full-height field or button beside it; a small bar's tab is the next size down, and the
   small bar as tall as a compact control. */
.tabs { width: fit-content; max-width: 100%; padding: var(--sp-1); display: flex; flex-wrap: wrap; gap: var(--sp-1); background: var(--c-bg-alt); border-radius: var(--r-lg); }
.tab {
  height: var(--control-h-inset);
  padding: 0 var(--sp-4);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: none;
  border: none;
  border-radius: var(--r-pill);
  color: var(--c-text-soft);
  font-size: var(--fs-small);
  font-weight: var(--fw-strong);
  line-height: var(--lh-control);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.tab:hover { color: var(--c-text); }
.tab[aria-selected="true"],
.tab[aria-current="page"],
.tab[aria-pressed="true"] { background: var(--c-raised); color: var(--c-text); box-shadow: var(--sh-raised); }
/* A small tab is set in by two steps under a full tab's, as its height is a step under a full
   tab's: the panel's longest row of screens (the eight of « Partenaires ») needs 1170px set in by
   --sp-3, 18px more than the 1152px the workspace has at 1280, and left « Liste noire » alone on a
   second line (ADM-3, measured in Chrome). */
.tabs--small .tab { height: var(--control-h-xs); padding-inline: var(--sp-2); }


/* ── 8. Footer and site chrome ─────────────────────────────── */

.footer       { margin-top: auto; padding-block: var(--sp-8) var(--sp-9); font-size: var(--fs-small); }
.footer-legal { margin-top: var(--sp-7); padding-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); border-top: var(--bw-hair) solid var(--c-line); color: var(--c-text-soft); }
.footer-legal:first-child { margin-top: 0; }
.footer-legal a { transition: color var(--dur-fast); }
.footer-legal a:hover { color: var(--c-text); }
/* The trademark notice under the legal line, in its colour and size. */
.footer-notice { margin-top: var(--sp-3); color: var(--c-text-soft); }

/* Out of sight above the page until the keyboard reaches it. */
.skip-link {
  position: absolute;
  top: calc(-1 * 100%);
  left: var(--gutter);
  z-index: var(--z-skip);
  padding: var(--sp-2) var(--sp-4);
  background: var(--g-accent) border-box;
  color: var(--c-on-accent);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: var(--fw-strong);
}
.skip-link:focus { top: var(--sp-2); }

/* The way back at the foot of a page. */
.page-back a { color: var(--c-text-soft); transition: color var(--dur-fast); }
.page-back a:hover { color: var(--c-text); }

/* What a list shows in place of its entries: while they load, when they could not be fetched
   (list-controls.js), and when there are none. A failure is not a neutral state: uncoloured,
   it would read as an empty list. */
.list-state        { padding-block: var(--sp-8); text-align: center; color: var(--c-text-soft); font-size: var(--fs-lead); }
.list-state--error { color: var(--c-danger-ink); }

/* The re-acceptance of changed terms (terms.js, CGU art. 13), over every page. */
.terms-dialog,
.dialog {
  width: calc(100% - var(--sp-6));
  max-width: var(--w-dialog);
  margin: auto;
  padding: 0;
  background: var(--c-surface);
  color: inherit;
  border: none;
  border-radius: var(--r-lg);
}
/* Every dialog over the scrim, the site's and the workspaces' (ds/panel.css, .df-modal): its
   shadow, and its edge, a hairline ring laid in that shadow rather than a border, so the box keeps
   its size. The ring is drawn on the night only (tokens.css, --c-dialog-edge), where the scrim is
   black: no shadow shows on it, and no ground of the dialog stands out of it at 3:1. */
.terms-dialog,
.dialog,
.df-modal { box-shadow: 0 0 0 var(--bw-hair) var(--c-dialog-edge), var(--sh-menu); }
.terms-dialog::backdrop,
.dialog::backdrop { background-color: var(--c-scrim); }
.terms-box,
.dialog-box     { padding: var(--sp-5); display: grid; gap: var(--sp-4); }
.terms-summary { max-height: var(--dialog-text-h); margin: 0; padding: var(--sp-3); overflow: auto; white-space: pre-wrap; font: inherit; background-color: var(--c-wash); border-radius: var(--r-md); }
.terms-alert   { color: var(--c-danger-ink); }

/* The show/hide control password-toggle.js puts in every password field. Which eye shows is read
   from the button's own state, so the picture cannot disagree with what a screen reader says. */
.pw-field                { position: relative; display: block; width: 100%; }
.pw-field > input[type]  { padding-right: var(--control-h); }
.pw-toggle {
  position: absolute;
  top: var(--centre);
  right: var(--sp-1);
  width: var(--control-h-inset);
  height: var(--control-h-inset);
  padding: 0;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  transform: translateY(calc(-1 * var(--centre)));
  transition: background-color var(--dur-fast);
}
.pw-toggle:hover { background-color: var(--c-wash); }
.pw-toggle-icon  { width: var(--icon); height: var(--icon); }
.pw-toggle .pw-toggle-icon--hide,
.pw-toggle[aria-pressed="true"] .pw-toggle-icon--show { display: none; }
.pw-toggle[aria-pressed="true"] .pw-toggle-icon--hide { display: block; }


/* ── 9. Public page components ──────────────────────────────
   What the public pages added to the sections above, each under its marker. */

/* == component: centred == used by: home, community, game, info == */
/* One rule for "its content sits on the middle line": the application head and the partner card
   (already centred) share it with whatever else the pages centre, instead of each writing the two
   declarations. Markup: `class="stack centred"`, `class="card centred"`, `class="wrap hero-inner centred"`. */
.apply-head,
.partner-card,
.centred { justify-items: center; text-align: center; }


/* == component: actions == used by: home, auth, community, info, game == */
/* A row of controls that wraps: buttons, a button and a link, badges. Every control in it is the
   same size class (the owner has rejected controls of different heights side by side). The terms
   dialog's row (terms.js) is the same row, ended, and so is a list's filter bar (filter-bar). */
.actions,
.terms-actions,
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.terms-actions { justify-content: flex-end; }
/* A row whose controls are all hidden (a form opened in their place, a button the account has no
   use for) is not drawn: in a stack it would still take its gap. A panel's foot skips it too
   (panels, section 7). */
.actions:not(:has(> :not([hidden]))) { display: none; }
/* A label too long for the row (an English one on a phone, a player's action in a narrow detail, a
   table's row standing as a card) breaks inside its own button, in a row that wraps: the button
   keeps its control height for one line and two, and grows for a third rather than cut it. */
.actions > .btn,
.panel-tools > .btn,
.table-wrap--stacked .table td > .btn { max-width: 100%; height: auto; min-height: var(--control-h); padding-block: var(--sp-1); white-space: normal; text-align: center; line-height: var(--lh-heading); }
.actions > .btn-sm,
.panel-tools > .btn-sm,
.table-wrap--stacked .table td > .btn-sm { min-height: var(--control-h-sm); }
.actions > .btn-lg,
.panel-tools > .btn-lg,
.table-wrap--stacked .table td > .btn-lg { min-height: var(--control-h-lg); }


/* == component: actions--centre == used by: home, info, account == */
.actions--centre { justify-content: center; }


/* == component: actions--end == used by: community, game == */
.actions--end { justify-content: flex-end; }


/* == component: actions--equal == used by: auth == */
/* Two answers of one weight (Refuse, Allow; Back, Review): each takes half the row. */
.actions--equal > * { flex: 1; }


/* == component: page-back == used by: home, auth, community, info, game == */
/* The way back at the foot of a page, one link or several in one centred row. A row that is
   hidden (a status page's `#links`) leaves no margin behind: the hidden attribute removes the box. */
/* It stands --sp-7 under what it follows on every page: in a stack, the stack's gap is part of it. */
.page-back { margin-top: var(--sp-7); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-5); font-size: var(--fs-small); }
.stack > .page-back    { margin-top: calc(var(--sp-7) - var(--sp-4)); }
.stack-lg > .page-back { margin-top: calc(var(--sp-7) - var(--sp-6)); }


/* == component: btn-disabled == used by: community, game == */
/* A button that cannot be pressed looks like it: a flat wash, the soft ink, no glow, no lift. The
   label stays readable (AA) because on the vote page and in the closed shop it IS the message.
   The theme button (base-ds.html's data-theme-switch) is not such a button: lang.js holds it
   disabled only while the old ground fades, so a second press cannot stack two fades, and it keeps
   its look and its lift through that second. */
.btn:disabled:not([data-theme-switch]) {background: var(--c-wash); color: var(--c-text-soft); border-color: transparent; box-shadow: none; cursor: default; }


/* == component: btn-pressed == used by: community, info, game == */
/* A toggle that is on: the drawer's language button, a vote or favourite button, a filter. The one
   look, written once. */
.ov-lang-btn.active,
.btn[aria-pressed="true"],
.filter-btn[aria-pressed="true"] { background: var(--c-accent-wash); color: var(--c-accent-ink); border-color: var(--c-accent); }


/* == component: btn-quiet == used by: auth == */
/* A way out that must not compete with the button above it: "My authenticator is lost". */
.btn-quiet {
  min-height: var(--touch-target);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  background: none;
  border: none;
  color: var(--c-text-soft);
  font-size: var(--fs-small);
  font-weight: var(--fw-strong);
  text-decoration: underline;
  text-underline-offset: var(--sp-1);
  cursor: pointer;
  transition: color var(--dur-fast);
}
.btn-quiet:hover { color: var(--c-text); }


/* == component: btn-success == used by: auth == */
/* The state of the Launcher-link button once it is linked (a class the script adds: it used to set
   an inline style, which the design check refuses). */
.btn-success,
.btn-success:hover { background: var(--c-success); color: var(--c-on-accent); box-shadow: none; }


/* == component: btn-providers == used by: auth == */
/* The sign-in buttons of the three providers, on the .btn shape (pill, control height), each in its
   own colours in both themes. The mark is an inline svg in the page, painted by `currentColor`.
   The hover is the provider's darker shade, on top of the system's lift. */
.btn-discord { background: var(--discord-blurple); color: var(--c-on-brand); }
.btn-discord:hover { background: var(--discord-blurple-hover); }
.btn-google { background: var(--google-surface); color: var(--google-ink); box-shadow: inset 0 0 0 var(--bw-hair) var(--google-edge); }
.btn-google:hover { background: var(--google-surface-hover); }
.btn-twitch { background: var(--twitch-purple); color: var(--c-on-brand); }
.btn-twitch:hover { background: var(--twitch-purple-hover); }


/* == component: divider == used by: auth == */
/* "or", between a form and the provider buttons: a hairline each side of a short soft label. */
.divider { display: flex; align-items: center; gap: var(--sp-3); color: var(--c-text-soft); font-size: var(--fs-small); }
.divider::before,
.divider::after { content: ""; flex: 1; border-top: var(--bw-hair) solid var(--c-line); }


/* == component: check-invalid == used by: auth == */
/* A statement that was left out: the script sets aria-invalid="true" on its box. (The text field's
   state, `.input[aria-invalid="true"]`, is section 3's.) */
.check:has(input[aria-invalid="true"]) { color: var(--c-danger-ink); }
.check input[aria-invalid="true"] { outline: var(--bw-strong) solid var(--c-danger-ink); }


/* == component: input-tall == used by: community == */
/* A message box that wants about seven lines: `class="input input--area input--tall"`. */
.input--tall { height: var(--field-area-tall-h); }


/* == component: input-disabled == used by: info == */
/* A field that waits for a choice (the platform links until their box is ticked). */
.input:disabled { background-color: var(--c-wash); color: var(--c-text-soft); cursor: default; }


/* == component: column == used by: home, auth, community, info == */
/* One narrow centred column of stacked cards: a form page, a status page, a consent page. It is the
   partners page's `.apply` under a name that does not say "application". */
.apply,
.column { max-width: var(--w-form); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }


/* == component: page-head--compact == used by: auth, community, info == */
/* The head of a task or of a document (a form, a ticket, a legal text): the title is an `h1` that
   wears the `.h2` scale instead of `.display`, so a long title, a ticket subject or a client name
   (text a visitor or a server wrote) stays a title and never fills the screen. The brand word the
   dictionary writes as a bare <span> keeps its colour; a span that is translated on its own
   (`span[data-i18n]`, the verb of "Authorise <client>") stays plain text. */
.page-head--compact { padding-block: var(--sp-7); }
.page-head .h2 { overflow-wrap: anywhere; }
.page-head .h2 span:not([data-i18n]) { color: var(--c-night-brand); }


/* == component: h2-brand == used by: info == */
/* The brand word of a section title ("Our <span>team</span>"). */
.h2 span:not([data-i18n]) { color: var(--c-accent-ink); }


/* == component: night-links == used by: info == */
/* A link in a line of the night head: the legal pages announce the next edition there. */
.night .lead a { color: var(--c-night-brand); text-decoration: underline; }


/* == component: iconed == used by: auth, community == */
/* An icon beside a text, the icon on the text's first line: a consent scope, a closed ticket's
   notice, a sent form's confirmation. */
.iconed { display: flex; align-items: flex-start; gap: var(--sp-3); }
.iconed > .icon { margin-top: var(--icon-line-offset); }


/* == component: split == used by: home == */
/* Two equal columns that become one under --bp-stack; DOM order is the phone's order. */
.split         { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8); align-items: start; }
.split--center { align-items: center; }
@media (max-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
}


/* == component: steps == used by: home == */
/* An ordered list whose numbers are round tiles beside a title and a sentence. The numeral is typed
   in the page, in the tile, aria-hidden (the prototype's markup). `<ol class="steps">`. */
.steps       { display: grid; gap: var(--sp-6); }
.step        { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-5); }
.step > .tile { align-self: start; }
.step-body   { display: grid; gap: var(--sp-2); align-content: start; }
.step-body p { color: var(--c-text-soft); }
.tile--round { border-radius: var(--r-round); }


/* == component: icon-lg == used by: home, auth, community, info == */
/* The icon inside a tile (1.5rem), where `.icon` is the one beside a line of text. */
.icon-lg { width: var(--icon-lg); height: var(--icon-lg); flex: none; }


/* == component: lotus-art == used by: home == */
.lotus-art     { display: grid; place-items: center; }
.lotus-art img { width: var(--lotus-img); height: auto; }


/* == component: tags == used by: home, community, game == */
/* A wrapped row of small things. In a list, each item is an outlined pill, and a pill may be a link
   whose whole surface is the target: it takes the accent on hover and focus. A row of badges (a
   ticket's status and type) is a `div.tags` of `.badge`, with no pill of its own. */
.tags    { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tags li { padding: var(--sp-2) var(--sp-3); border: var(--bw-hair) solid var(--c-line-strong); border-radius: var(--r-pill); font-size: var(--fs-small); font-weight: var(--fw-strong); transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.tags a  { display: block; margin: calc(-1 * var(--sp-2)) calc(-1 * var(--sp-3)); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-pill); }
.tags li:has(> a:hover),
.tags li:has(> a:focus-visible) { background-color: var(--c-accent-wash); border-color: var(--c-accent); color: var(--c-accent-ink); }


/* == component: stats == used by: home == */
/* A column of cards, each a figure with its label: `.stats > .card.stat > .stat-value + .stat-label`. */
.stats      { display: grid; gap: var(--sp-4); }
.stat       { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--sp-4); }
.stat-value { font-size: var(--fs-stat); font-weight: var(--fw-display); letter-spacing: var(--ls-display); line-height: var(--lh-tight); }
.stat-label { color: var(--c-text-soft); font-size: var(--fs-small); }


/* == component: hero == used by: home == */
/* The home page's head: the night above, the dawn at the foot, the text centred above the dawn.
   `section.hero.night > div.sky.sky--horizon + div.wrap.hero-inner.centred + a.hero-next`. At its least height
   the hero centres its text with the prototype's room over and under it, the look the owner
   validated. When it grows with its text (a short window), its own padding takes over: under the
   lead come one gap, one row of large buttons and the inner padding, and the hero pads the rest of
   --hero-dawn-room, so the lead never reaches the dawn. The buttons, on their own fills, may stand
   in the first of it. The padding is the same over the text, so the text stays on the middle line.
   Nothing in it moves but the sky. */
.hero          { min-height: var(--hero-min-h); padding-block: calc(var(--hero-dawn-room) - var(--sp-5) - var(--control-h-lg) - var(--sp-8)); display: grid; align-items: center; background-image: var(--g-night-hero); }
.hero-inner    { padding-block: var(--sp-8); display: grid; gap: var(--sp-5); }
.hero-inner .display { max-width: var(--w-hero-text); }
/* The way down: the hero fills the first screen, so a chevron at its foot, on the dawn, says the
   page goes on and leads to its next section (`a.hero-next > svg.icon`, the hero's last child). It
   has no fill of its own: the owner chose the bare chevron, rising and sinking slowly, over a round
   button (2026-11-22). It stays in the flow: the text and the chevron share the hero's one cell,
   the text centred in it as before and the chevron, behind an auto margin that takes the room left
   over it, at its end, in the middle, so it stands the hero's own padding above the foot, inside
   the room the text keeps under its buttons. Its box is a touch target whatever the pointer. Its
   ink and its ring are the page's, not the night's: at that height the ground is the dawn, pale in
   the light theme, where the night's white would vanish. The focus selector opens on the element
   so that it outranks `.night :focus-visible` without reading as a rule of the night. Whoever asks
   for less motion gets a still chevron (section 10 stops every animation). */
.hero > .hero-inner,
.hero > .hero-next { grid-area: 1 / 1; }
.hero-next { margin-block-start: auto; justify-self: center; z-index: var(--z-content); display: grid; place-items: center; width: var(--touch-target); height: var(--touch-target); border-radius: var(--r-pill); color: var(--c-text); }
.hero-next .icon { width: var(--hero-next-icon); height: var(--hero-next-icon); animation: hero-next-bob var(--dur-hero-next) ease-in-out infinite alternate; }
a.hero-next:focus-visible { outline-color: var(--c-text); }
@keyframes hero-next-bob {
  from { transform: translateY(calc(-1 * var(--hero-next-travel))); }
  to   { transform: translateY(var(--hero-next-travel)); }
}
.night-brand   { color: var(--c-night-brand); }
/* Above a dawn the stars fade out before reaching it. */
.sky--horizon  { -webkit-mask-image: var(--mask-horizon); mask-image: var(--mask-horizon); }


/* == component: footer-columns == used by: home == */
/* The home page's footer (the only one with columns): the brand, then four columns of links, above
   the legal line every page's footer has (`.footer-legal`). A link is added here and in the legal
   line's own list when it belongs to both. */
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 3fr); gap: var(--sp-7); }
.footer-brand { display: grid; gap: var(--sp-2); align-content: start; }
.footer-cols  { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
.footer-col   { display: grid; gap: var(--sp-2); align-content: start; }
.footer-col a { color: var(--c-text-soft); transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--c-text); }
@media (max-width: 56rem) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-cols  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* == component: gallery == used by: home, game == */
/* Pictures in a grid, each in a frame that CLIPS it to its round corners (a square picture past a
   round corner has been rejected). A caption sits under its frame, never inside it. */
.gallery  { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--gallery-min), 1fr)); gap: var(--sp-4); }
.frame    { display: block; overflow: clip; border: var(--bw-hair) solid var(--c-line); border-radius: var(--r-md); }
.frame img { width: 100%; height: auto; }
.gallery figcaption { margin-top: var(--sp-2); color: var(--c-text-soft); font-size: var(--fs-small); text-align: center; }


/* == component: gallery--thumbs == used by: game == */
/* Screenshots: one shape, cropped to fill it; a framed link opens the picture and takes the accent. */
.gallery--thumbs .frame img { aspect-ratio: var(--ratio-thumb); object-fit: cover; }
a.frame { transition: border-color var(--dur-fast); }
a.frame:hover { border-color: var(--c-accent); }


/* == component: lang-only == used by: info, game == */
/* What is written once per language and shown in the page's: a legal document (French first, then
   English), a card's tag. The attribute alone says it: no class on the legal markup, which Rust
   tests read byte for byte. */
html[lang="en"] [data-lang-only="fr"],
html[lang="en"] [data-legal-lang="fr"],
html:not([lang="en"]) [data-lang-only="en"],
html:not([lang="en"]) [data-legal-lang="en"] { display: none; }


/* == component: fold-list == used by: community, info == */
/* A column of folding cards: the news, the changelog, the FAQ. */
.fold-list { display: grid; gap: var(--sp-3); }


/* == component: fold == used by: info == */
/* A card that opens on its summary (`details.fold > summary.fold-head + div.fold-body`): the FAQ's
   question, and under their own names the news article and the changelog entry
   community/content-render.js writes (section 6 holds what only they have). The card clips its content to its round corners, so a word too
   long for its line breaks rather than being cut, and the ring of its focused summary is drawn
   on the card (with the global ring, section 1). A ticket's message (message, below) is the same
   card, so the two share it. */
.fold,
.news-article,
.cl-entry,
.message      { background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--sh-card); overflow: clip; }
.fold,
.news-article,
.cl-entry     { overflow-wrap: anywhere; }
.fold-head,
.news-article-header,
.cl-entry-head { padding: var(--sp-4) var(--sp-5); display: flex; align-items: center; gap: var(--sp-4); list-style: none; cursor: pointer; user-select: none; }
.fold-head:focus-visible,
.news-article-header:focus-visible,
.cl-entry-head:focus-visible { outline: none; }
.fold-head::-webkit-details-marker,
.news-article-header::-webkit-details-marker,
.cl-entry-head::-webkit-details-marker { display: none; }
.fold-title,
.news-article-title,
.cl-title     { flex: 1; min-width: 0; font-size: var(--fs-h3); font-weight: var(--fw-strong); line-height: var(--lh-heading); }
.fold-chevron,
.news-article-chevron,
.cl-chevron   { flex: none; transition: transform var(--dur-fast); }
.fold[open] .fold-chevron,
.news-article[open] .news-article-chevron,
.cl-entry[open] .cl-chevron { transform: rotate(var(--half-turn)); }
.fold-body,
.news-article-body,
.cl-body      { padding: 0 var(--sp-5) var(--sp-5); }


/* == component: filter-bar == used by: community, info == */
/* The single-choice filter list-controls.js draws: `div.filter-bar` (the page writes the literal
   tag, a test pins it) holding `button.filter-btn[aria-pressed]` (the script writes the class, a
   test pins it). A filter button is a small secondary button: `.filter-btn` is in the .btn
   rules the way `.ov-lang-btn` is, and its pressed look is btn-pressed's. The bar is the .actions
   row (its selector is in that rule, since the page's literal tag cannot take a second class); it
   disappears when the script empties it (fewer than two choices). */
.filter-bar:empty { display: none; }


/* == component: prose == used by: community, info == */
/* Rich text: what community/content-render.js writes (p, strong, em, s, a, lists, empty paragraphs),
   and a whole legal document (h2 articles, h3, tables, code, hr, quotes). It styles BARE tags by
   descent, because the legal markup carries no classes that Rust tests could not read. Spacing is
   the grid's gap; a wrapper that only chooses a language (`[data-legal-lang]`) takes no box, so its
   children are the grid's items. The body is soft, what is bold and every heading is ink. A word
   with no place to break (a log line, a path) breaks where it must rather than run past the box.
   An article's `.news-content` and a changelog entry's `.cl-content` are this component under
   their names. */
.prose,
.news-content,
.cl-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); color: var(--c-text-soft); overflow-wrap: anywhere; }
.prose [data-legal-lang] { display: contents; }
.prose strong,
.news-content strong,
.cl-content strong { color: var(--c-text); }
.prose ul,
.news-content ul,
.cl-content ul { padding-left: var(--sp-5); list-style: disc; }
.prose ol,
.news-content ol,
.cl-content ol { padding-left: var(--sp-5); list-style: decimal; }
.prose li + li { margin-top: var(--sp-2); }
.prose li > :where(ul, ol) { margin-top: var(--sp-2); }
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 { color: var(--c-text); font-weight: var(--fw-heading); letter-spacing: var(--ls-heading); line-height: var(--lh-heading); }
/* The room over a heading is the grid's gap and its own margin, together a step of the scale: an
   article's title --sp-6 under what ends the article before it, a paragraph's title --sp-5. Below
   the paragraph's title, the deeper heads of an answer of Kara (partner/modules/kara-markdown.js)
   are a paragraph's title too: a narrow panel has no room for a scale of sizes. */
.prose h2 { margin-top: calc(var(--sp-6) - var(--sp-3)); font-size: var(--fs-h3); }
.prose h3,
.prose h4,
.prose h5,
.prose h6 { margin-top: var(--sp-3); margin-bottom: 0; font-size: var(--fs-body); }
.prose code { padding-inline: var(--sp-1); background-color: var(--c-wash); border-radius: var(--r-xs); color: var(--c-text); font-family: var(--font-mono); font-size: var(--fs-small); }
/* A block of code (Kara's answers, partner/modules/kara-markdown.js): its lines as written, in a
   hairline frame that shows on a card's ground and on a bubble's wash alike, scrolling inside
   itself rather than widening the column. Its code is the block's, with no ground of its own. */
.prose pre  { margin: 0; padding: var(--sp-3); overflow-x: auto; border-radius: var(--r-md); box-shadow: inset 0 0 0 var(--bw-hair) var(--c-line-strong); color: var(--c-text); font-family: var(--font-mono); font-size: var(--fs-small); white-space: pre; overflow-wrap: normal; }
.prose pre code { padding: 0; background-color: transparent; }
/* The browser's auto margins at the sides shrank the rule to nothing in the grid: it spans the column. */
.prose hr { margin-block: var(--sp-3); margin-inline: 0; border: none; border-top: var(--bw-hair) solid var(--c-line); }
/* A heading under a rule takes the rule's room as its own: the rule's margin and the grid's gap
   already make a step of the scale, and the heading's margin on top of them made none. */
.prose hr + :is(h2, h3, h4, h5, h6) { margin-top: 0; }
.prose blockquote { margin: 0; padding: var(--sp-4) var(--sp-5); background-color: var(--c-wash); border-radius: var(--r-md); }
/* A document's table is the site's table (section 7), written as a bare <table>. It spans its
   column and stays a table: given another display, WebKit stops announcing its rows, columns and
   headers. Only on a narrow screen, where it would push the page sideways, does it scroll inside
   itself (section 10). A cell of a document is a paragraph: its text starts at the top. */
.prose td,
.prose th { vertical-align: top; }


/* == component: legal == used by: info == */
/* A legal document's page: its column, the sentence that says which language prevails, the summary
   box in plain words, and the box the sale decree prescribes. Legal text is read in full ink. The
   summary box is set apart by the accent all round it (the rule after message, below). */
.legal-doc { max-width: var(--w-prose); margin-inline: auto; color: var(--c-text); }
.legal-note { color: var(--c-text-soft); font-size: var(--fs-small); }
.legal-plain {
  padding: var(--sp-4) var(--sp-5);
  display: grid;
  gap: var(--sp-3);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  color: var(--c-text);
}
.legal-plain h2,
.legal-plain h3 { margin-top: 0; }
/* The border is a legal obligation (decree 2022-946): visible, strong, and it clips what it holds. */
.legal-guarantee-box { padding: var(--sp-4) var(--sp-5); display: grid; gap: var(--sp-3); overflow: clip; border: var(--bw-strong) solid var(--c-text); border-radius: var(--r-md); }
/* The decree's text numbers its cases itself ("1°" to "5°"): a list marker would print the number
   twice, so the box's list carries none. */
.legal-guarantee-box ul { padding-left: 0; list-style: none; }


/* == component: message == used by: community == */
/* One message of a ticket's thread, written by ticket.js: a head (initial tile, author, optional
   badge, date), a body that is `.prose`. A message from the staff is set apart by the accent, as
   the boxes below are (an inset shadow follows the round corners; a border would not). The class
   names are not the admin panel's `tk-msg*`, which ds/panel.css styles for another markup. A head
   too wide for one row (a phone's) puts what does not fit on a second line rather than clip it.
   Its card is the fold's (fold, above). */
.thread          { display: grid; gap: var(--sp-4); }
/* A box set apart by the accent: the legal summary box in plain words, a game page's card that
   says where the game stands (`.card.card--edge`), and a ticket's message from the staff. A hairline of the accent all round it, drawn
   inside the box, as the danger panel of /account is set apart in its own tone (panel--danger,
   below). Never an edge on one side only: on a round box a one-sided band bends round the two
   corners it reaches (the layout audit's accent-edge rule). */
.legal-plain,
.card--edge,
.message--staff  { box-shadow: inset 0 0 0 var(--bw-hair) var(--c-accent), var(--sh-card); }
.message-head    { padding: var(--sp-4) var(--sp-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); border-bottom: var(--bw-hair) solid var(--c-line); }
.message-author  { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--fw-strong); }
.message-date    { margin-left: auto; color: var(--c-text-soft); font-size: var(--fs-small); white-space: nowrap; }
.message-body    { padding: var(--sp-4) var(--sp-5) var(--sp-5); }


/* == component: chat-msg == used by: the Kara widget (chat-widget.js), the partner space's Kara panel == */
/* A conversation with Kara: a thread that scrolls inside its box, and its bubbles, the reader's in
   the accent at the end, every other speaker's on the wash at the start: Kara's, and in the partner
   space another member's of the partner. The player-side widget and the partner space's panel draw
   the same thread with these rules, and the same three hopping dots while Kara answers. */
.chat-messages {
  min-height: 0;
  padding: var(--sp-3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  overflow-y: auto;
}

.chat-msg {
  max-width: var(--chat-bubble-w);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--fs-small);
  overflow-wrap: anywhere;
}
.chat-msg--kara,
.chat-msg--other { align-self: flex-start; background-color: var(--c-wash); }
.chat-msg--user  { align-self: flex-end; background: var(--g-accent) border-box; color: var(--c-on-accent); }

/* Kara answering. Under reduced motion the dots stand still, by the system's rule (section 10). */
.chat-typing { padding: var(--sp-2) var(--sp-3); align-self: flex-start; display: flex; align-items: center; gap: var(--sp-1); }
.chat-typing span {
  width: var(--chat-dot);
  height: var(--chat-dot);
  background-color: var(--c-text-soft);
  border-radius: var(--r-round);
  animation: ds-chat-hop var(--dur-bounce) infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: var(--chat-delay-2); }
.chat-typing span:nth-child(3) { animation-delay: var(--chat-delay-3); }

@keyframes ds-chat-hop {
  0%, 80%, 100% { transform: translateY(0); opacity: var(--a-faint); }
  40%           { transform: translateY(var(--chat-hop)); opacity: 1; }
}


/* == component: kara-fab == used by: the Kara widget (chat-widget.js), the partner space's and the admin panel's Kara panels == */
/* Kara's floating button at the window's bottom end: the public widget's round bubble (chat-widget.css,
   #chat-widget, .chat-fab) and the pill of the partner space and of the admin panel, her head and
   her name (partner/screens/kara-panel.js, admin/screens/kara-admin-panel.js), one place and one look. The pill floats over the space's
   content, under the header and its drawer, the menus, the dialog and the toasts, and the page's
   foot keeps the room under it, so the last control of a page always scrolls clear of it. It has
   no motion of its own beyond the bubble's lift, which reduced motion takes away (section 10). */
#chat-widget,
.kara-fab { position: fixed; right: var(--fab-end); bottom: var(--fab-bottom); }
.chat-fab,
.kara-fab {
  height: var(--control-h-lg);
  flex: none;
  background: var(--g-accent) border-box;
  color: var(--c-on-accent);
  border: none;
  box-shadow: var(--sh-glow);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}
.chat-fab:hover,
.kara-fab:hover { transform: translateY(var(--lift)); box-shadow: var(--sh-glow-strong); }
.kara-fab {
  z-index: var(--z-float);
  padding-inline: var(--sp-3) var(--sp-5);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  border-radius: var(--r-pill);
  font-size: var(--fs-body);
  font-weight: var(--fw-strong);
}
.kara-fab > .avatar { width: var(--fab-face); height: var(--fab-face); }
.kara-fab:not([hidden]) ~ .footer { padding-bottom: var(--fab-room); }


/* == component: dialog == used by: game == */
/* The shop's consent and confirmation, the card page's report: the terms dialog's box (the two
   share their rules). `dialog.dialog > .dialog-box`, the box being the form when there is one.
   The two rules below are the fallback of a browser that opens the dialog by its `open` attribute,
   and the selectors tests/boutique_consent.rs reads. */
.dialog:not([open]) { display: none; }
.dialog[open]       { display: block; }


/* == component: lotus-rain == used by: game == */
/* The rain of scripts/lotus-rain.js over the viewport, never in the way of a click (the fall is
   animated from the script; its two inline styles are named in SANCTIONED_INLINE_STYLES). */
.df-lotus-rain       { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.df-lotus-rain-piece { position: absolute; top: 0; height: auto; opacity: 0; will-change: transform, opacity; }


/* == component: list-state--compact == used by: game == */
/* A list's loading, empty and failure messages inside a panel, where the page-wide ones would add
   two rem of air above and below. */
.list-state--compact { padding-block: var(--sp-3); font-size: var(--fs-small); }


/* == component: avatar-lg == used by: info == */
/* A team member's face, on its canvas: square with eased corners, never a circle. */
.avatar--lg { width: var(--avatar-lg); height: var(--avatar-lg); }


/* == component: page-head-title == used by: game == */
/* A head's title with its game's logo on its left, on the same line:
   `div.page-head-title > img.page-head-logo + h1.display`. A game without a logo writes the title
   alone in it, and nothing marks the place. The logo is clipped by its own corners and nothing is
   painted under it: a tile's surface under an opaque picture shows through the anti-aliased edge
   of the clip as a pale ring, which on the night reads as a grey edge round the logo. The logo is
   as tall as the title's letters are set. */
.page-head-title { display: flex; align-items: center; gap: var(--sp-5); }
.page-head-logo  { width: var(--head-logo); height: var(--head-logo); flex: none; border-radius: var(--r-md); }


/* == component: shots == used by: game == */
/* The place kept for a game's screenshots: a heading over a `.gallery.gallery--thumbs`. While the
   gallery holds no picture the whole block takes no room, its heading included, so the page shows
   nothing unfinished; a framed picture added later shows the block on its own. */
.shots:not(:has(.frame)) { display: none; }


/* == component: meter == used by: game == */
/* How far a piece of work is, as a share: a label saying what is counted and the figure on one
   line, the bar under them. The bar is the native `progress` (its value and its maximum are what a
   screen reader announces, under the name `aria-labelledby` gives it); the figure beside it is for
   the eye and hidden from them. `div.meter-row > span.meter-label + span.meter-value + progress.meter`. */
.meter-row   { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--sp-2) var(--sp-3); font-size: var(--fs-small); }
.meter-label { color: var(--c-text-soft); }
.meter-value { font-weight: var(--fw-strong); font-variant-numeric: tabular-nums; }
.meter {
  grid-column: 1 / -1;
  width: 100%;
  height: var(--meter-h);
  display: block;
  overflow: hidden;
  appearance: none;
  background-color: var(--c-wash);
  color: var(--c-accent);
  border: none;
  border-radius: var(--r-pill);
}
/* The bar is the meter's colour (the accent, unless the page gives a level its own: the password
   meter of /account). */
.meter::-webkit-progress-bar   { background-color: var(--c-wash); }
.meter::-webkit-progress-value { background-color: currentColor; border-radius: var(--r-pill); }
.meter::-moz-progress-bar      { background-color: currentColor; border-radius: var(--r-pill); }


/* == component: tabs-column == used by: account == */
/* The tabs of a workspace standing in its side column, one under the other, on the page's ground:
   /account's, beside the open tab. Under --bp-stack the column is gone and they are the row again.
   In the column, a tab's words start where the words of the card above it start: a card's inset. */
@media (min-width: 56rem) {
  .tabs--column { width: 100%; padding: 0; display: grid; background: none; }
  .tabs--column .tab { padding-inline: var(--sp-5); }
}


/* == component: panel--danger == used by: account == */
/* A panel of what cannot be taken back (/account's deletion), apart from the rest: a hairline of the
   danger's ink all round it, drawn inside the card, and the same ink on its title. Never an edge on
   one side only: on a round box a one-sided band bends round the two corners it reaches (ACC-2). */
.panel--danger { box-shadow: inset 0 0 0 var(--bw-hair) var(--c-danger-ink), var(--sh-card); }
.panel--danger .panel-title { color: var(--c-danger-ink); }


/* == component: notice--danger == used by: auth, account == */
/* A standing notice of what counts against the reader: a name the moderation wants changed, codes
   that will never be shown again, a balance a deletion forfeits. The danger's ink on its wash. */
.notice--danger { background-color: var(--c-danger-wash); color: var(--c-danger-ink); }

/* == component: totp == used by: auth, account == */
/* The enrolment of a second factor: the QR code beside its manual code, then the recovery codes.
   The code a phone scans is dark on light in both themes, as a camera reads it, in a frame of its
   own that starts on its block's column (on the light ground its light margin is the card's
   colour). */
.totp-setup  { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--sp-5); }
.totp-qr     { width: var(--qr-size); height: var(--qr-size); padding: var(--sp-3); flex: none; background-color: var(--c-qr-ground); border: var(--bw-hair) solid var(--c-line); border-radius: var(--r-md); }
.totp-qr svg { width: 100%; height: 100%; }
.totp-manual { flex: 1 1 var(--card-min); min-width: 0; display: grid; gap: var(--sp-3); justify-items: start; }
.totp-secret,
.totp-codes  { padding: var(--sp-3) var(--sp-4); background-color: var(--c-wash); border-radius: var(--r-md); color: var(--c-text); font-family: var(--font-mono); font-size: var(--fs-small); }
.totp-secret { width: 100%; overflow-wrap: anywhere; }
.totp-codes  { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2) var(--sp-4); }
.totp-codes li { letter-spacing: var(--ls-label); user-select: all; }


/* ── 10. Small screens, touch, motion ───────────────────────── */

/* A phone: the floating button closer to the window's corner (--bp-phone). */
@media (max-width: 25rem) {
  #chat-widget,
  .kara-fab { right: var(--fab-end-phone); bottom: var(--fab-bottom-phone); }
}

@media (max-width: 56rem) {
  .terms-grid, .form-grid, .panel-fact { grid-template-columns: minmax(0, 1fr); }
  .panel-fact { gap: var(--sp-1); }
  .prose table { display: block; overflow-x: auto; }
}

/* The phone's drawer: the whole window under the bar, opaque, sliding in and out. nav.js waits
   for the closing animation's end before it hides the drawer. Never `overflow: hidden` on the
   body to hold the page still: iOS then stops a fixed element from scrolling at all. */
@media (max-width: 820px) {
  .nav { gap: var(--sp-3); }
  .nav-overflow {
    position: fixed;
    top: var(--nav-h);
    inset-inline: 0;
    width: auto;
    max-height: calc(var(--viewport-h) - var(--nav-h));
    padding: var(--sp-4) var(--gutter) var(--sp-6);
    background: var(--c-bg);
    border-radius: 0;
    box-shadow: none;
    animation: ds-drawer-in var(--dur-normal) var(--ease-out) both;
  }
  .nav-overflow.nav-closing { animation: ds-drawer-out var(--dur-normal) var(--ease-out) both; }
}

/* A finger gets the least tap area whatever the target is drawn at. A compact button or field is
   the finger's size on a touch screen already (tokens.css, --control-h-sm). What is drawn smaller
   keeps its look, and a layer centred on it takes the taps: a tab, a chip and its remove button,
   a grip, the brand, a link standing alone (the footer's, the way back, a table cell's, a badge
   that links to its source, a tag),
   a folding block's summary, the Kara panel's buttons, the shop's carousel dots, a column's name
   that sorts (ds/panel.css, .sort-button). The password
   control is positioned already, which anchors its layer just as well. A box beside its words
   takes the taps on its label, which stands a finger tall. */
@media (pointer: coarse) {
  .tab, .tag-chip, .tag-slot-chip, .panel-chip-remove, .tag-slot-remove, .adm-drag-handle, .nav-brand,
  .footer-legal a, .footer-col a, .page-back a, .link, a.badge, .tags a, .adm-collapsible > summary,
  .chat-close-btn, .chat-send-btn, .carousel-dot, .sort-button { position: relative; }
  .tab::after, .tag-chip::after, .tag-slot-chip::after, .panel-chip-remove::after, .tag-slot-remove::after,
  .adm-drag-handle::after, .nav-brand::after, .footer-legal a::after, .footer-col a::after, .page-back a::after,
  .link::after, a.badge::after, .tags a::after, .adm-collapsible > summary::after, .chat-close-btn::after, .chat-send-btn::after,
  .carousel-dot::after, .sort-button::after, .pw-toggle::after {
    content: "";
    position: absolute;
    top: var(--centre);
    left: var(--centre);
    width: max(100%, var(--touch-target));
    height: max(100%, var(--touch-target));
    transform: translate(calc(-1 * var(--centre)), calc(-1 * var(--centre)));
  }
  .check { min-height: var(--touch-target); }
  /* A box standing alone under its field's label takes the taps on that label too. */
  .field:has(> input[type="checkbox"]) > label { min-height: var(--touch-target); }
  /* A menu's entries stand one under the other, so a layer of one would take its neighbour's taps:
     each entry is drawn as tall as a finger needs instead, its words in its middle. Every entry of
     every menu of the system: the language list's and the account menu's, the header's link
     groups', the drawer's links, all drawn by one rule at rest (section 4). A drop-down's options
     get the same where the page draws its list (section 3): a list the browser draws itself is
     its own, and no option rule reaches it. */
  .menu-item,
  .nav-dropdown-menu a,
  .nav-overflow a { min-height: var(--touch-target); display: flex; align-items: center; }
}

/* A visitor who asked the system for less motion gets none: no transition and no animation, the
   smooth scroll included. A state changes at once and the layout a script measures right after a
   class change is the one it lands on (an instant transition left every change briefly under way,
   and a table's measure read half of one). Each script that waits for the end of a motion does
   without it: the drawer hides at once when it runs no animation (nav.js), a toast leaves on its
   timer (admin/modules/toast.js), the theme changes at once (lang.js), the sky and the solar system
   are drawn still (sky.js, canvas-scene.js), and a script that moves something itself (a smooth
   scroll, the skin on /account) asks lang.js first (dfPrefersLessMotion, dfScrollBehavior). No
   element is excepted from the rule. `!important` wins over every rule that declares a motion,
   whatever its selector, as the theme's freeze does (section 1). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
