/* ==========================================================================
   YouthMove15 — Design System
   Brandbook v2026
   Stack: Bootstrap 5 + FontAwesome + Google Fonts (Rubik, Quicksand)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Fonts Import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Rubik:wght@400;500;600;700;800&display=swap');


/* --------------------------------------------------------------------------
   2. CSS Variables — Brand Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colours */
  --color-navy-blue:  #0D1B6E;  /* Primary anchor colour */
  --color-gray:       #D9D9D9;  /* Neutral / canvas */
  --color-yellow:     #FFC000;  /* Optimism / highlights */
  --color-pink:       #FF6666;  /* Human / emotive */
  --color-green:      #ABCD52;  /* Sustainability / nature */
  --color-blue:       #1AB9FF;  /* Sky / freedom / tech */

  /* Text */
  --color-text:       #1a1a2e;  /* Near-black, warm toward navy */
  --color-text-muted: #6b7280;
  --color-white:      #ffffff;

  /* Backgrounds */
  --color-bg:         #ffffff;
  --color-bg-light:   #f5f6fa;

  /* Typography — Rubik for headings, Quicksand for body */
  --font-heading:     'Rubik', sans-serif;
  --font-body:        'Quicksand', sans-serif;

  /* Heading scale (modular, rem-based)
     Derived from the brandbook's visual H1–H6 hierarchy */
  --h1-size: 3.5rem;    /* ~56px — hero / section titles      */
  --h2-size: 2.625rem;  /* ~42px — major section headings      */
  --h3-size: 2rem;      /* ~32px — sub-section titles          */
  --h4-size: 1.5rem;    /* ~24px — card / block headings       */
  --h5-size: 1.25rem;   /* ~20px — supporting headings         */
  --h6-size: 1rem;      /* ~16px — labels / micro-headings     */

  /* Body text scale */
  --text-lg:  1.125rem; /* Lead paragraph */
  --text-md:  1rem;     /* Default body copy */
  --text-sm:  0.875rem; /* Captions / meta */

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(13, 27, 110, 0.08);
  --shadow-md: 0 6px 24px rgba(13, 27, 110, 0.12);
  --shadow-lg: 0 16px 48px rgba(13, 27, 110, 0.16);

  /* Transitions */
  --transition: 0.25s ease;
}


/* --------------------------------------------------------------------------
   3. Base Reset & Body
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px; /* rem anchor */
  scroll-behavior: smooth;
  overflow-x: clip; /* avoid horizontal scroll from full-bleed tricks / negative margins */
}

body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Locks scroll when mobile nav drawer is open */
html.ym-no-scroll,
body.ym-no-scroll {
  overflow: hidden;
}

html.ym-no-scroll {
  height: 100%;
}


/* --------------------------------------------------------------------------
   4. Typography — Headings
   -------------------------------------------------------------------------- */

/* All headings use Rubik */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy-blue);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1, .h1 { font-size: var(--h1-size); font-weight: 800; }
h2, .h2 { font-size: var(--h2-size); font-weight: 700; }
h3, .h3 { font-size: var(--h3-size); font-weight: 700; }
h4, .h4 { font-size: var(--h4-size); font-weight: 600; }
h5, .h5 { font-size: var(--h5-size); font-weight: 600; }
h6, .h6 { font-size: var(--h6-size); font-weight: 500; }

/* Lead / intro paragraph — Quicksand semi-bold */
.lead {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* Standard paragraph */
p {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

/* Small / caption text */
.text-caption {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Section label — small uppercase tag above a heading */
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

/* Label on dark / navy bands (e.g. news strip) — brand yellow for optimism */
.section-label--on-dark {
  color: var(--color-yellow);
}

/* Highlight / accent text within a heading */
.text-accent-yellow { color: var(--color-yellow); }
.text-accent-pink   { color: var(--color-pink);   }
.text-accent-green  { color: var(--color-green);  }
.text-accent-blue   { color: var(--color-blue);   }


/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

/* Base button — shared structure */
.btn-ym {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;  /* 15px */
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.875rem;
  cursor: pointer;
  transition: background-color var(--transition),
              color var(--transition),
              border-color var(--transition),
              transform var(--transition),
              box-shadow var(--transition);
}

.btn-ym:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ym:active {
  transform: translateY(0);
}

/* --- Solid variants --- */

.btn-ym--navy {
  background-color: var(--color-navy-blue) !important;
  border-color: var(--color-navy-blue);
  color: var(--color-white) !important;
}
.btn-ym--navy:focus, 
.btn-ym--navy:hover {
  background-color: #0a1558 !important;
  border-color: #0a1558;
  color: var(--color-white) !important;
}

.btn-ym--yellow {
  background-color: var(--color-yellow);
  border-color: var(--color-yellow);
  color: var(--color-navy-blue);
}
.btn-ym--yellow:hover {
  background-color: #e6ac00;
  border-color: #e6ac00;
  color: var(--color-navy-blue);
}

.btn-ym--pink {
  background-color: var(--color-pink);
  border-color: var(--color-pink);
  color: var(--color-white);
}
.btn-ym--pink:hover {
  background-color: #e65c5c;
  border-color: #e65c5c;
  color: var(--color-white);
}

.btn-ym--green {
  background-color: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-navy-blue);
}
.btn-ym--green:hover {
  background-color: #98b949;
  border-color: #98b949;
  color: var(--color-navy-blue);
}

.btn-ym--blue {
  background-color: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-navy-blue);
}
.btn-ym--blue:hover {
  background-color: #14a5e6;
  border-color: #14a5e6;
  color: var(--color-navy-blue);
}

/* --- Outline variants --- */

.btn-ym--outline-navy {
  background-color: transparent !important;
  border-color: var(--color-navy-blue);
  color: var(--color-navy-blue) !important;
}
.btn-ym--outline-navy:hover {
  background-color: var(--color-navy-blue) !important;
  color: var(--color-white) !important;
}

.btn-ym--outline-yellow {
  background-color: transparent;
  border-color: var(--color-yellow);
  color: var(--color-navy-blue);
}
.btn-ym--outline-yellow:hover {
  background-color: var(--color-yellow);
  color: var(--color-navy-blue);
}

.btn-ym--outline-white {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-ym--outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-navy-blue);
}

/* --- Size modifiers --- */

.btn-ym--sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1.25rem;
}

.btn-ym--lg {
  font-size: 1.0625rem;
  padding: 1rem 2.5rem;
}


/* --------------------------------------------------------------------------
   6. Section Divider / Decorative Line
   -------------------------------------------------------------------------- */

/* Coloured accent underline for headings */
.heading-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 0.375rem;
}

.heading-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 4px;
  border-radius: var(--radius-pill);
  background-color: var(--color-yellow); /* Default: yellow */
}

.heading-underline--pink::after  { background-color: var(--color-pink);  }
.heading-underline--green::after { background-color: var(--color-green); }
.heading-underline--blue::after  { background-color: var(--color-blue);  }


/* --------------------------------------------------------------------------
   7. Utility Classes
   -------------------------------------------------------------------------- */

/* Background fills */
.bg-navy  { background-color: var(--color-navy-blue); color: var(--color-white); }
.bg-yellow{ background-color: var(--color-yellow); }
.bg-pink  { background-color: var(--color-pink);   color: var(--color-white); }
.bg-green { background-color: var(--color-green); }
.bg-blue  { background-color: var(--color-blue); }
.bg-gray  { background-color: var(--color-gray); }
.bg-light { background-color: var(--color-bg-light); }

/* Text colour overrides */
.text-navy  { color: var(--color-navy-blue) !important; }
.text-white { color: var(--color-white)     !important; }
.text-muted-ym { color: var(--color-text-muted) !important; }

/* Spacing helpers */
.section-padding { padding: var(--space-2xl) 0; }
.section-padding--sm { padding: var(--space-xl) 0; }


/* --------------------------------------------------------------------------
   8. Header
   -------------------------------------------------------------------------- */

/* Sticky top navigation bar — stays pinned while scrolling and when the mobile drawer is open */
.ym-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray);
  padding: 0 clamp(0.75rem, 3vw, 2rem);
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* WP admin bar — keep sticky header below toolbar when logged in */
body.admin-bar .ym-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .ym-header {
    top: 46px;
  }
}

/* Keeps logo + actions above the fixed drawer panel (z-index 999) */
.ym-header__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1002;
}

/* Nav wrapper — centres the list on desktop; drawer on small screens */
.ym-header__nav-wrap {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  position: relative;
  z-index: 1003;
}

.ym-header__nav,
.ym-header__nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ym-header__nav .menu-item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ym-header__logo {
  flex: 0 0 auto;
  min-width: 0;
}

.ym-header__logo img {
  height: clamp(44px, 10vw, 50px);
  width: auto;
  max-width: 100%;
  display: block;
  transition: opacity var(--transition);
}

.ym-header__logo img:hover {
  opacity: 0.8;
}

.ym-header__nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.ym-header__nav a {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 600;
  color: var(--color-navy-blue);
  text-decoration: none;
  padding: 0.5rem 0.65rem;
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.ym-header__nav a:hover {
  color: var(--color-navy-blue);
  background-color: var(--color-bg-light);
}

.ym-header__nav a.is-active {
  color: var(--color-navy-blue);
  font-weight: 700;
}

/* WordPress sub-menus (depth 2) — top-level item wrapper */
.ym-header__nav > .menu-item {
  position: relative;
  margin: 0;
}

.ym-header__nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Submenu expand control — mobile drawer only (injected by main.js) */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ym-header__submenu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.75rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 14%, transparent);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-navy-blue);
  cursor: pointer;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
}

.ym-header__submenu-toggle:hover {
  background-color: var(--color-bg-light);
  border-color: var(--color-navy-blue);
}

.ym-header__submenu-toggle:focus-visible {
  outline: 2px solid var(--color-navy-blue);
  outline-offset: 2px;
}

.ym-header__submenu-toggle i {
  font-size: 0.85rem;
  line-height: 1;
  transition: transform var(--transition);
}

.ym-header__nav .menu-item-has-children.is-submenu-open > .ym-header__submenu-toggle i {
  transform: rotate(180deg);
}

/* Desktop — hover/focus dropdown for 2nd-level pages */
@media (min-width: 992px) {
  .ym-header__nav .menu-item-has-children {
    position: relative;
  }

  .ym-header__nav .sub-menu {
    position: absolute;
    top: calc(100% + 0.15rem);
    left: 50%;
    transform: translateX(-50%) translateY(0.35rem);
    z-index: 1003;
    min-width: 13rem;
    padding: 0.35rem 0;
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 28px rgba(13, 27, 110, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease,
      transform 0.2s ease;
  }

  .ym-header__nav .menu-item-has-children:hover > .sub-menu,
  .ym-header__nav .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .ym-header__nav .sub-menu a {
    white-space: nowrap;
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
  }

  .ym-header__nav .sub-menu a:hover {
    background-color: var(--color-bg-light);
  }
}

/* Right cluster: social icons (lg+) + menu toggle */
.ym-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Same networks as footer — light header variant */
.ym-header__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.ym-header__social li {
  margin: 0;
}

.ym-header__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  color: var(--color-navy-blue);
  background-color: var(--color-bg-light);
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 12%, transparent);
  text-decoration: none;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.ym-header__social-link i {
  font-size: 1.05rem;
  line-height: 1;
}

.ym-header__social-link:hover {
  background-color: var(--color-navy-blue);
  border-color: var(--color-navy-blue);
  color: var(--color-white);
}

/* Desktop / tablet wide: icon row next to hamburger slot */
.ym-header__social--inline {
  display: none;
}

@media (min-width: 992px) {
  .ym-header__social--inline {
    display: flex;
  }
}

/* Drawer copy — hidden on large screens; shown inside sliding panel only */
.ym-header__social--drawer {
  display: none;
}

/* Hamburger — hidden on large screens */
.ym-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 18%, transparent);
  border-radius: var(--radius-sm);
  background: var(--color-white) !important;
  color: var(--color-navy-blue) !important;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.ym-header__menu-toggle:hover {
  background-color: var(--color-bg-light) !important;
  border-color: var(--color-navy-blue);
}

.ym-header__menu-toggle:focus-visible {
  outline: 2px solid var(--color-navy-blue);
  outline-offset: 2px;
}

