/* Atlas Collection — Career Atlas, Franchise Atlas, Signal X-Ray.
   Semantic color roles stay fixed across modes (series A, overlay B, offense, defense, window,
   heat ramp); each mode supplies its own printing of them. Nothing here encodes meaning by
   color alone: every role also has a shape, dash, label or position. */
:root {
  --at-a: #0a7c86;
  --at-a-wash: 10 124 134;
  --at-b: #6043c3;
  --at-o: #b8620f;
  --at-d: #3154c9;
  --at-window: 169 75 19;
  --at-window-ink: #9a430f;
  --at-heat-0: #eef3fb;
  --at-heat-1: #9fc3e0;
  --at-heat-2: #2f7fb0;
  --at-heat-3: #123f73;
  --at-heat-hot: #c8691c;
  --at-na: #c5cfdf;
  --at-stage: #ffffff;
  --at-ink-strong: #0d1b33;
  --at-radius: 14px;
}
:root[data-theme="editorial"] {
  --at-a: #2f6f73;
  --at-a-wash: 47 111 115;
  --at-b: #9a6a1f;
  --at-o: #b3472d;
  --at-d: #2f6a4f;
  --at-window: 179 71 45;
  --at-window-ink: #9b3b24;
  --at-heat-0: #f3eee4;
  --at-heat-1: #d9c7a6;
  --at-heat-2: #a9805a;
  --at-heat-3: #4a3526;
  --at-heat-hot: #b3472d;
  --at-na: #ddd5c8;
  --at-stage: #fbfaf7;
  --at-ink-strong: #111315;
  --at-radius: 4px;
}
:root[data-theme="nocturne"] {
  --at-a: #7ee3db;
  --at-a-wash: 126 227 219;
  --at-b: #e2c27a;
  --at-o: #f08a5d;
  --at-d: #86b6ff;
  --at-window: 238 160 128;
  --at-window-ink: #f2b08f;
  --at-heat-0: #211c17;
  --at-heat-1: #3e4a52;
  --at-heat-2: #3f8d95;
  --at-heat-3: #8fe0d6;
  --at-heat-hot: #f08a5d;
  --at-na: #2b2620;
  --at-stage: #191613;
  --at-ink-strong: #f6efe2;
  --at-radius: 6px;
}

