/* AdSense units (ads.php). Loaded only when ADRTC_ADS_ENABLED is on, on breed/filter/hub/curated pages.
   Every unit has a fixed reserved height, so a filled or late ad never moves the content. An unfilled unit is collapsed
   (.adrtc-ad-collapsed, set by the script in ads.php) only while it is entirely below the viewport and was never seen, so
   the collapse cannot shift anything the reader sees (no CLS); otherwise it keeps its reserved space. */
.adrtc-ad{box-sizing:border-box;clear:both;margin:28px auto;padding:0;max-width:100%;text-align:center}
.adrtc-ad-label{display:block;height:18px;margin:0 0 6px;font:500 11px/18px system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#6b7280;text-align:center}
/* fixed-size responsive unit: AdSense picks a creative that fits 100% x 280 (336x280, 300x250, 728x90 ...). */
.adrtc-ad-incontent{min-height:304px}
.adrtc-ad-ins{display:block;width:100%;height:280px;overflow:hidden;background:#f6f2ec}
.adrtc-ad-row td{padding:4px 0 !important;background:#fff !important;border:0 !important}
/* in a table row the unit is absolutely positioned, so the ad never widens the table columns */
.adrtc-ad-row .adrtc-ad{position:relative;height:304px;margin:12px 0}
.adrtc-ad-row .adrtc-ad-ins{position:absolute;left:0;top:24px;width:min(100%,calc(100vw - 24px))} /* never wider than the screen, even when the table overflows */
.adrtc-ad-row .adrtc-ad-label{text-align:left;padding-left:4px}

/* sticky: no animation, no delay; shown once JS has picked the size that fits */
.adrtc-ad-sticky{position:fixed;z-index:25;box-sizing:border-box;background:#fff;box-shadow:0 -2px 10px rgba(0,0,0,.14)}
.adrtc-ad-sticky[hidden]{display:none !important}
.adrtc-ad-sticky-bar{display:flex;align-items:center;justify-content:space-between;height:28px}
.adrtc-ad-sticky-bar .adrtc-ad-label{margin:0;padding:0 8px}
.adrtc-ad-close{box-sizing:border-box;width:28px;height:28px;margin:0;padding:0;border:1px solid #c9ced6;border-radius:6px;background:#fff;color:#1d2433;font:400 20px/26px system-ui,sans-serif;cursor:pointer}
.adrtc-ad-close:focus-visible{outline:2px solid #2f6f5e;outline-offset:1px}
.adrtc-ad-sticky-slot{margin-top:8px} /* >= 8px between the close button and the ad */
.adrtc-ad-sticky-slot ins{display:block;margin:0 auto}
/* desktop (>= 1024 wide): 300x250 bottom-left, only in the free gutter (ads.php checks the width) */
.adrtc-ad-sticky.is-desktop{left:12px;bottom:12px;width:316px;padding:4px 8px 8px;border-radius:8px;box-shadow:0 2px 12px rgba(0,0,0,.18)}
.adrtc-ad-sticky.is-desktop ins{width:300px;height:250px}
/* mobile: full-width bottom anchor, 320x50 ad, 28 + 8 + 50 + 4 = 90 px high (< 100 px) */
.adrtc-ad-sticky.is-mobile{left:0;right:0;bottom:0;height:90px;padding:0 4px 4px;overflow:hidden}
.adrtc-ad-sticky.is-mobile ins{width:320px;height:50px}
html.adrtc-sticky-mobile body{padding-bottom:96px} /* the anchor never covers the end of the page */
/* very short viewports: never (JS also checks; this covers rotation after load) */
@media (max-height:499px){.adrtc-ad-sticky{display:none !important}html.adrtc-sticky-mobile body{padding-bottom:0}}
@media (max-height:639px) and (min-width:1024px){.adrtc-ad-sticky.is-desktop{display:none !important}}
@media print{.adrtc-ad,.adrtc-ad-sticky,.adrtc-ad-row{display:none !important}}
/* unfilled slot (AdSense sets data-ad-status="unfilled") below the viewport: the ads.php script adds .adrtc-ad-collapsed to the
   box and its table row, no blank gap (owner 2026-12-01). An unfilled box that was already in view keeps its space (CWV audit 2026-12-01). */
.adrtc-ad.adrtc-ad-collapsed,.adrtc-ad-row.adrtc-ad-collapsed{display:none}
