﻿/* ===========================================================================
   ALPINE ACE — Rupin Pass page
   =========================================================================== */

html, body { background: #0a0e12; }

/* =========================================================================
   MOBILE OVERFLOW GUARD — prevents horizontal scroll from displacing
   fixed elements (nav pill, sticky CTA) off-screen
   ========================================================================= */
@media (max-width: 860px) {
  html { overflow-x: hidden; }

  .navwrap { max-width: 100vw; }

  .rp-sticky-cta {
    max-width: 100vw;
    left: 0;
    right: 0;
    width: 100%;
  }
}

/* =========================================================================
   HERO — full-bleed, title bottom-anchored, geo pin markers
   ========================================================================= */

.rp-hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Background: slightly oversized vertically for parallax headroom */
.rp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rp-hero-bg img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  will-change: transform;
}

/* Scrim: matches the pass card carousel overlay on the homepage */
.rp-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(10,14,18,.82) 0%, rgba(10,14,18,.22) 52%, rgba(10,14,18,.06) 100%);
}

/* Content: anchors to bottom of viewport */
.rp-hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gut) clamp(32px, 5.5vh, 60px);
  width: 100%;
  box-sizing: border-box;
}

/* Wraps title row + metrics */
.rp-hero-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* preel-metrics reused here — cancel the margin-top it has from home.css */
.rp-metrics-override {
  margin-top: 0;
}

/* Sentinel */
.hero-sentinel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
}

/* =========================================================================
   TRAIL SECTION — Dark editorial second fold
   ========================================================================= */

.rp-trail {
  background: var(--paper);
  padding: clamp(72px, 10vw, 140px) 0 clamp(96px, 12vw, 160px);
}

.rp-trail-content {
  width: fit-content;
  margin-inline: auto;
}

.rp-trail-head {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-bottom: clamp(16px, 2vw, 28px);
}

.rp-trail-head-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  max-width: clamp(320px, 40vw, 520px);
}

.rp-trail-overview {
  font-family: var(--font-sans);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.76;
  color: var(--ink-2);
  margin: 0;
  max-width: 54ch;
}

.rp-trail-head-img {
  width: fit-content;
}

.rp-trail-head-img img {
  height: clamp(180px, 22vw, 300px);
  width: auto;
  display: block;
}

.rp-trail-tagline {
  font-family: 'Shadows Into Light', cursive;
  font-weight: 400;
  text-transform: none;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0;
  text-align: left;
}

.rp-stats {
  display: flex;
  flex-direction: row;
  gap: clamp(40px, 6vw, 80px);
  margin-top: clamp(48px, 6vw, 80px);
}

.rp-stat-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.rp-stat-num-clip {
  overflow: hidden;
}

.rp-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 6.8vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.05em;
  transform: translateY(110%);
  transition: transform 0.84s cubic-bezier(0.16, 1, 0.3, 1);
}
.rp-stats.in .rp-stat-num { transform: translateY(0); }

.rp-stat-col:nth-child(1) .rp-stat-num { transition-delay: 0s; }
.rp-stat-col:nth-child(2) .rp-stat-num { transition-delay: 0.10s; }
.rp-stat-col:nth-child(3) .rp-stat-num { transition-delay: 0.20s; }
.rp-stat-col:nth-child(4) .rp-stat-num { transition-delay: 0.30s; }

.rp-stat-unit {
  font-family: 'Shadows Into Light', cursive;
  font-weight: 400;
  font-size: 0.30em;
  letter-spacing: 0.01em;
  color: var(--signal);
  line-height: 1;
}

.rp-stat-label {
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.75vw, 12px);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: clamp(10px, 1vw, 14px);
}

