/* W257 route-owned stylesheet slot. Presentation remains governed by public/styles.css. */

.news-ad-slot {
  box-sizing: border-box;
  container: news-ad-slot / inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.news-ad-slot[hidden],
.news-ad-slot[data-ad-state="empty"],
.news-ad-slot[data-ad-state="unfilled"],
.news-ad-slot[data-ad-state="blocked-consent"],
.news-ad-slot[data-ad-state="consent-denied"],
.news-ad-slot[data-ad-state="blocked-script"],
.news-ad-slot[data-ad-state="network-error"],
.news-ad-slot[data-ad-state="error"],
.news-ad-slot[data-ad-state="unavailable-provider"] {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

.news-ad-slot[data-ad-state="filled"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  contain: layout paint;
}

.news-ad-slot__label {
  display: none;
  margin: 12px 0 6px;
  color: rgba(212,221,221,.78);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.news-ad-slot__container {
  display: none;
  box-sizing: border-box;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 0;
  height: 0;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(244,189,89,.34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(26,37,40,.92), rgba(18,48,54,.82));
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  overflow: hidden;
}

.news-ad-slot__container > * {
  max-width: 100%;
}

.news-history-status {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin: 2px 0 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  background: rgba(8,11,12,.18);
  color: rgba(212,221,221,.78);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.news-history-status p {
  margin: 0;
}

.news-history-status--error {
  border-color: rgba(237,63,58,.45);
}

.news-history-load-more {
  width: 100%;
  min-height: 38px;
}

.news-ad-slot--reader-bottom {
  margin-bottom: 0;
}

.news-ad-slot--right-rail {
  margin-bottom: 0;
}

/* News owns two independent regions so rail creative height cannot create
   intermediate rows or push the reader down. */
.main-feature-row--news-refined {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "top" "content";
  gap: 18px;
  width: 100%;
  max-width: none;
  margin-bottom: 18px;
  align-items: stretch;
}

.news-top-region,
.news-content-region {
  display: grid;
  grid-template-columns: minmax(0, 1480px) minmax(520px, 1fr);
  gap: 16px;
  width: 100%;
  min-width: 0;
  align-items: stretch;
}

.news-top-region { grid-area: top; }
.news-content-region { grid-area: content; }
.news-top-region { grid-template-columns: minmax(0, 1201px) minmax(520px, 1fr); }

.news-top-region > .page-feature-hero,
.news-top-region > .news-top-list {
  min-width: 0;
}

.news-top-region > .page-feature-hero {
  grid-column: 1;
}

/* Match the shared Throttle Hub/Messages/Leagues banner standard without
   changing shared geometry or any other route. */
.news-top-region > .page-feature-hero {
  box-sizing: border-box;
  height: var(--non-home-feature-height, clamp(330px, 32vw, 470px));
  min-height: var(--non-home-feature-height, clamp(330px, 32vw, 470px));
  margin-bottom: 0;
  align-self: start;
}

.news-top-region > .news-top-list {
  grid-column: 2;
  grid-row: 1;
}

.news-left-stack,
.news-right-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 16px;
}

.news-content-region > .news-left-stack {
  grid-column: 1;
}

.news-content-region > .news-right-stack {
  grid-column: 2;
}

.news-left-stack .news-static-reader-wrap,
.news-right-stack .news-ad-slot {
  width: 100%;
  min-width: 0;
}

/* The wrapper is fluid; each child host is an exact supported creative frame. */
@container news-ad-slot (min-width: 320px) {
  .news-ad-slot--reader-bottom .news-ad-slot__label,
  .news-ad-slot--reader-bottom .news-ad-slot__container {
    display: flex;
  }

  .news-ad-slot--reader-bottom .news-ad-slot__container {
    width: 320px;
    height: 100px;
    min-width: 320px;
    min-height: 100px;
    margin-bottom: 18px;
  }
}

@container news-ad-slot (min-width: 468px) {
  .news-ad-slot--reader-bottom .news-ad-slot__container {
    width: 468px;
    height: 60px;
    min-width: 468px;
    min-height: 60px;
  }
}

@container news-ad-slot (min-width: 728px) {
  .news-ad-slot--reader-bottom .news-ad-slot__container {
    width: 728px;
    height: 90px;
    min-width: 728px;
    min-height: 90px;
  }
}

@container news-ad-slot (min-width: 970px) {
  .news-ad-slot--reader-bottom .news-ad-slot__container {
    width: 970px;
    height: 90px;
    min-width: 970px;
    min-height: 90px;
  }
}

@container news-ad-slot (min-width: 300px) {
  .news-ad-slot--right-rail .news-ad-slot__label,
  .news-ad-slot--right-rail .news-ad-slot__container {
    display: flex;
  }

  .news-ad-slot--right-rail .news-ad-slot__container {
    width: 300px;
    height: 250px;
    min-width: 300px;
    min-height: 250px;
    margin-bottom: 18px;
  }
}

@media (max-width: 980px) {
  .main-feature-row--news-refined {
    grid-template-areas: "top" "content";
  }

  .news-top-region,
  .news-content-region {
    grid-template-columns: 1fr;
  }

  .news-top-region > .page-feature-hero,
  .news-top-region > .news-top-list,
  .news-content-region > .news-left-stack,
  .news-content-region > .news-right-stack {
    grid-column: 1;
    grid-row: auto;
  }

  .news-top-region > .page-feature-hero { order: 1; }
  .news-top-region > .news-top-list { order: 2; }
  .news-content-region > .news-left-stack { order: 1; }
  .news-content-region > .news-right-stack { order: 2; }

  .news-top-list {
    width: 100%;
    min-width: 0;
  }

  .news-top-region > .page-feature-hero {
    height: var(--non-home-feature-height, clamp(420px, 56vw, 470px));
    min-height: var(--non-home-feature-height, clamp(420px, 56vw, 470px));
  }

  /* Single-column rails use the approved horizontal/mobile units. */
  @container news-ad-slot (min-width: 320px) {
    .news-ad-slot--right-rail .news-ad-slot__label,
    .news-ad-slot--right-rail .news-ad-slot__container {
      display: flex;
    }

    .news-ad-slot--right-rail .news-ad-slot__container {
      width: 320px;
      height: 100px;
      min-width: 320px;
      min-height: 100px;
      margin-bottom: 18px;
    }
  }

  @container news-ad-slot (min-width: 468px) {
    .news-ad-slot--right-rail .news-ad-slot__container {
      width: 468px;
      height: 60px;
      min-width: 468px;
      min-height: 60px;
    }
  }

  @container news-ad-slot (min-width: 728px) {
    .news-ad-slot--right-rail .news-ad-slot__container {
      width: 728px;
      height: 90px;
      min-width: 728px;
      min-height: 90px;
    }
  }

  .news-history-status {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 640px) {
  .news-top-region > .page-feature-hero {
    height: var(--non-home-feature-height, clamp(430px, 126vw, 520px));
    min-height: var(--non-home-feature-height, clamp(430px, 126vw, 520px));
  }
}
