/* Responsive pass (redesign): mobile type floor, tap targets, overflow */

@media (max-width: 768px) {
  body {
    font-size: 16px !important;
  }

  .plat-benefits__tag,
  .plat-statement__label,
  .plat-teaser__label,
  .pr-hero__platforms-label,
  .demo-modal__title,
  label,
  small,
  .eyebrow,
  .rb-feature-text__num,
  .blog-card__meta,
  .blog-post__meta,
  .mo-cap,
  .mo__lead,
  .rb-journey__tag,
  .rb-journey__tags,
  .rb-journey__label,
  .rb-journey__footer,
  .blog-card__tag,
  .blog-card__category,
  .blog-hero__category,
  .blog-toc__link,
  .badge,
  .tag,
  .pill,
  .rb-demo__pill,
  .rb-demo__btn-sm,
  .rb-demo__chart-label,
  .rb-demo__title-txt,
  .rb-demo__kpi-lbl,
  .rb-demo__kpi-badge,
  .rb-demo__status,
  .rb-demo__table-cell,
  .rb-ptile__name,
  .rb-frame__title,
  .rb-frame__rec,
  .rb-bubble__name,
  .rb-meeting__share-label,
  .rb-cal__badge,
  .rb-cal__day-lbl,
  .rb-ctrl {
    font-size: 12px !important;
  }

  p, li {
    font-size: 16px;
  }

  .site-header__cta {
    font-size: 14px;
    min-height: 44px;
    padding: 12px 20px;
  }

  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 12px;
    box-sizing: border-box;
  }

  .mobile-menu a {
    font-size: 24px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .rb-bleed,
  .rb-bleed__photo,
  .rb-bleed__photo img {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }

  .rb-bleed__photo img {
    display: block;
    object-fit: cover;
  }
  .rb-bleed { max-width: 100vw; overflow: hidden; }
  .rb-bleed__photo { max-width: 100%; overflow: hidden; }

  .rb-hero,
  .plat-hero,
  .pr-hero,
  .section.plat-hero {
    min-height: 0 !important;
    height: auto !important;
  }

  .rb-tilt-scene,
  .rb-feature-img,
  .rb-journey__col,
  .mo-demo {
    overflow: hidden;
  }
}

@media (max-width: 768px) and (hover: none),
       (pointer: coarse) {
  .rb-feature-img:hover,
  .rb-journey__col:hover {
    transform: none !important;
  }
}

@media (max-width: 999px) {
  .menu-toggle {
    display: block;
    min-width: 44px;
    min-height: 44px;
    padding: 12px;
    box-sizing: border-box;
  }
}

@media (max-width: 360px) {
  .mo-tab {
    font-size: 12px;
    padding: 10px 12px;
    min-height: 44px;
  }
}


/* old-home archive floors */
@media (max-width: 768px) {
  body.home .rb-cal__badge,
  body.home .rb-cal__day-lbl,
  .rb-bleed .rb-cal__badge,
  .rb-bleed .rb-cal__day-lbl {
    font-size: 12px !important;
  }
  /* Contain archived bleed photo overflow on very narrow phones */
  .rb-bleed,
  .rb-bleed__photo,
  .rb-bleed__visual,
  .rb-frame {
    max-width: 100%;
    overflow: hidden;
  }
  .rb-bleed__photo img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}


@media (max-width: 768px) {
  .uc-x,
  .rb-tag,
  [class*="rb-discovery"],
  [class*="rb-meet-card"],
  [class*="rb-usecases"] {
    font-size: 12px !important;
  }
}

/* Mobile QA: tap targets at least 44px, window titles wrap instead of clipping */
@media (max-width: 768px) {
  .site-header__logo { display: inline-flex; align-items: center; min-height: 44px; }
  .scroll-to-top { width: 44px; height: 44px; bottom: 20px; right: 20px; }
  .demo-modal .demo-modal__close { width: 44px; height: 44px; font-size: 16px; }
  .demo-modal .demo-modal__bar { height: 52px; }
  .demo-modal .demo-modal__iframe { height: calc(100% - 52px); }
  .demo-modal .demo-modal__loading { inset: 52px 0 0 0; }
  .site-footer__social a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .site-footer__copyright a { display: inline-block; padding: 12px 0; }
  .rb-win .rb-win__bar { height: auto; min-height: 26px; padding-top: 5px; padding-bottom: 5px; }
  .rb-win .rb-win__title { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
}
