/* VisaBoards header — matches DashboardMarketingHeader (app) */

.vbhs-header,
.vbhs-header * {
  box-sizing: border-box;
}

.vbhs-header {
  font-family: "Overpass", "Segoe UI", system-ui, sans-serif;
  width: 100%;
}

.vbhs-header__inner {
  display: grid;
  align-items: center;
  gap: 0.5rem 1rem;
  max-width: 1290px;
  margin: 0 auto;
  min-height: 5rem;
  padding: 0.625rem 1.25rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.vbhs-header__inner--logo {
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr) auto;
}

@media (min-width: 1024px) {
  .vbhs-header__inner {
    min-height: 5rem;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.vbhs-header__logo {
  display: flex;
  min-width: 0;
  align-items: center;
  text-decoration: none !important;
  color: #0d4d7a;
  font-weight: 700;
  font-size: 1.125rem;
}

.vbhs-header__nav {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
  min-width: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  color: #1a6bb5;
}

@media (min-width: 1024px) {
  .vbhs-header__nav {
    display: flex;
    justify-self: center;
  }
}

@media (min-width: 1100px) {
  .vbhs-header__nav {
    font-size: 1.125rem;
    gap: 1rem 1.5rem;
  }
}

.vbhs-header__nav-link {
  color: #1a6bb5;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.25rem 0.35rem;
  transition: color 0.15s ease;
}

.vbhs-header__nav-link:hover {
  color: #0d4d7a;
  text-decoration: underline;
}

.vbhs-header__nav-link--active {
  color: #0d4d7a;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.vbhs-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 2.75rem;
  justify-self: end;
}

/* Loading — hide auth chrome until session resolves */
.vbhs-header--loading .vbhs-auth--guest,
.vbhs-header--loading .vbhs-auth--user {
  visibility: hidden;
  pointer-events: none;
}

html.vbhs-signed-in .vbhs-auth--guest,
html.vbhs-signed-in .vbhs-auth__sign-in {
  display: none !important;
}

/* Auth panels */
.vbhs-auth {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .vbhs-auth {
    gap: 0.5rem;
  }
}

.vbhs-auth--hidden,
.vbhs-auth[hidden] {
  display: none !important;
}

.vbhs-auth__sign-in {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 10rem;
  height: 2.25rem;
  padding: 0 1rem;
  border: 0 !important;
  border-radius: 9999px !important;
  background: #0f4f78 !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 79, 120, 0.2);
  transition: background 0.15s ease;
}

.vbhs-auth__sign-in:hover,
.vbhs-auth__sign-in:focus {
  background: #0d4d7a !important;
  color: #fff !important;
}

.vbhs-auth__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  color: #0f4f78;
  text-decoration: none !important;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
}

.vbhs-auth__icon-btn:hover {
  background: rgba(186, 230, 253, 0.7);
}

.vbhs-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.vbhs-auth__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  background: #1a6bb5;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.125rem;
  text-align: center;
}

.vbhs-auth__badge[hidden] {
  display: none;
}

.vbhs-auth__account {
  position: relative;
  margin-left: 0.15rem;
}

.vbhs-auth__avatar-btn {
  display: inline-flex;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 1rem;
}

.vbhs-auth__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 1rem;
  object-fit: cover;
}

.vbhs-auth__avatar--img {
  display: block;
  background: #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  outline: 2px solid rgba(26, 107, 181, 0.25);
}

.vbhs-auth__avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1d81c2;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(29, 129, 194, 0.25);
  outline: 2px solid rgba(26, 107, 181, 0.25);
}

.vbhs-auth__avatar--img[hidden],
.vbhs-auth__avatar--initial[hidden] {
  display: none !important;
}

.vbhs-auth__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 9999;
  min-width: 14rem;
  max-width: min(100vw - 1.5rem, 16rem);
  padding: 0.25rem 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.vbhs-auth__dropdown[hidden] {
  display: none !important;
}

.vbhs-auth__dropdown-name {
  margin: 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
}

.vbhs-auth__dropdown-item {
  display: block;
  padding: 0.55rem 0.75rem;
  color: #0f172a !important;
  font-size: 0.875rem;
  text-decoration: none !important;
}

.vbhs-auth__dropdown-item:hover {
  background: #f1f5f9;
}

.vbhs-auth__dropdown-sep {
  margin: 0.25rem 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Legacy split shortcodes */
.vbhs-menu-wrap,
.vbhs-auth-legacy {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vbhs-menu-wrap--bordered,
.vbhs-auth-wrap--bordered {
  border: 1px solid #1a1a1a;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
}

.vbhs-menu-legacy {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}
