@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Inter, system-ui, sans-serif;
  color: #173a3b;
  background: #f7f7f1;
  --ink: #173a3b;
  --muted: #596d68;
  --line: #d4ddd3;
  --green: #126c60;
  --paper: #f7f7f1;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 7px;
  min-height: 44px;
  padding: 8px 12px;
}
button:hover {
  background: #e5eae0;
}
button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
canvas:focus-visible,
svg [tabindex]:focus {
  outline: 3px solid #bb6519;
  outline-offset: 3px;
}
input[type="checkbox"] {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
}
input[type="range"] {
  accent-color: var(--green);
  width: 100%;
  min-height: 36px;
}
select,
input[type="search"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffefa;
  min-height: 44px;
  padding: 8px;
  font-size: 12px;
}
select {
  padding-right: 24px;
}
label {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-weight: 500;
  letter-spacing: -1.5px;
  font-size: clamp(25px, 2.5vw, 38px);
  margin-bottom: 0;
}
h1 span {
  color: #6c7d71;
}
h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 14px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.9px;
  font-size: 10px;
  font-weight: 650;
  margin-bottom: 10px;
  color: var(--muted);
}
.quiet {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip {
  position: fixed;
  z-index: 20;
  left: 20px;
  top: -80px;
  background: white;
  padding: 16px;
}
.skip:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
.masthead {
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 18px;
}
.brand {
  text-decoration: none;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.7px;
}
.brand span {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
}
nav a {
  text-decoration: none;
  padding: 12px 0;
}
nav [aria-current] {
  border-bottom: 2px solid var(--green);
  font-weight: 650;
}
nav button {
  border: 0;
  font-size: 12px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  padding: 30px 32px 26px;
}
.intro-note {
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
  color: var(--muted);
}
.spoiler {
  display: block;
  font-size: 10px;
  color: #916139;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.map-column {
  min-width: 0;
}
.viewbar {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.view-switch {
  display: flex;
  gap: 5px;
}
.view-switch button {
  font-size: 11px;
  min-height: 36px;
  padding: 7px 12px;
}
.visual-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.visual-pair.split {
  grid-template-columns: 1fr 1fr;
}
.map-wrap {
  position: relative;
  background: #edf0e9;
  height: 560px;
  min-width: 0;
  overflow: hidden;
}
#space,
#map2d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#space canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
#map2d {
  background: #edf0e9;
}
#map2d text {
  font-family: Inter, system-ui, sans-serif;
  fill: #294b46;
  font-size: 10px;
}
#map2d .pick {
  cursor: pointer;
}
#map2d .pick:hover {
  filter: brightness(0.7);
}
.map-title {
  position: absolute;
  left: 26px;
  top: 23px;
  pointer-events: none;
}
.map-title span {
  display: block;
  font-size: 9px;
  opacity: 0.8;
}
.map-title strong {
  font-size: 16px;
  font-weight: 450;
}
.camera-controls {
  position: absolute;
  left: 20px;
  bottom: 42px;
  display: flex;
  gap: 6px;
}
.camera-controls button {
  background: #f7f7f1ee;
  font-size: 11px;
  box-shadow: 0 1px 3px #173a3b0a;
  min-width: 40px;
}
.camera-controls button[aria-pressed="true"] {
  background: var(--ink);
}
.map-help {
  position: absolute;
  left: 24px;
  bottom: 8px;
  right: 20px;
  margin: 0;
  font-size: 10px;
  color: #48635d;
  pointer-events: none;
}
#loading {
  position: absolute;
  left: 25px;
  top: 110px;
  font-size: 13px;
  max-width: 300px;
  line-height: 1.6;
}
.error {
  color: #943b30;
}
#tooltip {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  border-radius: 6px;
  background: #173a3bf5;
  color: white;
  padding: 10px 13px;
  max-width: 240px;
  font-size: 12px;
  line-height: 1.5;
}
#diorama-frame {
  width: 100%;
  height: 560px;
  border: 0;
  border-left: 1px solid var(--line);
}
.legend {
  padding: 14px 24px 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.strand-key,
.line-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-bottom: 11px;
}
.strand-key span,
.line-key span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.color-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.sample {
  width: 25px;
  display: inline-block;
  border-top: 2px solid #48635d;
}
.sample.relation {
  border-top-width: 5px;
  opacity: 0.5;
}
.sample.institution {
  border-top-style: dashed;
}
.sample.theme {
  border-top-style: dotted;
}
.legend p {
  line-height: 1.6;
  margin-bottom: 8px;
}
.legend details {
  font-size: 10px;
}
.legend summary,
.more-filters summary,
.source-note summary {
  cursor: pointer;
  min-height: 32px;
  padding: 7px 0;
}
.legend #edge-key {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0;
}
.time-panel {
  padding: 20px 24px 18px;
  border-top: 1px solid var(--line);
}
.time-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.time-head .eyebrow {
  margin-bottom: 7px;
}
.time-head h2 {
  margin-bottom: 18px;
  font-size: 20px;
}
.time-head select {
  min-width: 175px;
}
.range-row {
  display: grid;
  grid-template-columns: 28px 1fr 42px;
  gap: 12px;
  align-items: center;
}
.range-row output {
  font-size: 11px;
  text-align: right;
}
.time-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  margin: 9px 0 13px;
}
.time-actions button {
  font-size: 11px;
}
.time-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.time-panel > .quiet {
  margin: 0;
  font-size: 10px;
}
#chronology-controls {
  font-size: 12px;
  line-height: 1.6;
}
#chronology-steps {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}
#chronology-steps button {
  flex: 1;
  font-size: 11px;
  text-align: left;
}
.sidebar {
  border-left: 1px solid var(--line);
  padding: 20px;
  min-width: 0;
  max-height: 1060px;
  overflow: auto;
  scrollbar-width: thin;
}
.sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.sidebar-head p {
  margin: 0;
}
.sidebar-head button {
  border: 0;
  padding: 0;
  font-size: 10px;
  min-height: 32px;
}
.search-label {
  display: block;
  margin-bottom: 15px;
}
.search-label input {
  font-size: 12px;
  background: transparent;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 10px;
}
.filters label {
  display: grid;
  gap: 4px;
}
.filters .full {
  grid-column: 1/-1;
}
.more-filters {
  font-size: 11px;
  margin-top: 10px;
}
.more-filters fieldset {
  border: 0;
  padding: 5px 0 10px;
  margin: 0;
  display: grid;
  gap: 4px;
}
.more-filters fieldset label,
.check {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 32px;
}
.more-filters legend {
  font-size: 11px;
}
.focus-row {
  display: flex;
  gap: 7px;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 13px;
  padding-top: 13px;
}
.focus-row button {
  font-size: 10px;
  padding: 8px;
}
.focus-row span {
  font-size: 10px;
  color: var(--muted);
}
.actor-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  max-height: 124px;
  overflow: auto;
  padding: 12px 0;
  margin-bottom: 15px;
  scrollbar-width: thin;
}
.actor-list button {
  font-size: 10px;
  min-height: 44px;
  padding: 6px 9px;
  border-radius: 20px;
}
.actor-list button.pov {
  border-width: 2px;
}
.actor-list p {
  font-size: 11px;
}
.detail-kicker {
  font-size: 10px;
  color: var(--green);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
#detail {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  line-height: 1.65;
  font-size: 12px;
}
#detail h2 {
  font-size: 27px;
  line-height: 1.2;
  margin-bottom: 12px;
}
#detail h3 {
  font-size: 12px;
  margin: 20px 0 7px;
}
#detail p {
  margin-bottom: 12px;
}
#detail dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 11px;
}
#detail dt {
  color: var(--muted);
}
#detail dd {
  margin: 0;
  text-align: right;
}
#detail .notice {
  padding: 10px 12px;
  background: #e9eee3;
  border-radius: 5px;
  font-size: 11px;
}
.detail-link {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 11px;
  line-height: 1.5;
  margin: 5px 0;
}
.evidence {
  color: var(--muted);
  font-size: 10px;
}
.register {
  padding: 30px 32px;
}
.register-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.register-head h2 {
  margin-bottom: 8px;
}
.register-head > span {
  font-size: 11px;
  color: var(--muted);
}
#event-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.event-card {
  text-align: left;
  padding: 14px;
  border-radius: 7px;
  line-height: 1.5;
  position: relative;
}
.event-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.event-card strong {
  font-size: 12px;
  display: block;
  margin: 6px 0;
  font-weight: 600;
}
.event-card .event-description {
  font-size: 11px;
  display: block;
}
.event-card[aria-pressed="true"] small {
  color: #dfebe2;
}
.source-note {
  margin: 0 32px 28px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 12px;
  line-height: 1.7;
}
.source-note p {
  max-width: 850px;
}
.source-note summary {
  font-weight: 550;
}
footer {
  border-top: 1px solid var(--line);
  padding: 20px 32px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
@media (min-width: 1700px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 390px;
  }
  .map-wrap,
  #diorama-frame {
    height: 650px;
  }
  .sidebar {
    max-height: 1150px;
  }
}
@media (max-width: 1100px) {
  .masthead {
    padding: 14px 20px;
  }
  .intro {
    padding: 24px 20px;
  }
  .intro-note {
    display: none;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .sidebar {
    padding: 15px;
  }
  .map-wrap,
  #diorama-frame {
    height: 520px;
  }
  .visual-pair.split {
    grid-template-columns: 1fr;
  }
  .visual-pair.split #diorama-frame {
    height: 360px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .viewbar {
    align-items: start;
    flex-direction: column;
    padding: 10px 16px;
  }
  .view-switch {
    flex-wrap: wrap;
  }
  .legend,
  .time-panel {
    padding-left: 16px;
    padding-right: 16px;
  }
  #event-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .map-title {
    left: 20px;
  }
  .time-head {
    flex-wrap: wrap;
  }
  .time-head > label {
    width: 100%;
    margin-bottom: 10px;
  }
}
@media (max-width: 760px) {
  .masthead {
    display: block;
    padding: 14px 16px;
  }
  .masthead nav {
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .masthead nav a,
  .masthead nav button {
    font-size: 11px;
  }
  .intro {
    padding: 21px 16px;
  }
  .intro h1 {
    font-size: 27px;
    line-height: 1.16;
  }
  .intro h1 span {
    display: block;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .map-wrap {
    height: 470px;
  }
  .sidebar {
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: none;
    padding: 20px 16px;
  }
  .sidebar .actor-list {
    max-height: 150px;
  }
  .viewbar {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .legend {
    font-size: 9px;
  }
  .legend .strand-key {
    gap: 9px 14px;
  }
  .map-title {
    top: 17px;
    left: 16px;
  }
  .map-title strong {
    font-size: 14px;
  }
  .camera-controls {
    left: 14px;
  }
  .camera-controls button {
    font-size: 10px;
    padding: 8px;
  }
  .map-help {
    left: 16px;
    font-size: 9px;
  }
  .time-head {
    flex-wrap: nowrap;
  }
  .time-head > label {
    width: auto;
    max-width: 155px;
  }
  .time-head select {
    min-width: 0;
    font-size: 11px;
  }
  .time-head h2 {
    font-size: 18px;
  }
  .time-actions {
    gap: 5px;
  }
  .time-actions button {
    padding: 7px;
  }
  .time-actions label {
    margin-left: 0;
  }
  .register {
    padding: 24px 16px;
  }
  #event-list {
    grid-template-columns: 1fr;
  }
  .source-note {
    margin: 0 16px 24px;
  }
  footer {
    padding: 18px 16px;
    flex-direction: column;
    gap: 5px;
  }
  .map-wrap:has(#map2d:not([hidden])) {
    height: 550px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
