/* EDM CMS: the neutral starter look of the public site.
   Every colour, type size, space and radius is a custom property on :root
   (light value, then light-dark(light, dark) for browsers that know it; the
   appearance toggle in theme.js sets data-theme). A client's theme (step 4)
   overrides these tokens and, where it needs to, the section rules below.
   System fonts only: nothing to license, nothing to download. */

:root {
  color-scheme: light dark;
  /* colour */
  --bg: #ffffff;
  --bg: light-dark(#ffffff, #101418);
  --bg-alt: #f4f5f7;
  --bg-alt: light-dark(#f4f5f7, #171c22);
  --surface: #ffffff;
  --surface: light-dark(#ffffff, #1b2129);
  --fg: #1d232b;
  --fg: light-dark(#1d232b, #e8ecf1);
  --fg-soft: #545e6b;
  --fg-soft: light-dark(#545e6b, #a8b2bf);
  /* release 0.4 (decision 13): 4.5:1 on --bg and --bg-alt in both modes */
  --fg-faint: #67707c;
  --fg-faint: light-dark(#67707c, #838d9a);
  /* decorative edges (cards, rules) */
  --line: #e1e4e8;
  --line: light-dark(#e1e4e8, #2a313b);
  /* a form field's edge: 3:1 on --surface (WCAG 1.4.11), release 0.4 */
  --line-strong: #858e9a;
  --line-strong: light-dark(#858e9a, #6f7a88);
  --accent: #2f5bd3;
  --accent: light-dark(#2f5bd3, #7ea0ff);
  --accent-strong: #2448ad;
  --accent-strong: light-dark(#2448ad, #a6bdff);
  --on-accent: #ffffff;
  --on-accent: light-dark(#ffffff, #0d1220);
  --accent-wash: #edf1fc;
  /* opaque (release 0.4): the contrast check reads it, and text sits on it
     (the announcement, the notice section); = the old 12% wash over --bg */
  --accent-wash: light-dark(#edf1fc, #1d2534);
  --band: #1d232b;
  --band: light-dark(#1d232b, #0a0d10);
  --on-band: #f4f5f7;
  --on-band-soft: #b9c0c9;
  --ok: #17663a;
  --ok: light-dark(#17663a, #86d9a8);
  --ok-bg: #e2f5e9;
  --ok-bg: light-dark(#e2f5e9, rgba(134, 217, 168, .14));
  --err: #b42318;
  --err: light-dark(#b42318, #ff9f94);
  --err-bg: #fdecea;
  --err-bg: light-dark(#fdecea, rgba(255, 159, 148, .14));
  /* type */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: var(--font);
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-numerals: var(--mono); /* step, point and timeline numbers */
  /* the type scale: a text element takes a step (release 0.6: the Look's
     Text group sets which; its fluid scale replaces these on :root) */
  --step--2: .75rem;
  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.7rem, 1.3rem + 1.6vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.8vw, 3.4rem);
  --step-5: clamp(2.5rem, 1.7rem + 3.6vw, 4.25rem);
  --step-6: clamp(2.9rem, 1.8rem + 4.8vw, 5.25rem);
  --leading: 1.6;
  /* space and shape. Release 0.6 PR 5 (core/look_ui.py): the scale is
     today's steps from a base (1 = 1rem) and a ratio, each step spread
     by (ratio / 1.5) per step away from --space-2, so the defaults give
     exactly the 0.5 values; the big steps stay fluid. The Look's Spacing
     group writes --space-base and --space-ratio (and the section, gap,
     paragraph, width and gutter tokens below) into look.css. */
  --space-base: 1;
  --space-ratio: 1.5;
  --space-k: calc(var(--space-ratio) / 1.5);
  --space-0: 0rem;
  --space-1: calc(.5rem * var(--space-base) / var(--space-k));
  --space-2: calc(1rem * var(--space-base));
  --space-3: calc(1.5rem * var(--space-base) * var(--space-k));
  --space-4: calc(2.5rem * var(--space-base) * var(--space-k) * var(--space-k));
  --space-5: clamp(calc(3rem * var(--space-base) * var(--space-k) * var(--space-k) * var(--space-k)), calc((2rem + 4vw) * var(--space-base) * var(--space-k) * var(--space-k) * var(--space-k)), calc(5.5rem * var(--space-base) * var(--space-k) * var(--space-k) * var(--space-k)));
  --space-6: clamp(calc(4rem * var(--space-base) * var(--space-k) * var(--space-k) * var(--space-k) * var(--space-k)), calc((2.5rem + 6vw) * var(--space-base) * var(--space-k) * var(--space-k) * var(--space-k) * var(--space-k)), calc(7.5rem * var(--space-base) * var(--space-k) * var(--space-k) * var(--space-k) * var(--space-k)));
  --space-7: clamp(calc(5rem * var(--space-base) * var(--space-k) * var(--space-k) * var(--space-k) * var(--space-k) * var(--space-k)), calc((3rem + 8vw) * var(--space-base) * var(--space-k) * var(--space-k) * var(--space-k) * var(--space-k) * var(--space-k)), calc(10rem * var(--space-base) * var(--space-k) * var(--space-k) * var(--space-k) * var(--space-k) * var(--space-k)));
  /* a section's padding above and below (--section-pad: the phone's below
     600px), the grids' and cards' gap, the space after a paragraph */
  --space-section: var(--space-5);
  --space-section-narrow: var(--space-5);
  --section-pad: var(--space-section);
  --space-gap: var(--space-3);
  --space-paragraph: 1rem;
  --wrap: 72rem;
  --wrap-narrow: 46rem;
  --gutter: 1.25rem;
  --radius: 12px;
  --radius-small: 8px;
  --radius-pill: 999px; /* buttons, tags, tabs: the corner styles set it too */
  --shadow: 0 18px 40px -28px rgba(15, 23, 42, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* motion (release 0.6 PR 5, decision 21 (a)): 1 normal, 0.5 subtle,
     0 none (the Look's Motion); always 0 under prefers-reduced-motion */
  --look-motion: 1;
  --dur: calc(.5s * var(--look-motion));
  --header-h: 4rem;
}
@media (max-width: 600px) { :root { --section-pad: var(--space-section-narrow); } }
@media (prefers-reduced-motion: reduce) { :root { --look-motion: 0 !important; } }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
/* The corner style Site settings › Look offers when the theme lists it in
   theme.toml [styles] radius (release 0.4): "soft" is the tokens' own
   corners; a theme restyles any of them with the same selector. */
:root[data-radius="square"] { --radius: 0; --radius-small: 0; --radius-pill: 4px; }
:root[data-radius="round"] { --radius: 24px; --radius-small: 14px; --radius-pill: 999px; }

/* base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
/* Release 0.6: the text elements read the Look's tokens (core/typography.py:
   --<element>-font, -size, -weight, -leading, -tracking, -case, -style),
   each with today's value as its fallback, so a look that sets none of
   them renders exactly as before (the colours: a role of the scheme,
   --h2-colour, --lead-colour, --caption-colour, --eyebrow-colour).
   A theme reads them the same way:
   var(--h2-size, var(--step-3)). */
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body-font, var(--font-body, var(--font))); font-size: var(--step-0); font-weight: var(--body-weight, inherit); line-height: var(--body-leading, var(--leading)); }
img { max-width: 100%; height: auto; display: block; }
/* links (release 0.6 PR 5: the Look's Links group; the fallbacks are the
   0.5 look). Links in text (rich text, a paragraph in the page; never a
   button, a card or the menu: they carry a class) also take the weight
   (unset = the text's) and the underline rule: without an underline
   (allowed only at 3:1 against the text, G183, core/look_ui.py) the
   underline comes back on hover and focus, or a wash does. */
a { color: var(--link-colour, var(--accent)); text-decoration-thickness: var(--link-thickness, auto); text-underline-offset: var(--link-offset, .15em); }
a:hover { color: var(--link-hover, var(--accent-strong)); }
:is(.prose, main p) a:not([class]) { font-weight: var(--link-weight); }
:root[data-look-links="hover"] :is(.prose, main p) a:not([class]):not(:hover, :focus-visible),
:root[data-look-links="none"] :is(.prose, main p) a:not([class]) { text-decoration-line: none; }
:root[data-look-links="none"] :is(.prose, main p) a:not([class]):is(:hover, :focus-visible) { background: var(--accent-wash); border-radius: 2px; box-shadow: 0 0 0 2px var(--accent-wash); }
h1, h2, h3, h4 { margin: 0 0 var(--space-2); }
h1 { color: var(--h1-colour, var(--fg)); font-family: var(--h1-font, var(--font-heading, var(--display))); font-size: var(--h1-size, var(--step-4)); font-weight: var(--h1-weight, bold); line-height: var(--h1-leading, 1.15); letter-spacing: var(--h1-tracking, -.01em); text-transform: var(--h1-case, inherit); }
h2 { color: var(--h2-colour, var(--fg)); font-family: var(--h2-font, var(--font-heading, var(--display))); font-size: var(--h2-size, var(--step-3)); font-weight: var(--h2-weight, bold); line-height: var(--h2-leading, 1.15); letter-spacing: var(--h2-tracking, -.01em); text-transform: var(--h2-case, inherit); }
h3 { color: var(--h3-colour, var(--fg)); font-family: var(--h3-font, var(--font-heading, var(--display))); font-size: var(--h3-size, var(--step-1)); font-weight: var(--h3-weight, bold); line-height: var(--h3-leading, 1.15); letter-spacing: var(--h3-tracking, -.01em); text-transform: var(--h3-case, inherit); }
h4 { color: var(--h4-colour, var(--fg)); font-family: var(--h4-font, var(--font-heading, var(--display))); font-size: var(--h4-size, inherit); font-weight: var(--h4-weight, bold); line-height: var(--h4-leading, 1.15); letter-spacing: var(--h4-tracking, -.01em); text-transform: var(--h4-case, inherit); }
/* H5 and H6 keep the browser's sizes and the body's font until set */
h5 { color: var(--h5-colour, inherit); font-family: var(--h5-font, inherit); font-size: var(--h5-size, .83em); font-weight: var(--h5-weight, bold); line-height: var(--h5-leading, inherit); letter-spacing: var(--h5-tracking, inherit); text-transform: var(--h5-case, inherit); }
h6 { color: var(--h6-colour, inherit); font-family: var(--h6-font, inherit); font-size: var(--h6-size, .67em); font-weight: var(--h6-weight, bold); line-height: var(--h6-leading, inherit); letter-spacing: var(--h6-tracking, inherit); text-transform: var(--h6-case, inherit); }
small { font-size: var(--small-size, smaller); letter-spacing: var(--small-tracking, inherit); text-transform: var(--small-case, inherit); }
p { margin: 0 0 var(--space-paragraph); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--space-2); top: -4rem; z-index: 100; background: var(--fg); color: var(--bg); padding: .6rem 1rem; border-radius: var(--radius-small); }
.skip:focus { top: var(--space-2); }
.muted { color: var(--fg-soft); }
.lbl { display: block; font-size: var(--small-size, var(--step--1)); letter-spacing: var(--small-tracking, inherit); text-transform: var(--small-case, inherit); color: var(--fg-faint); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2 * var(--gutter), var(--wrap-narrow)); }
.eyebrow { font-family: var(--eyebrow-font, inherit); text-transform: var(--eyebrow-case, uppercase); letter-spacing: var(--eyebrow-tracking, .12em); font-size: var(--eyebrow-size, var(--step--1)); font-weight: var(--eyebrow-weight, 700); color: var(--eyebrow-colour, var(--accent)); margin-bottom: var(--space-1); }
.lead { font-size: var(--lead-size, var(--step-1)); font-weight: var(--lead-weight, inherit); line-height: var(--lead-leading, var(--leading)); color: var(--lead-colour, var(--fg-soft)); max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: var(--space-3) 0 0; }

/* buttons. Release 0.6 PR 5 (core/look_ui.py): the Look's Buttons group
   writes the shape (--btn-radius) and, per style (primary = .btn and the
   band's .btn-light; secondary; ghost and .btn-ghost-light), the font,
   weight, case, letter spacing, size (a factor of the 2.75rem height and
   its padding) and border width. The fallbacks are the 0.5 look; an unset
   --btn-*-font leaves the font inherited, as before. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: calc(2.75rem * var(--btn-primary-size, 1)); padding: calc(.65rem * var(--btn-primary-size, 1)) calc(1.2rem * var(--btn-primary-size, 1)); border-radius: var(--btn-radius, var(--radius-pill)); border: var(--btn-primary-border, 1.5px) solid var(--accent); background: var(--accent); color: var(--on-accent); font: inherit; font-family: var(--btn-primary-font); font-weight: var(--btn-primary-weight, 650); text-transform: var(--btn-primary-case, none); letter-spacing: var(--btn-primary-tracking, normal); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-ghost, .btn-ghost-light { min-height: calc(2.75rem * var(--btn-ghost-size, 1)); padding: calc(.65rem * var(--btn-ghost-size, 1)) calc(1.2rem * var(--btn-ghost-size, 1)); border-width: var(--btn-ghost-border, 1.5px); font-family: var(--btn-ghost-font); font-weight: var(--btn-ghost-weight, 650); text-transform: var(--btn-ghost-case, none); letter-spacing: var(--btn-ghost-tracking, normal); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-wash); color: var(--accent-strong); }
.btn-light { background: var(--on-band); border-color: var(--on-band); color: var(--band); }
.btn-light:hover { background: #ffffff; border-color: #ffffff; color: var(--band); }
.btn-ghost-light { background: transparent; border-color: var(--on-band-soft); color: var(--on-band); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .08); border-color: var(--on-band); color: var(--on-band); }
/* secondary (release 0.6 PR 5): the alternate background's fill and the
   text colour, or (buttons.secondary = outline) an outline in the text
   colour */
.btn-secondary { min-height: calc(2.75rem * var(--btn-secondary-size, 1)); padding: calc(.65rem * var(--btn-secondary-size, 1)) calc(1.2rem * var(--btn-secondary-size, 1)); border-width: var(--btn-secondary-border, 1.5px); border-color: var(--bg-alt); background: var(--bg-alt); color: var(--fg); font-family: var(--btn-secondary-font); font-weight: var(--btn-secondary-weight, 650); text-transform: var(--btn-secondary-case, none); letter-spacing: var(--btn-secondary-tracking, normal); }
.btn-secondary:hover { background: var(--accent-wash); border-color: var(--accent-wash); color: var(--fg); }
:root[data-look-btn-secondary="outline"] .btn-secondary { background: transparent; border-color: var(--fg); }
:root[data-look-btn-secondary="outline"] .btn-secondary:hover { background: var(--accent-wash); border-color: var(--fg); }
/* the hover (buttons.hover): the strong shade (above), a lift that the
   motion setting scales (none under reduced motion), or an underline on
   the ghost buttons */
:root[data-look-btn-hover="lift"] .btn:hover { transform: translateY(calc(-1px * var(--look-motion))); }
:root[data-look-btn-hover="underline"] :is(.btn-ghost, .btn-ghost-light):hover { text-decoration: underline; text-underline-offset: .2em; }
.btn-small { min-height: 2.25rem; padding: .4rem .9rem; font-size: var(--step--1); }
.arrow { transition: transform .2s var(--ease); display: inline-block; }

/* header */
.hdr { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.hdr.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -22px rgba(15, 23, 42, .5); }
.hdr-row { display: flex; align-items: center; gap: var(--space-3); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--fg); flex: none; }
.brand img { max-height: 2.4rem; width: auto; }
.brand-text { font-family: var(--display); font-weight: 800; font-size: var(--step-1); letter-spacing: -.01em; color: var(--fg); }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav a { display: block; padding: .5rem .75rem; border-radius: var(--radius-pill); color: var(--fg-soft); text-decoration: none; font-family: var(--nav-font, inherit); font-weight: var(--nav-weight, 600); letter-spacing: var(--nav-tracking, inherit); text-transform: var(--nav-case, inherit); }
.nav a:hover { color: var(--fg); background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--accent-wash); }
.hdr-tools { display: flex; align-items: center; gap: .5rem; }
.nav + .hdr-tools { margin-left: 0; }
.hdr-tools:first-child, .brand + .hdr-tools { margin-left: auto; }
.langs { display: flex; gap: .15rem; }
.langs a { display: inline-grid; place-items: center; min-width: 24px; min-height: 24px; padding: .35rem .5rem; border-radius: var(--radius-small); color: var(--fg-soft); text-decoration: none; font-size: var(--step--1); font-weight: 700; letter-spacing: .04em; }
.langs a:hover { color: var(--fg); background: var(--bg-alt); }
.langs a[aria-current="true"] { color: var(--fg); text-decoration: underline; text-underline-offset: .3em; }
.menu-btn { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); cursor: pointer; color: var(--fg); position: relative; }
.menu-bars, .menu-bars::before, .menu-bars::after { position: absolute; left: 50%; width: 1.1rem; height: 2px; background: currentColor; border-radius: 2px; transform: translateX(-50%); transition: transform .25s var(--ease), opacity .2s; }
.menu-bars { top: 50%; margin-top: -1px; }
.menu-bars::before, .menu-bars::after { content: ""; left: 0; transform: none; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); background: currentColor; }
.menu-btn[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); background: currentColor; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--bg); padding: var(--space-2) 0 var(--space-3); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; }
.mobile-nav li a { display: block; padding: .8rem 0; font-size: var(--step-1); font-family: var(--nav-font, inherit); font-weight: var(--nav-weight, 650); letter-spacing: var(--nav-tracking, inherit); text-transform: var(--nav-case, inherit); color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav li a[aria-current="page"] { color: var(--accent); }
.mobile-nav .langs { margin-top: var(--space-2); flex-wrap: wrap; gap: .5rem; }
.mobile-nav .langs a { font-size: var(--step-0); padding: .4rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-pill); }
/* drop-downs: an item with sub-items. A mouse opens it on hover; the
   button beside the link (or the heading, when the item has no page of its
   own) opens it for keyboard and touch (site.js keeps aria-expanded). With
   no script, focus inside the item opens it. */
.nav li { position: relative; }
.has-sub { display: flex; align-items: center; }
.has-sub > a { padding-right: .3rem; }
.sub-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 24px; min-height: 24px; padding: .5rem .55rem; border: 0; border-radius: var(--radius-pill); background: none; color: var(--fg-soft); font: inherit; font-family: var(--nav-font, inherit); font-weight: var(--nav-weight, 600); letter-spacing: var(--nav-tracking, inherit); text-transform: var(--nav-case, inherit); cursor: pointer; }
.sub-head { padding: .5rem .75rem; }
.sub-btn:hover { color: var(--fg); background: var(--bg-alt); }
.nav a[aria-current="true"], .sub-btn[aria-current="true"] { color: var(--fg); background: var(--accent-wash); }
.sub-caret { width: .42rem; height: .42rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.sub-btn[aria-expanded="true"] .sub-caret { transform: translateY(1px) rotate(225deg); }
.nav .sub { display: none; position: absolute; top: 100%; left: 0; z-index: 40; min-width: 14rem; flex-direction: column; gap: .1rem; padding: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.nav .sub a { border-radius: var(--radius-small); white-space: nowrap; }
.has-sub:hover > .sub, .sub-btn[aria-expanded="true"] + .sub { display: flex; }
html:not(.js) .has-sub:focus-within > .sub { display: flex; }
.mobile-sub { padding-left: var(--space-2) !important; }
.mobile-sub li a { font-size: var(--step-0); font-weight: var(--nav-weight, 600); }
.mobile-head { display: block; padding: .8rem 0 .3rem; font-size: var(--step-1); font-weight: 650; color: var(--fg-soft); }
/* no script: the phone menu cannot open, so it shows open */
@media (max-width: 860px) { html:not(.js) .mobile-nav[hidden] { display: block; } html:not(.js) .menu-btn { display: none; } }
@media (max-width: 860px) {
  .nav, .hdr-tools .langs { display: none; }
  .menu-btn { display: inline-block; }
  .hdr-tools { margin-left: auto; }
}
@media (min-width: 861px) { .mobile-nav { display: none !important; } }

/* sections */
.sec { padding: var(--section-pad) 0; position: relative; }
.sec + .sec { padding-top: 0; }
.sec.sec-cta, .sec.sec-stats, .sec-page_head + .sec { padding-top: var(--section-pad); }
.sec.sec-notice { padding: var(--space-3) 0; }
.sec-notice + .sec { padding-top: var(--space-4); }
.sec-title { max-width: 40rem; }
.sec-intro { color: var(--lead-colour, var(--fg-soft)); font-size: var(--lead-size, var(--step-1)); font-weight: var(--lead-weight, inherit); line-height: var(--lead-leading, var(--leading)); max-width: 42rem; margin-bottom: var(--space-4); }
.grid { display: grid; gap: var(--space-gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
ul.grid, ol.grid { list-style: none; margin: 0; padding: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); }
.card h3 { margin-bottom: var(--space-1); }
.card p { color: var(--fg-soft); margin: 0; }
.prose { max-width: 42rem; }
.prose > :last-child { margin-bottom: 0; }
/* rich text's headings sit a step above the sections' until the Look
   sizes H3 / H4: then they follow it */
.prose h3 { font-size: var(--h3-size, var(--step-2)); margin-top: var(--space-4); }
.prose h4 { font-size: var(--h4-size, var(--step-1)); margin-top: var(--space-3); }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 var(--space-2); }
.prose li { margin-bottom: .35rem; }

/* hero */
.hero, .hero2 { display: grid; gap: var(--space-4); align-items: center; }
.hero.has-image, .hero2.has-image, .hero2:has(.hero-side) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.hero-text h1 { max-width: 18ch; }
.hero:not(.has-image) .hero-text h1 { max-width: 22ch; }
.hero-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.sec-hero, .sec-hero_split { padding-top: var(--space-4); }
@media (max-width: 860px) {
  .hero.has-image, .hero2.has-image, .hero2:has(.hero-side) { grid-template-columns: 1fr; }
}
.aud { max-width: 40rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); box-shadow: var(--shadow); }
.hero-text .aud { margin-top: var(--space-3); }
.aud-tabs { display: flex; flex-wrap: wrap; gap: .25rem; background: var(--bg-alt); border-radius: var(--radius-pill); padding: .3rem; margin-bottom: var(--space-3); }
.aud-tabs button { flex: 1; font: inherit; font-weight: 700; color: var(--fg-soft); background: none; border: 0; border-radius: var(--radius-pill); padding: .55rem .9rem; cursor: pointer; transition: background .2s, color .2s; }
.aud-tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.aud-panel { display: grid; gap: var(--space-2); }
.aud-panel .aud-title { font-size: var(--step-2); margin: 0; }
.aud-panel p { margin: 0; color: var(--fg-soft); }
.aud.js .aud-panel { display: none; }
.aud.js .aud-panel.on { display: grid; }
.aud.js .aud-title { display: none; }
.aud:not(.js) .aud-tabs { display: none; }
.aud:not(.js) .aud-panel + .aud-panel { margin-top: var(--space-3); }

/* inner page opening */
.page-head { padding-top: var(--space-2); }
.page-head h1 { max-width: 22ch; }
.sec-page_head { padding-bottom: 0; }

/* the announcement bar (release 0.4: site/_announcement.html), above the header */
.announce { background: var(--accent-wash); color: var(--fg); font-size: var(--step--1); }
.announce-row { padding-top: .55rem; padding-bottom: .55rem; }
.announce p { margin: 0; font-weight: 600; text-align: center; }
.announce a { font-weight: 700; color: var(--accent-strong); }
.announce-dark { background: var(--band); color: var(--on-band); }
.announce-dark a { color: var(--on-band); }

/* notice bar */
.notice-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .85rem 1.1rem; border-radius: var(--radius); background: var(--accent-wash); color: var(--fg); }
.notice-bar p { margin: 0; font-weight: 600; flex: 1; min-width: 12rem; }
.notice-bar a { font-weight: 700; }
.notice-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); flex: none; }
.notice-dark { background: var(--band); color: var(--on-band); }
.notice-dark a { color: var(--on-band); }
.notice-dark .notice-dot { background: var(--on-band); }

/* doors */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--space-gap); }
.door { display: grid; gap: var(--space-1); text-decoration: none; color: var(--fg); transition: border-color .2s, transform .2s var(--ease); }
.door:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--fg); }
.door-cta { color: var(--accent); font-weight: 700; margin-top: var(--space-1); }
.door:hover .arrow, .card-cta:hover .arrow { transform: translateX(3px); }

/* stats band */
.sec-stats { background: var(--band); color: var(--on-band); padding-bottom: var(--section-pad); }
.sec-stats .sec-title { color: var(--on-band); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--space-gap); margin: 0; }
.stat { margin: 0; }
.stat-num { font-family: var(--display); font-size: var(--step-4); font-weight: 800; line-height: 1; margin: 0 0 .4rem; }
.stat-lbl { margin: 0; color: var(--on-band-soft); }
.sec-stats + .sec, .sec-cta + .sec { padding-top: var(--section-pad); }

