/* TourKit: Rides, the app's page under Tour (TKF-599).
   Tokens only, as every feature sheet since TKF-226/229: a literal here would
   be the one thing that stops following the theme. Amber that is a LETTER takes
   --amber-ink (it needs 4.5:1 on paper); amber that is a SHAPE takes --amber. */

/* Same 14px inset as every other panel (TKB-343); the panel itself is
   overflow:hidden, so this is what scrolls. */
.ra-wrap {
  padding: 14px 14px 64px;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}
/* Prose and pictures, not tiles: unlike Pacer it does want a measure, or the
   hero shot grows past the screen's height on a wide monitor. */
.ra-wrap > * { max-width: 1240px; margin-left: auto; margin-right: auto; }

/* ── Hero ── */
.ra-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px;
  align-items: center;
  padding: 18px 0 28px;
}
.ra-eyebrow {
  font-size: var(--fs-micro);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: 8px;
}
.ra-title {
  font-family: var(--font-text);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.1;
  color: var(--txt-hi);
  margin: 0 0 14px;
}
.ra-lede {
  font-size: var(--fs-lg);
  line-height: 1.35;
  color: var(--txt);
  margin: 0 0 12px;
}
.ra-why {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--dim);
  margin: 0 0 20px;
}
.ra-jump {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--amber);
  border-radius: 3px;
  color: var(--amber-ink);
  font-size: var(--fs-micro);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}
.ra-jump:hover { background: var(--amber-wash); color: var(--on-amber-wash); }

/* A shot is a button: it opens the lightbox. Reset the button so only the
   picture shows, and frame it so a bright sky doesn't bleed into the page. */
.ra-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--bdr);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg2);
  cursor: zoom-in;
}
.ra-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .3s ease;
}
.ra-shot:hover img { transform: scale(1.02); }
.ra-shot:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ── What it does ── */
.ra-feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  padding-bottom: 28px;
}
.ra-feat {
  background: var(--bg1);
  border: 1px solid var(--bdr);
  border-radius: 6px;
  padding: 14px 16px;
}
.ra-feat-title {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--txt-hi);
  margin: 0 0 6px;
}
.ra-feat-body {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--dim);
  margin: 0;
}

/* ── Gallery ── */
.ra-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 32px;
}
.ra-fig { margin: 0; }
.ra-fig figcaption {
  font-size: var(--fs-xs);
  color: var(--dim);
  margin-top: 6px;
}

/* ── Where to get it ── */
.ra-h2 {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--txt-hi);
  margin: 0 0 6px;
}
.ra-note {
  font-size: var(--fs-sm);
  color: var(--dim);
  margin: 0 0 14px;
}
.ra-plats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.ra-plat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: var(--bg1);
  border: 1px solid var(--bdr);
  border-radius: 6px;
  padding: 14px 16px 16px;
}
.ra-plat.is-live { border-color: var(--amber); }
.ra-plat-ico { width: 28px; height: 28px; color: var(--dim); }
.ra-plat.is-live .ra-plat-ico { color: var(--amber-ink); }
.ra-plat-name { font-size: var(--fs-base); font-weight: 600; color: var(--txt-hi); }
.ra-chip {
  font-size: var(--fs-micro);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--bdr);
  border-radius: 3px;
  padding: 2px 7px;
}
.ra-chip.is-live { color: var(--amber-ink); border-color: var(--amber); }
.ra-get {
  margin-top: 4px;
  padding: 7px 12px;
  border-radius: 3px;
  background: var(--amber);
  color: var(--on-amber);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
}

/* ── Lightbox ── */
/* Centred by hand: style.css zeroes every margin, and a modal dialog centres
   only through `margin: auto` against `inset: 0`. */
.ra-lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  padding: 0;
  border: none;
  background: transparent;
  max-width: 94vw;
  max-height: 92vh;
  overflow: visible;
}
.ra-lightbox::backdrop { background: rgba(0, 0, 0, .82); }
.ra-lightbox img {
  display: block;
  max-width: 94vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  cursor: zoom-out;
}
.ra-lb-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--bdr);
  background: var(--bg1);
  color: var(--txt-hi);
  font-size: var(--fs-lg);
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .ra-hero { grid-template-columns: 1fr; gap: 18px; padding-top: 6px; }
  .ra-gallery { grid-template-columns: 1fr; }
  .ra-title { font-size: var(--fs-xxl); }
}
