/* ==========================================================================
   GI-mine — gimine.gig.eu
   Main stylesheet. Mobile-first. No build step.

   Colours and layout follow the previous version of the site (Brizy) and the
   GI-mine logo; Montserrat as before. Edit the tokens below and the whole
   site follows.
   ========================================================================== */

/* ---------- Font (self-hosted variable font, OFL licence, see assets/fonts/README.md) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand colours (previous site + logo) */
  --c-forest: #192E04;      /* footer, headings accents, dark text on light green (15:1 on white) */
  --c-green: #44824E;       /* hero box, links on hover (4.6:1 with white) */
  --c-green-text: #36703F;  /* green usable for small text (6:1 on white) */
  --c-mint: #AFE99A;        /* buttons (old site), decorative accents */
  --c-mint-light: #EEF8E9;  /* tinted backgrounds */
  --c-logo: #103233;        /* GI-mine logo gear — links */
  --c-ink: #000000;         /* headings (old site) */
  --c-text: #333333;        /* body text (12.6:1 on white) */
  --c-text-muted: #5F6460;  /* secondary text (6:1 on white) */
  --c-line: #E3E6E1;        /* hairlines */
  --c-white: #FFFFFF;
  --c-fb: #1877F2;          /* Facebook brand blue — icon only */

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

  --fs-300: 0.875rem;
  --fs-400: 1rem;
  --fs-500: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-600: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  --fs-700: clamp(1.875rem, 1.4rem + 1.8vw, 2.5rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(3rem, 2rem + 4vw, 6rem);
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 40px;
  --header-h: 72px;

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

/* ---------- 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, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--c-ink);
  margin: 0;
  font-weight: 500;
  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-logo); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-green-text); text-decoration-thickness: 2px; }
strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--c-green);
  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);
}

/* ==========================================================================
   Header
   ========================================================================== */
.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: 56px; width: auto; }
@media (min-width: 1000px) { .brand img { height: 78px; } }

.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 0.9375rem/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);
}

body.nav-open { overflow: hidden; }

/* Desktop navigation */
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav {
    position: static;
    padding: 0;
    overflow: visible;
    background: none;
    border: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
    flex-basis: auto;
  }
  .nav-list { display: flex; gap: clamp(1rem, 1.8vw, 2rem); }
  .nav-list a {
    position: relative;
    padding: 0.5rem 0;
    border: 0;
    font: 500 1rem/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;
    border-radius: 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: full-width photo, green rounded box with the project title
   overlapping its lower edge; RFCS / EU marks and project data next to it.
   ========================================================================== */
.hero { position: relative; }
.hero__img {
  width: 100%;
  height: clamp(300px, 52vw, 760px);
  object-fit: cover;
  object-position: 50% 60%;
}
.hero__band { position: relative; }
.hero__grid { display: grid; gap: 2rem; }
.hero__box {
  margin-top: -4.5rem;
  position: relative;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 0;
  background: var(--c-green);
  color: var(--c-white);
}
.hero__title {
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--c-white);
}
.hero__title strong { font-weight: 600; }
.hero__marks { display: grid; justify-items: center; gap: 1.5rem; text-align: center; }
.hero__marks .funding-logos { display: grid; justify-items: center; gap: 1.25rem; }
.hero__marks .funding-logos img[src*="rfcs"] { width: 170px; }
.hero__marks .funding-logos img[src*="cofunded"] { width: 260px; }
.project-data { display: grid; gap: 0.15rem; margin: 0; font-size: var(--fs-300); line-height: 1.5; color: var(--c-forest); }
.project-data div { display: block; }
.project-data dt { display: inline; font-weight: 700; }
.project-data dd { display: inline; margin: 0 0 0 0.25rem; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: start; }
  .hero__marks { order: -1; padding-top: 2rem; }
  .hero__box { margin-top: -9rem; }
}

