/* Shared chrome tweaks for generated tool pages (site_chrome.py).
   Keeps the Guides topnav on a single row at 375–430px viewports. */

.topbar-tool .topnav {
  flex-wrap: nowrap;
}

.topbar-tool .topnav a {
  white-space: nowrap;
}

@media (max-width: 40rem) {
  .topbar-tool .topbar-inner {
    gap: 0.4rem 0.55rem;
  }

  .topbar-tool .brand {
    font-size: 1.05rem;
    gap: 0.4rem;
  }

  .topbar-tool .brand img {
    width: 1.75rem;
    height: 1.75rem;
  }

  .topbar-tool .topnav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.2rem 0.42rem;
  }

  .topbar-tool .topnav a {
    font-size: 0.72rem;
    padding: 0.3rem 0;
    white-space: nowrap;
  }

  .topbar-tool .header-cta {
    min-height: 38px;
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 26.875rem) {
  /* 430px and below: tighten further so NL FAQ stays on one row. */
  .topbar-tool .topnav {
    gap: 0.15rem 0.32rem;
  }

  .topbar-tool .topnav a {
    font-size: 0.68rem;
  }

  .topbar-tool .header-cta {
    padding-inline: 0.55rem;
    font-size: 0.78rem;
  }
}
