/* Shared visual navigation for all seven detailed pain-location maps. */
#atlas-root .finder-detail-modern { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; }
#atlas-root .map-panel:has(.finder-detail-modern) { overflow: visible; }
#atlas-root .finder-detail-viewer { min-width: 0; padding: 18px 16px 0; }
#atlas-root .finder-detail-modern [hidden] { display: none !important; }
#atlas-root .finder-detail-gallery-intro { margin: 0 0 18px; color: #b8cfdb; font-size: 14px; line-height: 1.7; }
#atlas-root .finder-detail-gallery-intro strong { display: block; color: #e2f3fc; font-weight: 600; }
#atlas-root .finder-detail-thumbnails { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding-bottom: 18px; }
#atlas-root .finder-detail-thumbnail { display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; border: 2px solid #dce6ec; border-radius: 16px; background: #fff; color: #164b60; cursor: pointer; font: inherit; text-align: left; transition: border-color .15s, box-shadow .15s; }
#atlas-root .finder-detail-thumbnail:is(:hover,.is-preview) { border-color: #31bddb; box-shadow: 0 0 0 3px rgba(99,211,235,.25); }
#atlas-root .finder-detail-thumbnail-art { display: block; width: 100%; padding: 16px 10px 10px; }
#atlas-root .finder-detail-thumbnail-art>svg { display: block; width: 100%; height: 240px; overflow: hidden; }
#atlas-root .finder-detail-thumbnail-region .finder-location-shape { fill: rgba(0,137,160,.12); stroke: #448b96; stroke-width: 1; vector-effect: non-scaling-stroke; }
#atlas-root .finder-detail-thumbnail-brand { display: flex; justify-content: flex-end; padding-top: 10px; }
#atlas-root .finder-detail-thumbnail .finder-detail-brand { width: 88px; max-width: 100%; }
#atlas-root .finder-detail-thumbnail-label { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 8px; min-height: 74px; width: 100%; padding: 12px 14px; border-top: 1px solid #d6e6ec; background: #edf4f8; font-size: 16px; font-weight: 650; line-height: 1.4; }
#atlas-root .finder-detail-thumbnail-label small { display: block; font-size: 12px; font-weight: 450; color: #486776; margin-top: 4px; }
#atlas-root .finder-detail-thumbnail-label>svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
#atlas-root .finder-detail-back { min-height: 44px; margin: 0 0 12px; padding: 8px 13px; border: 1px solid #476a7d; border-radius: 10px; background: #132b3b; color: #daeff9; font: inherit; font-size: 13px; cursor: pointer; }
#atlas-root .finder-detail-back:hover { border-color: #63d3eb; background: #204b60; }
#atlas-root .finder-detail-modern button:focus-visible { outline: 3px solid #8be3fa; outline-offset: 3px; }
#atlas-root .finder-detail-switches { display: flex; flex-wrap: wrap; gap: 6px; }
#atlas-root .finder-detail-switches button { min-height: 44px; padding: 8px 12px; border: 1px solid #476a7d; border-radius: 9px; background: #132b3b; color: #cce2ef; font: inherit; font-size: 12px; cursor: pointer; }
#atlas-root .finder-detail-switches button[aria-pressed="true"] { background: #c7f3f7; border-color: #c7f3f7; color: #104957; font-weight: 700; }
#atlas-root .finder-detail-canvas { overflow: hidden; border: 1px solid #dde7ed; border-radius: 14px; background: #fff; }
#atlas-root .finder-detail-figure { margin: 0; padding: 16px 14px 12px; background: #fff; }
#atlas-root .finder-detail-figure figcaption { color: #526579; text-align: center; margin: 0 0 14px; }
#atlas-root .finder-detail-figure figcaption>span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
#atlas-root .finder-detail-figure figcaption>strong { display: block; min-height: 2.7em; margin: 7px auto 0; max-width: 32ch; color: #16576a; font-size: 16px; line-height: 1.35; font-weight: 650; }
#atlas-root .finder-detail-modern .finder-detail-svg { display: block; width: 100%; height: auto; max-height: 580px; margin: auto; overflow: hidden; touch-action: manipulation; }
#atlas-root .finder-detail-hit .finder-location-shape { fill: rgba(0,137,160,.14); stroke: #397e89; stroke-width: 1.3; vector-effect: non-scaling-stroke; pointer-events: fill; transition: fill .15s, stroke .15s; }
#atlas-root .finder-detail-hit:nth-child(even) .finder-location-shape { fill: rgba(0,137,160,.23); }
#atlas-root .finder-detail-hit:is(:hover,.is-preview) .finder-location-shape { fill: rgba(0,153,179,.38); stroke: #00566b; stroke-width: 2; }
#atlas-root .finder-detail-hit.is-active .finder-location-shape { fill: rgba(110,64,186,.38); stroke: #6535a7; stroke-width: 2.5; }
#atlas-root .finder-detail-pin circle { fill: #fff; stroke: #246c7a; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
#atlas-root .finder-detail-pin text { fill: #124b59; font-weight: 750; font-family: inherit; pointer-events: none; }
#atlas-root .finder-detail-pin:is(:hover,.is-preview) circle { fill: #c0f3f7; stroke: #00566b; stroke-width: 2.5; }
#atlas-root .finder-detail-pin.is-active circle { fill: #6535a7; stroke: #fff; stroke-width: 2; }
#atlas-root .finder-detail-pin.is-active text { fill: #fff; }
#atlas-root .finder-detail-modern .finder-location-list { grid-template-columns: 1fr; gap: 8px; min-width: 0; padding: 18px 16px; }
#atlas-root .finder-location-list-title { margin: 0 0 6px; color: #eefaff; font-size: 16px; font-weight: 650; }
#atlas-root .finder-location-list-title span { display: block; color: #b8cfdb; font-size: 12px; margin-top: 5px; font-weight: 450; }
#atlas-root .finder-detail-modern .finder-location-button { min-height: 56px; padding: 10px; gap: 10px; font-size: 13px; line-height: 1.5; cursor: pointer; }
#atlas-root .finder-location-number { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid #629aaa; border-radius: 50%; background: #e5f5f8; color: #164b60; font-size: 13px; font-weight: 750; }
#atlas-root [data-location-name] { flex: 1; }
#atlas-root .finder-location-check { visibility: hidden; font-size: 18px; }
#atlas-root .finder-location-button.is-preview { border-color: #61cdea; background: rgba(0,184,238,.15); color: #d5f8ff; }
#atlas-root .finder-detail-modern .finder-location-button.is-active { border-color: #bd9bef; background: #312348; color: #fff; }
#atlas-root .finder-location-button.is-active .finder-location-number { background: #8052bf; border-color: #c7a9ef; color: #fff; }
#atlas-root .finder-location-button.is-active .finder-location-check { visibility: visible; }
#atlas-root .finder-detail-brand-row { display: flex; justify-content: flex-end; padding: 14px 2px 0; }
#atlas-root .finder-detail-brand { display: inline-block; width: 112px; aspect-ratio: 1600/403; position: relative; }
#atlas-root .finder-detail-brand img { display: block; width: 100%; height: 100%; }
#atlas-root .finder-detail-brand>span { position: absolute; inset: 0; background: #111; -webkit-mask: url('/logo.png') center/100% 100% no-repeat; mask: url('/logo.png') center/100% 100% no-repeat; clip-path: inset(0 0 0 25%); }
#atlas-root .finder-detail-help { color: #b8cfdb; font-size: 12px; line-height: 1.7; margin: 12px 2px; }
#atlas-root .finder-detail-selection { grid-column: 1/-1; position: sticky; bottom: 16px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 16px 16px; padding: 14px 16px; border: 1px solid #b296d7; border-radius: 12px; background: #211b30; box-shadow: 0 6px 24px #0005; }
#atlas-root .finder-detail-selection p { margin: 0; line-height: 1.5; }
#atlas-root .finder-detail-selection p>span { display: block; color: #c6b9db; font-size: 11px; }
#atlas-root .finder-detail-selection strong { display: block; color: #fff; font-size: 14px; }
#atlas-root [data-confirm-location] { flex-shrink: 0; min-height: 48px; padding: 10px 16px; border-radius: 9px; border: 1px solid #cff6fc; background: #cff6fc; color: #103e4a; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
#atlas-root [data-confirm-location]:hover { background: #fff; }
#atlas-root .finder-view-detail:has(.finder-instruction) .finder-detail-modern { grid-template-columns: minmax(0,1.45fr) minmax(240px,1fr); }
#atlas-root .finder-view-detail .finder-detail-modern[data-detail-mode="overview"] { grid-template-columns: minmax(0,1fr); }
/* Every detail illustration has permanent named callouts and its own focused crop. */
#atlas-root .finder-view-detail:has(.finder-instruction) .finder-detail-modern { grid-template-columns: minmax(0,1fr); }
#atlas-root .finder-detail-modern .finder-detail-labeled { max-width: 620px; max-height: none; }
#atlas-root [data-external-labels] .finder-location-shape { fill: rgba(234,106,78,.48); stroke: #fff; stroke-width: 2; }
#atlas-root [data-external-labels] .finder-detail-hit:nth-child(even) .finder-location-shape { fill: rgba(219,67,52,.64); }
#atlas-root [data-external-labels] .finder-detail-hit:is(:hover,.is-preview) .finder-location-shape { fill: rgba(199,58,38,.78); stroke: #fff; }
#atlas-root [data-external-labels] .finder-detail-hit.is-active .finder-location-shape { fill: rgba(110,64,186,.70); stroke: #fff; }
#atlas-root .finder-detail-leader { pointer-events: none; }
#atlas-root .finder-detail-leader path { fill: none; stroke: #8e4d3f; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
#atlas-root .finder-detail-leader circle { fill: #8e4d3f; stroke: #fff; stroke-width: 1; }
#atlas-root .finder-detail-leader:is(.is-active,.is-preview) path { stroke: #6535a7; stroke-width: 2; }
#atlas-root .finder-detail-callout { cursor: pointer; }
#atlas-root .finder-detail-callout>rect { fill: #fff6f1; stroke: #e8aa97; stroke-width: 1; vector-effect: non-scaling-stroke; }
#atlas-root .finder-detail-callout circle { fill: #fff; stroke: #b65740; stroke-width: 1; }
#atlas-root .finder-detail-callout .finder-callout-number { fill: #753729; font-size: 19px; font-weight: 700; }
#atlas-root .finder-detail-callout .finder-callout-name { fill: #442e29; font-size: 20px; font-weight: 650; }
#atlas-root .finder-detail-callout:is(:hover,.is-preview)>rect { fill: #ffe2d5; stroke: #b65740; stroke-width: 2; }
#atlas-root .finder-detail-callout:is(:hover,.is-preview) circle { fill: #fff0e8; stroke: #b65740; }
#atlas-root .finder-detail-callout.is-active>rect { fill: #eee3fc; stroke: #6535a7; stroke-width: 2; }
#atlas-root .finder-detail-callout.is-active circle { fill: #6535a7; stroke: #fff; }
#atlas-root .finder-detail-callout.is-active .finder-callout-name { fill: #4c287f; }
#atlas-root .finder-detail-callout.is-active .finder-callout-number { fill: #fff; }
@media (max-width: 900px) {
 #atlas-root .finder-detail-selection { bottom: calc(84px + env(safe-area-inset-bottom,0px)); }
}
@media (max-width: 620px) {
 #atlas-root .finder-view-detail:has(.finder-instruction) .finder-detail-modern { grid-template-columns: minmax(0,1fr); }
 #atlas-root .finder-detail-thumbnails { grid-template-columns: 1fr; gap: 12px; }
 #atlas-root .finder-detail-thumbnail-art>svg { height: 260px; }
 #atlas-root .finder-detail-thumbnail-art { padding: 12px 6px 8px; }
 #atlas-root .finder-detail-thumbnail-label { font-size: 14px; padding: 10px; }
 #atlas-root .finder-detail-thumbnail-label small { font-size: 11px; }
 #atlas-root .finder-detail-thumbnail-label>svg { width: 18px; height: 18px; }
 #atlas-root .finder-detail-viewer { padding: 14px 12px 0; }
 #atlas-root .finder-detail-modern .finder-detail-svg { max-height: 520px; }
 #atlas-root .finder-detail-selection { flex-direction: column; align-items: stretch; gap: 8px; margin: 0 12px 12px; padding: 10px 12px; }
 #atlas-root .finder-view-detail:has(.finder-instruction) .finder-detail-modern .finder-location-list { grid-template-columns: 1fr; padding: 12px; }
}
@media (max-width: 380px) {
 #atlas-root .finder-detail-thumbnails { grid-template-columns: 1fr; }
 #atlas-root .finder-detail-thumbnail-art>svg { height: 240px; }
}
@media (prefers-reduced-motion: reduce) { #atlas-root .finder-detail-hit .finder-location-shape, #atlas-root .finder-detail-thumbnail { transition: none; } }

#atlas-root .finder-detail-modern[data-detail-mode="expanded"] .finder-location-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
#atlas-root .finder-location-list-title { grid-column: 1/-1; }
@media (max-width: 620px) {
 #atlas-root .finder-detail-viewer { padding-inline: 6px; }
 #atlas-root .finder-detail-figure { padding-inline: 4px; }
 #atlas-root .finder-detail-modern .finder-detail-labeled { max-height: none; }
 #atlas-root .finder-detail-modern[data-detail-mode="expanded"] .finder-location-list { grid-template-columns: 1fr; }
}
#atlas-root .finder-detail-figure:not(.is-art-enlarged) .finder-detail-anatomy,
#atlas-root .finder-detail-figure.is-art-enlarged .finder-detail-labeled { display: none; }
#atlas-root .finder-detail-modern .finder-detail-anatomy { max-height: 650px; }
#atlas-root .finder-detail-enlarge { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0 auto 12px; padding: 8px 14px; border: 1px solid #bbd4db; border-radius: 9px; background: #edf7f8; color: #164b60; font: inherit; font-size: 13px; cursor: pointer; }
#atlas-root .finder-detail-enlarge svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
#atlas-root .finder-detail-enlarge:focus-visible { outline-color: #087d94; }
