/* Regional timeline. One dark map window and a period slider.
   Courier, 12px, matching the site. The frame uses the Vacant dark-map colours.
   Width is the parent column. No 100vw, so a scrollbar does not shift the page. */

.region-timeline {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 1rem 0 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.85);
}

.region-timeline *,
.region-timeline *::before,
.region-timeline *::after {
  box-sizing: border-box;
}

.rt-frame {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #0e0e0e;
  border: 1px solid #000;
}

.rt-tiles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.rt-tiles img {
  position: absolute;
  width: 256px;
  height: 256px;
  display: block;
  pointer-events: none;
}

.rt-svg {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.rt-shape {
  fill: rgba(255, 255, 255, 0.22);
  stroke: #fff;
  stroke-width: 1.25;
  stroke-linejoin: round;
  fill-rule: evenodd;
  transition: opacity 0.35s ease;
}

.rt-dot {
  fill: #fff;
  stroke: none;
}

.rt-name {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  fill: #fff;
  stroke: #0e0e0e;
  stroke-width: 3px;
  paint-order: stroke;
  stroke-linejoin: round;
}

.rt-period {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #f3efe4;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.rt-status {
  margin: 0;
  padding: 0.75rem;
  color: #f3efe4;
  font-size: 12px;
}

.rt-slider {
  display: block;
  max-width: 100%;
  margin: 0.55rem 0 0;
}

.rt-range {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  accent-color: #111;
}

.rt-range:focus-visible {
  outline: 1px solid #000;
  outline-offset: 2px;
}

.rt-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: space-between;
  max-width: 100%;
  margin: 0.35rem 0 0;
}

.rt-tick {
  max-width: 100%;
  color: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.rt-tick-on {
  color: #111;
  text-decoration: underline;
}

.rt-caption,
.rt-note {
  margin: 0.45rem 0 0;
  max-width: 40em;
  color: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.rt-caption a,
.rt-note a {
  color: inherit;
}

.rt-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .rt-frame {
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rt-shape {
    transition: none;
  }
}
