/* ==========================================================================
   RAISING — raising.gig.eu
   Main stylesheet. Mobile-first. No build step.

   Layout, colours and Montserrat follow the previous (Brizy) version of the
   site. Edit the tokens below and the whole site follows.
   ========================================================================== */

/* ---------- Fonts (self-hosted Montserrat, OFL licence, see assets/fonts/README.md) ---------- */
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
  /* Brand colours (previous site) */
  --c-green: #548235;       /* hero box, accents (4.6:1 with white — large text / bold only) */
  --c-green-text: #3E6526;  /* green usable for small text and links (7.1:1 on white) */
  --c-forest: #192E04;      /* footer, section labels (15:1 on white) */
  --c-mint: #AFE99A;        /* buttons ("Read more about the project") */
  --c-mint-hover: #9BDC83;
  --c-tint: #F3F8EF;        /* tinted backgrounds */
  --c-ink: #000000;         /* headings */
  --c-text: #1F1F1F;        /* body text */
  --c-text-muted: #5A5A5A;  /* secondary text (6.9:1 on white) */
  --c-line: #E3E6DF;        /* hairlines */
  --c-white: #FFFFFF;

  /* Typography */
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-200: 0.875rem;
  --fs-300: 0.9375rem;
  --fs-400: 1rem;
  --fs-500: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-600: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-700: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --fs-hero: clamp(2.25rem, 1.6rem + 2.6vw, 3.125rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(3rem, 2.25rem + 3.5vw, 5.5rem);
  --radius-s: 4px;
  --radius-m: 10px;
  --radius-pill: 999px;
  --header-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 1100px) {
  :root { --header-h: 100px; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-400);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--c-ink);
  margin: 0;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--c-green-text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-forest); text-decoration-thickness: 2px; }
strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--c-green-text);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--c-forest);
  color: var(--c-white);
  font-weight: 600;
  border-radius: var(--radius-s);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--c-white); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* External-link marker (links that leave the site) */
.ext::after {
  content: "";
  display: inline-block;
  width: 0.7em; height: 0.7em;
  margin-left: 0.3em;
  vertical-align: 0.05em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ==========================================================================
   Header: logo left, menu right, "Database" link above the menu
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--c-white);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 6px 18px -10px rgba(0, 0, 0, 0.25); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}
.brand { display: inline-flex; flex-shrink: 0; border-radius: 2px; }
.brand img { height: 60px; width: auto; }
@media (min-width: 1100px) { .brand img { height: 84px; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid rgba(25, 46, 4, 0.25);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--c-forest);
  font: 600 1rem/1 var(--font);
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
  content: "";
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* Mobile navigation panel */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  padding: 1rem var(--gutter) 2.5rem;
  overflow-y: auto;
  background: var(--c-white);
  border-top: 1px solid var(--c-line);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out), visibility 0s;
}
/* Without JS the menu is always visible (the toggle is hidden then) */
.no-js .site-nav { position: static; visibility: visible; opacity: 1; transform: none; padding: 0 0 1rem; border: 0; flex-basis: 100%; }
.no-js .nav-toggle { display: none; }
.no-js .site-header { height: auto; position: relative; }
.no-js .site-header__inner { flex-wrap: wrap; padding-block: 1rem; }

.nav-list { list-style: none; display: grid; }
.nav-list a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--c-line);
  font: 500 1.375rem/1.2 var(--font);
  color: var(--c-ink);
  text-decoration: none;
}
.nav-list a[aria-current] { color: var(--c-green-text); }
.nav-list a[aria-current]::before {
  content: "";
  display: inline-block;
  width: 1.25rem; height: 3px;
  margin-right: 0.6rem;
  vertical-align: middle;
  background: var(--c-green);
}
.nav-extra { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.5rem; }
.nav-extra a { font-size: var(--fs-300); color: var(--c-ink); }

body.nav-open { overflow: hidden; }

/* Desktop navigation */
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
    padding: 0;
    overflow: visible;
    background: none;
    border: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
    flex-basis: auto;
  }
  .nav-extra { order: -1; margin: 0; }
  .nav-extra a { font-size: 0.875rem; text-decoration: none; }
  .nav-extra a:hover { text-decoration: underline; }
  .nav-list { display: flex; gap: clamp(1rem, 1.8vw, 1.75rem); }
  .nav-list a {
    position: relative;
    padding: 0.35rem 0;
    border: 0;
    font: 500 1.0625rem/1.2 var(--font);
    color: var(--c-ink);
    white-space: nowrap;
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: var(--c-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
  }
  .nav-list a:hover { color: var(--c-ink); }
  .nav-list a:hover::after, .nav-list a[aria-current]::after { transform: scaleX(1); }
  .nav-list a[aria-current] { color: var(--c-ink); }
  .nav-list a[aria-current]::before { display: none; }
}

