:root {
    --bg: #ffffff;
    --panel: #ffffff;
    --ink: #061a3a;
    --muted: #66758a;
    --line: #d8e0e9;
    --mint: #1f5fa8;
    --blue: #6686bb;
    --pale: #f4f7fb;
    --soft-blue: #a4bfdc;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 30px;
}

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

.page-header,
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--line);
}

.brand {
    color: var(--ink);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-decoration: none;
}

.edition,
.section-label,
.eyebrow {
    color: var(--mint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

/* HERO */

.hero {
    padding: 65px 0 58px;
    border-bottom: 1px solid var(--line);
}

h1 {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin: 18px 0 12px;
    font-weight: 700;
}

.hero h2 {
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 400;
    color: var(--muted);
    line-height: 1.45;
    margin-bottom: 27px;
}

.intro-text {
    max-width: 730px;
    color: var(--muted);
    font-size: 15px;
}

.research-meta {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 11px;
    color: var(--muted);
}

/* SECTIONS */

.section {
    padding: 50px 0;
    border-bottom: 1px solid var(--line);
}

.section h2 {
    font-size: clamp(22px, 2.7vw, 28px);
    line-height: 1.35;
    letter-spacing: -0.4px;
    margin: 13px 0 17px;
    font-weight: 650;
}

.section>p {
    max-width: 800px;
    color: var(--muted);
}

h3 {
    font-size: 17px;
    line-height: 1.4;
    margin-top: 0;
    font-weight: 650;
}

/* RESEARCH QUESTIONS */

.question-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.question-grid article {
    background: var(--pale);
    border: 1px solid var(--line);
    padding: 24px;
    border-radius: 5px;
}

.number {
    color: var(--mint);
    font-weight: 700;
    font-size: 12px;
}

.question-grid h3 {
    margin: 12px 0 8px;
}

.question-grid p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 0;
}

/* METRICS */

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.metric {
    border: 1px solid var(--line);
    background: var(--pale);
    border-radius: 5px;
    padding: 23px 20px;
}

.metric strong {
    display: block;
    font-size: clamp(27px, 3vw, 36px);
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 5px;
}

.metric p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.data-note {
    font-size: 12px !important;
    line-height: 1.6;
    color: var(--muted);
    margin-top: 17px;
}

/* CHART CARDS */

.chart-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 30px;
    margin-top: 28px;
}

.chart-top,
.scenario-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

select {
    font-family: inherit;
    font-size: 13px;
    background: #ffffff;
    color: var(--ink);
    border: 1px solid #c2cfdb;
    padding: 10px 12px;
    border-radius: 4px;
    max-width: 100%;
}

.bar-chart {
    margin-top: 23px;
}

.bar-row {
    display: grid;
    grid-template-columns: 95px 1fr 55px;
    gap: 15px;
    align-items: center;
    margin: 18px 0;
}

.bar-name {
    font-size: 13px;
    color: var(--muted);
}

.bar-track {
    height: 22px;
    background: #eaf0f6;
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--mint);
    border-radius: 3px;
    transition: width 0.25s ease;
}

.bar-value {
    font-size: 14px;
    text-align: right;
    font-weight: 700;
    color: var(--ink);
}

/* STACKED BAR */

.stacked-chart {
    display: flex;
    height: 28px;
    overflow: hidden;
    border-radius: 4px;
    margin: 30px 0 20px;
}

.stacked-chart span {
    display: block;
    height: 100%;
}

.always {
    background: var(--mint);
}

.sometimes {
    background: var(--blue);
}

.never {
    background: #c6d3e0;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.legend div {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--muted);
}

.legend b {
    color: var(--ink);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

/* SCENARIO CONTROLS */

.scenario-label {
    font-size: 10px;
    letter-spacing: 0.8px;
    color: var(--mint);
    background: var(--pale);
    padding: 5px 9px;
    border-radius: 3px;
}

.control {
    margin: 24px 0;
}

.control label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--ink);
}

.control label strong {
    color: var(--mint);
}

input[type="range"] {
    width: 100%;
    accent-color: var(--mint);
    cursor: pointer;
}

.scenario-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 28px 0;
}

.scenario-results>div {
    background: var(--pale);
    border: 1px solid var(--line);
    padding: 23px;
    border-radius: 5px;
}

.scenario-results span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 7px;
}

.scenario-results strong {
    font-size: 29px;
    color: var(--ink);
    line-height: 1.3;
}

button {
    font-family: inherit;
    background: var(--mint);
    color: white;
    border: 1px solid var(--mint);
    border-radius: 4px;
    padding: 11px 22px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background: var(--ink);
}

button:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
}

/* BENEFITS AND CONCERNS */

.comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.comparison-card {
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--pale);
    padding: 27px;
}

.comparison-card h3 {
    color: var(--ink);
    font-size: 17px;
    margin-bottom: 20px;
}

.comparison-card ul {
    padding-left: 20px;
    margin: 0;
}

.comparison-card li {
    padding: 6px 0;
    color: var(--muted);
    font-size: 14px;
}

/* CONCLUSION */

.conclusion blockquote {
    border-left: 3px solid var(--mint);
    padding: 13px 0 13px 22px;
    margin: 32px 0 0;
    max-width: 800px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.6;
    font-style: italic;
}

/* SOURCES */

.source-links {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.source-links a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.source-links a:hover {
    text-decoration: underline;
}

.footer {
    border-bottom: none;
    font-size: 12px;
    color: var(--muted);
    padding: 30px 0 45px;
}

/* TABLET */

@media (max-width: 850px) {
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* MOBILE */

@media (max-width: 600px) {
    .page {
        padding: 0 17px;
    }

    .page-header,
    .footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding: 45px 0;
    }

    .section {
        padding: 37px 0;
    }

    .metric-grid,
    .comparison,
    .scenario-results {
        grid-template-columns: 1fr;
    }

    .chart-card {
        padding: 19px;
    }

    .chart-top,
    .scenario-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bar-row {
        grid-template-columns: 65px 1fr 48px;
        gap: 8px;
    }

    .bar-name {
        font-size: 11px;
    }

    .legend {
        gap: 14px;
    }

    .conclusion blockquote {
        font-size: 16px;
    }
}