/* =========================================================================
   SHWAG — Swiss Healthcare Workers Against Genocide
   Single stylesheet, no frameworks. System fonts.
   ========================================================================= */

/* ----- Design tokens ----- */
:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Modular type scale (1.250 ratio, base 1rem = 18px) */
  --fs-xs:    0.722rem;   /* 13px */
  --fs-sm:    0.833rem;   /* 15px */
  --fs-base:  1rem;       /* 18px */
  --fs-md:    1.125rem;   /* 20px */
  --fs-lg:    1.25rem;    /* 22.5px */
  --fs-xl:    1.563rem;   /* 28px */
  --fs-2xl:   1.953rem;   /* 35px */
  --fs-3xl:   2.441rem;   /* 44px */
  --fs-4xl:   3.052rem;   /* 55px */
  --fs-5xl:   3.815rem;   /* 69px */

  --lh-tight:    1.15;
  --lh-snug:     1.3;
  --lh-normal:   1.55;
  --lh-relaxed:  1.7;

  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.02em;

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;
  --space-10: 8rem;

  --color-bg:        #ffffff;
  --color-bg-alt:    #f6f5f1;
  --color-bg-dark:   #0e0e10;
  --color-text:      #15171a;
  --color-text-soft: #4a4d54;
  --color-text-mute: #767880;
  --color-line:      #e2e1dc;
  --color-line-dark: #2a2b2f;
  --color-accent:    #b7322c;
  --color-accent-hi: #d24641;
  --color-on-dark:   #f4f3ef;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow:    0 4px 16px rgb(0 0 0 / 0.08);

  --container: 1100px;
  --container-narrow: 760px;
  --header-h: 72px;
}

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt", "ss01";
  /* NOTE: do NOT use overflow:hidden / overflow-x:hidden on <body> —
     it breaks position:fixed children on iOS Safari. */
}
body.nav-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  color: var(--color-text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 4vw + 1rem, var(--fs-4xl)); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

/* Default vertical rhythm: every heading inside main content
   gets generous bottom space before the following text. */
main h1, main h2, main h3, main h4, main h5, main h6 {
  margin-bottom: 0.85em;
}
main h1 { margin-bottom: 0.55em; }

/* All body copy uses the soft text color for harmonious legibility.
   Headings, .lede, strong and links use the full --color-text. */
p {
  line-height: var(--lh-relaxed);
  max-width: 70ch;
  color: var(--color-text-soft);
}
strong, b { font-weight: 700; color: var(--color-text); }
em, i { font-style: italic; }
small { font-size: var(--fs-sm); color: var(--color-text-mute); }
ul, ol {
  padding-left: 1.4em;
  line-height: var(--lh-relaxed);
  color: var(--color-text-soft);
}
li + li { margin-top: 0.35em; }
li strong { color: var(--color-text); }

/* ----- Layout primitives ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: clamp(3rem, 8vw, var(--space-10));
}
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-bg-dark); color: var(--color-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6 { color: var(--color-on-dark); }

.section__head { max-width: 56rem; margin-inline: auto; text-align: center; margin-bottom: var(--space-7); }
.section__head h2 { margin-bottom: var(--space-3); }
.section__head p { color: var(--color-text-soft); margin-inline: auto; }

/* ----- Intro / editorial section (centered text block) ----- */
.intro { text-align: center; }
.intro .container { display: grid; gap: var(--space-4); justify-items: center; }
.intro h2 { margin: 0; }
.intro p { max-width: 60ch; margin-inline: auto; }
.intro .lede { font-size: var(--fs-md); color: var(--color-text); }

/* ----- Prose flow (consistent paragraph rhythm) ----- */
.prose > * + * { margin-top: 1.25em; }
.prose > * + h2 { margin-top: 2.4em; }
.prose > * + h3 { margin-top: 1.8em; }
.prose > * + h4 { margin-top: 1.4em; }
/* Heading bottom margin already provided by `main h2/h3/h4`;
   reset top-margin on the element immediately after a heading. */
.prose > h2 + *,
.prose > h3 + *,
.prose > h4 + * { margin-top: 0; }
.prose h2 { font-size: var(--fs-2xl); }
.prose h3 { font-size: var(--fs-xl); }
.prose h4 { font-size: var(--fs-md); font-weight: 600; color: var(--color-text); }
.prose p { max-width: none; }
.prose .lede { font-size: var(--fs-md); color: var(--color-text); line-height: var(--lh-normal); }
.prose .small,
.prose small,
.prose .footnote-text {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-text-mute);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
}