/* ==========================================================================
   Homepage: hero photo, green box with rounded corner, funding + facts
   ========================================================================== */
.hero {
  position: relative;
  height: clamp(260px, 46vw, 620px);
  overflow: hidden;
  background: #3b3a35;
}
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

.intro-band { position: relative; }
.intro-band__inner { display: grid; gap: 2.5rem; }
.claim {
  position: relative;
  z-index: 1;
  margin-top: -3.5rem;
  padding: clamp(2rem, 1.25rem + 3vw, 3.75rem) clamp(1.5rem, 1rem + 3vw, 3.75rem);
  border-radius: 0 clamp(60px, 8vw, 120px) 0 clamp(60px, 8vw, 120px);
  background: var(--c-green);
  color: var(--c-white);
}
.claim__title { font-size: var(--fs-hero); font-weight: 700; color: var(--c-white); }
.claim__tagline { margin: 1rem 0 0; font-size: clamp(1.25rem, 1rem + 1.1vw, 1.875rem); line-height: 1.4; }
.funding { display: grid; justify-items: center; text-align: center; }
.funding__logos { width: 280px; max-width: 80%; }

/* Project facts: one strip of key–value tiles under the claim and logos */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  border-radius: var(--radius-m);
  background: var(--c-tint);
  overflow: hidden;
}
.facts div { padding: 1rem 1.25rem; border: solid rgba(25, 46, 4, 0.08); border-width: 0 1px 1px 0; }
.facts dt { margin: 0 0 0.25rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-text-muted); }
.facts dd { margin: 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; color: var(--c-forest); }
.facts div:last-child { grid-column: span 2; }   /* 7 tiles: no empty cell in 2 or 4 columns */
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .facts div:last-child { grid-column: auto; } }
@media (min-width: 1100px) { .facts { grid-template-columns: 1fr 0.85fr 1.05fr 1.6fr 1fr 1fr 0.95fr; } .facts div { border-bottom: 0; } .facts div:last-child { border-right: 0; } }
@media (min-width: 900px) {
  .intro-band__inner { grid-template-columns: 1fr 1.65fr; align-items: center; gap: 3rem; }
  .funding { order: -1; }
  .claim { margin-top: -10rem; }
}

.eyebrow {
  margin: 0 0 2rem;
  text-align: center;
  font: 600 0.9375rem/1.4 var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-forest);
}

