/* FM27 R27.88d – restore venue heading, raise stadium stands and keep all actions visible.
   Presentation only. R27.88c 60/20/20 grid, mobile layout and original build hooks preserved. */
body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r2788c-hero-head{
  justify-content:space-between!important;align-items:center!important;
  gap:12px!important;min-height:0!important;padding-bottom:8px!important;
}
body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r2788c-hero-head .fm27-s2722-heading-copy{
  display:block!important;min-width:0!important;flex:1 1 auto!important;
}
body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r2788c-hero-head .fm27-s2722-head-total{
  flex:0 0 auto!important;margin-left:auto!important;
}
/* The clipped top and bottom tiles came from fixed 94px stadium-end rows:
   content height was greater than the available row. Give both end ranks real space. */
@media(min-width:1201px){
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r2788c-stage{
   flex:1 1 auto!important;min-height:0!important;align-items:stretch!important;
 }
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r2785-bowl{
   min-height:635px!important;height:100%!important;
   grid-template-rows:minmax(142px,auto) minmax(270px,1fr) minmax(142px,auto)!important;
 }
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r83-stand-w,
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r83-stand-o{
   display:flex!important;align-items:center!important;justify-content:center!important;
 }
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r83-stand-w .fm27-s2722-tribune-inner,
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r83-stand-o .fm27-s2722-tribune-inner{
   width:min(100%,310px)!important;min-height:110px!important;max-height:none!important;
   height:auto!important;align-self:center!important;
   margin:auto!important;box-sizing:border-box!important;
   padding:8px 12px!important;gap:4px!important;
 }
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r83-stand-w .fm27-s2722-tribune-action,
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r83-stand-o .fm27-s2722-tribune-action{
   margin-top:5px!important;flex-shrink:0!important;
 }
 /* Allow the revenue card to grow with the taller stadium and keep bottom edges flush. */
 body.fm27-midnight .fm27-r2715-stadium #stadium-spieltag{
   min-height:230px!important;
 }
}
/* Medium/tablet: protect the top/bottom build buttons even below the 3-column breakpoint. */
@media(min-width:691px) and (max-width:1200px){
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r2785-bowl{
   min-height:555px!important;
   grid-template-rows:minmax(125px,auto) minmax(270px,1fr) minmax(125px,auto)!important;
 }
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r83-stand-w,
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r83-stand-o{
   display:flex!important;align-items:center!important;justify-content:center!important;
 }
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r83-stand-w .fm27-s2722-tribune-inner,
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r83-stand-o .fm27-s2722-tribune-inner{
   width:min(100%,340px)!important;height:auto!important;min-height:104px!important;
   align-self:center!important;margin:auto!important;
 }
}
/* At medium screens existing two-/one-column layout remains intact. */
@media(max-width:1200px){
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r2788c-hero-head{
   flex-wrap:wrap!important;
 }
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r2788c-stage{
   min-height:0!important;
 }
}
@media(max-width:690px){
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r2785-bowl{
   min-height:495px!important;
   grid-template-rows:minmax(105px,auto) minmax(270px,1fr) minmax(105px,auto)!important;
 }
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r83-stand-w,
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r83-stand-o{
   display:flex!important;align-items:center!important;justify-content:center!important;
 }
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r83-stand-w .fm27-s2722-tribune-inner,
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r83-stand-o .fm27-s2722-tribune-inner{
   height:auto!important;min-height:85px!important;max-height:none!important;
   margin:auto!important;align-self:center!important;
 }
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r83-stand-w .fm27-s2722-direction-code,
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r83-stand-o .fm27-s2722-direction-code{display:none!important}
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r83-stand-w .fm27-s2722-direction-name,
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r83-stand-o .fm27-s2722-direction-name{
   display:inline!important;font-size:9px!important;
 }
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r2788c-hero-head{
   align-items:flex-start!important;
 }
 body.fm27-midnight .fm27-r2715-stadium #stadium-uebersicht .fm27-r2788c-hero-head .fm27-s2722-head-total{
   margin-left:0!important;
 }
}
