/* FM27 R27.18 – world navigation and responsive stadium layout. */
body.fm27-midnight.fm27-world-page .fm27-management-bands{gap:10px}
body.fm27-midnight.fm27-world-page .fm27-management-primary{min-height:62px;border-radius:12px!important}
body.fm27-midnight.fm27-world-page .fm27-management-secondary{min-height:52px;border-radius:11px!important;padding:7px 11px}
body.fm27-midnight .fm27-r2718-league-picker{display:flex;align-items:center;gap:12px;margin-left:auto;min-width:0;max-width:calc(100% - 130px)}
body.fm27-midnight .fm27-r2718-league-picker label{font-size:.81rem;font-weight:750;white-space:nowrap;margin:0;color:#e8fff9}
body.fm27-midnight .fm27-r2718-league-picker select{width:clamp(230px,32vw,450px);max-width:100%;background:#143e39!important;color:#fff!important;border:1px solid #73ad9f!important;border-radius:9px!important;font-size:.85rem;padding:8px 12px}
body.fm27-midnight .fm27-r2718-league-modebar{display:flex;align-items:center;justify-content:space-between;gap:10px}
body.fm27-midnight .fm27-r2718-league-modes{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
body.fm27-midnight .fm27-r2718-league-modes a,body.fm27-midnight .fm27-r2718-league-results{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;text-decoration:none;color:#d2ede6;font-size:.82rem;font-weight:730;border:1px solid transparent;border-radius:8px;white-space:nowrap}
body.fm27-midnight .fm27-r2718-league-modes a:hover,body.fm27-midnight .fm27-r2718-league-results:hover{background:rgba(255,255,255,.14);color:#fff}
body.fm27-midnight .fm27-r2718-league-modes a.is-active{background:#129784;color:#fff;border-color:#73d9c1}
body.fm27-midnight .fm27-r2718-freeclubs-tabs{display:flex;align-items:center;gap:7px;border:0;margin:0}
body.fm27-midnight .fm27-r2718-freeclubs-tabs .nav-link{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border:1px solid transparent!important;border-radius:8px!important;background:transparent!important;color:#d2ede6!important;font-size:.82rem;font-weight:730;white-space:nowrap}
body.fm27-midnight .fm27-r2718-freeclubs-tabs .nav-link.active{background:#129784!important;border-color:#73d9c1!important;color:#fff!important}
body.fm27-midnight .fm27-r2718-freeclubs-tabs .nav-link:hover{background:rgba(255,255,255,.14)!important;color:#fff!important}
body.fm27-midnight .fm27-r2717-freeclubs .fm27-r2717-accordion-count{margin-left:0!important;margin-right:0;min-width:30px}
body.fm27-midnight .fm27-r2717-freeclubs .fm27-r2717-accordion-title{display:inline-flex;align-items:center;gap:6px;min-width:0}
body.fm27-midnight .fm27-r2717-freeclubs .accordion-button{justify-content:flex-start;gap:8px}
body.fm27-midnight .fm27-r2718-standing{width:100%!important;max-width:none!important;margin:0!important}
body.fm27-midnight .fm27-r2718-standing .fm27-w79-table-scroll{max-width:100%;width:100%}
body.fm27-midnight .fm27-r2718-standing .fm27-w79-league-table{width:100%;min-width:575px}
body.fm27-midnight .fm27-r2718-standing .fm27-w79-league-table th,body.fm27-midnight .fm27-r2718-standing .fm27-w79-league-table td{padding:12px 14px!important}
body.fm27-midnight .fm27-r2718-season-history{margin-top:8px;padding:8px 15px;border-top:1px solid #334761}
body.fm27-midnight .fm27-r2718-season-history summary{color:#aacee0;font-size:.8rem;cursor:pointer}
body.fm27-midnight .fm27-r2718-season-history nav{display:flex;gap:8px;flex-wrap:wrap;padding-top:8px}
body.fm27-midnight .fm27-r2718-season-history nav a{color:#d2e4fa;font-size:.81rem;text-decoration:none;padding:5px 9px;border-radius:6px;background:#253954}
/* True 4/5 : 1/5 layout. Responsive stack on narrower screens to protect upgrade controls. */
@media(min-width:1101px){body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stadium-layout{grid-template-columns:minmax(0,4fr) minmax(0,1fr)!important;gap:14px!important}}
@media(min-width:1101px){body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-facts>div{grid-template-columns:minmax(0,1fr)!important;gap:5px}body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-facts>div.fm27-r2715-quality{grid-template-columns:minmax(0,1fr)!important}body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-facts dd{justify-self:start!important}}
@media(max-width:1100px){body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stadium-layout{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:700px){body.fm27-midnight .fm27-r2718-league-picker{margin-left:0;max-width:100%;width:100%;flex-wrap:wrap}body.fm27-midnight .fm27-r2718-league-picker select{flex:1;min-width:0;width:100%}body.fm27-midnight .fm27-r2718-league-modebar{flex-wrap:wrap}body.fm27-midnight .fm27-r2718-league-results{margin-left:auto}}
