/* COMMON ad + AdBlock styles - shared by the Study App and the Learning Hub (one copy only).
   Loaded by views/common/ads/ads-head.jspf. Per-site tweak: set --ad-rail-top (sticky offset under a fixed bar). */
.ad-rail{width:300px;flex-shrink:0;padding:18px 16px;position:sticky;top:var(--ad-rail-top,0);align-self:flex-start;
  height:calc(100vh - var(--ad-rail-top,0px));overflow-y:auto}
.ad-slot{background:#f8fafc;border:1px dashed var(--border,#e2e8f0);border-radius:8px;color:#64748b;font-size:12px;
  text-align:center;display:flex;align-items:center;justify-content:center;margin-bottom:16px;overflow:hidden;letter-spacing:.3px}
.ad-slot.ad-slot-square{min-height:250px}
.ad-slot.ad-slot-tall{min-height:280px}
.ad-slot.ad-slot-wide{min-height:100px}
.ad-banner{max-width:970px;min-height:90px;margin:22px auto;text-align:center;clear:both}
.ad-banner ins.adsbygoogle{display:block}
/* narrower desktops: single skyscraper column (the stacked/mobile rules come from ad-rail.jspf) */
@media (max-width:1280px){
  .ad-rail{width:170px;padding:16px 10px}
  .ad-rail .ad-slot-square,.ad-rail .ad-slot-wide{display:none}
  .ad-rail .ad-slot-tall{min-height:250px}
}
@media print{.ad-rail,.ad-banner,.ab-overlay{display:none!important}}

/* ---- AdBlock detected notice (single simple popup) ---- */
.ab-overlay{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:18px;
  background:rgba(15,23,42,.88);backdrop-filter:blur(3px)}
.ab-overlay[hidden]{display:none}
.ab-box{background:#fff;color:#1b2647;max-width:440px;width:100%;border-radius:16px;padding:32px 28px;text-align:center;
  box-shadow:0 20px 60px rgba(0,0,0,.45);max-height:92vh;overflow-y:auto}
.ab-icon{width:56px;height:56px;margin:0 auto 12px;border-radius:50%;background:#fdf3e3;color:#e8a23d;font-size:30px;line-height:56px}
.ab-box h2{margin:0 0 8px;font-size:22px;color:#c62828}
.ab-box p{margin:8px 0 0;font-size:14px;line-height:1.6;color:#4b5570}
.ab-btn{display:block;width:100%;max-width:300px;margin:22px auto 0;border:0;border-radius:9px;padding:12px 20px;font:inherit;
  font-size:14px;font-weight:700;cursor:pointer}
.ab-btn-primary{background:#c62828;color:#fff}
.ab-btn-primary:hover{background:#a91f1f}
html.ab-lock,html.ab-lock body{overflow:hidden}
