@font-face {
  font-family: Archivo;
  src: url("/fonts/archivo.ttf") format("truetype");
  font-display: swap;
}
:root {
  --field: #c8dbe5;
  --ink: #153544;
  --muted: #435e6a;
  --paper: #f3f6f7;
  --deep: #183e52;
  --line: #245c91;
  --opposition: #a93825;
  --comparison: #75578c;
  --context: #576951;
  --revision: #9b4a29;
  --focus: #9d331e;
  --rule: #aec3ce;
  --pad: 28px;
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--field);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  min-height: 44px;
  padding: 10px 14px;
  line-height: 1.3;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
button:hover,
a:hover {
  color: #000;
}
button:hover {
  background: #ffffff75;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
button[aria-pressed="true"] {
  background: var(--deep);
  color: #fff;
}
button[aria-current="step"] {
  box-shadow: inset 3px 0 var(--ink);
  font-weight: 700;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #718b98;
  padding: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  border-radius: 0;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
label {
  display: block;
  line-height: 1.5;
}
label:has(input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
}
input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: none;
  margin: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
p {
  line-height: 1.55;
}
h1,
h2 {
  font-family: Archivo, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
}
h3 {
  line-height: 1.25;
}
img {
  max-width: 100%;
  height: auto;
}
small,
.small {
  font-size: 13px;
  line-height: 1.5;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 8px;
}
.primary {
  background: var(--deep);
  color: white;
  min-height: 48px;
  font-weight: 700;
}
.primary:hover {
  background: #0e2e40;
  color: #fff;
}
.quiet {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.muted {
  color: var(--muted);
}
.eyebrow,
.small-note,
.record-id {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.actions > * {
  flex: 0 1 auto;
}
.boundary {
  border-left: 4px solid #7c8f72;
  background: #e7ede6;
  padding: 18px;
  margin: 22px 0;
  line-height: 1.55;
}
.boundary strong {
  display: block;
  margin-bottom: 8px;
}
.warning {
  border-left-color: var(--opposition);
  background: #f2e5e1;
}
.type-label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}
.type-label::before {
  content: "";
  display: inline-block;
  width: 21px;
  height: 3px;
  background: currentColor;
  margin-right: 9px;
  vertical-align: middle;
}
.type-label.opposition {
  color: var(--opposition);
}
.type-label.comparison {
  color: var(--comparison);
}
.type-label.context {
  color: var(--context);
}
.type-label.revision {
  color: var(--revision);
}
.masthead {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 10;
  background: var(--field);
}
.brand {
  font-family: Archivo;
  font-size: 29px;
  letter-spacing: -0.045em;
  text-decoration: none;
  line-height: 1;
  flex: none;
}
.brand span {
  font:
    11px Arial,
    sans-serif;
  letter-spacing: 0;
  display: block;
  margin-top: 6px;
}
.masthead nav {
  display: flex;
  gap: 24px;
}
.masthead nav a {
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.masthead nav a[aria-current="page"] {
  text-decoration: underline;
  font-weight: 700;
}
.search-trigger {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: #e6eff3;
  width: min(390px, 35vw);
  text-align: left;
}
.search-trigger svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  width: 22px;
  height: 22px;
  flex: none;
}
.search-trigger span {
  font-size: 14px;
}
#notebook-open {
  white-space: nowrap;
}
#trail-count {
  display: inline-block;
  margin-left: 5px;
  border-bottom: 2px solid var(--ink);
}
.world-shell {
  position: relative;
}
.world-top {
  height: 57px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 6px var(--pad);
  background: #dbe7ed;
}
.world-top p {
  font-size: 13px;
  margin: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mode-switch {
  display: flex;
  background: var(--field);
  flex: none;
}
.mode-switch button {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
}
#help-open {
  font-size: 13px;
}
.world-shell:has(#world:focus-visible) {
  outline: none;
}
#world {
  height: max(480px, calc(100dvh - 298px));
  position: relative;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
  background: var(--field);
}
#world-canvas,
#world-lines,
#world-labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#world-canvas {
  pointer-events: none;
}
#world-lines {
  pointer-events: none;
  overflow: visible;
}
#world-labels {
  pointer-events: none;
}
.world-node {
  position: absolute;
  pointer-events: auto;
  text-decoration: none;
  max-width: 230px;
  padding: 10px 10px 12px 17px;
  transform: translateY(-50%);
  font-size: 17px;
  line-height: 1.13;
  background: transparent;
  border: 0;
  text-shadow:
    2px 0 var(--field),
    -2px 0 var(--field),
    0 2px var(--field),
    0 -2px var(--field);
  min-height: 45px;
  transition: opacity 0.25s;
}
.world-node strong {
  font-weight: 650;
  display: block;
  overflow-wrap: anywhere;
}
.world-node small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}
.world-node:hover {
  background: #edf3f6;
  z-index: 6;
}
.world-node.selected {
  background: transparent;
  max-width: 280px;
  z-index: 5;
  padding: 15px 20px;
  font-size: 25px;
  box-shadow: none;
  color: var(--line);
}
.world-node.selected strong {
  font-family: Archivo;
  letter-spacing: -0.035em;
  font-weight: 400;
}
.world-node .node-image {
  width: 52px;
  height: 65px;
  object-fit: cover;
  float: left;
  margin: 0 13px 0 0;
}
.world-node.selected .node-image {
  width: 70px;
  height: 90px;
}
.world-node.opponent {
  color: var(--opposition);
}
.label-leader {
  fill: none;
  stroke: #3f657e70;
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.time-thread {
  padding: 14px var(--pad);
  background: #dce8ee;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.time-thread summary {
  cursor: pointer;
  min-height: 30px;
  display: flex;
  align-items: center;
}
.time-thread p {
  max-width: 65ch;
  margin: 12px 0;
}
.time-stops {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 5px 0 12px;
}
.time-stops a,
.time-stops button {
  min-width: 140px;
  max-width: 240px;
  flex-shrink: 0;
  padding: 10px 0;
  border-top: 2px solid var(--line);
  min-height: 44px;
}
.territory {
  position: absolute;
  pointer-events: auto;
  max-width: 160px;
  transform: translate(-50%, -50%);
  text-align: left;
  padding: 8px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  background: #c8dbe5e8;
}
.territory small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  margin-top: 5px;
}
.territory:hover {
  background: var(--paper);
}
.edge-label {
  position: absolute;
  pointer-events: auto;
  font-size: 12px;
  font-weight: 600;
  background: #ecf3f6;
  color: var(--line);
  padding: 5px 9px;
  min-height: 32px;
  max-width: 150px;
  transform: translate(-50%, -50%);
  text-align: left;
  line-height: 1.15;
}
.edge-label.opposition {
  color: var(--opposition);
}
.edge-label.comparison {
  color: var(--comparison);
}
.edge-label.context {
  color: var(--context);
}
.edge-label.revision {
  color: var(--revision);
}
.edge-label:hover {
  background: white;
}
.relation-line {
  fill: none;
  stroke: var(--line);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}
