/* Site header (inc/header-helpers.php: pc_site_header(), pc_account_tabs()) — every page and the log in screen.
   Old header rules in style-new.css target #menu-header / #navbarHeader / .navbar, which this markup no longer uses. */

#masthead.pc-header {
  position: relative;
  z-index: 1030;
  border-bottom: 1px solid #eef1fb;
  background: #fff;
  font-family: "Montserrat", Arial, Helvetica, sans-serif; }
  #masthead.pc-header *, #masthead.pc-header *::before, #masthead.pc-header *::after {
    box-sizing: border-box; }
  #masthead.pc-header a:focus-visible, #masthead.pc-header button:focus-visible {
    outline: 2px solid #3760f3;
    outline-offset: 2px; }
  #masthead.pc-header .pc-icon {
    display: block;
    flex-shrink: 0; }

.pc-header__inner {
  display: flex;
  align-items: center;
  gap: 16px 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px; }

#masthead .pc-header__logo {
  display: block;
  flex-shrink: 0;
  margin: 0; }
  #masthead .pc-header__logo img {
    display: block;
    width: 180px;
    height: auto; }

/* Main menu */
.pc-header__nav {
  flex: 1 1 auto;
  min-width: 0; }

#masthead .pc-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none; }
  #masthead .pc-nav li {
    margin: 0;
    padding: 0; }
    #masthead .pc-nav li::before, #masthead .pc-nav li::after {
      display: none; }
  #masthead .pc-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 10px;
    border-bottom: 2px solid transparent;
    background: none;
    color: #031c78;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap; }
    #masthead .pc-nav a:hover {
      color: #3760f3; }
  #masthead .pc-nav .current-menu-item > a, #masthead .pc-nav .current_page_item > a {
    border-bottom-color: #3760f3;
    color: #3760f3;
    font-weight: 700; }

#masthead .pc-nav__badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: #ffde59;
  color: #031c78;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4; }

#masthead .pc-header__panel-login {
  display: none; }

/* Right side */
.pc-header__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  margin-left: auto; }

#masthead .pc-header__login {
  padding: 12px 14px;
  color: #3760f3;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none; }
  #masthead .pc-header__login:hover {
    color: #042dc0; }

#masthead .pc-header__signup {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #3760f3;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap; }
  #masthead .pc-header__signup:hover {
    background: #042dc0;
    color: #fff; }
  #masthead .pc-header__signup span {
    color: inherit; }

#masthead .pc-header__signup-short {
  display: none; }

#masthead .pc-header__wallet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #e9edff;
  color: #042dc0;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap; }
  #masthead .pc-header__wallet:hover {
    background: #dfe5fb;
    color: #042dc0; }

/* Account dropdown */
.pc-account {
  position: relative; }

#masthead .pc-account__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 4px 10px 4px 4px;
  border: 1px solid #e3e8fb;
  border-radius: 999px;
  background: #fff;
  color: #031c78;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer; }
  #masthead .pc-account__btn:hover {
    border-color: #cdd7fc; }
  #masthead .pc-account__btn .pc-icon {
    transition: transform .2s ease; }
  #masthead .pc-account__btn[aria-expanded="true"] .pc-icon {
    transform: rotate(180deg); }

.pc-account__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #3760f3;
  color: #fff;
  font-weight: 800; }

.pc-account__name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; }

.pc-account__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1040;
  width: 260px;
  padding: 8px;
  border: 1px solid #e3e8fb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(3, 28, 120, 0.14); }
  .pc-account__menu[hidden] {
    display: none; }

.pc-account__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid #eef1fb; }
  .pc-account__who strong {
    color: #031c78;
    font-size: 14px;
    font-weight: 800; }
  .pc-account__who span {
    overflow: hidden;
    color: #5b6480;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap; }

#masthead .pc-account__list {
  display: flex;
  flex-direction: column;
  margin: 6px 0;
  padding: 0;
  list-style: none; }
  #masthead .pc-account__list li {
    margin: 0;
    padding: 0; }
    #masthead .pc-account__list li::before, #masthead .pc-account__list li::after {
      display: none; }
  #masthead .pc-account__list a, #masthead .pc-account__logout {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #031c78;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none; }
    #masthead .pc-account__list a:hover, #masthead .pc-account__logout:hover {
      background: #f4f7ff;
      color: #031c78; }
  #masthead .pc-account__list .current-menu-item > a {
    color: #3760f3;
    font-weight: 700; }

