@font-face {
    font-family: "MV Aammu";
    src: url("/fonts/aammu.woff2") format("woff2"),
         url("/fonts/MV_Aaammu.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Faruma";
    src: url("/fonts/Faruma.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "MV Waheed";
    src: url("/fonts/MVWaheed.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "MV Typewriter";
    src: url("/fonts/mvtyper.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --navy: #0a3d4a;
    --navy-deep: #072c36;
    --teal: #0e8a86;
    --teal-dark: #0b6d6a;
    --mist: #e8f3f2;
    --sand: #f5f8f7;
    --ink: #123038;
    --muted: #5b6f74;
    --line: #d5e4e2;
    --card: #ffffff;
    --shadow: 0 18px 50px rgba(10, 61, 74, 0.08);
    --radius: 1.25rem;
    --site-max: 72rem;
    --font-en: "Segoe UI", system-ui, sans-serif;
    --font-dv-body: "Faruma", sans-serif;
    --font-dv-heading: "MV Aammu", "Faruma", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--sand);
    color: var(--ink);
    font-family: var(--font-en);
    line-height: 1.65;
}

html[lang="dv"] body,
html[dir="rtl"] body {
    font-family: var(--font-dv-body);
    line-height: 1.85;
}

html[lang="dv"] h1,
html[lang="dv"] h2,
html[lang="dv"] h3,
html[lang="dv"] .brand-text strong,
html[lang="dv"] .footer-brand,
html[lang="dv"] .section-heading h2,
html[lang="dv"] .sidebar-title,
html[lang="dv"] .sidebar-list a,
html[lang="dv"] .hero-banner h1,
html[lang="dv"] .slide-overlay h2,
html[lang="dv"] .site-nav a {
    font-family: var(--font-dv-heading);
}

html[lang="dv"] .sidebar-list a {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
}

html[lang="dv"] .site-nav a {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    padding-block: 0.45rem;
}

[lang="en"] {
    font-family: var(--font-en);
}

[lang="dv"] {
    font-family: var(--font-dv-body);
}

.site-shell,
.section-wrap,
.page-main,
.header-inner,
.footer-inner,
.footer-grid,
.footer-bottom .site-shell {
    width: 100%;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

.section-wrap {
    display: block;
    padding-top: 3.25rem;
    padding-bottom: 0;
}

/* Do not reset margin/padding here — this class shares the element with .section-wrap */
.homepage-section {
    background: transparent;
    box-shadow: none;
}

.homepage-section-band.has-custom-bg {
    width: 100%;
}

/* Colour the inner panel/card — not the full page band. */
.homepage-section-band.has-custom-bg .about-panel,
.homepage-section-band.has-custom-bg .contact-band {
    background-color: var(--section-bg);
}

.homepage-section-band.has-custom-bg .homepage-section:not(:has(.about-panel, .contact-band)) {
    background-color: var(--section-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding-block: 1.75rem;
}

.section-heading {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--navy); }

.skip-link {
    position: absolute;
    inset-inline-start: 1rem;
    top: -3rem;
    background: var(--navy);
    color: #fff;
    padding: 0.5rem 0.8rem;
    z-index: 20;
}
.skip-link:focus { top: 0.75rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-block-end: 1px solid var(--line);
}

.site-announcements {
    background: var(--navy-deep, #0b2430);
    color: #ecfdf5;
    border-block-end: 1px solid rgba(255, 255, 255, 0.06);
}

.site-announcement__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
    padding-block: 0.45rem;
    min-height: 2.55rem;
}

.site-announcement__date {
    flex-shrink: 0;
    color: rgba(186, 210, 230, 0.78);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1.2;
}

.site-announcement__label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    background: var(--teal, #0e8a86);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.site-announcement__label--success { background: #059669; }
.site-announcement__label--warning { background: #f59e0b; color: #1f1300; }
.site-announcement__label--urgent { background: #dc2626; }

.site-announcement__message {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #f8fafc;
}

.site-announcement__text {
    color: inherit !important;
    text-decoration: none !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

a.site-announcement__text:hover {
    text-decoration: underline !important;
    text-underline-offset: 0.15em;
}

.site-announcement__cursor {
    display: inline-block;
    flex-shrink: 0;
    width: 0.55ch;
    height: 1.05em;
    background: currentColor;
    opacity: 0;
    vertical-align: -0.15em;
}

.site-announcements.is-typing .site-announcement__cursor {
    opacity: 1;
    animation: announcement-caret 0.85s steps(1, end) infinite;
}

@keyframes announcement-caret {
    50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .site-announcements.is-typing .site-announcement__cursor {
        animation: none;
        opacity: 0;
    }
}

.site-announcement__nav {
    display: inline-flex;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-inline-start: auto;
}

.site-announcement__nav-btn {
    width: 1.7rem;
    height: 1.7rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.site-announcement__nav-btn:hover,
.site-announcement__nav-btn:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

@media (max-width: 720px) {
    .site-announcement__inner {
        flex-wrap: wrap;
        gap: 0.45rem 0.65rem;
    }

    .site-announcement__date {
        order: 1;
    }

    .site-announcement__label {
        order: 2;
    }

    .site-announcement__nav {
        order: 3;
        margin-inline-start: 0;
    }

    .site-announcement__message {
        order: 4;
        flex-basis: 100%;
        white-space: normal;
    }

    .site-announcement__text {
        white-space: normal;
    }
}

.header-inner {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    min-width: 0;
}

.brand--logo-only {
    max-width: min(100%, 18rem);
}

.brand-mark {
    width: var(--logo-height, 2.6rem);
    height: var(--logo-height, 2.6rem);
    border-radius: 0.85rem;
    background: linear-gradient(145deg, var(--teal), var(--navy));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.brand-logo {
    height: var(--logo-height, 2.6rem);
    width: auto;
    max-width: min(100%, 16rem);
    object-fit: contain;
    border-radius: 0.35rem;
    flex-shrink: 0;
    background: transparent;
}

.brand--logo-only .brand-logo {
    max-width: min(100%, 18rem);
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-text strong {
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-text span {
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-toggle { display: none; }

.nav-toggle-label {
    display: none;
    margin-inline-start: auto;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    place-items: center;
    cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    width: 1.05rem;
    height: 2px;
    background: var(--navy);
    position: relative;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: "";
    position: absolute;
}
.nav-toggle-label span::before { top: -5px; }
.nav-toggle-label span::after { top: 5px; }

.site-nav {
    margin-inline-start: 0;
}

.site-nav ul {
    display: flex;
    gap: 0.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.site-nav > ul > li {
    position: relative;
}

.site-nav a {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    display: inline-block;
}

.site-nav a:hover {
    background: var(--mist);
    text-decoration: none;
}

.site-nav > ul > li.has-children > a::after {
    content: "";
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin-inline-start: 0.35rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-0.15rem) rotate(45deg);
    vertical-align: middle;
}

.site-nav > ul > li.has-children.is-open > a::after {
    transform: translateY(0.1rem) rotate(-135deg);
}

.site-nav > ul > li > .site-nav__sub {
    display: none;
    position: absolute;
    inset-inline-start: 0;
    top: calc(100% - 0.15rem);
    min-width: 12rem;
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    box-shadow: var(--shadow);
    z-index: 40;
    flex-direction: column;
    gap: 0.15rem;
}

.site-nav > ul > li.is-open > .site-nav__sub {
    display: flex;
}

.site-nav__sub a {
    display: block;
    width: 100%;
    border-radius: 0.55rem;
    white-space: nowrap;
}

.footer-menu__sub {
    list-style: none;
    margin: 0.35rem 0 0.55rem;
    padding: 0;
    padding-inline-start: 0.85rem;
    display: grid;
    gap: 0.25rem;
}

.footer-menu__sub a {
    font-size: 0.9rem;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-inline-start: auto;
}

.lang-switch {
    display: flex;
    background: var(--mist);
    border-radius: 999px;
    padding: 0.15rem;
}

.lang-switch a {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
}

.lang-switch a[aria-current="true"] {
    background: var(--navy);
    color: #fff;
}

.page-main {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.home-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 3rem;
}

.hero,
article,
.page-card {
    background: var(--card);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.listing {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.page-main--has-listing-banner {
    padding-top: 0;
}

.listing-banner {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 1.75rem;
    background: var(--navy);
    overflow: hidden;
}

.listing-banner--color {
    height: clamp(7rem, 18vw, 11rem);
}

.listing-banner--has-title.listing-banner--color {
    height: clamp(10rem, 24vw, 14rem);
}

.listing-banner img {
    display: block;
    width: 100%;
    height: clamp(9rem, 26vw, 16rem);
    object-fit: cover;
}

.listing-banner--has-title img {
    height: clamp(11rem, 30vw, 18rem);
}

.listing-banner-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(7, 36, 48, 0.25), rgba(7, 36, 48, 0.55));
    pointer-events: none;
}

.listing-banner-title {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

html[lang="dv"] .listing-banner-title {
    font-family: var(--font-dv-heading);
}

article img.featured,
.featured {
    width: 100%;
    border-radius: 1rem;
    margin-block-end: 1.25rem;
    max-height: 22rem;
    object-fit: cover;
}

h1, h2, h3 { letter-spacing: -0.02em; color: var(--navy); }

.badge {
    display: inline-block;
    font-size: 0.72rem;
    background: var(--mist);
    color: var(--teal-dark);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-weight: 700;
}

.meta, .lede { color: var(--muted); }

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-block-end: 1.25rem;
}

.filters input,
.filters select,
.filters button,
.form-group input,
.form-group textarea {
    font: inherit;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: #fff;
}

.filters button { background: var(--navy); color: #fff; border: 0; cursor: pointer; }

.filters--sidebar {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
}

.filters--sidebar input,
.filters--sidebar button {
    width: 100%;
}

.sidebar-search .sidebar-title {
    margin-block-end: 0.65rem;
}

.content-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
    gap: 1.15rem;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: stretch;
}

.content-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 40px rgba(10, 61, 74, 0.12);
}

.content-card > a,
.content-card .listing-card-inner {
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 100%;
    padding: 0;
    text-decoration: none;
}

.content-card img,
.content-card .listing-card-media {
    width: 100%;
    height: 10.5rem;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.content-card .listing-card-media--empty {
    background:
        linear-gradient(145deg, rgba(14, 138, 134, 0.16), rgba(11, 36, 48, 0.12)),
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 10px,
            rgba(11, 36, 48, 0.03) 10px,
            rgba(11, 36, 48, 0.03) 11px
        );
}

.content-card h2,
.content-card h3 {
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.35;
    min-height: calc(1.35em * 2);
}

.content-card p,
.content-card .meta {
    margin: 0 0 0.55rem;
    font-size: 0.92rem;
}

.listing-teaser {
    color: var(--muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-block-end: 0;
}

.listing-read-more {
    display: inline-block;
    margin: 0.35rem 1rem 1rem;
    color: var(--teal);
    font-weight: 700;
    font-size: 0.9rem;
}

.content-card .listing-read-more {
    margin: auto 0 0;
    padding-top: 0.85rem;
}

.content-list-copy .listing-read-more,
.listing-card-body .listing-read-more,
.timeline-body .listing-read-more {
    margin-inline: 0;
    margin-block-end: 0;
}

.content-list-copy .listing-read-more {
    margin-block-start: 0.35rem;
}

a.listing-read-more {
    text-decoration: none;
}

a.listing-read-more:hover {
    color: var(--teal-dark);
    text-decoration: underline;
}

.related-content { margin-block-start: 2rem; }
.content-list { list-style: none; padding: 0; margin: 0; }
.content-list li { margin-block-end: 0.5rem; }

.content-list--rows {
    display: grid;
    gap: 0.85rem;
}

.content-list-row {
    margin: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.content-list-row > a {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    color: inherit;
    align-items: start;
}

.content-list-row--image > a {
    grid-template-columns: 6.5rem 1fr;
}

.content-list-thumb {
    width: 6.5rem;
    height: 4.75rem;
    object-fit: cover;
    border-radius: 0.65rem;
    display: block;
}

.content-list-copy {
    display: grid;
    gap: 0.25rem;
}

.content-list-copy strong {
    color: var(--navy);
    font-size: 1.05rem;
}

.content-list-copy .meta,
.content-list-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.listing-featured {
    display: grid;
    gap: 1.15rem;
    margin-block-end: 1.35rem;
}

.listing-featured--1 {
    grid-template-columns: 1fr;
}

.listing-featured--2 {
    grid-template-columns: 1fr 1fr;
}

.listing-featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    color: inherit;
    min-height: 14rem;
}

.listing-featured-card img {
    width: 100%;
    height: 100%;
    min-height: 14rem;
    object-fit: cover;
    display: block;
}

.listing-featured-card .listing-card-body {
    padding: 1.15rem 1.25rem 1.25rem 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.45rem;
    min-height: 100%;
}

.listing-featured-card .listing-read-more {
    margin-top: auto;
    padding-top: 0.75rem;
}

.listing-featured-card:not(:has(img)) {
    grid-template-columns: 1fr;
}

.listing-featured-card:not(:has(img)) .listing-card-body {
    padding-inline-start: 1.25rem;
}

.listing-featured-card h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.listing-card-inner {
    display: block;
    color: inherit;
}

.content-card .listing-card-inner {
    padding: 0;
}

.content-card .listing-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 0.9rem 1rem 1rem;
    min-height: 0;
}

.content-card .listing-card-inner img,
.content-card .listing-card-inner .listing-card-media {
    width: 100%;
    height: 10.5rem;
    object-fit: cover;
    display: block;
}

@media (max-width: 860px) {
    .listing-featured--2,
    .listing-featured-card {
        grid-template-columns: 1fr;
    }

    .listing-featured-card .listing-card-body {
        padding: 1rem 1.1rem 1.15rem;
    }

    .content-list-row--image > a {
        grid-template-columns: 5rem 1fr;
    }

    .content-list-thumb {
        width: 5rem;
        height: 3.75rem;
    }
}

.content-type {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--muted);
    margin-inline-end: 0.35rem;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    justify-content: center;
}

.member-grid--row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.member-grid--row::before,
.member-grid--row::after {
    content: "";
    flex: 1 0 0;
    min-width: 0;
}

.member-grid--row .member-card {
    flex: 0 0 11.5rem;
}

.member-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
}

.member-card--lead {
    order: -1;
    grid-column: 1 / -1;
    justify-self: center;
    width: min(13.5rem, 100%);
}

.org-chart {
    --org-line: #2f6cb8;
    --org-node: 11rem;
    margin-top: 1.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 0.35rem;
}

.org-chart__row {
    display: flex;
    justify-content: flex-start;
    gap: 1.35rem;
    position: relative;
    width: max-content;
    margin-inline: auto;
    padding: 0;
    list-style: none;
}

.org-chart__node {
    width: var(--org-node);
    flex: 0 0 var(--org-node);
    position: relative;
}

.org-chart__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: inherit;
    text-decoration: none;
}

.org-chart__card img {
    width: 5.4rem;
    height: 5.4rem;
    object-fit: cover;
    border-radius: 999px;
    border: 3px solid var(--org-line);
    background: var(--mist);
    margin-bottom: 0.55rem;
}

.org-chart__card strong {
    display: block;
    color: #1d4f91;
    font-size: 0.98rem;
    line-height: 1.3;
}

.org-chart__card span {
    display: block;
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.35;
}

.org-chart__stem {
    position: relative;
    height: 1.65rem;
}

.org-chart__stem::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--org-line);
    transform: translateX(-50%);
}

.org-chart__row.is-branch {
    padding-top: 1.15rem;
}

.org-chart__row.is-branch::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(var(--org-node) / 2);
    right: calc(var(--org-node) / 2);
    height: 2px;
    background: var(--org-line);
}

.org-chart__row.is-branch .org-chart__node::before {
    content: "";
    position: absolute;
    top: -1.15rem;
    left: 50%;
    width: 2px;
    height: 1.15rem;
    background: var(--org-line);
    transform: translateX(-50%);
}

.member-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.15rem 0.85rem;
    color: inherit;
}

.member-card img {
    width: 5.5rem;
    height: 5.5rem;
    object-fit: cover;
    border-radius: 999px;
    margin: 0 auto 0.65rem;
    display: block;
    background: var(--mist);
}

.member-card strong,
.member-card .member-name {
    display: block;
    line-height: 1.3;
}

.member-card .meta,
.member-card .member-position {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
}

.committee-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 0.65rem;
    margin-block-end: 0.5rem;
}

.committee-heading a {
    color: inherit;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 0.65rem;
}

.committee-years {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
}

.committee-block {
    margin-block-end: 2rem;
    padding-block-end: 1.5rem;
    border-block-end: 1px solid var(--line);
}

.committee-block:last-child { border-block-end: 0; }

.term-block {
    margin-block-start: 1.5rem;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--mist);
}

.term-block.is-current { outline: 2px solid var(--teal); }

.person-profile .person-photo {
    width: 8.5rem;
    height: 8.5rem;
    object-fit: cover;
    border-radius: 999px;
    margin-block-end: 1rem;
}

.meeting-section { margin-block-start: 2rem; }

.attendee-list,
.document-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.document-item p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Home */
.slideshow {
    position: relative;
    min-height: min(78vh, 38rem);
    background: var(--navy-deep);
    color: #fff;
    overflow: hidden;
}

.slide { position: relative; min-height: inherit; }

.slide[hidden] { display: none !important; }

.slide img {
    width: 100%;
    height: min(78vh, 38rem);
    object-fit: cover;
    display: block;
    filter: brightness(0.55);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-block: 4.5rem 3.5rem;
    background: linear-gradient(transparent 35%, rgba(7, 44, 54, 0.72));
}

.slide-overlay .hero-copy,
.hero-banner-inner {
    width: 100%;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

.slide-overlay h2,
.hero-banner h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.1;
    margin: 0 0 0.6rem;
    max-width: 18ch;
}

html[lang="dv"] .slide-overlay h2,
html[lang="dv"] .hero-banner h1 {
    line-height: 1.85;
    margin-block-end: 0.9rem;
}

.slide-overlay p,
.hero-banner .lede {
    color: rgba(255,255,255,0.88);
    font-size: 1.15rem;
    max-width: 38rem;
}

.slide-nav {
    position: absolute;
    inset-inline: 1rem;
    inset-block-end: 1.4rem;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.slide-nav button,
.slide-dots button {
    pointer-events: auto;
    border: 0;
    background: rgba(255,255,255,0.18);
    color: #fff;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    cursor: pointer;
}

.slide-dots {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
}

.slide-dot { width: 0.55rem; height: 0.55rem; border-radius: 999px; padding: 0; }
.slide-dot.is-active { background: #fff; }

.hero-banner {
    position: relative;
    min-height: min(72vh, 34rem);
    background:
        radial-gradient(circle at 80% 10%, rgba(26, 166, 160, 0.35), transparent 35%),
        linear-gradient(145deg, var(--navy-deep), var(--teal) 70%, #1aa6a0);
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding-block: 4.5rem 3.5rem;
}

.hero-banner-inner { position: relative; }

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.8;
    margin: 0 0 0.75rem;
}

.section-heading h2 { margin: 0; font-size: 1.7rem; }

.section-kicker {
    display: block;
    color: var(--teal);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-block-end: 0.35rem;
}

.about-panel {
    display: grid;
    gap: 1.5rem;
    width: 100%;
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.about-panel-head .section-kicker {
    margin-block-end: 0;
}

.about-duo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.about-panel--duo .about-duo {
    grid-template-columns: 1fr 1fr;
}

.about-card h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.about-card .lede {
    margin-block-end: 0.85rem;
}

.about-card ul {
    margin: 0.5rem 0 0;
}

.about-cta {
    margin: 0;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.9rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 3.75rem 1fr;
    gap: 1rem;
    background: var(--card);
    border-radius: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    align-items: start;
}

.cal-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 3.75rem;
    border-radius: 0.65rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 6px 16px rgba(10, 61, 74, 0.08);
    text-align: center;
    line-height: 1.1;
}

.cal-badge-top {
    display: block;
    width: 100%;
    height: 0.7rem;
    background: linear-gradient(180deg, var(--teal), var(--teal-dark));
    position: relative;
}

.cal-badge-top::before,
.cal-badge-top::after {
    content: "";
    position: absolute;
    top: 0.12rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.cal-badge-top::before { left: 0.55rem; }
.cal-badge-top::after { right: 0.55rem; }

.cal-badge-day {
    display: block;
    padding: 0.35rem 0.2rem 0.1rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.cal-badge-month {
    display: block;
    padding: 0 0.25rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--teal-dark);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.timeline-title {
    color: inherit;
    text-decoration: none;
}

.timeline-title strong {
    font-size: 1.05rem;
    line-height: 1.35;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.timeline-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.timeline-meta-icon {
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
    opacity: 0.8;
}

.timeline-summary {
    margin: 0.45rem 0 0;
    color: var(--ink);
    font-size: 0.92rem;
}

/* ——— Homepage partners rail ——— */
.partner-rail {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.partner-rail[data-count="1"] { grid-template-columns: 1fr; }
.partner-rail[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.partner-rail[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.partner-tile {
    min-height: 7.5rem;
}

.partner-tile__link {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    height: 100%;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.partner-tile__link:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 138, 134, 0.35);
    box-shadow: 0 18px 34px rgba(10, 61, 74, 0.1);
}

.partner-tile__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 4.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(145deg, #f2f7f8, #e7eef0);
}

.partner-tile__logo img {
    max-width: 4.4rem;
    max-height: 2.8rem;
    object-fit: contain;
    display: block;
}

.partner-tile__initials {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.04em;
}

.partner-tile__copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.partner-tile__copy strong {
    color: var(--navy);
    font-size: 1rem;
    line-height: 1.3;
}

.partner-tile__copy span {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.partner-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    padding: 1.25rem 1rem;
    box-shadow: var(--shadow);
}

.partner-card a { color: inherit; display: block; }
.partner-card img {
    max-width: 6.5rem;
    max-height: 3.5rem;
    object-fit: contain;
    margin: 0 auto 0.65rem;
    display: block;
}
.partner-card h2 { font-size: 0.95rem; margin: 0; }
.partner-desc { font-size: 0.85rem; color: var(--muted); margin-block-start: 0.35rem; }

/* ——— Homepage event spotlight board ——— */
.event-board {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.event-board--solo {
    grid-template-columns: 1fr;
}

.event-board--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-board--grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.event-spotlight {
    min-width: 0;
    height: 100%;
}

.event-spotlight__link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    height: 100%;
    min-height: 11rem;
    padding: 1rem;
    border-radius: 1.1rem;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-board--solo .event-spotlight__link {
    grid-template-columns: auto minmax(0, 1.4fr) minmax(10rem, 0.9fr);
    min-height: 13rem;
    padding: 0;
    overflow: hidden;
}

.event-board--solo .event-spotlight__date {
    margin: 1rem 0 1rem 1rem;
}

.event-board--solo .event-spotlight__body {
    padding: 1.15rem 0.25rem 1.15rem 0;
}

a.event-spotlight__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(10, 61, 74, 0.11);
}

.event-spotlight__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    border-radius: 0.9rem;
    background: linear-gradient(160deg, #0b2430, #0e5c5a);
    color: #ecfdf5;
    text-align: center;
    padding: 0.75rem 0.4rem;
}

.event-spotlight__day {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.event-spotlight__month {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.event-spotlight__year {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    opacity: 0.7;
}

.event-spotlight__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-block: 0.15rem;
}

.event-spotlight__body h3 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    line-height: 1.3;
    color: var(--navy);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.event-spotlight__meta {
    margin: 0 0 0.55rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.event-spotlight__teaser {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.event-spotlight__body .listing-read-more {
    margin: auto 0 0;
    padding-top: 0.85rem;
}

.event-spotlight__media {
    min-height: 100%;
    overflow: hidden;
    background: #e8eef0;
}

.event-spotlight__media img {
    width: 100%;
    height: 100%;
    min-height: 13rem;
    object-fit: cover;
    display: block;
}

.event-spotlight__media--empty {
    background:
        linear-gradient(145deg, rgba(14, 138, 134, 0.22), rgba(11, 36, 48, 0.18)),
        repeating-linear-gradient(
            -18deg,
            transparent,
            transparent 12px,
            rgba(255, 255, 255, 0.05) 12px,
            rgba(255, 255, 255, 0.05) 13px
        );
}

/* ——— Homepage meeting board ——— */
.meeting-board {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.meeting-card {
    height: 100%;
}

.meeting-card__link {
    display: grid;
    grid-template-columns: 3.75rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    height: 100%;
    min-height: 10.5rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.meeting-card__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(10, 61, 74, 0.1);
}

.meeting-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.meeting-card__body h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--navy);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.35em * 2);
}

.meeting-card__body .timeline-meta {
    margin-top: 0.4rem;
}

.meeting-card__teaser {
    margin: 0.55rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.meeting-card__body .listing-read-more {
    margin: auto 0 0;
    padding-top: 0.85rem;
}

.contact-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius);
    padding: 2.25rem;
}

.contact-band h2,
.contact-band a { color: #fff; }

.contact-page {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(12rem, 0.85fr) minmax(0, 1.4fr);
    gap: 2rem 2.5rem;
    align-items: start;
}

.contact-aside h1 {
    margin-block: 0.35rem 0.75rem;
}

.contact-info {
    margin-block-start: 1.5rem;
    display: grid;
    gap: 1rem;
}

.contact-info p {
    margin: 0;
    line-height: 1.45;
}

.contact-form-panel {
    min-width: 0;
    width: 100%;
}

.contact-form {
    width: 100%;
    max-width: none;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.15rem;
}

.contact-form-grid .form-group {
    margin-block-end: 0;
    min-width: 0;
}

.contact-form-grid .form-group--full {
    grid-column: 1 / -1;
}

.contact-form-actions {
    display: flex;
    justify-content: flex-start;
    padding-block-start: 0.25rem;
}

.contact-map {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #e8eef0;
    aspect-ratio: 21 / 9;
    min-height: 16rem;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-map-credit {
    margin: -0.75rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.contact-map-credit a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.form-group { margin-block-end: 1rem; }
.form-group label { display: block; margin-block-end: 0.25rem; font-weight: 600; font-size: 0.9rem; }
.form-error { color: #c0392b; font-size: 0.85rem; display: block; }
.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin-block-end: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    background: var(--teal);
    color: #fff;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    border: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn:hover { background: var(--teal-dark); color: #fff; text-decoration: none; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }

.header-donate {
    white-space: nowrap;
}

.donate-account {
    margin-top: 1.25rem;
    padding: 1.1rem 1.15rem;
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.donate-account h2 {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
}

.donate-account__list {
    display: grid;
    gap: 0.65rem;
    margin: 0;
}

.donate-account__list div {
    display: grid;
    gap: 0.15rem;
}

.donate-account__list dt {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.donate-account__list dd {
    margin: 0;
    font-weight: 600;
}

.donate-account__number {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.03em;
}

.donate-account__note {
    margin-top: 0.9rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.donate-qr {
    margin: 1.1rem 0 0;
    text-align: center;
}

.donate-qr img {
    width: min(12rem, 100%);
    height: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    padding: 0.65rem;
}

.donate-qr figcaption {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.donate-form-title {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
}

.donate-form-lede {
    margin: 0 0 1rem;
}

.site-footer {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.78);
    margin-top: 0;
    padding-top: 2.75rem;
    padding-bottom: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-col { min-width: 0; }

.footer-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
}

.footer-logo {
    width: 5.5rem;
    height: 5.5rem;
    object-fit: cover;
    border-radius: 999px;
    background: #fff;
    padding: 0.35rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.footer-logo-fallback {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--teal), var(--navy));
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.footer-slogan {
    margin: 0;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 16rem;
}

.footer-newsletter {
    margin-block-start: 1.25rem;
    text-align: inherit;
    scroll-margin-block-start: 6rem;
}

.footer-newsletter__lede {
    margin: 0 0 0.65rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
}

.footer-newsletter__success {
    margin: 0 0 0.55rem;
    color: #a7f3d0;
    font-size: 0.88rem;
}

.footer-newsletter__form {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.footer-newsletter__form input {
    flex: 1 1 10rem;
    min-width: 0;
    font: inherit;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.footer-newsletter__form .btn {
    white-space: nowrap;
    flex: 0 0 auto;
}

.gallery-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 1rem;
}

.gallery-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-card a {
    color: inherit;
    display: block;
    text-decoration: none;
}

.gallery-card img,
.gallery-card__empty {
    width: 100%;
    height: 11rem;
    object-fit: cover;
    display: block;
}

.gallery-card__empty {
    background: linear-gradient(145deg, rgba(14, 138, 134, 0.18), rgba(11, 36, 48, 0.14));
}

.gallery-card__body {
    padding: 0.9rem 1rem 1rem;
}

.gallery-card__body h2,
.gallery-card__body h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.gallery-mosaic {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 0.85rem;
}

.gallery-mosaic figure {
    margin: 0;
    background: var(--card);
    border-radius: 0.85rem;
    overflow: hidden;
    border: 1px solid var(--line);
}

.gallery-mosaic__trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.gallery-mosaic__trigger:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.gallery-mosaic img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.gallery-mosaic__trigger:hover img {
    transform: scale(1.03);
}

.gallery-mosaic figcaption {
    padding: 0.55rem 0.75rem 0.7rem;
    font-size: 0.85rem;
    color: var(--muted);
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox[hidden] {
    display: none !important;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 28, 34, 0.88);
}

.lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 64rem);
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lightbox__stage {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
}

.lightbox__image {
    max-width: 100%;
    max-height: min(70vh, 40rem);
    object-fit: contain;
    border-radius: 0.5rem;
    background: #04181e;
}

.lightbox__caption {
    margin: 0.65rem 0 0;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    font-size: 0.95rem;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    border-radius: 999px;
    display: grid;
    place-items: center;
}

.lightbox__close {
    top: 0;
    inset-inline-end: 0;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    line-height: 1;
    z-index: 2;
}

.lightbox__nav {
    top: 40%;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.25rem;
}

.lightbox__nav--prev {
    inset-inline-start: 0;
}

.lightbox__nav--next {
    inset-inline-end: 0;
}

.lightbox__thumbs {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.15rem 0.25rem 0.35rem;
    justify-content: safe center;
    scrollbar-width: thin;
}

.lightbox__thumb {
    flex: 0 0 auto;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 0.4rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    opacity: 0.7;
}

.lightbox__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox__thumb.is-active,
.lightbox__thumb:hover {
    opacity: 1;
    border-color: #fff;
}

@media (max-width: 640px) {
    .lightbox__nav {
        top: auto;
        bottom: 5.5rem;
    }

    .lightbox__image {
        max-height: min(58vh, 28rem);
    }
}

.impact-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
    gap: 1rem;
}

.impact-card {
    display: grid;
    gap: 0.35rem;
    padding: 1.35rem 1.2rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, #0b2430, #0e5c5a);
    color: #ecfdf5;
    box-shadow: var(--shadow);
    text-align: center;
}

.impact-card__value {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.impact-card__label {
    font-size: 0.92rem;
    opacity: 0.88;
}

.notice-board {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.notice-card {
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.notice-card h3 { margin: 0 0 0.35rem; }
.notice-card p { margin: 0; color: var(--muted); }
.notice-card--warning { border-color: rgba(245, 158, 11, 0.4); background: #fffbeb; }
.notice-card--urgent { border-color: rgba(220, 38, 38, 0.35); background: #fef2f2; }
.notice-card--success { border-color: rgba(16, 185, 129, 0.35); background: #ecfdf5; }

.footer-social-list {
    justify-content: center;
}

.footer-social-list .social-share-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.footer-social-list .social-share-btn:hover {
    background: var(--teal);
    color: #fff;
}

.footer-heading {
    margin: 0 0 0.9rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-menu,
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.footer-menu a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 100%;
}

.footer-contact-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.footer-contact a span {
    overflow-wrap: anywhere;
}

.footer-menu a:hover,
.footer-contact a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 0 1.25rem;
}

.footer-copy {
    margin: 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-brand { color: #fff; font-weight: 700; margin: 0 0 0.35rem; }
.footer-tagline { max-width: 28rem; margin: 0; }
.footer-meta { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-meta a { color: #fff; }

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-nav-col,
    .footer-contact-col {
        text-align: center;
    }

    .footer-menu,
    .footer-contact {
        justify-items: center;
    }
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
    gap: 1.5rem;
    align-items: start;
}

.content-with-sidebar:not(:has(.site-sidebar)) {
    grid-template-columns: minmax(0, 1fr);
}

.content-primary { min-width: 0; }

.listing-body { min-width: 0; }

.site-sidebar {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 5.5rem;
}

/* Sidebar first in DOM on listings → keep it on the end side (right in LTR, left in RTL). */
.content-with-sidebar--listing {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
}

.content-with-sidebar--listing .site-sidebar {
    grid-column: 2;
    grid-row: 1;
}

.content-with-sidebar--listing .listing-body {
    grid-column: 1;
    grid-row: 1;
}

.sidebar-widget {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
}

.sidebar-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-list li {
    margin-block-end: 0.75rem;
    padding-block-end: 0.75rem;
    border-block-end: 1px solid var(--line);
}

.sidebar-list li:last-child {
    margin-block-end: 0;
    padding-block-end: 0;
    border-block-end: 0;
}

.sidebar-list a {
    display: block;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.92rem;
}

.sidebar-list .meta {
    display: block;
    font-size: 0.78rem;
    margin-block-start: 0.2rem;
}

.sidebar-ad {
    width: 100%;
    border-radius: 0.75rem;
    display: block;
}

.sidebar-html { font-size: 0.92rem; }

.social-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-block: 1.75rem 0.5rem;
    padding-block-start: 1.25rem;
    border-block-start: 1px solid var(--line);
}

.social-share-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

.social-share-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-share-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--mist);
    color: var(--navy);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.social-share-btn:hover {
    background: var(--teal);
    color: #fff;
    transform: translateY(-1px);
}

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-block-start: 1.5rem;
}

.pager-summary {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.pager-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pager-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.65rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: #fff;
    color: var(--navy);
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
}

.pager-item.is-active .pager-link {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.pager-item.is-disabled .pager-link {
    opacity: 0.45;
    cursor: not-allowed;
}

.pager-item:not(.is-disabled):not(.is-active) .pager-link:hover {
    border-color: var(--teal);
    color: var(--teal-dark);
}

/* Safety: never let stray pagination SVGs explode without Tailwind. */
nav[aria-label="Pagination Navigation"] svg {
    width: 1.15rem;
    height: 1.15rem;
    max-width: 1.15rem;
    max-height: 1.15rem;
}

@media (max-width: 860px) {
    .nav-toggle-label { display: grid; }
    .site-nav,
    .header-contact { display: none; }
    .header-actions { margin-inline-start: 0; }
    .nav-toggle:checked ~ .site-nav {
        display: block;
        position: absolute;
        inset-inline: 0;
        top: 100%;
        background: #fff;
        padding: 0.75rem 1.5rem 1.25rem;
        border-block-end: 1px solid var(--line);
    }
    .site-nav ul { flex-direction: column; }
    .site-nav > ul > li { width: 100%; }
    .site-nav > ul > li > .site-nav__sub {
        position: static;
        min-width: 0;
        margin: 0.2rem 0 0.35rem;
        padding: 0.15rem 0 0.15rem 0.75rem;
        border: 0;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
    }
    .header-inner { flex-wrap: wrap; }
    .about-panel,
    .about-panel--duo .about-duo,
    .contact-band,
    .contact-layout,
    .contact-form-grid,
    .timeline-item,
    .partner-rail[data-count="2"],
    .partner-rail[data-count="3"],
    .event-board--duo,
    .event-board--solo .event-spotlight__link,
    .meeting-board,
    .content-with-sidebar,
    .content-with-sidebar--listing {
        grid-template-columns: 1fr;
    }

    .event-board--solo .event-spotlight__date {
        margin: 1rem 1rem 0;
    }

    .event-board--solo .event-spotlight__body {
        padding: 0.85rem 1rem 1rem;
    }

    .event-board--solo .event-spotlight__media img {
        min-height: 10rem;
    }

    .content-with-sidebar--listing .site-sidebar,
    .content-with-sidebar--listing .listing-body {
        grid-column: 1;
        grid-row: auto;
    }

    .site-sidebar {
        position: static;
    }
    .slide-overlay, .hero-banner { padding-block-start: 7rem; }
}
