/* ===== VOLABIOS — site stylesheet ===== */

:root {
    --color-primary: #235884;
    --color-primary-dark: #1a456a;
    --color-accent-green: #68b13b;
    --color-accent-teal: #138e55;
    /* WCAG-AA-compliant darker shades for use when WHITE TEXT sits on top.
       These pass 4.5:1 against white; the brighter --color-accent-green
       and --color-accent-teal are reserved for decorative surfaces where
       no text sits directly on the colour. */
    --color-accent-green-on-dark: #3d7a1f;
    --color-accent-teal-on-dark: #0e6a40;
    --color-heading: #031b4e;
    --color-body: #212121;
    --color-muted: #6b7785;
    --color-soft: #f6faff;
    --color-border: #e3e8ef;
    --color-menu: #141570;
    /* Amber for "preliminary" status in the Policy Explorer. The palette has
       no warning colour; this one sits at 5.2:1 against white. Defined here
       because volabios.css is the source of truth for the app's tokens too. */
    --color-status-preliminary: #a15c00;

    --color-footer-bg: #1f1f1f;
    --color-footer-bg-2: #191b1b;
    --color-footer-text: #cfd3d8;
    --color-footer-heading: #ffffff;

    --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    --font-h5: "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;

    --container-max: 1200px;
    --header-height: 90px;
    --radius: 6px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-body);
    background: #ffffff;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: var(--color-primary-dark); text-decoration: underline; }

/* ===== Accessibility primitives ===== */

/* Visually-hidden helper (sr-only). Required for invisible form labels and
   any text that should be read by screen readers but not displayed. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Skip-to-content link: invisible until focused, then docks at the top
   of the viewport. Must be the first focusable element in the body. */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0.5rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--color-heading);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: top 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
    top: 0;
    color: #fff;
    text-decoration: none;
    outline: 3px solid #ffcc00;
    outline-offset: 2px;
}

/* Global focus indicator. Uses :focus-visible so mouse clicks don't show
   the outline but keyboard navigation does. The 3px gold outline is
   visible against every brand surface (white, primary blue, navy). */
:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #ffcc00;
    outline-offset: 2px;
    border-radius: 2px;
}

/* When the user prefers reduced motion, disable transitions/animations that
   could trigger vestibular issues. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.6em;
}

h1 { font-size: 2.4rem; letter-spacing: 1px; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.25rem; }
h5 { font-family: var(--font-h5); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.5px; }
h6 { font-size: 0.95rem; text-transform: uppercase; }

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    background: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--color-primary); }
.btn--ghost:hover { background: var(--color-primary); color: #fff; }
.btn--accent {
    background: linear-gradient(90deg, var(--color-accent-green-on-dark), var(--color-accent-teal-on-dark));
    border-color: transparent;
}
.btn--accent:hover { filter: brightness(0.92); }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 1.5rem;
}
.site-header__brand a { display: inline-flex; align-items: center; }
.site-header__brand img { max-height: 56px; width: auto; }
.site-header__nav { display: flex; align-items: center; gap: 1rem; }

.main-menu {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; gap: 1rem;
}
.main-menu a {
    color: var(--color-menu);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.main-menu a:hover { color: var(--color-primary); text-decoration: none; }
.main-menu a.is-active { color: var(--color-primary); }

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.5rem 0.7rem;
    font-size: 1.1rem;
    cursor: pointer;
}

.lang-switcher {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
}
.lang-switcher__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-menu);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.lang-switcher__link:hover {
    background: var(--color-soft);
    color: var(--color-primary);
    text-decoration: none;
}
.lang-switcher__link.is-active {
    background: var(--color-primary);
    color: #fff;
}

@media (max-width: 1024px) {
    .main-menu {
        position: absolute;
        top: var(--header-height);
        left: 0; right: 0;
        flex-direction: column;
        background: #fff;
        padding: 1rem 1.25rem;
        gap: 0.75rem;
        border-bottom: 1px solid var(--color-border);
        display: none;
    }
    .main-menu.is-open { display: flex; }
    .menu-toggle { display: inline-flex; }
}

/* ===== Page title bar ===== */
.titlebar {
    background: var(--color-soft);
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--color-border);
}
.titlebar h1 { margin: 0 0 0.25rem; color: var(--color-heading); }

