/* Shared nav and footer (components/nav.php, footer.php). Same look as the home page.
   Everything is scoped to .vg-nav / .vg-footer so it is safe on pages that also load tailwind.min.css.
   .htaccess caches CSS for a year: bump ?v= on every page that links this file after editing it. */
.vg-nav, .vg-footer {
  --bg: #F8F8F5; --card: #FFFFFF; --ink: #1D1D1D; --mute: #6b6b66; --hair: #D9D9D3;
  font-family: "Chivo Mono", ui-monospace, monospace; line-height: 1.65; color: var(--ink); -webkit-font-smoothing: antialiased;
}
.vg-nav *, .vg-footer * { box-sizing: border-box; }
.vg-nav a, .vg-footer a { color: inherit; text-decoration: none; }
.vg-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.vg-nav { position: sticky; top: 0; z-index: 50; background: rgba(248,248,245,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair); }
.vg-nav .vg-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.vg-nav img { display: block; height: 26px; width: auto; filter: invert(1); }
.vg-links { display: flex; gap: 26px; align-items: center; font-size: 13px; }
.vg-links a { white-space: nowrap; }
.vg-links a:not(.vg-btn):hover, .vg-links a.cur { text-decoration: underline; text-underline-offset: 4px; }
.vg-nav a.vg-btn { display: inline-flex; align-items: center; padding: 7px 13px; font-size: 13px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: #fff; transition: transform .12s; }
.vg-nav a.vg-btn:hover { transform: translateY(-1px); background: #000; }
@media (max-width: 1060px) { .vg-links a.hide { display: none; } }
@media (max-width: 620px) { .vg-links a.hide-sm { display: none; } }
@media (max-width: 480px) {
  .vg-nav .vg-wrap { height: 56px; padding: 0 16px; }
  .vg-nav img { height: 22px; }
  .vg-nav a.vg-btn { padding: 6px 10px; font-size: 12px; }
}

.vg-footer { background: var(--bg); border-top: 1px solid var(--ink); padding: 48px 0 40px; font-size: 13px; }
.vg-footer .vg-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.vg-footer img { display: block; height: 24px; width: auto; filter: invert(1); }
.vg-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.vg-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vg-footer .vg-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--mute); font-size: 12px; }
