/* The glass and the controls are sibling layers. Blending a logo inside a
   backdrop-filtered parent would isolate it from the underlying page. */
:root {
  --menu-gutter: max(30px, calc((100vw - 1440px) / 2));
  --header-pad-y: 13px;
  --header-height: max(70px, calc(2.75rem + 2 * var(--header-pad-y)));
}
.header, .header-glass {
  position: fixed;
  top: 16px;
  left: 6.25%;
  right: 6.25%;
  border: 0;
  border-radius: 10px;
}
.header {
  z-index: 80;
  color: #fff;
  background: transparent;
  mix-blend-mode: difference;
  isolation: auto;
}
.header-glass {
  z-index: 79;
  height: var(--header-height);
  pointer-events: none;
  background: rgba(171, 171, 171, .1);
  opacity: .9;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: var(--header-pad-y) 20px;
  gap: 20px;
}
#menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  padding: 0;
  flex: none;
  transition: background 175ms, color 175ms;
}
#menu-toggle i { position: relative; display: block; width: 20px; height: 13px; }
#menu-toggle i:before, #menu-toggle i:after, #menu-toggle i b {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 20px;
  height: 1px;
  background: currentColor;
  transform-origin: 50% 50%;
  transition: transform 360ms cubic-bezier(.4,0,.2,1), opacity 360ms;
}
#menu-toggle i:before { transform: translateY(-6px); }
#menu-toggle i b { opacity: 1; transform: scaleX(1); }
#menu-toggle i:after { transform: translateY(6px); }
#menu-toggle:hover { background: #fff; color: #1e2124; }
#menu-toggle[aria-expanded=true] i:before { transform: rotate(45deg); }
#menu-toggle[aria-expanded=true] i:after { transform: rotate(-45deg); }
#menu-toggle[aria-expanded=true] i b { opacity: 0; transform: scaleX(.25); }
.header.is-open {
  inset: 0;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  border-radius: 0;
  background: #1e2124;
  color: #f1f1ee;
  mix-blend-mode: normal;
  overflow: auto;
  overscroll-behavior: contain;
}
.header.is-open + .header-glass { visibility: hidden; }
.header.is-open .topbar { min-height: 100px; padding: 28px var(--menu-gutter); }
.header.is-open #menu-toggle { background: #f1f1ee; color: #1e2124; }
#site-menu {
  padding: 30px var(--menu-gutter) 0;
  min-height: calc(100dvh - 100px);
  display: flex;
  flex-direction: column;
}
.menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
.menu-support { display: grid; align-content: start; gap: 24px; min-width: 0; }
.menu-section { border-top: 1px solid transparent; padding: 20px 0 24px; min-width: 0; }
.menu-section > .eyebrow { color: #b9b9b9; margin-bottom: 30px; }
.menu-primary { display: block; }
.menu-primary > a { display: block; padding: 10px 0; min-height: 60px; transition: color 160ms; }
.menu-primary > a:hover, .menu-secondary > a:hover { color: #b9b9b9; }
.menu-primary > a[aria-current=page] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.menu-secondary { display: flex; flex-direction: column; align-items: start; gap: 4px; }
.menu-secondary > a { display: block; min-height: 44px; padding: 10px 0; overflow-wrap: anywhere; }
.menu-secondary .arrow { margin-left: 1rem; }
.menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex: none;
  border-top: 1px solid #ffffff30;
  margin-top: auto;
  padding: 20px 0;
  color: #b9b9b9;
}
.menu-foot > a { min-height: 44px; display: inline-flex; align-items: center; }
.menu-foot > a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.no-js-nav { padding: 115px var(--gutter) 24px; display: flex; flex-wrap: wrap; gap: 24px; }
.no-js-nav a { text-decoration: underline; }

@media (max-width: 760px) {
  :root {
    --menu-gutter: 20px;
    --header-pad-y: 8px;
    --header-height: max(60px, calc(2.75rem + 2 * var(--header-pad-y)));
  }
  .header, .header-glass { top: 10px; left: min(6.25vw,24px); right: min(6.25vw,24px); }
  .topbar { padding-inline: 14px; }
  .header.is-open { inset: 0; }
  .header.is-open .topbar { min-height: 80px; padding: 18px var(--menu-gutter); }
  #site-menu { padding-top: 25px; min-height: calc(100dvh - 80px); }
  .menu-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .menu-support { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .menu-section { padding-top: 18px; padding-bottom: 15px; }
  .menu-section > .eyebrow { margin-bottom: 20px; }
  .menu-primary > a { padding: 6px 0; min-height: 48px; }
  .menu-secondary { gap: 0; }
  .menu-secondary .arrow { display: none; }
  .menu-foot { padding: 14px 0; margin-top: 20px; }
}
@media (max-width: 380px) { .menu-support { grid-template-columns: minmax(0, 1fr); } }
@supports not (mix-blend-mode: difference) {
  .header { color: var(--ink); }
  .header[data-tone=dark], .header.is-open { color: #f1f1ee; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header { mix-blend-mode: normal; color: var(--ink); }
  .header-glass { background: #f1f1ee; opacity: 1; }
  .header[data-tone=dark] { color: #f1f1ee; }
  .header[data-tone=dark] + .header-glass { background: #24262a; }
  .header.is-open { color: #f1f1ee; }
}
@media (prefers-reduced-motion: reduce) {
  #menu-toggle, #menu-toggle i:before, #menu-toggle i:after, #menu-toggle i b { transition: none; }
}
@media (forced-colors: active) {
  .header, .header.is-open { mix-blend-mode: normal; background: Canvas; color: CanvasText; }
  .header-glass { display: none; }
  #menu-toggle, .header.is-open #menu-toggle { background: ButtonFace; color: ButtonText; }
}
