/* Zivilcourage im Netz: theme. Tokens come from the Figma styleguide (Styleguide.pdf).
   Font: Altivo via Adobe Fonts (Typekit kit euf6tmh, loaded in layout.php). */

/* ── Brand palette (Brands collection). Use the mapped tokens below, not these. ── */
:root {
  --teal-50: #eef6f7;
  --teal-100: #d5e9eb;
  --teal-200: #cfe0e2;
  --teal-700: #077881;
  --teal-800: #065c62;
  --teal-900: #053f44;

  --pink-50: #fef3f8;
  --pink-100: #fbddea;
  --pink-300: #f6b5d1;

  --ink-400: #8a9c9e;
  --ink-600: #4a5f62;
  --ink-900: #10272a;

  --red-50: #fdecec;
  --red-600: #c62828;

  --white: #ffffff;
  --black: #000000;

  /* LogoMark accents (bubble / heart pairs: Lila-Yellow, Orange-Blue, Blue-Orange, Green-Violet) */
  --lila: #9e7cb8;
  --yellow: #fad93e;
  --orange: #f15f3c;
  --blue: #89d4e9;
  --green: #78cab5;
  --violet: #b0256c;
}

/* ── Mapped tokens: what components use. ── */
:root {
  /* Text */
  --text-primary: var(--ink-900);
  --text-primary-subtle: var(--ink-600);
  --text-primary-accent: var(--teal-700);
  --text-secondary: var(--teal-900);
  --text-secondary-accent: var(--pink-300);
  --text-on-color: var(--white);
  --text-on-color-subtle: var(--teal-100);
  --text-error: var(--red-600);

  /* Surface */
  --surface-neutral: var(--white);
  --surface-neutral-inverse: var(--ink-900);
  --surface-neutral-muted: var(--teal-200);
  --surface-neutral-strong: var(--ink-400);
  --surface-primary: var(--teal-700);
  --surface-primary-strong: var(--teal-800);
  --surface-primary-subtle: var(--teal-100);
  --surface-secondary: var(--pink-300);
  --surface-secondary-subtle: var(--pink-100);
  --surface-secondary-light: var(--pink-50);
  --surface-tertiary: var(--teal-50);
  --surface-error: var(--red-50);

  /* Icons */
  --icon-primary: var(--teal-900);
  --icon-secondary: var(--teal-700);
  --icon-tertiary: var(--pink-300);
  --icon-on-color: var(--white);
  --icon-error: var(--red-600);

  /* Border */
  --border-primary: var(--teal-200);
  --border-brand: var(--teal-700);
  --border-accent: var(--pink-300);
  --border-on-color: var(--white);
  --border-on-color-subtle: var(--teal-100);
  --border-error: var(--red-600);

  /* Typography: Altivo is the only typeface. */
  --font: "altivo", system-ui, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;

  /* Responsive scale: size / line height. Mobile first; tablet and desktop below. */
  --display-size: 2.25rem;  --display-lh: 2.75rem;  /* 36/44 */
  --h1-size: 2rem;          --h1-lh: 2.5rem;        /* 32/40 */
  --h2-size: 1.75rem;       --h2-lh: 2.25rem;       /* 28/36 */
  --h3-size: 1.25rem;       --h3-lh: 1.75rem;       /* 20/28 */
  --h4-size: 1.25rem;       --h4-lh: 1.75rem;       /* 20/28 */
  --body-size: 1rem;        --body-lh: 1.5rem;      /* 16/24 */
  --small-size: 0.875rem;   --small-lh: 1.25rem;    /* 14/20 */
  --caption-size: 0.75rem;  --caption-lh: 1rem;     /* 12/16 */

  --display-tracking: -0.015em;
  --h1-tracking: -0.01em;
  --h2-tracking: -0.005em;
  --upper-tracking: 0.08em;

  /* Spacing: 4 px grid */
  --space-0: 0;
  --space-100: 0.25rem;  /* 4 */
  --space-150: 0.375rem; /* 6 */
  --space-200: 0.5rem;   /* 8 */
  --space-250: 0.625rem; /* 10 */
  --space-300: 0.75rem;  /* 12 */
  --space-400: 1rem;     /* 16 */
  --space-500: 1.25rem;  /* 20 */
  --space-600: 1.5rem;   /* 24 */
  --space-700: 1.75rem;  /* 28 */
  --space-800: 2rem;     /* 32 */
  --space-900: 2.5rem;   /* 40 */
  --space-1000: 3rem;    /* 48 */
  --space-1100: 3.5rem;  /* 56 */
  --space-1200: 4rem;    /* 64 */
  --space-1300: 4.5rem;  /* 72 */
  --space-1400: 5rem;    /* 80 */
  --space-1500: 6rem;    /* 96 */
  --space-1600: 7rem;    /* 112 */
  --space-1700: 8rem;    /* 128 */

  /* Border radius */
  --radius-0: 0;
  --radius-25: 0.25rem;  /* 4 */
  --radius-50: 0.75rem;  /* 12 */
  --radius-100: 1.25rem; /* 20 */
  --radius-200: 1.75rem; /* 28 */
  --radius-round: 996px;

  /* Effects */
  --shadow-capsule: 0 8px 24px rgb(16 39 42 / 0.08);
  --focus-ring: 0 0 0 4px rgb(7 120 129 / 0.25);

  --max: 74rem; /* 1184: the design's content width */
  --header-space: calc(var(--space-600) + 4.25rem); /* header offset + bar height */
}

@container page (min-width: 768px) {
  body > * {
    --display-size: 3.25rem; --display-lh: 3.75rem; /* 52/60 */
    --h1-size: 2.5rem;       --h1-lh: 3rem;         /* 40/48 */
    --h2-size: 2rem;         --h2-lh: 2.5rem;       /* 32/40 */
    --h3-size: 1.5rem;       --h3-lh: 2rem;         /* 24/32 */
  }
}

@container page (min-width: 1200px) {
  body > * {
    --display-size: 3.75rem; --display-lh: 4.25rem; /* 60/68 */
    --h1-size: 3rem;         --h1-lh: 3.5rem;       /* 48/56 */
    --h2-size: 2.25rem;      --h2-lh: 2.75rem;      /* 36/44 */
  }
}

/* ── Text styles (Headings / Body / Caption). Weight defaults follow the styleguide;
   combine with .fw-regular / .fw-medium / .fw-bold for the other variants. ── */
.t-display { font-size: var(--display-size); line-height: var(--display-lh); letter-spacing: var(--display-tracking); font-weight: var(--weight-bold); }
.t-h1 { font-size: var(--h1-size); line-height: var(--h1-lh); letter-spacing: var(--h1-tracking); font-weight: var(--weight-bold); }
.t-h2 { font-size: var(--h2-size); line-height: var(--h2-lh); letter-spacing: var(--h2-tracking); font-weight: var(--weight-medium); }
.t-h3 { font-size: var(--h3-size); line-height: var(--h3-lh); font-weight: var(--weight-medium); }
.t-h4 { font-size: var(--h4-size); line-height: var(--h4-lh); font-weight: var(--weight-medium); }
.t-body { font-size: var(--body-size); line-height: var(--body-lh); }
.t-small { font-size: var(--small-size); line-height: var(--small-lh); }
.t-caption { font-size: var(--caption-size); line-height: var(--caption-lh); }
.t-upper { letter-spacing: var(--upper-tracking); text-transform: uppercase; }
.fw-regular { font-weight: var(--weight-regular); }
.fw-medium { font-weight: var(--weight-medium); }
.fw-bold { font-weight: var(--weight-bold); }

/* ── Base ── */
* {
  box-sizing: border-box;
}

/* The page is the `page` size container: breakpoints are @container page (…) so they
   follow the room the page has, also when the zero sidebar is docked. */
body {
  container: page / inline-size;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  background: var(--surface-neutral);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--text-secondary);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text-primary-accent);
}

:focus-visible {
  outline: 2px solid var(--border-brand);
  outline-offset: 0;
  box-shadow: var(--focus-ring);
}

[x-cloak] {
  display: none !important;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: currentColor;
}

