/* /styles/mobile-topbar-480.css
   MOBILE (≤480px) — solid light grey topbar + black text
   AND: make the height ALWAYS controlled by --topbar-h
*/

@media (max-width: 480px){

  /* ✅ Set it here (try 28px / 30px / 32px) */
  :root{
    --topbar-h: 28px !important;
  }

  /* ===== Force the real topbar + wrappers to obey the height ===== */
  html #chrome .topbar,
  html #chrome .topbar-rotator,
  html #chrome .topbar__inner{
    height: var(--topbar-h) !important;
    min-height: var(--topbar-h) !important;
    max-height: var(--topbar-h) !important;

    box-sizing: border-box !important;
    overflow: hidden !important; /* ✅ stops extra padding/children making it look taller */
  }

  /* ===== Solid look (not transparent) ===== */
  html #chrome .topbar{
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    padding: 0 !important;
    margin: 0 !important;

    background-color: #f3f4f6 !important;
    background-image: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%) !important;

    color: #111 !important;
   

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Extra override for your home transparent rule */
  html.is-home #chrome .topbar{
    background-color: #f3f4f6 !important;
    background-image: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%) !important;
    color: #111 !important;
  }

  /* ===== Inner content (premium + smaller) ===== */
  html #chrome .topbar__inner{
    padding: 0 12px !important; /* horizontal only */

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-family: "Space Grotesk","Manrope","Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;

    color: #111 !important;
    text-shadow: none !important;
    line-height: 1 !important;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    white-space: nowrap;
    text-overflow: ellipsis;
  }

  html #chrome .topbar__inner span{
    color: inherit !important;
  }
}
@media (max-width: 480px){
  html #chrome .topbar,
  html.is-home #chrome .topbar{
    background: #F1F1F1 !important;
    background-color: #F1F1F1 !important;
    background-image: none !important; /* kills any gradient */
  }
}
/* =========================================================
   WHITE HEADER STATE: COLOR ONLY (NO STROKE / NO BOLD LOOK)
   ========================================================= */

/* NAV goes white, TOPBAR stays grey */
html.is-scrolled #chrome .nav{
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* keep topbar always grey (even while scrolled) */
#chrome .topbar,
html.is-scrolled #chrome .topbar{
  background: #F1F1F1 !important;
  background-image: none !important; /* kill gradients that can look like lines */
  border: 0 !important;              /* IMPORTANT: removes that “thin line” */
  box-shadow: none !important;
  outline: 0 !important;
}

/* kill ALL “stroke” style effects inside the header when scrolled */
html.is-scrolled #chrome,
html.is-scrolled #chrome *{
  text-shadow: none !important;
  filter: none !important;
  -webkit-text-stroke: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* only switch colors (no weight changes) */
html.is-scrolled #chrome .nav,
html.is-scrolled #chrome .nav *{
  color: #111 !important;
}

html.is-scrolled #chrome .topbar,
html.is-scrolled #chrome .topbar *{
  color: #111 !important;
}

/* SVGs follow currentColor */
html.is-scrolled #chrome svg [fill]:not([fill="none"]){ fill: currentColor !important; }
html.is-scrolled #chrome svg [stroke]:not([stroke="none"]){ stroke: currentColor !important; }

/* seam killer between topbar and nav (GPU hairline) */
#chrome .nav{ margin-top: -1px !important; }
