/* bet365 sponsorship / site-takeover layer.
   Does not restyle TFC news cards, typography, or lime accents. */

body.tfc-sponsored {
  background: #126e51;
}

.wallpaper {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #126e51;
  background-image: url("../assets/ads/wallpaper-1920x1080.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 1920px auto;
  pointer-events: none;
}

.site-shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 48px rgba(0, 0, 0, 0.35);
  min-height: 100vh;
}

.sticky-chrome {
  position: sticky;
  top: 0;
  z-index: 200;
}

body.tfc-sponsored .site-header {
  position: relative;
  top: auto;
}

.partner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  min-height: 40px;
  padding: 6px 20px;
  background: #126e51;
  color: #fff;
  border-bottom: 3px solid #ffdf1b;
}

.partner-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.partner-lockup img {
  height: 20px;
  width: auto;
}

.ad-flag {
  display: inline-block;
  border: 1px solid #ffdf1b;
  color: #ffdf1b;
  font-size: 9px;
  letter-spacing: 0.14em;
  padding: 1px 6px;
  line-height: 1.4;
}

.partner-rg {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
}

.partner-rg a {
  color: #e8f6f0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 223, 27, 0.6);
}

.partner-rg a:hover { color: #ffdf1b; }

.sponsored-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bdbdbd;
  white-space: nowrap;
}

.sponsored-tag img {
  height: 13px;
  width: auto;
}

.header-inner .sponsored-tag { flex: 1; }

.ad-label {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5b5b56;
}

.ad-billboard-wrap,
.ad-mobile-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px 16px;
  background: #0e3f31;
}

.ad-billboard-wrap img {
  width: 970px;
  height: 250px;
  max-width: 100%;
  height: auto;
  display: block;
}

.ad-mobile-wrap { display: none; }
.ad-mobile-wrap img {
  width: 320px;
  height: 100px;
  display: block;
  max-width: 100%;
  height: auto;
}

@media (max-width: 719px) {
  .ad-billboard-wrap { display: none; }
  .ad-mobile-wrap { display: flex; }
  .sponsored-tag { display: none; }
  .partner-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 14px 6px;
  }
}

/* Side rails / skyscrapers — gutters only */
.ad-rail {
  display: none;
}

.ad-rail a { line-height: 0; }
.ad-rail img { display: block; }

@media (min-width: 1600px) {
  .wallpaper { display: block; }

  .ad-rail {
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 160px;
    justify-content: center;
    align-items: flex-start;
    padding-top: 112px;
    pointer-events: none;
  }

  .ad-rail-inner {
    pointer-events: auto;
    position: sticky;
    top: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .ad-rail-left {
    left: max(8px, calc((100vw - 1240px) / 2 - 160px - 16px));
  }

  .ad-rail-right {
    right: max(8px, calc((100vw - 1240px) / 2 - 160px - 16px));
  }

  .ad-rail .ad-halfpage { display: none; }
  .ad-rail .ad-sky { display: block; }
}

@media (min-width: 1880px) {
  .ad-rail { width: 300px; }

  .ad-rail-left {
    left: max(8px, calc((100vw - 1240px) / 2 - 300px - 20px));
  }

  .ad-rail-right {
    right: max(8px, calc((100vw - 1240px) / 2 - 300px - 20px));
  }

  .ad-rail .ad-halfpage { display: block; }
  .ad-rail .ad-sky { display: none; }
}

.ad-mpu-band {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 0 8px;
}

.ad-mpu-band img {
  width: 300px;
  height: 250px;
  display: block;
}

.sponsor-footer-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: #9a9a9a;
}
.sponsor-footer-note a { color: #c8c8c8; }
