:root {
  --bg: #fbfaf7; --fg: #1d1d1b; --muted: #5d5d58; --link: #0b4fa8;
  --rule: #d9d6cc; --quote-bg: #f0ede4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15161a; --fg: #ececea; --muted: #a3a39c; --link: #8ab4f8;
    --rule: #34353b; --quote-bg: #22242a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: anywhere;
}
main { max-width: 42rem; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 1.2rem 0 .4rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
h3 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
.tagline { font-size: 1.1rem; margin: 0 0 .4rem; }
.asof { color: var(--muted); margin: 0; font-size: .9rem; }
a { color: var(--link); }
.fact { cursor: pointer; }
.toggle { display: none; margin-left: .4em; font: inherit; font-size: .8em;
  color: var(--link); background: none; border: 1px solid var(--rule);
  border-radius: 4px; padding: 0 .4em; cursor: pointer; }
.js .toggle { display: inline; }
.fact .src { margin-left: .4em; font-size: .85em; color: var(--muted); }
.fact .arch { font-size: .85em; color: var(--muted); }
.fact .quote { display: block; margin: .3em 0; padding: .4em .6em;
  background: var(--quote-bg); border-left: 3px solid var(--rule);
  font-style: italic; }
.js .fact .quote[hidden] { display: none; }
.rule { margin-bottom: .6rem; }
.table-wrap { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { border: 1px solid var(--rule); padding: .35rem .5rem; text-align: left; vertical-align: top; }
.scroll-x { overflow-x: auto; max-width: 100%; }
.undocumented { color: var(--muted); font-style: italic; }
.counted-by { font-size: .85em; color: var(--muted); }
.sur { display: block; font-size: .9em; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 3px solid var(--rule); }
.node { margin: 0 0 .8rem; padding-left: .5rem; }
.node .year { font-weight: 700; }
.badge { display: inline-block; font-size: .75rem; padding: 0 .5rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--muted); }
.card { border: 1px solid var(--rule); border-radius: 6px; padding: .6rem .8rem; margin: 1rem 0; overflow-wrap: anywhere; }
.card h3 { margin: 0 0 .2rem; }
.card h4 { margin: .6rem 0 .2rem; font-size: .95rem; color: var(--muted); }
.card ul, td ul { margin: 0; padding-left: 1.1rem; }
td ul { min-width: 12rem; }
@media (min-width: 900px) {
  .timeline { display: flex; gap: 1rem; border-left: 0; border-top: 3px solid var(--rule); padding: .8rem 0 0; overflow-x: auto; }
  .node { flex: 0 0 11rem; padding: 0; }
}
.scroll-x table { min-width: 64rem; }
.scroll-x th[scope="col"] { white-space: nowrap; }
.scroll-x th[scope="row"] { min-width: 9rem; }
.node a { overflow-wrap: anywhere; }
.layer-filters { display: none; gap: .8rem; flex-wrap: wrap; }
.js .layer-filters { display: flex; }
.js [data-layer][hidden] { display: none; }
.proportion { list-style: none; padding: 0; }
.prop { margin: 0 0 1rem; overflow-wrap: anywhere; }
.figure { font-weight: 700; }
.bar { display: block; height: .6rem; margin: .3rem 0 0; background: var(--quote-bg); border: 1px solid var(--rule); }
.bar .fill { display: block; height: 100%; background: var(--link); }
.pct { font-size: .85em; color: var(--muted); }
.day ul { margin: 0; padding-left: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0; }
.chip { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: .2rem .8rem; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; }
.chip[aria-current="true"] { background: var(--link); border-color: var(--link); color: var(--bg, #fff); font-weight: 700; }
.compare-picker { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin: .5rem 0; }
.compare-picker label { font-size: .9rem; color: var(--muted); }
.compare-picker select { max-width: 100%; min-height: 44px; font: inherit; margin-right: .5rem; }
/* phone first: one block per measure, each cell named by its movement */
table.compare, table.compare tbody, table.compare tr, table.compare th[scope="row"], table.compare td { display: block; }
table.compare { min-width: 0; }
table.compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
table.compare tr { margin: 0 0 1rem; }
table.compare th[scope="row"] { border-bottom: 0; background: var(--quote-bg); }
table.compare td + td { border-top: 0; }
table.compare td::before { content: attr(data-label); display: block; font-weight: 700; }
@media (min-width: 900px) {
  table.compare { display: table; }
  table.compare thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: table-header-group; }
  table.compare tbody { display: table-row-group; }
  table.compare tr { display: table-row; margin: 0; }
  table.compare th[scope="row"], table.compare td { display: table-cell; }
  table.compare th[scope="row"] { border-bottom: 1px solid var(--rule); background: none; overflow-wrap: break-word; hyphens: auto; }
  table.compare td + td { border-top: 1px solid var(--rule); }
  table.compare td::before { content: none; }
  table.compare th[scope="col"] { white-space: normal; min-width: 12rem; }
  table.compare td { min-width: 12rem; }
}
.differ { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); }
.differ[hidden] { display: none; }
[data-movement][hidden], main > section[hidden] { display: none; }
