/* RoguesBook Adsterra: reserve space only for the matching active viewport. */
.rb-adsterra-top-wrap{display:flex;justify-content:center;align-items:center;gap:0;margin:14px auto 18px;min-width:0}
.rb-adsterra{box-sizing:border-box;max-width:100%;min-width:0;margin-left:auto;margin-right:auto;text-align:center}
.rb-adsterra-top{text-align:center}
.rb-adsterra-banner728{width:728px;min-height:90px}
.rb-adsterra-banner468{width:468px;min-height:60px}
.rb-adsterra-banner320{width:320px;min-height:50px}
.rb-adsterra-banner300{width:300px;min-height:250px}
.rb-adsterra-banner160x600{width:160px;min-height:600px}
.rb-adsterra-banner160x300{width:160px;min-height:300px}
.rb-adsterra-inline{clear:both;margin:30px auto;max-width:100%}
.rb-adsterra-sidebar{margin-top:22px;margin-bottom:18px}
.rb-adsterra-native-wrap{width:min(1180px,calc(100% - 36px));margin:32px auto;min-width:0}
.rb-adsterra-native{width:100%;overflow-wrap:anywhere}
.rb-adsterra-native iframe,.rb-adsterra-native img{max-width:100%}
.rb-adsterra-overlay{height:0;min-height:0;width:0;overflow:visible;margin:0;padding:0}
@media(max-width:1099px){.rb-adsterra-banner160x600{display:none;min-height:0}}
@media(min-width:1100px){.rb-adsterra-banner160x300{display:none;min-height:0}}
@media(max-width:800px){.rb-adsterra-sidebar{display:none;min-height:0}}
@media(min-width:1024px){.rb-adsterra-banner468,.rb-adsterra-banner320{display:none;min-height:0}}
@media(min-width:500px) and (max-width:1023px){.rb-adsterra-banner728,.rb-adsterra-banner320{display:none;min-height:0}}
@media(max-width:499px){.rb-adsterra-banner728,.rb-adsterra-banner468{display:none;min-height:0}}
@media(max-width:343px){.rb-adsterra-banner320,.rb-adsterra-banner300{display:none;min-height:0}}
@media(max-width:600px){.rb-adsterra-top-wrap{margin-top:10px;margin-bottom:10px}.rb-adsterra-inline{margin:24px auto}.rb-adsterra-native-wrap{width:calc(100% - 24px)}}

/* v2.6.63: in-article Native units occupy the available reading column; they are stacked only after substantial text, never as adjacent rows. */
.rb-adsterra-native-intext-wrap{box-sizing:border-box;clear:both;display:block;width:100%;max-width:100%;min-width:0;margin:58px 0 64px;padding:0;overflow-wrap:anywhere}
.rb-adsterra-native-intext-wrap .rb-adsterra-native-intext{display:block;width:100%;max-width:100%;min-width:0;text-align:center;overflow-wrap:anywhere}
.rb-adsterra-native-intext-wrap iframe,.rb-adsterra-native-intext-wrap img{max-width:100%}
@media(max-width:800px){.rb-adsterra-native-intext-wrap{margin:45px 0 51px}}
@media(max-width:520px){.rb-adsterra-native-intext-wrap{margin:36px 0 42px}}

/* v2.6.78: shallow full-width editorial breaks and independent section placements. */
.rb-adsterra-section{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;clear:both;gap:0;margin:32px auto;min-height:0;overflow:visible}
.rb-adsterra-section .rb-adsterra{margin-left:auto;margin-right:auto}
.rb-archive-results .rb-adsterra-section{width:100%;margin:38px auto}
.rb-adsterra-reading-break{display:flex;align-items:center;justify-content:center;clear:both;width:100%;max-width:100%;margin:56px auto 62px;min-height:0}
.rb-adsterra-reading-break .rb-adsterra-inline-wide{display:block;max-width:100%;margin:0 auto}
.rb-adsterra-section .rb-adsterra-native{width:100%;max-width:100%;min-height:0}
@media(min-width:1024px){.rb-adsterra-section .rb-adsterra-banner468,.rb-adsterra-reading-break .rb-adsterra-banner468{display:block;min-height:60px}}
@media(min-width:500px) and (max-width:1023px){.rb-adsterra-section .rb-adsterra-banner320{display:block;min-height:50px}}
@media(max-width:499px){.rb-adsterra-section .rb-adsterra-banner300{display:block;min-height:250px}}
@media(max-width:800px){.rb-adsterra-section{margin:24px auto}.rb-adsterra-reading-break{margin:38px auto 44px}}
@media(max-width:343px){.rb-adsterra-section .rb-adsterra-banner300{display:none;min-height:0}}

