/* Research-only additions to the existing Nightfall theme. */
.research-page {
    --research-muted: #b8bac2;
    --research-rule: #45474f;
    line-height: 1.65;
}

.research-page .flexWrapper,
.research-page .content {
    width: 100%;
    min-width: 0;
}

.research-page .header {
    box-sizing: border-box;
    width: 920px;
    max-width: 100%;
    gap: 16px;
}

.research-page .headerLinks {
    position: static;
    width: auto;
    height: auto;
    max-height: none;
    overflow: visible;
    background: transparent;
    flex-shrink: 0;
}

.research-page .headerLinks a[aria-current="page"] {
    color: #80aadd;
}

.research-page .research {
    box-sizing: border-box;
    width: 920px;
    max-width: 100%;
    padding: 64px 24px 80px;
    min-width: 0;
    text-align: left;
}

.research-intro {
    max-width: 700px;
    margin-bottom: 48px;
}

.research-intro h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin: 12px 0 20px;
    letter-spacing: -0.04em;
}

.research-intro > p:not(.eyebrow) {
    color: var(--research-muted);
    font-size: 1.05rem;
}

.eyebrow,
.publication-type {
    color: var(--research-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-links,
.year-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.profile-links a,
.year-nav a {
    display: inline-block;
    padding: 6px 0;
}

.publications-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
}

.publications-heading h2 {
    margin: 0;
    font-size: 1.25rem;
}

.year-nav {
    gap: 16px;
    font-size: 0.875rem;
}

.contribution-note {
    color: var(--research-muted);
    font-size: 0.8125rem;
    margin: 8px 0 24px;
}

.publication-year {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 24px;
    border-top: 1px solid var(--research-rule);
    padding: 28px 0;
}

.publication-year > h3 {
    color: var(--research-muted);
    font-size: 1rem;
    margin: 0;
    scroll-margin-top: 24px;
}

.publication + .publication {
    border-top: 1px solid var(--research-rule);
    margin-top: 28px;
    padding-top: 28px;
}

.publication h4 {
    font-family: "open sans", sans-serif;
    font-size: 1.125rem;
    line-height: 1.5;
    margin: 6px 0 10px;
    overflow-wrap: break-word;
}

.publication h4 a {
    color: #f8f8ff;
}

.publication h4 a:hover {
    color: #80aadd;
}

.venue a::after {
    content: " ↗";
}

.publication p {
    margin: 6px 0;
}

.publication .publication-type {
    margin-top: 0;
}

.authors,
.other-versions,
.publication-detail {
    color: var(--research-muted);
    font-size: 0.875rem;
}

.authors strong {
    color: #f8f8ff;
}

.venue {
    font-size: 0.9375rem;
}

.other-versions a {
    display: inline-block;
    margin: 2px 4px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.research-page a:focus-visible {
    outline: 2px solid #80aadd;
    outline-offset: 5px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 16px;
    z-index: 10;
    transform: translateY(-150%);
    padding: 8px 16px;
    background: #252627;
}

.skip-link:focus {
    transform: translateY(0);
}

.research-page .footer {
    color: var(--research-muted);
    font-size: 0.8125rem;
}

@media (max-width: 600px) {
    .research-page .header {
        height: auto;
        min-height: 60px;
        flex-wrap: wrap;
        gap: 4px 16px;
        padding: 12px 20px;
        font-size: 0.8125rem;
    }

    .research-page .research {
        padding: 36px 20px 48px;
    }

    .research-intro {
        margin-bottom: 32px;
    }

    .publication-year {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 24px 0;
    }
}

@media print {
    .research-page {
        color: #111;
        background: #fff;
    }

    .research-page .headerWrapper,
    .research-page .footer,
    .skip-link,
    .year-nav {
        display: none;
    }

    .research-page .research {
        width: 100%;
        padding: 0;
    }

    .research-page .research * {
        color: #111;
    }

    .research-intro {
        margin-bottom: 24px;
    }

    .publication {
        break-inside: avoid;
    }
}
