/* Shared navigation system for Project Atlas.
   Loaded after page-specific styles so every route uses the same header geometry. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(7,17,31,.92);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding-top: 18px;
}

.site-brand,
.site-brand:visited {
  color: #f4f7fb;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.site-brand__suffix {
  color: #a6b5c8;
  font-weight: 500;
}

.site-header__inner > .site-brand,
.site-header__inner > .brand-wrap,
.site-header.topbar > .site-brand {
  align-self: flex-start;
  text-align: left;
}

.site-nav,
.site-header .links,
.site-header .top-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.site-header__inner > .site-nav,
.site-header__inner > .links,
.site-header__inner > .top-links {
  width: 100%;
  margin-top: 14px;
  padding: 15px 0 16px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.site-nav a,
.site-header .links a,
.site-header .top-links a {
  color: #a6b5c8;
  text-decoration: none;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active,
.site-header .links a:hover,
.site-header .links a.active,
.site-header .top-links a:hover,
.site-header .top-links a.active {
  color: #f4f7fb;
}

.site-nav a.active,
.site-header .links a.active,
.site-header .top-links a.active {
  text-decoration: underline;
  text-decoration-color: #8de2bd;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.site-header a:focus-visible {
  outline: 3px solid #8de2bd;
  outline-offset: 4px;
  border-radius: 5px;
}

.news-card-title-link {
  color: inherit;
  text-decoration: none;
}

.news-card-title-link:hover {
  color: #d8e8ff;
}

/* Legacy header wrappers use different max-width variables. Keep only the
   navigation row consistent without changing the reading width of the page. */
.site-header > .wrap,
.site-header > .article-nav,
.site-header > .topbar,
.site-header.topbar,
.site-header .nav,
.site-header .article-nav,
.site-header .topbar {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.site-header.topbar {
  min-height: 0;
  padding: 18px 0 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
}

.site-header.topbar > .site-nav,
.site-header.topbar > .links,
.site-header.topbar > .top-links {
  width: 100%;
  margin-top: 14px;
  padding: 15px 0 16px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.site-header > .wrap.site-header__inner,
.site-header > .site-header__inner {
  width: min(1180px, calc(100% - 40px));
}

@media (max-width: 760px) {
  .site-header__inner,
  .site-header > .wrap,
  .site-header > .article-nav,
  .site-header > .topbar,
  .site-header.topbar,
  .site-header .nav,
  .site-header .article-nav,
  .site-header .topbar {
    width: calc(100% - 28px);
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 0;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-header .site-nav,
  .site-header .links,
  .site-header .top-links {
    width: 100%;
    justify-content: flex-start;
    gap: 10px 16px;
  }

  .site-header__inner > .site-nav,
  .site-header__inner > .links,
  .site-header__inner > .top-links,
  .site-header.topbar > .site-nav,
  .site-header.topbar > .links,
  .site-header.topbar > .top-links {
    margin-top: 12px;
    padding-top: 12px;
    padding-bottom: 14px;
  }

  .site-brand {
    font-size: 15px;
  }

  .site-brand__suffix {
    display: none;
  }

  .site-header .company {
    display: none;
  }
}
