/* Final visual corrections for header/offcanvas, single widgets, tags and share buttons. */

:root {
  --go-current-accent: #2800f0;
  --go-current-lime: #c7f000;
  --go-current-bg: #f6f7fb;
  --go-current-surface: #ffffff;
  --go-current-surface-soft: #f1f3f7;
  --go-current-text: #10131b;
  --go-current-muted: #5d6470;
  --go-current-line: rgba(16, 19, 27, 0.13);
}

body.newsx-dark-mode,
body.dark,
body.dark-mode,
body.is-dark-theme,
html.dark body,
html.go-root-dark-mode body,
html[data-theme="dark"] body {
  --go-current-accent: #c7f000;
  --go-current-bg: #181818;
  --go-current-surface: #080b11;
  --go-current-surface-soft: #10141c;
  --go-current-text: #f7f8fb;
  --go-current-muted: #b9c1ce;
  --go-current-line: rgba(255, 255, 255, 0.14);
}

html:not(.dark):not(.go-root-dark-mode):not([class*="dark"]):not([data-theme="dark"]) body.single:not(.wp-admin):not(.dark):not(.dark-mode):not(.is-dark-theme):not(.newsx-dark-mode):not([data-theme="dark"]),
html:not(.dark):not(.go-root-dark-mode):not([class*="dark"]):not([data-theme="dark"]) body.single-post:not(.wp-admin):not(.dark):not(.dark-mode):not(.is-dark-theme):not(.newsx-dark-mode):not([data-theme="dark"]) {
  --go-mode-bg: #f6f7fb;
  --go-mode-text: #0f141d;
  --go-mode-muted: #586172;
  --go-mode-line: rgba(15, 20, 29, 0.13);
  --go-mode-line-strong: rgba(15, 20, 29, 0.22);
  --go-mode-accent: #2800f0;
  --go-article-text: #0f141d;
  --go-article-soft: #586172;
  --go-article-muted: #586172;
  --go-article-line: rgba(15, 20, 29, 0.13);
  --go-single-text: #0f141d;
  --go-single-muted: #586172;
  --go-single-line: rgba(15, 20, 29, 0.13);
  --go-current-accent: #2800f0;
  --go-current-bg: #f6f7fb;
  --go-current-surface: #ffffff;
  --go-current-surface-soft: #f1f3f7;
  --go-current-text: #0f141d;
  --go-current-muted: #586172;
  --go-current-line: rgba(15, 20, 29, 0.13);
  color: var(--go-current-text) !important;
}

html:not(.dark):not(.go-root-dark-mode):not([class*="dark"]):not([data-theme="dark"]) body.single:not(.wp-admin):not(.dark):not(.dark-mode):not(.is-dark-theme):not(.newsx-dark-mode):not([data-theme="dark"]) :is(
  .go-article,
  .go-article__shell,
  .go-article__post,
  .go-article__main,
  .go-article__content,
  .go-article__content p,
  .go-article__content li,
  .go-article__content blockquote,
  .go-article__title,
  .go-article__deck,
  .go-article__deck p,
  .go-article__meta,
  .go-article__post-cover-description,
  .go-article__footer,
  .go-article__footer-meta,
  .go-single-author-card,
  .go-single-author-card p,
  .go-v47-sidebar-latest,
  .go-v47-sidebar-latest__head,
  .go-v47-sidebar-latest__copy,
  .go-v47-sidebar-latest__copy :is(h2, h3, h4, p),
  .newsx-post-content,
  .newsx-post-content p,
  .newsx-post-content li,
  .newsx-post-content blockquote,
  .newsx-single-content-wrap,
  .newsx-single-wrap,
  .entry-content,
  .entry-content p,
  .entry-content li
) {
  color: var(--go-current-text) !important;
}

