/* AstronovAI advertising inventory */
.astronovai-ad-slot{
    --ad-border: rgba(15,23,42,.12);
    --ad-surface: rgba(255,255,255,.84);
    --ad-muted: #64748b;
    position:relative;
    width:100%;
    max-width:100%;
    margin:clamp(18px,3vw,34px) auto;
    padding:22px;
    border:1px solid var(--ad-border);
    border-radius:18px;
    background:var(--ad-surface);
    box-shadow:0 10px 30px rgba(15,23,42,.05);
    overflow:hidden;
    box-sizing:border-box;
    contain:layout paint;
}
.astronovai-ad-slot--wide{min-height:90px}
.astronovai-ad-slot--sidebar{min-height:250px;padding:16px}
.astronovai-ad-label{
    display:block;
    margin:0 0 10px;
    color:var(--ad-muted);
    font-size:10px;
    font-weight:700;
    line-height:1.2;
    letter-spacing:.12em;
    text-align:center;
    text-transform:uppercase;
}
.astronovai-ad-content{
    display:flex;
    width:100%;
    min-width:0;
    align-items:center;
    justify-content:center;
    text-align:center;
}
.astronovai-ad-content>*{max-width:100%}
.astronovai-ad-content iframe,
.astronovai-ad-content img,
.astronovai-ad-content video{max-width:100%;height:auto}
.astronovai-ad-preview-card{
    display:flex;
    width:100%;
    min-height:88px;
    padding:20px;
    border:1px dashed rgba(37,99,235,.4);
    border-radius:14px;
    background:linear-gradient(135deg,rgba(239,246,255,.96),rgba(248,250,252,.96));
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
    color:#0f172a;
    box-sizing:border-box;
}
.astronovai-ad-slot--sidebar .astronovai-ad-preview-card{min-height:205px}
.astronovai-ad-preview-card strong{font-size:15px}
.astronovai-ad-preview-card span{color:#2563eb;font-size:13px;font-weight:700}
.astronovai-ad-preview-card small{color:#64748b;font-size:11px}
.modern-tool-sidebar>.astronovai-ad-slot,
.single-blog-sidebar>.astronovai-ad-slot{margin-top:18px;margin-bottom:0}
@media (max-width:782px){
    .astronovai-ad-slot{margin:18px auto;padding:14px;border-radius:14px}
    .astronovai-ad-slot--wide{min-height:74px}
    .astronovai-ad-slot--sidebar{min-height:180px}
    .astronovai-ad-preview-card{min-height:72px;padding:14px}
    .astronovai-ad-slot--sidebar .astronovai-ad-preview-card{min-height:150px}
}
@media (prefers-color-scheme:dark){
    .astronovai-ad-slot{--ad-border:rgba(148,163,184,.22);--ad-surface:rgba(15,23,42,.72);--ad-muted:#94a3b8}
    .astronovai-ad-preview-card{background:linear-gradient(135deg,rgba(30,41,59,.94),rgba(15,23,42,.94));color:#e2e8f0}
    .astronovai-ad-preview-card small{color:#94a3b8}
}


/* Keep the tool snapshot and its ad moving as one desktop sidebar unit. */
@media (min-width:1181px){
    body .modern-tool-page .modern-tool-sidebar{
        position:sticky;
        top:92px;
        align-self:start;
    }
    body .modern-tool-page .modern-tool-sidebar>.modern-tool-sidebar-card{
        position:static;
        top:auto;
    }
}
@media (max-width:1180px){
    body .modern-tool-page .modern-tool-sidebar{
        position:static;
        top:auto;
    }
}


/* Article experience: keep the inline placement between the introduction and first section. */
.single-blog-content>.astronovai-ad-slot--article-inline{
    margin:clamp(28px,4vw,42px) 0;
}

/* Phones receive one in-article placement only; the stacked sidebar ad stays hidden. */
@media (max-width:767px){
    .single-blog-sidebar>.astronovai-ad-slot--article_sidebar{
        display:none !important;
    }
    .single-blog-content>.astronovai-ad-slot--article-inline{
        margin:24px 0;
    }
}
