/* Visão de Quarterback — banner layout canonical rules (V65.24.0)
 * This file is enqueued after the legacy theme/NFL styles. Do not duplicate these rules
 * in style.css or the banner plugin: theme controls geometry, plugin controls campaigns.
 */
html,
body { background:var(--bg, #f4f7fa) !important; }

/* Isolated regions guarantee the ad stays in normal flow on every template. */
.vqb-banner-region {
  display:block !important;
  position:relative !important;
  inset:auto !important;
  transform:none !important;
  isolation:isolate;
  clear:both !important;
  flex:0 0 auto !important;
  flex-grow:0 !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  background:var(--bg, #f4f7fa) !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
}
.vqb-banner-region--top { z-index:30 !important; }
.vqb-banner-region--top > .vqb-site-ad-band,
.vqb-banner-region--top > .vqab-ad-slot--global-top {
  position:relative !important;
  inset:auto !important;
  transform:none !important;
  clear:both !important;
  flex:0 0 auto !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  margin:0 !important;
  padding:8px 12px !important;
  background:var(--bg, #f4f7fa) !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  line-height:0 !important;
  overflow:hidden !important;
}
.vqb-banner-region--prefooter { z-index:1 !important; }
.vqb-banner-region--prefooter > .vqb-awin-prefooter,
.vqb-banner-region--prefooter > .vqab-ad-slot--pre-footer {
  position:relative !important;
  inset:auto !important;
  transform:none !important;
  clear:both !important;
  flex:0 0 auto !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  margin:0 !important;
  padding:8px 12px !important;
  background:var(--bg, #f4f7fa) !important;
  border:0 !important;
  border-top:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  line-height:0 !important;
  overflow:hidden !important;
}
.site-footer { border-top:0 !important; outline:0 !important; box-shadow:none !important; }

.vqab-ad-config { display:none !important; }
.vqab-ad-slot[hidden] { display:none !important; }
.vqab-ad-slot-items:empty { display:none !important; }

.vqab-ad-slot,
.vqb-site-ad-band,
.vqb-awin-banner--after-hero,
.vqb-awin-prefooter {
  box-sizing:border-box;
  position:relative;
  flex:0 0 auto;
  flex-grow:0;
  width:100%;
  min-width:0;
  height:auto;
  min-height:0;
  max-height:none;
  margin-block:0;
}

.vqab-ad-slot-items {
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0;
  width:100%;
  min-width:0;
  height:auto;
  min-height:0;
  max-height:none;
  margin:0;
  padding:0;
  line-height:0;
}

.vqab-ad-slot .vqab-rotating-creative,
.vqb-site-ad-band .vqb-site-ad-creative,
.vqb-awin-banner--after-hero a,
.vqb-awin-prefooter a,
.article-sidebar .vqb-awin-sidebar-creative {
  box-sizing:border-box;
  display:block;
  flex:0 1 auto;
  width:100%;
  min-width:0;
  height:auto;
  margin:0 auto;
  padding:0;
  line-height:0;
  text-decoration:none;
  border:0;
  background:transparent;
  box-shadow:none;
}

/* Global top banner: 8px above the image and 8px between the image and every template's content. */
.vqb-site-ad-band,
.vqab-ad-slot--global-top {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  overflow:hidden;
  background:var(--bg, #f4f7fa);
  border:0;
  outline:0;
  border-radius:0;
  box-shadow:none;
  line-height:0;
}
.vqb-site-ad-band .vqb-site-ad-creative,
.vqab-ad-slot--global-top .vqb-site-ad-creative,
.vqab-ad-slot--global-top .vqab-ad-slot-items { width:100%; max-width:728px; }
.vqb-site-ad-band img,
.vqab-ad-slot--global-top img {
  display:block;
  width:100%;
  max-width:728px;
  height:auto;
  min-height:0;
  max-height:none;
  margin:0 auto;
  padding:0;
  border:0;
  outline:0;
  box-shadow:none;
  object-fit:contain;
}
/* A configured 300x250 creative must remain compact in the top slot instead of scaling up. */
.vqb-site-ad-band img[width="300"][height="250"],
.vqab-ad-slot--global-top img[width="300"][height="250"] { max-width:300px; }

/* Consistent content start on every template that uses get_header(). */
body main.home,
body main.page-wrap,
body main.post-wrap,
body main.institutional-wrap,
body main.page-fullwidth-wrap,
body main.vqb-nfl-data-page-shell { padding-top:8px !important; }
body main.page-wrap .vq-hub-page,
body main.page-wrap .vq-nfl-hub,
body main.page-wrap .vq-player-profile,
body main.page-wrap .vq-team-related-posts,
body main.page-wrap .vq-coach-profile { margin-block-start:0 !important; }
body main.page-wrap .vqb-page:first-child,
body main.post-wrap .article-layout:first-child { margin-block-start:0 !important; }
body main.page-blank-wrap { padding-top:8px !important; }

/* Home banner below the hero. */
.vqb-awin-banner--after-hero,
.vqab-ad-slot--home-after-hero {
  display:block;
  width:100%;
  max-width:1200px;
  margin:8px auto;
  padding:0 12px;
  text-align:center;
  background:transparent;
  border:0;
  box-shadow:none;
}
.vqab-ad-slot--home-after-hero .vqab-ad-slot-items { flex-direction:row; }
.vqb-awin-banner--after-hero a,
.vqab-ad-slot--home-after-hero .vqab-rotating-creative { max-width:728px; }
.vqb-awin-banner--after-hero img,
.vqab-ad-slot--home-after-hero img { display:block; width:100%; max-width:728px; height:auto; margin:0 auto; object-fit:contain; }
.vqb-ad-wide { display:block; width:100%; max-width:728px; margin:0 auto; }
.vqb-ad-wide img { display:block; width:100%; max-width:728px; height:auto; margin:0 auto; }
.vqb-ad-mobile { display:none !important; }
.vqb-ad-mobile img { display:block; width:100%; max-width:300px; height:auto; margin:0 auto; }

/* Pre-footer ad stays in normal document flow, immediately before the footer. */
.vqb-awin-prefooter,
.vqab-ad-slot--pre-footer {
  display:block;
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  text-align:center;
  background:var(--bg, #f4f7fa);
  border:0;
  outline:0;
  border-radius:0;
  box-shadow:none;
  overflow:hidden;
}
.vqb-awin-prefooter a,
.vqab-ad-slot--pre-footer a { max-width:728px; }
.vqb-awin-prefooter img,
.vqab-ad-slot--pre-footer img { display:block; width:100%; max-width:728px; height:auto; margin:0 auto; object-fit:contain; }

/* Article sidebar banners align with the newsletter/social/recent-news widgets. */
.article-sidebar .vqab-ad-slot--article-sidebar,
.article-sidebar .vqab-ad-slot--article-after-social,
.article-sidebar .vqab-ad-slot--article-after-recent,
.article-sidebar .vqb-awin-sidebar-widget {
  display:block; width:100%; min-width:0; margin:10px 0; padding:0; border:0; border-radius:0;
  background:transparent; box-shadow:none; text-align:center; line-height:0;
}
.article-sidebar .vqab-ad-slot--article-sidebar .vqab-ad-slot-items,
.article-sidebar .vqab-ad-slot--article-after-social .vqab-ad-slot-items,
.article-sidebar .vqab-ad-slot--article-after-recent .vqab-ad-slot-items { gap:10px; }
.article-sidebar .vqb-awin-sidebar-creative,
.article-sidebar .vqb-awin-sidebar-creative img,
.article-sidebar .vqab-ad-slot--article-sidebar img,
.article-sidebar .vqab-ad-slot--article-after-social img,
.article-sidebar .vqab-ad-slot--article-after-recent img {
  display:block; width:100%; max-width:300px; height:auto; margin:0 auto; border:0; object-fit:contain;
}
.article-sidebar .vqab-ad-slot--article-sidebar .vqb-awin-sidebar-widget,
.article-sidebar .vqab-ad-slot--article-after-social .vqb-awin-sidebar-widget,
.article-sidebar .vqab-ad-slot--article-after-recent .vqb-awin-sidebar-widget { max-width:300px; }

@media (max-width:767px) {
  .vqb-site-ad-band, .vqab-ad-slot--global-top { padding:8px 10px !important; }
  .vqb-site-ad-band img, .vqab-ad-slot--global-top img { max-width:728px; }
  .vqb-site-ad-band img[width="300"][height="250"],
  .vqab-ad-slot--global-top img[width="300"][height="250"] { max-width:300px; }
  .vqb-ad-wide { display:none !important; }
  .vqb-ad-mobile { display:block !important; width:100%; max-width:300px; margin:0 auto; }
  .vqb-ad-mobile img { width:100%; max-width:300px; height:auto; }
  .vqab-ad-slot--home-after-hero { margin:8px auto; padding:0 10px; }
  .vqb-ad-slot--pre-footer, .vqb-awin-prefooter { margin:0 !important; padding:6px 10px !important; }
  .vqb-awin-prefooter img, .vqab-ad-slot--pre-footer img { max-width:728px; }
  body main.home, body main.page-wrap, body main.post-wrap, body main.institutional-wrap, body main.page-fullwidth-wrap, body main.vqb-nfl-data-page-shell { padding-top:8px !important; }
}

@media (max-width:767px) {
  .vqb-banner-region--top > .vqb-site-ad-band,
  .vqb-banner-region--top > .vqab-ad-slot--global-top { padding:6px 10px !important; }
  .vqb-banner-region--prefooter > .vqb-awin-prefooter,
  .vqb-banner-region--prefooter > .vqab-ad-slot--pre-footer { padding:6px 10px !important; }
}
