.shared-header-root {
  --shared-purple-700: #6d28d9;
  --shared-purple-600: #7c3aed;
  --shared-purple-500: #8b5cf6;
  --shared-light-text: #171a2b;
  --shared-light-muted: #62677a;
  position: relative;
  z-index: 100;
  overflow: visible;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(135deg, var(--shared-purple-700) 0%, var(--shared-purple-600) 64%, #9333ea 100%);
  color: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
}

.shared-header-root * {
  box-sizing: border-box;
}

.shared-header-root a {
  color: inherit;
  text-decoration: none;
}

.shared-header-root .hp-v2-header__inner {
  width: min(1160px, calc(100% - 56px));
  min-height: 66px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
  margin-inline: auto;
}

.shared-header-root .hp-v2-brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: 0;
}

.shared-header-root .hp-v2-brand__mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 12px 24px rgba(67, 24, 132, .22);
  font-size: 18px;
}

.shared-header-root .hp-v2-brand__text {
  color: #fff;
  font-size: 17px;
}

.shared-header-root .hp-v2-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, .65vw, 9px);
}

.shared-header-root .hp-v2-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.shared-header-root .hp-v2-nav a,
.shared-header-root .hp-v2-nav-trigger {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 12px;
  padding: 0 7px;
  background: transparent;
  color: rgba(255, 255, 255, .84);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.shared-header-root .hp-v2-nav a:hover,
.shared-header-root .hp-v2-nav a.is-active,
.shared-header-root .hp-v2-nav-trigger:hover,
.shared-header-root .hp-v2-nav-trigger[aria-expanded="true"],
.shared-header-root .hp-v2-nav-trigger.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.shared-header-root .hp-v2-nav-chevron,
.shared-header-root .hp-v2-date-selector__chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

.shared-header-root .hp-v2-nav-trigger[aria-expanded="true"] .hp-v2-nav-chevron,
.shared-header-root .hp-v2-date-selector[aria-expanded="true"] .hp-v2-date-selector__chevron {
  transform: rotate(225deg) translateY(-1px);
}

.shared-header-root .hp-v2-mega-menu,
.shared-header-root .hp-v2-dropdown-menu,
.shared-header-root .hp-v2-date-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 300;
  border: 1px solid #ddd6fe;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(76, 29, 149, .18);
  padding: 10px;
}

.shared-header-root .hp-v2-mega-menu[hidden],
.shared-header-root .hp-v2-dropdown-menu[hidden],
.shared-header-root .hp-v2-date-menu[hidden] {
  display: none;
}

.shared-header-root .hp-v2-months-menu {
  left: 50%;
  right: auto;
  width: min(440px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  transform: translateX(-50%);
}

.shared-header-root .hp-v2-dropdown-menu,
.shared-header-root .hp-v2-date-menu {
  width: 238px;
  display: grid;
  gap: 5px;
}

.shared-header-root .hp-v2-mega-menu a,
.shared-header-root .hp-v2-dropdown-menu a,
.shared-header-root .hp-v2-date-menu a {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  padding: 0 12px;
  color: var(--shared-light-text);
  font-size: 14px;
  font-weight: 760;
}

.shared-header-root .hp-v2-mega-menu a:hover,
.shared-header-root .hp-v2-dropdown-menu a:hover,
.shared-header-root .hp-v2-date-menu a:hover,
.shared-header-root .hp-v2-mega-menu a:focus-visible,
.shared-header-root .hp-v2-dropdown-menu a:focus-visible,
.shared-header-root .hp-v2-date-menu a:focus-visible {
  background: #f3efff;
  color: var(--shared-purple-700);
}

.shared-header-root .hp-v2-mega-menu a[aria-current="date"],
.shared-header-root .hp-v2-mobile-months a[aria-current="date"] {
  background: var(--shared-purple-600);
  color: #fff;
}

.shared-header-root .hp-v2-header__actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
}

.shared-header-root .hp-v2-date-selector,
.shared-header-root .hp-v2-icon-link,
.shared-header-root .hp-v2-menu-button {
  min-height: 42px;
  border-radius: 13px;
}

.shared-header-root .hp-v2-date-selector {
  min-width: 124px;
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .88);
  background: #fff;
  color: var(--shared-purple-700);
  cursor: pointer;
  font: inherit;
  padding: 4px 10px;
  box-shadow: 0 10px 24px rgba(68, 28, 132, .14);
}

