/* Public history preview: paper continuity after the era demonstration. */
.history-discovery { padding: 3rem 0 3.5rem; background: var(--parallel-paper, #f6efe3); color: #09283c; font-family: Mulish, Arial, sans-serif; border-top: 1px solid #c8bba6; }
.history-discovery [hidden] { display: none !important; }
.history-discovery :is(a, button, input):focus-visible { outline: 3px solid #9a5a2e; outline-offset: 4px; }
.history-discovery-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.history-discovery-eyebrow { color: #87552f; font-size: .8rem; font-weight: 800; margin: 0 0 .6rem; }
.history-discovery h2 { font: 500 clamp(2rem, 2.8vw, 2.8rem)/1.06 "Cormorant Garamond", Georgia, serif; max-width: 22ch; margin: 0; text-wrap: balance; }
.history-discovery-explanation p { margin: 0 0 .65rem; line-height: 1.6; font-size: .9rem; max-width: 60ch; }
.history-discovery-explanation strong { color: #87552f; }
.history-discovery-catalogue { margin: 1.5rem 0 2rem; padding: .9rem 0 1rem; border-block: 1px solid #cfc4b3; }
.history-discovery-caption { color: #53616a; font-size: .78rem; line-height: 1.5; margin: 0 0 .6rem; }
.history-discovery-caption span { font-weight: 400; }
.history-discovery-catalogue dl { display: flex; flex-wrap: wrap; gap: .8rem 1.65rem; margin: 0; }
.history-discovery-catalogue dl > div { display: flex; align-items: baseline; gap: .4rem; }
.history-discovery-catalogue dt { font-size: .75rem; order: 2; }
.history-discovery-catalogue dd { margin: 0; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.history-discovery-explorer { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3rem; }
.history-discovery h3 { font: 600 1.6rem/1.15 "Cormorant Garamond", Georgia, serif; margin: 0 0 .7rem; }
.history-discovery-search > p { font-size: .88rem; line-height: 1.6; margin: .5rem 0 1rem; }
.history-discovery-search label { display: block; font-size: .8rem; font-weight: 800; margin: 1.25rem 0 .5rem; }
.history-discovery-form-row { display: flex; gap: .5rem; }
.history-discovery input { min-width: 0; width: 100%; min-height: 48px; border: 1px solid #8e9a9e; border-radius: 6px; padding: .7rem .8rem; color: #09283c; background: #fffcf6; font: inherit; }
.history-discovery button { min-height: 44px; border: 1px solid #315f7d; border-radius: 6px; padding: .6rem .8rem; background: #315f7d; color: #fff; font: 700 .85rem/1.4 Mulish, Arial, sans-serif; cursor: pointer; }
.history-discovery button:hover { background: #23475e; }
.history-discovery-more { margin: .5rem 0 0; color: #09283c; font-size: .85rem; line-height: 1.5; font-weight: 700; }
.history-discovery-choices { list-style: none; padding: 0; margin: .5rem 0; border: 1px solid #b6bbb6; border-radius: 6px; overflow: hidden; }
.history-discovery-choices button { width: 100%; border: 0; border-radius: 0; background: #fffcf6; color: #09283c; text-align: left; }
.history-discovery-choices button:hover { background: #e1e9e7; }
.history-discovery-results-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.history-discovery-results-heading > span { font-size: .75rem; color: #53616a; }
.history-discovery-results ol { list-style: none; padding: 0; margin: 0; }
.history-discovery-results { min-width: 0; padding-left: clamp(1.5rem, 3vw, 3rem); border-left: 1px solid #547084; }
.history-discovery-event { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; align-items: center; border-top: 1px solid #cfc4b3; padding: .9rem 0; }
.history-discovery-event h4 { margin: .3rem 0; font: 500 1.45rem/1.1 "Cormorant Garamond", Georgia, serif; }
.history-episode-visual { position: relative; min-height: 5.6rem; background: #e5e7df; border-radius: 6px; overflow: hidden; }
.history-episode-visual img { display: block; width: 100%; height: 5.6rem; object-fit: cover; }
.history-episode-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: .7rem; color: #435563; text-align: center; padding: .4rem; }
.history-discovery-event .history-episode-credit { font: 400 .65rem/1.3 Mulish, sans-serif; color: #52626b; text-decoration: none; margin-top: .4rem; }
.history-discovery-event .history-episode-credit:hover { text-decoration: underline; }
.history-discovery-search .journey-cta { font-size: .85rem; margin-top: 1rem; }
.history-discovery-year { color: #87552f; font-weight: 800; font-size: .9rem; }
.history-discovery-event a { display: inline-block; padding: .1rem 0; color: #09283c; font-weight: 800; font-size: .95rem; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.history-discovery-event a:hover { color: #87552f; }
.history-discovery-event p { margin: .3rem 0 0; color: #53616a; font-size: .75rem; line-height: 1.5; overflow-wrap: anywhere; }
.history-discovery-distance { color: #315f7d; font-size: .8rem; white-space: nowrap; padding-top: .15rem; }
.history-discovery-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-top: 1px solid #cfc4b3; padding-top: 1.25rem; margin-top: 1.5rem; }
.history-discovery-footer p { margin: 0; font-size: .9rem; line-height: 1.6; }
.history-discovery-footer .journey-cta { margin: 0; }
.history-discovery .history-discovery-retry { background: transparent; color: #09283c; }
.history-discovery .history-discovery-retry:hover { background: #e1e9e7; }
@media (max-width: 900px) {
  .history-discovery-intro, .history-discovery-explorer { gap: 1.5rem; }
  .history-discovery-event { grid-template-columns: 6rem minmax(0, 1fr); }
  .history-discovery-distance { grid-column: 2; }
}
@media (max-width: 640px) {
  .history-discovery-results { padding: 1.5rem 0 0; border-left: 0; border-top: 1px solid #547084; }
  .history-discovery { padding-block: 2.5rem; }
  .history-discovery-intro, .history-discovery-explorer { grid-template-columns: minmax(0, 1fr); }
  .history-discovery-results-heading, .history-discovery-footer { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .history-discovery-form-row { flex-direction: column; }
  .history-discovery input { box-sizing: border-box; }
  .history-discovery-catalogue dl { gap: .65rem 1rem; }
  .history-discovery-footer .journey-cta { width: 100%; box-sizing: border-box; text-align: center; }
}
