/* Reserved, non-sticky placements. Never target Google's automatically inserted units. */
.minik-manual-ad{box-sizing:border-box;position:relative;clear:both;display:block;width:calc(100% - 40px);max-width:1100px;margin:30px auto 38px;padding:12px 0 0;min-height:122px;background:transparent;border:0;border-radius:0;overflow:visible;text-align:center;direction:ltr;isolation:isolate;}
.minik-manual-ad .manual-ad-label{display:block;margin:0 0 8px;font:11px/1.3 Arial,sans-serif;letter-spacing:.2px;color:#756e80;text-align:center;}
.minik-manual-ad ins.adsbygoogle{padding:0;border:0;background:transparent;overflow:visible;max-width:none;text-decoration:none;}
.minik-manual-ad[data-manual-status=unfilled],.minik-manual-ad[data-manual-status=unavailable],.minik-manual-ad[data-manual-status=limited]{display:none;}
.manual-practice-ad{margin-top:164px;margin-bottom:38px;}
.ad-host:has(.minik-manual-ad){border:0;padding:0;min-height:0;background:transparent;}
.manual-arcade-anchor>.ad-disclosure{display:none;}
body.browser-games.minik-manual-ads-enabled .game-ad-slot.manual-arcade-anchor{display:block;min-height:0!important;overflow:visible!important;border-radius:0;}
body.browser-games.minik-manual-ads-enabled .game-ad-slot.manual-arcade-anchor[data-ad-screen=desktop]{display:none!important;}
body.browser-games.minik-manual-ads-enabled .game-ad-slot.manual-arcade-anchor[data-ad-screen=mobile]{display:block!important;margin:164px auto 35px;width:100%;max-width:1170px;}
body.browser-games.minik-manual-ads-enabled .manual-arcade-anchor .minik-manual-ad{margin-block:0;}
body.browser-games.minik-manual-ads-enabled .manual-arcade-anchor .minik-manual-ad ins{min-height:0;max-width:none;}
@media(min-width:1280px){
 body.browser-games.minik-manual-ads-enabled .game-ad-slot.manual-arcade-anchor[data-ad-screen=desktop]{display:block!important;}
 body.browser-games.minik-manual-ads-enabled .game-ad-slot.manual-arcade-anchor[data-ad-screen=mobile]{display:none!important;}
 body.browser-games.minik-manual-ads-enabled .manual-ad-side{width:200px;max-width:200px;min-height:228px;}
 body.browser-games.minik-manual-ads-enabled #right-tools .manual-ad-side{margin-left:0;margin-right:auto;}
 body.browser-games.minik-manual-ads-enabled .right-col .manual-ad-side{margin-left:auto;margin-right:0;}
}
/* Do not override the INS dimensions with the old responsive side-rail rules. */
body.browser-games.minik-manual-ads-enabled .game-ad-slot.manual-arcade-anchor .minik-manual-ad ins.adsbygoogle{width:unset;}
@media(max-width:360px){.minik-manual-ad{width:calc(100% - 16px);}.manual-practice-ad{width:100%;}}
@media(min-width:500px) and (max-width:799px){.minik-manual-ad{min-height:94px}}
@media print{.minik-manual-ad,.manual-arcade-anchor{display:none!important;}}
body.browser-games.minik-manual-ads-enabled .manual-ad-side ins.adsbygoogle{width:200px!important;height:200px!important;min-height:0!important;}

/* At 320px the practice content has 12px side margins; centre the 300px ad
   independently without stretching cards or changing the exercise shell. */
.ad-host:has(>.minik-manual-ad){display:flex;justify-content:center;}
.ad-host>.manual-practice-ad{min-width:300px;flex-shrink:0;}
@media(max-width:600px){.ad-host>.manual-practice-ad{width:100%;}}
@media(min-width:560px) and (max-width:849px){.minik-manual-ad{min-height:94px;}}
/* The existing exercise ad host is capped at 760px; use that width in full so
   the 728px desktop unit has room without changing the activity card grid. */
.ad-host>.manual-practice-ad{width:100%;}


/* Only active exercise routes mount this host. It is outside question cards,
   answer controls and the re-rendered #app. Ads never overlay the exercise. */
.practice-site #adHost:empty{display:none;min-height:0;padding:0;margin:0;border:0;}
.minik-active-exercise-ads{position:relative;width:100%;max-width:none;margin:0;direction:ltr;isolation:isolate;}
.minik-active-exercise-ads>.manual-ad-exercise-side{display:none;}
.minik-active-exercise-ads>.manual-ad-exercise-bottom{width:calc(100% - 20px);max-width:1100px;margin:164px auto 38px;}
.minik-active-exercise-ads[data-layout=sides]{height:0;}
.minik-active-exercise-ads[data-layout=sides]>.manual-ad-exercise-bottom{display:none;}
.minik-active-exercise-ads[data-layout=sides]>.manual-ad-exercise-side{display:block;position:absolute;top:var(--exercise-ad-y);width:200px;max-width:200px;min-height:228px;margin:0;padding:0;clear:none;}
.minik-active-exercise-ads>[data-manual-placement=exercise-left]{left:var(--exercise-ad-left);}
.minik-active-exercise-ads>[data-manual-placement=exercise-right]{right:var(--exercise-ad-right);}
.minik-active-exercise-ads>.minik-manual-ad[data-manual-status=unfilled],
.minik-active-exercise-ads>.minik-manual-ad[data-manual-status=unavailable],
.minik-active-exercise-ads>.minik-manual-ad[data-manual-status=limited]{display:none;}
@media print{.minik-active-exercise-ads{display:none!important;}}
