@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-variable.woff2") format("woff2-variations"), url("fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-variable.woff2") format("woff2-variations"), url("fonts/source-serif-4-variable.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-variable-italic.woff2") format("woff2-variations"), url("fonts/source-serif-4-variable-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* The chart's inks on chart paper. Region inks are the model's five streams; g1–g4 are the greys of the religion row.
   Both editions pass the dataviz palette check (lightness band, chroma, colour-blind and normal-vision separation); the
   day ochre sits below 3:1 against the paper, so its band is always lettered and the numbers are also in tables. */
:root {
  color-scheme: light dark;
  --paper: #f3f4f1;
  --paper-2: #e8eae5;
  --paper-3: #dcdfd8;
  --ink: #15181d;
  --ink-2: #454a52;
  --ink-3: #626770;
  --rule: #c9cdc5;
  --sel: rgba(21, 24, 29, 0.075);
  --americas: #d9572b;
  --europe: #2f5fb3;
  --africa: #e8a317;
  --asia: #23946f;
  --oceania: #8a3fb0;
  --on-americas: #ffffff;
  --on-europe: #ffffff;
  --on-africa: #15181d;
  --on-asia: #ffffff;
  --on-oceania: #ffffff;
  --g1: #3b4048;
  --g2: #9aa0a8;
  --g3: #646a73;
  --g4: #c3c7cc;
  --on-g1: #ffffff;
  --on-g2: #15181d;
  --on-g3: #ffffff;
  --on-g4: #15181d;
  --seg-0: #15181d;
  --seg-1: #646a73;
  --seg-2: #9aa0a8;
  --seg-3: #c3c7cc;
  --focus: #2f5fb3;
  --label: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --read: "Source Serif 4", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 2.4vw, 32px);
  --panel-w: clamp(360px, 31vw, 470px);
  --sheet-half: 36dvh;
}
/* The night edition is the reader's choice; the page opens in the day edition whatever the system prefers. */
:root[data-theme="dark"] {
  --paper: #121417; --paper-2: #1c1f23; --paper-3: #2a2e33; --ink: #e7e8e4; --ink-2: #b8bcc2; --ink-3: #9196a0; --rule: #30353b; --sel: rgba(231, 232, 228, 0.09);
  --americas: #e2653a; --europe: #5582d6; --africa: #c08610; --asia: #2ba57c; --oceania: #a05ec8;
  --on-americas: #ffffff; --on-europe: #ffffff; --on-africa: #ffffff; --on-asia: #ffffff; --on-oceania: #ffffff; --letter-halo: rgba(8, 10, 12, 0.7);
  --g1: #d3d6da; --g2: #6b717a; --g3: #a3a8b0; --g4: #474c53; --on-g1: #121417; --on-g2: #ffffff; --on-g3: #121417; --on-g4: #ffffff;
  --seg-0: #e7e8e4; --seg-1: #a3a8b0; --seg-2: #6b717a; --seg-3: #474c53; --focus: #8fb0f0;
}

* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink-3) var(--paper-2); }
body {
  margin: 0;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--label);
  font-size: 15px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums lining-nums;
}
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--ink-3); }
a:hover { text-decoration-color: var(--ink); }
button { font: inherit; color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 3px; }
.skip:focus { top: 8px; }
.noscript, .failed, .loading { padding: 24px; font-family: var(--read); font-size: 1.05rem; color: var(--ink-2); }

