/* =========================================================
   NEURO SPICY OREGON — RESEARCH
   ========================================================= */

:root {
    --research-night: #031127;
    --research-navy: #071d3c;
    --research-blue: #2b9cff;
    --research-orange: #ff6818;
    --research-paper: #fffdf9;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 2000;
    padding: 12px 18px;
    background: #ffffff;
    color: var(--navy);
    border-radius: 8px;
    font-weight: 800;
    transform: translateY(-160%);
}

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

.nav-links a[aria-current="page"] {
    color: var(--orange);
}

.research-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(78px, 10vw, 128px) 0;
    background:
        radial-gradient(circle at 85% 18%, rgba(43, 156, 255, 0.24), transparent 24%),
        radial-gradient(circle at 72% 86%, rgba(255, 104, 24, 0.18), transparent 27%),
        linear-gradient(135deg, var(--research-night), var(--research-navy));
    color: #ffffff;
}

.research-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    align-items: center;
    gap: clamp(42px, 7vw, 90px);
}

.research-hero .eyebrow {
    color: #ff9a57;
}

.research-hero h1 {
    max-width: 820px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(58px, 8.3vw, 108px);
    line-height: 0.9;
    letter-spacing: -0.065em;
}

.research-hero-intro {
    max-width: 760px;
    margin: 30px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.65;
}

.research-network {
    position: relative;
    width: min(100%, 390px);
    aspect-ratio: 1;
    margin-inline: auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
}

.node,
.line {
    position: absolute;
    display: block;
}

.node {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--research-orange);
    box-shadow: 0 0 0 8px rgba(255, 104, 24, 0.12);
}

.node-b,
.node-e {
    background: var(--research-blue);
    box-shadow: 0 0 0 8px rgba(43, 156, 255, 0.12);
}

.node-a { left: 16%; top: 24%; }
.node-b { left: 66%; top: 14%; }
.node-c { left: 76%; top: 62%; }
.node-d { left: 24%; top: 73%; }
.node-e { left: 47%; top: 44%; width: 34px; height: 34px; }
.node-f { left: 39%; top: 12%; width: 16px; height: 16px; }

.line {
    height: 2px;
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.68));
}

.line-a { width: 145px; left: 21%; top: 29%; transform: rotate(20deg); }
.line-b { width: 128px; left: 52%; top: 49%; transform: rotate(-52deg); }
.line-c { width: 155px; left: 28%; top: 76%; transform: rotate(-54deg); }
.line-d { width: 112px; left: 51%; top: 51%; transform: rotate(33deg); }

.network-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.research-library {
    padding: clamp(82px, 10vw, 122px) 0;
    background: #ffffff;
}

.research-library-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
    align-items: end;
    gap: 42px;
    margin-bottom: 44px;
}

