/* Shared signed-in header. Load after page and account-menu styles. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  min-height: 90px;
  border: 0;
  border-bottom: 1px solid #d7e4da;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.site-header .nav {
  display: flex;
  width: min(calc(100% - 40px), 1320px);
  max-width: none;
  min-height: 89px;
  margin: 0 auto;
  padding: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.site-header .brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.site-header .brand-logo {
  display: block;
  width: 92px;
  height: 54px;
  object-fit: contain;
}

.site-header .nav-right {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.site-header .nav-links {
  display: flex;
  width: auto;
  min-width: 0;
  flex: 1;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 0;
  white-space: nowrap;
}

.site-header .nav-links a {
  flex: 0 0 auto;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  color: #094824;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.site-header .nav-links a:hover { color: #158149; }
.site-header .nav-links a.active {
  border-bottom-color: var(--module-on-light, #094824);
  color: var(--module-on-light, #094824);
}
.site-header .nav-links a.disabled {
  color: #91ad9b;
  opacity: 1;
  cursor: default;
  pointer-events: none;
}

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 2px solid var(--module-primary, #158149);
  outline-offset: 4px;
}

.site-header .profile-menu-button { color: #094824; font: inherit; }
.site-header .profile-dropdown-item { color: #17211d; }
.site-header .profile-dropdown-logout { color: #8b2e2e; }
.site-header .profile-avatar [hidden] { display: none; }
.site-header .profile-avatar svg { display: block; }
.site-header .profile-avatar svg[hidden] { display: none; }

.site-header .logout-button {
  background: var(--module-primary, #0a5028);
}

.site-header .logout-button:hover {
  background: var(--module-primary-dark, #073c1e);
}

@media (max-width: 1180px) {
  .site-header .nav { width: calc(100% - 28px); gap: 24px; }
  .site-header .nav-links { gap: 12px; }
  .site-header .nav-links a { font-size: 11px; }
}

@media (max-width: 980px) {
  .site-header { position: static; }
  .site-header .nav {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 0 13px;
  }
  .site-header .nav-right { width: 100%; gap: 10px; }
  .site-header .nav-links {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 16px;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .site-header .profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
  }
}
