:root {
  color-scheme: light;
  --bg: #f3f1ec;
  --surface: #fffdf9;
  --surface-solid: #fff;
  --surface-2: #ebe8e1;
  --ink: #131722;
  --muted: #62697a;
  --line: #d8d3ca;
  --line-strong: #bcb6aa;
  --brand: #29469a;
  --brand-strong: #182f73;
  --brand-soft: #e4e9fb;
  --accent: #cf6f3a;
  --accent-strong: #9e4621;
  --accent-soft: #fae3d4;
  --success: #24836d;
  --shadow: 0 12px 30px rgba(21, 27, 43, .1);
  --shadow-strong: 0 24px 70px rgba(21, 27, 43, .2);
  --focus: rgba(41, 70, 154, .22);
  --header-h: 64px;
  --radius: 16px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1118;
  --surface: #181c25;
  --surface-solid: #181c25;
  --surface-2: #222834;
  --ink: #f1f3f8;
  --muted: #a0a7b7;
  --line: #303746;
  --line-strong: #4a5364;
  --brand: #8299f1;
  --brand-strong: #aec0ff;
  --brand-soft: #253052;
  --accent: #f0a06c;
  --accent-strong: #ffc49e;
  --accent-soft: #402c21;
  --success: #65c9b0;
  --shadow: 0 12px 30px rgba(0, 0, 0, .32);
  --shadow-strong: 0 24px 70px rgba(0, 0, 0, .48);
  --focus: rgba(130, 153, 241, .28);
}

* { box-sizing: border-box; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 "Manrope", system-ui, sans-serif;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; letter-spacing: -.018em; }
[hidden] { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--surface-solid) 93%, transparent);
  backdrop-filter: blur(18px);
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  max-width: 1540px;
  height: 100%;
  margin: auto;
  padding: 0 1.2rem;
}
.brand { display: flex; align-items: center; gap: .64rem; width: fit-content; color: var(--ink); text-decoration: none; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; }
.brand > span { display: grid; line-height: 1.05; }
.brand strong { font: 700 1.08rem "Fraunces", Georgia, serif; }
.brand small { margin-top: .2rem; color: var(--muted); font-size: .55rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .42rem; }
.site-nav { display: flex; align-items: center; gap: .85rem; }
.site-nav a { position: relative; padding: .35rem 0; color: var(--muted); font-size: .72rem; font-weight: 750; text-decoration: none; }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; border-radius: 2px; background: var(--brand); }
.method-link { color: var(--muted); font-size: .73rem; font-weight: 700; text-decoration: none; }
.header-control, .icon-button {
  display: grid;
  place-items: center;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--muted);
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 750;
}
.header-control:hover, .icon-button:hover { border-color: var(--line-strong); color: var(--ink); }
.mobile-nav-toggle { display: none; padding: 0; }
.mobile-nav-toggle span { display: block; width: 15px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .18s var(--ease), opacity .18s; }
.mobile-nav-toggle span + span { margin-top: 3px; }
.mobile-nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }

.app-main { max-width: 1320px; margin: auto; padding: 2.3rem 1.4rem 4rem; }
body > main:not(.app-main) { max-width: 1320px; margin: auto; padding: 2.3rem 1.4rem 4rem; }
.panel, .result { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 .45rem; color: var(--accent); font-size: .67rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.muted { color: var(--muted); }
.error { max-width: 900px; margin: 1rem auto; padding: .8rem 1rem; border: 1px solid #e1a586; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); }

input, select {
  width: 100%;
  min-height: 2.75rem;
  padding: .6rem .72rem;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-solid);
  color: var(--ink);
}
input::placeholder { color: color-mix(in srgb, var(--muted) 74%, transparent); }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
label { display: grid; gap: .28rem; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .02em; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.7rem;
  padding: .65rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 7px 20px color-mix(in srgb, var(--brand) 25%, transparent);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
button:hover, .button:hover { background: var(--brand-strong); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 30%, transparent); }
button:disabled { opacity: .65; cursor: wait; transform: none; }
.quiet-button { min-height: 2.2rem; padding: .42rem .68rem; border: 1px solid var(--line); color: var(--muted); background: var(--surface-solid); box-shadow: none; font-size: .7rem; }
.quiet-button:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface-2); box-shadow: none; transform: none; }