/* steps, points, timeline */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--space-gap); counter-reset: step; }
.steps li { display: grid; gap: var(--space-1); align-content: start; border-top: 2px solid var(--line); padding-top: var(--space-2); }
.steps-column { grid-template-columns: 1fr; max-width: 42rem; }
.steps-column li { grid-template-columns: auto 1fr; gap: var(--space-2); }
.step-n, .pt-n { font-family: var(--font-numerals); font-weight: 700; color: var(--accent); font-size: var(--step--1); }
.step-when { display: block; font-size: var(--step--1); color: var(--fg-faint); font-weight: 600; }
.steps h3, .points h3 { margin: .15rem 0 .35rem; }
.steps p, .points p { margin: 0; color: var(--fg-soft); }
.points { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.points li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--line); display: grid; gap: var(--space-3); }
.timeline li { position: relative; display: grid; gap: .25rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.25rem - 6px); top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.tl-year { font-family: var(--font-numerals); font-weight: 700; color: var(--accent); font-size: var(--step--1); }
.tl-body h3 { margin-bottom: .25rem; }
.tl-body p { margin: 0; color: var(--fg-soft); }

/* cards, sectors */
.cards .card { display: grid; gap: var(--space-1); align-content: start; }
.card-cta { margin-top: var(--space-1); font-weight: 700; text-decoration: none; }

