/* ==========================================================================
   SATECON — Smart, innovative and sustainable agriculture
   Design system stylesheet
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Base / reset
   3.  Layout primitives
   4.  Typography helpers
   5.  Buttons
   6.  Site navigation
   7.  Hero + live sensor card
   8.  Stat band
   9.  Eyebrow sections + generic cards
   10. Sectors grid
   11. Work-package cards + detail pages
   12. News cards
   13. Partner cards
   14. About page blocks
   15. Gallery + lightbox
   16. Data portal
   17. Site footer + EU strip
   18. Keyframes
   19. Responsive
   ========================================================================== */

/* ============================ 1. Design tokens ============================ */
:root {
  /* Brand palette (Interreg navy · SATECON teal · EU yellow) */
  --navy:        #0E2655;
  --navy-grid:   #1d3a6e;   /* hero dot-grid dots */
  --royal:       #15357E;
  --teal:        #15A99B;
  --teal-bright: #1FBFAF;
  --teal-deep:   #0E8C80;
  --yellow:      #FFCC00;
  --amber:       #E6A700;

  /* Ink & surfaces */
  --ink:      #0f2230;
  --heading:  #16243a;
  --body:     #46566e;
  --muted:    #5A6B82;
  --faint:    #8794a8;
  --on-navy:        #b9c6df;
  --on-navy-soft:   #9fb0cf;
  --on-navy-faint:  #6f83a8;

  --bg:       #F4F8F8;
  --surface:  #ffffff;
  --tint:     #F7FAFA;
  --line:     #dfeae8;
  --line-2:   #e4eeec;
  --line-3:   #eef3f2;

  /* Country accent chips */
  --hr-bg: #e7f6f3; --hr-fg: #0E8C80;
  --ba-bg: #eaf0fb; --ba-fg: #15357E;
  --me-bg: #fff6d6; --me-fg: #9a7b00;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Public Sans', system-ui, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(14,38,85,.06);
  --shadow-pop:  0 16px 40px rgba(14,38,85,.14);
  --shadow-hero: 0 28px 60px rgba(0,0,0,.32);

  /* Rhythm */
  --container: 1200px;
  --container-narrow: 1100px;
  --container-read: 1000px;
  --gutter: 44px;
  --nav-h: 64px;
  --section-y: 84px;
  --hero-y: 72px;
}

/* ============================ 2. Base / reset ============================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 { margin: 0; }

p { margin: 0; }

/* ========================== 3. Layout primitives ========================= */
.container        { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow{ max-width: var(--container-narrow); margin: 0 auto; padding-inline: var(--gutter); }
.container--read  { max-width: var(--container-read); margin: 0 auto; padding-inline: var(--gutter); }

.section   { padding-block: var(--section-y); }
.section--tight { padding-block: 56px; }

.band--surface { background: var(--surface); border-block: 1px solid var(--line); }
.band--tint    { background: var(--tint); }
.band--navy {
  background-color: var(--navy);
  background-image: radial-gradient(var(--navy-grid) 1.1px, transparent 1.1px);
  background-size: 22px 22px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.stack  { display: flex; flex-direction: column; }

/* ========================== 4. Typography helpers ======================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow--on-navy { color: var(--teal-bright); }

.mono { font-family: var(--font-mono); }
.mono-note { font-family: var(--font-mono); font-size: 13px; color: var(--teal); }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--navy);
}
.h-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -.02em;
  color: var(--navy);
  line-height: 1.12;
}
.lead { font-size: 18px; line-height: 1.6; color: var(--body); }
.prose { font-size: 16px; line-height: 1.7; color: var(--body); }
.prose + .prose { margin-top: 16px; }

.text-link {
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 3px;
}

/* ============================== 5. Buttons =============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-deep); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: #14306a; }
.btn--ghost { border-color: #cdd6e3; color: var(--navy); background: transparent; }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn--outline-light { border-color: rgba(255,255,255,.28); color: #fff; background: transparent; }
.btn--outline-light:hover { border-color: rgba(255,255,255,.6); }

/* ========================== 6. Site navigation =========================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
/* dc-import wraps the nav in a .sc-host block sized to the nav; that wrapper
   would otherwise bound position:sticky and let the nav scroll away. Make the
   wrapper itself sticky so the nav stays fixed across the whole page. */
.page > .sc-host:has(> .site-nav) { position: sticky; top: 0; z-index: 50; }
.site-nav__brand { display: inline-flex; align-items: center; text-decoration: none; }
.site-nav__logo { height: 26px; width: auto; }

.nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 500; }

/* Mobile menu toggle — hidden on desktop, revealed ≤720px (pure CSS, no JS) */
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }
.nav__link { color: #33485a; text-decoration: none; transition: color .15s ease; }
.nav__link:hover { color: var(--teal); }
/* Active link is driven by [data-active] on the nav (set per page) — no JS */
.site-nav[data-active="about"]          .nav__link--about,
.site-nav[data-active="work-packages"]  .nav__link--wp,
.site-nav[data-active="partners"]       .nav__link--partners,
.site-nav[data-active="news"]           .nav__link--news,
.site-nav[data-active="gallery"]        .nav__link--gallery {
  color: var(--navy);
  font-weight: 700;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}

/* Work-packages dropdown */
.wp-menu { position: relative; }
.wp-menu__toggle { display: inline-flex; align-items: center; gap: 5px; }
.wp-menu__caret { font-size: 9px; opacity: .7; }
.wp-menu__drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
  z-index: 60;
}
.wp-menu:hover .wp-menu__drop { display: block; }
.wp-menu__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  padding: 8px;
  min-width: 268px;
}
.wp-menu__item {
  display: flex;
  gap: 9px;
  text-decoration: none;
  color: var(--body);
  font-size: 13.5px;
  padding: 9px 12px;
  border-radius: 7px;
  transition: background .15s ease, color .15s ease;
}
.wp-menu__item:hover { background: var(--hr-bg); color: var(--teal-deep); }
.wp-menu__item--overview { color: var(--navy); font-weight: 700; }
.wp-menu__code { font-family: var(--font-mono); color: var(--teal); font-size: 11.5px; }