.titlebar--banner {
    position: relative;
    padding: 6rem 0;
    /* Dark base colour behind the banner image: gives the white title a solid
       dark background for WCAG contrast (checkers read background-color, not
       the image), and shows while the image loads or if it is missing. */
    background-color: var(--color-heading);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-bottom: none;
    color: #fff;
}
.titlebar__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 27, 78, 0.55) 0%, rgba(35, 88, 132, 0.65) 100%);
}
.titlebar__content { position: relative; z-index: 1; }
.titlebar--banner h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.titlebar--banner .lead { color: rgba(255, 255, 255, 0.92); margin-top: 0.5rem; }

.breadcrumbs { color: var(--color-muted); font-size: 0.85rem; }
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }

/* ===== Hero slider ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--color-primary-dark);
}
.hero-slider__track {
    position: relative;
    width: 100%;
    height: clamp(420px, 78vh, 720px);
}
.hero-slider__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    opacity: 0;
    transition: opacity .8s ease;
    pointer-events: none;
}
.hero-slider__slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-slider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.1) 100%);
}
.hero-slider__content {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}
.hero-slider__title {
    display: block;
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    max-width: 760px;
    margin-bottom: 1.5rem;
}
.hero-slider__title > span { display: block; }
.hero-slider__line-1 {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.95;
}
.hero-slider__line-2 {
    font-size: clamp(2.6rem, 5.4vw, 4.4rem);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0.15em 0;
    /* Accent gradient for the headline word, like the original brand feel. */
    background: linear-gradient(90deg, #ffffff 0%, #68b13b 60%, #138e55 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-slider__line-3 {
    font-size: clamp(1.4rem, 2.4vw, 2.1rem);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    -webkit-text-fill-color: #fff;
}
.hero-slider__subtitle {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.6;
    max-width: 620px;
    margin: 0 0 1.75rem;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.btn--hero {
    background: linear-gradient(90deg, var(--color-accent-green-on-dark), var(--color-accent-teal-on-dark));
    border: 0;
    color: #fff;
    padding: 0.85rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(19, 142, 85, 0.4);
}
.btn--hero:hover { filter: brightness(1.08); color: #fff; text-decoration: none; box-shadow: 0 8px 24px rgba(19, 142, 85, 0.55); }

/* Slider controls */
.hero-slider__nav {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}
.hero-slider__arrow {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .15s ease, transform .15s ease;
}
.hero-slider__arrow:hover { background: rgba(255, 255, 255, 0.32); transform: scale(1.08); }
.hero-slider__dots { display: flex; gap: 0.5rem; align-items: center; }
.hero-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 0;
    cursor: pointer;
    padding: 0;
    transition: background .15s ease, transform .15s ease;
}
.hero-slider__dot.is-active { background: #fff; transform: scale(1.25); }

@media (max-width: 700px) {
    .hero-slider__nav { bottom: 0.75rem; gap: 0.75rem; }
    .hero-slider__arrow { width: 36px; height: 36px; font-size: 1.3rem; }
}

/* ===== Sections ===== */
.section { padding: 4rem 0; background: #fff; }
.section--soft { background: var(--color-soft); }
.section__header { text-align: center; margin-bottom: 2.5rem; }
.section__header .eyebrow {
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.section__header h2 { margin: 0; }
.section__title-left { margin-bottom: 1.25rem; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em 1.25rem; }

/* Inline content links (glossary, cross-page references) stand out from body
   text with a persistent accent underline; buttons keep their own styling. */
.prose a:not(.btn),
.article__body a:not(.btn) {
    text-decoration: underline;
    text-decoration-color: var(--color-accent-green);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.prose a:not(.btn):hover,
.article__body a:not(.btn):hover {
    color: var(--color-primary-dark);
    text-decoration-color: var(--color-primary-dark);
    text-decoration-thickness: 3px;
}

/* ===== Key facts panel (scroll-driven color transition + outlined digits) =====
   The section itself is transparent; the page <body> animates its background
   from white -> primary blue -> back, when the section enters/exits viewport.
   Driven by JS via the body classes .is-bg-primary / (default). */
body {
    transition: background-color 0.6s ease;
}
body.is-bg-primary { background-color: var(--color-primary); }

.keyfacts {
    /* Full-viewport, vertically-centred panel like the original
       `.elementor-section-height-full` + `.elementor-section-items-middle`. */
    min-height: 100vh;
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: var(--color-heading);
    transition: color 0.6s ease;
}
.keyfacts.is-active { color: #fff; }
.keyfacts h2 {
    color: inherit;
    font-size: 2.4rem;
    margin: 0 0 4rem;
    letter-spacing: 1px;
}
.keyfacts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.keyfact { padding: 1rem 0.5rem; }
.keyfact__value {
    /* Outlined digits — colored fill follows the section's scroll-driven
       color (heading-blue on white, white on the active blue background) so
       the numbers keep enough contrast to meet WCAG; the stroke preserves
       the outlined look. Original used 150px / 100px responsive. */
    font-family: var(--font-heading);
    font-size: clamp(5rem, 10vw, 9.5rem);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: inherit;
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke: 1px var(--color-primary-dark);
    transition: color 0.6s ease, -webkit-text-stroke-color 0.6s ease;
    margin-bottom: 1.25rem;
    display: inline-block;
    white-space: nowrap;
}
.keyfacts.is-active .keyfact__value {
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.84);
}
.keyfact__label {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    line-height: 1.35;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: inherit;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-primary-dark);
    margin: 0 auto;
    max-width: 220px;
    transition: border-color 0.6s ease, color 0.6s ease;
}
.keyfacts.is-active .keyfact__label {
    border-bottom-color: rgba(255, 255, 255, 0.25);
}
@media (max-width: 1024px) {
    .keyfact__value { font-size: clamp(4rem, 14vw, 6.5rem); }
    .keyfact__label { font-size: 1.25rem; }
}
@media (max-width: 700px) {
    .keyfacts { padding: 4rem 0; }
    .keyfacts__grid { grid-template-columns: 1fr; gap: 2rem; }
    .keyfacts h2 { margin-bottom: 2.5rem; font-size: 1.9rem; }
}

/* ===== Partner strip (homepage logo wall) ===== */
.partner-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    align-items: center;
}
.partner-strip__item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow .15s ease, transform .15s ease;
}
.partner-strip__item:hover { box-shadow: 0 6px 24px rgba(35, 88, 132, 0.12); transform: translateY(-2px); }
.partner-strip__item img { max-height: 80px; max-width: 100%; width: auto; object-fit: contain; }
@media (max-width: 1000px) { .partner-strip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 800px) { .partner-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .partner-strip { grid-template-columns: repeat(2, 1fr); } }

/* ===== Research phases section ===== */
.research-section { padding: 100px 0 140px; }
.research {
    display: grid;
    grid-template-columns: 50.4% 49.6%;
    align-items: center;
}
.research__media { position: relative; }
.research__img img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: inline-block;
}
.research__img--1 { text-align: left; }
.research__img--2 { text-align: right; margin-top: -320px; }
.research__copy { padding-left: 120px; }
.research__title {
    font-family: var(--font-heading);
    font-size: 36px;
    line-height: 46px;
    font-weight: 700;
    margin: 0;
    color: var(--color-heading);
}
.research__body {
    padding-top: 40px;
    color: #212121;
}
.research__body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.research__body ul li {
    position: relative;
    padding: 5px 0 5px 27px;
    font-size: 15px;
    font-weight: 500;
    line-height: 26px;
    color: #212121;
}
.research__body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23235884' fill-opacity='0.76'><path d='M13.485 1.929a1 1 0 0 1 .087 1.41l-7.5 8.5a1 1 0 0 1-1.45.057l-3.5-3.5a1 1 0 0 1 1.414-1.414l2.75 2.75 6.79-7.696a1 1 0 0 1 1.41-.107z'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px 15px;
}
.research__body p {
    margin: 15px 0 0;
    font-size: 16px;
    line-height: 26px;
    color: #212121;
}
.btn--research {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-top: 45px;
    padding: 20px 35px 15px 35px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
    text-transform: capitalize;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.btn--research:hover {
    background-color: var(--color-primary-dark);
    color: #fff;
    text-decoration: none;
}
.btn--research__arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}
.btn--research:hover .btn--research__arrow { transform: translateX(3px); }

