/* The top-level directory tab gives the existing, permission-scoped list the main column. */
@media (min-width: 701px) {
  html:root .workspace.map-dual-layout[data-map-pane="stations"]:not([hidden]) {
    display: grid;
    grid-template-columns: clamp(14rem, 23%, 20rem) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  html:root .workspace.map-dual-layout[data-map-pane="stations"] > .map-interface {
    display: none;
  }

  html:root .workspace.map-dual-layout[data-map-pane="stations"] > .map-panel-column {
    display: flex;
    flex-direction: column;
    grid-row: 1;
    min-height: 0;
    min-width: 0;
    margin-block: clamp(10px, 1.7vh, 22px);
    transform: none;
    transform-style: flat;
  }

  html:root .workspace.map-dual-layout[data-map-pane="stations"] > .map-panel-column--left {
    grid-column: 1;
    margin-inline: clamp(10px, 1.5vw, 24px) 6px;
  }

  html:root .workspace.map-dual-layout[data-map-pane="stations"] > .map-panel-column--right {
    grid-column: 2 / -1;
    margin-inline: 6px clamp(10px, 1.5vw, 24px);
  }

  html:root .workspace.map-dual-layout[data-map-pane="stations"] .map-panel-column > .map-glass-shell {
    display: none !important;
  }

  html:root .workspace.map-dual-layout[data-map-pane="stations"] .map-panel-column > .map-rail-shell {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    margin: 0;
    transform: none;
  }

  html:root .workspace.map-dual-layout[data-map-pane="stations"] .map-rail-shell > .info-rail {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    overflow: auto;
    overscroll-behavior: contain;
  }

  html:root .workspace.map-dual-layout[data-map-pane="stations"] #station-rail-title {
    display: block;
    font-size: clamp(20px, 2vw, 28px);
    margin-block: 0 8px;
  }

  html:root .workspace.map-dual-layout[data-map-pane="stations"] #pane-stations #station-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    align-content: start;
    gap: 8px 22px;
  }
}

@media (min-width: 701px) and (max-width: 1119px) {
  html:root .workspace.map-dual-layout[data-map-pane="stations"]:not([hidden]) {
    min-height: 0;
    height: 78vh;
    height: 78dvh;
  }

  html:root .workspace.map-dual-layout[data-map-pane="stations"] .map-rail-shell--region .panel-tabs {
    display: none;
  }
}