.ym-header__menu-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.ym-header__menu-icon--close {
  display: none;
}

.ym-header.is-menu-open .ym-header__menu-icon--bars {
  display: none;
}

.ym-header.is-menu-open .ym-header__menu-icon--close {
  display: block;
}

/* Backdrop under drawer */
.ym-header__backdrop {
  position: fixed;
  inset: 0;
  top: 90px;
  background: rgba(13, 27, 110, 0.45);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ym-header.is-menu-open .ym-header__backdrop {
  opacity: 1;
  visibility: visible;
}
img.ym-footer__partner-logo.ym-footer__partner-logo--wwct {
  max-height: 2rem;
}

/* --------------------------------------------------------------------------
   8b. Header — mobile / tablet (drawer & tighter chrome)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .ym-header {
    min-height: 72px;
  }

  .ym-header__backdrop {
    top: 72px;
  }

  .ym-header__menu-toggle {
    display: flex;
  }

  /* Pin the whole header to the viewport when the drawer is open */
  .ym-header.is-menu-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
  }

  body.admin-bar .ym-header.is-menu-open {
    top: 46px;
  }

  .ym-header__nav-wrap {
    position: fixed;
    left: 0;
    right: 0;
    top: 72px;
    bottom: 0;
    z-index: 999;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 1rem 1.25rem 2rem;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray);
    box-shadow: 0 12px 40px rgba(13, 27, 110, 0.12);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    gap: 0;
  }

  .ym-header.is-menu-open .ym-header__nav-wrap {
    transform: translateX(0);
  }

  .ym-header__nav {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    gap: 0.25rem;
    flex-shrink: 0;
  }

  .ym-header__nav a {
    white-space: normal;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
  }

  /* Parent row: link + expand button */
  .ym-header__nav .menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .ym-header__nav .menu-item-has-children > a {
    flex: 1 1 auto;
    min-width: 0;
  }

  .ym-header__submenu-toggle {
    display: flex;
    align-self: stretch;
    margin: 0.15rem 0;
  }

  /* Nested pages — accordion inside drawer */
  .ym-header__nav .sub-menu {
    display: none;
    flex: 1 1 100%;
    width: 100%;
    margin: 0.15rem 0 0.35rem;
    padding: 0.25rem 0 0.35rem;
    border-left: 3px solid var(--color-yellow);
    background: color-mix(in srgb, var(--color-bg-light) 65%, transparent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  }

  .ym-header__nav .menu-item-has-children.is-submenu-open > .sub-menu {
    display: block;
  }

  .ym-header__nav .sub-menu .menu-item {
    margin: 0;
  }

  .ym-header__nav .sub-menu a {
    padding: 0.6rem 1rem 0.6rem 1.15rem;
    font-size: 1rem;
    font-weight: 600;
  }

  /* Social row below nav links inside the drawer */
  .ym-header__social--drawer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-gray);
    width: 100%;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
  }
}


/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */

/* Main dark footer body */
.ym-footer {
  background-color: var(--color-navy-blue);
  padding: 4rem 0 2rem;
}

/* Project mark — single YouthMove15 logo above funding copy */
.ym-footer__brand {
  margin-bottom: 1rem;
}

/* White logo version — filter converts coloured SVG to full white on navy */
.ym-footer__logo {
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.ym-footer .ym-footer__logo {
  height: 40px;
}

/* Primary funding acknowledgement (roadmap §80) */
.ym-footer__funding {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin: 0 0 1.1rem;
  max-width: 26rem;
}

/* DUT · EU · Innoviris — one row where space allows */
.ym-footer__partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem 1.35rem;
  margin-bottom: 1rem;
}

/* Partner marks: consistent cap height; light tray for bitmaps built for light backgrounds */
.ym-footer__partner-logo {
  display: block;
  width: auto;
  max-height: 2.5rem;
  object-fit: contain;
}

.ym-footer__partner-logo--innoviris {
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  box-sizing: content-box;
}

/* Partner logos — 2×2 grid (index.html: DUT · Innoviris / EU · UKRI) */
.ym-footer__partner-logos--grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.5rem;
  align-items: center;
  max-width: 22rem;
}

.ym-footer__partner-logos--grid-2x2 .ym-footer__partner-logo {
  max-width: 100%;
  justify-self: start;
}

/* UKRI logo — wide horizontal mark; no invert (supplied for dark backgrounds) */
.ym-footer__partner-logo--ukri {
  max-height: 2.75rem;
}

/* Walk Wheel Cycle Trust — white zebra mark; linked project partner below funders */
.ym-footer__wwct-link {
  display: inline-block;
  margin-top: 0.75rem;
}

.ym-footer__partner-logo--wwct {
  max-height: 2.25rem;
  width: auto;
  max-width: min(100%, 13.5rem);
}

/* Full-width legal strip below the 3-column row (Bootstrap container width) */
.ym-footer__legal-strip {
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

/* Legal disclaimer — smaller, lower contrast (roadmap §81–82) */
.ym-footer__legal {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.55;
  margin: 0;
  max-width: none;
  text-align: center;
}

/* Column headings inside footer */
.ym-footer__col-title {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 0.5rem;
}

/* Footer body text */
.ym-footer__text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Clickable email link */
.ym-footer__text a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.ym-footer__text a:hover {
  color: var(--color-yellow);
}

/* Divider between coordinator and manager blocks */
.ym-footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 1.25rem 0;
}

/* Person name label */
.ym-footer__name {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

/* Newsletter — pill row + thank-you / error lines below (see main.js) */
.ym-footer__newsletter-wrap {
  margin-bottom: 0;
}

.ym-footer__newsletter-form {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 1rem;
  overflow: hidden;
  transition: border-color var(--transition);
  margin-bottom: 0rem;
}

.ym-footer__newsletter-feedback {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0.45rem 0 0;
  padding: 0 0.25rem;
  line-height: 1.35;
}

.ym-footer__newsletter-feedback--error {
  color: #fca5a5;
}

.ym-footer__newsletter-feedback--thanks {
  color: var(--color-green);
}

.ym-footer__newsletter-form:focus-within {
  border-color: var(--color-yellow);
}

.ym-footer__newsletter-input {
  flex: 1;
  background: transparent;
  border: none !important;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-white);
  min-width: 0; /* prevents overflow */
}

.ym-footer__newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Subscribe button inside the input */
.ym-footer__newsletter-btn {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  background-color: var(--color-yellow);
  color: var(--color-navy-blue);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.125rem;
  cursor: pointer;
  transition: background-color var(--transition);
  white-space: nowrap;
}

.ym-footer__newsletter-btn:hover {
  background-color: #e6ac00;
}

/* Tighter spacing before the social icon row */
.ym-footer__text--social-lead {
  margin-bottom: 0.75rem;
}

/* Icon-only social row — circular taps, labels live in aria-label on each link */
.ym-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.ym-footer__social li {
  margin: 0;
}

.ym-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.ym-footer__social-link i {
  font-size: 1.125rem;
  line-height: 1;
}

.ym-footer__social-link:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: var(--color-yellow);
  color: var(--color-yellow);
}

/* Copyright bar — bottom strip */
.ym-footer__copyright {
  background-color: rgba(0, 0, 0, 0.25);
  padding: 1rem 0;
}

/* Row: copyright + back-to-top (stacks on narrow viewports) */
.ym-footer__copyright-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  text-align: center;
}

@media (min-width: 576px) {
  .ym-footer__copyright-row {
    justify-content: space-between;
    text-align: left;
  }
}

.ym-footer__copyright p {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  margin: 0;
}

/* Back to top — text link with arrow, matches footer link affordance */
.ym-footer__back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.ym-footer__back-to-top i {
  font-size: 0.7rem;
}

.ym-footer__back-to-top:hover {
  opacity: 0.8;
}


/* --------------------------------------------------------------------------
   10. Placeholder sections (dev / build phase only)
   -------------------------------------------------------------------------- */

.placeholder-section {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px dashed var(--color-gray);
}

.placeholder-section span {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray);
}


/* --------------------------------------------------------------------------
   11. Hero — Navy Split
   Colour logic (brandbook):
     Yellow  → "child's rhythm" accent — optimism, joy of a child in motion
     Pink    → future: human/emotive/community-focused elements
     Green   → future: sustainability, nature, play-space elements
     Blue    → future: technology, sky, freedom elements
   -------------------------------------------------------------------------- */

/* Full-height split — no Bootstrap container, raw flex */
.hero-split {
  display: flex;
  min-height: calc(100vh - 90px); /* header min-height matches sticky bar */
  min-width: 0;
  overflow: hidden;
}

/* Left panel — full-bleed navy, content pushed toward the centre seam */
.hero-split__left {
  flex: 0 0 50%;
  background-color: var(--color-navy-blue);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 5rem 5rem 5rem 2rem;
}

.hero-split__content {
  max-width: 500px;
  width: 100%;
}

/* Section label — muted uppercase on dark bg */
.hero-split__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
}

/* H1 — white on navy */
.hero-split__title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 3vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

/* "child's rhythm" — Yellow: joy of a child in motion (brandbook) */
.hero-split__title mark {
  background: none;
  color: var(--color-yellow);
  padding: 0;
}

/* Lead paragraph — 65% white for legibility without harshness */
.hero-split__lead {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 420px;
}

/* Right panel — soft blue-tinted bg, illustration anchored to bottom */
.hero-split__right {
  flex: 0 0 50%;
  background-color: #edf0f9;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Illustration — fills the right panel, sits at the bottom edge */
.hero-split__image {
  width: 100%;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 20px 48px rgba(13, 27, 110, 0.1));
}

@media (max-width: 991.98px) {
  .hero-split {
    flex-direction: column;
    min-height: auto;
  }

  .hero-split__left,
  .hero-split__right {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-split__left {
    order: 1;
    padding: 2.75rem 1.25rem 2rem;
    justify-content: center;
  }

  .hero-split__right {
    order: 2;
    min-height: min(52vh, 28rem);
  }

  .hero-split__content {
    max-width: none;
  }
}


/* --------------------------------------------------------------------------
   12. Stats Strip
   Full-width 4-column coloured strip between About and Civic Labs.
   Each column uses --stat-bg and --stat-text custom properties set inline.
   -------------------------------------------------------------------------- */

.stats-strip {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
}

.stats-strip__col {
  flex: 1 1 25%;
  min-width: 0;
  background-color: var(--stat-bg);
  padding: 3.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 767.98px) {
  .stats-strip {
    flex-direction: column;
  }

  .stats-strip__col {
    flex: 1 1 auto;
    width: 100%;
    padding: 2.25rem 1.25rem;
  }
}

/* Large animated number — count-up driven by main.js */
.stats-strip__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 4vw, 4rem);
  font-weight: 800;
  color: var(--stat-text);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stats-strip__label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stat-text);
  opacity: 0.7;
}


/* --------------------------------------------------------------------------
   13. Civic Labs
   Light gray section with a map column (white) and a colourful city accordion.
   Each .civic-labs__item uses --city-color and --city-text custom properties
   set inline to always render its brand colour as background.
   -------------------------------------------------------------------------- */

/* Light gray section — colourful city cards pop against neutral bg */
.civic-labs {
  background-color: var(--color-bg-light);
  padding-bottom: 0;
}

/* Header — standard dark text, left-aligned */
.civic-labs__header {
  max-width: 840px;
  padding: var(--space-xl) 0 var(--space-lg);
}

