/* Small screen header. Wherever the menu button shows, it carries a "Menu"
   label styled like the sheet's Close button, so the header and the open
   sheet's top bar match. On phones the logo leads at a larger size, the same
   in the header and in the open sheet, and the trial button leaves the header
   to float at the bottom of the screen. Tablet and desktop otherwise keep the
   Breakdance header styles (site-header, logo-mark, header-cta, menu-toggle,
   menu-close). Breakpoints match Breakdance's tablet and phone portrait. */
@media (max-width: 1023px) {
  .site-header .header-actions .menu-toggle {
    gap: 10px;
    width: auto;
    min-height: 44px;
    padding: 0 14px;
    font-family: var(--gm-font);
    font-weight: 600;
    font-size: 15px;
  }

  /* The button's aria-label already names it, so the visible word is not read twice. */
  .site-header .header-actions .menu-toggle::after {
    content: "Menu";
    content: "Menu" / "";
  }
}

@media (max-width: 479px) {
  .site-header .header-bar {
    gap: 12px;
  }

  /* Covers the header logo and the copy in the open sheet. Height and the
     bubble offset keep the Breakdance logo-mark--bubbles ratios. */
  .site-header .header-logo .logo-mark--bubbles {
    width: 164px;
    height: 51.9px;
    margin-top: -14.56px;
  }

  .site-header .header-actions .header-cta {
    position: fixed;
    right: var(--gm-gutter, 20px);
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: var(--gm-gutter, 20px);
    z-index: 1;
    min-height: 52px;
    font-size: 17px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 10px 28px -6px rgba(0, 0, 0, 0.5);
  }

  /* Out of the way while the plan cards are on screen (mobile-header.js). */
  html.gm-pricing-in-view .site-header .header-actions .header-cta {
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
  }

  /* Room below the footer so the floating button never covers its last line. */
  html body .site-footer {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 479px) and (prefers-reduced-motion: no-preference) {
  html .site-header .header-actions .header-cta {
    transition: opacity 250ms ease, transform 250ms ease, visibility 0s linear 250ms, color 250ms ease 200ms, border-color 250ms ease 200ms, box-shadow 300ms ease;
  }

  html:not(.gm-pricing-in-view) .site-header .header-actions .header-cta {
    transition: opacity 250ms ease, transform 250ms ease, visibility 0s, color 250ms ease 200ms, border-color 250ms ease 200ms, box-shadow 300ms ease;
  }
}