/* text with image, columns, single image */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.split:not(:has(.split-media)) { grid-template-columns: minmax(0, 1fr); }
.split.image-left .split-media { order: -1; }
.split-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure figcaption, .video figcaption { margin-top: var(--space-1); color: var(--caption-colour, var(--fg-soft)); font-size: var(--caption-size, var(--step--1)); font-style: var(--caption-style, inherit); }
.figure-empty, .gallery-empty, .video-blank { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); background: repeating-linear-gradient(135deg, var(--bg-alt) 0 12px, transparent 12px 24px); border: 1px dashed var(--line); }
@media (max-width: 760px) {
  .split, .columns { grid-template-columns: 1fr; }
  .split.image-left .split-media { order: 0; }
}

/* gallery, logos */
.gallery-scroll { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery { list-style: none; padding: 0; margin-block: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 1fr); gap: var(--space-2); }
.gallery li { scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery p { margin: .5rem 0 0; font-size: var(--step--1); color: var(--fg-soft); }
.gallery-empty { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .gallery { grid-auto-columns: 78%; } }
/* release 0.4.1: click to enlarge (site.js builds the dialog) */
.gallery-open { display: block; border-radius: var(--radius); cursor: zoom-in; }
.lightbox { border: 0; padding: 0; margin: 0; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgb(8, 10, 14); color: #fff; overflow: hidden; }
html.lb-open { overflow: hidden; scrollbar-gutter: stable; }
.lightbox::backdrop { background: rgb(8, 10, 14); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 3.5rem 1rem 3rem; box-sizing: border-box; touch-action: pan-y; }
.lightbox .lb-img { -webkit-user-drag: none; user-select: none; max-width: 100%; max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-small); }
.lightbox figcaption { max-width: 60ch; text-align: center; font-size: var(--step--1); color: #e8ecf1; }
.lightbox .lb-count { position: absolute; left: 0; right: 0; bottom: .75rem; margin: 0; text-align: center; font-size: var(--step--1); color: #c9d0d8; }
.lightbox .lb-btn { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius-pill); background: rgba(0, 0, 0, .45); color: #fff; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.lightbox .lb-btn:hover { background: rgba(0, 0, 0, .7); }
.lightbox .lb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lightbox .lb-close { top: .75rem; right: .75rem; }
.lightbox .lb-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: .75rem; top: 50%; transform: translateY(-50%); }
.logos-title { text-align: center; color: var(--fg-faint); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-3) var(--space-4); }
.logos img { max-height: 3rem; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logos a:hover img { filter: none; opacity: 1; }
.logo-name { font-family: var(--display); font-weight: 800; font-size: var(--step-1); color: var(--fg-faint); }
/* release 0.5 PR 7: logo groups under a heading, picture credits, bank
   accounts with a copy button (shown by site.js), ways to support */
.logos-group { margin-top: var(--space-4); }
.logos-heading { margin: 0 0 var(--space-2); text-align: center; font-size: var(--step-0); color: var(--fg-soft); }
.img-credit { margin: .25rem 0 0; font-size: var(--step--1); color: var(--fg-soft); }
.gallery p.img-credit { margin-top: .15rem; }
.bank-accounts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.bank-account p { margin: 0 0 .25rem; }
.bank-iban { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; }
.bank-iban .lbl { flex-basis: 100%; }
.iban { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--step-0); letter-spacing: .02em; overflow-wrap: anywhere; user-select: all; }
.copy-status { font-size: var(--step--1); color: var(--fg-soft); }
.copy-status:empty { display: none; }
.facts-bank { margin-top: var(--space-2); }
.support-way p { margin: 0; }
.support-amount strong { font-size: var(--step-1); }
.support-accounts { margin-top: var(--space-3); }
.support-accounts h3 { margin-top: 0; }

/* quotes */
.quote { margin: 0; text-align: center; }
.quote blockquote, .voice blockquote { margin: 0 0 var(--space-2); font-family: var(--blockquote-font, var(--font-heading, var(--display))); font-size: var(--blockquote-size, var(--step-2)); font-style: var(--blockquote-style, inherit); line-height: 1.35; }
.quote figcaption, .voice figcaption { display: grid; gap: .1rem; color: var(--fg-soft); font-size: var(--step--1); }
.quote figcaption strong, .voice figcaption strong { color: var(--fg); }
.voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--space-gap); }
.voice { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); }
.voice blockquote { font-size: var(--step-1); }
.who { display: block; font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--accent); margin-bottom: var(--space-1); }

