/* NclexSpark app feel (v4.42.0). Everything below applies ONLY inside the installed app (html.nx-app),
   except the thin progress line at the top, which also shows for signed-in students in the browser.
   Text of questions, rationales and notes stays selectable (the highlighter needs it). */

#nx-topbar{position:fixed;top:0;left:0;right:0;height:3px;z-index:100001;pointer-events:none;opacity:0;transition:opacity .2s ease}
#nx-topbar i{display:block;height:100%;width:0;background:#0047AB;border-radius:0 3px 3px 0;box-shadow:0 0 8px rgba(0,71,171,.45)}
html[data-theme="midnight"] #nx-topbar i,html[data-theme="graphite"] #nx-topbar i{background:#6ea8ff;box-shadow:0 0 8px rgba(110,168,255,.5)}
#nx-topbar.is-on{opacity:1}
#nx-topbar.is-on i{width:82%;transition:width 9s cubic-bezier(.1,.6,.2,1)}
@media (prefers-reduced-motion:reduce){#nx-topbar.is-on i{transition:none}}

html.nx-app{
  -webkit-tap-highlight-color:transparent;
  -webkit-text-size-adjust:100%;text-size-adjust:100%;
}
/* v4.43.0: the page itself must always scroll freely. The earlier root-level overscroll / touch-action
   rules were removed (they are the only scroll-related rules v4.42.0 added). */
html.nx-app{overflow-y:auto}
/* No double-tap-zoom delay, on controls only (never on the page or its scroll areas) */
html.nx-app :is(a,button,[role="button"],summary,label){touch-action:manipulation}

/* Menus, buttons and labels behave like app controls (no accidental text selection / link callouts) */
html.nx-app :is(a,button,[role="button"],nav,header,label,summary,.nex-sidebar,.nex-drawer,.nex-bottom-nav){
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
}
html.nx-app :is(input,textarea,select,[contenteditable="true"]){-webkit-user-select:text;user-select:text}

/* Pictures cannot be dragged out or long-pressed into "Save image" */
html.nx-app img,html.nx-app svg,html.nx-app video{-webkit-user-drag:none;user-drag:none;-webkit-touch-callout:none}

/* Instant press feedback so a tap never feels dead while the next page loads */
html.nx-app :is(a.nex-drawer__item,a.nex-sidebar__item,.nex-bottom-nav a,button,[role="button"]):active{opacity:.72;transition:opacity .04s linear}

/* Things that make no sense inside an installed app */
html.nx-app #nxp-pwa-banner,html.nx-app [data-nxp-install]{display:none!important}

/* Short question counter on small Android phones: "Q 10/20" instead of "Question 10 of 20" (v4.43.0) */
.nx-qshort{display:none}
@media (max-width:480px){
  html.nx-android .nx-qlong{display:none}
  html.nx-android .nx-qshort{display:inline}
}
