:root {
    --ink: #182638;
    --muted: #566579;
    --accent: #187c70;
    --blue: #3466bb;
    --line: #dde4eb;
    --soft: #f5f7fa;
    --green: #edf7f4;
    --page: 1000px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

a {
    color: var(--blue);
    text-underline-offset: 3px;
}

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

button {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}

button {
    cursor: pointer;
}

.container {
    width: min(var(--page), calc(100% - 48px));
    margin: auto;
}

.skip-link {
    position: absolute;
    top: -80px;
    left: 16px;
    background: #fff;
    padding: 12px;
    z-index: 5;
}

.skip-link:focus {
    top: 10px;
}

.site-nav {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 62px;
}

.wordmark {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -.04em;
}

.nav-links {
    display: flex;
    gap: 25px;
    font-size: 13px;
    font-weight: 600;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--accent);
}

.hero {
    text-align: center;
    padding: 65px 0 38px;
}

h1 {
    font-size: clamp(2.35rem, 5.4vw, 3.65rem);
    line-height: 1.14;
    letter-spacing: -.045em;
    margin: 0 0 22px;
    font-weight: 800;
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    line-height: 1.25;
    letter-spacing: -.035em;
    margin: 0 0 20px;
}

h3 {
    font-size: 1.1rem;
    line-height: 1.45;
    letter-spacing: -.015em;
    margin: 24px 0 10px;
}

p {
    margin: 0 0 18px;
}

.authors {
    max-width: 880px;
    margin: 0 auto 10px;
    font-weight: 550;
    font-size: 16px;
    line-height: 1.95;
}

.authors span {
    display: inline-block;
    margin: 0 5px;
}

.affiliation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 24px;
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.advising {
    font-size: 12px;
    color: var(--muted);
    margin: 2px 0 24px;
}

.buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ink);
    border-radius: 7px;
    padding: 9px 19px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background: var(--ink);
    color: white;
}

.button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.button.secondary {
    background: white;
    color: var(--ink);
    border-color: var(--line);
}

.button.secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.button.secondary:disabled {
    background: var(--soft);
    border-color: var(--line);
    color: var(--muted);
    cursor: default;
    opacity: 1;
}

.button-note {
    font-size: 11px;
    font-weight: 400;
}

.button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.note, figcaption {
    font-size: 13px;
    line-height: 1.65;
    color: var(--muted);
}

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

.section.tint {
    background: var(--soft);
}

figure {
    margin: 25px 0 0;
}

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

figure a {
    display: block;
}

figcaption {
    margin: 14px 0 0;
}

.abstract {
    max-width: 880px;
    font-size: 16px;
    line-height: 1.85;
}

.abstract h2 {
    text-align: center;
}

.abstract p:last-child {
    margin: 0;
}

.pipeline-steps {
    margin-top: 30px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green);
    color: var(--accent);
    font-size: 12px;
    font-weight: 750;
}

.pipeline-steps h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 12px;
}

.pipeline-steps .step-number {
    flex-shrink: 0;
}

.callout {
    border-left: 3px solid var(--accent);
    background: var(--green);
    padding: 17px 21px;
    margin-top: 26px;
    font-size: 14px;
}

.callout p:last-child {
    margin: 0;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 20px 0 12px;
    background: white;
    scrollbar-width: thin;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
    line-height: 1.6;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

caption {
    text-align: left;
    font-weight: 700;
    padding: 13px 16px;
    background: #fff;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
}

th, td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

thead th {
    font-size: 11px;
    color: var(--muted);
    font-weight: 650;
    background: var(--soft);
}

th:first-child {
    text-align: left;
}

tbody th {
    font-weight: 500;
}

tbody tr:last-child> * {
    border-bottom: 0;
}

.highlight> * {
    background: var(--green);
}

.highlight th {
    font-weight: 700;
    color: var(--accent);
}

.best {
    font-weight: 750;
}

.uncertainty {
    font-size: 11px;
    color: var(--muted);
    margin-left: 1px;
}

.findings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 25px;
}

.findings h3 {
    margin-top: 0;
}

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

.citation-box {
    position: relative;
}

#citation > .container > p {
    margin-bottom: 12px;
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 12px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    padding: 5px 12px;
    margin: 0;
}

.citation-box pre {
    margin: 0;
    overflow-x: auto;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 48px 22px 22px;
    font-size: 12px;
    line-height: 1.9;
    tab-size: 2;
}

.copy-status {
    font-size: 12px;
    color: var(--muted);
}

footer {
    padding: 26px 0 34px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

footer p {
    margin: 0;
}

.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    background: var(--ink);
    color: white;
    border: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    box-shadow: 0 2px 12px #18263820;
}

[hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .container {
        width: calc(100% - 32px);
    }

    .hero {
        padding: 44px 0 28px;
    }

    .nav-inner {
        gap: 12px;
        min-height: 56px;
    }

    .nav-links {
        gap: 16px;
        font-size: 12px;
        overflow-x: auto;
    }

    .nav-links a {
        white-space: nowrap;
    }

    .nav-links .optional {
        display: none;
    }

    .authors {
        font-size: 14px;
    }

    .section {
        padding: 38px 0;
    }

    .findings {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    th, td {
        padding: 10px 12px;
    }

    figure {
        margin-top: 20px;
    }

    figcaption {
        font-size: 12px;
    }

    .scroll-top {
        right: 14px;
        bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media print {
    .site-nav, .buttons, .scroll-top, .copy-button {
        display: none !important;
    }

    .section {
        padding: 24px 0;
    }

    .container {
        width: 100%;
    }

    .table-scroll {
        overflow: visible;
    }

    body {
        font-size: 11px;
    }

    figure, table {
        break-inside: avoid;
    }

    .hero {
        padding: 20px 0;
    }
}
