/* UNCHK Recherche — public site refresh (scoped to the public horizontal layout) */
body[data-layout="horizontal"] {
    --un-blue: #086fb7;
    --un-blue-dark: #06518a;
    --un-green: #00a346;
    --un-orange: #e08120;
    --un-ink: #1f3547;
    --un-muted: #5b6b7a;
    --un-line: #e4eaf0;
    --un-bg: #f5f8fb;
    --un-radius: 14px;
    --un-shadow: 0 1px 2px rgba(16, 42, 67, .06), 0 8px 24px rgba(16, 42, 67, .06);
    --un-shadow-hover: 0 2px 4px rgba(16, 42, 67, .08), 0 14px 32px rgba(16, 42, 67, .12);
    background: var(--un-bg);
    color: var(--un-ink);
    -webkit-font-smoothing: antialiased;
}

/* Header & navigation */
body[data-layout="horizontal"] #page-topbar {
    background: #fff;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--un-blue) 0 40%, var(--un-green) 40% 70%, var(--un-orange) 70%) 1;
    box-shadow: 0 1px 0 var(--un-line);
}
body[data-layout="horizontal"] .topnav {
    background: var(--un-blue-dark);
    box-shadow: 0 4px 16px rgba(6, 81, 138, .18);
}
body[data-layout="horizontal"] .topnav .navbar-nav .nav-link {
    color: rgba(255, 255, 255, .88);
    font-weight: 500;
    letter-spacing: .01em;
    border-radius: 8px;
    transition: background .15s ease, color .15s ease;
}
body[data-layout="horizontal"] .topnav .navbar-nav .nav-link:hover,
body[data-layout="horizontal"] .topnav .navbar-nav .nav-link.active,
body[data-layout="horizontal"] .topnav .navbar-nav .active > .nav-link {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}
body[data-layout="horizontal"] .topnav .dropdown-menu {
    border: 0;
    border-radius: 12px;
    box-shadow: var(--un-shadow-hover);
    padding: .5rem;
}
body[data-layout="horizontal"] .topnav .dropdown-item {
    border-radius: 8px;
    padding: .5rem .75rem;
}
body[data-layout="horizontal"] .topnav .dropdown-item:hover { background: var(--un-bg); color: var(--un-blue-dark); }

