/* DSCRT – website styles (based on the Heattec "glass" theme).
   Frosted glass panels over soft ambient glows. Colors come from the admin
   (Colors::cssVars()); translucent variants use the --c-*-rgb triplets.
   Headings use DIN-like system fonts (Bahnschrift on Windows, DIN Alternate on Apple). */

:root {
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-head: Bahnschrift, "DIN Alternate", "DIN Next LT Pro", "D-DIN", "Barlow Semi Condensed", "Roboto Condensed", "Arial Narrow", var(--f-body);
  --wrap: 80rem;
  --wrap-narrow: 50rem;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --pad-s: clamp(1.5rem, 3vw, 2.25rem);
  --pad-m: clamp(2.75rem, 6vw, 4.5rem);
  --flow-gap: clamp(1.75rem, 3.5vw, 2.75rem); /* between plain rows that continue the same story */
  --pad-l: clamp(4.5rem, 10vw, 8rem);
  --header-h: 7.5rem;            /* updated by site.js */
  --topbar-h: 0px;
  --logo-overhang: 1.5rem;        /* how far the logo hangs below the menu bar (desktop) */

  /* Radius hierarchy: large panels, cards, controls, pills */
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 999px;

  /* Glass */
  --glass-light: rgb(var(--c-light-rgb) / .66);
  --glass-light-strong: rgb(var(--c-light-rgb) / .82);
  /* Surface for content tiles: no live blur (that is recalculated on every scroll frame
     and made scrolling stutter on some desktops), so a little more opaque instead. */
  --glass-tile: rgb(var(--c-light-rgb) / .86);
  --glass-dark: rgb(var(--c-dark-rgb) / .52);
  --glass-dark-strong: rgb(var(--c-dark-rgb) / .78);
  --glass-edge: rgb(255 255 255 / .55);
  --glass-edge-dark: rgb(255 255 255 / .14);
  --blur: saturate(160%) blur(18px);
  --shadow-warm: 0 1px 2px rgb(var(--c-dark-rgb) / .06), 0 12px 32px -12px rgb(var(--c-dark-rgb) / .22), 0 24px 60px -30px rgb(var(--c-accent-rgb) / .35);
  --shadow-soft: 0 1px 2px rgb(var(--c-dark-rgb) / .05), 0 10px 30px -18px rgb(var(--c-dark-rgb) / .3);
  --focus: 3px solid var(--c-accent-text);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--logo-overhang) + 1rem); }
@media (max-width: 62em) { :root { --logo-overhang: 1rem; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-dark);
  background: var(--c-light);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}
/* Ambient heat: soft warm glows behind all glass on the page. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  transform: translateZ(0); /* own layer: stays put while scrolling without repainting */
  background:
    radial-gradient(40rem 32rem at 105% 8%, rgb(var(--c-accent-rgb) / .13), transparent 70%),
    radial-gradient(36rem 30rem at -10% 55%, rgb(var(--c-accent-rgb) / .08), transparent 70%),
    radial-gradient(50rem 40rem at 60% 110%, rgb(var(--c-dark-rgb) / .07), transparent 70%),
    var(--c-light);
}
img, picture, video, iframe { max-width: 100%; height: auto; display: block; }
/* Images that fill a frame: the <picture> wrapper must fill it too. */
.hero__media picture, .row__bg picture, .card__media picture, .gallery__item picture, .carousel__track picture, .cta__media picture { height: 100%; }
a { color: var(--c-accent-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p, ul, ol, figure, table, blockquote { margin: 0 0 1.1em; }
.ta-center { text-align: center; }
.ta-right { text-align: right; }

.sr-only {
  position: absolute !important; 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: 1rem; top: -4rem; z-index: 200;
  background: var(--c-dark); color: var(--c-on-dark); padding: .75rem 1.1rem; font-weight: 700; border-radius: var(--r-sm);
}
.skip:focus { top: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.wrap--narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gap)); }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
.preview-bar { position: relative; z-index: 60; background: var(--c-accent); color: var(--c-on-accent); text-align: center; padding: .5rem 1rem; font-weight: 700; }

/* ============================================================ header */
/* One full-width menu bar, no space around it. The round logo sits in the middle: its top is cut
   off by the top of the screen and it hangs a bit below the bar. Desktop: half of the menu on each
   side of the logo and the search button on the right. Mobile: hamburger left, logo, search right. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  --bar-h: 4.75rem;
  --logo-size: 7.25rem;  /* fixed size: the logo does not change while scrolling */
  --logo-cut: 1rem;      /* part of the logo above the top of the screen */
}
.bar { position: relative; isolation: isolate; height: var(--bar-h); }
.bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(255 255 255 / .08), transparent 70%), rgb(var(--c-menu-bg-rgb) / .94);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 10px 30px -18px rgb(0 0 0 / .6);
  transition: background-color .3s var(--ease);
}
.site-header.is-scrolled .bar::before { background: linear-gradient(180deg, rgb(255 255 255 / .08), transparent 70%), rgb(var(--c-menu-bg-rgb) / .86); }
.bar__inner {
  height: 100%; display: grid; align-items: center; gap: 0 1rem; padding: 0 clamp(.75rem, 2vw, 1.5rem);
  grid-template-columns: minmax(0, 1fr) calc(var(--logo-size) + 1.5rem) minmax(0, 1fr);
}

/* Logo: cut at the top of the bar (also when something is shown above the header), free at the bottom. */
.brand {
  grid-column: 2; grid-row: 1; justify-self: center; align-self: start; position: relative; z-index: 1;
  width: var(--logo-size); height: var(--bar-h);
  clip-path: inset(0 -3rem -100vh -3rem);
  border-radius: 50%;
}
.brand img {
  position: absolute; left: 0; top: calc(-1 * var(--logo-cut));
  width: var(--logo-size); height: var(--logo-size); max-width: none; border-radius: 50%;
  filter: drop-shadow(0 8px 14px rgb(0 0 0 / .35));
}
.brand:focus-visible { outline: none; }
.brand:focus-visible img { outline: 3px solid var(--c-menu-hover); outline-offset: 3px; }

