/* Compact glass header and grouped navigation in a floating glass panel. */
html[data-menu-scrollbar] { scrollbar-gutter: stable; }

.site-header--glass {
  --nav-ink: #202124;
  --nav-muted: #56595e;
  position: sticky;
  top: 16px;
  width: calc(100% - 20px);
  max-width: 1480px;
  margin: 16px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--nav-ink);
  box-shadow: 0 0 0 1px rgba(30, 35, 40, 0.04), 0 4px 20px rgba(30, 35, 40, 0.025);
  -webkit-backdrop-filter: blur(6px) saturate(115%);
  backdrop-filter: blur(6px) saturate(115%);
}

.site-header--glass .site-header-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 70px;
  padding: 0 20px;
}

.site-header--glass .brand,
.site-menu .brand {
  flex-shrink: 0;
  justify-self: start;
}

.site-header--glass .brand img,
.site-menu .brand img {
  width: 110px;
  height: auto;
}

.site-header--glass .brand::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("/_assets/img/brand/derivatives/jadey-logo-contrast.svg") center / contain no-repeat;
  opacity: 0;
}

.site-header--glass[data-pixel-contrast] .brand::before { opacity: 1; }
.site-header--glass[data-pixel-contrast] .brand img { opacity: 0; }

/* Blend only the foreground. A separate sibling retains the original glass tint
   and blur; neither a backdrop filter nor an opaque fill may isolate this ink. */
.site-header--glass[data-pixel-contrast] {
  --nav-ink: #fff;
  --nav-muted: #fff;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  mix-blend-mode: difference;
}

.site-header--glass[data-pixel-contrast]::after { content: none; }

.site-header-glass {
  position: fixed;
  z-index: 99;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px rgba(30, 35, 40, 0.04), 0 4px 20px rgba(30, 35, 40, 0.025);
  -webkit-backdrop-filter: blur(6px) saturate(115%);
  backdrop-filter: blur(6px) saturate(115%);
}

.site-header-glass__accent {
  position: absolute;
  display: block;
}

.site-header--glass[data-contrast-fallback] { background: #fff; }
.site-header--glass[data-contrast-fallback]::after { background: #fff; }

.site-header--glass[data-pixel-contrast] :is(a, button):focus-visible {
  outline-color: #fff;
}

body[data-jadey-template="homepage"] .site-header--glass .brand::after {
  content: none;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-header--glass .nav-cta,
.site-menu .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(200px, 15vw, 285px);
  min-height: 40px;
  padding: 7px 20px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--nav-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
}

.site-header--glass .nav-cta::after,
.site-menu .nav-cta::after {
  content: none;
}

.site-header--glass .nav-cta:hover,
.site-header--glass .nav-cta:focus-visible {
  border-color: currentColor;
  background: transparent;
  color: var(--nav-ink);
  box-shadow: inset 0 0 0 1px currentColor;
  transform: none;
}

.site-header-tools {
  display: flex;
}

.site-header-tool {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid #202124;
  border-radius: 0;
  background: #fff;
  color: #202124;
  cursor: pointer;
}

.site-header-tool + .site-header-tool {
  margin-left: -1px;
}

.site-header-tool svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.site-menu-toggle__lines,
.site-menu-toggle__lines::before,
.site-menu-toggle__lines::after {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
}

.site-menu-toggle__lines {
  position: relative;
}

.site-menu-toggle__lines::before,
.site-menu-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-menu-toggle__lines::before { top: -6px; }
.site-menu-toggle__lines::after { top: 6px; }

.site-header-tool:hover {
  background: #e9e9e9;
}

.site-header--glass [data-site-menu-open] {
  border-color: currentColor;
  background: transparent;
  color: var(--nav-ink);
}

.site-header--glass [data-site-menu-open]:hover,
.site-header--glass [data-site-menu-open]:focus-visible {
  box-shadow: inset 0 0 0 1px currentColor;
}

.site-header--glass .language-switcher-button,
.site-header--glass .language-switcher.is-open .language-switcher-button,
.site-menu .language-switcher-button {
  min-width: 44px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--nav-ink);
  font-size: 12px;
}

.site-header--glass .language-switcher-menu,
.site-menu .language-switcher-menu {
  top: calc(100% + 12px);
  min-width: 170px;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  color: #202124;
  box-shadow: 0 12px 32px #0002;
}

.site-header--glass .language-switcher-menu a,
.site-menu .language-switcher-menu a {
  min-height: 44px;
  color: #202124;
}

.site-header--glass .language-switcher-menu[popover] {
  position: fixed;
  inset: auto;
  top: var(--language-menu-top);
  right: var(--language-menu-right);
  margin: 0;
}

.site-header--glass .language-switcher-menu a:hover,
.site-menu .language-switcher-menu a:hover,
.site-header--glass .language-switcher-menu a[aria-current="true"],
.site-menu .language-switcher-menu a[aria-current="true"] {
  background: #f2f3f3;
  color: #202124;
}

.site-header--glass .language-switcher-option-code,
.site-menu .language-switcher-option-code {
  color: #56595e;
}

.site-header--glass :is(a, button):focus-visible,
.site-menu :is(a, button, input):focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 5px;
}

