/* Control ANDRIK v55.00 FINAL R39 — landscape map fits its picture; country list follows immediately. */
@media screen and (orientation:landscape){
  /* The map frame and the rendered map use one identical ratio. This removes the empty tail. */
  body.analytics-admin-page.analytics-v54-46-page .analytics-map-pane .analytics-map-top:not(.has-country-focus) > #worldMap,
  body.analytics-admin-page.analytics-v54-46-page .analytics-map-pane .analytics-map-top:not(.has-country-focus) .world-map-canvas,
  body.analytics-admin-page.analytics-v54-46-page .analytics-map-pane .analytics-map-top:not(.has-country-focus) .world-map-stage{
    box-sizing:border-box!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:2.96/1!important;
  }

  body.analytics-admin-page.analytics-v54-46-page .analytics-map-pane .analytics-map-top:not(.has-country-focus) > #worldMap{
    margin-top:0!important;
    margin-bottom:0!important;
    overflow:hidden!important;
  }

  body.analytics-admin-page.analytics-v54-46-page .analytics-map-pane .analytics-map-top:not(.has-country-focus) .world-map-canvas{
    padding:3px 2px!important;
    overflow:hidden!important;
  }

  body.analytics-admin-page.analytics-v54-46-page .analytics-map-pane .analytics-map-top:not(.has-country-focus) .world-map-stage{
    position:relative!important;
    overflow:visible!important;
  }

  body.analytics-admin-page.analytics-v54-46-page .analytics-map-pane .analytics-map-top:not(.has-country-focus) .world-map-stage > img{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:fill!important;
  }

  /* Countries begin directly below the map. */
  body.analytics-admin-page.analytics-v54-46-page .analytics-map-pane .analytics-map-top:not(.has-country-focus) > #worldCountries{
    margin-top:7px!important;
    margin-bottom:0!important;
    padding-top:0!important;
    padding-bottom:0!important;
  }

  /* In landscape the full-list control is a compact round button at the bottom centre. */
  body.analytics-admin-page.analytics-v54-46-page #worldCountries .world-country-toggle.is-top-toggle{
    display:none!important;
  }

  body.analytics-admin-page.analytics-v54-46-page #worldCountries .world-country-toggle:not(.is-top-toggle){
    grid-column:1 / -1!important;
    justify-self:center!important;
    align-self:center!important;
    display:grid!important;
    place-items:center!important;
    box-sizing:border-box!important;
    width:52px!important;
    height:52px!important;
    min-width:52px!important;
    min-height:52px!important;
    max-width:52px!important;
    max-height:52px!important;
    margin:8px auto 1px!important;
    padding:0!important;
    border-radius:50%!important;
    font-size:0!important;
    line-height:1!important;
    white-space:nowrap!important;
  }

  body.analytics-admin-page.analytics-v54-46-page #worldCountries .world-country-toggle:not(.is-top-toggle)::before{
    content:"⌄";
    display:block;
    margin-top:-4px;
    color:#bcecff;
    font-size:30px;
    font-weight:900;
    line-height:1;
  }

  body.analytics-admin-page.analytics-v54-46-page #worldCountries .world-country-toggle:not(.is-top-toggle)[aria-expanded="true"]::before{
    content:"⌃";
    margin-top:5px;
  }
}
