/* bl-ads.css - the AdSense boxes (includes/components/ads.php, assets/js/bl-ads.js). Each box has a fixed size,
   chosen from the width of the column it sits in (a container query), and the same before and after the ad loads,
   so nothing on the page moves: 320x100 in a narrow column, 468x60 from 468px, 728x90 from 728px. Google's
   "exact size per width" responsive method, so an ad never grows past its box. The "Advertisement" label sits
   above; the margins keep the box clear of links and buttons. */
.bl-ad{display:block;clear:both;width:100%;box-sizing:border-box;align-self:stretch;margin:36px 0;padding:0;text-align:center;container-type:inline-size}
.bl-ad-l{display:block;margin:0 0 6px;color:var(--ink-3,#6b7280);font-size:12.5px;font-weight:600;line-height:1.2;text-align:center}
.bl-ad-box{display:flex;align-items:center;justify-content:center;margin:0 auto;width:320px;max-width:100%;height:100px;overflow:hidden;
  background:var(--sunk,rgba(127,127,127,.08));border-radius:8px}
.bl-ad-ins{width:320px;height:100px}
@container (min-width:468px){.bl-ad-box,.bl-ad-ins{width:468px;height:60px}}
@container (min-width:728px){.bl-ad-box,.bl-ad-ins{width:728px;height:90px}}

/* Local placeholder (ads.php 'placeholder' on 127.0.0.1 only): no Google request, the same box */
.bl-ad-ph{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;height:100%;box-sizing:border-box;
  border:1.5px dashed var(--rule,rgba(127,127,127,.4));border-radius:8px;color:var(--ink-3,#6b7280);font-size:13px;font-weight:600}
.bl-ad-ph span + span{font-weight:500;font-size:12px;opacity:.8}

/* ads v2: the lesson-complete screen's unit, after everything on it, clear of its buttons (48 px above and below) */
.bl-ad.bl-ad-end{margin:48px 0}
@media print{.bl-ad{display:none!important}}
