@import url("/atlas/brand.css");
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;600;700&family=Montserrat:wght@500;600&family=Roboto:wght@400;500;700&display=swap');

:root {
    --paper: var(--atlas-brand-paper);
    --paper-deep: #ededed;
    --ink: var(--atlas-brand-ink);
    --muted: #697080;
    --line: #d9d9d9;
    --blue: var(--atlas-brand-blue);
    --blue-light: #eaf0ff;
    --lime: #dbe6ff;
    --salmon: #8aa7e8;
    --white: #ffffff;
    --danger: #9f332e;
    --shadow: 0 18px 45px rgba(0, 2, 20, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Roboto', sans-serif;
}

button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
    outline: 3px solid rgba(23, 63, 122, .35);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.atlas-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto minmax(240px, 1fr);
    align-items: center;
    min-height: 72px;
    padding: .65rem 4vw;
    background: rgba(248, 248, 248, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 16px rgba(1, 1, 1, .12);
}

.atlas-brand {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--ink);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.atlas-brand img { width: 29px; height: 34px; object-fit: contain; }
.brand-word { letter-spacing: .28em; }
.brand-context { margin-left: .55rem; color: var(--muted); font-family: 'Roboto', sans-serif; font-size: .72rem; font-weight: 500; letter-spacing: 0; }

.atlas-tabs { display: flex; gap: .25rem; }
.atlas-tab {
    padding: .55rem .85rem;
    background: transparent;
    color: var(--muted);
    border: 0;
    border-radius: 999px;
    font-size: .83rem;
    font-weight: 600;
}
.atlas-tab:hover { background: var(--paper-deep); color: var(--ink); }
.atlas-tab.is-active { background: var(--blue); color: var(--white); }

.atlas-search {
    position: relative;
    justify-self: end;
    width: min(100%, 360px);
}
.atlas-search input {
    width: 100%;
    padding: .72rem 2.5rem .72rem 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
}
.atlas-search kbd {
    position: absolute;
    top: 50%;
    right: .8rem;
    transform: translateY(-50%);
    padding: .12rem .38rem;
    background: var(--paper-deep);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted);
    font-size: .7rem;
}

main { min-height: calc(100vh - 72px); }
.loading-state {
    display: grid;
    min-height: calc(100vh - 72px);
    place-items: center;
    align-content: center;
    gap: 1rem;
    color: var(--muted);
}
.loading-state span {
    width: 42px;
    height: 42px;
    border: 3px solid var(--line);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.data-note {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .72rem 4vw;
    background: var(--blue-light);
    border-bottom: 1px solid rgba(0, 32, 96, .18);
    font-size: .82rem;
}
.data-note p { margin: 0; }
.data-note button { padding: 0; background: transparent; border: 0; border-bottom: 1px solid currentColor; }
.note-signal { width: 8px; height: 8px; flex: 0 0 auto; background: var(--blue); border-radius: 50%; }

.atlas-view { display: none; padding: 0 4vw 7rem; }
.atlas-view.is-active { display: block; }
.eyebrow {
    margin: 0 0 .8rem;
    color: var(--muted);
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}
h1, h2, h3, h4 { font-family: 'Bricolage Grotesque', sans-serif; margin: 0; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, .7fr);
    gap: 6vw;
    padding: clamp(4.5rem, 8vw, 8.5rem) 0 clamp(4rem, 7vw, 7rem);
    border-bottom: 1px solid var(--line);
}
.hero-copy h1 {
    max-width: 980px;
    font-size: clamp(3.4rem, 7vw, 8.2rem);
    letter-spacing: -.068em;
    line-height: .87;
}
.hero-copy > p:not(.eyebrow) {
    max-width: 680px;
    margin: 2rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.24rem);
    line-height: 1.55;
}
.primary-action {
    margin-top: 2rem;
    padding: .85rem 1.15rem;
    background: var(--blue);
    color: var(--white);
    border: 0;
    border-radius: 999px;
    font-weight: 600;
}

