/* StepRonda 2026-11-21: while reading the explanation on the right, the question on the
   left stays in place. Only the right column scrolls with the page; a long question
   scrolls inside its own column. Desktop/tablet layout only (single column below 851px). */
@media(min-width:851px){
 html body.study-mode #app #view .question-card.uq-review-grid .uq-review-left{
  position:sticky!important;top:0!important;align-self:start!important;
  height:var(--sr-review-pane-h,calc(100dvh - 93px))!important;min-height:0!important;max-height:none!important;
  overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-width:thin;z-index:1;
 }
 html body.study-mode #app #view .question-card.uq-review-grid .uq-review-right{
  min-height:var(--sr-review-pane-h,calc(100dvh - 93px))!important;
 }
}
/* Explanation reading layout (see uq-review-extras JS). */
html body.study-mode #app #view .uq-review-right .explanation .sr-sep{display:none}
html body.study-mode #app #view .uq-review-right .explanation .sr-line{display:block}
html body.study-mode #app #view .uq-review-right .explanation .sr-para{margin-top:.6em}
html body.study-mode #app #view .uq-review-right .explanation .sr-opt{position:relative;padding-left:38px;margin-top:.55em;min-height:30px}
html body.study-mode #app #view .uq-review-right .explanation .sr-opt-head + .sr-opt{margin-top:.4em}
html body.study-mode #app #view .uq-review-right .explanation .sr-opt-letter{font-size:0;color:transparent}
html body.study-mode #app #view .uq-review-right .explanation .sr-opt-letter::before{
 content:attr(data-letter);position:absolute;left:0;top:0;width:30px;height:30px;box-sizing:border-box;border-radius:50%;
 display:inline-flex;align-items:center;justify-content:center;background:rgba(239,248,255,.75);border:1px solid rgba(25,112,172,.32);
 color:rgb(34,90,128);font:650 13px/1 Arial,sans-serif;
}
html body[data-theme=dark].study-mode #app #view .uq-review-right .explanation .sr-opt-letter::before{color:#e3effb;background:rgba(141,186,218,.13)}
/* "Why the other options are wrong:" heading line and the inline Mnemonic line are hidden
   (text stays in the DOM so saved highlight offsets keep working). */