.relation-line.opposition {
  stroke: var(--opposition);
  stroke-dasharray: 8 4;
}
.relation-line.comparison {
  stroke: var(--comparison);
  stroke-dasharray: 2 5;
}
.relation-line.context {
  stroke: var(--context);
  stroke-dasharray: 3 8;
}
.relation-line.revision {
  stroke: var(--revision);
  stroke-width: 4;
}
.relation-line.interpretation {
  stroke-dasharray: 9 8;
}
.relation-line.hot {
  stroke-width: 4;
}
.flow-pulse {
  fill: var(--line);
  animation: breath 4s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes breath {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.4);
  }
}
body.motion-paused .flow-pulse,
body.page-hidden .flow-pulse {
  animation-play-state: paused;
}
#intro {
  position: absolute;
  left: var(--pad);
  top: 35px;
  width: 310px;
  z-index: 3;
  pointer-events: none;
}
#intro h1 {
  font-size: clamp(38px, 4.2vw, 66px);
  margin-bottom: 24px;
}
#intro p {
  max-width: 280px;
  font-size: 16px;
}
#intro button {
  pointer-events: auto;
  text-align: left;
  width: 100%;
}
#intro .map-note {
  font-size: 12px;
  max-width: 260px;
  margin-top: 22px;
}
#guide-note {
  position: absolute;
  top: 24px;
  left: var(--pad);
  max-width: 280px;
  z-index: 4;
  background: #c8dbe5ee;
  padding: 0 12px 12px 0;
}
#guide-note h1 {
  font-size: 26px;
  margin-bottom: 12px;
}
#guide-note p {
  font-size: 14px;
}
.guide-progress {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.guide-actions button {
  min-height: 40px;
  padding: 8px 12px;
}
.world-caption {
  position: absolute;
  bottom: 18px;
  left: 230px;
  max-width: 410px;
  font-size: 11px;
  color: var(--muted);
  pointer-events: none;
}
.zoom-levels {
  position: absolute;
  right: 18px;
  top: 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #dbe7eddd;
  padding: 4px;
  z-index: 7;
}
.zoom-levels button {
  text-align: left;
  font-size: 12px;
  min-height: 38px;
}
.camera {
  position: absolute;
  bottom: 18px;
  right: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 335px;
  gap: 2px;
  z-index: 7;
}
.camera button {
  background: #e9f0f4;
  font-size: 12px;
  min-height: 38px;
}
#zoom-in,
#zoom-out {
  font-size: 20px;
  min-width: 42px;
}
#minimap {
  position: absolute;
  left: var(--pad);
  bottom: 18px;
  width: 170px;
  height: 95px;
  padding: 7px;
  background: #edf3f680;
  z-index: 4;
}
#mini {
  width: 100%;
  height: 67px;
  display: block;
}
#minimap span {
  font-size: 10px;
  display: block;
  text-align: left;
}
#turning-point {
  position: absolute;
  inset: 0;
  background: var(--deep);
  color: white;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  pointer-events: none;
}
#turning-point[hidden] {
  display: none;
}
#turning-point h2 {
  font-size: clamp(34px, 5vw, 70px);
  max-width: 800px;
}
#turning-point p {
  max-width: 600px;
}
#selection-dock {
  min-height: 95px;
  background: var(--paper);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 1.1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 18px var(--pad);
}
#selection-dock h2 {
  font:
    700 18px/1.2 Arial,
    sans-serif;
  letter-spacing: 0;
  margin: 3px 0 0;
}
#selection-dock p {
  font-size: 13px;
  margin: 0;
  max-width: 600px;
}
#selection-dock .dock-meta {
  font-size: 11px;
  color: var(--muted);
}
.dock-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.dock-actions button {
  background: #dce8ee;
  font-size: 13px;
  padding: 10px 12px;
}
.dock-actions .primary {
  background: var(--deep);
}
#trailbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px var(--pad);
  min-height: 64px;
  background: #e0eaf0;
}
#trailbar > strong {
  font-size: 12px;
  white-space: nowrap;
  margin-right: 10px;
}
#trailbar .trail-steps {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: auto;
  flex: 1;
  min-width: 0;
  scrollbar-width: thin;
}
#trailbar .trail-steps a {
  font-size: 12px;
  white-space: nowrap;
  text-decoration: none;
  padding: 8px;
  background: #d0e0e8;
}
#trailbar .trail-steps span {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
#trailbar > button {
  white-space: nowrap;
  font-size: 12px;
}
.reading-equivalent {
  background: #f5f7f8;
  padding: 40px max(var(--pad), calc((100vw - 1050px) / 2));
}
.reading-equivalent h2 {
  font-size: 30px;
}
.reading-equivalent > p {
  font-size: 14px;
}
.reading-equivalent details {
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  content-visibility: auto;
  contain-intrinsic-size: 80px;
}
.reading-equivalent summary {
  cursor: pointer;
  line-height: 1.4;
  min-height: 44px;
}
.reading-equivalent summary strong {
  display: block;
}
.reading-equivalent .relation-entry {
  padding: 22px 0;
}
.reading-equivalent .actions {
  margin: 8px 0;
}
footer {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  background: var(--deep);
  color: #fff;
  font-size: 12px;
}
footer button,
footer a {
  color: #fff;
}
footer button:hover,
footer a:hover {
  color: #fff;
  background: #ffffff22;
}
dialog {
  border: 0;
  color: var(--ink);
  background: var(--paper);
  width: min(790px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overscroll-behavior: contain;
  box-shadow: 0 20px 100px #102f4466;
}
dialog::backdrop {
  background: #102f4480;
  backdrop-filter: blur(3px);
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 3;
}
.panel-head p {
  margin: 0;
  flex: 1;
  font-size: 12px;
}
.panel-head button {
  font-size: 13px;
}
#panel-content,
#reader-content {
  padding: 30px 40px 45px;
}
dialog h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 24px;
}
dialog h3 {
  font-size: 19px;
  margin: 28px 0 12px;
}
dialog p {
  font-size: 16px;
  max-width: 65ch;
}
dialog .claim {
  font-size: 22px;
  line-height: 1.35;
}
.record-portrait {
  width: 150px;
  max-height: 210px;
  object-fit: cover;
  float: right;
  margin: 0 0 20px 30px;
}
.archival-absence {
  padding: 25px 0;
  margin-bottom: 25px;
  border-block: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}