.nav__portal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--navy);
  color: #fff;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
}
.nav__portal-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-bright);
  animation: pulse 2s infinite;
}

/* ======================= 7. Hero + live sensor card ====================== */
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding-block: calc(var(--hero-y) - 8px) var(--hero-y);
}
.hero__title { font-size: 54px; line-height: 1.03; color: #fff; margin-bottom: 22px; }
.hero__lead { font-size: 17.5px; line-height: 1.62; color: var(--on-navy); max-width: 48ch; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.live-card { background: #fff; border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-hero); }
.live-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.live-card__id { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.live-card__live { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--teal-deep); font-family: var(--font-mono); }
.live-card__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 15px; }
.metric { background: var(--bg); border-radius: 11px; padding: 14px; }
.metric__label { font-size: 10.5px; color: var(--muted); font-family: var(--font-mono); letter-spacing: .05em; }
.metric__value { font-family: var(--font-display); font-weight: 700; font-size: 27px; color: var(--navy); line-height: 1.1; margin-top: 2px; }
.metric__unit { font-size: 14px; color: var(--teal); }
.live-card__chart { height: 104px; border-radius: 11px; background: var(--navy); overflow: hidden; }
.live-card__chart svg { width: 100%; height: 100%; display: block; }
.live-card__axis { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-bright);
  display: inline-block;
}
.dot--pulse { animation: pulse 1.6s infinite; }

/* ============================= 8. Stat band ============================== */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 30px 16px; text-align: center; border-right: 1px solid var(--line-3); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: 36px; color: var(--navy); }
.stat__num--teal { color: var(--teal); }
.stat__label { font-size: 12.5px; color: var(--muted); letter-spacing: .03em; margin-top: 2px; }

/* ==================== 9. Section header + generic cards ================== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.section-head .eyebrow { margin-bottom: 12px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card--tint { background: var(--tint); border-color: var(--line-2); }

/* ============================ 10. Sectors grid =========================== */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sector {
  background: var(--tint);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform .2s ease, border-color .2s ease;
}
.sector:hover { transform: translateY(-3px); border-color: var(--teal); }
.sector__num { font-family: var(--font-mono); font-size: 13px; color: var(--teal); margin-bottom: 16px; }
.sector__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--heading); margin-bottom: 8px; }
.sector__text { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Compact sector pills (WP3 detail, pilot domains) */
.pill-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.pill-cell { background: var(--tint); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 14px; text-align: center; font-size: 13px; font-weight: 600; color: var(--heading); }

/* ==================== 11. Work-package cards + detail ==================== */
.wp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.wp-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  text-decoration: none;
  transition: border-color .2s ease;
}
.wp-card:hover { border-color: var(--teal); }
.wp-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wp-card__title { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--heading); margin-bottom: 8px; }
.wp-card__text { font-size: 14px; line-height: 1.6; color: var(--muted); }