/* team */
.team { text-align: center; }
.avatar { width: 8rem; height: 8rem; border-radius: 50%; object-fit: cover; margin: 0 auto var(--space-2); }
.avatar-empty { display: grid; place-items: center; background: var(--bg-alt); color: var(--fg-faint); font-family: var(--display); font-size: var(--step-3); font-weight: 800; }
.team h3 { margin-bottom: .1rem; }
.team p { margin: 0; }

/* questions */
.faq { display: grid; gap: var(--space-1); }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); font-weight: 650; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { width: .8rem; height: .8rem; position: relative; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; inset: 50% 0 auto; height: 2px; margin-top: -1px; background: currentColor; transition: transform .25s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-body { padding: 0 var(--space-3) var(--space-2); color: var(--fg-soft); }

/* comparison */
.compare-scroll { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 28rem; }
.compare th, .compare td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--display); font-size: var(--step-1); }
.compare tbody th { color: var(--fg-soft); font-weight: 600; }

/* call to action band */
.sec-cta { background: var(--band); color: var(--on-band); padding-bottom: var(--section-pad); }
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); }
.cta h2 { color: var(--on-band); margin-bottom: var(--space-1); }
.cta p { color: var(--on-band-soft); margin: 0; max-width: 36rem; }
.cta .actions { margin: 0; }

