/* Kit v3 navigation (nav.js): a Menu button and a compact group bar in the header, and a drawer that floats over the
   page and closes. It never takes a column: the content keeps the full width. Kit v3 tokens only; every rule is
   scoped to .nav* or html.nav-on. */
html.nav-on .rail.rail--end { display: none; }
.nav-menu { flex: none; }
.nav-menu span { font-weight: 600; }
.nav-bar { display: none; align-items: center; gap: 2px; margin-inline-end: 6px; }
.nav-bar button { height: 34px; padding-inline: 10px; border: 0; border-radius: var(--r); background: transparent; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.nav-bar button:hover { background: var(--bg-2); color: var(--ink); }
.nav-bar button[aria-current] { color: var(--ink); background-image: var(--pastel); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 2px; }
@media (min-width: 1380px) { .nav-bar { display: flex; } }
.nav-menu--float { position: fixed; z-index: 21; inset-block-start: 12px; inset-inline-end: 12px; }
.nav[hidden] { display: none; }
.nav { position: fixed; inset: 0; z-index: 60; }
.nav-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.nav-drawer { position: absolute; inset-block: 12px; inset-inline-end: 12px; width: min(380px, calc(100vw - 24px)); display: flex; flex-direction: column; min-height: 0; overflow: auto; padding: 12px 12px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); color: var(--ink); box-shadow: var(--sh); outline: none; }
.nav-drawer__hd { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; border-block-end: 1px solid var(--line); margin-block-end: 8px; }
.nav-drawer__hd h2 { margin: 0; font: 600 16px/1.2 var(--f); }
.nav-gs, .nav-gs ul { list-style: none; margin: 0; padding: 0; }
.nav-gs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 12px; }
.nav-g__h { margin: 0; padding: 4px 8px; font: 500 11px/1.2 var(--f); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.nav-a { display: flex; align-items: center; gap: 9px; min-height: 36px; padding-inline: 8px; border-radius: var(--r); color: var(--ink-2); text-decoration: none; font-size: 13.5px; }
.nav-a svg { flex: none; }
.nav-a:hover { background: var(--bg-2); color: var(--ink); }
.nav-a[aria-current="page"] { background: var(--ink); color: var(--bg); font-weight: 600; }
.nav-add { margin-block-start: 14px; justify-content: center; }
@media (max-width: 760px) {
  .nav-menu { padding-inline: 8px; }
  .nav-drawer { inset: 8px; width: auto; }
}
@media (max-width: 420px) { .nav-menu span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
