/* ================================================================
   PayStubCheck — nav-v3.css
   Site-wide navigation additions (v3): dropdown price styling,
   hamburger button, and the mobile drawer. Loads AFTER nav.css on
   every page. All classes are additive — nothing in nav.css is
   overridden destructively.
   ================================================================ */

:root {
  --psnav-mono:        'JetBrains Mono', ui-monospace, monospace;
  --psnav-leader:      1px dotted #b9cf9d;
}

/* ── Dropdown polish ─────────────────────────────────────────────── */
.nav-dropdown .nav-dd-price {
  font-family: var(--psnav-mono);
  font-variant-numeric: tabular-nums;
}
.nav-dd-tagline {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 10px 16px 4px;
}

/* ── Ledger primitives used by the drawer ───────────────────────── */
.ps-money {
  font-family: var(--psnav-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ── Hamburger — visible only where nav-links are hidden (≤1023px) */
.ps-nav-burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  margin-left: 12px;
  transition: background .2s, border-color .2s;
}
.ps-nav-burger span {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .25s, opacity .2s, background .2s;
}
nav.nav-dark .ps-nav-burger { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); }
nav.nav-dark .ps-nav-burger span { background: #eef7e4; }
@media (max-width: 1023px) {
  .ps-nav-burger { display: inline-flex; }
}
body.ps-drawer-open .ps-nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.ps-drawer-open .ps-nav-burger span:nth-child(2) { opacity: 0; }
body.ps-drawer-open .ps-nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Drawer ─────────────────────────────────────────────────────── */
.ps-drawer {
  position: fixed;
  inset: 66px 0 0 0;
  z-index: 190;
  background: var(--bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px 6% calc(120px + env(safe-area-inset-bottom));
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
body.ps-drawer-open .ps-drawer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
body.ps-drawer-open { overflow: hidden; }
.ps-drawer-group { margin-bottom: 26px; }
.ps-drawer-title {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-xdark);
  margin-bottom: 10px;
}
.ps-drawer a.ps-drawer-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 2px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15.5px;
  border-bottom: 1px solid var(--border);
}
.ps-drawer a.ps-drawer-link .ps-leader { flex: 1; border-bottom: var(--psnav-leader); transform: translateY(-3px); min-width: 16px; }
.ps-drawer a.ps-drawer-link .ps-money { font-size: 14px; color: var(--green-xdark); }
.ps-drawer a.ps-drawer-link .ps-money.ps-money-free { color: var(--green-dark); }
.ps-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(236,106,0,0.35);
}

/* ── Focus visibility + reduced motion ──────────────────────────── */
.ps-nav-burger:focus-visible,
.ps-drawer a:focus-visible {
  outline: 3px solid rgba(92,184,0,0.55);
  outline-offset: 2px;
  border-radius: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .ps-drawer, .ps-nav-burger span { transition: none !important; }
}