.eyebrow {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  font-weight: 600;
  margin: 0 0 var(--space-2);
}
.page-header .eyebrow { margin-bottom: var(--space-3); }

/* ----- Section divider (label between groups of sections) ----- */
.section-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--fs-md);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-soft);
  margin: 0 auto var(--space-2);
  text-align: center;
  justify-content: center;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-line);
  max-width: 8rem;
}
.section-divider span { white-space: nowrap; }
.section-divider__sub {
  text-align: center;
  color: var(--color-text-mute);
  font-size: var(--fs-sm);
  margin: 0 auto var(--space-6);
  max-width: 40rem;
}

/* ----- Block head (eyebrow + title + lede above a content group) ----- */
.block-head {
  margin-bottom: var(--space-7);
  max-width: 56rem;
}
.block-head h2 { margin-bottom: 0.4em; font-size: var(--fs-2xl); }
.block-head p { color: var(--color-text-soft); max-width: 50ch; }

/* "Live" eyebrow with pulsing dot */
.eyebrow--live { display: inline-flex; align-items: center; gap: 0.55em; }
.eyebrow--live .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgb(183 50 44 / 0.18);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.25); opacity: 0.55; }
}

/* ----- Ongoing campaign (compact horizontal card) ----- */
.ongoing-list {
  display: grid;
  gap: var(--space-4);
}
.ongoing {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-accent);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  animation: ongoingBarPulse 1.6s ease-in-out infinite;
}
@keyframes ongoingBarPulse {
  0%, 100% { border-left-color: var(--color-accent); }
  50%      { border-left-color: #e87870; }
}
@media (prefers-reduced-motion: reduce) {
  .ongoing { animation: none; }
}
.ongoing:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
@media (min-width: 720px) {
  .ongoing { grid-template-columns: 220px 1fr; }
}
.ongoing__media {
  background: var(--color-bg-alt);
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: var(--space-2);
}
.ongoing__media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
@media (min-width: 720px) {
  .ongoing__media { aspect-ratio: auto; height: 100%; min-height: 220px; }
}
.ongoing__body {
  padding: var(--space-5) var(--space-6);
  display: grid;
  align-content: start;
  gap: var(--space-3);
}
.ongoing__body h3 {
  font-size: var(--fs-lg);
  margin: 0;
}
.ongoing__body p {
  color: var(--color-text-soft);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  max-width: 60ch;
  margin: 0;
}
.ongoing__meta {
  font-size: var(--fs-xs) !important;
  color: var(--color-text-mute) !important;
  letter-spacing: 0.02em;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-line);
}
.ongoing__meta a { color: var(--color-accent); font-weight: 500; }

/* ----- Event detail page (event-YYYY-MM-DD.html) ----- */
.event-page {
  padding-block: var(--space-7) var(--space-8);
}
.event-page__head {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-line);
}
.event-page__head .eyebrow { margin-bottom: var(--space-3); }
.event-page__head h1 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, var(--fs-3xl));
  margin-bottom: var(--space-4);
}
.event-page__head .lede {
  font-size: var(--fs-md);
  color: var(--color-text);
  margin: 0;
  max-width: none;
}

.back-link {
  margin: 0 0 var(--space-5);
  font-size: var(--fs-sm);
}
.back-link a {
  color: var(--color-text-soft);
  text-decoration: none;
  font-weight: 500;
}
.back-link a:hover { color: var(--color-accent); }
.back-link--bottom { margin: var(--space-7) 0 0; }

.event-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin: 0 0 var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
}
@media (min-width: 600px) {
  .event-meta { grid-template-columns: repeat(3, 1fr); }
}
.event-meta div { display: grid; gap: 0.2em; }
.event-meta dt {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.event-meta dd {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--color-text);
  font-weight: 500;
}

