/* The site header, shared by every website page (markup: spa/build/site-nav.html, stamped in by npm run spa:build).
   One dark bar in both themes, a gold line under the top links on hover and for the page or section in view,
   and dropdowns opened by site-nav.js. Own class names only, so no page's older nav rules reach it. */
.pp-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; background: rgba(45, 45, 45, 0.96); border-bottom: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pp-nav a { text-decoration: none; }
.pp-nav-bar { max-width: 80rem; height: 64px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 24px; }
.pp-nav-logo { display: flex; align-items: center; margin-right: auto; }
.pp-nav .pp-mark { font-family: 'Inter', system-ui, sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.pp-nav .pp-mark .pp-plain { color: #F3F1EC; }
.pp-nav .pp-mark .pp-pals { display: inline-block; background: linear-gradient(135deg, #FFD700 0%, #F5A623 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Desktop menu */
.pp-nav-menu { display: none; list-style: none; margin: 0; padding: 0; align-items: center; gap: 22px; }
.pp-nav-item { position: relative; display: flex; align-items: center; gap: 2px; height: 64px; }
.pp-nav-top { position: relative; font-size: 14px; font-weight: 500; color: #CFCCC4; transition: color .15s ease; }
.pp-nav-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 2px; background: linear-gradient(135deg, #FFD700 0%, #F5A623 100%); transform: scaleX(0); transition: transform .2s ease; }
.pp-nav-item:hover .pp-nav-top, .pp-nav-item[data-open] .pp-nav-top, .pp-nav-top:focus-visible, .pp-nav-top.active { color: #FFFFFF; }
.pp-nav-item:hover .pp-nav-top::after, .pp-nav-item[data-open] .pp-nav-top::after, .pp-nav-top:focus-visible::after, .pp-nav-top.active::after { transform: scaleX(1); }
.pp-nav-top.active { font-weight: 600; }
.pp-nav-caret { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: none; color: #CFCCC4; cursor: pointer; }
.pp-nav-caret:hover, .pp-nav-caret:focus-visible { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
.pp-nav-caret svg, .pp-m-caret svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.pp-nav-item[data-open] .pp-nav-caret svg { transform: rotate(180deg); }
.pp-nav-panel { display: none; position: absolute; top: 100%; left: -16px; min-width: 300px; padding: 8px; border-radius: 16px; background: #1F1F1F; border: 1px solid rgba(255, 255, 255, 0.10); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.6); }
.pp-nav-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.pp-nav-item[data-open] .pp-nav-panel { display: block; }
.pp-nav-panel a { display: block; padding: 10px 12px; border-radius: 10px; color: #CFCCC4; }
.pp-nav-panel a b { display: block; font-size: 14px; font-weight: 600; color: #FFFFFF; }
.pp-nav-panel a span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: #A9A9A9; }
.pp-nav-panel a:hover, .pp-nav-panel a:focus-visible { background: rgba(255, 255, 255, 0.06); }
.pp-nav-panel a:hover b, .pp-nav-panel a[aria-current="page"] b, .pp-nav-panel a.active b { color: #F5B82E; }

/* Actions */
.pp-nav-actions { display: none; align-items: center; gap: 16px; }
.pp-theme-toggle { display: inline-flex; padding: 8px; margin-right: -4px; border: 0; border-radius: 8px; background: none; color: #CFCCC4; cursor: pointer; }
.pp-theme-toggle:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
.pp-theme-toggle svg { width: 20px; height: 20px; }
.pp-nav-login { font-size: 14px; font-weight: 500; color: #CFCCC4; }
.pp-nav-login:hover { color: #FFFFFF; }
.pp-nav-trial { display: inline-block; padding: 10px 20px; border-radius: 999px; background: linear-gradient(135deg, #FFD700 0%, #F5A623 100%); color: #1A1A1A !important; font-size: 14px; font-weight: 600; }

/* Mobile */
.pp-nav-burger { display: inline-flex; padding: 8px; border: 0; background: none; color: #CFCCC4; cursor: pointer; }
.pp-nav-burger svg { width: 24px; height: 24px; }
.pp-nav-burger .pp-icon-close, .pp-nav-burger[aria-expanded="true"] .pp-icon-open { display: none; }
.pp-nav-burger[aria-expanded="true"] .pp-icon-close { display: block; }
.pp-nav-mobile { max-height: calc(100vh - 64px); overflow-y: auto; padding: 12px 16px 20px; background: #111114; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.pp-nav-mobile[hidden] { display: none; }
.pp-m-row { display: flex; align-items: center; justify-content: space-between; }
.pp-m-top, .pp-m-sub a, .pp-m-theme, .pp-m-login { display: block; padding: 10px 0; font-size: 15px; font-weight: 500; color: #CFCCC4; }
.pp-m-top.active, .pp-m-sub a[aria-current="page"], .pp-m-sub a.active { color: #F5B82E; }
.pp-m-caret { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: none; color: #CFCCC4; cursor: pointer; }
.pp-m-caret[aria-expanded="true"] svg { transform: rotate(180deg); }
.pp-m-caret svg { width: 14px; height: 14px; }
.pp-m-sub { padding: 0 0 6px 14px; border-left: 2px solid rgba(245, 166, 35, 0.5); }
.pp-m-sub[hidden] { display: none; }
.pp-m-sub a { padding: 8px 0; font-size: 14px; }
.pp-m-theme { width: 100%; margin-top: 8px; padding-top: 14px; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); background: none; text-align: left; font-family: inherit; cursor: pointer; }
.pp-m-trial { display: block; margin-top: 12px; text-align: center; }

@media (min-width: 640px) { .pp-nav-bar { padding: 0 24px; } }
@media (min-width: 1024px) {
    .pp-nav-bar { padding: 0 32px; }
    .pp-nav-menu, .pp-nav-actions { display: flex; }
    .pp-nav-burger, .pp-nav-mobile { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .pp-nav-top::after, .pp-nav-caret svg, .pp-m-caret svg { transition: none; }
}
