/* Shared family-study presentation. Research detail remains available on demand. */
:root { --coordinated-map-height: clamp(26rem, 64vh, 37rem); }
body { background: #f5f3ec; }
[hidden] { display: none !important; }
.site-header { border-bottom-width: 2px; background: linear-gradient(115deg, #163d50, #23596a); }
.site-header__inner { padding: 1.15rem 0 .8rem; text-align: center; }
.site-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -.025em; margin: .1rem 0 .2rem; }
.site-header .eyebrow { font-size: .7rem; letter-spacing: .13em; }
.hero-rotator { max-width: 52rem; margin: auto; }
.hero-messages { position: relative; display: grid; align-items: center; padding: .55rem .25rem; }
.hero-message { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; font-size: clamp(.85rem, 1.5vw, 1.05rem); line-height: 1.4; transition: opacity .45s ease; }
.hero-message.is-active { opacity: 1; visibility: visible; }
.hero-message cite { display: block; margin-top: .4rem; font-size: .72rem; font-style: normal; color: #e7d49c; white-space: nowrap; }
.hero-controls { display: flex; justify-content: center; gap: .3rem; min-height: 2rem; }
.hero-controls button { background: transparent; border: 0; color: #e3e9e8; min-height: 2rem; min-width: 2rem; padding: .15rem .5rem; font-size: .7rem; }
.hero-controls button:hover { background: #ffffff14; }
.hero-state { align-self: center; min-width: 7rem; text-align: left; color: #d6e4e7; font: .7rem system-ui, sans-serif; }
.hero-controls button { border: 1px solid #ffffff35; border-radius: 1rem; min-width: 2.75rem; }
.hero-controls button:nth-child(2) { min-width: 4.5rem; }
.site-nav { background: #fffdf8; border-bottom: 1px solid #dce0d8; padding: .45rem .5rem; }
.site-nav ul { gap: .3rem; justify-content: center; flex-wrap: wrap; }
.site-nav a { border-radius: 2rem; padding: .55rem .8rem; border: 1px solid transparent; font-size: .81rem; line-height: 1.2; }
.site-nav a[aria-current="page"] { background: #1d5363; color: white; border-color: #1d5363; }
.site-nav a:hover { background: #e8efea; color: #123a48; }
:focus-visible { outline: 3px solid #ae6924; outline-offset: 3px; }
main { width: min(94rem, calc(100% - 2rem)); }
.study-layout > *, .timeline-records, .evidence-gallery { min-width: 0; max-width: 100%; }
.study-note { text-align: center; background: none; box-shadow: none; border: 0; padding: 1.1rem .5rem .4rem; }
.study-note p { max-width: 60rem; margin-inline: auto; }
.study-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.study-card { border: 1px solid #d6dfd9; border-top: 3px solid #a7bfae; box-shadow: 0 4px 16px #1b384a06; padding: 1.35rem; transition: transform .18s ease, box-shadow .18s ease; }
.study-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px #1b384a10; }
.study-card h2 { font-size: 1.25rem; }
.study-card p { font-size: .9rem; }
.study-card__status { color: #506559; font-size: .74rem !important; }
.home-studies { margin: 1.25rem auto 2rem; max-width: 78rem; padding: clamp(1rem, 3vw, 2rem); border: 1px solid #d1ddd5; border-radius: 1rem; background: radial-gradient(ellipse at top, #e6eee6, transparent 65%), linear-gradient(135deg, #eef2e9, #e5edef); }
.home-studies .study-note { padding-top: 0; }
.home-studies .study-card { display: flex; flex-direction: column; align-items: center; text-align: center; border-radius: .75rem; background: #fffefa; }
.home-studies .study-card h2 { margin-block: .4rem; }
.home-studies .study-card__status { min-height: 2.5em; margin-top: 0; }
.home-studies .primary-link { align-self: center; margin-top: auto; border-radius: 2rem; padding: .7rem 1rem; min-height: 2.75rem; background: #215364; color: #fff; font-size: .83rem; }
.home-studies .primary-link:hover { background: #123d4c; }
.home-studies .study-card:focus-within { border-color: #9b672c; box-shadow: 0 0 0 2px #9b672c22; }
.study-tools { padding: .8rem 1rem; margin-bottom: .75rem; box-shadow: none; }
.study-tools fieldset { margin-block: .6rem; padding: .4rem .6rem; }
.tools-heading h2 { font-size: 1.12rem; }
.filter-choice { padding: .25rem .5rem; min-height: 2rem; font-size: .78rem; }
.timeline-explorer { padding: .75rem 1rem; }
.timeline-explorer__heading h2 { font-size: 1.2rem; }
.timeline-usage-hint, .zoom-status { font-size: .74rem; margin: .3rem 0; }
.timeline-scrubber { display: flex; align-items: center; gap: .8rem; margin: .45rem 0 .1rem; color: #48616a; }
.timeline-scrubber__label { font-size: .7rem; white-space: nowrap; }
.timeline-scrubber__input { width: 100%; padding: 0; min-height: 1.6rem; accent-color: #2a6777; cursor: ew-resize; }
.timeline-scrubber__input:disabled { opacity: .5; cursor: default; }
.timeline-viewport { min-height: 0; }
.timeline-viewport.is-unfolded { overflow-x: auto; overflow-y: hidden; scrollbar-color: #64848a #edf0e8; }
.timeline-viewport.is-unfolded .timeline-stage-host { width: max-content; min-width: 100%; }
.timeline-stage-host, .timeline-stage { min-height: 0; }
.timeline-event, .timeline-cluster { width: 200px; height: 46px; min-height: 46px; padding: .3rem .55rem; border-width: 1px; border-radius: .4rem; line-height: 1.2; }
.timeline-event__date, .timeline-cluster__range { display: block; font-size: .64rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline-event__title, .timeline-cluster__count { display: block; -webkit-line-clamp: unset; margin: .16rem 0 0; font-size: .77rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline-cluster__titles { display: none; }
.timeline-event.precision--disputed { border-style: solid; border-width: 1px; }
.timeline-event.precision--sequence-only { border-left: 3px solid var(--gold); }
.timeline-event.is-selected { background: #fff5d6; }
.timeline-event:hover, .timeline-event.is-previewed { color: #143e52; background: #e7f0f0; border-color: #59828b; }
.timeline-event.is-selected:hover { background: #fff5d6; }
.prophecy-timeline-pair { gap: .6rem; }
.prophecy-timeline-lane { min-height: 0; }
.prophecy-timeline-lane__heading h3 { font-size: .88rem; }
.map-detail-layout { grid-template-columns: minmax(0, 1.93fr) minmax(20rem, 1fr); gap: .8rem; }
.selected-event-panel { overflow-y: scroll; scrollbar-gutter: stable; scrollbar-color: #64848a #edf0e8; }
.selected-event-panel::-webkit-scrollbar { width: 14px; }
.selected-event-panel::-webkit-scrollbar-thumb { background: #64848a; border: 3px solid #edf0e8; border-radius: 8px; }
.selected-event-panel::-webkit-scrollbar-track { background: #edf0e8; }
.selected-event-panel .event-popover { overflow: visible; overscroll-behavior: auto; }
.event-popover-host .event-hover-card { pointer-events: none; }
.event-detail__top { display: block; position: relative; padding-right: 3.8rem; }
.event-detail__actions { position: absolute; right: 0; top: 0; }
.event-detail__close { font-size: .72rem; padding: .35rem .5rem; }
.event-detail__title { margin: .1rem 0 .3rem; line-height: 1.2; }
.selected-event-panel .event-detail__title { font-size: clamp(1.18rem, 1.7vw, 1.5rem); }
.event-detail__date { font-size: .82rem; margin: .3rem 0; }
.event-detail__summary { margin: .4rem 0 .7rem; line-height: 1.5; }
.selected-event-panel .detail-list { display: grid; grid-template-columns: minmax(7rem, .38fr) minmax(0, 1fr); gap: .2rem .6rem; font-size: .8rem; }
.selected-event-panel .detail-list__term, .selected-event-panel .detail-list__value { margin: 0; padding: .15rem 0; }
.detail-section { margin-top: .75rem; padding-top: .65rem; }
.detail-section__title { font-size: .86rem; margin-bottom: .35rem; }
.scripture-reference-list, .location-detail, .route-note { font-size: .81rem; line-height: 1.45; }
.scripture-quotation { margin: .45rem 0; }
.scripture-passages > summary { cursor: pointer; font-size: .8rem; padding: .4rem 0; color: #214f50; }
.timeline-lane-controls { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; padding: .35rem 0; margin: .3rem 0; }
.scripture-quotation blockquote { font-size: .91rem; }
.event-tags { display: flex; gap: .3rem; flex-wrap: wrap; }
.event-tag { border: 1px solid #c8d8cf; border-radius: 1rem; color: #214f50; background: #f0f5f0; padding: .35rem .6rem; font-size: .76rem; min-height: 2rem; }
.event-tag:hover { background: #dfece4; }
.chronology-note { font-size: .77rem; color: #5a6267; border-top: 1px solid #e0e5de; padding-top: .7rem; margin-top: .8rem; }
.methodology-details { font-size: .79rem; margin: .6rem 0; }
.methodology-details > summary { cursor: pointer; padding: .45rem 0; color: #49616a; }
.event-detail__suggest { margin: .5rem 0 0; font-size: .74rem; }
.source-card { overflow: hidden; border-radius: .5rem; background: #f8f8f1; }
.source-card__title { font-size: .95rem; }
.evidence-gallery { margin: 1rem 0 .2rem; padding: .75rem; border: 1px solid #d3dcd1; border-radius: .65rem; background: #f1f3eb; }
.evidence-gallery h2 { font-size: 1.15rem; margin: .5rem 0; }
.evidence-gallery__rail { display: flex; gap: .8rem; overflow-x: scroll; padding: .2rem 0 .7rem; scroll-snap-type: x proximity; scrollbar-color: #64848a #e0e7df; scrollbar-width: auto; }
.evidence-gallery__rail::-webkit-scrollbar { height: 12px; }
.evidence-gallery__rail::-webkit-scrollbar-thumb { background: #64848a; border-radius: 8px; border: 2px solid #e0e7df; }
.evidence-gallery__rail::-webkit-scrollbar-track { background: #e0e7df; border-radius: 8px; }
.evidence-gallery__scroller { display: flex; gap: .75rem; align-items: center; font: .72rem system-ui, sans-serif; color: #45606b; margin-bottom: .5rem; }
.evidence-gallery__scroller input { flex: 1; width: 100%; min-width: 0; padding: 0; min-height: 2rem; accent-color: #356575; cursor: ew-resize; }
.evidence-gallery__card { flex: 0 0 240px; scroll-snap-align: start; border: 1px solid #d2d9ce; border-radius: .6rem; background: #fffdf8; padding: .6rem; font-size: .75rem; }
.evidence-gallery__card p { margin: .3rem 0; }
.evidence-gallery__select { padding: 0; background: transparent; color: #214c5d; border: 0; text-align: left; width: 100%; }
.evidence-gallery__select:hover { color: #173c50; background: #e7f0e9; }
.evidence-gallery__select img { width: 100%; height: 110px; object-fit: contain; border-radius: .3rem; background: #ece8de; }
.evidence-gallery__period { font-weight: 700; color: #6b4839; }
.location-alternative > summary { cursor: pointer; padding: .65rem 0; font-size: .85rem; }
.evidence-gallery__title { display: block; line-height: 1.35; margin-top: .5rem; font-size: .85rem; }
.evidence-gallery__credit { display: block; font-size: .65rem; line-height: 1.4; margin-top: .35rem; color: #5c6e70; }
.artifact-figure__image { width: 100%; max-height: 18rem; object-fit: contain; background: #ece8df; border-radius: .35rem; }
.feedback-area { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin: 1.5rem auto .5rem; }
.feedback-area .site-feedback-button { color: #285163; background: white; border: 1px solid #bdcec8; margin: 0; font-size: .8rem; }
[data-home-page] .feedback-purpose { flex-basis: 100%; margin: .15rem 1rem 0; color: #626d6b; text-align: center; font: .75rem/1.5 system-ui, sans-serif; }
[data-home-page] .hero-controls button:nth-child(2) { min-width: 2.75rem; }
[data-home-page] .hero-rotator:focus-visible { outline: 2px solid #e7d49c; outline-offset: .3rem; border-radius: .3rem; }
.research-notice { max-width: 54rem; margin: .75rem auto; text-align: center; color: #5d6c70; font-size: .76rem; }
.research-notice summary { cursor: pointer; padding: .3rem; }
.research-notice p { margin: .35rem; }
.site-footer { padding: .9rem 1rem; text-align: center; font-size: .75rem; }
.site-footer p { margin-inline: auto; }
@media (min-width: 700px) {
  .study-tools .book-filter { grid-column: 1; margin: 0; padding: 0; border: 0; }
  .study-tools .advanced-filters { grid-column: 2; align-self: end; margin: 0; }
  .study-tools .advanced-filters[open] { grid-column: 1 / -1; }
  .study-tools .book-filter select { min-height: 2.25rem; padding: .3rem .5rem; }
  .study-tools .book-filter legend { font-size: .72rem; }
}
@media (max-width: 950px) {
  .map-detail-layout { grid-template-columns: 1fr; }
  .selected-event-panel { position: static; height: auto; max-height: 34rem; }
  .study-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  main { width: calc(100% - 1rem); }
  .site-header__inner { width: calc(100% - 1.5rem); }
  .hero-message { font-size: .85rem; }
  .hero-controls button { min-height: 2.25rem; min-width: 2.25rem; }
  .site-nav a { padding: .65rem .6rem; font-size: .74rem; }
  .study-grid { grid-template-columns: 1fr; }
  .timeline-explorer { padding: .5rem; }
  .timeline-usage-hint { font-size: .68rem; }
  .selected-event-panel .detail-list { grid-template-columns: 1fr; }
  .selected-event-panel .detail-list__term { font-weight: 700; }
  .event-tag { min-height: 2.5rem; }
  .event-detail__top { padding-right: 0; padding-top: 2rem; }
  .event-detail__title { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
.event-detail__account { margin: -.15rem 0 .8rem; font-size: .9rem; line-height: 1.6; }
.event-detail__account summary { cursor: pointer; color: var(--accent, #526749); font-weight: 600; padding-block: .3rem; }
.event-detail__account p { margin: .5rem 0; }