.rp-trail-head,
.rp-stats {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  0.72s ease,
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

.rp-stats { transition-delay: 0.10s; }

.rp-trail-head.in,
.rp-stats.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .rp-trail-head,
  .rp-stats {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .rp-stat-num { transform: none; transition: none; }
}

/* =========================================================================
   ASCENT PROFILE — map trail container
   ========================================================================= */

.rmt-eyebrow {
  color: var(--signal);
  margin-bottom: clamp(20px, 3vw, 28px);
}

.rmt-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.rmt-trail-ghost {
  stroke: rgba(28,25,22,0.10);
  stroke-width: 12;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rmt-trail-line {
  stroke: var(--signal);
  stroke-width: 12;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rmt-wp-hit {
  fill: transparent;
  cursor: pointer;
}

.rmt-wp-ring {
  fill: var(--paper);
  stroke: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* Summit ring matches all other pins */
.rmt-wp.rmt-wp--summit .rmt-wp-ring,
.rmt-wp.rmt-wp--summit.visible .rmt-wp-ring { fill: var(--paper); }

.rmt-wp.visible .rmt-wp-ring {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(10,14,18,0.28)) drop-shadow(0 0 18px rgba(10,14,18,0.38));
}
.rmt-terminus .rmt-wp-ring {
  fill: var(--paper);
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(10,14,18,0.28)) drop-shadow(0 0 18px rgba(10,14,18,0.38));
}

.rmt-wp-dot {
  fill: var(--signal);
  opacity: 0;
  transition: opacity 0.35s ease 0.1s;
  pointer-events: none;
}

/* Summit dot matches all other pins */
.rmt-wp.rmt-wp--summit .rmt-wp-dot,
.rmt-wp.rmt-wp--summit.visible .rmt-wp-dot { fill: var(--signal); }

.rmt-wp.visible .rmt-wp-dot { opacity: 1; }

.rmt-terminus-dot {
  fill: var(--signal);
  opacity: 1;
}

.rmt-day-label {
  font-family: 'Shadows Into Light', cursive;
  font-weight: 400;
  font-size: 12px;
  fill: var(--ink);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease 0.15s;
}

.rmt-wp.visible .rmt-day-label { opacity: 1; }
.rmt-terminus .rmt-day-label   { opacity: 1; }

.rmt-loc-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  fill: var(--ink);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease 0.2s;
  transform: translateY(8px);
}

.rmt-wp.visible .rmt-loc-label,
.rmt-terminus .rmt-loc-label   { opacity: 1; }

.rmt-loc-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  fill: var(--ink-3);
  letter-spacing: 0.05em;
  pointer-events: none;
  opacity: 1;
  transform: translateY(8px);
}

.rmt-tip {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  background: var(--ink);
  border-radius: 3px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: rgba(253,251,246,0.85);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.rmt-tip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pin ground shadow */
.rmt-wp-shadow {
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.rmt-wp.visible .rmt-wp-shadow { opacity: 1; }
.rmt-terminus .rmt-wp-shadow   { opacity: 1; }

/* Summit flag — animated via GSAP in rupin.js */
.rmt-summit-flag {
  opacity: 0;
}

/* =========================================================================
   ROUTES & DAY BY DAY — sticky scroll-pinned split layout
   ========================================================================= */

/* Scroll-pin spacer: provides the scroll distance for 6 snap points */
.rp-dbd-scroll-pin {
  position: relative;
  height: 700vh;
}

.rp-dbd-wrap {
  background: var(--paper);
  padding: 0;
}

/* Section: sticky, full viewport height */
.rp-dbd {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--paper);
  border-radius: 0;
  display: block;
}

/* Two-column inner grid */
.rp-dbd-inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  height: 100%;
  width: 100%;
}

/* ---- LEFT: SVG map with scoped background ---- */
.rp-dbd-map {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(56px, 8vh, 96px) clamp(24px, 3vw, 48px) clamp(40px, 5vh, 64px);
  overflow: hidden;
}

.rp-dbd-map-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