.civic-labs__title {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.civic-labs__lead {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 0;
}

/* Map + accordion — full-width flex row */
.civic-labs__body {
  display: flex;
  min-height: 480px;
  min-width: 0;
}

/* Left: white map panel lifts off the gray section */
.civic-labs__map-col {
  flex: 0 0 48%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.civic-labs__map {
  width: 100%;
  max-width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}

/* Right: accordion — column of colourful city cards */
.civic-labs__accordion-col {
  flex: 0 0 52%;
  padding: 1.5rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
}

@media (max-width: 991.98px) {
  .civic-labs__body {
    flex-direction: column;
    min-height: 0;
  }

  .civic-labs__map-col,
  .civic-labs__accordion-col {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

  .civic-labs__accordion-col {
    padding: 1rem 1rem 2rem;
  }
}

/* Each city card — always shows its brand colour */
.civic-labs__item {
  background-color: var(--city-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* City trigger button — transparent, inherits card colour */
.civic-labs__btn {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  background: transparent !important;
  border: none;
  padding: 0.875rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
}

.civic-labs__btn:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

/* Flag images via flagcdn.com for cross-platform consistency */
.civic-labs__flag {
  width: 30px;
  height: 22px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.civic-labs__city-info {
  flex: 1;
  min-width: 0;
}

/* --city-text: navy for bright cards, white for Budapest's dark navy */
.civic-labs__city-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--city-text, var(--color-navy-blue));
  line-height: 1.2;
}

.civic-labs__city-country {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--city-text, var(--color-navy-blue));
  opacity: 0.65;
  margin-top: 0.1rem;
}

/* Chevron rotates when expanded */
.civic-labs__chevron {
  font-size: 0.75rem;
  color: var(--city-text, var(--color-navy-blue));
  opacity: 0.65;
  flex-shrink: 0;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.civic-labs__item.is-open .civic-labs__chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Detail panel — dark overlay keeps white text readable on all city colours */
.civic-labs__panel {
  background-color: rgba(0, 0, 0, 0.15);
  padding: 1rem 1rem 1.25rem 3.875rem;
}

/* CTA row — full lab profile (living-labs.html; target pages added in a later step) */
.civic-labs__cta {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.civic-labs__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.civic-labs__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.9);
}

/* Focus tag — semi-transparent white tint */
.civic-labs__tag--focus {
  background-color: rgba(0, 0, 0, 0.2);
}

/* Meta tags (Ages, Sites) — dark tint */
.civic-labs__tag--meta {
  background-color: rgba(0, 0, 0, 0.2);
}

.civic-labs__desc, 
.civic-labs__desc p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82) !important;
  line-height: 1.75;
  margin-bottom: 0;
}

.civic-labs__desc p {
  margin: 0;
}


/* --------------------------------------------------------------------------
   13b. Living Labs — card grid (#civic-labs-cards)
   Top row: flag left, city + country right. Main: .copy (desc + divider) flex-grows so the
   divider lines up across the row; desc uses --ll-desc-min min-height. Topics at card bottom.
   -------------------------------------------------------------------------- */

.civic-labs-cards {
  position: relative;
  background:
    radial-gradient(
      ellipse 120% 80% at 50% -20%,
      color-mix(in srgb, var(--color-blue) 8%, transparent) 0%,
      transparent 55%
    ),
    linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-white) 42%);
}

/* Soft edge so the section feels finished against neighbours */
.civic-labs-cards::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--color-navy-blue) 10%, transparent) 20% 80%,
    transparent
  );
  pointer-events: none;
}

/* Header aligned with map section (§13) for a coherent story */
.civic-labs-cards__header {
  max-width: 840px;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.civic-labs-cards__title {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  margin-top: 0;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.civic-labs-cards__lead {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.civic-labs-cards__lead p {
  margin: 0;
}

.civic-labs-cards__lead b,
.civic-labs-cards__lead strong {
  font-weight: 700;
  color: var(--color-navy-blue);
}

/* Responsive → one row of five equal columns when there is room */
.civic-labs-cards__grid {
  display: grid;
  align-items: stretch;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  min-width: 0;
  width: 100%;
}

@media (min-width: 640px) {
  .civic-labs-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }
}

@media (min-width: 880px) {
  .civic-labs-cards__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1100px) {
  .civic-labs-cards__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem 0.75rem;
  }
}

/* Living Labs — map + accordion: vertically centered row, slightly smaller map than partners teaser */
.civic-labs-cards--with-map .civic-labs-cards__map-layout {
  margin-top: clamp(0.25rem, 1.5vw, 0.75rem);
  align-items: center;
}

/* Drop sticky “top” anchoring here so the map aligns with the accordion block instead of hugging the viewport */
@media (min-width: 992px) {
  .civic-labs-cards--with-map .partners-map-teaser__map-col--sticky {
    position: relative;
    top: auto;
    align-self: center;
  }
}

/*
  Living Labs map size: cap width + reserve aspect ratio on the host so the SVG never lays out as 0×0.
  (Pure max-height: min(46vh, …) can collapse to 0 when vh is 0 in some embeds / devtools.)
*/
.civic-labs-cards--with-map .partners-map-teaser__map-frame {
  width: 100%;
  max-width: min(100%, 480px);
  margin-inline: auto;
}

.civic-labs-cards--with-map .partners-map-teaser__map-col {
  min-width: min(100%, 260px);
}

/* Accordion stack in the right column: tight gap, scroll only if needed beside shorter map */
.civic-labs-cards--with-map .civic-labs__accordion-col--map-teaser {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  justify-content: center;
  max-height: min(88vh, 640px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-navy-blue) color-mix(in srgb, var(--color-navy-blue) 6%, transparent);
}

.civic-labs-cards--with-map .civic-labs__accordion-col--map-teaser::-webkit-scrollbar {
  width: 3px;
}

.civic-labs-cards--with-map .civic-labs__accordion-col--map-teaser::-webkit-scrollbar-thumb {
  background: var(--color-navy-blue);
  border-radius: 3px;
}

/* One lab = vertical card: top row [flag | city+country], then main (.copy + topics) */
.civic-labs-card {
  --ll-accent: var(--color-blue);
  /* Min band for body copy (~5 lines at default body size) so short blurbs still align dividers */
  --ll-desc-min: 7.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 8%, transparent);
  overflow: hidden;
}

/* Top band: flag left, city + country right (aligned start) */
.civic-labs-card__visual {
  --ll-visual-min: 5.35rem;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem 0.75rem;
  flex: 0 0 auto;
  min-height: var(--ll-visual-min);
  padding: 0.65rem 0.75rem 0.7rem;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--ll-accent) 16%, var(--color-white)) 0%,
    color-mix(in srgb, var(--ll-accent) 5%, var(--color-white)) 100%
  );
  border-bottom: 1px solid color-mix(in srgb, var(--color-navy-blue) 7%, transparent);
}

.civic-labs-card__flag {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: 4.25rem;
  height: auto;
  max-height: 2.85rem;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

/* City block sits to the right of the flag and uses remaining width */
.civic-labs-card__head {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  align-self: center;
}

.civic-labs-card__city {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-navy-blue);
}

.civic-labs-card__country {
  margin: 0.2rem 0 0;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--ll-accent) 55%, var(--color-text-muted));
}

/* Body: .copy flexes to match siblings in the grid row; divider pinned to bottom of .copy */
.civic-labs-card__main {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.85rem 0.85rem 1.1rem;
  min-width: 0;
}

/* Grows so every card in the row shares the same copy height → one horizontal line for the rule */
.civic-labs-card__copy {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0.5rem;
}

.civic-labs-card__topics {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  flex: 0 0 auto;
}

/* Ages + sites on one row below the focus topic */
.civic-labs-card__meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
}

.civic-labs-card__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-pill);
  color: var(--color-navy-blue);
}

/* Main topic line — full width of the card body for emphasis */
.civic-labs-card__tag--focus {
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  background: color-mix(in srgb, var(--ll-accent) 26%, var(--color-white));
  border: 1px solid color-mix(in srgb, var(--ll-accent) 50%, transparent);
}

.civic-labs-card__tag--meta {
  background: var(--color-bg-light);
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 9%, transparent);
}

/* Decorative rule — margin-top auto keeps it on the same baseline across all cards in a row */
.civic-labs-card__divider {
  flex: 0 0 auto;
  height: 2px;
  margin: 0;
  margin-top: auto;
  border: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    var(--ll-accent) 0%,
    color-mix(in srgb, var(--ll-accent) 45%, transparent) 42%,
    color-mix(in srgb, var(--color-navy-blue) 8%, transparent) 100%
  );
}

.civic-labs-card__desc {
  margin: 0;
  flex: 0 1 auto;
  min-height: var(--ll-desc-min);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-text);
  opacity: 0.93;
}

/* Tighter type + padding when all five cards share one row */
@media (min-width: 1100px) {
  .civic-labs-card {
    /* Slightly shorter min band: smaller type in five-up layout */
    --ll-desc-min: 6.5rem;
  }

  .civic-labs-card__visual {
    --ll-visual-min: 4.85rem;
    padding: 0.55rem 0.6rem 0.6rem;
    gap: 0.5rem 0.55rem;
  }

  .civic-labs-card__flag {
    max-width: 3.5rem;
    max-height: 2.4rem;
  }

  .civic-labs-card__main {
    padding: 0.75rem 0.6rem 0.9rem;
  }

  .civic-labs-card__city {
    font-size: 1.02rem;
  }

  .civic-labs-card__desc {
    font-size: 0.8125rem;
    line-height: 1.65;
  }

  .civic-labs-card__tag {
    font-size: 0.5625rem;
    padding: 0.26rem 0.5rem;
  }
}


/* --------------------------------------------------------------------------
   14. Goals & Outputs
   Three goal cards (illustration + coloured footer) + an expandable concrete
   outputs accordion. Cards use --goal-color; output rows use --item-color for
   their light background tint and a matching bold coloured number.
   -------------------------------------------------------------------------- */

.goals-section {
  background-color: var(--color-white);

}

/* Centered section header */
.goals-section__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-xl);
}

.goals-section__title {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* 3-column goal card grid */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  min-width: 0;
  width: 100%;
}

@media (max-width: 991.98px) {
  .goals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .goals-grid {
    grid-template-columns: 1fr;
  }
}

/* Card: illustration on white top, coloured footer */
.goals-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* White illustration area */
.goals-card__visual {
  background-color: var(--color-white);
  flex: 1;
}

.goals-card__img {
  width: 100%;
  display: block;
}

/* Coloured footer — --goal-color set inline per card */
.goals-card__body {
  background-color: var(--goal-color);
  padding: 1.375rem 1.75rem;
  min-height: 14rem;
}

/* Bold navy label inside the coloured footer */
.goals-card__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-navy-blue);
  margin-bottom: 0.5rem;
}

.goals-card__text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-navy-blue);
  line-height: 1.7;
  margin-bottom: 0;
}

.goals-card__text p {
  margin: 0;
}

/* Concrete outputs accordion container */
.goals-outputs {
  background-color: var(--color-bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Full-width toggle row */
.goals-outputs__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.25rem 1.75rem;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
}

.goals-outputs__toggle:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.goals-outputs__toggle-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy-blue);
}

.goals-outputs__toggle-left i {
  color: var(--color-yellow);
  font-size: 1.125rem;
}

.goals-outputs__toggle-right {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

/* "8 deliverables" count label */
.goals-outputs__count {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.goals-outputs__chevron {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

/* Chevron rotates when panel is open */
.goals-outputs.is-open .goals-outputs__chevron {
  transform: rotate(180deg);
}

/* Expandable panel */
.goals-outputs__panel {
  padding: 0 1.75rem 1.75rem;
}

/* 2-column output items grid */
.goals-outputs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
}

/* Output row — light tint from --item-color set inline per item */
.goals-output-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: color-mix(in srgb, var(--item-color, transparent) 10%, white);
  padding: 0.875rem 1rem;
}

/* Coloured number — plain bold text, color set inline per item */
.goals-output-item__num {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  min-width: 1.5rem;
  margin-top: 0.2rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.goals-output-item__title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-navy-blue);
  margin-bottom: 0.25rem;
}

.goals-output-item__desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* About page — objectives intro line + 8 output cards (reuses goals-card grid above) */
.about-objectives__intro {
  font-size: var(--text-md);
  color: var(--color-text);
  margin: var(--space-md) auto 0;
  max-width: 40rem;
  line-height: 1.55;
}

.about-outputs-wrap {
  padding-top: var(--space-xl);
  border-top: 1px solid color-mix(in srgb, var(--color-navy-blue) 10%, transparent);
}

/* Outputs widget placed below Goals — same band, no extra top padding */
.about-goals-section--outputs {
  padding-top: 0;
  padding-bottom: var(--space-2xl);
}

.about-outputs__header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto var(--space-xl);
}

.about-outputs__intro {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  margin: var(--space-sm) 0 0;
  line-height: 1.5;
}

.about-outputs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  min-width: 0;
}

@media (max-width: 1199.98px) {
  .about-outputs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .about-outputs-grid {
    grid-template-columns: 1fr;
  }
}

