/* RetireNet ad positions on the new public pages, desktop and the mobile site (views/public/layout/_ad_slot.tpl, _ad.tpl).
   Positions: A1/A2 banners 728x90 (phones 320x100), B1-B3 and C1-C4 boxes 300x250. Loaded by every new page. */
.rnad-slot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 24px; width: 100%; }
.rnad-slot-box { gap: 24px; }
.rnad { display: flex; flex-direction: column; align-items: center; max-width: 100%; margin: 0; }
.rnad a { display: block; max-width: 100%; }
.rnad img { display: block; max-width: 100%; height: auto; border-radius: 6px; } /* no width rule: the img's width/height attributes hold its space before it loads */
.rnad-banner { width: 100%; }
.rnad-banner img { max-height: 100px; }
.rnad-box { width: 300px; max-width: 100%; }
.rnad-box img { max-height: 250px; }
.rnad-code { width: 100%; max-width: 970px; overflow: hidden; text-align: center; }
.rnad-label { display: block; height: 14px; margin: 0 0 6px; color: #8a97a3; font-size: 11px; font-weight: 600; line-height: 14px; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
/* Staff only: where an empty position is */
.rnad-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-sizing: border-box; padding: 12px;
    border: 2px dashed #bcd2ea; border-radius: 8px; background: #f5f9fd; color: #2f5d83; text-align: center; text-decoration: none !important; }
.rnad-empty b { font-size: 14px; line-height: 18px; color: #1f3a55; }
.rnad-empty span { font-size: 12px; line-height: 16px; color: #607d8b; }
.rnad-empty:hover { border-color: #3b729f; }
.rnad-empty-banner { width: 728px; max-width: 100%; height: 90px; }
.rnad-empty-box { width: 300px; max-width: 100%; height: 250px; }
/* A band across a full-width page: a ruled strip the width of the content, so a lone box reads as a placed unit, not a floating square */
.rnad-band .rnad-slot { padding: 20px 0 24px; border-top: 1px solid #e3e9ef; border-bottom: 1px solid #e3e9ef; }
/* Next to a white section the strip's own rules are the divider, so that section's padding on the strip side goes: 40px each side of the strip */
.rnad-band { padding: 40px 0; }
.rn .rn-sec:not(.soft) + .rnad-band { padding-top: 0; }
.rn .rnad-band + .rn-sec:not(.soft) { padding-top: 0; }
/* A sidebar column of boxes */
.rnad-side { flex-direction: column; align-items: center; gap: 16px; }
@media (max-width: 767px) {
    .rnad-band { padding: 20px 0; }
    .rnad-band .rnad-slot { padding: 14px 0 16px; }
    .rnad-slot, .rnad-slot-box { gap: 16px; }
    .rnad-empty-banner { width: 320px; height: 100px; }
}

/* Staff "Ad holders" switch: off = the page as the public sees it (empty positions and the bands around them gone) */
html.rn-noadph .rnad-empty, html.rn-noadph .rnad-slot-empty, html.rn-noadph .rnad-gone { display: none !important; }
.rnad-switch { position: fixed; left: 16px; bottom: 16px; z-index: 1040; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 12px;
    border: 1px solid #cfd9e2; border-radius: 20px; background: #fff; box-shadow: 0 2px 10px rgba(16, 38, 58, .16); color: #1d2b38; font: 600 13.5px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; }
.rnad-switch:hover { border-color: #3b729f; }
.rnad-switch i { position: relative; display: inline-block; flex: 0 0 34px; width: 34px; height: 20px; border-radius: 10px; background: #2f5d83; }
.rnad-switch i::after { content: ""; position: absolute; top: 3px; left: 17px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
html.rn-noadph .rnad-switch i { background: #b8c4cf; }
html.rn-noadph .rnad-switch i::after { left: 3px; }
.rnad-switch small { color: #5f7488; font-size: 12px; font-weight: 500; }
.rn-m .rnad-switch { bottom: 140px; left: 12px; }
