:root {
    --navy: #0f2740;
    --navy-2: #16324f;
    --ink: #1c2834;
    --muted: #5b6773;
    --line: #d7dee6;
    --paper: #f6f8fb;
    --white: #ffffff;
    --accent: #c9a227;
    --accent-ink: #0f2740;
    --radius: 12px;
    --shadow: 0 8px 24px rgba(15, 39, 64, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
}

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

a {
    color: var(--navy);
}

a:hover {
    color: var(--accent-ink);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--accent);
    color: var(--navy);
    padding: 8px 12px;
    z-index: 1000;
}

.skip-link:focus {
    left: 8px;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-bar {
    background: var(--navy);
    color: #dce6f0;
    font-size: 13px;
}

.header-bar-inner {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
}

.header-bar p,
.header-bar a {
    margin: 0;
    color: inherit;
    text-decoration: none;
}

.header-meta {
    display: none;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--navy);
    min-width: 0;
}

.logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.logo strong {
    display: block;
    font-size: 18px;
}

.logo small {
    display: none;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

.menu-toggle {
    min-height: 44px;
    min-width: 72px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 8px;
    font-weight: 600;
    color: var(--navy);
}

.site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.site-nav.is-open {
    display: block;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 8px 0 16px;
}

.site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 8px;
    text-decoration: none;
    font-weight: 600;
}

.site-nav a[aria-current="page"] {
    color: var(--accent-ink);
    box-shadow: inset 0 -2px 0 var(--accent);
}

.hero,
.page-hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%);
    color: var(--white);
    padding: 48px 0;
}

.hero h1,
.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
}

.hero p,
.page-hero p {
    margin: 0;
    max-width: 46rem;
    color: #e4ebf3;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: 0;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--navy);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.section {
    padding: 40px 0;
}

.section-muted {
    background: var(--paper);
}

