.home-mobile-contact-bar { display: none; }
@media (max-width: 760px) {
  .home-mobile-contact-bar { display: flex; align-items: center; justify-content: flex-start; height: 44px; padding: 0 12px; background: var(--ink); color: #fff; }
  .home-mobile-contact-bar a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; gap: 8px; color: inherit; }
  .home-mobile-contact-phone { white-space: nowrap; font-size: 13px; font-weight: 500; }
  .home-mobile-contact-socials { display: flex; align-items: center; flex: none; margin-left: auto; }
  .home-mobile-contact-bar svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .home-mobile-contact-bar .home-mobile-contact-filled { fill: currentColor; stroke: none; }
  .home-mobile-contact-bar a:focus-visible { outline: 2px solid #fff; outline-offset: -3px; border-radius: 4px; }
  .home-mobile-contact-bar + .site-header:not(.menu-open) { position: sticky; top: 0; background: transparent; box-shadow: none; }
  .home-mobile-contact-bar + .site-header.menu-open { position: fixed; top: 0; }
  .home-mobile-contact-bar ~ main { margin-top: -62px; }
  .home-mobile-contact-bar ~ .partner-onboarding-page .partner-onboarding-section { padding-top: 0; }
  .home-mobile-contact-bar ~ .partner-onboarding-page .partner-onboarding-intro { padding-top: 102px; }
  /* Use dark controls where the page starts on a light background. */
  :is(.contact-page, .legal-page, .rob-call-page, .demo-confirmed-page) .home-mobile-contact-bar + .site-header:not(.menu-open) .wordmark-bold,
  :is(.contact-page, .legal-page, .rob-call-page, .demo-confirmed-page) .home-mobile-contact-bar + .site-header:not(.menu-open) .nav-toggle { color: var(--ink); }
  html.nav-open .home-mobile-contact-bar { visibility: hidden; pointer-events: none; }
}
@media (max-width: 360px) {
  .home-mobile-contact-bar { padding-inline: 8px; }
  .home-mobile-contact-phone { font-size: 12px; }
}

/* Shared mobile menu sign-in, outside the changing submenu panels. */
.mobile-menu-login { display: none; }
@media (max-width: 760px) {
  .site-header .header-menu { overflow: hidden; }
  .site-header .header-menu-inner { height: 100%; min-height: 0; }
  .site-header .primary-nav { min-height: 0; flex-shrink: 1; overflow-y: auto; overscroll-behavior: contain; }
  .site-header .header-contact-actions { flex-shrink: 0; }
  .site-header .mobile-menu-login { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 14px 18px; border: 1px solid var(--bone); border-radius: 8px; background: var(--bone); color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.3; text-decoration: none; }
  .site-header .mobile-menu-login svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .site-header .mobile-menu-login:hover { background: var(--paper); }
  .site-header .mobile-menu-login:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
}

@media (max-width: 760px) {
  .site-header .header-menu { padding: 86px 24px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .site-header .header-menu-inner { gap: 20px; }
  .site-header .menu-monogram { top: 20px; left: 24px; width: auto; height: 32px; transform: none; }
  .mobile-menu-brand { display: inline-flex; gap: 5px; color: var(--paper); font-family: var(--f-sans); font-size: 27px; font-weight: 750; letter-spacing: -1.2px; line-height: 1; }
  .mobile-menu-brand > span { color: var(--brass); font-weight: 400; }
  .site-header .primary-nav { scrollbar-width: thin; scrollbar-color: var(--brass) transparent; align-content: start; }
  .site-header .primary-nav > .mobile-nav-group { border-bottom: 0; }
  .site-header .primary-nav .mobile-menu-audience { min-height: 86px; padding: 16px 32px 16px 0; font-size: 25px; line-height: 1.2; font-weight: 600; }
  .site-header .primary-nav small { display: block; margin-top: 7px; color: #b9c1ca; font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.45; }
  .site-header .mobile-nav-summary::after { right: 5px; width: 10px; height: 10px; border-width: 1.5px; color: var(--brass); opacity: 1; }
  .site-header .primary-nav .mobile-menu-secondary { min-height: 52px; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; border-color: rgba(251,250,246,.1); }
  .site-header .primary-nav > .mobile-menu-secondary:last-child { border-bottom: 0; }
  .site-header .primary-nav .mobile-nav-back { width: 100%; min-height: 44px; margin: 0 0 12px; padding: 8px 0 8px 24px; background: transparent; font-size: 13px; color: #b9c1ca; }
  .site-header .mobile-nav-back::before { left: 3px; width: 8px; height: 8px; border-width: 1.5px; }
  .site-header .mobile-nav-subtitle { margin: 0 0 12px; color: var(--paper); font-family: var(--f-sans); font-size: 25px; font-weight: 600; letter-spacing: -.03em; line-height: 1.25; text-transform: none; }
  .site-header .mobile-nav-section-label { margin: 24px 0 8px; color: #c7a67e; font-family: var(--f-sans); font-size: 11px; font-weight: 600; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
  .site-header .primary-nav .mobile-nav-submenu a { justify-content: space-between; gap: 12px; min-height: 49px; padding: 12px 0; font-size: 16px; font-weight: 500; letter-spacing: -.015em; line-height: 1.4; border-color: rgba(251,250,246,.1); }
  .site-header .mobile-link-arrow { width: 18px; height: 18px; flex: none; fill: none; stroke: #b9c1ca; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .site-header .primary-nav :is(a, summary, button):focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; border-radius: 4px; }
  .site-header .primary-nav a[aria-current="page"] { color: #d5b48b; }
  .site-header .header-contact-actions { width: 100%; margin-inline: 0; }
  .site-header .header-contact-actions .contact-pill-phone { min-height: 44px; gap: 8px; padding: 8px 0; border-top: 1px solid rgba(251,250,246,.14); background: transparent; color: var(--bone); }
  .site-header .header-contact-actions .contact-pill-phone:hover { background: transparent; }
  .site-header .header-contact-actions .contact-pill-text { font-size: 15px; font-weight: 500; }
  .site-header .header-contact-actions .header-phone-hours { display: none; }
  .site-header .header-contact-actions .header-phone-number-icon { width: 18px; height: 18px; }
}
@media (max-width: 360px), (max-height: 620px) and (max-width: 760px) {
  .site-header .header-menu { padding-top: 72px; padding-inline: 20px; }
  .site-header .header-menu-inner { gap: 12px; }
  .site-header .primary-nav .mobile-menu-audience { min-height: 76px; font-size: 23px; padding-block: 12px; }
  .site-header .primary-nav .mobile-menu-secondary { min-height: 46px; font-size: 18px; }
}

.mobile-menu-contact-row { display: none; }
@media (max-width: 760px) {
  .site-header .header-contact-actions .contact-pill-phone { display: none; }
  .mobile-menu-contact-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding-top: 12px; border-top: 1px solid rgba(251,250,246,.14); }
  .mobile-menu-contact-row a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 60px; padding: 6px 0; border-radius: 6px; color: var(--paper); font-size: 12px; font-weight: 500; line-height: 1.4; text-align: center; text-decoration: none; }
  .mobile-menu-contact-row svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-menu-contact-row a:hover { background: rgba(251,250,246,.06); }
  .mobile-menu-contact-row a:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }
}

/* Keep the returning header readable once it leaves the opening section. */
@media (max-width: 760px) {
  body .home-mobile-contact-bar + .site-header.mobile-header-solid:not(.menu-open) {
    background: var(--ink);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
  }
  body .home-mobile-contact-bar + .site-header.mobile-header-solid:not(.menu-open) .wordmark-bold,
  body .home-mobile-contact-bar + .site-header.mobile-header-solid:not(.menu-open) .nav-toggle {
    color: var(--paper);
  }
}
