/* One public navigation shell: fixed header, desktop rail, mobile drawer. */
html { --header-h: 64px; --header-content-gap: 16px; --sidebar-w: 280px; }

html body.cf-dual-nav .main-header.cf-shared-header {
  position: fixed !important;
  inset: 0 0 auto !important;
  z-index: 1200 !important;
  width: 100% !important;
  height: var(--header-h) !important;
  min-height: var(--header-h) !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--shadow-color,var(--text)) 7%,transparent) !important;
}
.cf-shared-header-inner {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: clamp(6px, .75vw, 12px) !important;
  min-width: 0 !important;
  height: var(--header-h) !important;
  padding-inline: clamp(10px, 1.4vw, 20px) !important;
}
.cf-header-brand-group { flex: 0 0 auto !important; gap: 8px !important; }
.cf-sidebar-toggle { display: grid !important; }
.cf-brand { flex: 0 0 auto; gap: 7px; white-space: nowrap; text-transform: uppercase; }
.cf-brand > span { white-space: nowrap; }
.cf-primary-nav { display: flex !important; min-width: 0 !important; flex: 0 1 auto !important; order: 1 !important; }
.cf-primary-nav-items { min-width: 0 !important; flex: 0 1 auto !important; flex-wrap: nowrap !important; }
.cf-primary-link, .cf-nav-more-trigger { flex: 0 0 auto !important; white-space: nowrap !important; }
.cf-global-search { order: 2 !important; flex: 1 1 200px !important; width: auto !important; min-width: 90px !important; max-width: 360px !important; }
.cf-utility-actions { order: 3 !important; flex: 0 0 auto !important; margin-inline-start: auto !important; flex-wrap: nowrap !important; white-space: nowrap !important; }
.cf-opportunity-cta { flex: 0 0 auto !important; white-space: nowrap !important; }
.cf-brand span { font-size: inherit; }

