/* =============================================================================
   rwr-responsive.css - the responsive floor for the STATIC pages (login,
   register, set-password, access, contact, marketing, ...). The React surfaces
   get the same rules from src/crm/responsive/responsive.css; this file exists
   because these pages carry their own inline <style> and no .crm wrapper.
   Linked LAST in <head>; !important is deliberate (page rules use ids).
   Rules:
     * touch pointers: controls and header/nav/footer links are >= 44 px
     * touch or narrow: form controls are 16 px (no iOS zoom-on-focus)
     * horizontal overflow never leaks past the viewport
     * reduced motion honoured
   ============================================================================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, video, svg, canvas, iframe { max-width: 100%; }
table { max-width: 100%; }

@media (pointer: coarse), (max-width: 767px) {
  input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='file']):not([type='hidden']):not([type='color']),
  select, textarea {
    font-size: max(16px, 1em) !important;
  }
}

@media (pointer: coarse) {
  button, [role='button'], summary, select,
  input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='range']):not([type='file']),
  input[type='submit'], input[type='button'] {
    min-height: 44px !important;
  }
  a.brand, a.topbar-link, a.link-muted, a.btn, a[class*='btn'], a[class*='button'], a.nav__link,
  header a, nav a, footer a, .topbar a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  /* a lone icon button must not collapse below the touch floor either */
  button:empty, button:has(> svg:only-child), [role='button']:has(> svg:only-child) { min-width: 44px; }
  summary { display: flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* long e-mail addresses / URLs wrap instead of widening the page */
.info__card b, .info__card small, .info__card div { overflow-wrap: anywhere; min-width: 0; }
