/* Text only. No logos, no trademarks as graphics, no images at all - the one
   visual mark per product is its emoji. */

:root {
  color-scheme: light dark;

  --ink: #14181d;
  --ink-soft: #565f6b;
  --ink-faint: #8b95a1;
  --paper: #fbfaf8;
  --card: #ffffff;
  --rule: #e2e0da;
  --rule-strong: #c8c5bd;

  --rename: #eb6834;
  --rename-bg: #f9e6dd;
  --assimilation: #2a78d6;
  --assimilation-bg: #dee8f3;
  --generation: #1baf7a;
  --generation-bg: #dcf0e6;
  --weak: #8a6d1f;
  --weak-bg: #f8f1dd;

  --measure: 68rem;
  --radius: 3px;

  --era-a-bg: #f3efe4;
  --tl-label-width: 13.5rem;

  /* The analysis plot's two-column geometry. The gridline layer has to start
     where the bars start, which is the label column *plus* the column gap -
     leaving the gap out puts every gridline 12px left of the value it marks. */
  --an-label-width: 14rem;
  --an-gap: 0.75rem;
  --an-value-width: 4.5rem;

  /* Fixed, NOT theme-swapped: text drawn on a saturated segment fill.
     The categorical fills sit in a moderate-lightness band in both themes
     (see dataviz skill), so dark text reads better than light text on them
     regardless of the surrounding page theme - confirmed by contrast math,
     not assumed. */
  --fill-ink: #14181d;
}

/* Three theme states, not two: an explicit choice stamps data-theme on the root,
   while the default "system" setting stamps nothing and leaves only the media
   query. Tokens are redefined for both so either signal wins in either
   direction; no component colour is ever declared inside these blocks. */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e6e3dd;
    --ink-soft: #a4a9b1;
    --ink-faint: #737b85;
    --paper: #14161a;
    --card: #1b1e23;
    --rule: #2c3037;
    --rule-strong: #3d434c;

    --rename: #d95926;
    --rename-bg: #3f251d;
    --assimilation: #3987e5;
    --assimilation-bg: #1c2f47;
    --generation: #199e70;
    --generation-bg: #15342d;
    --weak: #d9bd6d;
    --weak-bg: #2e2718;

    --era-a-bg: #23241f;
  }
}

