/* Header nav fit, version 2 — 2026-10-21 (task t_ca532b792b2e78713e2a81f588e3313d).
   Linked after /assets/styles.css on every page, and it REPLACES the link to
   /assets/nav-fit.css (v1). It is a separate file on purpose: /assets/* is
   served with a one-year immutable cache, so a change written into
   styles.css, or into nav-fit.css itself, would never reach a visitor who had
   already loaded it.

   Why v2 exists: v1 fixed the desktop defect but broke the phone. Its four
   no-shrink rules were written unconditionally, so at 390px the wordmark, the
   Enroll Now button and .header-actions could no longer shrink, the header row
   overflowed the viewport by 7px (page laid out 397px wide on a 390px phone)
   and the menu toggle was cut off at the right edge. Every rule below is now
   inside the 1280px query — the only width at which .nav becomes a flex row —
   so at phone and tablet widths this file changes nothing at all and the
   header keeps the layout styles.css gives it.

   The desktop diagnosis is unchanged: .header-inner is capped at 1200px with
   16px side padding, i.e. a fixed 1168px content box at every width of 1280px
   and up. .nav becomes a flex row there with a 28px gap, and nothing stopped
   the links from being shrunk below their own text, so the browser broke each
   multi-word label at its space. Single-word links had no break opportunity,
   which is exactly why only the long ones wrapped.

   What this does at 1280px and up, so that failure cannot come back:
   1. a nav label may not break, and flex may not shrink it below its text;
   2. the logo and the header button may not shrink or wrap either;
   3. the 28px gap becomes 16px, handing back ~84px across the eight links,
      which with the shorter label leaves the row well clear of 1168px. */

@media (min-width: 1280px) {
  .nav {
    gap: 16px;
  }

  .nav a {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .logo-word {
    white-space: nowrap;
  }

  .header-actions {
    flex: 0 0 auto;
  }

  .header-actions .btn {
    white-space: nowrap;
  }
}
