html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* legacy Edge/IE */
}

html::-webkit-scrollbar {
  display: none; /* Chrome/Safari/WebKit */
}

.scroll-minimap {
  position: fixed;
  /* Keep clear of the notch/Dynamic Island now that viewport-fit=cover lets
     the map itself render full-bleed behind it (see .map-wrapper). */
  top: env(safe-area-inset-top, 0px);
  right: 0;
  bottom: 0;
  z-index: 20;
  width: var(--minimap-width);
  pointer-events: none;
}

.scroll-minimap__track {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-secondary);
  border-left: 1px solid var(--color-border);
  pointer-events: auto;
  cursor: pointer;
  touch-action: none;
}

.scroll-minimap__segment {
  position: absolute;
  left: 0;
  width: 100%;
}

.scroll-minimap__segment--gap {
  background-color: transparent;
}

.scroll-minimap__segment--panel,
.scroll-minimap__segment--hero {
  background-color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.scroll-minimap__tick {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
}

.scroll-minimap__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: hsla(20, 100%, 50%, 0.75);
  will-change: transform;
  outline: 1px solid var(--color-text);
}

.scroll-minimap__thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

@media (max-width: 50rem) {
  .scroll-minimap {
    bottom: var(--mobile-menu-toggle-height);
  }
}
