:root {
  /* "Working System" palette from the Lily Urquhart portfolio: parchment, ink, navy, mustard, rust, sky.
     Topic and outcome hues checked with the dataviz validator against both map backgrounds. */
  color-scheme: light;
  --surface-0: #EFE4CB; --surface-1: #F7F5EF; --surface-2: #ECE4D2; --map: #EFE4CB; --line: #1B1B1B; --rule: #D9D2C0;
  --text-primary: #1B1B1B; --text-secondary: #4A4A4A; --text-muted: #6B6A66; --accent: #1E3A5F; --focus: #E0A526; --sel: #E0A526; --sel-fg: #1B1B1B;
  --s1: #2B5F99; --s2: #B5482F; --s3: #3B9AC4; --s4: #8A7A1E; --s5: #D0628E; --s6: #E0A526; --s7: #7B4FA8; --s8: #2E8B57;
  --other: #B3AC9C; --o-keep: #2B5F99; --o-delete: #B5482F; --o-mr: #C28A12; --o-other: #B3AC9C;
  --grid: rgba(27,27,27,.07); --edge: 27,27,27; --halo: rgba(239,228,203,.92); --shadow: 0.3rem 0.3rem 0 #1B1B1B;
}
/* Single light theme on purpose: the portfolio's Working System has no dark mode, so the atlas keeps
   parchment and ink even when the viewer's system is dark. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--surface-0); color: var(--text-primary); font: 14px/1.45 "Archivo", system-ui, sans-serif; display: flex; flex-direction: column;
  padding-block: 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.bar { margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-left: max(16px, env(safe-area-inset-left, 0px)) !important; padding-right: max(16px, env(safe-area-inset-right, 0px)) !important; }
.mapwrap, .left, .drawer { min-width: 0; }
h1 { font-size: 19px; margin: 0; font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; }
h2 { font-size: 15px; margin: 18px 0 6px; }
h3 { font-size: 11px; margin: 14px 0 4px; color: var(--text-primary); text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
a { color: var(--accent); }
button, select, input { font: inherit; color: inherit; background: var(--surface-1); border: 2px solid var(--line); border-radius: 0; padding: 4px 8px; }
button { cursor: pointer; }
button:hover { background: var(--surface-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.bar { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding: 10px 16px; border-bottom: 3px solid var(--line); background: var(--surface-1); }
.brand .sub { color: var(--text-secondary); font-size: 12px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.controls label { display: flex; gap: 6px; align-items: center; color: var(--text-secondary); font-size: 13px; }
.controls input[type=search] { width: 180px; }
main { flex: 1; display: flex; min-height: 0; position: relative; }
.left { width: 320px; flex: none; border-right: 3px solid var(--line); background: var(--surface-1); display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; border-bottom: 2px solid var(--line); }
.tabs button { flex: 1; border: 0; border-radius: 0; background: none; padding: 8px 4px; color: var(--text-secondary); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.tabs button[aria-selected=true] { color: var(--sel-fg); background: var(--sel); }
.tabpanel { overflow: auto; padding: 8px 14px 24px; flex: 1; }
.mapwrap { flex: 1; position: relative; min-width: 0; background: var(--map); overflow: hidden; } /* nothing inside may push the page out */
#map { position: absolute; inset: 0; }
.maplibregl-canvas { outline: none; }
.maplibregl-ctrl-attrib { display: none; }
#maplabels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lb { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transition: opacity .12s linear; color: var(--text-primary);
  text-shadow: 0 0 3px var(--map), 0 0 3px var(--map), 0 0 6px var(--map); }