html body.study-mode #app #view .uq-review-right .explanation .sr-opt-head{display:none}
html body.study-mode #app #view .uq-review-right .explanation .sr-opt-head + .sr-opt{margin-top:.6em}
html body.study-mode #app #view .uq-review-right .explanation .sr-mnemonic{display:none}
html body.study-mode #app #view .uq-review-right .explanation .sr-readnext,html body.study-mode #app #view .uq-review-right .explanation .sr-pathoma{display:none}
html body #view .sr-readnext-pathoma{margin-top:.4em}
/* Wrong option name in bold. */
html body.study-mode #app #view .uq-review-right .explanation .sr-opt-name{font-weight:700}
/* Most important idea of the explanation. */
html body.study-mode #app #view .uq-review-right .explanation .sr-key{font-weight:700;color:#1d3f5e;background:linear-gradient(transparent 58%,rgba(255,214,102,.55) 58%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
html body[data-theme=dark].study-mode #app #view .uq-review-right .explanation .sr-key{color:#f2f7fc;background:linear-gradient(transparent 58%,rgba(224,168,46,.35) 58%)}
html body.study-mode #app #view .uq-review-right .explanation .sr-keypoint{margin-top:.7em;padding:7px 11px;border-left:4px solid #2a6aa0;border-radius:8px;background:rgba(42,106,160,.08);font-weight:700}
/* High-yield: label styled like the "Answer & Explanation" heading. */
html body.study-mode #app #view .uq-review-right .explanation .sr-hy{margin-top:.9em}
html body.study-mode #app #view .uq-review-right .explanation .sr-hy-label{display:block;margin-bottom:.15em;font:700 16px/1.3 Arial,sans-serif;color:rgb(40,85,123)}
html body[data-theme=dark].study-mode #app #view .uq-review-right .explanation .sr-hy-label{color:#9cc6ea}
/* Collapsible boxes (Mnemonic, Read next) below the explanation, aligned left. */
html body.study-mode #app #view .uq-review-right .sr-fold-row{order:3;display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px;margin:12px 0 4px}
html body.study-mode #app #view .uq-review-right .sr-fold{
 flex:0 1 340px;min-width:220px;max-width:100%;border:1px solid rgba(25,112,172,.25);border-left:4px solid #2a6aa0;border-radius:10px;
 background:rgba(239,248,255,.85);font:13px/1.4 Arial,sans-serif;color:#24415c;overflow:hidden;
}
html body.study-mode #app #view .uq-review-right .sr-fold-mnemo{border-color:rgba(201,150,30,.45);border-left-color:#e0a82e;background:rgba(255,246,214,.75);color:#3c3320}
html body.study-mode #app #view .uq-review-right .sr-fold-head{
 display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;margin:0;padding:6px 10px;border:0;border-radius:0;
 background:transparent;color:inherit;font:600 12.5px/1.3 Arial,sans-serif;cursor:pointer;text-align:left;box-shadow:none;min-height:0;
}
html body.study-mode #app #view .uq-review-right .sr-fold-head:hover{background:rgba(42,106,160,.08)}
html body.study-mode #app #view .uq-review-right .sr-fold-title strong{font-weight:800;letter-spacing:.02em}
html body.study-mode #app #view .uq-review-right .sr-fold-icon{margin-right:5px}
html body.study-mode #app #view .uq-review-right .sr-fold-chev{transition:transform .15s ease;font-size:12px;opacity:.75}
html body.study-mode #app #view .uq-review-right .sr-fold.sr-open .sr-fold-chev{transform:rotate(180deg)}
html body.study-mode #app #view .uq-review-right .sr-fold-body{padding:2px 12px 8px;border-top:1px solid rgba(25,112,172,.15)}
html body.study-mode #app #view .uq-review-right .sr-fold-body p{margin:6px 0 0}
html body.study-mode #app #view .uq-review-right .sr-fold-body .sr-mnemo-name{margin:7px 0 0;font-weight:800;letter-spacing:.02em;color:#5a4108}
html body.study-mode #app #view .uq-review-right .sr-mnemo-foot{margin-top:8px;padding-top:6px;border-top:1px dashed rgba(176,122,12,.35);font-size:calc(100% - 3px);line-height:1.35}
html body.study-mode #app #view .uq-review-right .sr-fold-body .sr-mnemo-foot p{margin:2px 0 0}
html body.study-mode #app #view .uq-review-right .sr-mnemo-for{font-style:italic}
html body.study-mode #app #view .uq-review-right .sr-mnemo-foot b{font-style:normal;color:#b07a0c}
html body.study-mode #app #view .uq-review-right .sr-mnemo-link{display:inline;margin:0;padding:0;border:0;background:none;box-shadow:none;min-height:0;font:inherit;color:#1f5f99;text-decoration:underline dotted;text-underline-offset:2px;cursor:pointer}
html body.study-mode #app #view .uq-review-right .sr-mnemo-link:hover{text-decoration-style:solid}
html body[data-theme=dark].study-mode #app #view .uq-review-right .sr-mnemo-link{color:#9cc6ea}
html body[data-theme=dark].study-mode #app #view .uq-review-right .sr-mnemo-name{color:#ffe3a3}
html body[data-theme=dark].study-mode #app #view .uq-review-right .sr-mnemo-foot b{color:#f0c35a}
html body.study-mode #app #view .uq-review-right .sr-mnemo-list{list-style:none;margin:6px 0 0;padding:0}
html body.study-mode #app #view .uq-review-right .sr-mnemo-list li{display:flex;gap:8px;align-items:baseline;padding:1px 0}
html body.study-mode #app #view .uq-review-right .sr-mnemo-list:not(.sr-mnemo-lettered) li::before{content:'•';color:#c08a18}
html body.study-mode #app #view .uq-review-right .sr-mnemo-letter{flex:0 0 auto;min-width:18px;color:#b07a0c;font-weight:800}
html body[data-theme=dark].study-mode #app #view .uq-review-right .sr-fold{background:rgba(141,186,218,.1);color:#e3effb}
html body[data-theme=dark].study-mode #app #view .uq-review-right .sr-fold-mnemo{background:rgba(224,168,46,.12);color:#f1e6c8;border-color:rgba(224,168,46,.5)}
html body[data-theme=dark].study-mode #app #view .uq-review-right .sr-mnemo-letter{color:#f0c35a}
/* Flag (Mark) in the header, where the Favorites star used to be. */
html body.study-mode #app #view .srex-header .uq-favorite-id-pair>.sr-mark-left{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:32px!important;min-width:32px!important;height:30px!important;min-height:30px!important;margin:0 4px 0 0!important;padding:0!important;
 font-size:0!important;line-height:0!important;color:transparent!important;border:0!important;box-shadow:none!important;
 background:transparent!important;border-radius:6px!important;cursor:pointer;
}
html body.study-mode #app #view .srex-header .uq-favorite-id-pair>.sr-mark-left::after{content:'⚐'!important;font-size:24px!important;line-height:1!important;color:#fff!important}
html body.study-mode #app #view .srex-header .uq-favorite-id-pair>.sr-mark-left.uq-flag-marked::after{content:'⚑'!important;color:#ffc94a!important}
html body.study-mode #app #view .srex-header .uq-favorite-id-pair>.sr-mark-left:hover{background:rgba(255,255,255,.16)!important}
html body.study-mode #app #view .srex-header .uq-favorite-id-pair>.sr-mark-left:focus-visible{outline:2px solid #fff!important;outline-offset:1px!important}
/* 2026-11-27 · Suggested Highlights: checkbox at the top right of the question (UWorld style);
   key clues in yellow when on. Replaces the red-flag icon. */
