/* Shared fixed navigation, matching the homepage Liquid Glass appearance. */
html body > header.site-glass-nav,
html body.article-page > header.site-glass-nav.sub-header {
  position:fixed!important; inset:0 0 auto!important; width:100%;
  height:80px; margin:0!important; z-index:40;
}
html body > header.site-glass-nav:not(.on-hero) {
  background:rgba(250,253,255,.73)!important;
  -webkit-backdrop-filter:blur(15px)!important; backdrop-filter:blur(15px)!important;
  border-bottom:1px solid rgba(255,255,255,.8)!important;
  box-shadow:0 4px 25px rgba(24,76,102,.06)!important;
  color:#102c42!important;
}
html body > header.site-glass-nav:not(.on-hero) .nav :is(.nav-brand,.nav-brand-wordmark),
html body.article-page > header.site-glass-nav:not(.on-hero) .nav .nav-brand-wordmark,
html body > header.site-glass-nav:not(.on-hero) .nav #hauptnavigation > a:not(.btn) {
  color:#102c42!important; text-shadow:none!important;
}
html body > header.site-glass-nav:not(.on-hero) .nav #hauptnavigation > a:not(.btn) {color:#1b1b1b!important}
html body > header.site-glass-nav:not(.on-hero) .nav-brand img {filter:none!important}
html body > header.site-glass-nav:not(.on-hero) .menu-toggle {
  background:rgba(255,255,255,.64);color:#102c42;border-color:#c6dfee;
}
html {scroll-padding-top:104px}
.article-page .article-toc {top:104px}
@media(prefers-reduced-motion:reduce){html body > header.site-glass-nav{transition:none}}

/* Homepage branding appears with the glass navigation, using the same scroll state. */
header .nav a.nav-logo.nav-brand{display:inline-flex;align-items:center;gap:.85vw;width:auto;height:auto;background:none;border:0;box-shadow:none;padding:0;flex:none;color:inherit;text-decoration:none}

header .nav .nav-brand img{width:auto;height:clamp(32px,3.3vw,92px);max-width:none;max-height:none}
header .nav a.nav-logo.nav-brand:hover,header .nav a.nav-logo.nav-brand:focus-visible{text-decoration:none}
.nav-brand-wordmark{display:grid;text-align:center;white-space:nowrap;font-family:Arial,sans-serif;line-height:1.05}
.nav-brand-wordmark strong{font-size:clamp(10.4px,.992vw,28px);letter-spacing:-.045em}
.nav-brand-wordmark small{display:flex;align-items:center;gap:.45em;font-size:clamp(7.2px,.592vw,16.8px);font-weight:600}
.nav-brand-wordmark small::before,.nav-brand-wordmark small::after{content:"";flex:1;border-top:1px solid currentColor}
.blog-index header.sub-header { z-index: 5; }
html body > header.on-hero .homepage-scroll-brand{visibility:hidden;opacity:0;pointer-events:none}
html body > header:not(.on-hero) .homepage-scroll-brand{visibility:visible;opacity:1;pointer-events:auto}

/* Match the lighter signature in the footer. */
html body > header .nav-brand-wordmark small{font-weight:400!important}

/* The homepage header extends the rising glass above its leading edge. */
html body > header.site-glass-nav.home-glass-join {
  isolation:isolate;
  background:transparent!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  border-bottom:0!important;
  box-shadow:none!important;
}
html body > header.site-glass-nav.home-glass-join::before {
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:var(--nav-glass-join,0px);
  z-index:-1;
  pointer-events:none;
  opacity:var(--nav-glass-opacity,0);
  background:linear-gradient(to bottom,rgba(255,255,255,var(--nav-glass-start,.6)),rgba(255,255,255,.6));
  -webkit-backdrop-filter:blur(5px);
  backdrop-filter:blur(5px);
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  html body > header.site-glass-nav.home-glass-join::before {
    background:linear-gradient(to bottom,rgba(255,255,255,var(--nav-glass-start-fallback,.87)),rgba(255,255,255,.87));
  }
}

/* Keep the desktop link group and the video control close to the right edge. */
@media (min-width:1081px) {
  html body > header.site-glass-nav .nav {
    display:flex!important;
    justify-content:flex-end!important;
    align-items:center;
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box;
    padding-inline:3.5% clamp(10px,1vw,18px)!important;
    gap:clamp(16px,1.4vw,24px)!important;
  }
  html body > header.site-glass-nav .nav .nav-logo {margin-inline-end:auto}
  html body > header.site-glass-nav .nav #hauptnavigation {
    position:relative!important;
    inset:8px auto auto!important;
    transform:none!important;
    margin:0!important;
    gap:clamp(10px,1.05vw,18px)!important;
  }
  html body > header.site-glass-nav .nav .nav-actions {
    position:relative!important;
    inset:8px auto auto!important;
    transform:none!important;
    margin:0!important;
  }
}

/* Give the desktop menu the same vertical center on each hero. */
@media (min-width:1081px) {
  html body > header.site-glass-nav .nav {
    height:80px;
    padding-block:0!important;
  }
}
@media (min-width:1280px) {
  html body > header.site-glass-nav .nav { height:106px; }
}

.nav-actions {
  display: flex;
  justify-self: end;
  gap: 8px;
}

.nav-action {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #84c4ff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(160deg, #3b9af1, #146bc4 58%, #07539f);
  box-shadow: inset 0 1px 2px #ffffff80, 0 3px 9px #0b407133;
  transition: filter 150ms ease;
}

.nav-action:hover {
  filter: brightness(1.16);
}

.nav-action svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The same desktop menu dimensions and type metrics on every page. */
html body > header.site-glass-nav .nav .nav-actions { flex-shrink:0; }
@media (min-width:1081px) {
  html body > header.site-glass-nav .nav #hauptnavigation > a {
    font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;
    font-size:clamp(14px,.96vw,16px)!important;
    font-weight:550!important;
    line-height:1.65!important;
    padding:0!important;
    margin:0!important;
    white-space:nowrap;
  }
  html body > header.site-glass-nav .nav .nav-action { width:42px; height:42px; }
}
