/* EU-CARE theme · resilientuniversities.eu */

:root {
    --teal-950: #002f2e;
    --teal-900: #003e3d;
    --teal: #005e5d;
    --teal-600: #0b716f;
    --teal-100: #d6e8e5;
    --teal-50: #edf5f3;
    --cream: #f9f3e7;
    --cream-2: #f2e8d5;
    --orange: #ff6600;
    --orange-text: #b34700;
    --ink: #142221;
    --muted: #4a5b5a;
    --line: #d7e1df;
    --white: #ffffff;
    --serif: var(--gh-font-heading, "Lora", Georgia, "Times New Roman", serif);
    --sans: var(--gh-font-body, "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif);
    --radius: 14px;
    --radius-lg: 22px;
    --gutter: 24px;
    --max: 1200px;
    --narrow: 740px;
    --shadow: 0 1px 2px rgba(0, 47, 46, .06), 0 8px 24px rgba(0, 47, 46, .08);
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-950); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; color: var(--teal-950); margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; }
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--teal-950); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
    font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
    transition: background-color .18s, color .18s, border-color .18s, transform .18s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 8px 16px; font-size: .9375rem; }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-950); color: var(--white); }
.btn--accent { background: var(--orange); color: #1f1300; }
.btn--accent:hover { background: #ff7a1f; color: #1f1300; }
.btn--ghost-light { border-color: rgba(249, 243, 231, .55); color: var(--cream); }
.btn--ghost-light:hover { border-color: var(--cream); background: rgba(249, 243, 231, .08); color: var(--cream); }
.btn--outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--outline:hover { background: var(--teal); color: var(--white); }
.btn .arrow { transition: transform .18s; }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(3px); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--teal); text-decoration: none; }
.text-link:hover { color: var(--teal-950); text-decoration: underline; }
.text-link--light { color: var(--cream); }
.text-link--light:hover { color: var(--white); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    margin: 0 0 14px; font: 600 .8125rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--orange); }
.eyebrow--light { color: var(--cream); }
.eyebrow--link { text-decoration: none; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--teal-50); color: var(--teal); font-size: .875rem; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { flex-shrink: 0; display: block; }
.brand-logo { height: 46px; width: auto; }
.brand-logo--light { display: none; }
body:has(.hero) .site-header { background: var(--teal); border-bottom-color: rgba(249, 243, 231, .14); }
body:has(.hero) .site-header .brand-logo--dark { display: none; }
body:has(.hero) .site-header .brand-logo--light { display: block; }

