/* Softer text selection than browser default (often very dark) */
::selection {
  background-color: rgb(203 213 225); /* slate-300 */
  color: rgb(15 23 42); /* slate-900 */
}

/* Mode buttons and sliders; Explain modes sits in #preferencesSection header, outside controls */
#preferencesSectionControls.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}
#preferencesSectionControls.disabled * {
  pointer-events: none;
  cursor: not-allowed;
}

/* Ensure time select has consistent sizing to prevent layout shift */
#timeSelect {
  font-size: 1rem; /* Consistent font size */
}

/* Make the placeholder option in time select gray */
#timeSelect option[value=""]:disabled {
  color: rgb(148 163 184) !important; /* slate-400 */
}

#timeSelect option:disabled {
  color: rgb(148 163 184) !important; /* slate-400 */
}

/* When the select has no value selected, make the displayed text gray */
#timeSelect.placeholder {
  color: rgb(148 163 184); /* slate-400 */
}

/* Ensure day select has consistent sizing to prevent layout shift */
#daySelect {
  font-size: 1rem; /* Consistent font size */
}

/* Make the placeholder option in day select gray */
#daySelect option[value=""]:disabled {
  color: rgb(148 163 184) !important; /* slate-400 */
}

#daySelect option:disabled {
  color: rgb(148 163 184) !important; /* slate-400 */
}

/* When the day select has no value selected, make the displayed text gray */
#daySelect.placeholder {
  color: rgb(148 163 184); /* slate-400 */
}

/* Make the placeholder option in destination select gray */
#destinationSelect option[value=""]:disabled {
  color: rgb(148 163 184) !important; /* slate-400 */
}

#destinationSelect option:disabled {
  color: rgb(148 163 184) !important; /* slate-400 */
}

/* When the destination select has no value selected, make the displayed text gray */
#destinationSelect.placeholder {
  color: rgb(148 163 184); /* slate-400 */
}

/* Prevent layout shift when reset button appears/disappears */
#resetButton.hidden {
  visibility: hidden;
  pointer-events: none;
}

/* Data pages: desktop-only layout (wider, no mobile constraints) */
main.data-view-active {
  max-width: 72rem;
}
/* Modes explainer page: one Leaflet map per mode (square tile in grid layout) */
.modes-page-map {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
}

body.modes-explain-modal-open {
  overflow: hidden;
}

#dataView pre {
  font-size: 0.8125rem;
  max-height: 85vh;
}
