/* Explicit component colors avoid inheriting article-link text fill on a CTA. */
body.single-post.go-verge #primary .go-channel-invite {
  --od-invite-surface: #f1e9fb;
  --od-invite-ink: #241b30;
  --od-invite-muted: #51445e;
  --od-invite-rule: #d2bedf;
  --od-invite-button: #6500d9;
  --od-invite-button-hover: #5000ad;
  --od-invite-button-ink: #fff;
  --od-invite-accent: #5d00c8;
}
:is(html[data-theme="dark"], html[data-theme="dark-mode"]) body.single-post.go-verge #primary .go-channel-invite,
body.single-post.go-verge.go-dark-mode #primary .go-channel-invite {
  --od-invite-surface: #21192d;
  --od-invite-ink: #f5efff;
  --od-invite-muted: #d7cbe6;
  --od-invite-rule: #705587;
  --od-invite-button: #bb92ff;
  --od-invite-button-hover: #d2b3ff;
  --od-invite-button-ink: #1e1033;
  --od-invite-accent: #d2b3ff;
}
body.single-post.go-verge.go-single-clean #primary .entry-content.go-single__content .go-channel-invite {
  background: var(--od-invite-surface) !important;
  border: 1px solid var(--od-invite-rule) !important;
  border-radius: 8px !important;
  padding: 18px !important;
  color: var(--od-invite-ink) !important;
  -webkit-text-fill-color: currentColor !important;
}
body.single-post.go-verge.go-single-clean #primary .entry-content.go-single__content .go-channel-invite .go-channel-invite__question,
body.single-post.go-verge.go-single-clean #primary .entry-content.go-single__content .go-channel-invite .go-channel-invite__description {
  color: var(--od-invite-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
}
body.single-post.go-verge.go-single-clean #primary .entry-content.go-single__content .go-channel-invite .go-channel-invite__lead {
  color: var(--od-invite-muted) !important;
  -webkit-text-fill-color: currentColor !important;
}
body.single-post.go-verge.go-single-clean #primary .entry-content.go-single__content .go-channel-invite--channel a.go-channel-invite__link,
body.single-post.go-verge.go-single-clean #primary .entry-content.go-single__content .go-channel-invite--channel a.go-channel-invite__link:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  min-height: 44px !important;
  padding: 10px 14px !important;
  background: var(--od-invite-button) !important;
  color: var(--od-invite-button-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  font: 650 15px/1.4 "Source Sans 3", Arial, sans-serif !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-indent: 0 !important;
  text-decoration: none !important;
}
body.single-post.go-verge.go-single-clean #primary .entry-content.go-single__content .go-channel-invite--channel a.go-channel-invite__link:is(:hover,:focus-visible) {
  background: var(--od-invite-button-hover) !important;
  color: var(--od-invite-button-ink) !important;
  -webkit-text-fill-color: currentColor !important;
}
body.single-post.go-verge.go-single-clean #primary .entry-content.go-single__content .go-channel-invite--channel a.go-channel-invite__link .go-channel-invite__glyph {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  flex: 0 0 19px !important;
  width: 19px !important;
  height: 19px !important;
}
body.single-post.go-verge.go-single-clean #primary .entry-content.go-single__content .go-channel-invite--section a.go-channel-invite__link {
  color: var(--od-invite-accent) !important;
  -webkit-text-fill-color: currentColor !important;
}
body.single-post.go-verge.go-single-clean #primary .entry-content.go-single__content .go-channel-invite a:focus-visible {
  outline: 2px solid var(--od-invite-accent) !important;
  outline-offset: 4px !important;
}
/* Stretch only the ad's travel container. Editorial modules remain in flow and
   the last child sticks without covering any following recommendation. */
@media (min-width: 1101px) {
  body.single-post.go-verge #primary .go-single__layout:has(.od-ad--yield-sticky:not([data-od-yield-stick-test])),
  html[data-od-yield-arm="b"] body.single-post.go-verge #primary .go-single__layout:has(.od-ad--yield-sticky[data-od-yield-stick-test]) {
    display: grid !important;
    grid-template-columns: minmax(0, 740px) 300px !important;
    align-items: stretch !important;
  }
  body.single-post.go-verge #primary .go-single__layout:has(.od-ad--yield-sticky:not([data-od-yield-stick-test])) > .go-single__main,
  html[data-od-yield-arm="b"] body.single-post.go-verge #primary .go-single__layout:has(.od-ad--yield-sticky[data-od-yield-stick-test]) > .go-single__main {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
  }
  body.single-post.go-verge #primary .go-single__layout > .go-article-sidebar:has(.od-ad--yield-sticky:not([data-od-yield-stick-test])),
  html[data-od-yield-arm="b"] body.single-post.go-verge #primary .go-single__layout > .go-article-sidebar:has(.od-ad--yield-sticky[data-od-yield-stick-test]) {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    box-sizing: border-box;
    inline-size: 300px !important;
    max-inline-size: 300px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    height: auto !important;
    overflow: visible !important;
  }
  body.single-post.go-verge #primary .go-article-sidebar:has(.od-ad--yield-sticky:not([data-od-yield-stick-test])) > .go-article-sidebar__track,
  html[data-od-yield-arm="b"] body.single-post.go-verge #primary .go-article-sidebar:has(.od-ad--yield-sticky[data-od-yield-stick-test]) > .go-article-sidebar__track {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  body.single-post.go-verge #primary .go-article-sidebar:has(.od-ad--yield-sticky:not([data-od-yield-stick-test])) > .go-article-sidebar__track > *,
  html[data-od-yield-arm="b"] body.single-post.go-verge #primary .go-article-sidebar:has(.od-ad--yield-sticky[data-od-yield-stick-test]) > .go-article-sidebar__track > * {
    flex-shrink: 0;
  }
}