.about-output-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 10%, transparent);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.about-output-card:hover {
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--output-accent, var(--color-blue)) 38%, transparent);
}

.about-output-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-navy-blue);
  background: color-mix(in srgb, var(--output-accent, var(--color-blue)) 22%, white);
  margin-bottom: 0.75rem;
}

.about-output-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy-blue);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.about-output-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.about-output-card__link {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-navy-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}

.about-output-card__link:hover {
  color: var(--output-accent, var(--color-blue));
}

.about-output-card__link i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.about-output-card__link:hover i {
  transform: translateX(3px);
}


/* --------------------------------------------------------------------------
   15. About — concept intro + audience flip cards
   -------------------------------------------------------------------------- */

/* BLOCK 1 — Concept intro */
.about-intro__title {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.about-intro__lead {
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.about-intro__body {
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* RTE output — nested paragraphs inherit block typography */
.about-intro__body p {
  margin-bottom: 0.75rem;
}

.about-intro__body p:last-child {
  margin-bottom: 0;
}

/* Two contrast pills — problem (navy) + response (yellow) */
.about-intro__pills {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-intro__pill {
  border-radius: var(--radius-md);
}

.about-intro__pill--navy {
  background-color: var(--color-navy-blue);
  padding: 1.75rem 2rem;
}

.about-intro__pill-context {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.about-intro__pill-context p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65) !important;
}

.about-intro__pill-statement {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: 0;
}

.about-intro__pill--yellow {
  background-color: var(--color-yellow);
  padding: 1rem 2rem;
}

.about-intro__pill-answer {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-navy-blue);
  margin-bottom: 0;
}

.about-intro__pill-answer p {
  margin: 0;
}

/* Term labels in concept pills — bold; definition text stays regular (see font-weight on parent) */
.about-intro__pill-context strong,
.about-intro__pill-answer strong {
  font-weight: 700;
}

/* BLOCK 2 — Audience cards */
.about-audience__header {
  text-align: center;
  margin-bottom: 3rem;
}

.about-audience__title {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  margin-top: 0.75rem;
}

/* minmax(0, 1fr) keeps grid tracks from forcing horizontal overflow */
.about-audience__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  min-width: 0;
  width: 100%;
}

/* Fewer columns on smaller viewports so flip-cards stay readable */
@media (max-width: 1199.98px) {
  .about-audience__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .about-audience__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .about-audience__grid {
    grid-template-columns: 1fr;
  }
}

.about-audience__card {
  height: 210px;
  perspective: 900px;
  cursor: pointer;
}

.about-audience__card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-audience__card:hover .about-audience__card-inner {
  transform: rotateY(180deg);
}

.about-audience__card-front,
.about-audience__card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.about-audience__card-front {
  background-color: var(--color-white);
}

.about-audience__card-back {
  background-color: color-mix(in srgb, var(--card-color) 18%, white);
  transform: rotateY(180deg);
}

.about-audience__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--card-color) 15%, white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--card-color);
  margin-bottom: 0.875rem;
  flex-shrink: 0;
}

.about-audience__card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy-blue);
  text-align: center;
  margin-bottom: 0;
  line-height: 1.35;
}

.about-audience__card-text {
  font-size: 1rem;
  color: var(--color-navy-blue);
  line-height: 1.65;
  text-align: center;
  margin-bottom: 0;
}

.about-audience__card-text p {
  margin: 0;
}
.about-audience__icon svg {
  width: 1.25rem;
  fill: var(--card-color);
}


/* --------------------------------------------------------------------------
   16. Partners — consortium tabs, country groups, badges
   -------------------------------------------------------------------------- */

.partners-section {
  background-color: var(--color-bg-light);
}

.partners-section__header {
  max-width: 720px;
  margin-bottom: var(--space-lg);
}

.partners-section__title {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.partners-section__lead {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.partners-section__lead p {
  margin: 0;
}

.partners-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.partners-stat {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.partners-stat-sep { color: var(--color-gray); }

.partners-tabs__nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.partners-tab {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  background: var(--color-white) !important;
  color: var(--color-text-muted) !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.partners-tab:hover, 
.partners-tab.is-active {
  background: var(--color-navy-blue) !important;
  color: var(--color-white) !important;
}

.partners-tab__count {
  display: inline-block;
  margin-left: 0.375rem;
  font-size: 0.75rem;
  opacity: 0.65;
}

.partners-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Four type tabs — allow wrap on narrow screens */
.partners-tabs__nav--wrap {
  flex-wrap: wrap;
}

/* Card grid — up to 4 columns; vertical card: logo on top, flag + title row below */
.partner-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.125rem;
}

@media (max-width: 991px) {
  .partner-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .partner-cards {
    grid-template-columns: 1fr;
  }
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 1.125rem 1rem 1rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 6%, transparent);
}

/* Logo block — full width on top of card */
.partner-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 5.5rem;
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  transition: opacity var(--transition);
  border-radius: var(--radius-md);
  box-sizing: border-box;
}

.partner-card__logo:hover {
  opacity: 0.88;
}

.partner-card__logo img {
  display: block;
  max-width: 100%;
  max-height: 4.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Monogram tile when no raster logo (e.g. SUSTRANS) */
.partner-card__logo--fallback {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-navy-blue);
  text-decoration: none;
  background: color-mix(in srgb, var(--color-navy-blue) 6%, white);
}

.partner-card__logo--static {
  cursor: default;
  pointer-events: none;
}

/* Flag + partner name on one row under the logo */
.partner-card__meta {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem 0.65rem;
  min-width: 0;
}

.partner-card__flag {
  flex-shrink: 0;
  display: block;
  margin-top: 0.15rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.partner-card__name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-navy-blue);
  line-height: 1.35;
}

.partner-card__role {
  margin-top: -0.15rem;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-navy-blue) 50%, var(--color-text-muted));
}

.partner-card__role i {
  margin-right: 0.2rem;
  color: var(--color-yellow);
}

/* Cooperation — low-emphasis trigger; expanded panel is full viewport width */
.partners-coop {
  margin-top: 2rem;
  width: 100%;
}

/* Center the subtle disclosure control above the full-bleed panel */
.partners-coop__bar {
  text-align: center;
}

.partners-coop__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  max-width: 22rem;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--color-text-muted) 45%, transparent);
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.partners-coop__toggle:hover {
  color: var(--color-navy-blue);
  border-bottom-color: var(--color-navy-blue);
}

.partners-coop__chevron {
  font-size: 0.65rem;
  opacity: 0.75;
  transition: transform 0.25s ease;
}

.partners-coop.is-open .partners-coop__chevron {
  transform: rotate(180deg);
}

/* Full-width panel when open — avoid 100vw (causes horizontal scroll with scrollbars) */
.partners-coop__panel {
  display: none;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-top: 1rem;
  padding: 1.5rem 0 0;
  box-sizing: border-box;
}

#partners.partners-section {
  overflow-x: hidden;
}

.partners-coop__by-type {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}

@media (max-width: 991px) {
  .partners-coop__by-type {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .partners-coop__by-type {
    grid-template-columns: 1fr;
  }
}

.partners-coop__type-heading {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-navy-blue);
  margin: 0 0 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-yellow);
}

.partners-coop__type-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.partners-coop__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.45rem 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--color-navy-blue);
}

.partners-coop__item + .partners-coop__item {
  border-top: 1px solid color-mix(in srgb, var(--color-navy-blue) 6%, transparent);
}

.partners-coop__item .partners-coop__flag {
  flex-shrink: 0;
  margin-top: 0.12rem;
  border-radius: 2px;
}

.partners-coop__item .partners-coop__name {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

.partner-item__badge {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.partner-item__badge--coord {
  background: var(--color-yellow);
  color: var(--color-navy-blue);
  font-size: 0.6875rem;
}

.partner-item__badge--coord i { margin-right: 0.25rem; }

.partner-item__badge--uni  { background: color-mix(in srgb, var(--color-blue)       15%, white); color: var(--color-navy-blue); }
.partner-item__badge--npo  { background: color-mix(in srgb, var(--color-green)      20%, white); color: var(--color-navy-blue); }
.partner-item__badge--sme  { background: color-mix(in srgb, var(--color-yellow)     25%, white); color: var(--color-navy-blue); }
.partner-item__badge--pub  { background: color-mix(in srgb, var(--color-pink)       20%, white); color: var(--color-navy-blue); }
.partner-item__badge--edu  { background: color-mix(in srgb, var(--color-navy-blue)  10%, white); color: var(--color-navy-blue); }

/* --------------------------------------------------------------------------
   Homepage — Results teaser (gradient frame + featured publication preview)
   -------------------------------------------------------------------------- */

.home-results-teaser {
  background: linear-gradient(
    180deg,
    var(--color-white) 0%,
    color-mix(in srgb, var(--color-white) 94%, var(--color-blue) 6%) 100%
  );
}

/* Softer rhythm directly under Latest news (full-width white block above) */
.home-results-teaser.section-padding {
  padding-top: 0;
}

/* Outer gradient shell (mirrors energy of .results-pub--active on results.html) */
.home-results-teaser__surface {
  max-width: 56rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 3.2vw, 2rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-yellow) 22%, var(--color-white)) 0%,
    var(--color-white) 42%,
    color-mix(in srgb, var(--color-blue) 14%, var(--color-white)) 100%
  );
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 16%, transparent);
  box-shadow:
    0 14px 42px color-mix(in srgb, var(--color-navy-blue) 14%, transparent),
    0 0 0 1px color-mix(in srgb, var(--color-white) 65%, transparent) inset;
}

/* Frosted inner card; wins over global .results-pub--active gradient (later in cascade) via higher specificity */
.home-results-teaser__pub.results-pub.results-pub--active {
  padding: 1rem 1.05rem 1.15rem;
  background: color-mix(in srgb, var(--color-white) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 10%, transparent);
  box-shadow: 0 8px 26px color-mix(in srgb, var(--color-navy-blue) 8%, transparent);
}

.home-results-teaser__cover-img {
  aspect-ratio: 175 / 248;
  object-fit: cover;
}

.home-results-teaser__deliverables-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-navy-blue);
  margin: 0;
  line-height: 1.45;
}

.home-results-teaser__deliverables-note i {
  margin-top: 0.15rem;
  color: color-mix(in srgb, var(--color-navy-blue) 55%, var(--color-text-muted));
}

.home-results-teaser__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.35rem, 3.5vw, 2rem);
}

@media (max-width: 575.98px) {
  .home-results-teaser__pub.results-pub {
    grid-template-columns: 1fr;
  }

  .home-results-teaser__pub .results-pub__figure {
    max-width: 9rem;
  }
}

/* --------------------------------------------------------------------------
   Homepage — Toolkit teaser (colourful banner → toolkit.html)
   -------------------------------------------------------------------------- */

.home-toolkit-teaser {
  background: var(--color-white);
}

.home-toolkit-teaser.section-padding {
  padding-top: var(--space-lg);
}

.home-toolkit-teaser__banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.35rem, 4vw, 3rem);
  align-items: center;
  max-width: 56rem;
  margin-inline: auto;
  padding: clamp(1.65rem, 4.2vw, 2.6rem) clamp(1.25rem, 3.5vw, 2.25rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--color-yellow) 40%, transparent);
  box-shadow:
    0 16px 44px color-mix(in srgb, var(--color-navy-blue) 24%, transparent),
    0 0 0 1px color-mix(in srgb, var(--color-white) 18%, transparent) inset;
  background-color: var(--color-navy-blue);
}

.home-toolkit-teaser__visual {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 11rem;
  justify-content: center;
}

.home-toolkit-teaser__bubble {
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--color-navy-blue);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.2),
    0 0 0 2px rgba(255, 255, 255, 0.28) inset;
  transition: transform 0.22s ease;
}

.home-toolkit-teaser__banner:hover .home-toolkit-teaser__bubble {
  transform: translateY(-2px);
}

.home-toolkit-teaser__bubble--yellow {
  background: var(--color-yellow);
}

.home-toolkit-teaser__bubble--pink {
  background: color-mix(in srgb, var(--color-pink) 96%, white);
}

.home-toolkit-teaser__bubble--green {
  background: var(--color-green);
}

.home-toolkit-teaser__bubble--blue {
  background: color-mix(in srgb, var(--color-blue) 88%, white);
}