/* ── Buttons (pill) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-300);
  min-height: 3rem;
  padding: var(--space-300) var(--space-600);
  border: 0;
  border-radius: var(--radius-round);
  font: inherit;
  font-weight: var(--weight-bold);
  line-height: var(--body-lh);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary {
  background: var(--surface-primary);
  color: var(--text-on-color);
}

.btn-primary:hover {
  background: var(--surface-primary-strong);
}

.btn-outline-light {
  border: 2px solid var(--border-on-color);
  color: var(--text-on-color);
}

.btn-outline-light:hover {
  background: rgb(255 255 255 / 0.12);
}

.btn-secondary {
  background: var(--surface-secondary);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: var(--surface-secondary-subtle);
}

/* ── Header: a floating white capsule (logo, respect.lu, Menu) ── */
.container,
.site-header {
  margin-inline: auto;
}

/* Page content width. .site-main itself is full width, so sections like the hero can
   run edge to edge; their content goes in a .container. */
.container {
  width: min(var(--max), calc(100% - 2 * var(--space-600)));
}

/* Anchor links (the menu, hero buttons) glide to their section; sections keep clear of
   the fixed header with scroll-margin-top. Instant for people who prefer less motion. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* The header is fixed, so the page padding the zero overlay adds when docked doesn't
   move it. Its insets follow the dock instead (--zero-dock-left/right, set by zero),
   keeping it centered in the space left. */
.site-header {
  --dock-left: var(--zero-dock-left, 0px);
  --dock-right: var(--zero-dock-right, 0px);
  --max: 80rem; /* 1280 */
  --gutter: var(--space-600);
  position: fixed;
  top: var(--space-600);
  left: var(--dock-left);
  right: var(--dock-right);
  width: min(var(--max), calc(100% - var(--dock-left) - var(--dock-right) - 2 * var(--gutter)));
  z-index: 20;
  --ease-menu: cubic-bezier(0.32, 0.72, 0, 1);
  transition:
    left 0.36s var(--ease-menu),
    right 0.36s var(--ease-menu),
    width 0.36s var(--ease-menu),
    border-radius 0.5s var(--ease-menu),
    box-shadow 0.5s var(--ease-menu);
  border-radius: 2.125rem; /* a full pill while closed: half the 68px bar */
  background: color-mix(in srgb, var(--surface-neutral) 70%, transparent);
  box-shadow: var(--shadow-capsule);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-400);
  min-height: 4.25rem; /* 68 */
  padding: var(--space-250) var(--space-250) var(--space-250) var(--space-600);
}

.brand {
  display: inline-flex;
  border-radius: var(--radius-25);
}

.brand img {
  display: block;
  width: auto;
  height: 2.625rem; /* 42 */
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-200);
}

/* ── Menu ──
   One menu, two layouts: on wider screens a card drops in under the bar, on the right;
   on phones (≤ 640px) it's a bottom sheet over a dimmed page. While closed it stays in
   the page so it can animate, and visibility keeps it out of the tab order and the
   accessibility tree once it has finished closing. */
.site-menu {
  visibility: hidden;
  transition: visibility 0s linear 0.5s;
}

.is-open .site-menu {
  visibility: visible;
  transition-delay: 0s;
}

.menu-sheet-head {
  display: none;
}

/* Tiles: a two-column grid on phones, more columns when there is room. */
.menu-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: var(--space-200);
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-200);
  min-height: 3.25rem; /* 52 */
  height: 100%;
  padding: var(--space-300) var(--space-400);
  border-radius: var(--radius-100);
  background: var(--surface-tertiary);
  color: var(--text-primary);
  font-weight: var(--weight-bold);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.menu-tile .icon {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 0.2s var(--ease-menu);
}

.menu-tile:hover {
  background: var(--surface-primary-subtle);
}

.menu-tile:hover .icon {
  transform: translateX(2px);
}

.menu-tile.is-highlight {
  background: var(--surface-secondary-light);
}

.menu-tile.is-highlight:hover {
  background: var(--surface-secondary-subtle);
}

.menu-tile[aria-current] {
  box-shadow: inset 0 0 0 2px var(--border-brand);
}

.menu-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-300);
  margin-top: var(--space-600);
}

/* respect.lu already sits in the bar on wider screens. */
.menu-buttons .menu-cta {
  display: none;
}

.menu-buttons:not(:has(> :not(.menu-cta))) {
  display: none;
}

/* Items fade and slide in one after another (--i is their index), and leave together. */
.menu-tiles li,
.menu-buttons,
.site-menu .langs {
  opacity: 0;
  transform: translateY(-0.75rem);
  transition: opacity 0.2s ease, transform 0.3s var(--ease-menu);
}

.is-open .menu-tiles li,
.is-open .menu-buttons,
.is-open .site-menu .langs {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.5s var(--ease-menu);
  transition-delay: calc(0.12s + var(--i, 0) * 0.045s);
}

/* The dimmed page behind the open menu (both layouts). It sits inside the header, so on
   wider screens the bar is lifted above it to stay white. */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgb(16 39 42 / 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.is-open .menu-backdrop {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}

/* Wider screens: the menu is its own white card, dropping in under the capsule on the
   right, with a "Menu" eyebrow, two columns of tiles and a full-width Kontakt button. */
@container page (min-width: 641px) {
  .header-bar {
    position: relative;
    z-index: 2;
    border-radius: inherit;
    background: transparent;
  }

  .site-menu-wrap {
    position: absolute;
    top: calc(100% + var(--space-600));
    right: 0;
    z-index: 2;
    width: min(35rem, 100%); /* 560 */
    opacity: 0;
    transform: translateY(-0.75rem) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.25s ease, transform 0.45s var(--ease-menu);
    pointer-events: none; /* closed, it's invisible but still over the page */
  }

  .is-open .site-menu-wrap {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .site-menu-inner {
    max-height: calc(100svh - 4.25rem - 3 * var(--space-600));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--space-600);
    border-radius: var(--radius-200);
    background: var(--surface-neutral);
    box-shadow: 0 16px 48px rgb(16 39 42 / 0.16);
  }

  .menu-sheet-head {
    display: block;
    margin-bottom: var(--space-600);
  }

  .menu-handle,
  .menu-close {
    display: none;
  }

  .menu-title {
    margin: 0;
    color: var(--text-primary-accent);
    font-size: var(--small-size);
    line-height: var(--small-lh);
    letter-spacing: var(--upper-tracking);
    text-transform: uppercase;
  }

  .menu-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-tile {
    min-height: 4rem; /* 64 */
    padding-inline: var(--space-500);
  }

  .menu-buttons {
    display: grid;
    margin-top: var(--space-500);
  }
}

/* Phones: a bottom sheet with a handle, a title and a close button; swipe down to close
   (assets/menu.js sets --drag while it follows the finger). */
/* menu.js only sets .menu-locked while the phone sheet is open (<html> can't be matched
   from inside @container page). */
html.menu-locked {
  overflow: hidden;
}

@container page (max-width: 640px) {
  .site-menu-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    transform: translateY(105%);
    transition: transform 0.45s var(--ease-menu);
  }

  .is-open .site-menu-wrap {
    transform: translateY(var(--drag, 0px));
  }

  .site-menu-wrap.is-dragging {
    transition: none;
  }

  .site-menu-inner {
    max-height: 88svh;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* --zero-safe-bottom: the zero overlay's collapsed sheet height, when it shows on phones.
       Padding (not lifting the sheet) keeps its white background reaching the screen edge. */
    padding: var(--space-300) var(--space-500) calc(var(--space-800) + env(safe-area-inset-bottom) + var(--zero-safe-bottom, 0px));
    border-radius: var(--radius-200) var(--radius-200) 0 0;
    background: var(--surface-neutral);
    box-shadow: 0 -8px 32px rgb(16 39 42 / 0.16);
  }

  .menu-sheet-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: var(--space-500);
    touch-action: none;
  }

  .menu-handle {
    grid-column: 1 / -1;
    justify-self: center;
    width: 2.5rem;
    height: 0.25rem;
    margin-bottom: var(--space-400);
    border-radius: var(--radius-round);
    background: var(--surface-neutral-muted);
  }

  .menu-title {
    margin: 0;
    color: var(--text-primary);
    font-size: var(--h4-size);
    line-height: var(--h4-lh);
    font-weight: var(--weight-bold);
  }

  .menu-close {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1.5px solid var(--border-brand);
    border-radius: 50%;
    background: none;
    color: var(--icon-secondary);
    cursor: pointer;
  }

  .menu-close .icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .menu-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-tile {
    gap: var(--space-100);
    padding-inline: var(--space-400) var(--space-250);
  }

  .menu-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  }

  .menu-buttons .menu-cta {
    display: inline-flex;
  }

  .menu-buttons:not(:has(> :not(.menu-cta))) {
    display: grid;
  }

  /* In the sheet, items rise in from below. */
  .menu-tiles li,
  .menu-buttons,
  .site-menu .langs {
    transform: translateY(0.75rem);
  }
}