/* Masthead: the wall chart's title line, and the question the whole page answers. */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 22px;
  padding: 10px var(--gutter) 8px;
  border-bottom: 3px solid var(--ink);
  position: relative;
  z-index: 20;
}
.masthead h1 { padding-top: 7px; }
.home { text-decoration: none; }
.ask { flex: 1 1 520px; max-width: 760px; min-width: 0; }
.ask-field { position: relative; display: flex; }
.ask-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-right: 0;
  border-radius: 3px 0 0 3px;
  background: var(--paper);
  color: var(--ink);
  font: 600 1.02rem var(--label);
  font-stretch: 98%;
}
.ask-input::placeholder { color: var(--ink-3); font-weight: 520; }
.ask-input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.ask-input::-webkit-search-cancel-button { cursor: pointer; }
.ask-go { flex: none; height: 42px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 0 3px 3px 0; background: var(--ink); color: var(--paper); font-weight: 760; font-size: 0.92rem; cursor: pointer; }
.ask-go:hover { background: var(--ink-2); border-color: var(--ink-2); }
.answers {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.45);
  max-height: min(60vh, 440px);
  overflow: auto;
}
.answers[hidden] { display: none; }
.answer { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 0 10px; padding: 7px 12px; cursor: pointer; }
.answer.is-active { background: var(--paper-2); box-shadow: inset 3px 0 0 var(--ink); }
.answer-kind { grid-row: 1 / span 2; align-self: start; padding-top: 2px; font-size: 10.5px; font-weight: 760; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.answer-title { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.answer-detail { font-size: 0.84rem; color: var(--ink-2); min-width: 0; }
.answer-none { display: block; cursor: default; font-family: var(--read); color: var(--ink-2); }
.ask-hint { margin: 4px 0 0; font-size: 0.84rem; color: var(--ink-2); }
.ask-hint[hidden] { display: none; }
.ask-try { margin: 0; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 650; text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 0.18em; cursor: pointer; }
.ask-try:hover { text-decoration-color: var(--ink); }
.state { display: flex; flex-wrap: wrap; gap: 6px; margin: 5px 0 0; }
.state[hidden] { display: none; }
.state-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 6px 2px 8px; border: 1.5px solid var(--ink); border-radius: 13px; background: var(--paper); font-size: 0.82rem; font-weight: 650; cursor: pointer; }
.state-chip:hover { background: var(--paper-2); }
.state-kind { font-size: 10px; font-weight: 760; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.state-x { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1; }
h1 {
  margin: 0;
  font-weight: 820;
  font-stretch: 114%;
  font-size: clamp(1.35rem, 0.95rem + 1.1vw, 2rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.lede { margin: 0; padding-top: 10px; flex: 1 1 280px; max-width: 46ch; font-family: var(--read); font-size: 0.98rem; line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 1360px) { .lede { display: none; } }

/* The stage: the chart pinned on the left, the panel on the right, each scrolling by itself. */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); min-height: 0; }

/* ---- The chart ---------------------------------------------------------------------------------------------------------- */
.chart { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; min-width: 0; border-right: 1px solid var(--ink); }
.textures { position: absolute; width: 0; height: 0; overflow: hidden; }
.chart-scroll { position: relative; overflow: auto; overscroll-behavior: contain; min-height: 0; touch-action: pan-y pinch-zoom; }
.chart-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: var(--stub, 220px) minmax(0, 1fr);
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
  box-shadow: 0 6px 10px -10px rgba(0, 0, 0, 0.35);
}
.head-stub { position: relative; border-right: 1px solid var(--rule); }
.hs { position: absolute; left: 0; right: 0; display: flex; align-items: center; padding: 0 12px 0 14px; font-size: 11.5px; font-weight: 650; font-stretch: 94%; color: var(--ink-2); letter-spacing: 0.01em; }
.hs-turning, .hs-major, .hs-other, .hs-earth { justify-content: flex-end; }
.hs-turning { color: var(--ink); font-weight: 760; }
.hs-year { justify-content: space-between; gap: 6px; background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hs-year-label { font-weight: 560; }
.hs-year-value { font-size: 13px; font-weight: 800; font-stretch: 108%; color: var(--ink); white-space: nowrap; }
.plot { position: relative; min-width: 0; }
.head-plot { overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.head-plot.is-dragging, .head-plot.is-dragging .band, .head-plot.is-dragging .mark, .head-plot.is-dragging .cluster { cursor: grabbing; }
.head-plot > .art, .row-plot > .art { position: absolute; inset: 0; display: block; }
.ctl { position: absolute; inset: 0; pointer-events: none; }
.ctl > * { pointer-events: auto; }

.band {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0 4px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper-2);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  line-height: 1.1;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.band-era { background: var(--paper); }
.band-name { font-size: 12.5px; font-weight: 720; font-stretch: 94%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.band-era .band-name { font-size: 11.5px; font-weight: 580; font-stretch: 80%; }
.band-length { font-size: 10.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.band.is-tiny .band-name, .band.is-tiny .band-length { visibility: hidden; }
.band-age.is-tight .band-name { white-space: normal; text-overflow: clip; font-size: 11.5px; font-stretch: 82%; line-height: 1.05; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.band-age.is-tight .band-length { display: none; }
.band:hover { background: var(--paper-3); }
.band.is-open { background: var(--ink); color: var(--paper); }
.band.is-open .band-length { color: var(--paper-3); }
.band:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; z-index: 2; }

.tick-line { stroke: var(--ink); stroke-opacity: 0.13; }
.tick-line.is-inside { stroke-opacity: 0.17; }
.tick-label { font-family: var(--label); font-size: 11px; font-weight: 520; font-stretch: 92%; fill: var(--ink-2); }
.tick-label.is-covered { opacity: 0; }
.row-rule { stroke: var(--rule); }
.leader { stroke: var(--ink-3); stroke-width: 1; }
.strip-label { font-family: var(--label); font-size: 11.5px; font-weight: 640; font-stretch: 92%; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.inline-label { font-family: var(--label); font-size: 10.5px; font-weight: 520; font-stretch: 90%; fill: var(--ink-2); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.arc { fill: none; stroke: var(--ink); stroke-linecap: round; }
.arc-all { stroke-opacity: 0.2; stroke-width: 1; }
.arc-out { stroke: var(--ink-3); stroke-width: 1.2; }
.arc-prevents { stroke-dasharray: 4 3; }
.arrow-head { fill: var(--ink); }

/* Event marks: a diamond for an Event of people, a circle for one of the Earth; filled once its causes are weighed. */
.mark {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 4px;
}
.shape { display: block; width: 10px; height: 10px; border: 1.6px solid var(--ink); background: var(--paper); transform: rotate(45deg); transition: box-shadow 140ms ease-out; }
.mark-turning .shape { width: 13px; height: 13px; border-width: 2px; }
.mark-other .shape { width: 8px; height: 8px; border-width: 1.4px; }
.is-earth .shape { border-radius: 50%; transform: none; }
.mark.is-earth .shape { width: 11px; height: 11px; }
.mark-turning.is-earth .shape { width: 14px; height: 14px; }
.is-weighed .shape { background: var(--ink); }
.mark:hover .shape { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink-3); }
.mark.is-linked .shape, .mark.is-lit .shape { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink-2); }
.mark.is-selected .shape { box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 5px var(--ink); }
/* An Event that names the country asked for: a dashed ring in ink (region inks stay for regions). */
.mark.is-named .shape { outline: 1.5px dashed var(--ink); outline-offset: 3px; }
.cluster.is-named { outline: 1.5px dashed var(--ink); outline-offset: 3px; }
.key-named { width: 12px; height: 12px; border: 1.5px dashed var(--ink); border-radius: 2px; }
.key li[hidden] { display: none; }
.mark:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.cluster {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  min-width: 22px;
  margin: 0;
  padding: 0 5px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.cluster::after { content: ""; position: absolute; inset: -3px 0; }
.cluster.has-weighed::before { content: ""; width: 5px; height: 5px; background: var(--ink); transform: rotate(45deg); flex: none; }
.cluster:hover { background: var(--paper-3); }
.cluster.is-selected, .cluster.is-lit, .cluster.is-linked { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.cluster.is-selected { background: var(--ink); color: var(--paper); }
.cluster.is-selected::before { background: var(--paper); }
.cluster:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.selcol { position: absolute; top: 0; bottom: 0; left: 0; background: var(--sel); border-left: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); border-right: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); pointer-events: none; }
.cursor { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-left: 1px solid var(--ink); pointer-events: none; z-index: 2; }
.cursor.is-pin { border-left-style: dashed; border-left-color: var(--ink-3); }
.flag { position: absolute; top: 0; left: 0; z-index: 4; padding: 2px 6px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; border-radius: 2px; white-space: nowrap; pointer-events: none; }
.flag[hidden], .cursor[hidden], .selcol[hidden] { display: none; }

/* A chosen place's own rows, above the world's. */
.place-rows { border-bottom: 1.5px solid var(--ink); }
.place-rows[hidden] { display: none; }
.place-caption { margin: 0; padding: 6px 14px; font-size: 0.84rem; color: var(--ink-2); background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.place-caption strong { color: var(--ink); }
.place-caption-world { border-bottom: 0; border-top: 1px solid var(--rule); font-weight: 650; }
.place-caption-sub { padding: 4px 14px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em; color: var(--ink); background: var(--paper); border-top: 1px solid var(--rule); }
.place-caption-sub .muted { font-weight: 520; }

/* The rows of the model's tree. */
.chart-body { position: relative; }
.rows { margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: var(--stub, 220px) minmax(0, 1fr); border-bottom: 1px solid var(--rule); position: relative; }
.row[hidden] { display: none; }
.row-plot { height: var(--row-h, 46px); }
.body-overlay { position: absolute; top: 0; bottom: 0; left: var(--stub, 220px); right: 0; pointer-events: none; overflow: hidden; }
.row-stub {
  position: relative;
  padding: 3px 10px 3px calc(10px + var(--depth) * 13px);
  border-right: 1px solid var(--rule);
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.3;
}
.row-stub::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--depth) * 13px - 1px); border-left: 1px solid var(--rule); }
.row[data-id="history"] .row-stub::before { display: none; }
.row-line { display: flex; align-items: baseline; gap: 6px; min-width: 0; line-height: 1.22; }
.row-line-2 { color: var(--ink-3); font-size: 11px; padding-left: 20px; }
.row-line-3 { padding-left: 20px; gap: 8px; }
.disclose, .disclose-space { flex: none; width: 14px; height: 14px; }
.disclose { position: relative; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; align-self: center; border-radius: 2px; }
.disclose::before { content: ""; position: absolute; left: 3px; top: 4px; border: 4.5px solid transparent; border-top: 6px solid var(--ink-2); border-bottom: 0; transition: transform 160ms ease-out; }
.disclose[aria-expanded="false"]::before { transform: rotate(-90deg); }
.disclose::after { content: ""; position: absolute; inset: -6px; }
.row-name { flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font-weight: 680; font-stretch: 94%; color: var(--ink); }
.row-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-name:hover .row-label { text-decoration: underline; text-underline-offset: 0.18em; }
.row-val { flex: none; font-weight: 760; font-size: 12.5px; white-space: nowrap; }
.row-unit { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-tag { flex: none; font-style: italic; font-family: var(--read); font-size: 11.5px; }
.row-tag.tag-sketch { color: var(--ink-3); }
.row.is-selected { background: var(--sel); }
.row.is-selected { outline: 1px solid var(--ink); outline-offset: -1px; }
.row.is-collapsed .row-unit::after { content: " · folded"; }
.row-shares { list-style: none; margin: 4px 0 0 20px; padding: 0; display: grid; gap: 1px; font-size: 11.5px; }
.row-shares li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.row-religions .row-shares { font-size: 10.5px; gap: 0; line-height: 1.2; }
.share-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-val { font-weight: 700; }
.chip { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; vertical-align: -1px; }
.bg-americas { background: var(--americas); } .bg-europe { background: var(--europe); } .bg-africa { background: var(--africa); }
.bg-asia { background: var(--asia); } .bg-oceania { background: var(--oceania); }
.bg-g1 { background: var(--g1); } .bg-g2 { background: var(--g2); } .bg-g3 { background: var(--g3); } .bg-g4 { background: var(--g4); }
.ink-americas { fill: var(--americas); } .ink-europe { fill: var(--europe); } .ink-africa { fill: var(--africa); } .ink-asia { fill: var(--asia); }
.ink-oceania { fill: var(--oceania); } .ink-g1 { fill: var(--g1); } .ink-g2 { fill: var(--g2); } .ink-g3 { fill: var(--g3); } .ink-g4 { fill: var(--g4); }
.ink-paper { fill: var(--paper); }
.on-americas { fill: var(--on-americas); } .on-europe { fill: var(--on-europe); } .on-africa { fill: var(--on-africa); } .on-asia { fill: var(--on-asia); }
.on-oceania { fill: var(--on-oceania); } .on-g1 { fill: var(--on-g1); } .on-g2 { fill: var(--on-g2); } .on-g3 { fill: var(--on-g3); } .on-g4 { fill: var(--on-g4); }
.band-path { stroke: var(--paper); stroke-width: 1; stroke-linejoin: round; }
.band-letter { font-family: var(--label); font-weight: 760; font-stretch: 118%; letter-spacing: 0.06em; paint-order: stroke; stroke: var(--letter-halo, transparent); stroke-width: 3px; stroke-linejoin: round; }
.grid-line { stroke: var(--ink); stroke-opacity: 0.09; }
.grid-line.zero { stroke-opacity: 0.3; }
.base-line { stroke: var(--ink); stroke-opacity: 0.22; }
.axis-label { font-family: var(--label); font-size: 10.5px; font-weight: 520; fill: var(--ink-3); }
.range { fill: var(--ink); fill-opacity: 0.08; }
.pin-dot { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.line-label { font-family: var(--label); font-size: 10.5px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.line { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.line-sketch { stroke-width: 2.2; stroke-dasharray: 0.1 3.6; }
.line-sourced { stroke-width: 2.6; }
.row-h-humanity .line, .row-history .line { stroke-width: 2.2; }

/* The key and the controls under the chart. */
.chart-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 6px 14px; border-top: 1.5px solid var(--ink); background: var(--paper); font-size: 11.5px; }
.zoom-out { position: absolute; z-index: 6; left: 8px; top: 4px; min-height: 26px; padding: 3px 9px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--ink); color: var(--paper); font-size: 11.5px; font-weight: 700; cursor: pointer; }
.zoom-out:hover { background: var(--ink-2); }
.zoom-out[hidden] { display: none; }
.chart.is-narrow .zoom-out { left: 4px; top: calc(var(--ticks-top, 58px) - 1px); }
.zoom-tools { position: absolute; z-index: 6; top: 4px; left: calc(var(--stub, 220px) - 66px); display: flex; gap: 3px; }
.zoom-btn { width: 26px; height: 26px; padding: 0; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper); font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; }
.zoom-btn:hover { background: var(--ink); color: var(--paper); }
.chart.is-narrow .zoom-tools { left: 4px; top: calc(var(--ticks-top, 58px) - 1px); }
.chart.is-narrow .zoom-out { left: 64px; }
/* Hiding the Events gives their rows to the measures; the button stays in the slim row they leave. */
.events-toggle { position: absolute; z-index: 6; left: 14px; top: calc(var(--strip-top, 84px) + 9px); min-height: 24px; padding: 2px 8px; border: 1.5px solid var(--ink-3); border-radius: 3px; background: var(--paper); color: var(--ink-2); font-size: 11px; font-weight: 700; cursor: pointer; }
.events-toggle:hover { border-color: var(--ink); color: var(--ink); }
.chart.no-events .events-toggle { top: calc(var(--strip-top, 84px) + 3px); }
.chart.is-narrow .events-toggle { left: 4px; top: calc(var(--strip-top, 76px) + 2px); }
.chart.no-events .hs-turning, .chart.no-events .hs-major, .chart.no-events .hs-other, .chart.no-events .hs-earth { display: none; }
.hs-eras.is-window { color: var(--ink); font-weight: 760; font-size: 12px; white-space: nowrap; overflow: hidden; }
.zoom-hint { margin: 0; color: var(--ink-3); }
.key { display: flex; flex-wrap: wrap; gap: 3px 12px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); }
.key li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.key-mark { width: 9px; height: 9px; border: 1.5px solid var(--ink); background: var(--paper); transform: rotate(45deg); margin: 0 2px; }
.key-mark.is-weighed { background: var(--ink); }
.key-mark.is-earth { border-radius: 50%; transform: none; }
.key-line { width: 22px; height: 0; border-top: 2px solid var(--ink); }
.key-line.sketch { border-top: 2.4px dotted var(--ink); }
.key-range { width: 22px; height: 10px; background: color-mix(in srgb, var(--ink) 13%, transparent); }
.key-fill { width: 16px; height: 10px; border-radius: 1px; }
.key-line.sourced { border-top-width: 3px; }
.key-fill.solid { background: var(--ink-2); }
.key-fill.ruled { background: repeating-linear-gradient(135deg, var(--ink-2) 0 1.6px, transparent 1.6px 3.2px); }
.key-fill.dotted { background: radial-gradient(circle, var(--ink-2) 1px, transparent 1.25px) 0 0 / 3.4px 3.4px; }
.key li .key-mark + .key-mark { margin-left: -1px; }
.toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; margin-left: auto; }
.toggle input { accent-color: var(--ink); width: 15px; height: 15px; margin: 0; }
.tool { appearance: none; border: 1.5px solid var(--ink); background: var(--paper); border-radius: 3px; padding: 5px 10px; font-weight: 650; font-size: 12px; cursor: pointer; min-height: 30px; }
.tool:hover { background: var(--ink); color: var(--paper); }
.tool[hidden] { display: none; }

/* The guide points at the part of the chart it is explaining. */
.chart-head, .chart-body, .ctl-ages, .ctl-eras, .ctl-events { transition: opacity 200ms ease-out; }
.chart[data-spot="time"] .ctl-events, .chart[data-spot="time"] .chart-body { opacity: 0.25; }
.chart[data-spot="events"] .ctl-ages, .chart[data-spot="events"] .ctl-eras, .chart[data-spot="events"] .chart-body { opacity: 0.25; }
.chart[data-spot="rows"] .chart-head { opacity: 0.3; }
.chart[data-spot="sure"] .chart-head { opacity: 0.3; }
.chart[data-spot="sure"] .line, .chart[data-spot="sure"] .range { stroke-width: 2.6; }

/* Narrow charts: the column of names moves above each row. */
.chart.is-narrow .chart-head { grid-template-columns: 0 minmax(0, 1fr); }
.chart.is-narrow .head-stub { visibility: hidden; border: 0; }
.chart.is-narrow .row { grid-template-columns: minmax(0, 1fr); }
.chart.is-narrow .row-stub { border-right: 0; padding: 4px 10px 0 calc(10px + var(--depth) * 8px); }
.chart.is-narrow .row-stub::before { left: calc(var(--depth) * 8px + 2px); }
.chart.is-narrow .row-line-2 { display: none; }
.chart.is-narrow .row-stub { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.chart.is-narrow .row-stub > .row-line:first-child { flex: 1; min-width: 0; }
.chart.is-narrow .row-line-3 { padding-left: 0; }
.chart.is-narrow .row-shares { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 2px 0 0 20px; font-size: 10.5px; }
.chart.is-narrow .row-shares li { display: inline-flex; gap: 4px; }
.chart.is-narrow .body-overlay { left: 0; }
.chart.is-narrow .chart-foot { display: none; }

/* ---- The panel ---------------------------------------------------------------------------------------------------------- */
.panel { display: grid; grid-template-rows: auto auto minmax(0, 1fr); min-height: 0; background: var(--paper); }
/* The bar wraps rather than widening the panel: where its links do not fit beside "Hide panel", they take a second row. */
.panel-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 22px; border-bottom: 1px solid var(--rule); min-height: 44px; }
.sheet-handle { display: none; }
.panel-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; margin-left: auto; }
.panel-nav a { padding: 6px 10px; border-radius: 3px; font-size: 13px; font-weight: 650; text-decoration: none; white-space: nowrap; color: var(--ink-2); }
.panel-nav a:hover { background: var(--paper-2); color: var(--ink); }
.edition { margin-left: 6px; padding: 5px 10px; border: 1.5px solid var(--ink-3); border-radius: 13px; background: var(--paper); color: var(--ink-2); font-size: 12px; font-weight: 700; cursor: pointer; }
.edition:hover { border-color: var(--ink); color: var(--ink); }
/* The globe can be hidden, and phones start without it, so the sheet opens on what is being read. */
.globe-toggle { padding: 5px 10px; border: 1.5px solid var(--ink-3); border-radius: 13px; background: var(--paper); color: var(--ink-2); font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.globe-toggle:hover { border-color: var(--ink); color: var(--ink); }
.globe-toggle[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
:root[data-globe="hidden"] .globe { display: none; }
:root[data-globe="hidden"] .panel { grid-template-rows: auto minmax(0, 1fr); }
/* Hiding the panel gives the chart the whole width; a tab on the right edge brings it back. */
.panel-hide { padding: 6px 10px; border: 0; border-radius: 3px; background: none; color: var(--ink-2); font-size: 13px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.panel-hide:hover { background: var(--paper-2); color: var(--ink); }
.panel-show { display: none; }
@media (min-width: 960px) {
  :root[data-panel="hidden"] .stage { grid-template-columns: minmax(0, 1fr); padding-right: 30px; }
  :root[data-panel="hidden"] .panel { display: none; }
  :root[data-panel="hidden"] .chart { border-right: 0; }
  :root[data-panel="hidden"] .panel-show {
    display: block; position: fixed; z-index: 8; right: 0; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl;
    padding: 12px 6px; border: 1.5px solid var(--ink); border-right: 0; border-radius: 3px 0 0 3px;
    background: var(--paper); color: var(--ink); font-size: 12.5px; font-weight: 700; cursor: pointer;
  }
  :root[data-panel="hidden"] .panel-show:hover { background: var(--ink); color: var(--paper); }
}
.panel[data-view="guide"] .panel-nav a[href="#guide"], .panel[data-view="tour"] .panel-nav a[href="#tour/1"], .panel[data-view="index"] .panel-nav a[href="#index"] { background: var(--ink); color: var(--paper); }
.panel-scroll { overflow: auto; overscroll-behavior: contain; padding: 20px 26px 32px; outline: none; }
.panel-body { max-width: 62ch; }
.panel-body > :first-child { margin-top: 0; }
.panel h2 {
  margin: 6px 0 0;
  font-weight: 800;
  font-stretch: 106%;
  font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
  outline: none;
}
.panel h3 { margin: 30px 0 8px; font-size: 1.04rem; font-weight: 760; font-stretch: 104%; }
.panel h4 { margin: 18px 0 6px; font-size: 0.92rem; font-weight: 720; }
.lead { font-family: var(--read); font-size: 1.1rem; line-height: 1.55; margin: 12px 0 0; text-wrap: pretty; }
.when { margin: 8px 0 0; font-weight: 650; font-stretch: 96%; color: var(--ink-2); }
.where { margin: 3px 0 0; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.where .chips { display: inline-flex; gap: 3px; }
.muted { color: var(--ink-3); }
.importance { margin: 3px 0 0; color: var(--ink-2); font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.prose { font-family: var(--read); font-size: 1.06rem; line-height: 1.6; margin: 14px 0 0; text-wrap: pretty; hanging-punctuation: first; }
.prose p { margin: 0 0 0.8em; }
.term { font-style: italic; text-decoration: underline dotted var(--ink-3); text-underline-offset: 0.2em; }
.term-plain { cursor: help; }
.note { color: var(--ink-2); font-size: 0.86rem; line-height: 1.45; margin: 6px 0 0; }
.method { font-family: var(--read); color: var(--ink-2); font-size: 0.98rem; margin: 0 0 12px; }
.sure { margin: 12px 0 0; font-size: 0.88rem; color: var(--ink-2); }
.sure-head { font-weight: 700; color: var(--ink); }
.sure strong { color: var(--ink); }
.sure-def { color: var(--ink-3); }
.sources { margin-top: 12px; }
.sources h4 { margin: 0; font-size: 0.86rem; }
.sources ul { margin: 4px 0 0; padding-left: 1.1em; font-family: var(--read); font-size: 0.95rem; color: var(--ink-2); }
.back { margin: 0 0 8px; font-size: 0.86rem; }
.trail { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 0.84rem; color: var(--ink-2); }
.trail li:not(:last-child)::after { content: "›"; margin-left: 8px; color: var(--ink-3); }
.badges { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.badge { font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; padding: 2px 6px; border: 1px solid var(--ink-3); border-radius: 10px; color: var(--ink-2); white-space: nowrap; line-height: 1.2; }
.badge-turning { border-color: var(--ink); color: var(--ink); }
.badge-weighed { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.list { margin: 0; padding: 0; list-style: none; }
.list li { border-top: 1px solid var(--rule); }
.list li:last-child { border-bottom: 1px solid var(--rule); }
.row-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; padding: 9px 0; text-decoration: none; }
.rl-when { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.8rem; font-stretch: 94%; }
.rl-title { font-weight: 640; }
.row-link .badges { align-self: start; flex-wrap: nowrap; padding-top: 1px; }
.row-link:hover .rl-title { text-decoration: underline; text-underline-offset: 0.18em; }
.rl-text { grid-column: 1 / -1; font-family: var(--read); font-size: 0.95rem; color: var(--ink-2); line-height: 1.45; }

.parts { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: part; }
.part { position: relative; padding: 12px 12px 12px 14px; margin: 0 -12px 0 -14px; border-radius: 4px; cursor: default; }
.part + .part { border-top: 1px solid var(--rule); }
.part:hover, .part:focus-visible { background: var(--paper-2); }
.part h3 { margin: 0; font-size: 0.98rem; }
.part p { margin: 4px 0 0; font-family: var(--read); font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.button { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 3px; font-weight: 680; font-size: 0.92rem; text-decoration: none; background: var(--paper); }
.button:hover { background: var(--paper-2); }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--ink-2); }
.find { margin: 18px 0 4px; }
.find-input { width: 100%; min-height: 40px; padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper); color: var(--ink); font: 500 0.95rem var(--label); }
.find-input::placeholder { color: var(--ink-3); }
.find-input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.find-results .list { margin-top: 6px; }
.find-results > .note { margin-top: 8px; }
.counts { margin: 22px 0 0; font-size: 0.86rem; color: var(--ink-2); }
.counts-head { font-weight: 700; color: var(--ink); }

.tour-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); font-size: 0.86rem; }
.tour-name { font-weight: 700; }
.tour-steps { display: inline-flex; align-items: baseline; gap: 10px; }
.tour-count { color: var(--ink-2); }
.step { font-weight: 700; text-decoration: none; padding: 4px 2px; }
.step:hover { text-decoration: underline; }
.step.is-off { color: var(--ink-3); opacity: 0.5; }
.tour-bar .quiet { margin-left: auto; color: var(--ink-2); }
.tour-why { margin-top: 16px; padding: 12px 14px; background: var(--paper-2); border-radius: 4px; }
.tour-why h3 { margin: 0 0 4px; }
.tour-why p { margin: 6px 0 0; font-family: var(--read); font-size: 1rem; line-height: 1.5; }
.tour-why .note { font-family: var(--label); }
.tour-mech, .tour-numbers { font-family: var(--read); font-size: 1rem; margin: 12px 0 0; }
.tour-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--rule); }

.why { margin: 0 0 22px; }
.why-q { font-family: var(--read); font-size: 1.04rem; line-height: 1.5; margin: 0 0 4px; font-weight: 600; }
.why-measure { font-size: 0.86rem; color: var(--ink-2); margin: 0 0 8px; }
.causes { list-style: none; margin: 0; padding: 0; }
.cause { padding: 9px 0; border-top: 1px solid var(--rule); }
.cause-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.cause-name { font-weight: 680; }
.cause-role { color: var(--ink-2); font-size: 0.82rem; }
.cause-figures { display: grid; grid-template-columns: minmax(80px, 1fr) auto; gap: 10px; align-items: center; margin-top: 6px; }
.cause-bar { position: relative; height: 10px; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.cause-bar .fill { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.cause-without { font-size: 0.82rem; color: var(--ink-2); white-space: nowrap; }
.cause-reason { font-family: var(--read); font-size: 0.95rem; line-height: 1.45; color: var(--ink-2); margin-top: 6px; }
.cause-reason p { margin: 0; }
.divides { margin: 0 0 20px; }
.divided { display: flex; height: 16px; border-radius: 2px; overflow: hidden; gap: 2px; margin: 8px 0; }
.seg { min-width: 3px; }
.seg-0 { background: var(--seg-0); } .seg-1 { background: var(--seg-1); } .seg-2 { background: var(--seg-2); } .seg-3 { background: var(--seg-3); }
.parts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.92rem; }
.parts-list li { display: grid; grid-template-columns: 12px 3.2em minmax(0, 1fr); gap: 2px 8px; align-items: baseline; }
.parts-list .chip { align-self: center; }
.pl-weight { font-weight: 700; text-align: right; }
.pl-meaning { grid-column: 3; color: var(--ink-2); font-family: var(--read); font-size: 0.9rem; }
.mechs { list-style: none; margin: 0; padding: 0; }
.mechs li { padding: 8px 0; border-top: 1px solid var(--rule); font-family: var(--read); }
.mech-name { font-family: var(--label); font-weight: 700; }
.mech-links { list-style: none; margin: 0; padding: 0; }
.mech-links li { padding: 6px 0; border-top: 1px solid var(--rule); }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.86em; background: var(--paper-2); padding: 1px 4px; border-radius: 2px; }
.members { list-style: none; margin: 10px 0 0; padding: 0; font-family: var(--read); font-size: 0.95rem; }
.members li { padding: 3px 0; }
.members strong { font-family: var(--label); margin: 0 4px 0 6px; }
.numbers { margin-top: 26px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; font-size: 0.84rem; width: 100%; }
th, td { padding: 5px 10px 5px 0; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; vertical-align: baseline; }
th:first-child, td:first-child { text-align: left; }
thead th { font-weight: 700; border-bottom: 1.5px solid var(--ink); }
tbody th { font-weight: 600; }
td small { display: block; color: var(--ink-3); font-size: 0.72rem; }
.index-nav { display: flex; gap: 14px; margin: 10px 0 0; font-weight: 650; font-size: 0.9rem; }
.tree { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.tree li { padding: 4px 0 4px calc(var(--depth) * 14px); border-top: 1px solid var(--rule); }
.tree a { font-weight: 650; }
.colophon { margin-top: 36px; padding-top: 12px; border-top: 1px solid var(--ink); font-size: 0.78rem; color: var(--ink-2); max-width: 62ch; }
.colophon p { margin: 0 0 6px; }

/* ---- The globe ----------------------------------------------------------------------------------------------------------- */
.globe { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: clamp(250px, 41vh, 440px); border-bottom: 1.5px solid var(--ink); background: var(--paper); }
.globe > .note { padding: 12px 22px; }
.globe-bar { display: flex; align-items: center; gap: 8px; padding: 6px 14px 2px 22px; min-width: 0; }
.globe-trail { display: flex; flex-wrap: wrap; flex: 1; min-width: 0; gap: 0 6px; margin: 0; padding: 0; list-style: none; font-size: 0.82rem; color: var(--ink-2); }
.globe-trail li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--ink-3); }
.globe-crumb { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.18em; cursor: pointer; }
.globe-crumb:hover { color: var(--ink); text-decoration-color: var(--ink); }
.globe-trail strong { color: var(--ink); }
.globe-pick { flex: none; max-width: 44%; height: 28px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper); color: var(--ink); font: 600 0.8rem var(--label); padding: 0 4px; }
.globe-stage { position: relative; min-height: 0; overflow: hidden; }
.globe-canvas { display: block; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.globe-canvas:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.globe-tools { position: absolute; right: 10px; bottom: 8px; display: grid; gap: 3px; }
.globe-btn { min-width: 28px; height: 28px; padding: 0 6px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper); font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; }
.globe-btn:hover { background: var(--ink); color: var(--paper); }
.globe-btn-wide { font-size: 0.78rem; white-space: nowrap; }
.globe-tip { position: absolute; top: 0; left: 0; z-index: 2; max-width: 80%; padding: 3px 7px; background: var(--ink); color: var(--paper); font-size: 11.5px; font-weight: 650; border-radius: 2px; pointer-events: none; }
.globe-tip[hidden] { display: none; }
.globe-foot { display: flex; align-items: center; gap: 10px; padding: 2px 14px 6px 22px; }
.globe-status { flex: 1; margin: 0; font-size: 0.78rem; color: var(--ink-2); line-height: 1.3; }
.place-link { font-weight: 650; }
tr.is-whole th, tr.is-whole td { font-weight: 760; }
tr.is-group th { padding-top: 12px; font-size: 0.78rem; font-weight: 760; letter-spacing: 0.02em; color: var(--ink-2); border-bottom: 1px solid var(--ink-3); }
tbody th small { display: block; color: var(--ink-3); font-size: 0.72rem; font-weight: 500; white-space: normal; }
tbody th { white-space: normal; }

