/* Shared HS123 instrument vocabulary, extended only for three-stop navigation. */
.outcrop-tour.site-atlas-model-frame { display: block; width: 100%; aspect-ratio: 16 / 9; background: #46525b; color: #edf2f5; transition: background-color 260ms cubic-bezier(.22, 1, .36, 1); }
.outcrop-tour__stage { position: absolute; inset: 0; overflow: hidden; }
.outcrop-tour__stage video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.outcrop-tour__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 2; pointer-events: none; }
.outcrop-tour__stage video[hidden], .outcrop-tour [hidden] { display: none; }
.outcrop-tour .site-atlas-model-instrument { opacity: 1; }
.outcrop-tour__overlay { position: absolute; z-index: 5; inset: 0; padding: 4.8% 5.2%; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; background: linear-gradient(180deg, #142332b8, transparent 28%, transparent 60%, #142332e8); }
.outcrop-tour__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.outcrop-tour__caption { max-width: 62ch; text-shadow: 0 2px 10px #142332; }
.outcrop-tour__caption h2 { margin: 0 0 .45rem; color: #edf2f5; font-size: clamp(1.3rem, 2.5vw, 1.85rem); font-weight: 300; }
.outcrop-tour__caption p { margin: 0; max-width: 55ch; font-size: .88rem; line-height: 1.45; }
.outcrop-tour__notes { position: relative; flex: 0 0 auto; pointer-events: auto; font-size: .8rem; }
.outcrop-tour__notes summary { min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid #a8bfcb; cursor: pointer; }
.outcrop-tour__notes > div { position: absolute; top: 100%; right: 0; width: min(23rem, 72vw); padding: 1rem; background: #142332; border: 1px solid #a8bfcb66; box-shadow: 0 12px 30px #10192855; }
/* Keep all HS107 scientific limits and original-photo links reachable on phones. */
.site-atlas-shell[data-site-code="HS107"] .outcrop-tour__notes > div { max-height: min(19rem, calc(100svh - 20rem)); overflow-y: auto; overscroll-behavior: contain; }
.outcrop-tour__notes p { margin: 0 0 .75rem; line-height: 1.5; }
.outcrop-tour__field-photo-link { display: flex; align-items: center; min-height: 44px; color: #edf2f5; line-height: 1.5; text-decoration: underline; text-underline-offset: .2em; }
.outcrop-tour__field-photo-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.outcrop-tour__bottom { position: relative; align-self: flex-end; max-width: 100%; }
.outcrop-tour__controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem; align-items: center; pointer-events: auto; }
.outcrop-tour__controls > .site-atlas-model-hero-control--icon { width: 44px; padding: 0; flex: 0 0 44px; }
.outcrop-tour__controls [data-tour-play] { min-width: 64px; padding-inline: .65rem; }
.outcrop-tour__navigation { pointer-events: auto; }
.outcrop-tour__navigation summary { list-style: none; cursor: pointer; padding-inline: .65rem; }
.outcrop-tour__navigation summary::-webkit-details-marker { display: none; }
.outcrop-tour__navigation-panel { position: absolute; z-index: 2; right: 0; bottom: calc(100% + .6rem); width: min(21rem, 100%); padding: .75rem; background: #142332; border: 1px solid #a8bfcb66; }
.outcrop-tour__chapters { display: grid; gap: .2rem; margin-bottom: .75rem; }
.outcrop-tour__chapters .site-atlas-model-hero-control { justify-content: flex-start; white-space: normal; text-align: left; }
.outcrop-tour__status:not(.sr-only) { position: absolute; right: 0; bottom: calc(100% + .5rem); margin: 0; width: max-content; max-width: min(24rem, calc(100vw - 6rem)); padding: .4rem .6rem; background: #142332; font-size: .72rem; line-height: 1.4; }
.outcrop-tour__retry { position: absolute; right: 0; bottom: calc(100% + 4rem); pointer-events: auto; }
.outcrop-tour .site-atlas-model-hero-control { min-height: 44px; color: #edf2f5; background: #142332dc; font-size: .68rem; box-shadow: none; }
.outcrop-tour button:hover, .outcrop-tour button[aria-pressed="true"] { background: #345368; border-color: #c1d4de; color: #fff; }
.outcrop-tour .site-atlas-model-overlay { z-index: 6; }
.site-atlas-shell[data-site-code="HS103"] .outcrop-tour .site-atlas-model-explore { min-height: 44px; }
.site-atlas-shell[data-site-code="HS107"] .outcrop-tour .site-atlas-model-explore { min-height: 44px; }
.outcrop-tour[data-tour-state="overview"] .outcrop-tour__caption { visibility: hidden; }
.outcrop-tour[data-tour-state="overview"] .outcrop-tour__navigation { display: none; }
.outcrop-tour:not([data-tour-state="overview"]) .site-atlas-model-overlay { display: none; }
.outcrop-tour .outcrop-tour__sample-annotation { margin-top: .65rem; color: #fff; font-weight: 600; }
.outcrop-tour button:focus-visible, .outcrop-tour summary:focus-visible, .outcrop-tour__seek:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.outcrop-tour button:disabled { opacity: .5; }
.outcrop-tour[data-tour-state="overview"] [data-tour-prev], .outcrop-tour[data-tour-state="overview"] [data-tour-next], .outcrop-tour[data-tour-state="overview"] [data-tour-overview] { display: none; }
.outcrop-tour:not([data-tour-state="overview"]) [data-tour-start] { display: none; }
.outcrop-tour__transport { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .72rem; line-height: 1.35; text-shadow: 0 1px 6px #142332; }
.outcrop-tour__transport output { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.outcrop-tour__seek { width: 100%; height: 24px; margin: 0; accent-color: #c3d7df; pointer-events: auto; cursor: pointer; }
.outcrop-tour noscript { position: absolute; inset: 40% 5% auto; z-index: 6; background: #142332; padding: 1rem; }
.outcrop-tour noscript a { color: #fff; }
@media (min-width: 701px) {
  /* Keep HS110's web copy clear of the baked upper labels and above the 44px controls.
     Percentage margin matches the overlay's width-based bottom padding. */
  .site-atlas-shell[data-site-code="HS110"] .outcrop-tour__caption { position: absolute; left: 5.2%; right: 5.2%; bottom: 0; margin-bottom: calc(4.8% + 44px + .75rem); max-width: 55ch; }
  .site-atlas-shell[data-site-code="HS110"] .outcrop-tour__notes { margin-left: auto; }
  .site-atlas-shell[data-site-code="HS110"] .outcrop-tour__notes[open] { z-index: 3; }
}
@media (max-width: 700px) {
  .site-atlas-model-takeover:has([data-outcrop-tour]) { margin-inline: 0; }
  .site-atlas-model-takeover .outcrop-tour.site-atlas-model-frame, .outcrop-tour.site-atlas-model-frame { width: 100%; max-height: none; aspect-ratio: auto; height: min(35rem, calc(100svh - 9.5rem)); min-height: 30rem; }
  .outcrop-tour__overlay { padding: 1.4rem; background: linear-gradient(180deg, #142332e8, transparent 33%, transparent 52%, #142332f2); }
  .outcrop-tour__caption p { font-size: .8rem; }
  .outcrop-tour__notes { font-size: .72rem; }
  .outcrop-tour[data-tour-state="overview"] .outcrop-tour__notes { margin-top: 4.7rem; }
  .outcrop-tour .site-atlas-model-hero-control { padding: .5rem .5rem; font-size: .68rem; letter-spacing: .02em; }
  .outcrop-tour__controls { gap: .2rem; }
  .outcrop-tour__stage { inset: 0; }
  .outcrop-tour__transport { font-size: .65rem; }
}
@media (max-height: 560px) and (min-width: 701px) {
  .outcrop-tour__caption p { display: none; }
  .outcrop-tour .site-atlas-model-hero-control { padding: .3rem .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .outcrop-tour.site-atlas-model-frame { transition: none; }
  /* Override the shared CTA's more-specific perpetual nudge selector. */
  .outcrop-tour .site-atlas-model-explore { animation: none !important; transform: none; }
}

/* HS109 opening target and long source-quality notes. */
.site-atlas-shell[data-site-code="HS109"] .outcrop-tour .site-atlas-model-explore { min-height: 44px; }
.site-atlas-shell[data-site-code="HS109"] .outcrop-tour__notes > div { max-height: min(19rem, calc(100svh - 20rem)); overflow-y: auto; overscroll-behavior: contain; }

/* HS101 opening target and long source-quality notes. */
.site-atlas-shell[data-site-code="HS101"] .outcrop-tour .site-atlas-model-explore { min-height: 44px; }
.site-atlas-shell[data-site-code="HS101"] .outcrop-tour__notes > div { max-height: min(19rem, calc(100svh - 20rem)); overflow-y: auto; overscroll-behavior: contain; }

/* HS104 opening target and source notes on phones. */
.site-atlas-shell[data-site-code="HS104"] .outcrop-tour .site-atlas-model-explore { min-height: 44px; }
.site-atlas-shell[data-site-code="HS104"] .outcrop-tour__notes > div { max-height: min(19rem, calc(100svh - 20rem)); overflow-y: auto; overscroll-behavior: contain; }

/* HS112 C: source-photo clearance, accessible notes and phone relief caption. */
.site-atlas-shell[data-site-code="HS112"] .outcrop-tour .site-atlas-model-explore{min-height:44px}.site-atlas-shell[data-site-code="HS112"] .outcrop-tour__notes>div{max-height:min(19rem,calc(100svh - 20rem));overflow-y:auto;overscroll-behavior:contain}@media(min-width:701px){.site-atlas-shell[data-site-code="HS112"] .outcrop-tour__bottom{align-self:flex-start}.site-atlas-shell[data-site-code="HS112"] .outcrop-tour__navigation-panel,.site-atlas-shell[data-site-code="HS112"] .outcrop-tour__status:not(.sr-only),.site-atlas-shell[data-site-code="HS112"] .outcrop-tour__retry{left:0;right:auto}}@media(max-width:700px){.site-atlas-shell[data-site-code="HS112"] .outcrop-tour__sample-annotation{position:absolute;left:1.4rem;right:1.4rem;bottom:5.6rem;margin-top:0}}
