/* mobile-floatbar-20261114
   Mobile only (max-width: 760px), matching the existing .es-bottom / dock breakpoint.
   Desktop and tablet (761px and up) are unchanged.
   On the first screen, hide .seo-experience-dock so it does not cover the opening answer.
   After the user scrolls past the first screen, reveal it. Hide it again on return to top.
   Padding-bottom covers the bottom nav, plus the dock while it is visible.
   JS sets --seo-mobile-pad to the measured cover height (already includes safe-area when the nav does).
*/
@media (max-width: 760px) {
  .seo-experience-dock {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html.seo-dock-revealed .seo-experience-dock {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  @media (prefers-reduced-motion: no-preference) {
    .seo-experience-dock {
      transition: opacity 180ms ease;
    }
  }

  /* Platform solar-term / guide pages: keep room for .es-bottom while the dock is hidden. */
  body.seo-experience-page.es-app,
  body.seo-experience-page.vi-site,
  .vi-site:has(.seo-experience-dock),
  body.es-app.seo-experience-page {
    padding-bottom: var(--seo-mobile-pad, calc(82px + env(safe-area-inset-bottom, 0px))) !important;
  }

  html.seo-dock-revealed body.seo-experience-page.es-app,
  html.seo-dock-revealed body.seo-experience-page.vi-site,
  html.seo-dock-revealed .vi-site:has(.seo-experience-dock),
  html.seo-dock-revealed body.es-app.seo-experience-page {
    padding-bottom: var(--seo-mobile-pad, calc(166px + env(safe-area-inset-bottom, 0px))) !important;
  }

  /* Nail pages: no .es-bottom. Only reserve dock height while the bar is visible. */
  body.seo-experience-page:not(.es-app):not(.vi-site) {
    padding-bottom: var(--seo-mobile-pad, env(safe-area-inset-bottom, 0px)) !important;
  }

  html.seo-dock-revealed body.seo-experience-page:not(.es-app):not(.vi-site) {
    padding-bottom: var(--seo-mobile-pad, calc(88px + env(safe-area-inset-bottom, 0px))) !important;
  }
}