/* Very light warm-orange glass tint over the photo */
.rp-dbd-map-film {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 8, 5, 0.45);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.rp-dbd-map .rmt-svg {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* SVG labels on light-tinted background — use dark ink */
.rp-dbd-map .rmt-trail-ghost  { stroke: rgba(28, 25, 22, 0.15); }
.rp-dbd-map .rmt-wp-ring      { fill: var(--paper); }
.rp-dbd-map .rmt-terminus .rmt-wp-ring { fill: var(--paper); }
.rp-dbd-map .rmt-wp.visible .rmt-wp-ring { fill: var(--paper); }
.rp-dbd-map .rmt-wp.rmt-wp--summit .rmt-wp-ring,
.rp-dbd-map .rmt-wp.rmt-wp--summit.visible .rmt-wp-ring { fill: var(--paper); }
.rp-dbd-map .rmt-day-label    { fill: rgba(255,255,255,0.75); }
.rp-dbd-map .rmt-loc-label    { fill: #ffffff; }
.rp-dbd-map .rmt-loc-sub      { fill: rgba(255,255,255,0.65); }

/* Active waypoint: pulse its dot */
.rp-dbd-map .rmt-wp.active .rmt-wp-dot {
  fill: var(--signal);
  animation: rmt-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes rmt-dot-pulse {
  0%, 100% { opacity: 1; r: 3; }
  50%       { opacity: 0.55; r: 5; }
}

/* ---- RIGHT: Day-by-day accordion panel (solid paper) ---- */
.rp-dbd-accordions {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(48px, 6vh, 80px) clamp(32px, 3.5vw, 72px);
  background: var(--paper);
  border-left: 1px solid rgba(28, 25, 22, 0.07);
}

.rp-dbd-acc-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 clamp(20px, 3vh, 32px);
}

.rp-dbd-acc-list {
  border-top: 1px solid rgba(28, 25, 22, 0.10);
}

/* Each accordion row */
.rp-dbd-acc-item {
  border-bottom: 1px solid rgba(28, 25, 22, 0.10);
  overflow: hidden;
  transition: border-left-color 0.3s ease, padding-left 0.3s ease, background 0.2s ease;
}

.rp-dbd-acc-item:not(.active):hover {
  background: rgba(28, 25, 22, 0.03);
}

.rp-dbd-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(14px, 2vh, 20px) 0;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  text-align: left;
}

/* Day number tag */
.rp-dbd-acc-num {
  font-family: 'Shadows Into Light', cursive;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--signal);
  opacity: 0.6;
  flex-shrink: 0;
  width: 48px;
  transition: opacity 0.35s ease;
}

/* Route title */
.rp-dbd-acc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(12px, 1.15vw, 16px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex: 1;
  line-height: 1.15;
  transition: color 0.35s ease;
}

/* Chevron */
.rp-dbd-acc-arrow {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink-4);
  border-bottom: 1.5px solid var(--ink-4);
  transform: rotate(45deg);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Active item */
.rp-dbd-acc-item.active {
  box-shadow: inset 2px 0 0 var(--signal);
  padding-left: 14px;
}
.rp-dbd-acc-item.active .rp-dbd-acc-num   { opacity: 1; }
.rp-dbd-acc-item.active .rp-dbd-acc-title { color: var(--ink); }
.rp-dbd-acc-item.active .rp-dbd-acc-arrow {
  transform: rotate(225deg);
  border-color: var(--signal);
}

/* Summit day — orange title when active */
.rp-dbd-acc-item--summit.active .rp-dbd-acc-title { color: var(--signal); }

/* Hover — nudge num opacity to signal interactivity */
.rp-dbd-acc-item:not(.active):hover .rp-dbd-acc-num   { opacity: 0.85; }
.rp-dbd-acc-item:not(.active):hover .rp-dbd-acc-arrow { border-color: var(--ink-3); }

/* Expandable body */
.rp-dbd-acc-body {
  max-height: 0;
  overflow: hidden;
  padding-left: 62px;
  padding-right: 4px;
  transition: max-height 0.52s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease;
  opacity: 0;
}
.rp-dbd-acc-item.active .rp-dbd-acc-body {
  max-height: 260px;
  opacity: 1;
}

.rp-dbd-acc-desc {
  font-family: var(--font-sans);
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.68;
  color: var(--ink-2);
  margin: 0 0 12px;
}

.rp-dbd-acc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: clamp(16px, 2vh, 22px);
}

/* Tag pill (reused class) */
.rp-dbd-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid rgba(28, 25, 22, 0.18);
  border-radius: 100px;
  padding: 3px 9px;
}

/* ---- Mobile: single column, no sticky ---- */
@media (max-width: 768px) {
  .rp-dbd-scroll-pin { height: auto; }
  .rp-dbd { position: relative; height: auto; }
  .rp-dbd-inner {
    grid-template-columns: 1fr;
    height: auto;
  }
  .rp-dbd-map {
    height: clamp(260px, 58vw, 380px);
    padding: clamp(48px, 6vh, 72px) var(--gut) clamp(24px, 3vh, 40px);
  }
  .rp-dbd-accordions {
    height: auto;
    padding: clamp(28px, 4vh, 48px) var(--gut);
    border-left: none;
    border-top: 1px solid rgba(28, 25, 22, 0.10);
  }
  .rp-dbd-acc-head { cursor: pointer; }

  /* SVG trail map — mobile readability overrides */
  .rmt-trail-line  { stroke-width: 16; }
  .rmt-trail-ghost { stroke-width: 16; }
  .rmt-day-label   { display: none; }
  .rmt-loc-label   { font-size: 22px; }
  .rmt-loc-sub     { display: none; }
}

