/* FM27 R27.37 - canonical 16 supplied logos; dashboard spacing and calendar row. */
body.fm27-midnight .fm27-competition-logo{display:inline-block;vertical-align:middle;object-fit:contain;flex:0 0 auto;width:var(--fm27-comp-icon-size,auto);max-width:none;}
body.fm27-midnight .fm27-r2736-results-comp{display:inline-block;vertical-align:middle;object-fit:contain;flex:0 0 auto;margin-right:6px;}
body.fm27-midnight .fm27-w79-league-option{display:flex;align-items:center;gap:5px;}
body.fm27-midnight .fm27-r8313-comp-title .fm27-r8313-comp-icon{object-fit:contain;flex:0 0 auto;}
body.fm27-midnight .fm27-w79-game-kind{display:inline-flex;align-items:center;gap:6px;}
body.fm27-midnight .fm27-r2737-cup-title{display:flex;align-items:center;gap:8px;}
/* Top cards: the upcoming-match CTA must not set the height of Live / Finance. */
body.fm27-midnight .fm27-home-dashboard .fmh-primary{width:auto;max-width:calc(100% - 24px);align-self:center;margin:8px 12px 10px;padding:7px 14px;min-height:31px;border-radius:6px;font-size:.73rem;line-height:1.25;gap:7px;}
body.fm27-midnight .fm27-home-dashboard .fmh-fixture-main{padding:15px 12px 6px;}
body.fm27-midnight .fm27-home-dashboard .fmh-team-logo{width:76px;height:76px;}
body.fm27-midnight .fm27-home-dashboard .fmh-fixture-meta{padding:3px 12px;font-size:.75rem;}
body.fm27-midnight .fm27-home-dashboard .fmh-next{min-height:0!important;}
body.fm27-midnight .fm27-home-dashboard .fmh-next .fmh-large-empty{min-height:180px;}
body.fm27-midnight .fm27-home-dashboard .fmh-quiet-link{padding-bottom:12px;}
/* News gets breathing room, but does not force the other two lower cards to grow. */
body.fm27-midnight .fm27-home-dashboard .fmh-news .fmh-editorial-card{padding:9px 0;gap:9px;}
body.fm27-midnight .fm27-home-dashboard .fmh-news .fmh-editorial-card img{height:68px;}
body.fm27-midnight .fm27-home-dashboard .fmh-news .fmh-editorial-copy>span{-webkit-line-clamp:2;}
/* Transfer window: a NORMAL calendar line, always the first item. No bordered special card. */
body.fm27-midnight .fm27-home-dashboard .fmh-calendar-phase{margin:0;padding:9px 11px;min-height:58px;background:transparent;border-radius:0;border-top:0;border-left:0;border-right:0;}
body.fm27-midnight .fm27-home-dashboard .fmh-calendar-phase:hover{background:rgba(74,104,143,.12);}
body.fm27-midnight .fm27-home-dashboard .fmh-calendar-phase .fmh-phase-icon{font-size:1rem;color:#90b5f1;display:grid;place-items:center;width:20px;height:20px;}
body.fm27-midnight .fm27-home-dashboard .fmh-calendar-phase>span:nth-of-type(1){display:block;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.22;}
body.fm27-midnight .fm27-home-dashboard .fmh-calendar-phase>span:nth-of-type(1)>strong{display:block;color:#f0f5ff;font-size:.73rem;}
body.fm27-midnight .fm27-home-dashboard .fmh-calendar-phase>span:nth-of-type(1)>small{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.32;color:#a9bfdb;margin-top:3px;font-size:.68rem;}
body.fm27-midnight .fm27-home-dashboard .fmh-calendar-phase .fmh-phase-dot{display:block!important;width:9px;height:9px;min-width:9px;min-height:9px;border-radius:50%;justify-self:end;background:#8593ac;box-shadow:0 0 0 3px rgba(122,146,182,.12);}
body.fm27-midnight .fm27-home-dashboard .fmh-calendar-phase .fmh-phase-dot.is-open{background:#2dde99;box-shadow:0 0 0 3px rgba(45,222,153,.12),0 0 8px rgba(45,222,153,.28);}
body.fm27-midnight .fm27-home-dashboard .fmh-calendar .fmh-calendar-row:not(.fmh-calendar-phase){min-height:45px;}
body.fm27-midnight .fm27-home-dashboard .fmh-calendar-row .fmh-inline-competition .fm27-competition-logo{height:15px;width:15px;flex:0 0 15px;}
body.fm27-midnight .fm27-home-dashboard .fmh-inline-competition .fm27-competition-logo{height:16px;width:16px;flex:0 0 16px;}
body.fm27-midnight .fm27-home-dashboard .fmh-recent-list .fmh-inline-competition{justify-content:flex-start;}
@media(min-width:1341px){
 body.fm27-midnight .fm27-home-dashboard .fmh-bottom>.fmh-news{min-height:405px!important;}
 body.fm27-midnight .fm27-home-dashboard .fmh-right-stack .fmh-calendar{min-height:230px!important;}
}
@media(max-width:680px){
 body.fm27-midnight .fm27-home-dashboard .fmh-news .fmh-editorial-card img{height:65px;}
 body.fm27-midnight .fm27-home-dashboard .fmh-fixture-main{padding:14px 10px 6px;}
 body.fm27-midnight .fm27-home-dashboard .fmh-calendar-phase{min-height:55px;}
}
