/* Brand palette sampled from the CiS shield logo. Loaded after assets/css/style.css. */
:root,
[data-bs-theme='light'] {
  --bs-primary: #1e93c6;
  --bs-primary-rgb: 30, 147, 198;
  --bs-primary-text-emphasis: #0c3b4f;
  --bs-primary-bg-subtle: #def0f7;
  --bs-primary-border-subtle: #9ed0e3;

  --bs-warning: #fcc64c;
  --bs-warning-rgb: 252, 198, 76;
  --bs-warning-text-emphasis: #654f1e;
  --bs-warning-bg-subtle: #fff3dd;
  --bs-warning-border-subtle: #fde0a3;

  --bs-danger: #d9272a;
  --bs-danger-rgb: 217, 39, 42;
  --bs-danger-text-emphasis: #571011;
  --bs-danger-bg-subtle: #f9dcdc;
  --bs-danger-border-subtle: #ed9e9f;

  --bs-link-color: #1e93c6;

  --brand-orange: #f2843d;
  --brand-orange-rgb: 242, 132, 61;
}

.brand-title-text {
  color: #fff;
  font-weight: 700;
  font-size: 2rem;
  margin-left: 0.5rem;
  white-space: nowrap;
}

/* style.css's `.nav-header .brand-title` rule is a leftover from the
   original inline-SVG logo (font-size: 2.375rem, sized for a single glyph)
   and, via the .brand-title class we also apply for its responsive
   hide-below-1024px behavior, silently overrides our own font-size above
   whenever the wordmark renders inside .nav-header (i.e. on desktop). */
.nav-header .brand-title {
  font-size: 2rem;
}

.auth-info .brand-title-text {
  color: var(--bs-heading-color, #2c2c2c);
}

.auth-info .brand-logo {
  justify-content: center;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* bootstrap-select's generated toggle button is a fixed ~49px tall, shorter
   than the sibling icon buttons (~54px) in the topbar's header-right list,
   so it sits top-aligned with empty space below it instead of centered. */
.header-right > li.nav-item:has(.bootstrap-select) {
  display: flex;
  align-items: center;
}

/* .header-profile-dropdown > a.nav-link is stretched to the row's full
   height by the header-right flex row, but its padding is top/bottom
   symmetric on the anchor's *content box*, not on the stretched box -- so
   the profile-head block just sits under the top padding and the leftover
   height collects as empty space below it. Making the anchor itself a flex
   container centers profile-head within the full stretched height. */
.header-profile-dropdown > a.nav-link {
  display: flex;
  align-items: center;
}

/* Same stretch-vs-center issue as above: the bell icon's <li> wraps its
   button in an extra `.dropdown` div (for the Bootstrap dropdown toggle)
   that the chatbox/fullscreen buttons don't have. That div stretches to the
   row's full height, but the button inside it doesn't re-center, so the
   bell sits ~3px higher than its siblings. */
.header-right > li.notification_dropdown > .dropdown {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Below the same breakpoint where style.css already narrows .nav-header to
   an icon-only rail (max-width: 63.9375rem), move the logo mark inside the
   floating header-content pill instead: .nav-header sits outside the pill
   with its own (transparent, at this width) background, so on narrow
   screens it read as a separate, disconnected element. A second icon-only
   Logo instance lives in Topbar.tsx's header-content for this range only. */
.mobile-only-logo {
  display: none;
}
@media only screen and (max-width: 63.9375rem) {
  .mobile-only-logo {
    display: inline-flex;
    width: 3.5rem;
    height: 2.75rem;
  }
  /* Sized as percentages of the (now wider-than-tall) link box above, with
     object-fit: contain so the square source image scales proportionally
     into that box instead of stretching to fill it. */
  .mobile-only-logo .logo-abbr {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .nav-header {
    display: none;
  }
  [data-sidebar-style=overlay] .header {
    padding-left: 0;
  }
}
