:root {
    --bg: #f4f7f9;
    --surface: #ffffff;
    --navy: #102a43;
    --blue: #1f5f8b;
    --teal: #486581;
    --text: #243b53;
    --muted: #627d98;
    --border: #d9e2ec;
    --warning: #b91c1c;
    --success: #166534;

    --shadow:
        0 4px 10px rgba(0,0,0,0.06);

    --radius: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);

    font-family:
        "IBM Plex Sans",
        system-ui,
        sans-serif;

    line-height: 1.6;
}

img {
    max-width: 100%;
}

.container {
    width: min(1120px, 92%);
    margin-inline: auto;
}

.narrow {
    width: min(800px, 92%);
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    background: white;
    padding: 1rem;
    z-index: 1000;
}

.gov-banner {
    background: var(--navy);
    color: white;
    font-size: 0.9rem;
}

.gov-banner-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
}

.site-header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.branding {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.agency-seal {
    font-size: clamp(0.8rem, 2vw, 1rem);

    width: 4.5em;
    aspect-ratio: 1;

    border-radius: 50%;
    flex-shrink: 0;

    background: var(--navy);
    color: white;

    display: grid;
    place-items: center;

    font-weight: 700;
    letter-spacing: 1px;
}

.agency-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    color: var(--muted);
}

.site-header h1 {
    margin: 0;
    font-size: clamp(1.3rem, 3vw, 2rem);
    line-height: 1.2;
    color: var(--navy);
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--blue);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.hero {
    padding: 5rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.eyebrow,
.section-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.hero h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-top: 0;
    color: var(--navy);
}

.hero-text {
    font-size: 1.1rem;
    max-width: 60ch;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.button {
    display: inline-block;
    padding: 0.9rem 1.3rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.button.primary {
    background: var(--blue);
    color: white;
}

.button.secondary {
    border: 1px solid var(--border);
    color: var(--text);
    background: white;
}

.button.tertiary {
    border: 2px dashed color-mix(in srgb, var(--blue) 15%, white);
    background: #f8fbff;
    color: var(--text-muted);
	font-style: italic;
}

.status-panel {
    background: white;
    border: 1px solid var(--border);
    border-left: 6px solid var(--warning);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.status-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    font-size: 0.8rem;
}

.status-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0 1rem;
}

.status-value.normal {
    color: #1f7a4d; /* muted institutional green */
}

.status-value.elevated {
    color: #b7791f; /* amber warning */
}

.status-value.widespread {
    color: #c05621; /* deeper orange (more serious than elevated) */
}

.status-value.severe {
    color: #c53030; /* strong red */
}

.status-value.persistent {
    color: #9b2c2c; /* darker red, more entrenched risk */
}

.status-value.critical {
    color: #742a2a; /* deepest red / near-brown for extreme state */
}

.notice-section,
.reports-section,
.stats-section,
.history-section {
    padding: 4rem 0;
}

.alert-panel {
    background: #fff7ed;
    border-left: 6px solid #ea580c;
    padding: 1.5rem;
    border-radius: var(--radius);
	margin-bottom: 2rem;
}

.alert-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h3 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--navy);
}

.report-grid,
.stats-grid,
.footer-grid {
    display: grid;
    gap: 1.5rem;
}

.report-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.report-card,
.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.report-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

.report-card h4 {
    margin-top: 0;
    color: var(--navy);
}

.report-card a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy);
}

.history-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* column styling */
.history-column,
.about-column {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.about-column p {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* optional section label inside columns */
.subsection-title {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* responsive: stack on mobile */
@media (max-width: 900px) {
    .history-about-grid {
        grid-template-columns: 1fr;
    }
}

.timeline {
    border-left: 2px solid var(--border);
    padding-left: 2rem;
}

.timeline-item {
    margin-bottom: 2rem;
}

.timeline-year {
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.4rem;
}

.site-footer {
    background: var(--navy);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer a {
    color: #dbeafe;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.page-hero {
    padding: 4rem 0 2rem;
}

.page-hero h2 {
    margin-top: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--navy);
}

.faq-section,
.archive-section,
.media-section,
.about-section,
.classic-section {
    padding: 2rem 0 4rem;
}

.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem;
    background: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
}

.archive-toolbar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.archive-toolbar input,
.archive-toolbar select {
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font: inherit;
}

.archive-list {
    display: grid;
    gap: 1.5rem;
}

.archive-entry,
.media-card,
.mission-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.archive-meta {
    text-transform: uppercase;
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.mission-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        background: white;
        border-bottom: 1px solid var(--border);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
    }

    .header-inner {
        position: relative;
    }

}

@media (max-width: 640px) {

    .gov-banner-inner {
        flex-direction: column;
    }

    .branding {
        gap: 0.75rem;
    }

    .agency-seal {
        width: 56px;
        height: 56px;
        font-size: 0.8rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

}

.report-hero {
    padding-bottom: 1rem;
}

.report-subtitle {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 65ch;
}

.report-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.report-content {
    padding-bottom: 4rem;
}

.abstract-box {
    background: white;
    border: 1px solid var(--border);
    border-left: 6px solid var(--blue);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.key-findings {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.report-content h3 {
    color: var(--navy);
    margin-top: 1rem;
}

.report-content p,
.report-content li {
    max-width: 70ch;
}

.references {
    font-size: 0.95rem;
}

.related-reports {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.report-figure {
    margin: 1.25rem 0;
    padding: 0;
}

.report-figure img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid #cfcfcf;
    background: #fff;
}

.report-figure figcaption {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
}

.figure-meta {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.report-content figure {
    background: #fafafa;
    padding: 0.75rem;
    border: 1px solid #e5e5e5;
}

/* =========================
   SURVEY ARCHIVE
========================= */

.survey-archive {
    margin-top: 40px;
}

.archive-intro {
    color: #555;
    margin-bottom: 20px;
}

/* Report summary bar */
.survey-report-summary {
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-size: 14px;
}

.survey-report-id {
    font-weight: 700;
    color: #1a4fb3;
    min-width: 70px;
}

.survey-report-title {
    font-weight: 600;
    flex: 1;
}

.survey-report-meta-inline {
    font-size: 12px;
    color: #666;
}

/* Details styling */
.survey-report-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
}

.survey-report-card summary {
    cursor: pointer;
    padding: 12px 14px;
    background: #f6f8fa;
    list-style: none;
}

.survey-report-card summary::-webkit-details-marker {
    display: none;
}

/* Body */
.survey-report-body {
    padding: 14px;
    border-top: 1px solid #e5e5e5;
}

.survey-report-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 6px 12px;
    font-size: 14px;
    margin-bottom: 12px;
}

/* Table styling (replaces old nested tables) */
.survey-report-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 14px;
}

.survey-report-table td {
    border: 1px solid #ddd;
    padding: 6px 8px;
}

.survey-report-table td:first-child {
    background: #f7f7f7;
}

/* Headings inside cards */
.survey-report-body h4 {
    margin: 12px 0 6px;
    font-size: 15px;
    color: #333;
}

.resource-group {
    margin-top: 2.5rem;
}

.resource-group h4 {
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}