/* Public migration/history examples; scoped independently of the working map. */
.research-story-slide--history { grid-template-rows: minmax(0, 1fr) auto; }
.research-story-migrations { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .5rem; padding: 1rem 1.25rem .85rem; }
.research-story-migrations .research-story-map-label { position: static; }
.research-story-migrations svg { min-height: 0; overflow: hidden; }
.research-story-migrations text { font-size: 20px; font-weight: 600; paint-order: stroke; stroke: #e4eeef; stroke-width: 3px; stroke-linejoin: round; }
.research-migration-paternal { color: #315b72; }
.research-migration-maternal { color: #99552f; }
.research-story-migrations .research-story-route,
.research-migration-arrow { stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.research-story-migrations .research-story-route { stroke-dasharray: 1; }
.research-migration-label-leader { fill: none; stroke: #637e86; stroke-width: 1; }
.research-migration-key { display: flex; justify-content: center; gap: .4rem 1.25rem; flex-wrap: wrap; color: var(--research-navy); font-size: .8rem; text-align: center; }
.research-migration-key > span::before { content: '― '; font-weight: 700; }
.research-migration-key small { flex-basis: 100%; font-weight: 400; }
.research-migration-key small { font-size: .75rem; }
.research-story-history--examples { grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); gap: 1.1rem; padding: 1.25rem; }
.research-history-examples { align-self: center; min-width: 0; }
.research-history-fiction { font-size: .8rem; color: #72523d; }
.research-history-example .research-history-place { margin: .4rem 0; font-size: 1.5rem; font-weight: 700; color: #8a4b2b; }
.research-history-place span { white-space: nowrap; }
.research-history-example h3 { margin: .6rem 0; font-size: clamp(1.15rem, 1.45vw, 1.4rem); line-height: 1.25; text-wrap: pretty; }
.research-history-example p { margin: .6rem 0; font-size: .875rem; line-height: 1.4; }
.research-history-example a { display: inline-flex; align-items: center; min-height: 44px; color: #72523d; font-size: .8rem; text-underline-offset: .2em; }
.research-history-choices { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.research-history-choices button { min-height: 44px; padding: .4rem .7rem; border: 1px solid #ae8b71; border-radius: .4rem; color: #703c24; background: transparent; font: inherit; font-size: .8rem; cursor: pointer; }
.research-history-choices [aria-pressed="true"] { background: #875034; color: #fffaf1; border-color: #875034; font-weight: 700; }
.research-history-choices button:hover { background: #ede1d4; color: #703c24; }
.research-history-choices button:focus-visible, .research-history-example a:focus-visible { outline: 3px solid var(--research-gold); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .research-story[data-scene-playing="true"] .research-history-example:not([hidden]) { animation: research-history-reveal 300ms ease-out; }
  @keyframes research-history-reveal { from { opacity: .4; } to { opacity: 1; } }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .research-story-history--examples { grid-template-columns: 1fr; }
  .research-story-history--examples figure { display: none; }
}
@media (max-height: 760px) and (min-width: 769px) {
  .research-story-history--examples { padding: .75rem; gap: .75rem; grid-template-columns: .4fr 1fr; }
  .research-history-example .research-history-place { font-size: 1.25rem; margin: .2rem 0; }
  .research-history-example h3 { margin: .3rem 0; font-size: 1.1rem; }
  .research-history-example p { margin: .3rem 0; font-size: .8rem; }
  .research-history-choices { margin-top: .2rem; }
}
@media (max-width: 48rem) {
  .research-story-slide--migrations { grid-template-rows: 22rem auto; }
  .research-story-migrations { padding: .75rem; }
  .research-story-migrations text { font-size: 23px; }
  .research-story-slide--history { grid-template-rows: auto auto; }
  .research-story-history--examples { grid-template-columns: 1fr; padding: 1rem; }
  .research-story-history--examples figure { display: none; }
  .research-history-example h3 { font-size: 1.3rem; }
  .research-history-example p { font-size: .9rem; }
  .research-story-migrations .research-migration-key { font-size: .8rem; }
  .research-story-migrations .research-story-map-label { font-size: .8rem; }
}
