/* Natural-size paid surfaces shared by production and inert local review. */
html.kbt-msn-local body .msn-paid-ad { box-sizing: border-box; position: relative; min-width: 0; margin: 24px auto 36px; padding: 0 0 17px; border: 0; background: transparent; color: var(--msn-muted); }
html.kbt-msn-local body .msn-paid-ad-surface { position: relative; box-sizing: border-box; width: 100%; height: 90px; margin: 0; padding: 0; background: var(--msn-raised); }
html.kbt-msn-local body .msn-paid-ad--primary { width: min(970px, 100%); max-width: 100%; margin-top: 0; }
html.kbt-msn-local body .msn-paid-ad--primary > .msn-paid-ad-surface { height: 250px; }
html.kbt-msn-local body .msn-paid-ad--secondary { width: min(970px, 100%); }
html.kbt-msn-local body #keyboard-stage .msn-paid-ad--secondary.kbt-keyboard-inline-surface { box-sizing: border-box; height: 107px !important; min-height: 107px !important; max-height: 107px !important; flex-basis: 107px; padding-bottom: 17px !important; }
html.kbt-msn-local body .msn-paid-ad--catalog { width: 100%; margin: 0; align-self: start; }
html.kbt-msn-local body .msn-paid-ad--catalog > .msn-paid-ad-surface { height: 250px; }
html.kbt-msn-local body .msn-paid-ad--article-inline { width: min(728px, 100%); margin: 32px auto 42px; clear: both; }
html.kbt-msn-local body .msn-paid-ad-label { display: block; position: absolute; right: 0; bottom: 0; color: var(--msn-muted); font: 400 10px/14px var(--msn-font); text-align: right; }
html.kbt-msn-local body .msn-paid-ad-preview { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--msn-muted); font: 400 13px/20px var(--msn-font); pointer-events: none; }
html.kbt-msn-local body .msn-paid-ad::after { content: none !important; }
html.kbt-msn-local body .msn-paid-ad .kbt-ad-slot--msn,
html.kbt-msn-local.kbt-msn-article-local body.blog-page .msn-article-body .msn-paid-ad .kbt-ad-slot--msn { display: block !important; position: static !important; box-sizing: border-box; width: 100% !important; height: 100% !important; min-height: 0 !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
html.kbt-msn-local body .msn-paid-ad .kbt-ad-slot-inner { box-sizing: border-box !important; width: 100% !important; height: 100% !important; min-height: 0 !important; max-height: none !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; overflow: visible !important; }
html.kbt-msn-local body .msn-paid-ad .kbt-gam-ad,
html.kbt-msn-local.kbt-msn-article-local body.blog-page .msn-article-body .msn-paid-ad .kbt-gam-ad { display: flex !important; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; }
html.kbt-msn-local body .msn-paid-ad[data-msn-ad-state="unfilled"],
html.kbt-msn-local body .msn-paid-ad[data-msn-ad-state="blocked"],
html.kbt-msn-local body .msn-paid-ad[data-msn-ad-state="retired"] { display: none !important; }
html.kbt-msn-local body .msn-paid-ad:is([data-msn-ad-state="filled"],[data-msn-ad-state="fallbackpending"],[data-msn-ad-state="fallbackrequested"]) .msn-paid-ad-preview { display: none; }
html.kbt-msn-local body .msn-local-hero-row .msn-paid-ad--primary > .msn-paid-ad-surface { height: 250px; }
/* With no eligible provider, the title card retains its full readable width. */
html.kbt-msn-local body .msn-local-hero-row:not(:has(.msn-paid-ad)) { display: block; }
html.kbt-msn-local body .msn-local-hero-row:not(:has(.msn-paid-ad)) > .home-hero { width: 100%; max-width: 900px; margin-inline: auto; }
html.kbt-msn-local body :is(.msn-blog-intro,.msn-catalog-intro):not(:has(.msn-paid-ad)) { grid-template-columns: minmax(0,1fr); }
html.kbt-msn-local body :is(.msn-blog-intro,.msn-catalog-intro):not(:has(.msn-paid-ad)) > :is(.msn-blog-heading,.msn-catalog-heading) { grid-column: 1; width: min(100%,900px); margin-inline: auto; }
html.kbt-msn-local body :is(.msn-blog-intro,.msn-catalog-intro,.msn-local-hero-row):has(> .msn-paid-ad:is([data-msn-ad-state="unfilled"],[data-msn-ad-state="blocked"],[data-msn-ad-state="retired"])) { grid-template-columns: minmax(0,1fr); }
html.kbt-msn-local body :is(.msn-blog-intro,.msn-catalog-intro,.msn-local-hero-row):has(> .msn-paid-ad:is([data-msn-ad-state="unfilled"],[data-msn-ad-state="blocked"],[data-msn-ad-state="retired"])) > :is(.msn-blog-heading,.msn-catalog-heading,.home-hero) { grid-column: 1 !important; grid-row: 1 !important; width: min(100%,900px); margin-inline: auto; }
html.kbt-msn-local.kbt-msn-article-local body.blog-page .msn-article-intro:not(:has(.msn-paid-ad)) > .msn-article-heading { grid-row: 1; }
/* The native bottom anchor and filled inline units get navigation clearance. */
html.kbt-msn-local body #back-to-top[data-kbt-ad-aware="1"] { --kbt-back-to-top-gap: 155px; }
html.kbt-msn-local body #back-to-top[data-kbt-ad-aware="1"]:not(.is-docked) { bottom: 155px; }
@media (max-width:1050px) {
    html.kbt-msn-local body .msn-local-hero-row .msn-paid-ad--primary > .msn-paid-ad-surface { height: 90px; }
}
@media (max-width:1359px) {
    html.kbt-msn-local body.blog-page .msn-blog .msn-blog-intro,
    html.kbt-msn-local body .msn-catalog-intro { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:980px) {
    html.kbt-msn-local body .msn-paid-ad[data-msn-min-width="981"] { display: none !important; }
    html.kbt-msn-local body .msn-local-hero-row { display: block; }
}
@media (max-width:768px) {
    html.kbt-msn-local body .msn-paid-ad { display: none !important; }
    html.kbt-msn-local body :is(.msn-blog-intro,.msn-catalog-intro) { grid-template-columns: minmax(0,1fr); }
    html.kbt-msn-local.kbt-msn-article-local body.blog-page .msn-article-intro > .msn-article-heading { grid-row: 1 !important; }
}
/* The AdSense node always retains its original160x600 dimensions. */
html.kbt-msn-local body .msn-article-adsense-rail > ins.adsbygoogle { display: inline-block; width: 160px; height: 600px; margin: 0; padding: 0; }
html.kbt-msn-local body .msn-article-adsense-rail[data-msn-adsense-state="unfilled"],
html.kbt-msn-local body .msn-article-adsense-rail[data-msn-adsense-state="blocked"],
html.kbt-msn-local body .msn-article-adsense-rail[data-msn-adsense-state="retired"] { visibility: hidden; }
html.kbt-msn-local body .msn-article-adsense-rail[data-msn-adsense-state="requested"] .msn-article-adsense-preview { display: none; }
