/* Keep dark filled surfaces separate from lighter foreground accents.
   Do not change Bootstrap primary globally: focus rings and controls need contrast. */
:root { --kingdom-brand-surface-rgb: 11, 60, 93; }
[data-bs-theme="dark"] { --kingdom-brand-surface-rgb: 7, 31, 50; }
[data-bs-theme="dark"] .bg-primary {
  background-color: rgba(var(--kingdom-brand-surface-rgb), var(--bs-bg-opacity, 1)) !important;
}
[data-bs-theme="dark"] header.fixed-top {
  background-color: rgb(var(--kingdom-brand-surface-rgb)) !important;
}

[data-bs-theme="dark"] header.fixed-top .navbar-toggler {
  color: #d4e0ed;
  --bs-navbar-color: #d4e0ed;
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23d4e0ed' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Kingdom shell: the same primary family as the home landing surface. */
body header.navbar.fixed-top,
body .main-footer {
 background:rgb(var(--kingdom-brand-surface-rgb))!important;
 color:#e8f1f7;border-color:rgba(255,255,255,.16);
}
body .main-footer{border-top:0}
body .main-footer::before{display:none}
body header.fixed-top .navbar-brand img,
body header.fixed-top .sitelogo img{filter:brightness(0) invert(1)}
body header.fixed-top .kingdom-responsive-nav .navbar-nav>li:not(.kingdom-donate-nav)>a,
body header.fixed-top .kingdom-responsive-nav>.navbar-toggler,
body header.fixed-top .kingdom-account>summary,
body header.fixed-top [data-bs-toggle="dropdown"]:not(.dropdown-item){color:#f0f6fa!important}
body header.fixed-top .kingdom-responsive-nav .navbar-nav>li:not(.kingdom-donate-nav)>a:hover{color:#ffdf7b!important}
body header.fixed-top .navbar-toggler{color:#f0f6fa;--bs-navbar-color:#f0f6fa}
body header.fixed-top #Custom_Switch_Language a{border-color:#ffffff66}
body header.fixed-top .kingdom-responsive-nav>.navbar-toggler:focus-visible{outline-color:#ffdb72}
@media(max-width:991.98px){
 body header.fixed-top .kingdom-responsive-nav>.navbar-collapse{background:rgb(var(--kingdom-brand-surface-rgb))!important;color:#f0f6fa}
 body header.fixed-top .kingdom-responsive-nav .kingdom-account{color:#f0f6fa;border-color:#ffffff33}
 body header.fixed-top .kingdom-responsive-nav .navbar-nav.sm-collapsible .sub-arrow{color:#f0f6fa;border-color:#ffffff55}
 body header.fixed-top .kingdom-responsive-nav .kingdom-account>summary{color:#f0f6fa!important}
}
body header.fixed-top .kingdom-account>summary{background:#ffffff12;border-color:#ffffff55}
body header.fixed-top .kingdom-account .account-caret{background:rgb(var(--kingdom-brand-surface-rgb));border-color:#8bb8d3;color:#fff}
@media(max-width:991.98px){
 body header.fixed-top .kingdom-responsive-nav .kingdom-account-panel{color:#f0f6fa;background:transparent}
 body header.fixed-top .kingdom-responsive-nav .kingdom-account-panel>a,
 body header.fixed-top .kingdom-responsive-nav .kingdom-mobile-appearance>h2{color:#f0f6fa!important}
}

/* Tiki appearance and settings dropdowns must keep their own theme contrast. */
body header.fixed-top .dropdown-menu,
body header.fixed-top .dropdown-menu .dropdown-item,
body header.fixed-top .dropdown-menu a:not(.btn){color:var(--bs-dropdown-link-color,var(--bs-body-color))!important}
body header.fixed-top .dropdown-menu{background:var(--bs-dropdown-bg,var(--bs-body-bg))!important;border-color:var(--bs-dropdown-border-color,var(--bs-border-color))!important}
body header.fixed-top .dropdown-menu .dropdown-item:hover,
body header.fixed-top .dropdown-menu .dropdown-item:focus{color:var(--bs-dropdown-link-hover-color,var(--bs-body-color))!important;background:var(--bs-dropdown-link-hover-bg,var(--bs-tertiary-bg))!important}