.wp-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  padding: 4px 9px;
  border-radius: 5px;
}
.wp-badge--teal { background: var(--teal); }
.wp-badge--on-navy { color: var(--navy); background: var(--teal-bright); }
.wp-badge--lg { font-size: 14px; padding: 6px 13px; border-radius: var(--r-sm); }
.wp-tagline { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }

/* Work-packages overview: sticky subnav */
.wp-subnav { position: sticky; top: var(--nav-h); z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.wp-subnav__inner { display: flex; gap: 10px; flex-wrap: wrap; padding: 12px var(--gutter); }
.wp-chip { font-family: var(--font-mono); font-size: 13px; color: var(--body); background: var(--bg); padding: 8px 14px; border-radius: 7px; text-decoration: none; transition: background .15s ease, color .15s ease; }
.wp-chip:hover { background: var(--hr-bg); color: var(--teal-deep); }

/* Section header within WP overview / detail */
.wp-row__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.wp-row__label { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.wp-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }

.wp-aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.wp-aside__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--faint); margin-bottom: 16px; }
.wp-aside__text { font-size: 14.5px; line-height: 1.6; color: var(--heading); font-weight: 500; }
.wp-aside__row { border-top: 1px solid var(--line-3); padding-top: 18px; margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wp-aside__row + .wp-aside__row { margin-top: 0; }
.wp-aside__row-label { font-size: 13.5px; color: var(--muted); max-width: 22ch; }
.wp-aside__num { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--teal); }

/* WP detail page */
.crumb { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; color: var(--on-navy-soft); margin-bottom: 26px; }
.crumb a { color: var(--teal-bright); text-decoration: none; }
.crumb a:hover { color: #fff; }

.activity { display: flex; gap: 14px; align-items: flex-start; }
.activity + .activity { margin-top: 16px; }
.activity__num { font-family: var(--font-mono); font-size: 12px; color: var(--teal); margin-top: 3px; flex: none; }
.activity__text { font-size: 15.5px; line-height: 1.6; color: var(--body); }

.deliverables { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.deliverable { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.deliverable__code { font-family: var(--font-mono); font-size: 11px; color: var(--faint); margin-bottom: 8px; }
.deliverable__text { font-size: 14.5px; font-weight: 600; color: var(--heading); line-height: 1.4; }

.aside-sticky { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.lead-card { background: var(--navy); border-radius: var(--r-lg); padding: 24px; }
.lead-card__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--on-navy-soft); margin-bottom: 8px; }
.lead-card__text { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.4; }

.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pager__link { text-decoration: none; font-size: 14px; font-weight: 600; padding: 14px 20px; border-radius: var(--r-md); }
.pager__link--prev { color: var(--muted); border: 1px solid var(--line); background: var(--surface); }
.pager__link--next { color: #fff; background: var(--teal); }

/* Checklist (WP2 focus) */
.checklist { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; gap: 11px; align-items: flex-start; }
.check__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-top: 7px; flex: none; }
.check__text { font-size: 14.5px; color: var(--heading); }

/* ============================= 12. News cards ============================ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease;
}
.news-card:hover { transform: translateY(-3px); border-color: var(--teal); }
.news-card__media { position: relative; height: 170px; }
.news-card__body { padding: 20px; }
.news-card__meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.news-card__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--heading); line-height: 1.25; margin-bottom: 7px; }
.news-card__excerpt { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.news-date { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }

/* Featured news (news page) */
.news-feature { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.news-feature__media { position: relative; min-height: 300px; }
.news-feature__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.news-feature__title { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--navy); line-height: 1.15; letter-spacing: -.01em; margin-bottom: 14px; }

/* Category tags */
.tag { font-family: var(--font-mono); font-size: 11px; padding: 3px 8px; border-radius: 5px; }
.tag--hr { background: var(--hr-bg); color: var(--hr-fg); }
.tag--ba { background: var(--ba-bg); color: var(--ba-fg); }
.tag--me { background: var(--me-bg); color: var(--me-fg); }
.tag--solid { background: var(--navy); color: #fff; font-weight: 700; padding: 4px 9px; }

/* Image placeholder (user fills these on WordPress) */
.ph {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, #e9f1f0 0 14px, #dfeae8 14px 28px);
  display: flex; align-items: center; justify-content: center;
}
.ph__label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  color: #7d8da0; background: rgba(255,255,255,.78);
  padding: 5px 10px; border-radius: 4px;
}

/* =========================== 13. Partner cards =========================== */
.country-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.country-chip { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); padding: 14px 20px; }
.country-chip__num { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--teal-bright); }
.country-chip__label { font-size: 13.5px; color: var(--on-navy); margin-left: 8px; }

