
/* v30: header/logo fixes loaded last. */

/* 1) Admin/sidebar logo is a white card in both themes: force readable dark blue text. */
.brand-dashboard,
.sidebar .brand-dashboard,
html[data-theme="dark"] .brand-dashboard,
html[data-theme="dark"] .sidebar .brand-dashboard,
html[data-theme="light"] .brand-dashboard,
html[data-theme="light"] .sidebar .brand-dashboard {
  background: #ffffff !important;
  color: #061427 !important;
  border: 1px solid rgba(15, 23, 42, .10) !important;
}

.brand-dashboard .brand-copy strong,
.brand-dashboard .brand-copy small,
.sidebar .brand-dashboard .brand-copy strong,
.sidebar .brand-dashboard .brand-copy small,
html[data-theme="dark"] .brand-dashboard .brand-copy strong,
html[data-theme="dark"] .brand-dashboard .brand-copy small,
html[data-theme="light"] .brand-dashboard .brand-copy strong,
html[data-theme="light"] .brand-dashboard .brand-copy small {
  color: #061427 !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

.brand-dashboard .brand-copy small,
.sidebar .brand-dashboard .brand-copy small {
  color: #516079 !important;
}

.brand-dashboard .brand-tricolor i:nth-child(1),
.sidebar .brand-dashboard .brand-tricolor i:nth-child(1) {
  background: #172554 !important;
}

.brand-dashboard .brand-tricolor i:nth-child(2),
.sidebar .brand-dashboard .brand-tricolor i:nth-child(2) {
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.10) !important;
}

.brand-dashboard .brand-tricolor i:nth-child(3),
.sidebar .brand-dashboard .brand-tricolor i:nth-child(3) {
  background: #c1121f !important;
}

/* 2) Home: remove the huge empty gap below the header. */
.hero-premium,
.hero {
  padding-top: clamp(82px, 7.2vh, 112px) !important;
  min-height: auto !important;
}

.hero-premium {
  padding-bottom: clamp(42px, 7vh, 86px) !important;
}

@media (min-width: 980px) {
  .hero-premium,
  .hero {
    padding-top: clamp(88px, 8vh, 126px) !important;
  }
}

/* 3) Public nav: links must blend into the header; only CTA stays a button. */
.site-header .site-nav > a:not(.nav-cta),
.site-header .site-nav-v24 > a:not(.nav-cta),
html[data-theme="light"] .site-header .site-nav > a:not(.nav-cta),
html[data-theme="dark"] .site-header .site-nav > a:not(.nav-cta) {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--as-text, #061427) !important;
  border-radius: 8px !important;
}

html[data-theme="dark"] .site-header .site-nav > a:not(.nav-cta) {
  color: #f8fbff !important;
}

.site-header .site-nav > a:not(.nav-cta):hover,
.site-header .site-nav-v24 > a:not(.nav-cta):hover {
  background: transparent !important;
  color: #125fe8 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .site-header .site-nav > a:not(.nav-cta):hover {
  color: #67ddff !important;
}

/* Keep the ORION/Login CTA explicit. */
.site-header .site-nav .nav-cta {
  color: #ffffff !important;
}

/* Mobile menu can keep panel-style buttons for tap targets. */
@media (max-width: 1120px) {
  html[data-theme="light"] .site-nav-v24 > a:not(.nav-cta) {
    background: #f7fbff !important;
    border-color: rgba(15, 23, 42, .09) !important;
    color: #061427 !important;
  }

  html[data-theme="dark"] .site-nav-v24 > a:not(.nav-cta) {
    background: rgba(255,255,255,.05) !important;
    border-color: rgba(255,255,255,.08) !important;
    color: #f8fbff !important;
  }
}
