/* Designated ad slots (App\Services\AdSlots) — reserved, fixed-size boxes.
   Heights are fixed per breakpoint so a slot can never shift layout (no CLS).
   Side rails are position:absolute in the page margin: out of flow, so they
   reserve nothing and can never push or overlap content; each rail appears
   only at widths where a real margin exists (measured per surface below).
   Flat styling, slate/indigo palette, 2px radius, both themes. */
.aw-ad{margin:28px auto;max-width:1120px;padding:0;box-sizing:border-box;font-family:inherit}
.aw-ad-label{margin:0 0 6px;text-align:center;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#94a3b8}
.aw-ad-box{border-radius:2px;overflow:hidden}
.aw-ad-box ins{display:block;width:100%;height:100%}
/* In-flow slots inside narrower columns take the column's own width/edges. */
.aw-ad--slot-blog-mid,.aw-ad--slot-blog-end,.aw-ad--slot-tool-guide{max-width:none;margin:26px 0}
/* Horizontal strips (blog mid-article, right after the tool section). */
.aw-ad--strip .aw-ad-box{height:110px}
/* Tall end boxes (blog article end, inside the tool guide). */
.aw-ad--wide .aw-ad-box{height:280px}
/* Test-mode placeholder (only reachable with the secret test key). */
.aw-ad-box--test{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;border:1px dashed #94a3b8;background:#f8fafc;color:#64748b;font-size:14px;font-weight:500;line-height:1.4;text-align:center;padding:8px}
.aw-ad-box--test small{font-size:12px;font-weight:400;opacity:.85}
/* The tool guide is a dark panel in both themes: match the test box to it. */
.tool-guide .aw-ad-box--test{background:rgba(148,163,184,.08);border-color:#475569;color:#94a3b8}
.tool-guide .aw-ad-label{color:#94a3b8}
html[data-theme="dark"] .aw-ad-label{color:#64748b}
html[data-theme="dark"] .aw-ad-box--test{background:rgba(148,163,184,.08);border-color:#475569;color:#94a3b8}
/* Side rails: hidden by default; each appears only where its margin exists.
   Blog: content column is 1180 wide — at 1580 the side margins are 200 each,
   so rail (160) + 24 gap + edge room fits without touching the column.
   Tools: the stage wrapper is 1240 wide and the guide 1120, both centred.
   Anchoring the rail to the centre keeps a constant 8px clearance to the
   stage wrapper (52px+ to the visible panel inside it) and 68px to the
   guide at every width; at 1600 the rail's left edge is 12px, so 1600 is
   the smallest width where it fits at all. */
.aw-ad--side{display:none;margin:0;width:160px;position:absolute;z-index:5}
.aw-ad--side .aw-ad-label{text-align:left}
.aw-ad--side .aw-ad-box{height:600px}
@media (min-width:1580px){
  .aw-ad--slot-blog-side{display:block;top:380px;left:calc(50% - 774px)}
}
@media (min-width:1600px){
  .aw-ad--slot-tool-side{display:block;top:150px;left:calc(50% - 788px)}
}
@media (max-width:640px){
  .aw-ad--strip .aw-ad-box{height:100px}
  .aw-ad--slot-blog-mid,.aw-ad--slot-blog-end,.aw-ad--slot-tool-guide{margin:22px 0}
}
@media (max-width:380px){
  .aw-ad--wide .aw-ad-box{height:250px}
}