@media(min-width:500px){.rb-adsterra-mobile-only{display:none!important;min-height:0}}
@media(max-width:499px){.rb-adsterra-section .rb-adsterra-banner468{display:none;min-height:0}}

/* v2.6.79: the People archive banner is centered on the cards column, not on the full page. */
.rb-archive-results .rb-adsterra-results-placement{
  box-sizing:border-box;
  display:flex;
  width:100%;
  max-width:100%;
  min-width:0;
  padding:0;
  margin:30px auto 34px;
  align-items:center;
  justify-content:center;
}
.rb-archive-results .rb-adsterra-results-placement .rb-adsterra{margin-left:auto;margin-right:auto}
@media(max-width:720px){.rb-archive-results .rb-adsterra-results-placement{margin:22px auto 28px}}

/* v2.6.79: wide native slots respect the same card column; no forced iframe dimensions. */
.rb-home .rb-adsterra-section.rb-adsterra-home-native{width:min(1180px,calc(100% - 36px));margin:30px auto 48px}
.rb-archive-results .rb-adsterra-results-placement .rb-adsterra-native{width:100%;min-width:0}
.rb-home-story-pagination{justify-content:center;margin:32px auto 0}

/* v2.6.80: visually compact the interruption between the 12 + 8 Rogues card rows.
   Keep the existing provider banner dimensions intact and center it in the cards column. */
.rb-archive-results .rb-adsterra-results-placement.rb-adsterra-people-middle{
  margin-top:20px;
  margin-bottom:24px;
  padding:0;
  min-height:0;
}
@media(max-width:720px){
  .rb-archive-results .rb-adsterra-results-placement.rb-adsterra-people-middle{
    margin-top:18px;
    margin-bottom:20px;
  }
}

/* v2.7.0: People directory banner fix. Never reserve 300x250's empty height
   on desktop; an inactive provider format must have zero geometry. The slot
   becomes visible only after its inline width/media guard decides to render. */
.rb-archive-results .rb-adsterra-results-placement.rb-adsterra-people-before,
.rb-archive-results .rb-adsterra-results-placement.rb-adsterra-people-middle{
  box-sizing:border-box;display:flex;width:100%;max-width:100%;height:0;
  min-height:0;margin:0 auto;padding:0;border:0;overflow:visible;
}
.rb-archive-results .rb-adsterra-results-placement.rb-adsterra-people-before .rb-adsterra,
.rb-archive-results .rb-adsterra-results-placement.rb-adsterra-people-middle .rb-adsterra{
  display:none!important;width:0!important;height:0!important;
  min-height:0!important;max-height:0!important;margin:0!important;overflow:hidden!important;
}
.rb-archive-results .rb-adsterra-results-placement.rb-adsterra-has-active{
  height:auto;min-height:0;margin:18px auto 22px;
}
.rb-archive-results .rb-adsterra-results-placement.rb-adsterra-has-active .rb-adsterra-slot-active{
  display:block!important;flex:none!important;margin:0 auto!important;overflow:hidden!important;
}
.rb-archive-results .rb-adsterra-has-active .rb-adsterra-slot-active.rb-adsterra-banner728{
  width:728px!important;max-width:100%!important;height:90px!important;min-height:90px!important;max-height:90px!important;
}
.rb-archive-results .rb-adsterra-has-active .rb-adsterra-slot-active.rb-adsterra-banner468{
  width:468px!important;max-width:100%!important;height:60px!important;min-height:60px!important;max-height:60px!important;
}
.rb-archive-results .rb-adsterra-has-active .rb-adsterra-slot-active.rb-adsterra-banner320{
  width:320px!important;max-width:100%!important;height:50px!important;min-height:50px!important;max-height:50px!important;
}
@media(max-width:720px){
  .rb-archive-results .rb-adsterra-results-placement.rb-adsterra-has-active{margin:14px auto 18px}
}
