/* VesninMed: original anatomy plates, Russian labels rendered in the HTML.
   No synthesized or redrawn anatomy. Exact 960×1165 co-ordinates for the
   Wikimedia posterior pelvis figure; all other figures show Russian keys. */
.obs-article .obs-ru-figure {
  width:100%;
  min-width:0;
  margin:0;
}
.obs-article .obs-ru-show {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.obs-article .obs-ru-switch {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:#eaf3f7;
  color:#173c50;
  border:1px solid #bed4df;
  border-bottom:0;
  border-radius:12px 12px 0 0;
  font:650 .87rem/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;
  padding:9px 13px;
  cursor:pointer;
  text-align:left;
}
.obs-article .obs-ru-show:focus-visible + .obs-ru-switch {
  outline:3px solid #f4a548;
  outline-offset:2px;
}
.obs-article .obs-ru-switch span {
  font-size:.8rem;
  font-weight:650;
  color:#225d77;
  text-decoration:underline;
  text-underline-offset:2px;
}
.obs-article .obs-show-label {display:none}
.obs-article .obs-ru-show:not(:checked) + .obs-ru-switch .obs-hide-label {display:none}
.obs-article .obs-ru-show:not(:checked) + .obs-ru-switch .obs-show-label {display:inline}
.obs-article .obs-ru-stage {
  position:relative;
  display:block;
  width:100%;
  margin:0 auto;
  overflow:hidden;
  isolation:isolate;
  background:#fff;
  border:1px solid #d4e1e6;
  border-radius:0 0 12px 12px;
}
.obs-article .obs-ru-stage > img {
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  margin:0 auto;
  border:0;
  border-radius:0;
  background:#fff;
}
.obs-article .obs-ru-overprint {
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:2;
  pointer-events:none;
  overflow:visible;
}
.obs-article .obs-ru-show:not(:checked) ~ .obs-ru-stage .obs-ru-overprint,
.obs-article .obs-ru-show:not(:checked) ~ .obs-ru-stage .obs-ru-plate-note {
  display:none!important;
}
.obs-article .obs-ru-plate-note {
  position:absolute;
  z-index:2;
  left:8px;
  right:8px;
  top:8px;
  padding:8px 11px;
  background:rgba(255,255,255,.95);
  border:1px solid rgba(42,92,114,.45);
  border-radius:9px;
  box-shadow:0 2px 8px rgba(15,40,55,.13);
  color:#1e4254;
  font:500 clamp(.77rem,1.35vw,.97rem)/1.38 system-ui,-apple-system,"Segoe UI",sans-serif;
  overflow-wrap:anywhere;
  text-align:left;
}
.obs-article .obs-ru-plate-note strong {
  display:block;
  color:#163a4d;
  font-size:1.04em;
  font-weight:750;
  line-height:1.3;
}
.obs-article .obs-ru-plate-note span {display:block;margin-top:3px}
.obs-article .obs-ru-muro-label {
  top:auto;
  bottom:9px;
  left:7px;
  right:7px;
  padding:7px 9px;
  font-size:clamp(.7rem,1.3vw,.82rem);
  max-height:45%;
  overflow-y:auto;
}
.obs-article .obs-ru-gray-internus .obs-ru-stage {
  max-width:260px;
}
.obs-article .obs-ru-hip-rotation .obs-ru-plate-note {
  top:5px;
  left:5px;
  right:5px;
  padding:5px 7px;
  font-size:.8rem;
}
.obs-article .obs-ru-gray-externus .obs-ru-plate-note {
  bottom:7px;
  top:auto;
  font-size:clamp(.72rem,1.2vw,.85rem);
}
.obs-article .obs-media, .obs-article .obs-rotation-figure {
  margin:1.2rem 0 1.9rem;
  max-width:100%;
}
.obs-article .obs-media figcaption, .obs-article .obs-rotation-figure figcaption {
  margin-top:.6rem;
  color:#526a78;
  font-size:clamp(.8rem,1.4vw,.9rem);
  line-height:1.52;
  overflow-wrap:anywhere;
}
.obs-article .article-story {
  min-width:0;
  overflow-wrap:break-word;
}
.obs-article .article-story>section>h2 {
  scroll-margin-top:110px;
  margin-top:2.1rem;
  margin-bottom:.8rem;
  line-height:1.24;
}
.obs-article .article-story>section>p {
  line-height:1.61;
  hyphens:auto;
}
@media (max-width:680px) {
  .obs-article .obs-ru-switch {padding:8px 10px; font-size:.8rem}
  .obs-article .obs-ru-plate-note {font-size:.75rem;padding:6px 8px}
  .obs-article .obs-ru-muro-label {font-size:.71rem;max-height:38%}
  .obs-article .obs-ru-gray-internus .obs-ru-stage {max-width:245px}
  .obs-article .article-story>section>h2 {margin-top:1.75rem;margin-bottom:.65rem}
  .obs-article .article-story>section>p {line-height:1.54}
  .obs-article .obs-media, .obs-article .obs-rotation-figure {margin:1rem 0 1.5rem}
}
@media (prefers-color-scheme:dark) {
  .obs-article .obs-ru-switch {
    background:#eaf3f7;
    color:#173c50;
    border-color:#b2cdd8;
  }
  .obs-article .obs-ru-switch span {color:#225d77}
  .obs-article .obs-ru-plate-note {
    background:rgba(250,252,253,.95);
    color:#1e4254;
  }
  .obs-article .obs-ru-plate-note strong {color:#163a4d}
}


/* 2026-11-19: figure-first mobile correction.
   Keep annotation legends in the image card, after the actual picture. */
.obs-article .obs-ru-figure:not(.obs-ru-hip-posterior) .obs-ru-plate-note {
  position:static !important;
  display:block;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  width:100%;
  max-height:none !important;
  overflow:visible !important;
  margin:0;
  border:0;
  border-top:1px solid #c8dce4;
  border-radius:0;
  padding:10px 12px;
  box-shadow:none;
  background:#f0f7fa;
  backdrop-filter:none;
  color:#1e4254;
  font-size:clamp(.79rem,1.4vw,.94rem);
  line-height:1.5;
}
.obs-article .obs-ru-figure:not(.obs-ru-hip-posterior) .obs-ru-plate-note span {
  margin:3px 0 0;
}
.obs-article .obs-ru-figure:not(.obs-ru-hip-posterior) .obs-ru-stage {
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.obs-article .obs-ru-figure:not(.obs-ru-hip-posterior) .obs-ru-stage > img {
  flex:none;
  max-width:100%;
  width:100%;
  height:auto;
  object-fit:contain;
}
.obs-article .obs-ru-figure:not(.obs-ru-hip-posterior) .obs-ru-show:not(:checked) ~ .obs-ru-stage .obs-ru-plate-note {
  display:none !important;
}

/* The explanatory panels belong to individual techniques, never cover pictures. */
.obs-article .obs-practice-figure {
  display:block;
  max-width:680px;
  margin:1.05rem auto .5rem;
  padding:0;
  overflow:hidden;
  border:1px solid #d5e3e9;
  border-radius:13px;
  background:#fff;
}
.obs-article .obs-practice-figure>a {
  display:block;
  background:#fff;
  padding:5px;
}
.obs-article .obs-practice-figure img {
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  margin:auto;
  border:0;
  border-radius:7px;
  background:#fff;
}
.obs-article .obs-practice-figure figcaption {
  padding:11px 14px 13px;
  background:#edf5f8;
  border-top:1px solid #d3e3e9;
  color:#28485a;
  font-size:clamp(.81rem,1.45vw,.93rem);
  line-height:1.55;
  overflow-wrap:break-word;
}
.obs-article .obs-practice-figure figcaption strong {
  display:block;
  margin-bottom:3px;
  font-weight:750;
  color:#193d50;
}
.obs-article .obs-practice-figure a {
  color:#23647e;
  text-underline-offset:2px;
}
.obs-article .obs-practice-figure>a:focus-visible {
  outline:3px solid #ffb65b;
  outline-offset:2px;
}
.obs-article .article-story>section>p {
  hyphens:none;
  word-break:normal;
  overflow-wrap:break-word;
  text-wrap:pretty;
}
@media (max-width:680px){
  .obs-article .obs-practice-figure {margin:1rem 0 .45rem}
  .obs-article .obs-practice-figure figcaption {padding:9px 11px 11px;line-height:1.47}
  .obs-article .obs-ru-figure:not(.obs-ru-hip-posterior) .obs-ru-plate-note {
    padding:8px 10px;
    font-size:.8rem;
    line-height:1.45;
  }
}
@media (prefers-color-scheme:dark) {
 .obs-article .obs-practice-figure figcaption {
  background:#e8f3f8;
  color:#25485a;
 }
 .obs-article .obs-practice-figure figcaption strong {color:#193d50}
 .obs-article .obs-practice-figure a {color:#28657f}
 .obs-article .obs-ru-figure:not(.obs-ru-hip-posterior) .obs-ru-plate-note {
  background:#eef6f9;
  color:#204457;
 }
}


/* Figure editorial layout — 2026-11-19
   Every figure has its own measure. The largest original can be enlarged using
   the existing article image magnifier; small labels remain attached to it. */
.obs-article .article-story figure.obs-media,
.obs-article .article-story figure.obs-practice-figure,
.obs-article .article-story figure.obs-rotation-figure {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:100%;
  margin:1.35rem auto 2rem;
  clear:both;
  overflow:visible;
}
.obs-article .article-story figure.obs-media .obs-ru-figure,
.obs-article .article-story figure.obs-media .obs-ru-stage {
  box-sizing:border-box;
  max-width:100%;
  min-width:0;
}
.obs-article .article-story figure.obs-media.obs-figure--posterior {
  width:min(100%, 480px);
}
.obs-article .article-story figure.obs-media.obs-figure--gray-internus {
  width:min(100%, 410px);
}
.obs-article .article-story figure.obs-media.obs-figure--gray-externus {
  width:min(100%, 520px);
}
.obs-article .article-story figure.obs-media.obs-figure--muro-overview,
.obs-article .article-story figure.obs-media.obs-figure--muro-histology {
  width:min(100%, 720px);
}
.obs-article .article-story figure.obs-practice-figure.obs-figure--practice {
  width:min(100%, 640px);
  max-width:640px;
}
.obs-article .article-story figure.obs-rotation-figure.obs-figure--movement {
  width:min(100%, 275px);
  max-width:275px;
}
.obs-article .article-story figure.obs-media.obs-figure--posterior .obs-ru-stage {
  width:100%;
  max-width:100%;
}
.obs-article .article-story figure.obs-media.obs-figure--posterior .obs-ru-stage > img,
.obs-article .article-story figure.obs-media.obs-figure--posterior .obs-ru-stage .vm-zoom-frame img {
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  object-fit:contain;
}
/* Only the posterior plate contains SVG replacements. The SVG stays in the
   exact same coordinate system as the fully visible source image. */
.obs-article .article-story figure.obs-media.obs-figure--posterior .obs-ru-overprint {
  inset:0;
  width:100%;
  height:100%;
}
.obs-article .article-story figure.obs-media.obs-figure--gray-internus .obs-ru-stage > img,
.obs-article .article-story figure.obs-media.obs-figure--gray-externus .obs-ru-stage > img,
.obs-article .article-story figure.obs-media.obs-figure--gray-internus .obs-ru-stage .vm-zoom-frame img,
.obs-article .article-story figure.obs-media.obs-figure--gray-externus .obs-ru-stage .vm-zoom-frame img {
  width:auto;
  max-width:100%;
  max-height:540px;
  object-fit:contain;
  margin-inline:auto;
}
.obs-article .article-story figure.obs-media.obs-figure--muro-overview .obs-ru-stage > img,
.obs-article .article-story figure.obs-media.obs-figure--muro-histology .obs-ru-stage > img,
.obs-article .article-story figure.obs-media.obs-figure--muro-overview .obs-ru-stage .vm-zoom-frame img,
.obs-article .article-story figure.obs-media.obs-figure--muro-histology .obs-ru-stage .vm-zoom-frame img {
  width:auto;
  max-width:100%;
  max-height:490px;
  object-fit:contain;
  margin-inline:auto;
}
.obs-article .article-story figure.obs-practice-figure.obs-figure--practice img {
  width:auto;
  max-width:100%;
  max-height:500px;
  height:auto;
  object-fit:contain;
  margin-inline:auto;
}
.obs-article .article-story figure.obs-rotation-figure.obs-figure--movement .obs-ru-stage img {
  width:100%;
  max-height:225px;
  height:auto;
  object-fit:contain;
}
.obs-article .article-story figure.obs-media figcaption,
.obs-article .article-story figure.obs-practice-figure figcaption {
  max-width:100%;
  margin:0;
  padding:.7rem .8rem 0;
  font:400 clamp(.78rem,1.2vw,.88rem)/1.57 system-ui,-apple-system,"Segoe UI",sans-serif;
  color:#526b78;
  overflow-wrap:break-word;
}
.obs-article .article-story figure.obs-practice-figure figcaption {
  background:#edf5f8;
  padding:.8rem .9rem .9rem;
}
.obs-article .article-story figure.obs-media .obs-ru-switch {
  box-sizing:border-box;
  max-width:100%;
}
.obs-article .article-story .obs-gallery {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
  align-items:start;
  width:100%;
  max-width:100%;
}
.obs-article .article-story .obs-gallery figure.obs-media {
  width:100%;
  min-width:0;
  max-width:100%;
  margin:0;
}

/* Reader injects a zoom wrapper around each image. Preserve figure sizing
   before and after the shared zoom controls initialize. */
.obs-article .article-story figure.obs-media .obs-ru-stage > .vm-zoom-frame {
  width:100%;
  max-width:100%;
  min-width:0;
}
.obs-article .article-story figure.obs-media .obs-ru-stage > .vm-zoom-frame > img {
  display:block;
  max-width:100%;
  height:auto;
  margin-inline:auto;
}
.obs-article .article-story figure.obs-rotation-figure .obs-ru-stage > .vm-zoom-frame {
  width:100%;
  max-width:100%;
}
.obs-article .article-story figure.obs-rotation-figure .obs-ru-stage > .vm-zoom-frame > img {
  height:auto;
  margin-inline:auto;
}

/* Keep original content legible on a phone; avoid tall panels and side scrolling. */
@media (max-width:760px) {
  .obs-article .article-story figure.obs-media,
  .obs-article .article-story figure.obs-practice-figure,
  .obs-article .article-story figure.obs-rotation-figure {
    width:100%;
    max-width:100%;
    margin:1.1rem auto 1.6rem;
  }
  .obs-article .article-story .obs-gallery {
    grid-template-columns:1fr;
    gap:1.1rem;
  }
  .obs-article .article-story figure.obs-media.obs-figure--posterior {
    width:min(100%, 480px);
  }
  .obs-article .article-story figure.obs-media.obs-figure--gray-internus {
    width:min(100%, 330px);
  }
  .obs-article .article-story figure.obs-media.obs-figure--gray-externus {
    width:min(100%, 430px);
  }
  .obs-article .article-story figure.obs-rotation-figure.obs-figure--movement {
    width:min(100%, 290px);
  }
  .obs-article .article-story figure.obs-media.obs-figure--muro-overview,
  .obs-article .article-story figure.obs-media.obs-figure--muro-histology,
  .obs-article .article-story figure.obs-practice-figure.obs-figure--practice {
    width:100%;
  }
  .obs-article .article-story figure.obs-media figcaption,
  .obs-article .article-story figure.obs-practice-figure figcaption {
    padding:.6rem .3rem .25rem;
    font-size:.82rem;
    line-height:1.51;
  }
}
@media (prefers-color-scheme:dark) {
 .obs-article .article-story figure.obs-media figcaption {color:#b7cbd5}
 .obs-article .article-story figure.obs-practice-figure figcaption {color:#28485a}
}
@media print {
  .obs-article .article-story figure.obs-media,
  .obs-article .article-story figure.obs-practice-figure {
    break-inside:avoid;
    max-width:100%;
  }
}