.program {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: program;
  display: grid;
  gap: var(--space-4);
}
.program > li {
  counter-increment: program;
  position: relative;
  padding: var(--space-3) 0 var(--space-3) 2.5rem;
  margin: 0;
  border-top: 1px solid var(--color-line);
}
.program > li:first-child { border-top: 0; padding-top: 0; }
.program > li::before {
  content: counter(program, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: var(--space-3);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}
.program > li:first-child::before { top: 0; }
.program h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-2);
  color: var(--color-text);
  line-height: var(--lh-snug);
}
.program p {
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
  margin: 0 0 var(--space-2);
  line-height: var(--lh-relaxed);
}
.program p:last-child { margin-bottom: 0; }
.program ul {
  list-style: disc;
  padding-left: 1.2em;
  margin: var(--space-2) 0 0;
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
  display: grid;
  gap: 0.3em;
}
.program ul li::marker { color: var(--color-accent); }

.event-note {
  margin: var(--space-7) 0 0;
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-dark);
  color: var(--color-on-dark);
  border-radius: var(--radius);
}
.event-note p {
  margin: 0;
  color: var(--color-on-dark);
  font-size: var(--fs-sm);
  max-width: none;
}
.event-note strong { color: var(--color-on-dark); }

/* ----- Past actions (cards with date + links) ----- */
.cards--past { gap: var(--space-5); }
.cards--past .card {
  gap: var(--space-3);
  padding: var(--space-5);
  padding-bottom: var(--space-5);
}
.cards--past .card__date {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  margin: 0;
}
.cards--past .card h4 {
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
  color: var(--color-text);
  margin: 0;
}
.cards--past .card p {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text-soft);
  margin: 0;
}
.cards--past .card__links {
  font-size: var(--fs-xs);
  color: var(--color-text-mute);
  margin: 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
  margin-top: auto;
}
.cards--past .card__links a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}
.cards--past .card__links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
}

/* ----- Action group (used in get-involved cards) ----- */
.action-group {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-line);
  display: grid;
  gap: var(--space-3);
}
.action-group:first-of-type { border-top: 0; padding-top: 0; }
.action-group__label {
  font-size: var(--fs-xs) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text) !important;
  margin: 0 !important;
}
.action-group p { margin: 0; font-size: var(--fs-sm); }

/* ----- Link list (badge-style pill links) ----- */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}
.link-list li { margin: 0; line-height: 1; }
.link-list li + li { margin-top: 0; }
.link-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.45rem 0.85rem;
  font-size: var(--fs-sm);
  line-height: 1.2;
  text-decoration: none;
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-line);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.link-list a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-dark);
}
.link-list a::after { content: "→"; opacity: 0.6; transition: transform 0.15s; }
.link-list a:hover::after { transform: translateX(2px); opacity: 1; }

/* ----- Cookie consent banner ----- */
.cookie-banner {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  max-width: 460px;
  background: var(--color-bg-dark);
  color: var(--color-on-dark);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgb(0 0 0 / 0.32);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  display: grid;
  gap: var(--space-4);
  z-index: 80;
  transform: translateY(140%);
  transition: transform 0.3s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__title {
  font-size: var(--fs-md);
  margin: 0 0 var(--space-2);
  color: var(--color-on-dark);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
}
.cookie-banner p {
  color: rgb(255 255 255 / 0.85);
  margin: 0 0 var(--space-2);
  max-width: none;
  font-size: var(--fs-sm);
}
.cookie-banner p:last-child { margin-bottom: 0; }
.cookie-banner strong { color: var(--color-on-dark); }
.cookie-banner__links {
  font-size: var(--fs-xs) !important;
  color: rgb(255 255 255 / 0.6) !important;
}
.cookie-banner a { color: var(--color-accent-hi); text-decoration-color: rgb(210 70 65 / 0.5); }
.cookie-banner a:hover { color: #ff453a; }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
}
.cookie-banner__actions button {
  padding: 0.55rem 1rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-on-dark);
  border: 1px solid rgb(255 255 255 / 0.25);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cookie-banner__actions button:hover {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.4);
}
.cookie-banner__actions .is-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.cookie-banner__actions .is-primary:hover {
  background: var(--color-accent-hi);
  border-color: var(--color-accent-hi);
}

/* Placeholder shown while a third-party iframe is gated */
.consent-placeholder {
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-7) var(--space-6);
  text-align: center;
  color: var(--color-text-soft);
  display: grid;
  gap: var(--space-3);
  justify-items: center;
}
.consent-placeholder p { margin: 0; max-width: 50ch; }
.consent-placeholder button {
  padding: 0.6rem 1.2rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--color-text);
  color: var(--color-on-dark);
  cursor: pointer;
}
.consent-placeholder button:hover { background: var(--color-accent); }

