/* =========================================================
   Mutual Recognition and Detention Conditions (MRDetCon)
   Stylesheet — EU design language, gently modernised
   ========================================================= */

/* ----- Reset & base ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --eu-blue: #004494;          /* primary EU blue */
    --eu-blue-dark: #00306e;     /* darker blue for hover & gradients */
    --eu-blue-darker: #001f4d;   /* deepest blue for footer / hero base */
    --eu-blue-light: #e6ecf5;    /* light tint */
    --eu-blue-mist: #f4f7fb;     /* even lighter */
    --eu-yellow: #ffcc00;        /* EU stars yellow */
    --eu-yellow-soft: #fff4bf;   /* soft yellow accent */
    --accent: #1f7ae0;           /* secondary accent (slightly brighter blue) */
    --text: #18243d;
    --text-muted: #4a5b75;
    --grey-50: #f7f9fc;
    --grey-100: #eceff5;
    --grey-200: #d8dde6;
    --grey-300: #b6bfcd;
    --white: #ffffff;

    --max-width: 1200px;
    --radius: 6px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 30, 60, .06), 0 1px 3px rgba(15, 30, 60, .04);
    --shadow-md: 0 6px 18px rgba(15, 30, 60, .08), 0 2px 6px rgba(15, 30, 60, .04);
    --shadow-lg: 0 18px 40px rgba(15, 30, 60, .12), 0 4px 10px rgba(15, 30, 60, .06);

    --font-sans: "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
    --font-display: "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-serif: "Source Serif Pro", "Georgia", "Times New Roman", serif;

    --transition: 180ms cubic-bezier(.4, 0, .2, 1);
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    line-height: 1.65;
    background: var(--white);
    font-size: 17px;
    font-feature-settings: "kern" 1, "liga" 1;
}

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

a {
    color: var(--eu-blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--transition), text-decoration-thickness var(--transition);
}

a:hover,
a:focus {
    color: var(--eu-blue-dark);
    text-decoration-thickness: 2px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: .5em;
    letter-spacing: -.01em;
}

h1 { font-size: 2.5rem; letter-spacing: -.02em; }
h2 { font-size: 1.9rem; letter-spacing: -.015em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em 1.5em; }
li { margin-bottom: .35em; }

::selection { background: var(--eu-yellow); color: var(--eu-blue-darker); }

/* ----- Skip link (accessibility) ----- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--eu-blue);
    color: var(--white);
    padding: .75rem 1rem;
    z-index: 1000;
    border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
    left: 0;
}

/* ----- Layout container ----- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ----- Top utility bar ----- */
.topbar {
    background: var(--eu-blue-darker);
    color: var(--white);
    font-size: .85rem;
    padding: .5rem 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.topbar a {
    color: var(--white);
    text-decoration: none;
}

.topbar a:hover { text-decoration: underline; }

.topbar .eu-mini {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.topbar .eu-mini img {
    height: 18px;
    width: auto;
    border-radius: 2px;
}

/* ----- Header ----- */
.site-header {
    background: var(--white);
    border-bottom: 4px solid var(--eu-yellow);
    padding: 1.1rem 0 .75rem;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--eu-blue);
    transition: opacity var(--transition);
}

.brand:hover { color: var(--eu-blue-dark); text-decoration: none; opacity: .92; }

/* New wide wordmark logo (360x110 viewBox) */
.brand-mark {
    width: 200px;
    height: auto;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--grey-200);
    padding-left: 1rem;
}

.brand-text .title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    max-width: 26ch;
}

.brand-text .title .abbr-inline {
    color: var(--eu-blue);
    font-weight: 800;
    white-space: nowrap;
}

.brand-text .subtitle {
    font-size: .78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: .15rem;
    max-width: 32ch;
    line-height: 1.35;
}

/* ----- Navigation ----- */
.nav-toggle {
    display: none;
    border: 1px solid var(--grey-300);
    background: var(--white);
    padding: .55rem .9rem;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 600;
    border-radius: var(--radius);
    color: var(--text);
    transition: background var(--transition), border-color var(--transition);
}

.nav-toggle:hover { background: var(--eu-blue-mist); border-color: var(--eu-blue); }

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.main-nav li { margin: 0; }

