:root {
    --research-ink: #1f3040;
    --research-blue: #2f86bd;
    --research-blue-dark: #176b9f;
    --research-blue-pale: #eaf4fa;
    --research-paper: #f5f8fa;
    --research-muted: #5a6a78;
    --research-rule: #d9e3ea;
}

.research-main {
    max-width: 1240px;
    padding: 0 32px;
}

.research-main section {
    padding: 72px 0;
}

.research-main .section-kicker {
    color: var(--research-blue-dark);
    letter-spacing: 0.14em;
}

.research-main .section-header {
    max-width: 820px;
    margin-bottom: 38px;
}

.research-main .section-header h2 {
    font-size: clamp(2.15rem, 3.3vw, 3.3rem);
    line-height: 1.12;
    margin-bottom: 18px;
}

.research-main .section-header p {
    max-width: 760px;
    color: var(--research-muted);
    font-size: 1.03rem;
}

.research-hero {
    padding: 88px 0 82px !important;
}

.research-hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.65fr);
    gap: clamp(52px, 7vw, 96px);
    align-items: center;
}

.research-hero h2 {
    max-width: 780px;
    color: var(--research-ink);
    font-size: clamp(3.4rem, 5.4vw, 5.25rem);
    line-height: 0.98;
    margin-bottom: 28px;
}

.research-hero p {
    max-width: 720px;
    color: var(--research-muted);
    font-size: 1.12rem;
    line-height: 1.85;
}

.hero-actions {
    gap: 26px;
    margin-top: 30px;
}

.primary-link,
.secondary-link {
    min-height: auto;
    padding: 4px 0;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--research-blue-dark);
}

.primary-link::after,
.secondary-link::after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.primary-link:hover,
.secondary-link:hover {
    border-bottom-color: currentColor;
    opacity: 1;
}

.primary-link:hover::after,
.secondary-link:hover::after {
    transform: translateX(3px);
}

.focus-panel {
    padding: 4px 0 4px 34px;
    border: 0;
    border-left: 3px solid var(--research-blue);
    border-radius: 0;
    background: transparent;
}

.focus-panel-title {
    color: var(--research-blue-dark);
    letter-spacing: 0.12em;
    margin-bottom: 20px;
}

.focus-list {
    gap: 18px;
}

.focus-item {
    padding-top: 18px;
    border-color: var(--research-rule);
}

.focus-item strong {
    color: var(--research-ink);
    font-size: 1rem;
}

.focus-item span {
    color: var(--research-muted);
    line-height: 1.65;
}

#research-map {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 78px max(32px, calc((100vw - 1176px) / 2)) 84px;
    border: 0;
    background: var(--research-paper);
}

#research-map .section-header {
    display: grid;
    grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
    column-gap: 72px;
    max-width: none;
    align-items: end;
}

#research-map .section-kicker,
#research-map h2 {
    grid-column: 1;
}

#research-map h2 {
    margin-bottom: 0;
}

#research-map .section-header p {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: 760px;
    align-self: end;
}

.research-plot {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    min-height: 0;
    padding-top: 8px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.research-plot::before {
    content: "";
    position: absolute;
    top: 145px;
    right: 18px;
    left: 18px;
    height: 2px;
    background: #a8d2e9;
}

.plot-lines {
    display: none;
}

.plot-core,
.plot-node {
    position: relative;
    inset: auto;
    width: auto;
    min-height: 0;
    transform: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.research-plot .plot-core,
.research-plot .plot-node {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
}

.plot-core {
    grid-column: 1 / -1;
    width: fit-content;
    margin: 0 0 42px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--research-ink);
    text-align: left;
}

.plot-core h3,
.plot-core p {
    display: inline;
}

.plot-core h3 {
    margin-right: 10px;
}

.plot-core p {
    font-size: 0.86rem;
}

.plot-node {
    padding: 74px 34px 0 0;
}

.plot-node:not(:last-child)::after {
    content: "›";
    position: absolute;
    top: 58px;
    right: 18px;
    color: var(--research-blue);
    font-size: 2.2rem;
    line-height: 1;
}

.plot-index {
    position: absolute;
    top: 50px;
    left: 0;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: var(--research-blue-dark);
    color: white;
    letter-spacing: 0;
}

.plot-node h3 {
    min-height: 3.1em;
    margin-top: 42px;
    padding-right: 10px;
    color: var(--research-ink);
    font-size: 1.3rem;
}

.plot-role {
    color: var(--research-blue-dark);
}

.plot-node p {
    color: var(--research-muted);
    line-height: 1.65;
}

#research-categories {
    padding-top: 88px;
}

.category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--research-rule);
}

.category-card {
    min-height: 340px;
    padding: 42px 48px 44px 0;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--research-rule);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.category-card:nth-child(even) {
    padding-right: 0;
    padding-left: 48px;
    border-left: 1px solid var(--research-rule);
}

.category-card:hover {
    border-color: var(--research-rule);
    background: linear-gradient(90deg, transparent, rgba(234, 244, 250, 0.55));
    box-shadow: none;
}