@media (max-width: 900px) {
    .research-section { padding: 40px 0 80px; }
    .research { grid-template-columns: 1fr; }
    .research__img img { width: 100%; }
    .research__img--2 { text-align: left; margin-top: 20px; }
    .research__copy { padding-left: 0; padding-top: 30px; }
    .research__body { padding-top: 0; }
    .research__title { font-size: 28px; line-height: 36px; }
}

/* ===== Cards / grids ===== */
.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 6px 24px rgba(35, 88, 132, 0.1); transform: translateY(-2px); }
.card__media img { width: 100%; height: 200px; object-fit: cover; background: var(--color-soft); }
.card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card__meta { color: var(--color-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.card__title { font-size: 1.1rem; margin: 0 0 0.5rem; }
.card__title a { color: var(--color-heading); }
.card__title a:hover { color: var(--color-primary); text-decoration: none; }
.card__excerpt { color: var(--color-body); flex: 1; }

.partner-card { text-align: center; padding: 1.5rem; }
.partner-card__logo { height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.partner-card__logo img { max-height: 90px; max-width: 80%; object-fit: contain; }
.partner-card__name { font-weight: 700; color: var(--color-heading); margin-bottom: 0.25rem; }
.partner-card__country { font-size: 0.8rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ===== Article ===== */
.article { max-width: 820px; margin: 0 auto; padding: 3rem 0; }
.article__meta { color: var(--color-muted); font-size: 0.85rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
.article h1 { font-size: 2.2rem; }
.article__cover { margin: 1.5rem 0 2rem; }
.article__body img { margin: 1rem 0; border-radius: var(--radius); }
.article__body h2, .article__body h3 { margin-top: 2rem; }
.article__body blockquote {
    border-left: 4px solid var(--color-primary);
    background: var(--color-soft);
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    color: var(--color-body);
    font-style: italic;
}
.article__back { margin-top: 2rem; }

/* StreamField blocks */
.block-heading {
    font-family: var(--font-heading);
    font-size: 36px;
    line-height: 46px;
    font-weight: 700;
    color: var(--color-heading);
    margin: 3rem 0 1.5rem;
}
.block-heading:first-child { margin-top: 0; }
.block-heading strong { font-weight: 700; color: var(--color-primary); }
.block-image { margin: 2rem 0; }
.block-image figcaption { color: var(--color-muted); font-size: 0.85rem; margin-top: 0.5rem; text-align: center; }
.block-callout {
    background: var(--color-soft);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

/* All article-body blocks (heading, paragraph, image, split, …) span the
   full container width, matching the original's stretched section layout. */

/* ===== Partner detail page ===== */
.partner-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 2rem 0 3rem;
    align-items: start;
}
@media (max-width: 900px) { .partner-detail { grid-template-columns: 1fr; gap: 2rem; } }

.partner-detail__name {
    font-family: var(--font-heading);
    font-size: 36px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 0.25rem;
}
.partner-detail__location {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-primary);
    margin: 0 0 2rem;
    letter-spacing: 0.02em;
}
.partner-detail__heading {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 1rem;
}
.partner-detail__body { color: var(--color-body); line-height: 1.7; }
.partner-detail__body p { margin: 0 0 1rem; }

.partner-detail__aside {
    padding: 1.5rem;
    background: var(--color-soft);
    border-radius: 12px;
    text-align: center;
}
.partner-detail__logo {
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.partner-detail__logo img { max-width: 100%; height: auto; }
.partner-detail__website {
    margin: 0 0 1.25rem;
    word-break: break-word;
}
.partner-detail__website a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}
.partner-detail__website a:hover { text-decoration: underline; }

.partner-detail__social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}
.partner-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.partner-social:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.partner-role {
    background: #031b4e;
    color: #fff;
    padding: 4rem 0;
}
.partner-role__heading {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.25rem;
}
.partner-role__body { color: rgba(255, 255, 255, 0.9); line-height: 1.7; font-size: 16px; }
.partner-role__body p { margin: 0 0 1rem; }
.partner-role__body a { color: #fff; text-decoration: underline; }

/* ===== Contact section block ===== */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
    align-items: start;
}
@media (max-width: 900px) { .contact-section { grid-template-columns: 1fr; gap: 2rem; } }

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-soft);
    border-radius: 12px;
    margin-bottom: 2rem;
}
.contact-card__icon {
    flex: 0 0 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-card__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.contact-card__value { margin: 0.25rem 0 0; font-size: 16px; color: var(--color-heading); }
.contact-card__value a { color: var(--color-primary); font-weight: 600; }

.contact-section__subtitle {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 1rem;
}
.contact-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.75rem;
}
.contact-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}
.contact-social__link:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.contact-section__title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 1.5rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form__row { display: block; }
.contact-form__row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) { .contact-form__row--split { grid-template-columns: 1fr; } }
.contact-form__input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: var(--color-heading);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(35, 88, 132, 0.12);
}
.contact-form__textarea { resize: vertical; min-height: 140px; }
.contact-form__submit {
    align-self: flex-start;
    padding: 0.9rem 2rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.contact-form__submit:hover { background: var(--color-primary-dark); }

/* ===== Stats panel block (blue strip with white numbers) ===== */
.stats-panel {
    background: var(--color-primary);
    margin: 3rem 0;
    padding: 4rem 0;
    border-radius: 12px;
    color: #fff;
}
.stats-panel__title {
    text-align: center;
    color: #fff;
    margin: 0 0 2rem;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
}
.stats-panel__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1rem;
}
@media (max-width: 900px) { .stats-panel__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-panel__grid { grid-template-columns: 1fr; } }
.stats-panel__item { text-align: center; }
.stats-panel__value {
    font-family: var(--font-heading);
    font-size: 46px;
    line-height: 58px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.stats-panel__label {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 0.25rem;
    letter-spacing: 0.04em;
}

/* ===== Raw HTML embeds (e.g. Datawrapper map) ===== */
.block-raw_html {
    display: block;
    margin: 3rem auto;
    max-width: 1000px;
}
.block-raw_html iframe { width: 100%; }

/* ===== Partner logo strip (in-body) ===== */
.partner-showcase { margin: 2rem 0 3rem; }

/* ===== Text + image split block ===== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 4rem 0;
}
.split--left { direction: rtl; } /* image on left */
.split--left > * { direction: ltr; }
.split__title {
    font-family: var(--font-heading);
    font-size: 36px;
    line-height: 46px;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: var(--color-heading);
}
.split__title strong { font-weight: 700; color: var(--color-primary); }
.split__body {
    color: #212121;
    font-size: 16px;
    line-height: 26px;
}
.split__body p { margin: 0 0 1rem; }
.split__body p:last-child { margin-bottom: 0; }
.split__body p strong { color: var(--color-heading); }
.split__body ul {
    list-style: disc inside;
    padding: 0;
    margin: 0 0 1rem;
}
.split__media { text-align: center; }
.split__img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: inline-block;
}
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; gap: 2rem; margin: 2.5rem 0; }
    .split--left { direction: ltr; }
    .split--left .split__media { order: -1; }
    .split__title { font-size: 28px; line-height: 36px; }
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}
.pagination a, .pagination span {
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-primary);
}
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ===== Filter chips ===== */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chips a {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--color-primary);
}
.chips a.is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ===== Footer ===== */
.site-footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 0;
    margin-top: 4rem;
}
.site-footer a {
    color: #fff;
    transition: color 0.15s ease, opacity 0.15s ease;
}
.site-footer a:hover { color: #fff; opacity: 0.75; text-decoration: none; }

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}
.footer-col p,
.footer-col li {
    font-size: 14px;
    line-height: 22px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-col--funding .footer-eu-logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin-bottom: 1.25rem;
}
.footer-col--funding .footer-text { margin: 0 0 1rem; padding-right: 1rem; }

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-menu li { margin-bottom: 0.5rem; }
.footer-menu a {
    font-weight: 500;
    font-size: 15px;
    color: #fff;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
}
.newsletter-form { margin-bottom: 1.5rem; }
.newsletter-form__row {
    display: flex;
    align-items: stretch;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}
