
/* HALO POLACY mobile layout — keep paid banners visible on phones */
@media(max-width:1024px){
 body.portal:has(#landingView:not([hidden])) .masthead{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
 body.portal:has(#landingView:not([hidden])) .masthead>.brand{flex:1 1 auto;min-width:170px}
 body.portal:has(#landingView:not([hidden])) .masthead>.nav-actions{flex:0 0 auto}
 body.portal:has(#landingView:not([hidden])) .masthead>.ad-leaderboard{display:flex!important;order:3;flex:1 1 100%;width:100%;max-width:100%;height:90px;margin:4px 0 10px}
 body.portal:has(#landingView:not([hidden])) .masthead>.ad-leaderboard.ad-has-image{height:auto;min-height:90px;aspect-ratio:728/90}
 body.portal:has(#landingView:not([hidden])) .masthead>.ad-leaderboard.ad-has-image img{width:100%;height:100%;object-fit:contain}
}
@media(max-width:610px){
 body.portal:has(#landingView:not([hidden])) .masthead>.ad-leaderboard{min-height:68px}
 .nav-actions-icons .header-action:last-child{display:none}
 .service-card{overflow:hidden}
 .service-card:before{content:'';display:block;width:100%;height:92px;margin:-24px -24px 18px;width:calc(100% + 48px);background-size:cover;background-position:center}
 .service-card:nth-child(1):before{background:linear-gradient(115deg,#dfeeff,#f6d8e1 60%,#fff3da)}
 .service-card:nth-child(2):before{background:linear-gradient(115deg,#dfe2ff,#dbf4f5 60%,#f2e2fa)}
 .service-card:nth-child(3):before{background:linear-gradient(115deg,#d8f6eb,#f4faf8 60%,#cbe6f2)}
 .service-card:nth-child(4):before{background:linear-gradient(115deg,#f9e3d6,#ffefcc 60%,#e5ebf6)}
 .service-card:nth-child(5):before{background:linear-gradient(115deg,#e9dffa,#f4edf8 60%,#e0f2fc)}
 .service-card:nth-child(6):before{background:linear-gradient(115deg,#eaa4b1,#f8d9dc 60%,#f3b7c4)}
}
/* Compact main editorial image: 50% of previous height on phones. */
@media (max-width:700px) {
  body.portal:has(#landingView:not([hidden])) .lead-media .news-art-lead {
    aspect-ratio: auto;
    height: 50vw;
    min-height: 0;
    max-height: 220px;
    padding: 12px 16px 24px;
  }
  body.portal:has(#landingView:not([hidden])) .lead-media .news-art-lead .news-art-source {font-size:clamp(18px,5vw,28px)}
}
