.map-timeline {
  min-width: 0;
  color: #242426;
  background: #ededeb;
  border-block: 1px solid #cfceca;
}
.timeline-bar {
  position: sticky; top: 0; z-index: 2; background: #fbfaf6;
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px;
  padding: 10px 14px; border-bottom: 1px solid #d2cdc2;
}
.map-timeline h3 { margin: 0; font: 700 14px/1.35 Inter, Arial, sans-serif; text-transform: none; letter-spacing: -.015em; }
.timeline-status { color: #5b565c; font: 12px/1.4 Inter, Arial, sans-serif; }
.timeline-play {
  margin-left: auto; padding: 5px 12px; border: 1px solid #bbb3b8; border-radius: 16px;
  color: #332735; background: white; font: 620 12px/1.3 Inter, Arial, sans-serif;
}
.timeline-play:enabled:hover { color: white; background: #353539; }
.timeline-play:disabled { opacity: .55; cursor: default; }
.timeline-viewport {
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin;
  scrollbar-color: #92928d #e6e6e2; direction: ltr;
}
.timeline-viewport:focus-visible { outline-offset: -3px; }
.timeline-track {
  --min-column: 165px;
  --cap: 20px;
  --node-offset: 19px;
  position: relative; display: grid; box-sizing: border-box;
  width: max(100%, calc(var(--date-count) * var(--min-column) + 32px));
  grid-template-columns: var(--date-columns);
  grid-template-rows: minmax(60px, auto) auto minmax(54px, auto);
  padding: 18px 16px 20px;
}
.timeline-track:empty { display: none; }
.timeline-column {
  min-width: 0; display: grid; grid-row: 1 / 4;
  grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr);
}
.timeline-stop {
  isolation: isolate; position: relative; grid-row: 2; grid-column: 1;
  min-height: 42px; width: 100%; text-align: left;
  border: none; border-radius: 24px; padding: 5px 9px 5px 34px;
  background: transparent; color: var(--segment-ink);
  font: 530 clamp(15px, 1.25vw, 20px)/1.12 Inter, Arial, sans-serif;
  font-variant-numeric: tabular-nums; letter-spacing: -.042em;
}
.timeline-stop small { font: 11px/1.3 Inter, Arial, sans-serif; letter-spacing: 0; margin-left: 6px; white-space: nowrap; }
.timeline-stop::before {
  content: ""; position: absolute; z-index: -1; inset: 0 calc(-1 * var(--cap)) 0 0;
  background: var(--segment); border-radius: 24px 0 0 24px;
}
.timeline-column:last-child .timeline-stop::before { right: 0; border-radius: 24px; }
.timeline-stop:hover { color: var(--segment-ink); background: transparent; text-decoration: underline; }
.timeline-stop[aria-pressed="true"] { color: #202022; }
.timeline-stop[aria-pressed="true"]::before { background: #fff; }
.timeline-stop[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 13px; top: calc(50% - 5px);
  width: 10px; height: 10px; border-radius: 50%; background: #d1f32d; box-shadow: 0 0 0 1px #899934;
}
.timeline-stop:focus-visible { z-index: 1; outline-offset: -2px; }
.timeline-column[data-date=""] .timeline-stop { margin-left: 8px; width: calc(100% - 8px); color: #444; }
.timeline-column[data-date=""] .timeline-stop::before { background: #f5f5f2; border: 1px dashed #989891; border-radius: 24px; right: 0; }
.timeline-column:has(+ [data-date=""]) .timeline-stop::before { right: 0; border-radius: 24px; }
.time-cards {
  display: grid; gap: 6px; position: relative; grid-column: 1; min-width: 0;
  padding-left: calc(var(--node-offset) + 12px); padding-right: 12px;
}
.time-cards:empty, .time-cards[hidden] { display: none; }
.time-cards.above { grid-row: 1; align-self: end; padding-bottom: 21px; }
.time-cards.below { grid-row: 3; align-self: start; padding-top: 21px; }
.time-cards::before {
  content: ""; position: absolute; left: var(--node-offset); width: 1px; background: #9b9b95;
}
.time-cards.above::before { top: 13px; bottom: 0; }
.time-cards.below::before { top: 0; bottom: 0; }
.time-cards.below > :last-child::after {
  content: ""; position: absolute; left: -12px; top: 17px; bottom: 0; width: 1px; background: #ededeb;
}
.time-cards > * { position: relative; min-width: 0; }
.time-cards > *::before {
  content: ""; position: absolute; top: 10px; left: -15px; width: 7px; height: 7px;
  background: #343436; border-radius: 50%;
}
.time-cards > [aria-pressed="true"]::before,
.time-cards > .post-event:has([aria-pressed="true"])::before {
  background: #cce93c; box-shadow: 0 0 0 1px #676e41;
}
.time-paper, .map-timeline .source-paper, .map-timeline .node {
  width: 100%; text-align: left; padding: 6px 7px;
  border: 1px solid transparent; border-radius: 4px; box-shadow: none;
  background: transparent; color: #28282a; overflow-wrap: anywhere;
}
.time-paper:hover, .map-timeline .node:hover, .map-timeline .source-paper:hover { background: #fafaf7; }
.time-paper[aria-pressed="true"], .map-timeline .node.on, .map-timeline .source-paper[aria-pressed="true"] {
  background: #fafaf8; border-color: #aaa9a1; box-shadow: none; color: #242426;
}
.map-timeline .source-paper[aria-pressed="true"] .paper-byline small { color: #535351; }
.map-timeline .node.traced { border-color: #acb089; }
.map-timeline .kind { color: #555551; }
.map-timeline .edition-group { background: #f8f8f4; border-color: #c3c3b9; }
.map-timeline .copy-heading { color: #393a35; }
.map-timeline .copy.on { color: #242420; background: #ecf4c3; border-color: #8b964e; box-shadow: none; }
.time-paper strong, .time-paper small { display: block; }
.time-paper strong { font: 700 14px/1.4 Inter, Arial, sans-serif; }
.time-paper small { margin-top: 3px; font: 13px/1.4 Inter, Arial, sans-serif; }
.post-words { display: block; margin-top: 7px; font: 18px/1.35 Georgia, serif; }
.post-event > a { display: inline-block; margin: 3px 0 0 8px; font-size: 12px; }
#wording-board mark { background: #e1f38f; }
#quote-comparison:not(:empty) { margin-top: 12px; }
#attribution-diagram { margin: 12px 0; }
#attribution-diagram > summary { padding-top: 0; border: 0; }
@media (max-width: 680px) {
  .timeline-bar { padding: 8px 12px; }
  .timeline-status { flex: 1 0 100%; order: 1; }
  .timeline-track { --min-column: 180px; --node-offset: 12px; padding: 12px 12px 14px; }
  .timeline-stop { min-height: 44px; }
  .time-cards { padding-right: 7px; }
  .time-cards.above { padding-bottom: 15px; }
  .time-cards.below { padding-top: 15px; }
}