/* only titles on screen get their own graphics layer; hidden ones (there can be hundreds) stay cheap */
.lb.on { will-change: transform; }
.lb.on { opacity: 1; }
.lb.t1 { font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-stretch: 112%; }
.lb.t2 { font-size: 13px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.lb.t3 { font-size: 12.5px; font-weight: 650; }
.lb.t4 { font-size: 11.5px; font-weight: 500; color: var(--text-secondary); }
.tip, .gcard { z-index: 3; }
.tip .tt-lab, .gcard .tt-lab { font-weight: 800; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.gcard .tt-lab { font-size: 15px; margin-top: 4px; }
.tip .tt-n, .gcard .tt-n { color: var(--text-secondary); margin: 2px 0 5px; }
.tip .tt-bar, .gcard .tt-bar { display: flex; height: 8px; border: 1.5px solid var(--line); }
.tip .tt-pct, .gcard .tt-pct { font-size: 11.5px; color: var(--text-secondary); margin-top: 3px; }
.tip .tt-h, .gcard .tt-h { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }
.tip ul, .gcard ul { margin: 2px 0 0; padding-left: 16px; }
.gcard { position: absolute; right: 12px; bottom: 12px; width: min(320px, calc(100% - 24px)); background: var(--surface-1); border: 3px solid var(--line); padding: 10px 14px 12px; font-size: 13px; box-shadow: 0.25rem 0.25rem 0 var(--line); }
.gcard .gc-ey { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); padding-right: 20px; }
.gcard button { position: absolute; right: 8px; top: 4px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.legend { position: absolute; left: 12px; bottom: 12px; background: var(--surface-1); border: 2px solid var(--line); border-radius: 0; box-shadow: var(--shadow); padding: 6px 10px; font-size: 12px; max-width: 60%; }
.legend span { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; white-space: nowrap; }
.sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.count { position: absolute; right: 12px; top: 10px; font-size: 12px; color: var(--text-secondary); background: var(--surface-1); padding: 2px 8px; border: 2px solid var(--line); font-weight: 700; }
.tip { position: absolute; pointer-events: none; background: var(--surface-1); border: 2px solid var(--line); border-radius: 0; padding: 6px 8px; font-size: 12px; max-width: 280px; box-shadow: 0.25rem 0.25rem 0 var(--line); }
.tip b { display: block; }
.topic { padding: 3px 0; }
.topic .row { display: flex; gap: 6px; align-items: baseline; cursor: pointer; border-radius: 4px; padding: 2px 4px; }
.topic .row:hover, .topic .row.sel { background: var(--surface-2); }
.topic .n { margin-left: auto; color: var(--text-muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.topic .kids { margin-left: 14px; }
.topic .kw { color: var(--text-muted); font-size: 11px; }
.draft { font-size: 10px; border: 1px solid var(--line); border-radius: 3px; padding: 0 3px; color: var(--text-muted); }
.drawer { width: 480px; flex: none; border-left: 3px solid var(--line); background: var(--surface-1); overflow: auto; padding: 14px 18px 40px; position: relative; }
.drawer .close { position: absolute; right: 10px; top: 8px; font-size: 18px; line-height: 1; border: 0; background: none; }
.meta { color: var(--text-secondary); font-size: 13px; }
.chip { display: inline-block; font-size: 11px; border-radius: 10px; padding: 0 7px; border: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.chip.keep { border-color: var(--o-keep); } .chip.delete { border-color: var(--o-delete); } .chip.merge, .chip.redirect { border-color: var(--o-mr); }
.badge { font-size: 11px; color: var(--text-secondary); border: 1px dashed var(--line); padding: 1px 6px; border-radius: 4px; }
.note { font-size: 12px; color: var(--text-secondary); background: var(--surface-2); border-radius: 6px; padding: 6px 8px; margin: 6px 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--rule); }
.timeline li { position: relative; margin: 0 0 10px; padding-left: 8px; }
.timeline li::before { content: ""; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-1); border: 2px solid var(--text-muted); }
.timeline li.k-nomination::before { border-color: var(--text-primary); background: var(--text-primary); }
.timeline li.k-closure::before { border-color: var(--accent); background: var(--accent); border-radius: 2px; }
.timeline .when { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.timeline .txt { font-size: 13px; margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline .txt.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.timeline .more { font-size: 11px; border: 0; padding: 0; background: none; color: var(--accent); }
.eid { font-size: 10px; color: var(--text-muted); font-family: ui-monospace, monospace; }
.linkbtn { border: 0; padding: 0; background: none; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
th, td { text-align: left; padding: 3px 6px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--text-secondary); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.stack { display: flex; height: 14px; gap: 2px; border-radius: 4px; overflow: hidden; margin: 4px 0; }
.stack div { height: 100%; }
.mini { width: 100%; height: auto; display: block; }
.mini text { fill: var(--text-secondary); font-size: 10px; }
.mini .axis { stroke: var(--line); }
.mini .ln { fill: none; stroke: var(--accent); stroke-width: 2; }
.mini .dot { fill: var(--accent); stroke: var(--surface-1); stroke-width: 2; }
.caselist { list-style: none; padding: 0; margin: 0; }
.caselist li button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; padding: 5px 2px; }
.caselist .meta { font-size: 11px; }
@media (max-width: 900px) {
  main { flex-direction: column; }
  .left { width: 100%; max-height: 38vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .mapwrap { min-height: 50vh; }
  .drawer { position: fixed; inset: 0; width: 100%; z-index: 10; padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
  .drawer .close { top: calc(8px + env(safe-area-inset-top, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); }
  .controls input[type=search] { width: 140px; }
  .left.collapsed { max-height: none; }
  .left.collapsed .tabpanel { display: none; }
  .left .tabs button[aria-selected="true"]::after { content: " ▴"; }
  .left.collapsed .tabs button[aria-selected="true"]::after { content: " ▾"; }
}
.aisum { border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; margin: 8px 0; background: var(--surface-1); }
.aisum ul { padding-left: 18px; margin: 6px 0; }
.aisum li { margin-bottom: 6px; }
.chip.evlink { cursor: pointer; font-family: ui-monospace, monospace; font-size: 10px; color: var(--accent); }
.timeline li.flash { background: var(--surface-2); border-radius: 6px; transition: background .3s; }
@media (prefers-reduced-motion: reduce) { .timeline li.flash { transition: none; } }
.controls label.toggle { color: var(--text-primary); }
.meta .chip { white-space: normal; }
button[aria-pressed=true] { background: var(--sel); color: var(--sel-fg); }
.chip { border-radius: 0; }
.draft, .badge, .note, .aisum { border-radius: 0; }
.left .tabs { border-bottom-width: 2px; }
.tabpanel .legend, .drawer .legend { box-shadow: none; }
/* ---------- factor map (decision pathway) ---------- */
:root { --st-keep: #1E3A5F; --st-delete: #B5482F; --st-mr: #E0A526; --st-other: #A9C7D6;
  --st-keep-fg: #FFFFFF; --st-delete-fg: #FFFFFF; --st-mr-fg: #1B1B1B; --st-other-fg: #1B1B1B; }
.fm-overview { margin: 4px 0 20px; }
.fm-stage { position: relative; display: grid; gap: 64px; margin: 6px 0 8px; }
.fm-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; position: relative; z-index: 1; }
.fm-row { padding-inline: 56px; }
.fm-row > .fm-factor { flex: 1 1 170px; max-width: 360px; }
.fm-row > .fm-decision { width: min(260px, 100%); text-align: center; }
.fm-rel { font: 600 10px Archivo, system-ui, sans-serif; fill: var(--text-secondary); paint-order: stroke; stroke: var(--surface-1); stroke-width: 4px; letter-spacing: .04em; }
.fm-key i.t { border-top: 2.5px solid var(--st-keep); }
.fm-factor { padding: 9px 11px; display: grid; gap: 3px; }
.fm-lab { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.fm-lab span:last-child { white-space: nowrap; opacity: .85; font-variant-numeric: tabular-nums; }
.fm-factor ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.fm-item { all: unset; display: block; cursor: pointer; font-size: 12.5px; line-height: 1.35; padding: 1px 0; border-bottom: 1px solid transparent; }
.fm-item:hover, .fm-item[aria-current] { border-bottom-color: currentColor; }
.fm-item:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.st-keep { background: var(--st-keep); color: var(--st-keep-fg); } .st-delete { background: var(--st-delete); color: var(--st-delete-fg); }
.st-mr { background: var(--st-mr); color: var(--st-mr-fg); } .st-other { background: var(--st-other); color: var(--st-other-fg); }
.fm-factor.dim { outline: 2px dashed var(--line); outline-offset: -2px; filter: saturate(.55); }
.fm-decision { position: relative; z-index: 1; background: var(--line); color: var(--surface-1); padding: 10px; display: grid; gap: 4px; }
.fm-decision p { margin: 0; font-size: 11.5px; line-height: 1.35; }
.fm-out { font-size: 18px; font-weight: 800; font-stretch: 112%; text-transform: uppercase; color: var(--st-mr); line-height: 1.05; overflow-wrap: anywhere; }
.fm-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
svg.fm-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.fm-key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; color: var(--text-secondary); margin: 20px 0 10px; padding-top: 12px; border-top: 2px solid var(--line); }
.fm-key i { display: inline-block; width: 24px; margin-right: 5px; vertical-align: middle; border-top: 4px solid var(--line); }
.fm-key i.d { border-top: 2px dashed var(--line); }
.fm-strip { display: grid; gap: 6px; margin: 6px 0 10px; }
.fm-tl { display: grid; grid-template-columns: minmax(90px, 140px) minmax(0, 1fr); gap: 3px 10px; align-items: center; font-size: 11px; }
.fm-rl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.fm-track { position: relative; height: 16px; border-bottom: 1px solid var(--rule); margin-right: 6px; }
.fm-dot { all: unset; position: absolute; top: 2px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--surface-1), 0 0 0 2.5px var(--line); cursor: pointer; }
.fm-dot.st-keep { background: var(--st-keep); } .fm-dot.st-delete { background: var(--st-delete); } .fm-dot.st-mr { background: var(--st-mr); } .fm-dot.st-other { background: var(--st-other); }
.fm-close { position: absolute; left: 100%; top: -2px; width: 4px; height: 20px; margin-left: -2px; background: var(--line); }
.fm-axis { display: flex; justify-content: space-between; color: var(--text-muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.fm-evidence { border-top: 2px solid var(--line); padding-top: 8px; display: grid; gap: 4px; min-width: 0; }
.fm-evidence blockquote { margin: 0; padding: 8px 10px; background: var(--surface-0); font-size: 13px; overflow-wrap: anywhere; white-space: pre-wrap; }
details.allc { margin-top: 12px; } details.allc summary { cursor: pointer; font-weight: 700; padding: 6px 0; }

.fm-examples { display: grid; gap: 3px; padding: 8px 10px; margin: 4px 0 8px; background: var(--st-mr); color: var(--st-mr-fg); }
.fm-examples .linkbtn { color: var(--st-mr-fg); text-align: left; font-size: 13px; }
button.fm-item, button.fm-item:hover { background: transparent; color: inherit; }
button.fm-dot.st-keep, button.fm-dot.st-keep:hover { background: var(--st-keep); } button.fm-dot.st-delete, button.fm-dot.st-delete:hover { background: var(--st-delete); }
button.fm-dot.st-mr, button.fm-dot.st-mr:hover { background: var(--st-mr); } button.fm-dot.st-other, button.fm-dot.st-other:hover { background: var(--st-other); }
button.fm-dot[aria-current] { box-shadow: 0 0 0 2px var(--surface-1), 0 0 0 4px var(--line); }

.drawer.wide { width: 600px; }
@media (max-width: 900px) { .drawer.wide { width: 100%; } }
.fm-tag { fill: var(--surface-1); stroke: var(--line); stroke-width: 1; }
.fm-rel { stroke: none; }

.fm-quote { position: relative; z-index: 1; width: min(420px, 100%); justify-self: center; margin: 14px auto 22px; background: var(--surface-1); border: 2px solid var(--line); padding: 10px 12px; display: grid; gap: 6px; }
.fm-quote blockquote { margin: 0; padding-left: 10px; border-left: 3px solid var(--st-mr); font-size: 12.5px; line-height: 1.45; font-style: italic; white-space: pre-line; }
.fm-quote blockquote.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fm-quote .more { justify-self: start; font-size: 11px; border: 0; padding: 0; background: none; color: var(--accent); }
.fm-rule { border: 0; border-top: 2px solid var(--line); margin: 0 0 6px; }
.legend .legend-note { margin-top: 4px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; white-space: normal; }
.legend .sw.ring { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface-0); flex: none; }
.period { position: absolute; left: 12px; top: 10px; max-width: min(560px, calc(100% - 300px)); font-size: 12px; line-height: 1.45; background: var(--surface-1); border: 2px solid var(--line); padding: 4px 10px; color: var(--text-primary); }
.period .up { color: #1E3A5F; font-weight: 700; }
.period .dn { color: #8A3622; font-weight: 700; }
.period .hint { color: var(--text-secondary); }
@media (max-width: 760px) { .period { max-width: calc(100% - 24px); top: 44px; } }

.fm-groups { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 4px; }
.fm-examples .fm-grp { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border: 1.5px solid currentColor; text-decoration: none; }
.fm-examples .fm-grp[aria-pressed="true"] { background: var(--st-mr-fg); color: var(--st-mr); }
.fm-note { font-size: 12px; opacity: .85; margin-bottom: 2px; }
.fm-decision .fm-raw { display: block; font-size: 12px; opacity: .8; margin: -2px 0 4px; }
.fm-factor { align-content: start; }
.fm-factor .fm-more { display: none; }
.fm-factor.open .fm-more { display: list-item; }
.fm-fold { all: unset; cursor: pointer; justify-self: start; margin-top: 3px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1.5px solid currentColor; opacity: .9; }
.fm-fold:hover { opacity: 1; }
.fm-fold:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fm-examples .int-yr { font-size: 11px; opacity: .7; text-decoration: none; }
.why-int { margin-top: 2px; }

/* long boxes: short points, repeats grouped */
.fm-times { font-weight: 800; font-size: .9em; opacity: .75; white-space: nowrap; }

/* ---------- Working System alignment + first screen (Nov 11, approved by Kiki) ----------
   Shadows on the legend, tooltip and group card are kept on purpose: they draw the eye.
   The decision pathway styles above are unchanged. */
:root { --o-keep: #1E3A5F; --text-muted: #4A4A4A; }
:focus-visible { outline-color: var(--text-primary); }
.bar { border-bottom-width: 4px; }
.left { border-right-width: 4px; }
h1 { text-transform: uppercase; font-stretch: 125%; letter-spacing: 0; font-size: 18px; }
.brand .q { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.brand .sub { font-size: 12.5px; }
.controls { gap: 8px 10px; }
.controls label { text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--text-primary); }
.controls label select, .controls label input { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; }
.controls input[type=checkbox] { width: 18px; height: 18px; }
.btn-dark { background: var(--text-primary); color: var(--surface-1); font-weight: 700; border-color: var(--text-primary); }
.btn-dark:hover { background: #1E3A5F; color: #FFFFFF; }
.viewmenu { position: relative; }
.viewmenu summary { list-style: none; cursor: pointer; border: 2px solid var(--line); padding: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--surface-1); }
.viewmenu summary::-webkit-details-marker { display: none; }
.viewmenu summary::after { content: " ▾"; }
.vm-body { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; display: grid; gap: 10px; padding: 12px 14px; background: var(--surface-1); border: 3px solid var(--line); }
.vm-body label { justify-content: space-between; }
@media (max-width: 760px) { .vm-body { left: auto; right: 0; } }
.tabs button { letter-spacing: .1em; font-size: 11px; padding-inline: 2px; }
.tabs button[aria-selected=true] { background: var(--text-primary); color: var(--surface-1); }
.starthere { border: 3px solid var(--line); background: var(--surface-1); padding: 10px 12px 12px; margin: 8px 0 14px; }
.starthere .ey { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.starthere p { margin: 4px 0 8px; font-size: 13px; }
.starthere ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.starthere li button { all: unset; cursor: pointer; display: grid; grid-template-columns: 6px 1fr; gap: 8px; font-size: 13.5px; font-weight: 600; }
.starthere li button:hover span { text-decoration: underline; }
.starthere li button:focus-visible { outline: 3px solid var(--text-primary); outline-offset: 2px; }
.starthere li button i { background: var(--st-mr); }
.starthere li small { display: block; font-weight: 400; color: var(--text-secondary); font-size: 12px; }
#tab-topics > .note { background: none; padding: 0; margin: 0 0 6px; }
.legend { max-width: 46%; }
.legend .legend-note { display: none; }
.legend.open .legend-note { display: flex; }
.legend .lg-tog { all: unset; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; margin-top: 4px; display: inline-block; }
.legend .lg-tog:focus-visible { outline: 3px solid var(--text-primary); outline-offset: 2px; }
.legend, .count, .period, .tip { border-width: 2px; }
.topic .row, .stack, .timeline li.flash { border-radius: 0; }
.gcard .gc-ey, .tip .tt-h { font-size: 11px; letter-spacing: .16em; }
.eid, .draft { font-size: 11px; }
.fm-examples .int-yr { opacity: 1; }
.fm-note { opacity: 1; }
.drawer h2 { font-size: 26px; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.1; margin-top: 4px; }
.chip { background: var(--text-primary); color: var(--surface-1); border-color: var(--text-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; padding: 1px 7px; }
.mapwrap { container-type: inline-size; }
@container (max-width: 820px) { .period { top: 48px; max-width: calc(100% - 24px); } }
@container (max-width: 560px) { .legend { max-width: calc(100% - 24px); } }
/* search results under the search box (replaces the Case list tab, Nov 11) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.controls label.searchbox { position: relative; }
.sresults { position: absolute; top: calc(100% + 4px); left: 64px; width: min(340px, calc(100vw - 32px)); z-index: 30; background: var(--surface-1); border: 3px solid var(--line); box-shadow: 0.25rem 0.25rem 0 var(--line); list-style: none; margin: 0; padding: 4px 0; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-primary); }
.sresults li button { all: unset; display: block; box-sizing: border-box; width: 100%; padding: 6px 12px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.sresults li button:hover { background: var(--surface-2); }
.sresults li button:focus-visible { background: var(--surface-2); outline: 3px solid var(--text-primary); outline-offset: -3px; }
.sresults small { display: block; font-weight: 400; color: var(--text-secondary); font-size: 12px; }
.sresults .more { padding: 6px 12px 4px; font-size: 12px; color: var(--text-secondary); border-top: 1px solid var(--rule); }
@media (max-width: 760px) { .sresults { left: 0; } }
/* a clicked topic is highlighted: labels outside it fade back instead of disappearing */
.lb.on.dim { opacity: .28; }
