/* GO v85: move single share buttons below the featured image and remove extra wrapper backgrounds. */

body.single:not(.single-review):not(.wp-admin) :is(.go-article__hero-share--below-cover, .go-guide-share--below-hero, .go-gs-hero-share) {
  width: min(1120px, calc(100vw - 32px)) !important;
  margin: 14px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

body.single:not(.single-review):not(.wp-admin) :is(.go-article__hero-share--below-cover, .go-guide-share--below-hero, .go-gs-hero-share) :is(.go-article__share-list, .go-guide-share__list, .go-gs-share-list) {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

body.single:not(.single-review):not(.wp-admin) :is(.go-article__hero-share--below-cover, .go-guide-share--below-hero, .go-gs-hero-share) :is(.go-article__share-link, .go-guide-article__share-link, .go-gs-share-link) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  background: rgba(148, 163, 184, 0.06) !important;
  color: var(--go-mode-text, #0f1722) !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

body.newsx-dark-mode.single:not(.wp-admin) :is(.go-article__hero-share--below-cover, .go-guide-share--below-hero, .go-gs-hero-share) :is(.go-article__share-link, .go-guide-article__share-link, .go-gs-share-link),
html.dark body.single:not(.wp-admin) :is(.go-article__hero-share--below-cover, .go-guide-share--below-hero, .go-gs-hero-share) :is(.go-article__share-link, .go-guide-article__share-link, .go-gs-share-link),
html.go-root-dark-mode body.single:not(.wp-admin) :is(.go-article__hero-share--below-cover, .go-guide-share--below-hero, .go-gs-hero-share) :is(.go-article__share-link, .go-guide-article__share-link, .go-gs-share-link) {
  border-color: rgba(184, 197, 212, 0.16) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: #f5f7fb !important;
}

body.single:not(.single-review):not(.wp-admin) :is(.go-article__hero-share--below-cover, .go-guide-share--below-hero, .go-gs-hero-share) :is(.go-article__share-link, .go-guide-article__share-link, .go-gs-share-link):is(:hover, :focus-visible) {
  border-color: var(--go-mode-accent, #c7f000) !important;
  background: rgba(199, 240, 0, 0.08) !important;
  color: var(--go-mode-accent, #c7f000) !important;
  transform: translateY(-1px) !important;
}

/* Hide the old share placements on standard/news singles so only the below-cover version remains. */
body.single:not(.single-review):not(.wp-admin):is(.go-template-standard, .go-template-news) .go-article__meta-row > .go-article__share,
body.single:not(.single-review):not(.wp-admin):is(.go-template-standard, .go-template-news) .go-article__post-cover-meta > .go-article__meta-row > .go-article__share {
  display: none !important;
}

/* Keep the meta block clean below the cover. */
body.single:not(.single-review):not(.wp-admin):is(.go-template-standard, .go-template-news) .go-article__post-cover-meta {
  padding-top: 8px !important;
}

/* Remove stray wrapper backgrounds around the share row and figure area on light mode. */
body.single:not(.single-review):not(.wp-admin):is(.go-template-standard, .go-template-news) :is(.go-article__cover, .go-editorial-cover, .go-article__hero-share--below-cover, .go-article__hero-share--below-cover-standard) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* On the Games CPT, move sharing out of the sidebar and place it below the hero. */
body.single-games:not(.wp-admin) .go-gs-panel--share {
  display: none !important;
}

body.single-games:not(.wp-admin) .go-gs-hero-share {
  width: min(1180px, calc(100vw - 32px)) !important;
  margin: 14px auto 8px !important;
}

body.single-games:not(.wp-admin) .go-gs-share-list {
  gap: 8px !important;
}

@media (max-width: 760px) {
  body.single:not(.single-review):not(.wp-admin) :is(.go-article__hero-share--below-cover, .go-guide-share--below-hero, .go-gs-hero-share) {
    width: min(100% - 24px, 1120px) !important;
    margin-top: 12px !important;
  }
}
