/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * Shared Heritage surfaces for explicitly selected dark themes.
 */
@media screen {
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.hd-page, .hd-theme),
    :is(.hd-page, .hd-theme):is([data-theme="dark"], .theme-dark, .dark-theme) {
        --hd-bg: #101b16;
        --hd-surface: #18291f;
        --hd-sand: #304738;
        --hd-sand-strong: #39543f;
        --hd-ink: #f3eee3;
        --hd-muted: #c3c7bc;
        --hd-gold: #dfc58b;
        --hd-border: #526b59;
        --hd-cream: #20372a;
        --hd-charcoal: #f3eee3;
        --hd-text-muted: #c3c7bc;
        --hd-sage: #304b39;
        --hd-sage-strong: #b8d7bc;
        --hd-gold-text: #dfc58b;
        --hd-line: #526b59;
        color-scheme: dark;
    }
    :is(html[data-theme="dark"], html.theme-dark, html.dark-theme) body:has(.hd-page),
    body:is([data-theme="dark"], .theme-dark, .dark-theme):has(.hd-page) {
        background: #101b16 !important;
    }
    :is(html[data-theme="dark"], html.theme-dark, html.dark-theme) body:has(.hpl-page),
    body:is([data-theme="dark"], .theme-dark, .dark-theme):has(.hpl-page) {
        background: #101b16 !important;
    }
    :is(html[data-theme="dark"], html.theme-dark, html.dark-theme) body:has(.hpl-page) :is(#wrapper, #content-wrapper, #content-fluid),
    body:is([data-theme="dark"], .theme-dark, .dark-theme):has(.hpl-page) :is(#wrapper, #content-wrapper, #content-fluid) {
        background: #101b16 !important;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) .hpl-page :is(.hpl-section--cream, .hpl-mobile-actions) {
        background-color: #20372a !important;
        border-color: #526b59 !important;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) .hpl-page :is(.hpl-offer, .hpl-format-example) {
        color: #f3eee3 !important;
        background-color: #18291f !important;
        border-color: #526b59 !important;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) .hpl-page :is(p, li, dt, dd, .hpl-offer-price, .hpl-purchase-guide-title, .hpl-purchase-next strong) {
        color: #f3eee3 !important;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) .hpl-page .hpl-eyebrow { color: #dfc58b !important; }
    :is([data-theme="dark"], .theme-dark, .dark-theme) .hpl-page a:not(.hpl-button):not(.btn):not(.hd-btn) { color: #dfc58b !important; }
    :is([data-theme="dark"], .theme-dark, .dark-theme) .hpl-page :is(.hpl-button--outline, .hpl-button--cream, .hpl-hero-seal) {
        color: #f3eee3 !important;
        background-color: #304738 !important;
        border-color: #819980 !important;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) .hpl-page .hpl-report-icon { color: #c9f2d0 !important; }
    :is([data-theme="dark"], .theme-dark, .dark-theme) .hpl-page :is(a, button, summary, [tabindex]):focus-visible {
        outline: 3px solid #dfc58b !important;
        outline-offset: 3px;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) .hpl-page .hpl-format-example pre {
        color: #f3eee3 !important;
        background-color: #20372a !important;
        border-color: #526b59 !important;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.hd-page, .hd-theme) :is(h1, h2, h3, h4, h5, h6, .hd-section-title):not([style*="background"] *),
    :is(.hd-page, .hd-theme):is([data-theme="dark"], .theme-dark, .dark-theme) :is(h1, h2, h3, h4, h5, h6, .hd-section-title):not([style*="background"] *) {
        color: #f3eee3 !important;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.hd-page, .hd-theme) :is(.hd-link, .hd-pill--sage),
    :is(.hd-page, .hd-theme):is([data-theme="dark"], .theme-dark, .dark-theme) :is(.hd-link, .hd-pill--sage) {
        color: #dfc58b !important;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.card, .hd-card, .hd-panel, .hwp-panel, .hao-panel, .haw-panel, .hgl-panel, .community-card, .dbc-card, .g25-card, .g25-tool-card, .g25w-data-card, .service-card, .stat-card, .section-card, .info-card):not([style*="background"]) {
        color: #f3eee3 !important;
        background-color: #18291f !important;
        border-color: #526b59 !important;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.card, .hd-card, .hd-panel, .hwp-panel, .hao-panel, .haw-panel, .hgl-panel, .community-card, .dbc-card, .g25-card, .g25-tool-card, .g25w-data-card, .service-card, .stat-card, .section-card, .info-card):where(:not([style*="background"])) :is(h1, h2, h3, h4, h5, h6, p, dt, dd, .card-title, [class$="-stat-value"], [class$="-stat-number"]) {
        color: #f3eee3 !important;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.card, .hd-card, .hd-panel, .hwp-panel, .hao-panel, .haw-panel, .hgl-panel, .community-card, .dbc-card, .g25-card, .g25-tool-card, .g25w-data-card, .service-card, .stat-card, .section-card, .info-card):where(:not([style*="background"])) :is(small, time, .text-muted, [class$="-subtitle"], [class$="-description"]) {
        color: #c3c7bc !important;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.card-header, .card-footer, .community-card-header, .community-card-footer) {
        color: #f3eee3 !important;
        background-color: #304738 !important;
        border-color: #526b59 !important;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) .hw-page :is(.g25-card-title, .pub-card-title, .author-card-name, .calculator-title, .explorer-calc-title, .academy-module-title, .dbc-section-title, .dbc-category-title, .pub-section-title, .academy-section-title) {
        color: #f3eee3 !important;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) .hw-page :is(.dbc-card-header, .umf-card-header, .g25-card-header, .pub-card-header, .pub-sidebar-header, .g25-sidebar-header) {
        color: #f3eee3 !important;
        background-color: #304738 !important;
        border-color: #526b59 !important;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) .hw-page :is(.g25-card-badge, .pub-card-badge, .g25-filter-tag, .pub-filter-tag, .notif-status--unread, .notif-unread-badge, .era-badge, .g25-era-badge):not([style*="background"]) {
        color: #e9eee6 !important;
        background-color: #344b3c !important;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.hd-btn--primary, .btn-primary, .btn-success) {
        color: #18291f !important;
        background-color: #dfc58b !important;
        border-color: #dfc58b !important;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.hd-btn--secondary, .btn-secondary, .btn-outline-primary, .btn-outline-secondary) {
        color: #f3eee3 !important;
        background-color: #304738 !important;
        border-color: #819980 !important;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.hd-btn, .btn, .hd-card, .card a):focus-visible {
        outline: 3px solid #dfc58b !important;
        outline-offset: 3px;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.card, .hd-card, .hd-panel, .hwp-panel, .hao-panel, .haw-panel, .hgl-panel, .community-card, .dbc-card, .g25-card, .g25-tool-card, .g25w-data-card, .service-card, .stat-card, .section-card, .info-card):where(:not([style*="background"])) a:not(.btn):not(.hd-btn) { color: #dfc58b !important; }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.card, .hd-card, .hd-panel, .hwp-panel, .hao-panel, .haw-panel, .hgl-panel, .community-card, .dbc-card, .g25-card, .g25-tool-card, .g25w-data-card, .service-card, .stat-card, .section-card, .info-card):where(:not([style*="background"])) :is(.badge, .g25-card-badge, .community-card-badge):where(:not([style*="background"])) { color: #e9eee6 !important; background-color: #344b3c !important; border-color: #819980 !important; }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.card, .hd-card, .hd-panel, .hwp-panel, .hao-panel, .haw-panel, .hgl-panel, .community-card, .dbc-card, .g25-card, .g25-tool-card, .g25w-data-card, .service-card, .stat-card, .section-card, .info-card):where(:not([style*="background"])) .badge-success { color: #c9f2d0 !important; background-color: #244b35 !important; }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.card, .hd-card, .hd-panel, .hwp-panel, .hao-panel, .haw-panel, .hgl-panel, .community-card, .dbc-card, .g25-card, .g25-tool-card, .g25w-data-card, .service-card, .stat-card, .section-card, .info-card):where(:not([style*="background"])) .badge-warning { color: #ffe2a3 !important; background-color: #514125 !important; }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.card, .hd-card, .hd-panel, .hwp-panel, .hao-panel, .haw-panel, .hgl-panel, .community-card, .dbc-card, .g25-card, .g25-tool-card, .g25w-data-card, .service-card, .stat-card, .section-card, .info-card):where(:not([style*="background"])) .badge-danger { color: #ffd1c8 !important; background-color: #59352e !important; }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.card, .hd-card, .hd-panel, .hwp-panel, .hao-panel, .haw-panel, .hgl-panel, .community-card, .dbc-card, .g25-card, .g25-tool-card, .g25w-data-card, .service-card, .stat-card, .section-card, .info-card):where(:not([style*="background"])) :is(.close, .btn-close) { color: #f3eee3 !important; opacity: 1; text-shadow: none; }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.card, .hd-card, .hd-panel, .hwp-panel, .hao-panel, .haw-panel, .hgl-panel, .community-card, .dbc-card, .g25-card, .g25-tool-card, .g25w-data-card, .service-card, .stat-card, .section-card, .info-card):where(:not([style*="background"])) :is(.alert, .alert-info) { color: #e9eee6 !important; background-color: #234550 !important; border-color: #819980 !important; }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.card, .hd-card, .hd-panel, .hwp-panel, .hao-panel, .haw-panel, .hgl-panel, .community-card, .dbc-card, .g25-card, .g25-tool-card, .g25w-data-card, .service-card, .stat-card, .section-card, .info-card):where(:not([style*="background"])) .alert-warning { color: #ffe2a3 !important; background-color: #514125 !important; }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.card, .hd-card, .hd-panel, .hwp-panel, .hao-panel, .haw-panel, .hgl-panel, .community-card, .dbc-card, .g25-card, .g25-tool-card, .g25w-data-card, .service-card, .stat-card, .section-card, .info-card):where(:not([style*="background"])) .alert-danger { color: #ffd1c8 !important; background-color: #59352e !important; }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.card, .hd-card, .hd-panel, .hwp-panel, .hao-panel, .haw-panel, .hgl-panel, .community-card, .dbc-card, .g25-card, .g25-tool-card, .g25w-data-card, .service-card, .stat-card, .section-card, .info-card):where(:not([style*="background"])) .alert-success { color: #c9f2d0 !important; background-color: #244b35 !important; }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.card, .hd-card, .hd-panel, .hwp-panel, .hao-panel, .haw-panel, .hgl-panel, .community-card, .dbc-card, .g25-card, .g25-tool-card, .g25w-data-card, .service-card, .stat-card, .section-card, .info-card):where(:not([style*="background"])) .text-danger { color: #ffd1c8 !important; }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.card, .hd-card, .hd-panel, .hwp-panel, .hao-panel, .haw-panel, .hgl-panel, .community-card, .dbc-card, .g25-card, .g25-tool-card, .g25w-data-card, .service-card, .stat-card, .section-card, .info-card):where(:not([style*="background"])) .text-success { color: #c9f2d0 !important; }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.card, .hd-card, .hd-panel, .hwp-panel, .hao-panel, .haw-panel, .hgl-panel, .community-card, .dbc-card, .g25-card, .g25-tool-card, .g25w-data-card, .service-card, .stat-card, .section-card, .info-card):where(:not([style*="background"])) .text-warning { color: #ffe2a3 !important; }
    :is([data-theme="dark"], .theme-dark, .dark-theme) :is(.card, .hd-card, .hd-panel, .hwp-panel, .hao-panel, .haw-panel, .hgl-panel, .community-card, .dbc-card, .g25-card, .g25-tool-card, .g25w-data-card, .service-card, .stat-card, .section-card, .info-card):where(:not([style*="background"])) .text-info { color: #ccecf6 !important; }
}
