/* Bigome UI: one header and one set of controls for bigome.com and every tool (LogSentinel, LeadPilot, Labs, AutoForge, ShipFlow,
   CostLens). Edit devdocs/ui.css, then run python devdocs/sync.py: it is copied to assets/css/ui.css on bigome.com (loaded after
   style.css) and appended to the end of each tool's static/app.css. Tool-only page sizes are in devdocs/density.css.

   The design in numbers
     header        60px tall, sticky, translucent surface, 1px line below; content width min(1560px, 100% - 2 × gutter)
     logo          28px high (mark + wordmark)
     menu          14px, weight 500, 36px-high pills (12px sides, 9px radius); hover = soft surface, current page = coral pill
     controls      every button, icon button and avatar on the right is 36px high, 8px apart
     type          13.5px body and 19-22px titles in the tools (density.css), 15px body on the website
   Desktop only: phones keep their own menus (the website's ☰ below 861px, the tools' icon bar below 761px). */
:root {
  --ui-header: 60px;
  --ui-ctl: 36px;
  --ui-gutter: clamp(14px, 2.4vw, 32px);
  --ui-width: min(1560px, 100% - 2 * var(--ui-gutter));
  --ui-pill-r: 9px;
  --ui-menu-fs: 14px;
}

/* ------------------------------------------------------------------ the tools' header (.top / .top-in / .brand / .nav / .who) */
@media (min-width: 761px) {
  .top .top-in { max-width: none; width: var(--ui-width); height: var(--ui-header); padding: 0; margin: 0 auto; gap: 16px; }
  .top .brand { font-size: 17px; gap: 9px; letter-spacing: -.01em; }
  .top .brand img { width: 28px; height: 28px; }
  .top .nav { gap: 2px; align-items: center; }
  .top .nav a, .top .navbtn { height: var(--ui-ctl); padding: 0 12px; border-radius: var(--ui-pill-r); font-size: var(--ui-menu-fs); font-weight: 500; gap: 7px; }
  .top .nav a .ico, .top .navbtn .ico { width: 16px; height: 16px; }
  .top .nav a.on, .top .navbtn.on { font-weight: 600; }
  .top .who { gap: 8px; }
  .top .who > .btn, .top .who .menu > .btn { height: var(--ui-ctl); padding: 0 14px; font-size: 13.5px; }
  .top .avatar { width: 34px; height: 34px; font-size: 12.5px; }
  .top .iconbtn { width: var(--ui-ctl); height: var(--ui-ctl); border-radius: 10px; font-size: 16px; }
  .top ~ .main { max-width: none; width: var(--ui-width); margin: 0 auto; padding: 22px 0 60px; }
}
.top .menu-pop { top: calc(100% + 8px); padding: 12px; min-width: 280px; gap: 8px; border-radius: 14px; font-size: 13.5px; }

/* ------------------------------------------------------------------ the website's header (.nav / .nav-inner / .logo / .nav-links / .nav-cta) */
@media (min-width: 861px) {
  .nav-inner { height: var(--ui-header); gap: 16px; }
  .logo img, .logo-img { height: 28px; }
  .nav-links { gap: 2px; font-size: var(--ui-menu-fs); }
  .nav-links > a, .has-mega > a { display: inline-flex; align-items: center; height: var(--ui-ctl); padding: 0 12px; border-radius: var(--ui-pill-r);
    font-weight: 500; transition: background .2s, color .2s; }
  .nav-links > a:hover, .has-mega:hover > a { background: var(--primary-soft); color: var(--text); }
  .nav-links > a.active, .has-mega > a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
  .nav-links > a.active::after, .has-mega > a.active::after { display: none; }
  .nav-cta { gap: 8px; }
  .nav-phone { height: var(--ui-ctl); padding: 0 6px; font-size: 13.5px; }
  .nav-cta .btn { height: var(--ui-ctl); padding: 0 16px; font-size: 13.5px; }
  .theme-toggle { width: var(--ui-ctl); height: var(--ui-ctl); border-radius: 10px; }
  .locale-btn { height: var(--ui-ctl); padding: 0 11px; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .nav-links > a, .has-mega > a { padding: 0 8px; font-size: 13.5px; }
  .locale-label { display: none; }                 /* the pin alone; the full choice is in its menu */
  .locale-btn { width: var(--ui-ctl); padding: 0; justify-content: center; }
}

/* ------------------------------------------------------------------ region + currency picker (devdocs/money.js), everywhere */
.bgm-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bgm-picker label { display: grid; gap: 3px; font-size: 12px; color: var(--muted); font-weight: 600; }
.bgm-picker select { width: 100%; padding: 6px 8px; font-size: 13px; border-radius: 8px; }
.bgm-picker.one { display: flex; align-items: center; gap: 6px; grid-template-columns: none; }
.bgm-picker.one select { flex: 1; min-width: 0; padding: 5px 8px; font-size: 12.5px; }
.bgm-globe { font-size: 14px; line-height: 1; opacity: .8; }
.bgm-approx { color: var(--muted); font-weight: 500; font-size: .85em; white-space: nowrap; }