.home-toolkit-teaser__copy {
  min-width: 0;
}

.home-toolkit-teaser__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-yellow) 92%, transparent);
  margin-bottom: 0.4rem;
}

.home-toolkit-teaser__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.65rem, 3.8vw, 2.125rem);
  line-height: 1.18;
  color: var(--color-white);
}

.home-toolkit-teaser__lead, 
.home-toolkit-teaser__lead p {
  margin: 0 0 1.15rem;
  font-size: 1rem;
  line-height: 1.62;
  color: color-mix(in srgb, var(--color-white) 74%, transparent);
  max-width: 36rem;
}

.home-toolkit-teaser__lead p {
  margin: 0;
}

.home-toolkit-teaser__cta-row .btn-ym {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

@media (max-width: 575.98px) {
  .home-toolkit-teaser__banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-toolkit-teaser__visual {
    max-width: none;
    margin-inline: auto;
  }

  .home-toolkit-teaser__cta-row .btn-ym {
    width: 100%;
    justify-content: center;
  }
}


/* --------------------------------------------------------------------------
   17. News — single update below Partners; heading centred, image / copy split
   -------------------------------------------------------------------------- */

.news-section {
  background-color: var(--color-white);
}

/* Section title stays centred; grid uses full container width below */
.news-section__inner {
  max-width: 56rem;
  margin-inline: auto;
}

.news-section__header {
  margin-bottom: var(--space-lg);
  text-align: center;
}

/* Center “View all” under latest tiles */
.news-section__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.news-section__title {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Two columns from md: photo | text */
.news-highlight {
  display: grid;
  gap: 1.5rem 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .news-highlight {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

/* Image frame — brand radius + light shadow */
.news-highlight__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.news-highlight__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Right column: left-aligned copy */
.news-highlight__content {
  text-align: left;
}

/* Date pill — sky blue accent */
.news-highlight__date {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--color-navy-blue);
  background: color-mix(in srgb, var(--color-blue) 12%, white);
}

.news-highlight__headline {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--color-navy-blue);
  line-height: 1.3;
  margin: 0 0 1rem;
}

.news-highlight__body {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin: 0;
}

/* Closing line — extra weight (requested bold) */
.news-highlight__emphasis {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-navy-blue);
}


/* --------------------------------------------------------------------------
   18. Partners map teaser — map + filterable card list (below News)
   -------------------------------------------------------------------------- */

.partners-map-teaser {
  background: color-mix(in srgb, var(--color-blue) 6%, var(--color-white));
  border-top: 1px solid color-mix(in srgb, var(--color-navy-blue) 8%, transparent);
}

.partners-map-teaser__header {
  max-width: 43rem;
  margin-bottom: var(--space-lg);
}

.partners-map-teaser__title {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.partners-map-teaser__lead {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Map column | cards column (UIPI-style consortium proportions: slightly wider list column) */
.partners-map-teaser__layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

/* Grid minmax(0,1fr) — allow left column to shrink so map can scale instead of overflowing */
.partners-map-teaser__map-col {
  min-width: 0;
}

/* Sticky map column on large screens — mirrors consortium-map-wrapper behaviour */
@media (min-width: 992px) {
  .partners-map-teaser__map-col--sticky {
    position: sticky;
    top: 5.5rem;
    align-self: start;
  }
}

/* Positioning box for SVG + floating country tooltip (tooltip sits outside overflow-hidden map-frame) */
.partners-map-teaser__map-wrap {
  position: relative;
}

/* Small label following pointer over eligible countries on the map */
.partners-map-teaser__map-tooltip {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  max-width: 14rem;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-white);
  background: var(--color-navy-blue);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--color-navy-blue) 35%, transparent);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 992px) {
  .partners-map-teaser__layout.partners-map-teaser__consortium-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr);
    gap: 2.5rem;
  }
}

.partners-map-teaser__map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*
  Host gives a non-zero box (aspect-ratio). SVG fills it 100%/100% so the map is never 0×0.
  Width capped when viewport is short so full map fits (contain).
*/
.partners-map-teaser__svg-host {
  display: block;
  margin-inline: auto;
  line-height: 0;
}

.partners-map-teaser__svg-host svg {
  display: block;
}

.partners-map-teaser__svg-host .partners-map-teaser__fallback-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 820px);
  margin-inline: auto;
}

/* Right column: tabs, card grid, optional empty state, reset control */
.partners-map-teaser__cards-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

/* Tabs above map cards — reuse pill tabs; tighter bottom gap; wrap on narrow phones so labels don’t collide */
.partners-map-teaser__tabs {
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* Empty list when country + tab have no partners */
.partners-map-teaser__empty {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  text-align: right;
}

/* Return to full map list after filtering by country — primary-style control, right-aligned under cards */
.partners-map-teaser__reset {
  margin-top: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 18%, transparent);
  background: var(--color-white) !important;
  color: var(--color-navy-blue) !important;
  cursor: pointer;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--color-navy-blue) 6%, transparent);
}

.partners-map-teaser__reset:hover,
.partners-map-teaser__reset:focus-visible {
  border-color: var(--color-blue);
  color: var(--color-blue) !important;
  outline: none;
}

/* Card grid — single column scroll on narrow; two columns from sm */
.partners-map-teaser__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: stretch;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  padding-right: 0.35rem;
  -webkit-overflow-scrolling: touch;
  /* Firefox — thin thumb in navy */
  scrollbar-width: thin;
  scrollbar-color: var(--color-navy-blue) color-mix(in srgb, var(--color-navy-blue) 6%, transparent);
}

/* WebKit — 3px navy scrollbar for the partner cards list */
.partners-map-teaser__cards::-webkit-scrollbar {
  width: 3px;
}

.partners-map-teaser__cards::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--color-navy-blue) 5%, transparent);
  border-radius: 3px;
}

.partners-map-teaser__cards::-webkit-scrollbar-thumb {
  background: var(--color-navy-blue);
  border-radius: 3px;
}

.partners-map-teaser__cards::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--color-navy-blue) 85%, var(--color-white));
}

@media (min-width: 576px) {
  .partners-map-teaser__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .partners-map-teaser__cards {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  .partners-map-teaser__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/*
  Partner map cards — equal height per grid row (align-items: stretch + height:100%).
  Logo strip optional: divider + fixed band; body grows so type badge sits on one baseline at card bottom.
  Slight row-gap + shrink-safe badges — avoids iOS WebKit overlap of title vs organisation type on narrow viewports.
*/
.partners-map-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  gap: 0.2rem;
  padding: 1rem 1.15rem 1.05rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 9%, transparent);
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--color-navy-blue) 6%, transparent),
    0 0 0 1px color-mix(in srgb, var(--color-white) 80%, transparent) inset;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.partners-map-card:hover {
  border-color: color-mix(in srgb, var(--color-navy-blue) 16%, transparent);
  box-shadow:
    0 4px 14px color-mix(in srgb, var(--color-navy-blue) 10%, transparent),
    0 0 0 1px color-mix(in srgb, var(--color-white) 70%, transparent) inset;
}

/* Optional brand row — separated from name block so logo / no-logo cards feel consistent */
.partners-map-card--has-logo {
  padding-top: 1rem;
}

.partners-map-card__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  min-height: 2.75rem;
  max-height: 3.25rem;
  margin: 0 0 0.65rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-navy-blue) 8%, transparent);
}

.partners-map-card__logo img {
  max-width: 100%;
  height: auto;
  max-height: 44px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

/* Text fallback when no raster logo (e.g. SUSTRANS mono mark in main section) */
.partners-map-card__logo--mono {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--color-navy-blue);
  text-decoration: none;
  line-height: 1;
}

.partners-map-card__logo--mono:hover {
  color: var(--color-blue);
}

/* Flag + name — grows to fill so footer (badge) aligns across cards in the same row */
.partners-map-card__top {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex: 1 1 auto;
  /* Safari: avoid flex item height collapsing to 0 and painting over the badge */
  min-height: min-content;
  padding-top: 0.05rem;
}

.partners-map-card__flag {
  flex-shrink: 0;
  width: 24px;
  height: auto;
  margin-top: 0.2rem;
  border-radius: 3px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-navy-blue) 11%, transparent);
}

/* Partner title beside flag; badge row aligns with this text (not under flag) */
.partners-map-card__top .partners-map-card__name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--color-navy-blue);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Type badge(s) — same horizontal offset as name; margin-top:auto pins to card bottom in stretched rows; padding gives a stable gap from the title */
.partners-map-card .partner-item__badge {
  margin-left: calc(24px + 0.65rem);
  margin-top: auto;
  padding-top: 0.65rem;
  align-self: flex-start;
  flex-shrink: 0;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
}

/* VUB: type badge + project coordinator label on one row (aligned with name block, not under flag) */
.partners-map-card__badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  margin-left: calc(24px + 0.65rem);
  margin-top: auto;
  padding-top: 0.65rem;
  flex-shrink: 0;
}

.partners-map-card__badges-row .partner-item__badge {
  margin-left: 0;
  padding-top: 0;
}

.partners-map-card__coord {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-navy-blue);
  padding: 0.22rem 0.55rem;
  line-height: 1.2;
  align-self: flex-start;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
}

/* Coordinator pill sits inside __badges-row — row spacing handles vertical rhythm */
.partners-map-card__badges-row .partners-map-card__coord {
  margin-top: 0;
}

/*
  Phones + small tablets (and iPhone landscape at 2 cols): nested flex + height:100% inside a scrollable
  list often breaks on iOS WebKit — margin-top:auto on badges fails and title/org rows can paint over each other.
  Use CSS grid + content-sized cards (no % height chain); desktop lg+ keeps the original flex + equal-height rows.
*/
@media (max-width: 991.98px) {
  .partners-map-teaser__cards {
    /* Do not stretch cards to one row height — avoids passing a bad % height into flex children */
    align-items: start;
  }

  .partners-map-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    align-content: start;
    row-gap: 0.5rem;
    column-gap: 0;
    height: auto;
    min-height: 0;
    isolation: isolate;
    position: relative;
  }

  .partners-map-card__logo {
    margin-bottom: 0;
  }

  .partners-map-card__top {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    flex: unset;
    min-height: 0;
    width: 100%;
    min-width: 0;
    z-index: 1;
  }

  .partners-map-card .partner-item__badge {
    margin-left: calc(24px + 0.65rem);
    margin-top: 0;
    padding-top: 0;
    align-self: stretch;
    justify-self: start;
    z-index: 2;
  }

  .partners-map-card__badges-row {
    margin-left: calc(24px + 0.65rem);
    margin-top: 0;
    padding-top: 0;
    z-index: 2;
  }
}

/* Hidden by map filter — class keeps display:flex from breaking under jQuery .toggle */
.partners-map-card.is-filtered-out {
  display: none !important;
}


/* --------------------------------------------------------------------------
   Inner page banner — title strip under global header (Contact, future pages)
   -------------------------------------------------------------------------- */
.ym-page-banner {
  background: var(--color-navy-blue);
  color: var(--color-white);
  padding: var(--space-xl) 0;
}

.ym-page-banner__title {
  color: var(--color-white);
  font-size: clamp(1.75rem, 4vw, var(--h2-size));
  margin-bottom: var(--space-xs);
}

.ym-page-banner__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: color-mix(in srgb, var(--color-white) 88%, transparent);
  margin-bottom: 0;
  max-width: 40rem;
  margin-left: 0;
  margin-right: auto;
}


/* --------------------------------------------------------------------------
   News single — split masthead (50/50): one unified teaser band (shared gradient, no column rule)
   -------------------------------------------------------------------------- */
.news-article-split-hero {
  position: relative;
  overflow: hidden;
  /* Single surface for both columns — reads as one block with photo or symbol on the right */
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--color-navy-blue) 78%, var(--color-blue)) 0%,
    var(--color-navy-blue) 46%,
    color-mix(in srgb, var(--color-navy-blue) 72%, #060818) 100%
  );
}

.news-article-split-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: min(72vh, 760px);
}

/* Left column — padding-left matches Bootstrap .container content edge (same x as .ym-page-banner__title on news-events); right image stays 50vw flush */
.news-article-split-hero__text {
  background: transparent;
  color: var(--color-white);
  padding-top: clamp(1.75rem, 4vw, 3.25rem);
  padding-bottom: clamp(1.75rem, 4vw, 3.25rem);
  padding-right: clamp(1rem, 3vw, 2rem);
  /* <576px: fluid container = gutter only */
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
}