.lead-partner {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 34px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease;
}
.lead-partner:hover { border-color: var(--teal); }
.logo-well { background: var(--tint); border: 1px solid var(--line-2); border-radius: 12px; padding: 26px; display: flex; align-items: center; justify-content: center; min-height: 120px; }
.logo-well img { max-height: 80px; max-width: 90%; object-fit: contain; }
.lead-partner__title { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--navy); line-height: 1.2; letter-spacing: -.01em; margin-bottom: 6px; }
.lead-partner__sub { font-family: var(--font-mono); font-size: 13px; color: var(--faint); margin-bottom: 16px; }

.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.partner-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.partner-card__logo { height: 54px; display: flex; align-items: center; margin-bottom: 18px; }
.partner-card__logo img { max-height: 52px; max-width: 200px; object-fit: contain; }
.partner-card__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.partner-card__abbr { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }
.partner-card__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--heading); line-height: 1.3; margin-bottom: 10px; }
.partner-card__text { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.partner-card__visit { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-3); font-family: var(--font-mono); font-size: 11.5px; color: var(--teal); }
.partner-card:hover .partner-card__visit { color: var(--teal-deep); }

.badge-strong { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: var(--r-sm); }

/* ========================= 14. About page blocks ========================= */
.glance { display: grid; grid-template-columns: repeat(4, 1fr); }
.glance__cell { padding: 28px 18px; border-right: 1px solid var(--line-3); }
.glance__cell:last-child { border-right: 0; }
.glance__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; color: var(--faint); margin-bottom: 7px; }
.glance__value { font-size: 14.5px; font-weight: 600; color: var(--heading); line-height: 1.4; }

.step-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.step { background: var(--tint); border: 1px solid var(--line-2); border-radius: 12px; padding: 18px; }
.step__label { font-family: var(--font-mono); font-size: 12px; color: var(--teal); margin-bottom: 8px; }
.step__text { font-size: 14px; line-height: 1.55; color: var(--body); }

.aim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aim { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.aim__num { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--teal); flex: none; }
.aim__text { font-size: 15px; line-height: 1.65; color: var(--body); }

.country-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.country-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 26px; }
.country-card__name { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: #fff; margin-bottom: 6px; }
.country-card__code { font-family: var(--font-mono); font-size: 12px; color: var(--on-navy-soft); margin-bottom: 14px; }
.country-card__num { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--teal-bright); }
.country-card__cap { font-size: 13px; color: var(--on-navy); }

.feature-media { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }

/* ========================= 15. Gallery + lightbox ======================== */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter {
  font-family: var(--font-mono); font-size: 13px;
  padding: 8px 15px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface); color: var(--body);
  cursor: pointer;
}
/* Active filter chip — driven by the hidden radio's :checked state (no JS) */
.filter--active,
#gf-all:checked          ~ .filter-row label[for="gf-all"],
#gf-drones:checked       ~ .filter-row label[for="gf-drones"],
#gf-sensors:checked      ~ .filter-row label[for="gf-sensors"],
#gf-pilots:checked       ~ .filter-row label[for="gf-pilots"],
#gf-events:checked       ~ .filter-row label[for="gf-events"],
#gf-mariculture:checked  ~ .filter-row label[for="gf-mariculture"] { border-color: var(--teal); background: var(--teal); color: #fff; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile {
  display: block; position: relative; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--line);
  cursor: pointer; aspect-ratio: 4 / 3; background: var(--surface);
  text-decoration: none; color: inherit;
  font: inherit; text-align: left; padding: 0; width: 100%; appearance: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 14px 12px; font-size: 12.5px; color: #fff; font-weight: 500;
  background: linear-gradient(to top, rgba(14,38,85,.82), rgba(14,38,85,0));
}

/* Lightbox — ONE persistent shell (backdrop + close) that stays mounted the whole time
   it's open, so stepping Prev/Next never blinks the dark backdrop. Only the inner .shot
   (image + caption + nav) swaps, via CSS :target. The shell is revealed with :has() when
   any shot is targeted, so the entrance animation plays once on open — never per step.
   Fully CSS-driven (renders in screenshots/embeds); JS adds only Escape + arrow keys. */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox:has(.shot:target) { display: flex; animation: lb-fade .2s ease both; }
