/*
  header-cta-v2.css — keeps the header buy button on ONE line at phone width,
  WITHOUT shrinking the logo's tap target.

  Supersedes header-cta-v1.css. It is a NEW filename on purpose: /assets/* is
  served with max-age=31536000, so editing v1 in place would leave everyone who
  already has it cached on the older sheet for up to a year -- and the older
  sheet has the tap-target defect described below. v1 is left untouched and is
  no longer linked from any page.

  Loaded after styles.css and nav-fit-2.css on every page, so it wins on equal
  specificity without a single !important.

  THE DEFECT IT FIXES (measured at 390px, site_check kind "wrapped_label"):
  .header-inner has a 358px content box (390 - 32px gutters) holding the mark,
  the wordmark, the CTA and the 44px menu toggle. That row's min-content was a
  few px wider than the box, so flexbox shrank the only shrinkable item -- the
  CTA -- and "Enroll Now" broke at its space onto two lines.

  THE FIX IS TWO PARTS AND BOTH ARE REQUIRED:
    1. take ~30px out of the row at phone width (CTA padding, the two flex
       gaps, and one size step off the wordmark) so the label fits with slack.
       The 16px gutters are deliberately NOT touched: .container uses the same
       16px, so narrowing them would knock the wordmark 4px out of line with
       every section below it;
    2. only then pin white-space:nowrap on the CTA, so a wider device font
       cannot re-break the label.
  nowrap ON ITS OWN is what widened the page to 397px and cut off the menu
  toggle in the first build of the nav-fit fix. Part 2 without part 1 is a
  regression, not a fix. Keep them together.

  WHY .logo NEEDS A min-height (the v1 lesson):
  .logo is inline-flex with align-items:center and .logo-word sets no
  line-height, so the anchor's height IS the wordmark's line box -- it inherits
  body 1.55 (styles.css). At the old 22px that was 34px and the "under 32px"
  tap-target rule stayed quiet. The one size step above took it to 20 x 1.55 =
  31px, which is under the limit, on the logo in the header and footer of every
  page. Rather than buy the height back by making the type bigger (21 x 1.55 =
  32.55px sits right on the threshold), the anchor gets a 44px hit area. That
  costs no width, so the row budget above is untouched, and it shifts nothing
  visibly: the same row already holds the btn-sm CTA at ~46px, so only the
  invisible target grows.

  min-height stays 44px on the CTA, so its tap target does not shrink either.
*/

@media (max-width: 767px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .logo { min-height: 44px; }
  .logo-word { font-size: 20px; }
  .header-actions .btn.btn-sm {
    padding: 10px 10px;
    white-space: nowrap;
  }
}

/*
  Very narrow phones (360px Android and similar): the wordmark gives a little
  more room so the CTA never has to. site_check measures 390px; this tier is
  here so real devices below that still get a single-line label. The .logo
  min-height above is inherited here -- a narrower row must not re-cost the
  tap target.
*/
@media (max-width: 374px) {
  .header-inner { gap: 6px; }
  .logo-word { font-size: 17px; }
}