html:not(.dark):not(.go-root-dark-mode):not([class*="dark"]):not([data-theme="dark"]) body.single:not(.wp-admin):not(.dark):not(.dark-mode):not(.is-dark-theme):not(.newsx-dark-mode):not([data-theme="dark"]) :is(
  .go-article__meta,
  .go-article__meta a,
  .go-article__meta time,
  .go-article__deck,
  .go-article__deck p,
  .go-article__post-cover-description,
  .go-article figcaption,
  .wp-caption-text,
  .go-v47-sidebar-latest__copy time,
  .newsx-post-content figcaption,
  .newsx-post-content .wp-caption-text,
  .entry-content figcaption,
  .entry-content .wp-caption-text
) {
  color: var(--go-current-muted) !important;
}

html:not(.dark):not(.go-root-dark-mode):not([class*="dark"]):not([data-theme="dark"]) body.single:not(.wp-admin):not(.dark):not(.dark-mode):not(.is-dark-theme):not(.newsx-dark-mode):not([data-theme="dark"]) :is(
  .go-article__title,
  .go-article__content :is(h1, h2, h3, h4, h5, h6),
  .newsx-post-content :is(h1, h2, h3, h4, h5, h6),
  .entry-content :is(h1, h2, h3, h4, h5, h6),
  .go-single-author-card__name,
  .go-article__side-title,
  .go-article__related-title,
  .go-v47-sidebar-latest__copy :is(h2, h3, h4, .go-v47-sidebar-latest__title)
) {
  color: var(--go-current-text) !important;
}

html:not(.dark):not(.go-root-dark-mode):not([class*="dark"]):not([data-theme="dark"]) body.single:not(.wp-admin):not(.dark):not(.dark-mode):not(.is-dark-theme):not(.newsx-dark-mode):not([data-theme="dark"]) :is(
  .go-article__content a,
  .newsx-post-content a,
  .entry-content a,
  .go-article__breadcrumbs a,
  .go-single-author-card__link
) {
  color: var(--go-current-accent) !important;
}

html:not(.dark):not(.go-root-dark-mode):not([class*="dark"]):not([data-theme="dark"]) body.single:not(.wp-admin):not(.dark):not(.dark-mode):not(.is-dark-theme):not(.newsx-dark-mode):not([data-theme="dark"]) :is(
  .go-article__hero-visual,
  .go-article__cover,
  .go-editorial-cover,
  .go-article__related-media,
  .go-single-more-site__media,
  .go-single-most-read__media
) :is(h1, h2, h3, h4, strong, span, p, a) {
  color: #ffffff !important;
}

body:not(.wp-admin) .go-hdr2-offcanvas-panel {
  transition: transform 180ms cubic-bezier(0.2, 0.75, 0.16, 1) !important;
  will-change: transform;
}

body:not(.wp-admin) .go-hdr2-offcanvas-backdrop {
  transition: opacity 140ms ease !important;
}

body:not(.wp-admin) .go-hdr2-offcanvas-layer {
  transition: opacity 140ms ease, visibility 0s linear 140ms !important;
}

body:not(.wp-admin) .go-hdr2-offcanvas-layer.is-open {
  transition-delay: 0s !important;
}

body.single:not(.wp-admin) .go-v47-sidebar-latest {
  background: transparent !important;
  color: var(--go-current-text) !important;
}

body.single:not(.wp-admin) .go-v47-sidebar-latest__head {
  color: var(--go-current-text) !important;
}

body.single:not(.wp-admin) .go-v47-sidebar-latest__list > li > a,
body.go-template-review:not(.wp-admin) .go-review-single-decision-sidebar .go-v47-sidebar-latest__list > li > a,
body.single-review:not(.wp-admin) .go-review-single-decision-sidebar .go-v47-sidebar-latest__list > li > a {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  padding: 16px 0 !important;
}

body.single:not(.wp-admin) .go-v47-sidebar-latest__rank,
body.go-template-review:not(.wp-admin) .go-review-single-decision-sidebar .go-v47-sidebar-latest__rank,
body.single-review:not(.wp-admin) .go-review-single-decision-sidebar .go-v47-sidebar-latest__rank {
  display: none !important;
}

