:root {
    --ink: #16231f;
    --muted: #61706a;
    --paper: #f4f7f5;
    --white: #ffffff;
    --line: #dce5e0;
    --green: #176b52;
    --green-dark: #104936;
    --blue: #275f78;
    --shadow: 0 18px 46px rgba(20, 47, 38, 0.1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: inherit; }

.site-header {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(24px, calc((100vw - 1180px) / 2));
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.identity {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
}

.identity-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: var(--green);
    color: white;
    font-size: 13px;
}

.edit-link {
    color: var(--muted);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero {
    position: relative;
    min-height: min(560px, 68vh);
    display: flex;
    align-items: flex-end;
    background: #dfeae5;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.hero:not(.has-image) {
    background:
        linear-gradient(125deg, rgba(16, 73, 54, 0.98), rgba(39, 95, 120, 0.85)),
        #176b52;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 26, 20, 0.86) 0%, rgba(7, 26, 20, 0.5) 55%, rgba(7, 26, 20, 0.12) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 90px 0 70px;
    color: white;
}

.hero h1 {
    max-width: 800px;
    margin: 8px 0 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: 0;
}

.intro {
    max-width: 680px;
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: 19px;
}

.eyebrow {
    margin: 0;
    color: var(--green);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero .eyebrow { color: #b9ead6; }

.portal-section,
.kpi-section,
.story-section,
.document-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 70px 0;
}

.section-heading h2,
.story-copy h2 {
    margin: 6px 0 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    line-height: 1.15;
}

.portal-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.portal-tab {
    min-height: 175px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease;
}

.portal-tab:hover {
    transform: translateY(-3px);
    border-color: var(--green);
}

.tab-code {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    background: var(--green);
    color: white;
    font-size: 13px;
    font-weight: 900;
}

.portal-tab.vap .tab-code { background: var(--blue); }

.tab-copy {
    display: grid;
    gap: 7px;
}

.tab-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
}

.tab-copy small {
    color: var(--muted);
    font-size: 14px;
}

.arrow {
    font-size: 28px;
    color: var(--green);
}

.kpi-section {
    padding-top: 10px;
}

.kpi-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .86fr) minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    padding: 28px;
    background: var(--white);
    border: 1px solid rgba(177, 83, 31, .22);
    box-shadow: var(--shadow);
}

.kpi-card {
    min-height: 210px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    padding: 24px;
    border: 3px solid rgba(177, 83, 31, .42);
    color: #a94c08;
    text-align: center;
}

.kpi-card-center {
    width: min(100%, 280px);
    aspect-ratio: 1;
    justify-self: center;
    border-radius: 50%;
    border-width: 28px;
    border-left-color: #a96142;
    border-right-color: #df9a6d;
    box-shadow: 0 10px 22px rgba(69, 42, 25, .18);
}

.kpi-icon {
    font-size: 42px;
    line-height: 1;
}

.kpi-card h3 {
    margin: 0;
    font-size: clamp(22px, 2.5vw, 30px);
    line-height: 1.15;
}

.kpi-card strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(38px, 4.6vw, 58px);
    line-height: 1;
}

.kpi-card-center strong {
    font-size: clamp(34px, 4vw, 48px);
}

.kpi-card p {
    margin: 10px 0 0;
    color: #a94c08;
    font-weight: 800;
}

.story-section {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 50px;
    border-top: 1px solid var(--line);
}

.document-section {
    border-top: 1px solid var(--line);
}

.document-box {
    overflow-x: auto;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    scroll-snap-type: x proximity;
}

.document-list {
    display: flex;
    gap: 10px;
    min-width: min-content;
}

.document-title-link {
    flex: 0 0 auto;
    max-width: min(360px, calc(100vw - 96px));
    padding: 12px 16px;
    background: #f7faf8;
    border: 1px solid var(--line);
    color: var(--green-dark);
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    scroll-snap-align: start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.document-title-link:hover,
.document-title-link:focus-visible {
    background: #edf5f1;
    border-color: var(--green);
    color: var(--green);
}

.story-copy p:last-child {
    color: var(--muted);
    white-space: normal;
}

.gallery-slider {
    min-width: 0;
    align-self: start;
}

.gallery-slider h3 {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.1;
    color: var(--green);
}

.slider-viewport {
    overflow: hidden;
    background: #e4ebe7;
    box-shadow: var(--shadow);
    touch-action: pan-y;
}

.slider-track {
    display: flex;
    transition: transform 480ms ease;
    will-change: transform;
}

.slider-slide {
    flex: 0 0 100%;
    margin: 0;
}

.slider-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.slider-controls {
    min-height: 50px;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
}

.slider-button,
.slider-dots button {
    border: 0;
    cursor: pointer;
}

.slider-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--white);
    color: var(--green);
    box-shadow: 0 8px 20px rgba(20, 47, 38, .09);
    font: 700 19px/1 system-ui, sans-serif;
}

.slider-button:hover,
.slider-button:focus-visible {
    background: var(--green);
    color: white;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.slider-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    background: #b9c8c1;
}

.slider-dots button[aria-selected="true"] {
    width: 25px;
    border-radius: 999px;
    background: var(--green);
}

.slider-button:focus-visible,
.slider-dots button:focus-visible {
    outline: 3px solid rgba(23, 107, 82, .25);
    outline-offset: 3px;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 30px max(24px, calc((100vw - 1180px) / 2));
    background: var(--white);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 760px) {
    .site-header { padding: 0 18px; }
    .hero-content,
    .portal-section,
    .kpi-section,
    .story-section,
    .document-section { width: min(100% - 32px, 1180px); }
    .hero { min-height: 520px; }
    .portal-tabs,
    .kpi-band,
    .story-section { grid-template-columns: 1fr; }
    .kpi-band { padding: 18px; }
    .kpi-card-center { width: min(280px, 100%); }
    .portal-tab { grid-template-columns: auto 1fr; }
    .portal-tab .arrow { display: none; }
    .slider-slide img { aspect-ratio: 4 / 3; }
    footer { flex-direction: column; padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .slider-track { transition: none; }
}
