/* Public navigation only. Optical surfaces never filter the labels or artwork.
   Keep the header's flow height fixed while its visible glass gathers inward. */
#app .site-nav.nav-r09 {
  --nav-r21-ease: cubic-bezier(.22,1,.36,1);
  --nav-r21-expanded-offset: 88px;
  --nav-r21-compact-offset: 72px;
  --nav-r21-glass-fill: rgb(19 19 19 / .66);
  --nav-r21-glass-light: inset 0 1px 1px rgb(255 255 255 / .24), inset 0 -1px 1px rgb(255 255 255 / .06), 0 8px 30px rgb(0 0 0 / .15);
  width: 100%;
  height: 80px;
  min-height: 80px;
  padding: 12px var(--gutter);
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 34px;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  translate: 0 0;
  transition: width .68s var(--nav-r21-ease), padding .68s var(--nav-r21-ease);
}
#app .site-nav.nav-r09::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 64px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(155deg,rgb(255 255 255 / .08),transparent 47%,rgb(255 255 255 / .025)) var(--nav-r21-glass-fill);
  box-shadow: var(--nav-r21-glass-light);
  -webkit-backdrop-filter: blur(11px) saturate(1.25);
  backdrop-filter: var(--nav-r21-refraction,blur(0)) blur(11px) saturate(1.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease .08s;
}
#app .site-nav.nav-r09 > .wordmark,
#app .site-nav.nav-r09 .nav-r09-links,
#app .site-nav.nav-r09 .nav-r09-toggle {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(155deg,rgb(255 255 255 / .08),transparent 47%,rgb(255 255 255 / .025)) var(--nav-r21-glass-fill);
  box-shadow: var(--nav-r21-glass-light);
  -webkit-backdrop-filter: blur(11px) saturate(1.25);
  backdrop-filter: var(--nav-r21-refraction,blur(0)) blur(11px) saturate(1.25);
  color: #fff;
  transition: background-color .35s, box-shadow .35s, scale .4s var(--nav-r21-ease);
}
#app .site-nav.nav-r09 > .wordmark {
  min-height: 48px;
  padding: 10px 14px;
  font-size: 25px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.065em;
  white-space: nowrap;
}
#app .site-nav.nav-r09 > .wordmark:hover { scale: 1.025; }
#app .site-nav.nav-r09 .nav-r09-links {
  min-height: 54px;
  padding: 5px;
  gap: 0;
  overflow: clip;
}
#app .site-nav.nav-r09 .nav-r09-links > a {
  min-height: 44px;
  padding: 12px 14px;
  border: 0;
  border-radius: 999px;
  color: #dedede;
  font-size: 13px;
  line-height: 1;
  font-weight: 450;
  letter-spacing: -.015em;
  transition: color .24s ease;
}
#app .site-nav.nav-r09 .nav-r09-links > a[data-nav-highlighted] { color: #000; }
#app .site-nav.nav-r09 .nav-r09-highlight {
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / .95);
  box-shadow: inset 0 1px 1px #fff, 0 2px 8px rgb(0 0 0 / .12);
  transition: translate .46s var(--nav-r21-ease), width .46s var(--nav-r21-ease), height .46s var(--nav-r21-ease), opacity .2s;
}
#app .site-nav.nav-r09 .nav-r09-links > a:focus-visible {
  outline: none;
  background: transparent;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#app .site-nav.nav-r09 > .wordmark:focus-visible {
  outline: none;
  background: #fff;
  color: #000;
}
#app .site-nav.nav-r09.is-nav-compact {
  width: var(--nav-r21-compact-width,660px);
  max-width: calc(100% - 32px);
  padding: 5px 10px 21px;
}
#app .site-nav.nav-r09.is-nav-compact::before { opacity: 1; transition-delay: 0s; }
#app .site-nav.nav-r09.is-nav-compact > .wordmark,
#app .site-nav.nav-r09.is-nav-compact .nav-r09-links,
#app .site-nav.nav-r09.is-nav-compact .nav-r09-toggle {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
#app .site-nav.nav-r09.is-nav-compact .nav-r09-links { padding: 5px; }
/* Old scroll-direction hiding cannot mask a focused or compact control. */
#app .site-nav.nav-r09.is-nav-hidden { translate: 0 0; opacity: 1; }
#app .site-nav.nav-r09.is-nav-hidden > * { pointer-events: auto; }

body:has(> #app) > .nav-r09-dialog {
  padding: 16px;
  background: rgb(0 0 0 / .6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
body:has(> #app) > .nav-r09-dialog .nav-r09-menu-sheet {
  border-radius: 28px;
  background: rgb(26 26 26 / .94);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .2), 0 22px 80px #0006;
  color: #fff;
}
body:has(> #app) > .nav-r09-dialog .nav-r09-menu-masthead > button,
body:has(> #app) > .nav-r09-dialog .nav-r09-menu-sheet nav > a { color: #fff; }
body:has(> #app) > .nav-r09-dialog .nav-r09-menu-number,
body:has(> #app) > .nav-r09-dialog .nav-r09-menu-foot { color: #b0b0b0; }
body:has(> #app) > .nav-r09-dialog a:focus-visible,
body:has(> #app) > .nav-r09-dialog button:focus-visible {
  outline: none;
  background: #fff;
  color: #000;
  border-radius: 12px;
}

@media (max-width: 950px) and (min-width: 761px) {
  #app .site-nav.nav-r09 .nav-r09-links > a { padding-inline: 12px; font-size: 12px; }
}
@media (max-width: 760px) {
  #app .site-nav.nav-r09 {
    --nav-r21-expanded-offset: 76px;
    --nav-r21-compact-offset: 64px;
    height: 72px;
    min-height: 72px;
    padding: 8px 20px;
  }
  #app .site-nav.nav-r09::before { height: 60px; }
  #app .site-nav.nav-r09 > .wordmark { min-height: 44px; font-size: 24px; }
  #app .site-nav.nav-r09 .nav-r09-toggle {
    min-height: 44px;
    padding: 12px 16px;
    gap: 17px;
    font-size: 13px;
    line-height: 1;
  }
  #app .site-nav.nav-r09 .nav-r09-toggle-glyph > i { background: currentColor; }
  #app .site-nav.nav-r09 .nav-r09-toggle:focus-visible { outline: none; background: #fff; color: #000; }
  #app .site-nav.nav-r09.is-nav-compact { padding: 8px 8px 20px; gap: 24px; }
}
@media (forced-colors: active) {
  #app .site-nav.nav-r09 > .wordmark,
  #app .site-nav.nav-r09 .nav-r09-links,
  #app .site-nav.nav-r09 .nav-r09-toggle,
  #app .site-nav.nav-r09::before { background: Canvas; color: CanvasText; backdrop-filter: none; }
  #app .site-nav.nav-r09 .nav-r09-links > a { color: LinkText; }
  #app .site-nav.nav-r09 .nav-r09-highlight { background: Highlight; }
  #app .site-nav.nav-r09 .nav-r09-links > a[data-nav-highlighted] { color: HighlightText; }
}