/* Menu icon: the two lines (the lower one shorter) turn into an ×. */
.menu-icon path {
  transform-box: view-box;
  transition: transform 0.45s var(--ease-menu);
}

.menu-line-1 {
  transform-origin: 12px 9.5px;
}

.menu-line-2 {
  transform-origin: 12px 14.5px;
  transform: translateX(2.5px) scaleX(0.6875); /* 11px long, flush right */
}

.is-open .menu-line-1 {
  transform: translateY(2.5px) rotate(45deg) scaleX(0.85);
}

.is-open .menu-line-2 {
  transform: translateY(-2.5px) rotate(-45deg) scaleX(0.85);
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-menu,
  .site-menu-wrap,
  .menu-backdrop,
  .menu-tiles li,
  .menu-buttons,
  .site-menu .langs,
  .menu-icon path {
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}

.langs {
  display: flex;
  gap: var(--space-100);
  margin-top: var(--space-600);
  font-size: var(--caption-size);
  line-height: var(--caption-lh);
  letter-spacing: var(--upper-tracking);
}

.langs a {
  padding: var(--space-150) var(--space-200);
  border-radius: var(--radius-round);
  color: var(--text-primary-subtle);
  text-decoration: none;
}

.langs a:hover,
.langs a[aria-current] {
  color: var(--text-secondary);
  font-weight: var(--weight-bold);
}

@container page (max-width: 640px) {
  body > * {
    --header-space: calc(var(--space-400) + 3.75rem);
  }

  .site-header {
    --gutter: var(--space-400);
    top: var(--space-400);
  }

  .header-bar {
    min-height: 3.75rem;
    padding: var(--space-150) var(--space-150) var(--space-150) var(--space-400);
  }

  .brand img {
    height: 2.25rem;
  }

  .header-actions .btn {
    min-height: 2.75rem;
    padding-inline: var(--space-500);
  }

  /* No room for both buttons: respect.lu moves into the menu sheet. */
  .header-cta {
    display: none;
  }
}

.site-main {
  flex: 1;
  padding-top: var(--header-space);
  padding-bottom: var(--space-1500);
}

/* Errors and the "not translated" notice are printed straight into main. */
.site-main > .zero-error,
.site-main > .notice {
  width: min(var(--max), calc(100% - 2 * var(--space-600)));
  margin-inline: auto;
}

/* ── Hero (landing): full-bleed teal, starting behind the header ── */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-space));
  padding: calc(var(--header-space) + var(--space-1300)) 0 var(--space-1700);
  overflow: hidden;
  background: var(--surface-primary);
  color: var(--text-on-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 36rem) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-200);
}

.hero .eyebrow {
  margin-bottom: var(--space-600);
  color: var(--text-on-color);
}

.hero h1 {
  margin: 0;
  color: var(--text-on-color);
  font-size: var(--display-size);
  line-height: var(--display-lh);
  letter-spacing: var(--display-tracking);
  font-weight: var(--weight-bold);
}

.hero h1 .accent {
  display: block;
  color: var(--text-secondary-accent);
}

/* The design sits the text a little below the illustration's center. */
.hero-text {
  padding-top: var(--space-1200);
}

.hero-intro {
  margin-top: var(--space-900);
  font-size: var(--h4-size);
  line-height: 2rem; /* 20/32 */
}

.hero-intro p {
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-400);
  margin-top: var(--space-800);
}

.hero-art {
  justify-self: end;
  width: 100%;
  max-width: 39rem; /* 624 */
  margin-right: calc(-1 * var(--space-400));
}

/* ── Hero cards: an HTML scene (see _partials/hero-cards.php) floating in 3D ── */
.hero-scene {
  container-type: inline-size;
  perspective: 1400px;
}

/* Each piece gets its own perspective (from the stage) but is flattened onto the stage:
   no shared 3D space, so floating cards never cut through each other where they overlap,
   and they stack in source order like the design. */
.hero-stage {
  position: relative;
  aspect-ratio: 624 / 611;
  perspective: 1400px;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Each piece: placed in design px (1 design px = --u), sized in em (1em = 16 design px). */
.hero-stage > .float {
  --u: calc(100cqw / 624);
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  font-size: calc(16 * var(--u));
  line-height: 1.5;
  /* Depth: near pieces sit higher toward the viewer, float further and follow the
     pointer more (parallax, set by page.php as --px/--py from -1 to 1). */
  --lift: calc(var(--d) * 120px);
  --amp: calc(0.4em + var(--d) * 0.9em);
  transform: translate3d(0, 0, var(--lift)) rotate(var(--r));
  translate: calc(var(--px, 0) * var(--d) * -2.75em) calc(var(--py, 0) * var(--d) * -2em);
  transition: translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  /* Intro: every piece comes out of the stage's center (312, 305 in design px), messages
     first, one after the other, then the icons. It runs on translate/scale/opacity, so it
     plays alongside the float (transform); the parallax (translate) takes over after it. */
  --from-x: calc((312 - var(--x) - var(--w) / 2) * var(--u) * 0.7);
  --from-y: calc((305 - var(--y) - var(--w) / 4) * var(--u) * 0.7);
  animation:
    hero-in-message 0.55s cubic-bezier(0.16, 1, 0.3, 1) var(--in, 0s) backwards,
    hero-float var(--dur) ease-in-out var(--delay) infinite;
  will-change: transform, translate;
}

.hero-stage > .card-post { --in: 0.05s; }
.hero-stage > .reply-pink { --in: 0.2s; }
.hero-stage > .reply-white { --in: 0.35s; }

.hero-stage > .bubble,
.hero-stage > .pill {
  animation:
    hero-in-icon 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) var(--in, 0s) backwards,
    hero-float var(--dur) ease-in-out var(--delay) infinite;
}

.hero-stage > .bubble-lila { --in: 0.575s; }
.hero-stage > .pill-likes { --in: 0.625s; }
.hero-stage > .bubble-pink { --in: 0.675s; }
.hero-stage > .bubble-blue { --in: 0.725s; }
.hero-stage > .pill-typing { --in: 0.775s; }

@keyframes hero-in-message {
  from {
    opacity: 0;
    translate: var(--from-x) var(--from-y);
    scale: 0.6;
  }
  40% {
    opacity: 1;
  }
}

@keyframes hero-in-icon {
  from {
    opacity: 0;
    translate: calc(var(--from-x) * 0.5) calc(var(--from-y) * 0.5);
    scale: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translate3d(0, 0, var(--lift)) rotateX(0deg) rotateY(0deg) rotate(var(--r));
  }
  30% {
    transform: translate3d(calc(var(--amp) * 0.3), calc(var(--amp) * -1), calc(var(--lift) + 50px)) rotateX(12deg) rotateY(-16deg) rotate(calc(var(--r) - 1.5deg));
  }
  65% {
    transform: translate3d(calc(var(--amp) * -0.25), calc(var(--amp) * -0.35), calc(var(--lift) + 20px)) rotateX(-9deg) rotateY(13deg) rotate(calc(var(--r) + 1.5deg));
  }
}

.hero-stage .card {
  position: relative;
  border-radius: 1.25em;
  background: var(--surface-neutral);
  /* A tight contact shadow plus a soft one that grows with depth; a thin darker
     bottom edge gives the card some thickness. */
  box-shadow:
    inset 0 -0.15em 0 rgb(5 63 68 / 0.08),
    0 calc(0.15em + var(--d) * 0.3em) calc(0.3em + var(--d) * 0.4em) rgb(5 63 68 / 0.22),
    0 calc(0.6em + var(--d) * 1.8em) calc(1.2em + var(--d) * 3em) rgb(5 63 68 / calc(0.2 + var(--d) * 0.2));
  color: var(--text-primary);
}

