/* ============================================================================
   Lintje — colour themes

   Document level only: linked by the page next to `tokens.css`, never imported into TypeScript,
   so the two properties are declared once on the document and inherit into every shadow root.
   `tokens.css` must not declare them: a re-declaration on an element host would beat the
   inherited value.

   A theme sets exactly `--primary` and `--accent`. The dark tints are derived in `tokens.css`
   at a fixed lightness, sized for the themes here.

   To add a theme: one block here and its row in `SPECIFICATION` in `colour-scheme.test.ts`,
   which checks that its tints clear their floors.
   ========================================================================= */

/* The default theme: a page that sets no `data-theme` still has a primary. */
:root {
  --primary: #01689B;
  --accent: #E17000;
}

/* Rijksoverheid — donkerblauw. Not lintblauw (`#154273`): the ribbon's own colour would vanish
   in the menu filled with it. */
[data-theme='rijksoverheid'] {
  --primary: #01689B;
  --accent: #E17000;
}

/* In the new house style the menu is white and the ribbon stands on white, so Rijksoverheid takes
   the house style's own primary, lintblauw. */
:root[data-style-version='new']:not([data-theme]),
:root[data-style-version='new'][data-theme='rijksoverheid'] {
  --primary: #154273;
}

/* Koninklijke Marechaussee — Nassau blue. */
[data-theme='marechaussee'] {
  --primary: #0E3B6E;
  --accent: #E17000;
}

/* Koninklijke Landmacht — dark green. */
[data-theme='landmacht'] {
  --primary: #00423C;
  --accent: #E17000;
}

/* Koninklijke Marine — mid blue. */
[data-theme='marine'] {
  --primary: #0E61AA;
  --accent: #E17000;
}

/* Koninklijke Luchtmacht — deep blue. */
[data-theme='luchtmacht'] {
  --primary: #005187;
  --accent: #E17000;
}

/* Defensie — orange primary, so the accent is the blue instead. Lighter than the line tint's
   lightness, so its line is the primary itself. */
[data-theme='defensie'] {
  --primary: #E17000;
  --accent: #007BC7;
}

/* ============================================================================
   Lintje — design tokens

   Colour is in three groups: themable UI colour (a theme sets only `--primary` and `--accent`, in
   `themes.css`), fixed data colour (`--data-*`, identical in every
   mode and theme except the two grays) and fixed status colour (`--status-*`).

   Three layers, one direction: component -> semantic (`--color-*`) -> primitives. Only the
   primitive blocks may hold a colour literal. To change a colour in one mode, re-point the
   layer-2 name inside `[data-mode='dark']`.

   `color-mix(in srgb, …)` and the relative `oklch(from …)` need Chrome/Edge 122+, Firefox 128+
   or Safari 18+;
   `colour-scheme.test.ts` repeats the arithmetic. The `@font-face` rules live in `fonts.css`:
   they cannot work inside a shadow root.
   ========================================================================= */

/* ============================================================================
   Layer 1 — primitives (the only literals)
   ========================================================================= */
:root {
  /* --- Neutral (light). The one mode-dependent primitive family ----------
     Neutral-5 is the cool-grey step 600, not 500, because it carries muted TEXT:
     #64748B is 4.34:1 on neutral-2, #475569 is 6.92:1. */
  --neutral-0: #FFFFFF;
  --neutral-1: #F8FAFC;
  --neutral-2: #F1F5F9;
  --neutral-3: #E2E8F0;
  --neutral-4: #94A3B8;
  --neutral-5: #475569;
  --neutral-6: #0F172A;

  /* --- Fixed ink ---------------------------------------------------------
     The same in both modes because it sits on a fill, not on the page. */
  --ink-white: #FFFFFF;
  --ink-black: #0F172A;
  --alpha-white-82: rgba(255, 255, 255, 0.82);
  --alpha-white-45: rgba(255, 255, 255, 0.45);
  --alpha-white-16: rgba(255, 255, 255, 0.16);

  /* --- Focus, earlier house style ----------------------------------------
     Its own constant: it must not move with the accent or the attention status. The orange is
     3.22:1 on white and falls short on the light grey surfaces and the status tints; the deep
     orange is the smallest share of black that reaches 3:1 on all of them. */
  --focus-orange: #E17000;
  --focus-orange-deep: color-mix(in srgb, var(--focus-orange), black 9%);

  /* --- The ribbon --------------------------------------------------------
     Lintblauw, and the Rijkshuisstijl's own lighter tint for the ribbon in the logo in dark. */
  --ribbon-blue: #154273;
  --ribbon-blue-dark: #004A8D;

  /* --- Data (fixed Rijkshuisstijl, identical in light, dark and every theme)
     The two grays follow the mode: as fixed literals the comparison line landed at 2.69:1
     on the dark surface. Light #475569 / #94A3B8, dark #B0B0B0 / #808080. The variables
     stand in the order of `tokens/colors.ts`, the one list of their names. */
  --data-sky-blue: #007BC7;
  --data-dark-yellow: #FFB612;
  --data-red: #D52B1E;
  --data-green: #39870C;
  --data-mint-green: #76D2B6;
  --data-violet: #A90061;
  --data-orange: #E17000;
  --data-pink: #F092CD;
  --data-dark-green: #275937;
  --data-purple: #42145F;
  --data-ruby-red: #CA005D;
  --data-yellow: #F9E11E;
  --data-dark-brown: #673328;
  --data-brown: #94710A;
  --data-dark-blue: #01689B;
  --data-light-blue: #8FCAE7;
  --data-moss-green: #777B00;
  /* Sky blue's ladder is written out: the map's areas draw in from the land to these classes,
     and Chromium interpolates a `color-mix()` target wrongly (the land's RGB numbers taken as
     oklab), so the areas flash yellow. The values are its mix with white; the test checks. */
  --data-sky-blue-75: #409CD5;
  --data-sky-blue-60: #66B0DD;
  --data-sky-blue-45: #8CC4E6;
  --data-sky-blue-30: #B2D7EE;
  --data-sky-blue-15: #D9EBF7;
  --data-comparison: var(--neutral-5);
  --data-other: var(--neutral-4);
  /* A light colour as a line or a mark reaches 3:1 by an edge: the colour halfway to black,
     written out so it never follows a mix. Dark yellow's is a dark gold of its own; yellow is
     never text. */
  --data-dark-yellow-edge: #B07A00;
  --data-mint-green-edge: #3B695B;
  --data-orange-edge: #703800;
  --data-pink-edge: #784966;
  --data-yellow-edge: #7C700F;
  --data-light-blue-edge: #476573;
  /* Grid and emphasis follow the surface, like the two grays. */
  --data-grid: var(--neutral-3);
  --data-emphasis: var(--neutral-6);

  /* --- Status (fixed) ---------------------------------------------------- */
  --status-success: #39870C;
  --status-warning: #FFB612;
  --status-attention: #E17000;
  --status-error: #D52B1E;
  --status-info: #007BC7;

  /* Black at the alphas the shadows and overlays use; the digits are the alpha in percent. */
  --alpha-black-08: rgba(0, 0, 0, 0.08);
  --alpha-black-14: rgba(0, 0, 0, 0.14);
  --alpha-black-16: rgba(0, 0, 0, 0.16);
  --alpha-black-18: rgba(0, 0, 0, 0.18);
  --alpha-black-22: rgba(0, 0, 0, 0.22);
  --alpha-black-40: rgba(0, 0, 0, 0.4);
  --alpha-black-55: rgba(0, 0, 0, 0.55);
  --alpha-black-60: rgba(0, 0, 0, 0.6);
  /* Cool Gray 900 at 80 %: the house style's veil under a dialog. */
  --alpha-slate-80: rgba(15, 23, 42, 0.8);
}

/* ============================================================================
   Layer 1 — derivations

   Mixes of the primitives and of the theme's two properties. The tint ladder is 75 / 60 / 45
   / 30 / 15 % of the base over white; every data colour carries the complete ladder.
   ========================================================================= */