/* Desktop: the nav takes no box of its own, its two lists are placed next to the logo. */
.nav { display: contents; }
.nav__list { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav__list--left { grid-column: 1; grid-row: 1; justify-self: end; }
.nav__list--right { grid-column: 3; grid-row: 1; justify-self: start; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > .nav__link { flex: 1 1 auto; }
.nav__link {
  display: block; padding: .6rem .8rem .5rem; color: var(--c-menu-text); text-decoration: none;
  font-family: var(--f-head); font-weight: 600; font-size: 1.02rem; border-radius: var(--r-pill);
  white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--c-menu-hover); background: rgb(var(--c-menu-text-rgb) / .1); }
.nav__item.is-current > .nav__link { background: rgb(var(--c-menu-active-rgb) / .2); box-shadow: inset 0 0 0 1px rgb(var(--c-menu-active-rgb) / .45); }
.nav__item > .nav__link[aria-current="page"], .nav__item > .nav__link[aria-current="page"]:hover {
  background: var(--c-menu-active); color: var(--c-menu-on-active); box-shadow: 0 8px 20px -10px rgb(var(--c-menu-active-rgb) / .9);
}
.nav__toggle { background: none; border: 0; padding: .5rem .35rem; margin-left: -.4rem; cursor: pointer; color: var(--c-menu-text); align-self: center; border-radius: var(--r-pill); }
.nav__toggle:hover { color: var(--c-menu-hover); }
.nav__chev { display: block; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__chev { transform: translateY(2px) rotate(-135deg); }
.nav__sub {
  display: none; position: absolute; top: calc(100% + .9rem); left: 0; min-width: 16rem; list-style: none; margin: 0; padding: .45rem;
  background: rgb(var(--c-menu-bg-rgb) / .96); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid rgb(var(--c-menu-text-rgb) / .14); border-radius: var(--r-md); box-shadow: 0 24px 50px -20px rgb(0 0 0 / .6);
}
.nav__list--left .nav__sub { left: auto; right: 0; } /* left of the logo: open towards the centre */
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; } /* hover bridge */
.nav__sub.is-open { display: flex; flex-direction: column; gap: .3rem; animation: pop .18s var(--ease); }
.nav__sub .nav__link { padding: .6rem .8rem; font-size: 1rem; border-radius: var(--r-sm); }
.nav__sub .nav__link[aria-current="page"] { box-shadow: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes sub-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sub-item-in { from { opacity: 0; transform: translateY(-.5rem); } to { opacity: 1; transform: none; } }
.nav__sub.is-open > .nav__item { animation: sub-item-in .4s var(--ease) both; }
.nav__sub.is-open > .nav__item:nth-child(2) { animation-delay: .04s; }
.nav__sub.is-open > .nav__item:nth-child(3) { animation-delay: .08s; }
.nav__sub.is-open > .nav__item:nth-child(4) { animation-delay: .12s; }
.nav__sub.is-open > .nav__item:nth-child(n+5) { animation-delay: .16s; }
@media (min-width: 62.0625em) {
  .nav__list > .nav__item { border-radius: var(--r-pill); transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
  .nav__list > .nav__item > .nav__link,
  .nav__list > .nav__item > .nav__link:hover,
  .nav__list > .nav__item > .nav__link:focus-visible,
  .nav__list > .nav__item > .nav__link[aria-current="page"] { background: none; box-shadow: none; }
  .nav__list > .nav__item.has-sub > .nav__link { padding-right: .2rem; }
  .nav__list > .nav__item > .nav__toggle { margin-left: 0; padding: .55rem .75rem .55rem .3rem; }
  .nav__list > .nav__item:hover { background: rgb(var(--c-menu-text-rgb) / .1); }
  .nav__list > .nav__item:hover > .nav__link, .nav__list > .nav__item:hover > .nav__toggle { color: var(--c-menu-hover); }
  .nav__list > .nav__item.is-current { background: rgb(var(--c-menu-active-rgb) / .2); box-shadow: inset 0 0 0 1px rgb(var(--c-menu-active-rgb) / .45); }
  .nav__list > .nav__item:has(> .nav__link[aria-current="page"]) { background: var(--c-menu-active); box-shadow: 0 8px 20px -10px rgb(var(--c-menu-active-rgb) / .9); }
  .nav__list > .nav__item:has(> .nav__link[aria-current="page"]) > .nav__link,
  .nav__list > .nav__item:has(> .nav__link[aria-current="page"]) > .nav__toggle { color: var(--c-menu-on-active); }
}
@media (min-width: 62.0625em) and (max-width: 75em) {
  .nav__link { padding-inline: .55rem; font-size: .96rem; }
  .bar__inner { gap: 0 .5rem; }
}

/* Search button and panel */
.search-btn {
  grid-column: 3; grid-row: 1; justify-self: end; display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%; color: var(--c-menu-text); text-decoration: none;
  background: rgb(var(--c-menu-text-rgb) / .1); border: 1px solid rgb(var(--c-menu-text-rgb) / .18);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.search-btn svg { width: 1.3rem; height: 1.3rem; }
.search-btn:hover, .search-btn[aria-expanded="true"] { background: var(--c-menu-active); color: var(--c-menu-on-active); border-color: transparent; }
.search-btn:focus-visible { outline: 3px solid var(--c-menu-hover); outline-offset: 2px; }
/* Hamburger (mobile) */
.menu-btn {
  display: none; grid-column: 1; grid-row: 1; justify-self: start; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%; padding: 0; cursor: pointer; color: var(--c-menu-text);
  background: rgb(var(--c-menu-text-rgb) / .1); border: 1px solid rgb(var(--c-menu-text-rgb) / .18);
  transition: background-color .2s var(--ease);
}
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: rgb(var(--c-menu-text-rgb) / .2); }
.menu-btn:focus-visible { outline: 3px solid var(--c-menu-hover); outline-offset: 2px; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 1.25rem; height: 2px; background: currentColor; position: relative; border-radius: 2px;
  transition: transform .3s var(--ease), background-color .2s var(--ease), top .3s var(--ease);
}
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { top: 0; transform: rotate(-45deg); }
.nav-backdrop { display: none; }

@media (max-width: 62em) {
  .site-header { --bar-h: 3.9rem; --logo-size: 5.6rem; --logo-cut: .7rem; }
  .bar__inner { grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; }
  .brand { z-index: 5; } /* the logo stays on top of the opened menu */
  .menu-btn { display: inline-flex; }
  .search-btn { grid-column: 3; }

  /* The menu slides in from the left, below the bar, over a darkened page. */
  .nav {
    display: block; position: fixed; z-index: 3; top: calc(var(--bar-top, 0px) + var(--bar-h)); bottom: 0; left: 0;
    width: min(22rem, 88vw); overflow-y: auto; overscroll-behavior: contain;
    padding: calc(var(--logo-size) - var(--logo-cut) - var(--bar-h) + .75rem) .75rem 1.5rem;
    background: var(--c-menu-bg); box-shadow: 20px 0 50px -20px rgb(0 0 0 / .55);
    transform: translateX(-104%); visibility: hidden;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .4s;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
  .nav-backdrop {
    display: block; position: fixed; z-index: 2; left: 0; right: 0; bottom: 0; top: calc(var(--bar-top, 0px) + var(--bar-h));
    background: rgb(8 14 22 / .5); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .nav-backdrop[hidden] { display: block; }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
  html.nav-open { overflow: hidden; }
  .nav.is-open .nav__list > .nav__item { animation: sub-item-in .45s var(--ease) both; }
  .nav.is-open .nav__list > .nav__item:nth-child(2) { animation-delay: .05s; }
  .nav.is-open .nav__list > .nav__item:nth-child(3) { animation-delay: .1s; }
  .nav.is-open .nav__list--right > .nav__item:nth-child(1) { animation-delay: .15s; }
  .nav.is-open .nav__list--right > .nav__item:nth-child(2) { animation-delay: .2s; }
  .nav.is-open .nav__list--right > .nav__item:nth-child(n+3) { animation-delay: .25s; }

  .nav__list, .nav__list--left, .nav__list--right { flex-direction: column; align-items: stretch; gap: .3rem; justify-self: auto; }
  .nav__list--right { margin-top: .3rem; }
  .nav__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .nav__item::before {
    content: ""; grid-row: 1; grid-column: 1 / -1; align-self: stretch;
    border-radius: var(--r-sm); transition: background-color .4s var(--ease), box-shadow .4s var(--ease), border-radius .4s var(--ease);
  }
  .nav__item > .nav__link { grid-row: 1; grid-column: 1; position: relative; z-index: 1; padding: .85rem 1rem; border-radius: var(--r-sm); font-size: 1.1rem; white-space: normal; }
  .nav__item:not(.has-sub) > .nav__link { grid-column: 1 / -1; }
  .nav__item > .nav__toggle { grid-row: 1; grid-column: 2; position: relative; z-index: 1; margin: 0; padding: .85rem 1rem; align-self: stretch; }
  .nav__item > .nav__link, .nav__item > .nav__link:hover, .nav__item > .nav__link:focus-visible,
  .nav__item > .nav__link[aria-current="page"], .nav__item.is-current > .nav__link { background: none; box-shadow: none; }
  .nav__item:is(:hover, :has(> :focus-visible)):not(:has(.nav__sub:hover))::before { background: rgb(var(--c-menu-text-rgb) / .1); }
  .nav__item:is(:hover, :has(> :focus-visible)):not(:has(.nav__sub:hover)) > :is(.nav__link, .nav__toggle) { color: var(--c-menu-hover); }
  .nav__item.is-current::before { background: rgb(var(--c-menu-active-rgb) / .2); box-shadow: inset 0 0 0 1px rgb(var(--c-menu-active-rgb) / .45); }
  .nav__item:has(> .nav__link[aria-current="page"])::before { background: var(--c-menu-active); box-shadow: 0 8px 20px -10px rgb(var(--c-menu-active-rgb) / .9); }
  .nav__item:has(> .nav__link[aria-current="page"]) > :is(.nav__link, .nav__toggle) { color: var(--c-menu-on-active); }
  .nav__item > .nav__sub { grid-row: 2; grid-column: 1 / -1; }
  .nav__item:has(> .nav__sub.is-open)::before { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .nav__sub, .nav__list--left .nav__sub {
    position: static; min-width: 0; border: 0; box-shadow: none; background: rgb(var(--c-menu-text-rgb) / .06);
    padding: .25rem; margin: 0 0 .25rem; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0 0 var(--r-sm) var(--r-sm);
  }
  .nav__sub.is-open { animation: sub-in .35s var(--ease) both; }
  .nav__sub::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav, .nav.is-open, .nav-backdrop { transition: none !important; }
  .nav.is-open .nav__list > .nav__item { animation: none !important; }
}

/* The page opening (image or dark heading) runs under the floating glass header. */
main { margin-top: calc(-1 * var(--header-h) - 1px); }
.row--hero:first-child .hero__content { padding-top: calc(var(--header-h) + var(--logo-overhang) + clamp(2rem, 6vw, 4.5rem)); }

/* ============================================================ page head (pages without hero) */
.page-head {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--c-dark); color: var(--c-on-dark);
  padding: calc(var(--header-h) + var(--logo-overhang) + clamp(1.75rem, 5vw, 3.5rem)) 0 clamp(2.25rem, 5vw, 3.75rem);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(34rem 22rem at 88% 110%, rgb(var(--c-accent-rgb) / .55), transparent 70%),
    radial-gradient(28rem 18rem at 70% -30%, rgb(var(--c-accent-rgb) / .22), transparent 70%),
    linear-gradient(120deg, var(--c-dark) 40%, var(--c-dark-2));
}
.page-head__title { margin: 0; max-width: 22ch; }
.page-head__meta { margin: .9rem 0 0; opacity: .85; }
.crumbs { margin-bottom: 1.1rem; }
.crumbs ol {
  display: inline-flex; flex-wrap: wrap; list-style: none; margin: 0; padding: .35rem .9rem; font-size: .875rem;
  border-radius: var(--r-pill); background: rgb(255 255 255 / .08); border: 1px solid var(--glass-edge-dark);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 .5rem; opacity: .5; }
.crumbs a { color: var(--c-on-dark); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { opacity: .75; }
.featured { margin-top: calc(-1 * clamp(1.25rem, 3vw, 2rem)); position: relative; z-index: 2; }
.featured picture, .featured img { border-radius: var(--r-lg); box-shadow: var(--shadow-warm); }

/* ============================================================ rows & grid */
.row { position: relative; }
.row--pad-none { padding: 0; }
.row--pad-s { padding: var(--pad-s) 0; }
.row--pad-m { padding: var(--pad-m) 0; }
.row--pad-l { padding: var(--pad-l) 0; }
.content > .row--bg-none.row--pad-m:not(.row--w-full) + .row--bg-none.row--pad-m:not(.row--w-full) { padding-top: 0; }
/* Plain rows after each other read as one story: a smaller gap than between real sections. */
.content > .row--bg-none.row--pad-m:not(.row--w-full):has(+ .row--bg-none.row--pad-m:not(.row--w-full)) { padding-bottom: var(--flow-gap); }
/* A row with only a heading belongs to the content below it. */
.content > .row--bg-none:has(+ .row--bg-none):has(> .row__inner > .grid--single > .col > :is(h2, h3, h4):only-child),
.content > .row--bg-none:has(+ .row--bg-none):has(> .row__inner > .grid--single > .col > .prose:only-child > :is(h2, h3, h4):only-child) { padding-bottom: 0; }
/* …and the row after such a heading starts at the top, directly below it (no vertical centring). */
.content > .row:has(> .row__inner > .grid--single > .col > :is(h2, h3, h4):only-child) + .row--center .grid,
.content > .row:has(> .row__inner > .grid--single > .col > .prose:only-child > :is(h2, h3, h4):only-child) + .row--center .grid { align-items: start; }
/* A call-to-action is a section of its own: it keeps the full distance to the text above it. */
.content > .row--bg-none.row--pad-m:not(.row--w-full) + .row--bg-none.row--pad-m:not(.row--w-full):has(> .row__inner .cta) { padding-top: calc(var(--pad-m) - var(--flow-gap)); }
.row__inner { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.row--w-narrow .row__inner { max-width: calc(var(--wrap-narrow) + 2 * var(--gap)); }
.row--w-wide .row__inner { max-width: 92rem; }
.row--w-full .row__inner { max-width: none; padding: 0; }

.row--bg-soft {
  background:
    radial-gradient(30rem 20rem at 0% 0%, rgb(var(--c-accent-rgb) / .09), transparent 70%),
    radial-gradient(30rem 20rem at 100% 100%, rgb(var(--c-accent-rgb) / .07), transparent 70%),
    var(--c-soft);
}
.row--bg-dark, .row--bg-image { background: var(--c-dark); color: var(--c-on-dark); overflow: hidden; isolation: isolate; }
.row--bg-dark::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(32rem 22rem at 100% 0%, rgb(var(--c-accent-rgb) / .35), transparent 70%),
    radial-gradient(26rem 18rem at 0% 100%, rgb(var(--c-accent-rgb) / .18), transparent 70%);
}
.row--bg-accent {
  color: var(--c-on-accent);
  background: radial-gradient(40rem 26rem at 90% 0%, rgb(255 255 255 / .22), transparent 70%), var(--c-accent);
}
.row--bg-dark a:not(.btn), .row--bg-image a:not(.btn) { color: var(--c-accent-on-dark); }
.row--bg-accent a:not(.btn) { color: var(--c-on-accent); }
.row__bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.row__bg img { width: 100%; height: 100%; object-fit: cover; }
.row__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--c-dark-rgb) / .78), rgb(var(--c-dark-rgb) / .35)); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap) calc(var(--gap) * 1.25); }
.row--center .grid { align-items: center; }
.col { grid-column: span 12; min-width: 0; }
.col > :last-child { margin-bottom: 0; }
@media (min-width: 48em) {
  .col--3, .col--4, .col--5, .col--6, .col--7, .col--8, .col--9 { grid-column: span 6; }
}
@media (min-width: 64em) {
  .col--1 { grid-column: span 1; } .col--2 { grid-column: span 2; } .col--3 { grid-column: span 3; }
  .col--4 { grid-column: span 4; } .col--5 { grid-column: span 5; } .col--6 { grid-column: span 6; }
  .col--7 { grid-column: span 7; } .col--8 { grid-column: span 8; } .col--9 { grid-column: span 9; }
  .col--10 { grid-column: span 10; } .col--11 { grid-column: span 11; } .col--12 { grid-column: span 12; }
}
.grid--single .col { grid-column: 1 / -1; }
/* Photo side on the left (alternating text/photo rows); on small screens the text always comes first. */
@media (min-width: 64em) {
  .row--reverse .grid > .col:first-child { order: 2; }
}
/* Media in a reading-width row stays centred. */
.row--w-narrow .figure picture, .row--w-narrow .figure figcaption { margin-inline: auto; }
.row--w-narrow .figure figcaption { text-align: center; }

/* ============================================================ hero */
.row--hero { padding: 0; }
.row--hero .row__inner { max-width: none; padding: 0; }
.hero {
  position: relative; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  color: var(--c-on-dark);
  min-height: clamp(24rem, 62vh, 40rem);
  background:
    radial-gradient(40rem 30rem at 85% 100%, rgb(var(--c-accent-rgb) / .5), transparent 70%),
    radial-gradient(30rem 22rem at 20% 0%, rgb(var(--c-accent-rgb) / .18), transparent 70%),
    linear-gradient(135deg, var(--c-dark) 30%, var(--c-dark-2));
}
.hero--s { min-height: clamp(18rem, 40vh, 26rem); }
.hero--l { min-height: clamp(30rem, 88vh, 52rem); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--has-media::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* Darkening of the photo, chosen per hero (setting "Donkere laag over de foto"). */
.hero--fade-soft::before { background: linear-gradient(20deg, rgb(var(--c-dark-rgb) / .62) 0%, rgb(var(--c-dark-rgb) / .2) 40%, transparent 65%); }
.hero--fade-medium::before { background: linear-gradient(90deg, rgb(var(--c-dark-rgb) / .72) 0%, rgb(var(--c-dark-rgb) / .4) 45%, rgb(var(--c-dark-rgb) / .08) 100%); }
.hero--fade-strong::before { background: linear-gradient(90deg, rgb(var(--c-dark-rgb) / .85) 0%, rgb(var(--c-dark-rgb) / .6) 50%, rgb(var(--c-dark-rgb) / .3) 100%); }
/* "panel": the photo stays bright; the text sits in a frosted dark panel. */
.hero--fade-panel .hero__panel {
  display: inline-block; padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3.5vw, 2.25rem); border-radius: var(--r-xl);
  background: rgb(var(--c-dark-rgb) / .55); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid rgb(255 255 255 / .14); box-shadow: 0 24px 60px -30px rgb(0 0 0 / .7);
}
.hero--fade-panel .hero__title, .hero--fade-panel .hero__subtitle { text-shadow: none; }
.hero--fade-panel .hero__title { font-size: clamp(2rem, 5vw, 3.6rem); }
.hero--no-text .hero__content { padding-block: 0; }
.hero__content {
  position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gap) clamp(3rem, 8vw, 6rem);
}
/* Text directly on the photo; the darkened left side of the image keeps it readable. */
.hero__panel { max-width: 44rem; }
.hero__title, .hero__subtitle { text-shadow: 0 2px 24px rgb(0 0 0 / .45); }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.02; margin: 0; letter-spacing: -.02em; }
.hero__subtitle { font-size: clamp(1.1rem, 2vw, 1.35rem); margin: 1rem 0 0; opacity: .92; }
.hero__actions { margin: 1.75rem 0 0; }
/* Bottom edge in the team colours: Saab blue and Swedish yellow. */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 1;
  background: linear-gradient(90deg, var(--c-accent) 0 50%, #fecc02 50% 100%);
}


/* Service tiles float over the bottom of the hero: keep the button clear of them. */
.row--hero:has(+ .row .feature) .hero__content { padding-bottom: calc(clamp(3rem, 8vw, 6rem) + clamp(2.5rem, 6vw, 4.5rem)); }
.row--hero + .row:has(.feature) { padding-top: 0; background: transparent; }
.row--hero + .row:has(.feature) .row__inner { margin-top: calc(-1 * clamp(2.5rem, 6vw, 4.5rem)); z-index: 3; }
.row--hero + .row:has(.feature)::before { display: none; }
.row--hero + .row:has(.feature) .feature { background: rgb(var(--c-light-rgb) / .84); }

