/* Shared navigation uses the same refractive material as the product glass. */
:root {
  --nav-fill: linear-gradient(115deg, #ffffff12, #ffffff02 48%, color-mix(in srgb, var(--brand-to) 7%, transparent)), rgb(25 26 32 / 66%);
  --nav-edge: #ffffff21;
  --nav-shadow: inset 0 1px 0 #ffffff38, inset 0 -1px 0 #ffffff08, 0 16px 40px #00000030;
}

body .hn-header {
  top: 16px;
  width: min(1320px, calc(100% - 48px));
  margin: 16px auto 0;
  border: 1px solid var(--nav-edge);
  border-radius: 20px;
  background: var(--nav-fill);
  box-shadow: var(--nav-shadow);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}
body .hn-header .hn-inner {
  display: flex;
  width: 100%;
  min-height: 68px;
  padding: 10px 22px;
  gap: 24px;
}
body .hn-header .hn-brand { flex: none; }
body .hn-header .hn-desktop { margin-inline: auto; padding: 0; gap: 2px; }
body .hn-header .hn-desktop::before { display: none; }
body .hn-header .hn-actions { gap: 8px; flex: none; }
body .hn-header .hn-group { position: relative; }
body .hn-header .hn-desktop > a,
body .hn-header .hn-group > summary { padding: 9px 11px; border-radius: 10px; font-size: 12px; }
body .hn-header .hn-desktop > a:hover,
body .hn-header .hn-group > summary:hover { background: #ffffff08; color: #f5f5fa; }
body .hn-header .hn-group[open] > summary,
body .hn-header [aria-current=page] { color: var(--brand-from); }
body .hn-header :is(a, summary, button):focus-visible {
  outline: 2px solid var(--brand-from);
  outline-offset: 3px;
  border-radius: 9px;
}
body .hn-header .hn-dropdown,
body .hn-header .hn-mobile-panel,
body :is(.hn-header, footer) .hn-languages {
  border: 1px solid var(--nav-edge);
  background: var(--nav-fill);
  box-shadow: var(--nav-shadow), 0 18px 50px #00000035;
  border-radius: 16px;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
body :is(.hn-header, footer) [popover] {
  position: fixed;
  margin: 0;
  right: auto;
  bottom: auto;
  color: #cbd0dc;
}
body :is(.hn-header, footer) [popover]:not(:popover-open) { display: none; }
body :is(.hn-header, footer) [popover]::backdrop { background: transparent; }
body .hn-header .hn-dropdown {
  inset-inline: 0 auto;
  top: calc(100% + 14px);
  width: 252px;
  grid-template-columns: 1fr;
  padding: 7px;
  gap: 2px;
}
body .hn-header .hn-dropdown a,
body .hn-header .hn-mobile-panel > a {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #cbd0dc;
}
body .hn-header .hn-dropdown a:hover,
body .hn-header .hn-mobile-panel > a:hover {
  background: color-mix(in srgb, var(--brand-from) 10%, transparent);
  color: var(--brand-from);
}
body :is(.hn-header, footer) .hn-language { position: relative; }
body :is(.hn-header, footer) .hn-language > summary,
body .hn-header .hn-mobile > summary {
  display: flex;
  min-height: 38px;
  height: 38px;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #b8c1d2;
  font-size: 11px;
}
body :is(.hn-header, footer) .hn-language > summary:hover,
body .hn-header .hn-mobile > summary:hover { background: #ffffff08; }
body :is(.hn-header, footer) .hn-language > summary svg { width: 15px; height: 15px; }
body :is(.hn-header, footer) .hn-language > summary svg:last-child { width: 12px; height: 12px; }
body :is(.hn-header, footer) .hn-language[open] > summary svg:last-child { transform: rotate(180deg); }
body :is(.hn-header, footer) .hn-languages {
  inset-inline: auto 0;
  top: calc(100% + 15px);
  width: 236px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  padding: 9px;
}
.hn-languages-title { margin: 5px 10px 7px; color: #96a2b8; font-size: 10px; }
body :is(.hn-header, footer) .hn-language-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #cbd0dc;
  font: 400 13px/1.4 Onest, system-ui, sans-serif;
  cursor: pointer;
}
body :is(.hn-header, footer) .hn-language-choice:hover { background: #ffffff08; }
body :is(.hn-header, footer) .hn-language-choice[aria-pressed=true] {
  background: color-mix(in srgb, var(--brand-from) 10%, transparent);
  color: var(--brand-from);
}
.hn-language-choice .language-check { opacity: 0; }
.hn-language-choice[aria-pressed=true] .language-check { opacity: 1; }
body .hn-header .hn-mobile > summary { width: 38px; justify-content: center; }
body .hn-header .hn-mobile > summary svg { width: 21px; height: 21px; }
body .hn-header .hn-mobile-panel {
  display: grid;
  grid-template-columns: 1fr;
  inset-inline: auto 0;
  top: calc(100% + 10px);
  width: min(1320px, calc(100vw - 48px));
  max-height: calc(100dvh - 100px);
  padding: 8px;
}
body .hn-header .hn-mobile-panel > a {
  min-height: 52px;
  padding: 14px 20px;
  font-size: 14px;
}
body .hn-header .hn-mobile-panel > a::after {
  content: "↗";
  margin-inline-start: auto;
  color: #929eb3;
}
body .hn-header .hn-mobile-panel > a:nth-child(n+2) { border-top: 1px solid #ffffff0c; }
body .hn-header .hn-buy {
  min-height: 38px;
  padding: 9px 15px;
  gap: 12px;
  font-size: 11px;
  font-weight: 550;
  border-radius: 12px;
  background: var(--brand-gradient);
  border-color: color-mix(in srgb, var(--brand-from) 45%, transparent);
  box-shadow: inset 0 1px 0 #ffffff35, 0 5px 18px #e9244512;
}
body .hn-header .hn-buy:hover { background: var(--brand-gradient); filter: brightness(1.08); color: white; }
@media (max-width: 1100px) {
  body .hn-header .hn-desktop { display: none; }
  body .hn-header .hn-actions { margin-inline-start: auto; }
  body .hn-header .hn-mobile { display: block; }
}
@media (max-width: 640px) {
  body .hn-header { top: 8px; width: calc(100% - 24px); margin-top: 8px; border-radius: 16px; }
  body .hn-header .hn-inner { padding: 8px 12px; min-height: 60px; gap: 10px; }
  body .hn-header .hn-actions { gap: 3px; }
  body :is(.hn-header, footer) .hn-language { position: static; }
  body :is(.hn-header, footer) .hn-language > summary { padding-inline: 7px; }
  body :is(.hn-header, footer) .hn-language > summary svg:last-child { display: none; }
  body .hn-header .hn-buy { padding: 9px 11px; gap: 6px; font-size: 10px; }
  body .hn-header .hn-brand .brand-name { font-size: 18px; }
  body .hn-header .hn-mobile-panel { grid-template-columns: 1fr; width: calc(100vw - 24px); }
  body :is(.hn-header, footer) .hn-languages { inset-inline-end: 0; top: calc(100% + 10px); }
}
@media (max-width: 390px) {
  body .hn-header .hn-buy svg { display: none; }
  body .hn-header .hn-brand { gap: 6px; }
}