/* =========================================================================
   TOPBAR — sticky, solid background (NO backdrop-filter, NO transform on
   the header — those would create a containing block for position:fixed
   descendants and break the mobile menu).
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--header-h);
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.site-header__logo img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}
.site-header__logo span { font-size: var(--fs-md); }

/* ---- Desktop nav ---- */
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 0.85rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-soft);
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: var(--color-text); background: var(--color-bg-alt); }
.nav a[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 600;
}

/* ---- Hamburger button ---- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  z-index: 70;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: var(--color-bg-alt); }
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.15s ease, top 0.25s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---- Mobile breakpoint ---- */
@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }

  /* Backdrop behind the menu */
  .nav-backdrop {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgb(0 0 0 / 0.4);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* The menu itself, sitting just below the header */
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-3) 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 16px 32px rgb(0 0 0 / 0.08);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;

    /* Closed state */
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0s linear 0.25s;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0s linear 0s;
  }
  .nav a {
    height: auto;
    padding: 1rem 1.5rem;
    font-size: var(--fs-md);
    border-radius: 0;
    border-bottom: 1px solid var(--color-line);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current="page"] {
    background: var(--color-bg-alt);
  }
}

/* ----- Hero & page-header (shared photo-banner pattern) ----- */
.hero,
.page-header {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--color-on-dark);
  background-color: var(--color-bg-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
}
.hero { min-height: min(90vh, 840px); }
.page-header { min-height: min(72vh, 640px); }

/* Darker overlay so titles read clearly over any photo. */
.hero::after,
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgb(0 0 0 / 0.50) 0%,
    rgb(0 0 0 / 0.60) 45%,
    rgb(0 0 0 / 0.78) 100%);
  z-index: 0;
}

.hero > *,
.page-header > * { position: relative; z-index: 1; }

.hero .container { padding-block: var(--space-9); }
.page-header .container { padding-block: var(--space-8); }

.hero h1,
.page-header h1 {
  color: var(--color-on-dark);
  margin: 0;
  text-shadow: 0 2px 24px rgb(0 0 0 / 0.55), 0 1px 3px rgb(0 0 0 / 0.4);
}
.hero h1 { margin-bottom: var(--space-4); text-wrap: balance; }
.page-header h1 { font-size: clamp(2.25rem, 4vw + 0.5rem, var(--fs-4xl)); }

/* ----- "Who we are" — text on left, large logo on right (mirrors .split--reverse) ----- */
.who__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: start;
}
@media (min-width: 760px) {
  .who__row {
    grid-template-columns: 7fr 5fr;
    gap: var(--space-8);
    align-items: center;
  }
}
.who__text { max-width: none; }
.who__text .eyebrow { margin: 0 0 var(--space-3); }
.who__text h2 { margin: 0 0 var(--space-5); }
.who__text p { max-width: none; margin: 0 0 1em; }
.who__text p:last-child { margin-bottom: 0; }
.who__mark {
  justify-self: center;
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  box-shadow: 0 8px 32px rgb(0 0 0 / 0.10);
}
@media (min-width: 760px) {
  .who__mark { max-width: 420px; justify-self: end; }
}

.hero p,
.page-header p {
  color: rgb(255 255 255 / 0.95);
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.55);
  margin-inline: auto;
}
.hero p { font-size: var(--fs-lg); line-height: var(--lh-snug); max-width: 40rem; }
.page-header p { font-size: var(--fs-md); margin-top: var(--space-4); max-width: 36rem; }

.page-header .eyebrow {
  color: #ff453a;
  margin-bottom: var(--space-3);
  text-shadow: 0 1px 6px rgb(0 0 0 / 0.6);
}

