.news-ad{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;padding:12px 0;text-align:center;box-sizing:border-box}
.news-ad .label{flex:none;font-size:9px;line-height:12px;margin:0}
.news-ad:not([data-ad-state="filled"]) .label{visibility:hidden}
.news-ad .adsbygoogle{display:block;flex:none;width:100%;height:90px}
.news-page .rcol{gap:12px}
.news-ad[data-placement="sidebar"]{padding-top:4px}
.news-ad[data-placement="sidebar"] .adsbygoogle{max-width:300px;height:500px}
.news-ad[data-placement="desktop"]{min-height:var(--ad-card-height,220px)}
.news-ad[data-placement="desktop"] .adsbygoogle{height:auto;min-height:calc(var(--ad-card-height,220px) - 44px)}
.news-ad[data-placement="mobile"],.news-ad[data-placement="mobile-feed"]{display:none}
@media(max-width:860px),(orientation:landscape){
 :where(html.phone-layout) .news-ad[data-placement="desktop"]{display:none}
 :where(html.phone-layout) .mobile-deck>.news-ad[data-placement="mobile"]{display:flex;flex:none;gap:4px;padding:4px 10px 12px;background:var(--bg)}
 :where(html.phone-layout) .news-ad[data-placement="mobile"] .adsbygoogle{width:min(100%,320px);height:50px}
 :where(html.phone-layout) .mobile-deck.mobile-feed-ad-active>.news-ad[data-placement="mobile"]{display:none}
 :where(html.phone-layout) .mobile-deck .news-ad[data-placement="mobile-feed"]{display:flex;justify-content:flex-start;gap:8px;padding:12px 0;overflow-y:auto;touch-action:pan-y}
 :where(html.phone-layout) .news-ad[data-placement="mobile-feed"] .adsbygoogle{height:min(500px,calc(100% - 20px));min-height:250px}
 /* Native scroll chaining lets a swipe starting inside the ad iframe turn the page. */
 :where(html.phone-layout) .mobile-deck.mobile-feed-ad-active .flist{overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;touch-action:pan-y}
 :where(html.phone-layout) .mobile-deck.mobile-feed-ad-active .flist::after{content:"";display:block;flex:none;height:300%;pointer-events:none}
 :where(html.phone-layout) .mobile-feed-ad-active .flist>.deck-current,:where(html.phone-layout) .mobile-feed-ad-active .flist>.deck-back,:where(html.phone-layout) .mobile-feed-ad-active .flist>.deck-ad-before{bottom:auto;height:calc(100% - 20px);transform:none;opacity:1;scroll-snap-align:start;scroll-margin-top:10px;touch-action:pan-y}
 :where(html.phone-layout) .mobile-feed-ad-active .flist>.deck-ad-before{top:10px;pointer-events:none}
 :where(html.phone-layout) .mobile-feed-ad-active .flist>.deck-current{top:calc(100% + 10px)}
 :where(html.phone-layout) .mobile-feed-ad-active .flist>.deck-back{top:calc(200% + 10px)}
}

.phone-landscape .mobile-deck>.news-ad[data-placement="mobile"]{grid-row:3;grid-column:2;align-self:center;justify-self:center;width:calc(var(--landscape-ad-size,150px) + 20px);gap:4px;padding:8px 10px}
.phone-landscape .mobile-deck>.news-ad[data-placement="mobile"] .adsbygoogle{width:var(--landscape-ad-size,150px);height:var(--landscape-ad-size,150px)}
.phone-landscape .mobile-deck.landscape-ad-too-small>.news-ad[data-placement="mobile"]{display:none}
.phone-landscape .mobile-deck:not(.landscape-ad-too-small):not(.mobile-feed-ad-active):has(>.news-ad[data-placement="mobile"]:not([hidden])){grid-template-columns:minmax(0,1fr) auto}
.phone-landscape .mobile-deck:not(.landscape-ad-too-small):not(.mobile-feed-ad-active):has(>.news-ad[data-placement="mobile"]:not([hidden]))>.dgrid{grid-column:1}
.phone-landscape .mobile-deck .news-ad[data-placement="mobile-feed"]{display:none}

.phone-landscape .mobile-deck[data-landscape-ad-side="left"]>.news-ad[data-placement="mobile"]{grid-column:1}
.phone-landscape .mobile-deck[data-landscape-ad-side="left"]:not(.landscape-ad-too-small):not(.mobile-feed-ad-active):has(>.news-ad[data-placement="mobile"]:not([hidden])){grid-template-columns:auto minmax(0,1fr)}
.phone-landscape .mobile-deck[data-landscape-ad-side="left"]:not(.landscape-ad-too-small):not(.mobile-feed-ad-active):has(>.news-ad[data-placement="mobile"]:not([hidden]))>.dgrid{grid-column:2}
