/* pl-nav.css — the ONE site header.
   Extracted from proxylook-v2.css so the homepage and /assistant, which ship
   their own inline CSS and must NOT load the full stylesheet (it restyles
   html/body/a/button/img), can render the same header component as every
   other page. Single source of truth: getNavigation() in src/index.tsx. */

/* Design tokens, scoped to the header only. The homepage and /assistant use a
   different token vocabulary (--blue etc); defining these on :root here would
   leak into and restyle those pages. Scoping to the nav elements keeps the
   header pixel-identical everywhere without touching the host page. */
.pl-nav, .pl-nav *, .pl-nav-drawer, .pl-nav-drawer *, .pl-skip,
#pl-search-overlay, #pl-search-overlay * {
  --paper: #ffffff;
  --paper-2: #f1f4f9;
  --ink: #0c1628;
  --ink-2: #1c2638;
  --ink-3: #3a4658;
  --line: #e3e7ee;
  --line-2: #eef1f6;
  --accent: #1e60d6;
  --accent-soft: #e8f0fc;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 8px;
  --r-sm: 6px;
  --muted: #5d6b80;
  --shadow-sm: 0 1px 2px rgba(12,22,40,.04), 0 1px 2px rgba(12,22,40,.05);
}


.pl-nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.pl-nav-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 12px 24px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
}
.pl-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--ink); }
.pl-logo-text { font-weight: 700; }
.pl-logo-accent { color: var(--accent); }
.pl-nav-links { display: flex; gap: 2px; justify-content: center; }
.pl-nav-link {
  padding: 7px 12px; border-radius: var(--r-sm);
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.pl-nav-link:hover { background: var(--paper-2); color: var(--ink); }
.pl-nav-link.active { background: var(--accent-soft); color: var(--accent); }
.pl-nav-cta { display: flex; gap: 8px; align-items: center; }
@media (max-width: 1180px) {
  .pl-nav-links { display: none; }
  .pl-nav-inner { grid-template-columns: auto 1fr; }
}
/* Mobile hamburger button — only shown when the inline nav links collapse.
   Sits inside .pl-nav-cta. Above 1180px the hamburger is hidden because the
   inline nav handles everything. */
.pl-nav-burger {
  display: none;
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.pl-nav-burger:hover { border-color: var(--ink-3); background: var(--paper-2); }
@media (max-width: 1180px) {
  .pl-nav-burger { display: inline-flex; }
}
@media (max-width: 720px) {
  .pl-nav-cta .pl-cta-compare,
  .pl-nav-cta .pl-cta-wizard { display: none; }
  .pl-nav-inner { padding: 10px 14px; gap: 8px; }
}
/* Mobile drawer — full-height right-side overlay that opens when hamburger tapped */
.pl-nav-drawer {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12, 22, 40, .55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: stretch; justify-content: flex-end;
  animation: pl-fade-in .15s ease-out;
}
.pl-nav-drawer[data-open] { display: flex; }
.pl-nav-drawer > nav,
.pl-nav-drawer-close,
.pl-nav-drawer-cta {
  background: var(--paper);
}
.pl-nav-drawer > nav {
  width: min(320px, 86vw);
  height: 100%; overflow-y: auto;
  padding: 64px 0 16px;
  display: flex; flex-direction: column; gap: 2px;
  animation: pl-slide-in-right .2s ease-out;
  position: relative;
}
.pl-nav-drawer-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: var(--r-sm);
  border: 1px solid var(--line); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 1;
}
.pl-nav-drawer-link {
  display: block; padding: 12px 22px; font-size: 15px; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}
.pl-nav-drawer-link:hover,
.pl-nav-drawer-link.active {
  background: var(--accent-soft); color: var(--accent);
}
.pl-nav-drawer-cta {
  position: absolute; bottom: 0; left: 0; right: auto;
  width: min(320px, 86vw);
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.pl-logo-tile {
  width: 40px; height: 40px; border-radius: var(--r);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; flex-shrink: 0;
  font-family: var(--f-mono); letter-spacing: -.02em;
}
.pl-detail-brand .pl-logo-tile { width: 64px; height: 64px; font-size: 20px; }
[data-theme="dark"] img.pl-logo-tile,
  [data-theme="dark"] img.pl-logo-img { background: #fff; border-color: var(--line); }
/* ============================================================
   A11Y + TOUCH CALIBRATION — added 2026-08-13 after UI audit
   ============================================================ */

/* Skip link. First focusable element on the page; visually hidden until
   focused so keyboard users can bypass the header on all 466 pages. */
.pl-skip {
  position: absolute; left: 8px; top: -60px; z-index: 10000;
  display: inline-block; padding: 10px 16px;
  background: var(--accent, #1769FF); color: #fff;
  font: 600 15px/1.2 var(--f-sans, system-ui, sans-serif);
  text-decoration: none; border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: top .15s ease;
}
.pl-skip:focus, .pl-skip:focus-visible { top: 8px; outline: 3px solid #fff; outline-offset: 2px; }
