Use the explicit hooks instead of positional selectors. Style the visible navbar through .vyasa-navbar-card, not #site-navbar > *.
Copied
.vyasa-navbar-card {
background-color: #0f766e !important;
color: #f8fafc !important;
}
.vyasa-footer-card {
background-color: #1f2937 !important;
color: #f8fafc !important;
}
#site-navbar a,
#site-footer a {
color: #f8fafc;
}
#site-navbar a:hover,
#site-footer a:hover {
color: #e2e8f0;
}
.dark .vyasa-navbar-card { background-color: #0b3b3a !important; }
.dark .vyasa-footer-card { background-color: #111827 !important; }