.archival-absence strong {
  font-family: Archivo;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.archival-absence small {
  max-width: 170px;
}
.origin-state {
  font-weight: 700;
  font-size: 13px;
  color: #2c5c49;
}
.source-block {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.source-block h3 {
  margin-top: 0;
}
.source-block p {
  font-size: 14px;
}
.source-block button {
  text-decoration: underline;
  text-align: left;
  padding-left: 0;
}
.source-status {
  color: var(--muted);
  font-size: 13px;
}
.citation {
  background: white;
  padding: 20px;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.source-url {
  overflow-wrap: anywhere;
}
.record-id {
  overflow-wrap: anywhere;
}
.search-form {
  display: flex;
  gap: 8px;
}
.search-form input {
  flex: 1;
  min-width: 0;
}
.search-results {
  padding: 0;
  list-style: none;
}
.search-results li {
  border-top: 1px solid var(--rule);
  padding: 18px 0;
  content-visibility: auto;
  contain-intrinsic-size: 120px;
}
.search-results a {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}
.search-results p {
  font-size: 13px;
  margin: 8px 0 0;
}
.journey-option {
  display: block;
  text-decoration: none;
  padding: 25px 0;
  border-top: 1px solid var(--rule);
}
.journey-option strong {
  display: block;
  font-family: Archivo;
  font-size: 25px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.journey-option p {
  font-size: 14px;
  margin: 12px 0 0;
}
.word-stage {
  padding: 24px 0 24px 25px;
  border-left: 3px solid #7c6496;
  position: relative;
}
.word-stage:before {
  content: "";
  width: 11px;
  height: 11px;
  background: #7c6496;
  position: absolute;
  left: -7px;
  top: 31px;
  transform: rotate(45deg);
}
.word-stage h3 {
  font-size: 25px;
  margin: 8px 0 15px;
}
.word-stage p {
  font-size: 14px;
}
.word-stage .term {
  font-size: 21px;
  font-weight: 700;
}
.context-item {
  border-top: 1px solid var(--rule);
  padding: 20px 0;
}
.context-item h3 {
  margin-top: 0;
}
.context-item p {
  font-size: 14px;
}
.opposition-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 25px 0;
}
.opposition-pair > div {
  border-top: 4px solid var(--opposition);
  padding-top: 20px;
}
.opposition-pair h3 {
  margin-top: 0;
}
.notebook-item {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.notebook-item h3 {
  margin: 0 0 12px;
}
.notebook-item p {
  font-size: 14px;
}
.notebook-item .artifact {
  display: inline-block;
  font-weight: 700;
  border-left: 5px solid #576951;
  padding-left: 12px;
}
.stack-form {
  display: grid;
  gap: 18px;
}
.stack-form .primary {
  justify-self: start;
}
.form-status {
  margin: 14px 0;
  font-size: 14px;
}
pre {
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.discussion {
  margin-top: 35px;
  border-top: 3px solid var(--ink);
  padding-top: 25px;
}
.discussion h2 {
  font-size: 30px;
}
.discussion-layout {
  display: grid;
  gap: 30px;
}
.discussion-form {
  display: grid;
  gap: 18px;
}
.discussion-form button[type="submit"] {
  background: var(--deep);
  color: white;
}
.reaction-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.reaction-row button {
  background: #dce7ed;
}
.reaction-row span:last-child {
  font-size: 12px;
}
.discussion-status,
.form-status {
  font-size: 14px;
}
.reader-response {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.reader-response p {
  white-space: pre-wrap;
}
.response-context strong {
  display: block;
}
.response-kind,
.reader-label,
.response-count {
  font-size: 12px;
}
.fallback {
  background: white;
  padding: 30px;
}
@media (min-width: 1600px) {
  #world {
    height: calc(100dvh - 300px);
  }
  #intro {
    width: 370px;
  }
  .world-node {
    font-size: 19px;
  }
}
@media (max-width: 1000px) {
  :root {
    --pad: 20px;
  }
  .masthead {
    gap: 20px;
  }
  .masthead nav {
    gap: 15px;
  }
  .search-trigger {
    width: auto;
  }
  .search-trigger span {
    max-width: 145px;
    font-size: 12px;
  }
  #intro {
    width: 250px;
  }
  #intro h1 {
    font-size: 44px;
  }
  #guide-note {
    max-width: 220px;
  }
  #selection-dock {
    gap: 15px;
    grid-template-columns: 1fr 1fr;
  }
  .dock-actions {
    grid-column: 1/-1;
  }
  .world-caption {
    left: 210px;
    max-width: 250px;
  }
  .camera {
    max-width: 260px;
  }
  .camera #motion-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  :root {
    --pad: 16px;
  }
  .masthead {
    height: 112px;
    flex-wrap: wrap;
    padding-block: 12px;
    gap: 8px 18px;
  }
  .brand {
    font-size: 23px;
    flex: 1;
  }
  .brand span {
    display: none;
  }
  .masthead nav {
    order: 2;
    margin-right: auto;
    gap: 20px;
    font-size: 14px;
  }
  .masthead nav a {
    min-height: 36px;
  }
  .search-trigger {
    order: 2;
    padding: 6px 9px;
    min-height: 36px;
    width: 42px;
  }
  .search-trigger span {
    display: none;
  }
  #notebook-open {
    font-size: 13px;
    min-height: 36px;
  }
  .world-top {
    height: 49px;
    padding: 4px 12px;
    gap: 10px;
  }
  .mode-switch button {
    font-size: 12px;
    padding: 8px 10px;
    min-height: 35px;
  }
  .world-top p {
    font-size: 11px;
  }
  #help-open {
    padding: 8px;
    font-size: 0;
  }
  #help-open:after {
    content: "?";
    font-size: 16px;
  }
  .world-top #help-open {
    min-width: 32px;
    min-height: 36px;
  }
  #world {
    height: 430px;
    min-height: 360px;
    touch-action: none;
  }
  #intro {
    top: 20px;
    left: 16px;
    width: 210px;
  }
  #intro h1 {
    font-size: 39px;
    margin-bottom: 13px;
  }
  #intro p {
    font-size: 13px;
    max-width: 195px;
    line-height: 1.45;
  }
  #intro button {
    font-size: 12px;
    max-width: 220px;
    padding: 10px;
    min-height: 44px;
  }
  #intro .map-note {
    display: none;
  }
  .zoom-levels {
    right: 8px;
    top: 15px;
    padding: 2px;
  }
  .zoom-levels button {
    font-size: 10px;
    padding: 8px 7px;
    min-height: 44px;
  }
  #guide-note {
    top: 13px;
    left: 16px;
    max-width: 225px;
    padding: 8px 10px 8px 0;
  }
  #guide-note h1 {
    font-size: 20px;
    margin-bottom: 8px;
  }
  #guide-note p {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .guide-progress {
    font-size: 10px;
    margin-bottom: 8px;
  }
  .guide-actions button {
    font-size: 12px;
    min-height: 44px;
    padding: 8px;
  }
  .camera {
    bottom: 10px;
    right: 8px;
    max-width: 230px;
  }
  .camera button {
    font-size: 10px;
    padding: 7px 9px;
    min-height: 44px;
  }
  #zoom-in,
  #zoom-out {
    font-size: 18px;
    min-width: 34px;
  }
  #minimap {
    width: 91px;
    height: 63px;
    left: 12px;
    bottom: 10px;
    padding: 4px;
  }
  #mini {
    height: 43px;
  }
  #minimap span {
    font-size: 8px;
  }
  .world-caption {
    display: none;
  }
  .world-node {
    font-size: 13px;
    max-width: 142px;
    padding: 8px 9px 9px 12px;
  }
  .world-node small {
    font-size: 9px;
  }
  .world-node.selected {
    font-size: 18px;
    max-width: 185px;
    padding: 12px 14px;
  }
  .world-node.selected .node-image {
    width: 40px;
    height: 54px;
    margin-right: 8px;
  }
  .world-node .node-image {
    width: 30px;
    height: 40px;
    margin-right: 6px;
  }
  .edge-label {
    font-size: 10px;
    max-width: 105px;
    min-height: 44px;
    padding: 6px;
  }
  .territory {
    font-size: 12px;
    max-width: 110px;
  }
  .territory small {
    font-size: 9px;
  }
  #selection-dock {
    padding: 16px;
    gap: 10px;
    grid-template-columns: 1fr;
    min-height: 190px;
  }
  #selection-dock h2 {
    font-size: 17px;
  }
  #selection-dock p {
    font-size: 12px;
    line-height: 1.45;
  }
  #selection-dock .dock-meta {
    font-size: 10px;
  }
  .dock-actions {
    gap: 5px;
  }
  .dock-actions button {
    font-size: 12px;
    min-height: 40px;
    padding: 9px 11px;
  }
  #trailbar {
    padding: 8px 12px;
    gap: 4px;
    min-height: 60px;
  }
  #trailbar > strong {
    display: none;
  }
  #trailbar > button {
    font-size: 11px;
    padding: 8px;
    min-height: 40px;
  }
  #trailbar .trail-steps a {
    font-size: 10px;
    padding: 10px;
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .reading-equivalent {
    padding: 30px 16px;
  }
  .reading-equivalent h2 {
    font-size: 26px;
  }
  footer {
    padding: 20px 16px;
    flex-wrap: wrap;
    gap: 15px;
  }
  footer span {
    flex-basis: 100%;
  }
  dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
  .panel-head {
    padding: 8px 14px;
  }
  .panel-head p {
    font-size: 11px;
  }
  .panel-head button {
    padding: 8px 10px;
  }
  #panel-content,
  #reader-content {
    padding: 24px 20px 35px;
  }
  dialog h2 {
    font-size: 30px;
  }
  dialog p {
    font-size: 15px;
  }
  dialog .claim {
    font-size: 20px;
  }
  .opposition-pair {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .record-portrait {
    width: 95px;
    margin-left: 15px;
  }
  .archival-absence {
    display: block;
  }
  .archival-absence small {
    display: block;
    margin-top: 14px;
    max-width: none;
  }
  .search-form {
    display: grid;
  }
  .search-results a {
    font-size: 18px;
  }
  .word-stage {
    padding-left: 20px;
  }
  .word-stage h3 {
    font-size: 22px;
  }
  .discussion h2 {
    font-size: 28px;
  }
  .world-shell[data-mode="guided"] #world {
    height: 510px;
  }
}
@media (max-width: 350px) {
  .masthead {
    gap: 5px 10px;
  }
  .world-top p {
    max-width: 80px;
  }
  #intro {
    width: 190px;
  }
  #intro h1 {
    font-size: 35px;
  }
  .world-node.selected {
    font-size: 16px;
    max-width: 165px;
  }
  .world-node {
    max-width: 125px;
    font-size: 12px;
  }
  #guide-note {
    max-width: 205px;
  }
  .camera {
    max-width: 208px;
  }
  .camera button {
    padding: 7px;
  }
  #panel-content,
  #reader-content {
    padding: 22px 17px;
  }
  .dock-actions button {
    padding: 8px 9px;
  }
  dialog h2 {
    font-size: 27px;
  }
}
@media (max-width:600px) {
  #world,.world-shell[data-mode="guided"] #world {height:780px}
  .world-shell:has(#intro:not([hidden])) #world {height:640px}
  .camera {max-width:260px}
  .camera button,.zoom-levels button,.world-top #help-open {min-height:44px;min-width:44px}
  .world-node {max-width:140px;font-size:14px}
  .world-node.selected {max-width:180px;font-size:19px}
  #guide-note {max-width:245px}
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-contrast: more) {
  :root {
    --muted: #183440;
    --rule: #526b76;
  }
  .world-node,
  .territory,
  .edge-label {
    background: #fff;
  }
  .relation-line {
    stroke-width: 4;
  }
}
@media print {
  .masthead,
  .world-shell,
  #selection-dock,
  #trailbar,
  footer,
  dialog {
    display: none;
  }
  .reading-equivalent {
    display: block;
  }
  .reading-equivalent details {
    content-visibility: visible;
  }
}
/* Final orientation pass: lenses belong to the world, not separate destinations. */
.map-lens-nav { display:flex; flex-wrap:wrap; gap:4px; padding:10px 24px; border-block:1px solid #15354433; }
.map-lens-nav button { min-height:44px; padding:10px 16px; border:0; background:transparent; }
.map-lens-nav button[aria-pressed="true"] { color:#f3f6f7; background:#153544; }
.map-legend { display:flex; flex-wrap:wrap; gap:8px 22px; padding:8px 24px; margin:0; font-size:11px; border-bottom:1px solid #15354422; }
.map-legend .legend-opposition { color:#a93825; }
.map-legend small { font-size:inherit; }
.word-map { padding:20px 24px; background:#f3f6f77a; }
.word-map h2 { font-size:25px; margin:8px 0; }
.word-witnesses { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:24px; }
.word-witnesses article { border-top:1px solid #15354455; padding-top:14px; }
.word-witnesses h3 { font-size:27px; }
.word-witnesses p { font-size:14px; line-height:1.6; }
@media(max-width:600px) { .map-lens-nav { padding:8px 12px; display:grid; grid-template-columns:1fr 1fr; } .map-lens-nav button { font-size:12px; } .map-legend { padding:8px 14px; gap:6px 16px; font-size:10px; } }
.edge-label { width:200px; max-width:200px; white-space:normal; line-height:1.35; text-align:center; background:#d4e1e9e8; font-size:12px; min-height:44px; }
.edge-label small { display:block; font-size:10px; text-transform:uppercase; letter-spacing:.05em; opacity:.8; }
.guide-boundary { font-size:12px !important; line-height:1.45 !important; border-left:2px solid #a93825; padding-left:10px; }
.guide-evidence { font-size:13px; text-decoration:underline; text-underline-offset:4px; margin-top:4px; }
/* Short laptop windows still need space for the introduction and worldline. */
@media(min-width:601px) {
  #world { min-height:740px; }
}
@media(max-width:600px) {
  .map-lens-nav { grid-template-columns:repeat(3,minmax(0,1fr)); gap:2px; padding:6px; }
  .map-lens-nav button { padding:8px 5px; font-size:11px; line-height:1.3; }
  .world-shell > #guide-note { position:relative; inset:auto; width:auto; max-width:none; padding:20px 16px; background:#e4edf2; border-bottom:1px solid #15354433; }
  .world-shell > #guide-note h1 { max-width:28ch; }
  .world-shell > #guide-note p { max-width:none; }
  .world-shell > #guide-note .guide-actions { display:flex; flex-wrap:wrap; gap:5px; }
  .world-shell[data-mode="guided"] #world {height:620px;}
}