.atlas-counts { align-self: end; margin: 0; }
.atlas-counts div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}
.atlas-counts dt {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(2rem, 3vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -.04em;
}
.atlas-counts dd { margin: 0; color: var(--muted); text-align: right; }

.panorama-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, .65fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-top: 0;
}
.department-panel, .idea-panel { background: var(--white); padding: clamp(2rem, 4vw, 4rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading h2, .idea-panel h2 { font-size: clamp(2rem, 4vw, 4.2rem); letter-spacing: -.05em; line-height: .95; }
.section-note { max-width: 260px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }

.department-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.department-row {
    position: relative;
    min-height: 180px;
    padding: 1.2rem;
    overflow: hidden;
    background: var(--paper);
    border: 0;
    color: var(--ink);
    text-align: left;
}
.department-row:hover { background: var(--blue-light); }
.department-row:nth-child(3n + 2) { background: var(--blue-light); }
.department-row:nth-child(3n + 2):hover { background: #dae6ff; }
.department-row strong { position: relative; display: block; max-width: 310px; font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.2rem; line-height: 1.05; }
.department-row small { position: absolute; bottom: 1rem; left: 1.2rem; color: var(--muted); }
.department-number { position: absolute; right: -.15rem; bottom: -1.3rem; color: rgba(20, 33, 29, .12); font-family: 'Bricolage Grotesque', sans-serif; font-size: 6.5rem; font-weight: 700; letter-spacing: -.08em; }

.idea-panel { background: var(--blue); color: var(--white); }
.idea-panel .eyebrow, .idea-panel > p { color: #aeb8b2; }
.idea-panel > p { line-height: 1.55; }
.idea-cloud { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2.5rem; }
.idea-chip {
    padding: .5rem .68rem;
    background: transparent;
    color: var(--white);
    border: 1px solid #68736d;
    border-radius: 999px;
    font-size: .79rem;
}
.idea-chip:hover { background: var(--white); color: var(--blue); border-color: var(--white); }

.view-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    padding: 5rem 0 2rem;
}
.view-heading h1 { font-size: clamp(3.5rem, 7vw, 7rem); letter-spacing: -.065em; line-height: .86; }
.result-count { margin: 0; color: var(--muted); }

.people-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
}
.people-toolbar label, .person-picker { display: grid; gap: .35rem; }
.people-toolbar label span, .person-picker span { color: var(--muted); font-size: .67rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
select {
    min-height: 42px;
    padding: .65rem 2.4rem .65rem .75rem;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 4px;
}
.text-action { margin-left: auto; padding: .65rem 0; background: transparent; color: var(--blue); border: 0; border-bottom: 1px solid currentColor; }

.topic-heading .result-count { max-width: 430px; line-height: 1.5; text-align: right; }
.representation-switcher {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.representation-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .25rem .8rem;
    min-height: 128px;
    padding: 1.1rem;
    background: var(--white);
    color: var(--ink);
    border: 0;
    text-align: left;
}
.representation-option:hover { background: var(--blue-light); }
.representation-option.is-active { background: var(--blue); color: var(--white); }
.representation-option > span { grid-row: 1 / span 2; color: var(--muted); font-size: .72rem; font-weight: 700; }
.representation-option.is-active > span, .representation-option.is-active small { color: #b8ccf4; }
.representation-option strong { align-self: end; font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.25rem; line-height: 1.05; }
.representation-option small { color: var(--muted); line-height: 1.35; }

.topic-toolbar {
    display: flex;
    align-items: end;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 0;
}
.topic-toolbar label { display: grid; gap: .35rem; }
.topic-toolbar label span { color: var(--muted); font-size: .67rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.topic-toolbar select { background: var(--white); }
.topic-search-field { min-width: min(390px, 42vw); }
.topic-search-field input {
    min-height: 42px;
    padding: .65rem .8rem;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 4px;
}
.topic-coverage { margin: 0 0 .7rem auto; color: var(--muted); font-size: .78rem; }

.topic-lab-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 1px;
    margin-top: 1rem;
    background: var(--line);
    border: 1px solid var(--line);
}
.topic-lab-layout.is-detail-collapsed { grid-template-columns: 1fr; }
.topic-lab-layout.is-detail-collapsed .topic-detail { display: none; }
.topic-lab-layout.is-matrix-mode { display: block; background: var(--white); }
.topic-lab-layout.is-matrix-mode .topic-detail { display: none; }
.topic-lab-layout.is-matrix-mode .research-map-canvas { min-height: 0; overflow: visible; background: var(--white); }
.research-map-card { min-width: 0; background: var(--white); }
.research-map-note { display: flex; min-height: 49px; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.research-map-actions { display: inline-flex; flex: 0 0 auto; gap: .35rem; }
.research-map-actions button, .topic-detail-close { padding: .38rem .55rem; background: var(--white); color: var(--blue); border: 1px solid #c7d3e6; border-radius: 4px; font-size: .67rem; font-weight: 700; }
.research-map-actions button:hover { background: var(--blue-light); border-color: #8da8db; }
.research-map-canvas {
    min-height: 560px;
    overflow: hidden;
    background: #fbfcff;
}
.research-map-canvas svg { display: block; width: 100%; min-width: 0; height: 560px; }
.topic-edge { stroke: #c8d3e5; stroke-width: 1.1; }
.topic-edge.similarity { stroke: #9bb3e8; }
.topic-family-node { fill: var(--blue); stroke: var(--white); stroke-width: 4; }
.topic-node { fill: var(--blue-light); stroke: var(--blue); stroke-width: 1.5; cursor: pointer; }
.topic-person-node { fill: #4375e0; stroke: var(--white); stroke-width: 2; cursor: pointer; }
.topic-map-label { fill: var(--ink); font-family: 'Roboto', sans-serif; font-size: 10px; font-weight: 600; paint-order: stroke; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.topic-map-label.on-dark { fill: var(--white); stroke: var(--blue); }
.topic-flow-edge { fill: none; stroke: #c8d4e8; stroke-width: 1.2; }
.topic-flow-edge.person { stroke: #dbe2ee; stroke-width: 1; }
.topic-family-card rect { fill: var(--blue); }
.topic-family-kicker { fill: #b8ccf4; font-family: 'Roboto', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.topic-family-name { fill: var(--white); font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; font-weight: 650; }
.topic-family-count { fill: var(--white); font-family: 'Bricolage Grotesque', sans-serif; font-size: 26px; font-weight: 700; }
.topic-family-caption { fill: #cbd8ef; font-family: 'Roboto', sans-serif; font-size: 11px; }
.topic-flow-card, .topic-person-card { cursor: pointer; }
.topic-flow-card rect { fill: var(--white); stroke: #c9d5e7; stroke-width: 1; transition: fill .16s ease, stroke .16s ease; }
.topic-flow-card:hover rect, .topic-flow-card:focus rect { fill: #f0f4fc; stroke: #7e9bd6; }
.topic-flow-card.is-selected rect { fill: var(--blue-light); stroke: var(--blue); stroke-width: 1.4; }
.topic-flow-name { fill: var(--ink); font-family: 'Roboto', sans-serif; font-size: 12px; font-weight: 700; pointer-events: none; }
.topic-flow-meta { fill: var(--muted); font-family: 'Roboto', sans-serif; font-size: 9px; pointer-events: none; }
.topic-branch-toggle { cursor: pointer; }
.topic-branch-toggle rect { fill: #f2f5fa; stroke: #c9d5e7; stroke-width: 1; }
.topic-branch-toggle line { stroke: #5474af; stroke-width: 1.5; stroke-linecap: round; pointer-events: none; }
.topic-branch-toggle:hover rect, .topic-branch-toggle:focus rect { fill: var(--blue-light); stroke: var(--blue); }
.topic-branch-toggle.is-collapsed rect { fill: var(--blue-light); }
.topic-person-card rect { fill: var(--white); stroke: #dce3ee; stroke-width: 1; transition: fill .16s ease, stroke .16s ease; }
.topic-person-card circle { fill: #4375e0; }
.topic-person-card text { fill: #293442; font-family: 'Roboto', sans-serif; font-size: 9.5px; font-weight: 600; pointer-events: none; }
.topic-person-card:hover rect, .topic-person-card:focus rect { fill: #f0f4fc; stroke: #8da8db; }

.topic-detail { position: relative; height: 609px; min-height: 0; overflow-y: auto; padding: 1.25rem; background: var(--blue); color: var(--white); scrollbar-color: #5f7aa8 #0c2c66; scrollbar-width: thin; }
.topic-detail-close { position: absolute; top: 1rem; right: 1rem; width: 30px; height: 30px; padding: 0; background: #163a78; color: #d9e4f7; border-color: #456396; font-size: 1rem; line-height: 1; }
.topic-detail-close:hover { background: var(--white); color: var(--blue); }
.topic-detail .eyebrow { color: #b8ccf4; }
.topic-detail h2 { max-width: calc(100% - 4.5rem); font-size: clamp(1.8rem, 2.5vw, 2.7rem); letter-spacing: -.04em; line-height: .95; }
.topic-detail > p { color: #ccd7ed; line-height: 1.55; }
.topic-detail-stat { margin: 1rem 0; padding: .8rem 0; border-top: 1px solid #365184; border-bottom: 1px solid #365184; }
.topic-detail-stat strong { display: block; color: #b8ccf4; font-family: 'Bricolage Grotesque', sans-serif; font-size: 2.4rem; }
.topic-detail-section { border-bottom: 1px solid #365184; }
.topic-detail-section summary { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; color: #dbe6f8; cursor: pointer; font-size: .7rem; font-weight: 700; letter-spacing: .08em; list-style: none; text-transform: uppercase; }
.topic-detail-section summary::-webkit-details-marker { display: none; }
.topic-detail-section summary::before { content: '+'; margin-right: .55rem; color: #9db9f1; font-size: 1rem; }
.topic-detail-section[open] summary::before { content: '−'; }
.topic-detail-section summary span { margin-left: auto; color: #9db9f1; font-variant-numeric: tabular-nums; }
.topic-result-list, .topic-work-list { display: grid; gap: .5rem; padding: 0; margin: 1.2rem 0 0; list-style: none; }
.topic-result-list { margin: 0 0 .8rem; }
.topic-result-list button { width: 100%; padding: .58rem .65rem; background: #15366f; color: var(--white); border: 0; text-align: left; }
.topic-result-list button:hover { background: var(--white); color: var(--blue); }
.topic-result-list small { display: block; margin-top: .2rem; color: #b8ccf4; }
.topic-work-list li { padding: .7rem 0; border-bottom: 1px solid #365184; color: #e2e8f5; font-size: .78rem; line-height: 1.4; }
.topic-work-list time { display: block; margin-bottom: .2rem; color: #9db9f1; }

.matrix-legend { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .35rem; color: var(--muted); font-size: .68rem; }
.matrix-legend i { width: 13px; height: 13px; margin-left: .35rem; background: rgba(67, 117, 224, .16); border-radius: 2px; }
.matrix-legend i:nth-of-type(2) { background: rgba(67, 117, 224, .48); }
.matrix-legend i:nth-of-type(3) { background: rgba(67, 117, 224, .86); }
.topic-matrix-wrap { width: 100%; overflow-x: auto; padding: .7rem; background: var(--white); }
.topic-matrix { width: 100%; min-width: 980px; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: var(--white); }
.topic-matrix th, .topic-matrix td { height: 45px; padding: 5px; border: 0; border-bottom: 1px solid #e5e9ef; font-size: .67rem; text-align: center; }
.topic-matrix thead th { position: sticky; top: 72px; z-index: 2; height: 64px; padding: .55rem .3rem; background: var(--white); color: #405064; font-weight: 700; line-height: 1.15; vertical-align: bottom; }
.topic-matrix thead th:first-child { width: 176px; color: var(--ink); text-align: left; }
.topic-matrix tbody th { position: sticky; left: 0; z-index: 1; width: 176px; padding-inline: .55rem; background: var(--white); color: var(--ink); line-height: 1.12; text-align: left; }
.topic-matrix tbody th small { display: block; margin-top: .18rem; color: var(--muted); font-size: .58rem; font-weight: 500; }
.topic-matrix tbody tr:hover th, .topic-matrix tbody tr:hover td { background: #fbfcfe; }
.matrix-cell { width: 100%; min-height: 33px; padding: .3rem; background: rgba(67, 117, 224, var(--matrix-share)); color: #071d44; border: 0; border-radius: 3px; font-size: .68rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.matrix-cell.is-empty { background: var(--white); color: transparent; box-shadow: inset 0 0 0 1px #edf0f5; }
.matrix-cell:hover, .matrix-cell:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

.work-explorer { margin-top: 5rem; padding-top: 4rem; border-top: 1px solid var(--line); }
.work-explorer .section-heading h2 { font-size: clamp(2.3rem, 4vw, 4.8rem); }
.work-toolbar {
    display: flex;
    align-items: end;
    gap: 1rem;
    padding: 1rem;
    background: var(--paper-deep);
    border: 1px solid var(--line);
}
.work-toolbar label { display: grid; min-width: 260px; gap: .35rem; }
.work-toolbar label:nth-child(2) { min-width: min(440px, 42vw); }
.work-toolbar label span { color: var(--muted); font-size: .67rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.work-toolbar input { min-height: 42px; padding: .65rem .8rem; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.work-toolbar p { margin: 0 0 .7rem auto; color: var(--muted); font-size: .78rem; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 1px; background: var(--line); border: 1px solid var(--line); }
.work-card { min-height: 210px; padding: 1.2rem; background: var(--white); }
.work-card:nth-child(4n + 2) { background: var(--blue-light); }
.work-card-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.work-card h3 { margin-top: 1.8rem; font-size: 1.15rem; line-height: 1.15; }
.work-card p { margin: 1rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.4; }

.people-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, .7fr); gap: 1px; margin-top: 1rem; background: var(--line); border: 1px solid var(--line); }
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 1px; background: var(--line); }
.person-card { min-height: 220px; padding: 1.35rem; background: var(--white); border: 0; color: var(--ink); text-align: left; }
.person-card:hover, .person-card.is-selected { background: var(--blue-light); }
.person-card-top { display: flex; align-items: start; justify-content: space-between; gap: .8rem; }
.person-card h3 { max-width: 340px; font-size: 1.45rem; line-height: 1.05; }
.person-card .department-label { margin: .7rem 0 0; color: var(--muted); font-size: .76rem; }
.person-stats { display: flex; gap: 1.2rem; margin-top: 2.2rem; }
.person-stats span { display: grid; gap: .15rem; font-size: .72rem; color: var(--muted); }
.person-stats strong { color: var(--ink); font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.25rem; }
.quality-dot { width: 9px; height: 9px; margin-top: .2rem; background: #5a956b; border-radius: 50%; }
.quality-dot.medium { background: #d79437; }
.quality-dot.high { background: var(--danger); }
.empty-results { grid-column: 1 / -1; padding: 4rem 2rem; background: var(--white); color: var(--muted); text-align: center; }

.person-detail { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; align-self: start; background: var(--blue); color: var(--white); }
.detail-empty { display: grid; min-height: 520px; place-items: center; align-content: center; padding: 3rem; text-align: center; }
.detail-empty span { color: #9db9f1; font-family: 'Bricolage Grotesque', sans-serif; font-size: 5rem; font-weight: 700; }
.detail-empty p { max-width: 270px; color: #aeb8b2; line-height: 1.5; }
.detail-content { padding: 1.8rem; }
.detail-kicker { color: #b8ccf4; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.detail-content h2 { margin-top: .7rem; font-size: clamp(2.1rem, 3vw, 3.4rem); letter-spacing: -.045em; line-height: .93; }
.detail-department { color: #aeb8b2; line-height: 1.4; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.detail-actions a, .detail-actions button { padding: .55rem .75rem; background: transparent; color: var(--white); border: 1px solid #68736d; border-radius: 999px; font-size: .76rem; text-decoration: none; }
.detail-actions a:hover, .detail-actions button:hover { background: var(--white); color: var(--blue); border-color: var(--white); }
.detail-section { padding: 1.5rem 0; border-top: 1px solid #45514b; }
.detail-section h3 { margin-bottom: 1rem; color: #aeb8b2; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.detail-section p { color: #d9dedb; font-size: .9rem; line-height: 1.55; }
.detail-terms { display: flex; flex-wrap: wrap; gap: .4rem; }
.detail-terms button { padding: .42rem .58rem; background: #26342e; color: var(--white); border: 0; border-radius: 999px; font-size: .73rem; }
.publication-list { display: grid; gap: .9rem; padding: 0; margin: 0; list-style: none; }
.publication-list li { display: grid; grid-template-columns: 3rem 1fr; gap: .6rem; color: #d9dedb; font-size: .82rem; line-height: 1.4; }
.publication-list time { color: #b8ccf4; font-variant-numeric: tabular-nums; }
.evidence-box { padding: 1rem; background: #26342e; }
.evidence-box p { margin: 0; }
.flag-list { margin: .7rem 0 0; padding-left: 1rem; color: #aeb8b2; font-size: .75rem; line-height: 1.6; }

.collaboration-heading { align-items: center; }
.person-picker select { min-width: min(420px, 80vw); background: var(--white); }
.collaboration-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.network-card { height: 604px; min-width: 0; overflow: hidden; background: var(--white); }
.network-legend { display: flex; height: 54px; flex-wrap: wrap; align-items: center; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.network-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.network-legend i { width: 10px; height: 10px; border-radius: 50%; }
.node-professor { background: var(--blue); }
.node-coauthor { background: var(--salmon); }
.network-canvas { height: 550px; min-height: 0; overflow: hidden; background: #fbfcff; }
.network-canvas svg { display: block; width: 100%; min-width: 0; height: 550px; }
.network-edge { fill: none; stroke: #c4d0e1; opacity: .72; }
.network-node { fill: var(--salmon); stroke: var(--white); stroke-width: 3; }
.network-node.center { fill: var(--blue); }
.network-source-card rect { fill: var(--blue); }
.network-source-kicker { fill: #b8ccf4; font-family: 'Roboto', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.network-source-name { fill: var(--white); font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 650; }
.network-source-department, .network-source-count { fill: #cbd8ef; font-family: 'Roboto', sans-serif; font-size: 10px; }
.network-coauthor-card rect { fill: var(--white); stroke: #d1dbe9; stroke-width: 1; }
.network-coauthor-card circle { fill: var(--salmon); }
.network-label { fill: var(--ink); font-family: 'Roboto', sans-serif; font-size: 10px; font-weight: 700; }
.network-count { fill: var(--muted); font-family: 'Roboto', sans-serif; font-size: 8.5px; }

.collaboration-side { height: 604px; overflow-y: auto; padding: 1.35rem; background: var(--blue); color: var(--white); scrollbar-color: #5f7aa8 #0c2c66; scrollbar-width: thin; }
.collaboration-side h2 { font-size: 2rem; letter-spacing: -.035em; line-height: 1; }
.collaboration-side p { color: #aeb8b2; line-height: 1.5; }
.collaboration-total { margin: 1.5rem 0; padding: 1rem 0; border-top: 1px solid #45514b; border-bottom: 1px solid #45514b; }
.collaboration-total strong { display: block; color: #b8ccf4; font-family: 'Bricolage Grotesque', sans-serif; font-size: 3rem; }
.coauthor-ranking { padding: 0; margin: 1.4rem 0 0; list-style: none; counter-reset: collaborators; }
.coauthor-ranking li { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr) auto; gap: .5rem; align-items: baseline; padding: .62rem 0; border-bottom: 1px solid #45514b; counter-increment: collaborators; }
.coauthor-ranking li::before { content: counter(collaborators, decimal-leading-zero); color: #6d7872; font-size: .7rem; }
.coauthor-ranking span { font-size: .82rem; }
.coauthor-ranking strong { color: #b8ccf4; font-size: .78rem; }
.coauthor-more { margin-top: .8rem; }
.coauthor-more summary { padding: .7rem 0; color: #b8ccf4; cursor: pointer; font-size: .72rem; font-weight: 700; list-style: none; }
.coauthor-more summary::-webkit-details-marker { display: none; }
.coauthor-more summary::before { content: '+'; display: inline-block; width: 1.4rem; }
.coauthor-more[open] summary::before { content: '−'; }
.coauthor-ranking-more { margin-top: 0; counter-reset: collaborators 10; }

.semantic-heading { align-items: end; padding: 2.2rem 0 1.25rem; }
.semantic-heading h1 { margin-top: .25rem; font-size: clamp(3.2rem, 6vw, 5.8rem); line-height: .9; white-space: nowrap; }
.semantic-heading .result-count { max-width: 470px; margin-bottom: .15rem; line-height: 1.55; text-align: right; }
.semantic-toolbar {
    display: grid;
    grid-template-columns: auto minmax(170px, .7fr) minmax(170px, .7fr) minmax(220px, 1fr) auto;
    gap: .75rem;
    align-items: end;
    padding: .8rem;
    background: var(--white);
    border: 1px solid var(--line);
}
.semantic-toolbar label { display: grid; gap: .42rem; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.semantic-toolbar label[hidden] { display: none !important; }
.semantic-toolbar select, .semantic-toolbar input { width: 100%; min-height: 40px; padding: .5rem .7rem; background: var(--white); color: var(--ink); border: 1px solid #cbd3df; border-radius: 5px; font-size: .8rem; text-transform: none; }
.semantic-segmented { display: flex; min-height: 40px; padding: 3px; background: #edf2fa; border-radius: 6px; }
.semantic-segmented button { padding: .55rem .85rem; background: transparent; color: #536071; border: 0; border-radius: 4px; font-size: .78rem; font-weight: 700; }
.semantic-segmented button.is-active { background: var(--blue); color: var(--white); box-shadow: 0 3px 9px rgba(0, 32, 96, .2); }
.semantic-reset { min-height: 40px; padding: .5rem .85rem; background: var(--white); color: var(--blue); border: 1px solid #9aacc8; border-radius: 5px; font-size: .75rem; font-weight: 700; }
.semantic-reset:hover { background: var(--blue-light); }
.semantic-status { min-height: 40px; padding: .68rem 1rem; color: var(--muted); background: #f6f8fc; border: 1px solid var(--line); border-top: 0; font-size: .76rem; }
.semantic-status strong { color: var(--blue); font-size: .92rem; }
.semantic-search-results { display: flex; gap: .4rem; padding: .55rem .7rem; overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-top: 0; scrollbar-width: thin; }
.semantic-search-results[hidden] { display: none; }
.semantic-search-results button { display: grid; min-width: 190px; max-width: 270px; gap: .2rem; padding: .55rem .65rem; background: #f5f8fd; color: var(--ink); border: 1px solid #d8e0ec; border-radius: 5px; text-align: left; }
.semantic-search-results button:hover { background: var(--blue-light); border-color: #9eb0c9; }
.semantic-search-results strong { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.semantic-search-results span { overflow: hidden; color: var(--muted); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.semantic-search-results p { margin: .35rem; color: var(--muted); font-size: .72rem; }
.semantic-shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 650px; background: var(--white); border: 1px solid var(--line); border-top: 0; }
.semantic-shell.has-detail { grid-template-columns: minmax(0, 1fr) minmax(280px, 330px); }
.semantic-shell.is-loading { min-height: 420px; opacity: .5; }
.semantic-stage { position: relative; min-width: 0; height: 650px; overflow: hidden; background: #fbfcff; }
.semantic-stage::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: radial-gradient(circle at 18% 22%, rgba(234, 240, 255, .8), transparent 33%), radial-gradient(circle at 78% 70%, rgba(219, 230, 255, .45), transparent 30%);
    content: '';
    pointer-events: none;
}
#semantic-canvas { position: relative; z-index: 1; display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#semantic-canvas.is-panning { cursor: grabbing; }
.semantic-map-caption { position: absolute; z-index: 3; top: 14px; left: 14px; display: grid; max-width: min(360px, calc(100% - 130px)); gap: .22rem; padding: .7rem .8rem; background: rgba(255, 255, 255, .92); border: 1px solid #d7dfeb; border-radius: 6px; box-shadow: 0 8px 22px rgba(0, 32, 96, .08); pointer-events: none; }
.semantic-map-caption strong { color: var(--ink); font-family: 'Bricolage Grotesque', sans-serif; font-size: .9rem; }
.semantic-map-caption span { color: var(--muted); font-size: .67rem; line-height: 1.35; }
.semantic-zoom { position: absolute; z-index: 4; top: 14px; right: 14px; display: grid; overflow: hidden; background: var(--white); border: 1px solid #cbd5e4; border-radius: 6px; box-shadow: 0 8px 22px rgba(0, 32, 96, .08); }
.semantic-zoom button { width: 38px; height: 36px; background: var(--white); color: var(--blue); border: 0; font-size: 1.15rem; font-weight: 700; }
.semantic-zoom button + button { border-top: 1px solid #d9e0ea; }
.semantic-zoom button:hover { background: var(--blue-light); }
.semantic-help { position: absolute; z-index: 2; right: 14px; bottom: 12px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; pointer-events: none; }
.semantic-help span { padding: .34rem .5rem; background: rgba(255, 255, 255, .9); color: #687486; border: 1px solid #d8dfeb; border-radius: 999px; font-size: .62rem; }
.semantic-tooltip { position: absolute; z-index: 4; width: max-content; max-width: 220px; padding: .55rem .65rem; background: rgba(0, 2, 20, .93); color: var(--white); border-radius: 4px; box-shadow: 0 8px 24px rgba(0, 2, 20, .22); pointer-events: none; }
.semantic-tooltip strong, .semantic-tooltip span { display: block; }
.semantic-tooltip strong { font-size: .75rem; line-height: 1.2; }
.semantic-tooltip span { margin-top: .18rem; color: #c4d0e4; font-size: .64rem; }
.semantic-detail { position: relative; z-index: 3; height: 650px; overflow-y: auto; padding: 1.4rem; background: #f8faff; border-left: 1px solid var(--line); scrollbar-width: thin; }
.semantic-detail-close { float: right; padding: .35rem .5rem; background: var(--white); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; font-size: .68rem; }
.semantic-detail h2 { clear: both; margin: .45rem 0 .5rem; font-size: 2rem; letter-spacing: -.045em; line-height: .98; }
.semantic-detail h3 { margin: 1.5rem 0 .65rem; color: #546071; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.semantic-detail p { line-height: 1.5; }
.semantic-detail-meta { margin-top: 0; color: var(--muted); font-size: .76rem; }
.semantic-detail-stat { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; padding: 1rem 0; border-block: 1px solid var(--line); }
.semantic-detail-stat strong { color: var(--blue); font-family: 'Bricolage Grotesque', sans-serif; font-size: 2.4rem; line-height: 1; }
.semantic-detail-stat span { max-width: 150px; color: var(--muted); font-size: .7rem; line-height: 1.35; }
.semantic-detail-terms { display: flex; flex-wrap: wrap; gap: .35rem; }
.semantic-detail-terms span { padding: .38rem .5rem; background: #e8eef9; color: #24416d; border-radius: 999px; font-size: .68rem; }
.semantic-detail ul { padding-left: 1.1rem; color: #38465a; font-size: .75rem; line-height: 1.5; }
.semantic-people { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.semantic-people button { padding: .65rem; background: var(--white); color: var(--ink); border: 0; text-align: left; font-size: .73rem; }
.semantic-people button:hover { background: var(--blue-light); }
.semantic-detail-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.5rem; }
.semantic-detail-actions button, .semantic-detail-actions a { padding: .55rem .7rem; background: var(--blue); color: var(--white); border: 1px solid var(--blue); border-radius: 4px; font-size: .72rem; font-weight: 700; text-decoration: none; }
.semantic-detail-actions a { background: var(--white); color: var(--blue); }
.semantic-legend { display: flex; max-height: 136px; flex-wrap: wrap; gap: .36rem; padding: .65rem .8rem; overflow-y: auto; background: var(--white); border: 1px solid var(--line); border-top: 0; }
.semantic-legend button { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .52rem; background: var(--white); color: #4c5869; border: 1px solid #d9e0ea; border-radius: 999px; font-size: .66rem; white-space: nowrap; }
.semantic-legend button:hover { background: #f1f5fb; border-color: #9eb0c9; }
.semantic-legend button.is-active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.semantic-legend i { width: 8px; height: 8px; flex: 0 0 auto; background: var(--legend-color); border: 1px solid rgba(255,255,255,.7); border-radius: 50%; }
.semantic-legend small { color: #8a93a0; }
.semantic-legend button.is-active small { color: #cbd8ef; }
.semantic-method { margin-bottom: 4rem; padding: .8rem 1rem; background: #f6f8fc; border: 1px solid var(--line); border-top: 0; color: var(--muted); font-size: .72rem; }
.semantic-method summary { color: #334052; cursor: pointer; font-weight: 700; }
.semantic-method p { max-width: 900px; line-height: 1.55; }

.method-dialog { width: min(900px, calc(100vw - 2rem)); padding: clamp(1.5rem, 4vw, 4rem); background: var(--white); color: var(--ink); border: 0; box-shadow: var(--shadow); }
.method-dialog::backdrop { background: rgba(0, 2, 20, .72); backdrop-filter: blur(5px); }
.method-dialog h2 { font-size: clamp(2.4rem, 5vw, 5rem); letter-spacing: -.055em; }
.dialog-close { position: absolute; top: 1rem; right: 1rem; padding: .5rem .7rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 2rem; background: var(--line); border: 1px solid var(--line); }
.method-grid div { min-height: 180px; padding: 1.2rem; background: var(--paper); }
.method-grid span { color: var(--blue); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.method-grid p { line-height: 1.55; }

@media (max-width: 1280px) and (min-width: 1051px) {
    .atlas-nav { grid-template-columns: auto minmax(0, 1fr) 48px; }
    .atlas-tabs { justify-self: center; }
    .atlas-search { width: 44px; }
    .atlas-search input { padding-left: .7rem; color: transparent; }
    .atlas-search input:focus { position: absolute; right: 0; top: -20px; width: min(360px, 75vw); color: var(--ink); }
}

@media (max-width: 1050px) {
    .atlas-nav { grid-template-columns: auto 1fr auto; }
    .atlas-tabs { justify-self: center; }
    .atlas-search { width: 44px; }
    .atlas-search input { padding-left: .7rem; color: transparent; }
    .atlas-search input:focus { position: absolute; right: 0; top: -20px; width: min(360px, 75vw); color: var(--ink); }
    .panorama-grid, .people-layout, .collaboration-layout { grid-template-columns: 1fr; }
    .semantic-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .semantic-segmented, .semantic-search-field { grid-column: span 2; }
    .topic-lab-layout { grid-template-columns: 1fr; }
    .topic-detail { height: auto; max-height: 520px; }
    .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .person-detail { position: static; max-height: none; }
    .idea-panel { min-height: 440px; }
}

@media (max-width: 760px) {
    .atlas-nav { grid-template-columns: auto auto; gap: .5rem; padding: .6rem 1rem; }
    .atlas-brand > span:last-child, .atlas-search { display: none; }
    .atlas-tabs { justify-self: end; overflow-x: auto; }
    .atlas-tab { padding: .5rem .62rem; font-size: .75rem; }
    .data-note { padding-inline: 1rem; }
    .atlas-view { padding-inline: 1rem; }
    .hero-grid { display: block; padding-top: 4.5rem; }
    .atlas-counts { margin-top: 3rem; }
    .department-list, .people-grid { grid-template-columns: 1fr; }
    .department-panel, .idea-panel { padding: 1.3rem; }
    .section-heading, .view-heading { align-items: start; flex-direction: column; }
    .people-toolbar { align-items: stretch; flex-direction: column; }
    .representation-switcher { grid-template-columns: 1fr; }
    .representation-option { min-height: 90px; }
    .topic-toolbar { align-items: stretch; flex-direction: column; }
    .topic-search-field { min-width: 0; }
    .topic-coverage { margin: .25rem 0 0; }
    .research-map-note { align-items: flex-start; flex-direction: column; }
    .research-map-actions { width: 100%; }
    .research-map-actions button { flex: 1; }
    .research-map-canvas { min-height: 440px; overflow-x: auto; }
    .research-map-canvas svg { min-width: 650px; height: 440px; }
    .topic-detail { min-height: 0; max-height: 480px; }
    .work-toolbar { align-items: stretch; flex-direction: column; }
    .work-toolbar label, .work-toolbar label:nth-child(2) { min-width: 0; }
    .work-toolbar p { margin: .25rem 0 0; }
    .work-grid { grid-template-columns: 1fr; }
    .text-action { margin-left: 0; align-self: start; }
    .person-picker, .person-picker select { width: 100%; min-width: 0; }
    .network-canvas, .network-canvas svg { min-height: 480px; height: 480px; }
    .network-card { height: auto; }
    .network-legend { height: auto; }
    .collaboration-side { height: auto; max-height: 520px; }
    .method-grid { grid-template-columns: 1fr; }
    .semantic-heading .result-count { text-align: left; }
    .semantic-heading h1 { font-size: clamp(3rem, 15vw, 4.4rem); white-space: normal; }
    .semantic-toolbar { grid-template-columns: 1fr; }
    .semantic-segmented, .semantic-search-field { grid-column: auto; }
    .semantic-shell.has-detail { grid-template-columns: 1fr; }
    .semantic-stage { height: 510px; }
    .semantic-detail { height: auto; max-height: 480px; border-top: 1px solid var(--line); border-left: 0; }
    .semantic-help span:nth-child(2) { display: none; }
    .semantic-map-caption { max-width: calc(100% - 92px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .loading-state span { animation: none; }
}

/* Keep professor search available on phones, below the original navigation. */
@media (max-width: 760px) {
    .atlas-nav { grid-template-columns: auto minmax(0, 1fr); }
    .atlas-tabs { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; min-width: 0; }
    .atlas-search { display: block; width: 100%; grid-row: 1; grid-column: 2; }
    .atlas-search input, .atlas-search input:focus {
        position: static; width: 100%; color: var(--ink); padding-left: .7rem;
    }
    .atlas-search kbd { display: none; }
}