.main-nav { flex: 1; }
.main-nav .nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav .nav a {
    display: block; padding: 8px 12px; border-radius: 8px;
    color: var(--ink); font-weight: 600; font-size: 1rem; text-decoration: none;
}
.main-nav .nav a:hover { background: var(--teal-50); color: var(--teal-950); }
.main-nav .nav-current a { color: var(--teal); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
body:has(.hero) .site-header .main-nav .nav a { color: var(--cream); }
body:has(.hero) .site-header .main-nav .nav a:hover { background: rgba(249, 243, 231, .1); color: var(--white); }
body:has(.hero) .site-header .main-nav .nav-current a { color: var(--white); }
.main-nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
    display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0;
    border: 0; border-radius: 999px; background: transparent; color: var(--teal-950); cursor: pointer;
}
.icon-btn:hover { background: var(--teal-50); }
body:has(.hero) .site-header .icon-btn { color: var(--cream); }
body:has(.hero) .site-header .icon-btn:hover { background: rgba(249, 243, 231, .1); }
body:has(.hero) .site-header .header-cta { background: var(--orange); color: #1f1300; }
.menu-toggle { display: none; }
.menu-bars { display: grid; gap: 6px; width: 22px; }
.menu-bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
.menu-open .menu-bars span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-bars span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1080px) {
    .header-inner { gap: 16px; }
    .main-nav .nav a { padding: 8px 8px; font-size: .9375rem; }
}
@media (max-width: 960px) {
    :root { --header-h: 68px; }
    .brand-logo { height: 40px; }
    .menu-toggle { display: inline-grid; }
    .header-cta { display: none; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
        display: none; flex-direction: column; gap: 24px;
        padding: 24px var(--gutter) 40px; background: var(--white); overflow-y: auto;
    }
    .menu-open .main-nav { display: flex; }
    .main-nav .nav { flex-direction: column; gap: 0; }
    .main-nav .nav a, body:has(.hero) .site-header .main-nav .nav a { padding: 14px 0; font-size: 1.25rem; font-family: var(--serif); font-weight: 500; color: var(--teal-950); border-bottom: 1px solid var(--line); border-radius: 0; }
    .main-nav .nav-current a, body:has(.hero) .site-header .main-nav .nav-current a { box-shadow: none; color: var(--orange-text); }
    .main-nav-cta { display: block; }
    .menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { background: var(--teal); color: var(--cream); overflow: hidden; position: relative; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
.hero-title { color: var(--cream); font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); line-height: 1.08; margin-bottom: 22px; }
.hero-intro { font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem); line-height: 1.55; max-width: 36em; color: rgba(249, 243, 231, .9); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { justify-self: end; width: min(100%, 400px); }
.brand-mark .mark-left { fill: var(--cream); }
.brand-mark .mark-right { fill: var(--orange); }
.hero-art .brand-mark { width: 100%; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-art .brand-mark { animation: none; } html { scroll-behavior: auto; } }

.figures {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
    margin: 0 0 0; padding: 0; border-top: 1px solid rgba(249, 243, 231, .2);
}
.figures > div { padding: 28px 20px 40px 0; }
.figures > div + div { padding-left: 20px; border-left: 1px solid rgba(249, 243, 231, .14); }
.figures dt { font: 500 clamp(2.25rem, 1.8rem + 1.4vw, 3rem)/1 var(--serif); color: var(--cream); }
.figures dt::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--orange); margin: 14px 0 12px; }
.figures dd { margin: 0; font-size: .96875rem; line-height: 1.4; color: rgba(249, 243, 231, .85); }

