/* Segmented Qulexin identity. Loaded after the shared and Q-Suite styles. */
:root {
  --qulexin-header-height: 147px;
}

html {
  scroll-padding-top: calc(var(--qulexin-header-height) + 16px);
}

/* The compact mark is stacked: retain its native proportions in every slot. */
.site-header .nav-wrap {
  height: 112px;
  min-height: 112px;
}

.site-header .brand {
  width: 104px;
  flex: 0 0 104px;
}

.site-header .brand > img,
.footer-brand .brand > img,
.dialog-brand > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 1149 / 984;
  object-fit: contain;
  object-position: left center;
}

.site-header .mobile-menu {
  max-height: calc(100dvh - var(--qulexin-header-height));
}

.footer-brand .brand {
  width: 160px;
  max-width: 100%;
}

.dialog-brand {
  width: 96px;
  max-width: 100%;
  margin-bottom: 20px;
}

.dialog-brand > img {
  margin-bottom: 0;
}

/* Reversed artwork sits on the existing solid navy fields. */
.brand-ribbon > .container {
  gap: 36px;
}

.brand-ribbon img {
  display: block;
  width: 116px;
  height: auto;
  max-height: none;
  aspect-ratio: 1149 / 984;
  object-fit: contain;
  flex: 0 0 116px;
}

.brand-ribbon .button {
  margin-left: 0;
}

/* Product previews have an intentional tall-logo header rather than a crop. */
.q-screen-top {
  min-height: 112px;
  gap: 18px;
  align-items: center;
}

.q-screen-top > img {
  display: block;
  width: 96px;
  max-width: 31%;
  height: auto;
  max-height: none;
  aspect-ratio: 1149 / 984;
  object-fit: contain;
  flex: 0 0 auto;
}

.q-screen-top > span {
  min-width: 0;
}

.q-intro-product-top {
  gap: 18px;
  align-items: center;
}

.q-intro-product-top > img {
  display: block;
  width: 96px;
  max-width: 31%;
  height: auto;
  max-height: none;
  aspect-ratio: 1149 / 984;
  object-fit: contain;
  flex: 0 0 auto;
}

.q-intro-product-top > span {
  min-width: 0;
  padding-left: 18px;
}

.q-intro-product-top > i {
  flex: 0 0 36px;
  background: #071b3e;
  border: 1px solid #5b82c166;
  font-size: 0;
}

.q-intro-product-top > i > img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* Q-Suite navigation stays compact while the parent identity remains legible. */
.qs-workspace-brand > img {
  display: block;
  width: 100px;
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 1149 / 984;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 16px;
  opacity: 1;
  flex: 0 0 auto;
}

.qs-map-hub > img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 0;
  margin-bottom: 8px;
  flex: 0 0 auto;
}

.qs-map-hub > span {
  line-height: 1.15;
}

.qs-page .qs-map-hub > small {
  max-width: calc(100% - 20px);
  line-height: 1.45;
  margin-top: 7px;
}

.qs-avatar {
  font-size: 0;
}

.qs-avatar > img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.qs-fin-account-q {
  background: #061538;
  font-size: 0;
}

.qs-fin-account-q > img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.visual-brand > img {
  object-fit: contain;
}

/* Replace the former letter-Q decoration with a quiet version of the actual mark. */
.page-cta .cta-brand-q {
  width: 360px;
  height: 360px;
  right: -35px;
  bottom: -115px;
  font-size: 0;
  opacity: .1;
  z-index: 0;
}

.cta-brand-q > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.q-wallet-section,
.q-product-story {
  scroll-margin-top: 0;
}

@media (max-width: 1050px) {
  :root { --qulexin-header-height: 139px; }

  .site-header .nav-wrap {
    height: 104px;
    min-height: 104px;
  }

  .site-header .brand {
    width: 96px;
    flex-basis: 96px;
  }

  .brand-ribbon > .container {
    gap: 28px;
  }

  .brand-ribbon .button {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .qs-workspace-brand {
    align-items: center;
    gap: 20px;
  }

  .qs-workspace-brand > img {
    width: 84px;
    margin-bottom: 0;
  }

  .qs-map-hub > img {
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
  }
}

@media (max-width: 700px) {
  :root { --qulexin-header-height: 92px; }

  .site-header .nav-wrap {
    height: 92px;
    min-height: 92px;
  }

  .site-header .brand {
    width: 84px;
    flex-basis: 84px;
  }

  .footer-brand .brand {
    width: 150px;
  }

  .brand-ribbon img {
    width: 132px;
    flex-basis: auto;
  }

  .q-screen-top {
    padding: 16px;
    min-height: 100px;
    gap: 12px;
  }

  .q-screen-top > img {
    width: 84px;
  }

  .q-intro-product-top {
    gap: 12px;
    padding: 18px;
  }

  .q-intro-product-top > img {
    width: 84px;
  }

  .q-intro-product-top > span {
    padding-left: 12px;
  }

  .q-intro-product-top > i {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .q-intro-product-top > i > img {
    width: 22px;
    height: 22px;
  }

  .page-cta .cta-brand-q {
    width: 250px;
    height: 250px;
    right: -95px;
    bottom: -65px;
    opacity: .07;
  }
}

@media (max-width: 650px) {
  .qs-workspace-brand {
    gap: 16px;
  }

  .qs-workspace-brand > img {
    width: 78px;
  }

  .qs-map-hub > img {
    width: 38px;
    height: 38px;
    margin-bottom: 5px;
  }

  .qs-page .qs-map-hub > small {
    margin-top: 6px;
  }

  .qs-avatar > img {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 370px) {
  .q-screen-top {
    gap: 10px;
    padding: 15px;
  }

  .q-screen-top > img {
    width: 76px;
  }

  .q-screen-top > span {
    padding-left: 10px;
  }

  .q-intro-product-top {
    gap: 10px;
    padding: 16px;
  }

  .q-intro-product-top > img {
    width: 78px;
  }

  .q-intro-product-top > i {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .q-intro-product-top > i > img {
    width: 20px;
    height: 20px;
  }
}