/* Search is explicitly presented as an index, not a full-text box. */
.search-command { position: relative; overflow: hidden; border-radius: 26px; background: linear-gradient(127deg, #fdf8ef 0%, #ede3d6 48%, #dce4f9 100%); box-shadow: var(--shadow-strong); }
:root[data-theme="dark"] .search-command { background: linear-gradient(127deg, #1b2130 0%, #28262a 48%, #1b2440 100%); }
.search-command::after { content: ""; position: absolute; right: -7rem; top: -8rem; width: 22rem; height: 22rem; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 50%; box-shadow: 0 0 0 3.8rem color-mix(in srgb, var(--accent) 6%, transparent), 0 0 0 7.6rem color-mix(in srgb, var(--brand) 4%, transparent); pointer-events: none; }
.index-search { position: relative; z-index: 1; padding: clamp(1.4rem, 4.3vw, 3.7rem); }
.search-copy { max-width: 780px; }
.search-copy h1 { max-width: 760px; margin: 0; font-size: clamp(1.85rem, 4vw, 3.5rem); line-height: 1.03; }
.amsterdam-index-title { max-width: none !important; white-space: nowrap; }
.search-copy > p:last-child { max-width: 680px; margin: .75rem 0 1.5rem; color: color-mix(in srgb, var(--ink) 70%, var(--muted)); font-size: .98rem; }
.search-line { display: grid; grid-template-columns: minmax(260px, 1fr) 170px auto; align-items: end; gap: .55rem; max-width: 1080px; }
.search-line input { height: 3.45rem; padding-inline: 1rem; border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); font-size: 1.03rem; box-shadow: 0 5px 18px rgba(32, 44, 79, .06); }
.search-line select { height: 3.45rem; }
.search-line > button { height: 3.45rem; min-width: 8.5rem; }
.search-line > button b { font-size: 1.15rem; }
.search-underbar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; max-width: 980px; margin-top: .75rem; }
.search-tools { display: flex; align-items: center; gap: .42rem; flex: 0 0 auto; }
.filter-reset { padding: .34rem .58rem; border: 1px solid transparent; border-radius: 999px; color: var(--muted); font-size: .67rem; font-weight: 750; white-space: nowrap; text-decoration: none; }
.filter-reset:hover { border-color: var(--line); color: var(--ink); background: color-mix(in srgb, var(--surface-solid) 72%, transparent); }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: .38rem; color: var(--muted); font-size: .7rem; }
.wildcard-note { flex-basis: 100%; font-size: .62rem; line-height: 1.4; }
.query-language-help { max-width: 1080px; margin-top: .55rem; color: var(--muted); font-size: .7rem; }
.query-language-help > summary { cursor: pointer; line-height: 1.45; }
.query-language-help > p { margin: .35rem 0 0; color: var(--ink); }
.text-chip, .filter-disclosure { min-height: 0; padding: .3rem .55rem; border: 0; color: var(--brand); background: transparent; box-shadow: none; font-size: .7rem; }
.text-chip:hover, .filter-disclosure:hover { color: var(--brand-strong); background: color-mix(in srgb, var(--surface-solid) 70%, transparent); box-shadow: none; transform: none; }
.filter-disclosure { border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 999px; color: var(--muted); }
.filter-disclosure::after { content: "⌄"; display: inline-block; margin-left: .22rem; font-size: .68rem; transition: transform .18s var(--ease); }
.filter-disclosure[aria-expanded="true"] { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); color: var(--brand-strong); background: var(--brand-soft); }
.filter-disclosure[aria-expanded="true"]::after { transform: rotate(180deg); }
.search-filters { max-width: 1080px; margin-top: .85rem; padding: 1rem; border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--surface-solid) 86%, transparent); box-shadow: 0 10px 28px rgba(35, 49, 89, .1); transform-origin: top; animation: filter-reveal .2s var(--ease) both; }
.search-filters[hidden] { display: none; }
@keyframes filter-reveal { from { opacity: 0; transform: translateY(-7px) scaleY(.985); } to { opacity: 1; transform: none; } }
.filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.collection-selector { grid-column: 1 / -1; min-width: 0; padding: .85rem; border: 1px solid color-mix(in srgb, var(--brand) 32%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--brand-soft) 38%, var(--surface)); }
.collection-picker { max-width: 1080px; margin-top: .8rem; border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); border-radius: 15px; background: color-mix(in srgb, var(--surface-solid) 78%, transparent); box-shadow: 0 5px 16px rgba(35, 49, 89, .06); }
.collection-picker > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .72rem .85rem; cursor: pointer; list-style: none; }
.collection-picker > summary::-webkit-details-marker { display: none; }
.collection-picker > summary span { display: grid; gap: .08rem; }
.collection-picker > summary strong { font: 700 1rem "Fraunces", Georgia, serif; }
.collection-picker > summary small { color: var(--muted); font-size: .65rem; }
.collection-picker > summary b { color: var(--brand); transition: transform .18s; }
.collection-picker[open] > summary b { transform: rotate(180deg); }
.collection-picker > .collection-selector { margin: 0 .65rem .65rem; border-radius: 10px; box-shadow: none; }
.collection-selector legend { padding: 0 .35rem; color: var(--ink); font: 700 1rem "Fraunces", Georgia, serif; }
.collection-selector-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; align-items: center; margin-bottom: .55rem; }
.collection-selector-head small { color: var(--muted); font-size: .67rem; }
.collection-all { display: inline-flex; flex-direction: row; align-items: center; gap: .45rem; font-weight: 800; }
.collection-all input, .collection-options input { width: 1rem; height: 1rem; min-height: 0; accent-color: var(--brand); }
.collection-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .28rem; max-height: 14rem; overflow: auto; padding: .2rem; scrollbar-gutter: stable; }
.collection-options label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-auto-flow: column; align-items: center; gap: .42rem; min-width: 0; padding: .38rem .45rem; border: 1px solid transparent; border-radius: 8px; background: color-mix(in srgb, var(--surface-solid) 72%, transparent); cursor: pointer; font-size: .69rem; font-weight: 650; }
.collection-options label:has(input:checked) { border-color: color-mix(in srgb, var(--brand) 38%, var(--line)); color: var(--brand-strong); background: var(--brand-soft); }
.collection-options label small { color: var(--muted); font-size: .58rem; font-weight: 600; }
.collection-options.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 13rem; }
.year-filter { --year-from: 0%; --year-to: 100%; max-width: 1080px; margin-top: .65rem; padding: .8rem .9rem .72rem; border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line)); border-radius: 15px; background: color-mix(in srgb, var(--surface-solid) 76%, transparent); box-shadow: 0 5px 16px rgba(35, 49, 89, .05); }
.year-filter > header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.year-filter > header > span { display: grid; gap: .08rem; }
.year-filter > header strong { font: 700 1rem "Fraunces", Georgia, serif; }
.year-filter > header small { max-width: 650px; color: var(--muted); font-size: .65rem; }
.year-filter > header output { padding: .25rem .5rem; border-radius: 999px; color: var(--brand-strong); background: var(--brand-soft); font-size: .64rem; font-weight: 800; white-space: nowrap; }
.year-slider-stage { position: relative; height: 4.1rem; margin: .45rem .45rem 0; }
.year-slider-rail { position: absolute; top: 1rem; right: 0; left: 0; height: .38rem; border-radius: 999px; background: linear-gradient(to right, var(--line-strong) 0 var(--year-from), var(--brand) var(--year-from) var(--year-to), var(--line-strong) var(--year-to) 100%); box-shadow: inset 0 1px 2px color-mix(in srgb, var(--ink) 12%, transparent); }
.year-slider-stage input[type="range"] { position: absolute; top: .46rem; left: 0; z-index: 2; width: 100%; height: 1.45rem; min-height: 0; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; appearance: none; pointer-events: none; }
.year-slider-stage input[type="range"]::-webkit-slider-runnable-track { height: .38rem; background: transparent; }
.year-slider-stage input[type="range"]::-moz-range-track { height: .38rem; background: transparent; }
.year-slider-stage input[type="range"]::-webkit-slider-thumb { width: 1.25rem; height: 1.25rem; margin-top: -.44rem; border: 3px solid var(--surface-solid); border-radius: 50%; background: var(--brand); box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 38%, transparent), 0 0 0 1px color-mix(in srgb, var(--brand) 40%, var(--line)); appearance: none; cursor: grab; pointer-events: auto; }
.year-slider-stage input[type="range"]::-moz-range-thumb { width: .95rem; height: .95rem; border: 3px solid var(--surface-solid); border-radius: 50%; background: var(--brand); box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 38%, transparent), 0 0 0 1px color-mix(in srgb, var(--brand) 40%, var(--line)); cursor: grab; pointer-events: auto; }
.year-slider-stage input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid color-mix(in srgb, var(--brand) 28%, transparent); outline-offset: 2px; }
.year-slider-stage input[type="range"]:focus-visible::-moz-range-thumb { outline: 3px solid color-mix(in srgb, var(--brand) 28%, transparent); outline-offset: 2px; }
.year-scale { position: absolute; right: 0; bottom: .15rem; left: 0; height: 1.25rem; color: var(--muted); font-size: .56rem; }
.year-scale span { position: absolute; transform: translateX(-50%); }
.year-scale span:first-child { transform: none; }
.year-scale span.last { transform: translateX(-100%); }
.year-fields { display: flex; justify-content: center; align-items: end; gap: .45rem; }
.year-fields > label { display: grid; grid-template-columns: auto 5.3rem; align-items: center; gap: .35rem; margin: 0; color: var(--muted); font-size: .62rem; }
.year-fields input { min-height: 0; padding: .38rem .45rem; font-size: .72rem; }
.year-fields > span { padding-bottom: .4rem; color: var(--muted); }
.combined-search-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .55rem; margin: 1rem 0 .55rem; }
.combined-search-head strong { font: 650 1rem "Fraunces", Georgia, serif; }
.combined-search-head span { color: var(--muted); font-size: .68rem; }
.people-grid { display: grid; grid-template-columns: minmax(180px, 1.6fr) minmax(120px, .6fr) minmax(150px, 1fr); gap: .55rem; }
.filter-actions { display: flex; align-items: center; gap: .8rem; margin-top: .8rem; }
.filter-actions a { font-size: .72rem; }
.search-command.is-compact { margin-bottom: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.search-command.is-compact::after { display: none; }
.is-compact .index-search { padding: .85rem; }
.is-compact .search-copy { display: none; }
.is-compact .search-line { max-width: none; grid-template-columns: minmax(260px, 1fr) 160px auto; }
.is-compact .search-line input, .is-compact .search-line select, .is-compact .search-line > button { height: 2.85rem; min-height: 2.85rem; }
.is-compact .search-underbar { max-width: none; margin-top: .45rem; }

.map-feature-cta { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; max-width: 1080px; margin-top: 1.35rem; padding: 1rem 1.1rem; overflow: hidden; border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); border-radius: 18px; color: var(--ink); background: color-mix(in srgb, var(--surface-solid) 78%, transparent); box-shadow: 0 12px 34px rgba(37, 63, 142, .12); backdrop-filter: blur(12px); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.map-feature-cta::after { content: ""; position: absolute; right: -36px; width: 160px; height: 160px; border: 1px solid color-mix(in srgb, var(--brand) 16%, transparent); border-radius: 50%; box-shadow: 0 0 0 28px color-mix(in srgb, var(--brand) 4%, transparent); pointer-events: none; }
.map-feature-cta:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); color: var(--ink); transform: translateY(-2px); box-shadow: 0 18px 42px rgba(37, 63, 142, .18); }
.map-feature-cta small, .map-feature-cta strong { display: block; }
.map-feature-cta small { margin-bottom: .1rem; color: var(--accent); font-size: .59rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.map-feature-cta strong { font: 650 1.2rem "Fraunces", Georgia, serif; }
.map-feature-copy em { display: block; margin-top: .1rem; color: var(--muted); font-size: .7rem; font-style: normal; }
.map-feature-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; color: #fff; background: linear-gradient(145deg, var(--brand), var(--brand-strong)); box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 27%, transparent); font-size: 1.15rem; }
.map-feature-action { position: relative; z-index: 1; display: flex; align-items: center; gap: .45rem; padding: .55rem .75rem; border-radius: 999px; color: #fff; background: var(--brand); font-size: .67rem; font-weight: 800; white-space: nowrap; }
.voc-research-entry { max-width: 1080px; margin: 1.5rem auto 0; }
.voc-research-entry > header { max-width: 720px; margin-bottom: .8rem; }
.voc-research-entry > header h2 { margin: .15rem 0 .3rem; font-size: clamp(1.45rem, 2.5vw, 2.15rem); }
.voc-research-entry > header > p:last-child { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.voc-research-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.voc-research-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .8rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; transition: border-color .18s, transform .18s, box-shadow .18s; }
.voc-research-card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-strong); }
.voc-research-card > span { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; color: var(--brand); background: var(--brand-soft); font-size: 1rem; font-weight: 900; }
.voc-research-card small, .voc-research-card strong { display: block; }
.voc-research-card small { margin-bottom: .16rem; color: var(--accent); font-size: .56rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.voc-research-card strong { font: 650 1.05rem "Fraunces", Georgia, serif; }
.voc-research-card p { margin: .22rem 0 0; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.voc-research-card > b { color: var(--brand); font-size: 1rem; }
/* Record results */
.result-view[hidden] { display: none !important; }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin: 1.3rem 0 1rem; }
.results-heading h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.results-heading p:last-child { margin: .28rem 0 0; color: var(--muted); font-size: .8rem; }
.performance-notices { display: grid; gap: .45rem; margin: -.25rem 0 1rem; }
.performance-notices p { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: .7rem; margin: 0; padding: .65rem .75rem; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--accent-soft) 42%, var(--surface)); font-size: .7rem; line-height: 1.45; }
.performance-notices strong { color: var(--ink); }
.performance-notices span { color: var(--muted); }
.result-order { display: flex; align-items: center; gap: .5rem; }
.result-order label { white-space: nowrap; }
.result-order select { min-width: 160px; }
.results-layout { display: grid; grid-template-columns: minmax(230px, .32fr) minmax(0, 1fr); gap: 1rem; }
.results-layout.without-facets { grid-template-columns: 1fr; }
.facets-sidebar { position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; max-height: calc(100vh - var(--header-h) - 2rem); overflow: auto; padding: .85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.result-facets > summary { display: flex; justify-content: space-between; gap: .5rem; padding: .1rem 0 .7rem; font-weight: 800; cursor: pointer; }
.result-facets > summary small { color: var(--muted); font-size: .58rem; font-weight: 600; }
.facet-grid { display: grid; gap: .35rem; }
.facet-group { border-top: 1px solid var(--line); }
.facet-group summary { padding: .58rem 0 .4rem; color: var(--muted); cursor: pointer; font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.facet-options { display: grid; gap: .16rem; padding-bottom: .45rem; }
.facet-chip { display: flex; justify-content: space-between; gap: .5rem; padding: .33rem .42rem; border-radius: 7px; color: var(--muted); font-size: .69rem; text-decoration: none; }
.facet-chip:hover, .facet-chip.is-active { color: var(--brand-strong); background: var(--brand-soft); }
.facet-chip small { color: inherit; opacity: .75; }
.results-column { min-width: 0; }
.result { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 1rem; min-height: 170px; margin-bottom: .7rem; padding: .9rem; box-shadow: 0 3px 12px rgba(20, 24, 34, .05); transition: border-color .18s, transform .18s var(--ease), box-shadow .18s; }
.result:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow); transform: translateY(-1px); }
.result.no-image { grid-template-columns: 1fr; }
.result-body { min-width: 0; padding: .12rem .2rem; }
.result-kicker { color: var(--accent); font-size: .62rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.result h3 { margin: .28rem 0 .45rem; font-size: 1.18rem; line-height: 1.24; }
.result h3 a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--brand) 30%, transparent); text-decoration-thickness: 1px; }
.result h3 span { color: var(--line-strong); font-weight: 400; }
.record-meta { display: flex; flex-wrap: wrap; gap: .25rem .65rem; color: var(--muted); font-size: .75rem; }
.record-meta span + span::before { content: "·"; margin-right: .65rem; color: var(--line-strong); }
.result-places { margin: .38rem 0 0; color: var(--muted); font-size: .73rem; }
.result-actions { display: flex; align-items: center; gap: .8rem; margin-top: .7rem; }
.result-actions .button { min-height: 2.15rem; padding: .4rem .7rem; font-size: .69rem; }
.result-actions > a:not(.button) { font-size: .69rem; }
.thumb { position: relative; min-height: 145px; overflow: hidden; border-radius: 12px; background: #171b25; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s, transform .35s var(--ease); }
.thumb:hover img { opacity: .82; transform: scale(1.035); }
.thumb span { position: absolute; right: .45rem; bottom: .45rem; padding: .25rem .45rem; border-radius: 999px; background: rgba(13, 21, 42, .84); color: #fff; font-size: .61rem; font-weight: 750; }
.pager { display: flex; justify-content: space-between; margin: 1rem 0 2rem; }
.pager a { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .73rem; font-weight: 750; text-decoration: none; }
.empty { padding: 2rem; text-align: center; }
.empty h2 { margin: 0; }
.empty p { color: var(--muted); }

/* The map and people views own the viewport. */
.visual-mode { overflow: hidden; }
.visual-mode [data-records-context] { display: none !important; }
.visual-mode .app-main { width: 100%; max-width: none; height: calc(100dvh - var(--header-h)); padding: 0; }
.visual-mode #exploration-root { position: relative; width: 100%; height: 100%; overflow: hidden; }
.visual-mode #voc-exploration-root { position: relative; width: 100%; height: 100%; overflow: hidden; }
.mode-switcher { display: flex; gap: .2rem; width: fit-content; margin: 0 auto 1rem; padding: .25rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface-solid) 93%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.mode-button { min-height: 2.3rem; padding: .45rem .78rem; color: var(--muted); background: transparent; box-shadow: none; font-size: .72rem; }
.mode-button:hover { color: var(--ink); background: var(--surface-2); box-shadow: none; transform: none; }
.mode-button.is-active { color: #fff; background: var(--brand); }
.visual-mode .mode-switcher { position: absolute; z-index: 80; top: 14px; left: 50%; margin: 0; transform: translateX(-50%); }
.visual-workspace { position: absolute; inset: 0; overflow: hidden; background: var(--surface-2); }
.visualization-status { position: absolute; z-index: 2; inset: 50% auto auto 50%; margin: 0; transform: translate(-50%, -50%); color: var(--muted); }

.scope-sheet { position: fixed; z-index: 1200; top: calc(var(--header-h) + 14px); right: 14px; width: min(390px, calc(100vw - 28px)); padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface-solid) 96%, transparent); box-shadow: var(--shadow-strong); backdrop-filter: blur(20px); }
.scope-head { display: flex; justify-content: space-between; gap: 1rem; }
.scope-head .eyebrow { margin-bottom: .15rem; }
.scope-head h2 { margin: 0; font-size: 1.25rem; }
.scope-head .icon-button { font-size: 1.1rem; }
.scope-sheet > p { margin: .45rem 0 .8rem; color: var(--muted); font-size: .72rem; }
.scope-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.scope-collection { grid-column: 1 / -1; }
.scope-actions { display: flex; gap: .5rem; margin-top: .75rem; }

/* MapLibre renders one consistent, WebGL-accelerated place layer. */
.map-stage { position: absolute; z-index: 0; inset: 0; background: #dfe5e4; pointer-events: auto; }
.map-stage .maplibregl-map { width: 100%; height: 100%; font-family: "Manrope", sans-serif; pointer-events: auto; }
.map-stage .maplibregl-canvas-container, .map-stage .maplibregl-canvas { pointer-events: auto; }
.map-stage .maplibregl-canvas { cursor: grab; }
.map-stage .maplibregl-canvas:active { cursor: grabbing; }
.map-stage .maplibregl-ctrl-top-right { top: 74px; right: 8px; }
.map-stage .maplibregl-ctrl-group { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-solid); box-shadow: var(--shadow); }
.map-stage .maplibregl-ctrl-group button { border-radius: 0; box-shadow: none; }
.map-stage .maplibregl-ctrl-attrib { font-size: 9px; }
.workspace-intro { position: absolute; z-index: 25; top: 76px; left: 14px; width: 332px; max-height: calc(100% - 106px); overflow: auto; padding: 1rem; border: 1px solid color-mix(in srgb, var(--line) 85%, transparent); border-radius: 17px; background: color-mix(in srgb, var(--surface-solid) 94%, transparent); box-shadow: var(--shadow-strong); backdrop-filter: blur(18px); }
.mobile-map-intro-toggle { display: none; }
.workspace-title h1 { margin: 0; font-size: 1.4rem; line-height: 1.08; }
.workspace-title > p:last-child { margin: .45rem 0 .85rem; color: var(--muted); font-size: .72rem; }
.place-finder > div, .person-finder > div { display: grid; grid-template-columns: 1fr auto; gap: .35rem; }
.place-finder input, .person-finder input { min-width: 0; height: 2.7rem; }
.place-finder button, .person-finder button { width: 2.7rem; min-height: 2.7rem; padding: 0; }
.place-matches { display: grid; gap: .25rem; margin-top: .45rem; }
.place-match { display: grid; grid-template-columns: 1fr auto; gap: .6rem; width: 100%; min-height: 0; padding: .46rem .5rem; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface-solid); box-shadow: none; text-align: left; font-size: .69rem; }
.place-match:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-soft); box-shadow: none; transform: none; }
.place-match small { color: var(--muted); font-size: .6rem; }
.workspace-summary { margin-top: .7rem; padding-top: .65rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .66rem; }
.filter-button { width: 100%; margin-top: .55rem; }
.map-key { position: absolute; z-index: 20; left: 14px; bottom: 14px; display: flex; gap: .7rem; padding: .38rem .55rem; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--surface-solid) 91%, transparent); color: var(--muted); backdrop-filter: blur(12px); font-size: .6rem; }
.map-key span { display: flex; align-items: center; gap: .3rem; }
.map-key i { width: .7rem; height: .7rem; border: 2px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px var(--brand-strong); }
.map-key .selected-key { background: var(--accent); box-shadow: 0 0 0 2px var(--accent-strong); }

