/* ClinicaMOB v240 — targeted mobile touch-target hardening.
   Mobile/tablet only. No desktop layout, routing, form logic, or content changes. */
@media (max-width:1120px){
  .cm-fixed-header .menu-btn{
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
    min-height:48px!important;
    flex-basis:48px!important;
  }
  .cm-fixed-header .mobile-nav a{
    min-height:48px!important;
    display:flex!important;
    align-items:center!important;
    padding-top:12px!important;
    padding-bottom:12px!important;
  }
}

@media (max-width:760px){
  /* Primary controls */
  body.cm-fixed-target input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  body.cm-fixed-target select,
  body.cm-fixed-target textarea,
  body.cm-fixed-target button:not(.cm-help-tip),
  body.cm-fixed-target input[type="submit"],
  body.cm-fixed-target .cta,
  body.cm-fixed-target a.btn,
  body.cm-fixed-target a.button,
  body.cm-fixed-target summary,
  body.cm-google-lp input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  body.cm-google-lp select,
  body.cm-google-lp textarea,
  body.cm-google-lp button,
  body.cm-google-lp .cta{
    min-height:48px!important;
  }

  /* The compact homepage search was intentionally 42px on desktop; phone use gets a larger target. */
  .cm-fixed-home .cm-home-direct-form input,
  .cm-fixed-home .cm-home-direct-form select,
  .cm-fixed-home .cm-home-quick-bottom .cta{
    height:48px!important;
    min-height:48px!important;
  }

  /* Checkbox/radio rows: enlarge the tappable label, not the native control glyph. */
  body.cm-fixed-target .cm-checkbox,
  body.cm-fixed-target .cm-needs-grid label{
    min-height:44px!important;
    align-items:center!important;
  }

  /* Knowledge-search chips and compact action controls. */
  body.cm-fixed-target .ks-chip,
  body.cm-fixed-target .cm-help-action,
  body.cm-fixed-target .cm-help-router-btn,
  body.cm-fixed-target .cm-help-question button{
    min-height:44px!important;
  }

  /* Help close control: comfortable tap box without changing panel layout. */
  body.cm-fixed-target .cm-help-close{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
    display:inline-grid!important;
    place-items:center!important;
    padding:0!important;
  }

  /* Inline explanatory tooltip: mobile needs a real tap target. */
  body.cm-fixed-target .cm-help-tip{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
    margin-left:4px!important;
  }
}
