/* Shared optical alignment for the explorer's icon-only controls.
   Skins keep their individual artwork, colors and button shapes. */
:is(#savedButton,#uiModeButton,#aboutButton,#locateButton,#pitchButton,#buildingsButton,#resetButton,
    #routeClose,#themeClose,#placesClose,#aboutClose,#clearSearch){
  padding:0!important;
  text-align:center;
  line-height:0;
}
:is(#savedButton,#uiModeButton,#aboutButton,#locateButton,#pitchButton,#buildingsButton,#resetButton,
    #routeClose,#themeClose,#placesClose,#aboutClose,#clearSearch) > :is(img,svg){
  align-self:center;
  justify-self:center;
  margin:0;
  object-fit:contain;
}
/* Block World's raised bottom edge is thicker than its top border. */
body[data-theme=block] :is(#savedButton,#locateButton,#pitchButton,#buildingsButton,#resetButton,
  #routeClose,#themeClose,#placesClose,#aboutClose,#clearSearch)>.block-ui-glyph{
  translate:0 1px;
}
/* Subtle corrections for off-centre artwork inside otherwise centred boxes. */
body[data-theme=atomic] :is(#pitchButton,#themeOpen,#routeStyleOpen)>.atomic-ui-glyph{translate:1px 0}
body[data-theme=atomic] :is(#savedButton,#savePlaceButton)>.atomic-ui-glyph{translate:-1px 1px}
body[data-theme=neon] #routeButton>.neon-ui-glyph{translate:2px 0}

/* One physical UI control scale across all worlds. The source artwork and
   surface treatments still belong to their respective themes. */
body[data-theme] :is(.circle-button,.tool-button)>:is(.aero-ui-glyph,.frontier-ui-glyph,.kawaii-ui-glyph,
  .neon-ui-glyph,.atomic-ui-glyph,.block-ui-glyph,.coral-ui-glyph,.tactical-ui-glyph,.nightops-ui-glyph){
  width:28px;height:28px;
}
body[data-theme] .search-icon>:is(.aero-ui-glyph,.frontier-ui-glyph,.kawaii-ui-glyph,
  .neon-ui-glyph,.atomic-ui-glyph,.block-ui-glyph,.coral-ui-glyph,.tactical-ui-glyph,.nightops-ui-glyph){
  width:26px;height:26px;
}
body[data-theme] .route-place-symbol>:is(.aero-ui-glyph,.frontier-ui-glyph,.kawaii-ui-glyph,
  .neon-ui-glyph,.atomic-ui-glyph,.block-ui-glyph,.coral-ui-glyph,.tactical-ui-glyph,.nightops-ui-glyph){
  width:36px;height:36px;
}
@media(max-width:760px){
  body[data-theme] :is(.circle-button,.tool-button)>:is(.aero-ui-glyph,.frontier-ui-glyph,.kawaii-ui-glyph,
    .neon-ui-glyph,.atomic-ui-glyph,.block-ui-glyph,.coral-ui-glyph,.tactical-ui-glyph,.nightops-ui-glyph){
    width:26px;height:26px;
  }
}

/* Shared building toggle: the building silhouette stays optically centred in
   all eight button skins, and the diagonal slash appears only when hidden. */
#buildingsButton>svg{width:24px;height:24px;display:block;overflow:visible}
#buildingsButton .building-outline,#buildingsButton .building-off-slash{transition:opacity .18s ease}
#buildingsButton .building-off-slash{opacity:0}
#buildingsButton[aria-pressed="false"] .building-outline{opacity:.36}
#buildingsButton[aria-pressed="false"] .building-off-slash{opacity:1}
#buildingsButton:disabled{opacity:.48;cursor:not-allowed}