/* ---- Narrow screens: the chart above, the panel as a sheet from the bottom ------------------------------------------------ */
@media (max-width: 959px) {
  .masthead { padding: 8px 16px 6px; border-bottom-width: 2px; }
  .masthead h1 { padding-top: 0; }
  .ask-hint { display: none; }
  .globe { height: clamp(200px, 30dvh, 300px); }
  .lede { display: none; }
  .stage { grid-template-columns: minmax(0, 1fr); padding-bottom: var(--sheet-half); }
  .chart { border-right: 0; }
  .panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    height: var(--sheet-half);
    border-top: 2px solid var(--ink);
    box-shadow: 0 -10px 24px -14px rgba(0, 0, 0, 0.45);
    border-radius: 10px 10px 0 0;
    transition: height 300ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .panel[data-sheet="full"] { height: calc(100dvh - 52px); }
  .panel-bar { padding: 0 12px 0 4px; gap: 4px; min-height: 46px; }
  .sheet-handle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; margin: 0; border: 0; background: none; cursor: grab; font-size: 13px; font-weight: 650; color: var(--ink-2); touch-action: none; }
  .grip { width: 32px; height: 4px; border-radius: 2px; background: var(--ink-3); }
  .panel-hide { display: none; }
  .panel-nav a { padding: 6px 8px; }
  .panel-scroll { padding: 14px 16px 28px; }
  .panel h2 { font-size: 1.4rem; }
}
/* On a phone the bar keeps to one row: the sheet's handle shows only its grip (its label stays for screen readers), and
   the links and switches are compact. */
@media (max-width: 519px) {
  .sheet-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .panel-bar { padding: 0 8px 0 2px; }
  .sheet-handle { padding: 0 6px; }
  .panel-nav a { font-size: 12px; padding: 6px 5px; }
  .edition { margin-left: 2px; }
  .edition, .globe-toggle { padding: 4px 7px; font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .chip, .shape, .key-mark, .seg, .cause-bar .fill { forced-color-adjust: none; }
}