/* ==========================================================================
   Buttons, section labels
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.75rem clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border: 0;
  border-radius: 999px;
  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, color 0.2s, box-shadow 0.2s;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; transition: transform 0.3s var(--ease-out); }
.btn:hover { background: #9CDD83; color: var(--c-forest); text-decoration: none; box-shadow: 0 8px 20px -12px rgba(25, 46, 4, 0.6); }
.btn:hover svg { transform: translateX(3px); }
.btn--fb svg { width: 22px; height: 22px; }

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

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.center { text-align: center; }

/* Video (homepage, Dissemination) */
.video { position: relative; overflow: hidden; border-radius: var(--radius-m); background: #E9ECE6; aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.video__caption { margin: 0.75rem 0 0; font-size: var(--fs-300); color: var(--c-text-muted); text-align: center; }

/* Consortium logos row */
.partner-logos {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  align-items: center;
  justify-items: center;
}
.partner-logos li { min-width: 0; max-width: 100%; }
.partner-logos a { display: grid; place-items: center; max-width: 100%; height: 100px; padding: 0.5rem; border-radius: var(--radius-s); }
.partner-logos img { max-height: 84px; width: auto; max-width: min(180px, 100%); object-fit: contain; filter: saturate(0.95); transition: transform 0.3s var(--ease-out); }
.partner-logos a:hover img { transform: scale(1.04); }
@media (min-width: 700px) { .partner-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .partner-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* About project (homepage) */
.about { max-width: 52rem; margin-inline: auto; text-align: center; }
.about__lead { font-size: var(--fs-600); font-weight: 400; line-height: 1.45; color: var(--c-forest); margin: 0 0 1.5rem; }
.about p:not(.about__lead) { font-size: 0.9375rem; }
.about .btn { margin-top: 1rem; }

/* EU funding band (homepage, Objectives) */
.funding-band { background: var(--c-mint-light); }
.funding { display: grid; gap: 1.5rem; align-items: center; justify-items: center; text-align: center; padding-block: 2.25rem; }
.funding .funding-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 2.5rem; }
.funding .funding-logos img[src*="cofunded"] { width: 260px; }
.funding .funding-logos img[src*="rfcs"] { width: 130px; }
.funding p { margin: 0; max-width: 46rem; font-size: 0.9375rem; color: var(--c-forest); }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-head { padding-top: clamp(2rem, 1.5rem + 3vw, 4.5rem); }
.page-head__title {
  font-size: var(--fs-700);
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-ink);
}
.page-head__lead { margin: 1rem 0 0; max-width: 46rem; font-size: var(--fs-500); color: var(--c-text-muted); }
.page-head + .section { padding-top: clamp(1.75rem, 1.25rem + 2vw, 3rem); }

.prose { max-width: 60rem; }
.prose p { font-size: 0.9375rem; line-height: 1.75; }
.prose h2 { font-size: var(--fs-600); margin: 2.5rem 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; font-size: 0.9375rem; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--c-green); }

/* Project structure: diagrams with captions and text descriptions */
.diagrams { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.diagram { margin: 0; }
.diagram a { display: block; border: 1px solid var(--c-line); border-radius: var(--radius-m); overflow: hidden; background: var(--c-white); cursor: zoom-in; }
.diagram img { width: 100%; }
.diagram figcaption { margin-top: 0.9rem; font-size: 1.0625rem; font-weight: 500; text-align: center; color: var(--c-ink); }
.diagram details { max-width: 60rem; margin: 0.75rem auto 0; font-size: 0.9375rem; }
.diagram summary { cursor: pointer; color: var(--c-logo); font-weight: 600; text-align: center; }
.diagram details[open] summary { margin-bottom: 0.75rem; }
.diagram details ul { padding-left: 1.25rem; }
.diagram details li { margin-bottom: 0.3em; }
@media (min-width: 1000px) { .diagrams--two { grid-template-columns: 1fr 1fr; } }

/* Consortium */
.partners { list-style: none; display: grid; gap: 0; }
.partner { display: grid; gap: 1.25rem; padding-block: 2rem; border-bottom: 1px solid var(--c-line); }
.partner:first-child { padding-top: 0; }
.partner__logo { display: grid; place-items: center; width: 200px; height: 130px; }
.partner__logo img { max-height: 120px; max-width: 200px; width: auto; object-fit: contain; }
.partner h2 { font-size: 1.0625rem; font-weight: 700; line-height: 1.4; margin-bottom: 0.5rem; }
.partner h2 a { font-weight: 500; }
.partner p { margin: 0; font-size: 0.9375rem; }
@media (min-width: 760px) {
  .partner { grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: center; }
}

/* 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.1rem; 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: 0.9375rem; }
.contact-list a { color: var(--c-text); text-decoration: none; border-bottom: 1px solid var(--c-line); }
.contact-list a:hover { color: var(--c-green-text); border-bottom-color: currentColor; }
.contact__photo { margin: 0; }
.contact__photo img { border-radius: var(--radius-m); }
.contact__photo figcaption { margin-top: 0.75rem; text-align: center; font-size: var(--fs-300); color: var(--c-text-muted); }
@media (min-width: 900px) {
  .contact { grid-template-columns: 2fr 3fr; gap: 4rem; }
}

/* Social links (contact, footer) */
.social { list-style: none; display: flex; gap: 0.75rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-s); color: inherit; }
.social svg { width: 26px; height: 26px; fill: currentColor; }
.contact .social { margin-top: 2rem; padding-left: calc(34px + 1.1rem); }
.contact .social a { color: var(--c-forest); border: 1px solid var(--c-line); }
.contact .social a:hover { border-color: var(--c-forest); }

