/* ============================================================
 * The shared top bar, standalone.
 *
 * ng_topbar.js injects the bar but its looks live in ng.css, which also restyles body, headings and
 * links — fine on a nextgen page, not something to drop on the older guides (rv-packing,
 * roadtrip-recommendations, weather), which have their own design. So this carries ONLY the bar's
 * own rules plus the variables they reference, lifted from ng.css.
 *
 * Light values on purpose: these pages are light. A nextgen page loads ng.css after this and its
 * theme variables win.
 *
 * Generated from ng.css 2026-07-29 — if the bar is restyled there, regenerate rather than hand-edit.
 * ============================================================ */
:root{--b-card:#eceef2;--b-div:#f1f2f4;--blue:#2563eb;--card:#ffffff;--chip:#f4f5f7;--ink:#101828;--muted:#667085;--muted-navy:#94a3b8;--navy:#0f172a;--navy-border:#475569;--on-navy:#cbd5e1;}
/* ============ Shared top bar (injected by ng_topbar.js) ============ */
.ng-topbar{position:sticky;top:0;height:64px;background:var(--navy);display:flex;align-items:center;padding:0 20px;gap:16px;z-index:2000;flex:none}
.ng-topbar .logo{height:75px;display:block;margin-bottom:-34px;position:relative;z-index:2001;filter:drop-shadow(0 3px 6px rgba(15,23,42,.35))}
.ng-topbar .apptitle{font-size:14px;font-weight:600;color:var(--on-navy);white-space:nowrap}
.ng-topbar .search{width:280px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:8px 12px;font-size:13px;color:#e2e8f0;font-family:inherit;outline:none}
.ng-topbar .search::placeholder{color:var(--muted-navy)}
.ng-topbar .right{margin-left:auto;display:flex;align-items:center;gap:18px;color:var(--on-navy);font-size:13.5px;font-weight:600}
.ng-topbar .right>span,.ng-topbar .right>a{cursor:pointer;white-space:nowrap;color:var(--on-navy);text-decoration:none}
.ng-topbar .right>a:hover{text-decoration:underline}
.ng-topbar .helpq{width:26px;height:26px;border:1.5px solid var(--navy-border);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;flex:none;text-decoration:none;color:inherit;cursor:pointer}
.ng-topbar .helpq:hover{border-color:#fff;color:#fff}
.ng-topbar .avatar{width:34px;height:34px;border-radius:50%;background:#dbeafe;color:#2563eb;font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center;flex:none;cursor:pointer}
/* Dropdown shells (language + profile) */
.ng-dd-wrap{position:relative}
.ng-dd{display:none;position:absolute;top:42px;right:0;background:var(--card);border:1px solid var(--b-card);border-radius:12px;padding:8px;box-shadow:0 8px 24px rgba(16,24,40,.25);flex-direction:column;gap:6px;min-width:52px;z-index:2100}
.ng-dd.open{display:flex}
.ng-dd img.flag{width:38px;height:auto;cursor:pointer;border-radius:3px;border:1px solid transparent;transition:border-color .15s,transform .15s;display:block}
.ng-dd img.flag:hover{border-color:var(--blue);transform:scale(1.05)}
#ng-theme{font-size:1.2em;line-height:1;display:inline-flex;align-items:center;justify-content:center;
  min-width:30px;min-height:30px;padding:2px;border-radius:8px;-webkit-tap-highlight-color:transparent}
.ng-dd.menu{min-width:180px;padding:6px}
.ng-dd.menu a{display:block;padding:9px 12px;border-radius:8px;font-size:13.5px;font-weight:600;color:var(--ink);text-decoration:none;white-space:nowrap}
.ng-dd.menu a:hover{background:var(--chip)}
.ng-dd.menu .who{padding:8px 12px 10px;border-bottom:1px solid var(--b-div);margin-bottom:4px}
.ng-dd.menu .who b{display:block;font-size:13.5px;color:var(--ink)}
.ng-dd.menu .who span{font-size:11.5px;color:var(--muted)}
.ng-topbar{height:56px;padding:0 14px;gap:12px}
.ng-topbar .logo{height:57px;max-width:190px;object-fit:contain;margin-bottom:-24px}
.ng-topbar .apptitle,.ng-topbar .helpq,.ng-topbar .d-only{display:none}
/* Search on a phone without the bar growing: the field is a 40px stub showing just the 🔍
     from its own placeholder, and on focus the wrapper goes absolute across the bar so the
     field can fill the width — over the logo and icons rather than pushing them anywhere.
     The bar keeps its 56px, always one row. 15px text because iOS zooms the page for
     anything smaller. */
  .ng-topbar .search{width:40px;box-sizing:border-box;font-size:15px;padding:9px 10px;
    transition:width .18s ease}
.ng-topbar .ng-search-wrap{flex:0 0 auto}
/* 2002, not 5: the logo is position:relative with z-index:2001 so it can hang below the
     bar and still sit above the page, so anything meant to cover it has to outrank that. */
  .ng-topbar .ng-search-wrap:focus-within{position:absolute;left:14px;right:14px;z-index:2002}
/* Opaque while it floats: the resting field is rgba(255,255,255,.08) over the navy bar,
     which would let the logo show straight through the expanded one. */
  .ng-topbar .ng-search-wrap:focus-within .search{width:100%;background:#152238;
    border-color:rgba(255,255,255,.22);box-shadow:0 6px 18px rgba(0,0,0,.35)}
.ng-topbar .ng-sug{width:100%;max-width:none}
.ng-topbar .right{gap:14px;font-size:15px}
#ng-theme{min-width:38px;min-height:38px;font-size:1.25em}
.ng-topbar .avatar{width:30px;height:30px;font-size:12px}
