/* FLS Research Explorer — light, calm, large type. System fonts only. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  --ink: #14181E;
  --ink-2: #3E4651;
  --ink-3: #5F6874;
  --line: #E4E6EA;
  --line-2: #D3D7DD;
  --bg: #F5F5F2;
  --panel: #FFFFFF;
  --chip: #F2F3F5;
  --accent: #1C2B45;
  --focus: #2563EB;
  --then: #2B5C93;
  --now: #A8501A;
  --then-c: #3A72B0;
  --now-c: #E0782F;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 18px rgba(16, 24, 40, .08);
  --shadow-lg: 0 10px 40px rgba(16, 24, 40, .18);
  --radius: 14px;
  --panel-w: 460px;
  --fs: 17px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); }
body { font: 400 var(--fs)/1.5 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "kern"; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.app { display: grid; grid-template-rows: auto 1fr; height: 100vh; height: 100dvh; }

/* ---------- header */
.top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px) auto; align-items: center; gap: 28px;
  padding: 14px 24px; background: var(--panel); border-bottom: 1px solid var(--line); position: relative; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mark { width: 38px; height: 38px; flex: none; stroke: none; }
.brand-text { min-width: 0; }
.brand h1 { margin: 0; font: 700 24px/1.15 var(--font-display); letter-spacing: -0.015em; }
.tagline { margin: 2px 0 0; color: var(--ink-3); font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 560px; }
.info-btn { display: none; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.badge { font-size: 13px; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; color: #6B4E00; background: #FFF4D1; border: 1px solid #F1DC9A; padding: 4px 10px; border-radius: 999px; }
.btn-quiet { background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 600; color: var(--ink-2); min-height: 44px; }
.btn-quiet:hover { background: var(--chip); }

/* ---------- search */
.search { position: relative; }
.search input {
  width: 100%; height: 52px; padding: 0 48px 0 50px; border-radius: 999px; border: 1.5px solid var(--line-2);
  background: #F7F8F9; font: 500 17px var(--font); color: var(--ink); transition: border-color .15s, background .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: #7A828D; font-weight: 400; }
.search input:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.search-icon { position: absolute; left: 18px; top: 50%; width: 21px; height: 21px; transform: translateY(-50%); color: var(--ink-3); stroke-width: 2.2; pointer-events: none; }
.search-clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; border-radius: 999px; color: var(--ink-3); display: grid; place-items: center; }
.search-clear svg { width: 18px; height: 18px; stroke-width: 2.4; }
.search-clear:hover { background: var(--chip); }
.results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); max-height: min(70vh, 560px); overflow: auto; padding: 6px; z-index: 50;
}
.rg { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px 4px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 9px 12px; min-height: 52px; border-radius: 10px; cursor: pointer; }
.opt.active { background: #EEF2F8; }
.opt .on { display: flex; flex-direction: column; min-width: 0; }
.opt .onm { font-weight: 600; font-size: 17px; line-height: 1.25; }
.opt .osub { font-size: 14px; color: var(--ink-3); line-height: 1.3; }
.empty { padding: 14px 14px; color: var(--ink-2); font-size: 16px; }

.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22); display: inline-block; }
.dot.sm { width: 10px; height: 10px; }
.dot.lg { width: 16px; height: 16px; }
.dot.ring { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink); }