/* ==========================================================================
   News & Events (cards from data/news.json, assets/js/news.js)
   ========================================================================== */
.fb-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-m);
  background: var(--c-mint-light);
}
.fb-cta p { margin: 0; max-width: 40rem; color: var(--c-forest); }
.fb-cta strong { display: block; font-size: 1.125rem; font-weight: 600; }

.news-grid { list-style: none; display: grid; gap: 1.75rem; }
@media (min-width: 700px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.news-card {
  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, transform 0.25s var(--ease-out);
}
.news-card:hover { box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.35); }
.news-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-mint-light); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__media a { display: block; height: 100%; cursor: zoom-in; }
.news-card__body { display: flex; flex-direction: column; gap: 0.75rem; flex: 1; padding: 1.25rem 1.4rem 1.4rem; }
.news-card__meta { display: flex; flex-direction: column; margin: 0; font-size: var(--fs-300); line-height: 1.4; }
.news-card__place { font-weight: 700; color: var(--c-ink); }
.news-card__date { color: var(--c-text-muted); }
.news-card__title { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.news-card__text { margin: 0; font-size: 0.9375rem; line-height: 1.6; }
.news-card__text p { margin: 0 0 0.6em; }
.news-card__text p:last-child { margin-bottom: 0; }
.news-card__fb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--c-logo);
}
.news-card__fb svg { width: 20px; height: 20px; fill: var(--c-fb); flex-shrink: 0; }
.news-card .gallery { margin-top: 0.25rem; }
.news-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: clamp(2rem, 4vw, 2.75rem) 0 0; }
.news-status {
  padding: 1.5rem 1.75rem;
  border: 1px dashed #C9CFC6;
  border-radius: var(--radius-m);
  background: #FAFBF8;
  color: var(--c-text-muted);
}

/* Gallery: thumbnails open in the lightbox */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 0.5rem; margin: 0; padding: 0; }
.gallery a { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-s); background: var(--c-mint-light); 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.05); }

/* ==========================================================================
   Dissemination timeline (data/dissemination.json, assets/js/timeline.js)
   Mobile: one column with the line on the left. Desktop: alternating sides
   with the date next to the central line, as on the previous site.
   ========================================================================== */