.evidence-drawer { position: absolute; z-index: 50; top: 0; right: 0; width: min(450px, 100%); height: 100%; overflow: auto; border-left: 1px solid var(--line); background: color-mix(in srgb, var(--surface-solid) 97%, transparent); box-shadow: -16px 0 46px rgba(19, 24, 37, .14); backdrop-filter: blur(20px); animation: drawer-in .25s var(--ease); }
.drawer-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: 1rem 1rem .8rem; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface-solid) 96%, transparent); backdrop-filter: blur(14px); }
.drawer-head h2 { margin: .12rem 0 0; font-size: 1.45rem; line-height: 1.08; }
.drawer-body { padding: .85rem 1rem 1.4rem; }
.drawer-stat { display: flex; align-items: baseline; gap: .4rem; margin-bottom: .45rem; }
.drawer-stat strong { color: var(--brand); font: 700 1.45rem "Fraunces", Georgia, serif; }
.drawer-stat span, .drawer-provenance { color: var(--muted); font-size: .68rem; }
.drawer-actions { display: flex; gap: .5rem; margin: .65rem 0; }
.drawer-actions .button, .drawer-actions button { min-height: 2.2rem; padding: .42rem .7rem; font-size: .68rem; }
.drawer-status { color: var(--muted); font-size: .72rem; }
.record-stack { display: grid; gap: .45rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.drawer-record { display: grid; grid-template-columns: 68px 1fr; gap: .65rem; min-height: 74px; padding: .5rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.drawer-record.no-thumb { grid-template-columns: 1fr; }
.drawer-record img { width: 68px; height: 68px; border-radius: 8px; object-fit: cover; }
.drawer-record h3 { margin: .1rem 0 .2rem; font: 750 .77rem/1.3 "Manrope", sans-serif; }
.drawer-record h3 a { color: var(--ink); text-decoration: none; }
.drawer-record p { margin: .1rem 0; color: var(--muted); font-size: .62rem; }
.drawer-record-links { display: flex; gap: .7rem; margin-top: .2rem; font-size: .61rem; font-weight: 750; }
.drawer-more { width: 100%; margin-top: .6rem; }

/* People: a bounded directory plus a stable, focus-and-context 2D graph. */
.network-workspace { display: grid; grid-template-columns: 350px minmax(0, 1fr); }
.network-workspace.has-evidence { grid-template-columns: 350px minmax(0, 1fr) min(450px, 31vw); }
.people-directory { position: relative; z-index: 20; min-width: 0; height: 100%; overflow: auto; padding: 76px .85rem 1rem; border-right: 1px solid var(--line); background: var(--surface); box-shadow: 8px 0 30px rgba(20, 25, 38, .07); }
.person-finder { margin: .85rem 0; }
.directory-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .9rem 0 .45rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.directory-head strong { font: 650 .92rem "Fraunces", Georgia, serif; }
.person-results { display: grid; gap: .28rem; }
.person-result { display: grid; grid-template-columns: 1fr auto; gap: .6rem; width: 100%; min-height: 0; padding: .58rem .62rem; border: 1px solid transparent; border-radius: 10px; color: var(--ink); background: transparent; box-shadow: none; text-align: left; }
.person-result:hover, .person-result.is-selected { border-color: var(--line); color: var(--ink); background: var(--brand-soft); box-shadow: none; transform: none; }
.person-result strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: .72rem; }
.person-result small { display: block; margin-top: .1rem; color: var(--muted); font-size: .58rem; font-weight: 550; }
.person-score { align-self: center; color: var(--accent); font-size: .58rem; font-weight: 850; }
.loading-line { color: var(--muted); font-size: .7rem; }
.network-trail { display: flex; gap: .22rem; overflow-x: auto; padding: .15rem 0 .3rem; }
.trail-item { flex: 0 0 auto; min-height: 0; padding: .28rem .48rem; border: 1px solid var(--line); color: var(--muted); background: var(--surface-solid); box-shadow: none; font-size: .6rem; }
.trail-item:hover, .trail-item:last-child { color: var(--brand-strong); background: var(--brand-soft); box-shadow: none; transform: none; }
.network-stage { position: relative; min-width: 0; height: 100%; overflow: hidden; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--brand-soft) 48%, var(--surface)) 0, var(--surface-2) 65%, var(--bg) 100%); }
.network-workspace > .evidence-drawer { position: relative; grid-column: 3; grid-row: 1; width: 100%; }
.network-canvas { position: absolute; inset: 0; }
.network-welcome { position: absolute; top: 50%; left: 50%; width: min(480px, calc(100% - 2rem)); transform: translate(-50%, -50%); text-align: center; }
.network-welcome h2 { margin: 1rem 0 .3rem; font-size: 1.7rem; }
.network-welcome p { margin: 0; color: var(--muted); font-size: .78rem; }
.orbit-mark { position: relative; display: block; width: 120px; height: 120px; margin: auto; border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); border-radius: 50%; }
.orbit-mark::before, .orbit-mark::after { content: ""; position: absolute; inset: 22px; border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); border-radius: 50%; }
.orbit-mark::after { inset: 45px; background: var(--accent); border: 5px solid var(--surface); box-shadow: 0 0 0 1px var(--accent-strong); }
.orbit-mark i { position: absolute; width: 9px; height: 9px; border: 2px solid var(--surface); border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px var(--brand-strong); }
.orbit-mark i:nth-child(1) { top: 8px; left: 55px; }
.orbit-mark i:nth-child(2) { right: 13px; bottom: 28px; }
.orbit-mark i:nth-child(3) { left: 21px; bottom: 18px; }
.network-controls { position: absolute; z-index: 10; top: 76px; right: 12px; display: grid; gap: .3rem; }
.network-controls button { width: 2.3rem; height: 2.3rem; min-height: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface-solid); box-shadow: var(--shadow); }
.network-controls button:hover { background: var(--brand-soft); transform: none; }
.network-key { position: absolute; z-index: 8; bottom: 52px; left: 12px; display: flex; flex-wrap: wrap; gap: .65rem; max-width: calc(100% - 24px); padding: .38rem .58rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: color-mix(in srgb, var(--surface-solid) 90%, transparent); backdrop-filter: blur(12px); font-size: .58rem; }
.network-key span { display: inline-flex; align-items: center; gap: .3rem; }
.network-key i { display: inline-block; width: .6rem; height: .6rem; border: 1.5px solid var(--surface-solid); border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.network-key .mention-key { border-style: dashed; background: var(--muted); }
.network-key .tie-key { width: 1.15rem; height: 0; border: 0; border-top: 3px solid #7890bd; border-radius: 0; background: none; box-shadow: none; }
.network-status { position: absolute; z-index: 8; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: .38rem .58rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: color-mix(in srgb, var(--surface-solid) 90%, transparent); backdrop-filter: blur(12px); font-size: .61rem; }
.network-facts { display: grid; margin: .7rem 0; }
.network-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .38rem 0; border-bottom: 1px solid var(--line); }
.network-facts dt { color: var(--muted); font-size: .65rem; }
.network-facts dd { margin: 0; font-size: .67rem; font-weight: 800; text-align: right; }
.metric-explain { margin: .7rem 0; padding: .65rem; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: .65rem; }
.drawer-section-title { margin: 1rem 0 .45rem; font: 650 .95rem "Fraunces", Georgia, serif; }
.source-record-links { display: grid; gap: .3rem; }
.source-record-links a { padding: .45rem .5rem; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface-2); font-size: .65rem; font-weight: 700; text-decoration: none; }
.source-record-links a:hover { border-color: var(--brand); color: var(--brand-strong); }
.person-score.is-resolved { color: var(--brand); }

