/* Final theme-aware accessibility overrides for CSS-isolated Website components. */
html[data-theme="dark"] .osirion-footer-link,
html[data-osirion-theme="dark"] .osirion-footer-link,
html[data-bs-theme="dark"] .osirion-footer-link,
html[data-theme="dark"] .osirion-footer-bottom-link,
html[data-osirion-theme="dark"] .osirion-footer-bottom-link,
html[data-bs-theme="dark"] .osirion-footer-bottom-link {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] body .btn-outline-primary,
html[data-osirion-theme="dark"] body .btn-outline-primary,
html[data-bs-theme="dark"] body .btn-outline-primary {
    --bs-btn-color: #8dd8b1 !important;
    --bs-btn-border-color: #8dd8b1 !important;
    color: #8dd8b1 !important;
    border-color: #8dd8b1 !important;
}

html[data-theme="dark"] .osirion-menu-item-text,
html[data-osirion-theme="dark"] .osirion-menu-item-text,
html[data-bs-theme="dark"] .osirion-menu-item-text {
    color: #d8d8df !important;
}

html[data-theme="dark"] .bg-light,
html[data-osirion-theme="dark"] .bg-light,
html[data-bs-theme="dark"] .bg-light {
    background-color: #1e293b !important;
}

html[data-theme="dark"] .bg-white,
html[data-osirion-theme="dark"] .bg-white,
html[data-bs-theme="dark"] .bg-white {
    background-color: #0f172a !important;
}

html[data-theme="dark"] a[href^="mailto:"],
html[data-osirion-theme="dark"] a[href^="mailto:"],
html[data-bs-theme="dark"] a[href^="mailto:"] {
    color: #8dd8b1;
}

.marketing-page .osirion-metric-card-green .osirion-metric-card-value {
    color: #006b2b !important;
}

.marketing-page .osirion-metric-card-amber .osirion-metric-card-value {
    color: #9a4d00 !important;
}

.osirion-footer-copyright .osirion-footer-bottom-link,
.osirion-checkbox-text a[href$="privacy-policy"] {
    text-decoration: underline !important;
    text-underline-offset: 0.15em !important;
}

.osirion-contact-link {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

html[data-theme="dark"] .osirion-checkbox-text a[href$="privacy-policy"],
html[data-osirion-theme="dark"] .osirion-checkbox-text a[href$="privacy-policy"],
html[data-bs-theme="dark"] .osirion-checkbox-text a[href$="privacy-policy"] {
    color: #8dd8b1 !important;
}