.research-library-heading h2,
.research-method h2,
.research-note h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(38px, 5.4vw, 68px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.research-library-heading > p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.section-label {
    margin: 0 0 12px;
    color: var(--research-orange);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.research-card {
    max-width: 1080px;
    padding: clamp(34px, 6vw, 66px);
    border: 1px solid var(--border);
    border-top: 7px solid var(--research-orange);
    border-radius: 0 0 30px 30px;
    background: var(--research-paper);
    box-shadow: var(--shadow-medium);
}

.research-card + .research-card {
    margin-top: 34px;
}

.research-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
}

.research-card-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #edf4fa;
    color: var(--navy);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.research-card-kicker {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.research-card h3 {
    max-width: 920px;
    margin: 0 0 24px;
    color: var(--navy);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.research-card > p:not(.research-card-kicker) {
    max-width: 900px;
    margin: 0 0 26px;
    color: #27394a;
    font-size: 18px;
    line-height: 1.75;
}

.research-card-callout {
    max-width: 860px;
    margin: 30px 0;
    padding: 20px 22px;
    border-left: 5px solid var(--research-blue);
    border-radius: 0 14px 14px 0;
    background: #edf4fa;
    color: var(--navy);
    font-size: 16px;
    line-height: 1.65;
}

.research-method {
    padding: clamp(84px, 10vw, 118px) 0;
    background: #f6f8fb;
}

.research-method-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(45px, 8vw, 100px);
    align-items: start;
}

.research-method-list {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid #dce5ee;
    border-radius: 18px;
    background: #dce5ee;
}

.research-method-list div {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    padding: 22px 24px;
    background: #ffffff;
}

.research-method-list strong {
    color: var(--research-orange);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.research-method-list span {
    color: var(--navy);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.55;
}

.research-note {
    padding: 52px 0;
    border-block: 1px solid #d5e3ef;
    background: #eaf4ff;
}

.research-note-inner {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
}

.research-note h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.research-note h2 + p {
    max-width: 860px;
    margin: 18px 0 0;
    color: #405a76;
    font-size: 16px;
    line-height: 1.7;
}

/* ARTICLE */

.research-article-hero {
    padding: clamp(72px, 9vw, 112px) 0 64px;
    background:
        linear-gradient(90deg, rgba(255, 104, 24, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(7, 29, 60, 0.045) 1px, transparent 1px),
        #fffdf9;
    background-size: 42px 42px;
    border-top: 7px solid var(--research-orange);
}

.research-breadcrumb {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.research-breadcrumb a:hover {
    color: var(--research-orange);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 20px;
}

.article-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--research-navy);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.research-article-hero h1 {
    max-width: 1050px;
    margin: 0;
    color: var(--navy);
    font-size: clamp(46px, 7.2vw, 88px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.article-deck {
    max-width: 900px;
    margin: 28px 0 0;
    color: #405a76;
    font-size: clamp(19px, 2.2vw, 24px);
    line-height: 1.62;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.article-shell {
    padding: 70px 0 110px;
    background: #ffffff;
}

.article-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(50px, 8vw, 100px);
    align-items: start;
}

.article-body {
    max-width: 820px;
}

.article-body h2 {
    margin: 64px 0 18px;
    color: var(--navy);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body p,
.article-body li {
    color: #27394a;
    font-size: 18px;
    line-height: 1.82;
}

.article-body p {
    margin: 0 0 24px;
}

.article-body ul {
    display: grid;
    gap: 10px;
    margin: 20px 0 28px;
    padding-left: 24px;
}

.article-body li::marker {
    color: var(--research-orange);
}

.article-callout {
    margin: 36px 0;
    padding: 26px 28px;
    border-radius: 16px;
}

.article-callout h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

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

.article-callout-key {
    background: #fff1e9;
    border-left: 5px solid var(--research-orange);
}

.article-callout-limit {
    background: #edf4fa;
    border-left: 5px solid var(--research-blue);
}

.article-sidebar {
    position: sticky;
    top: 122px;
    display: grid;
    gap: 18px;
}

.sidebar-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fffdf9;
    box-shadow: var(--shadow-small);
}

.sidebar-card h2 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 17px;
}

.sidebar-card p,
.sidebar-card li {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.sidebar-card p:last-child {
    margin-bottom: 0;
}

.sidebar-card ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 18px;
}

.source-box {
    padding: 28px;
    border-radius: 18px;
    background: var(--research-night);
    color: #ffffff;
}

.source-box h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 18px;
}

.source-box p {
    margin: 0 0 18px;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    line-height: 1.6;
}

.source-box a {
    color: #ffffff;
}

.article-bottom-source {
    margin-top: 64px;
    padding-top: 34px;
    border-top: 2px solid var(--navy);
}

.article-bottom-source h2 {
    margin-top: 0;
}

@media (max-width: 900px) {
    .research-hero-grid,
    .research-library-heading,
    .research-method-grid,
    .research-note-inner,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .research-network {
        max-width: 330px;
    }

    .article-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .research-network {
        display: none;
    }

    .research-card {
        padding: 30px 24px;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .article-body p,
    .article-body li {
        font-size: 17px;
    }
}

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