@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 40px; gap: 32px; }
    .hero-art { order: -1; justify-self: start; width: 120px; }
    .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .figures > div, .figures > div + div { padding: 22px 16px 22px 0; border-left: 0; border-bottom: 1px solid rgba(249, 243, 231, .14); }
    .figures > div:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(249, 243, 231, .14); }
    .figures > div:last-child { grid-column: 1 / -1; border-bottom: 0; padding-bottom: 36px; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--compact { padding: 48px 0; }
.section--tint { background: var(--cream); }
.section--list { padding-top: 56px; }
.section + .section--list { padding-top: 0; }
.section-title { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.625rem); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head .section-title { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.split .prose { font-size: 1.1875rem; }
.list-heading { font-size: 1.625rem; margin-bottom: 24px; }
.empty { color: var(--muted); font-size: 1.125rem; padding: 32px; background: var(--teal-50); border-radius: var(--radius); }
@media (max-width: 860px) {
    .section { padding: 64px 0; }
    .split { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Work packages ---------- */
.wp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; counter-reset: wp; }
.wp-card { counter-increment: wp; }
.wp-card a {
    display: flex; flex-direction: column; height: 100%;
    padding: 26px 22px 22px; border-radius: var(--radius); background: var(--white);
    border: 1px solid var(--line); text-decoration: none; color: var(--ink);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.wp-card a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal); }
.wp-num::before { content: "WP" counter(wp); font: 600 .875rem/1 var(--sans); letter-spacing: .06em; color: var(--orange-text); }
.wp-card .wp-num { display: inline-block; align-self: flex-start; margin-bottom: 18px; padding: 6px 10px; border-radius: 999px; background: #fff0e5; }
.wp-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.wp-card p { font-size: .96875rem; color: var(--muted); margin-bottom: 18px; }
.wp-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--teal); }

.wp-list { list-style: none; margin: 0; padding: 0; counter-reset: wp; border-top: 1px solid var(--line); }
.wp-row { counter-increment: wp; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--line); }
.wp-row .wp-num::before { font: 500 2.75rem/1 var(--serif); color: var(--teal); letter-spacing: -.02em; }
.wp-row h2 { font-size: 1.625rem; margin-bottom: 8px; }
.wp-row h2 a { color: var(--teal-950); text-decoration: none; }
.wp-row h2 a:hover { color: var(--teal); text-decoration: underline; }
.wp-row p { color: var(--muted); margin: 0; max-width: 60ch; }
.wp-back { padding-top: 16px; padding-bottom: 32px; }
.wp-back .arrow { transform: rotate(180deg); }
@media (max-width: 720px) {
    .wp-row { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
    .wp-row .btn { justify-self: start; }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 16 / 9; background: var(--teal-50); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media--blank { display: grid; place-items: center; background: var(--teal); }
.card-media--blank .brand-mark { width: 30%; opacity: .95; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-tag { margin: 0 0 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--orange-text); }
.card-title { font-size: 1.3125rem; margin-bottom: 10px; }
.card-excerpt { color: var(--muted); font-size: 1rem; }
.card-meta { margin: auto 0 0; font-size: .9375rem; color: var(--muted); }
.badge { position: absolute; top: 14px; left: 14px; padding: 4px 12px; border-radius: 999px; background: var(--orange); color: #1f1300; font-size: .8125rem; font-weight: 700; }
.event-when { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--teal); font-weight: 600; }
.event-when svg { flex-shrink: 0; margin-top: 3px; }

/* ---------- Resources ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 600 .9375rem/1.2 var(--sans); cursor: pointer; }
.chip:hover { border-color: var(--teal); }
.chip.is-active { background: var(--teal); border-color: var(--teal); color: var(--white); }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.resource-link { display: flex; flex-direction: column; height: 100%; padding: 24px; border-radius: var(--radius); background: var(--cream); color: var(--ink); text-decoration: none; border: 1px solid transparent; transition: border-color .2s, transform .2s; }
.resource-link:hover { border-color: var(--teal); transform: translateY(-2px); }
.resource-type { align-self: flex-start; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: var(--white); color: var(--teal); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.resource-title { font-size: 1.25rem; }
.resource-excerpt { color: var(--muted); font-size: 1rem; }
.resource-meta { margin: auto 0 0; display: flex; justify-content: space-between; align-items: center; font-size: .9375rem; color: var(--muted); }
.resource-open { display: inline-flex; gap: 6px; align-items: center; color: var(--teal); font-weight: 600; }
.resource[hidden] { display: none; }
.planned { margin-top: 64px; padding: 40px; border-radius: var(--radius-lg); background: var(--teal-50); }
.planned:first-child { margin-top: 0; }
.planned-content { font-size: 1.0625rem; max-width: none; }
@media (max-width: 600px) { .planned { padding: 24px 20px; } }

/* ---------- Page hero ---------- */
.page-hero { background: var(--cream); overflow: hidden; }
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 56px; }
.page-title { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem); line-height: 1.1; margin-bottom: 0; max-width: 20ch; }
.page-lede { margin: 20px 0 0; font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem); color: var(--muted); max-width: 42em; }
.page-hero-art { justify-self: end; width: 170px; }
.page-hero-art .mark-left { fill: var(--teal); }
.page-hero--accent { background: var(--teal); }
.page-hero--accent .page-title { color: var(--cream); }
.page-hero--accent .page-lede { color: rgba(249, 243, 231, .88); }
.page-hero--accent .eyebrow { color: var(--cream); }
.page-hero--accent .page-hero-art .mark-left { fill: var(--cream); }
@media (max-width: 720px) {
    .page-hero-inner { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
    .page-hero-art { display: none; }
}
.page-body { padding: 56px 0 72px; }
.page-intro { padding-top: 48px; }

/* ---------- Article ---------- */
.article-head { padding: 64px 0 32px; }
.article-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); line-height: 1.12; }
.article-lede { display: flex; gap: 10px; align-items: flex-start; font-size: 1.25rem; color: var(--muted); }
.article-lede svg { margin-top: 6px; flex-shrink: 0; color: var(--teal); }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); font-size: .96875rem; margin: 0; }
.article-image { margin: 8px auto 40px; }
.article-image img { width: 100%; border-radius: var(--radius-lg); }
.article-image figcaption { margin-top: 10px; font-size: .9375rem; color: var(--muted); text-align: center; }
.article > .gh-content { padding-bottom: 80px; }