/* ============================================================ text */
.prose { text-wrap: pretty; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.5em; }
.prose > :first-child { margin-top: 0; }
.prose ol { padding-left: 1.4em; }
.prose ol > li::marker { color: var(--c-accent-text); font-weight: 700; }
.prose li { margin-bottom: .45em; }
/* Bullet lists: glowing heat dots instead of standard bullets. */
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.7rem; }
.prose ul > li::before {
  content: ""; position: absolute; left: .25rem; top: .6em; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--c-accent); box-shadow: 0 0 0 4px rgb(var(--c-accent-rgb) / .16);
}
/* A list inside a list item (e.g. the types under "Scope 5"): compact tags. */
.prose ul ul, .prose ol ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 .3rem; padding: 0; }
.prose ul ul > li, .prose ol ul > li {
  margin: 0; padding: .3rem .8rem; font-size: .9rem; line-height: 1.35;
  border-radius: var(--r-pill); background: rgb(var(--c-accent-rgb) / .08); border: 1px solid rgb(var(--c-accent-rgb) / .22);
}
.prose ul ul > li::before, .prose ol ul > li::before { display: none; }
.prose blockquote { margin-left: 0; padding: 1rem 1.25rem; font-size: 1.15em; border-radius: var(--r-md); background: var(--glass-light); border: 1px solid var(--glass-edge); border-left: 4px solid var(--c-accent); }
.prose img { margin: 1rem 0; border-radius: var(--r-md); }

/* ============================================================ tables */
/* Table card: title on top (never scrolls away), the table itself scrolls sideways when it is wider
   than the screen; soft shadows at the edges show there is more. */
.table-block {
  --tbl-bg: var(--c-light);
  margin: 0 0 1.5rem; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgb(var(--c-dark-rgb) / .1); background: var(--tbl-bg); box-shadow: var(--shadow-soft);
}
.table-block__title {
  margin: 0; padding: 1rem 1.1rem .8rem;
  font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; line-height: 1.25; color: var(--c-dark);
}
.table-scroll {
  position: relative; max-width: 100%; overflow-x: auto;
  background:
    linear-gradient(to right, var(--tbl-bg) 30%, rgb(var(--c-light-rgb) / 0)) left center / 3rem 100% no-repeat local,
    linear-gradient(to left, var(--tbl-bg) 30%, rgb(var(--c-light-rgb) / 0)) right center / 3rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(0 0 0 / .16), transparent) left center / 1rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(0 0 0 / .16), transparent) right center / 1rem 100% no-repeat scroll,
    var(--tbl-bg);
  scrollbar-width: thin; scrollbar-color: rgb(var(--c-accent-rgb) / .6) transparent;
}
.table-scroll:focus-visible { outline: var(--focus); outline-offset: 3px; }
.table-scroll > table { margin: 0; }
.prose table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: .95rem; line-height: 1.45; font-variant-numeric: tabular-nums;
}
.prose caption {
  caption-side: top; text-align: left; padding: 1rem 1.1rem .75rem;
  font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; line-height: 1.25; color: var(--c-dark);
}
.prose th, .prose td {
  padding: .7rem 1rem; text-align: left; vertical-align: top;
  border-bottom: 1px solid rgb(var(--c-dark-rgb) / .07);
  min-width: 5.5rem; max-width: 24rem;
}
.prose tbody tr:last-child > *, .prose table > tr:last-child > * { border-bottom: 0; }
/* Column headers: a clear, calm header band. */
.prose thead th {
  background: rgb(var(--c-accent-rgb) / .1); color: var(--c-dark);
  font-weight: 700; font-size: .85rem; letter-spacing: .01em;
  border-bottom: 1px solid rgb(var(--c-accent-rgb) / .3);
}
.prose thead tr + tr th { font-weight: 600; color: var(--c-muted); padding-top: .35rem; }
.prose thead tr:has(+ tr) th { border-bottom: 0; padding-bottom: .35rem; }
/* Rows: calm alternating tint and a hover highlight. */
.prose tbody tr:nth-child(even) > * { background: rgb(var(--c-dark-rgb) / .025); }
.prose tbody tr:hover > * { background: rgb(var(--c-accent-rgb) / .06); }
/* Row headers (e.g. the model name) stay visible while scrolling sideways. */
.prose th[scope="row"] {
  position: sticky; left: 0; z-index: 1;
  font-weight: 700; white-space: nowrap; background: var(--tbl-bg, var(--c-light));
  box-shadow: inset -1px 0 0 rgb(var(--c-dark-rgb) / .08);
}
.prose tbody tr:nth-child(even) > th[scope="row"] { background: linear-gradient(rgb(var(--c-dark-rgb) / .025), rgb(var(--c-dark-rgb) / .025)), var(--c-light); }
.prose tbody tr:hover > th[scope="row"] { background: linear-gradient(rgb(var(--c-accent-rgb) / .06), rgb(var(--c-accent-rgb) / .06)), var(--c-light); }
.prose thead th:first-child { position: sticky; left: 0; z-index: 2; background: linear-gradient(rgb(var(--c-accent-rgb) / .1), rgb(var(--c-accent-rgb) / .1)), var(--c-light); }
/* Headings typed inside cells (old content): no big heading margins. */
.prose td :is(h2, h3, h4, h5), .prose th :is(h2, h3, h4, h5) { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.prose td > p:last-child, .prose th > p:last-child { margin-bottom: 0; }
/* Dark rows */
.row--bg-dark .table-block { --tbl-bg: var(--c-dark-2); border-color: var(--glass-edge-dark); }
.row--bg-dark .table-block__title, .row--bg-dark .prose caption, .row--bg-dark .prose thead th { color: inherit; }
.row--bg-dark .prose th[scope="row"], .row--bg-dark .prose thead th:first-child { background: var(--c-dark-2); }
@media (max-width: 40em) {
  .prose table { font-size: .875rem; }
  .prose th, .prose td { padding: .6rem .75rem; min-width: 4.75rem; }
  .prose caption, .table-block__title { padding: .85rem .85rem .6rem; font-size: 1.05rem; }
}
.row--bg-dark .prose li::marker, .row--bg-image .prose li::marker { color: var(--c-accent-on-dark); }
.row--bg-dark .prose ul ul > li { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .18); }
.sep { border: 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--c-dark-rgb) / .18), transparent); margin: 2.5rem 0; }
.row--bg-dark .sep { background: linear-gradient(90deg, transparent, rgb(255 255 255 / .2), transparent); }
.spacer--s { height: 1rem; } .spacer--m { height: 2.5rem; } .spacer--l { height: 5rem; }

.figure { margin: 0 0 1.25rem; }
.figure picture, .figure img { border-radius: var(--r-lg); }
.figure picture { overflow: hidden; width: fit-content; max-width: 100%; border-radius: var(--r-lg); }
/* A loose image in a single column is centred (like "aligncenter" on the old site). */
.grid--single > .col > .figure picture, .grid--single > .col > .figure figcaption { margin-inline: auto; }
.grid--single > .col > .figure figcaption { text-align: center; }
.ta-center .figure picture, .figure.ta-center picture { margin-inline: auto; }
.figure a.lb picture img { transition: transform .5s var(--ease); }
.figure a.lb:hover picture img { transform: scale(1.03); }
.figure figcaption { font-size: .9rem; color: var(--c-muted); margin-top: .6rem; }
/* Text after a photo in the same column gets some air. */
.figure + .prose, .figure + h2, .figure + h3, .video + .prose, .gallery + .prose { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.row--bg-dark .figure figcaption { color: inherit; opacity: .85; }

/* ============================================================ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: var(--r-pill);
  font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(180deg, rgb(255 255 255 / .18), transparent 60%), var(--c-accent);
  color: var(--c-on-accent); border-color: rgb(var(--c-accent-rgb) / .9);
  box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, 0 10px 24px -10px rgb(var(--c-accent-rgb) / .8);
}
.btn--primary:hover { background-color: var(--c-accent-hover); box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, 0 14px 30px -10px rgb(var(--c-accent-rgb) / .9); }
.btn--outline {
  background: rgb(var(--c-light-rgb) / .7); color: var(--c-dark); border-color: rgb(var(--c-dark-rgb) / .35);
}
.btn--outline:hover { background: var(--c-dark); color: var(--c-on-dark); border-color: var(--c-dark); }
.btn--on-dark, .row--bg-dark .btn--outline, .row--bg-image .btn--outline, .hero .btn--outline { color: var(--c-on-dark); background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .35); }
.row--bg-dark .btn--outline:hover, .btn--on-dark:hover { background: var(--c-on-dark); color: var(--c-dark); }
.row--bg-accent .btn--primary { background: var(--c-dark); color: var(--c-on-dark); border-color: var(--c-dark); box-shadow: 0 10px 24px -12px rgb(var(--c-dark-rgb) / .7); }
.row--bg-accent .btn--outline { color: var(--c-on-accent); border-color: currentColor; background: rgb(255 255 255 / .12); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row--center { justify-content: center; }

/* ============================================================ call-to-action */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  min-height: clamp(15rem, 28vw, 21rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  border-radius: var(--r-xl); color: var(--c-on-dark);
  background:
    radial-gradient(34rem 20rem at 85% 120%, rgb(var(--c-accent-rgb) / .55), transparent 70%),
    radial-gradient(26rem 16rem at 10% -20%, rgb(var(--c-accent-rgb) / .2), transparent 70%),
    linear-gradient(135deg, var(--c-dark), var(--c-dark-2));
  box-shadow: var(--shadow-warm);
}
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta--has-media::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40rem 22rem at 50% 130%, rgb(var(--c-accent-rgb) / .45), transparent 70%),
    linear-gradient(180deg, rgb(var(--c-dark-rgb) / .55), rgb(var(--c-dark-rgb) / .72));
}
.cta--accent { color: var(--c-on-accent); background: radial-gradient(34rem 20rem at 90% -10%, rgb(255 255 255 / .25), transparent 70%), var(--c-accent); }
.cta--accent.cta--has-media::before { background: linear-gradient(180deg, rgb(var(--c-accent-rgb) / .78), rgb(var(--c-accent-rgb) / .9)); }
.cta::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent); box-shadow: 0 0 20px 3px rgb(var(--c-accent-rgb) / .5);
}
.cta--accent::after { display: none; }
.cta__content { max-width: 48rem; }
.cta__logo { margin: 0 auto 1.25rem; width: fit-content; }
.cta__logo img { max-height: 5rem; width: auto; margin: 0 auto; border-radius: var(--r-sm); }
/* In a column next to other content: fill the height of the row (like the old site). */
.grid:not(.grid--single) > .col > .cta:only-child { height: 100%; min-height: clamp(18rem, 32vw, 26rem); }
/* Full-width section (old site: a whole row with a background photo): edge to edge. */
.row--w-full .cta { border-radius: 0; box-shadow: none; min-height: clamp(18rem, 30vw, 26rem); padding-inline: max(var(--gap), calc((100% - var(--wrap)) / 2 + var(--gap))); }
.row--w-full .cta::after { left: 0; right: 0; }
.cta__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0 0 .5em; color: inherit; text-shadow: 0 2px 24px rgb(0 0 0 / .35); }
.cta__text { font-size: 1.1rem; opacity: .92; margin: 0 auto 1.6rem; max-width: 42rem; }
.cta__actions { margin: 0; }
.btn--dark { background: var(--c-dark); color: var(--c-on-dark); border-color: var(--c-dark); box-shadow: 0 10px 24px -12px rgb(var(--c-dark-rgb) / .7); }
.btn--dark:hover { background: var(--c-dark-2); }