/* Shared detail and methodology pages. */
.back-link { display: inline-block; margin: .1rem 0 .85rem; font-size: .76rem; font-weight: 700; }
.detail-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.5rem; margin-bottom: .8rem; background: linear-gradient(125deg, var(--surface), color-mix(in srgb, var(--brand-soft) 55%, var(--surface))); }
.detail-hero h1 { margin: .2rem 0 .35rem; font-size: clamp(1.35rem, 2.7vw, 2rem); }
.detail-hero p { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .75fr); gap: .8rem; }
.detail-card { padding: 1rem; margin-bottom: .8rem; }
.detail-card h2 { margin: 0 0 .65rem; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.htr-button, .htr-link { color: #fff; background: #8b3275; }
.htr-link { display: inline-flex; align-items: center; width: fit-content; padding: .28rem .48rem; border-radius: 999px; font-size: .68rem; font-weight: 750; text-decoration: none; }
.archive-metadata p { margin: .35rem 0; color: var(--muted); font-size: .76rem; }
.archive-metadata .archive-title { color: var(--ink); font-weight: 700; }
.archive-fields { display: grid; gap: .45rem; margin: .75rem 0 0; }
.archive-fields div { padding-top: .45rem; border-top: 1px solid var(--line); }
.archive-fields dt { color: var(--muted); font-size: .65rem; font-weight: 750; text-transform: uppercase; }
.archive-fields dd { margin: .12rem 0 0; font-size: .76rem; line-height: 1.45; }
.scan-metadata ol { max-height: 19rem; overflow: auto; margin: .5rem 0 0; padding-left: 1.6rem; }
.scan-metadata li { padding: .3rem 0; font-size: .7rem; overflow-wrap: anywhere; }
.scan-metadata li .htr-link { margin-top: .25rem; }
.scan-jump { display: flex; justify-content: space-between; gap: .5rem; width: 100%; min-height: 0; padding: .25rem .4rem; border: 0; border-radius: 6px; color: var(--ink); background: transparent; box-shadow: none; text-align: left; font: inherit; overflow-wrap: anywhere; }
.scan-jump:hover { color: var(--brand-strong); background: var(--brand-soft); box-shadow: none; transform: none; }
.person-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .42rem; margin: 0; padding: 0; list-style: none; }
.person-list li { padding: .55rem .65rem; border-radius: 9px; background: var(--surface-2); }
.person-list a { display: block; color: var(--ink); text-decoration: none; }
.person-list a:hover strong { color: var(--brand); text-decoration: underline; }
.person-list strong { display: block; font: 650 1rem "Fraunces", Georgia, serif; }
.person-list span { color: var(--muted); font-size: .68rem; }
.location-list { display: flex; flex-wrap: wrap; gap: .38rem; margin: 0; padding: 0; list-style: none; }
.location-list li { padding: .3rem .5rem; border-radius: 999px; background: var(--surface-2); font-size: .73rem; }
.location-list a { color: var(--ink); text-decoration: none; }
.location-list a:hover { color: var(--brand); text-decoration: underline; }
.location-list small { color: var(--muted); }
.evidence-list { display: grid; gap: .4rem; padding-left: 1.1rem; }
.facts { display: grid; gap: .2rem; margin: 0; }
.facts > div { display: grid; grid-template-columns: minmax(120px, .7fr) 1fr; gap: .7rem; padding: .38rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .7rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; font-size: .75rem; font-weight: 700; }
.methodology-page { max-width: 960px !important; padding-top: clamp(3rem, 7vw, 6rem) !important; }
.method-hero { max-width: 760px; margin: 0 auto 2rem; text-align: center; }
.method-hero h1 { margin: .2rem 0 .7rem; font-size: clamp(1.85rem, 4.2vw, 3.35rem); line-height: 1.04; }
.lede { max-width: 720px; margin-inline: auto; color: var(--muted); font-size: 1rem; }
.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.method-grid .detail-card { margin: 0; padding: 1.25rem; }
.method-grid .detail-card p { margin-bottom: 0; color: var(--muted); font-size: .78rem; }
.method-stats { display: flex; justify-content: center; gap: 0; margin: 1.1rem auto 0; padding: .8rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-stats div { min-width: 160px; padding: 0 1rem; text-align: center; }
.method-stats div + div { border-left: 1px solid var(--line); }
.method-stats dt { color: var(--muted); font-size: .61rem; text-transform: uppercase; }
.method-stats dd { margin: .18rem 0 0; font: 650 1.1rem "Fraunces", Georgia, serif; }
.method-sources { text-align: center; color: var(--muted); font-size: .67rem; }
.viewer-shell { overflow: hidden; border-radius: var(--radius); background: #111620; box-shadow: var(--shadow-strong); }
.viewer { height: min(68vh, 710px); min-height: 420px; }
.viewer-note { display: flex; justify-content: space-between; gap: .6rem; padding: .62rem .8rem; background: #1d326f; color: #edf2ff; font-size: .72rem; }
.viewer-note a { color: #ffd7bd; }
.no-preview { display: grid; place-items: center; min-height: 280px; color: #c8d0dd; }

/* Independent VOC research workspace. */
.voc-page .search-command { margin-bottom: 1.2rem; }
.voc-results { max-width: none; margin: 0; }
.voc-person-card { grid-template-columns: 1fr; }
.voc-person-card h3 { margin: .15rem 0 .45rem; }
.mode-switcher a.mode-button { color: var(--muted); text-decoration: none; }
.mode-switcher a.mode-button.is-active { color: white; }
.voc-map-shell { position: relative; min-height: 680px; overflow: hidden; }
.voc-map { position: absolute; inset: 0 360px 0 0; }
.voc-map-drawer { position: absolute; inset: 0 0 0 auto; width: 360px; overflow: auto; padding: 1.2rem; border-left: 1px solid var(--line); background: var(--surface); }
.voc-map-people { display: grid; gap: .35rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.voc-map-person { display: flex; justify-content: space-between; gap: .75rem; padding: .5rem .58rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); font-size: .72rem; }
.voc-map-person a { color: var(--ink); font-weight: 750; text-decoration: none; }
.voc-map-person small { color: var(--muted); white-space: nowrap; }
.contract-list { display: grid; gap: .7rem; }
.contract-card { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-solid); }
.contract-card h3 { margin: 0 0 .4rem; font-size: 1rem; }
.lead-mini { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.lead-mini h3 { margin: .35rem 0; }
.lead-mini p { font-size: .72rem; color: var(--muted); }
.lead-mini small { display: block; color: var(--muted); }
.secondary-leads { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.secondary-leads summary { cursor: pointer; color: var(--brand); font-size: .72rem; font-weight: 800; }
.confession-lead { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.confession-lead h3 { margin: .35rem 0; font-size: .9rem; }
.htr-snippet { margin: .45rem 0; padding: .6rem; border-left: 3px solid #8b3275; border-radius: 0 8px 8px 0; background: var(--surface-2); font: .72rem/1.55 ui-monospace, SFMono-Regular, monospace; }
.score-line, .name-difference { color: var(--muted); font-size: .67rem; }
.name-difference mark { padding: .08rem .2rem; border-radius: 4px; background: var(--accent-soft); color: var(--accent-strong); }
.confidence-badge { display: inline-flex; padding: .2rem .48rem; border-radius: 999px; font-size: .65rem; font-weight: 850; text-transform: uppercase; }
.confidence-badge.high { background: color-mix(in srgb,var(--success) 18%,transparent); color: var(--success); }
.confidence-badge.medium { background: var(--brand-soft); color: var(--brand); }
.confidence-badge.exploratory { background: var(--accent-soft); color: var(--accent-strong); }
.score-bar { height: 5px; overflow: hidden; border-radius: 99px; background: var(--surface-2); }
.score-bar i { display: block; width: var(--score); height: 100%; background: var(--brand); }
.connection-hero { max-width: 1000px; }
.connection-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1rem; }
.connection-stats span, .connection-stats a { padding: .55rem .72rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; text-decoration: none; font-size: .72rem; }
.connection-stats strong { margin-right: .15rem; font-size: 1rem; }
.stats-note { max-width: 820px; margin-bottom: 0; font-size: .74rem; }
.connection-filters { display: grid; grid-template-columns: 1.5fr 1.5fr repeat(3,1fr) auto; gap: .7rem; align-items: end; padding: 1rem; margin: 1rem 0; }
.connection-more-filters { grid-column: 1 / -1; padding-top: .4rem; border-top: 1px solid var(--line); }
.connection-more-filters summary { cursor: pointer; font-size: .72rem; font-weight: 800; }
.connection-more-filters > div { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) auto; gap: .7rem; align-items: end; margin-top: .7rem; }
.connection-result-head { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 .65rem; color: var(--muted); font-size: .72rem; }
.connection-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 1rem; max-width: 1180px; margin: auto; }
.connection-card { padding: 1.15rem; }
.connection-card > header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.connection-card > header > div { display: flex; align-items: center; gap: .5rem; }
.match-kind, .independent-count { color: var(--muted); font-size: .68rem; }
.connection-pair { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 1rem; align-items: start; margin: 1rem 0; }
.connection-side { min-width: 0; }
.connection-side h2 { margin: .1rem 0 .3rem; font-size: 1.25rem; }
.connection-side p { margin: .38rem 0; font-size: .74rem; line-height: 1.55; }
.connection-side .eyebrow { margin: 0; }
.connection-arrow { align-self: center; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-weight: 900; }
.side-summary { color: var(--muted); }
.connection-side .source-mention-note {
  display: inline-block;
  margin: .15rem 0 .35rem;
  padding: .25rem .45rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--paper) 88%, var(--accent));
}
.context-label { color: var(--muted); font-size: .61rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.career-brief, .record-brief { display: grid; gap: .35rem; margin: .75rem 0; padding: 0; list-style: none; }
.career-brief li { display: grid; grid-template-columns: 105px minmax(100px,1fr) minmax(130px,1.25fr) auto; gap: .5rem; align-items: center; padding: .45rem .55rem; border-radius: 8px; background: var(--surface-2); font-size: .67rem; }
.career-brief small { color: var(--muted); }
.career-brief a { white-space: nowrap; }
.record-brief li a { display: grid; grid-template-columns: 90px 1fr; gap: .5rem; padding: .45rem .55rem; border-radius: 8px; background: var(--surface-2); text-decoration: none; font-size: .69rem; }
.inline-links { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .7rem; }
.connection-reasoning { padding-top: .8rem; border-top: 1px solid var(--line); }
.connection-reasoning details { margin-top: .7rem; font-size: .72rem; }
.connection-reasoning summary { cursor: pointer; font-weight: 750; }
.name-comparison { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: .65rem 0 0; font-size: .75rem; }
.name-comparison span { padding: .3rem .5rem; border-radius: 7px; background: var(--surface-2); }
.score-breakdown { display: grid; grid-template-columns: repeat(4,1fr); gap: .35rem; }
.score-breakdown div { padding: .45rem; border-radius: 8px; background: var(--surface-2); }
.score-breakdown dt { color: var(--muted); font-size: .6rem; text-transform: uppercase; }
.score-breakdown dd { margin: 0; font-weight: 800; }
.evidence-chip { display: inline-block; margin: .5rem .25rem 0 0; padding: .2rem .45rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .68rem; text-decoration: none; }
.mention-search-link { display: inline-block !important; margin-top: .2rem; font-size: .65rem !important; color: var(--muted) !important; }
.entity-link-badge { display: inline-flex !important; align-items: center; width: fit-content; margin-left: .35rem; padding: .12rem .34rem; border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); border-radius: 999px; color: var(--brand) !important; background: var(--brand-soft); font: 750 .55rem/1.2 "Manrope", sans-serif !important; vertical-align: middle; }
.person-role-badge { display: inline-flex; align-items: center; width: fit-content; margin-left: .35rem; padding: .12rem .34rem; border-radius: 999px; color: var(--muted); background: var(--surface-2); font: 700 .55rem/1.2 "Manrope", sans-serif; vertical-align: middle; }
.evidence-list .person-role-badge { margin-block: .1rem; }
.person-list .entity-link-badge { margin: .25rem 0 0; }
.confession-browser { max-width: 1120px; }
.confession-hero { max-width: 920px; }
.strict-method-note { display: flex; justify-content: center; gap: .65rem; align-items: baseline; width: fit-content; max-width: 100%; margin: 1rem auto 0; padding: .65rem .8rem; border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line)); border-radius: 10px; background: var(--brand-soft); font-size: .72rem; text-align: center; }
.strict-method-note strong { color: var(--brand); white-space: nowrap; }
.confession-search { display: grid; grid-template-columns: minmax(260px,2fr) minmax(145px,1fr) minmax(130px,.8fr) auto; gap: .75rem; align-items: end; margin: 1rem 0; padding: 1rem; }
.confession-more { grid-column: 1 / -1; padding-top: .5rem; border-top: 1px solid var(--line); }
.confession-more summary { cursor: pointer; font-size: .72rem; font-weight: 800; }
.confession-more > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) auto; gap: .7rem; align-items: end; margin-top: .7rem; }
.confession-result-head { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 .65rem; color: var(--muted); font-size: .72rem; }
.confession-results { display: grid; gap: .85rem; }
.confession-browser-card { padding: 1rem 1.1rem; }
.confession-browser-card > header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .68rem; }
.confession-browser-card > header > div { display: flex; align-items: center; gap: .45rem; }
.confession-identity-pair { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 1rem; align-items: center; margin: .85rem 0; }
.confession-identity-pair > b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--brand); background: var(--brand-soft); }
.confession-identity-pair h2 { margin: .1rem 0 .2rem; font-size: 1.2rem; }
.confession-identity-pair p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .69rem; }
.confession-voc-context p:not(.eyebrow) { margin-top: .28rem; line-height: 1.45; }
.confession-career-brief { margin: .7rem 0; padding-top: .7rem; border-top: 1px solid var(--line); }
.confession-browser-card blockquote { margin: .7rem 0; padding: .75rem .85rem; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: var(--surface-2); font-size: .78rem; line-height: 1.65; }
.confession-source { display: flex; justify-content: space-between; gap: 1rem; margin: .65rem 0; color: var(--muted); font-size: .68rem; }
.confession-source strong { color: var(--ink); }
.confession-actions { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; font-size: .72rem; }
.confession-actions .button { min-height: 34px; padding: .5rem .7rem; }