/* Consortium logos */
.partners { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; align-items: center; }
.partners a { display: grid; place-items: center; min-height: 96px; padding: 0.5rem; border-radius: var(--radius-s); }
.partners img { max-height: 88px; width: auto; max-width: 100%; object-fit: contain; transition: transform 0.3s var(--ease-out); }
.partners a:hover img { transform: scale(1.04); }
@media (min-width: 800px) { .partners { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.section--flush-top { padding-top: 0; }
.cta, .about p.cta { margin: 2rem 0 0; text-align: center; }
.latest .post-grid { text-align: left; }
.contact__follow-title { font-size: 1.25rem; margin-top: 2.5rem; }
.not-found__text { margin-top: 1.25rem; }
/* stagger of the scroll reveal in rows of logos/cards (no inline styles: CSP) */
.partners > li:nth-child(2), .pub-grid > li:nth-child(2) { --i: 1; }
.partners > li:nth-child(3), .pub-grid > li:nth-child(3) { --i: 2; }
.partners > li:nth-child(4), .pub-grid > li:nth-child(4) { --i: 3; }
.about { max-width: 62rem; margin-inline: auto; text-align: center; }
.about p { text-align: left; }
@media (min-width: 700px) { .about p { text-align: justify; hyphens: auto; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.75rem 1.9rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--c-mint);
  color: var(--c-forest);
  font: 500 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease-out); }
.btn:hover { background: var(--c-mint-hover); color: var(--c-forest); }
.btn:hover svg { transform: translateX(3px); }
.btn--dark { background: var(--c-forest); color: var(--c-white); }
.btn--dark:hover { background: var(--c-green-text); color: var(--c-white); }
.btn--small { min-height: 44px; padding: 0.55rem 1.4rem; font-size: 0.9375rem; }

/* ==========================================================================
   Sections / inner pages
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--c-tint); }
.page-head { padding-top: clamp(2.25rem, 1.75rem + 3vw, 4.5rem); }
.page-head__title { font-size: var(--fs-700); font-weight: 500; line-height: 1.15; color: var(--c-ink); }
.page-head__lead { max-width: 46rem; margin: 1.25rem 0 0; font-size: var(--fs-500); line-height: 1.5; }
.page-head + .section { padding-top: clamp(1.75rem, 1.25rem + 2vw, 3rem); }

.prose { max-width: 52rem; }
.prose--wide { max-width: none; }
.prose h2 { font-size: var(--fs-600); font-weight: 600; margin: 2.75rem 0 1rem; }
.prose h3 { font-size: var(--fs-500); margin: 2rem 0 0.75rem; }
.prose h4 { font: 700 var(--fs-400)/1.4 var(--font); margin: 1.5rem 0 0.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--c-green); }

.figure { margin: 2rem 0; }
.figure img { width: 100%; border: 1px solid var(--c-line); }
.figure figcaption { margin-top: 0.6rem; font-size: var(--fs-200); color: var(--c-text-muted); }

/* Operational objectives */
.objectives { list-style: none; display: grid; gap: 1.5rem; margin: 1.5rem 0 0; padding: 0; counter-reset: obj; }
.objective {
  position: relative;
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--c-green);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
}
.objective__label { display: block; margin-bottom: 0.35rem; font-size: var(--fs-200); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-green-text); }
.objective h3 { margin: 0 0 0.85rem; font-size: 1.125rem; }
.objective ul { padding-left: 1.25rem; }
.objective li { margin-bottom: 0.45em; }
.objective li::marker { color: var(--c-green); }

/* Consortium page: logo left, text right */
.member { display: grid; gap: 1.25rem 3rem; padding-block: 2.5rem; border-bottom: 1px solid var(--c-line); }
.member:first-child { padding-top: 0; }
.member:last-child { border-bottom: 0; }
.member__logo { display: grid; justify-items: center; align-content: start; gap: 0.75rem; text-align: center; font-size: var(--fs-200); }
.member__logo img { max-height: 120px; width: auto; max-width: 240px; object-fit: contain; }
.member h2 { font-size: var(--fs-500); margin: 0 0 0.75rem; }
.member__country { display: block; margin-top: 0.2rem; font-size: var(--fs-200); font-weight: 500; color: var(--c-text-muted); }
@media (min-width: 800px) { .member { grid-template-columns: 240px 1fr; } }

/* Publications: one per row, large readable cover (click = full size in the lightbox) */
.pub-grid { list-style: none; display: grid; gap: 0; padding: 0; max-width: 62rem; }
.pub-grid > li { padding-block: 2.5rem; border-bottom: 1px solid var(--c-line); }
.pub-grid > li:first-child { padding-top: 0; }
.pub-grid > li:last-child { border-bottom: 0; }
.pub { display: grid; gap: 1.25rem; align-items: start; }
.pub__cover {
  position: relative; display: block; width: min(100%, 340px);
  border: 1px solid var(--c-line); background: var(--c-white);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.45);
  cursor: zoom-in; transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.pub__cover:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -18px rgba(0, 0, 0, 0.5); }
.pub__cover img { width: 100%; }
.pub__cover::after {
  content: "Enlarge";
  position: absolute; right: 0.6rem; bottom: 0.6rem;
  padding: 0.25rem 0.7rem; border-radius: var(--radius-pill);
  background: rgba(25, 46, 4, 0.82); color: var(--c-white);
  font: 600 0.8125rem/1.2 var(--font);
}
.pub__meta { margin: 0 0 0.5rem; font-size: var(--fs-200); color: var(--c-text-muted); }
.pub h2 { font-size: var(--fs-500); line-height: 1.3; margin-bottom: 0.75rem; }
.pub__desc { margin: 0; }
.pub__actions { margin: 1.25rem 0 0; }
@media (min-width: 700px) {
  .pub { grid-template-columns: 340px 1fr; gap: 0 2.5rem; }
  .pub__cover { grid-row: span 5; }
  .pub__meta { margin-top: 0.5rem; }
}

