/* ============================================================================
   AGIO — Navigation component (Faz 1, 2026-10-08)
   ----------------------------------------------------------------------------
   WHAT: two unrelated nav patterns the site calls "nav", extracted from the
   live site's base rules PLUS its v-p70 (Palantir-leaning) overrides, per
   AGIO-DEC-002 — the baseline is the site as it ships (body class
   "v-p70 hl1 min1"), not the un-overridden 50/50 default.

   1. TOP BAR  — `.top` (sticky shell) > `.brand` (logo link) + `.nav` (link
      row) + a `.btn.ink` CTA, with an optional second-row `.subnav`.
   2. SIDEBAR NAV — a pill list with an `.on` active state, used twice under
      different class names: `.dash nav` (inside a `.frame-body.dash` product
      mock) and `.pb-nav` (inside the wider `.pb` 3-column product-screen
      layout). Both share the same visual language; kept as two selectors
      since the live CSS never unified them.

   AT THE LIVE BASELINE (v-p70 override below): `.nav` is display:none — the
   top bar shows only brand + CTA button; `.subnav` becomes the visible link
   row instead, as a second header line under a hairline.
   ============================================================================ */

/* ---- 1. Top bar ------------------------------------------------------- */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  /* :: SOURCE = agio/index.html:50 */
}
.top .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
/* :: SOURCE = agio/index.html:51 */

.brand { display: flex; align-items: center; margin-right: auto; color: var(--ink); text-decoration: none; }
.brand svg { height: 18px; width: auto; display: block; overflow: visible; }
@media (max-width: 600px) { .brand svg { height: 15px; } }
/* :: SOURCE = agio/index.html:52-54 */

.nav { display: flex; gap: 26px; }
.nav a { font: 500 15px/1 var(--f-body); text-decoration: none; color: var(--ink-2); transition: color var(--dur-fast) var(--ease-standard); }
.nav a:hover { color: var(--violet); }
/* :: SOURCE = agio/index.html:55-57 */

@media (max-width: 600px) { .nav { display: none; } }
/* :: SOURCE = agio/index.html:196 — mobile hides the link row regardless of variant */

/* ---- 2. Sidebar nav (pill list, .on = active) -------------------------- */
.dash nav {
  display: grid;
  gap: 4px;
  align-content: start;
  font: 400 13px var(--f-body);
  color: var(--ink-2);
}
.dash nav span { padding: 6px 8px; border-radius: 3px; }
.dash nav span.on { background: var(--tint); color: var(--violet); font-weight: 500; }
/* :: SOURCE = agio/index.html:130-132 */
@media (max-width: 600px) { .dash nav { grid-auto-flow: column; overflow-x: auto; } }
/* :: SOURCE = agio/index.html:205 */

.pb-nav {
  border-right: 1px solid var(--line);
  padding: 14px;
  display: grid;
  gap: 3px;
  align-content: start;
  font: 400 13.5px var(--f-body);
  color: var(--ink-2);
}
.pb-nav span { padding: 6px 8px; }
.pb-nav span.on { background: var(--tint); color: var(--violet); font-weight: 500; }
/* :: SOURCE = agio/index.html:339-341 — NOT used in any current markup (index.html /
   src/index.src.html both define this CSS but never emit class="pb-nav"); kept because
   the team lead's dispatch named it explicitly as the second sidebar-nav subtype. Treat
   as dormant/reserved, not verified against a live screen. */
@media (max-width: 600px) {
  .pb-nav, .pb-side { border: 0; }
  .pb-nav { grid-auto-flow: column; overflow-x: auto; border-bottom: 1px solid var(--line); }
  .pb-nav .grp { display: none; }
}
/* :: SOURCE = agio/index.html:373-375 */

/* ---- v-p70 (Palantir-leaning) override — this IS the baseline per AGIO-DEC-002 ---- */
.nav { display: none; }
/* :: SOURCE = agio/index.html:285 (body.v-p70 .nav) */
.subnav { display: block; border-top: 1px solid var(--line); }
.subnav .wrap { display: flex; flex-wrap: wrap; gap: 6px 28px; padding-block: 10px; }
.subnav a { font: 400 14px/1.4 var(--f-body); color: var(--ink-2); text-decoration: none; }
.subnav a:hover { color: var(--violet); }
/* :: SOURCE = agio/index.html:281-284 (body.v-p70 .subnav / .wrap / a / :hover) */

/* NOTE — not applied below, flagging a discrepancy found while extracting this file:
   the live baseline body class is "v-p70 hl1 min1", not "v-p70" alone. A separate,
   out-of-scope minimalism layer (agio/src/minimal.css, NOT a button/card/nav component)
   re-hides .subnav at min1 (`body.min1 .subnav { display: none }`) and wins the cascade
   by source order, since both rules share the same specificity. Net effect on the actual
   live page: NEITHER `.nav` NOR `.subnav` is visible — only brand + CTA button show in
   the top bar. The dispatch described only the v-p70-alone behaviour (.nav hidden,
   .subnav visible); this file matches that dispatch and the variants.css source, but the
   true combined-baseline behaviour differs. Left for the CEO/owner to decide whether
   nav.css should also encode the min1 override, since minimal.css is a separate 17-item
   inventory entry, not one of this dispatch's three families.
   :: SOURCE = agio/src/minimal.css:4-5 */
