/* swisstopo's map under the top view (under/lay.js, ST-046): the pictures under the canvas, in
   one box that the script turns and scales, at the strength the owner set, on the paper's white;
   and their credits in the window's corner, over the canvas. None of it takes the pointer: a
   click goes to the paper, as it always did. */
#under-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
  pointer-events: none;
}
#under-map > div {
  position: absolute;
  transform-origin: 50% 50%;
}
#under-map img {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  user-select: none;
}
/* Over the canvas: #under-map makes no stack of its own, so the credits rise above the paper. */
#under-map > p {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
  padding: 2px 6px;
  font-size: 11px;
  line-height: 15px;
  color: var(--ink);
  background: rgb(255 255 255 / 80%);
  border-radius: 4px;
}
#under-map > p:empty {
  display: none;
}
/* The control "Map" in the View group (under/switch.js): the switch and the choice of map on one
   line, the slider of how strongly it shows under them - two rows in the group's height of 54. */
#under-control {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  align-content: center;
  align-items: center;
  gap: 2px 4px;
  font-size: 13px;
}
#under-control[hidden] {
  display: none;
}
#under-control label {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
}
/* The choice of map is a menu, as File is (frame.css, `.menu`): its button, as high as the
   switch's line, says the chosen map; its part lies under the control, the chosen map in bold.
   No tick before it: a header button's ::before is an icon's mask (icons.css), and a tick
   there would show as a square. */
#under-layer {
  height: 26px;
  padding: 0 8px;
  white-space: nowrap;
}
#under-layers [aria-checked='true'] {
  font-weight: 600;
}
#under-strength {
  grid-column: 1 / 3;
  width: 100%;
  height: 18px;
  margin: 0;
}
#under-control:has(:disabled) {
  color: var(--off);
}
