@layer wn-blog-standard {
  html[data-wn-blog] #page-main .client-tools,
  html[data-wn-blog] #page-main .client-tools :where(*:not(svg, svg *, math, math *)),
  html[data-wn-blog] #page-main .client-tools ::placeholder,
  html[data-wn-blog]:has([data-sandbox-demo]) :is(.wn-citation-overlay, .wn-citation-overlay *):not(svg, svg *) {
    font-family: "TeX Gyre Pagella", Georgia, serif !important;
  }

  html[data-wn-blog][data-wn-theme="dark"] .wn-creation-service.wn-service-card {
    background: var(--blog-surface) !important;
    border-color: var(--blog-line) !important;
    color: var(--blog-ink) !important;
  }
  html[data-wn-blog][data-wn-theme="dark"] .calendly-inline-widget,
  html[data-wn-blog][data-wn-theme="dark"] .calendly-inline-widget iframe {
    background-color: var(--blog-surface) !important;
    color-scheme: dark;
  }
  html[data-wn-blog] .calendly-inline-widget {
    min-width: 0 !important;
  }
  /* Keep an active cross-origin booking in place when the visitor switches theme. */
  html[data-wn-blog] .calendly-inline-widget[data-invert-booking] iframe {
    filter: invert(90%) hue-rotate(180deg);
  }
}

/* Public archive, editorial and guide components use the active site palette. */
@media screen and (forced-colors: none) {
  @layer wn-blog-standard {
    html[data-wn-theme="dark"]:not(:has(body.wn-shop-20261116)) {
      & :is(.skip, .skip-link, .wn-listing-art, .wn-mobile-service-actions, .source-equation) {
        background: var(--blog-surface) !important;
        border-color: var(--blog-line) !important;
      }
      & :is(.blog-grid, .wn-topic-copy, .wn-manifesto-trial) {
        background: var(--blog-panel) !important;
        border-color: var(--blog-line) !important;
        box-shadow: none !important;
      }
      & :is(.page-numbers, .wn-journal-shop-action, .wn-service-secondary) {
        background: var(--blog-button) !important;
        border-color: var(--blog-control-line) !important;
        box-shadow: none !important;
      }
      & :is(.page-numbers, .wn-journal-shop-action, .wn-service-secondary):is(:hover,:focus-visible,:active),
      & .page-numbers:is(.active,[aria-current="page"]) {
        background: #594356 !important;
        border-color: var(--blog-link) !important;
      }
      & :is(.wrap-container, .article-head, .wn-manifesto-native-head, .blog-grid footer,
        .wn-journal-categories ul, .wn-service-heading, .wn-mobile-service-actions a,
        #sandbox-frame, #wn-draft-demo-frame, #wn-library-demo-frame, #comments, #comments .comment) {
        border-color: var(--blog-line) !important;
      }
      & :is(.skip-link,.skip,.wn-shell-footer p a) { color: var(--blog-link) !important; }
      & .wn-shell-footer p { color: var(--blog-muted) !important; }
      & .wn-mobile-service-actions a:is(:hover,:focus-visible,:active) { background: var(--blog-button) !important; }
      & :is(.wn-wordmark, .wn-creation-service [data-brand-word]) { color: inherit !important; }
      & :is(.wn-proof-bracket, .wn-dos-new, .tag-wrap a, .share .title, .share a, #comments a) {
        color: var(--blog-link) !important;
      }
      & :is(.share a, .tag-wrap a, #comments a):hover { color: var(--blog-hover) !important; }
      & :is(.wn-dos-old, .lesson-search-prompt, .lesson-search-prompt span) { color: var(--blog-muted) !important; }
      & body.search :is(.blog-grid .plus,.icon-shape i)::before { color: var(--blog-link) !important; }
      & body.search .blog-grid h3 a { color: var(--blog-link) !important; }
      & body.search .blog-grid h3 a:hover { color: var(--blog-hover) !important; }
      & body.search :is(.blog-grid .content p, .blog-grid footer, .blog-grid footer strong, .blog-grid footer .data, .page-error-content .subtitle) { color: var(--blog-muted) !important; }
      & body.search .page-error-content h1 { color: var(--blog-ink) !important; }
      & #comments :is(h3,h4,.comment-content p) { color: var(--blog-ink) !important; }
      & .journey-finish::before { background: var(--blog-line) !important; }
      & .wn-journal-wheel::after {
        background-image: repeating-linear-gradient(var(--blog-line) 0 1px, transparent 1px 6px) !important;
      }
      & body:not(.wn-shop-20261116) .wn-payments-mark {
        background: var(--blog-surface) !important;
        border-color: var(--blog-line) !important;
      }
      & body:not(.wn-shop-20261116) :is([data-payment-method="link"],[data-payment-method="revolut_pay"],
        [data-payment-method="eps"],[data-payment-method="ideal"],[data-payment-method="p24"]) .wn-payments-mark img {
        background: #dedbd8;
        border-radius: 2px;
      }
      & #content .wn-service-heading::before,
      & .wn-creation-service :is(a.wn-service-secondary,a.wn-service-button,p > a[href$="/signup"]:only-child)::before,
      & body.page-id-5669818 .entry-content a[href$="/shop"]::before {
        mask: var(--service-icon) center / contain no-repeat;
        background: currentColor !important;
      }
    }
  }
}