@media (min-width: 576px) {
  .news-article-split-hero__text {
    padding-left: calc(max(0px, (100vw - 540px) / 2) + var(--bs-gutter-x, 1.5rem) * 0.5);
  }
}

@media (min-width: 768px) {
  .news-article-split-hero__text {
    padding-left: calc(max(0px, (100vw - 720px) / 2) + var(--bs-gutter-x, 1.5rem) * 0.5);
  }
}

@media (min-width: 992px) {
  .news-article-split-hero__text {
    padding-left: calc(max(0px, (100vw - 960px) / 2) + var(--bs-gutter-x, 1.5rem) * 0.5);
  }
}

@media (min-width: 1200px) {
  .news-article-split-hero__text {
    padding-left: calc(max(0px, (100vw - 1140px) / 2) + var(--bs-gutter-x, 1.5rem) * 0.5);
  }
}

@media (min-width: 1400px) {
  .news-article-split-hero__text {
    padding-left: calc(max(0px, (100vw - 1320px) / 2) + var(--bs-gutter-x, 1.5rem) * 0.5);
  }
}

.news-article-split-hero__back {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--color-white) 85%, transparent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  transition: color var(--transition), transform var(--transition);
}

.news-article-split-hero__back-icon {
  font-size: 0.9em;
  opacity: 0.95;
}

.news-article-split-hero__back:hover {
  color: var(--color-white);
}

.news-article-split-hero__back:hover .news-article-split-hero__back-icon {
  transform: translateX(-3px);
}

.news-article-split-hero__back:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.news-article-split-hero__pub {
  margin: 0;
}

.news-article-split-hero__pub-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-white) 72%, var(--color-blue));
}

.news-article-split-hero__date-icon {
  font-size: 1.05rem;
  opacity: 0.95;
}

.news-article-split-hero__date {
  margin: 0;
}

.news-article-split-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 700;
  color: var(--color-white);
  text-wrap: balance;
  max-width: 38ch;
}

/* Tag row — distinct fills using YouthMove15 accent colours */
.news-article-split-hero__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
}

.news-article-split-hero__tags li {
  margin: 0;
}

.news-article-split-hero__tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: filter var(--transition), transform var(--transition);
  border: 1px solid transparent;
}

/* Tag colours — position in list picks the fill (no modifier classes); repeats every 6 items */
.news-article-split-hero__tags li:nth-child(6n+1) .news-article-split-hero__tag {
  background: color-mix(in srgb, var(--color-blue) 85%, var(--color-white));
  color: var(--color-navy-blue);
}

.news-article-split-hero__tags li:nth-child(6n+2) .news-article-split-hero__tag {
  background: color-mix(in srgb, var(--color-green) 88%, var(--color-white));
  color: color-mix(in srgb, var(--color-navy-blue) 92%, #000);
}

.news-article-split-hero__tags li:nth-child(6n+3) .news-article-split-hero__tag {
  background: color-mix(in srgb, var(--color-yellow) 92%, var(--color-white));
  color: color-mix(in srgb, var(--color-navy-blue) 95%, #000);
}

.news-article-split-hero__tags li:nth-child(6n+4) .news-article-split-hero__tag {
  background: color-mix(in srgb, var(--color-pink) 85%, var(--color-white));
  color: var(--color-navy-blue);
}

.news-article-split-hero__tags li:nth-child(6n+5) .news-article-split-hero__tag {
  background: color-mix(in srgb, var(--color-white) 22%, transparent);
  color: var(--color-white);
  border: 1px solid color-mix(in srgb, var(--color-white) 32%, transparent);
}

.news-article-split-hero__tags li:nth-child(6n+6) .news-article-split-hero__tag {
  background: color-mix(in srgb, #7c3aed 75%, var(--color-white));
  color: var(--color-white);
}

.news-article-split-hero__tag:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.news-article-split-hero__tag:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 2px;
}

/* Right column — photo or symbol; same shared gradient shows through where there is no photo */
.news-article-split-hero__media {
  position: relative;
  min-height: min(36vh, 320px);
  background: transparent;
}

.news-article-split-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* No hero photo: large watermark-style symbol; still one continuous teaser with the left column */
.news-article-split-hero__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.news-article-split-hero__symbol {
  width: min(72vw, 480px);
  max-width: 95%;
  height: auto;
  opacity: 0.32;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 992px) {
  .news-article-split-hero__symbol {
    width: min(38vw, 520px);
    opacity: 0.28;
  }
}

@media (max-width: 991.98px) {
  .news-article-split-hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .news-article-split-hero__text {
    padding-bottom: clamp(2rem, 5vw, 3rem);
  }

  .news-article-split-hero__media {
    min-height: min(42vh, 380px);
  }

  .news-article-split-hero__title {
    max-width: none;
  }
}


/* --------------------------------------------------------------------------
   Contact page — coordinator panel + form
   Social icons: .ym-contact__social uses key-numbers palette (see homepage #key-numbers)
   -------------------------------------------------------------------------- */
.ym-contact__panel {
  background: var(--color-white);
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 8%, var(--color-white));
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Coordinator column — light grey panel (markup/contact.html .bg-light) */
.ym-contact__panel.bg-light {
  background-color: var(--color-bg-light);
}

.ym-contact__org {
  font-size: var(--h4-size);
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.ym-contact__address,
.ym-contact__email {
  margin-bottom: var(--space-sm);
}

.ym-contact__email a {
  font-weight: 600;
  text-decoration: none;
  color: var(--color-navy-blue);
}

.ym-contact__email a:hover {
  color: var(--color-blue);
}

.ym-contact__divider {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--color-navy-blue) 12%, transparent);
  margin: var(--space-md) 0 !important;
  opacity: 1;
}

.ym-contact__social-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-navy-blue);
  margin-bottom: var(--space-sm);
}

/* Larger colourful circles — same token pairings as .stats-strip__col on homepage */
.ym-contact__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.ym-contact__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  text-decoration: none;
  background-color: var(--contact-social-bg);
  color: var(--contact-social-fg);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
}

.ym-contact__social-link i {
  font-size: 1.75rem;
  line-height: 1;
}

.ym-contact__social-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.06);
  color: var(--contact-social-fg);
}

.ym-contact__social-link:focus-visible {
  outline: 2px solid var(--color-navy-blue);
  outline-offset: 3px;
}

.ym-contact__form-title {
  color: var(--color-navy-blue);
  margin-top: 0;
  margin-bottom: var(--space-md);
}

/* Form fields — align with brand (navy focus ring); sizing from Bootstrap .form-control */
.ym-contact-form__input,
.ym-contact-form.wpcf7-form .wpcf7-form-control:not(.wpcf7-submit) {
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 20%, var(--color-gray));
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  color: var(--color-navy-blue);
  background-color: var(--color-white);
  box-shadow: none;
  margin: 0;
  width: 100%;
}

/* Textarea height — rows="5" like markup/contact.html (no fixed min-height) */
.ym-contact-form textarea.ym-contact-form__input,
.ym-contact-form.wpcf7-form textarea.wpcf7-form-control {
  min-height: 0;
  height: auto;
  resize: vertical;
}

.ym-contact-form__input:focus,
.ym-contact-form.wpcf7-form .wpcf7-form-control:not(.wpcf7-submit):focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-blue) 28%, transparent);
  outline: 0;
}

/* Submit — match markup/contact.html btn-ym btn-ym--yellow btn-ym--lg */
.ym-contact-form button.wpcf7-submit,
.ym-contact-form input.wpcf7-submit {
  width: auto;
  max-width: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.ym-contact-form button.wpcf7-submit.btn-ym,
.ym-contact-form input.wpcf7-submit.btn-ym {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-yellow);
  background-color: var(--color-yellow);
  color: var(--color-navy-blue);
  cursor: pointer;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.ym-contact-form button.wpcf7-submit.btn-ym:hover,
.ym-contact-form input.wpcf7-submit.btn-ym:hover {
  background-color: #e6ac00;
  border-color: #e6ac00;
  color: var(--color-navy-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ym-contact-form button.wpcf7-submit.btn-ym:active,
.ym-contact-form input.wpcf7-submit.btn-ym:active {
  transform: translateY(0);
}

.ym-contact-form button.wpcf7-submit.btn-ym:focus-visible,
.ym-contact-form input.wpcf7-submit.btn-ym:focus-visible {
  outline: 2px solid var(--color-navy-blue);
  outline-offset: 3px;
}

/* Contact Form 7 — match markup/contact.html structure inside ym-contact widget */
.ym-contact__panel--form .wpcf7 {
  margin: 0;
}

.ym-contact-form.wpcf7-form {
  margin: 0;
}

.ym-contact-form.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
}

.ym-contact-form.wpcf7-form .wpcf7-spinner {
  margin-left: 0.75rem;
}

.ym-contact-form.wpcf7-form .wpcf7-not-valid-tip {
  font-size: 0.875rem;
  margin-top: 0.35rem;
  color: var(--color-pink);
}

.ym-contact-form.wpcf7-form .wpcf7-response-output {
  margin: var(--space-md) 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border-width: 1px;
  font-size: var(--text-sm);
}

.ym-contact-form.wpcf7-form .wpcf7-response-output:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.ym-contact-form__notice {
  margin: 0;
  color: color-mix(in srgb, var(--color-navy-blue) 70%, transparent);
}

/* Elementor — no extra padding around full-width YouthMove15 sections */
.elementor-widget-ym-contact .elementor-widget-container,
.elementor-widget-ym-page-banner .elementor-widget-container,
.elementor-widget-ym-toolkit-catalog .elementor-widget-container,
.elementor-widget-ym-toolkit-videos .elementor-widget-container {
  padding: 0;
  margin: 0;
}


/* --------------------------------------------------------------------------
   Living labs overview (living-labs.html) — split headline, panel, city strip
   -------------------------------------------------------------------------- */
.living-labs-intro {
  position: relative;
}

.living-labs-intro__headline {
  margin: 0.35rem 0 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.125rem, 5vw, 3.25rem);
  line-height: 1.08;
  color: var(--color-navy-blue);
  letter-spacing: -0.03em;
}

.living-labs-intro__line {
  display: block;
}

/* Second line — <mark> matches homepage hero (.hero-split__title mark): yellow, no fill */
.living-labs-intro__headline mark {
  background: none;
  color: var(--color-yellow);
  padding: 0;
  font-weight: inherit;
}

.living-labs-intro__panel {
  height: 100%;
  margin: 0;
  padding: var(--space-lg);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--color-white) 92%, var(--color-blue) 8%) 0%,
    var(--color-white) 48%,
    color-mix(in srgb, var(--color-white) 94%, var(--color-yellow) 6%) 100%
  );
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 10%, var(--color-white));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.living-labs-intro__lead {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.living-labs-intro__body {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Five-city strip — coloured bullets aligned with map / key-numbers palette */
.living-labs-intro__cities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-navy-blue);
}

.living-labs-intro__cities li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.living-labs-intro__cities li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: var(--city-accent, var(--color-navy-blue));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-navy-blue) 18%, transparent);
}

@media (max-width: 991.98px) {
  .living-labs-intro__headline {
    margin-bottom: var(--space-sm);
  }
}


/* --------------------------------------------------------------------------
   Living lab single page (e.g. living-lab-brussels.html) — accent from map palette
   -------------------------------------------------------------------------- */
.ll-page,
.ll-page-hero,
.ll-intro,
.ll-activities,
.ll-school-tags,
.ll-partners-section,
.ll-lead-card {
  --ll-accent: var(--color-blue);
  --ll-accent-muted: color-mix(in srgb, var(--ll-accent) 22%, var(--color-white));
}

.ll-page--brussels {
  --ll-accent: var(--color-blue);
}

.ll-page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    155deg,
    var(--color-navy-blue) 0%,
    color-mix(in srgb, var(--ll-accent) 42%, var(--color-navy-blue)) 42%,
    var(--color-navy-blue) 100%
  );
  color: var(--color-white);
}

.ll-page-hero__inner {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  max-width: 44rem;
}

.ll-page-hero__flag-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: var(--space-sm);
}