.cards {
    display: grid;
    gap: 20px;
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body,
.prose,
.member-info {
    padding: 20px;
}

.card h2,
.card h3,
.page-hero + .section h2,
.prose h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.card p,
.prose p,
.prose li {
    color: var(--muted);
}

.quote {
    text-align: center;
}

.quote h2 {
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    font-weight: 600;
    margin: 0;
    color: var(--navy);
}

.values {
    display: grid;
    gap: 16px;
}

.value {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.value h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.split {
    display: grid;
    gap: 24px;
}

details.accordion {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    margin-bottom: 12px;
}

details.accordion summary {
    cursor: pointer;
    font-weight: 700;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
}

.accordion-body {
    padding: 0 16px 16px;
    color: var(--muted);
}

.sector-block {
    display: grid;
    gap: 16px;
}

.sector-block img {
    width: 100%;
    max-width: 220px;
    border-radius: 8px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.team-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.team-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.member-info h3 {
    margin: 0;
    font-size: 1rem;
}

.member-info p {
    margin: 4px 0 0;
    color: var(--muted);
}

.benefit-list {
    padding-left: 1.2rem;
}

.benefit-list li {
    margin-bottom: 10px;
}

.form {
    display: grid;
    gap: 12px;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    background: var(--white);
}

.form textarea {
    min-height: 140px;
}

.form-grid {
    display: grid;
    gap: 12px;
}

.form fieldset {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    margin: 8px 0 0;
}

.form legend {
    font-weight: 700;
    padding: 0 6px;
    color: var(--navy);
}

.choice-grid {
    display: grid;
    gap: 8px;
}

.choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 44px;
}

.choice input {
    width: 20px;
    min-height: 20px;
    margin-top: 4px;
    flex: none;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-ok {
    background: #e8f6ee;
    color: #14532d;
}

.alert-err {
    background: #fdecec;
    color: #7f1d1d;
}

.contact-grid,
.map-wrap {
    display: grid;
    gap: 24px;
}

.map-wrap iframe {
    width: 100%;
    min-height: 240px;
    border: 0;
    border-radius: var(--radius);
}

.site-footer {
    background: var(--navy);
    color: #d5dee8;
    padding-top: 40px;
}

.site-footer a {
    color: #f3f6fa;
}

.site-footer h2 {
    color: var(--white);
    font-size: 1rem;
    margin: 0 0 12px;
}

.footer-grid {
    display: grid;
    gap: 28px;
    padding-bottom: 28px;
}

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

.footer-grid li {
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
}

.footer-bottom ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin: 0;
    padding: 0;
}

@media (min-width: 720px) {
    .header-meta {
        display: block;
    }

    .logo small {
        display: block;
    }

    .cards {
        grid-template-columns: 1fr 1fr;
    }

    .values,
    .split,
    .contact-grid,
    .form-grid,
    .choice-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sector-block {
        grid-template-columns: 180px 1fr;
        align-items: start;
    }

    .footer-grid {
        grid-template-columns: 1.3fr 1fr 1.2fr 1fr;
    }

    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 980px) {
    .menu-toggle {
        display: none;
    }

    .site-nav {
        display: block;
        position: static;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .site-nav ul {
        display: flex;
        gap: 4px;
        padding: 0;
    }

    .cards {
        grid-template-columns: 1fr 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Media Centre */
.btn-outline {
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--navy);
}

.btn-outline:hover {
    background: var(--paper);
}

.btn-sm {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.9rem;
}

.media-toolbar-section {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.media-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.media-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.media-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--navy);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.media-tab.is-active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.78rem;
    background: rgba(15, 39, 64, 0.12);
}

.media-tab.is-active .badge-count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.scroll-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scroll-hint {
    font-size: 0.88rem;
    color: var(--muted);
    margin-right: 4px;
}

.scroll-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--navy);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.media-track-wrap {
    position: relative;
}

.media-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 18px;
    scrollbar-color: var(--navy) var(--paper);
    scrollbar-width: thin;
}

.media-track::-webkit-scrollbar {
    height: 10px;
}

.media-track::-webkit-scrollbar-track {
    background: var(--paper);
    border-radius: 999px;
}

.media-track::-webkit-scrollbar-thumb {
    background: #9fb0c2;
    border-radius: 999px;
}

.media-track::-webkit-scrollbar-thumb:hover {
    background: var(--navy);
}

.media-post-card {
    flex: 0 0 min(330px, 84vw);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.media-post-card[hidden] {
    display: none;
}

.media-cover-btn,
.media-cover-link {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--paper);
    cursor: pointer;
    overflow: hidden;
}

.media-cover-btn img,
.media-cover-link img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.media-cover-btn:hover img,
.media-cover-link:hover img {
    transform: scale(1.03);
}

.media-ext-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 39, 64, 0.88);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.media-doc-cover {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 190px;
    padding: 18px;
    text-decoration: none;
    color: var(--white);
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-2) 100%);
}

.media-doc-events {
    background: linear-gradient(145deg, #1b4332 0%, #2d6a4f 100%);
}

.media-doc-newsletter {
    background: linear-gradient(145deg, #223854 0%, #375a7f 100%);
}

.doc-cover-badge {
    align-self: flex-end;
    background: var(--accent);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
}

.doc-cover-folder {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #dce6f0;
}

.doc-cover-date {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.media-post-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.media-post-body h2 {
    margin: 0 0 8px;
    font-size: 1.12rem;
    color: var(--navy);
}

.media-file-meta {
    margin: 0 0 16px;
    font-size: 0.85rem;
    color: var(--muted);
    word-break: break-word;
}

.media-post-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.meta-text {
    font-size: 0.88rem;
    color: var(--muted);
}

.pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.pill-accent {
    background: var(--accent);
    color: var(--navy);
}

.pill-muted {
    background: #e5ebf1;
    color: var(--navy);
}

.pill-navy {
    background: var(--navy);
    color: var(--white);
}

.empty-state {
    background: var(--paper);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
}

.empty-state h2 {
    margin: 0 0 8px;
    color: var(--navy);
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

.media-lightbox[hidden] {
    display: none;
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 20, 32, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox-figure {
    margin: 0;
    max-width: min(960px, 88vw);
    text-align: center;
}

.lightbox-figure img {
    max-height: 78vh;
    width: auto;
    margin: 0 auto;
    border-radius: 8px;
}

.lightbox-figure figcaption {
    margin-top: 10px;
    color: #e4ebf3;
    font-size: 0.95rem;
}

.lightbox-close,
.lightbox-nav {
    position: fixed;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close {
    top: 18px;
    right: 18px;
}

.lightbox-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}
