/* Shared website navigation, rendered once by Document. */
.site-shell {
  --site-header-height: 64px;
}
.site-shell #site-nav {
  --home-font-family: 'MiSans Navigation', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-family: var(--home-font-family);
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--site-header-height);
  color: #1d1d1f;
  background: #fff;
}
@supports ((-webkit-backdrop-filter: blur(16px)) or (backdrop-filter: blur(16px))) {
  .site-shell #site-nav[data-scrolled='true'] {
    background: rgb(250 250 252 / 78%);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
  }
}
/* On these pages the banner starts beneath the navigation row. */
.site-shell:is([data-site-page='index'], [data-site-page='scenarios']) #site-nav {
  position: sticky;
}
.site-shell[data-site-page='scenarios'] .scenario-experience {
  --scenario-header-height: var(--site-header-height);
}
html.app-mode .site-shell #site-nav {
  display: none;
}
.site-shell #site-nav .marketing-nav-inner {
  display: flex;
  align-items: center;
  width: min(92%, 1440px);
  height: 100%;
  margin-inline: auto;
}
.site-shell #site-nav .marketing-nav-inner,
.site-shell #site-nav .marketing-nav-links,
.site-shell #site-nav .marketing-nav-tools {
  gap: clamp(12px, 2.1vw, 40px);
}
.site-shell #site-nav .site-wordmark {
  flex: 0 0 87px;
  font: 600 20px/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.site-shell #site-nav .marketing-region,
.site-shell #site-nav .marketing-nav-links {
  font-size: 14px;
}
.site-shell #site-nav .marketing-nav-links {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}
.site-shell #site-nav .marketing-nav-links > a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 100%;
  font-weight: 500;
}
.site-shell #site-nav a:hover {
  opacity: 0.76;
}
.site-shell #site-nav a[aria-current='page'] {
  font-weight: 600;
}
.site-shell #site-nav .marketing-nav-links a[aria-current='page']::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  width: 16px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
}
.site-shell #site-nav .marketing-nav-tools {
  display: flex;
  align-items: center;
  margin-left: auto;
  white-space: nowrap;
}
.site-shell #site-nav .marketing-region {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-weight: 400;
}
.site-shell #site-nav .marketing-region img {
  flex: none;
}
.site-shell #site-nav #account-menu-wrapper,
.site-shell #site-nav #mobile-menu-btn {
  margin-left: 0;
}
.site-shell #site-nav #account-nav-link {
  height: 36px;
  width: 28px;
  padding: 0;
}
.site-shell #site-nav .site-mobile-links {
  display: grid;
  padding: 12px;
  text-align: center;
}
.site-shell #site-nav .site-mobile-links a {
  padding: 10px;
}
@media (max-width: 1200px) {
  .site-shell #site-nav .marketing-nav-inner,
  .site-shell #site-nav .marketing-nav-links,
  .site-shell #site-nav .marketing-nav-tools {
    gap: 12px;
  }
}
@media (max-width: 1023px) {
  .site-shell #site-nav .marketing-nav-links {
    display: none;
  }
  .site-shell #site-nav .marketing-region {
    font-size: inherit;
  }
}
@media (max-width: 640px) {
  .site-shell {
    --site-header-height: 56px;
  }
  .site-shell #site-nav #account-nav-link {
    width: 24px;
  }
  .site-shell #site-nav #account-nav-link img {
    width: 20px;
    height: 20px;
  }
}
.site-shell #site-nav .marketing-cart-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.site-shell #site-nav .marketing-cart-link #cart-count {
  position: static;
  background: var(--brand-blue);
}