.category-card::before {
    display: none;
}

.category-label {
    color: var(--research-blue-dark);
    letter-spacing: 0.12em;
}

.category-card h3 {
    color: var(--research-ink);
    font-size: 1.55rem;
}

.category-card p {
    color: var(--research-muted);
    line-height: 1.72;
}

.category-topics {
    gap: 12px 18px;
}

.category-topics li a {
    padding: 2px 0;
    border: 0;
    border-bottom: 1px solid #a8cbe0;
    border-radius: 0;
    background: transparent;
    color: var(--research-ink);
}

.category-topics li a:hover {
    border-color: var(--research-blue-dark);
    background: transparent;
}

.category-link {
    color: var(--research-blue-dark);
}

#featured-research {
    padding-top: 88px;
}

.highlight-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
}

.highlight-card {
    min-height: 0;
    padding: 26px 0;
    border: 0;
    border-top: 1px solid var(--research-rule);
    border-radius: 0;
    background: transparent;
}

.highlight-card:first-child {
    grid-row: 1 / span 2;
    padding: 44px;
    border-top: 0;
    background: var(--research-ink);
    color: white;
}

.highlight-card:first-child h3,
.highlight-card:first-child .text-link {
    color: white;
}

.highlight-card:first-child h3 {
    max-width: 520px;
    margin-top: 18px;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.18;
}

.highlight-card:first-child p,
.highlight-card:first-child .highlight-tag {
    color: rgba(255, 255, 255, 0.76);
}

.highlight-card:hover {
    border-color: var(--research-rule);
    box-shadow: none;
}

.highlight-card h3 {
    color: var(--research-ink);
    font-size: 1.32rem;
}

.highlight-card p {
    color: var(--research-muted);
}

.text-link,
.output-links a {
    color: var(--research-blue-dark);
}

#recent-outputs {
    padding-bottom: 92px;
}

.output-list {
    border-top: 1px solid var(--research-rule);
}

.output-item {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 36px;
    padding: 25px 0;
    border-color: var(--research-rule);
}

.output-item:first-child {
    padding-top: 25px;
    border-top: 0;
}

.output-meta {
    color: var(--research-muted);
}

.output-title {
    color: var(--research-ink);
    font-size: 1.02rem;
}

nav a:focus-visible,
.research-main a:focus-visible,
footer a:focus-visible {
    outline: 3px solid #f0a128;
    outline-offset: 4px;
    border-radius: 2px;
}

@media (max-width: 900px) {
    .research-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
        gap: 44px;
    }

    .research-hero h2 {
        font-size: clamp(3rem, 7vw, 4.4rem);
    }

    .research-plot {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 44px;
    }

    .research-plot::before,
    .plot-node:not(:last-child)::after {
        display: none;
    }

    .plot-node {
        padding-top: 56px;
    }

    .plot-index {
        top: 0;
    }

    .plot-node h3 {
        min-height: 0;
        margin-top: 10px;
    }
}

@media (max-width: 700px) {
    .research-main {
        padding: 0 20px;
    }

    .research-main section {
        padding: 54px 0;
    }

    .research-hero {
        padding: 58px 0 56px !important;
    }

    .research-hero-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .research-hero h2 {
        font-size: clamp(2.65rem, 13vw, 3.65rem);
        line-height: 1;
    }

    .research-hero p {
        font-size: 1rem;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .focus-panel {
        padding-left: 22px;
    }

    #research-map {
        padding: 58px 20px 62px;
    }

    #research-map .section-header {
        display: block;
    }

    #research-map h2 {
        margin-bottom: 18px;
    }

    .research-plot {
        grid-template-columns: 1fr;
        row-gap: 0;
        padding: 0 0 0 34px;
    }

    .research-plot::before {
        display: block;
        top: 86px;
        bottom: 24px;
        left: 13px;
        width: 2px;
        height: auto;
        background: #a8d2e9;
    }

    .plot-core {
        grid-column: auto;
        width: 100%;
        margin: 0 0 28px -34px;
    }

    .plot-core h3,
    .plot-core p {
        display: block;
    }

    .plot-core h3 {
        margin: 0 0 4px;
    }

    .plot-node {
        padding: 24px 0 32px 24px;
        border-bottom: 1px solid var(--research-rule);
    }

    .plot-index {
        top: 24px;
        left: -34px;
        width: 42px;
        height: 42px;
    }

    .plot-node h3 {
        margin: 0 0 10px;
        padding: 0;
        font-size: 1.22rem;
    }

    .category-grid,
    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .category-card,
    .category-card:nth-child(even) {
        min-height: 0;
        padding: 34px 0;
        border-left: 0;
    }

    .highlight-grid {
        grid-template-rows: auto;
        gap: 0;
    }

    .highlight-card:first-child {
        grid-row: auto;
        padding: 34px 28px;
        margin-bottom: 18px;
    }

    .highlight-card:first-child h3 {
        font-size: 1.75rem;
    }

    .output-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #recent-outputs {
        padding-bottom: 70px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