/* Sheen: a soft highlight that slides across the card with the pointer. */
.hero-stage .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0) 38%, rgb(255 255 255 / 0) 70%, rgb(5 63 68 / 0.05));
  background-size: 180% 180%;
  background-position: calc(50% - var(--px, 0) * 40%) calc(50% - var(--py, 0) * 40%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  transition: background-position 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card-post {
  padding: 1.5em;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.avatar {
  display: grid;
  place-items: center;
  width: 2.75em;
  height: 2.75em;
  border-radius: 50%;
  background: var(--surface-tertiary);
}

.avatar svg {
  width: 1.25em;
  fill: var(--text-primary-subtle);
}

.post-who {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.post-who strong {
  font-weight: var(--weight-bold);
}

.post-who span {
  color: var(--text-primary-subtle);
  font-size: 0.875em;
}

.chip-hate {
  margin-left: auto;
  padding: 0.375em 0.75em;
  border-radius: var(--radius-round);
  background: var(--surface-secondary-subtle);
  color: var(--text-secondary);
  font-size: 0.875em;
  font-weight: var(--weight-bold);
  white-space: nowrap;
}

.card-post .line {
  display: block;
  height: 0.875em;
  margin-top: 0.5em;
  border-radius: var(--radius-round);
  background: color-mix(in srgb, var(--ink-400) 28%, var(--white));
}

.card-post .line:first-of-type {
  margin-top: 1.25em;
}

.post-foot {
  display: flex;
  gap: 1em;
  margin-top: 1.25em;
  color: var(--text-primary-subtle);
  font-size: 0.875em;
}

.post-foot .angry {
  color: var(--text-primary);
  font-weight: var(--weight-bold);
}

.reply .card {
  padding: 1.25em 1.5em;
}

.reply strong {
  display: block;
  margin-bottom: 0.375em;
  color: var(--text-primary-accent);
  font-size: 0.875em;
  font-weight: var(--weight-bold);
}

.reply p {
  margin: 0;
}

.reply-pink .card {
  background: var(--surface-secondary);
}

.reply-pink strong {
  color: var(--text-secondary);
}

.reply-meta {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0.625em 0 0 1.5em;
  color: var(--text-on-color);
  font-size: 0.875em;
}

.icon-heart {
  width: 1.1em;
  height: 1.1em;
  fill: var(--pink-300);
}

.hero-stage .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375em;
  height: 2.5em;
  border-radius: var(--radius-round);
  background: var(--surface-neutral);
  box-shadow:
    inset 0 -0.12em 0 rgb(5 63 68 / 0.1),
    0 calc(0.4em + var(--d) * 1.2em) calc(0.8em + var(--d) * 2em) rgb(5 63 68 / calc(0.2 + var(--d) * 0.2));
  color: var(--text-secondary);
  font-weight: var(--weight-bold);
}

.hero-stage .pill-typing {
  gap: 0.375em;
  background: var(--surface-secondary);
}

.pill-typing i {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: hero-typing 1.2s ease-in-out infinite;
}

.pill-typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.pill-typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes hero-typing {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-0.2em);
  }
}

.hero-stage .bubble {
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 calc(0.3em + var(--d) * 0.9em) calc(0.4em + var(--d) * 0.9em) rgb(5 63 68 / calc(0.25 + var(--d) * 0.2)));
}

.bubble-lila .bubble-body { fill: var(--lila); }
.bubble-lila .bubble-heart { fill: var(--yellow); }
.bubble-pink .bubble-body { fill: var(--pink-300); }
.bubble-pink .bubble-heart { fill: var(--teal-700); }
.bubble-blue .bubble-body { fill: var(--blue); }
.bubble-blue .bubble-heart { fill: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  .hero-stage {
    transform: none;
    transition: none;
  }

  .hero-stage > .float,
  .pill-typing i {
    animation: none;
  }

  .hero-stage > .float {
    translate: none;
  }
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-800);
  left: 50%;
  width: 1.75rem;
  height: auto;
  overflow: visible;
  color: var(--text-on-color-subtle);
  transform: translateX(-50%);
}

/* Chevrons light up top to bottom, like a wave pointing down the page. */
.hero-scroll path {
  animation: hero-scroll-wave 1.8s ease-in-out infinite;
  opacity: .25;
}

.hero-scroll path:nth-child(2) {
  animation-delay: .2s;
}

.hero-scroll path:nth-child(3) {
  animation-delay: .4s;
}

@keyframes hero-scroll-wave {
  0%, 100% {
    opacity: .25;
    transform: translateY(-3px);
  }
  50% {
    opacity: 1;
    transform: translateY(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll path {
    animation: none;
  }

  .hero-scroll path:nth-child(1) { opacity: 1; }
  .hero-scroll path:nth-child(2) { opacity: .6; }
  .hero-scroll path:nth-child(3) { opacity: .3; }
}

@container page (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-1000);
  }

  .hero-art {
    justify-self: center;
    margin-right: 0;
  }

  .hero-text {
    padding-top: 0;
  }
}

.eyebrow {
  margin: 0 0 var(--space-300);
  color: var(--text-primary-accent);
  font-size: var(--small-size);
  line-height: var(--small-lh);
  letter-spacing: var(--upper-tracking);
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-400);
  margin: var(--space-1200) 0 var(--space-600);
}

.section-head h2,
.prose h2 {
  margin: 0;
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
  letter-spacing: var(--h2-tracking);
  font-weight: var(--weight-medium);
}

.more {
  color: var(--text-primary-accent);
  font-weight: var(--weight-bold);
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
}

/* Colored words from the rich text editor (each richtext field's `colors` in schema.json):
   only the text changes color, not its ground. */
mark[data-color] {
  background: none;
  color: inherit;
}

mark[data-color="white"] { color: var(--white); }
mark[data-color="black"] { color: var(--black); }
mark[data-color="green"] { color: var(--green); }
mark[data-color="pink"] { color: var(--pink-300); }

.prose {
  max-width: 45rem;
  padding-top: var(--space-1000);
}

.prose h1 {
  margin: 0 0 var(--space-400);
  font-size: var(--h1-size);
  line-height: var(--h1-lh);
  letter-spacing: var(--h1-tracking);
  font-weight: var(--weight-bold);
}

.prose h2 {
  margin: var(--space-1000) 0 var(--space-300);
}

.prose h3 {
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
  font-weight: var(--weight-medium);
}

.prose p {
  margin: 0 0 var(--space-400);
}

blockquote {
  margin: var(--space-800) 0;
  padding: var(--space-600) var(--space-800);
  border-radius: var(--radius-100);
  background: var(--surface-secondary-light);
  color: var(--text-secondary);
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
  font-weight: var(--weight-medium);
}

.muted,
time {
  color: var(--text-primary-subtle);
}

.notice {
  margin: var(--space-500) 0 0;
  padding: var(--space-300) var(--space-400);
  border-radius: var(--radius-50);
  background: var(--surface-secondary-light);
  color: var(--text-primary-subtle);
  font-size: var(--small-size);
  line-height: var(--small-lh);
}

code {
  font-size: 0.9em;
}

.zero-error {
  padding: var(--space-1500) 0;
}

.zero-error h1 {
  margin: 0;
  color: var(--surface-neutral-muted);
  font-size: var(--display-size);
  line-height: var(--display-lh);
  letter-spacing: var(--display-tracking);
}

/* ── Forms: Form Field focus and error states ── */
input,
textarea,
select {
  font: inherit;
  color: var(--text-primary);
}

.zero-form input:not([type="checkbox"]),
.zero-form textarea,
.zero-form select {
  width: 100%;
  padding: var(--space-300) var(--space-400);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-50);
  background: var(--surface-neutral);
}

.zero-form input:focus-visible,
.zero-form textarea:focus-visible,
.zero-form select:focus-visible {
  outline: none;
  border-color: var(--border-brand);
  /* Inset shadow thickens the border visually without changing its width (no layout shift). */
  box-shadow: inset 0 0 0 1px var(--border-brand), var(--focus-ring);
}

.zero-form [aria-invalid="true"] {
  border: 2px solid var(--border-error);
  background: var(--surface-error);
}

.zero-form-error {
  color: var(--text-error);
  font-size: var(--small-size);
}

.zero-form button {
  padding: var(--space-300) var(--space-600);
  border: 0;
  border-radius: var(--radius-round);
  background: var(--surface-primary);
  color: var(--text-on-color);
  font: inherit;
  font-weight: var(--weight-bold);
  cursor: pointer;
}

.zero-form button:hover {
  background: var(--surface-primary-strong);
}

.prose ul,
.prose ol {
  margin: 0 0 var(--space-400);
  padding-left: var(--space-600);
}

.prose li + li {
  margin-top: var(--space-100);
}

.prose img {
  border-radius: var(--radius-100);
}

