/* Shared Neoo product contract — navigation, display typography and responsive rhythm. */

.neoo-product-page.partners-page--overview {
  --partner-overview-header-h: clamp(92px, 6.58vw, 118px);
  --cb-title-hero: clamp(52px, 4vw, 68px);
  --cb-title-section: clamp(42px, 5.7vw, 76px);
  --cb-title-section-side: clamp(38px, 3.35vw, 56px);
  --cb-lead-section: clamp(20px, 2.2vw, 30px);
  --cb-title-cta: 30px;
  --neoo-product-lead: clamp(18px, 1.25vw, 21px);
}

.neoo-product-page .neoo-topbar {
  position: sticky;
  top: 0;
  z-index: 110;
  width: 100%;
  max-width: none;
  height: var(--partner-overview-header-h);
  min-height: var(--partner-overview-header-h);
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 1px 0 rgba(9, 16, 56, .08);
  backdrop-filter: blur(22px) saturate(135%);
}

.neoo-product-page .neoo-topbar .site-header__inner {
  width: min(calc(100% - 96px), 1576px);
  min-height: var(--partner-overview-header-h);
  padding-inline: 0;
}

.neoo-product-page .partner-brand--product {
  min-width: 0;
  gap: 0;
  white-space: nowrap;
}

.neoo-product-page .partner-brand__product {
  margin-inline-start: .08em;
  color: #17164f;
  font-family: var(--cb-display-font);
  font-size: clamp(20px, 1.55vw, 26px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.045em;
}

.neoo-product-page .neoo-subnav {
  top: var(--partner-overview-header-h);
}

.neoo-product-page #main h1[data-neoo-role="display"] {
  font-family: var(--cb-display-font) !important;
  font-size: var(--cb-title-hero) !important;
  font-weight: var(--cb-display-weight) !important;
  line-height: var(--cb-display-leading) !important;
  letter-spacing: var(--cb-display-tracking) !important;
}

.neoo-product-page #main h1[data-neoo-role="display"] em {
  padding-inline-end: .06em;
  color: transparent;
  font: inherit;
  letter-spacing: inherit;
  background: var(--cb-accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.neoo-product-page #main [data-neoo-role="eyebrow"] {
  font-family: var(--cb-font-body) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

.neoo-product-page #main [data-neoo-role="lead"] {
  /* Legacy mobile selectors carry up to five classes plus #main. */
  font-family: var(--cb-font-body) !important;
  font-size: var(--neoo-product-lead) !important;
  font-weight: 300 !important;
  line-height: 1.55 !important;
  letter-spacing: -.018em !important;
}

@media (min-width: 1121px) and (max-width: 1320px) {
  .neoo-product-page.partners-page--overview {
    --partner-overview-header-h: 76px;
  }

  .neoo-product-page .neoo-topbar .site-header__inner {
    width: calc(100% - 32px);
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .neoo-product-page .neoo-topbar .menu-toggle {
    width: 48px;
    height: 48px;
    margin-left: auto;
    padding: 0;
    display: grid;
    grid-template-columns: 21px;
    place-content: center;
    gap: 5px;
    border: 1px solid #cdd3e8;
    border-radius: 12px;
    color: #080a3e;
    background: #fff;
  }

  .neoo-product-page .neoo-topbar .menu-toggle > span {
    width: 21px;
    height: 1px;
    margin: 0;
    display: block;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .neoo-product-page .neoo-topbar .menu-toggle > b {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .neoo-product-page .neoo-topbar .menu-toggle[aria-expanded="true"] > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .neoo-product-page .neoo-topbar .menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
  }

  .neoo-product-page .neoo-topbar .menu-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .neoo-product-page .neoo-topbar .header-actions {
    width: auto;
    grid-column: auto;
    justify-self: end;
    gap: 0;
    transform: none;
  }

  .neoo-product-page .neoo-topbar .language-select {
    display: block;
  }

  .neoo-product-page .neoo-topbar :is(.login-link, .header-cta) {
    display: none;
  }

  .neoo-product-page .neoo-topnav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: calc(var(--partner-overview-header-h) + 4px);
    z-index: 130;
    width: auto;
    max-height: calc(100dvh - 92px);
    padding: 18px;
    display: grid;
    grid-column: auto;
    justify-content: stretch;
    align-items: stretch;
    gap: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #d9deef;
    border-radius: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    translate: 0 -12px;
    color: #080a3e;
    background: rgba(250, 251, 255, .985);
    box-shadow: 0 24px 70px rgba(36, 44, 100, .18);
    transition: opacity .2s ease, visibility .2s ease, translate .2s ease;
  }

  .neoo-product-page .neoo-topnav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    translate: 0 0;
  }

  .neoo-product-page .neoo-topnav > a,
  .neoo-product-page .neoo-mega-trigger {
    width: 100%;
    min-height: 48px;
    padding-inline: 14px;
    justify-content: space-between;
    border: 1px solid #e3e7f2;
    border-radius: 10px;
    color: #10133f;
    background: #fff;
  }

  .neoo-product-page .neoo-mega-wrap {
    width: 100%;
    min-height: 0;
    display: block;
  }

  .neoo-product-page .neoo-mega {
    position: static;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #dde3f1;
    border-radius: 14px;
    box-shadow: none;
  }

  .neoo-product-page .neoo-mega__inner {
    width: 100%;
    display: block;
  }

  .neoo-product-page :is(.neoo-mega__intro, .neoo-mega__close) {
    display: none;
  }

  .neoo-product-page .neoo-mega__groups {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .neoo-product-page .neoo-mega__group {
    padding: 12px;
  }
}

@media (max-width: 1120px) {
  .neoo-product-page.partners-page--overview {
    --partner-overview-header-h: 76px;
  }

  .neoo-product-page .neoo-topbar .site-header__inner {
    width: calc(100% - 32px);
  }
}

@media (max-width: 760px) {
  .neoo-product-page.partners-page--overview {
    --partner-overview-header-h: 72px;
  }

  .neoo-product-page .neoo-topbar .site-header__inner {
    width: calc(100% - 28px);
  }

  .neoo-product-page .partner-brand__product {
    font-size: 14px;
  }

  .neoo-product-page #main h1[data-neoo-role="display"] {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 390px) {
  .neoo-product-page .partner-brand__product {
    font-size: 13px;
  }
}
