/* Paid placements use the site's quiet blue controls and native recommendation layout. */
.nm-site .nm-ad-entry { color:#64748B; font-size:12px; line-height:1.5; white-space:nowrap; }
.nm-site .nm-ad-entry:hover { color:#2563EB; }
.nm-ad-sponsor { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px 24px; border:1px solid rgba(37,99,235,.12); border-radius:12px; background:#F5F8FF; box-shadow:0 4px 12px rgba(0,0,0,.02); }
.nm-ad-sponsor__copy,.nm-ad-sponsor__actions { display:flex; align-items:center; gap:12px; }
.nm-ad-sponsor__copy { min-width:0; }
.nm-ad-logo { position:relative; flex:none; display:grid; place-items:center; width:32px; height:32px; overflow:hidden; border-radius:8px; background:#EFF6FF; color:#2563EB; font-size:16px; font-weight:600; }
.nm-ad-logo img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:#fff; }
.nm-ad-sponsor .nm-ad-logo { width:40px; height:40px; font-size:18px; }
.nm-ad-sponsor__text { display:flex; align-items:baseline; gap:16px; min-width:0; }
.nm-ad-sponsor__text strong { flex:none; font-size:16px; font-weight:600; color:#0F172A; }
.nm-ad-sponsor__text p { margin:0; overflow:hidden; color:#64748B; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.nm-ad-sponsor__actions { flex:none; }
.nm-site .nm-ad-sponsor__actions>a { display:inline-flex; align-items:center; min-height:36px; line-height:20px; }
.nm-site .nm-ad-sponsor__actions>.nm-ad-entry:not(:only-of-type) { font-size:13px; font-weight:400; transition:color .2s ease; }
.nm-ad-tag { display:inline-flex; align-items:center; justify-content:center; height:18px; padding:0 5px; border-radius:4px; background:#E2E8F0; color:#64748B; font-size:10px; font-weight:500; line-height:1; }
.nm-site .nm-ad-visit,.nm-ad-sponsor__actions>.nm-ad-entry:only-of-type { display:inline-flex; align-items:center; height:36px; padding:0 16px; border-radius:6px; background:#2563EB; color:#fff; font-size:14px; font-weight:500; }
.nm-site .nm-ad-visit:hover,.nm-ad-sponsor__actions>.nm-ad-entry:only-of-type:hover { background:#1D4ED8; color:#fff; }
.nm-ad-visit:focus-visible,.nm-ad-entry:focus-visible { outline:2px solid #2563EB; outline-offset:3px; }
.nm-ad-home-entry { display:flex; justify-content:flex-end; margin-top:12px; }
.nm-ad-section-links { display:flex; align-items:center; gap:16px; }
.nm-ad-section-links>a { display:inline-flex; align-items:center; gap:6px; color:#64748B; font-size:12px; }
.nm-site #popular .nm-ad-popular .nm-resource-card__link { position:relative; padding-right:46px; }
.nm-site #popular .nm-ad-popular .nm-ad-logo { grid-column:1; grid-row:1 / 3; align-self:center; width:40px; height:40px; border-radius:10px; }
.nm-ad-popular .nm-ad-tag { position:absolute; top:16px; right:12px; }
.nm-ad-form [hidden] { display:none!important; }
.nm-ad-form>.pay-method-group { display:block!important; }
.nm-ad-form fieldset { min-width:0; padding:0; margin:0; border:0; }
.nm-ad-scopes label { position:relative; cursor:pointer; }
.nm-ad-scopes input,.nm-ad-duration input { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.nm-ad-scopes label:has(input:focus-visible),.nm-ad-duration:has(input:focus-visible) { outline:2px solid #2563EB; outline-offset:3px; }
.nm-ad-form .nm-ad-placements { display:grid; gap:8px; margin-bottom:16px; }
.nm-ad-placement { display:flex; align-items:center; gap:10px; min-height:64px; padding:12px; margin:0; border:1px solid #E2E8F0; border-radius:10px; cursor:pointer; transition:border-color .18s ease,background-color .18s ease; }
.nm-ad-placement:hover { background:#F8FAFC; border-color:#93C5FD; }
.nm-ad-placement:has(input:checked) { background:#EFF6FF; border-color:#2563EB; }
.nm-ad-placement input { width:16px; height:16px; margin:0; accent-color:#2563EB; flex:none; }
.nm-ad-placement>span { min-width:0; }
.nm-ad-placement strong,.nm-ad-placement small { display:block; }
.nm-ad-placement strong { color:#0F172A; font-size:13px; line-height:1.5; font-weight:600; }
.nm-ad-placement small { margin-top:3px; color:#94A3B8; font-size:11px; line-height:1.5; }
.nm-ad-unit-price { margin-left:auto; color:#2563EB; font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; }
.nm-ad-unit-price small { display:inline; font-size:10px; font-weight:400; }
.nm-ad-scope-note { margin:-4px 0 16px; color:#64748B; font-size:11px; }
.nm-ad-form .ad-product-lists>.nm-ad-duration { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:0; min-height:100px; margin:0; padding:26px 5px 10px; border:1px solid #E2E8F0; border-radius:10px; background:#fff; cursor:pointer; font-variant-numeric:tabular-nums; }
.nm-ad-duration:hover { background:#F8FAFC!important; }
.nm-ad-form .ad-product-lists>.nm-ad-duration:has(input:checked) { border-color:#2563EB; box-shadow:inset 0 0 0 1px #2563EB,0 2px 8px rgba(37,99,235,.08); }
.nm-ad-duration>strong { font-size:14px; line-height:24px; color:#0F172A; white-space:nowrap; }
.nm-ad-duration>span { font-size:12px; line-height:20px; color:#475569; }
.nm-ad-duration>s { font-size:10px; line-height:16px; color:#94A3B8; }
.nm-ad-duration__tag { position:absolute; top:6px; right:5px; padding:2px 4px; border-radius:4px; background:#FEF3C7; color:#D97706; font-size:9px; line-height:13px; }
.nm-ad-field-label { display:block; margin:12px 0 6px; color:#64748B; font-size:12px; font-weight:600; }
.nm-ad-field-label>span { color:#94A3B8; font-size:11px; font-weight:400; }
.nm-ad-form input[name="custom_time"] { padding-right:12px; }
.nm-ad-field-help { display:block; margin-top:5px; color:#94A3B8; font-size:10px; line-height:1.5; }
.nm-ad-schedule { margin:16px 0 20px; padding:12px; border-radius:8px; background:#F8FAFC; color:#64748B; font-size:11px; }
.nm-ad-schedule>strong { display:block; margin-top:4px; color:#475569; font-size:12px; font-weight:500; font-variant-numeric:tabular-nums; }
.nm-ad-schedule p { margin:6px 0 0; color:#94A3B8; font-size:10px; line-height:1.6; }
.nm-ad-creative legend { margin:0 0 2px; color:#0F172A; font-size:13px; font-weight:600; }
.nm-ad-total { display:flex; align-items:center; justify-content:space-between; margin:20px 0 16px; padding-top:16px; border-top:1px solid #E2E8F0; color:#64748B; font-size:12px; }
.nm-ad-total strong { color:#2563EB; font-size:22px; font-variant-numeric:tabular-nums; }
.nm-ad-error { margin:0 0 12px; color:#B45309; font-size:12px; line-height:1.5; }
.nm-ad-error button { padding:2px 4px; border:0; background:transparent; color:#2563EB; text-decoration:underline; }
@media(max-width:767px) {
    .nm-ad-sponsor { gap:12px; flex-wrap:wrap; }
    .nm-ad-sponsor__copy { flex:1 1 220px; }
    .nm-ad-sponsor__text { display:block; }
    .nm-ad-sponsor__text p { margin-top:3px; font-size:11px; white-space:normal; }
    .nm-ad-sponsor__actions { margin-left:auto; }
}
@media(max-width:360px) {
    .nm-ad-placement { gap:7px; padding:10px; }
    .nm-ad-placement strong { font-size:12px; }
    .nm-ad-unit-price { font-size:12px; }
    .nm-ad-duration>strong { font-size:12px; }
    .nm-ad-duration>span { font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { .nm-ad-placement { transition:none; } }