@container page (max-width: 640px) {
  .container,
  .site-main > .zero-error,
  .site-main > .notice {
    width: min(var(--max), calc(100% - 2 * var(--space-400)));
  }

  .hero {
    padding: calc(var(--header-space) + var(--space-900)) 0 var(--space-1500);
  }

  .hero-intro {
    margin-top: var(--space-600);
    font-size: var(--body-size);
    line-height: var(--body-lh);
  }

  .hero-actions {
    margin-top: var(--space-800);
  }

  .hero-scroll {
    bottom: var(--space-600);
  }
}

/* ══ Landing sections (page.php) ══ */
.section {
  padding: var(--space-1600) 0;
  scroll-margin-top: var(--header-space);
}

/* Two pink sections in a row read as one band. */
.section-pink + .section-pink {
  padding-top: 0;
}

.section-pink {
  background: var(--surface-secondary-light);
}

.section-mist {
  background: var(--surface-tertiary);
}

.section-teal {
  background: var(--surface-primary);
  color: var(--text-on-color);
}

.section-teal :is(h2, h3, .eyebrow) {
  color: var(--text-on-color);
}

/* The landing ends on the teal contact band, straight into the footer. */
.site-main:has(> #kontakt:last-child) {
  padding-bottom: 0;
}

.section-title {
  margin: 0;
  font-size: var(--h1-size);
  line-height: var(--h1-lh);
  letter-spacing: var(--h1-tracking);
  font-weight: var(--weight-bold);
}

.section-title-xl {
  font-size: var(--display-size);
  line-height: var(--display-lh);
  letter-spacing: var(--display-tracking);
}

.section-lead {
  margin: var(--space-600) 0 0;
  color: var(--text-primary-subtle);
  font-size: var(--h4-size);
  line-height: 2rem;
}

.section-lead p {
  margin: 0 0 var(--space-300);
}

.section-lead p:last-child {
  margin-bottom: 0;
}

.section-lead-small {
  font-size: var(--body-size);
  line-height: 1.625rem;
}

.section-teal .section-lead {
  color: var(--text-on-color);
}

.section-intro {
  max-width: 50rem;
  margin-bottom: var(--space-1200);
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-600);
  margin-bottom: var(--space-1000);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-1000) var(--space-1400);
}

@container page (max-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Chips (picker tabs) ── */
.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-300);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-200);
  min-height: 2.75rem;
  padding: var(--space-200) var(--space-500);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-round);
  background: var(--surface-neutral);
  color: var(--text-primary);
  font: inherit;
  font-weight: var(--weight-bold);
  line-height: 1.25rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: var(--border-brand);
}

.chip[aria-selected="true"] {
  border-color: var(--surface-primary);
  background: var(--surface-primary);
  color: var(--text-on-color);
}

.chip-icon {
  display: none;
}

.chip[aria-selected="true"] .chip-icon {
  display: block;
}

.chip-heart {
  fill: var(--pink-300);
}

.chip-pink {
  border-color: var(--surface-secondary);
  background: var(--surface-secondary);
  color: var(--text-secondary);
  cursor: default;
}

.chip-pink:hover {
  border-color: var(--surface-secondary);
  background: var(--surface-secondary);
}

/* ── Picker: chips on the left, the teal panel on the right ── */
.picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: var(--space-1000) var(--space-1200);
}

@container page (max-width: 960px) {
  .picker {
    grid-template-columns: minmax(0, 1fr);
  }
}

.picker-label {
  margin: 0 0 var(--space-400);
  color: var(--text-primary-accent);
  font-weight: var(--weight-bold);
}

.panel {
  padding: var(--space-900);
  border-radius: var(--radius-200);
  background: var(--surface-primary);
  color: var(--text-on-color);
}

.panel-card {
  padding: var(--space-800);
  border-radius: var(--radius-100);
  background: var(--surface-neutral);
  color: var(--text-primary);
}

.place-name {
  display: flex;
  align-items: center;
  gap: var(--space-300);
  margin: 0 0 var(--space-400);
  color: var(--text-secondary);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  font-weight: var(--weight-bold);
}

.place-name .icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--icon-secondary);
}

.place-body {
  color: var(--text-primary-subtle);
  font-size: var(--small-size);
  line-height: 1.375rem;
}

.place-body p {
  margin: 0 0 var(--space-300);
}

.place-body strong {
  color: var(--text-secondary);
}

.place-body a {
  font-weight: var(--weight-bold);
}

.place .btn {
  margin-top: var(--space-400);
  white-space: normal;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-400);
  margin-top: var(--space-800);
  padding-top: var(--space-600);
  border-top: 1px solid var(--border-on-color-subtle);
}

.pager-count {
  margin: 0;
  font-weight: var(--weight-bold);
}

.pager-buttons {
  display: flex;
  gap: var(--space-200);
}

.round-btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.round-btn:hover {
  background: var(--surface-secondary-subtle);
}

.round-btn-muted {
  background: var(--surface-neutral);
}

.round-btn-muted:hover {
  background: var(--surface-primary-subtle);
}

.round-btn:disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.round-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--surface-secondary-subtle);
  color: var(--text-secondary);
  transition: background-color 0.15s ease, transform 0.2s ease;
}

.round-icon-pink {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--surface-secondary);
}

/* ── Notes: "Gutt ze wëssen", "Tipp" ── */
.note {
  display: grid;
  grid-template-columns: minmax(17rem, max-content) minmax(0, 1fr);
  align-items: start;
  gap: var(--space-600) var(--space-1000);
  margin-top: var(--space-1500);
  padding: var(--space-1000) var(--space-1000) var(--space-1000) var(--space-800);
  border-radius: var(--radius-200);
  background: var(--surface-primary-subtle);
}

.note-tip {
  grid-template-columns: auto minmax(0, 1fr);
}

@container page (max-width: 960px) {
  .note,
  .note-tip {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-800) var(--space-600);
  }
}

.note-label {
  display: flex;
  align-items: center;
  gap: var(--space-300);
  margin: 0;
  color: var(--text-primary-accent);
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.note-label .bubble {
  width: 1.5em;
  height: auto;
  flex: none;
}

.note-title {
  margin: 0;
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
  font-weight: var(--weight-bold);
}

.note-text {
  margin: var(--space-300) 0 0;
  padding-bottom: var(--space-800);
  border-bottom: 1px solid var(--border-primary);
  color: var(--text-primary-subtle);
}

.note-question {
  margin: var(--space-800) 0 var(--space-500);
  color: var(--text-secondary);
  font-size: var(--h4-size);
  line-height: var(--h4-lh);
  font-weight: var(--weight-bold);
}

.note-text-large {
  color: var(--text-primary-subtle);
  font-size: var(--h4-size);
  line-height: 2rem;
}

.note-text-large p {
  margin: 0;
}

.bubble-teal .bubble-body { fill: var(--teal-700); }
.bubble-teal .bubble-heart { fill: var(--pink-300); }
.bubble-orange .bubble-body { fill: var(--orange); }
.bubble-orange .bubble-heart { fill: var(--blue); }

/* ── Check lists ── */
.checks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-400);
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: var(--weight-bold);
}

.checks li {
  display: flex;
  align-items: center;
  gap: var(--space-300);
}

.check {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--surface-secondary);
  color: var(--text-secondary);
}

.check .icon {
  width: 1rem;
  height: 1rem;
}

.checks-pills li {
  padding: var(--space-150) var(--space-400) var(--space-150) var(--space-150);
  border-radius: var(--radius-round);
  background: var(--surface-neutral);
  color: var(--text-primary);
}

.checks-large {
  gap: var(--space-600);
  padding-top: var(--space-200);
  font-size: var(--body-size);
}

.checks-large li {
  align-items: flex-start;
}

.checks-large li > span:last-child {
  padding-top: var(--space-150);
}

/* ── Strategies demo: a hate comment and a reply in the picked style ── */
.demo-post {
  padding: var(--space-600);
  border-radius: var(--radius-100);
  background: var(--surface-neutral);
  color: var(--text-primary);
}

.demo-post .line {
  display: block;
  height: 0.875rem;
  margin-top: var(--space-200);
  border-radius: var(--radius-round);
  background: color-mix(in srgb, var(--ink-400) 28%, var(--white));
}

.demo-post .line:first-of-type {
  margin-top: var(--space-500);
}

.demo-post .post-foot {
  margin-top: var(--space-500);
}

.demo-reply {
  margin-top: var(--space-600);
}

