/* Top bar shared by every page (home, privacy, license).
   Rules are scoped under .nav so the older style.css on the legal pages cannot reach them. */
.nav {
  --nav-ink: #111114;
  --nav-soft: #55555d;
  --nav-chip: #e8e8ed;
  --nav-chip-hover: #dcdce2;
  --nav-m: clamp(20px, 4vw, 64px);
  position: fixed; top: 12px; left: 0; right: 0; z-index: 50; pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.nav .nav-in { pointer-events: auto; box-sizing: border-box; display: flex; align-items: center; gap: 32px; height: 60px; width: calc(100% - 2 * var(--nav-m)); max-width: calc(1440px - 2 * var(--nav-m)); margin-inline: auto; padding: 0 10px 0 22px; border-radius: 999px; color: var(--nav-ink); }

/* The bar is a floating sheet of Liquid Glass, as requested by the owner (taste-skill-ignore: glass).
   Chromium: glass.js adds .glass-live and the backdrop is refracted through an SVG displacement map.
   Safari and Firefox cannot use SVG filters in backdrop-filter, so they get blur and saturation. */
.glass { position: relative; isolation: isolate; background: rgba(250, 250, 252, .62); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); /* taste-skill-ignore */ box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .45), inset 0 -1px 1px rgba(255, 255, 255, .35), 0 8px 28px rgba(17, 17, 20, .10), 0 1px 3px rgba(17, 17, 20, .08); }
.glass.glass-live { background: rgba(255, 255, 255, .36); -webkit-backdrop-filter: url(#onyx-glass); backdrop-filter: url(#onyx-glass); }
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass.glass-live { background: #f5f5f7; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: inherit; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
/* Header mark: the SVG has ~25% empty room on each side, so it is drawn larger and the
   negative margins pull that room in - the visible mark is ~22px, ~9px from the name */
.nav .brand img { width: 44px; height: 44px; margin: -5px -15px -5px -3px; }
.nav .nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; padding: 0; background: none; border: 0; border-radius: 0; font-size: 15px; }
.nav .nav-links a { padding: 0; font-size: 15px; font-weight: 400; color: var(--nav-soft); text-decoration: none; transition: color .2s; }
.nav .nav-links a:hover { color: var(--nav-ink); }
.nav .lang { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 36px; padding: 0 10px; border-radius: 999px; background: var(--nav-chip); color: var(--nav-ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .2s; }
.nav .lang:hover { background: var(--nav-chip-hover); color: var(--nav-ink); }
.nav .nav-in .lang { margin-left: -12px; }
.nav .nav-cta { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px; background: var(--nav-ink); color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; transition: transform .2s cubic-bezier(.32, .72, 0, 1), background-color .2s; }
.nav .nav-cta:hover { background: #2a2a30; color: #fff; }
.nav .nav-cta:active { transform: scale(.97); }

@media (max-width: 900px) {
  .nav { top: 8px; }
  .nav .nav-in { gap: 10px; height: 54px; width: calc(100% - 24px); padding: 0 7px 0 16px; }
  .nav .nav-links { display: none; }
  .nav .nav-in .lang { margin-left: auto; }
  .brand { font-size: 21px; }
  .brand img { width: 30px; height: 30px; }
  .nav .brand img { width: 38px; height: 38px; margin: -4px -13px -4px -2px; }
}

/* Theme button (privacy and license pages, which still have a dark theme) */
.nav .theme-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--nav-chip); color: var(--nav-ink); transition: background-color .2s; }
.nav .theme-btn:hover { background: var(--nav-chip-hover); }
.nav .theme-btn svg { width: 18px; height: 18px; }
.nav .nav-in .theme-btn { margin-left: -22px; }
@media (max-width: 900px) { .nav .nav-in .theme-btn { margin-left: 0; } }

[data-theme="dark"] .nav { --nav-ink: #f5f5f7; --nav-soft: #a9a9b2; --nav-chip: rgba(255, 255, 255, .12); --nav-chip-hover: rgba(255, 255, 255, .2); }
[data-theme="dark"] .glass { background: rgba(28, 30, 36, .62); /* taste-skill-ignore */ box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 28px rgba(0, 0, 0, .4); }
[data-theme="dark"] .glass.glass-live { background: rgba(20, 22, 28, .42); }
[data-theme="dark"] .nav .nav-cta { background: #f5f5f7; color: #111114; }
[data-theme="dark"] .nav .nav-cta:hover { background: #e2e2e8; color: #111114; }