.main-nav a {
    display: inline-block;
    padding: .85rem .9rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    position: relative;
    transition: color var(--transition);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: .9rem;
    right: .9rem;
    bottom: .35rem;
    height: 2px;
    background: var(--eu-blue);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--transition);
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
    color: var(--eu-blue);
    text-decoration: none;
}

.main-nav a:hover::after,
.main-nav a:focus::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

/* ----- Hero ----- */
.hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 204, 0, .12) 0%, transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(31, 122, 224, .18) 0%, transparent 50%),
        linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-darker) 100%);
    color: var(--white);
    padding: 4.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/hero-pattern.svg");
    background-repeat: no-repeat;
    background-position: right -40px center;
    background-size: auto 110%;
    opacity: .35;
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--eu-yellow);
    color: var(--eu-blue-darker);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: .4rem .85rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.hero .eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--eu-blue-darker);
    border-radius: 50%;
}

.hero .project-abbr {
    display: block;
    color: var(--eu-yellow);
    font-weight: 800;
    font-size: 3.4rem;
    line-height: 1;
    letter-spacing: .5px;
    margin-bottom: .5rem;
}

.hero .project-abbr .full {
    display: block;
    color: rgba(255, 255, 255, .9);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: .5rem;
}

.hero h1 {
    color: var(--white);
    max-width: 880px;
    font-size: 2.4rem;
    margin-bottom: 1.1rem;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.hero .lead {
    max-width: 760px;
    font-size: 1.18rem;
    color: rgba(255, 255, 255, .94);
    line-height: 1.6;
}

.hero .actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--eu-yellow);
    color: var(--eu-blue-darker);
    padding: .8rem 1.4rem;
    text-decoration: none;
    font-weight: 700;
    font-size: .98rem;
    border: 2px solid var(--eu-yellow);
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.btn::after {
    content: "→";
    font-weight: 600;
    transition: transform var(--transition);
}

.btn:hover,
.btn:focus {
    background: var(--white);
    color: var(--eu-blue-darker);
    border-color: var(--white);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:hover::after { transform: translateX(3px); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .7);
    box-shadow: none;
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--white);
    color: var(--eu-blue-darker);
    border-color: var(--white);
}

.btn-primary {
    background: var(--eu-blue);
    color: var(--white);
    border-color: var(--eu-blue);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--eu-blue-dark);
    border-color: var(--eu-blue-dark);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--eu-blue);
    border-color: transparent;
    box-shadow: none;
    padding: .5rem 0;
}

.btn-ghost::after { content: "›"; font-size: 1.2em; line-height: 1; }
.btn-ghost:hover { color: var(--eu-blue-dark); transform: none; box-shadow: none; }

/* ----- Page header (inner pages) ----- */
.page-header {
    background:
        linear-gradient(180deg, var(--eu-blue-mist) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--grey-100);
    padding: 3rem 0 2.25rem;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: "";
    position: absolute;
    right: -100px;
    top: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 204, 0, .15) 0%, transparent 70%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--eu-blue-darker);
    margin-bottom: .35rem;
    font-size: 2.4rem;
}

.page-header .breadcrumbs {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: .75rem;
}

.page-header .breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.page-header .breadcrumbs a:hover { text-decoration: underline; color: var(--eu-blue); }

/* ----- Sections ----- */
section {
    padding: 4rem 0;
}

.section-light { background: var(--grey-50); }
.section-blue  {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    margin: 3rem 1.5rem;
    padding: 3rem;
}
.section-blue.full-width { margin: 0; border-radius: 0; padding: 4rem 0; }
.section-blue h2, .section-blue h3 { color: var(--white); }

.section-title {
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
    padding-bottom: .6rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--eu-yellow);
    border-radius: 2px;
}

.section-blue .section-title::after { background: var(--eu-yellow); }

/* Optional small eyebrow text above a section title */
.eyebrow-text {
    display: inline-block;
    color: var(--eu-blue);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

/* ----- Cards ----- */
.cards {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--white);
    border: 1px solid var(--grey-100);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--eu-blue) 0%, var(--eu-yellow) 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--transition);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--eu-blue-light);
}

.card:hover::before { transform: scaleX(1); }