/* Media library entries */
.media-list { list-style: none; display: grid; gap: 0; padding: 0; }
.media-item { display: grid; gap: 1.25rem 3rem; padding-block: 2.5rem; border-bottom: 1px solid var(--c-line); }
.media-item:first-child { padding-top: 0; }
.media-item:last-child { border-bottom: 0; }
.media-item__label {
  display: inline-block;
  margin-right: 0.6rem;
  padding: 0.1rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--c-tint);
  color: var(--c-forest);
  font-size: 0.8125rem;
  font-weight: 600;
}
.media-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0 0 0.6rem; font-size: var(--fs-200); color: var(--c-text-muted); }
.media-item h2 { font-size: var(--fs-500); margin: 0 0 0.85rem; }
.media-item__aside img { width: 100%; border: 1px solid var(--c-line); }
.media-item .downloads { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
@media (min-width: 900px) {
  .media-item--aside { grid-template-columns: minmax(0, 1fr) 280px; }
}
.dl {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--c-mint); color: var(--c-forest);
  font-size: 0.9375rem; font-weight: 600; text-decoration: none;
}
.dl:hover { background: var(--c-mint-hover); color: var(--c-forest); }
.dl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl small { font-weight: 400; font-size: 0.8125rem; }
.dl--outline { background: var(--c-white); box-shadow: inset 0 0 0 1px #C9D6BF; }
.dl--outline:hover { background: var(--c-tint); }

/* YouTube facade: nothing is loaded from YouTube until the visitor clicks */
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0 0; overflow: hidden; border-radius: var(--radius-m); background: #111; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; inset: 0;
  display: grid; place-items: center; align-content: center; gap: 0.75rem;
  width: 100%; padding: 1rem;
  border: 0; background: none; color: var(--c-white); cursor: pointer;
  font: 600 1rem/1.3 var(--font); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.video__play img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
.video__play svg { width: 72px; height: 72px; transition: transform 0.25s var(--ease-out); }
.video__play:hover svg { transform: scale(1.08); }
.video__note { margin: 0.6rem 0 0; font-size: var(--fs-200); color: var(--c-text-muted); }

/* Gallery: thumbnails open in the lightbox */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; margin: 1.25rem 0 0; padding: 0; }
.gallery a { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-s); background: var(--c-tint); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out); }
.gallery a:hover img { transform: scale(1.04); }

/* Contact */
.contact { display: grid; gap: 3rem; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 1.75rem; }
.contact-list li { display: grid; grid-template-columns: 34px 1fr; gap: 1.1rem; align-items: start; }
.contact-list svg { width: 30px; height: 30px; margin-top: 0.15rem; fill: none; stroke: var(--c-forest); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.contact-list h2 { font: 500 1.25rem/1.4 var(--font); color: var(--c-ink); margin: 0; }
.contact-list p { margin: 0.15rem 0 0; font-size: var(--fs-300); }
.contact-list a { color: var(--c-text); }
.contact-list a:hover { color: var(--c-green-text); }
.contact__photo { margin: 0; }
.contact__photo img { width: 100%; }
.contact__photo figcaption { margin-top: 0.75rem; text-align: center; font-size: var(--fs-200); color: var(--c-text-muted); }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.5fr; gap: 4rem; } }

/* Social links (News & Events, Contact) */
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 0; }
.social a {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 44px; padding: 0.45rem 1rem;
  border: 1px solid var(--c-line); border-radius: var(--radius-pill);
  color: var(--c-ink); font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.social a:hover { border-color: var(--c-green); background: var(--c-tint); color: var(--c-ink); }
.social svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.follow { margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-m); background: var(--c-tint); }
.follow h2 { font-size: var(--fs-500); margin: 0 0 0.5rem; }
.follow p { margin: 0 0 1.25rem; }