/* ---------- stage */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); min-height: 0; }
.mapwrap { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #FBFBF9 0%, var(--bg) 70%); min-height: 0; }
#map { position: absolute; inset: 0; touch-action: none; cursor: grab; display: block; }
#map.grabbing { cursor: grabbing; }
.labels { position: absolute; inset: 0; pointer-events: none; }

.lbl {
  position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-grid; grid-template-columns: auto auto; align-items: center; gap: 2px 8px;
  white-space: nowrap; padding: 6px 12px 6px 10px; border-radius: 12px; border: 1px solid rgba(20, 24, 30, .1);
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 3px 10px rgba(16, 24, 40, .08);
  font: 650 15.5px/1.2 var(--font); color: var(--ink); text-align: left; white-space: normal; will-change: transform;
  transition: opacity .2s, background .15s, box-shadow .15s;
}
.lbl:hover { background: #fff; box-shadow: 0 2px 4px rgba(16, 24, 40, .1), 0 8px 20px rgba(16, 24, 40, .14); }
.lbl .sw { width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.lbl .t { display: flex; flex-direction: column; }
.lbl .sw { align-self: start; margin-top: .3em; }
.lbl.small { font-size: 14px; padding: 4px 10px 4px 8px; border-radius: 10px; }
.lbl.small .sw { width: 9px; height: 9px; }
.lbl.muted { background: rgba(255, 255, 255, .72); color: var(--ink-3); box-shadow: none; font-weight: 600; }
.lbl.active { background: var(--accent); color: #fff; border-color: var(--accent); font-size: 17px; }
.lbl.active .sw { box-shadow: 0 0 0 2px #fff; }
.lbl .d { grid-column: 2; font-size: 13.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lbl.small .d { font-size: 12.5px; }
.lbl .d .arr { font-size: 10px; margin-right: 4px; vertical-align: 1px; }
.lbl .d.up .arr { color: var(--now-c); } .lbl .d.down .arr { color: var(--then-c); } .lbl .d.flat .arr { color: #9AA1AB; }
.lbl .d.up { color: var(--now); } .lbl .d.down { color: var(--then); }
.lbl .d.small { color: var(--ink-3); font-weight: 500; font-style: italic; }
.lbl .d .now { font-weight: 750; }
.lbl.one { grid-template-columns: auto auto auto; }
.lbl.one .d { grid-column: 3; grid-row: 1; }
.lbl.active .d { color: #E6EAF2; }
.lbl-person { font-size: 14.5px; padding: 4px 10px; border-radius: 999px; }
.lbl-person.focus { font-size: 17px; padding: 6px 14px; background: var(--accent); color: #fff; border-color: var(--accent); pointer-events: none; }

/* toolbar */
.toolbar { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; pointer-events: none; z-index: 5; }
.toolbar > * { pointer-events: auto; }
.seg { display: inline-flex; padding: 4px; gap: 2px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.seg button { border: 0; background: none; min-height: 42px; padding: 0 18px; border-radius: 999px; font-size: 15.5px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: background .15s, color .15s; }
.seg button:hover { background: var(--chip); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.seg .n { font-size: 12.5px; font-weight: 700; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(20, 24, 30, .08); display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.seg button[aria-pressed="true"] .n { background: rgba(255, 255, 255, .2); }
.seg .sm { display: none; }
.back-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 50px; padding: 0 20px 0 14px; border-radius: 999px; border: 0; background: #11151B; color: #fff; font-size: 16px; font-weight: 650; box-shadow: var(--shadow); }
.back-pill svg { width: 20px; height: 20px; stroke-width: 2.6; }
.back-pill:hover { background: #2A313B; }

/* zoom */
.zoom { position: absolute; right: 16px; bottom: 16px; display: flex; flex-direction: column; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; z-index: 5; }
.zoom button { width: 46px; height: 46px; border: 0; background: none; display: grid; place-items: center; color: var(--ink-2); }
.zoom button + button { border-top: 1px solid var(--line); }
.zoom button:hover { background: var(--chip); }
.zoom svg { width: 20px; height: 20px; }
#toggle-people[aria-pressed="true"] { color: var(--focus); background: #EEF3FD; }

.key { margin-left: auto; display: flex; gap: 16px; align-items: center; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow); z-index: 4; }
.key-item { display: inline-flex; align-items: center; gap: 7px; }
.key-dot { width: 7px; height: 7px; border-radius: 50%; background: #7C8794; }
.key-ring { width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.8px #20252D; }

/* timebar */
.timebar {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(760px, calc(100% - 120px));
  background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 9px 16px 10px; z-index: 6; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.tb-legend { display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; font-size: 14px; color: var(--ink-2); margin-bottom: 4px; flex-wrap: wrap; }
.tb-cap { font-weight: 650; color: var(--ink); }
.tb-scale { display: inline-flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--ink-2); }
.tb-k { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.kd { display: inline-block; width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); flex: none; }
.kd.up { background: var(--now-c); } .kd.down { background: var(--then-c); } .kd.flat { background: #BFC4CB; }
.kd.up.light { background: #EEB58D; } .kd.down.light { background: #93B1D4; }
.tb-light, .lk-light { gap: 3px !important; color: var(--ink-3); }
.tb-light .kd + .kd, .lk-light .kd + .kd { margin-right: 4px; }
.tb-yr-note { display: none; font-size: 13.5px; color: var(--ink-3); }
.timebar.year-mode .tb-scale { display: none; } .timebar.year-mode .tb-yr-note { display: inline; }
.tb-row { display: flex; align-items: center; gap: 10px; }
.tb-btn { min-height: 44px; min-width: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 15px; font-weight: 650; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; color: var(--ink); white-space: nowrap; }
.tb-btn:hover { border-color: var(--accent); }
.tb-play svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.tb-play .i-pause, .tb-play[aria-pressed="true"] .i-play { display: none; }
.tb-play[aria-pressed="true"] .i-pause { display: block; }
.tb-play[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.tb-compare[aria-pressed="true"] { background: #11151B; color: #fff; border-color: #11151B; }
.tb-slider { flex: 1; position: relative; padding: 17px 0 18px; min-width: 0; }
/* custom range: an 18 px thumb, so a year's tick sits at 9px + (100% - 18px) × fraction (see app.js THUMB) */
.tb-slider input { -webkit-appearance: none; appearance: none; position: relative; z-index: 1; display: block; width: 100%; margin: 0; height: 22px; background: transparent; cursor: pointer; }
.tb-slider input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: #C3C8CF; }
.tb-slider input::-moz-range-track { height: 4px; border-radius: 2px; background: #C3C8CF; }
.tb-slider input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .35); }
.tb-slider input::-moz-range-thumb { width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .35); }
.tb-slider input:focus-visible { outline: none; }
.tb-slider input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--focus); }
/* the two compared periods: flat shaded spans behind the track, labelled above; not draggable */
.tb-win { position: absolute; left: 0; right: 0; top: 0; height: 40px; pointer-events: none; display: none; }
.tb-band { position: absolute; top: 22px; height: 12px; border-radius: 3px; background: rgba(95, 104, 116, .2); }
.tb-band-l { position: absolute; top: -2px; transform: translateX(-50%); font-size: 14px; line-height: 17px; font-weight: 650; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.timebar:not(.year-mode) .tb-win { display: block; }
.tb-slider input.idle { cursor: pointer; }
.tb-slider input.idle::-webkit-slider-thumb { opacity: 0; }
.tb-slider input.idle::-moz-range-thumb { opacity: 0; }
/* a tick for every year just under the track; labels only at a few evenly spaced years, centred on their ticks */
.tb-ticks { position: absolute; left: 0; right: 0; top: 32px; height: 22px; color: var(--ink-3); font-variant-numeric: tabular-nums; pointer-events: none; }
.tb-ticks .tk { position: absolute; top: 0; width: 1px; height: 5px; margin-left: -0.5px; background: #8E96A1; }
.tb-ticks .tl { position: absolute; top: 6px; transform: translateX(-50%); font-size: 14px; line-height: 16px; }
.tb-note { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); }
.tb-out { width: 92px; flex: none; text-align: right; font-weight: 700; font-size: 17px; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tb-out small { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }

.tooltip { position: absolute; left: 0; top: 0; max-width: 340px; background: #11151B; color: #fff; border-radius: 12px; padding: 10px 14px; pointer-events: none; z-index: 30; box-shadow: var(--shadow-lg); }
.tt-title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.tt-meta { font-size: 13.5px; color: #C7CDD6; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.tt-sw { width: 9px; height: 9px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.tt-hint { font-size: 13px; color: #9FB4D9; margin-top: 4px; }
.tt-pis { font-size: 13.5px; color: #fff; margin-top: 6px; line-height: 1.4; }
.tt-pis .pis-k { color: #C7CDD6; }
.tt-pis .pi-name { font-weight: 600; }
/* pinned paper card on touch (same content as the tooltip; names are buttons) */
.papercard { position: absolute; left: 16px; top: 72px; width: min(400px, calc(100% - 32px)); background: #11151B; color: #fff; border-radius: 14px; padding: 12px 52px 12px 16px; z-index: 31; box-shadow: var(--shadow-lg); }
.papercard[hidden] { display: none; }
.papercard .tt-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.papercard .tt-pis { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 8px; }
.papercard .pis-k { width: 100%; }
.pc-close { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: 0; background: none; color: #C7CDD6; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.pc-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.pi-chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.pi-chip:hover, .pi-chip:focus-visible { background: rgba(255, 255, 255, .2); }
/* lead-author line under example papers */
.pis { font-size: 14.5px; color: var(--ink-2, #4A525E); margin-top: 3px; line-height: 1.5; }
.pis .pi-name { color: var(--ink); font-weight: 600; }
.pi-link { display: inline; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--focus); text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .25); text-underline-offset: 2px; cursor: pointer; }
.pi-link:hover { text-decoration-color: currentColor; }
.map-status { position: absolute; inset: auto 0 45% 0; text-align: center; color: var(--ink-2); font-size: 17px; }

/* ---------- panel */
.panel { background: var(--panel); border-left: 1px solid var(--line); min-height: 0; display: flex; flex-direction: column; position: relative; z-index: 10; }
.grip { display: none; }
.panel-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 26px 28px 28px; }
.ph h2 { margin: 2px 0 8px; font: 700 28px/1.18 var(--font-display); letter-spacing: -0.015em; }
.ph h2.with-dot { display: flex; align-items: flex-start; gap: 12px; }
.ph h2.with-dot .dot { margin-top: 9px; }
.kicker { margin: 0; font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.kicker .linkish { text-transform: none; letter-spacing: 0; font-size: 15px; }
.lede { margin: 0 0 8px; color: var(--ink-2); font-size: 17px; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -8px 0 10px -10px; padding: 0 14px 0 6px; border-radius: 999px; border: 0; background: none; font-size: 16px; font-weight: 650; color: var(--focus); }
.back svg { width: 20px; height: 20px; stroke-width: 2.6; }
.back:hover { background: #EEF3FD; }
.linkish { background: none; border: 0; padding: 0; color: var(--focus); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.linkish.small { font-size: 15px; margin-top: 10px; min-height: 44px; }

.list-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin: 18px 4px 6px; }
.alist { list-style: none; margin: 0; padding: 0; }
.alist li + li { border-top: 1px solid var(--line); }
.arow { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 6px; border: 0; background: none; text-align: left; border-radius: 10px; min-height: 60px; }
.arow:hover { background: #F6F7F9; }
.arow .an { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.arow .nm { font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.arow .mt { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.arow .asp { flex: none; }
.arow.child { padding-left: 22px; }
.arow.child .nm { font-weight: 550; }
.grp { border-top: 0 !important; padding-top: 14px; }
.grp-btn { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 6px 6px; font-size: 15px; font-weight: 750; color: var(--ink-3); min-height: 44px; text-align: left; }
.grp-btn:hover { color: var(--focus); }
.spark { display: block; overflow: visible; }
.spark rect, .spark circle, .bigchart rect, .slope rect, .slope circle, .slope text { stroke: none; }

.sec { margin-top: 26px; }
.sec h3 { margin: 0 0 4px; font-size: 14px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.sec h4 { margin: 14px 0 8px; font-size: 15px; font-weight: 650; color: var(--ink-2); }
.sec .sub { margin: 0 0 12px; color: var(--ink-3); font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.stats.two { grid-template-columns: repeat(2, 1fr); }
.stat { background: #F6F7F9; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.stat b { font: 700 24px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13.5px; color: var(--ink-3); line-height: 1.25; margin-top: 4px; }
.chartbox { position: relative; margin-top: 12px; padding-left: 0; }
.bigchart { width: 100%; height: 150px; display: block; }
.ch-y { position: absolute; left: 4px; font-size: 13px; color: var(--ink-3); background: rgba(255, 255, 255, .85); padding: 0 4px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.ch-y.top { top: -2px; } .ch-y.zero { top: 128px; }
.ch-x { position: relative; height: 20px; font-size: 13.5px; color: var(--ink-3); margin-top: 6px; font-variant-numeric: tabular-nums; }
.ch-x span { position: absolute; transform: translateX(-50%); }
.ch-x span:first-child { transform: none; } .ch-x span:last-child { transform: translateX(-100%); }
.trendline { margin: 10px 0 0; font-size: 16.5px; color: var(--ink-2); }
.trend { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trend .arr { font-size: 11px; margin-right: 5px; vertical-align: 2px; }
.trend.up .arr, .tl-word.up { color: var(--now); }
.trend.down .arr, .tl-word.down { color: var(--then); }
.trend.flat .arr { color: #9AA1AB; }
.trend.small { color: var(--ink-2); font-weight: 600; }
.tl-word.flat, .tl-word.small { color: var(--ink-2); }
.tl-word { font-weight: 700; }
.ink-then { color: var(--then); font-weight: 650; white-space: nowrap; }
.ink-now { color: var(--now); font-weight: 650; white-space: nowrap; }
.note { font-size: 14px; color: var(--ink-3); margin: 8px 0 0; }
.terms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.term { font-size: 14.5px; padding: 4px 10px; border-radius: 8px; background: #F2F3F5; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 15.5px; font-weight: 550; }
.chip:hover { border-color: var(--accent); background: #F6F8FC; }
.chip .dot { width: 10px; height: 10px; }
.chip.more { color: var(--focus); border-style: dashed; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bar { width: 100%; border: 0; background: none; padding: 8px 6px; border-radius: 10px; text-align: left; display: block; min-height: 52px; }
.bar:hover { background: #F6F7F9; }
.bl { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.bv { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.track { display: block; height: 12px; background: #EDEFF2; border-radius: 6px; overflow: hidden; }
.fill { display: block; height: 100%; border-radius: 6px; }
.toplist { margin: 8px 0 0; padding: 0 0 0 26px; columns: 2; column-gap: 24px; font-size: 15px; line-height: 1.5; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.toplist li { break-inside: avoid; padding: 2px 0; }
.toplist .pi-link { font-weight: 550; }
@media (max-width: 420px) { .toplist { columns: 1; } }
.papers { list-style: none; margin: 10px 0 0; padding: 0; }
.papers li { padding: 12px 0; border-top: 1px solid var(--line); }
.papers li:first-child { border-top: 0; padding-top: 4px; }
.papers a, .papers .pt { color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.35; text-decoration: none; }
.papers a:hover { color: var(--focus); text-decoration: underline; }
.papers a::after { content: " ↗"; color: var(--ink-3); font-weight: 400; }
.pm { font-size: 14px; color: var(--ink-3); margin-top: 3px; }
.disc-inline { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-3); font-style: italic; }

.tgroup h3 .cnt { font-size: 12.5px; background: #EDEFF2; color: var(--ink-2); padding: 1px 8px; border-radius: 999px; letter-spacing: 0; }
.tgroup.up h3 { color: var(--now); } .tgroup.down h3 { color: var(--then); } .tgroup.small h3 { color: var(--ink-3); }
.tlist { list-style: none; margin: 6px 0 0; padding: 0; }
.tlist li + li { border-top: 1px solid var(--line); }
.trow { width: 100%; display: grid; grid-template-columns: 12px minmax(0, 1fr) 92px 112px; align-items: center; gap: 12px; padding: 10px 6px; border: 0; background: none; text-align: left; border-radius: 10px; min-height: 58px; }
.trow:hover { background: #F6F7F9; }
.trow .nm { font-weight: 600; font-size: 16px; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.tv { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.nospark { display: block; width: 84px; text-align: center; color: var(--ink-3); }
.tv .trend { font-size: 15.5px; }
.tv .pts { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.pf { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-3); }
.pf p { margin: 0 0 6px; }
.pf .disc { color: var(--ink-2); font-weight: 600; }
.pf .linkish { font-size: 14.5px; min-height: 44px; display: inline-flex; align-items: center; }

/* about dialog */
.about { border: 0; border-radius: 20px; padding: 0; max-width: 620px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); color: var(--ink); }
.about::backdrop { background: rgba(17, 21, 27, .45); }
.about-inner { padding: 28px 30px 24px; position: relative; max-height: 85vh; overflow: auto; }
.about h2 { margin: 0 0 12px; font: 700 26px/1.2 var(--font-display); }
.about h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 20px 0 6px; }
.about p, .about li { font-size: 16.5px; color: var(--ink-2); }
.about .muted { color: var(--ink-3); font-size: 15px; }
.about .disc { font-weight: 650; color: var(--ink); }
.about-close { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--chip); display: grid; place-items: center; }
.about-close svg { width: 18px; height: 18px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #11151B; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; z-index: 100; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }
.noscript { padding: 24px; font-size: 18px; }

/* ---------- additions (round 2) */
.m-only { display: none; }
.gloss { margin: 12px 0 0; padding: 12px 14px; background: #F6F7F9; border-radius: 12px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.gloss div { margin: 0; }
.gloss dt { display: inline; font-weight: 700; color: var(--ink); }
.gloss dt::after { content: ": "; }
.gloss dd { display: inline; margin: 0; }
.lkeys { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 6px; font-size: 14.5px; color: var(--ink-2); }
.lkeys > span { display: inline-flex; align-items: center; gap: 7px; }
.note.total { margin-top: 6px; }
.level-h { margin: 26px 0 0; font-size: 14px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.slope-sec { margin-top: 20px; }
.slope-wrap { margin-top: 8px; }
.slope { display: block; max-width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.slope .sl-h { font-size: 12.5px; font-weight: 700; fill: var(--ink-3); letter-spacing: .02em; }
.slope .sl-axis { stroke: #E1E4E8; stroke-width: 1; }
.slope .sl-v { font-size: 13.5px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.slope .sl-v.clear { font-weight: 700; } .slope .sl-v.up { fill: var(--now); } .slope .sl-v.down { fill: var(--then); }
.slope .sl-n { font-size: 13.5px; fill: var(--ink-2); }
.slope .sl-n.clear { fill: var(--ink); font-weight: 650; }
.slope .sl-row { cursor: pointer; }
.slope .sl-row:hover .sl-n { fill: var(--focus); text-decoration: underline; }
.slope .sl-row:hover line:first-child { stroke-width: 3.6; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel.swap .pv { animation: panelIn .35s ease both; }
@media (prefers-reduced-motion: reduce) { .panel.swap .pv, .present-card.in { animation: none !important; } }

/* presenter mode (#present) */
.present-card, .present-nav { position: absolute; z-index: 8; }
.present-card {
  top: 22px; left: 26px; max-width: min(620px, calc(100% - 52px)); padding: 18px 24px 18px; border-radius: 20px;
  background: rgba(255, 255, 255, .95); border: 1px solid var(--line); box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.present-card.in { animation: panelIn .4s ease both; }
.pc-kicker { margin: 0; font-size: 15px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.pc-title { margin: 2px 0 6px; font: 750 34px/1.12 var(--font-display); letter-spacing: -0.02em; }
.pc-text { margin: 0; font-size: 20px; line-height: 1.4; color: var(--ink-2); }
.pc-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; font-size: 17px; color: var(--ink-2); }
.pc-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.pc-legend .kd { width: 14px; height: 14px; }
.present-nav { right: 22px; bottom: 22px; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .95); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.present-nav button { width: 48px; height: 48px; border-radius: 999px; border: 0; background: var(--chip); display: grid; place-items: center; color: var(--ink); }
.present-nav button:disabled { opacity: .35; cursor: default; }
.present-nav button svg { width: 22px; height: 22px; stroke-width: 2.6; }
.present-nav .pc-exit { width: auto; padding: 0 18px; font-size: 15px; font-weight: 650; }
#pc-count { min-width: 56px; text-align: center; }
.present .app { grid-template-rows: 1fr; }
.present .top, .present .panel, .present .toolbar, .present .zoom, .present .timebar { display: none !important; }
.present .stage { grid-template-columns: minmax(0, 1fr); }
.present .lbl { font-size: 20px; padding: 7px 14px 7px 12px; border-radius: 14px; }
.present .lbl .sw { width: 13px; height: 13px; }
.present .lbl.small { font-size: 16.5px; padding: 5px 11px 5px 9px; }
.present .lbl .d { font-size: 17px; }
.present .lbl.small .d { font-size: 15px; }
.present .lbl.active { font-size: 22px; }

/* ---------- short desktop windows (e.g. 1280×720 projector) */
@media (max-height: 780px) and (min-width: 761px) {
  .top { padding-top: 10px; padding-bottom: 10px; }
  .tagline { display: none; }
  .m-only { display: block; }
  .brand h1 { font-size: 22px; }
  .search input { height: 48px; }
  .toolbar { top: 12px; }
  .seg button { min-height: 40px; }
  .timebar { bottom: 10px; padding: 7px 14px 8px; }
  .panel-body { padding-top: 20px; }
}

/* ---------- medium screens */
@media (max-width: 1180px) {
  :root { --panel-w: 400px; }
  .top { grid-template-columns: minmax(0, 1fr) minmax(280px, 420px) auto; gap: 18px; }
  .tagline { display: none; }
  .seg .lg { display: none; } .seg .sm { display: inline; }
  .timebar { width: calc(100% - 96px); left: 16px; transform: none; }
  .tb-play #tb-play-t { display: none; }
  .trow { grid-template-columns: 12px minmax(0, 1fr) 84px 104px; gap: 10px; }
}
@media (min-width: 1181px) and (max-width: 1360px) {
  .timebar { width: calc(100% - 96px); left: 16px; transform: none; }
}

/* ---------- phones */
@media (max-width: 760px) {
  :root { --fs: 16.5px; }
  .m-only { display: block; }
  .top { grid-template-columns: 1fr; gap: 8px; padding: 8px 14px 10px; padding-top: max(8px, env(safe-area-inset-top)); }
  .mark { width: 28px; height: 28px; }
  .brand h1 { font-size: 19px; }
  .tagline { display: none; }
  .info-btn { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font: 700 italic 18px Georgia, serif; color: var(--ink-2); }
  .brand { min-height: 44px; }
  .top-actions { display: none; }
  .search input { height: 48px; font-size: 17px; }
  .results { position: fixed; left: 10px; right: 10px; top: auto; max-height: 62vh; }
  .stage { display: block; position: relative; }
  .mapwrap { position: absolute; inset: 0; }
  .toolbar { top: 10px; left: 10px; right: 10px; gap: 8px; }
  .seg { padding: 3px; }
  .seg button { min-height: 44px; padding: 0 13px; font-size: 15px; }
  .seg .lg { display: none; } .seg .sm { display: inline; }
  .seg .n { display: none; }
  .back-pill { min-height: 46px; font-size: 15.5px; }
  .zoom { right: 10px; bottom: 144px; border-radius: 12px; }
  .zoom button { width: 44px; height: 44px; }
  .zoom [data-zoom="in"], .zoom [data-zoom="out"] { display: none; }
  .key { display: none; }
  .is-time .zoom { display: none; }
  .sheet-full .toolbar { visibility: hidden; }
  .lbl { font-size: 13.5px; padding: 4px 9px 4px 8px; border-radius: 10px; gap: 1px 6px; }
  .lbl .sw { width: 9px; height: 9px; }
  .lbl.small { font-size: 12.5px; padding: 3px 8px 3px 7px; }
  .lbl.one { font-size: 12.5px; padding: 3px 8px 3px 7px; gap: 0 5px; }
  .lbl.one .sw { align-self: center; margin-top: 0; }
  .lbl .d { font-size: 12px; }
  .lbl.active { font-size: 15px; }
  .lbl-person.focus { font-size: 15px; }
  .timebar { left: 10px; right: 10px; width: auto; transform: none; bottom: 140px; padding: 7px 10px 8px; border-radius: 16px; }
  .tb-legend { justify-content: center; margin-bottom: 2px; }
  .tb-cap { display: none; }
  .tb-scale { gap: 2px 10px; font-size: 12.5px; flex-wrap: wrap; justify-content: center; }
  .tb-yr-note { font-size: 13px; }
  .timebar.year-mode .tb-cap { display: inline; font-size: 13.5px; }
  .timebar.year-mode .tb-yr-note { display: none; }
  .tb-row { gap: 6px; }
  .tb-compare { padding: 0 10px; font-size: 14px; }
  .tb-play { padding: 0; width: 44px; justify-content: center; }
  .tb-play #tb-play-t { display: none; }
  .tb-out { display: none; }

  .panel {
    position: fixed; left: 0; right: 0; bottom: 0; height: calc(100dvh - 150px); max-height: calc(100vh - 150px);
    border-left: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -6px 30px rgba(16, 24, 40, .18); z-index: 15;
    transition: transform .32s cubic-bezier(.2, .8, .2, 1); will-change: transform;
  }
  .panel.dragging { transition: none; }
  .grip { display: grid; place-items: center; width: 100%; height: 44px; border: 0; background: none; touch-action: none; flex: none; padding: 0; }
  .grip span { width: 44px; height: 5px; border-radius: 3px; background: #C9CED5; }
  .panel-body { padding: 0 18px 28px; flex: none; margin-top: -10px; }
  .panel[data-kind="map"] .kicker, .panel[data-kind="time"] .ph .kicker { display: none; }
  .ph h2 { font-size: 22px; margin-bottom: 4px; }
  .ph h2.with-dot .dot { margin-top: 7px; }
  .lede { font-size: 16px; }
  .lede.m-only { color: var(--ink-2); margin-bottom: 10px; }
  .back { margin: -6px 0 4px -10px; }
  .stats { gap: 8px; } .stat { padding: 10px; } .stat b { font-size: 21px; }
  .trow { grid-template-columns: 12px minmax(0, 1fr) 96px; grid-template-rows: auto auto; row-gap: 4px; }
  .trow .tsp { grid-column: 2; grid-row: 2; }
  .trow .tv { grid-column: 3; grid-row: 1 / span 2; }
  .about-inner { padding: 22px 20px 18px; }
  .present-card { top: 10px; left: 10px; right: 10px; max-width: none; padding: 12px 16px; }
  .pc-title { font-size: 23px; } .pc-text { font-size: 16px; } .pc-legend { font-size: 14px; } .pc-kicker { font-size: 12.5px; }
  .present-nav { right: 10px; bottom: 14px; }
  .present .lbl { font-size: 14.5px; padding: 4px 9px; }
  .present .lbl.small { font-size: 13px; }
  .present .lbl .d { font-size: 13px; }
}

/* ---------- round 3: lead-author names on touch screens (44 px targets without loosening the list) */
@media (max-width: 760px) {
  .papercard { left: 10px; width: calc(100% - 20px); }
  .pi-link { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; vertical-align: middle; }
}

/* ---------- round 4 (02-12-2026): period pill, area descriptions, data-driven trends */
.title-row { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.period { font-size: 13.5px; font-weight: 650; color: var(--ink-2); background: var(--chip); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; white-space: nowrap; cursor: help; font-variant-numeric: tabular-nums; }
.tooltip.area-tip { max-width: 360px; }
.tt-kind { margin: 0 0 3px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.tt-desc { font-size: 14.5px; line-height: 1.42; color: #E6EAF0; margin-top: 4px; }
.tt-trend { font-size: 14px; font-weight: 650; margin-top: 7px; color: #fff; }
.tt-ci { font-size: 13.5px; margin-top: 2px; color: #C7CDD6; }
.area-desc { margin: 14px 0 0; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
.ph h2.h2-long { font-size: 23px; line-height: 1.22; }
.lbl .d .rate { font-weight: 600; }
.lbl .d.gd .arr, .trend.gd .arr { opacity: .55; }
.lbl .d.flat .rate { color: var(--ink-3); font-weight: 500; }
.tl-word.gd { font-weight: 700; }
.tl-sub { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.slope .sl-v.gd { opacity: .8; }
.about .small-print { font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }
@media (max-width: 760px) {
  .period { font-size: 12px; padding: 1px 8px; }
  .tb-light { font-size: 12.5px; }
  .tb-note { text-align: center; }
  .area-desc { font-size: 15.5px; }
  .ph h2.h2-long { font-size: 20px; }
}
.lbl .d { white-space: nowrap; }
.tv .pts .grp-tag { display: block; }

/* ---------- 02-12-2026 (pm): top people near the top of the area panel; the paper view */
.top-sec { margin-top: 18px; padding: 12px 14px 12px; background: #F6F7F9; border-radius: 12px; }
.top-sec h3 { text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--ink); }
.top-sec .toplist { margin-top: 6px; color: var(--ink-2); }
.papers .pt-btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.35; cursor: pointer; }
.papers .pt-btn:hover { color: var(--focus); text-decoration: underline; }
.ph h2.paper-title { font-size: 23px; line-height: 1.25; }
.paper-meta { margin: 0; font-size: 16px; color: var(--ink-2); }
.pp-facts { margin: 18px 0 0; display: grid; gap: 12px; }
.pp-facts > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 12px; align-items: baseline; }
.pp-facts dt { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.pp-facts dd { margin: 0; font-size: 16px; color: var(--ink); }
.pp-facts .muted { color: var(--ink-3); font-size: 15px; }
.pp-area { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.pp-area:hover { color: var(--focus); text-decoration: underline; }
.pp-open { margin: 22px 0 0; }
.btn-open { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: #11151B; color: #fff; font-weight: 650; font-size: 16px; text-decoration: none; }
.btn-open::after { content: "↗"; font-weight: 400; }
.btn-open:hover { background: #2A313B; }
@media (max-width: 420px) { .pp-facts > div { grid-template-columns: 1fr; } }

/* =====================================================================================================
   v2 (03-12-2026): collaboration and industry views, highlight lens, and a restyle in the spirit of the
   UCL CHI Atlas (teal accent, monospace small-caps labels, white cards, legend strip). System fonts only.
   ===================================================================================================== */
:root {
  --accent: #0E4F56;
  --accent-2: #0F7A84;
  --accent-soft: #E6F2F2;
  --focus: #0F7A84;
  --bg: #F2F4F3;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
.mapwrap { background: radial-gradient(ellipse at 50% 42%, #FBFCFB 0%, var(--bg) 72%); }
.back:hover { background: var(--accent-soft); }
.chip:hover { border-color: var(--accent-2); background: #F3F9F9; }

/* header: views as tabs under the title row */
.top { row-gap: 8px; padding-bottom: 0; }
.tabs { grid-column: 1 / -1; display: flex; gap: 2px; margin: 0 -10px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; flex: none; border: 0; background: none; padding: 9px 14px 13px; font: 600 15.5px/1.2 var(--font); color: var(--ink-3); white-space: nowrap; border-radius: 8px 8px 0 0; transition: color .15s, background .15s; }
.tabs button:hover { color: var(--ink); background: #F3F5F5; }
.tabs button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; transition: background .15s; }
.tabs button[aria-pressed="true"] { color: var(--accent); }
.tabs button[aria-pressed="true"]::after { background: var(--accent-2); }
.tabs .sm { display: none; }
.badge { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; }

/* monospace small-caps labels */
.kicker { font: 600 12px/1.4 var(--mono); letter-spacing: .11em; color: var(--accent-2); }
.kicker .linkish { font-family: var(--font); font-size: 14.5px; letter-spacing: 0; }
.sec { margin-top: 28px; }
.sec h3 { font: 600 12px/1.4 var(--mono); letter-spacing: .11em; color: var(--ink-3); padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.sec .sub { font-size: 14.5px; line-height: 1.45; }
.sec h4 { font: 600 11.5px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 6px; }
.list-head { font: 600 11.5px/1.4 var(--mono); letter-spacing: .1em; }
.top-sec h3 { border-bottom: 0; padding-bottom: 0; margin-bottom: 4px; font: 650 16px/1.3 var(--font); letter-spacing: 0; color: var(--ink); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.stat b { font-size: 27px; letter-spacing: -0.02em; color: var(--ink); }
.stat span { font-size: 13px; }
.gloss { background: #F5F7F7; }
.top-sec { background: #F5F7F7; }

/* the highlight lens (toolbar) */
.lens { position: relative; display: inline-flex; align-items: center; gap: 2px; height: 52px; padding: 0 6px 0 16px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lens-k { font: 600 11px/1 var(--mono); letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); margin-right: 2px; }
.lens-box { position: relative; display: inline-flex; align-items: center; }
.lens select { -webkit-appearance: none; appearance: none; border: 0; background: transparent; font: 600 15.5px var(--font); color: var(--ink); height: 42px; padding: 0 32px 0 10px; border-radius: 999px; cursor: pointer; max-width: 250px; }
.lens select:hover { background: var(--chip); }
.lens-chev { position: absolute; right: 9px; width: 16px; height: 16px; pointer-events: none; color: var(--ink-3); stroke-width: 2.4; }
.lens.on { border-color: var(--accent-2); background: #F1F8F8; box-shadow: 0 0 0 1px var(--accent-2), var(--shadow); }
.lens.on .lens-k, .lens.on select { color: var(--accent); }
.lens-x { width: 38px; height: 38px; border-radius: 999px; border: 0; background: none; display: grid; place-items: center; color: var(--ink-3); }
.lens-x:hover { background: var(--accent-soft); color: var(--accent); }
.lens-x svg { width: 16px; height: 16px; stroke-width: 2.4; }

/* legend strip */
.legendbar { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 96px); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 9px 16px; background: rgba(255, 255, 255, .95); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); font-size: 13.5px; line-height: 1.3; color: var(--ink-2); z-index: 4; }
.lg-h { font: 600 11px/1 var(--mono); letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); }
.lg-i { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; background: #7C8794; flex: none; }
.lg-dot.ring { width: 11px; height: 11px; background: #fff; box-shadow: 0 0 0 1.8px #20252D; }
.lg-dot.sp { background: #fff; outline: 1.6px dashed var(--accent-2); outline-offset: 1px; }
.lg-dot.emph { width: 11px; height: 11px; background: #6B7480 !important; box-shadow: 0 0 0 2px #fff, 0 0 0 3.2px #1B2028; }
.lg-line { width: 22px; height: 0; border-top: 2.6px solid #56606C; flex: none; border-radius: 2px; }
.lg-line.cross { border-color: var(--accent-2); }
.lg-line.dash { border-top: 2px dashed rgba(27, 32, 40, .6); }
.lg-line.area { border: 0; height: 3px; background: linear-gradient(90deg, #CC3311 0 33%, #332288 33% 66%, #009E73 66%); }
.lg-wd { display: inline-flex; align-items: center; gap: 3px; }
.lg-wd .lg-line { width: 12px; border-color: #56606C; }
.lg-line.w1 { border-top-width: 1.4px; } .lg-line.w2 { border-top-width: 2.6px; } .lg-line.w3 { border-top-width: 4.2px; }
.lg-multi { display: inline-flex; gap: 2px; } .lg-multi .lg-dot { width: 8px; height: 8px; }
.lg-pie { width: 16px; height: 16px; flex: none; stroke: #fff; stroke-width: .8; }

/* map labels: CHI-style upper-case broad areas */
.lbl-area:not(.small) .t { text-transform: uppercase; letter-spacing: .035em; font-size: 13.5px; font-weight: 700; }
.lbl-area.active:not(.small) .t { font-size: 14.5px; }
.lbl-person.co { border-color: #56606C; box-shadow: 0 0 0 1px #56606C inset, 0 2px 8px rgba(16, 24, 40, .1); }
.lbl-person.co.x { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2) inset, 0 2px 8px rgba(16, 24, 40, .1); color: var(--accent); }
.tt-co { font-size: 13.5px; margin-top: 6px; color: #9FD3D7; font-weight: 600; }

/* panels: big number callout, ranked bars with intervals */
.callout { margin: 18px 0 6px; padding: 16px 18px 16px 18px; border-left: 4px solid var(--accent-2); background: var(--accent-soft); border-radius: 4px 14px 14px 4px; }
.big-row { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.big { font: 750 46px/1 var(--font-display); letter-spacing: -0.035em; color: var(--accent); font-variant-numeric: tabular-nums; }
.big-l { font-size: 16px; font-weight: 600; color: var(--ink-2); line-height: 1.3; flex: 1; min-width: 150px; }
.big-s { margin-top: 8px; font: 500 12px/1.45 var(--mono); color: var(--ink-3); letter-spacing: .01em; }
.big-tn { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(14, 79, 86, .14); display: flex; align-items: baseline; gap: 12px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.big-tn i { font: 600 11px/1 var(--mono); font-style: normal; color: var(--ink-3); margin-right: 7px; letter-spacing: .06em; }
.tn-arr { color: var(--ink-3); font-weight: 400; }
.lb-key { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin: 0 0 6px; font: 500 11.5px var(--mono); color: var(--ink-3); }
.lk-avg { display: inline-block; width: 2px; height: 12px; background: var(--ink); border-radius: 1px; margin-right: -8px; }
.lk-ci { display: inline-block; width: 18px; height: 2px; background: rgba(20, 24, 30, .55); position: relative; margin-right: -8px; }
.lk-ci::before, .lk-ci::after { content: ""; position: absolute; top: -3px; width: 1.5px; height: 8px; background: rgba(20, 24, 30, .55); }
.lk-ci::before { left: 0; } .lk-ci::after { right: 0; }
.lbars { list-style: none; margin: 4px 0 4px; padding: 0; display: grid; gap: 0; }
.lb-row { width: calc(100% + 16px); margin: 0 -8px; padding: 8px 8px 10px; border: 0; background: none; text-align: left; border-radius: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n v" "t k"; gap: 6px 14px; align-items: center; }
.lb-row:hover { background: #F4F7F7; }
.lb-row.hl { background: var(--accent-soft); }
.lb-n { grid-area: n; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; line-height: 1.3; min-width: 0; }
.lb-v { grid-area: v; font-weight: 750; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.lb-k { grid-area: k; font: 500 11.5px var(--mono); color: var(--ink-3); min-width: 78px; text-align: right; white-space: nowrap; }
.lb-track { grid-area: t; position: relative; height: 9px; border-radius: 5px; background: #ECEFF0; }
.lb-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; opacity: .92; }
.lb-ci { position: absolute; top: 3.5px; height: 2px; background: rgba(17, 21, 27, .62); }
.lb-ci::before, .lb-ci::after { content: ""; position: absolute; top: -4px; width: 1.5px; height: 10px; background: rgba(17, 21, 27, .62); }
.lb-ci::before { left: 0; } .lb-ci::after { right: -1px; }
.lb-avg { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }

/* area panel: collaboration and methods rows */
.mlist { list-style: none; margin: 0 0 4px; padding: 0; }
.ml-row { width: calc(100% + 16px); margin: 0 -8px; padding: 8px; border: 0; background: none; border-radius: 10px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(54px, 1fr) 54px 72px; gap: 12px; align-items: center; text-align: left; }
.ml-row:hover { background: #F4F7F7; }
.ml-row.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent-2); }
.ml-n { font-size: 15px; font-weight: 600; line-height: 1.25; }
.ml-bar { position: relative; height: 8px; border-radius: 4px; background: #ECEFF0; }
.ml-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--accent-2); }
.ml-avg { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.ml-v { font-weight: 750; font-variant-numeric: tabular-nums; text-align: right; font-size: 15px; }
.ml-avgv { font: 500 11.5px var(--mono); color: var(--ink-3); white-space: nowrap; }

/* companies: initial badges and chips */
.cobadge { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; color: #fff; font: 750 11px/1 var(--font); letter-spacing: -.01em; }
.cobadge.three { font-size: 9px; }
.cobadge.sp { outline: 1.6px dashed var(--accent-2); outline-offset: 2px; }
.cobadge.lg { width: 44px; height: 44px; font-size: 15px; }
.cobadge.lg.three { font-size: 12.5px; }
.cobadge.sm { width: 22px; height: 22px; font-size: 9px; }
.co-chip { padding: 0 8px 0 6px; gap: 9px; }
.co-chip .cn { font: 600 12px var(--mono); color: var(--ink-3); background: var(--chip); border-radius: 999px; padding: 3px 8px; }
.ph h2.with-badge { display: flex; align-items: center; gap: 14px; }
.flag { display: inline-block; margin: 2px 0 6px; font: 600 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px dashed var(--accent-2); padding: 4px 9px; border-radius: 6px; }
.secbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 6px 0 10px; gap: 2px; }
.secbar span { min-width: 3px; }
.seckeys { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-2); }
.sk { display: inline-flex; align-items: center; gap: 7px; }
.sk b { font: 600 12px var(--mono); color: var(--ink-3); }
.sk-sw { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ycols { width: 100%; height: auto; display: block; margin-top: 6px; overflow: visible; }
.ycols .yc { fill: var(--accent-2); stroke: none; }
.ycols .yc-n { fill: var(--ink-2); stroke: none; font: 600 11px var(--mono); }
.ycols .yc-y { fill: var(--ink-3); stroke: none; font: 500 11px var(--mono); }
.ycols .yc-base { stroke: #C9CED5; stroke-width: 1; }
.actions { margin-top: 20px; }
.btn-teal { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font-weight: 650; font-size: 15.5px; }
.btn-teal:hover { background: #0B3F45; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 600 12px/1 var(--mono); letter-spacing: .02em; padding: 7px 10px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); }
.tag.me { background: #F0EDF7; color: #47377A; }
.pp-facts .co-chips { gap: 6px; }
.pf .related a { color: var(--focus); font-weight: 600; }

/* collaboration: area × area matrix */
.comx-wrap { overflow-x: auto; margin-top: 6px; }
.comx { border-collapse: separate; border-spacing: 3px; font-variant-numeric: tabular-nums; }
.comx th { font-weight: 600; }
.comx th[scope="col"] { padding: 0 0 4px; text-align: center; }
.comx th[scope="row"] { text-align: left; padding-right: 8px; font-size: 13.5px; line-height: 1.25; color: var(--ink-2); max-width: 170px; }
.cx-n { display: flex; align-items: flex-start; gap: 7px; } .cx-n .dot { margin-top: 3px; }
.comx td { width: 38px; min-width: 38px; height: 34px; text-align: center; font: 600 12.5px var(--mono); color: var(--ink-2); background: #F3F5F5; border-radius: 6px; }
.comx td.up { background: none; }
.comx td.diag { box-shadow: inset 0 0 0 1.5px rgba(14, 79, 86, .45); }

/* the industry diagram */
.indsvg { position: absolute; inset: 0; z-index: 3; stroke: none; fill: none; background: radial-gradient(ellipse at 50% 45%, #FCFDFC 0%, var(--bg) 78%); font-family: var(--font); }
.indsvg .ring { fill: none; stroke: #D3D9DA; stroke-width: 1; stroke-dasharray: 2 5; }
.indsvg .ring.in { stroke: #E2E6E7; }
.indsvg .lk { stroke-linecap: round; opacity: .32; transition: opacity .15s; }
.indsvg.focusing .lk { opacity: .05; }
.indsvg.focusing .lk.hl { opacity: .92; }
.indsvg .hub, .indsvg .co { cursor: pointer; transition: opacity .15s; outline: none; }
.indsvg .hub-c { stroke: #fff; stroke-width: 2; }
.indsvg .hub-ring { stroke: none; }
.indsvg .hub-n { fill: #fff; font-family: var(--mono); font-size: 11.5px; font-weight: 700; pointer-events: none; }
.indsvg .hub-l { fill: var(--ink); font-weight: 650; paint-order: stroke; stroke: rgba(251, 252, 251, .94); stroke-width: 4px; stroke-linejoin: round; }
.indsvg .hub-s { fill: var(--accent-2); font-family: var(--mono); font-weight: 600; font-size: .82em; letter-spacing: .02em; }
.indsvg .co-c { stroke: #fff; stroke-width: 1.6; }
.indsvg .co-sp { fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-dasharray: 3 2.5; }
.indsvg .co-i { fill: #fff; font-weight: 750; letter-spacing: -.01em; pointer-events: none; }
.indsvg .co-l { fill: var(--ink-2); font-weight: 600; paint-order: stroke; stroke: rgba(251, 252, 251, .94); stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none; }
.indsvg.focusing .co:not(.hl), .indsvg.focusing .hub:not(.hl) { opacity: .26; }
.indsvg .co:hover .co-c, .indsvg .co.sel .co-c { stroke: #11151B; stroke-width: 2.6; }
.indsvg .hub:hover .hub-c, .indsvg .hub.sel .hub-c { stroke: #11151B; stroke-width: 2.6; }
.indsvg .co:focus-visible .co-c, .indsvg .hub:focus-visible .hub-c { stroke: var(--focus); stroke-width: 3.2; }
.is-ind .zoom { display: none; }
.is-ind #map { visibility: hidden; }

@media (max-width: 1180px) {
  .tabs button { padding: 9px 12px 12px; font-size: 15px; }
  .ml-row { grid-template-columns: minmax(0, 1.25fr) minmax(48px, 1fr) 50px 66px; gap: 10px; }
}
@media (max-width: 760px) {
  .top { row-gap: 4px; }
  .tabs { margin: 0 -10px; }
  .tabs button { padding: 8px 10px 11px; font-size: 14.5px; }
  .tabs .lg { display: none; } .tabs .sm { display: inline; }
  .lens { height: 50px; padding-left: 8px; }
  .lens-k { display: none; }
  .lens select { font-size: 15px; max-width: 170px; padding-left: 8px; }
  .legendbar { left: 10px; right: 64px; max-width: none; bottom: 140px; font-size: 12.5px; padding: 7px 10px; gap: 4px 12px; }
  .legendbar.lg-default { display: none; }
  .big { font-size: 38px; }
  .ml-row { grid-template-columns: minmax(0, 1.2fr) minmax(40px, 1fr) 48px; }
  .ml-avgv { display: none; }
  .comx td { width: 32px; min-width: 32px; height: 30px; font-size: 11.5px; }
  .comx th[scope="row"] { font-size: 12.5px; max-width: 120px; }
}
.indsvg .lead { fill: none; stroke: #B5BDC3; stroke-width: 1; }
.indsvg.focusing .lead { opacity: .4; }
/* v2 polish */
.stat b.long { font-size: 22px; white-space: nowrap; letter-spacing: -0.01em; }
.bv { white-space: nowrap; flex: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; } }
@media (max-width: 760px) {
  .lens.on select { max-width: min(232px, calc(100vw - 132px)); }
  .legendbar.lg-ind { gap: 3px 10px; font-size: 12px; }
  .legendbar.lg-ind .lg-h, .legendbar.lg-ind .lg-opt { display: none; }
}
/* v2 review round 1 */
.back-pill { background: #fff; color: var(--accent); border: 1px solid rgba(15, 122, 132, .55); box-shadow: var(--shadow); }
.back-pill:hover { background: var(--accent-soft); }
/* ranked bars: thinner bar, interval drawn just below it, average tick with a white halo */
.lb-track { height: 7px; margin-bottom: 7px; overflow: visible; }
.lb-ci { top: 11px; height: 1.5px; background: var(--ink-2); }
.lb-ci::before, .lb-ci::after { top: -2.5px; height: 6.5px; width: 1.5px; background: var(--ink-2); }
.lb-avg { top: -4px; bottom: -11px; box-shadow: 0 0 0 1.5px #fff; }
.lb-k, .ml-avgv { font: 500 12px/1.2 var(--font); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.lb-key { font: 500 12px var(--font); }
.lk-scale { margin-left: auto; color: var(--ink-3); }
.h4-scale { float: right; font: 500 11.5px var(--font); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.ml-row.sub .ml-n { padding-left: 14px; font-size: 14px; font-weight: 550; color: var(--ink-2); position: relative; }
.ml-row.sub .ml-n::before { content: ""; position: absolute; left: 3px; top: 1px; width: 6px; height: 9px; border-left: 1.5px solid #C5CCCF; border-bottom: 1.5px solid #C5CCCF; border-bottom-left-radius: 2px; }
/* co-author matrix: numbered rows and columns */
.cx-h { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; font: 600 11px var(--font); color: var(--ink-3); }
.cx-i { display: inline-block; min-width: 12px; font: 600 11px var(--font); color: var(--ink-3); }
/* industry diagram: hubs filled with their area colour */
.indsvg .hub-c { stroke: #fff; stroke-width: 2.5; }
.indsvg .hub-ring { opacity: .22; }
.indsvg .hub-s { fill: var(--accent); font-family: var(--font); font-weight: 650; font-size: .9em; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.indsvg .lk { opacity: .26; }
@media (max-width: 760px) {
  .is-ind .legendbar { display: none; }
}
/* industry diagram, review round 2: neutral badges (sector colour on demand), curved grey links that take the area colour in focus */
.indsvg .co-c { fill: #3E4C57; }
.indsvg .co.small .co-c { fill: #74808A; stroke-width: 1.2; }
.indsvg .co.tint .co-c, .indsvg .co.sel .co-c { fill: var(--sc); }
.indsvg .lk { fill: none; stroke: #98A2AA; opacity: .2; }
.indsvg.focusing .lk { opacity: .04; }
.indsvg.focusing .lk.hl { stroke: var(--c); opacity: .9; }
.indsvg .co-lead { stroke: #A9B2B9; stroke-width: 1; fill: none; pointer-events: none; }
.indsvg .co-l { fill: var(--ink); font-weight: 650; }
.indsvg .lead { stroke: #CDD3D7; stroke-width: 1; stroke-dasharray: 1.5 3; }
.lg-btn { border: 1px solid transparent; background: none; padding: 3px 9px; margin: -3px -4px; border-radius: 999px; font: inherit; color: inherit; cursor: pointer; }
.lg-btn:hover { background: #F1F4F5; border-color: var(--line); }
.lg-btn.on { background: var(--accent-soft); border-color: var(--accent-2); color: var(--accent); font-weight: 650; }
.lg-sizes { display: inline-flex; align-items: center; gap: 3px; }
.lg-dot.xs { width: 6px; height: 6px; } .lg-dot.md { width: 13px; height: 13px; }
/* headings, numbers */
.ph h2, .pc-title { text-wrap: balance; }
.big-s, .co-chip .cn, .comx td, .ycols text { font-family: var(--font); font-variant-numeric: tabular-nums; }
.lg-line.dash { border-top: 1.6px dotted #6F7A85; }
.legendbar.lg-ind .lg-line.area { background: #A7B0B7; }
