[data-artifact-explorer] .module-map-surface { clip-path: none; }
[data-image-explorer] .map-entry-preview,
[data-image-explorer] .map-view-transition {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
[data-artifact-explorer] .module-map-layout {
  display: grid;
  grid-template-rows: auto minmax(185px, 1fr) auto;
  row-gap: clamp(6px, 1.3svh, 12px);
  min-height: min(880px, calc(100svh - 82px));
  padding-block-end: clamp(14px, 2.4svh, 26px);
}
[data-artifact-explorer] .map-systems[hidden] { display: none; }
[data-artifact-explorer] .map-stage {
  height: 100%;
  min-height: 0;
  margin: 0;
  aspect-ratio: auto;
  overflow: hidden;
}
[data-artifact-explorer] .map-toolbar { margin: 0; row-gap: 7px; grid-template-rows: auto auto minmax(19.5px, auto); }
[data-artifact-explorer] .map-systems { display: flex; flex-wrap: wrap; }
[data-artifact-explorer] .map-systems button {
  border: 0;
  grid-column: auto;
  padding-inline: clamp(10px, 1.1vw, 16px);
}
[data-artifact-explorer] .map-reset { min-width: 44px; }
[data-artifact-explorer]:has([data-reset-overview]) .map-stage {
  touch-action: pan-y pinch-zoom;
  user-select: none;
}
[data-artifact-explorer]:has([data-reset-overview]) .map-stage:has(:focus-visible) {
  outline: 2px solid var(--map-soft);
  outline-offset: -2px;
}
[data-artifact-explorer] .map-retry {
  color: var(--map-light);
  text-decoration: underline;
  text-underline-offset: .2em;
}
@media (max-width: 540px) {
  [data-artifact-explorer] .module-map-heading:has([data-reset-overview]) {
    grid-template-columns: 1fr;
  }
  [data-artifact-explorer] .module-map-heading:has([data-reset-overview]) .product-heading {
    grid-column: 1;
  }
  [data-artifact-explorer] .map-reset[data-reset-overview] {
    position: static;
    grid-column: 1;
    grid-row: 2;
    width: auto;
    justify-self: center;
  }
  [data-reset-overview] .map-reset-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
}
[data-artifact-explorer] .map-facts a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
}
[data-artifact-explorer] .map-facts a:is(:hover, :focus-visible) { color: var(--map-light); }

/* Keep the page steady as the selected caption changes length. */
[data-artifact-explorer] .map-facts {
  display: grid;
  align-items: start;
}
[data-artifact-explorer] .map-facts > [data-fact] { grid-area: 1 / 1; }
[data-artifact-explorer] .map-facts > [aria-hidden="true"] { visibility: hidden; }
[data-artifact-viewer]:focus-visible {
  outline: 2px solid var(--map-soft);
  outline-offset: -2px;
}
[data-artifact-viewer] canvas { touch-action: pan-y pinch-zoom; }
[data-artifact-explorer] .map-guide {
  margin: 0;
  color: var(--map-soft);
  font: 400 13px/1.5 var(--sans);
  text-align: center;
}
[data-artifact-explorer] .map-guide[hidden] { display: block; visibility: hidden; min-height: 1.5em; }
@media (min-width: 601px) and (max-width: 1319px) {
  [data-artifact-explorer] .map-systems:not([hidden]):has(button:nth-child(10)) {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, max-content));
  }
  [data-artifact-explorer] .map-systems:has(button:nth-child(10)) button { padding-inline: 8px; }
}
@media (max-width: 600px) {
  [data-artifact-explorer] .module-map-layout { min-height: min(740px, calc(100svh - 76px)); }
  [data-artifact-explorer] .map-systems {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 4px;
  }
  [data-artifact-explorer] .map-systems button { grid-column: auto; padding-inline: 3px; white-space: normal; text-wrap: balance; }
  [data-artifact-explorer] .map-systems button:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}
@media (max-width: 600px) and (max-height: 720px) {
  [data-artifact-explorer] .module-map-layout { padding-block-end: 10px; row-gap: 4px; }
  [data-artifact-explorer] .map-toolbar { row-gap: 3px; }
}

[data-image-explorer] .map-stage[tabindex="0"] { cursor: grab; }
[data-image-explorer] .map-stage[tabindex="0"]:active { cursor: grabbing; }
[data-image-explorer] .map-stage[tabindex="0"]:focus-visible {
  outline: 2px solid var(--map-soft);
  outline-offset: -2px;
}

[data-image-explorer] .map-stage[tabindex="0"] { touch-action: pan-y pinch-zoom; user-select: none; }
[data-image-explorer] .map-view-transition { z-index: 1; }
[data-image-explorer] [data-orbit-hint] { margin: 0; color: var(--map-soft); font: 400 13px/1.5 var(--sans); text-align: center; }
[data-image-explorer] [data-orbit-hint][hidden] { display: block; visibility: hidden; }

[data-presentation] .presentation-canvas { position:absolute; inset:0; width:100%; height:100%; display:block; opacity:0; pointer-events:none; }
[data-presentation] .presentation-ready .presentation-canvas { opacity:1; }
[data-presentation] .presentation-ready .map-poster { visibility:hidden; }