.timeline { list-style: none; position: relative; display: grid; gap: 2rem; padding-left: 2.25rem; }
.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem; bottom: 0.5rem; left: 0.6rem;
  width: 2px;
  background: var(--c-line);
}
.tl-item { position: relative; display: grid; gap: 0.6rem; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -2.05rem; top: 0.35rem;
  width: 1.1rem; height: 1.1rem;
  border: 3px solid var(--c-green);
  border-radius: 50%;
  background: var(--c-white);
}
.tl-date { margin: 0; font-size: var(--fs-300); font-weight: 700; color: var(--c-forest); }
.tl-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  background: var(--c-white);
  box-shadow: 0 6px 22px -18px rgba(0, 0, 0, 0.45);
}
.tl-facts { list-style: none; display: grid; gap: 0.3rem; font-size: var(--fs-300); }
.tl-facts li { display: grid; grid-template-columns: 20px 1fr; gap: 0.5rem; align-items: start; }
.tl-facts svg { width: 18px; height: 18px; margin-top: 0.1rem; fill: none; stroke: var(--c-green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tl-facts .tl-type { color: var(--c-text-muted); }
.tl-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.tl-text { margin: 0; font-size: 0.9375rem; }
.tl-media { margin: 0; }
.tl-media figcaption { margin-top: 0.3rem; font-size: 0.75rem; color: var(--c-text-muted); }
.tl-media img { width: 100%; border-radius: var(--radius-s); aspect-ratio: 3 / 2; object-fit: cover; background: var(--c-mint-light); }
.tl-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; font-size: var(--fs-300); }
.tl-links a { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; }
.tl-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl-links .is-fb svg { fill: var(--c-fb); stroke: none; }
@media (min-width: 600px) {
  .tl-card--media { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
  .tl-card--media .tl-media { grid-column: 2; grid-row: 1 / span 4; }
}
@media (min-width: 1000px) {
  .timeline { padding-left: 0; gap: 0; }
  .timeline::before { left: 50%; translate: -1px 0; }
  .tl-item { grid-template-columns: 1fr 1fr; gap: 0; padding-block: 1.25rem; }
  .tl-item::before { left: 50%; top: 2rem; translate: -50% 0; }
  .tl-date { grid-row: 1; padding-top: 1.75rem; }
  .tl-card { grid-row: 1; }
  .tl-item:nth-child(odd) .tl-date { grid-column: 1; text-align: right; padding-right: 2.75rem; }
  .tl-item:nth-child(odd) .tl-card { grid-column: 2; margin-left: 2.75rem; }
  .tl-item:nth-child(even) .tl-date { grid-column: 2; padding-left: 2.75rem; }
  .tl-item:nth-child(even) .tl-card { grid-column: 1; margin-right: 2.75rem; }
}

/* Lightbox (assets/js/lightbox.js) */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 16, 10, 0.95); color: var(--c-white); }
.lightbox::backdrop { background: rgba(12, 16, 10, 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; background: var(--c-white); }
.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%; }
body.lightbox-open { overflow: hidden; }

/* 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: 600 clamp(4rem, 3rem + 6vw, 8rem)/1 var(--font); color: var(--c-green); margin: 0 0 1rem; }

/* ==========================================================================
   Footer: dark green, EU emblem, disclaimer (as on the previous site)
   ========================================================================== */
.site-footer {
  margin-top: clamp(48px, 7vw, 100px);
  background: var(--c-forest);
  color: var(--c-white);
  text-align: center;
}
.site-footer a { color: var(--c-white); }
.site-footer a:hover { color: var(--c-mint); }
.site-footer :focus-visible { outline-color: var(--c-mint); }
.footer-eu { display: grid; justify-items: center; gap: 1.25rem; padding-block: 3rem 2rem; }
.footer-eu img { width: 260px; max-width: 75vw; }
.footer-eu__grant { margin: 0; font-size: 0.875rem; }
.footer-eu__disclaimer { margin: 0; max-width: 62rem; font-size: 0.8125rem; line-height: 1.6; color: rgba(255, 255, 255, 0.88); }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; }
.footer-nav a { display: inline-block; padding: 0.3rem 0; font-size: var(--fs-300); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom {
  display: grid;
  gap: 0.25rem 1rem;
  justify-items: center;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8125rem;
}
.footer-bottom p { margin: 0; color: rgba(255, 255, 255, 0.88); }
.footer-bottom__copy { margin-bottom: 0.75rem; font-size: 0.9375rem; }
.footer-bottom .social { margin-top: 0.75rem; }
.footer-bottom__copy p { color: var(--c-white); }
@media (min-width: 800px) {
  .footer-bottom { grid-template-columns: 1fr auto; text-align: left; justify-items: start; align-items: center; }
  .footer-bottom .social { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
}

/* ==========================================================================
   Scroll reveal (restrained). 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);
  }
  /* stagger siblings with :nth-child (no inline style="--i" – the CSP forbids inline styles) */
  .js .reveal:nth-child(2) { transition-delay: 90ms; }
  .js .reveal:nth-child(3) { transition-delay: 180ms; }
  .js .reveal:nth-child(4) { transition-delay: 270ms; }
  .js .reveal:nth-child(n+5) { transition-delay: 360ms; }
  .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, .fb-cta { display: none !important; }
  .hero__box { background: none; color: #000; margin-top: 1rem; }
  .hero__title { color: #000; }
  .site-footer { background: none; color: #000; }
  .site-footer a { color: #000; }
  .footer-eu img { filter: invert(1); }
}