.newsletter-form__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 14px;
    color: #fff;
}
.newsletter-form__input::placeholder { color: rgba(255, 255, 255, 0.6); }
.newsletter-form__input:focus { outline: none; }
.newsletter-form__submit {
    flex: 0 0 44px;
    padding: 0 1rem;
    background: #fff;
    color: var(--color-primary);
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.newsletter-form__submit:hover { background: rgba(255, 255, 255, 0.85); }
.newsletter-form__terms {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}
.newsletter-form__terms input { margin-top: 3px; flex-shrink: 0; accent-color: #fff; }
.newsletter-form__terms a { color: #fff; text-decoration: underline; }

.footer-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.75rem;
}
.site-footer .footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    opacity: 1;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.site-footer .footer-social__link:hover {
    background: #fff;
    color: var(--color-primary);
    opacity: 1;
    transform: translateY(-2px);
    text-decoration: none;
}

.footer-bottom {
    padding: 1.25rem 0;
    background: #031b4e;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-size: 13px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===== Icon-card grid ===== */
.icon-cards { margin: 4rem 0; background: var(--color-soft); padding: 4rem 0; border-radius: 12px; }
.icon-cards__title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 36px;
    line-height: 46px;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 0.5rem;
}
.icon-cards__title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}
.icon-cards .lead { text-align: center; max-width: 760px; margin: 0.5rem auto 2.5rem; color: #212121; }
.icon-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}
/* 4 cards → fit in a single row (Partners page) */
.icon-cards__grid:has(> .icon-card:nth-child(4):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* 8 cards → 4+4 */
.icon-cards__grid:has(> .icon-card:nth-child(8):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1000px) {
    .icon-cards__grid,
    .icon-cards__grid:has(> .icon-card:nth-child(4):last-child),
    .icon-cards__grid:has(> .icon-card:nth-child(8):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 1rem;
    }
}
@media (max-width: 600px) {
    .icon-cards__grid,
    .icon-cards__grid:has(> .icon-card:nth-child(4):last-child),
    .icon-cards__grid:has(> .icon-card:nth-child(8):last-child) {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}
.icon-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem 1.75rem 1.75rem;
    text-align: left;
    transition: box-shadow .2s ease, transform .2s ease;
    box-shadow: 0 4px 16px rgba(20, 50, 80, 0.04);
}
.icon-card:hover { box-shadow: 0 8px 28px rgba(35, 88, 132, 0.12); transform: translateY(-3px); }
.icon-card__icon {
    position: absolute;
    top: 0.5rem;
    right: 1.25rem;
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--color-primary);
    opacity: 0.55;
    pointer-events: none;
}
.icon-card__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-heading);
    margin: 0 0 0.75rem;
    text-transform: capitalize;
}
.icon-card__body { color: #212121; margin: 0; font-size: 15px; line-height: 24px; }

/* ===== Accordion ===== */
.accordion { margin: 2rem 0; }
.accordion__item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    background: #fff;
}
.accordion__item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-heading);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after {
    content: "+";
    font-size: 1.4rem;
    line-height: 1;
    color: var(--color-primary);
}
.accordion__item[open] summary::after { content: "−"; }
.accordion__item[open] summary { border-bottom: 1px solid var(--color-border); }
.accordion__body { padding: 1rem 1.25rem; }