/* contact and forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-4); align-items: start; }
.contact-grid.single { grid-template-columns: minmax(0, 1fr); max-width: 42rem; }
.contact-details p { margin-bottom: var(--space-2); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: var(--space-2); position: relative; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: var(--step--1); }
.form label em { color: var(--err); font-style: normal; }
.form input, .form textarea { width: 100%; font: inherit; font-size: var(--step-0); padding: .7rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-small); background: var(--surface); color: var(--fg); transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { outline: 2px solid transparent; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.form .grid { gap: var(--space-2); }
.form .actions { margin-top: var(--space-1); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: .9rem 1.1rem; border-radius: var(--radius-small); margin-bottom: var(--space-2); }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.err { background: var(--err-bg); color: var(--err); }
/* the form builder (release 0.4 PR 6a): fields, errors, consent boxes */
.ff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.ff { grid-column: 1 / -1; display: grid; gap: .35rem; align-content: start; }
.ff-half { grid-column: auto; }
@media (max-width: 640px) { .ff-half { grid-column: 1 / -1; } }
.ff-label { font-weight: 600; font-size: var(--step--1); }
.ff-req { color: var(--err); }
.ff-help { margin: 0; font-size: var(--step--1); color: var(--fg-soft); }
.form select { width: 100%; font: inherit; font-size: var(--step-0); padding: .65rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-small); background: var(--surface); color: var(--fg); min-height: 2.75rem; }
.form select:focus { outline: 2px solid transparent; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.form input[type=checkbox], .form input[type=radio] { width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; flex: none; accent-color: var(--accent); }
.form input[type=checkbox]:focus-visible, .form input[type=radio]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
.form .ff-check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: var(--step-0); min-height: 24px; }
.ff-choices, .ff-consent { border: 0; margin: 0; padding: 0; display: grid; gap: .45rem; min-width: 0; }
.ff-choices legend, .ff-consent-purpose { padding: 0; margin-bottom: .2rem; font-weight: 600; font-size: var(--step--1); }
.ff-consent { padding: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-small); }
.ff-msg { margin: 0; color: var(--err); font-size: var(--step--1); font-weight: 600; }
.ff-error input, .ff-error textarea, .ff-error select { border-color: var(--err); border-width: 2px; }
.ff-error { border-left: 4px solid var(--err); padding-left: .75rem; }
.ff-summary { padding: var(--space-2); border: 3px solid var(--err); border-radius: var(--radius-small); background: var(--surface); color: var(--fg); }
.ff-summary:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.ff-summary-title { margin: 0 0 .4rem; font-size: var(--step-0); color: var(--err); }
.ff-summary ul { margin: 0; padding-left: 1.2rem; }
.ff-summary a { display: inline-block; min-height: 24px; padding-block: .1rem; color: var(--err); font-weight: 600; } /* 24 px targets (WCAG 2.5.8) */
.ff-privacy { margin: 0; font-size: var(--step--1); color: var(--fg-soft); }
.ff-regarding { margin: 0; padding: .7rem .85rem; border-radius: var(--radius-small); background: var(--accent-wash); color: var(--fg); }
.ff-closed { background: var(--bg-alt); }