@media (min-width: 769px) {
  .rmt-day-label { font-size: 15px; }
  .rmt-loc-label { font-size: 18px; }
  .rmt-loc-sub   { font-size: 13px; }
}

/* =========================================================================
   WHAT TO KNOW — expedition reference
   ========================================================================= */
.pass-know {
  background: #fff;
  padding: clamp(83px, 11.7vw, 156px) 0;
}

.pass-know .wrap {
  max-width: 100%;
}

.know-header {
  margin-bottom: clamp(47px, 6.5vw, 73px);
  text-align: center;
}

.know-headline {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 14px 0 0;
}

.know-item-img {
  width: 60%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.know-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(26px, 3.9vw, 62px);
}

.know-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: clamp(31px, 3.9vw, 47px) 0;
}

.know-label {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(17px, 1.56vw, 22px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.know-val {
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

/* ---- Trail section: tablet ---- */
@media (max-width: 900px) {
  .rp-trail-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .rp-stats-row { flex-wrap: wrap; }
  .rp-stat { flex: 0 0 50%; padding-bottom: 0 !important; }
  .rp-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
  .rp-stat:nth-child(even) { border-right: none; }
  .rp-stat:nth-child(1),
  .rp-stat:nth-child(2) { padding-bottom: clamp(20px, 3vh, 32px) !important; }

}


/* ---- Main page: tablet ---- */
@media (max-width: 1024px) {
  /* 2 full cards + ~56px peek of 3rd */
  .day-card {
    flex: 0 0 calc((100% - 88px) / 2);
    min-height: clamp(260px, 30vw, 340px);
  }

  .know-list { grid-template-columns: 1fr 1fr; }
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  /* Hero metrics: 2-column grid — matches homepage carousel mobile style */
  .rp-metrics-override {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 0;
    border-top: none;
    padding-top: clamp(14px, 2vh, 20px);
    margin-top: 20px;
  }

  .rp-metrics-override .preel-metric {
    flex: none;
    padding: 10px 0;
    padding-left: 0;
    padding-right: 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
  }

  /* Kill desktop adjacent-sibling border-left */
  .rp-metrics-override .preel-metric + .preel-metric { border-left: none; padding-left: 0; }

  /* Single horizontal divider between row 1 (Duration/Difficulty) and row 2 (Season/From) */
  .rp-metrics-override .preel-metric:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  /* Day by Day title: centered on mobile */
  .rp-dbd-acc-eyebrow { text-align: center; }

  /* Hero title: centered */
  .preel-title-row {
    justify-content: center;
    text-align: center;
  }

  .preel-title-group {
    align-items: center;
  }

  /* Trail head: stack image above text, centered */
  .rp-trail-content { width: 100%; }

  .rp-trail-head {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .rp-trail-head-img {
    width: auto;
    display: flex;
    justify-content: center;
  }

  .rp-trail-head-img img {
    height: clamp(200px, 56vw, 280px);
    width: auto;
  }

  .rp-trail-head-copy {
    align-items: center;
    max-width: 100%;
  }

  .rp-trail-tagline,
  .rp-trail-overview { text-align: center; }

  /* Stats: 2-column grid, 2 rows, centered */
  .rp-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 6vw, 40px) clamp(16px, 5vw, 28px);
    margin-top: clamp(36px, 6vw, 60px);
  }

  .rp-stat-col { align-items: center; }

  .rp-stat-num {
    font-size: clamp(36px, 9.5vw, 52px);
  }

  .rp-stat-label { text-align: center; }

  /* Page sections */
  /* 1 full card + ~52px peek of 2nd */
  .day-card       { flex: 0 0 calc(100% - 52px); min-height: 300px; }
  /* Tuck buttons closer to the card edge on narrow screens */
  .days-btn       { width: 30px; height: 30px; }
  .days-btn--prev { left: 4px; }
  .days-btn--next { right: 4px; }
  /* What to Know: accordion — single column, one open at a time */
  .know-list {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid rgba(28, 25, 22, 0.10);
  }

  .know-item {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
    gap: 0;
    padding: 20px 0;
    border-bottom: 1px solid rgba(28, 25, 22, 0.10);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .know-item-img {
    width: 40px;
    aspect-ratio: 1 / 1;
    margin-bottom: 0;
    margin-right: 14px;
    flex-shrink: 0;
  }

  .know-label {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    text-align: left;
  }

  /* Chevron */
  .know-item::after {
    content: '';
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-right: 1.5px solid var(--ink-3, #756B5C);
    border-bottom: 1.5px solid var(--ink-3, #756B5C);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 14px;
    margin-bottom: 3px;
  }

  .know-item.open::after {
    transform: rotate(225deg);
    margin-bottom: -3px;
  }

  /* Description: collapsed by default, expands on open */
  .know-val {
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    padding-left: 54px;
    transition: max-height 0.42s cubic-bezier(0.16, 1, 0.3, 1),
                padding-top 0.3s ease,
                opacity 0.3s ease;
    opacity: 0;
    font-size: 13px;
  }

  .know-item.open .know-val {
    max-height: 300px;
    padding-top: 10px;
    opacity: 1;
  }
  /* rmt label sizes handled by the @media (max-width: 768px) block above */
}

/* =========================================================================
   MOBILE — What to Know flat layout + WA float fix
   ========================================================================= */
@media (max-width: 640px) {
  /* More breathing room before the What to Know section */
  .pass-know { padding-top: clamp(72px, 20vw, 120px); }

  /* Section heading: always visible + centered (bypass reveal animation) */
  .know-header {
    text-align: center;
    opacity: 1;
    transform: none;
  }
  .know-header.reveal { opacity: 1; transform: none; }

  /* Remove all dividers, use gap for spacing */
  .know-list {
    border-top: none;
    gap: 40px;
  }

  /* Each item: flex column — image stacked above label + description, centered */
  .know-item {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
    padding: 0;
    border-bottom: none;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
  }

  .know-item-img {
    width: clamp(96px, 26.4vw, 132px);
    height: clamp(96px, 26.4vw, 132px);
    flex-shrink: 0;
    margin-right: 0;
    margin-bottom: 0;
    align-self: center;
    object-fit: contain;
  }

  /* Reset flex: 1 and text-align from accordion block */
  .know-label {
    flex: none;
    min-width: 0;
    width: 100%;
    font-size: 19px;
    text-align: center;
    margin: 0;
  }

  /* Description always visible — reset flex-basis, padding, collapse */
  .know-val {
    flex-basis: auto;
    width: 100%;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    padding-left: 0;
    padding-top: 0;
    font-size: 13px;
    text-align: center;
  }

  .know-item.open .know-val {
    max-height: none;
    padding-top: 0;
  }

  /* Hide chevron */
  .know-item::after,
  .know-item.open::after { display: none; }

  /* WA button position handled by .wa-float.cta-up class via JS */

}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .rmt-trail-line { stroke-dashoffset: 0 !important; }
  .rmt-wp-dot,
  .rmt-wp-ring,
  .rmt-day-label,
  .rmt-loc-label,
  .rmt-summit-flag { opacity: 1 !important; transition: none; }
  .rmt-tip         { transition: none; }
}

/* === Sticky CTA bar — mobile only === */
.rp-sticky-cta {
  display: none;
}

@media (max-width: 640px) {
  .rp-sticky-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px var(--gut, 24px);
    background: var(--paper, #fff);
    border-radius: 0;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.20), 0 -4px 16px rgba(0, 0, 0, 0.10);
    z-index: 500;
    transform: translateY(110%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .rp-sticky-cta.visible {
    transform: translateY(0);
  }

  .rp-sticky-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* WA button sits at default position; slides up when CTA appears */
  .wa-float {
    bottom: clamp(20px, 3vw, 32px);
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .wa-float.cta-up {
    bottom: 104px;
  }

  /* Push nav boxes and copyright up inside the illustration so
     the sticky CTA bar never covers them */
  .sftr-illus {
    padding-bottom: 80px;
  }
}


@media (max-width: 768px) {
  .rp-hero .rp-cta-group { display: none; }
}