body.single:not(.wp-admin) .go-v47-sidebar-latest__list > li + li > a,
body.go-template-review:not(.wp-admin) .go-review-single-decision-sidebar .go-v47-sidebar-latest__list > li + li > a,
body.single-review:not(.wp-admin) .go-review-single-decision-sidebar .go-v47-sidebar-latest__list > li + li > a {
  border-top: 1px solid var(--go-current-line) !important;
}

body.single:not(.wp-admin) .go-v47-sidebar-latest__copy time,
body.single:not(.wp-admin) .go-v47-sidebar-latest__copy .go-v47-sidebar-latest__time {
  color: var(--go-current-muted) !important;
}

body.single:not(.wp-admin) .go-v47-sidebar-latest__copy :is(h3, h4, .go-v47-sidebar-latest__title) {
  color: var(--go-current-text) !important;
}

body.single:not(.wp-admin) :is(.go-article__tags, .go-article__tags-wrap, .go-article__footer-tags, .go-article__footer-meta, .go-single-tags, .newsx-tags, .post-tags, .tag-links, .newsx-post-sources, .post-source, .source-tag, .go-single-source-cluster) {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

body.single:not(.wp-admin) :is(.go-article__tags, .go-article__tags-wrap, .go-article__footer-tags, .go-article__footer-meta, .go-single-tags, .newsx-post-sources, .post-source, .source-tag, .go-single-source-cluster) {
  border: 0 !important;
  padding: 0 !important;
}

body.single:not(.wp-admin) :is(.newsx-post-sources, .post-source, .source-tag) {
  margin-inline: 0 !important;
}

body.single:not(.wp-admin) .go-single-source-heading {
  color: var(--go-current-accent) !important;
}

body.single:not(.wp-admin) :is(.go-article__tags a, .go-single-tags a, .newsx-tags a, .post-tags a, .tag-links a, .tagcloud a, .go-single-source-pill) {
  background: transparent !important;
  color: var(--go-current-accent) !important;
  border: 1px solid color-mix(in srgb, var(--go-current-accent) 34%, transparent) !important;
  box-shadow: none !important;
}

body.single:not(.wp-admin) :is(.go-article__tags a, .go-single-tags a, .newsx-tags a, .post-tags a, .tag-links a, .tagcloud a, .go-single-source-pill):hover {
  background: color-mix(in srgb, var(--go-current-accent) 10%, transparent) !important;
}

body.single:not(.wp-admin) :is(.go-article__meta-row, .go-article__post-cover-meta, .go-single-share-row) {
  overflow: visible !important;
}

body.single:not(.wp-admin) .go-article__post-cover-meta {
  justify-content: flex-start !important;
  gap: 14px !important;
  padding-right: clamp(36px, 4vw, 72px) !important;
}

body.single:not(.wp-admin) :is(.go-article__share, .newsx-post-sharing, .newsx-static-sharing) {
  flex: 0 1 auto !important;
  margin-left: 0 !important;
  max-width: calc(100vw - 48px) !important;
  min-width: 0 !important;
  overflow: visible !important;
}

body.single:not(.wp-admin) :is(.go-article__share-list, .newsx-post-sharing .sharing-icons, .newsx-static-sharing .sharing-icons, .newsx-post-share-icons) {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  max-width: 100% !important;
  overflow: visible !important;
}

body.single:not(.wp-admin) .newsx-post-sharing {
  transform: translateX(-10px);
}

body.single:not(.wp-admin) :is(.go-article__share-link, .newsx-post-sharing .sharing-icons a, .newsx-static-sharing .sharing-icons a) {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-color: var(--go-current-line) !important;
  color: var(--go-current-text) !important;
  background: transparent !important;
}

@media (max-width: 720px) {
  body.single:not(.wp-admin) .go-article__post-cover-meta {
    padding-right: 0 !important;
  }

  body.single:not(.wp-admin) .newsx-post-sharing {
    transform: none;
  }
}
