/* ==========================================================================
   Adsterra ad slots — responsive, CLS-safe, isolated
   Slots are empty `.oc-ad[data-slot]` divs; ads.js injects a sandboxed
   srcdoc iframe of the right size for the viewport. Heights below are
   RESERVED up-front so the ad appearing does not shift the layout.
   ========================================================================== */

.oc-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 22px auto;
  overflow: hidden;
  text-align: center;
  width: 100%;
}
.oc-ad iframe {
  display: block;
  border: 0;
  max-width: 100%;
}

/* Reserve height per slot (desktop) to keep CLS ~0 */
.oc-ad[data-slot="leaderboard"],
.oc-ad[data-slot="banner"]      { min-height: 90px; }
.oc-ad[data-slot="rectangle"]   { min-height: 250px; }
.oc-ad[data-slot="skyscraper"]  { min-height: 600px; }

/* Mobile reservations */
@media (max-width: 767px) {
  .oc-ad[data-slot="leaderboard"] { min-height: 50px; }
  .oc-ad[data-slot="banner"]      { min-height: 250px; } /* becomes 300x250 on mobile */
}

/* --------------------------------------------------------------------------
   Sticky bottom anchor — highest-viewability slot, dismissible
   -------------------------------------------------------------------------- */
.oc-ad-anchor {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  min-height: 58px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -2px 14px rgba(16, 20, 38, 0.12);
}
.oc-ad-anchor .oc-ad { margin: 0 auto; min-height: 0; }
.oc-ad-anchor__close {
  position: absolute;
  top: -14px;
  right: 8px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #101426;
  color: #fff;
  font-size: 16px;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.oc-ad-anchor__close:hover { background: #2a3350; }

/* Push content up so the fixed anchor never covers footer buttons/links */
body.has-oc-anchor { padding-bottom: 72px; }
@media (max-width: 767px) {
  .oc-ad-anchor { min-height: 54px; }
  body.has-oc-anchor { padding-bottom: 62px; }
}

/* --------------------------------------------------------------------------
   Blog skyscraper — only on wide desktops where the 760px article leaves a
   real right gutter. Below 1500px it is hidden (would overlap content).
   -------------------------------------------------------------------------- */
.oc-ad-sky { display: none; }
@media (min-width: 1500px) {
  .oc-ad-sky {
    display: flex;
    position: fixed;
    top: 96px;
    right: 16px;
    width: 160px;
    min-height: 600px;
    margin: 0;
    z-index: 1030;
  }
}