:root {
  /* Darker than the primary in light: a lighter fill under white text lost contrast (2.80:1 on
     orange). The dark block re-declares it lighter. */
  --primary-hover: color-mix(in srgb, var(--primary), black 30%);
  --primary-line: color-mix(in srgb, var(--primary), white 22%);
  /* The dark tints lift only the perceived lightness, so they keep the primary's colour; a mix
     with white greys it. Each lightness is the smallest hundredth that clears its floor in every
     theme: 3:1 on #282828 (the page) for a line, 4.5:1 on #333333 (neutral-2), the lightest neutral
     surface a word stands on, for text. A primary that is lighter already keeps its own. */
  --primary-tint: oklch(from var(--primary) max(l, 0.55) c h);
  --primary-tint-text: oklch(from var(--primary) max(l, 0.71) c h);
  /* A wash behind a word or under a band, never a colour that reads by itself. Fixed in
     perceived lightness, so it is equally light in every theme and keeps the primary's hue; an
     sRGB mix with white greys a dark primary. The chroma cap keeps every theme inside sRGB. */
  --primary-wash: oklch(from var(--primary) 0.955 min(c, 0.02) h);

  --data-dark-yellow-75: color-mix(in srgb, var(--data-dark-yellow) 75%, white);
  --data-dark-yellow-60: color-mix(in srgb, var(--data-dark-yellow) 60%, white);
  --data-dark-yellow-45: color-mix(in srgb, var(--data-dark-yellow) 45%, white);
  --data-dark-yellow-30: color-mix(in srgb, var(--data-dark-yellow) 30%, white);
  --data-dark-yellow-15: color-mix(in srgb, var(--data-dark-yellow) 15%, white);

  --data-red-75: color-mix(in srgb, var(--data-red) 75%, white);
  --data-red-60: color-mix(in srgb, var(--data-red) 60%, white);
  --data-red-45: color-mix(in srgb, var(--data-red) 45%, white);
  --data-red-30: color-mix(in srgb, var(--data-red) 30%, white);
  --data-red-15: color-mix(in srgb, var(--data-red) 15%, white);

  --data-green-75: color-mix(in srgb, var(--data-green) 75%, white);
  --data-green-60: color-mix(in srgb, var(--data-green) 60%, white);
  --data-green-45: color-mix(in srgb, var(--data-green) 45%, white);
  --data-green-30: color-mix(in srgb, var(--data-green) 30%, white);
  --data-green-15: color-mix(in srgb, var(--data-green) 15%, white);

  --data-mint-green-75: color-mix(in srgb, var(--data-mint-green) 75%, white);
  --data-mint-green-60: color-mix(in srgb, var(--data-mint-green) 60%, white);
  --data-mint-green-45: color-mix(in srgb, var(--data-mint-green) 45%, white);
  --data-mint-green-30: color-mix(in srgb, var(--data-mint-green) 30%, white);
  --data-mint-green-15: color-mix(in srgb, var(--data-mint-green) 15%, white);

  --data-violet-75: color-mix(in srgb, var(--data-violet) 75%, white);
  --data-violet-60: color-mix(in srgb, var(--data-violet) 60%, white);
  --data-violet-45: color-mix(in srgb, var(--data-violet) 45%, white);
  --data-violet-30: color-mix(in srgb, var(--data-violet) 30%, white);
  --data-violet-15: color-mix(in srgb, var(--data-violet) 15%, white);

  --data-orange-75: color-mix(in srgb, var(--data-orange) 75%, white);
  --data-orange-60: color-mix(in srgb, var(--data-orange) 60%, white);
  --data-orange-45: color-mix(in srgb, var(--data-orange) 45%, white);
  --data-orange-30: color-mix(in srgb, var(--data-orange) 30%, white);
  --data-orange-15: color-mix(in srgb, var(--data-orange) 15%, white);

  --data-pink-75: color-mix(in srgb, var(--data-pink) 75%, white);
  --data-pink-60: color-mix(in srgb, var(--data-pink) 60%, white);
  --data-pink-45: color-mix(in srgb, var(--data-pink) 45%, white);
  --data-pink-30: color-mix(in srgb, var(--data-pink) 30%, white);
  --data-pink-15: color-mix(in srgb, var(--data-pink) 15%, white);

  --data-dark-green-75: color-mix(in srgb, var(--data-dark-green) 75%, white);
  --data-dark-green-60: color-mix(in srgb, var(--data-dark-green) 60%, white);
  --data-dark-green-45: color-mix(in srgb, var(--data-dark-green) 45%, white);
  --data-dark-green-30: color-mix(in srgb, var(--data-dark-green) 30%, white);
  --data-dark-green-15: color-mix(in srgb, var(--data-dark-green) 15%, white);

  --data-purple-75: color-mix(in srgb, var(--data-purple) 75%, white);
  --data-purple-60: color-mix(in srgb, var(--data-purple) 60%, white);
  --data-purple-45: color-mix(in srgb, var(--data-purple) 45%, white);
  --data-purple-30: color-mix(in srgb, var(--data-purple) 30%, white);
  --data-purple-15: color-mix(in srgb, var(--data-purple) 15%, white);

  --data-ruby-red-75: color-mix(in srgb, var(--data-ruby-red) 75%, white);
  --data-ruby-red-60: color-mix(in srgb, var(--data-ruby-red) 60%, white);
  --data-ruby-red-45: color-mix(in srgb, var(--data-ruby-red) 45%, white);
  --data-ruby-red-30: color-mix(in srgb, var(--data-ruby-red) 30%, white);
  --data-ruby-red-15: color-mix(in srgb, var(--data-ruby-red) 15%, white);

  --data-yellow-75: color-mix(in srgb, var(--data-yellow) 75%, white);
  --data-yellow-60: color-mix(in srgb, var(--data-yellow) 60%, white);
  --data-yellow-45: color-mix(in srgb, var(--data-yellow) 45%, white);
  --data-yellow-30: color-mix(in srgb, var(--data-yellow) 30%, white);
  --data-yellow-15: color-mix(in srgb, var(--data-yellow) 15%, white);

  --data-dark-brown-75: color-mix(in srgb, var(--data-dark-brown) 75%, white);
  --data-dark-brown-60: color-mix(in srgb, var(--data-dark-brown) 60%, white);
  --data-dark-brown-45: color-mix(in srgb, var(--data-dark-brown) 45%, white);
  --data-dark-brown-30: color-mix(in srgb, var(--data-dark-brown) 30%, white);
  --data-dark-brown-15: color-mix(in srgb, var(--data-dark-brown) 15%, white);

  --data-brown-75: color-mix(in srgb, var(--data-brown) 75%, white);
  --data-brown-60: color-mix(in srgb, var(--data-brown) 60%, white);
  --data-brown-45: color-mix(in srgb, var(--data-brown) 45%, white);
  --data-brown-30: color-mix(in srgb, var(--data-brown) 30%, white);
  --data-brown-15: color-mix(in srgb, var(--data-brown) 15%, white);

  --data-dark-blue-75: color-mix(in srgb, var(--data-dark-blue) 75%, white);
  --data-dark-blue-60: color-mix(in srgb, var(--data-dark-blue) 60%, white);
  --data-dark-blue-45: color-mix(in srgb, var(--data-dark-blue) 45%, white);
  --data-dark-blue-30: color-mix(in srgb, var(--data-dark-blue) 30%, white);
  --data-dark-blue-15: color-mix(in srgb, var(--data-dark-blue) 15%, white);

  --data-light-blue-75: color-mix(in srgb, var(--data-light-blue) 75%, white);
  --data-light-blue-60: color-mix(in srgb, var(--data-light-blue) 60%, white);
  --data-light-blue-45: color-mix(in srgb, var(--data-light-blue) 45%, white);
  --data-light-blue-30: color-mix(in srgb, var(--data-light-blue) 30%, white);
  --data-light-blue-15: color-mix(in srgb, var(--data-light-blue) 15%, white);

  --data-moss-green-75: color-mix(in srgb, var(--data-moss-green) 75%, white);
  --data-moss-green-60: color-mix(in srgb, var(--data-moss-green) 60%, white);
  --data-moss-green-45: color-mix(in srgb, var(--data-moss-green) 45%, white);
  --data-moss-green-30: color-mix(in srgb, var(--data-moss-green) 30%, white);
  --data-moss-green-15: color-mix(in srgb, var(--data-moss-green) 15%, white);

  /* 15 % of the status colour over the surface, so one declaration covers both modes. */
  --status-success-bg: color-mix(in srgb, var(--status-success) 15%, var(--neutral-0));
  --status-warning-bg: color-mix(in srgb, var(--status-warning) 15%, var(--neutral-0));
  --status-attention-bg: color-mix(in srgb, var(--status-attention) 15%, var(--neutral-0));
  --status-error-bg: color-mix(in srgb, var(--status-error) 15%, var(--neutral-0));
  --status-info-bg: color-mix(in srgb, var(--status-info) 15%, var(--neutral-0));
}

/* ============================================================================
   Layers 2 and 3 — semantic and component tokens (light)

   No colour literal below this line.
   ========================================================================= */