.lightbox__backdrop { position: absolute; inset: 0; z-index: 0; cursor: zoom-out; border: 0; padding: 0; appearance: none; background: rgba(8,18,40,.88); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: block; }
.lightbox__close { position: absolute; top: 22px; right: 30px; color: #fff; font-size: 32px; cursor: pointer; line-height: 1; z-index: 2; text-decoration: none; }
.lightbox__track { position: relative; z-index: 1; width: 100%; max-width: 1300px; }
.lightbox:has(.shot:target) .lightbox__track { animation: lb-rise .24s cubic-bezier(.2,.7,.3,1) both; }
.shot { display: none; }
.shot:target { display: block; }
.lightbox__frame { width: 100%; }
.lightbox__stage { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--navy); aspect-ratio: 16 / 10; border: 1px solid rgba(255,255,255,.12); }
.lightbox__stage img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 16px; flex-wrap: wrap; }
.lightbox__caption { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.lightbox__nav { display: flex; gap: 10px; }
.lightbox__btn { cursor: pointer; font-family: var(--font-mono); font-size: 13px; padding: 9px 16px; border-radius: 8px; appearance: none; }
.lightbox__btn--prev { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.28); }
.lightbox__btn--next { color: var(--navy); background: var(--teal); font-weight: 700; border: 0; }
.ph--dark { background: repeating-linear-gradient(45deg, #16315f 0 16px, #13294f 16px 32px); }
.ph--dark .ph__label { background: rgba(14,38,85,.6); color: var(--on-navy-soft); }

/* ============================ 16. Data portal ============================ */
.portal { background: #eef3f3; min-height: 100vh; }

/* Login gate */
.gate { min-height: 100vh; display: flex; flex-direction: column; }
.gate__top { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--gutter); }
.gate__back { color: var(--on-navy); font-size: 14px; text-decoration: none; }
.gate__center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.gate__foot { text-align: center; padding: 24px; font-size: 12px; color: var(--on-navy-faint); }
.login { width: 100%; max-width: 420px; background: var(--surface); border-radius: var(--r-xl); padding: 38px; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.login__logo { height: 26px; width: auto; margin-bottom: 22px; }
.login__badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--teal-deep); background: var(--hr-bg); padding: 6px 12px; border-radius: 30px; margin-bottom: 22px; white-space: nowrap; }
.login__title { font-family: var(--font-display); font-weight: 700; font-size: 27px; color: var(--navy); letter-spacing: -.01em; margin-bottom: 8px; }
.login__text { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field--last { margin-bottom: 22px; }
.field__label { display: block; font-size: 12.5px; font-weight: 600; color: var(--body); margin-bottom: 7px; }
.field__input { width: 100%; padding: 13px 14px; border: 1px solid #d7e0e0; border-radius: 9px; font-size: 14.5px; font-family: var(--font-body); outline: none; transition: border-color .15s ease; }
.field__input:focus { border-color: var(--teal); }
.field__input::placeholder { color: #7d8da0; }
.login__submit { width: 100%; justify-content: center; }
.login__hint { text-align: center; margin-top: 18px; font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }

/* Dashboard chrome */
.portal-bar { background: var(--navy); display: flex; align-items: center; justify-content: space-between; padding: 13px 32px; position: sticky; top: 0; z-index: 40; }
.portal-bar__left { display: flex; align-items: center; gap: 14px; }
.portal-bar__logo { height: 22px; width: auto; }
.portal-bar__tag { font-family: var(--font-mono); font-size: 11px; color: var(--on-navy-soft); border: 1px solid rgba(255,255,255,.18); padding: 4px 9px; border-radius: var(--r-sm); white-space: nowrap; }
.portal-bar__right { display: flex; align-items: center; gap: 18px; }
.portal-bar__user { display: flex; align-items: center; gap: 9px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; font-family: var(--font-display); }
.portal-bar__name { font-size: 13.5px; color: #dde5f3; }
.portal-bar__logout { cursor: pointer; font-size: 13px; color: var(--on-navy-soft); border: 1px solid rgba(255,255,255,.18); padding: 7px 13px; border-radius: 7px; white-space: nowrap; transition: color .15s ease, border-color .15s ease; }
.portal-bar__logout:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.notif { position: relative; color: #cdd7ea; font-size: 18px; cursor: pointer; }
.notif__count { position: absolute; top: -6px; right: -8px; background: var(--amber); color: var(--navy); font-size: 10px; font-weight: 700; font-family: var(--font-mono); padding: 1px 5px; border-radius: 20px; }

.portal-main { max-width: 1280px; margin: 0 auto; padding: 30px 32px 60px; }
.portal-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.portal-head__title { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--navy); letter-spacing: -.01em; margin-bottom: 6px; }
.portal-head__live { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.portal-tools { display: flex; gap: 10px; align-items: center; }
.toggle { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.toggle__opt { font-family: var(--font-mono); font-size: 12.5px; padding: 9px 14px; color: var(--muted); cursor: pointer; }
.toggle__opt--on { background: var(--navy); color: #fff; }
.chip-btn { font-size: 13px; font-weight: 600; padding: 9px 15px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.chip-btn--light { color: var(--navy); background: var(--surface); border: 1px solid var(--line); }
.chip-btn--teal { color: #fff; background: var(--teal); }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.kpi__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; color: var(--faint); margin-bottom: 10px; }
.kpi__value { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--navy); line-height: 1; }
.kpi__value--amber { color: var(--amber); }
.kpi__delta { font-size: 12.5px; margin-top: 8px; color: var(--muted); }
.kpi__delta--up { color: var(--teal-deep); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.panel__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--heading); }
.panel__sub { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.panel-row { display: grid; gap: 16px; margin-bottom: 16px; }
.panel-row--chart { grid-template-columns: 1.7fr 1fr; }
.panel-row--map { grid-template-columns: 1.5fr 1fr; }

.legend { display: flex; gap: 16px; }
.legend__item { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.legend__swatch { width: 14px; height: 3px; border-radius: 2px; }
.chart-figures { display: flex; gap: 24px; margin: 14px 0; }
.chart-figures .metric__value { font-size: 26px; }
.chart-area { height: 200px; position: relative; background: #fafcfc; border-radius: var(--r-md); border: 1px solid var(--line-3); overflow: hidden; }
.chart-area svg { width: 100%; height: 100%; display: block; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

.bars { display: flex; flex-direction: column; gap: 15px; }
.bar__head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.bar__head span:first-child { color: var(--body); }
.bar__head span:last-child { font-family: var(--font-mono); color: var(--faint); }
.bar__track { height: 8px; background: var(--line-3); border-radius: 5px; overflow: hidden; }
.bar__fill { height: 100%; background: var(--teal); border-radius: 5px; }
.bar__fill--alt { background: var(--teal-bright); }

.map { position: relative; height: 260px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-3); background: repeating-linear-gradient(45deg, #f2f7f6 0 16px, #eaf2f0 16px 32px); }
.map__tag { position: absolute; top: 14px; left: 14px; font-family: var(--font-mono); font-size: 11px; color: #7d8da0; background: rgba(255,255,255,.8); padding: 4px 9px; border-radius: 5px; }
.pin { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(21,169,155,.25); }
.pin--alert { background: var(--amber); box-shadow: 0 0 0 4px rgba(230,167,0,.25); }
.map-legend { display: flex; gap: 18px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.map-legend__item { display: flex; align-items: center; gap: 7px; }
.swatch-dot { width: 10px; height: 10px; border-radius: 50%; }

.status-bar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.status-list { display: flex; flex-direction: column; gap: 14px; }
.status-row { display: flex; justify-content: space-between; align-items: center; }
.status-row__label { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--body); }
.status-row__num { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--heading); }

.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table thead th { text-align: left; color: var(--faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; font-weight: 400; padding: 10px 12px; border-bottom: 1px solid var(--line-3); }
.data-table tbody td { padding: 13px 12px; border-bottom: 1px solid #f3f7f6; color: #33485a; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .cell-mono { font-family: var(--font-mono); }
.data-table .cell-strong { font-weight: 600; }
.data-table .cell-time { color: var(--faint); font-family: var(--font-mono); font-size: 12px; }
.status-pill { font-family: var(--font-mono); font-size: 11px; padding: 3px 9px; border-radius: 5px; }
.status-pill--ok { background: var(--hr-bg); color: var(--teal-deep); }
.status-pill--watch { background: #fff4d6; color: #9a7b00; }
.status-pill--off { background: #fbe4e4; color: #c0392b; }
.portal-note { text-align: center; margin-top: 30px; font-size: 12px; color: var(--faint); }
.portal-note a { color: var(--teal); text-decoration: none; }

/* ======================= 17. Site footer + EU strip ====================== */
.site-footer { background: var(--navy); color: var(--on-navy); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 56px; }
.footer-brand__logo { height: 30px; width: auto; margin-bottom: 14px; }
.footer-brand__text { font-size: 14px; line-height: 1.65; color: var(--on-navy-soft); max-width: 34ch; margin-bottom: 16px; }
.footer-brand__id { font-family: var(--font-mono); font-size: 12px; color: var(--on-navy-faint); }
.footer-col__title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-navy-faint); margin-bottom: 16px; }
.footer-col__link { display: block; text-decoration: none; color: #cdd7ea; font-size: 14px; margin-bottom: 11px; }
.footer-col__link:hover { color: #fff; }
.footer-contact { font-size: 14px; line-height: 1.6; color: #cdd7ea; margin-bottom: 8px; }
.footer-contact__email { text-decoration: none; color: var(--teal-bright); font-size: 14px; }

.eu-strip { margin-top: 44px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.eu-strip__logo { height: 104px; max-width: 100%; background: #fff; padding: 12px 18px; border-radius: var(--r-sm); }
.eu-strip__text { font-size: 12px; line-height: 1.6; color: var(--on-navy-soft); max-width: 62ch; }

.footer-bottom { padding: 20px 0; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--on-navy-faint); }

/* ============================== 18. Keyframes ============================ */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.82); }
}
/* Lightbox open: fade the shell + a small rise of the frame, ONCE on open (gated by :has,
   so stepping between images never re-fires it). Disabled under reduced-motion below. */
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lightbox:has(.shot:target),
  .lightbox:has(.shot:target) .lightbox__track { animation: none; }
}

/* ============================== 19. Responsive =========================== */
@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .wp-split { grid-template-columns: 1fr; gap: 32px; }
  .lead-partner { grid-template-columns: 1fr; gap: 24px; }
  .news-feature { grid-template-columns: 1fr; }
  .panel-row--chart, .panel-row--map { grid-template-columns: 1fr; }
  .sector-grid, .partner-grid, .news-grid, .country-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .aside-sticky { position: static; }
}
@media (max-width: 720px) {
  :root { --gutter: 22px; --section-y: 56px; }

  /* hamburger icon (three bars → X when open) */
  .nav-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; cursor: pointer; border-radius: 8px;
  }
  .nav-burger > span, .nav-burger > span::before, .nav-burger > span::after {
    content: ""; display: block; width: 24px; height: 2px; background: var(--navy);
    border-radius: 2px; transition: transform .2s ease, opacity .2s ease, top .2s ease;
  }
  .nav-burger > span { position: relative; }
  .nav-burger > span::before { position: absolute; left: 0; top: -7px; }
  .nav-burger > span::after  { position: absolute; left: 0; top: 7px; }
  .nav-toggle:checked ~ .nav-burger > span { background: transparent; }
  .nav-toggle:checked ~ .nav-burger > span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger > span::after  { top: 0; transform: rotate(-45deg); }

  /* slide-down panel */
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-pop); padding: 8px 0;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav__link { padding: 13px var(--gutter); }
  .site-nav[data-active] .nav__link { border-bottom: 0; padding-bottom: 13px; }
  .nav__portal { margin: 12px var(--gutter) 6px; justify-content: center; }

  /* Work Packages submenu — expanded inline (no hover on touch) */
  .wp-menu { display: block; }
  .wp-menu__caret { display: none; }
  .wp-menu__drop { display: block; position: static; transform: none; padding-top: 0; }
  .wp-menu__panel { box-shadow: none; border: 0; border-radius: 0; padding: 0; min-width: 0; }
  .wp-menu__item { padding: 11px var(--gutter) 11px calc(var(--gutter) + 16px); }
  .wp-menu__item--overview { padding-left: var(--gutter); }
  .hero__title { font-size: 38px; }
  .display { font-size: 34px; }
  .h-section { font-size: 26px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .glance { grid-template-columns: repeat(2, 1fr); }
  .wp-grid, .step-grid, .aim-grid, .deliverables,
  .sector-grid, .partner-grid, .news-grid, .country-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .pill-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .kpi-row { grid-template-columns: 1fr; }
  .portal-bar__name, .portal-head__title { font-size: 22px; }
}

/* ============ 20. Home compositions + theming hooks ============ */
.page { min-height: 100vh; }

/* Tweakable backdrop texture for the navy bands (set on .page[data-texture]) */
.page[data-texture="solid"] .band--navy { background-image: none; }
.page[data-texture="contours"] .band--navy {
  background-image:
    repeating-radial-gradient(circle at 22% 130%, rgba(255,255,255,.07) 0 1.2px, transparent 1.2px 24px),
    repeating-radial-gradient(circle at 82% -20%, rgba(31,191,175,.10) 0 1.2px, transparent 1.2px 30px);
  background-size: auto;
}

.read-more { display: inline-block; margin-top: 26px; }
.section-intro { margin-bottom: 30px; }
.btn .dot { background: currentColor; }

/* Hero sparkline (accent-driven) */
.spark { fill: none; stroke-linejoin: round; }
.spark--data { stroke: var(--teal-bright); stroke-width: 2.5px; }
.spark--base { stroke: var(--yellow); stroke-width: 1.8px; stroke-dasharray: 4 4; opacity: .75; }

/* Data-portal teaser */
.portal-teaser { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.portal-teaser__title { font-size: 36px; line-height: 1.08; color: #fff; margin-bottom: 18px; }
.portal-teaser__lead { font-size: 16.5px; line-height: 1.66; color: var(--on-navy); max-width: 46ch; margin-bottom: 28px; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-stat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 18px; }
.mini-stat__label { font-family: var(--font-mono); font-size: 11px; color: #8ea0c6; }
.mini-stat__value { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: #fff; margin-top: 4px; }
.mini-stat__value--teal { color: var(--teal-bright); }
.mini-stat__value--amber { color: var(--yellow); }

/* Partners strip */
.partners-strip__label { text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 28px; }
.partners-strip__logos { display: flex; align-items: center; justify-content: center; gap: 38px; flex-wrap: wrap; }
.partners-strip__logos img { height: 64px; opacity: .82; }
.partners-strip__cta { text-align: center; margin-top: 30px; }

@media (max-width: 1040px) { .portal-teaser { grid-template-columns: 1fr; gap: 36px; } }

/* ============ 21. Inner-page headers + shared helpers ============ */
.page-header { padding-block: 64px 70px; }
.page-header__title { font-size: 48px; color: #fff; margin-bottom: 20px; }
.page-header__lead { font-size: 18px; line-height: 1.6; color: var(--on-navy); max-width: 62ch; }
.page-header__lead em { font-style: normal; color: #dde5f3; }
.page-header .country-chips { margin-top: 32px; }

.h-sub { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; color: var(--navy); line-height: 1.12; margin-bottom: 18px; }
.h-section--on-navy { color: #fff; }
.lead--on-navy { color: var(--on-navy); }
.prose-narrow { max-width: 64ch; }

.grid-2--top { align-items: start; }
.mt-12 { margin-top: 12px; }
.mt-22 { margin-top: 22px; }
.mt-30 { margin-top: 30px; }

.prose + .step-grid, .prose + .aim-grid, .prose + .deliverables, .prose + .checklist { margin-top: 22px; }

/* Work-package aside variant + lead-partner footer row */
.wp-aside--tint { background: var(--tint); border-color: var(--line-2); }
.badge-row { display: flex; gap: 8px; }
.badge-strong--navy { background: var(--navy); color: #fff; }
.lead-partner__foot { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.kv__label { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.kv__value { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--heading); }
.lead-partner__site { font-family: var(--font-mono); font-size: 12.5px; color: var(--teal); }
.lead-partner__brand { display: flex; flex-direction: column; gap: 18px; }
.load-more { text-align: center; margin-top: 40px; }
.pager-section { padding-bottom: 80px; }

/* ============ 22. Data-portal detail helpers ============ */
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.legend__swatch--soil { background: var(--teal); }
.legend__swatch--temp { background: var(--amber); }
.metric__unit--amber { color: var(--amber); }
.chart-grid { stroke: var(--line-3); stroke-width: 1; }
.chart-line--soil { fill: none; stroke: var(--teal); stroke-width: 3px; stroke-linejoin: round; stroke-linecap: round; }
.chart-line--temp { fill: none; stroke: var(--amber); stroke-width: 2.5px; stroke-dasharray: 5 5; stroke-linejoin: round; }
.seg--ok { background: var(--teal); }
.seg--watch { background: var(--amber); }
.seg--off { background: #d44b4b; }
.swatch-dot--ok { background: var(--teal); }
.swatch-dot--idle { background: var(--amber); }
.swatch-dot--off { background: #d44b4b; }

/* ============ 23. Gallery — pure-CSS category filter ============ */
/* Hidden radios hold the active category; labels are the chips. */
.gfilter { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.tile__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.lightbox__img { position: absolute; inset: 0; background-size: contain; background-repeat: no-repeat; background-position: center; }
#gf-drones:checked       ~ .gallery-grid .tile:not([data-cat="drones"]),
#gf-sensors:checked      ~ .gallery-grid .tile:not([data-cat="sensors"]),
#gf-pilots:checked       ~ .gallery-grid .tile:not([data-cat="pilots"]),
#gf-events:checked       ~ .gallery-grid .tile:not([data-cat="events"]),
#gf-mariculture:checked  ~ .gallery-grid .tile:not([data-cat="mariculture"]) { display: none; }
/* "All" chip reads active on load, before any radio is checked */
.gallery:not(:has(.gfilter:checked)) .filter[for="gf-all"] { border-color: var(--teal); background: var(--teal); color: #fff; }
