/* dive-tour.css -- styles for dive-tour.js (the canon explainer tour).
   Self-contained: donor tokens with literal fallbacks, so any RealTimes page
   can load it. Contrast, measured against each element's own background:
   - tip: #fff on #11120f = 18.9:1; gold2 step label #d8ad63 on #11120f = 9.3:1
   - Next: #111 on #d8ad63 = 9.3:1; launcher #fff on #11120f = 18.9:1
   Red is never used (brand rule: red lives only in the logo and live dot). */

/* ---- launcher: any [data-tour-open] may take .rt-tour-launch ---------- */
.rt-tour-launch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px 0 10px;
  background: var(--ink, #11120f);
  color: #fff;
  border: 1px solid var(--ink, #11120f);
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.rt-tour-launch:hover,
.rt-tour-launch:focus-visible {
  background: #2a2b27;
}
.rt-tour-launch:focus-visible {
  outline: 2px solid var(--gold, #b98132);
  outline-offset: 2px;
}
.rt-tour-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold2, #d8ad63);
  color: #111;
}
.rt-tour-play svg {
  width: 10px;
  height: 10px;
  margin-left: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .rt-tour-launch:not(.is-seen) .rt-tour-play {
    animation: rt-tour-pulse 2.4s ease-out infinite;
  }
}
@keyframes rt-tour-pulse {
  0% { box-shadow: 0 0 0 0 rgba(216, 173, 99, 0.9); }
  70% { box-shadow: 0 0 0 9px rgba(216, 173, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 173, 99, 0); }
}

/* ---- the highlighted stop --------------------------------------------- */
/* outline only: never touches the target's own position, so sticky and
   fixed targets (a sub-nav, a header) stay where they are */
.rt-tour-target {
  outline: 3px solid var(--gold2, #d8ad63);
  outline-offset: 3px;
  /* ink edge outside the gold ring, so the ring reads on white too */
  box-shadow: 0 0 0 7px var(--ink, #11120f);
}

/* ---- the tip (desktop) / bottom sheet (phone) ------------------------- */
.rt-tour-tip {
  position: absolute;
  z-index: 300;
  width: min(380px, calc(100vw - 32px));
  background: var(--ink, #11120f);
  color: #fff;
  padding: 16px 18px 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  font-family: Arial, Helvetica, sans-serif;
}
.rt-tour-tip[hidden] {
  display: none;
}
.rt-tour-tip::before {
  content: "";
  position: absolute;
  top: -8px;
  left: var(--rt-tour-arrow, 24px);
  border: 8px solid transparent;
  border-top: 0;
  border-bottom-color: var(--ink, #11120f);
}
.rt-tour-tip.is-above::before {
  top: auto;
  bottom: -8px;
  border-bottom: 0;
  border-top: 8px solid var(--ink, #11120f);
}
.rt-tour-step {
  margin: 0 0 4px;
  padding-right: 44px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold2, #d8ad63);
}
.rt-tour-title {
  margin: 0 0 6px;
  padding-right: 40px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.2;
  color: #fff;
}
.rt-tour-title:focus {
  outline: none;
}
.rt-tour-body {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  text-wrap: pretty;
}
.rt-tour-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}
.rt-tour-links[hidden] {
  display: none;
}
.rt-tour-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold2, #d8ad63);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rt-tour-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #333733;
}
.rt-tour-nav button {
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  color: #fff;
  border: 1px solid #8a8a8a;
  cursor: pointer;
}
.rt-tour-nav .rt-tour-next {
  margin-left: auto;
  background: var(--gold2, #d8ad63);
  border-color: var(--gold2, #d8ad63);
  color: #111;
}
.rt-tour-nav button:disabled {
  opacity: 0.4;
  cursor: default;
}
.rt-tour-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.rt-tour-tip button:focus-visible,
.rt-tour-tip a:focus-visible {
  outline: 2px solid var(--gold2, #d8ad63);
  outline-offset: 2px;
}
.rt-tour-dots {
  display: flex;
  gap: 6px;
}
.rt-tour-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid #fff;
}
.rt-tour-dots i.on {
  background: #fff;
}

@media (max-width: 700px) {
  .rt-tour-tip,
  .rt-tour-tip.is-sheet {
    position: fixed;
    left: 0 !important;
    right: 0;
    top: auto !important;
    bottom: 0;
    width: 100%;
    padding: 16px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .rt-tour-tip::before {
    display: none;
  }
  .rt-tour-launch {
    width: 100%;
    justify-content: center;
  }
}
