/* Static homepage: the few rules the React version got from JS.
 *
 * Loaded AFTER the app's own CSS bundle, which is kept - every Tailwind
 * class in the captured markup still resolves from it, which is why the
 * page looks identical without a rebuild.
 */

/* The React nav was position:fixed and floated transparently over the hero.
 * The shared .fz-nav bar is position:sticky, so it OCCUPIES 64px above the
 * hero instead of overlaying it. A hero still asking for 100dvh would then
 * make the page 64px taller than the viewport and put a scrollbar on a
 * screen that should have none. */
#root > header.fz-nav + section,
#root section:first-of-type.min-h-\[100dvh\] {
  min-height: calc(100dvh - 64px);
}
@media (max-width: 900px) {
  #root > header.fz-nav + section,
  #root section:first-of-type.min-h-\[100dvh\] {
    min-height: calc(100dvh - 64px);
  }
}

/* The sticky bottom bar is translated off-screen until the visitor has
 * scrolled; without this it is visible for a frame on load. */
[data-fab="stickybar"] {
  transform: translateY(110%);
  will-change: transform;
}

/* The chat panel ships hidden. [hidden] alone loses to the utility class
 * `flex` on the same element, which is how a "hidden" panel renders anyway. */
[data-fab="chatpanel"][hidden] {
  display: none !important;
}

/* Form result line, appended by home-static.js. */
[data-fab-formnote]:empty {
  display: none;
}
[data-fab-formnote] {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}
