.timeline-projection {
  position: absolute;
  z-index: 810;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 1px solid #b7bec3;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 2px 6px #0002;
}

.timeline-projection[hidden], .timeline-map-error[hidden] { display: none; }
.timeline-projection legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.timeline-projection label { position: relative; cursor: pointer; }
.timeline-projection input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.timeline-projection span {
  display: grid;
  place-items: center;
  min-width: 58px;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 3px;
  color: #39434b;
  font-size: 13px;
  font-weight: 700;
}
.timeline-projection input:checked + span { background: #dceef3; color: #123f50; }
.timeline-projection input:focus-visible + span { outline: 2px solid #087ea4; outline-offset: 1px; }
.timeline-vector .maplibregl-ctrl-top-left { top: 4.25rem; }
.timeline-vector .maplibregl-ctrl-group button { width: 36px; height: 36px; }
.timeline-vector .maplibregl-ctrl-attrib { font-size: 10px; max-width: calc(100vw - 24px); }
.timeline-vector #timelineMap { background: #e4ebee; }
.timeline-vector-tooltip { pointer-events: none; }
.timeline-vector-tooltip .maplibregl-popup-content { background: #121920; color: #f4f7f9; border-radius: 6px; padding: 10px 12px; }
.timeline-vector-tooltip .maplibregl-popup-tip { border-top-color: #121920; }
.timeline-map-error {
  position: absolute;
  top: 8.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 830;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px;
  border: 1px solid #bd9a68;
  border-radius: 6px;
  background: #fff;
  color: #44341f;
  font-size: 13px;
}
.timeline-map-error button, .timeline-map-error a { color: #006683; font: inherit; text-decoration: underline; cursor: pointer; }
.timeline-map-error button { border: 0; padding: 0; background: transparent; }
#timelinePreviewLink { font-size: 12px; color: #7dd3fc; }
.timeline-sun-details { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #ffffff26; cursor: help; }
.timeline-sun-details dt { text-decoration: underline dotted; }
.timeline-sun-details:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 3px; }
.timeline-local-section .path-detail-list dd { overflow-wrap: anywhere; }
.page-timeline .timeline-settings { position: static; }
.page-timeline .timeline-settings-panel { left: 0; right: auto; white-space: normal; }

@media (min-width: 641px) and (max-width: 1100px) {
  .timeline-vector .timeline-toolbar { width: 360px; right: auto; }
}

@media (max-width: 640px) {
  .page-timeline .timeline-settings-panel { left: auto; right: 0; }
  .timeline-vector .maplibregl-ctrl-top-left { top: 0; }
  .timeline-projection { top: 4.6rem; right: 0.5rem; }
  .timeline-projection span { min-height: 38px; min-width: 56px; }
}
