/* Shared public navigation, including standalone error and redirect pages. */
@font-face {
  font-family: "Geist";
  src: url("/public_assets/fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
.nav, .nav *, .nav *::before, .nav *::after { box-sizing: border-box; }
.nav {
  --ease: cubic-bezier(.2, .7, .2, 1);
  position: sticky; top: 0; z-index: 20; flex: 0 0 auto;
  padding-top: env(safe-area-inset-top); border-bottom: 1px solid rgb(255 255 255 / 6%);
  background: #0f0f10; color: #ecebe8; font: 400 15px/1.4 "Geist", system-ui, sans-serif;
  view-transition-name: site-nav;
}
.nav .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  gap: 24px; width: 100%; max-width: 1120px; height: 80px; margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
}
.nav .nav-brand {
  display: inline-flex; align-items: center; justify-self: start; gap: 12px;
  min-height: 44px; padding: 0; color: inherit; text-decoration: none; font-weight: 600; font-size: 16px; white-space: nowrap;
}
.nav .nav-brand img { display: block; width: 26px; height: 26px; }
.nav-brand-name { transition: color 180ms var(--ease); }
.nav-brand:hover .nav-brand-name { color: #fff; }
.nav .nav-links { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav .nav-links a {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 6px; color: #9d9c97; text-decoration: none; font-size: 15px; white-space: nowrap;
  transition: color 180ms var(--ease);
}
.nav .nav-links a::after {
  content: ""; position: absolute; bottom: 5px; left: 6px; right: 6px; height: 2px;
  border-radius: 1px; background: #5b9cff; transform: scaleX(0); transform-origin: center;
  transition: transform 180ms var(--ease);
}
.nav .nav-links a:hover, .nav .nav-links a[aria-current="page"] { color: #ecebe8; }
.nav .nav-links a:hover::after, .nav .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav-cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center; justify-self: end;
  min-height: 44px; padding: 0 22px; border: 1px solid #5b9cff; border-radius: 6px;
  background: transparent; color: #8bb9ff; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
.nav .nav-cta-trace {
  position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px);
  opacity: 0; pointer-events: none; transition: opacity 150ms var(--ease);
}
.nav .nav-cta-trace rect {
  fill: none; stroke: #c7e0ff; stroke-width: 1.5; vector-effect: non-scaling-stroke;
  stroke-dasharray: 24 76; stroke-dashoffset: 100;
}
.nav .nav-cta:hover, .nav .nav-cta:focus-visible { background: rgb(91 156 255 / 8%); color: #b4d2ff; border-color: #8bb9ff; }
.nav a:focus-visible { outline: 2px solid #5b9cff; outline-offset: 5px; border-radius: 6px; }
@media (hover: hover) {
  .nav .nav-cta:hover .nav-cta-trace { opacity: 1; }
  .nav .nav-cta:hover .nav-cta-trace rect { animation: nav-login-trace 1s linear infinite; }
}
.nav .nav-cta:focus-visible .nav-cta-trace { opacity: 1; }
.nav .nav-cta:focus-visible .nav-cta-trace rect { animation: nav-login-trace 1s linear infinite; }
@keyframes nav-login-trace {
  to { stroke-dashoffset: 0; }
}
.skip {
  position: absolute; top: -80px; left: 12px; z-index: 50; padding: 10px 14px;
  background: #ecebe8; color: #0f0f10; border-radius: 6px;
  font: 500 15px/1.6 "Geist", system-ui, sans-serif; text-decoration: none;
}
.skip:focus { top: 12px; }
@media (max-width: 600px) {
  .nav .wrap { grid-template-columns: auto minmax(0, 1fr) auto; height: 68px; gap: 16px; }
  .nav .nav-brand-name { display: none; }
  .nav nav { justify-self: center; }
  .nav .nav-links { gap: 12px; }
  .nav .nav-links a { min-width: 44px; }
  .nav .nav-cta { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav *, .nav *::after { animation: none !important; transition: none !important; }
}