/* offices */
.locations .card { display: grid; gap: .25rem; align-content: start; }
.locations .card p { margin: 0 0 .4rem; color: var(--fg); }
.locations .btn { justify-self: start; margin-top: var(--space-1); }
.loc-address { color: var(--fg-soft) !important; }

/* video */
.video { margin: 0; }
.video-poster { display: block; position: relative; width: 100%; padding: 0; border: 0; background: var(--band); border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; }
.video-blank { border: 0; height: 100%; background: var(--band); }
.video-play { position: absolute; inset: 50% auto auto 50%; width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem; border-radius: 50%; background: var(--on-band); box-shadow: var(--shadow); }
.video-play::after { content: ""; position: absolute; left: 1.8rem; top: 1.35rem; border-style: solid; border-width: .9rem 0 .9rem 1.4rem; border-color: transparent transparent transparent var(--band); }
.video-note { position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem .9rem; font-size: var(--step--1); color: var(--on-band); background: linear-gradient(transparent, rgba(0, 0, 0, .55)); text-align: left; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; }

/* release 0.4, PR 5a: click-to-load embeds (site/_embed.html), the map,
   the cookie list, the policy facts. Nothing of a provider loads before
   the visitor presses "Load"; without scripts the button is a link. */
.embed { display: grid; place-items: center; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); aspect-ratio: 16 / 9; padding: var(--space-3); }
.embed-h-short { aspect-ratio: auto; min-height: 14rem; }
.embed-h-tall { aspect-ratio: auto; min-height: 30rem; }
.embed-map.embed-h-tall { min-height: 24rem; }
.embed-card { max-width: 34rem; text-align: center; display: grid; gap: var(--space-1); justify-items: center; }
.embed-name { margin: 0; font-weight: 700; font-size: var(--step-1); }
.embed-note { margin: 0; color: var(--fg-soft); font-size: var(--step--1); }
html:not(.js) .embed-load, html.js .embed-open { display: none; }
.embed.loaded { padding: 0; background: none; border: 0; place-items: stretch; }
.embed-frame { width: 100%; height: 100%; min-height: inherit; border: 0; border-radius: var(--radius); display: block; }
.embed-video .embed-frame { aspect-ratio: 16 / 9; }
/* release 0.5 PR 4: a link-only provider (a script-only service) is a card
   with a link out, no frame; a form or a post is taller than a video */
.embed.embed-link { aspect-ratio: auto; }
.embed-form.embed-h-medium, .embed-post.embed-h-medium { aspect-ratio: auto; min-height: 30rem; }
.embed-audio.embed-h-medium { aspect-ratio: auto; min-height: 10rem; }
.embed-figure, .map-figure { margin: 0; }
.embed-figure figcaption { margin-top: var(--space-1); color: var(--caption-colour, var(--fg-soft)); font-size: var(--caption-size, var(--step--1)); font-style: var(--caption-style, inherit); }
.map-picture { width: 100%; border-radius: var(--radius); }
.map-caption { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: var(--space-1); color: var(--fg-soft); font-size: var(--step--1); }
.cookie-table { overflow-x: auto; margin: 0 0 var(--space-3); }
.cookie-table:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cookie-table table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.cookie-table th, .cookie-table td { text-align: left; vertical-align: top; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
.cookie-table th { color: var(--fg-soft); font-weight: 700; }
.cookie-table code { font-size: .95em; overflow-wrap: anywhere; }
.cookie-kind { display: block; color: var(--fg-soft); }
.cookie-h, .pf-h { font-size: var(--step-1); margin: var(--space-3) 0 var(--space-1); }
.policy-facts .pf-part:first-child .pf-h { margin-top: 0; }
.policy-facts p, .policy-facts ul { margin: 0 0 .5rem; }
@media (max-width: 640px) {
  .cookie-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cookie-table tr { display: block; padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .cookie-table td { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; border: 0; padding: .2rem 0; }
  .cookie-table td::before { content: attr(data-label); color: var(--fg-soft); font-weight: 700; }
  .embed:not(.embed-h-tall) { aspect-ratio: auto; min-height: 14rem; }
  .embed-h-tall { min-height: 24rem; }
}
.theme-wrap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; }
.theme-note { color: var(--fg-soft); font-size: .75rem; }

/* divider */
.sec.sec-divider { padding: var(--space-3) 0; }
.divider { border: 0; margin: 0; }
.divider-line { border-top: 1px solid var(--line); }
.divider-dot { height: 8px; width: 8px; border-radius: 50%; background: var(--accent); margin-inline: auto; }
.divider-space { height: var(--space-4); }

/* footer */
.ftr { background: var(--bg-alt); border-top: 1px solid var(--line); padding: var(--space-5) 0 var(--space-3); margin-top: var(--space-5); color: var(--fg-soft); font-size: var(--step--1); }
.sec-cta:last-child { margin-bottom: 0; }
main:has(> .sec-cta:last-child) + .ftr { margin-top: 0; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-4); }
.ftr-brand img { max-height: 2.4rem; width: auto; margin-bottom: var(--space-2); }
.ftr-brand .brand-text { display: block; margin-bottom: var(--space-1); }
.ftr-text { margin-top: var(--space-2); }
.ftr-col p { margin-bottom: var(--space-2); color: var(--fg); }
.ftr-links, .social { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.ftr-links a, .social a { color: var(--fg); text-decoration: none; }
.ftr-links a:hover, .social a:hover { text-decoration: underline; }
.social { margin-top: var(--space-3); }
/* release 0.4.1: a known network's link is its icon (site/_social.html),
   at least 40 px to press; the others stay text links */
.social:has(.social-icon) { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; }
.social a.social-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; min-height: 2.5rem; border-radius: var(--radius-small); color: var(--fg-soft); }
.social a.social-icon:hover { color: var(--accent); background: var(--accent-wash); text-decoration: none; }
.social a.social-icon svg { fill: currentColor; display: block; }
.ftr-h { margin: 0 0 var(--space-1); font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-soft); }
.ftr-legal { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: 0; }
.ftr-legal a { color: var(--fg-soft); }
.ftr-legal a:hover { color: var(--fg); }
.ftr-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); }
@media (max-width: 760px) { .ftr-grid { grid-template-columns: 1fr; gap: var(--space-3); } }
.theme { display: inline-flex; gap: .1rem; padding: .15rem; border-radius: var(--radius-pill); background: var(--bg); border: 1px solid var(--line); }
.theme button { font: inherit; font-size: .75rem; font-weight: 700; color: var(--fg-soft); background: none; border: 0; border-radius: var(--radius-pill); padding: .3rem .6rem; cursor: pointer; }
.theme button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* 404 */
.sec-notfound { padding-top: var(--section-pad); }

