/* GIN Pathology subject and topic styles. */

/* ============================================================
   FIGURE THUMBNAIL SIZING — undo the RAR letterbox on this axis
   ------------------------------------------------------------
   modules/rar/pathology/path-figure.css is the shared figure +
   lightbox engine, and it pins

       .gin-topic-content .atl-figure__btn .atl-figure__img
           { height: 168px }

   with no width constraint. Combined with micro-kit's
   `width: 100%`, `object-fit` falls back to `fill`, so any image
   whose aspect ratio is not ~2:1 is STRETCHED — a portrait
   radiograph or a tall mnemonic gets squashed flat, and the
   distortion is silent: nothing errors, the page just looks wrong.

   path-figure.css loads AFTER this file in index.html, so an
   equal-specificity rule here would lose. The selector below
   therefore carries five class-level units against its three.

   Scoped by contentId prefix rather than by a scope class: every
   GIN Pathology page's contentId is `ginPath<Page>Content` (see
   .claude/handoff/GIN_PATH_STOMACH_ENV_ADDENDUM.md §2, where that
   prefix is already load-bearing for router scoping), so new pages
   inherit this automatically instead of depending on an init line
   somebody has to remember. GIN Physiology and GIN Pharmacology
   solve the same collision with .gin-phys / .gin-pharm; if one of
   those changes, keep this in step.

   .mk-figpair is unaffected: its `aspect-ratio: 16/10` +
   `object-fit: cover` still applies, so paired peer images keep
   their uniform honest crop.
   ============================================================ */
/* `:not(.gin-anat)` — added 2026-09-19. The Liver group's pages carry the
   `.gin-anat` scope so they inherit the GIN layout kit Chris approved on the
   Anatomy modules (modules/gin/anatomy/anatomy.css). That kit already sizes
   figures itself, and its `.mk-fig-row--match` rows depend on the image being
   `height: 100%` inside an absolutely positioned box. This rule's `height: auto`
   outranks it (5 class-level units against 4) and would break every matched
   row, so it stands aside wherever the anatomy kit is in charge. Esophagus and
   Stomach pages do not carry `.gin-anat` and are unaffected. */
.gin-topic-content[id^="ginPath"]:not(.gin-anat) .atl-figure .atl-figure__btn .atl-figure__img {
    width: 100%;
    height: auto;
}