/* ---------- Prose & Ghost cards ---------- */
.prose { font-size: 1.125rem; line-height: 1.72; }
.gh-content > * + * { margin-top: 1.1em; }
.gh-content > :first-child { margin-top: 0; }
.gh-content p, .gh-content ul, .gh-content ol { margin-bottom: 0; }
.gh-content h2 { font-size: 1.875rem; margin: 2em 0 .5em; }
.gh-content h3 { font-size: 1.4375rem; margin: 1.7em 0 .4em; }
.gh-content h4 { font-family: var(--sans); font-weight: 700; font-size: 1.125rem; margin: 1.5em 0 .3em; }
.gh-content h2 + *, .gh-content h3 + * { margin-top: 0; }
.gh-content li + li { margin-top: .4em; }
.gh-content li::marker { color: var(--orange-text); }
.gh-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--orange); font-family: var(--serif); font-size: 1.3125rem; color: var(--teal-950); }
.gh-content hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.gh-content figure { margin: 1.8em 0; }
.gh-content figcaption { font-size: .9375rem; color: var(--muted); margin-top: 8px; text-align: center; }
.gh-content img { border-radius: var(--radius); }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.gh-content th, .gh-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.gh-content th { font-weight: 700; color: var(--teal-950); background: var(--teal-50); }
.gh-content .kg-width-wide { position: relative; width: min(1040px, calc(100vw - var(--gutter) * 2)); left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full img { border-radius: 0; }
.gh-content .kg-callout-card { padding: 22px 24px; border-radius: var(--radius); gap: 14px; }
.gh-content .kg-callout-card.kg-callout-card-grey, .gh-content .kg-callout-card.kg-callout-card-white { background: var(--cream); }
.gh-content .kg-callout-card.kg-callout-card-accent { background: var(--teal); }
.gh-content .kg-callout-card.kg-callout-card-green { background: var(--teal-50); }
.gh-content .kg-callout-text { font-size: 1.0625rem; line-height: 1.65; }
.gh-content .kg-callout-emoji { font-size: 1.375rem; line-height: 1.5; }
.gh-content .kg-button-card a.kg-btn, .gh-content .kg-btn-accent { background: var(--teal) !important; border-radius: 999px !important; font-family: var(--sans); }
.gh-content .kg-file-card-container { border-radius: var(--radius); border-color: var(--line); background: var(--cream); }
.gh-content .kg-file-card-icon { color: var(--teal); }
.gh-content .kg-bookmark-container { border-radius: var(--radius); }
.gh-content .kg-toggle-card { border-radius: var(--radius); }
.gh-content .kg-header-card { border-radius: var(--radius-lg); }

/* Consortium page: partner headings as card-like dividers */
.consortium-content h2 { padding-top: 1.2em; border-top: 1px solid var(--line); }
.consortium-content > h2:first-child { border-top: 0; padding-top: 0; }

/* ---------- People ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.person { display: flex; flex-direction: column; }
.person-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--teal); margin-bottom: 16px; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.person-initials { display: grid; place-items: center; height: 100%; }
.person-initials .brand-mark { width: 40%; }
.person-name { font-size: 1.3125rem; margin-bottom: 4px; }
.person-role { color: var(--muted); font-size: 1rem; margin-bottom: 10px; }
.person-bio summary { cursor: pointer; font-weight: 600; color: var(--teal); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.person-bio summary::-webkit-details-marker { display: none; }
.person-bio summary::after { content: "+"; font-size: 1.25rem; line-height: 1; }
.person-bio[open] summary::after { content: "–"; }
.person-bio .gh-content { margin-top: 12px; font-size: .96875rem; line-height: 1.6; color: var(--ink); }

/* ---------- NEIRU ---------- */
.section--neiru { background: var(--cream); }
.neiru-band { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: center; }
.neiru-band p { font-size: 1.1875rem; max-width: 40em; color: var(--muted); margin-bottom: 28px; }
.neiru-art .mark-left { fill: var(--teal); }
@media (max-width: 760px) { .neiru-band { grid-template-columns: 1fr; gap: 24px; } .neiru-art { width: 110px; } }
.neiru-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; padding-top: 56px; padding-bottom: 80px; }
.neiru-form-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; border-radius: var(--radius-lg); background: var(--cream); border-top: 4px solid var(--orange); }
.neiru-form-card h2 { font-size: 1.5rem; }
.neiru-form-card p { color: var(--muted); }
.small { font-size: .9375rem; }
@media (max-width: 900px) { .neiru-layout { grid-template-columns: 1fr; gap: 40px; } .neiru-form-card { position: static; } }

