/* FM27 R72.4 - restore original homepage news cards, editorial article dark styling.
   This stylesheet is additive and scoped. No functional or DB changes. */
body.fm27-midnight .fm27-home-dashboard .fmh-news .fmh-editorial-card{min-width:0;grid-template-columns:clamp(76px,7.8vw,120px) minmax(0,1fr)!important;gap:9px;align-items:start}
body.fm27-midnight .fm27-home-dashboard .fmh-news .fmh-editorial-card :is(img,.fmh-editorial-thumb-empty){width:100%;height:68px;display:block;border-radius:6px;object-fit:cover}
body.fm27-midnight .fm27-home-dashboard .fmh-news .fmh-editorial-card .fmh-editorial-thumb-empty{display:grid;place-items:center;background:linear-gradient(140deg,#1b3154,#282949);border:1px solid #3a5178;color:#a3b9e9;font-size:1.5rem}
body.fm27-midnight .fm27-home-dashboard .fmh-news .fmh-editorial-copy{min-width:0;overflow:hidden}
body.fm27-midnight .fm27-home-dashboard .fmh-news .fmh-editorial-copy strong{overflow-wrap:anywhere;line-height:1.3}
body.fm27-midnight .fm27-home-dashboard .fmh-news .fmh-editorial-copy>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}
/* Article: full content width with readable editorial text; does not add a context bar. */
body.fm27-midnight #pagecontent .fm27-r2780-article{width:100%;max-width:1180px;margin:0 auto;min-width:0;overflow:visible;color:#e9f1ff}
body.fm27-midnight #pagecontent .fm27-r2780-article-header{border-bottom:1px solid #33466b;padding:clamp(15px,2vw,30px) clamp(14px,3vw,36px) 24px;background:linear-gradient(150deg,#16243f,#1b2440 68%,#112b44);border-radius:14px 14px 0 0}
body.fm27-midnight #pagecontent .fm27-r2780-article-header h1{color:#f5f7ff!important;font-size:clamp(1.55rem,3.2vw,2.85rem);line-height:1.14;max-width:100%;overflow-wrap:anywhere}
body.fm27-midnight #pagecontent .fm27-r2780-article-back{color:#b7c6f1;text-underline-offset:3px}
body.fm27-midnight #pagecontent .fm27-r2780-article .fm27-r2780-eyebrow{color:#bba8ff}
body.fm27-midnight #pagecontent .fm27-r2780-article-hero{margin:0 0 26px;border:1px solid #354a70;border-top:0;border-radius:0 0 14px 14px;background:#14233d;overflow:hidden}
body.fm27-midnight #pagecontent .fm27-r2780-article-hero img{display:block;width:100%;height:auto;aspect-ratio:16/9;max-height:560px;object-fit:cover}
body.fm27-midnight #pagecontent .fm27-r2780-article-body{width:100%;max-width:930px;margin:0 auto;padding:clamp(8px,2vw,20px) clamp(14px,3vw,30px);box-sizing:border-box;font-size:clamp(.95rem,1.12vw,1.065rem);line-height:1.75;color:#dce7fa;overflow-wrap:anywhere}
body.fm27-midnight #pagecontent .fm27-r2780-article-body :is(h2,h3,h4){color:#f4f5ff!important}
body.fm27-midnight #pagecontent .fm27-r2780-article-body a{color:#abc2ff}
body.fm27-midnight #pagecontent .fm27-r2780-article-related{max-width:930px;margin:32px auto 0;padding-inline:clamp(14px,3vw,30px)}
/* CMS demo snippets use the same midnight palette rather than a second white theme. */
body.fm27-midnight .fm27-r2780-article .fm72-editorial-demo{min-width:0;max-width:100%;box-sizing:border-box;background:linear-gradient(150deg,#182942,#1b213b);color:#e6eeff;border:1px solid #3a4b78;border-radius:13px;padding:clamp(12px,2.2vw,22px);overflow-wrap:anywhere}
body.fm27-midnight .fm27-r2780-article .fm72-demo-flag{background:#3c3059;color:#ead7ff;border:1px solid #8068bc}
body.fm27-midnight .fm27-r2780-article .fm72-demo-meta{color:#a2b4d2}
body.fm27-midnight .fm27-r2780-article .fm72-demo-stat{background:#263755;border:1px solid #3b5180;color:#fff}
body.fm27-midnight .fm27-r2780-article .fm72-demo-stat small{color:#b9c8e8}
body.fm27-midnight .fm27-r2780-article .fm72-demo-table{max-width:100%;color:#e6eeff}
body.fm27-midnight .fm27-r2780-article .fm72-demo-table th,body.fm27-midnight .fm27-r2780-article .fm72-demo-table td{border-bottom:1px solid #3d4e73;color:inherit}
body.fm27-midnight .fm27-r2780-article .fm72-demo-table th{color:#a3b5d5}
body.fm27-midnight .fm27-r2780-article .fm72-pills span{background:#292f50;color:#e4e8ff;border:1px solid #555c94}
body.fm27-midnight .fm27-r2780-article .fm72-bestxi-field{max-width:min(100%,690px);box-sizing:border-box;border-color:#526d9f}
body.fm27-midnight .fm27-r2780-article .fm72-bestxi-player{min-width:0}
body.fm27-midnight .fm27-r2780-article .fm72-bestxi-player strong{color:#fff!important}
body.fm27-midnight .fm27-r2780-article .fm72-demo-score{max-width:100%;min-width:0;overflow-wrap:anywhere}
@media(max-width:720px){body.fm27-midnight #pagecontent .fm27-r2780-article-header{padding:18px 15px 19px}body.fm27-midnight #pagecontent .fm27-r2780-article-header h1{font-size:clamp(1.45rem,6vw,2rem)}body.fm27-midnight #pagecontent .fm27-r2780-article-hero img{aspect-ratio:16/10}body.fm27-midnight .fm27-r2780-article .fm72-demo-score{gap:.4rem}body.fm27-midnight .fm27-r2780-article .fm72-demo-score strong{font-size:clamp(1.3rem,7vw,2rem)}}
@media(max-width:480px){body.fm27-midnight .fm27-home-dashboard .fmh-news .fmh-editorial-card{grid-template-columns:88px minmax(0,1fr)!important}body.fm27-midnight .fm27-home-dashboard .fmh-news .fmh-editorial-card :is(img,.fmh-editorial-thumb-empty){height:64px}}


/* R78 – newsroom editorial detail. Only the news-details route; homepage + overview stay byte-identical above. */
body.fm27-midnight.fm72-news-detail-page #pagecontent .fm78-news-page{box-sizing:border-box;width:100%;min-width:0;max-width:none;margin:0;padding:0;color:#e9eef9}
body.fm27-midnight.fm72-news-detail-page #pagecontent .fm78-news-context{margin:2px 0 0!important;width:100%!important;max-width:none!important}
body.fm27-midnight.fm72-news-detail-page .fm78-news-context .fm27-cp-heading{border-left-color:#5dc1a3!important}
body.fm27-midnight.fm72-news-detail-page .fm78-news-context .fm27-cp-kicker{color:#8dcfbc!important}
body.fm27-midnight.fm72-news-detail-page .fm78-news-context .fm27-cp-headline h2{white-space:normal!important;font-size:1.1rem!important;text-transform:none!important}
body.fm27-midnight.fm72-news-detail-page .fm78-news-context .fm78-news-back{display:inline-flex!important;align-items:center;gap:7px;text-decoration:none!important}
body.fm27-midnight.fm72-news-detail-page #pagecontent .fm78-article{width:min(100%,1120px)!important;max-width:1120px!important;margin:0 auto!important;padding:clamp(25px,3.8vw,56px) clamp(13px,2.1vw,30px) 80px!important;box-sizing:border-box;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-width:0!important}
body.fm27-midnight.fm72-news-detail-page .fm78-article-layout{display:grid;grid-template-columns:minmax(0,760px) minmax(0,248px);column-gap:clamp(24px,3.3vw,55px);align-items:start;justify-content:center}
body.fm27-midnight.fm72-news-detail-page .fm78-article-layout-single{grid-template-columns:minmax(0,790px)}
body.fm27-midnight.fm72-news-detail-page .fm78-article-main{min-width:0;width:100%}
body.fm27-midnight.fm72-news-detail-page .fm78-article-kicker{display:flex;align-items:center;flex-wrap:wrap;gap:9px;font-size:.73rem;font-weight:780;letter-spacing:.095em;color:#b7a7ff;line-height:1.5}
body.fm27-midnight.fm72-news-detail-page .fm78-article-kicker-mark{background:#8463f0;width:20px;height:3px;display:inline-block;border-radius:3px}
body.fm27-midnight.fm72-news-detail-page .fm78-kicker-separator{color:#6c7e9e}
body.fm27-midnight.fm72-news-detail-page #pagecontent .fm78-article-header h1{font-size:clamp(1.95rem,3.2vw,3.15rem)!important;letter-spacing:-.035em!important;line-height:1.14!important;margin:18px 0 17px!important;padding:0!important;color:#f7f9ff!important;font-weight:800!important;max-width:100%!important;text-wrap:balance;overflow-wrap:anywhere}
body.fm27-midnight.fm72-news-detail-page .fm78-article-byline{display:flex;flex-wrap:wrap;gap:9px;color:#a5b5d3;font-size:.84rem;line-height:1.55;align-items:center}
body.fm27-midnight.fm72-news-detail-page .fm78-byline-dot{font-size:1.2rem;line-height:1;color:#7f8eaf}
body.fm27-midnight.fm72-news-detail-page #pagecontent .fm78-article-hero{padding:0!important;margin:27px 0 26px!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:hidden!important;box-shadow:none!important}
body.fm27-midnight.fm72-news-detail-page #pagecontent .fm78-article-hero img{width:100%!important;height:auto!important;max-height:525px!important;aspect-ratio:16/9!important;object-fit:cover!important;display:block;border-radius:5px}
body.fm27-midnight.fm72-news-detail-page #pagecontent .fm78-article-body{padding:0!important;margin:0!important;width:100%!important;max-width:none!important;min-width:0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#dae4f4!important;font-size:clamp(1.03rem,1.18vw,1.14rem)!important;line-height:1.86!important;overflow-wrap:anywhere}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body>p,body.fm27-midnight.fm72-news-detail-page .fm78-article-body .fm72-editorial-demo>p{margin:0 0 1.38em}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body>p:first-of-type,body.fm27-midnight.fm72-news-detail-page .fm78-article-body .fm72-demo-lead{color:#eff4ff!important;font-size:clamp(1.13rem,1.5vw,1.32rem)!important;line-height:1.64!important;font-weight:550!important;letter-spacing:-.008em}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body :is(h2,h3,h4){font-weight:770!important;color:#f0f4fc!important;line-height:1.3;margin:1.65em 0 .75em}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body a{color:#b7c9ff!important;text-underline-offset:3px}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body :is(img,video,iframe,figure){max-width:100%;height:auto}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body table{max-width:100%;width:100%}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body .fm72-editorial-demo{width:100%!important;max-width:100%!important;min-width:0!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important;box-shadow:none!important;background:transparent!important;color:#dce6f6!important;overflow-wrap:anywhere}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body .fm72-demo-flag{display:inline-flex!important;width:auto!important;max-width:100%!important;margin:0 0 21px!important;padding:5px 9px!important;border:1px solid #745baf!important;background:#302948!important;color:#eadfff!important;border-radius:3px!important;font-size:.63rem!important;font-weight:720!important;letter-spacing:.05em}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body .fm72-demo-meta{border-top:1px solid #40506c;margin-top:26px!important;padding-top:18px!important;font-size:.83rem;color:#a4b4d0!important;line-height:1.55!important}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body .fm72-pills{margin:11px 0 24px!important;gap:7px!important;display:flex;flex-wrap:wrap}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body .fm72-pills span{border:1px solid #52648b!important;background:#253553!important;color:#dbe3fa!important;border-radius:999px}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body .fm72-demo-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;min-width:0}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body .fm72-demo-stat{background:#202e47!important;border:1px solid #3b4f72!important;border-radius:5px;color:#f0f5ff!important}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body .fm72-demo-stat small{color:#b3c0d9}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body .fm72-demo-table{max-width:100%;color:#dce7f8}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body .fm72-demo-table :is(th,td){border-bottom:1px solid #36445f;color:inherit}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body .fm72-demo-score{max-width:100%;min-width:0}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body .fm72-bestxi-field{box-sizing:border-box;max-width:100%!important;width:100%!important;margin:25px 0!important;border-color:#526a91}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body .fm72-bestxi-player{min-width:0}
body.fm27-midnight.fm72-news-detail-page .fm78-article-body .fm72-bestxi-player strong{color:#fff!important}
body.fm27-midnight.fm72-news-detail-page .fm78-article-aside{min-width:0;margin-top:clamp(18px,3vw,46px);padding:20px 0;border-top:3px solid #6653be;background:transparent!important}
body.fm27-midnight.fm72-news-detail-page .fm78-article-aside h2{font-size:1rem!important;font-weight:790!important;color:#f2f5ff!important;margin:0 0 12px!important;text-transform:none!important}
body.fm27-midnight.fm72-news-detail-page .fm78-aside-links{display:grid;gap:0}
body.fm27-midnight.fm72-news-detail-page .fm78-aside-links a{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:12px 0;border-top:1px solid #34445e;line-height:1.4;color:#cbd9f8!important;font-size:.88rem;text-decoration:none;overflow-wrap:anywhere}
body.fm27-midnight.fm72-news-detail-page .fm78-aside-links a:hover{color:#fff!important}
body.fm27-midnight.fm72-news-detail-page .fm78-related-inline{display:flex;flex-wrap:wrap;align-items:center;gap:12px;border-top:1px solid #384961;margin-top:29px;padding-top:15px;font-size:.84rem}
body.fm27-midnight.fm72-news-detail-page .fm78-related-inline>span{color:#a1b0c9;font-size:.74rem;text-transform:uppercase;letter-spacing:.075em;font-weight:740}
body.fm27-midnight.fm72-news-detail-page .fm78-related-inline a{color:#c5d5f9!important;text-decoration:none}
@media(max-width:1100px){body.fm27-midnight.fm72-news-detail-page .fm78-article-layout{grid-template-columns:minmax(0,720px) minmax(0,210px);gap:24px}}
@media(max-width:850px){body.fm27-midnight.fm72-news-detail-page .fm78-article-layout{grid-template-columns:minmax(0,790px)!important}body.fm27-midnight.fm72-news-detail-page .fm78-article-aside{margin-top:30px;max-width:790px}body.fm27-midnight.fm72-news-detail-page #pagecontent .fm78-article{padding-inline:clamp(10px,3.5vw,25px)!important}}
@media(max-width:580px){body.fm27-midnight.fm72-news-detail-page .fm78-news-context .fm27-cp-heading{flex-wrap:wrap!important;gap:9px!important}body.fm27-midnight.fm72-news-detail-page .fm78-news-context .fm27-cp-summary{width:100%!important;justify-content:flex-start!important}body.fm27-midnight.fm72-news-detail-page .fm78-news-context .fm27-cp-summary-item:first-child{border-left:0!important;padding-left:0!important}body.fm27-midnight.fm72-news-detail-page #pagecontent .fm78-article{padding:22px 8px 44px!important}body.fm27-midnight.fm72-news-detail-page #pagecontent .fm78-article-header h1{font-size:clamp(1.75rem,7.6vw,2.4rem)!important;line-height:1.16!important;margin:15px 0!important}body.fm27-midnight.fm72-news-detail-page .fm78-article-hero{margin:18px 0 19px!important}body.fm27-midnight.fm72-news-detail-page #pagecontent .fm78-article-hero img{aspect-ratio:16/10!important}body.fm27-midnight.fm72-news-detail-page #pagecontent .fm78-article-body{font-size:1rem!important;line-height:1.76!important}body.fm27-midnight.fm72-news-detail-page .fm78-article-body .fm72-demo-table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}body.fm27-midnight.fm72-news-detail-page .fm78-article-kicker{font-size:.66rem}body.fm27-midnight.fm72-news-detail-page .fm78-article-body .fm72-bestxi-field{overflow-x:auto}}