/* Page rhythm */
body[data-layout="horizontal"] .page-content { padding-top: 101px; padding-bottom: 3rem; }
body[data-layout="horizontal"] h1, body[data-layout="horizontal"] h2,
body[data-layout="horizontal"] h3, body[data-layout="horizontal"] h4 {
    color: var(--un-ink);
    font-weight: 700;
    letter-spacing: -.01em;
}
body[data-layout="horizontal"] h3 { font-size: 1.5rem; }
body[data-layout="horizontal"] a { color: var(--un-blue); }
body[data-layout="horizontal"] a:hover { color: var(--un-blue-dark); }
body[data-layout="horizontal"] :focus-visible {
    outline: 3px solid rgba(8, 111, 183, .45);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Cards */
body[data-layout="horizontal"] .card {
    border: 1px solid var(--un-line);
    border-radius: var(--un-radius);
    box-shadow: var(--un-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
}
body[data-layout="horizontal"] .card.shadow-lg { box-shadow: var(--un-shadow) !important; }
body[data-layout="horizontal"] .card:hover { transform: translateY(-3px); box-shadow: var(--un-shadow-hover) !important; }
body[data-layout="horizontal"] .card-img-top { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
body[data-layout="horizontal"] .card-title a { color: var(--un-ink); }
body[data-layout="horizontal"] .card-title a:hover { color: var(--un-blue); }

body[data-layout="horizontal"] .profile-user-wid { margin-top: 0 !important; }
body[data-layout="horizontal"] .card-body { padding: 1.5rem; }

/* Buttons, badges, forms */
body[data-layout="horizontal"] .btn { border-radius: 10px; font-weight: 600; }
body[data-layout="horizontal"] .btn-primary { background: var(--un-blue); border-color: var(--un-blue); }
body[data-layout="horizontal"] .btn-primary:hover { background: var(--un-blue-dark); border-color: var(--un-blue-dark); }
body[data-layout="horizontal"] .badge { border-radius: 999px; font-weight: 600; padding: .4em .8em; }
body[data-layout="horizontal"] .badge.bg-warning { background: rgba(224, 129, 32, .16) !important; color: #a65a0d !important; }
body[data-layout="horizontal"] .badge.bg-secondary { background: var(--un-blue) !important; }
body[data-layout="horizontal"] .avatar-title.bg-primary { background: var(--un-blue) !important; }
body[data-layout="horizontal"] .form-control, body[data-layout="horizontal"] .form-select {
    border-radius: 10px;
    border: 1px solid var(--un-line);
    padding: .6rem .85rem;
}
body[data-layout="horizontal"] .form-control:focus, body[data-layout="horizontal"] .form-select:focus {
    border-color: var(--un-blue);
    box-shadow: 0 0 0 .2rem rgba(8, 111, 183, .15);
}
body[data-layout="horizontal"] .pagination .page-link { border-radius: 10px; margin: 0 2px; color: var(--un-blue); border-color: var(--un-line); }
body[data-layout="horizontal"] .pagination .active > .page-link { background: var(--un-blue); border-color: var(--un-blue); color: #fff; }

/* Hero carousel */
/* Full-bleed: edge to edge, flush under the navbar (page-content top 70px + 101px padding - 48px = topnav bottom at 123px) */
body[data-layout="horizontal"] .main-content { overflow-x: clip; }
body[data-layout="horizontal"] .hero-carousel {
    width: 100vw;
    margin: -48px 0 2rem calc(50% - 50vw);
}
.hero-carousel .carousel { border-radius: 0; overflow: hidden; }
.hero-carousel__img {
    display: block;
    width: 100%;
    height: clamp(280px, 58vh, 620px);
    object-fit: cover;
    background: #cfdbe6;
}
.hero-carousel .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 81, 138, 0) 35%, rgba(6, 81, 138, .78) 100%);
    pointer-events: none;
}
.hero-carousel__caption {
    position: absolute;
    z-index: 2;
    left: clamp(1rem, 4vw, 3rem);
    right: clamp(1rem, 4vw, 3rem);
    bottom: clamp(1.25rem, 4vw, 2.5rem);
    color: #fff;
}
.hero-carousel__kicker {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .25rem .7rem;
    border-radius: 999px;
    background: var(--un-orange, #e08120);
    margin-bottom: .6rem;
}
.hero-carousel__title { color: #fff !important; font-size: clamp(1.25rem, 3vw, 2.1rem); max-width: 40ch; margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { width: 8%; z-index: 3; }
.hero-carousel .carousel-indicators { z-index: 3; margin-bottom: .75rem; }
.hero-carousel .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 4px; border: 0; }

/* Footer */
body[data-layout="horizontal"] .footer { background: var(--un-blue-dark) !important; border-top: 3px solid var(--un-green); }

@media (prefers-reduced-motion: reduce) {
    body[data-layout="horizontal"] .card, body[data-layout="horizontal"] .topnav .nav-link { transition: none; }
    body[data-layout="horizontal"] .card:hover { transform: none; }
    .hero-carousel .carousel-fade .carousel-item { transition: none; }
}
@media (max-width: 767.98px) {
    body[data-layout="horizontal"] .page-content { padding-top: 100px; }
    body[data-layout="horizontal"] .hero-carousel { margin-top: -100px; }
}

/* Publications list (table rendered as stacked cards) */
body[data-layout="horizontal"] table.table-fixed { border-collapse: separate; border-spacing: 0 .75rem; display: block; width: 100%; max-width: 100%; table-layout: fixed; overflow: visible; }
body[data-layout="horizontal"] table.table-fixed tbody { display: block; }
body[data-layout="horizontal"] table.table-fixed tr.row {
    display: flex;
    align-items: stretch;
    margin: 0 0 .85rem;
    background: #fff;
    border: 1px solid var(--un-line);
    border-radius: var(--un-radius);
    box-shadow: var(--un-shadow);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
body[data-layout="horizontal"] table.table-fixed tr.row:hover { box-shadow: var(--un-shadow-hover); transform: translateY(-2px); }
body[data-layout="horizontal"] table.table-fixed tr.row { width: 100%; max-width: 100%; }
body[data-layout="horizontal"] table.table-fixed td { border: 0; padding: 1rem 1.25rem; min-width: 0; max-width: 100%; overflow: hidden; overflow-wrap: anywhere; }
body[data-layout="horizontal"] table.table-fixed td:not(.col-1) { flex: 1 1 0; width: auto; }
body[data-layout="horizontal"] table.table-fixed td p.text-muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal !important; text-overflow: clip; }
body[data-layout="horizontal"] table.table-fixed td.col-1 { display: flex; align-items: center; justify-content: center; flex: 0 0 110px; padding: 1rem; background: var(--un-bg); }
body[data-layout="horizontal"] table.table-fixed td.col-1 .card { border: 0; box-shadow: none; background: transparent; transform: none !important; }
body[data-layout="horizontal"] table.table-fixed td h5 { font-size: 1.05rem; margin: 0 0 .35rem; color: var(--un-ink); }
body[data-layout="horizontal"] table.table-fixed td a:hover h5 { color: var(--un-blue); }
body[data-layout="horizontal"] table.table-fixed td mark { background: transparent; padding: 0; }
body[data-layout="horizontal"] table.table-fixed td p.text-muted { background: transparent !important; text-decoration: none !important; }
@media (max-width: 767.98px) {
    body[data-layout="horizontal"] table.table-fixed td.col-12 { flex: 1 1 100%; }
}

/* Count badge next to page titles */
body[data-layout="horizontal"] h3 > .badge { font-size: .8rem; vertical-align: middle; background: var(--un-blue) !important; color: #fff !important; }

/* Image fallback (see site-refresh.js) */
img.is-fallback { object-fit: cover; background: #e8eff5; }

/* Article / news cards */
body[data-layout="horizontal"] .blog-box .card-img { aspect-ratio: 16 / 10; height: auto !important; border-radius: 0; }
body[data-layout="horizontal"] .blog-box .card-body .btn { padding: .35rem .9rem; }

/* Breadcrumb */
.un-breadcrumb { margin: 0 0 1.25rem; }
.un-breadcrumb .breadcrumb { background: #fff; border: 1px solid var(--un-line, #e4eaf0); border-radius: 999px; padding: .55rem 1.1rem; flex-wrap: wrap; box-shadow: 0 1px 2px rgba(16, 42, 67, .05); }
.un-breadcrumb .breadcrumb-item { font-size: .875rem; }
.un-breadcrumb .breadcrumb-item a { color: var(--un-blue, #086fb7); font-weight: 500; text-decoration: none; }
.un-breadcrumb .breadcrumb-item a:hover { text-decoration: underline; }
.un-breadcrumb .breadcrumb-item.active { color: var(--un-muted, #5b6b7a); }
.un-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: "\203A"; color: #9aa9b8; font-size: 1.1rem; line-height: 1; padding-right: .6rem; }

/* Publications: contained avatar + readable count badge */
body[data-layout="horizontal"] table.table-fixed td.col-1 .avatar-lg { width: 3.5rem; height: 3.5rem; margin: 0 auto; flex: none; }
body[data-layout="horizontal"] table.table-fixed td.col-1 .avatar-lg img,
body[data-layout="horizontal"] table.table-fixed td.col-1 .avatar-lg .avatar-title { width: 100%; height: 100%; object-fit: cover; }
body[data-layout="horizontal"] h3 > .badge.badge.bg-warning,
body[data-layout="horizontal"] h3 > .badge.bg-secondary { background: var(--un-blue) !important; color: #fff !important; }

/* Search box: keep room for the icon (the generic .form-control padding was overriding it) */
body[data-layout="horizontal"] .search-box { min-width: min(100%, 280px); }
body[data-layout="horizontal"] .search-box .position-relative { display: block; }
body[data-layout="horizontal"] .search-box .form-control {
    height: 44px;
    padding: .6rem 1rem .6rem 2.75rem;
    background: #fff !important;
    border: 1px solid var(--un-line);
    box-shadow: 0 1px 2px rgba(16, 42, 67, .05);
}
body[data-layout="horizontal"] .search-box .form-control:focus { border-color: var(--un-blue); box-shadow: 0 0 0 .2rem rgba(8, 111, 183, .15); }
body[data-layout="horizontal"] .search-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    font-size: 1.15rem;
    color: var(--un-muted);
    pointer-events: none;
}
body[data-layout="horizontal"] .search-box .form-control:focus + .search-icon { color: var(--un-blue); }

/* Publications: card grid and detail page */
.pub-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pub-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--un-line);
    border-radius: var(--un-radius);
    box-shadow: var(--un-shadow);
    transition: box-shadow .2s ease, border-color .2s ease;
}
.pub-card:hover, .pub-card:focus-within { border-color: rgba(8, 111, 183, .35); box-shadow: var(--un-shadow-hover); }
.pub-card__authors { display: flex; align-items: center; gap: .75rem; min-width: 0; margin-bottom: .9rem; }
.pub-card__avatar {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    overflow: hidden;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    background: var(--un-blue);
    border-radius: 50%;
}
.pub-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.pub-card__names { min-width: 0; margin: 0; color: var(--un-muted); font-size: .8125rem; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.pub-card__names span { color: var(--un-blue); font-weight: 600; }
.pub-card__title, .pub-card__citation, .pub-card__preview {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}
.pub-card__title { margin: 0 0 .45rem; font-size: 1.05rem; font-weight: 600; line-height: 1.4; -webkit-line-clamp: 2; }
.pub-card__citation { margin: 0; font-size: .9375rem; line-height: 1.6; -webkit-line-clamp: 4; }
.pub-card__title a, .pub-card__citation a { color: var(--un-ink); }
.pub-card__title a:hover, .pub-card__citation a:hover { color: var(--un-blue); }
.pub-card__preview { margin: 0; color: var(--un-muted); font-size: .875rem; line-height: 1.55; -webkit-line-clamp: 3; }
.pub-card__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0 0; }
.pub-card__meta div { display: inline-flex; gap: .3rem; max-width: 100%; padding: .2rem .6rem; font-size: .75rem; background: var(--un-bg); border-radius: 999px; }
.pub-card__meta dt { color: var(--un-muted); font-weight: 500; }
.pub-card__meta dd { min-width: 0; margin: 0; overflow: hidden; color: var(--un-ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pub-card__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-top: auto; padding-top: 1rem; }
.pub-card__action, .pub-card__source { display: inline-flex; align-items: center; gap: .3rem; font-size: .8125rem; font-weight: 600; }
.pub-card__action { color: var(--un-blue); }
.pub-card__action:hover { color: var(--un-blue-dark); text-decoration: underline; }
.pub-card__source { color: var(--un-muted); }
.pub-card__source:hover { color: var(--un-blue); }
.pub-empty { grid-column: 1 / -1; padding: 2.5rem 1rem; color: var(--un-muted); text-align: center; background: #fff; border: 1px dashed var(--un-line); border-radius: var(--un-radius); }
.pub-detail { max-width: 880px; margin: 1.5rem auto 0; padding: clamp(1.25rem, 3vw, 2.25rem); background: #fff; border: 1px solid var(--un-line); border-radius: var(--un-radius); box-shadow: var(--un-shadow); }
.pub-detail__title { margin: 0 0 .5rem; font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.3; overflow-wrap: anywhere; }
.pub-detail__authors { margin: 0; color: var(--un-muted); font-size: .875rem; font-weight: 500; }
.pub-detail__content { margin: 1.25rem 0; color: var(--un-ink); font-size: .9375rem; line-height: 1.7; overflow-wrap: anywhere; }
.pub-detail__content ul, .pub-detail__content ol { padding-left: 1.25rem; }
.pub-detail__content li { margin-bottom: .45rem; }
.pub-detail__content img, .pub-detail__content table { max-width: 100%; height: auto; }
@media (max-width: 991.98px) {
    .pub-list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .pub-card { transition: none; }
}

/* "Se connecter" button (header, guests) */
body[data-layout="horizontal"] .btn-login {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.15rem;
    border-radius: 999px;
    background: var(--un-blue);
    color: #fff !important;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(8, 111, 183, .28);
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
body[data-layout="horizontal"] .btn-login i { font-size: 1.1rem; }
body[data-layout="horizontal"] .btn-login:hover { background: var(--un-blue-dark); box-shadow: 0 4px 14px rgba(8, 111, 183, .38); transform: translateY(-1px); }
body[data-layout="horizontal"] .btn-login:active { transform: none; }
body[data-layout="horizontal"] .btn-login:focus-visible { outline: 3px solid rgba(224, 129, 32, .6); outline-offset: 2px; }
@media (max-width: 575.98px) {
    body[data-layout="horizontal"] .btn-login { padding: .5rem .9rem; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { body[data-layout="horizontal"] .btn-login { transition: none; } }

/* Home: full-screen flagship programmes hero */
body.home-hero-page[data-layout="horizontal"] .page-content { margin-top: 0; padding-top: 0; padding-bottom: 0; }
body.home-hero-page[data-layout="horizontal"] #page-topbar,
body.home-hero-page[data-layout="horizontal"] .topnav { transition: background-color .3s ease, box-shadow .3s ease; }
.un-hero {
    --hero-header: 123px;
    --hero-interval: 7000ms;
    position: relative;
    isolation: isolate;
    display: flex;
    width: 100vw;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 0 0 calc(50% - 50vw);
    overflow: hidden;
    color: #fff;
    background: #06518a;
}
.un-hero-anchor { display: block; scroll-margin-top: 140px; }
.un-hero__backdrops, .un-hero__backdrop, .un-hero__network, .un-hero__veil { position: absolute; inset: 0; }
.un-hero__backdrops { z-index: -3; }
.un-hero__backdrop {
    --tone-main: #086fb7;
    --tone-deep: #06518a;
    overflow: hidden;
    opacity: 0;
    background: var(--tone-main);
    transition: opacity 1.2s ease;
}
.un-hero__backdrop[data-tone="1"] { --tone-main: #00a346; --tone-deep: #0b6a5a; }
.un-hero__backdrop[data-tone="2"] { --tone-main: #e08120; --tone-deep: #8e3f1c; }
.un-hero__backdrop.is-active { opacity: 1; }
.un-hero__backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transform: scale(1.02); }
.un-hero__backdrop.is-active img { animation: un-hero-drift 14s ease-out forwards; }
.un-hero__network { z-index: -2; width: 100%; height: 100%; }
.un-hero__veil {
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(6, 81, 138, .9) 0%, rgba(6, 81, 138, .66) 42%, rgba(6, 81, 138, .06) 78%),
        linear-gradient(0deg, rgba(6, 81, 138, .82) 0%, rgba(6, 81, 138, 0) 34%);
}
.un-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: clamp(1rem, 3vh, 2rem) clamp(2rem, 5vw, 5rem);
    width: min(100%, 1520px);
    min-height: 100%;
    margin: 0 auto;
    padding: calc(var(--hero-header) + clamp(1.25rem, 4vh, 3rem)) clamp(1.25rem, 4vw, 4rem) clamp(1.1rem, 3vh, 2rem);
}
.un-hero__stage { align-self: center; min-width: 0; }
.un-hero__eyebrow span {
    flex: none;
    width: .55rem;
    height: .55rem;
    background: var(--un-orange);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(224, 129, 32, .7);
    animation: un-hero-pulse 2.2s ease-out infinite;
}
.un-hero__slides { display: grid; grid-template-columns: minmax(0, 1fr); }
.un-hero__slide { grid-area: 1 / 1; align-self: end; min-width: 0; visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility 0s linear .35s; }
.un-hero__slide.is-active { visibility: visible; opacity: 1; transition: opacity .35s ease; }
.un-hero__eyebrow { display: flex; align-items: center; gap: .6rem; margin: 0 0 clamp(.7rem, 2vh, 1.1rem); color: rgba(255, 255, 255, .86); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.un-hero__title {
    max-width: 13ch;
    margin: 0;
    color: #fff !important;
    font-size: clamp(2.25rem, min(7.2vw, 13vh), 6.6rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.035em;
}
.un-hero__word { display: inline-block; padding-bottom: .1em; margin-right: .18em; overflow: hidden; vertical-align: top; }
.un-hero__word > span { display: inline-block; }
.un-hero.has-changed-slide .un-hero__slide.is-active .un-hero__word > span {
    animation: un-hero-rise .85s cubic-bezier(.16, 1, .3, 1) both;
    animation-delay: calc(var(--word-index) * 90ms);
}
.un-hero__lead {
    max-width: 46ch;
    margin: clamp(.7rem, 2vh, 1.15rem) 0 0;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(.95rem, 1.35vw, 1.2rem);
    line-height: 1.55;
}
.un-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.1rem, 3.2vh, 2rem); }
.un-hero a.un-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 48px;
    padding: .7rem 1.45rem;
    color: #fff;
    font-size: .9375rem;
    font-weight: 600;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.un-hero a.un-hero__button:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.un-hero a.un-hero__button--primary { color: var(--un-blue-dark); background: #fff; border-color: #fff; }
.un-hero a.un-hero__button--primary:hover { color: var(--un-blue-dark); background: #eaf4fb; }
.un-hero__button i { transition: transform .2s ease; }
.un-hero__button:hover i { transform: translateX(3px); }
.un-hero__rail { display: flex; flex-direction: column; align-self: center; min-width: 0; }
.un-hero__tab {
    position: relative;
    display: grid;
    grid-template-columns: 2.3rem minmax(0, 1fr);
    align-items: center;
    min-height: 58px;
    padding: .65rem 0;
    color: rgba(255, 255, 255, .62);
    text-align: left;
    background: transparent;
    border: 0;
    transition: color .25s ease, padding-left .25s ease;
}
.un-hero__tab:hover, .un-hero__tab.is-active { color: #fff; }
.un-hero__tab.is-active { padding-left: .4rem; }
.un-hero__tab-number { font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .8; }
.un-hero__tab-label { font-size: 1rem; font-weight: 600; line-height: 1.25; }
.un-hero__progress { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; overflow: hidden; background: rgba(255, 255, 255, .2); }
.un-hero__progress i { display: block; width: 100%; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.un-hero__tab.is-active .un-hero__progress i { transform: scaleX(1); }
.un-hero__progress i.is-running { animation: un-hero-progress var(--hero-interval) linear forwards; }
.un-hero.is-paused .un-hero__progress i.is-running { animation-play-state: paused; }
.un-hero__tab:focus-visible, .un-hero__icon-button:focus-visible, .un-hero a.un-hero__button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.un-hero__footer {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: clamp(.8rem, 2vh, 1.25rem);
    border-top: 1px solid rgba(255, 255, 255, .2);
}
.un-hero__stats { display: flex; gap: clamp(1.25rem, 4vw, 3.75rem); margin: 0; }
.un-hero__stats div { display: flex; flex-direction: column; }
.un-hero__stats dd { order: 0; margin: 0; color: #fff; font-size: clamp(1.45rem, 2.7vw, 2.35rem); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.un-hero__stats dt { order: 1; margin-top: .15rem; color: rgba(255, 255, 255, .72); font-size: clamp(.72rem, 1vw, .84rem); font-weight: 500; }
.un-hero__controls { display: flex; flex: none; gap: .5rem; }
.un-hero .un-hero__icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #fff;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
    transition: background-color .2s ease;
}
.un-hero .un-hero__icon-button:hover { color: #fff; background: rgba(255, 255, 255, .24); }
@keyframes un-hero-rise { from { transform: translateY(112%); } to { transform: translateY(0); } }
@keyframes un-hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes un-hero-drift { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@keyframes un-hero-pulse { 70% { box-shadow: 0 0 0 .6rem rgba(224, 129, 32, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 129, 32, 0); } }
@media (max-width: 991.98px) {
    .un-hero { --hero-header: 70px; }
    .un-hero__inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; }
    .un-hero__stage { align-self: end; }
    .un-hero__veil { background: linear-gradient(0deg, rgba(6, 81, 138, .94) 0%, rgba(6, 81, 138, .74) 58%, rgba(6, 81, 138, .3) 100%); }
    .un-hero__rail { flex-direction: row; gap: .9rem; margin-right: calc(clamp(1.25rem, 4vw, 4rem) * -1); padding-right: 1.25rem; overflow-x: auto; scrollbar-width: none; }
    .un-hero__rail::-webkit-scrollbar { display: none; }
    .un-hero__tab { flex: 0 0 auto; grid-template-columns: auto auto; gap: .4rem; min-height: 44px; padding: .45rem 0; }
    .un-hero__tab.is-active { padding-left: 0; }
    .un-hero__tab-label { font-size: .875rem; white-space: nowrap; }
}
@media (max-width: 575.98px) {
    .un-hero__actions .un-hero__button { flex: 1 1 100%; }
    .un-hero__stats { gap: 1rem; }
    .un-hero .un-hero__controls .un-hero__icon-button:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .un-hero__backdrop, .un-hero__slide, .un-hero__tab, body.home-hero-page #page-topbar, body.home-hero-page .topnav { transition: none !important; }
    .un-hero__backdrop.is-active img, .un-hero__eyebrow span, .un-hero.has-changed-slide .un-hero__slide.is-active .un-hero__word > span { animation: none; }
}

/* Home: sections below the hero */
.home-band { width: 100vw; margin-left: calc(50% - 50vw); padding: clamp(3.5rem, 7vw, 6.5rem) 0; background: var(--un-bg); }
.home-band--white { background: #fff; }
.home-shell { width: min(100% - 2.5rem, 1240px); margin: 0 auto; }
.home-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .85rem 2rem; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.home-heading__eyebrow { margin: 0 0 .45rem; color: var(--un-blue); font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.home-heading h2, .home-doctoral h2 { margin: 0; color: var(--un-ink); font-size: clamp(1.8rem, 3.4vw, 2.85rem); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; text-transform: none; }
.home-heading__lead { max-width: 38ch; margin: 0; color: var(--un-muted); font-size: 1rem; line-height: 1.55; }
.home-band a.home-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; color: var(--un-blue); font-size: .9375rem; font-weight: 600; }
.home-band a.home-link:hover { color: var(--un-blue-dark); }
.home-link i, .home-researcher__cta i, .home-article__cta i { transition: transform .2s ease; }
.home-link:hover i, .home-researcher:hover .home-researcher__cta i, .home-article a:hover .home-article__cta i { transform: translateX(4px); }
.home-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1.25rem; }
.home-service { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border-radius: 18px; box-shadow: var(--un-shadow); transition: box-shadow .25s ease, transform .25s ease; }
.home-service:hover { box-shadow: var(--un-shadow-hover); transform: translateY(-4px); }
.home-service__media { aspect-ratio: 16 / 10; overflow: hidden; background: #dbe7f1; }
.home-service__media img, .home-service__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-service__media img { transition: transform .6s ease; }
.home-service:hover .home-service__media img { transform: scale(1.05); }
.home-service__body { padding: 1.25rem 1.35rem 1.45rem; }
.home-service__place { margin: 0 0 .35rem; color: #007a35; font-size: .8125rem; font-weight: 600; }
.home-service h3 { margin: 0 0 .4rem; color: var(--un-ink); font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.home-service__body > p:last-child { margin: 0; color: var(--un-muted); font-size: .9rem; line-height: 1.55; overflow-wrap: anywhere; }
.home-communications { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.25rem; }
.home-communication { min-width: 0; padding: 1.5rem; background: #fff; border-radius: 18px; box-shadow: var(--un-shadow); }
.home-communication h3 { margin: 0 0 .5rem; color: var(--un-ink); font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.home-communication > p { color: var(--un-muted); line-height: 1.55; overflow-wrap: anywhere; }
.home-communication dl { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 0; }
.home-communication dt { color: var(--un-muted); font-size: .75rem; font-weight: 500; }
.home-communication dd { margin: 0; color: var(--un-ink); font-size: .875rem; font-weight: 600; }
.home-communication__files { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1rem; }
.home-communication__files a { font-size: .875rem; font-weight: 600; }
.home-researchers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.home-band a.home-researcher {
    --researcher-tone: var(--un-blue);
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    padding: 1.5rem;
    color: var(--un-ink);
    background: var(--un-bg);
    border-radius: 18px;
    transition: color .25s ease, background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.home-band a.home-researcher[data-tone="1"] { --researcher-tone: var(--un-green); }
.home-band a.home-researcher[data-tone="2"] { --researcher-tone: var(--un-orange); }
.home-band a.home-researcher:hover, .home-band a.home-researcher:focus-visible { color: #fff; background: #06518a; box-shadow: var(--un-shadow-hover); transform: translateY(-4px); }
.home-researcher__avatar { display: inline-flex; align-items: center; justify-content: center; width: 4.75rem; height: 4.75rem; margin-bottom: 1.15rem; overflow: hidden; color: #fff; font-size: 1.35rem; font-weight: 700; background: var(--researcher-tone); border-radius: 22px; }
.home-researcher__avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-researcher__name { font-size: 1.08rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.home-researcher__role { display: -webkit-box; margin-top: .35rem; overflow: hidden; color: var(--un-muted); font-size: .84rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; transition: color .25s ease; }
.home-researcher:hover .home-researcher__role, .home-researcher:focus-visible .home-researcher__role { color: rgba(255, 255, 255, .78); }
.home-researcher__category { align-self: flex-start; justify-self: start; max-width: 100%; margin-top: .85rem; padding: .22rem .65rem; overflow: hidden; color: var(--un-blue-dark); font-size: .73rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; background: rgba(8, 111, 183, .1); border-radius: 999px; transition: color .25s ease, background-color .25s ease; }
.home-researcher:hover .home-researcher__category, .home-researcher:focus-visible .home-researcher__category { color: #fff; background: rgba(255, 255, 255, .16); }
.home-researcher__cta { display: inline-flex; align-items: center; gap: .3rem; margin-top: auto; padding-top: 1.1rem; font-size: .84rem; font-weight: 600; }
.home-news { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 1.25rem; }
.home-article { min-width: 0; overflow: hidden; background: #fff; border-radius: 18px; box-shadow: var(--un-shadow); transition: box-shadow .25s ease, transform .25s ease; }
.home-article:hover, .home-article:focus-within { box-shadow: var(--un-shadow-hover); transform: translateY(-3px); }
.home-article a { display: grid; grid-template-columns: 38% minmax(0, 1fr); height: 100%; color: var(--un-ink); }
.home-article__image { display: block; min-height: 190px; overflow: hidden; background: #dbe7f1; }
.home-article__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.home-article a:hover .home-article__image img { transform: scale(1.05); }
.home-article__body { display: flex; flex-direction: column; min-width: 0; padding: 1.25rem 1.35rem; }
.home-article__meta { display: flex; flex-wrap: wrap; gap: .2rem .7rem; color: var(--un-muted); font-size: .76rem; font-weight: 500; }
.home-article__meta span { color: var(--un-blue); font-weight: 700; }
.home-article__title { display: -webkit-box; margin-top: .45rem; overflow: hidden; font-size: 1.08rem; font-weight: 600; line-height: 1.32; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-article__summary { display: -webkit-box; margin-top: .4rem; overflow: hidden; color: var(--un-muted); font-size: .875rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-article__cta { display: inline-flex; align-items: center; gap: .3rem; margin-top: auto; padding-top: .75rem; color: var(--un-blue); font-size: .84rem; font-weight: 600; }
.home-article--featured { grid-row: span 2; }
.home-article--featured a { display: flex; flex-direction: column; }
.home-article--featured .home-article__image { flex: 1 1 auto; min-height: 280px; }
.home-article--featured .home-article__body { flex: none; padding: 1.5rem 1.65rem; }
.home-article--featured .home-article__title { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.home-article--featured .home-article__summary { font-size: .95rem; -webkit-line-clamp: 3; }
.home-doctoral { position: relative; overflow: hidden; color: #fff; background: #06518a; }
.home-doctoral__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(2rem, 5vw, 5rem); }
.home-doctoral .home-heading__eyebrow { color: #ffb066; }
.home-doctoral h2 { color: #fff !important; }
.home-doctoral__intro > p:not(.home-heading__eyebrow) { margin: 1.15rem 0 0; color: rgba(255, 255, 255, .78); font-size: .975rem; line-height: 1.7; }
.home-doctoral__tabs { display: flex; flex-direction: column; gap: .4rem; margin-top: 1.75rem; }
.home-doctoral__tab { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 52px; padding: .65rem 1rem; color: rgba(255, 255, 255, .76); font-size: 1rem; font-weight: 600; text-align: left; background: transparent; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.home-doctoral__tab i { font-size: 1.25rem; }
.home-doctoral__tab:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.home-doctoral__tab.active { color: var(--un-blue-dark); background: #fff; border-color: #fff; }
.home-doctoral__tab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.home-doctoral__panel { min-width: 0; padding: clamp(1.4rem, 3vw, 2.5rem); color: rgba(255, 255, 255, .84); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.home-doctoral__panel h3 { margin: 0 0 .8rem; color: #fff !important; font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; }
.home-doctoral__panel h4 { margin: 1.35rem 0 .55rem; color: #fff !important; font-size: 1.05rem; font-weight: 600; }
.home-doctoral__panel p { line-height: 1.65; }
.home-doctoral__panel strong { color: #fff; font-weight: 600; }
.home-doctoral__list { display: grid; gap: .65rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.home-doctoral__list--columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.25rem; }
.home-doctoral__list li { position: relative; padding-left: 1.5rem; font-size: .925rem; line-height: 1.5; }
.home-doctoral__list li::before { content: ""; position: absolute; top: .42em; left: 0; width: .62rem; height: .62rem; background: var(--un-orange); border-radius: 3px; transform: rotate(45deg); }
.home-doctoral__note { margin: 0; color: rgba(255, 255, 255, .68); font-size: .875rem; }
@media (max-width: 1199.98px) {
    .home-researchers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .home-news, .home-doctoral__grid { grid-template-columns: minmax(0, 1fr); }
    .home-article--featured { grid-row: auto; }
    .home-doctoral__tabs { flex-direction: row; flex-wrap: wrap; }
    .home-doctoral__tab { width: auto; flex: 1 1 auto; }
}
@media (max-width: 575.98px) {
    .home-researchers { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
    .home-band a.home-researcher { display: grid; grid-template-columns: 3.75rem minmax(0, 1fr); column-gap: 1rem; padding: 1.1rem; }
    .home-researcher__avatar { grid-row: span 4; width: 3.75rem; height: 3.75rem; margin: 0; font-size: 1.05rem; border-radius: 16px; }
    .home-researcher__cta { padding-top: .55rem; }
    .home-article a { grid-template-columns: minmax(0, 1fr); }
    .home-article__image { min-height: 0; aspect-ratio: 16 / 9; }
    .home-article--featured .home-article__image { min-height: 0; flex: none; }
    .home-doctoral__list--columns { grid-template-columns: minmax(0, 1fr); }
    .home-doctoral__tabs { flex-direction: column; }
    .home-doctoral__tab { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .home-service, .home-service__media img, .home-researcher, .home-article, .home-article__image img, .home-link i, .home-researcher__cta i, .home-article__cta i { transition: none !important; }
    .home-service:hover, .home-researcher:hover, .home-article:hover, .home-article:focus-within { transform: none !important; }
    .home-service:hover .home-service__media img, .home-article a:hover .home-article__image img { transform: none; }
}

/* Flagship programmes page */
html:has(body.flagship-page) { scroll-behavior: smooth; }
body.flagship-page[data-layout="horizontal"] .page-content { margin-top: 0; padding-top: 0; padding-bottom: 0; }
body.flagship-page[data-layout="horizontal"] .main-content { overflow: visible; overflow-x: clip; }
.flagship-shell { width: min(100% - 2.5rem, 1240px); margin: 0 auto; }
.flagship-eyebrow { margin: 0 0 .6rem; color: var(--un-blue); font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.flagship-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: calc(123px + clamp(2.5rem, 6vh, 4.5rem)) 0 clamp(2.5rem, 6vh, 4.5rem);
    color: #fff;
    background: #06518a;
}
.flagship-hero .flagship-eyebrow, .flagship-cta .flagship-eyebrow { color: #ffb066; }
.flagship-hero__intro { max-width: 760px; margin-bottom: clamp(2rem, 5vh, 3.25rem); }
.flagship-hero h1 { margin: 0; color: #fff !important; font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.flagship-hero__intro > p:last-child { max-width: 58ch; margin: 1.15rem 0 0; color: rgba(255, 255, 255, .82); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.6; }
.flagship-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.flagship-hero a.flagship-tile {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(220px, 34vh, 330px);
    padding: 1.15rem;
    overflow: hidden;
    color: #fff;
    background: #06518a;
    border-radius: 18px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.flagship-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.flagship-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 81, 138, .08) 20%, rgba(6, 81, 138, .92) 100%); }
.flagship-hero a.flagship-tile:hover, .flagship-hero a.flagship-tile:focus-visible { box-shadow: 0 16px 36px rgba(6, 81, 138, .3); transform: translateY(-5px); }
.flagship-tile:hover img, .flagship-tile:focus-visible img { transform: scale(1.07); }
.flagship-tile:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.flagship-tile__number { margin-bottom: .2rem; color: rgba(255, 255, 255, .78); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.flagship-tile__title { padding-right: 1.6rem; font-size: 1.1rem; font-weight: 600; line-height: 1.25; }
.flagship-tile > i { position: absolute; right: 1rem; bottom: 1rem; font-size: 1.2rem; }
.flagship-nav { position: sticky; top: 123px; z-index: 20; width: 100vw; margin-left: calc(50% - 50vw); background: rgba(255, 255, 255, .94); box-shadow: 0 1px 0 var(--un-line), 0 8px 24px rgba(16, 42, 67, .06); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.flagship-nav__links { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; }
.flagship-nav__links::-webkit-scrollbar { display: none; }
.flagship-nav a { position: relative; display: inline-flex; flex: 1 0 auto; align-items: center; justify-content: center; gap: .45rem; min-height: 54px; padding: .5rem .8rem; color: var(--un-muted); font-size: .875rem; font-weight: 600; white-space: nowrap; transition: color .2s ease; }
.flagship-nav a span { font-size: .72rem; opacity: .75; }
.flagship-nav a::after { content: ""; position: absolute; right: .5rem; bottom: 0; left: .5rem; height: 3px; background: var(--un-blue); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform .25s ease; }
.flagship-nav a:hover, .flagship-nav a[aria-current="true"] { color: var(--un-blue-dark); }
.flagship-nav a[aria-current="true"]::after { transform: scaleX(1); }
.flagship-chapter { width: 100vw; margin-left: calc(50% - 50vw); padding: clamp(3.5rem, 7vw, 6.5rem) 0; background: #fff; scroll-margin-top: 176px; }
.flagship-chapter--alternate { background: var(--un-bg); }
.flagship-chapter__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: clamp(2rem, 5vw, 5rem); }
.flagship-chapter--alternate .flagship-chapter__visual { order: 2; }
.flagship-chapter__visual { position: sticky; top: 205px; }
.flagship-chapter__visual figure { position: relative; height: min(68vh, 620px); min-height: 380px; margin: 0; overflow: hidden; background: #dbe7f1; border-radius: 24px; box-shadow: var(--un-shadow-hover); }
.flagship-chapter__visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.flagship-chapter__visual figure::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(6, 81, 138, .72)); }
.flagship-chapter__visual figcaption { position: absolute; z-index: 1; bottom: .9rem; left: 1.25rem; color: #fff; font-size: clamp(3.5rem, 7vw, 6rem); font-weight: 700; line-height: 1; letter-spacing: -.05em; }
.flagship-chapter__content { min-width: 0; }
.flagship-chapter h2 { margin: 0 0 1.25rem; color: var(--un-ink); font-size: clamp(1.65rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.flagship-summary p { margin: 0 0 .9rem; color: #40566a; font-size: 1.02rem; line-height: 1.75; }
.flagship-goal { margin: 1.6rem 0 2rem; padding: 1.35rem 1.5rem; color: #fff; background: var(--un-blue-dark); border-radius: 16px; box-shadow: 0 12px 28px rgba(6, 81, 138, .2); }
body[data-layout="horizontal"] .flagship-goal h3 { margin: 0 0 .35rem; color: rgba(255, 255, 255, .84) !important; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.flagship-goal p { margin: 0; color: #fff; font-size: 1.08rem; font-weight: 500; line-height: 1.55; }
body[data-layout="horizontal"] .flagship-subtitle { margin: 1.85rem 0 .9rem; color: var(--un-ink); font-size: 1.12rem; font-weight: 600; }
.flagship-objectives { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; counter-reset: flagship-objective; }
.flagship-objectives li { position: relative; min-height: 2rem; padding: .18rem 0 0 2.85rem; color: #40566a; font-size: .96rem; line-height: 1.6; counter-increment: flagship-objective; }
.flagship-objectives li::before { content: counter(flagship-objective); position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; color: var(--un-blue-dark); font-size: .84rem; font-weight: 700; background: rgba(8, 111, 183, .1); border-radius: 10px; }
.flagship-axes { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.flagship-axes li { max-width: 100%; padding: .48rem .9rem; color: var(--un-ink); font-size: .875rem; font-weight: 500; line-height: 1.35; background: rgba(0, 163, 70, .1); border: 1px solid rgba(0, 163, 70, .2); border-radius: 12px; }
.flagship-cta { width: 100vw; margin-left: calc(50% - 50vw); padding: clamp(3rem, 6vw, 5rem) 0; color: #fff; background: #06518a; }
.flagship-cta .flagship-shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.flagship-cta h2 { max-width: 20ch; margin: 0; color: #fff !important; font-size: clamp(1.7rem, 3.4vw, 2.75rem); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
.flagship-cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.flagship-cta a.flagship-button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .7rem 1.45rem; color: #fff; font-size: .9375rem; font-weight: 600; border: 1px solid rgba(255, 255, 255, .36); border-radius: 999px; transition: background-color .2s ease, transform .2s ease; }
.flagship-cta a.flagship-button:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.flagship-cta a.flagship-button--primary { color: var(--un-blue-dark); background: #fff; border-color: #fff; }
.flagship-cta a.flagship-button--primary:hover { color: var(--un-blue-dark); background: #eaf4fb; }
@media (max-width: 991.98px) {
    .flagship-hero { padding-top: calc(70px + 2.5rem); }
    .flagship-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flagship-hero a.flagship-tile { min-height: 190px; }
    .flagship-nav { top: 70px; }
    .flagship-nav a { flex: 0 0 auto; }
    .flagship-chapter { scroll-margin-top: 122px; }
    .flagship-chapter__grid { grid-template-columns: minmax(0, 1fr); }
    .flagship-chapter--alternate .flagship-chapter__visual { order: 0; }
    .flagship-chapter__visual { position: static; }
    .flagship-chapter__visual figure { height: clamp(220px, 46vw, 400px); min-height: 0; }
}
@media (max-width: 575.98px) {
    .flagship-tiles { gap: .65rem; }
    .flagship-hero a.flagship-tile { min-height: 150px; padding: .85rem; border-radius: 14px; }
    .flagship-tile__title { padding-right: 0; font-size: .95rem; }
    .flagship-tile > i { display: none; }
    .flagship-goal { padding: 1.15rem 1.2rem; }
    .flagship-cta__actions, .flagship-cta a.flagship-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(body.flagship-page) { scroll-behavior: auto; }
    .flagship-tile, .flagship-tile img, .flagship-nav a, .flagship-nav a::after, .flagship-button { transition: none !important; }
    .flagship-tile:hover, .flagship-tile:focus-visible, .flagship-cta a.flagship-button:hover { transform: none !important; }
    .flagship-tile:hover img, .flagship-tile:focus-visible img { transform: none; }
}

/* Researchers directory */
.researchers-hero .flagship-hero__intro { margin-bottom: clamp(1.5rem, 3vh, 2.25rem); }
.researchers-search { position: relative; display: flex; align-items: center; width: min(100%, 760px); min-height: 60px; padding: .4rem .4rem .4rem 3.1rem; background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .24); }
.researchers-search:focus-within { outline: 3px solid rgba(255, 176, 102, .8); outline-offset: 2px; }
.researchers-search > i { position: absolute; left: 1.1rem; color: var(--un-muted); font-size: 1.35rem; pointer-events: none; }
.researchers-search input[type="search"] { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 .75rem 0 0; color: var(--un-ink); font-size: 1rem; background: transparent; border: 0; outline: 0; }
.researchers-search input[type="search"]::placeholder { color: #6d7d8c; }
.researchers-search button { flex: none; min-height: 48px; padding: .55rem 1.35rem; color: #fff; font-size: .9375rem; font-weight: 600; background: var(--un-blue); border: 0; border-radius: 11px; transition: background-color .2s ease; }
.researchers-search button:hover { background: var(--un-blue-dark); }
.researchers-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.15rem; }
.researchers-hero .researchers-filters a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem .55rem .4rem 1rem; color: rgba(255, 255, 255, .86); font-size: .875rem; font-weight: 600; border: 1px solid rgba(255, 255, 255, .26); border-radius: 999px; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.researchers-hero .researchers-filters a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.researchers-hero .researchers-filters a[aria-current="true"] { color: var(--un-blue-dark); background: #fff; border-color: #fff; }
.researchers-hero .researchers-filters a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.researchers-filters span { min-width: 1.7rem; padding: .08rem .42rem; font-size: .75rem; font-variant-numeric: tabular-nums; text-align: center; background: rgba(255, 255, 255, .14); border-radius: 999px; }
.researchers-filters a[aria-current="true"] span { background: rgba(8, 111, 183, .12); }
.researchers-results { min-height: 420px; padding-top: clamp(2rem, 4vw, 3.25rem); scroll-margin-top: 123px; }
.researchers-count { margin: 0 0 1.25rem; color: var(--un-muted); font-size: .9375rem; font-weight: 600; }
#swap[aria-busy="true"] { opacity: .55; transition: opacity .15s ease; }
.researchers-pagination { margin-top: 2rem; }
.researchers-pagination .pagination { flex-wrap: wrap; }
@media (max-width: 991.98px) {
    .researchers-results { scroll-margin-top: 70px; }
}
@media (max-width: 575.98px) {
    .researchers-search { padding-left: 2.75rem; }
    .researchers-search > i { left: .9rem; }
    .researchers-search button { width: 48px; padding: 0; overflow: hidden; color: transparent; font-size: 0; }
    .researchers-search button::before { content: "\2192"; color: #fff; font-size: 1.2rem; }
    .researchers-filters { flex-wrap: nowrap; margin-right: -1.25rem; padding-right: 1.25rem; overflow-x: auto; scrollbar-width: none; }
    .researchers-filters::-webkit-scrollbar { display: none; }
    .researchers-hero .researchers-filters a { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
    .researchers-search button, .researchers-hero .researchers-filters a, #swap[aria-busy="true"] { transition: none; }
}

/* Researcher public profile */
.profile-hero { padding-bottom: clamp(2rem, 4vh, 3rem); }
.profile-hero .un-breadcrumb { margin-bottom: clamp(1.25rem, 3vh, 2rem); }
.profile-hero .un-breadcrumb .breadcrumb { display: inline-flex; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.profile-hero .un-breadcrumb .breadcrumb-item a { color: #fff; }
.profile-hero .un-breadcrumb .breadcrumb-item.active { color: rgba(255, 255, 255, .78); }
.profile-hero .un-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .55); }
.profile-hero__identity { display: flex; align-items: center; gap: clamp(1.25rem, 3.5vw, 2.75rem); }
.profile-hero__avatar { display: inline-flex; flex: none; align-items: center; justify-content: center; width: clamp(6.5rem, 13vw, 11rem); height: clamp(6.5rem, 13vw, 11rem); overflow: hidden; color: #fff; font-size: clamp(2rem, 4.5vw, 3.75rem); font-weight: 700; letter-spacing: -.03em; background: var(--un-blue); border: 4px solid rgba(255, 255, 255, .22); border-radius: clamp(1.5rem, 3vw, 2.5rem); box-shadow: 0 20px 48px rgba(0, 0, 0, .35); }
.profile-hero__avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero__text { min-width: 0; }
.profile-hero h1 { font-size: clamp(2rem, 5.2vw, 4.25rem); line-height: 1.04; overflow-wrap: anywhere; }
.profile-hero__roles { margin: .7rem 0 0; color: rgba(255, 255, 255, .84); font-size: clamp(.95rem, 1.5vw, 1.15rem); line-height: 1.45; }
.profile-hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.15rem; }
.profile-hero a.profile-button { display: inline-flex; align-items: center; gap: .45rem; max-width: 100%; min-height: 44px; padding: .5rem 1.1rem; color: #fff; font-size: .875rem; font-weight: 600; border: 1px solid rgba(255, 255, 255, .34); border-radius: 999px; transition: background-color .2s ease; }
.profile-hero a.profile-button:hover { background: rgba(255, 255, 255, .14); }
.profile-hero a.profile-button--primary { color: var(--un-blue-dark); background: #fff; border-color: #fff; }
.profile-hero a.profile-button--primary:hover { color: var(--un-blue-dark); background: #eaf4fb; }
.profile-button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flagship-nav a[aria-current="page"] { color: var(--un-blue-dark); }
.flagship-nav a[aria-current="page"]::after { transform: scaleX(1); }
.flagship-nav__links a > span { min-width: 1.45rem; padding: .05rem .35rem; color: var(--un-blue-dark); text-align: center; background: rgba(8, 111, 183, .1); border-radius: 999px; opacity: 1; }
.profile-content { width: 100vw; min-height: 420px; margin-left: calc(50% - 50vw); padding: clamp(2rem, 4.5vw, 3.75rem) 0 clamp(3rem, 6vw, 5rem); background: var(--un-bg); }
.profile-works { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.profile-works a { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .85rem; padding: 1.1rem 1.25rem; color: var(--un-ink); background: #fff; border: 1px solid transparent; border-radius: 16px; box-shadow: var(--un-shadow); transition: border-color .2s ease, transform .2s ease; }
.profile-works a:hover { color: var(--un-blue-dark); border-color: rgba(8, 111, 183, .35); transform: translateY(-2px); }
.profile-works i { grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; color: var(--un-blue); font-size: 1.4rem; background: rgba(8, 111, 183, .1); border-radius: 13px; }
.profile-works strong { font-size: 1.45rem; line-height: 1.1; }
.profile-works span { color: var(--un-muted); font-size: .8125rem; font-weight: 500; }
.profile-overview { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); align-items: start; gap: 1.25rem; }
.profile-side { display: grid; gap: 1.25rem; min-width: 0; }
.profile-panel { min-width: 0; padding: clamp(1.25rem, 2.5vw, 2rem); background: #fff; border-radius: 18px; box-shadow: var(--un-shadow); }
body[data-layout="horizontal"] .profile-panel h2 { margin: 0 0 1rem; color: var(--un-ink); font-size: 1.2rem; font-weight: 600; }
.profile-bio { color: #40566a; font-size: .975rem; line-height: 1.75; overflow-wrap: anywhere; }
.profile-bio p { margin-bottom: .85rem; color: inherit !important; }
.profile-bio ul, .profile-bio ol { padding-left: 1.25rem; }
.profile-bio img, .profile-bio table { max-width: 100%; height: auto; }
.profile-muted { margin: 0; color: var(--un-muted); font-size: .9rem; line-height: 1.55; }
.profile-axes { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.profile-axes li { position: relative; padding-left: 1.35rem; color: #40566a; font-size: .9rem; line-height: 1.5; }
.profile-axes li::before { content: ""; position: absolute; top: .42em; left: 0; width: .58rem; height: .58rem; background: var(--un-orange); border-radius: 3px; transform: rotate(45deg); }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.profile-item { display: flex; flex-direction: column; min-width: 0; padding: 1.35rem; background: #fff; border-radius: 16px; box-shadow: var(--un-shadow); }
body[data-layout="horizontal"] .profile-item h2 { margin: 0 0 .6rem; color: var(--un-ink); font-size: 1.08rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.profile-item > p { margin: 0; color: var(--un-muted); font-size: .9rem; line-height: 1.6; overflow-wrap: anywhere; }
.profile-item > p strong { display: block; color: var(--un-ink); font-size: .78rem; }
.profile-item .pub-card__meta { margin-top: auto; padding-top: .9rem; }
.profile-films { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
a.profile-film { position: relative; display: flex; align-items: flex-end; aspect-ratio: 3 / 4; padding: 1rem; overflow: hidden; color: #fff; background: #06518a; border-radius: 16px; box-shadow: var(--un-shadow); transition: transform .2s ease; }
a.profile-film:hover { color: #fff; transform: translateY(-3px); }
.profile-film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-film::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(6, 81, 138, .92)); }
.profile-film span { position: relative; z-index: 1; font-weight: 600; line-height: 1.3; }
.profile-teachings { display: grid; gap: .85rem; }
.profile-teaching { overflow: hidden; background: #fff; border-radius: 16px; box-shadow: var(--un-shadow); }
.profile-teaching summary { display: flex; align-items: center; gap: .75rem; min-height: 60px; padding: .85rem 1.25rem; color: var(--un-ink); font-weight: 600; list-style: none; cursor: pointer; }
.profile-teaching summary::-webkit-details-marker { display: none; }
.profile-teaching summary span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.profile-teaching summary small { flex: none; color: var(--un-muted); }
.profile-teaching summary i { flex: none; font-size: 1.3rem; transition: transform .2s ease; }
.profile-teaching[open] summary i { transform: rotate(180deg); }
.profile-teaching ul { display: grid; gap: .25rem; margin: 0; padding: 0 1rem 1rem; list-style: none; }
.profile-teaching li { display: flex; align-items: center; gap: .75rem; padding: .6rem .35rem; }
.profile-teaching li > i { color: var(--un-blue); font-size: 1.3rem; }
.profile-teaching li a, .profile-teaching li span { display: block; font-size: .9rem; font-weight: 600; }
.profile-teaching li small { color: var(--un-muted); }
@media (max-width: 991.98px) {
    .profile-overview, .profile-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
    .profile-hero__identity { align-items: flex-start; flex-direction: column; }
    .profile-hero__actions, .profile-hero a.profile-button { width: 100%; }
    .profile-hero a.profile-button { justify-content: center; }
    .profile-works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
    .profile-works a { padding: .85rem; column-gap: .6rem; }
    .profile-works i { width: 2.25rem; height: 2.25rem; font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
    .profile-button, .profile-works a, .profile-film, .profile-teaching summary i { transition: none !important; }
    .profile-works a:hover, a.profile-film:hover { transform: none; }
}

/* Shared public pages */
.public-hero { padding-bottom: clamp(2rem, 5vh, 3.5rem); }
.public-hero .flagship-hero__intro { margin-bottom: clamp(1.25rem, 3vh, 2rem); }
.public-hero .flagship-hero__intro:last-child { margin-bottom: 0; }
.public-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); overflow-wrap: anywhere; }
.public-hero--compact .flagship-hero__intro { max-width: 960px; }
.public-hero--compact h1 { font-size: clamp(1.75rem, 3.8vw, 3.25rem); line-height: 1.12; letter-spacing: -.03em; }
.public-hero .un-breadcrumb { margin-bottom: clamp(1.25rem, 3vh, 2rem); }
.public-hero .un-breadcrumb .breadcrumb { display: inline-flex; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.public-hero .un-breadcrumb .breadcrumb-item a { color: #fff; }
.public-hero .un-breadcrumb .breadcrumb-item.active { color: rgba(255, 255, 255, .78); }
.public-hero .un-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .55); }
.public-hero__authors { max-width: 70ch; margin: 0; color: rgba(255, 255, 255, .84); font-size: .975rem; line-height: 1.5; }
.public-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; padding: 0; color: rgba(255, 255, 255, .86); font-size: .9rem; font-weight: 500; list-style: none; }
.public-facts li { display: inline-flex; align-items: center; gap: .35rem; }
.public-facts a { display: inline-flex; align-items: center; gap: .35rem; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.public-hero a.public-hero-button { display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; margin-top: 1.25rem; padding: .65rem 1.4rem; color: var(--un-blue-dark); font-size: .9375rem; font-weight: 600; background: #fff; border-radius: 999px; transition: background-color .2s ease; }
.public-hero a.public-hero-button:hover { color: var(--un-blue-dark); background: #eaf4fb; }
.public-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.public-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.public-list { display: grid; gap: 1rem; }
.public-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--un-line); border-radius: 18px; box-shadow: var(--un-shadow); transition: box-shadow .25s ease, transform .25s ease; }
.public-card:hover, .public-card:focus-within { box-shadow: var(--un-shadow-hover); transform: translateY(-4px); }
.public-card a { display: flex; flex-direction: column; height: 100%; color: var(--un-ink); }
.public-card__image { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #dbe7f1; }
.public-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.public-card a:hover .public-card__image img { transform: scale(1.05); }
.public-card__date { position: absolute; top: .75rem; left: .75rem; display: flex; flex-direction: column; align-items: center; min-width: 3.4rem; padding: .35rem .5rem; color: var(--un-muted); font-size: .68rem; font-weight: 600; line-height: 1.15; background: #fff; border-radius: 11px; box-shadow: 0 6px 16px rgba(6, 81, 138, .22); }
.public-card__date strong { color: var(--un-blue-dark); font-size: 1.25rem; line-height: 1.05; }
.public-card__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 1.15rem 1.25rem 1.25rem; }
.public-card__meta { display: flex; flex-wrap: wrap; gap: .15rem .65rem; margin-bottom: .4rem; color: var(--un-muted); font-size: .76rem; font-weight: 500; }
.public-card__meta b { color: var(--un-blue); font-weight: 700; }
.public-card__title { display: -webkit-box; overflow: hidden; font-size: 1.08rem; font-weight: 600; line-height: 1.32; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.public-card__summary { display: -webkit-box; margin-top: .4rem; overflow: hidden; color: var(--un-muted); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.public-card__cta { display: inline-flex; align-items: center; gap: .3rem; margin-top: auto; padding-top: .85rem; color: var(--un-blue); font-size: .84rem; font-weight: 600; }
.public-card__cta i { transition: transform .2s ease; }
.public-card a:hover .public-card__cta i { transform: translateX(4px); }
.public-films { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-film small { display: block; margin-top: .2rem; color: rgba(255, 255, 255, .8); font-size: .75rem; font-weight: 500; }
.public-project { align-items: flex-start; gap: .1rem; }
.public-project .pub-card__meta { width: 100%; }
.public-project > p { margin-bottom: .45rem; }
.public-status { display: inline-flex; margin-bottom: .65rem; padding: .18rem .6rem; font-size: .72rem; font-weight: 700; border-radius: 999px; }
.public-status.is-active { color: #0d6b34; background: rgba(0, 163, 70, .14); }
.public-status.is-done { color: #4a5a68; background: rgba(91, 107, 122, .14); }
.public-status.is-upcoming { color: #99530f; background: rgba(224, 129, 32, .16); }
.public-reading { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); align-items: start; gap: 1.5rem; }
.public-reading--film { grid-template-columns: minmax(0, 960px); justify-content: center; }
.public-reading > :only-child { grid-column: 1 / -1; width: min(100%, 960px); margin-inline: auto; }
.public-prose { min-width: 0; padding: clamp(1.25rem, 3vw, 2.25rem); color: #40566a; font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; background: #fff; border-radius: 18px; box-shadow: var(--un-shadow); }
body[data-layout="horizontal"] .public-prose h2 { margin: 1.5rem 0 .65rem; color: var(--un-ink); font-size: 1.35rem; font-weight: 600; }
body[data-layout="horizontal"] .public-prose > h2:first-child { margin-top: 0; }
.public-prose__lead { color: var(--un-ink); font-size: 1.12rem; font-weight: 500; line-height: 1.6; }
.public-prose__body img, .public-prose__body table, .public-prose__body iframe { max-width: 100%; }
.public-prose__body img { height: auto; }
.public-prose__body table { display: block; overflow-x: auto; }
.public-media { position: relative; margin-bottom: 1.35rem; overflow: hidden; background: #06518a; border-radius: 14px; aspect-ratio: 16 / 9; }
.public-media img, .public-media video, .public-media iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.public-media video { object-fit: contain; }
.public-media--document { aspect-ratio: 4 / 3; background: #eef3f8; }
.public-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: .75rem; margin-top: 1.25rem; }
.public-gallery img { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; object-fit: cover; }
.public-related { position: sticky; top: 145px; min-width: 0; padding: 1.35rem; background: #fff; border-radius: 18px; box-shadow: var(--un-shadow); }
body[data-layout="horizontal"] .public-related h2 { margin: 0 0 .85rem; color: var(--un-ink); font-size: 1.15rem; font-weight: 600; }
.public-related > a { display: block; padding: .75rem 0; color: var(--un-ink); font-size: .9rem; font-weight: 600; line-height: 1.35; border-top: 1px solid var(--un-line); }
.public-related > a:hover { color: var(--un-blue); }
.public-related > a small { display: block; margin-top: .2rem; color: var(--un-muted); font-weight: 500; }
.public-course-list { display: grid; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.public-course-list a { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .6rem; min-height: 48px; padding: .45rem .55rem; color: var(--un-ink); font-size: .875rem; font-weight: 500; line-height: 1.3; border-radius: 10px; }
.public-course-list a:hover { background: var(--un-bg); }
.public-course-list a[aria-current="page"] { color: var(--un-blue-dark); font-weight: 600; background: rgba(8, 111, 183, .1); }
.public-course-list b { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; color: var(--un-blue-dark); font-size: .8rem; background: rgba(8, 111, 183, .1); border-radius: 9px; }
.public-course-list a[aria-current="page"] b { color: #fff; background: var(--un-blue); }
.public-course-list small { color: var(--un-muted); white-space: nowrap; }
.public-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; padding-top: 1.1rem; border-top: 1px solid var(--un-line); }
.public-pager a { display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; font-weight: 600; line-height: 1.3; }
.public-prose a.public-inline-button, .pub-detail a.public-inline-button { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .5rem 1.15rem; color: #fff; font-size: .9rem; font-weight: 600; background: var(--un-blue); border-radius: 999px; }
.public-prose a.public-inline-button:hover, .pub-detail a.public-inline-button:hover { color: #fff; background: var(--un-blue-dark); }
.profile-content .pub-detail { margin-top: 0; }
.public-contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(1.5rem, 4vw, 3.5rem); }
body[data-layout="horizontal"] .public-contact__intro h2 { margin: 0 0 .75rem; color: var(--un-ink); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; }
.public-contact__intro > p { color: var(--un-muted); line-height: 1.65; }
.public-form { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2.25rem); background: #fff; border-radius: 20px; box-shadow: var(--un-shadow-hover); }
.public-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.public-form label { display: block; margin-bottom: .35rem; color: var(--un-ink); font-size: .875rem; font-weight: 600; }
.public-form label span { color: #c2410c; }
.public-form input, .public-form textarea { display: block; width: 100%; min-height: 46px; padding: .6rem .85rem; color: var(--un-ink); font-size: 1rem; background: var(--un-bg); border: 1px solid var(--un-line); border-radius: 11px; }
.public-form textarea { resize: vertical; }
.public-form input:focus, .public-form textarea:focus { background: #fff; border-color: var(--un-blue); outline: 0; box-shadow: 0 0 0 .2rem rgba(8, 111, 183, .15); }
.public-form [aria-invalid="true"] { border-color: #dc2626; }
.public-form__error { margin: .3rem 0 0; color: #b91c1c; font-size: .8125rem; }
.public-form button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; justify-self: start; min-height: 48px; padding: .65rem 1.5rem; color: #fff; font-size: .9375rem; font-weight: 600; background: var(--un-blue); border: 0; border-radius: 999px; transition: background-color .2s ease; }
.public-form button:hover { background: var(--un-blue-dark); }
.public-alert { padding: .8rem 1rem; font-size: .9rem; font-weight: 500; border-radius: 11px; }
.public-alert.is-success { color: #0d6b34; background: rgba(0, 163, 70, .12); }
.public-alert.is-error { color: #b91c1c; background: rgba(220, 38, 38, .1); }
@media (max-width: 1199.98px) {
    .public-films { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .public-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-reading, .public-contact { grid-template-columns: minmax(0, 1fr); }
    .public-related { position: static; }
    .public-films { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .public-grid, .public-grid--two, .public-form__row { grid-template-columns: minmax(0, 1fr); }
    .public-form button { width: 100%; justify-self: stretch; }
    .public-hero a.public-hero-button { width: 100%; justify-content: center; }
    .public-pager { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .public-card, .public-card__image img, .public-card__cta i, .public-form button, .public-hero a.public-hero-button { transition: none !important; }
    .public-card:hover, .public-card:focus-within { transform: none; }
    .public-card a:hover .public-card__image img { transform: none; }
}

/* Keep light text on dark public surfaces */
a.profile-film span, a.profile-film:hover span { color: #fff !important; }
a.profile-film small { color: rgba(255, 255, 255, .82) !important; }
.public-hero .public-facts a, .public-hero .public-facts a:hover { color: #fff !important; }

/* Home hero: institutional message */
.un-hero { align-items: center; justify-content: center; padding: calc(var(--hero-header) + 1.5rem) 0 1.5rem; color: #fff; background: var(--un-blue-dark); }
.un-hero .un-hero__network { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.un-hero__intro-content { display: flex; flex-direction: column; align-items: center; width: min(100%, 980px); padding: 0 clamp(1.25rem, 5vw, 3rem); text-align: center; }
.un-hero__eyebrow { justify-content: center; color: #fff; }
.un-hero__heading { max-width: 20ch; margin: 0; color: #fff !important; font-size: clamp(2.1rem, min(5.4vw, 10vh), 5rem); font-weight: 700; line-height: 1.06; letter-spacing: -.03em; }
.un-hero__lead { max-width: 58ch; color: rgba(255, 255, 255, .9); font-size: clamp(1rem, 1.4vw, 1.2rem); }
.un-hero__actions { justify-content: center; }
.un-hero__stats { justify-content: center; gap: clamp(1.75rem, 5vw, 4.5rem); margin: clamp(1.4rem, 4vh, 2.75rem) 0 0; }
.un-hero__stats div { align-items: center; }
.un-hero__stats dd { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
.un-hero__stats dt { color: rgba(255, 255, 255, .86); }
.un-hero a.un-hero__button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Home: flagship programmes, shown whole because their visuals contain text */
.home-programmes__link { display: inline-flex; align-items: center; gap: .3rem; color: var(--un-blue-dark); font-size: .92rem; font-weight: 600; }
.home-programmes__link:hover { color: var(--un-blue); }
.home-programmes__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 280px); align-items: center; gap: clamp(1rem, 2vw, 1.75rem); scroll-margin-top: calc(123px + 1rem); }
.home-programmes__viewer { justify-self: start; width: min(100%, max(620px, calc((100svh - 123px - 2rem) * 1.42))); min-width: 0; }
.home-programmes__visual { margin: 0; overflow: hidden; aspect-ratio: 800 / 563; background: var(--un-bg); border-radius: 16px; box-shadow: var(--un-shadow-hover); }
.home-programmes__visual[hidden] { display: none; }
.home-programmes__visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-programmes__list { display: grid; gap: .45rem; }
.home-programmes__button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; width: 100%; min-height: 56px; padding: .6rem .85rem; color: var(--un-ink); text-align: left; background: var(--un-bg); border: 1px solid transparent; border-radius: 11px; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.home-programmes__button > span { color: var(--un-muted); font-size: .76rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.home-programmes__button strong { font-size: .94rem; font-weight: 600; line-height: 1.3; }
.home-programmes__button > i { color: var(--un-muted); font-size: 1.15rem; }
.home-programmes__button:hover { background: #eaf4fb; border-color: rgba(8, 111, 183, .25); }
.home-programmes__button.is-active { color: #fff; background: var(--un-blue); border-color: var(--un-blue); }
.home-programmes__button.is-active > span, .home-programmes__button.is-active > i { color: #fff; }
.home-programmes__button:focus-visible { outline: 2px solid var(--un-blue-dark); outline-offset: 2px; }
@media (max-width: 991.98px) {
    .home-programmes__layout { grid-template-columns: minmax(0, 1fr); scroll-margin-top: calc(70px + 1rem); }
    .home-programmes__viewer { width: 100%; }
}
@media (max-width: 575.98px) {
    .un-hero__actions { width: 100%; }
    .un-hero__stats { justify-content: space-between; width: 100%; gap: .75rem; }
    .un-hero__stats dt { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .home-programmes__button { transition: none; }
}