/* site search: the form (search page and search box), results, types, pages */
.search-form { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: var(--space-2) 0 var(--space-3); }
.search-form input { flex: 1 1 14rem; min-width: 0; min-height: 2.75rem; font: inherit; font-size: var(--step-0); padding: .65rem .95rem; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--fg); }
.search-form input:focus { outline: 2px solid transparent; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.search-form .btn { flex: none; }
.search-box h2 { margin-bottom: var(--space-1); }
.search-count { color: var(--fg-soft); margin: 0 0 var(--space-2); }
.search-types { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: var(--space-3); }
.search-types a { display: inline-flex; gap: .4rem; align-items: center; padding: .35rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--fg); text-decoration: none; font-size: var(--step--1); font-weight: 600; }
.search-types a span { color: var(--fg-faint); font-weight: 500; }
.search-types a[aria-current] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.search-types a[aria-current] span { color: inherit; opacity: .75; }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.search-results li { padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.search-results h2 { font-size: var(--step-1); margin: 0 0 .3rem; }
.search-results h2 a { color: var(--accent); text-decoration: none; }
.search-results h2 a:hover { text-decoration: underline; }
.search-type { margin: 0 0 .2rem; font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-faint); }
.search-snippet { margin: 0; color: var(--fg-soft); }
.search-snippet mark { background: var(--accent-wash); color: var(--fg); font-weight: 650; padding: 0 .1em; border-radius: 3px; }
.search-pager { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-3); }
.search-none .lead { margin-bottom: var(--space-1); }
.search-suggestions { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; list-style: none; }

/* motion: reveals ride the scroll timeline where the browser has it, an
   IntersectionObserver (site.js) elsewhere; nothing moves for people who ask
   for less motion, and everything is visible without JavaScript */
/* release 0.6 PR 5: --look-motion scales the distance and the fade
   (0 = nothing moves; the Look's Motion, or reduced motion) */
.reveal { opacity: calc(1 - var(--look-motion)); transform: translateY(calc(16px * var(--look-motion))); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] { animation: reveal .6s var(--ease) both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    .sec-hero [data-reveal], .sec-hero_split [data-reveal], .sec-page_head [data-reveal] { animation: none; }
  }
}
@keyframes reveal { from { opacity: calc(1 - var(--look-motion)); transform: translateY(calc(16px * var(--look-motion))); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  :root { color-scheme: light; }
  .hdr, .ftr .theme, .menu-btn, .mobile-nav, .skip { display: none !important; }
  [data-reveal], .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .sec-stats, .sec-cta { background: none; color: inherit; }
}

/* an item of a collection: the engine's default page (collections/item.html) */
.sec-item .item-parent { margin: 0 0 var(--space-2); font-size: .95rem; }
.sec-item .item-parent a { color: var(--fg-soft); text-decoration: none; }
/* release 0.5: a dated item's moment and the "has passed" note */
.sec-item .item-when { margin: 0 0 var(--space-2); color: var(--fg-soft); }
.sec-item .item-passed { margin: 0 0 var(--space-3); padding: var(--space-2) var(--space-3); border-left: 3px solid var(--line-strong); background: var(--accent-wash); }
.sec-item .item-f { margin: 0 0 var(--space-3); }
.sec-item .item-image img { width: 100%; height: auto; border-radius: var(--radius); }
.sec-item address { font-style: normal; }

/* A term's page (collections/term.html) and an item's term, reference and
   file fields (collections/_field.html) */
.sec-term .item-parent { margin: 0 0 var(--space-2); font-size: .95rem; }
.sec-term .item-parent a { color: var(--fg-soft); text-decoration: none; }
.term-description { margin: 0 0 var(--space-3); }
.term-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--space-2); }
.term-pager { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-3); }
.term-empty { margin: 0; }
.item-terms a { text-decoration: none; }
.item-refs { padding-left: 1.1rem; }

/* lists of a collection's items (sections/collection_list.html): the cards,
   the visitors' filters and orders (site/_facets.html), the page numbers
   (site/_pagination.html); the related items of an item page use the cards */
.list-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-gap); }
.list-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.list-list { gap: 0; }
.list-list > li { padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.list-compact { gap: .35rem; }
.item-card { display: grid; gap: var(--space-1); align-content: start; min-width: 0; overflow-wrap: anywhere; }
.item-card-cards { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); }
.item-card-image { width: calc(100% + 2 * var(--space-3)); max-width: none; height: auto; margin: calc(-1 * var(--space-3)) calc(-1 * var(--space-3)) var(--space-1); border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 3 / 2; object-fit: cover; }
.item-card-title { font-size: var(--step-1); margin: 0; }
.item-card-title a { color: var(--fg); text-decoration: none; }
.item-card-title a:hover { color: var(--accent); text-decoration: underline; }
.item-card-compact .item-card-title { font-size: var(--step-0); font-weight: 650; }
.item-card-summary { margin: 0; color: var(--fg-soft); }
/* release 0.5 PR 2: a dated list's headings (month / week / day) */
.list-group + .list-group { margin-top: var(--space-4); }
.list-group-title { margin: 0 0 var(--space-2); font-size: 1.15rem; }