/* ---------- Forms ---------- */
.stack-form { display: grid; gap: 8px; }
.stack-form label { font-weight: 600; font-size: .9375rem; margin-top: 8px; }
.stack-form button { margin-top: 12px; }
input[type="email"], input[type="text"] {
    width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid #b9c9c6; background: var(--white);
    font: 400 1rem/1.3 var(--sans); color: var(--ink);
}
input:focus { outline: 3px solid rgba(255, 102, 0, .45); outline-offset: 1px; border-color: var(--teal); }
.btn-loading, .form-msg { display: none; }
form.loading .btn-label { display: none; }
form.loading .btn-loading { display: inline; }
form.success .form-msg--success, form.error .form-msg--error { display: block; }
.form-msg { margin: 10px 0 0; font-weight: 600; font-size: .9375rem; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--teal); color: var(--cream); }
.newsletter-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.newsletter h2 { color: var(--cream); font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); }
.newsletter p { margin: 0; color: rgba(249, 243, 231, .88); font-size: 1.125rem; }
.signup-form { display: flex; flex-wrap: wrap; gap: 10px; }
.signup-form input { flex: 1 1 240px; border-color: transparent; }
.signup-form .form-msg { flex-basis: 100%; color: var(--cream); }
@media (max-width: 820px) { .newsletter-inner { grid-template-columns: 1fr; gap: 24px; padding-top: 48px; padding-bottom: 48px; } }

/* ---------- Partners ---------- */
.section--partners { background: var(--teal-950); color: var(--cream); }
.section--partners .section-title { color: var(--cream); }
.partner-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.partner-tiles li { display: flex; flex-direction: column; gap: 18px; padding: 24px 20px; border-radius: var(--radius); background: rgba(249, 243, 231, .05); border: 1px solid rgba(249, 243, 231, .1); }
.partner-tiles img { height: 56px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.partner-tiles span { font-size: .9375rem; color: rgba(249, 243, 231, .78); line-height: 1.45; }
.partner-tiles strong { display: block; color: var(--cream); font-size: 1.0625rem; margin-bottom: 4px; }
.associated { margin: 28px 0 0; color: rgba(249, 243, 231, .8); }
@media (max-width: 1000px) { .partner-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .partner-tiles { grid-template-columns: 1fr; } .partner-tiles li { flex-direction: row; align-items: center; } .partner-tiles img { height: 44px; width: 88px; flex-shrink: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-950); color: rgba(249, 243, 231, .8); padding: 64px 0 28px; font-size: 1rem; }
.site-footer a { color: var(--cream); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-bottom: 40px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer-tagline { max-width: 34em; }
.footer-heading { font: 700 .8125rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--cream); margin-bottom: 16px; }
.footer-nav .nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-nav a, .footer-link { color: rgba(249, 243, 231, .85); text-decoration: none; }
.footer-nav a:hover, .footer-link:hover { color: var(--white); text-decoration: underline; }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(249, 243, 231, .08); }
.footer-social a:hover { background: rgba(249, 243, 231, .16); }
.partners { padding: 28px 0; border-top: 1px solid rgba(249, 243, 231, .12); }
.partners-label { font: 700 .8125rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--cream); margin-bottom: 18px; }
.partners-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px 44px; align-items: center; }
.partners-list img { height: 40px; width: auto; opacity: .88; transition: opacity .2s; }
.partners-list a:hover img { opacity: 1; }
.footer-eu { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; padding: 28px 0; border-top: 1px solid rgba(249, 243, 231, .12); }
.eu-emblem { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 8px; background: var(--white); color: #003399; font-weight: 600; font-size: .9375rem; line-height: 1.2; }
.eu-flag { width: 60px; height: 40px; }
.eu-disclaimer { margin: 0; font-size: .875rem; line-height: 1.55; color: rgba(249, 243, 231, .7); max-width: 70em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(249, 243, 231, .12); font-size: .9375rem; }
@media (max-width: 860px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-eu { grid-template-columns: 1fr; gap: 16px; }
    .eu-emblem { justify-self: start; }
}

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; color: var(--muted); }
.pagination:has(> span:first-child + .pagination-info + span:last-child) { display: none; }

