/*
 * BioCloud Server Calculator Hub (/server-calculator/*) — Mobile Topbar & Bright Blue Harmonization (2026-12-04)
 */

html, body {
  overflow-x: clip;
}

/* Harmonize biosoft.html green accents into bright royal/sky blue */
.brand-logo {
  background: linear-gradient(135deg, #2563eb, #0284c7) !important;
}

.hero-badge,
.pill-badge {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}

.hero-badge .dot,
.pill-badge .dot {
  background: #2563eb !important;
}

.hero h1 span,
.hero-title span {
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Mobile 390px Topbar & Nav Rescue — eliminates vertical 1-character wrapping ("知 / 识 / 库") */
@media (max-width: 820px) {
  header.topbar {
    height: auto !important;
    min-height: 54px !important;
    padding: 10px 14px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  header.topbar .brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    gap: 8px !important;
  }

  header.topbar .brand-title {
    font-size: 16px !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  header.topbar .brand-subtitle {
    display: none !important;
  }

  header.topbar nav {
    width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px !important;
    padding-top: 7px !important;
    border-top: 1px solid #e5edf8;
    justify-content: flex-start !important;
  }

  header.topbar nav::-webkit-scrollbar {
    display: none;
  }

  header.topbar nav a {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 32px !important;
    padding: 4px 11px !important;
    border-radius: 999px !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    border-bottom: none !important;
    text-decoration: none !important;
  }

  header.topbar nav a.active {
    background: #2563eb !important;
    color: #ffffff !important;
  }

  /* Sub-calculators using <nav class="nav"><div class="nav-inner">... */
  nav.nav {
    height: auto !important;
  }

  nav.nav .nav-inner {
    height: auto !important;
    min-height: 54px !important;
    padding: 10px 14px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  nav.nav .nav-brand {
    white-space: nowrap !important;
    flex: 1 1 auto !important;
    font-size: 16px !important;
  }

  nav.nav .nav-links {
    width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px !important;
    padding-top: 7px !important;
    border-top: 1px solid #e5edf8;
    justify-content: flex-start !important;
  }

  nav.nav .nav-links::-webkit-scrollbar {
    display: none;
  }

  nav.nav .nav-links a {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 32px !important;
    padding: 4px 11px !important;
    border-radius: 999px !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
  }

  nav.nav .nav-links a.nav-cta {
    background: #2563eb !important;
    color: #ffffff !important;
  }
}