.shared-header-root .hp-v2-date-selector__day {
  color: var(--shared-purple-700);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.shared-header-root .hp-v2-date-selector__body {
  display: grid;
  gap: 1px;
  text-align: left;
  white-space: nowrap;
}

.shared-header-root .hp-v2-date-selector__month {
  color: var(--shared-light-text);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
}

.shared-header-root .hp-v2-date-selector__weekday {
  color: var(--shared-light-muted);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 760;
  white-space: nowrap;
}

.shared-header-root .hp-v2-date-menu {
  top: calc(100% + 10px);
  right: 246px;
}

.shared-header-root .hp-v2-icon-link,
.shared-header-root .hp-v2-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.shared-header-root .hp-v2-icon-link {
  min-width: 184px;
  justify-content: flex-start;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #fff;
  color: var(--shared-light-text);
  padding: 0 14px;
}

.shared-header-root .hp-v2-icon-link__icon {
  width: 15px;
  height: 15px;
  position: relative;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.shared-header-root .hp-v2-icon-link__icon::after {
  width: 7px;
  height: 2px;
  position: absolute;
  right: -6px;
  bottom: -4px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.shared-header-root .hp-v2-icon-link__shortcut {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 8px;
  background: #eef0f4;
  color: var(--shared-light-muted);
  font-size: 11px;
  font-weight: 850;
}

.shared-header-root .hp-v2-menu-button {
  display: none;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
}

.shared-header-root .hp-v2-menu-button__icon,
.shared-header-root .hp-v2-menu-button__icon::before,
.shared-header-root .hp-v2-menu-button__icon::after {
  width: 16px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.shared-header-root .hp-v2-menu-button__icon {
  position: relative;
}

.shared-header-root .hp-v2-menu-button__icon::before,
.shared-header-root .hp-v2-menu-button__icon::after {
  position: absolute;
  left: 0;
}

.shared-header-root .hp-v2-menu-button__icon::before {
  top: -5px;
}

.shared-header-root .hp-v2-menu-button__icon::after {
  top: 5px;
}

.shared-header-root .hp-v2-mobile-menu {
  border-top: 1px solid rgba(255, 255, 255, .2);
  background: rgba(91, 33, 182, .96);
}

.shared-header-root .hp-v2-mobile-menu__nav {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
  padding: 10px 0 16px;
  display: grid;
  gap: 8px;
}

.shared-header-root .hp-v2-mobile-menu__nav a,
.shared-header-root .hp-v2-mobile-months summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-weight: 850;
}

.shared-header-root .hp-v2-mobile-months {
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
}

.shared-header-root .hp-v2-mobile-months summary {
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

.shared-header-root .hp-v2-mobile-months summary::-webkit-details-marker {
  display: none;
}

.shared-header-root .hp-v2-mobile-months summary::after {
  content: "+";
}

.shared-header-root .hp-v2-mobile-months[open] summary::after {
  content: "-";
}

.shared-header-root .hp-v2-mobile-months__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0 10px 10px;
}

.shared-header-root .hp-v2-mobile-menu__nav .hp-v2-mobile-months__grid a {
  min-height: 38px;
  justify-content: center;
  padding: 0 8px;
  background: rgba(255, 255, 255, .12);
  font-size: 13px;
}

.shared-header-root--immersive {
  width: min(1160px, calc(100% - 56px));
  margin: 12px auto 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(12, 14, 24, .46);
  box-shadow: 0 12px 32px rgba(4, 7, 16, .18);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.shared-header-root--immersive .hp-v2-header__inner {
  width: 100%;
  padding-inline: 18px;
}

.shared-header-root--immersive .hp-v2-brand__mark {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 10px 22px rgba(0, 0, 0, .18);
}

.shared-header-root--immersive .hp-v2-nav a,
.shared-header-root--immersive .hp-v2-nav-trigger {
  color: rgba(255, 255, 255, .84);
}

.shared-header-root--immersive .hp-v2-nav a:hover,
.shared-header-root--immersive .hp-v2-nav-trigger:hover,
.shared-header-root--immersive .hp-v2-nav-trigger[aria-expanded="true"],
.shared-header-root--immersive .hp-v2-nav-trigger.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.shared-header-root--immersive .hp-v2-mega-menu,
.shared-header-root--immersive .hp-v2-dropdown-menu,
.shared-header-root--immersive .hp-v2-date-menu {
  z-index: 30;
  height: auto;
  background: #fff;
  color: var(--shared-light-text);
}

.shared-header-root--immersive .hp-v2-mega-menu a,
.shared-header-root--immersive .hp-v2-dropdown-menu a,
.shared-header-root--immersive .hp-v2-date-menu a {
  color: var(--shared-light-text);
  opacity: 1;
}

.shared-header-root--immersive .hp-v2-mega-menu a:hover,
.shared-header-root--immersive .hp-v2-dropdown-menu a:hover,
.shared-header-root--immersive .hp-v2-date-menu a:hover,
.shared-header-root--immersive .hp-v2-mega-menu a:focus-visible,
.shared-header-root--immersive .hp-v2-dropdown-menu a:focus-visible,
.shared-header-root--immersive .hp-v2-date-menu a:focus-visible {
  background: #f3efff;
  color: var(--shared-purple-700);
}

.shared-header-root--immersive .hp-v2-mega-menu a[aria-current="date"] {
  background: var(--shared-purple-600);
  color: #fff;
}

.shared-header-root--immersive .hp-v2-date-selector {
  border-color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .94);
}

.shared-header-root--immersive .hp-v2-icon-link {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .94);
}

.shared-header-root--immersive .hp-v2-mobile-menu {
  margin-inline: -1px;
  border-top-color: rgba(255, 255, 255, .16);
  border-radius: 0 0 18px 18px;
  background: rgba(12, 14, 24, .78);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.shared-header-root .hp-v2-brand:focus-visible,
.shared-header-root .hp-v2-nav a:focus-visible,
.shared-header-root .hp-v2-nav-trigger:focus-visible,
.shared-header-root .hp-v2-date-selector:focus-visible,
.shared-header-root .hp-v2-icon-link:focus-visible,
.shared-header-root .hp-v2-menu-button:focus-visible,
.shared-header-root .hp-v2-mobile-menu__nav a:focus-visible,
.shared-header-root .hp-v2-mobile-months summary:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .78);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .shared-header-root .hp-v2-brand__text {
    font-size: 16px;
  }

  .shared-header-root .hp-v2-nav a,
  .shared-header-root .hp-v2-nav-trigger {
    padding-inline: 6px;
    font-size: 13px;
  }

  .shared-header-root .hp-v2-icon-link {
    min-width: 164px;
  }

  .shared-header-root .hp-v2-icon-link__shortcut {
    display: none;
  }

  .shared-header-root .hp-v2-date-selector {
    min-width: 106px;
    padding-inline: 9px;
  }
}

@media (max-width: 768px) {
  .shared-header-root--immersive {
    width: min(100% - 32px, 1160px);
    margin-top: 10px;
  }

  .shared-header-root--immersive .hp-v2-header__inner {
    padding-inline: 12px;
  }
}

@media (max-width: 390px) {
  .shared-header-root--immersive {
    width: calc(100% - 24px);
  }
}

@media (max-width: 1024px) {
  .shared-header-root .hp-v2-header__inner {
    gap: 10px;
  }

  .shared-header-root .hp-v2-date-selector__weekday {
    display: none;
  }

  .shared-header-root .hp-v2-icon-link {
    min-width: 132px;
  }
}

@media (max-width: 768px) {
  .shared-header-root .hp-v2-header__inner {
    min-height: 68px;
    display: flex;
    justify-content: space-between;
  }

  .shared-header-root .hp-v2-nav {
    display: none;
  }

  .shared-header-root .hp-v2-date-selector,
  .shared-header-root .hp-v2-date-menu {
    display: none;
  }

  .shared-header-root .hp-v2-menu-button {
    display: inline-flex;
  }

  .shared-header-root .hp-v2-icon-link {
    min-width: 44px;
    width: 44px;
    padding: 0;
  }

  .shared-header-root .hp-v2-icon-link__text,
  .shared-header-root .hp-v2-icon-link__shortcut {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .shared-header-root .hp-v2-mobile-menu {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
}

@media (max-width: 390px) {
  .shared-header-root .hp-v2-header__inner {
    width: calc(100% - 32px);
  }

  .shared-header-root .hp-v2-brand__text {
    font-size: 16px;
  }

  .shared-header-root .hp-v2-menu-button__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .shared-header-root .hp-v2-menu-button {
    width: 44px;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shared-header-root .hp-v2-nav-chevron,
  .shared-header-root .hp-v2-date-selector__chevron {
    transition: none;
  }
}
