/* StepRonda 2026-11-27 · Related image under the explanation (one primary image, closed by default,
   after the explanation and its Mnemonic / Read next boxes), the diagnosis band drawn on top of each
   image, and the NBME-style image viewer. Shared with images.html. */

/* Diagnosis band: looks like part of the picture (same background, no caption underneath). */
.sr-lab-fig{margin:0;display:flex;flex-direction:column;align-items:stretch;background:#fff;border:1px solid rgba(25,60,95,.09);border-radius:6px;overflow:hidden;line-height:0}
.sr-lab-band{line-height:1.25;padding:4px 8px 3px;background:#fff;color:#15324d;font:600 12.5px/1.25 Arial,Helvetica,sans-serif;letter-spacing:.01em;text-align:center;border-bottom:1px solid rgba(25,60,95,.06)}
.sr-lab-band[hidden]{display:none}
.sr-lab-fig img{display:block;width:100%;height:auto;background:#fff}
body[data-theme=dark] .sr-lab-fig{background:#0f1c29;border-color:rgba(160,200,235,.18)}
body[data-theme=dark] .sr-lab-band{background:#0f1c29;color:#e6f1fb;border-bottom-color:rgba(160,200,235,.14)}

/* Question screen: the image box sits with the Mnemonic / Read next boxes, closed until clicked. */
html body #app #view .sr-rel-row{order:3;display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px;margin:8px 0 4px}
html body #app #view .sr-rel-row .sr-fold-image{border-left-color:#3f7f5f}
html body #app #view .sr-rel-row .sr-fold-image .sr-fold-title strong{font-weight:800}
html body #app #view .sr-rel-row .sr-fold-body{padding:8px 10px 10px}
html body #app #view .sr-rel-row .sr-rel-fig{cursor:zoom-in;max-width:100%}
html body #app #view .sr-rel-row .sr-rel-fig img{max-height:300px;object-fit:contain}
html body #app #view .sr-rel-row .sr-rel-fig:focus-visible{outline:3px solid #80befb;outline-offset:2px}
html body #app #view .sr-rel-row .sr-rel-more{display:inline-block;margin-top:7px;font:600 12.5px/1.3 Arial,sans-serif;color:#1d5f95;text-decoration:none}
html body #app #view .sr-rel-row .sr-rel-more:hover{text-decoration:underline}
html body[data-theme=dark] #app #view .sr-rel-row .sr-rel-more{color:#8cc4f2}
/* Outside the exam frame (search results) the box keeps the same look. */
html body #app #view .sr-rel-row .sr-fold{flex:0 1 340px;min-width:220px;max-width:100%;border:1px solid rgba(25,112,172,.25);border-left:4px solid #3f7f5f;border-radius:10px;background:rgba(239,248,255,.85);font:13px/1.4 Arial,sans-serif;color:#24415c;overflow:hidden}
html body #app #view .sr-rel-row .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 #app #view .sr-rel-row .sr-fold-head:hover{background:rgba(42,106,160,.08)}
html body #app #view .sr-rel-row .sr-fold-chev{transition:transform .15s ease;font-size:12px;opacity:.75}
html body #app #view .sr-rel-row .sr-fold.sr-open .sr-fold-chev{transform:rotate(180deg)}
html body #app #view .sr-rel-row .sr-fold-icon{margin-right:5px}
html body[data-theme=dark] #app #view .sr-rel-row .sr-fold{background:rgba(141,186,218,.1);color:#e3effb}

/* The end of the explanation stays clear of the bottom toolbar. */
@media (min-width:851px){
 html body.study-mode #view .uq-exam-frame .question-card.uq-review-grid > .uq-review-right{padding-bottom:56px!important}
 html body.study-mode #view .uq-exam-frame .question-card.uq-review-grid > .uq-review-left{padding-bottom:40px!important}
}
@media (max-width:850px){
 html body.study-mode #view .uq-exam-frame .question-card.uq-review-grid{padding-bottom:84px!important}
}

/* NBME-style image viewer: only the image (with its band), zoom, contrast and invert. */
.sr-iv{width:fit-content;height:fit-content;max-width:96vw;max-height:94vh;padding:0;border:1px solid rgba(20,50,80,.10);border-radius:6px;background:#fff;color:#13293d;box-shadow:0 18px 50px rgba(0,0,0,.28);overflow:hidden;margin:auto}
.sr-iv:not([open]){display:none}
.sr-iv::backdrop{background:rgba(6,16,28,.55)}
.sr-iv-frame{position:relative;display:flex;flex-direction:column}
.sr-iv-band{position:relative;min-height:26px;padding:4px 64px 3px;display:flex;align-items:center;justify-content:center;background:#fff;border-bottom:1px solid rgba(25,60,95,.06);font:600 12.5px/1.25 Arial,Helvetica,sans-serif;color:#15324d;text-align:center}
.sr-iv-band-empty .sr-iv-title{display:none}
.sr-iv-tools{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:1px}
.sr-iv-btn{display:inline-grid;place-items:center;width:22px;height:22px;padding:0;border:0;border-radius:4px;background:transparent;color:#4a6176;font:400 14px/1 Arial,sans-serif;cursor:pointer;opacity:.55}
.sr-iv-close{font-size:17px}
.sr-iv-btn:hover{opacity:1;background:rgba(20,50,80,.06)}
.sr-iv-inv[aria-pressed="true"]{opacity:1}
.sr-iv-btn:focus-visible,.sr-iv-zoom button:focus-visible{outline:2px solid #80befb;outline-offset:0}
.sr-iv-more{position:absolute;right:8px;bottom:8px;padding:4px 7px;border-radius:5px;background:rgba(255,255,255,.72);box-shadow:0 1px 3px rgba(0,0,0,.12);backdrop-filter:blur(3px);white-space:nowrap;color:#1d5f95;font:600 11px/1 Arial,sans-serif;text-decoration:none;opacity:.6;transition:opacity .15s}
.sr-iv-frame:hover .sr-iv-more{opacity:.95}
.sr-iv-more:hover{opacity:1;text-decoration:underline}
.sr-iv-stage{position:relative;overflow:hidden;line-height:0;background:#fff;touch-action:none}
.sr-iv-stage img{display:block;max-width:none;user-select:none;-webkit-user-drag:none}
.sr-iv-stage.sr-iv-pan{cursor:grab}
.sr-iv-stage.sr-iv-dragging{cursor:grabbing}
.sr-iv-zoom{position:absolute;left:8px;top:40px;display:flex;flex-direction:column;align-items:center;border-radius:6px;background:rgba(255,255,255,.72);box-shadow:0 1px 3px rgba(0,0,0,.12);backdrop-filter:blur(3px);opacity:.6;transition:opacity .15s}
.sr-iv-frame:hover .sr-iv-zoom,.sr-iv-zoom:focus-within{opacity:1}
.sr-iv-zoom button{width:26px;height:22px;padding:0;border:0;background:transparent;color:#2b4459;font:400 15px/1 Arial,sans-serif;cursor:pointer}
.sr-iv-zoom .sr-iv-pct{height:16px;font-size:9.5px;font-variant-numeric:tabular-nums;color:#4a6176}
.sr-iv-zoom button:hover{color:#0b57a4}
body[data-theme=dark] .sr-iv{background:#0f1c29;color:#e6f1fb;border-color:rgba(160,200,235,.14)}
body[data-theme=dark] .sr-iv-band,body[data-theme=dark] .sr-iv-stage{background:#0f1c29;color:#e6f1fb;border-bottom-color:rgba(160,200,235,.08)}
body[data-theme=dark] .sr-iv-btn{color:#b9cde0}
body[data-theme=dark] .sr-iv-zoom{background:rgba(16,32,47,.72)}
body[data-theme=dark] .sr-iv-zoom button{color:#cfe0ef}
body[data-theme=dark] .sr-iv-more{color:#8cc4f2;background:rgba(16,32,47,.72)}
@media (max-width:600px){.sr-iv{max-width:100vw;max-height:100dvh;border-radius:0;border:0}.sr-iv-more{display:none}.sr-iv-zoom{opacity:.85}}
@media print{.sr-rel-row,.sr-iv{display:none!important}}

/* Sidebar entry under Library: a link that opens the Images page in a new tab. Step 1 only. */
body[data-sr-scope="step2"] #srImagesNav{display:none!important}
/* Clickable image terms in the explanation (Key point phrase, diagnosis name). */
html body #view .explanation .sr-img-term{cursor:zoom-in;color:#0b57a4;text-decoration:underline dotted 1.5px;text-underline-offset:3px;border-radius:3px}
html body #view .explanation .sr-img-term::after{content:none!important;display:none!important}
html body #view .explanation .sr-img-term:hover{background:rgba(11,87,164,.1)}
html body #view .explanation .sr-img-term:focus-visible{outline:2px solid #80befb;outline-offset:1px}
html body[data-theme=dark] #view .explanation .sr-img-term,html body.sr-uq-styled[data-uq-style="dark"] #view .explanation .sr-img-term{color:#8cc4f2}
/* 2026-11-27 · No broken-image icon or alt text while an image is still loading: a soft placeholder
   shows instead, and the picture fades in once it has arrived. */
.sr-lab-fig img:not([src]),.sr-lab-fig.sr-img-wait img{visibility:hidden}
.sr-lab-fig.sr-img-wait{position:relative}
.sr-lab-fig.sr-img-wait::after{content:"";position:absolute;left:0;right:0;bottom:0;top:24px;border-radius:0 0 6px 6px;background:linear-gradient(100deg,rgba(150,175,200,.10) 30%,rgba(150,175,200,.24) 50%,rgba(150,175,200,.10) 70%);background-size:300% 100%;animation:sr-img-shimmer 1.1s linear infinite}
@keyframes sr-img-shimmer{from{background-position:100% 0}to{background-position:0 0}}
@media (prefers-reduced-motion:reduce){.sr-lab-fig.sr-img-wait::after{animation:none}}
.sr-lab-fig img{transition:opacity .15s}
/* 2026-11-28 · "Reabrir bloque" in the review footer (admins, finished Timed blocks with time left). */
#view .uq-exam-frame .srex-footer .sr-reopen-block{margin:0 10px;padding:5px 12px;border:1px solid rgba(255,255,255,.55);border-radius:6px;background:transparent;color:#fff;font:600 12.5px/1.2 inherit;cursor:pointer;white-space:nowrap}
#view .uq-exam-frame .srex-footer .sr-reopen-block:hover{background:rgba(255,255,255,.12)}
#view .uq-exam-frame .srex-footer .sr-reopen-block:disabled{opacity:.5;cursor:default}

/* 2026-11-29 · Related image box, lighter: no thick coloured edge or frames, a clean icon with the
   diagnosis as the only title, and "See more related images" laid over the bottom of the picture. */
html body #app #view .sr-rel-row .sr-fold.sr-fold-image{border:1px solid rgba(25,60,95,.08)!important;border-left:1px solid rgba(25,60,95,.08)!important;border-radius:10px!important;background:rgba(240,246,252,.6)!important;box-shadow:none!important}
html body[data-theme=dark] #app #view .sr-rel-row .sr-fold.sr-fold-image{border-color:rgba(160,200,235,.12)!important;border-left-color:rgba(160,200,235,.12)!important;background:rgba(141,186,218,.06)!important}
html body #app #view .sr-rel-row .sr-fold-image .sr-fold-head{padding:6px 10px!important;font-size:13px!important}
html body #app #view .sr-rel-row .sr-fold-image .sr-fold-title{display:flex;align-items:center;gap:6px;min-width:0}
html body #app #view .sr-rel-row .sr-fold-image .sr-fold-title strong{font:700 13px/1.3 Arial,Helvetica,sans-serif!important;letter-spacing:0!important}
html body #app #view .sr-rel-row .sr-fold-image .sr-fold-icon{margin:0;display:inline-flex;color:#3f7f5f;flex:0 0 auto}
html body[data-theme=dark] #app #view .sr-rel-row .sr-fold-image .sr-fold-icon{color:#8fd1ad}
html body #app #view .sr-rel-row .sr-fold-image .sr-fold-body{padding:0 6px 6px!important;border-top:0!important}
html body #app #view .sr-rel-row .sr-rel-stage{position:relative;line-height:0}
html body #app #view .sr-rel-row .sr-rel-fig{border:0!important;border-radius:7px;box-shadow:none!important}
html body #app #view .sr-rel-row .sr-rel-more{position:absolute;right:6px;bottom:6px;margin:0!important;padding:4px 9px;border-radius:999px;background:rgba(255,255,255,.92);box-shadow:0 1px 4px rgba(10,30,50,.18);font:600 12px/1.3 Arial,sans-serif!important;color:#1d5f95;text-decoration:none}
html body[data-theme=dark] #app #view .sr-rel-row .sr-rel-more{background:rgba(15,28,41,.9);color:#8cc4f2}
html body.study-mode.sr-nbme-skin #app#app #view#view .uq-exam-frame .question-card>.uq-review-right .sr-rel-row .sr-fold-image .sr-fold-title strong{font-size:14px!important;line-height:1.3!important}
html body.study-mode.sr-nbme-skin #app#app #view#view .uq-exam-frame .question-card>.uq-review-right .sr-rel-row .sr-rel-more{font-size:12.5px!important;line-height:1.3!important}
html body.study-mode.sr-nbme-skin #app#app #view#view .uq-exam-frame .question-card>.uq-review-right .sr-rel-row .sr-fold-chev{font-size:12px!important;line-height:1!important}

/* 2026-11-29 · Header: picture icon and the image's name, once. */
html body #app #view .sr-rel-row .sr-fold-image .sr-fold-head{gap:8px!important;padding:6px 10px!important}
html body #app #view .sr-rel-row .sr-fold-image .sr-fold-icon{margin:0!important;display:inline-flex}
html body #app #view .sr-rel-row .sr-fold-image .sr-fold-icon svg{width:18px;height:18px}

/* 2026-11-29 · "Medical references" sits at the very end of the answer pane, below the
   "System and topic" box. */
html body.study-mode #app #view .uq-review-right>.sr-refs-tail{display:block;width:100%;margin:16px 0 4px;padding-top:12px;border-top:1px solid rgba(64,130,170,.22);font-family:Arial,sans-serif}
html body.study-mode #app #view .uq-review-right>.sr-refs-tail .sr-tutor-part{margin:0 0 8px!important;padding:0!important}
html body.study-mode #app #view .uq-review-right>.sr-refs-tail .sr-tutor-part-heading{margin:0 0 6px!important;font-size:calc(var(--reading-font,15px) + 1px)!important}
html body.study-mode #app #view .uq-review-right>.sr-refs-tail .sr-tutor-paragraph{font-size:var(--reading-font,15px)!important;line-height:1.55!important;margin:0 0 4px!important;overflow-wrap:anywhere!important}
html body.study-mode #app #view .uq-review-right:has(.uq-ai-tutor[data-uq-open="false"]:not(.sr-inline-explanation))>.sr-refs-tail{display:none}
html body.study-mode.sr-nbme-skin:not(.sr-nbme-live) #app#app #view#view .uq-exam-frame .question-card>.uq-review-right>.sr-refs-tail{order:1000!important;border-top-color:#e1e5e8}