#masthead .pc-account__logout {
  border-top: 1px solid #eef1fb;
  border-radius: 0 0 10px 10px;
  color: #5b6480; }

/* Burger (< 992px) */
#masthead .pc-header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #e3e8fb;
  border-radius: 12px;
  background: #fff;
  color: #031c78;
  cursor: pointer; }

#masthead .pc-header__burger-close {
  display: none; }

#masthead.is-open .pc-header__burger-open {
  display: none; }

#masthead.is-open .pc-header__burger-close {
  display: block; }

/* ---------- Account tabs under the header (account pages) ---------- */
.pc-account-tabs {
  border-bottom: 1px solid #e3e8fb;
  background: #fff;
  font-family: "Montserrat", Arial, Helvetica, sans-serif; }

.pc-account-tabs__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px; }

.pc-account-tabs #member-account {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  background: none; }
  .pc-account-tabs #member-account li.menu-item {
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none; }
  .pc-account-tabs #member-account li::before, .pc-account-tabs #member-account li::after, .pc-account-tabs #member-account li.active::before {
    display: none; }
  .pc-account-tabs #member-account li.menu-item a {
    display: block;
    height: auto;
    margin: 0;
    padding: 16px 14px 13px;
    border-bottom: 3px solid transparent;
    color: #031c78;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: normal;
    text-align: left;
    text-decoration: none; }
    .pc-account-tabs #member-account li.menu-item a:hover {
      color: #3760f3; }
  .pc-account-tabs #member-account li.current-menu-item > a, .pc-account-tabs #member-account li.active > a {
    border-bottom-color: #3760f3;
    color: #3760f3;
    font-weight: 700; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1100px) {
  .pc-header__inner {
    gap: 12px 16px; }
  #masthead .pc-nav a {
    padding-right: 10px;
    padding-left: 10px; } }

@media (max-width: 991px) {
  .pc-header__inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px; }
  #masthead .pc-header__logo img {
    width: 140px; }
  #masthead .pc-header__burger {
    display: flex; }
  #masthead .pc-header__login {
    display: none; }
  #masthead .pc-header__signup {
    min-height: 44px;
    padding: 8px 16px;
    font-size: 14px; }
  #masthead .pc-header__signup-long {
    display: none; }
  #masthead .pc-header__signup-short {
    display: inline; }
  #masthead .pc-header__wallet {
    width: 44px;
    padding: 0;
    justify-content: center; }
    #masthead .pc-header__wallet span {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0); }
  .pc-account__name {
    display: none; }
  /* Menu opens as a panel under the bar */
  .pc-header__nav {
    display: none;
    order: 3;
    flex: 1 1 100%;
    margin: 0 -16px;
    padding: 4px 16px 20px;
    border-top: 1px solid #eef1fb;
    background: #fff; }
  #masthead.is-open .pc-header__nav {
    display: block; }
  #masthead .pc-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0; }
    #masthead .pc-nav a {
      display: flex;
      padding: 14px 0;
      border-bottom: 1px solid #eef1fb;
      font-size: 16px; }
    #masthead .pc-nav .current-menu-item > a, #masthead .pc-nav .current_page_item > a {
      border-bottom-color: #eef1fb; }
  #masthead .pc-header__panel-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 16px;
    border: 2px solid #3760f3;
    border-radius: 999px;
    color: #3760f3;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none; }
  .pc-account-tabs__inner {
    padding: 0 8px; }
  .pc-account-tabs #member-account {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none; }
    .pc-account-tabs #member-account li.menu-item a {
      white-space: nowrap; } }

@media (max-width: 380px) {
  #masthead .pc-header__logo img {
    width: 120px; } }
