/* Display preference variants generated by mobile_css.py; Auto specificity is unchanged. */
/* LexVerdia route reliability layer — 23.6.27.
 * Loaded last. Layout Contract v3 owns route geometry; this file owns only the
 * visible recovery states controlled by the reliability runtime.
 */

@media  (max-width:980px), (pointer:coarse){
  html.lexverdia-layout-v3 body.lexverdia-app .lexverdia-page-loading[data-lexverdia-page-loader="1"]:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *),
html.lexverdia-layout-v3 body.lexverdia-app .lexverdia-page-loading[data-lexverdia-page-loading]:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *){
    background:rgba(243,246,249,.76) !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }
}@media  (min-width:0px), (pointer:coarse){
  html.lexverdia-layout-v3 body.lexverdia-app .lexverdia-page-loading[data-lexverdia-page-loader="1"]:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *),
html.lexverdia-layout-v3 body.lexverdia-app .lexverdia-page-loading[data-lexverdia-page-loading]:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *){
    background:rgba(243,246,249,.76) !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }
}

/* A visible dialog is the only state allowed to lock the document. The runtime
 * mirrors this class to html and body and removes abandoned native modal locks. */
html.lexverdia-layout-v3.lexverdia-modal-active,
html.lexverdia-layout-v3.lexverdia-modal-active body.lexverdia-app,
html.lexverdia-layout-v3 body.lexverdia-app.lexverdia-modal-active{
  overflow:hidden !important;
  overscroll-behavior:none !important;
}

/* 26.16.4: the document owns ordinary practice scrolling, including browser/OS
 * fullscreen (which does NOT set :fullscreen). Timed/Exam previously set only
 * overflow-x:hidden, making body overflow-y compute to auto. The body's own
 * scroll range is zero; overscroll:none then discarded all trackpad gestures.
 * This contract applies equally to Tutor, Exam, Timed and legacy players.
 * Real dialogs retain their locks. API fullscreen gets its own owner below. */
html.lexverdia-view-quiz-root:not(.lexverdia-modal-active):not(.lexverdia-wp9-layer-open) {
  height:auto !important; min-height:100%; max-height:none !important;
  overflow-x:clip !important; overflow-y:auto !important; overscroll-behavior-y:auto !important;
}
body.lexverdia-app.lexverdia-view-quiz:not(.lexverdia-modal-active):not(.lexverdia-wp9-layer-open) {
  height:auto !important; min-height:100dvh; max-height:none !important;
  overflow-x:clip !important; overflow-y:visible !important;
  overscroll-behavior-y:auto !important; touch-action:auto !important;
}
body.lexverdia-app.lexverdia-view-quiz :is(.lexverdia-shell,.lexverdia-main,.lexverdia-content,.lexverdia-quiz-wrap,.lexverdia-quiz-card):not(:fullscreen) {
  height:auto !important; max-height:none !important; min-width:0; overflow:visible !important;
}
body.lexverdia-app.lexverdia-view-quiz :is(.ays-quiz-container,.ays-quiz-wrap,.lexverdia-quiz-wrap,[data-lexverdia-written-player-v2="1"]):fullscreen {
  box-sizing:border-box !important; width:100% !important; max-width:none !important;
  height:100dvh !important; min-height:0 !important; max-height:100dvh !important;
  overflow-x:hidden !important; overflow-y:auto !important;
  overscroll-behavior-y:auto !important; touch-action:auto !important;
}
/* Keep vendor selectors separate: an unsupported pseudo must not invalidate
 * the standard fullscreen rule in another engine. */
body.lexverdia-app.lexverdia-view-quiz .ays-quiz-container:-webkit-full-screen,
body.lexverdia-app.lexverdia-view-quiz .lexverdia-quiz-wrap:-webkit-full-screen {
  box-sizing:border-box !important; height:100vh !important; min-height:0 !important;
  max-height:100vh !important; overflow-x:hidden !important; overflow-y:auto !important;
  overscroll-behavior-y:auto !important;
}