/* The picked reply slides in from the side it comes from (--dir), the old one leaves the
   other way, both in the same grid cell. */
.demo-replies {
  display: grid;
  margin-top: var(--space-600);
  overflow-x: clip;
}

.demo-replies > .demo-reply {
  grid-area: 1 / 1;
  margin-top: 0;
}

.reply-in {
  transition:
    opacity 0.3s ease-out,
    transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}

.reply-out {
  transition:
    opacity 0.18s ease-in,
    transform 0.24s ease-in;
}

.reply-from {
  opacity: 0;
  transform: translateX(calc(var(--dir, 1) * 2.5rem));
}

.reply-to {
  opacity: 0;
  transform: translateX(calc(var(--dir, 1) * -1.5rem));
}

@media (prefers-reduced-motion: reduce) {
  .reply-in,
  .reply-out {
    transition: opacity 0.2s ease;
  }

  .reply-from,
  .reply-to {
    transform: none;
  }
}

.demo-reply-card {
  padding: var(--space-500) var(--space-600);
  border-radius: var(--radius-100);
  background: var(--surface-secondary);
  color: var(--text-secondary);
}

.demo-reply-card strong {
  display: block;
  margin-bottom: var(--space-150);
  font-size: var(--small-size);
  line-height: var(--small-lh);
}

.demo-reply-card p {
  margin: 0;
}

.demo-reply-image {
  margin-top: var(--space-300);
}

/* Stickers: small, shown at their own shape, never stretched past their size. */
.demo-reply-image img {
  display: block;
  width: auto;
  max-width: min(8rem, 100%);
  max-height: 8rem;
  height: auto;
}

.demo-reply .reply-meta {
  margin: var(--space-300) 0 0 var(--space-600);
  font-size: var(--small-size);
}

.demo-reply .icon-heart {
  width: 1.1em;
  height: 1.1em;
}

/* ── About ── */
.section-about .split {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
}

@container page (max-width: 960px) {
  .section-about .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.rich p {
  margin: 0 0 var(--space-500);
}

.rich a {
  color: var(--text-primary-accent);
}

.pull-quote {
  margin: var(--space-800) 0 0;
  padding: var(--space-100) 0 var(--space-100) var(--space-600);
  border-left: 4px solid var(--border-accent);
  color: var(--text-secondary);
  font-size: var(--h4-size);
  line-height: var(--h4-lh);
  font-weight: var(--weight-bold);
}

.cards-title {
  margin: var(--space-1400) 0 var(--space-600);
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
  font-weight: var(--weight-medium);
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-600);
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-400);
  height: 100%;
  padding: var(--space-600) var(--space-600) var(--space-600) var(--space-700);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-100);
  background: var(--surface-neutral);
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.link-card strong {
  display: block;
  font-size: var(--h4-size);
  line-height: var(--h4-lh);
}

.link-card strong + span {
  color: var(--text-primary-accent);
  font-size: var(--small-size);
}

.link-card:hover {
  border-color: var(--border-accent);
}

.link-card:hover .round-icon {
  background: var(--surface-secondary);
  transform: translate(2px, -2px);
}

/* ── Workshops ── */
.workshops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  align-items: start;
  gap: var(--space-600);
  margin: 0;
  padding: 0;
  list-style: none;
}

.workshop {
  padding: var(--space-900);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-200);
}

.workshop-number {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--space-600);
  border-radius: 50%;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  font-size: var(--h4-size);
  font-weight: var(--weight-bold);
}

.workshop-title {
  margin: 0;
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
  text-wrap: balance;
  font-weight: var(--weight-bold);
}

.workshop-facts {
  display: grid;
  gap: var(--space-200);
  margin: var(--space-600) 0 0;
  padding: var(--space-500) 0;
  border-block: 2px solid var(--border-primary);
}

.workshop-facts div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--space-200);
}

.workshop-facts dt,
.workshop-label {
  color: var(--text-primary-accent);
  font-weight: var(--weight-bold);
}

.workshop-facts dd {
  margin: 0;
}

.workshop-label {
  margin: var(--space-600) 0 var(--space-300);
  font-size: var(--body-size);
  line-height: var(--body-lh);
}

.workshop-contents {
  margin: 0;
  color: var(--text-primary-subtle);
  font-size: var(--small-size);
  line-height: 1.375rem;
}

/* ── Campaign: the track starts at the content edge and runs off the right side ──
   An Embla carousel (assets/carousel.js): .campaign is the viewport, the track moves inside
   it, by swipe, mouse drag or the arrows. */
.campaign {
  overflow: hidden;
}

.campaign-track {
  --edge: max(var(--space-600), (100% - var(--max)) / 2);
  display: flex;
  gap: var(--space-600);
  padding-inline-start: var(--edge);
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.campaign-track:active {
  cursor: grabbing;
}

.campaign-track :is(img, video) {
  -webkit-user-drag: none;
}

.campaign-track > * {
  flex: none;
  height: 31rem;
  border-radius: var(--radius-200);
}

/* Embla ignores the track's end padding; it keeps the last slide's end margin instead. */
.campaign-track > :last-child {
  margin-inline-end: var(--edge);
}

.campaign-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22.5rem;
  padding: var(--space-800);
  background: var(--surface-primary);
}

.campaign-nav {
  width: min(var(--max), calc(100% - 2 * var(--space-600)));
  margin: var(--space-600) auto 0;
}

.campaign-nav-intro {
  display: none;
}

.campaign-intro :is(h2, .eyebrow) {
  color: var(--text-on-color);
}

.campaign-card {
  position: relative;
  display: grid;
  width: 18rem;
  margin: 0;
  overflow: hidden;
  background: var(--surface-neutral-muted);
}

.campaign-card.is-wide {
  width: 26rem;
}

.campaign-card > :is(img, video) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campaign-empty {
  display: grid;
  place-items: center;
  color: var(--text-secondary);
}

.campaign-empty .icon {
  width: 2rem;
  height: 2rem;
}

.campaign-card .campaign-tags {
  position: absolute;
  top: var(--space-300);
  left: var(--space-300);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-100);
  max-width: calc(100% - 2 * var(--space-300));
}

@container page (max-width: 640px) {
  .campaign-track {
    --edge: var(--space-400);
  }

  .campaign-track > * {
    height: 26rem;
  }

  .campaign-intro {
    width: 16rem;
    padding: var(--space-600);
  }

  .campaign-card {
    width: 15rem;
  }

  .campaign-card.is-wide {
    width: 20rem;
  }
}

/* ── Tags ── */
.tag {
  display: inline-block;
  padding: var(--space-100) var(--space-300);
  border-radius: var(--radius-round);
  background: var(--surface-primary-subtle);
  color: var(--text-primary-accent);
  font-size: var(--caption-size);
  line-height: var(--caption-lh);
  letter-spacing: var(--upper-tracking);
  text-transform: uppercase;
}

.tag-white {
  background: var(--surface-neutral);
  color: var(--text-secondary);
  font-weight: var(--weight-bold);
  letter-spacing: 0;
  text-transform: none;
}

/* ── Steering committee ── */
.split-committee {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: start;
}

@container page (max-width: 960px) {
  .split-committee {
    grid-template-columns: minmax(0, 1fr);
  }
}

.logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1000);
  min-height: 24rem;
  padding: var(--space-1200) var(--space-800);
  border-radius: var(--radius-200);
  background: var(--surface-primary-subtle);
}

.logo-box a {
  display: flex;
  justify-content: center;
  line-height: 0;
}

.logo-box img {
  width: auto;
  max-width: min(18rem, 100%);
  max-height: 6rem;
}

.logo-box .logo-box-main {
  width: 14rem;
  max-height: none;
}

.members-title {
  margin: var(--space-800) 0 var(--space-200);
  font-size: var(--h4-size);
  line-height: var(--h4-lh);
  font-weight: var(--weight-bold);
}

.members {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-weight: var(--weight-bold);
}

.members li {
  position: relative;
  padding: var(--space-400) 0 var(--space-400) var(--space-600);
  border-bottom: 1px solid var(--border-primary);
}

.members li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--space-400) + 0.5rem);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--surface-secondary);
}

.members a {
  color: inherit;
  text-decoration: none;
}

.members a:hover {
  text-decoration: underline;
}

/* ── News (home) ── */
.split-news {
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
}

@container page (max-width: 960px) {
  .split-news {
    grid-template-columns: minmax(0, 1fr);
  }
}

