/* Keep public, account, and authenticated headers on the same Oshi frame. */
.global-header.v35-site-header,
.account-header.v35-app-header {
  box-sizing: border-box;
  width: min(1224px, calc(100% - 40px));
  height: 74px;
  min-height: 74px;
  margin: 32px auto 0;
  padding-inline: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* The homepage has a more specific legacy rule; keep it on the account frame too. */
.v36-page-home .global-header.v35-site-header {
  width: min(1224px, calc(100% - 40px));
  margin: 32px auto 0;
}

.global-header.v35-site-header::before,
.global-header.v35-site-header::after,
.account-header.v35-app-header::before,
.account-header.v35-app-header::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block !important;
  content: "" !important;
  pointer-events: none;
}
.global-header.v35-site-header::before,
.account-header.v35-app-header::before {
  border: 0 !important;
  border-block: 1px solid var(--oshi-line-soft);
}
.global-header.v35-site-header::after,
.account-header.v35-app-header::after {
  background:
    linear-gradient(rgba(224,231,244,.55),rgba(224,231,244,.55)) left top/11px 1px no-repeat,
    linear-gradient(rgba(224,231,244,.55),rgba(224,231,244,.55)) left top/1px 11px no-repeat,
    linear-gradient(rgba(224,231,244,.55),rgba(224,231,244,.55)) right top/11px 1px no-repeat,
    linear-gradient(rgba(224,231,244,.55),rgba(224,231,244,.55)) right top/1px 11px no-repeat,
    linear-gradient(rgba(224,231,244,.55),rgba(224,231,244,.55)) left bottom/11px 1px no-repeat,
    linear-gradient(rgba(224,231,244,.55),rgba(224,231,244,.55)) left bottom/1px 11px no-repeat,
    linear-gradient(rgba(224,231,244,.55),rgba(224,231,244,.55)) right bottom/11px 1px no-repeat,
    linear-gradient(rgba(224,231,244,.55),rgba(224,231,244,.55)) right bottom/1px 11px no-repeat;
}

.v35-site-header .global-brand,
.v35-app-header .account-brand {
  position: relative;
  z-index: 1;
  flex: 0 0 84px;
  width: 84px;
  height: 42px;
  margin: 0;
  display: inline-flex;
  align-items: center;
}
.v35-site-header .v35-brand-lockup,
.v35-app-header .v35-brand-lockup {
  width: 84px;
  height: 42px;
}

.v35-site-header .global-navigation {
  position: absolute;
  inset: 0 22px 0 118px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  pointer-events: none;
}
.v35-site-header .global-navigation nav { pointer-events: auto; }
.v35-site-header .nav-left {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.v35-site-header .nav-left a,
.v35-site-header .nav-right a {
  font-size: 13px;
}
.v35-site-header .nav-right {
  position: static;
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}
.v35-site-header .nav-right a.nav-accent {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #394256;
  border-radius: 4px;
  color: #e9edf6;
  background: #171d29;
}
.v35-site-header .nav-right a.nav-accent:hover,
.v35-site-header .nav-right a.nav-accent:focus-visible {
  color: #fff;
  background: #202a3c;
  border-color: #52678f;
}
.v35-app-header nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.v35-app-header nav a { font-size: 13px; }

.v36-page-home .v35-site-header .nav-right a.nav-accent {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #394256;
  border-radius: 4px;
  color: #e9edf6;
  background: #171d29;
  box-shadow: none;
}
.v36-page-home .v35-site-header .nav-right a.nav-accent:hover,
.v36-page-home .v35-site-header .nav-right a.nav-accent:focus-visible {
  color: #fff;
  background: #202a3c;
  border-color: #52678f;
}

@media (max-width: 1080px) {
  .global-header.v35-site-header,
  .account-header.v35-app-header { padding-inline: 18px; }
  .v35-site-header .global-navigation { inset: 0 18px 0 108px; }
  .v35-site-header .nav-left { gap: 13px; }
  .v35-site-header .global-navigation { gap: 15px; }
}

@media (max-width: 760px) {
  .global-header.v35-site-header,
  .account-header.v35-app-header {
    width: calc(100% - 40px);
    height: auto;
    min-height: 68px;
    margin-top: 24px;
    padding: 10px 14px;
  }
  .v35-site-header .global-brand,
  .v35-app-header .account-brand {
    flex-basis: 68px;
    width: 68px;
    height: 34px;
  }
  .v35-site-header .v35-brand-lockup,
  .v35-app-header .v35-brand-lockup {
    width: 68px;
    height: 34px;
  }
  .v35-site-header .global-navigation {
    inset: calc(100% + 8px) 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    align-items: stretch;
    gap: 16px;
    padding: 22px;
    border: 1px solid #343b4a;
    background: #0a0d14;
  }
  .v35-site-header .global-navigation nav { width: 100%; }
  .v35-site-header .nav-left {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 0;
  }
  .v35-site-header .nav-left a {
    width: 100%;
    min-height: 44px;
    padding: 10px 0;
    justify-content: flex-start;
    font-size: 15px;
  }
  .v35-site-header .nav-right {
    position: static;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid var(--oshi-line);
  }
  .v35-site-header .nav-right .nav-accent {
    width: 100%;
    min-height: 44px;
    padding-inline: 18px;
    justify-content: center;
  }
  .v35-app-header nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 12px;
  }
  .v35-app-header nav a,
  .v35-app-header nav .account-button { font-size: 12px; }

  .v36-page-home .global-header.v35-site-header {
    width: calc(100% - 40px);
    height: auto;
    min-height: 68px;
    margin-top: 24px;
    padding: 10px 14px;
  }
  .v36-page-home .v35-site-header .nav-right .nav-accent {
    width: 100%;
    min-height: 44px;
    padding: 10px 18px;
  }
}

@media (max-width: 520px) {
  .global-header.v35-site-header,
  .account-header.v35-app-header { width: calc(100% - 40px); }
  .v35-app-header nav { gap: 6px 10px; }
  .v35-app-header nav a,
  .v35-app-header nav .account-button { font-size: 11px; }
}
