/* OUTCORA shared site header: banner above a distinct navigation row. */
.site-header {
  isolation: isolate;
  background-color: #070A0F;
  background-image: none;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 160px;
  background-image: url('./outcora-header-banner.png');
  background-repeat: no-repeat;
  background-position: calc(50% - 18px) center;
  background-size: min(1200px, 100vw) auto;
  pointer-events: none;
  z-index: 0;
}

.site-header .nav {
  position: relative;
  left: -18px;
  height: 210px;
  gap: 22px;
  padding-bottom: 8px;
}

.site-header .brand { min-width: 400px; }
.site-header .nav-links { gap: 24px; }
.site-header .nav-right { gap: 12px; }
.site-header .nav-links,
.site-header .nav-right,
.site-header .nav-links a { height: 42px; }
.site-header .nav-right .auth-link,
.site-header .nav-right .button,
.site-header .nav-right .lang { height: 42px; min-height: 42px; }

.site-header .nav-right > .outcora-x-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #627188;
  border-radius: 9px;
  background: rgba(7, 10, 15, .86);
  color: #F7F8FA;
  font: 600 11px/1 'Manrope', system-ui, sans-serif;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .nav-right > .outcora-x-follow:hover,
.site-header .nav-right > .outcora-x-follow:focus-visible {
  border-color: #6F94FF;
  background: #172439;
  outline-offset: 3px;
}

.market-band { top: 210px; }

@media (max-width: 1240px) {
  .site-header::before { display: none; }
  .site-header .nav {
    left: -8px;
    height: 106px;
    gap: 9px;
    padding-bottom: 0;
  }
  .site-header .brand { min-width: 0; }
  .site-header .nav-right { height: 44px; }
  .site-header .nav-right > .outcora-x-follow { display: none; }
  .site-header .mobile-menu {
    max-height: calc(100dvh - 106px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-header .mobile-menu-inner { padding: 14px 0 20px; }
  .site-header .mobile-menu-inner > .outcora-mobile-x {
    position: sticky;
    top: 0;
    z-index: 2;
    display: block;
    min-height: 46px;
    margin-bottom: 6px;
    padding: 12px 14px;
    border: 1px solid #4C70AE;
    border-radius: 9px;
    background: #13243B;
    color: #F7F8FA;
    font: 600 12px/1.5 'Manrope', system-ui, sans-serif;
    letter-spacing: .02em;
    text-transform: none;
  }
  .site-header .mobile-menu-inner > .outcora-mobile-x:hover,
  .site-header .mobile-menu-inner > .outcora-mobile-x:focus-visible {
    border-color: #6F94FF;
    outline-offset: 3px;
  }
  .market-band { top: 106px; }
}

@media (max-width: 720px) {
  .site-header .nav { left: -5px; height: 88px; }
  .site-header .mobile-menu { max-height: calc(100dvh - 88px); }
  .market-band { top: 88px; }
}

.site-header .nav-right > .outcora-youtube-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  min-height: 42px;
  border: 1px solid #627188;
  border-radius: 9px;
  background: rgba(7, 10, 15, .86);
  color: #F7F8FA;
  text-decoration: none;
}
.site-header .nav-right > .outcora-youtube-follow svg {
  width: 18px;
  height: 18px;
}
.site-header .nav-right > .outcora-youtube-follow:hover,
.site-header .nav-right > .outcora-youtube-follow:focus-visible {
  border-color: #6F94FF;
  background: #172439;
  outline-offset: 3px;
}
@media (max-width: 1240px) {
  .site-header .nav-right > .outcora-youtube-follow { display: none; }
}

/* Keep localized desktop navigation inside the header without moving the banner. */
@media (min-width: 1241px) and (max-width: 1460px) {
  .site-header .nav { gap: 16px; }
  .site-header .brand { min-width: 340px; }
  .site-header .nav-links { gap: 18px; }
  .site-header .nav-right { gap: 8px; }

  .site-header .nav-right > .outcora-x-follow {
    flex: 0 0 42px;
    width: 42px;
    padding: 0;
    font-size: 0;
  }
  .site-header .nav-right > .outcora-x-follow::before {
    content: "𝕏";
    font: 600 17px/1 system-ui, sans-serif;
  }
}

/* Keep the logo in the banner area and centre the complete desktop navigation independently. */
@media (min-width: 1241px) {
  .site-header .nav {
    left: -10px;
    justify-content: center;
  }
  .site-header .brand {
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    min-width: 0;
  }
}
