/**
 * Alamer top menu skin — same layout as BlackBooks, navy/gold/cream only.
 */
body.bb-theme-v2.bb-v2-edition--alamer {
  --bb-alamer-navy: #1b3a4b;
  --bb-alamer-navy-strong: #152f3d;
  --bb-alamer-gold: #c4a35a;
  --bb-alamer-cream: #f6f1e8;
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-shell {
  --bb-v2-primary: #1b3a4b;
  --bb-v2-primary-strong: #152f3d;
  --bb-v2-primary-soft: rgba(196, 163, 90, 0.22);
}

body.bb-theme-v2.bb-v2-edition--alamer.bb-v2-hnav .bb-v2-shell {
  background: #f6f1e8;
  box-shadow: 0 10px 28px rgba(27, 58, 75, 0.1);
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top {
  --bb-v2-hdr-dark-bg-top: #f6f1e8;
  --bb-v2-hdr-dark-bg-bottom: #efe6d6;
  --bb-v2-hdr-dark-border: rgba(27, 58, 75, 0.1);
  --bb-v2-hdr-dark-text: #1b3a4b;
  --bb-v2-hdr-dark-text-strong: #1b3a4b;
  --bb-v2-hdr-dark-hover: rgba(27, 58, 75, 0.06);
  background: linear-gradient(180deg, #f6f1e8 0%, #efe6d6 100%);
  border-bottom: 1px solid rgba(27, 58, 75, 0.1);
  box-shadow: none;
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .bb-v2-header__inner {
  min-height: 4.15rem;
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header-brand--alamer {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  transform: none;
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header-brand--alamer:hover {
  transform: scale(1.02);
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header-brand__emblem {
  display: block;
  flex: 0 0 auto;
  width: 3.35rem;
  height: calc(3.35rem * 498 / 712);
  overflow: hidden;
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header-brand__logo {
  display: block;
  width: 3.35rem;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: top center;
  background: transparent;
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header-brand__word {
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 800;
  line-height: 1.25;
  color: #1b3a4b;
  white-space: nowrap;
  letter-spacing: 0;
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .bb-v2-nav-toggle {
  color: #1b3a4b !important;
  border-color: rgba(27, 58, 75, 0.16) !important;
  background: #fff !important;
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .bb-v2-nav-toggle:hover {
  background: rgba(196, 163, 90, 0.18) !important;
  border-color: #c4a35a !important;
  color: #1b3a4b !important;
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .rb-hdr-action--tile,
body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .rb-hdr-action--plus,
body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .rb-hdr-action--user.rb-hdr-action--tile,
body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .notifications-menu > button.rb-hdr-action--tile,
body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .header-primary-pos > a.rb-hdr-action--tile,
body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .notifications-menu > button.rb-hdr-notif--unread {
  background: linear-gradient(135deg, #1b3a4b 0%, #152f3d 100%) !important;
  box-shadow: 0 4px 12px rgba(27, 58, 75, 0.22) !important;
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .rb-hdr-action--tile:hover,
body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .rb-hdr-action--plus:hover,
body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .rb-hdr-action--user.rb-hdr-action--tile:hover,
body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .notifications-menu > button.rb-hdr-action--tile:hover,
body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .header-primary-pos > a.rb-hdr-action--tile:hover {
  background: linear-gradient(135deg, #c4a35a 0%, #b3924a 100%) !important;
  color: #1b3a4b !important;
  box-shadow: 0 6px 16px rgba(196, 163, 90, 0.32) !important;
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .rb-hdr-user-chip__avatar {
  background: linear-gradient(145deg, #1b3a4b 0%, #c4a35a 100%);
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-nav-wrap {
  --bb-v2-nav-bar-bg-top: #1b3a4b;
  --bb-v2-nav-bar-bg-bottom: #152f3d;
  --bb-v2-nav-bar-border: rgba(196, 163, 90, 0.28);
  --bb-v2-nav-bar-text: rgba(246, 241, 232, 0.9);
  --bb-v2-nav-bar-text-strong: #f6f1e8;
  --bb-v2-nav-bar-hover-bg: rgba(196, 163, 90, 0.16);
  --bb-v2-nav-bar-hover-border: rgba(196, 163, 90, 0.4);
  --bb-v2-nav-panel-bg: #fbf8f1;
  --bb-v2-nav-panel-border: rgba(27, 58, 75, 0.12);
  --bb-v2-nav-panel-text: #1b3a4b;
  --bb-v2-nav-panel-hover: rgba(196, 163, 90, 0.18);
  background: linear-gradient(180deg, #1b3a4b 0%, #152f3d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-nav-wrap::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(196, 163, 90, 0.55) 50%,
    transparent 100%
  );
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-nav-icon-badge {
  background: rgba(196, 163, 90, 0.22);
  color: #e6d3a4;
  box-shadow: inset 0 0 0 1px rgba(196, 163, 90, 0.28);
}

body.bb-theme-v2.bb-v2-edition--alamer #bb-top-nav-menu > .bb-nav-link.bb-top-nav-active,
body.bb-theme-v2.bb-v2-edition--alamer #bb-top-nav-menu > .top-nav-dd-root.top-nav-dd-has-child-active > .drop_down,
body.bb-theme-v2.bb-v2-edition--alamer #bb-top-nav-menu > .top-nav-dd-root.bb-top-nav-root--open > .drop_down {
  background: linear-gradient(135deg, #c4a35a 0%, #b3924a 100%) !important;
  color: #1b3a4b !important;
  box-shadow:
    0 10px 24px rgba(196, 163, 90, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

body.bb-theme-v2.bb-v2-edition--alamer #bb-top-nav-menu > .bb-nav-link.bb-top-nav-active .bb-nav-icon-badge,
body.bb-theme-v2.bb-v2-edition--alamer #bb-top-nav-menu > .top-nav-dd-root.top-nav-dd-has-child-active > .drop_down .bb-nav-icon-badge,
body.bb-theme-v2.bb-v2-edition--alamer #bb-top-nav-menu > .top-nav-dd-root.bb-top-nav-root--open > .drop_down .bb-nav-icon-badge {
  background: rgba(27, 58, 75, 0.16);
  color: #1b3a4b;
  box-shadow: inset 0 0 0 1px rgba(27, 58, 75, 0.16);
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-nav-chevron {
  color: rgba(246, 241, 232, 0.78);
}

body.bb-theme-v2.bb-v2-edition--alamer #bb-top-nav-menu > .top-nav-dd-root > .chiled,
body.bb-theme-v2.bb-v2-edition--alamer #bb-top-nav-menu > .top-nav-dd-root > .bb-top-nav-panel {
  background: linear-gradient(180deg, #fbf8f1 0%, #f6f1e8 100%) !important;
  border-color: rgba(27, 58, 75, 0.12) !important;
  box-shadow:
    0 22px 48px rgba(27, 58, 75, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

body.bb-theme-v2.bb-v2-edition--alamer #bb-top-nav-menu > .top-nav-dd-root > .chiled::-webkit-scrollbar-thumb,
body.bb-theme-v2.bb-v2-edition--alamer #bb-top-nav-menu > .top-nav-dd-root > .bb-top-nav-panel::-webkit-scrollbar-thumb {
  background: rgba(27, 58, 75, 0.28);
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-top-nav-dd-heading {
  color: rgba(27, 58, 75, 0.62);
  border-bottom-color: rgba(27, 58, 75, 0.1);
}

body.bb-theme-v2.bb-v2-edition--alamer #bb-top-nav-menu > .top-nav-dd-root > .chiled .bb-top-nav-dd-link:hover,
body.bb-theme-v2.bb-v2-edition--alamer #bb-top-nav-menu > .top-nav-dd-root > .bb-top-nav-panel .bb-top-nav-dd-link:hover,
body.bb-theme-v2.bb-v2-edition--alamer #bb-top-nav-menu > .top-nav-dd-root > .chiled .bb-top-nav-dd-link:focus-visible,
body.bb-theme-v2.bb-v2-edition--alamer #bb-top-nav-menu > .top-nav-dd-root > .bb-top-nav-panel .bb-top-nav-dd-link:focus-visible {
  color: #1b3a4b !important;
}

body.bb-theme-v2.bb-v2-edition--alamer #bb-top-nav-menu > .top-nav-dd-root > .chiled .bb-top-nav-dd-link.bb-top-nav-dd-link-active,
body.bb-theme-v2.bb-v2-edition--alamer #bb-top-nav-menu > .top-nav-dd-root > .bb-top-nav-panel .bb-top-nav-dd-link.bb-top-nav-dd-link-active {
  background: rgba(196, 163, 90, 0.28) !important;
  color: #1b3a4b !important;
}

body.bb-theme-v2.bb-v2-edition--alamer ul.rb-hdr-menu.rb-hdr-menu--open,
body.bb-theme-v2.bb-v2-edition--alamer ul.rb-hdr-menu.rb-sneat-dropdown.rb-hdr-menu--open {
  background: #fbf8f1 !important;
  border-color: rgba(27, 58, 75, 0.12) !important;
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .bb-v2-sub-chip {
  color: #1b3a4b;
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .bb-v2-sub-chip__label,
body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .bb-v2-sub-chip__value {
  color: #1b3a4b;
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .bb-v2-sub-chip__label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .bb-v2-sub-chip__sep {
  color: rgba(27, 58, 75, 0.4);
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .bb-v2-sub-chip__meta {
  background: rgba(15, 118, 110, 0.14);
  color: #0f766e;
}

body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .bb-v2-sub-chip--active .bb-v2-sub-chip__meta {
  color: #0f766e;
}

@media (max-width: 575.98px) {
  body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header-brand--alamer {
    gap: 0.45rem;
  }

  body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header-brand__emblem {
    width: 2.85rem;
    height: calc(2.85rem * 498 / 712);
  }

  body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header-brand__logo {
    width: 2.85rem;
    height: auto;
    max-width: none;
  }

  body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header-brand__word {
    font-size: 0.82rem;
    white-space: normal;
    max-width: 7.5rem;
  }

  body.bb-theme-v2.bb-v2-edition--alamer .bb-v2-header--top .bb-v2-header__inner {
    min-height: 3.75rem;
  }
}

body.bb-theme-v2.bb-v2-edition--alamer #bb-build-update-overlay .bb-sn-build-update-backdrop {
  background: linear-gradient(160deg, rgba(21, 47, 61, 0.72) 0%, rgba(27, 58, 75, 0.5) 100%);
}

body.bb-theme-v2.bb-v2-edition--alamer #bb-build-update-overlay .bb-sn-build-update-card {
  border-color: rgba(196, 163, 90, 0.35);
  background: #f6f1e8;
  box-shadow:
    0 24px 60px rgba(27, 58, 75, 0.28),
    0 0 0 1px rgba(196, 163, 90, 0.18);
}

body.bb-theme-v2.bb-v2-edition--alamer #bb-build-update-overlay .bb-sn-build-update-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #c4a35a 0%, #1b3a4b 100%);
  z-index: 2;
}

body.bb-theme-v2.bb-v2-edition--alamer #bb-build-update-overlay .bb-sn-build-update-card__glow {
  background: radial-gradient(circle, rgba(196, 163, 90, 0.22) 0%, transparent 68%);
}

body.bb-theme-v2.bb-v2-edition--alamer #bb-build-update-overlay .bb-sn-build-update-card__header {
  background: linear-gradient(135deg, #1b3a4b 0%, #152f3d 58%, #24485c 100%);
  color: #f6f1e8;
}

body.bb-theme-v2.bb-v2-edition--alamer #bb-build-update-overlay .bb-sn-build-update-card__header-icon {
  background: rgba(196, 163, 90, 0.22);
  border-color: rgba(196, 163, 90, 0.45);
  color: #c4a35a;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
}

body.bb-theme-v2.bb-v2-edition--alamer #bb-build-update-overlay .bb-sn-build-update-card__eyebrow {
  background: rgba(196, 163, 90, 0.22);
  border-color: rgba(196, 163, 90, 0.4);
  color: #f6f1e8;
}

body.bb-theme-v2.bb-v2-edition--alamer #bb-build-update-overlay .bb-sn-build-update-kpi__item {
  border-color: rgba(27, 58, 75, 0.12);
  background: linear-gradient(180deg, #fff 0%, #f6f1e8 100%);
}

body.bb-theme-v2.bb-v2-edition--alamer #bb-build-update-overlay .bb-sn-build-update-kpi__icon {
  color: #c4a35a;
}

body.bb-theme-v2.bb-v2-edition--alamer #bb-build-update-overlay .bb-sn-build-update-kpi__value {
  color: #1b3a4b;
}

body.bb-theme-v2.bb-v2-edition--alamer #bb-build-update-overlay .bb-sn-build-update-card__footer {
  border-top-color: rgba(27, 58, 75, 0.1);
  background: linear-gradient(180deg, #f6f1e8 0%, #efe6d6 100%);
}

body.bb-theme-v2.bb-v2-edition--alamer #bb-build-update-overlay .bb-sn-build-update-card__action {
  background: linear-gradient(135deg, #1b3a4b 0%, #152f3d 100%);
  box-shadow: 0 6px 18px rgba(27, 58, 75, 0.38);
}

body.bb-theme-v2.bb-v2-edition--alamer #bb-build-update-overlay .bb-sn-build-update-card__action:hover {
  box-shadow: 0 10px 24px rgba(196, 163, 90, 0.35);
}
