/*
  01-navbar: floating pill + phone menu.
  Source: Ruixen UI navbar-floating + expandable-menu-navbar.
  MIT License, Copyright (c) 2025 Ruixen UI. Permission is hereby granted, free of charge,
  to any person obtaining a copy of this software... (full text: ../../source/ruixen/LICENSE.txt).
  Ported to plain CSS for this skill; light look; 44px targets.
*/
.vn {
  --vn-max: 896px;              /* max-w-4xl */
  --vn-h: 56px;                 /* bar row; links are 44 tall at a 6px inset (concentric) */
  --vn-inset: 6px;
  --vn-bg: rgba(255, 255, 255, .82);
  --vn-blur: 12px;
  --vn-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px -12px rgba(0,0,0,.18);
  --vn-open-radius: 22px;
  position: sticky; top: 0; z-index: var(--vu-z-nav, 50);
  padding: 12px 16px;
  pointer-events: none;          /* only the bar takes clicks */
}
.vn-scrim {
  position: fixed; inset: 0; z-index: -1;
  background: rgba(10, 10, 10, .04);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.vn.is-open .vn-scrim { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .22s ease; }

.vn-bar {
  pointer-events: auto;
  max-width: var(--vn-max); margin: 0 auto;
  background: var(--vn-bg);
  -webkit-backdrop-filter: blur(var(--vn-blur)) saturate(1.4); backdrop-filter: blur(var(--vn-blur)) saturate(1.4);
  border: 1px solid var(--vu-border, #e5e5e5);
  border-radius: calc(var(--vn-h) / 2);
  box-shadow: var(--vn-shadow);
  transition: border-radius .45s var(--vu-expo);
}
.vn.is-open .vn-bar { border-radius: var(--vn-open-radius); }
.vn-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: var(--vn-h); padding: 0 var(--vn-inset) 0 16px; }

.vn-logo { display: inline-flex; align-items: center; gap: 10px; min-height: var(--vu-tap, 44px); color: var(--vu-fg); text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; }
.vn-links { display: none; gap: 2px; }
.vn-links a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; color: var(--vu-muted-fg); text-decoration: none; transition: background-color .2s ease, color .2s ease;
}
.vn-links a:hover { background: var(--vu-muted); color: var(--vu-fg); }
.vn-links a[aria-current="page"] { background: var(--vu-muted); color: var(--vu-fg); }
.vn-actions { display: flex; align-items: center; gap: 6px; }
.vn-phone { display: none; align-items: center; height: 44px; padding: 0 10px; font-size: 14px; font-weight: 500; color: var(--vu-fg); text-decoration: none; font-variant-numeric: tabular-nums; }
.vn-cta { min-height: 44px; padding: 0 18px; font-size: 14px; }

.vn-menu {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 12px; border: 0; border-radius: 999px;
  background: var(--vu-muted); color: var(--vu-fg); cursor: pointer;
  font: 500 12px/1 var(--vu-font); letter-spacing: .08em; text-transform: uppercase;
}
.vn-menu svg { transition: transform .3s var(--vu-pop-soft); }
.vn.is-open .vn-menu svg { transform: rotate(180deg); }

/* panel: height via grid rows, no measuring */
.vn-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--vu-expo); }
.vn.is-open .vn-panel { grid-template-rows: 1fr; }
.vn-panel-in { overflow: hidden; min-height: 0; }
.vn-list { list-style: none; margin: 0; padding: 8px var(--vn-inset) 4px; border-top: 1px solid var(--vu-hairline); }
.vn-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 0 12px; border-radius: 12px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--vu-fg); text-decoration: none;
  opacity: 0; transform: translateY(6px);
  transition: background-color .15s ease, opacity .32s cubic-bezier(.22,.61,.36,1), transform .32s cubic-bezier(.22,.61,.36,1);
}
.vn-list a:hover, .vn-list a:focus-visible { background: var(--vu-muted); }
.vn-meta { font: 400 12px/1 var(--vu-mono); color: var(--vu-muted-fg); }
.vn.is-open .vn-list a { opacity: 1; transform: none; transition-delay: 0s, calc(.1s + var(--i, 0) * 22ms), calc(.1s + var(--i, 0) * 22ms); }
.vn-panel-cta { display: flex; width: calc(100% - 2 * var(--vn-inset) - 8px); margin: 6px auto 0; min-height: 48px; }
.vn-foot { display: flex; align-items: center; gap: 8px; margin: 12px var(--vn-inset) 0; padding: 12px 12px 14px; border-top: 1px solid var(--vu-hairline); font: 400 12px/1.4 var(--vu-mono); color: var(--vu-muted-fg); }
.vn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--vu-green); }

@media (max-width: 379px) { .vn-cta { display: none; } }
@media (max-width: 479px) {
  .vn-menu { padding: 0; width: 44px; }
  .vn-menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 768px) {
  .vn-links { display: flex; }
  .vn-menu, .vn-panel, .vn-scrim { display: none; }
  .vn-row { padding-left: 20px; }
}
@media (min-width: 1024px) { .vn-phone { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) {
  .vn-list a { opacity: 1; transform: none; }
}