/* ===== Contact info cards ===== */
.contact-info { margin: 2rem 0; }
.contact-info__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.contact-info__card {
    background: var(--color-soft);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--color-primary);
}
.contact-info__card h4 {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.contact-info__card p { margin: 0; }

/* ===== Image collage block ===== */
.image-collage {
    position: relative;
    margin: 2rem 0;
}
.image-collage__primary img { border-radius: var(--radius); width: 100%; height: auto; }
.image-collage__secondary {
    position: absolute;
    right: -1rem;
    bottom: -1.5rem;
    width: 45%;
    border: 6px solid #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.image-collage__secondary img { width: 100%; height: auto; display: block; }
@media (max-width: 700px) {
    .image-collage__secondary { position: static; width: 100%; margin-top: 1rem; }
}

/* ===== Partner showcase wrapper (StreamField block) ===== */
.partner-showcase { margin: 2rem 0; }

/* ===== Newsletter popup ===== */
.newsletter-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.newsletter-popup.is-open { display: flex; }
.newsletter-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 27, 78, 0.6);
    backdrop-filter: blur(2px);
    animation: nlPopupFade 0.2s ease;
}
.newsletter-popup__dialog {
    position: relative;
    background: var(--color-primary, #235884);
    color: #fff;
    border-radius: 12px;
    padding: 2.25rem 2rem 1.75rem;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    animation: nlPopupSlide 0.25s ease;
}
@keyframes nlPopupFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nlPopupSlide {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.newsletter-popup__close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    opacity: 0.8;
    transition: opacity 0.15s ease;
}
.newsletter-popup__close:hover { opacity: 1; }
.newsletter-popup__title {
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}
.newsletter-popup__body {
    margin: 0 0 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}
.newsletter-popup__form { margin-bottom: 0.5rem; }
.newsletter-popup__form .newsletter-form__row { margin-bottom: 0.75rem; }
.newsletter-popup__status {
    margin: 0.75rem 0 0;
    min-height: 1.2em;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}
.newsletter-popup__status.is-error { color: #ffd0d0; }
.newsletter-popup__status.is-success { color: #c8f7c5; }
.newsletter-popup__status.is-pending { color: rgba(255, 255, 255, 0.75); }
.newsletter-popup__later {
    display: block;
    margin: 0.75rem auto 0;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}
.newsletter-popup__later:hover { color: #fff; }
body.has-popup-open { overflow: hidden; }
@media (max-width: 540px) {
    .newsletter-popup__dialog { padding: 2rem 1.25rem 1.5rem; }
    .newsletter-popup__title { font-size: 1.35rem; }
}

/* ===== Living Labs agenda (StreamField block) ===== */
.agenda { margin: 1.5rem 0; }
.agenda__group { margin-bottom: 2.5rem; }
.agenda__group:last-child { margin-bottom: 0; }
.agenda__heading {
    font-family: var(--font-h5);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}
.agenda__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.agenda__item {
    display: flex;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.agenda__item:hover { box-shadow: 0 6px 24px rgba(35, 88, 132, 0.1); transform: translateY(-2px); }
.agenda__tile {
    flex: 0 0 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.4rem;
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    line-height: 1.15;
}
.agenda__month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; opacity: 0.9; }
.agenda__day { font-size: 1.6rem; font-weight: 700; font-family: var(--font-heading); }
.agenda__year { font-size: 0.72rem; opacity: 0.85; }
.agenda__body { flex: 1; padding: 0.85rem 1rem 0.85rem 0; display: flex; flex-direction: column; justify-content: center; }
.agenda__title { font-size: 1.05rem; margin: 0 0 0.25rem; }
.agenda__title a { color: var(--color-heading); }
.agenda__title a:hover { color: var(--color-primary); text-decoration: none; }
.agenda__meta { color: var(--color-muted); font-size: 0.85rem; margin: 0; }
.agenda__cats { margin: 0.45rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.agenda__cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    background: var(--color-soft);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
}
.agenda__media {
    flex: 0 0 380px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.6rem 0.7rem 0.8rem;
}
.agenda__flag {
    height: 60px;
    width: auto;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    flex: 0 0 auto;
    align-self: center;
    display: block;
}
.agenda__mapwrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.agenda__map {
    width: 100%;
    height: 250px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-soft);
    z-index: 0;
}
.agenda__maplink {
    align-self: flex-end;
    font-size: 0.78rem;
    color: var(--color-primary);
    white-space: nowrap;
}
.agenda-map { margin-top: 2.5rem; }
.agenda-map__canvas {
    height: 420px;
    margin-top: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    z-index: 0;
}
/* Leaflet zoom +/- buttons are <a> elements; override the in-body link
   underline (.article__body/.prose a) which otherwise wins on specificity. */
.leaflet-control-zoom a,
.leaflet-control-zoom a:hover {
    text-decoration: none !important;
}
.agenda__group--past .agenda__heading { color: var(--color-muted); }
.agenda__item--past { opacity: 0.72; }
.agenda__item--past .agenda__tile { background: var(--color-muted); }
.agenda__item--past:hover { opacity: 1; }
@media (max-width: 640px) {
    .agenda__item { flex-wrap: wrap; }
    .agenda__tile { flex-basis: 60px; }
    .agenda__body { flex-basis: calc(100% - 60px - 1rem); padding-right: 0.85rem; }
    .agenda__media {
        flex: 0 0 100%;
        flex-direction: row;
        align-items: center;
        padding-top: 0;
    }
}

/* ===== Event documents (downloads) ===== */
.article__docs { margin: 2rem 0; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list__item {
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    background: var(--color-soft);
}
.doc-list__meta { color: var(--color-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.muted { color: var(--color-muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 0.78rem; font-weight: 600; }
.lead { font-size: 1.15rem; color: var(--color-muted); }
.spacer-sm { height: 1.5rem; }
.spacer { height: 3rem; }