/* ============================================================ glass tiles: features */
.feature {
  position: relative; height: 100%;
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  border-radius: var(--r-lg);
  background: var(--glass-tile); border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-warm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:has(.feature__link):hover { transform: translateY(-4px); }
.feature__icon {
  display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1.1rem;
  border-radius: var(--r-md); color: var(--c-on-accent);
  background: linear-gradient(145deg, rgb(255 255 255 / .25), transparent 60%), var(--c-accent);
  box-shadow: 0 10px 22px -10px rgb(var(--c-accent-rgb) / .9);
}
.feature__icon svg { width: 1.55rem; height: 1.55rem; }
.feature__title { margin-bottom: .45em; font-size: 1.3rem; }
/* Tile without icon (e.g. an overview of products): a short heat-coloured line instead. */
.feature--plain .feature__title::before {
  content: ""; display: block; width: 2.5rem; height: 3px; margin-bottom: 1rem; border-radius: 3px;
  background: var(--c-accent); box-shadow: 0 0 12px rgb(var(--c-accent-rgb) / .6);
}
/* Several rows of tiles directly after each other read as one grid. */
.content > .row:has(.feature):has(+ .row .feature) { padding-bottom: calc(var(--gap) * .6); }
.content > .row:has(.feature) + .row:has(.feature) { padding-top: calc(var(--gap) * .6); }
.feature p { color: var(--c-muted); }
.feature__link { font-weight: 700; text-decoration: none; }
.feature__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole tile clickable */
.feature__link:hover { text-decoration: underline; }
.feature:focus-within { outline: var(--focus); outline-offset: 3px; }
.feature__link:focus-visible { outline: none; }
.row--bg-dark .feature, .row--bg-image .feature { background: rgb(255 255 255 / .06); border-color: var(--glass-edge-dark); color: var(--c-on-dark); }
.row--bg-dark .feature p, .row--bg-image .feature p { color: inherit; opacity: .85; }

/* ============================================================ gallery, carousel, logos */
.gallery { display: grid; gap: .75rem; list-style: none; padding: 0; margin: 0 0 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48em) {
  .gallery--cols-3, .gallery--cols-4, .gallery--cols-5, .gallery--cols-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 64em) {
  .gallery--cols-4 { grid-template-columns: repeat(4, 1fr); }
  .gallery--cols-5 { grid-template-columns: repeat(5, 1fr); }
  .gallery--cols-6 { grid-template-columns: repeat(6, 1fr); }
}
.gallery__item a { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-soft); border-radius: var(--r-md); box-shadow: var(--shadow-soft); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item a:hover img { transform: scale(1.05); }

.carousel { position: relative; margin-bottom: 1.25rem; container-type: inline-size; }
.carousel__track {
  --per: 1;
  display: grid; grid-auto-flow: column; gap: .9rem;
  grid-auto-columns: calc((100% - (var(--per) - 1) * .9rem) / var(--per));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  list-style: none; scrollbar-width: none;
  /* Room for the soft shadow of the slides (a scroll area clips everything outside it);
     the negative margin keeps the photos exactly where they were. */
  --shadow-room: 14px;
  padding: 4px var(--shadow-room) 24px; margin: -4px calc(-1 * var(--shadow-room)) -24px;
  scroll-padding-inline: var(--shadow-room);
}
.carousel__track::-webkit-scrollbar { display: none; }
@container (min-width: 34rem) { .carousel__track { --per: 2; } }
@container (min-width: 56rem) { .carousel__track { --per: 3; } }
.carousel__track > li { scroll-snap-align: start; }
.carousel__track a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-soft); border-radius: var(--r-md); }
.carousel__track img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.carousel__track a:hover img { transform: scale(1.04); }
/* Controls: one glass pill at the bottom of the photos (same design as the photo popup). */
.carousel__nav {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; gap: .1rem; padding: .25rem;
  border-radius: var(--r-pill); color: #fff;
  background: rgb(var(--c-dark-rgb) / .55); border: 1px solid rgb(255 255 255 / .18);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  /* Compact shadow that stays within the photos (it used to spill past their bottom edge). */
  box-shadow: 0 4px 14px -6px rgb(0 0 0 / .55);
}
.carousel:not(.is-scrollable) .carousel__nav { display: none; }
.carousel__btn {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}
.carousel__btn svg { width: 1.2rem; height: 1.2rem; }
.carousel__btn:hover:not([disabled]) { background: var(--c-accent); color: var(--c-on-accent); }
.carousel__btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.carousel__btn[disabled] { opacity: .35; cursor: default; }
.carousel__count[hidden] { display: none; }
.carousel__count { min-width: 3.4rem; padding: 0 .2rem; text-align: center; font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.logos {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: .9rem; list-style: none; margin: 0; padding: 0;
}
.logos li {
  display: grid; place-items: center; min-height: 7.25rem; padding: 1.1rem 1.25rem;
  border-radius: var(--r-md); background: var(--glass-light-strong); border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.logos li:has(a):hover { transform: translateY(-3px); box-shadow: var(--shadow-warm); }
.logos a { display: grid; place-items: center; width: 100%; height: 100%; }
.logos picture { display: contents; }
/* Logos keep their own proportions: at most 65 px high and never wider than the tile. */
.logos img { width: auto; height: auto; max-width: 100%; max-height: 65px; object-fit: contain; margin: 0 auto; }
@media (max-width: 40em) {
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .logos li { min-height: 5.5rem; padding: .8rem; }
  .logos img { max-height: 48px; }
}

/* Logo ticker: a continuous, endless strip; fades out at both edges. */
.ticker { position: relative; }
.ticker__viewport {
  position: relative; /* hidden helper texts inside the logos stay inside the strip (otherwise the page widens) */
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  cursor: grab; padding: 6px 0 18px; margin: -6px 0 -18px; /* room for the tile shadows */
}
.ticker__viewport::-webkit-scrollbar { display: none; }
.ticker.is-dragging .ticker__viewport { cursor: grabbing; user-select: none; }
.ticker__viewport:focus-visible { outline: var(--focus); outline-offset: 4px; border-radius: var(--r-md); }
.ticker__track { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; width: max-content; }
.ticker__track > li {
  position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 14rem; height: 7rem; margin-right: .9rem; padding: 1rem 1.25rem;
  border-radius: var(--r-md); background: var(--glass-light-strong); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-soft);
}
.ticker__track a { display: grid; place-items: center; width: 100%; height: 100%; }
.ticker__track picture { display: contents; }
.ticker__track img { width: auto; height: auto; max-width: 100%; max-height: 65px; object-fit: contain; pointer-events: none; }
/* Fade in when loaded (only when the script runs; without it the logos are simply visible). */
.ticker.is-ready .ticker__track img { opacity: 0; transition: opacity .5s var(--ease); }
.ticker.is-ready .ticker__track img.is-loaded { opacity: 1; }
@media (max-width: 40em) {
  .ticker__track > li { width: 10.5rem; height: 5.5rem; padding: .75rem; }
  .ticker__track img { max-height: 44px; }
}

/* ============================================================ video & embeds */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--c-dark); margin-bottom: 1.25rem; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-warm); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background:
    radial-gradient(30rem 20rem at 50% 120%, rgb(var(--c-accent-rgb) / .45), transparent 70%),
    linear-gradient(135deg, var(--c-dark) 0%, var(--c-dark-2) 100%);
  color: var(--c-on-dark); border: 0; cursor: pointer; padding: 1rem;
}
.video__icon {
  width: 4.75rem; height: 4.75rem; border-radius: 50%; position: relative;
  background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .3);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: transform .25s var(--ease), background-color .25s;
}
.video__play:hover .video__icon { transform: scale(1.06); background: var(--c-accent); }
.video__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-style: solid; border-width: .8rem 0 .8rem 1.3rem; border-color: transparent transparent transparent #fff;
}
.video__label { font-weight: 700; font-size: 1.1rem; }
.video__note { font-size: .85rem; opacity: .8; }
/* YouTube/Vimeo players pasted as an iframe (old content): always 16:9. */
.embed iframe[src*="youtube"], .embed iframe[src*="youtu.be"], .embed iframe[src*="vimeo"] {
  display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-lg);
}
/* On desktop a video in a single column is two thirds wide and centred. */
@media (min-width: 64em) {
  .grid--single > .col > .video,
  .grid--single > .col > .embed:has(iframe[src*="youtube"], iframe[src*="youtu.be"], iframe[src*="vimeo"]) {
    width: calc(100% * 2 / 3); margin-inline: auto;
  }
}
.embed--gated .embed__placeholder { border: 1px dashed rgb(var(--c-dark-rgb) / .25); padding: 1.75rem; text-align: center; background: var(--glass-light); border-radius: var(--r-lg); color: var(--c-dark); }

/* ============================================================ cards (news) */
.cards { display: grid; gap: calc(var(--gap) * 1.1); list-style: none; margin: 0 0 2rem; padding: 0; grid-template-columns: 1fr; }
@media (min-width: 40em) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) {
  .cards--cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cards--cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); color: var(--c-dark);
  background: var(--glass-light-strong); border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-warm); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { display: grid; place-items: center; height: 100%; color: var(--c-accent-text); background: radial-gradient(circle at 50% 120%, rgb(var(--c-accent-rgb) / .25), transparent 70%); }
.card__placeholder svg { width: 2.5rem; height: 2.5rem; }
.card__body { padding: 1.15rem 1.25rem 1.4rem; }
.card__title { font-size: 1.25rem; margin-bottom: .4rem; }
.card__title a { color: var(--c-dark); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card__title a:hover { text-decoration: underline; }
.card__title a:focus-visible { outline: none; }
.card:focus-within { outline: var(--focus); outline-offset: 4px; }
.card__meta {
  display: inline-block; font-size: .8rem; font-weight: 600; margin: 0 0 .6rem; padding: .15rem .6rem; border-radius: var(--r-pill);
  background: rgb(var(--c-accent-rgb) / .12); color: var(--c-dark);
}
.card__text { margin: 0; color: var(--c-muted); font-size: .98rem; }
.empty { color: var(--c-muted); }

.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.pager a, .pager span {
  display: inline-block; min-width: 2.75rem; padding: .55rem .9rem; text-align: center; border-radius: var(--r-pill); text-decoration: none;
  background: var(--glass-light); border: 1px solid rgb(var(--c-dark-rgb) / .12);
}
.pager a { color: var(--c-dark); }
.pager a:hover { border-color: var(--c-dark); }
.pager [aria-current] { background: var(--c-dark); color: var(--c-on-dark); border-color: var(--c-dark); font-weight: 700; }

.back { padding-bottom: var(--pad-m); }
.back__link {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none;
  padding: .6rem 1.1rem; border-radius: var(--r-pill); background: var(--glass-light); border: 1px solid rgb(var(--c-dark-rgb) / .12);
}
.back__link::before { content: "‹"; font-size: 1.2em; line-height: 1; }
.back__link:hover { background: var(--c-dark); color: var(--c-on-dark); }

/* ============================================================ forms */
.contact .form {
  padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-lg);
  background: var(--glass-light-strong); border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-warm);
  color: var(--c-dark);
}
.row--bg-dark .contact .form, .row--bg-image .contact .form { background: rgb(var(--c-light-rgb) / .92); }
.form__grid { display: grid; grid-template-columns: 1fr; gap: 0 1.25rem; }
@media (min-width: 40em) { .form__grid { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1.1rem; }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field__opt { font-weight: 400; color: var(--c-muted); }
.field input, .field textarea {
  width: 100%; font: inherit; padding: .75rem .9rem; border: 1px solid #767676; border-radius: var(--r-sm);
  background: #fff; color: #1a1a1a; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-dark); box-shadow: 0 0 0 3px rgb(var(--c-accent-rgb) / .45); }
.field--error input, .field--error textarea { border: 2px solid #b3261e; }
.field__error { color: #b3261e; font-weight: 600; margin: .35rem 0 0; }
.form__privacy { font-size: .9rem; color: var(--c-muted); }
.form__privacy a { color: var(--c-accent-text); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-bottom: 1rem; }
.notice { padding: 1rem 1.25rem; border-radius: var(--r-md); margin-bottom: 1.5rem; background: var(--glass-light-strong); border: 1px solid var(--glass-edge); border-left: 5px solid; color: var(--c-dark); box-shadow: var(--shadow-soft); }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice--ok { border-left-color: #1e7a34; }
.notice--error { border-left-color: #b3261e; }
.notice a:not(.btn) { color: #8c1d18; }

/* ============================================================ footer */
.site-footer {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--c-dark); color: var(--c-on-dark); padding: var(--pad-m) 0 0; font-size: .95rem;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(36rem 20rem at 10% -10%, rgb(var(--c-accent-rgb) / .28), transparent 70%),
    radial-gradient(30rem 20rem at 100% 110%, rgb(var(--c-accent-rgb) / .12), transparent 70%);
}
.site-footer::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--c-accent-rgb) / .8), transparent); }
.site-footer a:not(.btn) { color: var(--c-on-dark); }
.site-footer a:not(.btn):hover { color: var(--c-accent-on-dark); }
.footer__grid { display: grid; gap: 2rem var(--gap); grid-template-columns: repeat(3, 1fr); }
.footer__col { min-width: 0; }
/* Mobile and tablet: company details first (full width, centred), then navigation and links side by side. */
@media (max-width: 64em) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
  .footer__col--company {
    grid-column: 1 / -1; order: -1; text-align: center;
    padding-bottom: 1.75rem; border-bottom: 1px solid rgb(255 255 255 / .1);
  }
  .footer__col--company address { margin-bottom: .75rem; }
  .footer__col--nav, .footer__col--links { text-align: center; }
}
@media (max-width: 64em) {
  /* Bottom bar: centred, like the company details above it. */
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: .6rem; }
  .footer__meta { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 40em) {
  .footer__links li { margin-bottom: .55rem; }
  .footer__links a { display: inline-block; padding: .1rem 0; }
}
.footer__title { font-size: 1.1rem; margin-bottom: .9rem; color: var(--c-accent-on-dark); }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: .4rem; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
address { font-style: normal; margin-bottom: 1rem; line-height: 1.75; }
.footer__small { opacity: .8; font-size: .9rem; margin: 0; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  margin-top: 2.5rem; padding-top: 1.25rem; padding-bottom: 1.5rem; border-top: 1px solid rgb(255 255 255 / .1);
  font-size: .875rem; opacity: .9;
}
.footer__bottom p { margin: 0; }
.footer__meta { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

/* ============================================================ cookie notice */
.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90; max-width: 40rem;
  padding: 1.35rem; border-radius: var(--r-lg); color: var(--c-on-dark);
  background: var(--glass-dark-strong); border: 1px solid var(--glass-edge-dark);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 30px 70px -30px rgb(0 0 0 / .7), 0 0 0 1px rgb(var(--c-accent-rgb) / .15);
  animation: pop .3s var(--ease);
}
.cookie a:not(.btn) { color: var(--c-accent-on-dark); }
.cookie__text { margin: 0 0 1rem; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cookie .btn { font-size: 1rem; padding: .7rem 1.2rem; }

/* ============================================================ lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem) 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  color: #fff; background: rgb(12 12 12 / .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: lb-in .2s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure {
  flex: 1; min-height: 0; width: 100%; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lightbox__figure img {
  max-width: min(100%, 100rem); max-height: calc(100vh - 8.5rem); max-height: calc(100dvh - 8.5rem);
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--r-md); box-shadow: 0 30px 80px -30px rgb(0 0 0 / .8);
  transition: opacity .2s var(--ease);
}
.lightbox__figure img.is-loading { opacity: .25; }
.lightbox__figure figcaption { margin-top: .8rem; max-width: 50rem; text-align: center; font-size: .95rem; opacity: .9; }
.lightbox__figure figcaption:empty { display: none; }
/* Bottom pill with previous, counter, next and close. */
.lightbox__bar {
  display: flex; align-items: center; gap: .15rem; padding: .3rem;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 16px 40px -16px rgb(0 0 0 / .8);
}
.lightbox__btn {
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lightbox__btn svg { width: 1.35rem; height: 1.35rem; }
.lightbox__btn:hover { background: rgb(255 255 255 / .15); }
.lightbox__btn--close:hover { background: var(--c-accent); color: var(--c-on-accent); }
.lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.lightbox__btn[hidden], .lightbox__sep[hidden], .lightbox__count[hidden] { display: none; }
.lightbox__count { min-width: 4.25rem; text-align: center; font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.lightbox__sep { width: 1px; height: 1.6rem; margin: 0 .3rem; background: rgb(255 255 255 / .22); }
body.no-scroll { overflow: hidden; }

/* ============================================================ fallbacks & preferences */
/* Browsers without blur: use nearly solid panels so text stays readable. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --glass-light: rgb(var(--c-light-rgb) / .94);
    --glass-light-strong: rgb(var(--c-light-rgb) / .97);
    --glass-dark: rgb(var(--c-dark-rgb) / .86);
    --glass-dark-strong: rgb(var(--c-dark-rgb) / .95);
  }
}
/* Visitors who ask for less transparency or more contrast get solid surfaces. */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :root {
    --glass-light: var(--c-light);
    --glass-light-strong: var(--c-light);
    --glass-dark: var(--c-dark);
    --glass-dark-strong: var(--c-dark);
    --blur: none;
  }
  body::before { background: var(--c-light); }
  .bar::before, .nav__sub, .nav { background: var(--c-menu-bg) !important; }
  .search-overlay__card { background: #fff !important; }
  .feature, .card, .logos li { border-color: rgb(var(--c-dark-rgb) / .25); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover, .feature:hover, .btn:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .cookie, .carousel__nav, .skip { display: none !important; }
  main { margin-top: 0; }
  .page-head, .hero { background: none; color: #000; }
  body::before { display: none; }
}

/* ===================================================================== DSCRT additions */


/* Cards: "Lees verder" */
.card__more { margin: .75rem 0 0; font-weight: 700; color: var(--c-accent-text); font-size: .95rem; }

/* Tags (categories on a post, "Afgelopen") */
.tag { display: inline-block; margin-left: .5rem; padding: .1rem .65rem; border-radius: var(--r-pill); font-size: .8rem; font-weight: 600;
  background: rgb(var(--c-accent-rgb) / .1); border: 1px solid rgb(var(--c-accent-rgb) / .3); vertical-align: middle; }
.tag a { color: inherit; text-decoration: none; }
.tag a:hover { text-decoration: underline; }
.tag--muted { background: rgb(var(--c-dark-rgb) / .06); border-color: rgb(var(--c-dark-rgb) / .2); }

/* Gallery: masonry (whole photos, no cropping) */
.gallery--masonry { display: block; columns: 2; column-gap: var(--gap); }
@media (min-width: 40em) { .gallery--masonry.gallery--cols-3, .gallery--masonry.gallery--cols-4, .gallery--masonry.gallery--cols-5, .gallery--masonry.gallery--cols-6 { columns: 3; } }
@media (min-width: 64em) {
  .gallery--masonry.gallery--cols-4 { columns: 4; }
  .gallery--masonry.gallery--cols-5 { columns: 5; }
  .gallery--masonry.gallery--cols-6 { columns: 6; }
}
.gallery--masonry .gallery__item { break-inside: avoid; margin: 0 0 var(--gap); }
.gallery--masonry .gallery__item a { aspect-ratio: auto; }
.gallery--masonry .gallery__item picture { height: auto; }
.gallery--masonry .gallery__item img { width: 100%; height: auto; object-fit: initial; }

/* Team members */
.members { display: grid; gap: .5rem var(--gap); grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (min-width: 48em) {
  .members--cols-2 { grid-template-columns: repeat(2, 1fr); }
  .members--cols-3 { grid-template-columns: repeat(3, 1fr); }
  .members--cols-4 { grid-template-columns: repeat(4, 1fr); }
  .members--cols-5 { grid-template-columns: repeat(5, 1fr); }
}
.members li { padding: .55rem .9rem; border-radius: var(--r-sm); background: var(--glass-tile); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-soft); font-weight: 600; }
.members li::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .6rem; border-radius: 50%; background: var(--c-accent); vertical-align: middle; }

.events__subscribe { margin-top: 2.5rem; padding: 1.25rem 1.5rem; border-radius: var(--r-lg); background: var(--glass-light); border: 1px solid var(--glass-edge); }
.events__subscribe p { margin: 0 0 .5rem; }
.events__subscribe ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }

/* Event detail */
.event-info { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--r-xl); background: var(--glass-tile); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-soft); }
.event-info:has(.event-info__logo) { grid-template-columns: minmax(0, 12rem) 1fr; }
@media (max-width: 40em) { .event-info:has(.event-info__logo) { grid-template-columns: 1fr; } .event-info__logo { max-width: 12rem; } }
.event-info__logo img { display: block; width: 100%; height: auto; border-radius: var(--r-md); }
.event-info__list { margin: 0; display: grid; gap: .9rem; }
.event-info__list > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .25rem 1rem; }
@media (max-width: 30em) { .event-info__list > div { grid-template-columns: 1fr; } }
.event-info__list dt { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.event-info__list dt svg { width: 1.2rem; height: 1.2rem; color: var(--c-accent-text); flex: none; }
.event-info__list dd { margin: 0; }
.event-info__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }

/* Newsletter sign-up */
.newsletter .form { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-xl); background: var(--glass-tile); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-soft); }
.newsletter .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.newsletter .check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; flex: none; accent-color: var(--c-accent); }
.newsletter .notice:focus { outline: var(--focus); outline-offset: 3px; }

