/* MERITIQA V5: Contextual Rehearsal mobile-only presentation stabilisation.
   No desktop rules. Scoped to the actual shortcode shell and page template.
   Existing profession/subject selection, response saving and Studio handoffs unchanged. */
@media screen and (max-width: 959px) {
  body.page .mqrh-page-template, body.page #mqrh-fullpage {width:100%;max-width:100%;min-width:0;overflow-x:clip;}
  body.page .mqrh-page-template .mqrh-shell, body.page #mqrh-fullpage .mqrh-shell {width:100%;max-width:100%;min-width:0;box-sizing:border-box;margin-inline:auto;padding-inline:clamp(14px,4vw,24px);}
  body.page .mqrh-page-template .mqrh-shell *,body.page #mqrh-fullpage .mqrh-shell * {box-sizing:border-box;min-width:0;}
  body.page .mqrh-page-template .mqrh-hero,body.page .mqrh-page-template .mqrh-workspace,body.page .mqrh-page-template .mqrh-head,body.page .mqrh-page-template .mqrh-insights,body.page .mqrh-page-template .mqrh-save {display:grid;grid-template-columns:minmax(0,1fr);gap:14px;}
  body.page .mqrh-page-template .mqrh-hero h1 {font-size:clamp(30px,6.8vw,42px);line-height:1.1;overflow-wrap:anywhere;}
  body.page .mqrh-page-template .mqrh-hero p,body.page .mqrh-page-template .mqrh-hero-side p {font-size:16px;line-height:1.55;}
  body.page .mqrh-page-template .mqrh-form {display:grid;grid-template-columns:minmax(0,1fr);gap:14px;}
  body.page .mqrh-page-template .mqrh-form > *,body.page .mqrh-page-template .mqrh-submit-field {width:100%;min-width:0;max-width:100%;}
  body.page .mqrh-page-template .mqrh-form input,body.page .mqrh-page-template .mqrh-form select,body.page .mqrh-page-template .mqrh-response textarea {width:100%;max-width:100%;min-height:48px;font-size:16px;line-height:1.45;}
  body.page .mqrh-page-template .mqrh-response textarea {min-height:180px;resize:vertical;}
  body.page .mqrh-page-template .mqrh-form button,body.page .mqrh-page-template .mqrh-save button,body.page .mqrh-page-template .mqrh-hero-side a {min-height:48px;padding:12px 18px;max-width:100%;white-space:normal;overflow-wrap:anywhere;}
  body.page .mqrh-page-template .mqrh-form button,body.page .mqrh-page-template .mqrh-save button {color:#fff !important;-webkit-text-fill-color:#fff !important;background-color:#174e40 !important;font-weight:700;}
  body.page .mqrh-page-template .mqrh-form button *,body.page .mqrh-page-template .mqrh-save button * {color:inherit !important;-webkit-text-fill-color:inherit !important;}
  body.page .mqrh-page-template button:focus-visible,body.page .mqrh-page-template a:focus-visible,body.page .mqrh-page-template input:focus-visible,body.page .mqrh-page-template select:focus-visible,body.page .mqrh-page-template textarea:focus-visible {outline:3px solid #c29f57;outline-offset:3px;}
  body.page .mqrh-page-template .mqrh-topic-quick {display:flex;flex-wrap:wrap;gap:8px;max-width:100%;}
  body.page .mqrh-page-template .mqrh-topic-quick button {min-height:44px;white-space:normal;overflow-wrap:anywhere;}
  body.page .mqrh-page-template .mqrh-session,body.page .mqrh-page-template .mqrh-question,body.page .mqrh-page-template .mqrh-response-box,body.page .mqrh-page-template .mqrh-insights,body.page .mqrh-page-template .mqrh-support,body.page .mqrh-page-template .mqrh-research {max-width:100%;min-width:0;overflow-wrap:anywhere;}
  body.page .mqrh-page-template .mqrh-session .mqrh-question blockquote {font-size:clamp(17px,4.5vw,21px);line-height:1.55;max-width:100%;overflow-wrap:anywhere;}
  body.page .mqrh-page-template .mqrh-support summary,body.page .mqrh-page-template .mqrh-research summary {min-height:48px;line-height:1.45;padding-block:13px;}
  body.page .mqrh-page-template .mqrh-footer a,body.page .mqrh-page-template .mqrh-ref a {overflow-wrap:anywhere;}
  body.page .mqrh-page-template .mqrh-save button {width:100%;}
  body.page .mqrh-page-template .mqrh-smallnote,body.page .mqrh-page-template .mqrh-field-note,body.page .mqrh-page-template .mqrh-disclosure,body.page .mqrh-page-template .mqrh-form-note {line-height:1.5;}
}
@media screen and (max-width: 420px) {
  body.page .mqrh-page-template .mqrh-shell {padding-inline:14px;}
  body.page .mqrh-page-template .mqrh-session,body.page .mqrh-page-template .mqrh-insights,body.page .mqrh-page-template .mqrh-response-box {padding-inline:14px;}
}