/* Ghost search button inherits; keep member portal trigger hidden */
.gh-portal-triggerbtn-wrapper, #ghost-portal-root .gh-portal-triggerbtn-container { display: none !important; }

/* Left-align page content with the page hero */
.page-body > .container--narrow, .page-intro, .wp-back { max-width: calc(var(--max) + var(--gutter) * 2); }
.page-body > .gh-content > *, .page-intro > * { max-width: var(--narrow); }
.page-body > .gh-content .kg-width-wide, .page-body > .gh-content .kg-width-full { left: 0; transform: none; width: 100%; max-width: var(--max); }
.page-body > .gh-content .kg-toggle-card { max-width: var(--narrow); }
@media (max-width: 600px) {
    .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
    .person-name { font-size: 1.125rem; }
    .person-role { font-size: .9375rem; }
}

/* Partners in the hero */
.hero-partners { padding-bottom: 56px; }
.hero-partners-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; margin-bottom: 18px; border-top: 1px solid rgba(249, 243, 231, .2); }
.hero-partners-head .eyebrow { margin: 0; }
.hero .partner-tiles li { background: rgba(0, 47, 46, .35); }
.hero .associated { color: rgba(249, 243, 231, .8); }

/* Project logic sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.step { position: relative; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -22px; width: 16px; height: 16px; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: rotate(45deg); }
.step a { display: flex; flex-direction: column; height: 100%; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.step a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal); }
.step-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.step-num { font: 500 2.25rem/1 var(--serif); color: var(--teal); }
.step-wp { padding: 5px 10px; border-radius: 999px; background: #fff0e5; color: var(--orange-text); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; }
.step h3 { font-size: 1.3125rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 1rem; margin-bottom: 20px; }
.step-lead { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .875rem; font-weight: 600; color: var(--teal); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step:nth-child(2)::after { display: none; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; gap: 20px; } .step::after { display: none; } }
.wp-list { counter-reset: wp 1; }

/* Compact hero so the partner cards fit in the first screen */
@media (min-width: 861px) {
    .hero-inner { grid-template-columns: minmax(0, 1fr) 220px; gap: 56px; padding-top: 44px; padding-bottom: 36px; }
    .hero-title { font-size: clamp(2.25rem, 1.4rem + 2.4vw, 3.25rem); margin-bottom: 16px; }
    .hero-intro { max-width: 46em; margin-bottom: 24px; }
    .hero-art { width: 220px; }
    .hero-partners { padding-bottom: 36px; }
    .hero-partners-head { padding-top: 20px; margin-bottom: 14px; }
    .hero .partner-tiles li { padding: 16px 18px; gap: 12px; }
    .hero .partner-tiles img { height: 44px; }
    .hero .associated { margin-top: 16px; font-size: .9375rem; }
}

/* Header + hero fill 860px on desktop */
@media (min-width: 861px) {
    .hero { min-height: calc(859px - var(--header-h)); display: flex; flex-direction: column; }
    .hero-inner { flex: 1 0 auto; padding-top: 56px; padding-bottom: 48px; }
    .hero-partners { padding-bottom: 44px; }
}

/* Animated hero mark */
.hero-art .brand-mark { overflow: visible; }
.hero { touch-action: pan-y; }

/* Six partner tiles, associate partner included */
.partner-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.partner-tiles strong { font-size: .9375rem; line-height: 1.3; }
.partner-tiles span { font-size: .875rem; }
@media (min-width: 861px) { .hero .partner-tiles li { padding: 16px 16px; } }
@media (max-width: 1100px) { .partner-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .partner-tiles { grid-template-columns: 1fr; } }

/* Partner tiles: country and role sit at the bottom of each card */
.partner-tiles span { flex: 1 1 auto; display: flex; flex-direction: column; }
.partner-tiles strong { margin-bottom: auto; padding-bottom: 6px; }
@media (max-width: 520px) { .partner-tiles span { flex: 1 1 auto; } }
