/* Header search — icon button + full-screen overlay (friction rule: tap opens the field, no landing page) */
#masthead { position: relative; }
.jaxb-search-btn {
  position: absolute; top: 50%; right: 76px; transform: translateY(-50%);
  z-index: 80; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: #1e3a8a; cursor: pointer;
}
.jaxb-search-btn:hover, .jaxb-search-btn:focus-visible { background: rgba(30,58,138,.08); outline: none; }
.jaxb-search-btn svg { width: 24px; height: 24px; display: block; }
.jaxb-search-btn-inline { position: static; transform: none; margin-left: auto; flex: 0 0 auto; }
@media (max-width: 1024px) {
  .jaxb-search-btn { right: 64px; }
  .jaxb-search-btn-inline { margin-left: 0; }
}
/* Phone header fit (Mohamed order Oct 25, 2026): the wordmark shrinks so logo +
   full title + search button + hamburger share one line at ~390px.
   Math: title "Jacksonville Benefits" (21 chars, bold) at 16px ≈ 188px;
   logo ~48 + title 188 + search 44 + hamburger 44 + padding/gaps ~48 = ~372px < 390px.
   Buttons keep their full 44px tap size - only the title type shrinks. */
@media (max-width: 767px) {
  .site-header .site-branding .site-title,
  .site-header .site-branding .site-title a {
    font-size: 16px; line-height: 1.15; white-space: nowrap;
  }
}
.jaxb-search-overlay[hidden] { display: none !important; }
.jaxb-search-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(13, 27, 62, .97);
  display: flex; align-items: flex-start; justify-content: center;
}
.jaxb-search-panel { width: min(680px, 92vw); margin-top: 12vh; }
.jaxb-search-form { display: flex; gap: 10px; }
.jaxb-search-form input[type="search"] {
  flex: 1 1 auto; min-width: 0; font-size: 20px; line-height: 1.3;
  padding: 14px 16px; border: 0; border-radius: 12px; background: #fff; color: #111827;
}
.jaxb-search-form button[type="submit"] {
  flex: 0 0 auto; font-size: 18px; font-weight: 700; padding: 14px 22px;
  border: 0; border-radius: 12px; background: #fbbf24; color: #1e3a8a; cursor: pointer;
}
.jaxb-search-close {
  display: block; margin: 0 0 14px auto; width: 44px; height: 44px;
  border: 0; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer;
}
.jaxb-search-hint { color: #c7d2fe; font-size: 15px; margin-top: 14px; }
body.jaxb-search-locked { overflow: hidden; }
