.shared-site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: 76px;
  border-bottom: 1px solid rgba(218, 227, 234, .9);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 26px rgba(11, 35, 63, .05);
  backdrop-filter: blur(14px);
}

.resource-header[hidden] {
  display: none !important;
}

.shared-site-header .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shared-nav-shell {
  width: min(1220px, calc(100% - 34px));
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 auto;
}

.shared-brand {
  min-width: 210px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0b233f;
  text-decoration: none;
}

.shared-brand img {
  width: 62px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 1px solid #dbe3e9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(11, 35, 63, .12);
}

.shared-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.shared-brand strong {
  font: 800 18px/1 "Manrope", Arial, sans-serif;
  letter-spacing: -.55px;
}

.shared-brand small {
  margin-top: 5px;
  color: #1d6fe9;
  font: 800 9px/1 "DM Sans", Arial, sans-serif;
  letter-spacing: 3.7px;
}

.shared-primary-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.shared-primary-nav > a {
  color: #425468;
  font: 700 13px/1.2 "DM Sans", Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}

.shared-primary-nav > a:hover,
.shared-primary-nav > a:focus-visible {
  color: #1d6fe9;
}

.shared-primary-nav .shared-login-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid #cad6df;
  border-radius: 10px;
  color: #0b233f;
  background: #fff;
  font-weight: 800;
}

.shared-primary-nav .shared-team-link {
  color: #fff;
  border-color: #0b233f;
  background: #0b233f;
}

body.session-active .shared-primary-nav .shared-login-link,
body.session-active .shared-primary-nav .shared-team-link {
  display: none !important;
}

.shared-signout {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d4dde4;
  border-radius: 9px;
  color: #a12e3a;
  background: #fff;
  font: 800 12px "DM Sans", Arial, sans-serif;
  cursor: pointer;
}

.shared-menu-toggle {
  width: 43px;
  height: 43px;
  display: none;
  margin-left: auto;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.shared-menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: #0b233f;
}

@media (max-width: 1120px) {
  .shared-nav-shell { gap: 16px; }
  .shared-primary-nav { gap: 13px; }
  .shared-primary-nav > a { font-size: 12px; }
  .shared-brand { min-width: 185px; }
  .shared-brand strong { font-size: 16px; }
}

@media (max-width: 920px) {
  body.shared-menu-open { overflow: hidden; }
  .shared-site-header,
  .shared-nav-shell { min-height: 68px; }
  .shared-nav-shell { width: calc(100% - 28px); }
  .shared-menu-toggle { display: block; }
  .shared-primary-nav {
    position: fixed;
    inset: 68px 0 auto;
    max-height: calc(100vh - 68px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 15px 20px 24px;
    overflow: auto;
    border-bottom: 1px solid #dce4ea;
    background: #fff;
    box-shadow: 0 22px 45px rgba(11, 35, 63, .14);
    transform: translateY(-125%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s, opacity .2s;
  }
  .shared-primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .shared-primary-nav > a {
    padding: 14px 5px;
    border-bottom: 1px solid #edf1f4;
    font-size: 15px;
  }
  .shared-primary-nav .shared-login-link {
    min-height: 48px;
    margin-top: 10px;
    border-bottom: 1px solid #cad6df;
  }
  .shared-signout { width: 100%; margin-top: 10px; }
}

@media (max-width: 480px) {
  .shared-brand { min-width: 0; }
  .shared-brand img { width: 54px; height: 40px; }
  .shared-brand strong { font-size: 15px; }
  .shared-brand small { font-size: 8px; letter-spacing: 3px; }
}