/* Message page (newsletter confirmation and the like) */
.message .btn-row { margin-top: 2rem; }

/* Footer: logo, partner logo, social media */
.footer__logo { margin: 0 0 1rem; }
.footer__logo img { width: 120px; height: auto; }
.footer__partner { margin: 1rem 0 0; }
.footer__partner img { display: block; width: auto; max-width: min(100%, 14rem); max-height: 5.5rem; height: auto; object-fit: contain; border-radius: var(--r-sm); background: #fff; padding: .5rem .75rem; }
.footer__social { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: 1.25rem 0 0; padding: 0; font-weight: 600; }
@media (max-width: 48em) {
  .footer__col--about, .footer__col--newsletter { text-align: center; grid-column: 1 / -1; }
  .footer__social { justify-content: center; }
  .footer__partner img { margin-inline: auto; }
}

/* Registration forms (form block) */
.form-block .form { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-lg); background: var(--glass-light-strong); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-warm); color: var(--c-dark); }
.form__section { margin: 1.75rem 0 .9rem; font-size: 1.15rem; padding-bottom: .35rem; border-bottom: 2px solid rgb(var(--c-accent-rgb) / .3); }
.form__req { margin: 0 0 1rem; font-size: .9rem; color: var(--c-muted); }
.field select { width: 100%; font: inherit; padding: .7rem .9rem; border: 1px solid #767676; border-radius: var(--r-sm); background: #fff; color: #1a1a1a; }
.field select:focus { outline: none; border-color: var(--c-dark); box-shadow: 0 0 0 3px rgb(var(--c-accent-rgb) / .45); }
.field--error select { border: 2px solid #b3261e; }
.field--group { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.field--group legend { font-weight: 600; margin-bottom: .35rem; padding: 0; }
.field .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin-bottom: .35rem; cursor: pointer; }
.field input[type=checkbox], .field input[type=radio] { width: 1.25rem; height: 1.25rem; padding: 0; margin: .2rem 0 0; flex: none; accent-color: var(--c-accent); box-shadow: none; }
.field--error .check input { outline: 2px solid #b3261e; outline-offset: 2px; }

/* ===================================================================== DSCRT 3.0: calendar, competitions, news */

/* Badges (calendar, competitions, categories) */
.badges { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: .6rem 0 0; padding: 0; position: relative; z-index: 1; }
.badge { display: inline-flex; align-items: center; padding: .15rem .65rem; border-radius: var(--r-pill); font-size: .78rem; font-weight: 700; line-height: 1.5;
  background: rgb(var(--c-dark-rgb) / .07); color: var(--c-dark); border: 1px solid rgb(var(--c-dark-rgb) / .12); margin: 0 .35rem .35rem 0; }
.badges .badge { margin: 0; }
.badge a { color: inherit; text-decoration: none; }
.badge a:hover { text-decoration: underline; }
.badge--own, .badge--reg { background: var(--c-accent); color: var(--c-on-accent); border-color: transparent; }
.badge--team { background: var(--menu-hover, #fecc02); color: #16202b; border-color: transparent; }
.badge--series { background: rgb(var(--c-accent-rgb) / .1); border-color: rgb(var(--c-accent-rgb) / .35); }
.badge--waitlist { background: #fff3cd; color: #5c4100; border-color: #e7c766; }
.badge--cat { background: rgb(var(--c-accent-rgb) / .12); border-color: transparent; }

/* Date tile */
.date-tile { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 4.5rem; min-height: 4.75rem; flex: none;
  border-radius: var(--r-md); background: var(--c-accent); color: var(--c-on-accent); line-height: 1.05; text-align: center; padding: .4rem 0; }
.date-tile__wd { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.date-tile__day { font-family: var(--f-head); font-size: 1.85rem; font-weight: 700; }
.date-tile__mon { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.date-tile--lg { width: 6rem; min-height: 6.5rem; }
.date-tile--lg .date-tile__day { font-size: 2.6rem; }

/* Calendar toolbar */
.cal__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 0 0 1.75rem; }
.seg ul { display: inline-flex; list-style: none; margin: 0; padding: .25rem; gap: .25rem; border-radius: var(--r-pill); background: var(--glass-light); border: 1px solid rgb(var(--c-dark-rgb) / .12); }
.seg a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border-radius: var(--r-pill); text-decoration: none; color: var(--c-dark); font-weight: 600; }
.seg a svg { width: 1.05rem; height: 1.05rem; }
.seg a[aria-current] { background: var(--c-dark); color: var(--c-on-dark, #fff); }
.cal__filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; flex: 1 1 22rem; }
.cal__filters input[type=search], .cal__filters select { font: inherit; padding: .55rem .9rem; border: 1px solid #767676; border-radius: var(--r-pill); background: #fff; color: #1a1a1a; min-width: 0; }
.cal__filters input[type=search] { flex: 1 1 14rem; }
.cal__filters .check { display: inline-flex; gap: .45rem; align-items: center; font-weight: 600; }
.cal__filters .check input { width: 1.15rem; height: 1.15rem; accent-color: var(--c-accent); }
.cal__reset { font-size: .9rem; }
.cal__switch { margin: 0; margin-left: auto; font-weight: 600; }
.cal__count { color: var(--c-muted); font-size: .9rem; margin: 0 0 .5rem; }

/* Highlight: next event */
.ev-hl { margin: 0 0 2.25rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-xl); color: var(--c-dark);
  background: linear-gradient(135deg, rgb(var(--c-accent-rgb) / .14), rgb(var(--c-accent-rgb) / .03)), var(--glass-light-strong);
  border: 1px solid rgb(var(--c-accent-rgb) / .3); box-shadow: var(--shadow-warm); position: relative; }
.ev-hl__label { margin: 0 0 .9rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-accent-text); font-weight: 700; }
.ev-hl__grid { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; }
.ev-hl:has(.ev-hl__logo) .ev-hl__grid { grid-template-columns: auto 1fr minmax(0, 10rem); }
.ev-hl__title { margin: 0 0 .3rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.ev-hl__title a { color: var(--c-dark); text-decoration: none; }
.ev-hl__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ev-hl__title a:hover { text-decoration: underline; }
.ev-hl:focus-within { outline: var(--focus); outline-offset: 4px; }
.ev-hl__where { margin: .25rem 0 0; display: flex; gap: .4rem; align-items: center; color: var(--c-muted); }
.ev-hl__where svg { width: 1.1rem; height: 1.1rem; flex: none; }
.ev-hl__logo img { width: 100%; height: auto; border-radius: var(--r-md); background: #fff; }
@media (max-width: 40em) { .ev-hl__grid, .ev-hl:has(.ev-hl__logo) .ev-hl__grid { grid-template-columns: auto 1fr; } .ev-hl__logo { display: none; } }

/* Event list */
.cal__month { margin: 0 0 2rem; }
.cal__month-title { position: sticky; top: calc(var(--header-h, 0px) + .5rem); z-index: 2; display: inline-block; margin: 0 0 .9rem; padding: .3rem .95rem;
  font-size: 1rem; text-transform: capitalize; border-radius: var(--r-pill); background: var(--c-dark); color: var(--c-on-dark, #fff); }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.ev { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.25rem; align-items: start; padding: 1rem 1.15rem;
  border-radius: var(--r-lg); background: var(--glass-tile); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-soft); color: var(--c-dark);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.ev:has(.ev__logo) { grid-template-columns: auto 1fr 6.5rem; }
.ev:hover { transform: translateY(-2px); box-shadow: var(--shadow-warm); }
.ev:focus-within { outline: var(--focus); outline-offset: 4px; }
.ev--own { border-left: 5px solid var(--c-accent); }
.ev__title { margin: 0 0 .2rem; font-size: 1.2rem; }
.ev__title a { color: var(--c-dark); text-decoration: none; }
.ev__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ev__title a:hover { color: var(--c-accent-text); text-decoration: underline; }
.ev__when { margin: 0; font-weight: 600; font-size: .95rem; }
.ev__meta { list-style: none; margin: .35rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; color: var(--c-muted); font-size: .92rem; }
.ev__meta li { display: inline-flex; align-items: center; gap: .35rem; }
.ev__meta svg { width: 1rem; height: 1rem; flex: none; }
.ev__logo img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); background: #fff; }
@media (max-width: 36em) { .ev, .ev:has(.ev__logo) { grid-template-columns: auto 1fr; padding: .85rem; } .ev__logo { display: none; } .date-tile { width: 3.75rem; min-height: 4rem; } .date-tile__day { font-size: 1.5rem; } }

/* Month grid */
.month__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.month__title { margin: 0; font-size: 1.4rem; text-transform: capitalize; }
.month__grid { width: 100%; border-collapse: separate; border-spacing: .35rem; table-layout: fixed; }
.month__grid th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); padding: .25rem; }
.month__grid td { vertical-align: top; height: 6.5rem; padding: .4rem; border-radius: var(--r-sm); background: var(--glass-tile); border: 1px solid var(--glass-edge); }
.month__grid td.month__pad { background: transparent; border-color: transparent; }
.month__num { display: block; font-weight: 700; font-size: .9rem; color: var(--c-muted); }
.month__wd { display: none; }
.month__day.is-today { border: 2px solid var(--c-accent); }
.month__day.is-today .month__num { color: var(--c-accent-text); }
.month__grid ul { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .2rem; }
.month__grid li a { display: block; font-size: .8rem; line-height: 1.25; padding: .2rem .35rem; border-radius: 4px; text-decoration: none; color: var(--c-dark);
  background: rgb(var(--c-accent-rgb) / .1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.month__grid li.is-own a { background: var(--c-accent); color: var(--c-on-accent); }
.month__grid li a:hover { text-decoration: underline; }
@media (max-width: 48em) {
  .month__grid, .month__grid thead, .month__grid tbody, .month__grid tr, .month__grid td { display: block; width: 100%; }
  .month__grid thead, .month__grid td.month__pad, .month__grid td:not(.has-events) { display: none; }
  .month__grid td { height: auto; margin: 0 0 .5rem; }
  .month__wd { display: inline; }
  .month__grid li a { white-space: normal; font-size: .95rem; padding: .4rem .6rem; }
}

/* Compact cards (homepage) */
.ev-cards { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.ev-card { position: relative; padding: 1.15rem; border-radius: var(--r-lg); background: var(--glass-light-strong); border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-soft); color: var(--c-dark); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.ev-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-warm); }
.ev-card:focus-within { outline: var(--focus); outline-offset: 4px; }
.ev-card .date-tile { margin-bottom: .8rem; }
.ev-card__title { margin: 0 0 .3rem; font-size: 1.15rem; }
.ev-card__title a { color: var(--c-dark); text-decoration: none; }
.ev-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ev-card__meta { margin: 0; color: var(--c-muted); font-size: .92rem; }
.ev-cards__more { text-align: center; margin: 0; }

/* Competition cards */
.comp-card .card__media { aspect-ratio: 16 / 9; }
.comp-card .badge { margin-bottom: .5rem; }
.comp-card__next { display: flex; gap: .4rem; align-items: center; margin: 0 0 .5rem; font-weight: 600; }
.comp-card__next svg { width: 1.05rem; height: 1.05rem; color: var(--c-accent-text); }

/* Competition page */
.comp-hero { position: relative; padding: calc(var(--header-h) + var(--logo-overhang) + clamp(1.25rem, 4vw, 2.5rem)) 0 clamp(1.5rem, 4vw, 2.5rem); color: var(--c-dark); overflow: hidden; isolation: isolate; }
.comp-hero--img { color: #fff; }
.comp-hero__bg { position: absolute; inset: 0; z-index: -1; }
.comp-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.comp-hero--img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 16 24 / .55), rgb(10 16 24 / .78)); }
.comp-hero--img .crumbs a, .comp-hero--img .crumbs { color: #fff; }
.comp-hero__head { display: flex; gap: 1.5rem; align-items: center; margin: 1rem 0 1.5rem; }
.comp-hero__logo img { width: 7.5rem; height: 7.5rem; object-fit: contain; border-radius: var(--r-lg); background: #fff; padding: .5rem; box-shadow: var(--shadow-soft); }
.comp-hero__kind { margin: 0 0 .25rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; opacity: .9; }
.comp-hero__title { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); }
.comp-hero__lead { margin: .5rem 0 0; font-size: 1.15rem; max-width: 46rem; }
@media (max-width: 36em) { .comp-hero__head { flex-direction: column; align-items: flex-start; } .comp-hero__logo img { width: 5rem; height: 5rem; } }
.facts { display: grid; gap: 1rem 2rem; grid-template-columns: 1fr; align-items: center; padding: clamp(1rem, 3vw, 1.5rem); border-radius: var(--r-xl);
  background: var(--glass-light-strong); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-warm); color: var(--c-dark); }
@media (min-width: 56em) { .facts { grid-template-columns: 1fr auto; } }
.facts__list { margin: 0; display: grid; gap: .75rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.facts__list dt { display: flex; align-items: center; gap: .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); font-weight: 700; }
.facts__list dt svg { width: 1rem; height: 1rem; color: var(--c-accent-text); }
.facts__list dd { margin: .15rem 0 0; font-weight: 600; }
.facts__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.subnav { position: sticky; top: calc(var(--header-h, 0px) - 1px); z-index: 5; background: var(--glass-light-strong); backdrop-filter: blur(10px); border-bottom: 1px solid var(--glass-edge); }
.subnav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: .5rem 0; overflow-x: auto; }
.subnav a { display: inline-block; white-space: nowrap; padding: .45rem 1rem; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; color: var(--c-dark); }
.subnav a:hover { background: rgb(var(--c-accent-rgb) / .12); }
.comp-section { padding: clamp(2rem, 5vw, 3.5rem) 0; scroll-margin-top: calc(var(--header-h, 0px) + 4.5rem); }
.comp-section--alt { background: rgb(var(--c-accent-rgb) / .05); }
.comp-section h2 { margin-top: 0; }
.muted-title { font-size: .6em; font-weight: 600; color: var(--c-muted); white-space: nowrap; }
.highlights { margin-top: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-xl); background: var(--glass-tile); border: 1px solid var(--glass-edge); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem 2rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--c-accent);
  -webkit-mask: none; box-shadow: inset 0 0 0 .35rem var(--c-accent); }
.checklist li::after { content: ""; position: absolute; left: .42rem; top: .38rem; width: .32rem; height: .6rem; border: solid var(--c-on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.conditions { margin-top: 1.5rem; border-radius: var(--r-lg); background: var(--glass-light-strong); border: 1px solid var(--glass-edge); }
.conditions summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; }
.conditions .prose { padding: 0 1.25rem 1.25rem; }
.notice--warn { border-left-color: #b78103; }
.participants { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.participants__class h3 { display: flex; align-items: center; gap: .5rem; }
.participants__class .count { display: inline-grid; place-items: center; min-width: 1.8rem; height: 1.8rem; padding: 0 .4rem; border-radius: var(--r-pill); background: var(--c-accent); color: var(--c-on-accent); font-size: .85rem; }
.equipes { list-style: none; margin: 0; padding: 0; counter-reset: eq; display: grid; gap: .45rem; }
.equipes li { counter-increment: eq; position: relative; padding: .6rem .9rem .6rem 3rem; border-radius: var(--r-md); background: var(--glass-tile); border: 1px solid var(--glass-edge); }
.equipes li::before { content: counter(eq); position: absolute; left: .9rem; top: .6rem; font-weight: 700; color: var(--c-accent-text); }
.equipe__names { display: block; font-weight: 700; }
.equipe__car { display: block; color: var(--c-muted); font-size: .9rem; font-weight: 400; }
.results { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.result { padding: 1.25rem; border-radius: var(--r-lg); background: var(--glass-light-strong); border: 1px solid var(--glass-edge); }
.result h3 { margin-top: 0; font-size: 1.15rem; }
.podium { margin: .25rem 0 .75rem; padding-left: 1.4rem; }
.podium li:nth-child(-n+3) { font-weight: 700; }

/* Standings table */
.stand__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.stand__season { display: flex; gap: .5rem; align-items: center; }
.stand__season select { font: inherit; padding: .45rem .8rem; border-radius: var(--r-pill); border: 1px solid #767676; }
.table-scroll { overflow-x: auto; margin: 0 0 2rem; border-radius: var(--r-lg); border: 1px solid var(--glass-edge); background: var(--glass-light-strong); }
.table-scroll:focus-visible { outline: var(--focus); outline-offset: 2px; }
.stand { width: 100%; border-collapse: collapse; font-size: .95rem; color: var(--c-dark); }
.stand th, .stand td { padding: .6rem .75rem; border-bottom: 1px solid rgb(var(--c-dark-rgb) / .08); text-align: left; }
.stand thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); background: rgb(var(--c-dark-rgb) / .03); white-space: nowrap; }
.stand tbody th { font-weight: 700; }
.stand .equipe__car { font-weight: 400; }
.stand__rank { width: 3rem; text-align: center !important; font-weight: 700; }
.stand__pts { text-align: center !important; white-space: nowrap; }
.stand__total { text-align: right !important; }
.stand tr.is-top-1 .stand__rank { color: #8a6d00; }
.stand tr.is-top td.stand__rank { font-size: 1.1rem; }
.stand tr.is-top-1 { background: rgb(254 204 2 / .14); }
.stand s { color: var(--c-muted); }

/* News: category chips and the big first post */
.chips ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1.5rem; padding: 0; }
.chips a { display: inline-block; padding: .5rem 1.15rem; border-radius: var(--r-pill); text-decoration: none; font-weight: 700; color: var(--c-dark);
  background: var(--glass-light); border: 1px solid rgb(var(--c-dark-rgb) / .15); }
.chips a:hover { border-color: var(--c-dark); }
.chips a[aria-current] { background: var(--c-accent); color: var(--c-on-accent); border-color: transparent; }
.card .badge--cat { margin-bottom: .5rem; }
@media (min-width: 48em) {
  .card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; align-items: stretch; }
  /* The photo fills the left half and is cropped; the height follows the text (min. 22rem, max. 30rem). */
  .card--featured .card__media { position: relative; aspect-ratio: auto; min-height: 22rem; max-height: 30rem; }
  .card--featured .card__media picture { position: absolute; inset: 0; }
  .card--featured .card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .card--featured .card__body { padding: 2rem; align-self: center; }
  .card--featured .card__title { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
}

/* Event page extras */
.event-info__badges { grid-column: 1 / -1; margin: 0; }
.event-info__results { grid-column: 1 / -1; border-top: 1px solid rgb(var(--c-dark-rgb) / .1); padding-top: 1rem; }
.event-info__results h2 { font-size: 1.25rem; }

/* Search page */
.search-page label { display: block; font-weight: 700; margin-bottom: .4rem; }
.search-page__field { display: flex; gap: .6rem; flex-wrap: wrap; }
.search-page__field input { flex: 1 1 16rem; font: inherit; font-size: 1.1rem; padding: .8rem 1.1rem; border-radius: var(--r-pill); border: 1px solid #767676; background: #fff; color: #1a1a1a; }
.search-page__field input:focus { outline: none; border-color: var(--c-dark); box-shadow: 0 0 0 3px rgb(var(--c-accent-rgb) / .45); }
.search-page__field .btn { display: inline-flex; align-items: center; gap: .45rem; }
.search-page__field .btn svg { width: 1.1rem; height: 1.1rem; }
.search-count { margin: 1.75rem 0 1rem; color: var(--c-muted); }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.search-result { position: relative; padding: 1.1rem 1.25rem; border-radius: var(--r-lg); background: var(--glass-tile); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-soft); color: var(--c-dark); }
.search-result:hover { box-shadow: var(--shadow-warm); }
.search-result:focus-within { outline: var(--focus); outline-offset: 4px; }
.search-result__type { margin: 0 0 .35rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .9rem; }
.search-result__type .badge { margin: 0; }
.search-result__title { margin: 0 0 .3rem; font-size: 1.25rem; }
.search-result__title a { color: var(--c-dark); text-decoration: none; }
.search-result__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.search-result__title a:hover { text-decoration: underline; }
.search-result__text { margin: 0; color: var(--c-muted); }
.search-result mark { background: rgb(254 204 2 / .55); color: inherit; padding: 0 .1em; border-radius: 2px; }

/* ===================================================================== 3.2: hero slider, play button, notification bar, breadcrumbs */

/* Hero slider: the images fade into each other */
.hero--slider .hero__media { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide picture, .hero__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active img { animation: hero-zoom 9s linear both; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__play { position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 3; }

/* Play/pause button: the border shows the progress until the next image */
.playctl {
  position: relative; display: inline-grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border: 0; border-radius: 50%;
  background: rgb(10 16 24 / .55); color: #fff; cursor: pointer; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.playctl:hover { background: rgb(10 16 24 / .75); transform: scale(1.05); }
.playctl:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.playctl[hidden] { display: none; }
.playctl .playctl__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.playctl__track { fill: none; stroke: rgb(255 255 255 / .28); stroke-width: 3; }
.playctl__bar { fill: none; stroke: #fecc02; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.playctl .playctl__icon { width: 1.15rem; height: 1.15rem; fill: currentColor; grid-area: 1 / 1; }
.playctl__icon--pause { display: none; }
.playctl.is-playing .playctl__icon--pause { display: block; }
.playctl .playctl__icon--pause { display: none; }
.playctl.is-playing .playctl__icon--pause { display: block; }
.playctl.is-playing .playctl__icon--play { display: none; }
.lightbox__play.playctl { width: 2.9rem; height: 2.9rem; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.lightbox__play.playctl:hover { background: rgb(255 255 255 / .15); transform: none; }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: opacity .01s; } .hero__slide.is-active img { animation: none; } }

/* Notification bar (e.g. directly below the hero) */
.notice-bar {
  display: flex; align-items: center; gap: .9rem; margin: 0; padding: .95rem clamp(1rem, 4vw, 2rem);
  font-weight: 700; font-size: 1.05rem; text-decoration: none; justify-content: center; text-align: left;
  transition: filter .2s var(--ease);
}
.notice-bar--yellow { background: #fecc02; color: #16202b; }
.notice-bar--blue { background: var(--c-accent); color: var(--c-on-accent); }
.notice-bar--dark { background: var(--c-dark); color: var(--c-on-dark); }
a.notice-bar:hover { filter: brightness(1.06); }
a.notice-bar:hover .notice-bar__text { text-decoration: underline; text-underline-offset: .2em; }
a.notice-bar:focus-visible { outline: 3px solid currentColor; outline-offset: -6px; }
.notice-bar__icon svg { width: 1.6rem; height: 1.6rem; display: block; }
.notice-bar__more { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .95rem; border-radius: var(--r-pill); white-space: nowrap; font-size: .92rem;
  background: rgb(0 0 0 / .1); }
.notice-bar--blue .notice-bar__more, .notice-bar--dark .notice-bar__more { background: rgb(255 255 255 / .16); }
.notice-bar__arrow { transition: transform .2s var(--ease); }
a.notice-bar:hover .notice-bar__arrow { transform: translateX(4px); }
@media (max-width: 40em) {
  .notice-bar { justify-content: flex-start; gap: .65rem; font-size: .98rem; line-height: 1.35; padding: .8rem 1rem; }
  .notice-bar__text { flex: 1 1 auto; min-width: 0; }
  .notice-bar__icon svg { width: 1.35rem; height: 1.35rem; }
  .notice-bar__more { margin-left: auto; padding: .35rem .7rem; }
}
/* A notification bar directly below the hero at the top of the page connects to it. */
.content > .row--hero + .row:has(.notice-bar) { margin-top: 0; }

/* Breadcrumbs above the footer */
.crumbs-bar { background: var(--c-soft); border-top: 1px solid var(--c-line); }
.crumbs-bar__list { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: .9rem 0; font-size: .9rem; }
.crumbs-bar__list li { display: inline-flex; align-items: center; }
.crumbs-bar__list li:not(:last-child)::after { content: "›"; margin: 0 .6rem; color: var(--c-muted); }
.crumbs-bar__list a { color: var(--c-dark); text-decoration: none; font-weight: 600; }
.crumbs-bar__list a:hover { text-decoration: underline; color: var(--c-accent-text); }
.crumbs-bar__list [aria-current] { color: var(--c-muted); }

/* ===================================================================== search window */
/* A floating window over a blurred page, with live results while typing and quick links. */
.search-overlay { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: center; align-items: flex-start; padding: clamp(.75rem, 10vh, 7rem) .75rem 1rem; }
.search-overlay[hidden] { display: none; }
.search-overlay__backdrop { position: absolute; inset: 0; background: rgb(8 16 26 / .55); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); animation: so-fade .25s var(--ease) both; }
.search-overlay__card {
  position: relative; width: 100%; max-width: 42rem; max-height: calc(100vh - 2rem); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 1.25rem; background: rgb(255 255 255 / .97); color: #16202b;
  box-shadow: 0 40px 100px -30px rgb(0 0 0 / .65), 0 0 0 1px rgb(255 255 255 / .6) inset;
  animation: so-in .32s cubic-bezier(.2, .9, .3, 1.15) both;
}
@keyframes so-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes so-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
.search-overlay__card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #006aa7 0 50%, #fecc02 50% 100%); }
.search-overlay__form { display: flex; align-items: center; gap: .75rem; padding: 1.15rem 1.15rem 1rem 1.35rem; border-bottom: 1px solid #e6e9ee; }
.search-overlay__icon svg { width: 1.5rem; height: 1.5rem; color: #006aa7; display: block; }
.search-overlay__form input {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: clamp(1.15rem, 2.5vw, 1.45rem); font-weight: 600; padding: .35rem 0;
}
.search-overlay__form input::placeholder { color: #8a94a1; font-weight: 500; }
.search-overlay__form input:focus { outline: none; }
.search-overlay__form input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-overlay__form:focus-within { box-shadow: inset 0 -2px 0 #006aa7; }
.search-overlay__kbd, .search-overlay__foot kbd {
  font: 600 .72rem/1 ui-monospace, Menlo, Consolas, monospace; padding: .3rem .45rem; border-radius: .35rem; color: #4d5866;
  background: #f1f3f6; border: 1px solid #dde2e8; box-shadow: 0 1px 0 #cfd6de;
}
.search-overlay__close { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: #f1f3f6; color: #16202b; cursor: pointer; }
.search-overlay__close svg { width: 1.1rem; height: 1.1rem; }
.search-overlay__close:hover { background: #e3e7ec; }
.search-overlay__close:focus-visible { outline: 3px solid #006aa7; outline-offset: 2px; }
.search-overlay__body { overflow-y: auto; overscroll-behavior: contain; padding: .6rem; }
.search-overlay__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.search-overlay__list[hidden] { display: none; }
.so-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .85rem; padding: .7rem .85rem; border-radius: .8rem; cursor: pointer; text-decoration: none; color: inherit; }
.so-item__type { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .7rem; background: #eef4f9; color: #006aa7; }
.so-item__type svg { width: 1.2rem; height: 1.2rem; }
.so-item--event .so-item__type { background: #fff6cf; color: #7a5b00; }
.so-item--competition .so-item__type { background: #006aa7; color: #fff; }
.so-item__title { display: block; font-weight: 700; line-height: 1.3; }
.so-item__title mark { background: rgb(254 204 2 / .55); color: inherit; border-radius: 2px; padding: 0 .05em; }
.so-item__meta { display: block; font-size: .85rem; color: #5f6b78; margin-top: .1rem; }
.so-item__go { color: #a3acb7; font-size: 1.1rem; transition: transform .15s var(--ease), color .15s var(--ease); }
.so-item[aria-selected="true"], .so-item:hover { background: #eef4f9; }
.so-item[aria-selected="true"] .so-item__go, .so-item:hover .so-item__go { color: #006aa7; transform: translateX(3px); }
.so-item--all .so-item__title { color: #006aa7; }
.search-overlay__status { margin: 0; padding: .4rem .85rem; font-size: .9rem; color: #5f6b78; }
.search-overlay__status:empty { display: none; }
.search-overlay__label { margin: .4rem .85rem .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a94a1; }
.search-overlay__quick ul { list-style: none; margin: 0; padding: 0 .25rem .35rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.search-overlay__quick a { display: flex; align-items: center; gap: .65rem; padding: .75rem .85rem; border-radius: .8rem; text-decoration: none; color: inherit; font-weight: 600; background: #f6f8fa; border: 1px solid #e8ecf0; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.search-overlay__quick a svg { width: 1.2rem; height: 1.2rem; color: #006aa7; flex: none; }
.search-overlay__quick a:hover { background: #eef4f9; border-color: #b9d3e6; }
.search-overlay__quick a:focus-visible, .so-item:focus-visible { outline: 3px solid #006aa7; outline-offset: 1px; }
.search-overlay__foot { display: flex; gap: 1.25rem; justify-content: flex-end; margin: 0; padding: .6rem 1.15rem; font-size: .78rem; color: #6b7684; border-top: 1px solid #e6e9ee; background: #fafbfc; }
.search-overlay__foot span { display: inline-flex; align-items: center; gap: .3rem; }
html.search-open { overflow: hidden; }
@media (max-width: 40em) {
  .search-overlay { padding: .5rem; }
  .search-overlay__card { border-radius: 1rem; max-height: calc(100vh - 1rem); }
  .search-overlay__kbd, .search-overlay__foot { display: none; }
  .search-overlay__form { padding: 1rem .9rem .85rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { .search-overlay__card, .search-overlay__backdrop { animation: none; } }

/* News, Palmares and events: wider article (photos and galleries get room), text stays readable */
.wrap--article { max-width: calc(var(--wrap-article) + 2 * var(--gap)); }
:root { --wrap-article: 72rem; }
:is(.content--post, .content--event) .row--w-narrow .row__inner { max-width: calc(var(--wrap-article) + 2 * var(--gap)); }
/* Text lines stay readable (max. ~90 characters); photos use the full width. */
:is(.content--post, .content--event) .prose { max-width: 58rem; }
:is(.content--post, .content--event) .prose:has(.photo-row) { max-width: none; }
:is(.content--post, .content--event) .prose:has(.photo-row) > :not(.photo-row) { max-width: 58rem; }
.wrap--article { margin-inline: auto; }
.featured picture { display: block; }
.featured img { display: block; width: 100%; height: auto; }
.featured picture { box-shadow: none; border-radius: 0; }
/* Photos placed one after another in a text (older posts): the script groups them into a photo grid. */
.photo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 1.25rem 0; max-width: none !important; }
@media (min-width: 40em) { .photo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64em) { .photo-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.photo-row a { display: block; overflow: hidden; border-radius: var(--r-md); box-shadow: var(--shadow-soft); aspect-ratio: 4 / 3; background: var(--c-soft); }
.photo-row img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; transition: transform .5s var(--ease); }
.photo-row a:hover img { transform: scale(1.05); }


/* ===================================================================== 3.4 audit fixes */
/* Cards: category and date above the title */
.card__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: 0 0 .55rem; font-size: .82rem; color: var(--c-muted); font-weight: 600; }
.card__kicker .badge { margin: 0; }
/* Competition page: background photo covers the whole header; even spacing and one content width */
.comp-hero__bg picture { display: block; height: 100%; }
.comp-hero__bg img { display: block; }
.comp-section { padding: clamp(2rem, 4.5vw, 3.25rem) 0; }
.comp-section .content > .row { padding-block: 0; }
.content--competition .row--w-narrow .row__inner { max-width: calc(var(--wrap-article) + 2 * var(--gap)); }
.comp-section .wrap:has(> .highlights) { max-width: calc(var(--wrap-article) + 2 * var(--gap)); }
.highlights { margin-top: 1.25rem; }
.highlights h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.comp-section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
/* Calendar rows: icons on the first line of a wrapping text */
.ev__meta li { align-items: flex-start; }
.ev__meta svg { margin-top: .2rem; }
/* Forms on phones: buttons full width are easier to tap */
@media (max-width: 36em) {
  .facts__actions .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .cal__filters .btn { flex: 0 0 auto; }
}
/* Long words (URLs, e-mail addresses) never push the page wider than the screen */
.prose, .card__title, .ev__title, .footer__col address { overflow-wrap: anywhere; }
/* Event page: same width as the text below; compact logo on phones */
.row--article .row__inner { max-width: calc(var(--wrap-article) + 2 * var(--gap)); }
@media (max-width: 40em) {
  .event-info__logo { max-width: 7rem; }
  .event-info__actions .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .event-info__list dt span { font-size: .95rem; }
}
/* Sub navigation on phones: show that it scrolls sideways */
@media (max-width: 48em) {
  .subnav ul { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); scrollbar-width: none; }
  .subnav ul::-webkit-scrollbar { display: none; }
}
/* Month view: clearly visible day cells; compact month buttons on phones */
.month__grid td { background: #f6f8fa; border-color: #e1e6ec; }
.month__grid td.has-events { background: #fff; border-color: rgb(var(--c-accent-rgb) / .35); }
.month__step { white-space: nowrap; }
@media (max-width: 40em) {
  .month__nav { gap: .5rem; }
  .month__step { min-width: 2.75rem; justify-content: center; padding-inline: .7rem; }
  .month__step-label { display: none; }
  .month__title { font-size: 1.2rem; text-align: center; }
}
.card__title, .ev__title, .ev-hl__title { margin-top: 0; }
.month__grid td { overflow: hidden; } .month__grid li { min-width: 0; } .month__grid li a { max-width: 100%; }

/* ===================================================================== 3.5: texts in news, palmares and pages */
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); }
.prose h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); margin-bottom: .5em; }
.prose p:empty { display: none; }
.prose strong { font-weight: 700; color: var(--c-dark); }

/* Ordered lists in news and palmares are mostly results: numbered badges, podium colours for 1-2-3 */
:is(.content--post, .content--event) .prose ol:not([start]) { list-style: none; counter-reset: rank; padding: 0; margin: .75rem 0 1.5rem; display: grid; gap: .45rem; }
:is(.content--post, .content--event) .prose ol:not([start]) > li {
  counter-increment: rank; position: relative; margin: 0; padding: .6rem .9rem .6rem 3.25rem; min-height: 2.6rem;
  border-radius: var(--r-md); background: var(--glass-tile); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-soft);
}
:is(.content--post, .content--event) .prose ol:not([start]) > li::before {
  content: counter(rank); position: absolute; left: .6rem; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  font-weight: 800; font-size: .95rem; background: rgb(var(--c-accent-rgb) / .12); color: var(--c-accent-text);
}
:is(.content--post, .content--event) .prose ol:not([start]) > li:nth-child(1)::before { background: #f5c518; color: #3d2f00; }
:is(.content--post, .content--event) .prose ol:not([start]) > li:nth-child(2)::before { background: #cfd5dc; color: #26313b; }
:is(.content--post, .content--event) .prose ol:not([start]) > li:nth-child(3)::before { background: #d9a066; color: #3b2208; }
:is(.content--post, .content--event) .prose ol:not([start]) > li::marker { content: none; }

/* Bullet lists: accent checkmark-like bullets with a little more air */
.prose ul > li { margin-bottom: .5em; }

/* Links to files (results, rules): recognisable download buttons */
.prose a:is([href$=".pdf" i], [href$=".xlsx" i], [href$=".xls" i], [href$=".docx" i], [href$=".doc" i]) {
  display: inline-flex; align-items: center; gap: .45rem; margin: .15rem 0; padding: .3rem .8rem .3rem .55rem; border-radius: var(--r-pill);
  background: rgb(var(--c-accent-rgb) / .1); border: 1px solid rgb(var(--c-accent-rgb) / .3); color: var(--c-accent-text); font-weight: 700;
  text-decoration: none; line-height: 1.3; vertical-align: baseline;
}
.prose a:is([href$=".pdf" i], [href$=".xlsx" i], [href$=".xls" i], [href$=".docx" i], [href$=".doc" i]):hover { background: rgb(var(--c-accent-rgb) / .18); text-decoration: underline; }
.prose a:is([href$=".pdf" i], [href$=".xlsx" i], [href$=".xls" i], [href$=".docx" i], [href$=".doc" i])::before {
  content: ""; flex: none; width: 1rem; height: 1rem; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prose a[href$=".pdf" i]::after { content: "PDF"; }
.prose a:is([href$=".xlsx" i], [href$=".xls" i])::after { content: "Excel"; }
.prose a:is([href$=".docx" i], [href$=".doc" i])::after { content: "Word"; }
.prose a:is([href$=".pdf" i], [href$=".xlsx" i], [href$=".xls" i], [href$=".docx" i], [href$=".doc" i])::after {
  font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: .1rem .4rem; border-radius: .3rem; background: var(--c-accent); color: var(--c-on-accent);
}

/* Tables in texts */
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; background: var(--glass-light-strong); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-soft); }
.prose th, .prose td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid rgb(var(--c-dark-rgb) / .08); vertical-align: top; }
.prose thead th, .prose tr:first-child th { background: var(--c-dark); color: var(--c-on-dark); font-weight: 700; }
.prose tbody tr:nth-child(even) td { background: rgb(var(--c-dark-rgb) / .025); }
.prose caption { caption-side: bottom; padding-top: .5rem; color: var(--c-muted); font-size: .85rem; text-align: left; }

/* ===================================================================== 3.5: block options */
/* Heading with label and subtitle */
.heading { margin: 0 0 1.25rem; }
.heading__kicker { margin: 0 0 .35rem; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent-text); }
.heading__title { margin: 0; }
.heading__sub { margin: .5rem 0 0; font-size: 1.12rem; color: var(--c-muted); max-width: 46rem; }
.heading.ta-center .heading__sub { margin-inline: auto; }
.row--bg-dark .heading__kicker, .row--bg-accent .heading__kicker, .row--bg-image .heading__kicker { color: var(--c-menu-active, #fecc02); }
.row--bg-dark .heading__sub, .row--bg-accent .heading__sub, .row--bg-image .heading__sub { color: inherit; opacity: .85; }

/* Text styles */
.prose--lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.6; }
.prose--box { padding: clamp(1.1rem, 3vw, 1.75rem); border-radius: var(--r-lg); background: rgb(var(--c-accent-rgb) / .07); border: 1px solid rgb(var(--c-accent-rgb) / .2); border-left: 5px solid var(--c-accent); }
@media (min-width: 56em) { .prose--columns { columns: 2; column-gap: 2.5rem; } .prose--columns > * { break-inside: avoid; } }

/* Image size and alignment */
.figure--large picture, .figure--large figcaption { max-width: 75%; }
.figure--medium picture, .figure--medium figcaption { max-width: 50%; }
.figure--small picture, .figure--small figcaption { max-width: 33%; }
@media (max-width: 40em) { .figure--large picture, .figure--medium picture, .figure--small picture { max-width: 100%; } }
.figure--center picture, .figure--center figcaption { margin-inline: auto; }
.figure--left picture, .figure--left figcaption { margin-inline: 0 auto; }
.figure--right picture, .figure--right figcaption { margin-inline: auto 0; }
.figure--right figcaption { text-align: right; }
.figure--full picture { width: 100%; }
.figure--full img { width: 100%; }
:is(.content--post, .content--event) .figure img { max-height: 80vh; width: auto; margin-inline: auto; }

/* Gallery: photo ratio and captions */
.gallery--r11 .gallery__item a { aspect-ratio: 1; }
.gallery--r32 .gallery__item a { aspect-ratio: 3 / 2; }
.gallery--r169 .gallery__item a { aspect-ratio: 16 / 9; }
.gallery__caption { display: block; margin-top: .4rem; font-size: .85rem; color: var(--c-muted); line-height: 1.35; }

/* Buttons: yellow variant, icon, right alignment, two buttons */
.btn--secondary { background: #fecc02; color: #16202b; border-color: #fecc02; box-shadow: 0 10px 24px -14px rgb(160 120 0 / .8); }
.btn--secondary:hover { background: #ffd935; color: #16202b; }
.btn__icon { width: 1.1em; height: 1.1em; flex: none; transition: transform .2s var(--ease); }
.btn:hover .btn__icon { transform: translateX(2px); }
.btn { display: inline-flex; align-items: center; }
.btn-row--right { justify-content: flex-end; }

/* Questions and answers */
.acc { display: grid; gap: .6rem; margin: 1rem 0 1.5rem; }
.acc__item { border-radius: var(--r-md); background: var(--glass-light-strong); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-soft); overflow: hidden; }
.acc__q { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; font-weight: 700; font-size: 1.05rem; }
.acc__q::-webkit-details-marker { display: none; }
.acc__q::after { content: ""; flex: none; width: .6rem; height: .6rem; border-right: 2.5px solid var(--c-accent-text); border-bottom: 2.5px solid var(--c-accent-text); transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
.acc__item[open] > .acc__q::after { transform: rotate(-135deg) translateY(-2px); }
.acc__q:hover { background: rgb(var(--c-accent-rgb) / .06); }
.acc__q:focus-visible { outline: var(--focus); outline-offset: -3px; }
.acc__a { padding: 0 1.2rem 1.1rem; }

/* Quote */
.quote { margin: 1.5rem 0; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-xl); background: var(--glass-light-strong); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-soft); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: -.2rem; left: 1rem; font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: rgb(var(--c-accent-rgb) / .25); }
.quote__text { margin: 0; padding: 0; border: 0; background: none; font-size: clamp(1.1rem, 2vw, 1.3rem); font-style: italic; position: relative; }
.quote__text p { margin: 0; }
.quote__who { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.quote__img img { width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; display: block; }
.quote__who strong { display: block; }
.quote__role { display: block; font-size: .9rem; color: var(--c-muted); }

/* Key figures */
.stat-tiles { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.stat-tile { padding: 1.25rem; border-radius: var(--r-lg); background: var(--glass-light-strong); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-soft); text-align: center; }
.stat-tile__num { display: block; font-family: var(--f-head); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.1; color: var(--c-accent-text); }
.stat-tile__label { display: block; margin-top: .35rem; color: var(--c-muted); font-weight: 600; }
.row--bg-dark .stat-tile, .row--bg-accent .stat-tile { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .15); }
.row--bg-dark .stat-tile__num, .row--bg-accent .stat-tile__num { color: #fecc02; }
.row--bg-dark .stat-tile__label, .row--bg-accent .stat-tile__label { color: inherit; opacity: .85; }

/* ===================================================================== 3.5.1 */
/* Competition page: facts card */
.facts { display: block; padding: 0; overflow: hidden; background: #fff; border: 1px solid rgb(var(--c-dark-rgb) / .08); box-shadow: 0 30px 70px -35px rgb(0 0 0 / .55); color: var(--c-dark); }
.facts__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); }
.fact { position: relative; display: flex; flex-direction: column; gap: .2rem; padding: 1.25rem 1.4rem 1.3rem 4.1rem; min-width: 0; }
.fact + .fact { border-left: 1px solid rgb(var(--c-dark-rgb) / .08); }
.fact__icon { position: absolute; left: 1.25rem; top: 1.3rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .7rem; background: rgb(var(--c-accent-rgb) / .1); color: var(--c-accent-text); }
.fact__icon svg { width: 1.15rem; height: 1.15rem; }
.fact__label { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.fact__value { font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: var(--c-dark); }
a.fact__value { color: var(--c-accent-text); text-decoration: none; }
a.fact__value:hover { text-decoration: underline; }
.fact__note { font-size: .88rem; color: var(--c-muted); line-height: 1.4; }
.fact__chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .15rem; }
.chip { display: inline-block; padding: .2rem .65rem; border-radius: var(--r-pill); background: rgb(var(--c-accent-rgb) / .1); color: var(--c-dark); font-weight: 700; font-size: .88rem; }
.fact__meter { display: block; height: .4rem; margin: .35rem 0 .1rem; border-radius: var(--r-pill); background: rgb(var(--c-dark-rgb) / .08); overflow: hidden; }
.fact__meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c-accent), #2f8fd0); }
.facts__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: .9rem 1.4rem; background: #f6f8fa; border-top: 1px solid rgb(var(--c-dark-rgb) / .08); }
.facts__status { margin: 0; color: var(--c-muted); font-size: .92rem; }
.facts__status .badge { margin: 0 .35rem 0 0; }
.facts__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.facts__actions .btn svg { width: 1.05rem; height: 1.05rem; }
@media (max-width: 47.99em) {
  .fact + .fact { border-left: 0; border-top: 1px solid rgb(var(--c-dark-rgb) / .08); }
  .facts__foot { flex-direction: column; align-items: stretch; }
  .facts__actions .btn { flex: 1 1 100%; }
}
@media (min-width: 48em) and (max-width: 63.99em) {
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(odd) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgb(var(--c-dark-rgb) / .08); }
}

/* Competition page: sticky sub navigation directly under the menu bar, active section highlighted */
.subnav { background: #fff; border-bottom: 1px solid rgb(var(--c-dark-rgb) / .08); box-shadow: 0 10px 24px -20px rgb(0 0 0 / .45); -webkit-backdrop-filter: none; backdrop-filter: none; }
.subnav .wrap { display: flex; }
.subnav ul { gap: .35rem; padding: .55rem 0; }
.subnav a { position: relative; padding: .5rem 1rem; color: var(--c-muted); transition: color .2s var(--ease), background-color .2s var(--ease); }
.subnav a:hover { color: var(--c-dark); }
.subnav a[aria-current="true"] { color: var(--c-on-accent); background: var(--c-accent); }
/* The round logo hangs over the middle of the bar: on phones the links start below it. */
@media (max-width: 62em) { .subnav ul { padding-top: calc(var(--logo-overhang) + .35rem); } }

/* Notification bar as a floating card that overlaps the bottom of the hero */
.notice-bar--card {
  position: relative; z-index: 4; max-width: min(56rem, calc(100% - 2 * var(--gap))); margin: 0 auto; border-radius: var(--r-pill);
  padding: .7rem .75rem .7rem 1rem; gap: .9rem; box-shadow: 0 24px 50px -24px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .2) inset;
}
.row--hero + .row .notice-bar--card { margin-top: calc(-1 * clamp(1.75rem, 4vw, 2.5rem)); margin-bottom: clamp(1rem, 3vw, 2rem); }
.row:has(.notice-bar--card) { position: relative; z-index: 4; background: transparent; }
.notice-bar--card .notice-bar__icon { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgb(255 255 255 / .18); }
.notice-bar--yellow.notice-bar--card .notice-bar__icon { background: rgb(22 32 43 / .1); }
.notice-bar--card .notice-bar__icon svg { width: 1.3rem; height: 1.3rem; }
.notice-bar--card .notice-bar__text { flex: 1 1 auto; font-size: 1.08rem; }
.notice-bar--card .notice-bar__more { padding: .6rem 1.1rem; font-size: .95rem; background: #16202b; color: #fff; }
.notice-bar--blue.notice-bar--card .notice-bar__more, .notice-bar--dark.notice-bar--card .notice-bar__more { background: #fecc02; color: #16202b; }
@media (max-width: 40em) {
  .notice-bar--card { border-radius: var(--r-lg); padding: .8rem .85rem; }
  .notice-bar--card .notice-bar__icon { width: 2.2rem; height: 2.2rem; }
  .notice-bar--card .notice-bar__more { padding: .5rem .8rem; }
}
/* Competition page: every part on one line (same width as the text) */
.comp-hero__inner, .subnav > .wrap, .comp-section > .wrap, .comp-section > .wrap--narrow { max-width: calc(var(--wrap-article) + 2 * var(--gap)); }
.comp-section .form, .comp-section .conditions, #inschrijven .notice { max-width: 46rem; }
.fact__chips .chip { font-size: .82rem; padding: .15rem .55rem; }

/* ===================================================================== 3.5.2: featured image as background of the page heading */
.page-head--img { display: flex; align-items: flex-end; min-height: clamp(20rem, 46vh, 30rem); }
.page-head--img > .wrap { width: 100%; }
.page-head__bg { position: absolute; inset: 0; z-index: -2; }
.page-head__bg picture, .page-head__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-head--img::before {
  background:
    linear-gradient(0deg, rgb(var(--c-dark-rgb) / .88) 0%, rgb(var(--c-dark-rgb) / .45) 45%, rgb(var(--c-dark-rgb) / .12) 100%),
    linear-gradient(90deg, rgb(var(--c-dark-rgb) / .35) 0%, transparent 60%);
}
.page-head--img .page-head__title { text-shadow: 0 2px 18px rgb(0 0 0 / .45); }
.page-head--img .tag { background: rgb(0 0 0 / .35); border-color: rgb(255 255 255 / .3); }
@media (max-width: 40em) { .page-head--img { min-height: 16rem; } }
/* Vertical crop of the featured image: top / centre / bottom */
.pos-top img { object-position: 50% 18%; }
.pos-bottom img { object-position: 50% 85%; }
.pos-center img { object-position: 50% 50%; }
.prose a:is([href$=".pdf" i], [href$=".xlsx" i], [href$=".xls" i], [href$=".docx" i], [href$=".doc" i])::after { white-space: nowrap; flex: none; }
