/**
 * Lean AdSense — ad slot styling
 * Enqueued by the plugin; theme-agnostic.
 */

.adsense-slot {
    margin: 2.5em auto;          /* was 2em — more breathing room desktop */
    text-align: center;
    clear: both;
    max-width: 100%;
    overflow: hidden;
}

.adsense-slot--header     { min-height: 120px; }
.adsense-slot--in-article { min-height: 280px; }

/* End-of-content: extra TOP + BOTTOM gap so the ad is never
   flush against related posts / nav / comments below it.
   This is the main accidental-click protection. */
.adsense-slot--end {
    min-height: 280px;
    margin-top: 3em;
    margin-bottom: 3.5em;
    padding-top: 0.5em;
}

.adsense-slot--shortcode  { min-height: 100px; }
.adsense-slot--sidebar    { min-height: 250px; margin: 1.5em auto; }
.adsense-slot--multiplex  { min-height: 400px; margin-top: 3em; margin-bottom: 3em; }

/* Sticky footer anchor — fixed bottom, dismissible.
   Reserves height to avoid CLS on the body below. */
.leanads-sticky-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
    padding: 6px 32px 6px 8px;
    min-height: 60px;
    max-height: 110px;
    text-align: center;
}
.leanads-sticky-footer .adsense-slot {
    margin: 0 auto;
    min-height: 50px;
    max-height: 100px;
    overflow: hidden;
}
.leanads-sticky-footer__close {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 24px;
    height: 24px;
    line-height: 22px;
    font-size: 18px;
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    cursor: pointer;
    color: #444;
    padding: 0;
}
.leanads-sticky-footer__close:hover { background: #e8e8e8; }

@media (min-width: 769px) {
    .leanads-sticky-footer--mobile-only { display: none !important; }
}

.adsense-label {
    display: block;
    font-size: 11px;
    line-height: 1;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
    text-align: center;
    font-weight: 400;
    font-family: inherit;
}

ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

.adsense-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
    display: none !important;
}

@media (max-width: 600px) {
    /* Tighter screens are where most misclicks happen —
       keep generous vertical gaps, not 1.4em. */
    .adsense-slot         { margin: 2em auto; }
    .adsense-slot--header { min-height: 100px; }
    .adsense-slot--end    { margin-top: 2.4em; margin-bottom: 3em; }
}