@keyframes drawer-in { from { opacity: 0; transform: translateX(25px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (max-width: 950px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .method-link { display: none; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-layout, .detail-grid { grid-template-columns: 1fr; }
  .facets-sidebar { position: static; max-height: none; }
  .network-workspace { grid-template-columns: 300px minmax(0, 1fr); }
  .network-workspace.has-evidence { grid-template-columns: 300px minmax(0, 1fr) min(400px, 34vw); }
  .people-directory { padding-top: 70px; }
  .connection-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .voc-research-grid { grid-template-columns: 1fr; }
  .connection-more-filters > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .confession-search { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .confession-more > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .connection-pair { grid-template-columns: 1fr; }
  .connection-arrow { transform: rotate(90deg); margin: auto; }
  .career-brief li { grid-template-columns: 100px 1fr; }
}
@media (max-width: 720px) {
  :root { --header-h: 56px; }
  .header-inner { padding: 0 .7rem; }
  .brand-logo { width: 30px; height: 30px; }
  .brand strong { font-size: .98rem; }
  .brand small { display: block; font-size: .48rem; }
  .header-actions { position: relative; }
  .mobile-nav-toggle { display: grid; align-content: center; justify-items: center; order: -1; }
  .site-nav { position: absolute; z-index: 1100; top: calc(100% + .65rem); right: 0; display: none; width: min(280px, calc(100vw - 1.4rem)); padding: .45rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); box-shadow: var(--shadow-strong); }
  .site-nav.is-open { display: grid; gap: .15rem; animation: filter-reveal .16s var(--ease) both; }
  .site-nav a { display: block !important; padding: .7rem .8rem; border-radius: 9px; font-size: .72rem; line-height: 1.25; text-align: left; }
  .site-nav a:hover, .site-nav a.is-active { background: var(--brand-soft); }
  .site-nav a.is-active::after { top: .55rem; right: auto; bottom: .55rem; left: .28rem; width: 2px; height: auto; }
  .app-main { padding: 1rem .72rem 5rem; }
  .index-search { padding: 1.2rem; }
  .search-copy h1 { font-size: clamp(1.65rem, 8.5vw, 2.5rem); }
  .amsterdam-index-title { white-space: normal; }
  .search-line, .is-compact .search-line { grid-template-columns: 1fr; }
  .search-line > button { width: 100%; }
  .match-field { display: none; }
  .search-underbar { display: block; }
  .search-tools { width: 100%; margin-top: .5rem; }
  .filter-disclosure { flex: 1; }
  .filter-grid, .people-grid { grid-template-columns: 1fr; }
  .collection-options, .collection-options.compact { grid-template-columns: 1fr; }
  .year-filter > header { display: grid; }
  .year-filter > header output { justify-self: start; white-space: normal; }
  .year-scale span { display: none; }
  .year-scale span:first-child, .year-scale span:last-child, .year-scale span.last { display: block; }
  .year-fields { justify-content: stretch; }
  .year-fields > label { flex: 1; grid-template-columns: 1fr; }
  .year-fields input { width: 100%; }
  .map-feature-cta { grid-template-columns: auto 1fr; }
  .map-feature-action { grid-column: 1 / -1; justify-content: center; }
  .results-heading { display: block; }
  .facets-sidebar { display: none; }
  .result-order { margin-top: .7rem; }
  .result { grid-template-columns: 1fr; }
  .thumb { order: -1; height: 175px; }
  .mode-switcher { gap: 0; }
  .visual-mode .mode-switcher { position: fixed; z-index: 900; top: calc(var(--header-h) + 8px); max-width: calc(100vw - 16px); overflow-x: auto; }
  .mode-button { padding-inline: .55rem; }
  .workspace-intro { top: 61px; left: 8px; width: calc(100% - 16px); max-height: min(52%, 430px); padding: .8rem; }
  .mobile-map-intro-toggle { display: flex; align-items: center; gap: .45rem; width: 100%; min-height: 2.2rem; padding: .4rem .55rem; color: var(--brand); background: var(--brand-soft); box-shadow: none; font-size: .68rem; text-align: left; }
  .mobile-map-intro-toggle:hover { box-shadow: none; transform: none; }
  .mobile-map-intro-toggle span { display: grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; color: #fff; background: var(--brand); font-size: .9rem; line-height: 1; }
  .map-intro.is-collapsed { width: auto; max-width: calc(100% - 16px); max-height: none; overflow: visible; padding: .35rem; }
  .map-intro.is-collapsed > :not(.mobile-map-intro-toggle) { display: none !important; }
  #voc-exploration-root .map-intro.is-collapsed { top: 8px; }
  .workspace-title > p:last-child { display: none; }
  .workspace-title h1 { font-size: 1.1rem; }
  .map-key { left: 8px; bottom: 72px; }
  .evidence-drawer { top: auto; bottom: 0; width: 100%; height: min(62%, 540px); border-top: 1px solid var(--line); border-left: 0; border-radius: 18px 18px 0 0; }
  .network-workspace { display: block; }
  .network-workspace.has-evidence { display: block; }
  .people-directory { position: absolute; z-index: 20; top: 55px; left: 8px; width: calc(100% - 16px); height: auto; max-height: 42%; padding: .75rem; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-strong); }
  .people-directory .workspace-title > p:last-child { display: none; }
  .person-results { max-height: 22vh; overflow: auto; }
  .network-stage { width: 100%; height: 100%; }
  .network-welcome { top: 70%; }
  .network-controls { top: 61px; }
  .network-status { bottom: 72px; }
  .network-key { right: 8px; bottom: 8px; left: 8px; justify-content: center; }
  .network-workspace > .evidence-drawer { position: absolute; }
  .person-list, .method-grid { grid-template-columns: 1fr; }
  .method-stats { display: grid; grid-template-columns: 1fr; }
  .method-stats div { padding: .5rem; }
  .method-stats div + div { border-top: 1px solid var(--line); border-left: 0; }
  .detail-hero { display: block; }
  .voc-map { inset: 0 0 44% 0; }
  .voc-map-drawer { inset: auto 0 0; width: 100%; height: 44%; border-top: 1px solid var(--line); border-left: 0; }
  .connection-filters, .connection-more-filters > div, .connection-pair, .score-breakdown, .confession-search, .confession-more > div, .confession-identity-pair { grid-template-columns: 1fr; }
  .confession-identity-pair > b { transform: rotate(90deg); margin: auto; }
  .strict-method-note, .confession-source { display: grid; }
}
@media (max-width: 520px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; }
  .brand { min-width: 0; }
  .brand strong { display: block; font-size: .9rem; white-space: nowrap; }
  .brand small { font-size: .44rem; }
}
@media (max-width: 360px) {
  .brand-logo { display: none; }
}
