/* Shared palettes: the original theme deliberately keeps the existing styles. */
.theme-toggle {
    color: var(--gomyid-ink);
    border: 1px solid var(--gomyid-border);
}
.theme-toggle:hover, .theme-toggle:focus-visible {
    color: var(--gomyid-blue);
    border-color: currentColor;
}
.theme-option { display: flex; align-items: center; gap: .65rem; }
.theme-swatch { width: 1rem; height: 1rem; border: 1px solid #888; border-radius: 50%; flex-shrink: 0; }
.theme-swatch-original { background: #1f67e8; }
.theme-swatch-black { background: #000; }
.theme-swatch-light { background: #fff; }
.theme-selected { visibility: hidden; }
.theme-option.active .theme-selected { visibility: visible; }

:root[data-site-theme="black"] {
    color-scheme: dark;
    --gomyid-navy: #f2f2f2;
    --gomyid-ink: #eeeeee;
    --gomyid-muted: #b9b9b9;
    --gomyid-border: #343434;
    --gomyid-sky: #101010;
    --gomyid-soft: #101010;
    --gomyid-blue: #86b7ff;
    --gomyid-blue-dark: #aacdff;
    --gomyid-cyan: #a8caff;
    --bs-body-color: #eeeeee;
    --bs-body-color-rgb: 238, 238, 238;
    --bs-body-bg: #000;
    --bs-body-bg-rgb: 0, 0, 0;
    --bs-secondary-color: #b9b9b9;
    --bs-secondary-color-rgb: 185, 185, 185;
    --bs-secondary-bg: #181818;
    --bs-tertiary-bg: #101010;
    --bs-tertiary-bg-rgb: 16, 16, 16;
    --bs-border-color: #343434;
    --bs-primary-rgb: 134, 183, 255;
    --bs-link-color: #86b7ff;
    --bs-link-color-rgb: 134, 183, 255;
    --bs-link-hover-color: #aacdff;
    --bs-link-hover-color-rgb: 170, 205, 255;
}
[data-site-theme="black"] :is(.site-header, .site-quick-links, .gomyid-card,
    .gomyid-trust-bar, .content-editor-toolbar, .navbar-collapse, .feature-compare-item,
    .download-action-card-primary, .site-quick-link) {
    background: #000;
    color: var(--gomyid-ink);
}
[data-site-theme="black"] :is(.gomyid-hero, .gm-home .gm-home-hero, .gomyid-page-hero,
    .homepage-visual-flow, .trusted-organizations, .gomyid-section-dark, .site-footer,
    .gomyid-band-teal, .gomyid-band-violet, .gomyid-cta, .windows-mode-strip,
    .admin-gallery-feature, .feature-compare-head, .gomyid-code) {
    background: #000;
}
[data-site-theme="black"] :is(.gomyid-section-soft, .gm-home .gomyid-section-soft) { background: #101010; }
[data-site-theme="black"] .bg-white,
[data-site-theme="black"] .bg-light { background-color: #101010 !important; }
[data-site-theme="black"] .text-dark { color: #eee !important; }
[data-site-theme="black"] .text-secondary { color: #b9b9b9 !important; }
[data-site-theme="black"] .btn-primary {
    --bs-btn-color: #000;
    --bs-btn-hover-color: #000;
    --bs-btn-active-color: #000;
}
[data-site-theme="black"] .btn-outline-primary {
    --bs-btn-color: #86b7ff;
    --bs-btn-border-color: #86b7ff;
    --bs-btn-hover-bg: #86b7ff;
    --bs-btn-hover-border-color: #86b7ff;
    --bs-btn-hover-color: #000;
    --bs-btn-active-bg: #aacdff;
    --bs-btn-active-color: #000;
}
[data-site-theme="black"] :is(.gomyid-icon, .gomyid-icon-tile) { background: #191919; }
[data-site-theme="black"] :is(.gomyid-accent-teal, .gomyid-accent-orange, .gomyid-accent-violet, .gomyid-accent-blue) {
    background: #191919;
    color: #cbdcff;
}
[data-site-theme="black"] .site-logo {
    background: #fff;
    border-radius: .4rem;
    padding: .25rem .4rem;
}
[data-site-theme="black"] .trusted-organizations-fade-start { background: linear-gradient(90deg, #000, transparent); }
[data-site-theme="black"] .trusted-organizations-fade-end { background: linear-gradient(270deg, #000, transparent); }
[data-site-theme="black"] .dropdown-menu {
    --bs-dropdown-bg: #101010;
    --bs-dropdown-link-active-bg: #86b7ff;
    --bs-dropdown-link-active-color: #000;
}
[data-site-theme="black"] .accordion {
    --bs-accordion-bg: #000;
    --bs-accordion-active-bg: #171717;
    --bs-accordion-active-color: #86b7ff;
}
[data-site-theme="black"] .form-control:focus,
[data-site-theme="black"] .form-select:focus { border-color: #86b7ff; }

:root[data-site-theme="light"] {
    color-scheme: light;
    --gomyid-sky: #f4f7fb;
    --gomyid-soft: #f4f7fb;
    --gomyid-cyan: #154db2;
}
[data-site-theme="light"] :is(.gomyid-hero, .gm-home .gm-home-hero, .gomyid-page-hero, .homepage-visual-flow,
    .trusted-organizations, .gomyid-section-dark, .site-footer, .gomyid-band-teal,
    .gomyid-band-violet, .gomyid-cta, .windows-mode-strip, .admin-gallery-feature,
    .feature-compare-head, .gomyid-code) {
    background: #f4f7fb;
    color: var(--gomyid-ink);
}
[data-site-theme="light"] :is(.gomyid-hero, .gm-home .gm-home-hero, .gomyid-page-hero, .homepage-visual-flow,
    .trusted-organizations, .gomyid-section-dark, .site-footer, .gomyid-band-teal,
    .gomyid-band-violet, .gomyid-cta, .windows-mode-strip) :is(h1, h2, h3, p, li) {
    color: var(--gomyid-ink);
}
[data-site-theme="light"] :is(.trusted-organizations-copy, .trusted-organizations-note,
    .pricing-contact-panel, .download-action-card, .pricing-contact-panel p,
    .pricing-contact-panel h2, .pricing-contact-panel li, .download-action-card h2,
    .download-action-card p) { color: var(--gomyid-ink); }
[data-site-theme="light"] :is(.pricing-contact-panel, .download-action-card) {
    background: #fff;
    border-color: var(--gomyid-border);
    box-shadow: none;
}
[data-site-theme="light"] .download-action-card .gomyid-icon-tile {
    background: var(--gomyid-sky);
    color: var(--gomyid-blue);
}
[data-site-theme="light"] :is(.gomyid-page-hero .lead, .gomyid-page-hero .text-secondary,
    .text-white-50) { color: var(--gomyid-muted) !important; }
[data-site-theme="light"] .text-white:not(.btn):not(.badge) { color: var(--gomyid-ink) !important; }
[data-site-theme="light"] :is(.gm-home .gomyid-eyebrow, .gomyid-eyebrow) { color: var(--gomyid-blue); }
[data-site-theme="light"] .site-footer :is(a, .social-link, .footer-quick-link) {
    color: var(--gomyid-ink);
    border-color: var(--gomyid-border);
}
[data-site-theme="light"] .site-footer :is(.social-link, .footer-quick-link):hover { color: #fff; }
[data-site-theme="light"] .site-footer a:hover { color: var(--gomyid-blue); }
[data-site-theme="light"] .btn-outline-light {
    --bs-btn-color: #154db2;
    --bs-btn-border-color: #154db2;
    --bs-btn-hover-bg: #154db2;
    --bs-btn-hover-border-color: #154db2;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #154db2;
    --bs-btn-active-border-color: #154db2;
}
[data-site-theme="light"] .trusted-organizations-fade-start { background: linear-gradient(90deg, #f4f7fb, transparent); }
[data-site-theme="light"] .trusted-organizations-fade-end { background: linear-gradient(270deg, #f4f7fb, transparent); }
@media (max-width: 575.98px) {
    .site-header .site-logo { max-width: 145px; height: auto; }
    .theme-picker .theme-toggle { padding: .375rem .5rem; }
}
[data-site-theme="light"] .gm-home-hero .btn-outline-primary {
    --bs-btn-color: #154db2;
    --bs-btn-border-color: #154db2;
    --bs-btn-hover-bg: #154db2;
    --bs-btn-hover-border-color: #154db2;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #154db2;
    --bs-btn-active-border-color: #154db2;
    --bs-btn-active-color: #fff;
}
[data-site-theme="light"] .gm-home-hero .btn-link { color: var(--gomyid-blue); }
/* A prominent download invitation shared by all homepage languages and themes. */
.gm-home .gm-free-cta {
    background: #ffc44d;
    color: #101b30;
    padding: clamp(2rem, 4vw, 3.5rem) 0;
    border-block: 1px solid #e6a526;
}
.gm-home .gm-free-cta h2 {
    color: #101b30;
    font-size: clamp(1.75rem, 2.8vw, 2.6rem);
    font-weight: 750;
    line-height: 1.2;
    margin: 0 0 .85rem;
    max-width: 33ch;
}
.gm-home .gm-free-cta p {
    color: #26344b;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    margin: 0;
}
.gm-free-cta .gm-free-cta-button {
    --bs-btn-color: #fff;
    --bs-btn-bg: #101b30;
    --bs-btn-border-color: #101b30;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #243956;
    --bs-btn-hover-border-color: #243956;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #243956;
    --bs-btn-active-border-color: #243956;
    --bs-btn-focus-shadow-rgb: 16, 27, 48;
    font-weight: 700;
    padding: .9rem 1.25rem;
}
[data-site-theme="black"] .gm-home .gm-free-cta {
    background: #000;
    border-block: 2px solid #ffc44d;
}
[data-site-theme="black"] .gm-home .gm-free-cta h2 { color: #ffc44d; }
[data-site-theme="black"] .gm-home .gm-free-cta p { color: #eee; }
[data-site-theme="black"] .gm-free-cta .gm-free-cta-button {
    --bs-btn-color: #101b30;
    --bs-btn-bg: #ffc44d;
    --bs-btn-border-color: #ffc44d;
    --bs-btn-hover-color: #101b30;
    --bs-btn-hover-bg: #ffd47c;
    --bs-btn-hover-border-color: #ffd47c;
    --bs-btn-active-color: #101b30;
    --bs-btn-active-bg: #ffd47c;
    --bs-btn-active-border-color: #ffd47c;
}
@media (max-width: 575.98px) {
    .gm-free-cta-button { width: 100%; }
}