/* Keep the existing vertical shell geometry while exposing the shared top nav. */
html[data-header-layout="vertical"] body.cf-dual-nav { padding: 0 !important; }
html[data-header-layout="vertical"] .app-main {
  width: calc(100% - var(--sidebar-w)) !important;
  max-width: calc(100% - var(--sidebar-w)) !important;
  margin-inline-start: var(--sidebar-w) !important;
  padding-block-start: calc(var(--header-h) + var(--header-content-gap)) !important;
}
html body.cf-dual-nav .cf-sidebar {
  position: fixed !important;
  inset: var(--header-h) auto 0 0 !important;
  z-index: 1240 !important;
  display: flex !important;
  width: var(--sidebar-w) !important;
  max-width: var(--sidebar-w) !important;
  height: auto !important;
  overflow: hidden !important;
  border: 0 !important;
  border-inline-end: 1px solid var(--border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
.cf-sidebar-head { min-height: 48px !important; text-transform: uppercase !important; letter-spacing: .08em !important; }
.cf-sidebar-head > span { font-size: .66rem !important; font-weight: 800 !important; }
.cf-sidebar-nav { flex: 1 1 0 !important; min-height: 0 !important; overflow-y: auto !important; }
.cf-sidebar-nav .cf-side-home,
.cf-sidebar-nav .cf-hub-toggle {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 9px !important;
  white-space: nowrap !important;
  list-style: none !important;
}
.cf-hub-toggle::-webkit-details-marker { display: none !important; }
.cf-hub-toggle::marker { content: "" !important; font-size: 0 !important; }
.cf-sidebar-nav .cf-hub-title,
.cf-sidebar-nav .cf-side-label { min-width: 0 !important; flex: 1 1 auto !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.cf-sidebar-nav .cf-hub-count,
.cf-sidebar-nav .cf-side-count { flex: 0 0 auto !important; margin-inline-start: auto !important; white-space: nowrap !important; }
.cf-sidebar-nav .cf-hub-chevron { display: grid !important; flex: 0 0 16px !important; width: 16px !important; height: 16px !important; place-items: center; transition: transform 150ms ease; }
.cf-sidebar-nav .cf-hub-chevron svg { width: 15px !important; height: 15px !important; }
.cf-hub-group[open] > .cf-hub-toggle .cf-hub-chevron { transform: rotate(180deg) !important; }
.cf-sidebar-nav .cf-hub-links-inner { margin-inline-start: 18px !important; padding-inline-start: 10px !important; border-inline-start: 1px solid var(--border) !important; }
.cf-sidebar-nav .cf-side-link { display: flex !important; min-width: 0 !important; align-items: center !important; flex-wrap: nowrap !important; gap: 9px !important; white-space: nowrap !important; }
.cf-sidebar-nav .cf-side-link.is-active,
.cf-sidebar-nav .cf-side-home.is-active,
.cf-sidebar-nav .cf-hub-toggle.is-active { position: relative; }
.cf-sidebar-nav .is-active::before { position: absolute; inset-block: 7px; inset-inline-start: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); content: ""; }
.cf-sidebar-promos { flex: 0 0 auto !important; gap: 7px !important; padding: 8px !important; }
.cf-sidebar-promo { gap: 4px 8px !important; padding: 8px !important; border-radius: 10px !important; }
.cf-sidebar-promo-copy h4 { font-size: .7rem !important; }
.cf-sidebar-promo-copy p { font-size: .62rem !important; }
.cf-sidebar-promo > a { font-size: .62rem !important; }
.cf-appearance-dialog .header-layout-setting { display: none !important; }

@media (min-width: 1024px) and (max-width: 1199px) {
  .cf-primary-nav-items > .cf-primary-link:nth-child(n+4) { display: none !important; }
  .cf-nav-more-wrap { display: block !important; }
  .cf-global-search { flex-basis: 130px !important; max-width: 200px !important; }
  .cf-utility-actions { gap: 3px !important; }
  .cf-opportunity-cta { padding-inline: 8px !important; font-size: .68rem !important; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  html[data-header-layout] .app-main { width: 100% !important; max-width: 100% !important; margin-inline-start: 0 !important; padding-block-start: calc(var(--header-h) + 12px) !important; }
  html body.cf-dual-nav .cf-sidebar {
    inset: var(--header-h) auto 0 0 !important;
    width: min(380px, 84vw) !important;
    max-width: min(380px, 84vw) !important;
    transform: translateX(-105%) !important;
    transition: transform 220ms ease !important;
    box-shadow: 0 12px 34px color-mix(in srgb,var(--shadow-color,var(--text)) 18%,transparent) !important;
  }
  html:dir(rtl) body.cf-dual-nav .cf-sidebar { inset-inline-start: auto !important; inset-inline-end: 0 !important; transform: translateX(105%) !important; }
  html body.cf-dual-nav .cf-sidebar.open { transform: translateX(0) !important; }
  .cf-sidebar-backdrop { position: fixed !important; inset: var(--header-h) 0 0 !important; z-index: 1230 !important; }
  .cf-sidebar-backdrop.show { display: block !important; }
  .cf-sidebar-close { display: grid !important; }
  .cf-primary-link:nth-child(n+4) { display: none !important; }
  .cf-global-search { flex-basis: 130px !important; }
  .cf-opportunity-cta { display: none !important; }
}
@media (max-width: 767px) {
  html[data-header-layout] .app-main { width: 100% !important; max-width: 100% !important; margin-inline-start: 0 !important; padding-block-start: calc(var(--header-h) + 10px) !important; }
  html body.cf-dual-nav .cf-sidebar {
    inset: var(--header-h) 0 0 !important;
    width: min(380px, 88vw) !important;
    max-width: min(380px, 88vw) !important;
    transform: translateX(-105%) !important;
    transition: transform 220ms ease !important;
  }
  html:dir(rtl) body.cf-dual-nav .cf-sidebar { inset-inline-start: auto !important; inset-inline-end: 0 !important; transform: translateX(105%) !important; }
  html body.cf-dual-nav .cf-sidebar.open { transform: translateX(0) !important; }
  .cf-sidebar-backdrop { position: fixed !important; inset: var(--header-h) 0 0 !important; z-index: 1230 !important; }
  .cf-sidebar-backdrop.show { display: block !important; }
  .cf-sidebar-close { display: grid !important; }
  .cf-primary-nav { display: none !important; }
  .cf-global-search { display: none !important; }
  .cf-search-compact { display: grid !important; order: 1 !important; margin-inline-start: auto !important; }
  .cf-utility-actions { order: 2 !important; gap: 3px !important; margin-inline-start: 0 !important; }
  .cf-utility-actions .cf-appearance-trigger { display: inline-flex !important; width: 36px !important; min-width: 36px !important; height: 36px !important; padding: 0 !important; }
  .cf-utility-actions .cf-appearance-trigger > span,
  .cf-utility-actions .cf-bookmarks-trigger .cf-utility-label { display: none !important; }
  .cf-utility-actions .cf-language-toggle,
  .cf-utility-actions .cf-whatsapp-trigger,
  .cf-opportunity-cta { display: none !important; }
  .cf-utility-actions .cf-bookmarks-trigger { width: 36px !important; min-width: 36px !important; }
}
@media (max-width: 390px) {
  .cf-brand { gap: 4px !important; font-size: .78rem !important; }
  .cf-brand .brand-mark { width: 29px !important; height: 29px !important; flex-basis: 29px !important; }
  .cf-sidebar-toggle { width: 34px !important; min-width: 34px !important; height: 34px !important; flex-basis: 34px !important; }
  .cf-search-compact, .cf-utility-actions .cf-appearance-trigger, .cf-utility-actions .cf-bookmarks-trigger { width: 34px !important; min-width: 34px !important; height: 34px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-sidebar, .cf-hub-chevron { transition: none !important; }
}
