/* GO v39: restore GameRant-like bands, fix header intent, and single alignment. */
body:not(.wp-admin) {
  --go-v39-band-light: rgba(231, 229, 235, 0.96);
  --go-v39-band-light-2: rgba(224, 222, 229, 0.96);
  --go-v39-band-line-light: rgba(18, 20, 28, 0.08);
  --go-v39-band-line-light-soft: rgba(18, 20, 28, 0.045);
  --go-v39-band-dark: rgba(35, 35, 42, 0.97);
  --go-v39-band-dark-2: rgba(41, 41, 49, 0.97);
  --go-v39-band-line-dark: rgba(255, 255, 255, 0.08);
  --go-v39-band-line-dark-soft: rgba(255, 255, 255, 0.045);
}

/* --------------------------------------------------------------------------
   Header intent correction: GO logo back on the left, X logo on the right.
   -------------------------------------------------------------------------- */
html body:not(.wp-admin) .go-v38-header-brand-right {
  display: none !important;
}

html body:not(.wp-admin) .go-v24-header-left {
  gap: 10px !important;
}

html body:not(.wp-admin) .go-v24-header-actions {
  gap: 10px !important;
}

html body:not(.wp-admin) .go-v31-theme-toggle.newsx-dark-mode-switcher {
  order: 1 !important;
}

html body:not(.wp-admin) .go-v38-follow-link {
  order: 2 !important;
  display: inline-flex !important;
}

html body:not(.wp-admin) .go-v31-social-link--x {
  order: 3 !important;
}