.ll-page-hero__flag {
  flex-shrink: 0;
  display: block;
  width: 80px;
  min-height: 60px;
  height: 60px !important;
  border-radius: 4px;
  background-color: var(--color-white);
  /* Light frame + dark hairline — keeps blue flags readable on the blue hero */
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  outline: 1px solid rgba(0, 0, 0, 0.28);
  outline-offset: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
}

.ll-page-hero__label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.ll-page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-white);
  margin: 0;
  letter-spacing: -0.02em;
}

.ll-section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--h4-size);
  color: var(--color-navy-blue);
  margin-bottom: var(--space-md);
}

/* Reusable pill for light sections only */
.ll-inline-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--ll-accent) 18%, var(--color-white));
  color: var(--color-navy-blue);
}

/* Intro band — illustration + copy (light surface, living-labs panel language) */
.ll-intro {
  background: var(--color-bg-light);
  border-bottom: 1px solid color-mix(in srgb, var(--color-navy-blue) 6%, transparent);
}

.ll-intro .section-label {
  margin-bottom: 0.35rem;
}

.ll-intro__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, var(--h3-size));
  color: var(--color-navy-blue);
  line-height: 1.25;
  margin-top: 0.25rem;
  margin-bottom: var(--space-lg);
}

.ll-intro__figure {
  margin: 0;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--ll-accent) 12%, var(--color-white)) 0%,
    var(--color-white) 50%
  );
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 8%, var(--color-white));
  box-shadow: var(--shadow-sm);
}

.ll-intro__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: min(100%, 560px);
  margin-inline: auto;
  object-fit: contain;
}

.ll-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 0.65rem;
  margin-bottom: var(--space-lg);
}

/* Full-width fact row under text + landscape graphic (Brussels intro) */
.ll-facts--intro-strip {
  margin-top: var(--space-md);
  margin-bottom: 0;
  max-width: none;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .ll-facts--intro-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: var(--space-lg);
    gap: 0.75rem;
  }
}

@media (min-width: 992px) {
  .ll-facts--intro-strip {
    margin-top: var(--space-xl);
  }
}

.ll-fact {
  /* Pastel fill — same recipe as .about-audience__card-back (color-mix 18% + white) */
  --fact-pastel: var(--ll-accent);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background-color: color-mix(in srgb, var(--fact-pastel) 18%, var(--color-white));
  border: none;
  box-shadow: var(--shadow-sm);
}

.ll-facts .ll-fact:nth-child(1) { --fact-pastel: var(--color-blue); }
.ll-facts .ll-fact:nth-child(2) { --fact-pastel: var(--color-yellow); }
.ll-facts .ll-fact:nth-child(3) { --fact-pastel: var(--color-green); }
.ll-facts .ll-fact:nth-child(4) { --fact-pastel: var(--color-pink); }

.ll-fact__value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--fact-pastel);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.ll-fact__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy-blue);
  margin: 0;
  line-height: 1.35;
}

.ll-prose {
  max-width: 65ch;
}

.ll-prose p:last-child {
  margin-bottom: 0;
}

/* Lead opening line — strong navy (overrides .lead muted colour in this block) */
.ll-prose .lead.ll-prose__lead {
  color: var(--color-navy-blue);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.55;
  margin-bottom: var(--space-md);
}

/* Activity pillars — borderless tiles; icon stack with ring + gradient tile */
.ll-activities {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .ll-activities {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.ll-activity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: var(--space-lg) var(--space-md);
  margin: 0;
  background: color-mix(in srgb, var(--ll-accent) 11%, var(--color-white));
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: none;
}

.ll-activity__icon {
  position: relative;
  z-index: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(
    150deg,
    color-mix(in srgb, var(--ll-accent) 38%, var(--color-white)) 0%,
    color-mix(in srgb, var(--ll-accent) 14%, var(--color-white)) 100%
  );
  box-shadow:
    0 6px 16px color-mix(in srgb, var(--ll-accent) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.ll-activity__icon svg {
  position: relative;
  z-index: 1;
  width: 1.35rem;
  fill: var(--color-navy-blue);
} 
.ll-activity__icon > i {
  position: relative;
  z-index: 1;
  font-size: 1.35rem;
  color: var(--color-navy-blue);
}

/* Decorative ring — suggests motion / “lab experiment” without extra imagery */
.ll-activity__icon-ring {
  position: absolute;
  z-index: 0;
  inset: -5px;
  border-radius: 18px;
  border: 2px dashed color-mix(in srgb, var(--ll-accent) 48%, transparent);
  transform: rotate(-10deg);
  pointer-events: none;
  opacity: 0.85;
}

.ll-activity__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--color-navy-blue);
  margin: 0;
  line-height: 1.3;
}

.ll-activity__text {
  font-size: var(--text-md);
  color: var(--color-text);
  margin: 0;
  line-height: 1.65;
}

.ll-school-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  align-items: center;
}

.ll-school-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-navy-blue);
  background: color-mix(in srgb, var(--ll-accent) 12%, var(--color-white)) !important;
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 10%, transparent);
  border-radius: var(--radius-pill);
  line-height: 1.3;
}


.ll-lead-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  /* Solid white base so the card reads clearly on .bg-light partners band */
  background-color: var(--color-white);
  background-image: linear-gradient(
    135deg,
    color-mix(in srgb, var(--ll-accent) 22%, var(--color-white)) 0%,
    var(--color-white) 62%
  );
  border: 1px solid color-mix(in srgb, var(--ll-accent) 24%, var(--color-white));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.ll-lead-card__logo {
  flex: 0 0 auto;
}

.ll-lead-card__logo img {
  display: block;
  max-width: 220px;
  height: auto;
}

.ll-lead-card__body {
  flex: 1;
  min-width: 200px;
}

.ll-lead-card__role {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ll-accent);
  margin: 0 0 0.35rem;
}

.ll-lead-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--h5-size);
  color: var(--color-navy-blue);
  margin: 0 0 0.5rem;
}

.ll-lead-card__desc {
  margin: 0;
  font-size: var(--text-md);
  color: var(--color-text);
  line-height: 1.65;
}

/* Cooperation grid — generous padding band; five cards per row on wide viewports */
.ll-partners-section {
  padding-top: var(--space-xl) !important;
  padding-bottom: var(--space-xl);
}

.ll-partners-grid.partner-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 576px) {
  .ll-partners-grid.partner-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .ll-partners-grid.partner-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .ll-partners-grid.partner-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}


/* --------------------------------------------------------------------------
   News list + single article (news-events.html, news-single.html)
   -------------------------------------------------------------------------- */
.news-list-page {
  background: var(--color-bg);
}

.news-list__loading,
.news-list__error {
  font-size: var(--text-md);
}

#ym-news-load-more.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

/* Card: full-bleed image, text block, single link for whole card */
.news-card {
  height: 100%;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 10%, var(--color-white));
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: var(--color-white);
  transition: box-shadow var(--transition), transform var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.news-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.news-card__link:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}

.news-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-light);
}

/* Default tile when no hero image is uploaded — gray field + horizontal logo */
.news-card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--color-navy-blue) 7%, var(--color-bg-light)) 0%,
    var(--color-gray) 55%,
    color-mix(in srgb, var(--color-bg-light) 70%, var(--color-gray)) 100%
  );
  border-bottom: 1px solid color-mix(in srgb, var(--color-navy-blue) 10%, transparent);
}

.news-card__media--placeholder .news-card__img {
  width: auto;
  height: auto;
  max-width: 55%;
  max-height: 42%;
  object-fit: contain;
  transform: none;
}

.news-card:hover .news-card__media--placeholder .news-card__img {
  transform: none;
}


.news-card:hover .news-card__media--placeholder {
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--color-navy-blue) 10%, var(--color-bg-light)) 0%,
    color-mix(in srgb, var(--color-blue) 12%, var(--color-gray)) 100%
  );
}

.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card__img {
  transform: scale(1.03);
}

.news-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.news-card__date {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-blue);
}

.news-card__title {
  font-family: var(--font-heading);
  font-size: var(--h5-size);
  font-weight: 700;
  color: var(--color-navy-blue);
  margin: 0;
  line-height: 1.25;
  transition: color var(--transition);
}

.news-card:hover .news-card__title {
  color: var(--color-blue);
}

.news-card__excerpt {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article body — narrow centered column (56rem) inside Bootstrap .container; matches previous reading width */
.news-article-page__container {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

/* Article detail — split hero above carries imagery; normal vertical rhythm below */
.news-article-page--detail {
  position: relative;
}

.news-article-page--detail.section-padding {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-2xl);
}

.news-article__empty {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  color: var(--color-text-muted);
}

.news-article__back {
  margin-bottom: var(--space-md);
}

.news-article__back-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-navy-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.news-article__back-link:hover {
  color: var(--color-blue);
}

.news-article__header {
  margin-bottom: var(--space-md);
}

.news-article__date {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: var(--space-xs);
}

.news-article__title {
  color: var(--color-navy-blue);
  margin: 0;
  line-height: 1.2;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

/* Standfirst / intro (single: below split hero; list layouts may differ) */
.news-article__lead {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.55;
  margin: 0 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid color-mix(in srgb, var(--color-navy-blue) 10%, transparent);
}

.news-article__figure {
  margin: 0 0 var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-light);
  box-shadow: var(--shadow-sm);
}

/* Inline figures inside article body on single template */
.news-article-page--detail .news-article__prose .news-article__figure {
  box-shadow: none;
}

.news-article-page--detail .news-article__lead {
  margin-top: 0;
  margin-bottom: var(--space-lg);
}

.news-article__image {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.news-article__prose {
  font-size: var(--text-md);
  color: var(--color-text);
}

.news-article__prose p {
  margin-bottom: var(--space-sm);
}

.news-article__prose p:last-child {
  margin-bottom: 0;
}

.news-article__prose h2 {
  font-family: var(--font-heading);
  font-size: var(--h3-size);
  color: var(--color-navy-blue);
  margin: var(--space-lg) 0 var(--space-sm);
  line-height: 1.3;
}

.news-article__prose h2:first-child {
  margin-top: 0;
}

.news-article__prose ul,
.news-article__prose ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.35rem;
}

.news-article__prose li {
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
}

.news-article__prose li::marker {
  color: var(--color-blue);
}

.news-article__quote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) 2.75rem var(--space-md) 2.75rem;
  border: none;
  border-radius: 0;
  background: transparent;
  font-style: italic;
  color: var(--color-text-muted);
  position: relative;
}

/* Navy typographic quotes — no left bar / corner radius */
.news-article__quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -0.08em;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  font-style: normal;
  color: var(--color-navy-blue);
  line-height: 1;
  pointer-events: none;
}

.news-article__quote::after {
  content: "\201D";
  position: absolute;
  right: 0.25rem;
  bottom: 0.15em;
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  font-style: normal;
  color: var(--color-navy-blue);
  line-height: 1;
  pointer-events: none;
}

.news-article__quote p {
  margin: 0;
  font-weight: bold;
  color: var(--color-navy-blue);
  font-size: 22px;
}

/* Bottom “Back to all news” — separated from body */
.news-article__footer-nav {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid color-mix(in srgb, var(--color-navy-blue) 12%, transparent);
}

.news-article__back-link--bottom {
  font-size: var(--text-md);
}

/* Related block below article */
.news-related {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid color-mix(in srgb, var(--color-navy-blue) 10%, transparent);
}

.news-related__title {
  font-family: var(--font-heading);
  font-size: var(--h4-size);
  color: var(--color-navy-blue);
  margin-bottom: var(--space-md);
}

/* --------------------------------------------------------------------------
   About page — split teaser (visual + copy) + reusable ym-accordion
   Copy .accordion.ym-accordion markup to other pages; requires Bootstrap 5 JS.
   -------------------------------------------------------------------------- */

.about-teaser {
  background: linear-gradient(
    180deg,
    var(--color-white) 0%,
    color-mix(in srgb, var(--color-blue) 5%, var(--color-white)) 100%
  );
}

.about-teaser__visual {
  position: relative;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Large screens: pin graphic while accordion column scrolls (same top offset as partners map teaser) */
@media (min-width: 992px) {
  .about-teaser__media-col {
    align-self: flex-start;
  }

  .about-teaser__visual {
    position: sticky;
    top: 5.5rem;
  }
}

/* Natural-width image — scales with wider column (col-lg-7) */
.about-teaser__graphic {
  display: block;
  width: 100%;
  height: auto;
}

.about-teaser__lead, 
.about-teaser__lead p {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--color-navy-blue);
  margin-bottom: var(--space-md);
}