/* release 0.5 PR 6: picked items (the first one large under "feature"),
   a table of facts (the label above its value on a phone), downloads */
.picked-feature { grid-column: 1 / -1; }
.picked-feature .item-card-title { font-size: var(--step-2); }
@media (min-width: 761px) {
  .picked-feature .item-card-cards { grid-template-columns: 3fr 2fr; column-gap: var(--space-3); }
  .picked-feature .item-card-image { grid-row: 1 / span 3; width: calc(100% + var(--space-3)); height: calc(100% + 2 * var(--space-3)); margin: calc(-1 * var(--space-3)) 0 calc(-1 * var(--space-3)) calc(-1 * var(--space-3)); border-radius: var(--radius) 0 0 var(--radius); }
}
.picked-more { margin: var(--space-3) 0 0; }
.facts-group + .facts-group { margin-top: var(--space-3); }
.facts-heading { font-size: var(--step-1); margin: 0 0 var(--space-1); }
.facts-table { margin: 0; border-top: 1px solid var(--line); }
.facts-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .25rem var(--space-2); padding: .6rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.facts-row dt { font-weight: 650; }
.facts-row dd { margin: 0; color: var(--fg-soft); }
@media (max-width: 600px) { .facts-row { grid-template-columns: 1fr; } }
.facts-file { margin: var(--space-2) 0 0; }
.downloads { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.downloads-item { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.download-link { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; min-height: 24px; font-weight: 650; overflow-wrap: anywhere; }
.download-meta { font-weight: 400; font-size: var(--step--1); color: var(--fg-soft); }
.download-desc { margin: .25rem 0 0; color: var(--fg-soft); }
.list-count { color: var(--fg-soft); margin: 0 0 var(--space-2); }
.list-count a { margin-left: .5rem; }
.list-empty { color: var(--fg-soft); }
.facets { display: grid; gap: var(--space-2); margin: 0 0 var(--space-3); }
.facet { margin: 0; min-width: 0; }
.facet fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: end; gap: .5rem .75rem; }
.facet-name { margin: 0 0 .4rem; font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-faint); padding: 0; }
.facet-clear { margin-left: .4rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.facet-values, .list-sort ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.facet-value, .list-sort a { display: inline-flex; gap: .4rem; align-items: center; min-height: 2.25rem; padding: .3rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--fg); text-decoration: none; font-size: var(--step--1); font-weight: 600; }
.facet-count { color: var(--fg-faint); font-weight: 500; }
a.facet-value:hover, .list-sort a:hover { border-color: var(--accent); }
.facet-value[aria-current], .list-sort a[aria-current] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.facet-value[aria-current] .facet-count { color: inherit; opacity: .75; }
.facet-value[aria-disabled] { color: var(--fg-faint); border-style: dashed; }
.facet-range label { display: grid; gap: .25rem; font-size: var(--step--1); font-weight: 600; color: var(--fg-soft); }
.facet-range input { width: 7.5rem; min-height: 2.25rem; font: inherit; padding: .3rem .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius-small); background: var(--surface); color: var(--fg); }
.facet-range input:focus { outline: 2px solid transparent; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.list-sort .facet-name { display: block; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin-top: var(--space-4); }
.pager ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.pager a, .pager span[aria-current] { display: inline-grid; place-items: center; min-width: 2.5rem; min-height: 2.5rem; padding: 0 .6rem; border: 1px solid var(--line); border-radius: var(--radius-pill); text-decoration: none; font-weight: 650; color: var(--fg); }
.pager span[aria-current] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.pager-gap { display: inline-grid; place-items: center; min-width: 1.5rem; min-height: 2.5rem; color: var(--fg-faint); }
.sec-related { padding-top: 0; }

/* breadcrumbs (theme.toml [seo] breadcrumbs; site/_breadcrumbs.html) */
.crumbs { padding-top: var(--space-3); font-size: var(--step--1); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; color: var(--fg-soft); }
.crumbs li { display: inline-flex; gap: .5rem; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.crumbs li + li::before { content: "›"; color: var(--fg-faint); }
.crumbs a { color: var(--fg-soft); }
.crumbs [aria-current] { color: var(--fg); font-weight: 600; }
.crumbs + .sec { padding-top: var(--space-3); }

/* the consent banner (release 0.4 PR 5b, site/_consent.html): shown only
   while the site needs consent; never a wall (the page stays usable). Its
   three first-layer buttons share one class and one look (equal weight). */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 85vh; overflow-y: auto; padding: var(--space-3, 1rem) 0; background: var(--surface); color: var(--fg); border-top: 1px solid var(--line-strong); box-shadow: 0 -8px 28px rgba(0, 0, 0, .14); }
.consent-banner[hidden], .consent-layer[hidden] { display: none; }
.consent-title { margin: 0 0 .35rem; font-size: var(--step-1, 1.15rem); }
.consent-text { margin: 0 0 .9rem; color: var(--fg-soft); max-width: 70ch; }
.consent-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.consent-btn { flex: 1 1 11rem; max-width: 18rem; }
.consent-layer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.consent-cats { margin: 0 0 1rem; padding: 0; border: 0; display: grid; gap: .9rem; }
.consent-legend { padding: 0; margin-bottom: .4rem; font-weight: 650; }
.consent-switch { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 650; min-height: 24px; }
.consent-switch input { width: 1.25rem; height: 1.25rem; accent-color: var(--accent); }
.consent-always { font-style: normal; font-weight: 500; color: var(--fg-soft); font-size: var(--step--1, .9rem); }
.consent-about { margin: .2rem 0 .3rem; color: var(--fg-soft); }
.consent-cookies { margin: 0; padding-left: 1.1rem; font-size: var(--step--1, .9rem); color: var(--fg-soft); overflow-wrap: anywhere; }
.consent-id { font-size: var(--step--1, .9rem); color: var(--fg-soft); overflow-wrap: anywhere; }
.consent-again { margin: 0; padding: .6rem var(--gutter, 1rem); text-align: center; font-size: var(--step--1, .9rem); background: var(--band); }
.consent-again a { color: var(--on-band); }
.consent-page .consent-layer { border-top: 0; padding-top: 0; }
.embed-remember { display: flex; align-items: center; gap: .45rem; font-size: var(--step--1, .9rem); min-height: 24px; }
html:not(.js) .embed-remember { display: none; }
.consent-error { margin: 0 0 .8rem; color: var(--err); font-weight: 600; }
.consent-error[hidden], .consent-id[hidden] { display: none; }
