/* Shared destination navigation; deliberately scoped away from page content. */
.page-header > .wrap,
.page-header > .wrap-wide {
  flex-wrap: nowrap;
  padding-block: 0;
}

.top.page-header {
  position: relative;
  z-index: 50;
  /* Keep the live demo's existing 76px header with a 44px trigger. */
  padding-block: 15px;
}

.page-header .page-switcher {
  position: relative;
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  font: 14px/1.4 var(--font-sans);
  color: var(--fg);
}

.page-switcher > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 106px;
  min-height: 44px;
  padding: 10px 14px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  cursor: pointer;
  list-style: none;
  user-select: none;
  touch-action: manipulation;
}

.page-switcher > summary::-webkit-details-marker { display: none; }
.page-switcher > summary::marker { content: ""; }
.page-switcher > summary:hover { border-color: var(--line-strong); }
.page-switcher-chevron { width: 14px; height: 14px; flex: none; }
.page-switcher[open] .page-switcher-chevron { transform: rotate(180deg); }

.page-header .page-switcher-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1;
  width: min(240px, calc(100vw - 32px));
  min-width: 0;
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(16, 17, 20, 0.1);
}

.page-switcher-panel ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-switcher-panel li { margin: 0; padding: 0; }
.page-switcher-panel a,
.page-switcher-panel [aria-current] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 14px;
  border-radius: 4px;
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.page-switcher-panel [aria-current],
.page-switcher-panel a:hover { background: var(--surface-2); }
.page-switcher-panel .page-switcher-website {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.page-switcher > summary:focus-visible,
.page-switcher-panel a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media print { .page-switcher { display: none; } }

/* Product header shared by Demo, Console and Docs. */
.page-header,.top.page-header{position:sticky;top:0;z-index:60;background:#fff;color:#101114;border:0;box-shadow:none;backdrop-filter:none}
.page-header>.wrap,.page-header>.wrap-wide{position:static;max-width:none;margin:0;padding:0 5vw;min-height:68px;justify-content:flex-start;gap:36px}
.page-header .wordmark,.page-header .brand{gap:8px;font-size:23px;letter-spacing:-.9px;text-decoration:none}
.page-header .wordmark img,.page-header .brand img{width:32px;height:32px;border:0;background:none;padding:0;border-radius:0;box-shadow:none}
.page-header .wordmark-text{font-size:23px;font-weight:600}
.page-header .page-switcher{position:static}
.page-header .page-switcher>summary{padding:8px 0;border:0;background:none;font-size:14px;font-weight:400;color:#52565e}
.page-header .page-switcher-panel{position:absolute;inset:100% 0 auto;width:100%;min-height:260px;max-height:calc(100dvh - 68px);padding:28px 5vw 36px;border:0;border-radius:0;box-shadow:none;background:#fff;animation:product-menu-in .25s ease-out}
.page-header .page-switcher-panel ul{gap:10px}
.page-header .page-switcher-panel li>a,.page-header .page-switcher-panel [aria-current]{display:inline-flex;min-height:44px;padding:0;font-size:25px;line-height:1.35;font-weight:400;letter-spacing:-.035em;background:none;border-radius:0}
.page-header .page-switcher-panel a:hover{opacity:.6;background:none}
.page-menu-backdrop{position:fixed;inset:0;z-index:59;background:#10111420;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity 320ms ease,visibility 320ms}
.page-menu-backdrop[data-open=true]{opacity:1;visibility:visible;pointer-events:auto}
@keyframes product-menu-in{from{transform:translateY(-5px)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.page-menu-backdrop{transition:none}.page-header .page-switcher-panel{animation:none}}
@media print{.page-menu-backdrop{display:none}}