:root {
  /* --- Typography -------------------------------------------------------- */
  --font-ui: 'RijksSans', 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Source Code Pro', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* The house style's scale: 12, 14, 16, 20, 24, 32, 40, 48 and 64 px, in rem. The names follow
     the page's hierarchy (the page's h1, a title's h2, a tile's title); prose maps its six
     heading levels onto the steps. */
  --text-dashboard: 700 1.25rem/1.2 var(--font-ui);
  --text-h1: 700 1.75rem/1.2 var(--font-ui);
  --text-h1-mobile: 700 1.5rem/1.15 var(--font-ui);
  --text-h1-display: 700 2.5rem/1.1 var(--font-ui);
  /* The two largest steps: a start page's one line, a figure that reads across a room. */
  --text-display: 700 3rem/1.1 var(--font-ui);
  --text-display-large: 700 4rem/1.05 var(--font-ui);
  /* A section's heading on a long page, between the page's title and a tile's. */
  --text-section: 700 1.5rem/1.25 var(--font-ui);
  --text-h2: 700 1.25rem/1.25 var(--font-ui);
  --text-tile-title: 700 1rem/1.3 var(--font-ui);
  --text-kpi: 700 2rem/1.1 var(--font-ui);
  --text-kpi-mobile: 700 1.5rem/1.1 var(--font-ui);
  --text-kpi-secondary: 700 1.25rem/1.1 var(--font-ui);
  /* The value of a fact in a cell: one step above the body, bold, under the key figure. */
  --text-cell: 700 1.125rem/1.3 var(--font-ui);
  --text-body: 400 1rem/1.5 var(--font-ui);
  /* Larger than body, read at a glance: the text being translated, a hero's introduction, a
     transcript in its large size. */
  --text-translation: 400 1.25rem/1.5 var(--font-ui);
  --text-ui: 400 1rem/1.4 var(--font-ui);
  /* The footer's tagline: the house style's payoff, italic in the regular weight, a step under
     its 36–40 px, as an application's foot asks less room than a site's. */
  --text-tagline: italic 400 2rem/1.25 var(--font-ui);
  /* Secondary text is one token: a hint, a sub-line, a meta line, a date. */
  --text-small: 400 0.875rem/1.45 var(--font-ui);
  /* Former names of the same token; they go with the next breaking release. */
  --text-meta: var(--text-small);
  --text-tile-sub: var(--text-small);
  --text-table: 400 1rem/1.4 var(--font-ui);
  --text-table-head: 700 0.875rem/1.3 var(--font-ui);
  --text-axis: 400 0.75rem/1.2 var(--font-ui);

  --label-size: 0.875rem;
  --label-weight: 700;
  --label-tracking: 0.08em;
  --kpi-tracking: -0.02em;

  /* --- Spacing (4 px scale) --------------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;

  /* --- Component sizes --------------------------------------------------- */
  --h-topbar: 3.5rem;
  --h-contextbar: 3rem;
  --h-mobile-header: 4.5rem;
  /* One tab of the tab bar below 768 px: the glyph, the label and the line under them. */
  --h-tab-bar: 4rem;
  /* A sheet on a phone at most: a strip of veil stays above it, so it reads as a sheet. */
  --h-sheet: 88dvh;
  --h-control: 3rem;
  --h-button: 3rem;
  --h-button-compact: 2.5rem;
  --h-button-chrome: 2.5rem;
  --h-icon-button: 2.5rem;
  --h-chip: 2rem;
  --h-chip-field: 1.75rem;
  --h-nav-row: 3rem;
  --h-nav-head: 6.5rem;
  --h-table-row: 3rem;
  --h-touch: 3rem;
  /* The smallest pointer target. A box that draws smaller reaches it through a
     transparent hit area (`::after`, negative inset). */
  --h-target: 3rem;
  /* The WCAG AA floor: a link in a list of text links (one line of text, as on rijksoverheid.nl)
     and a finger's hit area on a split pane's strip. */
  --h-target-text: 1.5rem;
  /* The two dense exceptions to the target: a date picker day cell and a listbox option row. */
  --h-option: 2.5rem;
  /* The sparkline of a KPI: a line and its area under the figure, with no axes. */
  --h-sparkline: 2rem;

  --w-nav: 288px;
  --w-rail: 72px;
  --w-text: 760px;
  --w-message: 560px;
  /* A language choice in the translator's bar. */
  --w-translator-language: 18rem;
  /* The widest the page's content gets. A host sets `--lintje-content-width` to change it. */
  --w-content: 1360px;
  --nav-edge: 4px;
  /* The ribbon is the unit: 48 px, 40 on a phone. Both bars are in rem, so they grow with the
     reader's text size. */
  --w-ribbon: 3rem;
  --h-logobar: calc(2.5 * var(--w-ribbon));
  /* The top bar's height: what pins under the bar measures `--h-topbar`. */
  --h-navbar: var(--h-topbar);
  /* How far what follows the hero stands over its band's lower edge. */
  --hero-overlap: var(--space-10);
  /* The widest the picture beside the hero's text gets: four of the twelve columns at 1440. */
  --w-hero-aside: 400px;
  /* The least height of a hero with a photo behind its text, so the photo shows above the block. */
  --h-hero-backdrop: 30rem;
  /* The narrowest a card gets in a card list before the list drops a column. */
  --w-card: 320px;
  /* The same for a horizontal card, whose picture takes a column of its own. */
  --w-card-wide: 480px;
  --w-card-media: 200px;
  --w-card-logo: 3.5rem;
  --w-card-logo-wide: 5rem;
  /* The narrowest thumbnail under a gallery's large picture. */
  --w-gallery-thumb: 120px;
  /* The narrowest column of links in a footer before the columns stand under each other. */
  --w-footer-column: 220px;
  /* The widest a one-line field grows when it fills its column: a select. */
  --w-field: 480px;

  --page-pad-y: 32px;
  --page-pad-x: 24px;
  /* What a full-width bar or the content adds to its side padding so what stands in it keeps to
     `--w-content`; the percentage is taken of the box the bar stands in. */
  --page-gutter: max(
    0px,
    calc((100% - var(--lintje-content-width, var(--w-content)) - 2 * var(--page-pad-x)) / 2)
  );
  --grid-gutter: 24px;
  --tile-pad-y: 20px;
  --tile-pad-x: 24px;
  --chart-h-main: 260px;
  --chart-h-small: 180px;
  --chart-h-expanded: 560px;
  /* A translucent fill of a data colour, the same in both modes: its line carries the 3:1. */
  --chart-translucent: 0.25;

  /* Sticky context = top bar + summary bar. */
  --h-sticky: calc(var(--h-topbar) + var(--h-contextbar));

  /* The corners: of a framed block (a card, a tile, a dialog), of a button, a field and the label on
     a photo, and the one large corner of a drawer, a narrow band and a photo wall. All square in
     the earlier house style; the new style (`data-style-version="new"`) sets them below, the large
     one with `data-style-new-corner`. */
  --radius: 0px;
  --radius-control: 0px;
  --radius-corner: 0px;
  /* The quotation in running text: the house style's one corner as a quote mark, top left. */
  --radius-quote: 24px;
  --radius-round: 50%;

  --shadow-sticky: 0 2px 6px var(--alpha-black-08);
  --shadow-sticky-up: 0 -2px 6px var(--alpha-black-08);
  --shadow-popover: 0 4px 16px var(--alpha-black-14);
  --shadow-nav: 2px 0 8px var(--alpha-black-08);
  --shadow-chart-hover: 0 1px 4px var(--alpha-black-22);
  --shadow-scroll-start: inset 12px 0 10px -10px var(--alpha-black-18);
  --shadow-scroll-end: inset -12px 0 10px -10px var(--alpha-black-18);
  /* A group of cards in a graph: two edges stepped out behind the card, without blur. */
  --shadow-stack:
    4px 4px 0 -1px var(--color-bg-surface), 4px 4px 0 0 var(--color-border-default),
    8px 8px 0 -1px var(--color-bg-surface), 8px 8px 0 0 var(--color-border-default);

  --color-overlay-page: var(--alpha-black-60);
  --color-overlay-nav: var(--alpha-black-16);

  /* The ring: 3 px at 2 px from the box. Where the outside would be clipped it sits inside the
     box, by `--focus-inset`. */
  --focus-width: 3px;
  --focus-offset: 2px;
  --focus-inset: calc(-1 * var(--focus-width));

  /* --- Motion ------------------------------------------------------------ */
  /* `@kind other` marks these for design tooling as neither colors, sizes nor type; the library
     CSS ships unminified so the notes reach it. */
  --ease-in-motion: cubic-bezier(0.2, 0, 0, 1); /* @kind other */
  --ease-out-motion: cubic-bezier(0.4, 0, 1, 1); /* @kind other */
  /* A fade that runs both ways: straight, so out is in played backwards; a curve leaves a ghost. */
  --ease-fade: linear; /* @kind other */
  --dur-base: 200ms; /* @kind other */
  --dur-hover: 120ms; /* @kind other */
  --dur-popover: var(--dur-base); /* @kind other */
  --dur-submenu: 300ms; /* @kind other */
  --dur-toast: var(--dur-base); /* @kind other */
  --dur-scrim: var(--dur-base); /* @kind other */
  --dur-rail: var(--dur-base); /* @kind other */
  --dur-collapse: var(--dur-base); /* @kind other */
  --dur-modal: var(--dur-base); /* @kind other */
  --dur-sheet: var(--dur-base); /* @kind other */
  --dur-kpi: var(--dur-base); /* @kind other */
  --dur-badge: 300ms; /* @kind other */
  --dur-draw: 900ms; /* @kind other */
  --dur-data-label: 300ms; /* @kind other */
  --dur-layer: 400ms; /* @kind other */
  --dur-skeleton: 1200ms; /* @kind other */
  --dur-wave: 600ms; /* @kind other */
  /* A graph's nodes moving to their new place, after another layout or an opened branch. */
  --dur-graph: 320ms; /* @kind other */

  /* --- Semantic: surfaces ------------------------------------------------ */
  --color-bg-page: var(--neutral-1);
  --color-bg-surface: var(--neutral-0);
  --color-bg-subtle: var(--neutral-2);
  --color-bg-title: var(--neutral-1);
  /* Between steps 2 and 3: on the cool-grey ramp neutral-2 sits too close to the page to read
     as a band. Without the ramp's blue: on a band this wide it reads as a colour. */
  --color-bg-filter: oklch(from color-mix(in srgb, var(--neutral-2), var(--neutral-3)) l 0 h);
  --color-bg-selected: var(--neutral-2);
  --color-bg-inset: var(--neutral-2);

  /* --- Semantic: text ---------------------------------------------------- */
  --color-text-primary: var(--neutral-6);
  --color-text-secondary: var(--neutral-6);
  --color-text-muted: var(--neutral-5);
  --color-text-inverse: var(--neutral-0);
  --color-text-disabled: var(--neutral-4);
  /* A placeholder must stay readable: 4.5:1 on the surface in both modes. */
  --color-text-placeholder: var(--neutral-5);
  --color-text-on-fill: var(--ink-white);
  --color-text-on-light-fill: var(--ink-black);
  --color-qr-bg: var(--ink-white);
  --color-qr-fg: var(--ink-black);
  --color-media-bg: var(--ink-black);

  /* --- Semantic: borders ------------------------------------------------- */
  --color-border-default: var(--neutral-3);
  --color-border-strong: var(--neutral-3);
  --color-border-filter: oklch(from var(--neutral-3) l 0 h);
  --color-border-heavy: var(--neutral-4);
  /* The resting edge of a field box: 3:1 (WCAG 1.4.11) on the surface and the filter band. */
  --color-border-field: var(--neutral-5);
  /* The toggle's off track: the field's grey in both house styles, so off never reads as chosen. */
  --color-choice-off: var(--neutral-5);
  /* The fill of a field at rest: the surface; dark in the new style lifts it above the page. */
  --color-bg-field: var(--color-bg-surface);
  /* The fill of a field in error: the surface; the new style tints it. */
  --color-bg-field-error: var(--color-bg-surface);
  /* The edge of a checkbox and a radio: 3:1 on the surface; dark re-points it. */
  --color-border-choice: var(--neutral-5);
  /* In dark a sheet is the same #1D1D1D as the tile under it, so this line separates them. */
  --color-border-popover: var(--neutral-3);
  /* A DASHED outline (a suggestion, an uncertain term): neutral-5, because a dashed line has half
     the ink of a solid one and must still reach 3:1. */
  --color-border-suggestion: var(--neutral-5);

  /* --- Semantic: avatar -------------------------------------------------- */
  /* A person's circle: one neutral fill for everyone; a person is no variable. */
  --color-avatar-bg: var(--neutral-3);
  /* The initials and the icon on that fill: 14.5:1 in light, 8.9:1 in dark. */
  --color-avatar-text: var(--color-text-primary);
  /* The DASHED edge of the circle where nobody stands yet: neutral-5, as a dashed line has half the
     ink of a solid one and must still reach 3:1. */
  --color-avatar-empty-line: var(--neutral-5);

  /* --- Semantic: action -------------------------------------------------- */
  --color-action-primary: var(--primary);
  --color-action-primary-hover: var(--primary-hover);
  /* Pressed is the hover; the new style takes it a step past hover. */
  --color-action-primary-pressed: var(--color-action-primary-hover);
  --color-action-primary-text: var(--ink-white);
  /* A primary fill in dark is a dark box on a dark page (WCAG 1.4.11): it gets a tint border. */
  --color-action-primary-border: var(--primary);
  --color-action-secondary-border: var(--primary);
  /* The outlined button's hover is the subtle surface; the new style tints it in the primary's
     wash. Dark re-points it to the neutral step. */
  --color-action-secondary-hover: var(--color-bg-subtle);
  --color-action-secondary-pressed: var(--color-action-secondary-hover);
  /* The tertiary button's hover is the subtle surface; its word and edge are with the
     components below. */
  --color-action-tertiary-hover: var(--color-bg-subtle);
  --color-action-tertiary-pressed: var(--color-action-tertiary-hover);
  /* On a theme fill: the inverse button is white with the primary's word, and lets a little of
     the primary through under the pointer; its outlined form is white on white, lit by white and
     pressed by black at a low alpha. The same in dark: the fill under it stays the primary. */
  --color-action-inverse: var(--ink-white);
  --color-action-inverse-text: var(--primary);
  --color-action-inverse-hover: color-mix(in srgb, var(--ink-white), var(--primary) 10%);
  --color-action-inverse-pressed: color-mix(in srgb, var(--ink-white), var(--primary) 20%);
  --color-action-inverse-secondary-hover: var(--alpha-white-16);
  --color-action-inverse-secondary-pressed: var(--alpha-black-14);
  /* The destructive fill: the error red, white text on it (5.01:1). Hover is darker in light,
     lighter in dark. In dark the border is a tint, because #D52B1E is 2.94:1 on #282828. */
  --color-action-danger: var(--status-error);
  --color-action-danger-hover: color-mix(in srgb, var(--status-error), black 30%);
  --color-action-danger-pressed: var(--color-action-danger-hover);
  --color-action-danger-border: var(--status-error);
  /* The word of the outlined danger button; dark re-points it (the red is 2.94:1 on #282828). */
  --color-action-danger-text: var(--status-error);
  --color-link: var(--primary);
  --color-link-hover: var(--primary-hover);
  /* A link on a status background: in dark no tint of the primary reaches 4.5:1 there, so it
     reads in the text colour. It is bold and underlined, so colour never carried it alone. */
  --color-link-on-status: var(--primary);

  /* The accent splits in three, because a fill, a line and a word have different floors:
     fill (the primary), line (non-text, 3:1: `--primary-tint` in dark) and text (4.5:1:
     `--primary-tint-text` in dark). A word in the line token fails: it is sized for 3:1. */
  --color-accent: var(--primary);
  --color-accent-line: var(--primary);
  --color-accent-text: var(--primary);

  /* The focus ring: the deep orange, with no line inside it. Its own tokens: they follow neither
     the accent nor a status. The new style draws the dark line with the white line inside. */
  --color-focus: var(--focus-orange-deep);
  --color-focus-inner: transparent;

  /* --- Semantic: status -------------------------------------------------- */
  --color-attention: var(--status-attention);
  --color-success: var(--status-success);
  --color-warning: var(--status-warning);
  --color-error: var(--status-error);
  --color-info: var(--status-info);

  --color-warning-bg: var(--status-warning-bg);
  --color-attention-bg: var(--status-attention-bg);
  --color-error-bg: var(--status-error-bg);
  --color-info-bg: var(--status-info-bg);
  --color-success-bg: var(--status-success-bg);

  /* A status mark on its own tint: the status colour, nudged to 3:1 where it falls short. */
  --color-attention-line: color-mix(in srgb, var(--status-attention), black 10%);
  /* A warning block (alert, toast): the attention status; the new style takes donkergeel, as the
     house style draws a warning. Its bar decorates, the icon and the words carry the meaning. */
  --color-alert-warning-bg: var(--color-attention-bg);
  --color-alert-warning-line: var(--color-attention-line);
  --color-error-line: var(--status-error);
  --color-info-line: var(--status-info);
  --color-success-line: var(--status-success);
  /* A status WORD at 4.5:1 on the surface and on `--color-bg-subtle`: the red itself, the green
     5 % darker (4.13:1 on neutral-2); dark lifts both. A glyph or an edge keeps the line token. */
  --color-error-text: var(--status-error);
  --color-success-text: color-mix(in srgb, var(--status-success), black 5%);

  /* --- Navigation (the theme fill; neutral in dark) ---------------------- */
  --color-nav-bg: var(--primary);
  --color-nav-text: var(--ink-white);
  --color-nav-text-sub: var(--alpha-white-82);
  --color-nav-hover: var(--primary-hover);
  /* The word of a row under the pointer; the light tone fills that row in the primary. */
  --color-nav-hover-text: var(--ink-white);
  --color-nav-active: var(--primary-hover);
  --color-nav-active-edge: var(--ink-white);
  --color-nav-active-text: var(--ink-white);
  --color-nav-line: var(--primary-line);
  --color-nav-disabled: var(--alpha-white-45);
  --color-nav-badge-bg: var(--status-error);
  --color-nav-badge-text: var(--ink-white);
  /* The avatar is white with black initials wherever it stands, in both modes. */
  --color-nav-avatar-bg: var(--ink-white);
  --color-nav-avatar-text: var(--ink-black);
  /* Orange fails on the theme fill (1.89:1 on #01689B, 1:1 on #E17000); white reaches 3:1 on
     all six primaries. Dark re-points both to the standard ring. */
  --color-focus-on-theme: var(--ink-white);
  --color-focus-on-theme-inner: var(--color-focus-inner);
  /* The theme's ACCENT, not the attention status: on `defensie` the menu is `#E17000` and the
     status colour made the band disappear. `--accent` is document level only. */
  --color-nav-environment-bg: var(--accent);
  /* White is 3.22:1 on the orange accent, ink 3.96:1 on Defensie's blue: above lightness 0.6 the
     word is ink (`--ink-black`, written as its oklch), below it white. */
  --color-nav-environment-text: oklch(from var(--accent) clamp(0.208, (0.6 - l) * 1000, 1) clamp(0, (l - 0.6) * 1000, 0.04) 265.8);
  /* The page's surface in both modes. The navigation bar under it is the menu turned a quarter,
     on `--color-nav-*`. */
  --color-logobar-bg: var(--color-bg-surface);
  --color-logobar-text: var(--color-text-primary);
  /* The ribbon in the emblem; only the logo re-points it in dark, never lintblauw elsewhere. */
  --color-logo-ribbon: var(--ribbon-blue);
  /* The name beside it in lintblauw, as the logo's specification draws the wordmark, in both
     house styles; dark writes it in the text colour, a lighter wordmark on the dark bar. */
  --color-logo-name: var(--ribbon-blue);
  /* What marks an entry in that bar. They name the primitives, never `--color-nav-*`: the bar
     points those at these, and the two would refer to each other. */
  --color-navbar-hover: var(--primary-hover);
  --color-navbar-active: var(--primary-hover);
  --color-navbar-active-edge: var(--ink-white);
  --color-navbar-open-text: var(--color-accent-text);
  /* --- Navigation, light tone --------------------------------------------
     `nav-tone="light"` on the shell: the house style's white navigation bar and side navigation.
     The shell points the `--color-nav-*` and `--color-navbar-*` names at these under its menu, its
     bar and the mobile chrome; a menu that stays filled never reads them. The surface, with the
     words in the accent's text tint; a row under the pointer fills in the primary with white on
     it, the reader's page takes the wash with the accent's line at its edge. In dark every name
     here follows its semantic token, so the tone stays neutral there as the menu does. */
  --color-nav-light-bg: var(--color-bg-surface);
  --color-nav-light-text: var(--color-accent-text);
  --color-nav-light-text-sub: var(--color-text-muted);
  --color-nav-light-hover: var(--primary);
  --color-nav-light-hover-text: var(--ink-white);
  --color-nav-light-active: var(--primary-wash);
  --color-nav-light-active-edge: var(--color-accent-line);
  --color-nav-light-active-text: var(--color-accent-text);
  --color-nav-light-line: var(--color-border-default);
  --color-nav-light-disabled: var(--color-text-disabled);
  /* The avatar on the white rail is the page's grey circle: a white one would vanish. */
  --color-nav-light-avatar-bg: var(--color-avatar-bg);
  --color-nav-light-avatar-text: var(--color-avatar-text);
  /* The bar's entries: a quiet hover, no fill under the active entry, its edge the underline. */
  --color-navbar-light-hover: var(--color-bg-subtle);
  --color-navbar-light-active: var(--color-bg-surface);
  --color-navbar-light-active-edge: var(--color-accent-line);

  /* --- Components that the two house styles draw differently ------------
     The earlier style's values; the new style's block below sets its own. An element reads
     these and never the style itself, so its CSS is the same in both. */
  /* The status bar at the left of a message, a toast, a form's summary and a field in error,
     and the room a field keeps beside it. */
  --tone-bar-width: 0px;
  --field-error-inset: 0px;
  /* A field in error: its red edge, and the bar beside the whole field; no bar in the earlier style. */
  --field-error-border: 2px;
  --field-error-bar: 0px;
  /* The edge of a checkbox and a radio. */
  --border-choice-width: 2px;
  /* The tertiary button is a word without a box in both styles: the text colour, or the primary. */
  --color-action-tertiary-text: var(--color-text-primary);
  /* The expander: an outlined card, or the accordion row with a line above and under it. */
  --expander-bg: var(--color-bg-surface);
  --expander-border-block: 1px solid var(--color-border-default);
  --expander-border-inline: 1px solid var(--color-border-default);
  --expander-radius: var(--radius);
  --expander-pad: var(--tile-pad-y) var(--tile-pad-x);
  --color-expander-title: var(--color-text-primary);
  --color-expander-content: var(--color-text-secondary);
  /* The current page in the pagination: the filled square, or the light tint with a dark digit. */
  --color-pagination-current-bg: var(--color-action-primary);
  --color-pagination-current-border: var(--color-action-primary-border);
  --color-pagination-current-text: var(--color-action-primary-text);
  /* The sub-navigation: typographic, or the row filled under the pointer with the reader's page
     on the wash; the inset is how far a row reaches past the text column. */
  --sub-nav-inset: var(--space-2);
  --sub-nav-hover-decoration: underline;
  --color-sub-nav-hover-bg: transparent;
  --color-sub-nav-hover-text: var(--color-link-hover);
  --color-sub-nav-current-bg: transparent;
  /* The segmented control: framed in the field's edge, or a quiet frame with a quiet line between
     the options, so only the chosen one carries the accent. */
  --color-segmented-border: var(--color-border-field);
  --segmented-divider: 0 solid transparent;
  /* The window: a line between its head, body and foot, or none. */
  --modal-divider: 1px solid var(--color-border-default);
  --modal-head-pad-bottom: var(--space-5);
  --modal-foot-pad: var(--space-3) var(--space-6);
  --color-modal-title: var(--color-text-primary);
  /* The trail: on the small size, or on the body size, as the house style sets it. */
  --breadcrumbs-font: var(--text-small);
  /* The site's full foot: its payoff on the h2, or the house style's italic in the regular
     weight; a column's heading as a label in capitals, or as an h2. */
  --footer-tagline-font: var(--text-h2);
  --footer-heading-font: var(--label-weight) var(--label-size)/1.4 var(--font-ui);
  --footer-heading-tracking: var(--label-tracking);
  --footer-heading-case: uppercase;
  /* The tools at the end of the top bar: apart, or close, as at the end of the navigation bar,
     each with its own padding. */
  --top-bar-actions-gap: var(--space-3);
  /* The headings of prose: h1 to h3 alike, or down the house style's scale (40, 32, 24, 20, 16)
     in the primary's word tint. */
  --color-prose-heading: var(--color-text-primary);
  --prose-h1-font: var(--text-h2);
  --prose-h2-font: var(--text-h2);
  --prose-h3-font: var(--text-h2);
  --prose-h4-font: var(--text-tile-title);
  --prose-h5-font: var(--text-body);
  /* The page's head: inside the padded content, or above it, padding its words to the column
     itself; with tabs, as the band, and the band below 768 px. */
  --page-header-tabs-inset: 0px;
  --page-header-band-inset: var(--space-6);
  --page-header-band-inset-narrow: var(--page-pad-x);
  /* A field's label: the host's font at the label's size, or the body font, as the house
     style's form field has it. `initial` leaves `font` unset, so the label inherits the host's. */
  --field-label-font: initial;
  --field-label-size: var(--label-size);
  /* The select: its own width, or the column's up to a field's widest, as a text field. */
  --select-width: 180px;
  --select-max-width: none;
  /* A row of fields in a form section: stretched, or on the line of their controls, as the hint
     stands above the field in the new style and lifts only its own label. */
  --form-section-grid-align: stretch;

  /* The start page's band is the primary's wash, so it never reads as the menu. */
  --color-hero-bg: var(--primary-wash);
  --color-hero-text: var(--color-text-primary);
  /* The band as the page's head (`tone="primary"`): the primary itself, with the one corner of
     the house style. Its word is white, or ink where white falls under 4.5:1 on a light primary
     (Defensie's orange), as the environment label decides: ink above lightness 0.6. The ring is
     the inverse one: white, which reaches 3:1 on every primary, with the dark line inside. */
  --color-hero-primary-bg: var(--primary);
  --color-hero-primary-text: oklch(from var(--primary) clamp(0.208, (0.6 - l) * 1000, 1) clamp(0, (l - 0.6) * 1000, 0.04) 265.8);
  --color-hero-primary-focus: var(--ink-white);
  --color-hero-primary-focus-inner: var(--ink-black);
  /* A faint line in the band's ink: the lower edge of the tabs on the band. */
  --color-hero-primary-line: var(--alpha-white-16);
  /* The site's foot stands on the menu's own fill, as on rijksoverheid.nl; in dark it follows the menu. */
  --color-footer-bg: var(--color-nav-bg);
  --color-footer-text: var(--color-nav-text);
  --color-footer-line: var(--color-nav-line);
  --color-footer-focus: var(--color-focus-on-theme);
  --color-footer-focus-inner: var(--color-focus-on-theme-inner);
  /* The compact foot of a form or a task page: the subtle surface, the page's own text and links. */
  --color-footer-compact-bg: var(--color-bg-subtle);
  --color-footer-compact-text: var(--color-text-primary);
  --color-footer-compact-link: var(--color-link);

  /* The box behind a recognised term: the primary's wash; dark re-points it. */
  --color-term-bg: var(--primary-wash);
  /* The chosen option of a row of options: the primary's wash; dark re-points it. */
  --color-choice-active-bg: var(--primary-wash);
  /* The days between the start and the end of a chosen period: a clear tint of the primary,
     unlike the grey of a hover or a selected row, so the period reads as one stretch. The
     endpoints and the words carry the period, so the fill needs no 3:1. Dark re-declares it. */
  --color-range-bg: oklch(from var(--primary) 0.86 min(c, 0.04) h);
  /* The edge of a chosen day in a calendar: lighter than its primary fill, as dark's is, so two
     chosen days and a chosen day beside the period's tint stay apart. Dark re-declares it. */
  --color-chosen-day-edge: oklch(from var(--primary) 0.8 min(c, 0.1) h);
  /* The 2 px line under a term; dark takes the text tint, as the line tint falls short on it. */
  --color-term-line: var(--color-accent-line);
  /* The ring of today inside a chosen period; dark takes the text tint, as the line tint falls
     short on the period's tint. */
  --color-today-in-range: var(--color-accent-line);
  /* The 4 px edge of a chosen row; dark takes the text tint, as the line tint falls short on the
     selected surface. */
  --color-selected-edge: var(--color-accent-line);
  /* The empty part of a progress bar. Light keeps the border grey: the inset grey vanishes on
     white; dark sinks it, so every fill reaches 3:1 on it. */
  --color-progress-track: var(--color-border-default);
  /* The track of a slider under its accent fill: a grey between the ladder's two mid steps, 3:1 on
     the surface in light and dark, and grey so the fill stands apart from it. */
  --color-slider-track: color-mix(in srgb, var(--neutral-4), var(--neutral-5) 30%);

  /* --- Data colors ------------------------------------------------------- */
  /* One colour per variable, named after the Rijkshuisstijl colour. */
  --color-chart-sky-blue: var(--data-sky-blue);
  --color-chart-dark-yellow: var(--data-dark-yellow);
  --color-chart-dark-yellow-edge: var(--data-dark-yellow-edge);
  --color-chart-red: var(--data-red);
  --color-chart-green: var(--data-green);
  --color-chart-mint-green: var(--data-mint-green);
  --color-chart-mint-green-edge: var(--data-mint-green-edge);
  --color-chart-violet: var(--data-violet);
  --color-chart-orange: var(--data-orange);
  --color-chart-orange-edge: var(--data-orange-edge);
  --color-chart-pink: var(--data-pink);
  --color-chart-pink-edge: var(--data-pink-edge);
  --color-chart-dark-green: var(--data-dark-green);
  --color-chart-purple: var(--data-purple);
  --color-chart-ruby-red: var(--data-ruby-red);
  --color-chart-yellow: var(--data-yellow);
  --color-chart-yellow-edge: var(--data-yellow-edge);
  --color-chart-dark-brown: var(--data-dark-brown);
  --color-chart-brown: var(--data-brown);
  --color-chart-dark-blue: var(--data-dark-blue);
  --color-chart-light-blue: var(--data-light-blue);
  --color-chart-light-blue-edge: var(--data-light-blue-edge);
  --color-chart-moss-green: var(--data-moss-green);
  --color-chart-secondary: var(--data-comparison); /* comparison, context */
  --color-chart-other: var(--data-other);          /* "Overig" */
  --color-chart-remainder: var(--neutral-3);       /* the rest of a whole, e.g. a donut's open part */
  --color-chart-emphasis: var(--data-emphasis);    /* trend, threshold, target */
  --color-chart-grid: var(--data-grid);
  --color-chart-axis: var(--neutral-5);
  /* The zero line (darker than the grid) and the hatch of missing data carry meaning, so they
     reach 3:1 on the surface and on a forecast's ground: the smallest share of neutral-5 over
     neutral-4 that does (3.0:1 on the light ground; 4.2:1 dark). */
  --color-chart-zero: color-mix(in srgb, var(--neutral-5) 26%, var(--neutral-4));
  --color-chart-hatch: color-mix(in srgb, var(--neutral-5) 26%, var(--neutral-4));
  /* The forecast's part of a drawing. Dark sinks it under the surface: on the subtle grey the
     sky blue of a dotted line fell to 2.8:1. */
  --color-chart-forecast-ground: var(--color-bg-subtle);
  /* A speaker's colour under a whole fragment: this share of it over the surface, so text keeps
     its contrast in light and in dark. */
  --tint-speaker: 12%;
  /* What a recording still has to play: this share of the speaker's colour over the surface; in
     light that is the `-tint-4` step of its ladder. */
  --tint-speaker-ahead: 45%;
  /* A graph's mark, zoomed out: this share of its kind's colour over the surface. */
  --tint-graph-mark: 15%;

  /* These map colours stay deliberately neutral so the data is the only colour on the map. */
  --color-map-water: var(--neutral-0);
  --color-map-land: var(--neutral-2);
  --color-map-border: var(--neutral-4);
  /* An area with a figure: 3:1 against the land and the lightest class, which are 1.1:1 apart. */
  --color-map-border-data: var(--neutral-5);

  /* The variable a figure draws when its data names none: the first colour of the list, the
     same decision as `DEFAULT_SERIES_COLOR` in `charts/shared/colors.ts`. */
  --color-chart-default: var(--color-chart-sky-blue);

  /* Subdivision of one variable: its colour in its tint ladder, strongest first, on the steps
     100 / 75 / 60 / 45 / 30. Every colour carries its ladder, so a figure that brings a colour
     brings its tints: a renderer names `--color-chart-<colour>` and
     `--color-chart-<colour>-tint-N`, never a --data-* colour. */
  --color-chart-sky-blue-tint-2: var(--data-sky-blue-75);
  --color-chart-sky-blue-tint-3: var(--data-sky-blue-60);
  --color-chart-sky-blue-tint-4: var(--data-sky-blue-45);
  --color-chart-sky-blue-tint-5: var(--data-sky-blue-30);

  --color-chart-dark-yellow-tint-2: var(--data-dark-yellow-75);
  --color-chart-dark-yellow-tint-3: var(--data-dark-yellow-60);
  --color-chart-dark-yellow-tint-4: var(--data-dark-yellow-45);
  --color-chart-dark-yellow-tint-5: var(--data-dark-yellow-30);

  --color-chart-red-tint-2: var(--data-red-75);
  --color-chart-red-tint-3: var(--data-red-60);
  --color-chart-red-tint-4: var(--data-red-45);
  --color-chart-red-tint-5: var(--data-red-30);

  --color-chart-green-tint-2: var(--data-green-75);
  --color-chart-green-tint-3: var(--data-green-60);
  --color-chart-green-tint-4: var(--data-green-45);
  --color-chart-green-tint-5: var(--data-green-30);

  --color-chart-mint-green-tint-2: var(--data-mint-green-75);
  --color-chart-mint-green-tint-3: var(--data-mint-green-60);
  --color-chart-mint-green-tint-4: var(--data-mint-green-45);
  --color-chart-mint-green-tint-5: var(--data-mint-green-30);

  --color-chart-violet-tint-2: var(--data-violet-75);
  --color-chart-violet-tint-3: var(--data-violet-60);
  --color-chart-violet-tint-4: var(--data-violet-45);
  --color-chart-violet-tint-5: var(--data-violet-30);

  --color-chart-orange-tint-2: var(--data-orange-75);
  --color-chart-orange-tint-3: var(--data-orange-60);
  --color-chart-orange-tint-4: var(--data-orange-45);
  --color-chart-orange-tint-5: var(--data-orange-30);

  --color-chart-pink-tint-2: var(--data-pink-75);
  --color-chart-pink-tint-3: var(--data-pink-60);
  --color-chart-pink-tint-4: var(--data-pink-45);
  --color-chart-pink-tint-5: var(--data-pink-30);

  --color-chart-dark-green-tint-2: var(--data-dark-green-75);
  --color-chart-dark-green-tint-3: var(--data-dark-green-60);
  --color-chart-dark-green-tint-4: var(--data-dark-green-45);
  --color-chart-dark-green-tint-5: var(--data-dark-green-30);

  --color-chart-purple-tint-2: var(--data-purple-75);
  --color-chart-purple-tint-3: var(--data-purple-60);
  --color-chart-purple-tint-4: var(--data-purple-45);
  --color-chart-purple-tint-5: var(--data-purple-30);

  --color-chart-ruby-red-tint-2: var(--data-ruby-red-75);
  --color-chart-ruby-red-tint-3: var(--data-ruby-red-60);
  --color-chart-ruby-red-tint-4: var(--data-ruby-red-45);
  --color-chart-ruby-red-tint-5: var(--data-ruby-red-30);

  --color-chart-yellow-tint-2: var(--data-yellow-75);
  --color-chart-yellow-tint-3: var(--data-yellow-60);
  --color-chart-yellow-tint-4: var(--data-yellow-45);
  --color-chart-yellow-tint-5: var(--data-yellow-30);

  --color-chart-dark-brown-tint-2: var(--data-dark-brown-75);
  --color-chart-dark-brown-tint-3: var(--data-dark-brown-60);
  --color-chart-dark-brown-tint-4: var(--data-dark-brown-45);
  --color-chart-dark-brown-tint-5: var(--data-dark-brown-30);

  --color-chart-brown-tint-2: var(--data-brown-75);
  --color-chart-brown-tint-3: var(--data-brown-60);
  --color-chart-brown-tint-4: var(--data-brown-45);
  --color-chart-brown-tint-5: var(--data-brown-30);

  --color-chart-dark-blue-tint-2: var(--data-dark-blue-75);
  --color-chart-dark-blue-tint-3: var(--data-dark-blue-60);
  --color-chart-dark-blue-tint-4: var(--data-dark-blue-45);
  --color-chart-dark-blue-tint-5: var(--data-dark-blue-30);

  --color-chart-light-blue-tint-2: var(--data-light-blue-75);
  --color-chart-light-blue-tint-3: var(--data-light-blue-60);
  --color-chart-light-blue-tint-4: var(--data-light-blue-45);
  --color-chart-light-blue-tint-5: var(--data-light-blue-30);

  --color-chart-moss-green-tint-2: var(--data-moss-green-75);
  --color-chart-moss-green-tint-3: var(--data-moss-green-60);
  --color-chart-moss-green-tint-4: var(--data-moss-green-45);
  --color-chart-moss-green-tint-5: var(--data-moss-green-30);

  /* The default ladder, for a figure that names no colour: the sky blue's. */
  --color-chart-tint-1: var(--color-chart-sky-blue);
  --color-chart-tint-2: var(--color-chart-sky-blue-tint-2);
  --color-chart-tint-3: var(--color-chart-sky-blue-tint-3);
  --color-chart-tint-4: var(--color-chart-sky-blue-tint-4);
  --color-chart-tint-5: var(--color-chart-sky-blue-tint-5);

  /* Sequential scale for ordinal classes (heatmap, choropleth), lightest first. A component names
     these, never a --data-* colour directly. */
  --color-chart-seq-1: var(--data-sky-blue-15);
  --color-chart-seq-2: var(--data-sky-blue-30);
  --color-chart-seq-3: var(--data-sky-blue-45);
  --color-chart-seq-4: var(--data-sky-blue-75);
  --color-chart-seq-5: var(--data-sky-blue);
}

