/* LIME999 · keep the header clear of the phone status bar / notch on every phone.
   When the site runs as a home-screen app (translucent status bar, viewport-fit=cover) the page starts under the clock and
   battery. env()/constant() report that height; in a normal browser tab they are 0, so nothing moves. Loaded last. */
:root{--sa-t:0px;--sa-l:0px;--sa-r:0px;--tb-h:60px}
@supports (padding-top:constant(safe-area-inset-top)){:root{--sa-t:constant(safe-area-inset-top);--sa-l:constant(safe-area-inset-left);--sa-r:constant(safe-area-inset-right)}}
@supports (padding-top:env(safe-area-inset-top)){:root{--sa-t:env(safe-area-inset-top,0px);--sa-l:env(safe-area-inset-left,0px);--sa-r:env(safe-area-inset-right,0px)}}
@media(max-width:700px){:root{--tb-h:56px}}

/* the header grows by the status-bar height and its content sits below it (a later rule had reset this padding to 0) */
.topbar{box-sizing:border-box;height:calc(var(--tb-h) + var(--sa-t))!important;padding-top:var(--sa-t)!important}
@supports (padding-left:max(0px,1px)){.topbar{padding-left:max(12px,var(--sa-l))!important;padding-right:max(12px,var(--sa-r))!important}}

/* desktop grid: the header row and the sticky sidebar / bet slip move down with it */
@media(min-width:1201px){
  .shell{grid-template-rows:calc(var(--header-h) + var(--sa-t)) minmax(0,1fr) auto}
  .sidebar{top:calc(var(--header-h) + var(--sa-t));height:calc(100vh - var(--header-h) - var(--sa-t))}
  .slip{top:calc(var(--header-h) + var(--sa-t) + 12px)}
}

/* phones and tablets: the slide-in menu and pop-ups start at the very top */
@media(max-width:1200px){
  .sidebar{padding-top:calc(12px + var(--sa-t))}
  .modal{padding-top:calc(10px + var(--sa-t))}
}