/* ----- Cards & content blocks ----- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, var(--space-8));
  align-items: center;
}
@media (min-width: 760px) {
  .split { grid-template-columns: 5fr 6fr; }
  .split--reverse { grid-template-columns: 6fr 5fr; }
  .split--reverse > :first-child { order: 2; }
}
.split img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 0;
  background: var(--color-bg-alt);
}

/* ----- Report card (featured document with small cover) ----- */
.report {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
  max-width: 880px;
  margin-inline: auto;
}
@media (min-width: 720px) {
  .report { grid-template-columns: 200px 1fr; gap: var(--space-7); }
}
.report__cover {
  display: block;
  text-decoration: none;
  border: 1px solid var(--color-line);
  background: var(--color-bg-alt);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.report__cover:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.report__cover img {
  width: 100%;
  height: auto;
  display: block;
}
.report__body { display: grid; gap: var(--space-3); }
.report__body h2 { font-size: var(--fs-2xl); margin: 0; }
.report__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3) !important;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--color-accent) 30%, var(--color-line)); }
.card__media {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  margin: calc(var(--space-5) * -1) calc(var(--space-5) * -1) var(--space-3);
  border-bottom: 1px solid var(--color-line);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card h3, .card h4, .card h5 {
  font-size: var(--fs-lg);
  letter-spacing: var(--tracking-tight);
}
.card p { font-size: var(--fs-base); color: var(--color-text-soft); }
.card .icon { width: 40px; height: 40px; color: var(--color-accent); }

/* ----- Lists ----- */
.bulleted {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: var(--space-4);
}
.bulleted > li {
  position: relative;
  padding-left: 1.6em;
  line-height: var(--lh-relaxed);
}
.bulleted > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.5em;
  height: 2px;
  background: var(--color-accent);
}

/* ----- Demands list ----- */
.demand-block {
  margin-bottom: var(--space-8);
  padding-top: var(--space-7);
  border-top: 1px solid var(--color-line);
}
.demand-block:first-of-type { padding-top: 0; border-top: 0; }
.demand-block__roman {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin: 0 0 var(--space-2);
}
.demand-block h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-5);
  color: var(--color-text);
  max-width: 36ch;
}
.demand-block h4 {
  font-size: var(--fs-base);
  font-weight: 600;
  margin: var(--space-6) 0 var(--space-3);
  color: var(--color-text);
}
.demand-block .bulleted { font-size: var(--fs-sm); }

/* ----- Reference list (small text) ----- */
.references {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line);
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
}
.references h3 { font-size: var(--fs-md); margin-bottom: var(--space-3); color: var(--color-text); }
.references ol {
  columns: 2;
  column-gap: var(--space-6);
  padding-left: 1.2em;
}
.references li { break-inside: avoid; margin-bottom: var(--space-3); }
.references a { color: var(--color-text-soft); }
.references a:hover { color: var(--color-accent); }
@media (max-width: 640px) { .references ol { columns: 1; } }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  background: var(--color-text);
  color: var(--color-on-dark);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--color-accent); }
.btn--ghost { background: transparent; color: var(--color-text); border: 1px solid var(--color-line); }
.btn--ghost:hover { background: var(--color-bg-alt); color: var(--color-text); }
.btn--accent { background: var(--color-accent); }
.btn--accent:hover { background: var(--color-accent-hi); }