html body.study-mode #app #view .question-card .sr-suggested-hl{
 display:inline-flex!important;align-items:center;gap:7px;margin:0 0 0 auto;padding:4px 2px;min-height:30px;box-sizing:border-box;
 font:inherit;font-size:15px!important;line-height:1.2;font-weight:400;color:#3b4250;cursor:pointer;user-select:none;-webkit-user-select:none;white-space:nowrap;
 -webkit-tap-highlight-color:transparent;
}
html body.study-mode #app #view .question-card .sr-suggested-hl input{
 width:17px!important;height:17px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;flex:0 0 auto;cursor:pointer;accent-color:#2a7de1;
 position:static!important;opacity:1!important;appearance:auto!important;-webkit-appearance:checkbox!important;
}
html body.study-mode #app #view .question-card .sr-suggested-hl.is-disabled{opacity:.45;cursor:default}
html body.study-mode #app #view .question-card .sr-suggested-hl.is-disabled input{cursor:default}
html body.study-mode #app #view .question-card .sr-suggested-hl:has(input:focus-visible){outline:2px solid rgba(42,125,225,.45);outline-offset:2px;border-radius:4px}
html body.study-mode #app #view .question-card .sr-suggested-hl:not(.uq-flag-toolbar *){float:right;margin:0 0 6px 10px}
html body[data-theme=dark].study-mode #app #view .question-card .sr-suggested-hl{color:#d7dde8}
html body.study-mode #app #view .question-card .sr-suggested-u{background:#ffff00;color:#111;box-decoration-break:clone;-webkit-box-decoration-break:clone}
html body[data-theme=dark].study-mode #app #view .question-card .sr-suggested-u{background:#e6d200;color:#111}
/* Where the student added an own highlight, the student's colour shows. */
html body.study-mode #app #view .question-card mark.mr-highlight .sr-suggested-u{background:transparent;color:inherit}