.about-teaser__hint {
  margin-bottom: var(--space-sm);
}

.about-teaser__hint-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--color-navy-blue) 50%, var(--color-white));
}

.about-teaser__accordion-intro {
  margin-bottom: var(--space-sm);
  font-size: var(--text-md);
  color: var(--color-text);
}

.about-teaser__accordion-list {
  margin: 0;
  padding-left: 1.2rem;
}

.about-teaser__accordion-list li {
  margin-bottom: 0.35rem;
  padding-left: 0.2rem;
}

.about-teaser__accordion-list li::marker {
  color: var(--color-blue);
}

/* Brand skin on Bootstrap accordion — pair classes: accordion ym-accordion */
.accordion.ym-accordion {
  --bs-accordion-border-color: color-mix(in srgb, var(--color-navy-blue) 12%, transparent);
  --bs-accordion-border-radius: var(--radius-md);
  --bs-accordion-inner-border-radius: calc(var(--radius-md) - 1px);
  --bs-accordion-active-color: var(--color-navy-blue);
  --bs-accordion-btn-color: var(--color-navy-blue);
  --bs-accordion-btn-bg: var(--color-white);
  --bs-accordion-active-bg: color-mix(in srgb, var(--color-blue) 8%, var(--color-white));
}

.accordion.ym-accordion .accordion-button {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 1.15rem;
  background: var(--bs-accordion-btn-bg) !important;
  color: var(--bs-accordion-btn-color) !important;
}

.accordion.ym-accordion .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: var(--color-navy-blue);
  background-color: color-mix(in srgb, var(--color-blue) 8%, var(--color-white));
}

.accordion.ym-accordion .accordion-body {
  padding: 1rem 1.15rem 1.15rem;
  font-size: var(--text-md);
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-navy-blue) 2.5%, var(--color-white));
}
.accordion.ym-accordion .accordion-button:focus {
  box-shadow: unset !important;
}

@media (max-width: 991px) {
  .about-teaser__visual {
    position: relative;
    top: auto;
  }
}

/* --------------------------------------------------------------------------
   Results page — publications (cards) & deliverables (PDF rows); muted states
   -------------------------------------------------------------------------- */

.results-section__title {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy-blue);
  margin: 0.5rem 0 0;
}

.results-section__header {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto var(--space-xl);
}

/* Publications block: allow a slightly wider intro for EU-style list pages */
.results-section__header--wide {
  max-width: 44rem;
}

.results-section__lead {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  margin-bottom: 0;
  line-height: 1.55;
}

.results-section__strong {
  color: var(--color-navy-blue);
}

.results-section--muted-bg {
  background: var(--color-bg-light);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  min-width: 0;
}

/* Deliverables: tighter 4-column grid on XL */
.results-grid--dense {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1199.98px) {
  .results-grid--dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .results-grid,
  .results-grid--dense {
    grid-template-columns: 1fr;
  }
}

/* Pending state — lowered contrast; add results-card--available when content ships */
.results-card {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 10%, transparent);
  opacity: 0.72;
  filter: grayscale(0.88);
  transition:
    opacity 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.results-card--available {
  opacity: 1;
  filter: none;
  border-color: color-mix(in srgb, var(--results-accent, var(--color-blue)) 45%, transparent);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--color-navy-blue) 14%, transparent);
}

.results-card--available:hover {
  box-shadow: 0 12px 36px color-mix(in srgb, var(--color-navy-blue) 18%, transparent);
}

.results-card--compact {
  padding: 1.15rem 1.25rem;
}

.results-card__status {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.65rem;
}

.results-card__status--live {
  color: color-mix(in srgb, var(--results-accent, var(--color-blue)) 65%, var(--color-navy-blue));
}

.results-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy-blue);
  margin: 0 0 0.45rem;
  line-height: 1.35;
}

.results-card__num {
  display: inline-block;
  min-width: 1.25rem;
  margin-right: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-text-muted);
}

.results-card--available .results-card__num {
  color: var(--results-accent, var(--color-blue));
}

.results-card__meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.results-card__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.results-card--available .results-card__text {
  color: var(--color-text);
}

.results-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-navy-blue);
  text-decoration: none;
}

.results-card__link:hover {
  color: var(--results-accent, var(--color-blue));
}

.results-card__link i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.results-card__link:hover i {
  transform: translateX(3px);
}

/* EU-style publication rows — cover thumbnail + bibliography + primary action */
.results-pubs {
  --results-pub-btn-red: #c62828;
  --results-pub-btn-red-hover: #9d1f1f;
  --results-pub-accent: var(--color-blue);
  --results-pub-accent-blue: var(--color-blue);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 56rem;
  margin-inline: auto;
}

.results-pub {
  display: grid;
  grid-template-columns: minmax(5.25rem, 7.85rem) minmax(0, 1fr);
  gap: 1rem clamp(1rem, 3vw, 1.65rem);
  align-items: start;
  padding: 1.1rem 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 14%, transparent);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--color-navy-blue) 10%, transparent);
  transition:
    opacity 0.2s ease,
    filter 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.results-pub--pending {
  opacity: 0.78;
  filter: grayscale(0.75);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--color-navy-blue) 6%, transparent);
}

/* Featured publication — full colour vs greyed pending rows */
.results-pub--active {
  background: linear-gradient(
    125deg,
    color-mix(in srgb, var(--color-yellow) 28%, var(--color-white)) 0%,
    color-mix(in srgb, var(--color-green) 17%, var(--color-white)) 48%,
    color-mix(in srgb, var(--color-blue) 12%, var(--color-white)) 100%
  );
  border: 1px solid color-mix(in srgb, var(--results-pub-accent-blue) 50%, transparent);
  box-shadow: 0 12px 38px color-mix(in srgb, var(--results-pub-accent-blue) 22%, transparent);
}

.results-pub--active .results-pub__type {
  color: color-mix(in srgb, var(--results-pub-accent-blue) 55%, var(--color-navy-blue));
}

.results-pub--active .results-pub__title {
  color: var(--color-navy-blue);
}

.results-pub--active .results-pub__date {
  color: color-mix(in srgb, var(--results-pub-accent-blue) 35%, var(--color-text-muted));
}

.results-pub--active .results-pub__desc {
  color: var(--color-text);
}

.results-pub--active .results-pub__cover {
  border-color: color-mix(in srgb, var(--results-pub-accent) 70%, var(--color-navy-blue));
  box-shadow: 0 8px 26px color-mix(in srgb, var(--results-pub-accent-blue) 28%, transparent);
}

.results-pub__figure {
  margin: 0;
}

.results-pub__cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 12%, transparent);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--color-navy-blue) 12%, transparent);
  object-fit: cover;
}

.results-pub__body {
  min-width: 0;
}

.results-pub__type {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.results-pub__title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 700;
  color: var(--color-navy-blue);
  margin: 0 0 0.4rem;
  line-height: 1.38;
}

.results-pub__date {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.65rem;
}

.results-pub__desc {
  font-size: 0.89875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0 0 1rem;
}

.home-results-teaser__pub .results-pub__desc p {
  margin: 0;
}

.results-pub--pending .results-pub__desc {
  color: var(--color-text-muted);
}

.results-pub__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.results-pub__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 2.5rem;
  padding: 0.42rem 1.15rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  background-color: var(--results-pub-btn-red, #c62828);
  color: var(--color-white);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.results-pub__btn:focus-visible {
  outline: 2px solid var(--results-pub-btn-red, #c62828);
  outline-offset: 2px;
}

.results-pub__btn:hover {
  background-color: var(--results-pub-btn-red-hover, #9d1f1f);
  color: var(--color-white);
}

.results-pub__btn i {
  font-size: 0.8125rem;
}

/* Muted download when file is not ready yet */
.results-pub__btn--disabled {
  cursor: not-allowed;
  pointer-events: none;
  background-color: color-mix(in srgb, var(--results-pub-btn-red, #c62828) 32%, var(--color-white));
  color: color-mix(in srgb, var(--color-text) 55%, var(--color-text-muted));
}

.results-pub--active .results-pub__btn--disabled {
  color: var(--color-white);
  background: var(--color-pink);
  opacity: 0.95;
}

.results-pub__text-action {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-navy-blue);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.results-pub__text-action:hover {
  color: var(--color-blue);
}

.results-pub--active .results-pub__text-action {
  color: color-mix(in srgb, var(--color-blue) 70%, var(--color-navy-blue));
}

.results-pub--active .results-pub__text-action:hover {
  color: var(--color-blue);
}

@media (max-width: 575.98px) {
  .results-pub {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .results-pub__figure {
    grid-row: auto;
    max-width: 8.75rem;
  }
}

/* --------------------------------------------------------------------------
   Results — deliverable rows (PDF strip + D x.x title + download)
   -------------------------------------------------------------------------- */

.results-section--deliverables {
  /* Orange download accent — matches reference row UI */
  --results-deliverable-download: #d97a4a;
}

.results-deliverables-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 56rem;
  margin-inline: auto;
}

.results-deliverable {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-navy-blue) 12%, transparent);
  background: var(--color-white);
  opacity: 0.58;
  filter: grayscale(1);
  transition:
    opacity 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.results-deliverable--available {
  opacity: 1;
  filter: none;
  border-color: color-mix(in srgb, var(--color-navy-blue) 22%, transparent);
  box-shadow: 0 10px 36px color-mix(in srgb, var(--color-navy-blue) 16%, transparent);
}

.results-deliverable__icon-col {
  flex: 0 0 14%;
  min-width: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.65rem;
  background: linear-gradient(
    125deg,
    color-mix(in srgb, var(--color-yellow) 28%, var(--color-white)) 0%,
    color-mix(in srgb, var(--color-green) 17%, var(--color-white)) 48%,
    color-mix(in srgb, var(--color-blue) 12%, var(--color-white)) 100%
  );
}

.results-deliverable--available .results-deliverable__icon-col {
  background: linear-gradient(125deg, color-mix(in srgb, var(--color-yellow) 28%, var(--color-white)) 0%, #abcd522b 48%, color-mix(in srgb, var(--color-blue) 12%, var(--color-white)) 100%);
}

.results-deliverable__pdf-icon {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--color-pink);
  line-height: 1;
}

.results-deliverable__body {
  flex: 1;
  min-width: 0;
  padding: 1.15rem 1.35rem 1.2rem;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
}

.results-deliverable__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 700;
  color: var(--color-navy-blue);
  line-height: 1.4;
}

.results-deliverable__download {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  text-decoration: none;
  color: var(--color-green);
}

.results-deliverable__download:hover {
  text-decoration: underline;
  color: color-mix(in srgb, var(--results-deliverable-download) 85%, var(--color-navy-blue));
}

.results-deliverable__download i {
  font-size: 0.85rem;
}

.results-deliverable__download--disabled {
  color: color-mix(in srgb, var(--color-text-muted) 90%, transparent);
  cursor: not-allowed;
  user-select: none;
}

@media (max-width: 575.98px) {
  .results-deliverable {
    flex-direction: column;
  }

  .results-deliverable__icon-col {
    flex: none;
    width: 100%;
    min-width: 0;
    padding: 0.85rem;
  }
}

/* --------------------------------------------------------------------------
   Header — current page indicator (inner pages use aria-current="page")
   -------------------------------------------------------------------------- */
.ym-header__nav a[aria-current="page"] {
  font-weight: 700;
  color: var(--color-navy-blue);
  border-bottom: 3px solid var(--color-yellow);
}

/* Current page in dropdown — no bottom inset on stacked sub-links */
.ym-header__nav .sub-menu a[aria-current="page"] {
  box-shadow: none;
  background-color: color-mix(in srgb, var(--color-yellow) 22%, transparent);
}

.ym-header__nav .current-menu-ancestor > a {
  font-weight: 700;
  color: var(--color-navy-blue);
}

/* Wordpress fixes */
.e-con.e-flex>.e-con-inner {
  max-width: unset;
  padding: 0 !important;
  gap: 0;
}
.e-con {
  padding: 0 !important;
}
