/* Calm reading cards keep advertising attribution separate from article copy. */
.nh-article-ad{grid-column:1/-1;display:block;position:relative;margin:14px 0;padding:8px 0 4px;border-width:1px 0;border-radius:0;background:var(--paper);font-family:var(--nh-script-font,NewsItScripts),Arial,sans-serif;font-size:13px;line-height:1.4;overflow:hidden;contain:layout;box-sizing:border-box}
.nh-sponsored-slot.nh-native-ad-slot{position:relative!important;padding:0!important;box-sizing:border-box!important}
.nh-sponsored-slot.has-native-ad>:not(.nh-native-fold-preview){visibility:hidden!important;pointer-events:none!important}
.nh-sponsored-slot[hidden]{display:none!important;margin:0!important;padding:0!important;height:0!important;border:0!important}
#dh-stories-container>.nh-article-ad{margin:14px 0;padding:10px 16px 8px;border-bottom:5px solid var(--stroke)}
.dh-article-body>.nh-article-ad,.dh-detail-content>.nh-article-ad{width:100%;clear:both;margin:12px 0;padding:6px 0 2px}
.nh-article-ad .nh-sponsored-label{font-size:10px;letter-spacing:.2px;color:var(--muted,#777);line-height:16px;padding:0 0 4px}
.nh-article-ad .nh-sponsored-media{aspect-ratio:16/9;max-height:240px;border-radius:6px}
.nh-article-ad.nh-ad-rectangle .nh-sponsored-media{aspect-ratio:16/9;max-height:240px}
.nh-article-ad.nh-ad-portrait .nh-sponsored-media{aspect-ratio:16/9;max-height:240px;background:#080808}
.nh-article-ad .nh-sponsored-footer{padding:6px 0;min-height:42px}
.nh-article-ad .nh-ad-cta{font-size:12px;min-height:36px;display:flex;align-items:center;justify-content:center;padding:6px 14px}
/* Profile Page & Web Stories Native Ads */
.nh-profile-ad{margin:10px 0;padding:8px 14px 6px;border-top:1px solid var(--stroke,#e5e7eb);border-bottom:4px solid var(--stroke,#e5e7eb);background:var(--paper,#fff)}
.nh-profile-shorts-grid>.nh-profile-ad{grid-column:1/-1;margin:8px 0;padding:8px 10px}
.ws-grid>.nh-article-ad{grid-column:1/-1;margin:6px 0;padding:8px 10px 6px;border-radius:12px;border:1px solid var(--stroke,#e5e7eb)}
/* Mining & M-Wallet Non-Disturbing Native Ads */
.nh-utility-ad{flex:0 0 auto!important;margin:12px 0;padding:8px 10px 6px;border:1px solid rgba(148,163,184,.25);border-radius:12px;background:var(--card,#fff);box-shadow:0 2px 10px rgba(0,0,0,.04);min-height:275px;width:100%;box-sizing:border-box}
.nh-utility-ad-mining{background:var(--mcoin-card-bg,#fff);border-color:var(--mcoin-card-border,rgba(148,163,184,.25));color:inherit}
body.dark .nh-utility-ad{background:#181b22;border-color:rgba(255,255,255,.12)}
/* Flip Screen Short-Article Auto Bottom Native Video Ad */
.nh-flip-inline-ad-slot{margin-top:auto;padding-top:6px;width:100%;flex:0 0 auto;display:none}
.nh-flip-inline-ad-slot.has-flip-ad{display:block}
.nh-flip-page.has-inline-ad .nh-flip-hero{max-height:27%}
.nh-flip-page.has-inline-ad .nh-flip-headline{-webkit-line-clamp:3;font-size:clamp(18px,4.8vw,24px)}
.nh-flip-page.has-inline-ad .nh-flip-byline{margin:5px 0}
.nh-flip-page.has-inline-ad .nh-flip-summary{-webkit-line-clamp:4;line-height:1.42}
.nh-flip-inline-ad{margin:0!important;padding:0!important;border:1px solid #eceef2!important;border-radius:8px!important;background:#fff!important;overflow:hidden!important;min-height:212px}
.nh-flip-inline-ad .nh-sponsored-label{padding:2px 8px;font-size:9px;line-height:14px}
.nh-flip-inline-ad .nh-sponsored-media{aspect-ratio:16/9;min-height:126px;max-height:165px;border-radius:4px}
.nh-flip-inline-ad .nh-sponsored-footer{padding:4px 8px;min-height:34px}
.nh-sponsored-image-link{position:absolute;inset:0;display:block}
.nh-sponsored-image-link img{width:100%;height:100%;object-fit:contain;background:var(--paper)}
.nh-sponsored-slot.has-image .nh-sponsored-media>video,.nh-sponsored-slot.has-image .nh-sponsored-footer>button{display:none}
.nh-ad-progress{display:none;position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.28);z-index:8;pointer-events:none}
.nh-ad-progress>span{display:block;height:100%;width:0%;background:#e53935;transition:width .2s linear}
.nh-vfeed-hero-card:not(.is-playing) .nh-vfeed-sound{display:none}
.nh-vfeed-hero-card.is-playing .nh-vfeed-hero-play{display:none}
.nh-inline-preroll{position:absolute!important;inset:0!important;margin:0!important;padding:0!important;z-index:24!important;border:0!important;border-radius:0!important;display:flex;flex-direction:column;background:#000;opacity:0;pointer-events:none;transition:opacity .16s ease}
.nh-inline-preroll.has-ad.ad-active{opacity:1;pointer-events:auto}
.nh-preview-ad-preparing{visibility:hidden!important;pointer-events:none!important}
.nh-inline-preroll .nh-sponsored-media{flex:1;aspect-ratio:auto;border-radius:0;position:relative;overflow:hidden}
.nh-inline-preroll .nh-sponsored-label{display:none!important}
.nh-inline-preroll .nh-ad-progress{display:block}
.nh-inline-preroll .nh-sponsored-footer{position:absolute;bottom:8px;right:8px;left:auto;z-index:9;padding:0;background:transparent!important;min-height:0;display:flex;align-items:center;gap:6px}
.nh-inline-preroll .nh-sponsored-footer>span,.nh-inline-preroll .nh-sponsored-footer>.nh-ad-cta{display:none!important}
.nh-inline-preroll .nh-sponsored-footer>button{width:30px;height:30px;border-radius:50%;border:0;background:rgba(0,0,0,.48);color:#fff;display:grid;place-items:center;padding:0}
.nh-inline-preroll .nh-ad-skip{display:none!important}
.nh-detail-player:has(.nh-inline-preroll)>.nh-detail-start{display:none}
.nh-side-flip-motion .nh-sponsored-slot{visibility:hidden}

.nh-detail-hero-ad{aspect-ratio:16/9;opacity:0;pointer-events:none;transition:opacity .18s ease}
.nh-detail-hero-ad.has-ad.ad-active{opacity:1;pointer-events:auto}
.nh-detail-hero-ad .nh-sponsored-media{flex:1;min-height:0;width:100%;height:100%;position:relative;background:#000}
.nh-detail-hero-ad .nh-sponsored-media video,.nh-detail-hero-ad .nh-ima-slot{width:100%;height:100%;object-fit:contain}
.nh-ad-skip{position:absolute;right:10px;bottom:42px;z-index:6;padding:6px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.38);background:rgba(15,17,22,.84);color:#fff;font-size:12px;font-weight:700;line-height:1;cursor:pointer;backdrop-filter:blur(6px)}
.nh-ad-skip:disabled{opacity:.82;cursor:default}