/* Labeled teaching lines and the Key point box (new explanation format). */
html body.study-mode #app #view .uq-review-right .explanation .sr-labeled{margin-top:.3em}
html body.study-mode #app #view .uq-review-right .explanation .sr-lbl{font-weight:700;color:rgb(40,85,123)}
html body[data-theme=dark].study-mode #app #view .uq-review-right .explanation .sr-lbl{color:#9cc6ea}
html body.study-mode #app #view .uq-review-right .explanation .sr-keypoint{font-weight:600;background:rgba(255,214,102,.28);border-left-color:#e0a82e}
html body.study-mode #app #view .uq-review-right .explanation .sr-kp-label{font-weight:800;color:#8a5a00}
html body[data-theme=dark].study-mode #app #view .uq-review-right .explanation .sr-keypoint{background:rgba(224,168,46,.14)}
html body[data-theme=dark].study-mode #app #view .uq-review-right .explanation .sr-kp-label{color:#f0c35a}
/* 2026-11-22: student-accuracy and difficulty cells stay hidden until real data (>=5 students) exists. */
html body #app #view .sr-uq-ribbon-cell[hidden],html body.study-mode #app #view .uq-exam-frame.sr-rail-dock .sr-uq-ribbon-cell[hidden]{display:none!important}
/* 2026-11-23: twice the air between explanation paragraphs (owner request); options list unchanged. */
html body.study-mode #app #view .uq-review-right .explanation .sr-para{margin-top:1.2em}
html body.study-mode #app #view .uq-review-right .explanation .sr-labeled{margin-top:.6em}
html body.study-mode #app #view .uq-review-right .explanation .sr-keypoint{margin-top:1.4em}
html body.study-mode #app #view .uq-review-right .explanation > .sr-line:first-child{margin-top:0}
/* 2026-11-23 administrator Read next: the source names are the links (no extra buttons) */
html body #view .sr-readnext-link{all:unset;cursor:pointer;color:inherit;font:inherit;text-decoration:underline;text-decoration-style:dotted;text-decoration-thickness:1.5px;text-underline-offset:3px;text-decoration-color:currentColor}
html body #view .sr-readnext-link:hover,html body #view .sr-readnext-link:focus-visible{text-decoration-style:solid;color:#1d6fb8}
html body #view .sr-readnext-link:focus-visible{outline:2px solid #1d6fb8;outline-offset:2px;border-radius:2px}
html body[data-theme=dark] #view .sr-readnext-link:hover,html body[data-theme=dark] #view .sr-readnext-link:focus-visible{color:#8cc8ff}
/* 2026-11-25: administrator note on First Aid coverage, beside the First Aid link. */
.sr-fa-coverage{display:inline-block;margin:0 .35em;padding:.05em .45em;border-radius:6px;font-size:.85em;line-height:1.4;background:#fff4d6;color:#7a4b00;border:1px solid #f0c36d}
.sr-fa-coverage[data-status="missing"]{background:#fde8e8;color:#8a1f1f;border-color:#f0a3a3}
@media (prefers-color-scheme:dark){.sr-fa-coverage{background:#3d2f0f;color:#f5d58a;border-color:#7a5a1c}.sr-fa-coverage[data-status="missing"]{background:#3d1717;color:#f5b0b0;border-color:#7a2c2c}}
/* StepRonda 2026-11-27: once the explanation opens and the screen splits in two, a question figure
   moves from the right of the stem to the top of the question column, so the stem keeps the full
   column width and stays readable. Question mode (no split) keeps the figure pinned on the right. The NBME style stacks the
   explanation under the question (no split), so it keeps its approved layout. */
@media(min-width:851px){
 html body.study-mode:not(.sr-uq-nbme):not(.sr-nbme-skin) #app #view .question-card.uq-review-grid .uq-review-left .mr-stem-media.mr-has-media{
  display:flex!important;flex-direction:column!important;gap:10px!important;
 }
 html body.study-mode:not(.sr-uq-nbme):not(.sr-nbme-skin) #app #view .question-card.uq-review-grid .uq-review-left .mr-stem-media.mr-has-media>.question-media{
  order:-1!important;width:100%!important;max-width:100%!important;margin:0!important;
  display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:8px!important;
 }
 html body.study-mode:not(.sr-uq-nbme):not(.sr-nbme-skin) #app #view .question-card.uq-review-grid .uq-review-left .mr-stem-media.mr-has-media>.question-media figure{
  flex:0 1 auto!important;max-width:100%!important;
 }
 html body.study-mode:not(.sr-uq-nbme):not(.sr-nbme-skin) #app #view .question-card.uq-review-grid .uq-review-left .mr-stem-media.mr-has-media>.question-media img{
  max-height:min(32vh,300px)!important;max-width:100%!important;width:auto!important;
 }
 html body.study-mode:not(.sr-uq-nbme):not(.sr-nbme-skin) #app #view .question-card.uq-review-grid .uq-review-left .mr-stem-media.mr-has-media>.mr-stem-main{
  width:100%!important;
 }
}
/* 2026-11-29 · Read next links (First Aid, Master section, Pathoma): one plain underline each, the
   same for all three. inline-block keeps any underline from the surrounding line off the link. */
html body #view .sr-fold-body .sr-readnext-link,html body #view .sr-readnext-text .sr-readnext-link{display:inline-block!important;color:#1d5f95!important;text-decoration:underline solid 1px!important;text-decoration-style:solid!important;text-decoration-thickness:1px!important;text-underline-offset:3px!important;border:0!important;box-shadow:none!important;background:none!important;padding:0!important;line-height:inherit!important}
html body #view .sr-readnext-text .sr-readnext-link::before,html body #view .sr-readnext-text .sr-readnext-link::after{content:none!important;display:none!important}
html body[data-theme=dark] #view .sr-readnext-text .sr-readnext-link{color:#8cc4f2!important}
html body #view .sr-readnext-text .sr-readnext-link:hover{color:#0b57a4!important;text-decoration-thickness:2px!important}
