/* ============================================================
   DCS AI Resource Center header — logo + in-app navigation
   ============================================================ */

#dcs-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.dcs-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.dcs-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 24px 10px 12px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dcs-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  margin-left: -4px;
}

.dcs-header__logo img {
  height: 26px;
  width: auto;
  display: block;
}

.dcs-header .app-nav {
  flex: 1;
  min-width: 0;
  position: static;
  background: transparent;
  border: none;
  backdrop-filter: none;
}

.dcs-header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.dcs-header__nav::-webkit-scrollbar {
  display: none;
}

.dcs-header__nav .app-nav__link {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: #6b7280;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.dcs-header__nav .app-nav__link:hover {
  background: #eef2ff;
  color: #4f46e5;
}

.dcs-header__nav .app-nav__link.is-active {
  background: #4f46e5;
  color: #fff;
}

.dcs-header__role-item {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.dcs-header__role {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.dcs-header__role--admin {
  color: #312e81;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.dcs-header__role--team {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.dcs-header__signout-item {
  margin-left: 0.35rem;
}

.dcs-header__nav .app-nav__link--signout {
  color: #6b7280;
}

.dcs-header__nav .app-nav__link--signout:hover {
  background: #fef2f2;
  color: #dc2626;
}

.dcs-header__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.dcs-header__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #111827;
  position: relative;
}

.dcs-header__toggle span::before,
.dcs-header__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #111827;
}

.dcs-header__toggle span::before { top: -6px; }
.dcs-header__toggle span::after { top: 6px; }

@media (max-width: 900px) {
  .dcs-header__inner {
    flex-wrap: wrap;
  }

  .dcs-header__toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .dcs-header .app-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .dcs-header.is-open .app-nav {
    display: block;
    padding: 12px 0 4px;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
  }

  .dcs-header.is-open .dcs-header__nav {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    overflow: visible;
  }

  .dcs-header.is-open .dcs-header__role-item {
    width: 100%;
    justify-content: flex-start;
    padding: 0.35rem 0;
  }

  .dcs-header.is-open .dcs-header__signout-item {
    margin-left: 0;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
  }

  .dcs-header.is-open .dcs-header__nav .app-nav__link {
    width: 100%;
    text-align: left;
  }
}
