/* Campaign colors on the shared article layout; authored block colors take precedence. */
:is(.dose-coa-single#article-top, .editor-styles-wrapper .dose-coa-single) {
    --coa-blue: #8db6ff;
    --coa-surface: #0a1020;
    --coa-border: #34445e;
    --color-border: var(--coa-border);
    --colorGray: var(--coa-border);
    --color-head-text: #fff;
    --color-body-text: #dce6f5;
    --colorBlueMain: var(--coa-blue);
    --colorBlueDeep: var(--coa-blue);
    --dose-header-background: linear-gradient(110deg, #111d40, #08101f);
    --dose-header-navigation-hover: #bcd3ff;
    --wp--custom--toc--background: var(--coa-surface);
    --wp--custom--toc--foreground: var(--coa-blue);
    --wp--custom--toc--border: var(--coa-border);
    background: #050912;
    color: #fff;
    display: flow-root;
    isolation: isolate;
}
:is(.dose-coa-single#article-top, .editor-styles-wrapper .dose-coa-single) .backdrop_detail { background: #050912; pointer-events: none; }
:is(.dose-coa-single#article-top, .editor-styles-wrapper .dose-coa-single) .backdrop_detail::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #08152a99, #050912aa 55%, #050912); }
:is(.dose-coa-single#article-top, .editor-styles-wrapper .dose-coa-single) .content_detail:not(.has-background):not([style*="background"]) { background: #050912 !important; }
:is(.dose-coa-single#article-top, .editor-styles-wrapper .dose-coa-single) .blog_detail_head:not(.has-background):not([style*="background"]) { background: transparent !important; }
:is(.dose-coa-single#article-top, .editor-styles-wrapper .dose-coa-single) .blog_detail_head { margin-block: 0; padding-block-start: 48px; }
:is(.dose-coa-single#article-top, .editor-styles-wrapper .dose-coa-single) .col-layout { border-color: var(--coa-border); }
:is(.dose-coa-single#article-top, .editor-styles-wrapper .dose-coa-single) .wp-block-post-content {
    --dose-article-text: #fff;
    --dose-article-prose-text: #dce6f5;
    --dose-article-heading: var(--coa-blue);
    --dose-article-link: var(--coa-blue);
}
:is(.dose-coa-single#article-top, .editor-styles-wrapper .dose-coa-single) .wp-block-post-content blockquote:not(.has-text-color):not([style*="color"]) { color: var(--coa-blue); border-color: var(--coa-blue); }
:is(.dose-coa-single#article-top, .editor-styles-wrapper .dose-coa-single) .dose-article-share { --dose-share-foreground: #fff; --dose-share-accent: var(--coa-blue); }
:is(.dose-coa-single#article-top, .editor-styles-wrapper .dose-coa-single) .backtotop .wp-block-button__link:not(.has-text-color) { color: var(--coa-blue); }
:is(.dose-coa-single#article-top, .editor-styles-wrapper .dose-coa-single) :is(a, button):focus-visible { outline: 2px solid #bcd3ff; outline-offset: 2px; }

:is(.dose-coa-single#article-top, .editor-styles-wrapper .dose-coa-single) .dose-site-header:is(.active, .is-scrolled) { background: #0a1020 !important; }

/* A quiet track with a clear blue reading indicator under the header. */
:is(.dose-coa-single#article-top, .editor-styles-wrapper .dose-coa-single) .dose-site-header.revamp .pacman { height: 4px; margin: 0; padding: 0; }
:is(.dose-coa-single#article-top, .editor-styles-wrapper .dose-coa-single) .dose-site-header.revamp .pacman .dot_mask { height: 4px; background: #34445e; }
:is(.dose-coa-single#article-top, .editor-styles-wrapper .dose-coa-single) .dose-site-header.revamp .pacman::after { background: #8db6ff; border-radius: 0; }

/* Shared article controls adopt the campaign palette without changing their actions. */
:is(.dose-coa-single#article-top, .editor-styles-wrapper .dose-coa-single) {
    & :is(.dose-article-action-row, .sticky-share-side, .tagandshare) .dose-article-share svg {
        color: #fff;
        background: #174ba5;
        border: 1px solid #4679d5;
        border-radius: 50%;
    }
    & :is(.dose-article-action-row, .sticky-share-side, .tagandshare) .dose-article-share :is(a, button):is(:hover, :focus-visible) svg {
        color: #fff;
        background: #2766c9;
        border-color: #bcd3ff;
    }
    & :is(.share-set, .shareside) :is(h3, h6),
    & .dose-share-total,
    & .tagside a { color: var(--coa-blue); }
    & :is(.tagandshare, .dose-article-action-row) .line { background: var(--coa-border); }
    & .dose-share-set-composition:not(.is-header-attached) { background: transparent; }
    & .dose-google-source-card {
        background: #101b30;
        border-color: #34445e;
        border-radius: 0;
    }
    & .dose-google-source-card__copy div > strong { color: #fff; }
    & .dose-google-source-card__copy div > span { color: #dce6f5; }
    & :is(.dose-google-source, .dose-google-source-card__action):not(.wp-block-button),
    & .dose-google-source > .wp-block-button__link,
    & .dose-comments input[type="submit"] {
        color: #fff !important;
        background: #174ba5;
        border-color: #4679d5;
    }
    & :is(.dose-google-source, .dose-google-source-card__action):not(.wp-block-button):is(:hover, :focus-visible),
    & .dose-google-source > .wp-block-button__link:is(:hover, :focus-visible),
    & .dose-comments input[type="submit"]:is(:hover, :focus-visible) { background: #2766c9; color: #fff !important; }
    & .dose-sticky-actions :is(.dose-core-bookmark, .dose-core-vote__button),
    & :is(.up-to-list-d, .up-to-list-m) { color: var(--coa-blue); }
    & .dose-comments { --dose-comment-surface: #101b30; color: #dce6f5; }
    & .dose-comments a { color: var(--coa-blue); }
    & :is(.news, .editorial, .popular) :is(h2, h3, .wp-block-post-title) { color: #fff; }
    & :is(.news, .editorial, .popular) .txthead h2 { color: var(--coa-blue); background: none; -webkit-text-fill-color: currentColor; }
    & :is(.news, .editorial, .popular) .box_info :is(.author, .category, .category a) { color: var(--coa-blue); }
    & .content.revamp .editorial.revamp { background: #101b30; }
}

:is(.dose-coa-single#article-top, .editor-styles-wrapper .dose-coa-single) {
    & .tagandshare .tagside a { color: #8db6ff !important; }
    & .authorsection:not(.has-background):not([style*="background"]) { background: #101b30; }
    & .authorsection .box-author { border-color: #34445e; }
    & .authorsection :is(h3, .btn_readmore) { color: #8db6ff; }
    & .authorsection p { color: #dce6f5; }
    & header .btn_support { background: #174ba5 !important; color: #fff !important; border-color: #4679d5; }
    & header .btn_support:is(:hover, :focus-visible) { background: #2766c9 !important; color: #fff !important; }
}

/* The campaign palette stays consistent when the visitor selects dark mode. */
[data-theme="dark"] .dose-coa-single#article-top {
    & :is(.dose-google-source-card, .authorsection):not(.has-background):not([style*="background"]) { background: #101b30 !important; }
    & :is(a.dose-google-source, .dose-google-source-card__action):not(.wp-block-button) { background: #174ba5 !important; color: #fff !important; }
    & :is(a.dose-google-source, .dose-google-source-card__action):not(.wp-block-button):is(:hover, :focus-visible) { background: #2766c9 !important; }
}