@media (max-width: 1320px) {
  html body:not(.wp-admin) .go-v38-follow-link {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Restore smart GameRant-style bands on the actual existing sections.
   -------------------------------------------------------------------------- */
.go-ds-latest-strip,
.go-ds-bottom-layout,
.go-ca-page .go-ca-hero,
.go-gh-page .go-gh-hero,
.go-cp-page .go-cp-featured,
.go-eh-page .go-eh-hero,
.go-th-page .go-th-hero,
.go-vh-page .go-vh-hero,
.go-ca-hero,
.go-gh-hero,
.go-cp-featured,
.go-eh-hero,
.go-th-hero,
.go-vh-hero {
  position: relative !important;
  isolation: isolate !important;
  z-index: 0 !important;
}

.go-ds-latest-strip::before,
.go-ds-bottom-layout::before,
.go-ca-page .go-ca-hero::before,
.go-gh-page .go-gh-hero::before,
.go-cp-page .go-cp-featured::before,
.go-eh-page .go-eh-hero::before,
.go-th-page .go-th-hero::before,
.go-vh-page .go-vh-hero::before,
.go-ca-hero::before,
.go-gh-hero::before,
.go-cp-featured::before,
.go-eh-hero::before,
.go-th-hero::before,
.go-vh-hero::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100vw !important;
  top: calc(clamp(16px, 2vw, 28px) * -1) !important;
  bottom: calc(clamp(16px, 2vw, 28px) * -1) !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background: linear-gradient(180deg, transparent 0%, var(--go-v39-band-light) 12%, var(--go-v39-band-light) 88%, transparent 100%) !important;
  border-top: 1px solid var(--go-v39-band-line-light-soft) !important;
  border-bottom: 1px solid var(--go-v39-band-line-light-soft) !important;
}

.go-ds-bottom-layout::before {
  background: linear-gradient(180deg, transparent 0%, var(--go-v39-band-light-2) 12%, var(--go-v39-band-light-2) 88%, transparent 100%) !important;
  border-top-color: var(--go-v39-band-line-light) !important;
  border-bottom-color: var(--go-v39-band-line-light) !important;
}

.go-ds-latest-strip > *,
.go-ds-bottom-layout > *,
.go-ca-page .go-ca-hero > *,
.go-gh-page .go-gh-hero > *,
.go-cp-page .go-cp-featured > *,
.go-eh-page .go-eh-hero > *,
.go-th-page .go-th-hero > *,
.go-vh-page .go-vh-hero > *,
.go-ca-hero > *,
.go-gh-hero > *,
.go-cp-featured > *,
.go-eh-hero > *,
.go-th-hero > *,
.go-vh-hero > * {
  position: relative !important;
  z-index: 1 !important;
}

/* Page mastheads need a slightly taller, more obvious strip like GameRant. */
.go-ca-page .go-ca-hero::before,
.go-gh-page .go-gh-hero::before,
.go-cp-page .go-cp-featured::before,
.go-eh-page .go-eh-hero::before,
.go-th-page .go-th-hero::before,
.go-vh-page .go-vh-hero::before,
.go-ca-hero::before,
.go-gh-hero::before,
.go-cp-featured::before,
.go-eh-hero::before,
.go-th-hero::before,
.go-vh-hero::before {
  top: calc(clamp(22px, 2.8vw, 38px) * -1) !important;
  bottom: calc(clamp(22px, 2.8vw, 38px) * -1) !important;
}

html.dark .go-ds-latest-strip::before,
body.dark .go-ds-latest-strip::before,
body.dark-mode .go-ds-latest-strip::before,
body.is-dark-theme .go-ds-latest-strip::before,
body.newsx-dark-mode .go-ds-latest-strip::before,
[data-theme="dark"] .go-ds-latest-strip::before,
html.dark .go-ds-bottom-layout::before,
body.dark .go-ds-bottom-layout::before,
body.dark-mode .go-ds-bottom-layout::before,
body.is-dark-theme .go-ds-bottom-layout::before,
body.newsx-dark-mode .go-ds-bottom-layout::before,
[data-theme="dark"] .go-ds-bottom-layout::before,
html.dark :is(.go-ca-page .go-ca-hero, .go-gh-page .go-gh-hero, .go-cp-page .go-cp-featured, .go-eh-page .go-eh-hero, .go-th-page .go-th-hero, .go-vh-page .go-vh-hero, .go-ca-hero, .go-gh-hero, .go-cp-featured, .go-eh-hero, .go-th-hero, .go-vh-hero)::before,
body.dark :is(.go-ca-page .go-ca-hero, .go-gh-page .go-gh-hero, .go-cp-page .go-cp-featured, .go-eh-page .go-eh-hero, .go-th-page .go-th-hero, .go-vh-page .go-vh-hero, .go-ca-hero, .go-gh-hero, .go-cp-featured, .go-eh-hero, .go-th-hero, .go-vh-hero)::before,
body.dark-mode :is(.go-ca-page .go-ca-hero, .go-gh-page .go-gh-hero, .go-cp-page .go-cp-featured, .go-eh-page .go-eh-hero, .go-th-page .go-th-hero, .go-vh-page .go-vh-hero, .go-ca-hero, .go-gh-hero, .go-cp-featured, .go-eh-hero, .go-th-hero, .go-vh-hero)::before,
body.is-dark-theme :is(.go-ca-page .go-ca-hero, .go-gh-page .go-gh-hero, .go-cp-page .go-cp-featured, .go-eh-page .go-eh-hero, .go-th-page .go-th-hero, .go-vh-page .go-vh-hero, .go-ca-hero, .go-gh-hero, .go-cp-featured, .go-eh-hero, .go-th-hero, .go-vh-hero)::before,
body.newsx-dark-mode :is(.go-ca-page .go-ca-hero, .go-gh-page .go-gh-hero, .go-cp-page .go-cp-featured, .go-eh-page .go-eh-hero, .go-th-page .go-th-hero, .go-vh-page .go-vh-hero, .go-ca-hero, .go-gh-hero, .go-cp-featured, .go-eh-hero, .go-th-hero, .go-vh-hero)::before,
[data-theme="dark"] :is(.go-ca-page .go-ca-hero, .go-gh-page .go-gh-hero, .go-cp-page .go-cp-featured, .go-eh-page .go-eh-hero, .go-th-page .go-th-hero, .go-vh-page .go-vh-hero, .go-ca-hero, .go-gh-hero, .go-cp-featured, .go-eh-hero, .go-th-hero, .go-vh-hero)::before {
  background: linear-gradient(180deg, transparent 0%, var(--go-v39-band-dark) 12%, var(--go-v39-band-dark) 88%, transparent 100%) !important;
  border-top-color: var(--go-v39-band-line-dark-soft) !important;
  border-bottom-color: var(--go-v39-band-line-dark-soft) !important;
}

html.dark .go-ds-bottom-layout::before,
body.dark .go-ds-bottom-layout::before,
body.dark-mode .go-ds-bottom-layout::before,
body.is-dark-theme .go-ds-bottom-layout::before,
body.newsx-dark-mode .go-ds-bottom-layout::before,
[data-theme="dark"] .go-ds-bottom-layout::before {
  background: linear-gradient(180deg, transparent 0%, var(--go-v39-band-dark-2) 12%, var(--go-v39-band-dark-2) 88%, transparent 100%) !important;
  border-top-color: var(--go-v39-band-line-dark) !important;
  border-bottom-color: var(--go-v39-band-line-dark) !important;
}

@media (max-width: 780px) {
  .go-ds-latest-strip::before,
  .go-ds-bottom-layout::before,
  .go-ca-page .go-ca-hero::before,
  .go-gh-page .go-gh-hero::before,
  .go-cp-page .go-cp-featured::before,
  .go-eh-page .go-eh-hero::before,
  .go-th-page .go-th-hero::before,
  .go-vh-page .go-vh-hero::before,
  .go-ca-hero::before,
  .go-gh-hero::before,
  .go-cp-featured::before,
  .go-eh-hero::before,
  .go-th-hero::before,
  .go-vh-hero::before {
    top: -12px !important;
    bottom: -12px !important;
  }
}

/* --------------------------------------------------------------------------
   Single fix: lock eyebrow/title/subtitle to the same vertical rail as cover.
   -------------------------------------------------------------------------- */
html body.single:not(.single-review):not(.wp-admin) .go-article__hero {
  padding: 0 !important;
  margin-bottom: clamp(24px, 2.5vw, 34px) !important;
}

html body.single:not(.single-review):not(.wp-admin) .go-article__hero-inner {
  width: min(1180px, calc(100vw - 32px)) !important;
  max-width: min(1180px, calc(100vw - 32px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  text-align: left !important;
}

html body.single:not(.single-review):not(.wp-admin) .go-article__hero-inner > * {
  align-self: stretch !important;
  text-align: left !important;
}

html body.single:not(.single-review):not(.wp-admin) .go-article__eyebrow {
  display: inline-flex !important;
  align-self: flex-start !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 0 14px !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

html body.single:not(.single-review):not(.wp-admin) .go-article__title {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 18px !important;
  text-align: left !important;
}

html body.single:not(.single-review):not(.wp-admin) .go-article__deck {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 24px !important;
  text-align: left !important;
}

html body.single:not(.single-review):not(.wp-admin) .go-article__deck p {
  margin: 0 !important;
}

html body.single:not(.single-review):not(.wp-admin) .go-article__cover,
html body.single:not(.single-review):not(.wp-admin) .go-article__post-cover-meta {
  width: min(1180px, calc(100vw - 32px)) !important;
  max-width: min(1180px, calc(100vw - 32px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html body.single:not(.single-review):not(.wp-admin) .go-article__cover {
  margin-top: 0 !important;
}