/* ============================================================================
   The new house style — `data-style-version="new"` on `<html>`, mirrored onto every element's host

   What the house style draws differently online since 2025: the larger page title, the content
   at 1280 px with a ribbon as the page's margin, the small corners on controls and fields, the
   ring as a dark line with a white line inside, the choice edge in the accent, the cool veil
   and the tinted hover of the outlined button. The large corner of a drawer and a narrow band
   comes with `data-style-new-corner` (round unless `square`). Everything else the two styles share.
   ========================================================================= */
[data-style-version='new'] {
  /* The house style's scale: the page's h1 at 32 px. */
  --text-h1: 700 2rem/1.2 var(--font-ui);
  /* The widest the page's content gets, the house style's 1280 px. */
  --w-content: 1280px;
  /* The page's side margin: one ribbon on a desktop, half a ribbon on a tablet, 20 px on a
     phone, as the house style lays the page out. */
  --page-pad-x: 48px;
  /* The small corners of the house style online: on a button and a field, never larger, and on the
     label on a photo, as small as a chip. A framed block (a card, a tile, a dialog, an alert) keeps
     `--radius` at 0, as the house style draws it. */
  --radius-control: 4px;
  /* The veil under a dialog, a modal and a drawer: the house style's cool grey at 80 %; the
     window's surface and border stand on it alike (1.3:1 edge). Dark takes black. */
  --color-overlay-page: var(--alpha-slate-80);
  /* The house style's ring: a 2 px line at 2 px from the box, the gap filled by a line in the
     opposite ink, so the ring reads on every surface; inside a box both lines stay inside. */
  --focus-width: 2px;
  --focus-inset: calc(-1 * (var(--focus-width) + var(--focus-offset)));
  --color-focus: var(--ink-black);
  --color-focus-inner: var(--ink-white);
  --color-focus-on-theme-inner: var(--ink-black);
  /* The 1 px edge of a checkbox and a radio: the accent's line, as the house style draws it in
     lintblauw; 3:1 on the surface in both modes by the line tint's construction. */
  --color-border-choice: var(--color-accent-line);
  /* The 1 px edge of a field in the same line, as the house style draws a field in lintblauw. */
  --color-border-field: var(--color-accent-line);
  /* A field in error stands on the error tint, under its red edge. */
  --color-bg-field-error: var(--color-error-bg);
  /* The outlined button's hover is the primary's wash, as the house style tints it; pressed a
     step deeper into the wash. */
  --color-action-secondary-hover: var(--primary-wash);
  --color-action-secondary-pressed: oklch(from var(--primary) 0.9 min(c, 0.04) h);
  /* Pressed is a step past hover on every filled or tinted button: darker in light, lighter in
     dark, as the hover goes. In light the house style's shade 2 of the fill, as hover (30 %) is
     its shade 4: 55 % black lands on it within a unit per channel for lintblauw and donkerblauw. */
  --color-action-primary-pressed: color-mix(in srgb, var(--primary), black 55%);
  --color-action-tertiary-pressed: var(--color-border-default);
  --color-action-danger-pressed: color-mix(in srgb, var(--status-error), black 55%);
  /* The house style's one rounded corner, a ribbon wide, on a drawer (its corner free), on a narrow
     band inside the margins and top right on a photo wall. A band or foot that runs edge to edge
     stays square. */
  --radius-corner: 48px;
  /* The components that draw differently: the status bar, the 1 px choice edge, the
     tertiary's primary word, the accordion row, the tinted current page, the filled sub-navigation and the
     window without lines. */
  --tone-bar-width: var(--space-1);
  --field-error-inset: var(--space-4);
  /* The house style's field in error: a 1 px red edge and a 2 px bar, finer than a status block's. */
  --field-error-border: 1px;
  --field-error-bar: 2px;
  --border-choice-width: 1px;
  --color-action-tertiary-text: var(--color-accent-text);
  --expander-bg: transparent;
  --expander-border-inline: 0 solid transparent;
  --expander-radius: 0px;
  --expander-pad: var(--space-1) 0;
  --color-expander-title: var(--color-accent-text);
  --color-alert-warning-bg: var(--color-warning-bg);
  /* The compact foot on the primary's wash, as the house style tints it. */
  --color-footer-compact-bg: var(--primary-wash);
  --color-alert-warning-line: var(--status-warning);
  --color-expander-content: var(--color-text-primary);
  --color-pagination-current-bg: var(--color-choice-active-bg);
  --color-pagination-current-border: transparent;
  --color-pagination-current-text: var(--color-text-primary);
  --sub-nav-inset: var(--space-4);
  --sub-nav-hover-decoration: none;
  --color-sub-nav-hover-bg: var(--color-action-primary);
  --color-sub-nav-hover-text: var(--color-action-primary-text);
  --color-sub-nav-current-bg: var(--color-choice-active-bg);
  --color-segmented-border: var(--color-border-strong);
  --segmented-divider: 1px solid var(--color-border-default);
  --modal-divider: 0 solid transparent;
  --modal-head-pad-bottom: 0px;
  --modal-foot-pad: 0 var(--space-6) var(--space-4);
  --color-modal-title: var(--color-accent-text);
  --breadcrumbs-font: var(--text-ui);
  --footer-tagline-font: var(--text-tagline);
  --footer-heading-font: var(--text-h2);
  --footer-heading-tracking: 0;
  --footer-heading-case: none;
  --top-bar-actions-gap: var(--space-1);
  --color-prose-heading: var(--color-accent-text);
  --prose-h1-font: var(--text-h1-display);
  --prose-h2-font: var(--text-h1);
  --prose-h3-font: var(--text-section);
  --prose-h4-font: var(--text-h2);
  --prose-h5-font: var(--text-tile-title);
  --page-header-tabs-inset: calc(var(--page-pad-x) + var(--page-gutter));
  --page-header-band-inset: calc(var(--page-pad-x) + var(--page-gutter));
  --page-header-band-inset-narrow: calc(var(--page-pad-x) + var(--page-gutter));
  --field-label-font: var(--text-ui);
  --field-label-size: 1rem;
  --select-width: 100%;
  --select-max-width: var(--w-field);
  --form-section-grid-align: end;
}
/* `data-style-new-corner="square"` leaves the large corner out; without it the corner is round. */
[data-style-version='new'][data-style-new-corner='square'] {
  --radius-corner: 0px;
}