.card h3 {
    color: var(--eu-blue);
    margin-bottom: .5rem;
    font-size: 1.2rem;
}

.card .date {
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: .5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.card .read-more {
    margin-top: auto;
    padding-top: .85rem;
    font-weight: 600;
    color: var(--eu-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    transition: gap var(--transition);
}

.card .read-more:hover {
    gap: .55rem;
    text-decoration: underline;
}

/* Card with image at the top */
.card-image {
    width: calc(100% + 3.5rem);
    margin: -1.75rem -1.75rem 1.25rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--grey-100);
    display: block;
}

/* Report / book cover shown in full inside a card (no cropping) */
.report-cover {
    width: calc(100% + 3.5rem);
    margin: -1.75rem -1.75rem 1.25rem;
    height: 240px;
    object-fit: contain;
    background: var(--eu-blue-mist);
    padding: 1.1rem;
    display: block;
    border-bottom: 1px solid var(--grey-100);
}

/* ----- Project highlights row ----- */
.feature-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.75rem;
}

.feature {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--grey-100);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature .icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--eu-blue-mist) 0%, var(--eu-blue-light) 100%);
    color: var(--eu-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: .85rem;
    font-size: 1.7rem;
    font-weight: 800;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--eu-blue-light);
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: .35rem;
    color: var(--text);
}

.feature p {
    color: var(--text-muted);
    font-size: .95rem;
}

/* ----- Two-column layout ----- */
.two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

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

/* ----- Bilingual columns (imprint / privacy: English left, German right) ----- */
.lang-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.lang-cols .lang-col + .lang-col {
    border-left: 1px solid var(--grey-200);
    padding-left: 3rem;
}

@media (max-width: 800px) {
    .lang-cols { grid-template-columns: 1fr; gap: 2.5rem; }
    .lang-cols .lang-col + .lang-col {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--grey-200);
        padding-top: 2.5rem;
    }
}

.lang-label {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--eu-blue);
    margin-bottom: 1rem;
    padding-bottom: .3rem;
    border-bottom: 2px solid var(--eu-yellow);
}

.sidebar {
    background: var(--eu-blue-mist);
    border-left: 4px solid var(--eu-blue);
    padding: 1.75rem;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.sidebar h3 {
    color: var(--eu-blue);
    font-size: 1.05rem;
    margin-bottom: .5rem;
}

/* ----- Notes / callouts (editorial "filed note" style) ----- */
.info-box {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-top: 3px solid var(--eu-blue);
    border-radius: 2px;
    padding: 1.6rem 1.9rem 1.7rem;
    margin: 2.25rem 0;
}

.info-box h3 {
    font-size: 1.2rem;
    color: var(--eu-blue-darker);
    margin-bottom: 1rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--grey-100);
}

.info-box > p:last-child,
.info-box > ul:last-child { margin-bottom: 0; }

.info-box ul {
    list-style: none;
    margin: 0 0 1em;
}

.info-box ul > li {
    padding-left: 1.4rem;
    position: relative;
}

.info-box ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 6px;
    height: 6px;
    background: var(--eu-blue);
}

.info-box.info-box-yellow {
    border-top-color: var(--eu-yellow);
}

.info-box.info-box-yellow ul > li::before { background: var(--eu-yellow); }

/* ----- Lists ----- */
.list-plain { list-style: none; margin-left: 0; }
.list-plain > li { padding-left: 1.65rem; position: relative; }
.list-plain > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 9px;
    height: 9px;
    background: var(--eu-yellow);
    border: 2px solid var(--eu-blue);
    border-radius: 50%;
}

/* ----- Tables ----- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
    font-size: .95rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th, td {
    text-align: left;
    padding: .9rem 1.1rem;
    border-bottom: 1px solid var(--grey-100);
    vertical-align: top;
}

th {
    background: var(--eu-blue);
    color: var(--white);
    font-weight: 700;
    letter-spacing: .2px;
}

tr:nth-child(even) td { background: var(--grey-50); }
tr:hover td { background: var(--eu-blue-mist); transition: background var(--transition); }

/* ----- Partner & staff grids ----- */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.partner-card {
    background: var(--white);
    border: 1px solid var(--grey-100);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border-top: 4px solid var(--eu-blue);
    transition: transform var(--transition), box-shadow var(--transition);
}

