.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 26px; }
.hero-actions .primary-action { margin-top: 0; }
.journey-action {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #e6b6758a;
  border-radius: 6px;
  color: #fcf0da;
  font-weight: 600;
  background: #17212d80;
}
.journey-action:hover { background: #263441; }
.journey-action span { color: var(--gold); }
.journey-section { background: #edf2ed; border-bottom: 1px solid #d0dcd3; padding-block: 45px 52px; scroll-margin-top: 16px; }
.journey-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 20px; }
.journey-heading p:not(.eyebrow), .quiz-heading p { color: #475a51; }
.journey-heading .section-eyebrow { color: #2a6157; }
.journey-play, #quiz-continue {
  border: 1px solid #15493f;
  border-radius: 7px;
  padding: 8px 15px;
  min-height: 44px;
  background: #1b5549;
  color: #fff9ed;
  font-weight: 700;
}
.journey-play { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.journey-play:hover, #quiz-continue:hover { background: #123b33; }
.play-symbol {
  display: inline-block;
  width: 12px;
  height: 14px;
  background: #f7d290;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
[data-playing] .play-symbol { clip-path: polygon(0 0, 37% 0, 37% 100%, 0 100%, 0 0, 63% 0, 100% 0, 100% 100%, 63% 100%, 63% 0); }
.journey-board {
  padding: 13px;
  border-radius: 15px;
  background: #122b31;
  box-shadow: 0 9px 23px #142c3129;
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(248px, 1fr);
  gap: 12px;
}
.journey-figure {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 9px;
  align-self: start;
  background: #183940;
  display: flex;
  flex-direction: column;
}
.journey-map {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1206 / 648;
  background: #12333d;
}
.journey-map img { inline-size: 100%; block-size: auto; display: block; }
.journey-figure figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 8px;
  color: #f2ede0;
  background: #18373e;
  border-top: 1px solid #ffffff20;
  padding: 7px 10px;
  font-size: .84rem;
}
.journey-figure a { color: #f3d19a; text-decoration: underline; text-underline-offset: 3px; }
.map-decoration { position: absolute; bottom: 1.5%; left: 4%; color: #f3d19a; font-size: clamp(1.75rem, 3vw, 2.8rem); opacity: .8; pointer-events: none; }
.map-dot, .map-pin, .map-label { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.map-label { color: #3d5246; font-size: clamp(.75rem, 1.45vw, 1.05rem); font-weight: 600; white-space: nowrap; pointer-events: none; }
.map-label-water { color: #b7d0c8; }
.map-dot { width: 7px; height: 7px; border: 1px solid #fff7db; background: #18393e; border-radius: 50%; box-shadow: 0 0 0 1px #18393e69; }
.map-pin {
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff5dd;
  padding: 0;
  transition: left .6s cubic-bezier(.2,.8,.25,1), top .6s cubic-bezier(.2,.8,.25,1);
}
.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #f8de9d;
  background: #a54c26;
  box-shadow: 0 0 0 2px #16343c;
  position: relative;
}
.pin-dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid #ba7138;
  border-radius: 50%;
  animation: pin-pulse 1.5s ease-out 2;
}
#pin-label {
  position: absolute;
  bottom: 37px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 9px;
  border-radius: 5px;
  background: #122b31;
  border: 1px solid #f4d194a3;
  color: #fff2d7;
  font-size: .87rem;
  font-weight: 700;
  white-space: nowrap;
}
[data-edge="right"] #pin-label { left: 18px; transform: none; }
[data-edge="left"] #pin-label { left: 24px; transform: translateX(-100%); }
.map-pin:hover #pin-label, .map-pin:focus-visible #pin-label { color: #122b31; background: #f4d194; }
.journey-card {
  display: grid;
  grid-template-rows: minmax(112px, 1fr) auto;
  border-radius: 9px;
  overflow: hidden;
  background: #f8f3e8;
}
.journey-scene { position: relative; overflow: hidden; background: #3b5452; }
.journey-scene img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: 50% 48%;
  animation: scene-in .52s ease-out both;
}
.journey-story { padding: 14px 16px 16px; border-top: 3px solid #d5a96d; }
.journey-story h3 { margin-bottom: 4px; font-size: clamp(1.15rem, 2vw, 1.65rem); }
.journey-period { font-size: .88rem; font-weight: 700; color: #2a6157; }
#journey-fact { color: #394643; min-height: 5.05em; }
.journey-details { min-height: 39px; margin-top: 8px; padding: 0; border: 0; background: transparent; color: #1e5146; text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.journey-details:hover { color: #152d28; }
.journey-controller { grid-column: 1 / -1; padding: 3px 3px 4px; }
.journey-controls { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; margin-bottom: 10px; }
.journey-controls button, .journey-stops button {
  min-height: 41px;
  border: 1px solid #6d817b;
  background: #203c41;
  color: #fff2df;
  font-weight: 600;
  border-radius: 6px;
  padding: 5px 10px;
}
.journey-controls button { min-width: 65px; }
.journey-controls button:not([aria-disabled="true"]):hover, .journey-stops button:hover { background: #2e5358; }
.journey-controls [aria-disabled="true"] { color: #b5c2b9; cursor: default; }
#journey-range {
  appearance: none;
  display: block;
  width: 100%;
  height: 39px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
#journey-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 8px;
  background: linear-gradient(to left, #f0c479 var(--progress), #72877e var(--progress));
}
#journey-range::-moz-range-track {
  height: 6px;
  border-radius: 8px;
  background: linear-gradient(to left, #f0c479 var(--progress), #72877e var(--progress));
}
#journey-range::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 2px solid #fff0ce;
  border-radius: 50%;
  background: #d89548;
}
#journey-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #fff0ce;
  border-radius: 50%;
  background: #d89548;
}
.journey-stops { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 7px; }
.journey-stops button { font-size: .9rem; }
.journey-stops button[aria-current="step"] { background: #f4ce90; color: #263329; border-color: #f4ce90; }
.quiz {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
  gap: 24px;
  align-items: start;
  margin-top: 19px;
  padding: 21px;
  border: 1px solid #c8d9cb;
  border-radius: 11px;
  background: #f8fbf6;
}
.quiz-heading { display: flex; gap: 12px; align-items: start; }
.quiz-heading h3 { font-size: 1.15rem; }
.quiz-symbol { display: grid; place-items: center; flex: 0 0 39px; height: 39px; background: #dceadf; color: #205146; border-radius: 8px; font-size: 1.45rem; }
.quiz-top { display: flex; align-items: center; gap: 15px; }
.quiz-top p { font-size: .86rem; color: #37534a; font-weight: 700; white-space: nowrap; }
.quiz progress { flex: 1; max-width: 150px; height: 8px; border: 0; border-radius: 8px; accent-color: #337364; }
.quiz progress::-webkit-progress-bar { background: #dde9df; border-radius: 8px; }
.quiz progress::-webkit-progress-value { background: #337364; border-radius: 8px; transition: width .32s ease; }
.quiz progress::-moz-progress-bar { background: #337364; border-radius: 8px; }
#quiz-question { margin: 7px 0 9px; font-size: 1.15rem; }
.quiz-answers { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-answers button {
  min-height: 41px;
  border: 1px solid #b7ccbd;
  border-radius: 7px;
  color: #203b33;
  background: #fff;
  padding: 4px 12px;
  font-weight: 600;
}
.quiz-answers button:not([aria-disabled="true"]):hover { background: #e6f1e8; }
.quiz-answers button[aria-disabled="true"] { cursor: default; }
.quiz-answers button[data-result="correct"] { background: #d9eedb; border-color: #427851; color: #174830; }
.quiz-answers button[data-result="retry"] { background: #f9e3d4; border-color: #ac7359; color: #753b27; }
.quiz-answers button[data-result] { animation: answer-reveal .32s ease-out; }
#quiz-feedback { margin-top: 10px; padding: 7px 10px; background: #edf0e3; border-radius: 6px; color: #3b4536; }
#quiz-feedback[data-result="correct"] { background: #e5f1e5; color: #174830; }
#quiz-continue { margin-top: 10px; min-height: 41px; }
.card-artpoint img { transition: transform .4s ease; }
.era-card:is(:hover,:focus-within) .card-artpoint img { transform: scale(1.04); }
dialog[open] .dialog-inner { animation: scene-in .25s ease-out both; }

@keyframes pin-pulse {
  from { transform: scale(.8); opacity: .95; }
  to { transform: scale(1.6); opacity: 0; }
}
@keyframes scene-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes answer-reveal {
  50% { transform: translateY(-3px); }
}
@media (max-width: 735px) {
  .header-inner { padding-block: 10px 0; min-height: 93px; grid-template-columns: 1fr auto; gap: 8px; }
  .site-header nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 6px; }
  .site-header nav a { padding-block: 5px 9px; font-size: .88rem; }
  .search-trigger { grid-column: 2; grid-row: 1; }
  .journey-board { grid-template-columns: minmax(0, 1fr); }
  .journey-card { grid-template-columns: minmax(110px, .75fr) minmax(0, 1fr); grid-template-rows: auto; }
  .journey-story { border-top: 0; border-inline-start: 3px solid #d5a96d; }
  #journey-fact { min-height: 0; }
  .journey-stops { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .quiz { grid-template-columns: minmax(0, 1fr); gap: 13px; padding: 15px; }
}
@media (max-width: 455px) {
  .hero-actions { gap: 7px; }
  .hero-actions a { font-size: .91rem; padding-inline: 10px; }
  .journey-section { padding-block: 32px 36px; }
  .journey-heading { align-items: start; flex-direction: column; margin-bottom: 13px; }
  .journey-board { padding: 8px; gap: 9px; }
  .journey-story { padding: 9px 10px; }
  .journey-card { grid-template-columns: minmax(76px, .45fr) minmax(0, 1fr); }
  .journey-stops { gap: 5px; }
  .journey-stops button { padding-inline: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .pin-dot::after, .journey-scene img, .quiz-answers button[data-result], dialog[open] .dialog-inner { animation: none; }
  .era-card:is(:hover,:focus-within) .card-artpoint img { transform: none; }
}