/* Shared floating service contact panel. */
.site-shell .site-support {
  position: fixed;
  z-index: 60;
  right: 28px;
  bottom: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  color: #262629;
  font-size: 14px;
  line-height: 1.6;
}
.site-shell .site-support-trigger {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid #eeeef1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 20px #00000012;
}
.site-shell .site-support-trigger > img {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 60px;
  min-width: 60px;
  max-width: none;
  height: 60px;
  transform: translateX(-50%);
  object-fit: contain;
}
.site-shell .site-support-trigger > svg {
  width: 24px;
  height: 24px;
}
.site-shell .site-support-panel {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: 310px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 128px);
  max-height: calc(100dvh - 128px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 24px 24px;
  border: 1px solid #f1f1f4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 36px #00000014;
}
.site-shell .site-support-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.site-shell .site-support-heading h2 {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
}
.site-shell .site-support-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: -8px;
  border: 0;
  background: transparent;
  color: #76767f;
  font-size: 24px;
  line-height: 1;
}
.site-shell .site-support-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
}
.site-shell .site-support-item + .site-support-item {
  border-top: 1px solid #ededf0;
}
.site-shell .site-support-item:last-child {
  padding-bottom: 0;
}
.site-shell .site-support-item > svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.site-shell .site-support-item h3 {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
}
.site-shell .site-support-contact {
  color: var(--brand-blue);
  font-size: 14px;
  line-height: 24px;
  overflow-wrap: anywhere;
}
.site-shell .site-support-qr {
  display: block;
  width: 128px;
  height: 128px;
  padding: 7px;
  margin-top: 12px;
  border: 1px solid #ededf0;
  border-radius: 8px;
  background: #fff;
}
.site-shell .site-support-qr img {
  display: block;
  width: 112px;
  height: 112px;
  max-width: none;
  object-fit: contain;
}
.site-shell .site-support-item p {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 20px;
  color: #76767f;
}
@media (max-width: 640px) {
  .site-shell .site-support {
    right: 16px;
    bottom: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .site-shell .site-support-trigger {
    width: 40px;
    height: 40px;
  }
  .site-shell .site-support-trigger > img {
    width: 60px;
    min-width: 60px;
    height: 60px;
  }
  .site-shell .site-support-panel {
    bottom: 56px;
    max-width: calc(100vw - 32px);
  }
}

/* Keep the 16px gap between avatar and panel inside the hover region. */
.site-shell .site-support.is-open::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 40px;
  width: 310px;
  max-width: calc(100vw - 32px);
  height: 16px;
}

.site-shell .site-back-top {
  position: fixed;
  z-index: 59;
  right: 28px;
  bottom: 84px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #eeeef1;
  border-radius: 50%;
  background: #fff;
  color: #262629;
  box-shadow: 0 4px 20px #00000012;
  transition: background-color 0.2s;
}
.site-shell .site-back-top:hover {
  background: #f7f8fa;
}
.site-shell .site-back-top svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 640px) {
  .site-shell .site-back-top {
    right: 16px;
    bottom: 76px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-shell #site-nav { transition: background-color var(--nav-motion); }
  .site-shell #site-nav :is(a, button) {
    transition: opacity var(--nav-motion), color var(--nav-motion);
  }
  .site-shell #site-nav :is(#mobile-dropdown, #account-dropdown) {
    transition: opacity var(--nav-motion), display 320ms allow-discrete;
  }
  .site-shell #site-nav :is(#mobile-dropdown, #account-dropdown).hidden {
    opacity: 0;
    pointer-events: none;
  }
  @starting-style {
    .site-shell #site-nav :is(#mobile-dropdown, #account-dropdown):not(.hidden) { opacity: 0; }
  }
  .site-shell #site-nav :is(.site-mobile-links, #account-dropdown) > * {
    --item-delay: 80ms;
    animation: site-menu-item var(--nav-motion) var(--item-delay) backwards;
  }
  .site-shell #site-nav :is(.site-mobile-links, #account-dropdown) > :nth-child(2) { --item-delay: 100ms; }
  .site-shell #site-nav :is(.site-mobile-links, #account-dropdown) > :nth-child(3) { --item-delay: 120ms; }
  .site-shell #site-nav .site-mobile-links > :nth-child(4) { --item-delay: 140ms; }
  .site-shell #site-nav .site-mobile-links > :nth-child(5) { --item-delay: 160ms; }
  .site-shell #site-nav .site-mobile-links > :nth-child(6) { --item-delay: 180ms; }
  .site-shell #site-nav .site-mobile-links > :nth-child(7) { --item-delay: 200ms; }
}
@keyframes site-menu-item {
  from { opacity: 0; translate: 0 -8px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .site-shell .site-support-panel { transition: opacity var(--nav-motion); }
  .site-shell .site-support-panel[inert] { opacity: 0; pointer-events: none; }
  @starting-style {
    .site-shell .site-support-panel:not([inert]) { opacity: 0; }
  }
}