.partner-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.partner-card h3 {
    color: var(--eu-blue);
    margin-bottom: .25rem;
    font-size: 1.18rem;
}

.partner-card .country {
    display: inline-block;
    color: var(--eu-blue-dark);
    background: var(--eu-blue-mist);
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: .85rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    letter-spacing: .3px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.staff-card {
    background: var(--white);
    border: 1px solid var(--grey-100);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.staff-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.staff-card .portrait {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--eu-blue-mist) url("../img/portrait-placeholder.svg") center/60% no-repeat;
    margin-bottom: .75rem;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--eu-blue-light);
    object-fit: cover;
}

.staff-card .name {
    color: var(--eu-blue);
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0;
}

.staff-card .role {
    color: var(--text-muted);
    font-size: .9rem;
    margin: 0;
}

.staff-card .institution,
.staff-card .affiliation {
    font-size: .9rem;
    margin: 0;
    color: var(--text-muted);
}

/* ----- Institution row (institution left, its researchers right) ----- */
.institution-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--grey-100);
    align-items: start;
}

.institution-row:last-of-type { border-bottom: none; }

.institution-row .institution h3 {
    color: var(--eu-blue);
    margin-bottom: .25rem;
    font-size: 1.25rem;
}

.institution-row .institution .country {
    display: inline-block;
    color: var(--eu-blue-dark);
    background: var(--eu-blue-mist);
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: .85rem;
    padding: .2rem .65rem;
    border-radius: 999px;
    letter-spacing: .3px;
}

.institution-row .institution p {
    font-size: .98rem;
    color: var(--text-muted);
}

.institution-row .people {
    background: var(--white);
    border: 1px solid var(--grey-100);
    border-left: 4px solid var(--eu-yellow);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 1.25rem 1.5rem;
}

.institution-row .people-heading {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--eu-blue);
    font-weight: 700;
    margin-bottom: .85rem;
}

.institution-row .people-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.institution-row .people-list li {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.1rem;
    align-items: center;
    margin: 0;
}

.institution-row .people-list .portrait {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    background: var(--eu-blue-mist);
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--eu-blue-light);
    margin: 0;
}

.institution-row .people-list .name {
    font-weight: 700;
    color: var(--text);
    margin: 0;
    font-size: .98rem;
}

.institution-row .people-list .role {
    color: var(--text-muted);
    font-size: .88rem;
    margin: 0;
    line-height: 1.35;
}

@media (max-width: 800px) {
    .institution-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .institution-row .people {
        border-left: 4px solid var(--eu-yellow);
        border-radius: 0 var(--radius) var(--radius) 0;
    }
}

/* ----- Sounding Board member list (compact, two-column on wide screens) ----- */
.member-list {
    list-style: none;
    counter-reset: mli;
    column-count: 2;
    column-gap: 2.5rem;
    margin: 1.25rem 0 0;
    padding: 0;
}

@media (max-width: 700px) {
    .member-list { column-count: 1; }
}

.member-list li {
    counter-increment: mli;
    break-inside: avoid;
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    align-items: baseline;
    padding: .55rem 0;
    border-bottom: 1px solid var(--grey-100);
    margin: 0;
}

.member-list li::before {
    content: counter(mli, decimal-leading-zero) ".";
    color: var(--eu-blue);
    font-weight: 700;
    font-size: .85rem;
    font-variant-numeric: tabular-nums;
}

.member-list li > * { grid-column: 2; }

.member-list .member-name {
    font-weight: 600;
    color: var(--text);
    font-size: .98rem;
}

.member-list .member-meta {
    display: block;
    color: var(--text-muted);
    font-size: .85rem;
    margin-top: .1rem;
}

/* ----- Form ----- */
.form-group { margin-bottom: 1.2rem; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
    font-size: .92rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--grey-300);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--white);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--eu-blue);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--eu-blue);
    box-shadow: 0 0 0 3px rgba(0, 68, 148, .15);
}

/* ----- Footer ----- */
.site-footer {
    background: var(--eu-blue-darker);
    color: rgba(255, 255, 255, .9);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    font-size: .95rem;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--eu-blue) 0%, var(--eu-yellow) 100%);
}