.split-news .btn {
  margin-top: var(--space-800);
}

.news-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 2px solid var(--border-primary);
}

.news-rows li {
  border-top: 2px solid var(--border-primary);
}

.news-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-800);
  padding: var(--space-800) 0;
  color: inherit;
  text-decoration: none;
}

.news-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-300);
  max-width: 32rem;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-200) var(--space-300);
}

.news-when,
.news-when time {
  color: var(--text-primary-accent);
  font-size: var(--small-size);
  font-weight: var(--weight-bold);
}

.news-title {
  color: var(--text-secondary);
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
  font-weight: var(--weight-bold);
}

.news-row:hover .news-title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.news-excerpt {
  color: var(--text-primary-subtle);
}

.news-thumb {
  display: grid;
  flex: none;
  place-items: center;
  width: 10rem;
  height: 10rem;
  overflow: hidden;
  border-radius: var(--radius-100);
  background: repeating-conic-gradient(var(--surface-tertiary) 0 25%, var(--surface-neutral) 0 50%) 0 0 / 1.25rem 1.25rem;
  color: var(--text-secondary);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-thumb .icon {
  width: 1.75rem;
  height: 1.75rem;
}

@container page (max-width: 640px) {
  .news-row {
    flex-direction: column-reverse;
    gap: var(--space-500);
  }

  .news-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .news-thumb.is-empty {
    display: none;
  }
}

/* Phones: the picker's chips become one row that scrolls sideways, so the panel stays close. */
@container page (max-width: 640px) {
  .picker .chips {
    flex-wrap: nowrap;
    margin-inline: calc(-1 * var(--space-400));
    padding: var(--space-100) var(--space-400);
    overflow-x: auto;
    scroll-padding-inline: var(--space-400);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .picker .chips::-webkit-scrollbar {
    display: none;
  }

  .picker .chip {
    flex: none;
    white-space: nowrap;
    scroll-snap-align: start;
  }
}

/* ── Contact ── */
.split-contact {
  align-items: start;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: var(--space-300);
  margin-top: var(--space-800);
  color: var(--text-on-color);
  font-weight: var(--weight-bold);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-mail:hover {
  text-decoration: underline;
}

.contact-mail .icon {
  width: 1rem;
  height: 1rem;
}

.form-card {
  padding: var(--space-1000);
  border-radius: var(--radius-200);
  background: var(--surface-neutral);
  color: var(--text-primary);
}

/* The contact form is a form built in the overlay, printed with zero's render(). */
.contact-form {
  display: grid;
  gap: var(--space-600);
  max-width: none;
}

.contact-form .zero-form-field {
  display: block;
}

.contact-form label {
  display: block;
  margin-bottom: var(--space-200);
  font-weight: var(--weight-bold);
}

.contact-form .zero-form-required {
  opacity: 1;
}

.contact-form :is(input:not([type="checkbox"]), textarea, select) {
  display: block;
  width: 100%;
  min-height: 3.5rem;
  padding: var(--space-400);
  border: 1.5px solid var(--text-primary-subtle);
  border-radius: var(--radius-50);
  background: var(--surface-neutral);
}

.contact-form textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.contact-form :is(input, textarea)::placeholder {
  color: var(--text-primary-subtle);
}

.contact-form :is(input, textarea, select):focus-visible {
  outline: none;
  border-color: var(--border-brand);
  box-shadow: inset 0 0 0 0.5px var(--border-brand), var(--focus-ring);
}

.contact-form .zero-form-check {
  display: flex;
  gap: var(--space-300);
  align-items: baseline;
  margin: 0;
  font-weight: var(--weight-regular, 400);
}

.contact-form [aria-invalid="true"] {
  border: 2px solid var(--border-error);
  background: var(--surface-error);
}

.contact-form :is(.zero-form-error, .zero-form-message) {
  margin: var(--space-200) 0 0;
  color: var(--text-error);
  font-size: var(--small-size);
  line-height: var(--small-lh);
}

/* zero's submit button, drawn as .btn.btn-primary with the arrow icon. */
.contact-form .zero-form-submit {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: var(--space-300);
  min-height: 3rem;
  padding: var(--space-300) var(--space-600);
  border: 0;
  border-radius: var(--radius-round);
  background: var(--surface-primary);
  color: var(--text-on-color);
  font: inherit;
  font-weight: var(--weight-bold);
  line-height: var(--body-lh);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.contact-form .zero-form-submit::after {
  content: "";
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M200 64v104a8 8 0 0 1-16 0V83.3L69.7 197.7a8 8 0 0 1-11.4-11.4L172.7 72H88a8 8 0 0 1 0-16h104a8 8 0 0 1 8 8Z'/%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 256 256'%3E%3Cpath d='M200 64v104a8 8 0 0 1-16 0V83.3L69.7 197.7a8 8 0 0 1-11.4-11.4L172.7 72H88a8 8 0 0 1 0-16h104a8 8 0 0 1 8 8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.contact-form .zero-form-submit:hover {
  background: var(--surface-primary-strong);
}

.form-card .zero-form-sent p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--h4-size);
  line-height: var(--h4-lh);
  font-weight: var(--weight-bold);
}

@container page (min-width: 1200px) {
  .workshop-title {
    font-size: 1.75rem;
    line-height: 2.25rem;
  }
}

@container page (max-width: 640px) {
  .section {
    padding: var(--space-1200) 0;
  }

  .section-intro {
    margin-bottom: var(--space-900);
  }

  .section-lead {
    font-size: var(--body-size);
    line-height: var(--body-lh);
  }

  .panel {
    padding: var(--space-400);
  }

  .panel-card,
  .demo-post {
    padding: var(--space-500);
  }

  .pager {
    margin-top: var(--space-600);
    padding-top: var(--space-400);
  }

  .note {
    margin-top: var(--space-1000);
  }

  .note-label {
    font-size: var(--h3-size);
  }

  .workshop,
  .form-card {
    padding: var(--space-600);
  }

  .logo-box {
    min-height: 0;
  }
}

/* ══ Footer ══ */
.site-footer {
  padding: var(--space-1200) 0 var(--space-800);
  background: var(--surface-primary-strong);
  color: var(--text-on-color);
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-300);
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-1000);
  margin-top: var(--space-1200);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-1000);
}

.footer-logo {
  display: block;
  width: 11.25rem;
  height: auto;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-600) var(--space-1000);
}

.footer-logos a {
  display: flex;
  line-height: 0;
}

.footer-logos img {
  width: auto;
  max-width: 16rem;
  max-height: 4.5rem;
}

.footer-contact {
  position: relative;
  width: min(100%, 26rem);
  padding: var(--space-800);
  border-radius: var(--radius-200);
  background: var(--surface-neutral);
  color: var(--text-secondary);
}

.footer-contact-title {
  margin: 0 0 var(--space-600);
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
  font-weight: var(--weight-medium);
}

.footer-bubble {
  position: absolute;
  left: -3.5rem;
  bottom: 0;
  width: 2.75rem;
  height: auto;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-400);
  margin-top: var(--space-1000);
  padding-top: var(--space-600);
  border-top: 2px solid rgb(213 233 235 / 0.4);
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: var(--space-200);
  margin: 0;
}

.footer-copy .icon-heart {
  width: 1rem;
  height: 1rem;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-200) var(--space-1000);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-200) var(--space-1000);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-200);
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.footer-credit .footer-mark {
  display: block;
  width: auto;
  height: 0.85rem;
}

.footer-bottom .footer-credit:hover {
  text-decoration: none;
}

.footer-bottom .footer-credit:hover span:not(.visually-hidden) {
  text-decoration: underline;
}

@container page (max-width: 960px) {
  .footer-bubble {
    display: none;
  }
}

