.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:11px;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}

}

.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}

/* Keep the weather and opening ad in the same native scroll surface. */
.news-ad[data-placement="mobile-opening"]{display:none}
html.phone-layout:not(.phone-landscape) .mobile-deck.mobile-weather-active>.news-ad[data-placement="mobile"]{display:none}
html.phone-layout:not(.phone-landscape) .mobile-deck .mobile-weather>.news-ad[data-placement="mobile-opening"]{display:flex;flex:1 1 0;min-height:0;gap:4px;padding:0;width:100%;background:var(--bg);touch-action:pan-y}
html.phone-layout:not(.phone-landscape) .mobile-deck .mobile-weather>.news-ad[data-placement="mobile-opening"] .adsbygoogle{width:min(320px,calc(100% - 20px));height:calc(100% - 28px)}

/* The surrounding ad surface belongs to the reader theme, not the creative. */
[data-theme="dark"] .news-ad{background:var(--bg);color:var(--text-3);border-color:var(--line);color-scheme:dark}
[data-theme="dark"] .news-ad .adsbygoogle{background:transparent;border-color:var(--line)}