/* ============================================================================
   Dark mode — the Logius range, no inversion

   Redefines the seven `--neutral-*` primitives, re-declares `--primary-hover` lighter and
   re-points the layer-2/3 names whose meaning changes; everything that merely follows a
   neutral is absent on purpose. Page and tiles are both #282828, the border separates them: the
   step below is the menu's, so it stays a band beside the page and under the logo bar. The new
   style mirrors light instead, in its own block under this one. Screen only: paper is always
   light, whatever the reader chose.
   ========================================================================= */
@media screen {
  [data-mode='dark'] {
    --neutral-0: #282828;
    --neutral-1: #1D1D1D;
    --neutral-2: #333333;
    --neutral-3: #4A4A4A;
    --neutral-4: #7A7A7A;
    --neutral-5: #B0B0B0;
    --neutral-6: #FFFFFF;

    /* The hover goes UP in dark: the light mix would put a near-black fill on the near-black page. */
    --primary-hover: color-mix(in srgb, var(--primary), white 12%);
    --color-action-secondary-hover: var(--neutral-2);

    /* The order of light holds: menu under page under surface. The series has no step between
       the menu (neutral-1, L 0.231) and the surface (L 0.277), so the page is their midpoint
       (L 0.252); neutral-1 itself was too dark for the menu's step under it. */
    --color-bg-page: color-mix(in srgb, var(--neutral-0), var(--neutral-1));
    --color-bg-title: var(--color-bg-page);
    /* The hero's wash sits halfway between the menu and the page, under the page as in light:
       a panel or tab on it is lighter than its ground. */
    --primary-wash: oklch(from var(--primary) 0.241 min(c, 0.02) h);
    /* The band in the primary colour is damped, as the house style damps a communication colour
       in dark: on the wash's lightness, a step above the page, with more of the theme's hue in it
       than the wash has and white on it in every theme. */
    --color-hero-primary-bg: oklch(from var(--primary) 0.3 min(c, 0.05) h);
    --color-hero-primary-text: var(--neutral-6);

    /* The filter zone must read as a band, so in dark it steps UP to neutral-2 (neutral-1 turned
       the fields in it into light boxes). `--color-bg-inset` is "sunken": neutral-1, under the
       page, as in light. */
    --color-bg-filter: var(--neutral-2);
    --color-bg-inset: var(--neutral-1);

    --color-text-inverse: var(--neutral-1);

    /* Colour that must read by itself on #282828 becomes the tint; a FILL keeps the primary. */
    --color-action-primary-border: var(--primary-tint);
    --color-action-secondary-border: var(--primary-tint);
    /* Danger hover: 8 % white is the most that keeps white text at 4.5:1 (4.56:1). The border and
       the word lift the red as the primary's tints do, to 3:1 on #282828 and 4.5:1 on #333333,
       the hover surface; the word's chroma cap keeps it inside sRGB. */
    --color-action-danger-hover: color-mix(in srgb, var(--status-error), white 8%);
    --color-action-danger-border: oklch(from var(--status-error) max(l, 0.58) c h);
    --color-action-danger-text: oklch(from var(--status-error) max(l, 0.71) min(c, 0.18) h);
    /* A status mark at 3:1 on its own tint; the error's also on the filter band, where the edge
       of a field in error is its only outline. */
    --color-attention-line: var(--status-attention);
    --color-error-line: oklch(from var(--status-error) max(l, 0.61) c h);
    --color-info-line: oklch(from var(--status-info) max(l, 0.58) c h);
    --color-success-line: oklch(from var(--status-success) max(l, 0.57) c h);
    /* A status word at 4.5:1 on #333333, lifted as the danger word is. */
    --color-error-text: oklch(from var(--status-error) max(l, 0.71) min(c, 0.18) h);
    --color-success-text: oklch(from var(--status-success) max(l, 0.68) min(c, 0.18) h);
    /* A link is text: the text tint, not the line tint. The hover stays white. */
    --color-link: var(--primary-tint-text);
    --color-link-hover: var(--neutral-6);
    --color-link-on-status: var(--neutral-6);
    --color-accent-line: var(--primary-tint);
    --color-accent-text: var(--primary-tint-text);

    /* Lintblauw has too little contrast on the dark surface; the house style lightens it. */
    --color-logo-ribbon: var(--ribbon-blue-dark);
    --color-logo-name: var(--color-text-primary);

    /* The menu is neutral in dark: near-black, under the page, in the rail and in the bar alike,
       so it stays its own band beside the page and under the logo bar. Hover and active are one
       step up, as they are one fill in light; the edge is the text tint, as the line tint is
       3:1 on neutral-0 only. */
    --color-nav-bg: var(--neutral-1);
    --color-nav-text: var(--neutral-6);
    --color-nav-text-sub: var(--neutral-5);
    --color-nav-hover: var(--neutral-2);
    --color-nav-hover-text: var(--neutral-6);
    /* The light tone's active row steps up to the subtle surface: the wash lies under the surface
       in dark and the row would sink into the rail. Its edge takes the text tint, as the line
       tint reaches 3:1 on the surface only. */
    --color-nav-light-hover: var(--neutral-2);
    --color-nav-light-hover-text: var(--neutral-6);
    /* The rail and the bar already differ from the page in dark: the line that tells a white rail
       from a white page stays as quiet as it is in light, one step up from the rail. */
    --color-nav-light-line: var(--neutral-2);
    --color-nav-light-active: var(--neutral-2);
    --color-nav-light-active-edge: var(--primary-tint-text);
    --color-nav-active: var(--neutral-2);
    --color-nav-active-edge: var(--primary-tint-text);
    --color-navbar-hover: var(--neutral-2);
    --color-navbar-active: var(--neutral-2);
    --color-navbar-active-edge: var(--primary-tint-text);
    /* The open entry's word stands on the panel's surface: full text contrast, not the tint. */
    --color-navbar-open-text: var(--color-text-primary);
    /* The label is 16 px text: the tint is 3.0:1 and needs 4.5:1. The edge keeps the tint. */
    --color-nav-active-text: var(--neutral-6);
    /* The sheet is told from the page by its shadow and this quiet line; 1.66:1 is accepted here. */
    --color-border-popover: var(--neutral-3);
    --color-nav-line: var(--neutral-2);
    --color-nav-disabled: var(--neutral-4);
    /* The deep orange falls under 3:1 on the dark warning tint; the house orange reaches 3.3:1 on
       every dark surface. */
    --color-focus: var(--focus-orange);
    /* The menu is neutral here, so its ring is that of every other surface. */
    --color-focus-on-theme: var(--color-focus);
    --color-focus-on-theme-inner: var(--color-focus-inner);
    /* Neutral-4 is 3.43:1 on #282828 but 2.94:1 on #333333, a chosen or opened table row: the
       edge takes the smallest share of neutral-5 that reaches 3:1 there too. */
    --color-border-choice: color-mix(in srgb, var(--neutral-5) 3%, var(--neutral-4));

    /* A term's box is the subtle surface: behind a word on #282828 the dark wash would be a hole. */
    --color-term-bg: var(--neutral-2);
    --color-choice-active-bg: var(--neutral-2);
    /* The dark counterpart: above the surface and the subtle grey, under white text. */
    --color-range-bg: oklch(from var(--primary) 0.36 min(c, 0.04) h);
    /* The primary tint, and always a step above the fill: an orange primary is its own tint. */
    --color-chosen-day-edge: oklch(from var(--primary) max(l + 0.1, 0.55) min(c, 0.15) h);
    --color-term-line: var(--primary-tint-text);
    --color-today-in-range: var(--primary-tint-text);
    --color-selected-edge: var(--primary-tint-text);
    --color-progress-track: var(--color-bg-inset);

    /* The edges melt into their line: on the dark surface a light colour reaches 3:1 itself. */
    --color-chart-dark-yellow-edge: var(--data-dark-yellow);
    --color-chart-mint-green-edge: var(--data-mint-green);
    --color-chart-orange-edge: var(--data-orange);
    --color-chart-pink-edge: var(--data-pink);
    --color-chart-yellow-edge: var(--data-yellow);
    --color-chart-light-blue-edge: var(--data-light-blue);
    /* A label on "Overig" is ink: neutral-4 holds it at 4.16:1, so the gray takes the smallest
       share of neutral-5 that reaches 4.5:1. */
    --data-other: color-mix(in srgb, var(--neutral-5) 11%, var(--neutral-4));
    --color-map-water: var(--neutral-1);
    /* The land is the surface, so a colour that reaches 3:1 on a tile does on the map too: on
       the subtle grey the sky blue of a flow or a point fell to 2.8:1. */
    --color-map-land: var(--neutral-0);
    --color-chart-forecast-ground: var(--neutral-1);

    --shadow-sticky: 0 2px 6px var(--alpha-black-40);
    --shadow-sticky-up: 0 -2px 6px var(--alpha-black-40);
    --shadow-popover: 0 4px 16px var(--alpha-black-55);
    --shadow-nav: 2px 0 8px var(--alpha-black-40);
    --shadow-chart-hover: 0 1px 4px var(--alpha-black-60);
    --shadow-scroll-start: inset 12px 0 10px -10px var(--alpha-black-60);
    --shadow-scroll-end: inset -12px 0 10px -10px var(--alpha-black-60);
    --color-overlay-nav: var(--alpha-black-40);
  }

  /* The new style in dark is the mirror of light: the surface (a tile, the logo bar, a light
     menu) is the darkest, the page a step lighter, the subtle fill lighter still; the filled
     menu steps below the surface, so it stays a band beside the page and under the logo bar, as
     its primary fill does in light. Both selectors weigh the same as one, so what the new style
     sets in light and dark re-points here is said again. */
  [data-mode='dark'][data-style-version='new'] {
    /* Pressed a step past the lighter hover; the outlined button's pressed on the neutral step. */
    --color-action-primary-pressed: color-mix(in srgb, var(--primary), white 24%);
    --color-action-secondary-pressed: var(--neutral-3);
    --color-action-danger-pressed: color-mix(in srgb, var(--status-error), white 16%);
    --neutral-0: #1D1D1D;
    --neutral-1: #282828;
    --color-bg-page: var(--neutral-1);
    --color-bg-title: var(--neutral-1);
    --color-text-inverse: var(--neutral-0);
    /* The hero's wash is a step above the page, as it is a step below it in light: a panel or
       tab on it is darker than its ground, as a white one is lighter there. */
    --primary-wash: oklch(from var(--primary) 0.3 min(c, 0.02) h);
    /* A status mark at 3:1 on its own tint and on the page. The info blue and the green reach it
       by themselves: the floor lies under them. The error's keeps the lift of dark, as the filter
       band is #333333 here too. */
    --color-info-line: oklch(from var(--status-info) max(l, 0.5) c h);
    --color-success-line: oklch(from var(--status-success) max(l, 0.5) c h);
    /* The filled menu a step below the surface; the line tint is 3:1 on the page only. */
    --color-nav-bg: color-mix(in srgb, var(--neutral-0), #000000 25%);
    --color-map-water: var(--neutral-0);
    /* The land a step above the water: the grey of a tile in the earlier dark, on which every
       colour reaches 3:1. */
    --color-map-land: var(--neutral-1);
    /* The inverse ring of the house style: white with the dark line inside, on every surface. */
    --color-focus: var(--ink-white);
    --color-focus-inner: var(--ink-black);
    --color-focus-on-theme: var(--color-focus);
    --color-focus-on-theme-inner: var(--color-focus-inner);
    /* A checkbox stands on a chosen or opened table row (#333333) too, where the line tint falls
       under 3:1: the text tint, as the field's edge. */
    --color-border-choice: var(--color-accent-text);
    /* A field's edge stands on the filter band (#333333) too, where the line tint falls under 3:1:
       the text tint, light as the house style draws a dark field's edge. */
    --color-border-field: var(--color-accent-text);
    /* A field a step above the page, as the house style draws it in dark: the surface lies under
       the page here, and a field on it would read as a hole. */
    --color-bg-field: var(--neutral-2);
    /* The cool grey of the light veil tints a dark page blue: black here. */
    --color-overlay-page: var(--alpha-black-60);
  }
}

/* A tablet keeps the gutter as its margin, half a ribbon. */
@media screen and (max-width: 1023px) {
  [data-style-version='new'] {
    --page-pad-x: 24px;
  }
}

/* ============================================================================
   Below 768 px the gutter follows the page padding and every pointer target is the touch
   floor. Screen only: a portrait page is narrower than 768 px and keeps the desktop form.
   ========================================================================= */
@media screen and (max-width: 767px) {
  :root {
    --grid-gutter: 16px;
    --h-target: var(--h-touch);
    --h-option: var(--h-touch);
    --chart-h-expanded: 320px;
    --w-ribbon: 2.5rem;
  }
  /* The house style's phone margin and its narrow gutter: 10 px, and 12 is the step of the
     scale nearest to it. */
  [data-style-version='new'] {
    --page-pad-x: 20px;
    --grid-gutter: 12px;
  }
}

/* ============================================================================
   Paper — white under the content, since Lintje prints its own fills
   (`print-color-adjust: exact` in base.css): a band in the page's grey would cost ink and
   say nothing.
   ========================================================================= */
@media print {
  /* Both selectors: in a shadow root the new style's block weighs more than `:host` alone, so
     `:root` by itself would lose its print margin there. */
  :root,
  [data-style-version='new'] {
    /* The paper's margin is the page's edge: bars and content start at it, aligned. */
    --page-pad-x: 0px;
    --color-bg-page: var(--neutral-0);
    --color-bg-title: var(--neutral-0);
    --color-bg-filter: var(--neutral-0);
  }
}

/* The sheet's own margin, so the content never runs to the paper's edge: room for the browser's
   date, address and page number above and below, and a portrait sheet still wide enough for the
   tablet's form. A custom property does not reach `@page`, so the value stands here. */
@page { margin: 15mm 12mm; }
