/* ============================================================================
   VeloPin — shared site header (single source of truth for the PUBLIC pages:
   landing, blog, legal). Mirrors the planner's "concept 05" header so every
   page wears the same brand. Self-contained: own colour fallbacks, all
   selectors prefixed .vp-sh- so it can't collide with any page's own CSS.
   Pairs with site-header.js. The planner (velopin.html) keeps its own header.
   ============================================================================ */
.vp-sh, .vp-sh * { box-sizing: border-box; }
.vp-sh {
  --sh-brand:#E8401C; --sh-brand-d:#c23016; --sh-card:#FFFFFF;
  --sh-border:#E2E5EA; --sh-text:#1A1D23; --sh-muted:#6B7280;
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; padding: 0 20px;
  background: var(--sh-card); border-bottom: 1px solid var(--sh-border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.vp-sh-left  { display: flex; align-items: center; }
.vp-sh-logo  { display: flex; align-items: center; gap: 9px; font-weight: 700;
               font-size: 17px; text-decoration: none; color: var(--sh-text); }
.vp-sh-mark  { width: 34px; height: 34px; display: flex; align-items: center;
               justify-content: center; flex-shrink: 0; }
.vp-sh-mark svg { display: block; width: 100%; height: 100%; }

/* link cluster — minimal text links + a single divider after the logo, so the
   orange CTA stays the one dominant action (concept 05 rationale). */
.vp-sh-nav { display: flex; align-items: center; gap: 18px; margin-left: 10px; }
.vp-sh-nav::before { content: ""; width: 1px; height: 24px;
                     background: var(--sh-border); flex: none; align-self: center; }
.vp-sh-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--sh-text);
  text-decoration: none; letter-spacing: -.01em; padding: 4px 0;
  background: none; border: 0; font-family: inherit; cursor: pointer;
  transition: color .15s;
}
.vp-sh-link:hover, .vp-sh-link.is-active { color: var(--sh-brand); }
.vp-sh-link svg { flex: none; display: block; color: var(--sh-muted); transition: color .15s; }
.vp-sh-link:hover svg, .vp-sh-link.is-active svg { color: var(--sh-brand); }
/* Routes hover dropdown (Explore / My routes) + chevron — mirrors the planner. */
.vp-sh-navwrap { position: relative; display: inline-flex; align-items: center; align-self: stretch; }
.vp-sh-link .vp-sh-chev { flex: none; margin-left: 1px; color: var(--sh-muted); transition: transform .18s ease, color .15s; }
.vp-sh-navwrap:hover .vp-sh-link .vp-sh-chev { transform: rotate(180deg); color: var(--sh-brand); }
.vp-sh-navmenu { position: absolute; top: 100%; left: 0; min-width: 174px; background: var(--sh-card); border: 1px solid var(--sh-border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 5px; display: none; flex-direction: column; gap: 1px; z-index: 1100; }
.vp-sh-navwrap:hover .vp-sh-navmenu { display: flex; }
.vp-sh-navmenu-item { display: flex; align-items: flex-start; gap: 9px; text-decoration: none; border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 600; letter-spacing: -.01em; color: var(--sh-text); white-space: nowrap; }
.vp-sh-navmenu-item:hover { background: #F4F6F4; color: var(--sh-brand); }
.vp-sh-navmenu-item svg { flex: none; color: var(--sh-muted); transition: color .15s; margin-top: 2px; }
.vp-sh-navmenu-item:hover svg { color: var(--sh-brand); }
.vp-sh-mi-main { display: flex; align-items: center; gap: 6px; }
.vp-sh-mi-sub { display: block; font-size: 11.5px; font-weight: 400; color: var(--sh-muted); margin-top: 1px; }
.vp-sh-mi-new { display: inline-block; font-size: 10px; font-weight: 700; color: #fff; background: var(--sh-brand); border-radius: 4px; padding: 1px 5px; letter-spacing: .02em; }

.vp-sh-right { display: flex; align-items: center; gap: 10px; }
.vp-sh-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sh-brand); color: #fff; border: 0; border-radius: 999px;
  padding: 8px 15px; font-size: 13px; font-weight: 600; text-decoration: none;
  cursor: pointer; box-shadow: 0 1px 3px rgba(232,64,28,.32);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.vp-sh-cta:hover { background: var(--sh-brand-d); transform: translateY(-1px);
                   box-shadow: 0 3px 9px rgba(232,64,28,.30); }

/* language control (config-driven; cross-language links or a setLang callback) */
.vp-sh-lang { position: relative; }
.vp-sh-lang-btn {
  display: inline-flex; align-items: center; gap: 5px; background: none;
  border: 1px solid var(--sh-border); border-radius: 20px; padding: 5px 10px;
  font-size: 12px; font-weight: 600; color: var(--sh-muted); cursor: pointer;
  font-family: inherit;
}
.vp-sh-lang-btn:hover { color: var(--sh-text); border-color: var(--sh-text); }
.vp-sh-lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); display: none;
  background: #fff; border: 1px solid var(--sh-border); border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12); padding: 6px; min-width: 152px; z-index: 1100;
}
.vp-sh-lang-menu.open { display: block; }
.vp-sh-lang-menu a {
  display: block; padding: 7px 10px; border-radius: 8px; font-size: 13px;
  color: var(--sh-text); text-decoration: none;
}
.vp-sh-lang-menu a:hover { background: #F4F6F4; }
.vp-sh-lang-menu a.is-active { color: var(--sh-brand); font-weight: 700; }

/* mobile — keep it usable: compact bar, feature links go icon-only, Blog stays
   text (content pages benefit from it), CTA shrinks. */
@media (max-width: 767px) {
  .vp-sh { height: 50px; padding: 0 12px; }
  .vp-sh-logo { font-size: 14px; gap: 7px; }
  .vp-sh-mark { width: 26px; height: 26px; }
  .vp-sh-nav { gap: 12px; margin-left: 8px; }
  .vp-sh-nav::before { display: none; }
  .vp-sh-feature .vp-sh-lbl { display: none; } /* Community Routes + Ride Radar = icon only */
  .vp-sh-chev { display: none; } .vp-sh-navmenu { display: none !important; } /* no hover dropdown on touch */
  .vp-sh-right { gap: 6px; }
  .vp-sh-cta { padding: 6px 11px; font-size: 12px; }
  .vp-sh-lang-btn { padding: 4px 7px; font-size: 11px; }
}
@media (max-width: 460px) {
  .vp-sh-blog { display: none; } /* very narrow: drop Blog text, footer covers it */
}