:root[data-theme="dark"] {
  --ink: #e6e3dd;
  --ink-soft: #a4a9b1;
  --ink-faint: #737b85;
  --paper: #14161a;
  --card: #1b1e23;
  --rule: #2c3037;
  --rule-strong: #3d434c;

  --rename: #d95926;
  --rename-bg: #3f251d;
  --assimilation: #3987e5;
  --assimilation-bg: #1c2f47;
  --generation: #199e70;
  --generation-bg: #15342d;
  --weak: #d9bd6d;
  --weak-bg: #2e2718;

  --era-a-bg: #23241f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: var(--measure); margin: 0 auto; }

a { color: inherit; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* ---------- header ---------- */

header.masthead {
  padding: 3.5rem 0 1.75rem;
  border-bottom: 2px solid var(--ink);
}

.masthead h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.masthead .standfirst {
  margin: 0.9rem 0 0;
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.masthead nav {
  margin-top: 1.4rem;
  display: flex;
  gap: 1.25rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.masthead nav [aria-current="page"] { font-weight: 700; text-decoration: none; }

.tally {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.25rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.tally b {
  display: block;
  font-family: inherit;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- controls ---------- */

.controls {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  padding: 1rem 0 0.9rem;
  border-bottom: 1px solid var(--rule);
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.controls .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
}

.controls .row + .row { margin-top: 0.65rem; }

.controls label.field {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
}

input[type="search"], select {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 0.38rem 0.6rem;
}

input[type="search"] { min-width: 15rem; flex: 1 1 15rem; text-transform: none; letter-spacing: 0; }
input[type="search"]:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.chip {
  font: inherit;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  cursor: pointer;
}

.chip:hover { border-color: var(--ink-faint); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.result-count {
  margin: 0.9rem 0 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* ---------- product ---------- */

.product {
  border-bottom: 1px solid var(--rule);
  padding: 2rem 0;
}

.product > header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product .mark {
  font-size: 1.6rem;
  line-height: 1;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.product h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

.product .meta {
  margin: 0.45rem 0 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.83rem;
  color: var(--ink-soft);
}

.product .meta .sep { color: var(--ink-faint); padding: 0 0.45rem; }

/* ---------- the chain of names ---------- */

.chain { list-style: none; margin: 1.35rem 0 0; padding: 0; }

.chain > li {
  position: relative;
  padding: 0 0 1.25rem 1.5rem;
  border-left: 2px solid var(--rule);
}

.chain > li:last-child { padding-bottom: 0; border-left-color: transparent; }

.chain > li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--rule-strong);
}

.chain > li.is-current::before { background: var(--ink); border-color: var(--ink); }

.period-name {
  font-size: 1.06rem;
  font-weight: 600;
}

.chain > li.is-superseded .period-name { color: var(--ink-soft); }

.period-when {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.1rem;
}

.period-when .dates { font-variant-numeric: tabular-nums; }

.badge {
  display: inline-block;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.1rem 0.42rem;
  vertical-align: 0.12em;
}

.badge.rename { color: var(--rename); background: var(--rename-bg); }
.badge.assimilation { color: var(--assimilation); background: var(--assimilation-bg); }
.badge.generation { color: var(--generation); background: var(--generation-bg); }
.badge.neutral { color: var(--ink-soft); background: transparent; border: 1px solid var(--rule-strong); }
.badge.weak { color: var(--weak); background: var(--weak-bg); }

.sources {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.sources li { margin-top: 0.15rem; }
.sources a { color: var(--ink-soft); }

/* ---------- empty state, footer ---------- */

.empty {
  padding: 3rem 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

footer.notes {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 2px solid var(--ink);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

footer.notes h2 {
  font-size: 0.8rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink);
  margin: 1.5rem 0 0.5rem;
}

footer.notes p { margin: 0.5rem 0; max-width: 46rem; }
footer.notes dl { margin: 0.5rem 0; max-width: 46rem; }
footer.notes dt { font-weight: 600; color: var(--ink); margin-top: 0.6rem; }
footer.notes dd { margin: 0.1rem 0 0; }

@media (max-width: 34rem) {
  body { padding: 0 0.9rem 4rem; }
  .controls { position: static; }
  .tally { gap: 0 1.4rem; }
}

/* ================================================================
   Timeline page. Same tokens as the register (colors, type, spacing);
   this section only adds what a time-scaled chart needs: a two-column
   grid (row label | scrollable track) shared by the ruler, the era
   bands, the axis lines and every product row, so all four align on
   the same x origin without JS having to keep them in sync by hand.
   ================================================================ */

.wrap--wide { max-width: 84rem; }

.tl-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.tl-toggle input { accent-color: var(--ink); }

/* ---------- legend ---------- */

.tl-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 0.9rem 0 1.1rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.tl-legend-item { display: inline-flex; align-items: center; gap: 0.4rem; }

.tl-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  background: var(--rule-strong);
  flex: none;
}

.tl-swatch--start { background: var(--ink-faint); }
.tl-swatch--rename { background: var(--rename); }
.tl-swatch--assimilation { background: var(--assimilation); }
.tl-swatch--generation { background: var(--generation); }
.tl-swatch--era { background: var(--era-a-bg); border: 1px solid var(--rule); }

/* ---------- scroll frame ---------- */

.tl-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
}

.tl-ruler, .tl-chart {
  display: grid;
  grid-template-columns: var(--tl-label-width, 13.5rem) var(--tl-track-width, 100%);
  width: max-content;
  min-width: 100%;
}

.tl-ruler {
  position: relative;
  height: 1.9rem;
  border-bottom: 1px solid var(--rule);
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.tl-ruler-spacer {
  position: sticky;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 0 0.9rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  background: var(--card);
  border-right: 1px solid var(--rule);
}

.tl-ruler-track { position: relative; }

.tl-year-label {
  position: absolute;
  top: 50%;
  transform: translate(0.4rem, -50%);
  font-size: 0.72rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

.tl-year-label--today {
  color: var(--rename);
  font-weight: 700;
  transform: translate(0.4rem, -50%);
}

/* ---------- chart body ---------- */

.tl-chart { position: relative; }

.tl-row-label {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.9rem;
  height: var(--tl-row-height, 40px);
  background: var(--card);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 0.88rem;
  overflow: hidden;
}

.tl-row-label > .tl-row-mark { flex: none; }

.tl-row-label > span:last-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tl-row-label--anchor {
  font-weight: 700;
  background: var(--generation-bg);
  border-bottom: 2px solid var(--ink);
}

.tl-row-mark { font-family: ui-sans-serif, system-ui, sans-serif; }

.tl-track {
  position: relative;
  height: var(--tl-row-height, 40px);
  border-bottom: 1px solid var(--rule);
  z-index: 1;
}

.tl-track--anchor { border-bottom: 2px solid var(--ink); }

/* ---------- era bands + gridlines (background layers) ---------- */

.tl-eras, .tl-axis {
  position: absolute;
  top: 0;
  left: var(--tl-label-width, 13.5rem);
  width: var(--tl-track-width, 100%);
  height: 100%;
  pointer-events: none;
}

.tl-eras { z-index: 0; }
.tl-axis { z-index: 0; }

.tl-era { position: absolute; top: 0; height: 100%; }
.tl-era--a { background: var(--era-a-bg); }
.tl-era--b { background: transparent; }

.tl-year {
  position: absolute;
  top: 0;
  height: 100%;
  border-left: 1px solid var(--rule);
}

.tl-year--today { border-left: 1px dashed var(--rename); }

/* ---------- period segments ---------- */

.tl-seg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: var(--tl-bar-height, 22px);
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  border: none;
  border-radius: 4px;
  box-shadow: 0 0 0 2px var(--card);
  font: inherit;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.75rem;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.tl-seg:hover, .tl-seg:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink);
  outline: none;
}

.tl-seg[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink);
}

.tl-seg--start { background: var(--ink-faint); color: var(--fill-ink); }
.tl-seg--rename { background: var(--rename); color: var(--fill-ink); }
.tl-seg--assimilation { background: var(--assimilation); color: var(--fill-ink); }
.tl-seg--generation { background: var(--generation); color: var(--fill-ink); }
.tl-seg--muted { background: var(--rule-strong); color: var(--ink-soft); }

.tl-seg-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- hover tooltip (transient) ---------- */

.tl-tooltip, .an-tooltip {
  position: absolute;
  z-index: 20;
  max-width: 20rem;
  padding: 0.45rem 0.6rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  line-height: 1.4;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.tl-tooltip-name, .an-tooltip-name { font-weight: 600; }
.tl-tooltip-meta, .an-tooltip-meta { color: color-mix(in srgb, var(--paper) 75%, transparent); margin-top: 0.1rem; }

/* ---------- pinned detail panel ---------- */

.tl-detail {
  margin-top: 1.1rem;
  padding: 1rem 1.2rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
}

.tl-detail h2 { margin: 0; font-size: 1.15rem; }

.tl-detail-sub {
  margin: 0.35rem 0 0.7rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.83rem;
  color: var(--ink-soft);
}

@media (max-width: 40rem) {
  .tl-scroll { --tl-label-width: 9rem; }
  .tl-row-label { font-size: 0.8rem; padding: 0 0.6rem; }
}

/* ================================================================
   Analysis page. Same tokens again; what this section adds is a
   two-column row (label | plot track) shared by every bar, the axis
   and the gridline layer, so all three measure from the same x
   origin. The categorical fills are the register's three transition
   colours - already validated for both themes - plus one neutral for
   a name that has not ended.
   ================================================================ */

.an-hint { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.8rem; color: var(--ink-faint); }

.an-tooltip { display: none; }

/* ---------- hero figures ---------- */

.an-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.5rem 2rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.an-hero b {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.an-hero-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.86rem;
  color: var(--ink);
}

.an-hero-note {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ---------- sections ---------- */

.an-section {
  margin-top: 3.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.an-section h2 { margin: 0; font-size: 1.3rem; letter-spacing: -0.01em; }

.an-lede {
  margin: 0.5rem 0 1.25rem;
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ---------- legend ---------- */

.an-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-bottom: 1rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.an-legend[hidden] { display: none; }
.an-legend-item { display: inline-flex; align-items: center; gap: 0.4rem; }

.an-swatch { width: 0.85rem; height: 0.5rem; border-radius: 3px; flex: none; }
.an-swatch.an-bar--running { background: var(--ink-faint); }

/* ---------- plot ---------- */

.an-plot { position: relative; }

.an-grid {
  position: absolute;
  top: 0;
  left: calc(var(--an-label-width) + var(--an-gap));
  right: var(--an-value-width);
  height: 100%;
  pointer-events: none;
}

/* Hairline, solid, one shade off the surface: a gridline is not a threshold
   and should not read like one. The median rule is the exception - it is a
   threshold, so it is the only dashed line here. */
.an-gridline { position: absolute; top: 0; height: 100%; border-left: 1px solid var(--rule); }

.an-reference {
  position: absolute;
  top: 0;
  height: 100%;
  border-left: 1px dashed var(--ink-soft);
}

.an-row, .an-axis {
  display: grid;
  grid-template-columns: var(--an-label-width) 1fr;
  gap: var(--an-gap);
  align-items: center;
}

.an-row-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.an-row-label > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.an-mark { flex: none; font-family: ui-sans-serif, system-ui, sans-serif; }

/* The 2px vertical padding is the surface gap between neighbouring bars - a
   gap, not a border drawn around each one. */
.an-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 2px 0;
  padding-right: var(--an-value-width);
  min-width: 0;
}

.an-bar {
  display: block;
  height: 12px;
  min-width: 3px;
  border-radius: 0 4px 4px 0;
  flex: none;
  text-decoration: none;
}

a.an-bar:hover, a.an-bar:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink);
  outline: none;
}

.an-bar--rename { background: var(--rename); }
.an-bar--assimilation { background: var(--assimilation); }
.an-bar--generation { background: var(--generation); }
/* A neutral, deliberately not one of the three categorical hues: a name
   that has not ended yet is the absence of a transition, not a fourth kind
   of one. --ink-faint rather than --rule-strong so the longest bars in the
   chart still hold their own against the surface in dark mode. */
.an-bar--running { background: var(--ink-faint); }

.an-value {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
  color: var(--ink-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Part of the plot, not below it: the axis band is inside the same container,
   so the labels can never be cut off by a fixed height. */
.an-axis {
  position: relative;
  margin-top: 0.6rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--rule);
}

.an-axis-track { position: relative; height: 1.6rem; margin-right: var(--an-value-width); }

.an-tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  color: var(--ink-faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.an-tick--reference { top: 0.95rem; color: var(--ink-soft); }

/* ---------- tables ---------- */

.an-table {
  width: 100%;
  border-collapse: collapse;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.85rem;
}

.an-table th, .an-table td {
  text-align: left;
  padding: 0.4rem 0.75rem 0.4rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.an-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  border-bottom-color: var(--rule-strong);
}

.an-table tbody th { font-weight: 600; color: var(--ink); }
.an-table tbody td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- waves ---------- */

.an-waves { list-style: none; margin: 0; padding: 0; }

.an-waves > li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.an-wave-date {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 600;
  margin-right: 0.6rem;
}

.an-wave-names { margin-top: 0.25rem; }
.an-wave-names a { color: var(--ink-soft); }
.an-wave-names .sep { color: var(--ink-faint); padding: 0 0.4rem; }

.an-wave-id { display: block; margin-top: 0.25rem; font-size: 0.72rem; color: var(--ink-faint); }

/* ---------- index ---------- */

.an-index-list { list-style: none; margin: 0; padding: 0; }

.an-index-list > li {
  display: grid;
  grid-template-columns: var(--an-label-width) 1fr 2.5rem;
  gap: 0.2rem var(--an-gap);
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.an-index-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.88rem;
}

.an-index-name > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.an-meter { height: 12px; background: var(--rule); border-radius: 4px; overflow: hidden; }
.an-meter-fill { height: 100%; background: var(--rename); border-radius: 0 4px 4px 0; }

.an-index-score {
  text-align: right;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.an-index-note {
  grid-column: 2 / -1;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
  color: var(--ink-faint);
}

@media (max-width: 46rem) {
  :root { --an-label-width: 8.5rem; --an-value-width: 3.5rem; }
}

/* A running name whose last sighting is old. Marked, not hidden: the register
   records no endings, so the period still runs - the reader just gets to see
   how far back the evidence stops. */
.period-when .stale { color: var(--weak); font-weight: 600; }