/* ══ Phones (_design/Landing Page – Mobile – V1) ══
   Pickers become a dropdown with "‹ Zréck · 1 vun 10 · Nächst ›" under the panel, the
   strategies demo loses its teal frame, the campaign title sits above its row of cards,
   "All News" closes the list, and the footer's contact card gets its bubble back. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.picker-select,
.pager-phone,
.news-all-phone {
  display: none;
}

.btn-outline {
  border: 2px solid var(--border-brand);
  background: var(--surface-neutral);
  color: var(--text-primary-accent);
}

.btn-outline:hover {
  background: var(--surface-primary-subtle);
}

@container page (max-width: 640px) {
  .container,
  .site-main > .zero-error,
  .site-main > .notice {
    width: min(var(--max), calc(100% - 2 * var(--space-500)));
  }

  /* Pickers: a dropdown in place of the chips. */
  .picker {
    gap: var(--space-800);
  }

  .picker .chips {
    display: none;
  }

  .picker-select {
    position: relative;
    display: flex;
    align-items: center;
  }

  .picker-select select {
    width: 100%;
    min-height: 3.25rem;
    padding: var(--space-300) 3rem var(--space-300) 3.25rem;
    border: 2px solid var(--border-brand);
    border-radius: var(--radius-100);
    background: var(--surface-neutral);
    color: var(--text-secondary);
    font: inherit;
    font-size: 1.125rem;
    font-weight: var(--weight-bold);
    line-height: 1.5rem;
    appearance: none;
    cursor: pointer;
  }

  .picker-select select:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
  }

  .picker-select .icon {
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    pointer-events: none;
  }

  .picker-select-icon {
    left: var(--space-500);
    fill: var(--icon-secondary);
  }

  .picker-select .chip-heart {
    fill: var(--pink-300);
  }

  .picker-select-caret {
    right: var(--space-500);
    fill: var(--icon-secondary);
  }

  .panel {
    padding: var(--space-400);
    border-radius: var(--radius-200);
  }

  .panel-card {
    padding: var(--space-600) var(--space-500);
  }

  .panel > .pager {
    display: none;
  }

  .pager-phone {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    border: 0;
    gap: var(--space-200);
  }

  .pager-phone .btn {
    padding-inline: var(--space-500);
  }

  .pager-phone .pager-count {
    color: var(--text-secondary);
    white-space: nowrap;
  }

  .panel-demo + .pager-phone .pager-count {
    color: var(--text-primary-accent);
  }

  /* Strategies: the post as a floating card, the reply indented under it. */
  .panel-demo {
    padding: 0;
    background: none;
    color: var(--text-secondary);
  }

  .panel-demo .demo-post {
    border-radius: var(--radius-200);
    box-shadow: 0 12px 32px rgb(16 39 42 / 0.1);
  }

  .panel-demo .demo-reply {
    margin-left: var(--space-1100);
  }

  .panel-demo .reply-meta {
    color: var(--text-secondary);
  }

  .place-body {
    font-size: var(--body-size);
    line-height: var(--body-lh);
  }

  /* Workshops: the number as a pill. */
  .workshop-number {
    width: 3.5rem;
    height: 1.75rem;
    border-radius: var(--radius-round);
    font-size: var(--body-size);
  }

  /* Campaign: the title card stays put above the row of cards that scrolls under it. The
     negative margin keeps its width out of the first column's size. */
  .campaign-track {
    --edge: var(--space-500);
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: auto 26rem;
    grid-auto-columns: max-content;
    gap: var(--space-600) var(--space-300);
  }

  .campaign-track > * {
    height: auto;
  }

  .campaign-intro {
    --pinned: 1; /* carousel.js holds it in place while the cards move under it */
    position: relative;
    z-index: 1;
    grid-row: 1;
    grid-column: 1;
    gap: var(--space-600);
    width: calc(100cqi - 2 * var(--edge));
    margin-right: -100cqi;
  }

  .campaign-card {
    grid-row: 2;
  }

  .campaign-nav {
    display: none;
  }

  .campaign-nav-intro {
    display: flex;
  }

  /* News: "All News" after the list, full width. */
  .split-news header .btn {
    display: none;
  }

  .split-news .news-all-phone {
    display: flex;
    width: 100%;
    margin-top: 0;
  }

  /* Footer */
  .footer-menu {
    justify-content: flex-start;
  }

  .footer-main {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-contact {
    width: auto;
    margin-left: calc(2.75rem + var(--space-500));
  }

  .footer-bubble {
    display: block;
    left: calc(-1 * (2.75rem + var(--space-500)));
  }
}

/* ══ News page and article (articles/) ══ */

/* A page that opens on a colored band: the band starts behind the fixed header, and a page
   that ends on one runs straight into the footer. */
.site-main > .band-top:first-child {
  margin-top: calc(-1 * var(--header-space));
  padding-top: calc(var(--header-space) + var(--space-1000));
}

.site-main:has(> .section:last-child) {
  padding-bottom: 0;
}

/* News page: the heading and filter stay in view beside the list. */
@container page (min-width: 961px) {
  .news-head,
  .article-head {
    position: sticky;
    top: calc(var(--header-space) + var(--space-600));
    align-self: start;
  }
}

.news-filter {
  margin-top: var(--space-800);
}

.chip {
  text-decoration: none;
}

.chip[aria-current] {
  border-color: var(--surface-primary);
  background: var(--surface-primary);
  color: var(--text-on-color);
}

/* Pagination: round buttons, the current page filled teal. */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-200);
  margin-top: var(--space-800);
}

.page-btn {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 var(--space-200);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-round);
  background: var(--surface-neutral);
  color: var(--text-secondary);
  font-size: var(--small-size);
  font-weight: var(--weight-bold);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

a.page-btn:hover {
  border-color: var(--border-brand);
}

.page-btn[aria-current] {
  border-color: var(--surface-primary);
  background: var(--surface-primary);
  color: var(--text-on-color);
}

.page-btn.is-disabled {
  opacity: 0.4;
}

.page-gap {
  color: var(--text-primary-subtle);
}

/* Article: heading on the left, cover and content on the right. */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: var(--space-1000) var(--space-1400);
}

.article-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-400);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-150);
  margin-bottom: var(--space-400);
  color: var(--text-secondary);
  font-size: var(--small-size);
  font-weight: var(--weight-bold);
  text-decoration: none;
}

.back:hover {
  text-decoration: underline;
}

.article-title {
  margin: 0;
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
  letter-spacing: var(--h2-tracking);
  font-weight: var(--weight-bold);
}

.article-cover,
.block-image :is(img, video) {
  display: block;
  width: 100%;
  border-radius: var(--radius-100);
}

.article-cover {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: var(--space-1000);
}

.article-lead {
  margin: 0 0 var(--space-600);
  color: var(--text-secondary);
  font-size: var(--h4-size);
  line-height: var(--h4-lh);
  font-weight: var(--weight-bold);
}

.article-content {
  color: var(--text-primary-subtle);
}

.article-content > * + * {
  margin-top: var(--space-800);
}

.article-content .prose {
  max-width: none;
  padding-top: 0;
}

.article-content .prose > :last-child {
  margin-bottom: 0;
}

.article-content :is(h2, h3, h4) {
  margin: var(--space-800) 0 var(--space-400);
  color: var(--text-primary);
  font-size: var(--h4-size);
  line-height: var(--h4-lh);
  letter-spacing: 0;
  font-weight: var(--weight-bold);
}

.article-content .prose > :first-child {
  margin-top: 0;
}

.article-content ul {
  padding-left: var(--space-500);
}

.article-content ul li::marker {
  color: var(--text-primary-accent);
}

/* Quotes, in a quote block or in rich text: a pink rule and teal text. */
.article-content blockquote {
  margin: var(--space-800) 0;
  padding: 0 0 0 var(--space-500);
  border-left: 3px solid var(--border-accent);
  border-radius: 0;
  background: none;
  color: var(--text-primary-accent);
  font-size: var(--h4-size);
  line-height: var(--h4-lh);
  font-weight: var(--weight-medium);
}

.block-quote {
  margin-inline: 0;
}

.block-quote blockquote {
  margin: 0;
}

.block-quote figcaption {
  margin-top: var(--space-200);
  padding-left: calc(var(--space-500) + 3px);
  font-size: var(--small-size);
}

.block-image {
  margin-inline: 0;
}

.block-image figcaption {
  margin-top: var(--space-300);
  font-size: var(--caption-size);
  line-height: var(--caption-lh);
}

@container page (max-width: 960px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-800);
  }

  .article-head {
    flex-direction: column;
  }
}

/* Phones: the filter chips are one row that scrolls sideways. */
@container page (max-width: 640px) {
  .site-main > .band-top:first-child {
    padding-top: calc(var(--header-space) + var(--space-600));
  }

  .news-filter {
    flex-wrap: nowrap;
    margin-inline: calc(-1 * var(--space-400));
    padding: var(--space-100) var(--space-400);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .news-filter .chip {
    flex: none;
  }

  .news-filter::-webkit-scrollbar {
    display: none;
  }
}