main.atlas-main { max-width: min(100% - 1rem, 1560px); }
.atlas-hero { margin: 0 0 2.4rem; }
.atlas-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: var(--display-tracking);
  margin: 0.1rem 0 0.3rem;
}
.atlas-question { margin: 0 0 1rem; color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.atlas-toolbar {
  display: flex; flex-wrap: wrap; align-items: end; gap: 0.7rem 1rem;
  padding: 0.75rem 0.9rem; border: 1px solid var(--border); border-radius: var(--at-radius);
  background: var(--panel);
}
.atlas-toolbar label, .atlas-field { display: grid; gap: 0.25rem; font-size: 0.72rem; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.atlas-toolbar input, .atlas-toolbar select { font: inherit; font-size: 0.92rem; text-transform: none; letter-spacing: 0; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.45rem 0.6rem; min-height: 2.4rem; }
.atlas-search { position: relative; }
.atlas-search input { min-width: 15rem; }
.atlas-suggestions {
  position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin: 0.2rem 0 0; padding: 0.25rem;
  list-style: none; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow);
  text-transform: none; letter-spacing: 0; font-weight: 500;
}
.atlas-suggestions button { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; gap: 0.6rem; width: 100%; padding: 0.45rem 0.55rem; border-radius: 7px; cursor: pointer; color: var(--text); font-size: 0.9rem; }
.atlas-suggestions small { color: var(--muted); }
.atlas-suggestions li[aria-selected="true"] button, .atlas-suggestions button:hover { background: var(--panel-2); }
.atlas-suggestions .muted { padding: 0.45rem 0.55rem; color: var(--muted); }
.atlas-status { min-height: 1.2rem; margin: 0.4rem 0; color: var(--muted); font-size: 0.85rem; }
.atlas-link-button { all: unset; cursor: pointer; color: var(--brand-2); font-weight: 700; font-size: 0.82rem; }
.atlas-link-button:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.ca-vs { margin: 0; align-self: center; font-size: 0.85rem; font-weight: 700; color: var(--at-b); }

/* Stage: chart with an evidence rail beside it (desktop) or beneath it (narrow). */
.atlas-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); gap: 1rem; align-items: start; margin-top: 0.6rem; }
@media (min-width: 1900px) { .atlas-stage { grid-template-columns: minmax(0, 1fr) 380px; } }
@media (max-width: 980px) { .atlas-stage { grid-template-columns: minmax(0, 1fr); } }
.atlas-figure {
  margin: 0; min-width: 0; padding: 1rem 1.1rem 0.9rem; border: 1px solid var(--border);
  border-radius: var(--at-radius); background: var(--at-stage); box-shadow: var(--shadow);
}
.atlas-figure-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1rem; align-items: start; }
.atlas-kicker, .ca-rail-kicker {
  margin: 0; font-family: var(--font-display); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--at-a);
}
.atlas-title { margin: 0.1rem 0 0; font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: var(--display-tracking); color: var(--at-ink-strong); }
.atlas-sub { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.86rem; }
.atlas-switches { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.atlas-switches [role="group"] { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; background: var(--panel); }
.atlas-switches button, .ca-win-chip, .atlas-seg button {
  font: inherit; font-size: 0.76rem; font-weight: 750; color: var(--muted); background: transparent; border: 0;
  border-radius: 999px; padding: 0.3rem 0.65rem; min-height: 2rem; cursor: pointer;
}
.atlas-switches button[aria-pressed="true"], .atlas-seg button[aria-pressed="true"] { background: var(--at-a); color: var(--at-stage); }
.atlas-switches button:disabled { opacity: 0.4; cursor: not-allowed; }
.atlas-switches button:focus-visible, .ca-win-chip:focus-visible, .ca-chip:focus-visible, .atlas-chart:focus-visible, .atlas-seg button:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.ca-windows { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.ca-win-group { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; background: var(--bg); }
.ca-win-chip { min-width: 2.1rem; text-transform: none; letter-spacing: 0; }
.ca-win-chip.selected { background: rgb(var(--at-window)); color: #fff; }
.ca-win-pick { display: inline-flex !important; grid-auto-flow: column; align-items: center; gap: 0.35rem !important; }
.ca-win-pick select { min-height: 2rem !important; padding: 0.2rem 0.4rem !important; font-size: 0.8rem !important; }

.atlas-scroll { overflow-x: auto; margin: 0.4rem -0.3rem 0; padding: 0 0.3rem; overscroll-behavior-x: contain; }
.atlas-chart { display: block; min-height: 300px; border-radius: 8px; }
.ca-svg { display: block; overflow: visible; }
.ca-grid { stroke: var(--border); stroke-width: 1; }
.ca-axis, .ca-x, .ca-rail-value, .ca-comp-value { fill: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ca-x.selected { fill: var(--at-ink-strong); font-weight: 800; }
.ca-baseline { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 4 4; }
.ca-baseline-label { fill: var(--muted); font-size: 11px; font-style: italic; }
.ca-window { fill: rgb(var(--at-window) / 0.09); stroke: rgb(var(--at-window) / 0.45); stroke-width: 1; stroke-dasharray: 3 3; }
.ca-window-label { fill: var(--at-window-ink); font-size: 11.5px; font-weight: 850; letter-spacing: 0.08em; }
.ca-premodel { fill: var(--panel-2); opacity: 0.7; }
.ca-premodel-label { fill: var(--muted); font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; }
.ca-premodel-sub { fill: var(--muted); font-size: 11px; }
.ca-gap { fill: none; stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 4; }
.ca-gap-label { fill: var(--muted); font-size: 10px; font-style: italic; }
.ca-ribbon { fill: rgb(var(--at-a-wash) / 0.13); stroke: none; }
.ca-guide { stroke: var(--at-a); stroke-width: 2; stroke-opacity: 0.55; stroke-linecap: round; }
.ca-guide-b { stroke: var(--at-b); stroke-dasharray: 5 4; }
.ca-whisker { stroke: var(--at-a); stroke-width: 1.6; stroke-opacity: 0.85; }
.ca-point { fill: var(--at-a); stroke: var(--at-stage); stroke-width: 2; }
.ca-point.unq { fill: var(--at-stage); stroke: var(--at-a); stroke-width: 2; }
.ca-point.selected { stroke-width: 2.5; }
.ca-halo { fill: none; stroke: var(--at-ink-strong); stroke-width: 1.5; }
.ca-point-b { fill: var(--at-b); stroke: var(--at-stage); stroke-width: 1.5; }
.ca-point-b.unq { fill: var(--at-stage); stroke: var(--at-b); }
.ca-value-label { fill: var(--at-ink-strong); font-size: 15px; font-weight: 850; paint-order: stroke; stroke: var(--at-stage); stroke-width: 4px; }
.ca-series-label { font-size: 12px; font-weight: 800; paint-order: stroke; stroke: var(--at-stage); stroke-width: 4px; }
.ca-series-a { fill: var(--at-a); }
.ca-series-b { fill: var(--at-b); }
.ca-tower { fill: rgb(var(--at-a-wash) / 0.28); stroke: rgb(var(--at-a-wash) / 0.7); stroke-width: 1; }
.ca-tower.neg { fill: rgb(var(--tint-neg) / 0.2); stroke: rgb(var(--tint-neg) / 0.6); }
.ca-tower.unq { fill: none; stroke-dasharray: 3 2; }
.ca-tower.selected { fill: rgb(var(--at-a-wash) / 0.5); }
.ca-rail-title { fill: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; }
.ca-rail { fill: rgb(var(--at-a-wash) / 0.35); }
.ca-rail.selected { fill: var(--at-a); }
.ca-rail-missing { stroke: var(--border); stroke-width: 2; }
.ca-hit { fill: transparent; cursor: pointer; }
.ca-hit:hover { fill: rgb(var(--at-a-wash) / 0.05); }
.ca-comp-o { fill: var(--at-o); }
.ca-comp-d { fill: var(--at-d); }
.ca-comp-o.neg, .ca-comp-d.neg { fill-opacity: 0.45; }
.ca-comp-total { stroke: var(--at-ink-strong); stroke-width: 3; stroke-linecap: round; }

.atlas-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 0.5rem 0 0; color: var(--muted); font-size: 0.76rem; align-items: center; }
.ca-lg-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.lg { display: inline-block; width: 14px; height: 10px; }
.lg-point { width: 10px; border-radius: 50%; background: var(--at-a); }
.lg-unq { width: 10px; border-radius: 50%; border: 2px solid var(--at-a); box-sizing: border-box; }
.lg-whisker { width: 2px; height: 14px; background: var(--at-a); }
.lg-guide { height: 2px; background: var(--at-a); opacity: 0.6; }
.lg-b { width: 10px; height: 10px; background: var(--at-b); transform: rotate(45deg); }
.lg-tower { background: rgb(var(--at-a-wash) / 0.35); border: 1px solid var(--at-a); }
.lg-o { background: var(--at-o); }
.lg-d { background: var(--at-d); }
.lg-total { height: 3px; background: var(--at-ink-strong); }
.lg-fp-pos { background: color-mix(in srgb, var(--at-a) 70%, transparent); }
.lg-fp-neg { background: color-mix(in srgb, var(--at-o) 70%, transparent); }
.lg-fp-na { background: repeating-linear-gradient(135deg, var(--at-na) 0 2px, transparent 2px 5px); border: 1px solid var(--border); }

.ca-strip { display: flex; gap: 0.3rem; overflow-x: auto; padding: 0.55rem 0 0.2rem; scrollbar-width: thin; }
.ca-chip {
  flex: 0 0 auto; display: grid; gap: 0.05rem; min-width: 4.4rem; padding: 0.3rem 0.5rem; text-align: left; cursor: pointer;
  font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
}
.ca-chip span { font-size: 0.7rem; color: var(--muted); font-weight: 700; }
.ca-chip b { font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.ca-chip.selected { border-color: var(--at-a); box-shadow: inset 0 0 0 1px var(--at-a); background: rgb(var(--at-a-wash) / 0.08); }
.ca-chip.empty b { color: var(--muted); font-weight: 600; }
.atlas-coverage { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.78rem; max-width: 92ch; }

.atlas-export { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px solid var(--border); }
.atlas-export button {
  font: inherit; font-size: 0.78rem; font-weight: 750; color: var(--brand-2); background: var(--panel);
  border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.75rem; min-height: 2rem; cursor: pointer;
}
.atlas-export button:hover { border-color: var(--brand-2); }
.atlas-export button:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.atlas-export-status { color: var(--muted); font-size: 0.78rem; }

/* Evidence rail. */
.atlas-rail {
  position: sticky; top: 0.8rem; min-width: 0; padding: 1rem 1.05rem; border: 1px solid var(--border);
  border-radius: var(--at-radius); background: var(--panel); box-shadow: var(--shadow);
}
@media (max-width: 980px) { .atlas-rail { position: static; } }
.ca-rail-season { margin: 0.15rem 0 0; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: var(--display-tracking); }
.ca-rail-team { margin: 0; color: var(--muted); font-size: 0.82rem; font-weight: 650; }
.ca-big { margin: 0.45rem 0 0; font-family: var(--font-display); font-size: clamp(2.4rem, 2rem + 1.6vw, 3.4rem); line-height: 1; font-weight: 850; color: var(--at-a); font-variant-numeric: tabular-nums; }
.ca-big.muted { font-size: 1.3rem; color: var(--muted); }
.ca-rail-unit { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.8rem; }
.ca-range { margin: 0.65rem 0 0; display: grid; gap: 0.1rem; }
.ca-range strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.ca-range span, .ca-note { color: var(--muted); font-size: 0.76rem; }
.ca-note { margin: 0.5rem 0 0; }
.ca-od { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; margin: 0.8rem 0 0; padding: 0.65rem 0 0; border-top: 1px solid var(--border); }
.ca-od span { display: block; font-size: 1.2rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.ca-od small { color: var(--muted); font-size: 0.68rem; font-weight: 750; letter-spacing: 0.04em; }
.ca-od-o { color: var(--at-o); }
.ca-od-d { color: var(--at-d); }
.ca-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 0.6rem; margin: 0.8rem 0 0; padding: 0.65rem 0 0; border-top: 1px solid var(--border); }
.ca-facts dt { color: var(--muted); font-size: 0.68rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.05em; }
.ca-facts dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.ca-window-rail { margin: 0.8rem 0 0; padding: 0.65rem 0 0; border-top: 1px solid var(--border); }
.ca-window-rail .ca-rail-kicker { color: var(--at-window-ink); }
.ca-window-value { margin: 0.2rem 0 0; display: grid; gap: 0.1rem; }
.ca-window-value span { color: var(--muted); font-size: 0.78rem; }
.ca-links { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.9rem 0 0; }
.ca-links a {
  display: inline-flex; align-items: center; min-height: 2rem; padding: 0.2rem 0.65rem; border: 1px solid var(--border);
  border-radius: 999px; font-size: 0.78rem; font-weight: 750;
}
.ca-links a:hover { border-color: var(--brand-2); text-decoration: none; }
.ca-rail-empty { color: var(--muted); }

.atlas-table { margin: 0.9rem 0 0; }
.atlas-table > summary { cursor: pointer; font-weight: 750; color: var(--brand-2); width: fit-content; }
.atlas-table > summary:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.ca-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.ca-table th, .ca-table td { padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.ca-table th:first-child, .ca-table td:nth-child(2) { text-align: left; }
.ca-table tr.selected { background: rgb(var(--at-a-wash) / 0.08); }

.atlas-lenses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1rem; margin-top: 1.4rem; }
.atlas-lens { min-width: 0; padding: 1rem 1.05rem; border: 1px solid var(--border); border-radius: var(--at-radius); background: var(--panel); }
.atlas-lens h2 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: var(--display-tracking); }
.atlas-lens-q { margin: 0.2rem 0 0.7rem; color: var(--muted); font-size: 0.84rem; }
.atlas-chart-sm { min-height: 120px; }

.fp-wrap { overflow-x: auto; }
.fp-table { border-collapse: separate; border-spacing: 2px; font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.fp-table th { color: var(--muted); font-weight: 750; padding: 0.1rem 0.25rem; text-align: center; }
.fp-table th[scope="row"] { text-align: right; padding-right: 0.45rem; color: var(--text); }
.fp-cell { min-width: 2.1rem; height: 1.8rem; text-align: center; border-radius: 4px; color: var(--text); font-weight: 700; }
.fp-pos { background: color-mix(in srgb, var(--at-a) var(--fp), var(--panel)); }
.fp-neg { background: color-mix(in srgb, var(--at-o) var(--fp), var(--panel)); }
.fp-strong { color: var(--at-stage); }
.fp-unq { outline: 1px dashed var(--muted); outline-offset: -2px; }
.fp-na { background: repeating-linear-gradient(135deg, var(--at-na) 0 2px, transparent 2px 6px); }
.ca-milestones { display: grid; gap: 0.55rem; margin: 0; }
.ca-milestones div { display: grid; gap: 0.05rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.ca-milestones dt { color: var(--muted); font-size: 0.72rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.04em; }
.ca-milestones dd { margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.atlas-legacy { border-top: 1px solid var(--border); padding-top: 1rem; }
.atlas-legacy > h2 { font-family: var(--font-display); }

@media (max-width: 640px) {
  .atlas-toolbar { padding: 0.6rem; }
  .atlas-search input { min-width: 0; width: 100%; }
  .atlas-toolbar label, .atlas-field { flex: 1 1 100%; }
  .atlas-figure { padding: 0.75rem 0.7rem; }
  .atlas-switches { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-hero *, .atlas-hero *::before, .atlas-hero *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Franchise Atlas ------------------------------------------------------------------------ */
.atlas-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 999px; padding: 2px; background: var(--bg); text-transform: none; letter-spacing: 0; }
.fa-decades button:disabled { opacity: 0.35; cursor: not-allowed; }
.fa-svg { min-width: 740px; }
.fa-dna { min-height: 420px; }
.fa-decade { stroke: var(--border); stroke-width: 1; }
.fa-decade-label { fill: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; }
.fa-spell { fill: rgb(var(--at-a-wash) / 0.16); stroke: rgb(var(--at-a-wash) / 0.5); stroke-width: 1; }
.fa-spell.disputed { fill: none; stroke-dasharray: 3 2; }
.fa-spell-label { fill: var(--at-ink-strong); font-size: 10.5px; font-weight: 800; }
.fa-transition { stroke: var(--at-ink-strong); stroke-width: 1.4; stroke-dasharray: 2 3; }
.fa-row-label { fill: var(--text); font-size: 11.5px; font-weight: 750; cursor: pointer; }
.fa-row-label.active { fill: var(--at-a); text-decoration: underline; }
.fa-cell { stroke: none; }
.fa-out { fill: none; stroke: var(--border); stroke-width: 0.8; stroke-dasharray: 1 2; }
.fa-na { fill: var(--at-na); fill-opacity: 0.55; }
.fa-noprior { fill: none; stroke: var(--muted); stroke-width: 0.8; stroke-opacity: 0.6; }
.fa-selected { fill: none; stroke: var(--at-ink-strong); stroke-width: 2.2; }
.fa-era { stroke: none; }
.fa-era-0 { fill: rgb(var(--at-a-wash) / 0.12); }
.fa-era-1 { fill: rgb(var(--at-window) / 0.12); }
.fa-era-label { fill: var(--text); font-size: 10.5px; font-weight: 750; }
.fa-era-caption { fill: var(--muted); font-size: 10.5px; font-style: italic; }
.fa-hit { fill: transparent; cursor: pointer; }
.fa-hit:hover { fill: rgb(var(--at-a-wash) / 0.06); }
.fa-swatch { display: inline-block; width: 14px; height: 12px; border-radius: 2px; vertical-align: middle; }
.fa-sw-na { background: var(--at-na); opacity: 0.6; }
.fa-sw-out { border: 1px dotted var(--muted); }
.fa-sw-noprior { border: 1px solid var(--muted); }
.fa-scale-note { flex-basis: 100%; }
.fa-ranks { list-style: none; margin: 0.7rem 0 0; padding: 0.6rem 0 0; border-top: 1px solid var(--border); display: grid; gap: 0.3rem; }
.fa-ranks li { display: grid; grid-template-columns: 1fr auto; column-gap: 0.6rem; font-size: 0.84rem; }
.fa-ranks span { font-weight: 700; }
.fa-ranks b { text-align: right; font-variant-numeric: tabular-nums; }
.fa-ranks em { grid-column: 1 / -1; color: var(--muted); font-style: normal; font-size: 0.72rem; }
.fa-continuity, .fa-now { margin: 0.75rem 0 0; padding: 0.6rem 0 0; border-top: 1px solid var(--border); }
.fa-cont-big, .fa-now-record { margin: 0.15rem 0 0; font-family: var(--font-display); font-size: 1.9rem; font-weight: 850; color: var(--at-a); line-height: 1.05; }
.fa-cont-big small, .fa-now-record small { display: block; font-family: inherit; font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.fa-cont-counts { display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--muted); }
.fa-cont-counts b { color: var(--text); }
.fa-leaders-k { margin-top: 0.75rem; }
.fa-leaders { margin: 0.25rem 0 0; padding-left: 1.1rem; font-size: 0.84rem; display: grid; gap: 0.15rem; }
.fa-leaders li span { color: var(--muted); margin-left: 0.4rem; font-size: 0.74rem; }
.fa-wide { grid-column: 1 / -1; }
.fa-inline { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin: 0 0.8rem 0.4rem 0; }
.fa-inline select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.25rem 0.4rem; }
.fa-river-name { fill: var(--text); font-size: 11.5px; font-weight: 700; }
.fa-river-name.other { fill: var(--muted); font-style: italic; }
.fa-river-other { fill: var(--muted); font-size: 10.5px; }
.fa-river-bar { fill: var(--at-a); fill-opacity: 0.75; }
.fa-river-bar.sel { fill-opacity: 1; }
.fa-river-flow { stroke: var(--at-a); stroke-opacity: 0.25; fill: none; stroke-linecap: round; }
.fa-river-sel { fill: rgb(var(--at-window) / 0.08); stroke: rgb(var(--at-window) / 0.45); stroke-dasharray: 3 3; }
.fa-heat .ca-svg { min-width: 680px; }
.fa-hm-label { fill: var(--muted); font-size: 10.5px; }
.fa-hm-label.active { fill: var(--at-ink-strong); font-weight: 850; }
.fa-hm-cell { cursor: pointer; }
.fa-hm-active { fill: none; stroke: var(--at-ink-strong); stroke-width: 1.3; }
.fa-star { fill: var(--muted); fill-opacity: 0.22; }
.fa-star-path { stroke: var(--at-a); stroke-opacity: 0.45; stroke-width: 1.2; }
.fa-star-mine { fill: var(--at-a); stroke: var(--at-stage); stroke-width: 1.2; cursor: pointer; }
.fa-star-mine.sel { fill: var(--at-heat-hot); stroke: var(--at-ink-strong); stroke-width: 2; }
.fa-neighbours { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; font-size: 0.86rem; }
.fa-neighbours span { color: var(--muted); font-size: 0.74rem; margin-left: 0.4rem; font-variant-numeric: tabular-nums; }
#time-machine:focus { outline: none; }

/* Signal X-Ray -------------------------------------------------------------------------- */
.xr-presets { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.7rem; }
.xr-presets button {
  font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--text); background: var(--panel);
  border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.8rem; min-height: 2.1rem; cursor: pointer;
}
.xr-presets button[aria-pressed="true"] { border-color: var(--at-a); background: rgb(var(--at-a-wash) / 0.1); color: var(--at-a); }
.xr-presets button:focus-visible, .xr-swap:focus-visible, .xr-list button:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.xr-swap { font: inherit; font-weight: 800; font-size: 0.82rem; color: var(--brand-2); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; min-height: 2.4rem; padding: 0 0.7rem; cursor: pointer; }
.xr-lede { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.92rem; }
.xr-field { display: flex; justify-content: center; }
.xr-band { fill: rgb(var(--at-a-wash) / 0.06); }
.xr-diagonal { stroke: var(--muted); stroke-width: 1.3; stroke-dasharray: 5 5; }
.xr-diag-label, .xr-zone { fill: var(--muted); font-size: 11px; font-style: italic; }
.xr-dot { fill: var(--muted); fill-opacity: 0.38; cursor: pointer; }
.xr-dot.far.up { fill: var(--at-a); fill-opacity: 0.8; }
.xr-dot.far.down { fill: var(--at-o); fill-opacity: 0.8; }
.xr-dot.sel-solo { fill: var(--at-ink-strong); fill-opacity: 1; }
.xr-dot:hover { fill-opacity: 1; }
.xr-name { fill: var(--text); font-size: 10.5px; font-weight: 650; paint-order: stroke; stroke: var(--at-stage); stroke-width: 3px; }
.xr-sel { fill: var(--at-ink-strong); stroke: var(--at-stage); stroke-width: 2; cursor: pointer; }
.xr-sel.q { fill: var(--at-b); }
.xr-sel-halo { fill: none; stroke: var(--at-ink-strong); stroke-width: 1.6; }
.xr-sel-halo.q { stroke: var(--at-b); }
.xr-sel-label { fill: var(--at-ink-strong); font-size: 12.5px; font-weight: 850; letter-spacing: 0.06em; paint-order: stroke; stroke: var(--at-stage); stroke-width: 4px; }
.xr-sel-label.q { fill: var(--at-b); }
.xr-axis-title { fill: var(--muted); font-size: 12px; font-weight: 700; }
.xr-context { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0.55rem 0 0; color: var(--muted); font-size: 0.78rem; }
.xr-context b { color: var(--text); }
.xr-held { padding: 1.2rem; border: 1px dashed var(--border); border-radius: var(--at-radius); margin: 0.6rem 0; }
.xr-lg-up { background: var(--at-a); border-radius: 50%; width: 10px; }
.xr-lg-down { background: var(--at-o); border-radius: 50%; width: 10px; }
.xr-lg-band { background: rgb(var(--at-a-wash) / 0.15); }
.xr-bars { display: grid; gap: 0.55rem; margin: 0.8rem 0 0; }
.xr-bar-row { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 0.5rem; align-items: baseline; }
.xr-bar-row span { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.04em; }
.xr-bar-row b { font-family: var(--font-display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.xr-bar-row small { grid-column: 1 / -1; color: var(--muted); font-size: 0.74rem; }
.xr-track { grid-column: 1 / -1; display: block; height: 8px; border-radius: 999px; background: var(--panel-2); position: relative; overflow: hidden; }
.xr-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.xr-fill.x { background: var(--at-o); }
.xr-fill.y { background: var(--at-a); }
.xr-gap { margin: 0.8rem 0 0; font-size: 0.95rem; font-weight: 700; }
.xr-gap strong { font-family: var(--font-display); font-size: 1.5rem; }
.xr-layer { margin: 0.7rem 0 0; padding: 0.55rem 0 0; border-top: 1px solid var(--border); }
.xr-layer h4 { margin: 0; font-size: 0.72rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; color: var(--at-window-ink); }
.xr-layer p { margin: 0.25rem 0 0; font-size: 0.84rem; line-height: 1.45; }
.xr-dep b { display: inline-block; margin-right: 0.3rem; padding: 0 0.4rem; border: 1px dashed var(--brand); border-radius: 999px; font-size: 0.7rem; text-transform: uppercase; color: var(--brand); }
.xr-bridge-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 900px) { .xr-bridge-grid { grid-template-columns: minmax(0, 1fr); } }
.xr-rail { stroke: var(--border); stroke-width: 3; }
.xr-rail-title { fill: var(--text); font-size: 12px; font-weight: 800; }
.xr-bridge { stroke-width: 1.6; stroke-opacity: 0.75; }
.xr-bridge.up { stroke: var(--at-a); }
.xr-bridge.down { stroke: var(--at-o); }
.xr-bridge.sel { stroke: var(--at-ink-strong); stroke-width: 3; stroke-opacity: 1; }
.xr-bridge-dot.up { fill: var(--at-a); }
.xr-bridge-dot.down { fill: var(--at-o); }
.xr-bridge-dot.sel { fill: var(--at-ink-strong); }
.xr-bridge-label { fill: var(--muted); font-size: 10.5px; cursor: pointer; }
.xr-bridge-label.sel { fill: var(--at-ink-strong); font-weight: 850; }
.xr-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.xr-lists h3 { margin: 0 0 0.3rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.xr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.xr-list button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; width: 100%; padding: 0.3rem 0.45rem; border-radius: 6px; cursor: pointer; font-size: 0.82rem; }
.xr-list button[aria-pressed="true"] { background: rgb(var(--at-a-wash) / 0.12); }
.xr-list button:hover { background: var(--panel-2); }
.xr-list b { font-variant-numeric: tabular-nums; }
.xr-list small { grid-column: 1 / -1; color: var(--muted); font-size: 0.7rem; }
.xr-node { fill: var(--panel-2); stroke-width: 2; }
.xr-node.x { stroke: var(--at-o); }
.xr-node.y { stroke: var(--at-a); }
.xr-node-label { fill: var(--text); font-size: 13px; font-weight: 850; }
.xr-edge { fill: none; stroke: var(--border); stroke-width: 1.4; }
.xr-edge.shared { stroke: var(--brand); stroke-width: 2; }
.xr-token { fill: var(--muted); font-size: 11px; }
.xr-token.shared { fill: var(--brand); font-weight: 800; }
.xr-dc { margin: 0 0 0.9rem; }
.xr-dc-eq { margin: 0 0 0.35rem; font-weight: 800; font-size: 0.86rem; }
.xr-dc-row { display: grid; grid-template-columns: 4.6rem 1fr 4rem; gap: 0.5rem; align-items: center; font-size: 0.82rem; }
.xr-dc-row b { text-align: right; font-variant-numeric: tabular-nums; }
.xr-dc-row.total { font-weight: 800; }
.xr-dc-track { display: block; position: relative; height: 12px; background: linear-gradient(var(--border), var(--border)) center / 1px 100% no-repeat; }
.xr-dc-fill { position: absolute; top: 1px; bottom: 1px; border-radius: 3px; }
.xr-dc-fill.o { background: var(--at-o); }
.xr-dc-fill.d { background: var(--at-d); }
.xr-dc-fill.t { background: var(--at-ink-strong); }
#signal-xray .atlas-toolbar select { min-width: 7.5rem; max-width: 14rem; }
#signal-xray .atlas-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1.2rem; }
#signal-xray .atlas-head .eyebrow { flex-basis: 100%; }
#signal-xray .atlas-question { flex: 1 1 22rem; margin: 0 0 0.8rem; }
.xr-presets button { font-size: 0.74rem; padding: 0.25rem 0.65rem; min-height: 1.9rem; }
.xr-leader { fill: none; stroke: var(--border); stroke-width: 1; }
.atlas-toolbar > *, .atlas-field > * { min-width: 0; }
.atlas-seg { max-width: 100%; }
@media (max-width: 640px) {
  .atlas-toolbar select { width: 100%; }
  .atlas-seg { border-radius: 14px; }
}

/* Career Atlas: side-by-side careers */
.atlas-side { margin-top: 1.4rem; padding: 1rem 1.05rem; border: 1px solid var(--border); border-radius: var(--at-radius); background: var(--panel); }
.atlas-side h2 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: var(--display-tracking); }
.ca-multiples { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0.6rem 1.2rem; }
.ca-multiple { margin: 0; min-width: 0; }
.ca-multiple figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.6rem; }
.ca-multiple figcaption a { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; color: var(--at-ink-strong); }
.ca-multiple small { flex-basis: 100%; color: var(--muted); font-size: 0.76rem; }
.ca-point.best { fill: rgb(var(--at-window)); }
.fp-gap { border: 1px dashed var(--border); border-radius: 4px; min-width: 1rem; }

/* Home page preview */
.atlas-preview { margin: 1.6rem 0; }
.atlas-preview h2 { margin: 0 0 0.6rem; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: var(--display-tracking); }
.ap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.ap-card { display: grid; align-content: start; gap: 0.35rem; min-width: 0; padding: 0.8rem 0.9rem; border: 1px solid var(--border); border-radius: var(--at-radius); background: var(--at-stage); color: var(--text); }
.ap-card:hover { border-color: var(--at-a); text-decoration: none; }
.ap-card:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.ap-name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--at-ink-strong); }
.ap-line { color: var(--muted); font-size: 0.86rem; }
.ap-cell { fill: var(--at-a); }
.ap-top { fill: var(--at-heat-hot); }

/* Signal X-Ray: patterns */
.xr-patterns { margin-top: 1rem; }
.xr-pattern-list { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0.2rem 1.4rem; }
.xr-pattern-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 0.6rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); color: var(--text); }
.xr-pattern-list span { grid-column: 1 / -1; color: var(--muted); font-size: 0.78rem; }
.atlas-lenses { align-items: start; }