.site-header--glass [hidden],
.site-menu [hidden] {
  display: none !important;
}

body.site-menu-open {
  overflow: hidden;
}

.site-menu {
  --nav-ink: #202124;
  --nav-muted: #62666a;
  --nav-rule: rgba(32, 33, 36, 0.13);
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--nav-ink);
  overflow: visible;
  color-scheme: light;
}

.site-menu__panel {
  position: absolute;
  inset: 16px 0 auto;
  width: calc(100% - 20px);
  max-width: 1480px;
  max-height: calc(100dvh - 32px);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 0 24px 100px rgba(20, 28, 32, 0.16);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  backdrop-filter: blur(24px) saturate(120%);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-menu::backdrop {
  background: rgba(31, 36, 40, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.site-menu[open] .site-menu__panel { animation: site-menu-enter 220ms ease-out; }

.site-menu__header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 71px;
  padding: 0 20px;
  border-bottom: 1px solid var(--nav-rule);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.site-menu__header .site-header-actions { padding-right: 70px; }

/* Keep the close control outside the panel's animation and scrolling surface. */
.site-menu .site-header-tool--close {
  position: fixed;
  top: var(--menu-button-top);
  left: var(--menu-button-left);
  z-index: 4;
  width: var(--menu-button-width, 40px);
  height: var(--menu-button-height, 40px);
  margin: 0;
  border: 1px solid var(--nav-ink);
  border-radius: 0;
  background: #fff;
  color: var(--nav-ink);
}
.site-menu .site-header-tool--close:hover { background: #e9e9e9; }

.site-menu__body { padding: 36px 36px 24px; }
.site-menu__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 36px 48px;
  align-items: start;
}
.site-menu__grid > * { min-width: 0; }
.site-menu__navigation { grid-column: 1; grid-row: 1; }
.site-menu__insights {
  grid-column: 2;
  grid-row: 1;
  padding-left: 32px;
  border-left: 1px solid var(--nav-rule);
}
.site-menu__footer { grid-column: 1 / -1; }

.site-menu__groups {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
}
.site-menu__group { min-width: 0; }
.site-menu__group-label,
.site-menu__section-head {
  margin: 0 0 22px;
  color: var(--nav-muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-menu__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.site-menu__section-head h2 { margin: 0; font: inherit; }
.site-menu__section-head a {
  color: var(--nav-ink);
  text-decoration: none;
  transition: color 160ms ease;
}
.site-menu__section-head a:is(:hover, :focus-visible) { color: var(--orange-500); }
.site-menu__items,
.site-menu__children {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-menu__links {
  font-family: var(--headline);
  font-size: clamp(21px, 1.8vw, 25px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.025em;
}
.site-menu__links a {
  position: relative;
  display: inline-block;
  color: var(--nav-ink);
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}
.site-menu__group:first-child > .site-menu__items {
  gap: 24px;
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1.25;
}
.site-menu__children {
  gap: 8px;
  margin: 20px 0 0;
  padding-left: 16px;
  border-left: 1px solid var(--nav-rule);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0;
}
.site-menu__children a { padding: 3px 0; color: var(--nav-muted); }
.site-menu__links a::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: -12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange-500, #c84421);
  opacity: 0;
}
.site-menu__links a:is(:hover, :focus-visible) { color: var(--orange-500); transform: translateX(3px); }
.site-menu__links a:is([aria-current], [data-current-ancestor]) { color: var(--orange-500); }
.site-menu__links a[aria-current]::before { opacity: 1; }
.site-menu__items > li:has(.site-menu__children [aria-current]) > a::before { opacity: 0; }

.site-menu__insight-grid { display: grid; }
.site-menu__insight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 20px 0;
  color: var(--nav-ink);
  text-decoration: none;
}
.site-menu__insight:first-child { padding-top: 0; }
.site-menu__insight:last-child { padding-bottom: 0; }
.site-menu__insight + .site-menu__insight { border-top: 1px solid var(--nav-rule); }
.site-menu__insight--has-image { grid-template-columns: 112px minmax(0, 1fr) auto; }
.site-menu__insight-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
}
.site-menu__insight-copy { min-width: 0; }
.site-menu__insight-date {
  display: block;
  margin-bottom: 8px;
  color: var(--nav-muted);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.025em;
}
.site-menu__insight h3 {
  margin: 0;
  font-family: var(--headline);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.site-menu__link-arrow {
  color: var(--nav-muted);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.4;
  transition: transform 160ms ease;
}
.site-menu__insight:is(:hover, :focus-visible) h3 { color: var(--orange-500); }
.site-menu__insight:is(:hover, :focus-visible) .site-menu__link-arrow { transform: translate(2px, -2px); }
.site-menu__loading { margin: 0; color: var(--nav-muted); font-size: 15px; line-height: 1.5; }

.site-menu__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--nav-rule);
}
.site-menu__quick-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; }
.site-menu__quick-links a { color: var(--nav-muted); text-decoration: none; }
.site-menu__quick-links a:is(:hover, :focus-visible, [aria-current]) { color: var(--nav-ink); }
.site-menu .nav-cta { width: auto; min-width: 160px; border-radius: 5px; }
.site-menu .nav-cta:is(:hover, :focus-visible) { background: var(--nav-ink); color: #fff; transform: none; }

.site-menu-fallback {
  display: grid;
  gap: 24px;
  padding: calc(var(--header-height) + 32px) 24px 24px;
  color: #202124;
  background: #fff;
}
.site-menu-fallback a { color: inherit; scroll-margin-top: calc(var(--header-height) + 32px); }
.site-menu-fallback .site-menu__children { border-color: #ccc; }

@keyframes site-menu-enter {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header--glass:not([data-pixel-contrast]), .site-header-glass, .site-menu__panel { background: #fff; }
}
@media (max-width: 1200px) {
  .site-menu__body { padding: 28px; }
  .site-menu__grid { gap: 28px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .site-menu__groups { gap: 32px; }
  .site-menu__insights { padding-left: 24px; }
  .site-menu__insight { gap: 12px; }
  .site-menu__insight--has-image { grid-template-columns: 88px minmax(0, 1fr); }
  .site-menu__insight .site-menu__link-arrow { display: none; }
  .site-menu__insight h3 { font-size: 20px; }
}
@media (max-width: 1050px) {
  .site-header-actions { gap: 20px; }
  .site-menu__grid { grid-template-columns: minmax(0, 1fr); }
  .site-menu__navigation, .site-menu__insights, .site-menu__footer { grid-column: auto; grid-row: auto; }
  .site-menu__insights { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--nav-rule); }
  .site-menu__insight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .site-menu__insight { display: flex; flex-direction: column; align-items: start; gap: 16px; padding: 0; }
  .site-menu__insight + .site-menu__insight { border: 0; padding: 0; }
  .site-menu__insight-image { width: 100%; }
  .site-menu__insight h3 { font-size: 22px; }
}
@media (max-width: 640px) {
  .site-header-glass {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-header--glass,
  body.has-home-film .site-header--glass {
    position: fixed;
    inset: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
  }

  .site-header--glass .site-header-inner {
    height: 76px;
    min-height: 76px;
    padding: 0 20px;
  }

  .site-header--glass::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: 76px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px) saturate(115%);
    -webkit-backdrop-filter: blur(6px) saturate(115%);
  }

  .site-header--glass .brand,
  .site-header--glass .language-switcher {
    pointer-events: auto;
  }

  .site-header--glass[data-contrast-fallback] { background: transparent; }
  .site-header--glass[data-contrast-fallback] :is(.nav-cta, [data-site-menu-open]) {
    background: #fff;
  }

  .site-header--glass .brand img,
  .site-menu .brand img { width: 100px; }

  .site-header--glass .site-header-actions { display: contents; }

  .site-header--glass .site-header-tools {
    position: fixed;
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 20px;
    z-index: 5;
    pointer-events: auto;
  }

  .site-header--glass .nav-cta {
    position: fixed;
    right: 20px;
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 5;
    width: auto;
    min-width: 108px;
    padding: 7px 12px;
    background: transparent;
    color: var(--nav-ink);
    pointer-events: auto;
  }

  .site-header--glass [data-site-menu-open] { order: -1; }

  body:not(.has-home-film) .page-main { padding-top: 76px; }
  .home-hero-film__controls { bottom: 80px; right: 20px; }


  .site-menu__panel { inset: 8px 0 auto; width: calc(100% - 16px); max-height: calc(100dvh - max(20px, env(safe-area-inset-bottom)) - 68px); border-radius: 12px; }
  .site-menu__header { min-height: 68px; padding: 0 20px; }
  .site-menu__header .site-header-actions { gap: 8px; padding-right: 0; }
  .site-menu__body { padding: 26px 24px 24px; }
  .site-menu__grid { gap: 28px; }
  .site-menu__groups { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-menu__group:first-child > .site-menu__items { gap: 20px; font-size: 24px; }
  .site-menu__group + .site-menu__group { padding-top: 24px; border-top: 1px solid var(--nav-rule); }
  .site-menu__group + .site-menu__group .site-menu__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; align-items: start; }
  .site-menu__group-label { margin-bottom: 16px; font-size: 10px; }
  .site-menu__links { font-size: 18px; }
  .site-menu__links a { overflow-wrap: anywhere; hyphens: auto; }
  .site-menu__items { gap: 14px; }
  .site-menu__children { margin-top: 16px; padding-left: 14px; font-size: 16px; gap: 6px; }
  .site-menu__insight-grid { grid-template-columns: 1fr; gap: 0; }
  .site-menu__insight { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px 0; }
  .site-menu__insight--has-image { grid-template-columns: 108px minmax(0, 1fr); }
  .site-menu__insight + .site-menu__insight { padding: 18px 0; border-top: 1px solid var(--nav-rule); }
  .site-menu__insight:last-child { padding-bottom: 0; }
  .site-menu__insight h3 { font-size: 20px; }
  .site-menu__section-head { margin-bottom: 18px; font-size: 10px; }
  .site-menu__footer { align-items: start; flex-direction: column; gap: 24px; }
  .site-menu__quick-links { gap: 16px; font-size: 12px; }
  .site-menu .nav-cta { width: 100%; min-height: 44px; }
}
@media (max-width: 360px) {
  .site-menu__header { padding: 0 16px; }
  .site-menu__body { padding: 24px 18px; }
  .site-menu__links { font-size: 18px; }
  .site-menu__group:first-child > .site-menu__items { font-size: 22px; }
  .site-menu__insight--has-image { grid-template-columns: 90px minmax(0, 1fr); }
  .site-menu__insight h3 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-menu[open] .site-menu__panel { animation: none; }
  .site-menu :is(a, .site-menu__link-arrow) { transition: none; }
  .site-menu a:is(:hover, :focus-visible),
  .site-menu a:is(:hover, :focus-visible) .site-menu__link-arrow { transform: none; }
}

/* Product overview links share the hierarchy of the global navigation. */
.product-page-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 24px;
  padding-bottom: 12px;
  font-size: 15px;
}

.product-page-navigation a {
  color: inherit;
  text-underline-offset: 5px;
}