.site-footer a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.25);
    transition: border-color var(--transition);
}

.site-footer a:hover { border-color: var(--eu-yellow); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

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

.footer-grid h4 {
    color: var(--eu-yellow);
    font-size: .85rem;
    margin-bottom: .85rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-weight: 700;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-grid li { margin-bottom: .4rem; }

.eu-funding {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: rgba(255, 255, 255, .06);
    padding: 1.25rem 1.4rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.75rem;
    border: 1px solid rgba(255,255,255,.08);
}

.eu-funding img {
    height: 60px;
    width: auto;
    flex-shrink: 0;
    background: var(--white);
    padding: .35rem;
    border-radius: 4px;
}

.eu-funding p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.55;
}

.eu-funding strong { color: var(--eu-yellow); }

.copyright {
    font-size: .82rem;
    color: rgba(255, 255, 255, .65);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 1.25rem;
    margin-top: 1.25rem;
}

.copyright a { border: none; }

/* ----- Hero with side illustration (optional layout) ----- */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-grid .hero-illustration { display: none; }
}

.hero-illustration {
    max-width: 460px;
    margin-left: auto;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,.25));
}

/* ----- Photo placeholders ----- */
/* A clearly marked, dashed-border placeholder for real photos.
   Replace by <img src="assets/img/your-photo.jpg" alt="...">. */
.photo-placeholder {
    background:
        repeating-linear-gradient(45deg, rgba(0,68,148,.04), rgba(0,68,148,.04) 12px,
                                  rgba(0,68,148,.08) 12px, rgba(0,68,148,.08) 24px),
        var(--eu-blue-mist);
    border: 2px dashed var(--eu-blue);
    border-radius: var(--radius-lg);
    color: var(--eu-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    font-size: .9rem;
    font-weight: 600;
    aspect-ratio: 16 / 9;
}

.photo-placeholder.portrait { aspect-ratio: 3 / 4; }
.photo-placeholder.square   { aspect-ratio: 1 / 1; }

/* ----- Responsive nav ----- */
@media (max-width: 920px) {
    .nav-toggle { display: inline-block; }
    .main-nav {
        flex-basis: 100%;
        display: none;
    }
    .main-nav.open { display: block; }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
    }
    .main-nav a {
        border-bottom: 1px solid var(--grey-100);
        border-left: 4px solid transparent;
        padding: .85rem 1rem;
    }
    .main-nav a::after { display: none; }
    .main-nav a:hover,
    .main-nav a:focus,
    .main-nav a.active {
        border-bottom-color: var(--grey-100);
        border-left-color: var(--eu-blue);
        background: var(--eu-blue-mist);
    }
    .hero h1 { font-size: 2.1rem; }
}

@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.55rem; }
    .hero { padding: 3rem 0 2.5rem; }
    .hero h1 { font-size: 1.7rem; }
    .hero .lead { font-size: 1.05rem; }
    .topbar .container { flex-direction: column; align-items: flex-start; gap: .25rem; }
    .brand-text { display: none; }
    .brand-mark { width: 170px; }
    .page-header { padding: 2rem 0 1.5rem; }
    .page-header h1 { font-size: 1.85rem; }
    section { padding: 2.75rem 0; }
    .section-blue { margin: 2rem 0; border-radius: 0; padding: 2.5rem 1.25rem; }
}

/* ----- Reduced motion ----- */
@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;
    }
}

/* ----- Fade-in on scroll (uses IntersectionObserver from main.js) -----
   Opt-in pattern: elements are visible by default. JS adds .has-js to <html>,
   which then hides .reveal until they enter the viewport. Ensures no-JS,
   slow-JS, headless or print contexts always show full content. */
.reveal { transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
html.has-js .reveal:not(.visible) { opacity: 0; transform: translateY(16px); }
.reveal.visible { opacity: 1; transform: none; }

/* ----- Print ----- */
@media print {
    .topbar, .nav-toggle, .main-nav, .site-footer .eu-funding, .actions { display: none; }
    .hero { background: var(--white); color: var(--text); }
    .hero h1, .hero .lead { color: var(--text); }
    a { color: var(--text); text-decoration: underline; }
}
