/* FM27 R27.15: club layout / stadium interaction, scoped. */
body.fm27-midnight.fm27-club-page.fm27-r2711-full-page #contentArea,
body.fm27-midnight.fm27-club-page.fm27-r2711-full-page #pagecontent{width:100%;max-width:none;min-width:0}
body.fm27-midnight.fm27-club-page.fm27-r2711-full-page #contentArea>.fm27-r272-unboxed{background:transparent;border:0;box-shadow:none;padding:0;max-width:none}
/* Green lower band: no double navigation on club pages. */
body.fm27-midnight.fm27-club-page .fm27-r2715-club-context{min-height:52px}
body.fm27-midnight .fm27-r2715-friendly-rules{display:flex;gap:10px;align-items:center;line-height:1.45;padding:12px 18px;font-size:.76rem;color:#edfff8;white-space:normal;min-height:52px}
body.fm27-midnight .fm27-r2715-friendly-rules i{font-size:1.05rem;flex:none}
body.fm27-midnight .fm27-r27-friendlies .fm27-r27-friendlies-intro{display:none!important}
/* Less intrusive financial transaction list. */
body.fm27-midnight .fm27-r2715-ledger{margin:19px 0 0;background:transparent;border:0;padding:0;min-width:0}
body.fm27-midnight .fm27-r2715-ledger-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 10px;padding:0 3px}
body.fm27-midnight .fm27-r2715-ledger-heading h2{font-size:.94rem!important;font-weight:750;margin:0!important;display:inline-flex;align-items:center;gap:8px;color:#e8f3ff}
body.fm27-midnight .fm27-r2715-ledger-heading h2 i{color:#7cceb6;font-size:.92rem}
body.fm27-midnight .fm27-r2715-ledger-heading>span{color:#9eb4c9;font-size:.73rem}
body.fm27-midnight .fm27-r2715-ledger-empty{padding:14px 16px;border:1px dashed #39536b;border-radius:10px;background:#16263b;color:#b4c8d9;font-size:.83rem;display:flex;align-items:center;gap:10px}
body.fm27-midnight .fm27-r2715-ledger .table-responsive{border:1px solid #31465e;border-radius:11px;overflow-x:auto;background:#14253b}
body.fm27-midnight .fm27-r2715-ledger table{margin:0!important;min-width:550px}
/* Stadium: four-stand map fills upper width and is significantly larger. */
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stadium-layout{display:grid!important;grid-template-columns:minmax(0,1.55fr) minmax(275px,.8fr)!important;gap:14px;align-items:start}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stadium-layout>.fm27-r2715-stadium-hero{grid-column:1/-1!important;grid-row:1!important;min-height:0!important;max-width:none!important;width:100%;padding:18px;gap:12px}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stadium-layout>.fm27-r2715-info{grid-column:1!important;grid-row:2!important}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stadium-layout>.fm27-s74-aside{grid-column:2!important;grid-row:2!important;display:flex;min-width:0}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stadium-layout>.fm27-r83-matchday-revenue{grid-column:1/-1!important;grid-row:3!important;min-width:0}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stadium-map{position:relative;width:100%;height:auto!important;min-height:490px!important;max-height:none!important;display:grid;grid-template-columns:minmax(100px,1fr) minmax(200px,3.3fr) minmax(100px,1fr)!important;grid-template-rows:minmax(86px,auto) minmax(252px,1fr) minmax(86px,auto)!important;gap:11px;padding:16px 18px 22px}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stand{overflow:visible!important;min-height:0;position:relative;padding:12px 9px!important;gap:5px!important;display:flex;flex-direction:column;align-items:center;justify-content:center}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stand span{font-size:clamp(.65rem,.95vw,.85rem)!important}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stand strong{font-size:clamp(.9rem,1.3vw,1.25rem)!important}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stand small{font-size:clamp(.56rem,.8vw,.7rem)!important;color:#e5f7ff!important}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stand-build{border:1px solid #a8e9d7;background:#092e35d9;color:#e5fff2;padding:4px 10px;border-radius:7px;display:inline-flex;gap:6px;align-items:center;font-size:.73rem;font-weight:800;text-shadow:none;margin-top:5px;cursor:pointer}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stand-build:hover,body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stand-build:focus-visible{background:#12665d;border-color:#ebfff8;outline:2px solid #36cba5}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-pitch{min-height:245px!important;overflow:visible;background:repeating-linear-gradient(90deg,#206f4c 0 38px,#2b865b 38px 76px)!important}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-pitch:before{inset:0 50% 0 0!important;border:0!important;border-right:2px solid #e5fff5b0!important}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-pitch:after{width:63px;height:63px}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-penalty{position:absolute;z-index:0;top:24%;bottom:24%;width:17%;border:2px solid #e5fff5b0;pointer-events:none}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-penalty-left{left:0;border-left:0}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-penalty-right{right:0;border-right:0}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-goal{position:absolute;top:39%;bottom:39%;width:3%;z-index:0;border:2px solid #d9f5ee;pointer-events:none}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-goal-left{left:-3%;border-right:0}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-goal-right{right:-3%;border-left:0}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-map-ticket,body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-map-vip{z-index:4;position:absolute;display:inline-flex;gap:7px;align-items:center;background:#113e43e8;border:1px solid #7ecbb2;border-radius:8px;color:#f4fff9;font-size:.75rem;font-weight:800;padding:7px 11px;box-shadow:0 4px 12px #0618258a;cursor:pointer;text-shadow:none}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-map-ticket{top:12px;right:14px}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-map-vip{bottom:12px;right:14px;background:#42365fdd;border-color:#b8a2e8}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-map-ticket:hover,body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-map-vip:hover{filter:brightness(1.25)}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-building-note{font-size:.79rem;color:#f5d9a2;padding:8px 12px;border:1px solid #997548;border-radius:8px}
/* Integrate four quality ratings into the stadium info list: one place, no duplicated star cards. */
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-facts>div{grid-template-columns:minmax(115px,1fr) minmax(0,2fr)}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-facts dd{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-facts .fm27-r2715-quality dt{font-weight:650;color:#d7e5f5}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-facts .fm27-s74-rating{display:inline-flex;gap:4px}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-facts .fm27-s74-rating i{width:10px;height:10px;border-radius:3px}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-upgrade-cost{font-size:.7rem;color:#d7e4fa;font-variant-numeric:tabular-nums}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-upgrade{font-size:.72rem!important;padding:4px 8px!important;white-space:nowrap}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-max{font-size:.72rem;color:#95ddc4}
body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stadium-layout>.fm27-s74-aside .fm27-s74-capacity{width:100%}
/* Bootstrap modal with dark FM27 styling. */
body.fm27-midnight .fm27-r2715-modal .modal-content{background:#15243a;color:#edf4ff;border:1px solid #4d6680;border-radius:15px;box-shadow:0 25px 65px #020b17c9}
body.fm27-midnight .fm27-r2715-modal .modal-header,body.fm27-midnight .fm27-r2715-modal .modal-footer{border-color:#354b67}
body.fm27-midnight .fm27-r2715-modal .modal-title{font-size:1.05rem;font-weight:820;margin:0;color:#f1f7ff}
body.fm27-midnight .fm27-r2715-modal .modal-body{min-width:0}
body.fm27-midnight .fm27-r2715-modal .fm27-r2715-modal-help{font-size:.81rem;color:#b9cee2;margin:0 0 15px}
body.fm27-midnight .fm27-r2715-modal .fm27-r2715-ticket-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px;align-items:stretch}
body.fm27-midnight .fm27-r2715-modal .fm27-r2715-ticket-form .fm27-r27-ticket-card{min-width:0}
body.fm27-midnight .fm27-r2715-modal .fm27-r2715-ticket-form input{min-width:0;width:100%}
body.fm27-midnight .fm27-r2715-modal .fm27-r2715-build-service{display:block!important;grid-column:auto!important;grid-row:auto!important;border:0!important;padding:0!important;background:transparent!important;min-width:0}
body.fm27-midnight .fm27-r2715-modal [data-fm27-build-card][hidden]{display:none!important}
body.fm27-midnight .fm27-r2715-modal .fm27-s742-build-grid{grid-template-columns:1fr!important}
body.fm27-midnight .fm27-r2715-modal .fm27-s742-build-form{margin:0!important}
body.fm27-midnight .fm27-r2715-modal .fm27-s742-build-card{max-width:none!important}
@media(max-width:860px){body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stadium-layout{grid-template-columns:minmax(0,1fr)!important}body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stadium-layout>.fm27-r2715-info{grid-column:1!important;grid-row:2!important}body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stadium-layout>.fm27-s74-aside{grid-column:1!important;grid-row:3!important}body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stadium-layout>.fm27-r83-matchday-revenue{grid-column:1!important;grid-row:4!important}}
@media(max-width:620px){body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stadium-hero{padding:11px}body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stadium-map{min-height:390px!important;grid-template-columns:minmax(65px,.82fr) minmax(116px,2.8fr) minmax(65px,.82fr)!important;grid-template-rows:minmax(90px,auto) minmax(180px,1fr) minmax(90px,auto)!important;gap:5px;padding:10px 7px 11px}body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stand{padding:7px 3px!important;gap:3px!important}body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stand-build{font-size:.66rem;padding:4px 5px}body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-stand-build span{display:none}body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-map-ticket,body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-map-vip{font-size:.67rem;padding:5px 7px}body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-pitch{min-height:170px!important}body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-facts>div{grid-template-columns:minmax(0,.9fr) minmax(0,1.6fr)}body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-facts dd{gap:6px}body.fm27-midnight .fm27-r2715-stadium .fm27-r2715-upgrade-cost{font-size:.65rem}body.fm27-midnight .fm27-r2715-modal .fm27-r2715-ticket-form{grid-template-columns:1fr!important}}