/* News, events (News & Events) */
.news-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; margin: 0; font-size: var(--fs-200); color: var(--c-text-muted); }
.news-item__type {
  display: inline-block;
  padding: 0.1rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--c-tint);
  color: var(--c-forest);
}
.news-item__type--event { background: #E6F3FA; color: #1D4A63; }
.news-item__type--conference { background: #FDF0E4; color: #6B3A0E; }
.news-item__type--media { background: #FBE9EE; color: #6E1F36; }
.news-item__type--publication { background: #F4F0E6; color: #4D3F1C; }
.news-item__type--article { background: #EFEAF6; color: #3E2F5E; }
.news-item__place::before { content: "· "; }

/* Year groups, featured newest entry, upcoming events (News & Events) */
.news-year + .news-year { margin-top: clamp(2.5rem, 5vw, 4rem); }
.news-year__title {
  display: flex; align-items: center; gap: 1rem;
  margin: 0 0 1.25rem;
  font-size: var(--fs-600); font-weight: 600; color: var(--c-forest);
}
.news-year__title::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
@media (min-width: 700px) { .post-grid > .is-featured { grid-column: 1 / -1; } }
@media (min-width: 900px) {
  .is-featured .post-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .is-featured .post-card__media { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--c-line); }
  .is-featured .post-card__body { justify-content: center; padding: 2rem 2.25rem; gap: 0.8rem; }
  .is-featured .post-card__title { font-size: var(--fs-600); }
  .is-featured .post-card__excerpt { font-size: var(--fs-400); }
}
.post-card--text { border-top: 4px solid var(--c-green); }
.news-upcoming {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-m);
  background: var(--c-green);
}
.news-upcoming__title { margin: 0 0 1.25rem; font-size: var(--fs-600); color: var(--c-white); }
.news-upcoming .post-card { border-color: transparent; }

.news-item__body { max-width: 66ch; padding-top: 0.5rem; font-size: var(--fs-300); }
.news-item__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0.25rem 0 0; }
.news-item__links a { font-weight: 600; }
.news-item__toggle {
  justify-self: start;
  padding: 0.4rem 0;
  border: 0;
  background: none;
  color: var(--c-green-text);
  font: 600 0.9375rem/1.4 var(--font);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-align: left;
}
.news-item__toggle:hover { color: var(--c-forest); }
.news-empty {
  padding: 1.5rem 1.75rem;
  border: 1px dashed #C9D6BF;
  border-radius: var(--radius-m);
  background: #FAFCF8;
  color: var(--c-text-muted);
}
.news-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.news-filter button {
  min-height: 40px;
  padding: 0.4rem 1.1rem;
  border: 1px solid #C9D6BF;
  border-radius: var(--radius-pill);
  background: var(--c-white);
  color: var(--c-forest);
  font: 600 0.9375rem/1 var(--font);
  cursor: pointer;
}
.news-filter button:hover { border-color: var(--c-forest); }
.news-filter button[aria-pressed="true"] { background: var(--c-forest); border-color: var(--c-forest); color: var(--c-white); }

/* Cards (list of entries) */
.post-grid { list-style: none; display: grid; gap: 1.75rem; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  background: var(--c-white);
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.post-card--link:hover { border-color: #C9D6BF; box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.35); transform: translateY(-2px); }
.post-card__media { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--c-tint); border-bottom: 1px solid var(--c-line); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.post-card--link:hover .post-card__media img { transform: scale(1.03); }
.post-card__body { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; padding: 1.25rem 1.4rem 1.4rem; }
.post-card__title { font-size: 1.125rem; line-height: 1.3; }
.post-card__title a { color: var(--c-ink); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card__title a:hover { color: var(--c-ink); }
.post-card__title a:focus-visible { outline: none; }
.post-card--link:focus-within { outline: 3px solid var(--c-green-text); outline-offset: 2px; }
.post-card__excerpt { margin: 0; font-size: var(--fs-300); }
.post-card__more { margin-top: auto; padding-top: 0.5rem; font-weight: 600; color: var(--c-green-text); }
.post-card__more::after { content: " →"; }
.post-card .news-item__links, .post-card .news-item__toggle { position: relative; z-index: 2; }

/* Single entry page (news/<slug>.html) */
.breadcrumb { margin-bottom: 1.5rem; font-size: var(--fs-200); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--c-text-muted); }
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb [aria-current] { color: var(--c-ink); }
.post-head .news-item__meta { margin-bottom: 1rem; }
.post-head .page-head__title { max-width: 24em; }
.post-lead { max-width: 46rem; margin: 1.5rem 0 0; font-size: var(--fs-500); line-height: 1.5; color: var(--c-ink); }
.post-layout { display: grid; gap: 2.5rem; }
.post-main { min-width: 0; }
.post-figure { margin: 0 0 2.5rem; }
.post-figure a { display: block; overflow: hidden; border-radius: var(--radius-m); cursor: zoom-in; }
.post-figure img { width: 100%; }
.post-figure figcaption { margin-top: 0.75rem; font-size: var(--fs-200); color: var(--c-text-muted); }
.post-body.prose { max-width: 44rem; }
.post-aside { display: grid; gap: 1.75rem; align-content: start; }
.post-aside h2 { font-size: 1rem; margin: 0 0 0.75rem; }
.share { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.share a, .share button {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 40px; padding: 0.4rem 0.9rem;
  border: 1px solid #C9D6BF; border-radius: var(--radius-pill);
  background: var(--c-white); color: var(--c-forest);
  font: 600 0.875rem/1 var(--font); text-decoration: none; cursor: pointer;
}
.share a:hover, .share button:hover { border-color: var(--c-forest); color: var(--c-forest); }
.share svg { width: 18px; height: 18px; fill: currentColor; }
.post-funding { padding: 1.25rem; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: #FAFCF8; font-size: 0.8125rem; line-height: 1.5; }
.post-funding img { width: 200px; margin-bottom: 0.9rem; }
.post-funding p { margin: 0; }
.post-back { margin-top: 2.5rem; }
.post-back a { font-weight: 600; }
@media (min-width: 1000px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 4rem; }
  .post-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* Lightbox (assets/js/lightbox.js) */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15, 18, 14, 0.95); color: var(--c-white); }
.lightbox::backdrop { background: rgba(15, 18, 14, 0.95); }
.lightbox__stage { display: grid; grid-template-rows: 1fr auto; height: 100%; padding: 4rem 1rem 1rem; }
.lightbox__img { place-self: center; max-width: 100%; max-height: calc(100vh - 9rem); width: auto; height: auto; object-fit: contain; }
.lightbox__caption { margin: 0.75rem auto 0; max-width: 60rem; text-align: center; font-size: 0.9375rem; color: #DDD; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: var(--c-white); cursor: pointer;
}
.lightbox__btn[hidden] { display: none; }
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox__btn:focus-visible { outline-color: var(--c-white); }
.lightbox__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 0.75rem; right: 0.75rem; }
.lightbox__prev { left: 0.75rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 0.75rem; top: 50%; translate: 0 -50%; }
.lightbox__open { position: absolute; top: 1.4rem; left: 1rem; color: #DDD; font-size: 0.875rem; }
.lightbox__open:hover { color: var(--c-white); }
body.lightbox-open { overflow: hidden; }

.section-title { font-size: var(--fs-600); font-weight: 600; margin: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; }

/* Accessibility statement */
.statement dl { display: grid; gap: 0.25rem 1.5rem; margin: 0 0 1.5rem; }
.statement dt { font-weight: 700; color: var(--c-ink); }
.statement dd { margin: 0 0 0.75rem; }
@media (min-width: 768px) { .statement dl { grid-template-columns: max-content 1fr; } .statement dd { margin: 0; } }

/* 404 */
.not-found { padding-block: clamp(4rem, 10vw, 8rem); }
.not-found__code { font: 700 clamp(4rem, 3rem + 6vw, 8rem)/1 var(--font); color: var(--c-green); margin: 0 0 1rem; }

/* ==========================================================================
   Footer: EU emblem, disclaimer, social icons (dark green as on the old site)
   ========================================================================== */
.site-footer {
  margin-top: clamp(56px, 8vw, 110px);
  background: var(--c-forest);
  color: var(--c-white);
  font-size: var(--fs-300);
}
.site-footer a { color: var(--c-white); }
.site-footer a:hover { color: var(--c-mint); }
.site-footer :focus-visible { outline-color: var(--c-white); }
.footer-main { display: grid; justify-items: center; gap: 1.75rem; padding-block: 3rem 2rem; text-align: center; }
.footer-eu img { width: 300px; max-width: 80vw; }
.footer-disclaimer { max-width: 62rem; margin: 0; text-align: left; line-height: 1.6; }
@media (min-width: 700px) { .footer-disclaimer { text-align: center; } }
.footer-social { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; padding: 0; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: background-color 0.2s; }
.footer-social a:hover { background: rgba(255, 255, 255, 0.12); color: var(--c-white); }
.footer-social svg { width: 24px; height: 24px; fill: currentColor; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.5rem;
  padding-block: 1.1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: var(--fs-200);
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }

/* ==========================================================================
   Scroll reveal (restrained, one style site-wide). Content stays visible
   without JS and with reduced motion.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Print */
@media print {
  .site-header, .nav-toggle, .video__play, .footer-social { display: none !important; }
  .claim { background: none; color: #000; border: 2px solid #000; }
  .claim__title { color: #000; }
  .site-footer { background: none; color: #000; }
  .site-footer a { color: #000; }
  .footer-eu { display: none; }
}