/* ----- Charts (compact inline SVG bar charts that sit inside text columns) ----- */
.chart {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-4) var(--space-3);
  margin: var(--space-5) auto;
  max-width: 580px;
  display: grid;
  gap: var(--space-2);
}
/* Restore comfortable rhythm between charts and surrounding paragraphs */
.container > p + .chart,
.container > .chart + p { margin-top: var(--space-5); }
.container > .chart + .chart { margin-top: var(--space-4); }
/* Bulleted list directly after a chart needs breathing room */
.chart + .bulleted { margin-top: var(--space-7); }
.chart__caption {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  margin: 0;
  line-height: var(--lh-snug);
}
.chart__svg {
  width: 100%;
  height: auto;
  display: block;
  font-family: var(--font-sans);
}
.chart__source {
  font-size: var(--fs-xs);
  color: var(--color-text-mute);
  margin: 0;
  letter-spacing: 0.02em;
}
.chart__grid {
  stroke: var(--color-line);
  stroke-width: 1;
}
.chart__y-tick,
.chart__x-tick {
  fill: var(--color-text-mute);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.chart__x-tick { fill: var(--color-text-soft); font-weight: 500; }
.chart__value {
  fill: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.chart__bar rect {
  fill: var(--color-text);
  transition: fill 0.18s ease;
}
.chart__bar:hover rect { fill: #2a2c30; }
.chart__bar--hi rect { fill: var(--color-accent); }
.chart__bar--hi:hover rect { fill: var(--color-accent-hi); }
.chart__bar--hi .chart__value { fill: var(--color-accent); }

@media (max-width: 600px) {
  .chart { padding: var(--space-3); }
  .chart__y-tick, .chart__x-tick { font-size: 12px; }
  .chart__value { font-size: 13px; }
}

/* ----- Footnote (small inline references) ----- */
.footnote {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
  font-size: var(--fs-xs);
  color: var(--color-text-mute);
}
.footnote summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  user-select: none;
  color: var(--color-text-soft);
}
.footnote summary::-webkit-details-marker { display: none; }
.footnote summary::after {
  content: "+";
  font-weight: 700;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}
.footnote[open] summary::after { content: "−"; }
.footnote summary:hover { color: var(--color-text); }
.footnote ul {
  margin: var(--space-3) 0 0;
  padding-left: 1.2em;
  display: grid;
  gap: var(--space-2);
}
.footnote li { line-height: var(--lh-snug); }
.footnote sup { color: var(--color-accent); font-size: 1em; vertical-align: baseline; }

/* ----- Footer ----- */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-on-dark);
  padding-block: var(--space-8) var(--space-6);
  font-size: var(--fs-sm);
}
.site-footer .container { display: grid; gap: var(--space-7); }
.site-footer__top {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 720px) {
  .site-footer__top { grid-template-columns: 1.5fr 1fr 1fr; }
}
.site-footer h2 { font-size: var(--fs-md); margin-bottom: var(--space-3); color: var(--color-on-dark); }
.site-footer p { color: rgb(255 255 255 / 0.7); max-width: 32rem; }
.site-footer a { color: var(--color-on-dark); text-decoration-color: rgb(255 255 255 / 0.4); }
.site-footer a:hover { color: var(--color-accent-hi); text-decoration-color: var(--color-accent-hi); }
.site-footer ul { list-style: none; padding-left: 0; display: grid; gap: var(--space-2); }
.site-footer__social { display: flex; gap: var(--space-3); }
.site-footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgb(255 255 255 / 0.06);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-footer__social a:hover { background: var(--color-accent); color: white; }
.site-footer__social svg { width: 18px; height: 18px; }
.site-footer__bottom {
  border-top: 1px solid var(--color-line-dark);
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: rgb(255 255 255 / 0.55);
}
.site-footer__bottom nav { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ----- Embed (iframes etc) ----- */
.embed { width: 100%; min-height: 1500px; border: 0; }
.embed-wrap {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  overflow: hidden;
}

/* ----- Legal pages (privacy / cookies) ----- */
.legal {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-block: var(--space-8);
}
.legal h1 { font-size: var(--fs-3xl); margin-bottom: var(--space-2); }
.legal .updated {
  font-size: var(--fs-sm);
  color: var(--color-text-mute);
  margin-bottom: var(--space-6);
}
.legal > p { margin-bottom: var(--space-6); }
.legal h2 {
  font-size: var(--fs-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-line);
}
.legal section + section { margin-top: var(--space-8); }
.legal h3 { font-size: var(--fs-md); margin-top: var(--space-5); margin-bottom: var(--space-3); }
.legal h4 { font-size: var(--fs-base); margin-top: var(--space-4); margin-bottom: var(--space-2); color: var(--color-text-soft); }
.legal p, .legal li { font-size: var(--fs-sm); }
.legal section p + p,
.legal section p + ul,
.legal section p + ol,
.legal section ul + p,
.legal section ol + p { margin-top: var(--space-3); }
.legal ul, .legal ol { margin-block: var(--space-3); }
.legal .toc {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
}
.legal .toc h2 {
  border: 0;
  margin: 0 0 var(--space-3);
  padding: 0;
  font-size: var(--fs-md);
}
.legal .toc ol { font-size: var(--fs-sm); margin: 0; }
.legal .contact-box {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.legal .contact-box p { font-size: var(--fs-sm); }
.legal .service {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-3) 0;
}
.legal .service h4 { margin-top: 0; color: var(--color-text); }
.legal .service .meta { font-size: var(--fs-xs); color: var(--color-text-mute); margin-bottom: var(--space-3); }

/* ----- Utilities ----- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.skip-link {
  position: absolute;
  top: -100px; left: 0;
  padding: var(--space-3) var(--space-5);
  background: var(--color-text);
  color: var(--color-on-dark);
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { top: 0; }

/* ----- Print ----- */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero { display: none; }
  body { color: black; background: white; }
  a { color: black; text-decoration: underline; }
}
