/* Life Shenzhen relocation roadmap --------------------------------------
   Page-specific presentation for /roadmap/. The HTML remains a useful,
   complete ordered list without JavaScript; enhanced states are additive. */

.rm-page {
  --rm-navy: #06162a;
  --rm-deep: #020d1d;
  --rm-ink: #071b38;
  --rm-cream: #f2f0e8;
  --rm-paper: #fbfaf6;
  --rm-lime: #3ce0b5;
  --rm-coral: #d94870;
  --rm-gold: #d9b37c;
  --rm-blue: #2d6bff;
  --rm-white: #fff;
  --rm-muted: rgba(242, 240, 232, 0.7);
  --rm-line: rgba(242, 240, 232, 0.18);
  --rm-soft-line: rgba(242, 240, 232, 0.1);
  --rm-surface: rgba(255, 255, 255, 0.055);
  --rm-surface-strong: rgba(255, 255, 255, 0.09);
  --rm-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  min-height: 100svh;
  color: var(--rm-cream);
  background:
    radial-gradient(circle at 88% 6%, rgba(45, 107, 255, 0.14), transparent 28rem),
    radial-gradient(circle at 8% 31%, rgba(60, 224, 181, 0.08), transparent 24rem),
    var(--rm-navy);
}

.rm-page .home-buy {
  color: var(--rm-cream);
  background: transparent;
  padding: 0;
}

.rm-shell {
  width: min(1480px, 100%);
  margin-inline: auto;
  padding: clamp(30px, 4vw, 58px) clamp(20px, 4.4vw, 68px) clamp(58px, 7vw, 96px);
}

.rm-sr-only,
.rm-live:not(:focus):not(:active) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Hero ------------------------------------------------------------------ */

.rm-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(390px, 46vw, 560px);
  border-bottom: 1px solid var(--rm-line);
  padding: 0;
  overflow: hidden;
  overflow: clip;
}

.rm-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 4%;
  right: -7%;
  width: min(48vw, 650px);
  aspect-ratio: 1;
  border: 1px solid rgba(217, 179, 124, 0.17);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 31%, rgba(217, 179, 124, 0.07) 31.2% 31.7%, transparent 31.9% 48%, rgba(60, 224, 181, 0.06) 48.2% 48.6%, transparent 48.8%);
  pointer-events: none;
}

.rm-hero-copy {
  max-width: 1480px;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  align-items: center;
  gap: clamp(38px, 7vw, 112px);
}

.rm-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  color: var(--rm-lime);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
}

.rm-eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.rm-hero-title {
  max-width: 920px;
  margin: 0;
  color: var(--rm-cream);
  letter-spacing: -0.055em;
  text-wrap: balance;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 7vw, 112px);
  font-weight: 400;
  line-height: 0.88;
}

.rm-hero-title em {
  color: var(--rm-gold);
  font-style: normal;
}

.rm-hero-lede {
  max-width: 650px;
  margin: 30px 0 0;
  color: rgba(242, 240, 232, 0.8);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.58;
}

.rm-hero-actions,
.rm-help-actions,
.rm-next-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.rm-hero-actions {
  margin-top: 30px;
}

.rm-hero-actions :is(a, button),
.rm-help-actions :is(a, button),
.rm-next-actions :is(a, button) {
  min-height: 46px;
  border: 1px solid rgba(242, 240, 232, 0.34);
  color: var(--rm-cream);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.rm-hero-actions :is(a, button):first-child,
.rm-help-actions :is(a, button):first-child,
.rm-next-actions :is(a, button):first-child {
  border-color: var(--rm-gold);
  color: var(--rm-ink);
  background: var(--rm-gold);
}

.rm-hero-actions :is(a, button):hover,
.rm-help-actions :is(a, button):hover,
.rm-next-actions :is(a, button):hover {
  border-color: var(--rm-cream);
  color: var(--rm-ink);
  background: var(--rm-cream);
  transform: translateY(-2px);
}

/* A decorative miniature route in the hero. */
.rm-hero-route {
  position: relative;
  align-self: stretch;
  min-height: 280px;
  border: 1px solid rgba(217, 179, 124, 0.28);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: var(--rm-shadow);
  padding: 30px;
  overflow: hidden;
}

.rm-hero-route::after {
  content: "SZ";
  position: absolute;
  right: -14px;
  bottom: -44px;
  color: rgba(217, 179, 124, 0.07);
  letter-spacing: -0.08em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 190px;
  line-height: 1;
  pointer-events: none;
}

.rm-hero-route > p {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: var(--rm-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 800;
}

.rm-hero-route > p span {
  color: var(--rm-lime);
}

.rm-hero-route > strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  color: var(--rm-cream);
  font-size: 12px;
  line-height: 1.5;
}

.rm-hero-route-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rm-hero-route-list::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 17px;
  width: 2px;
  background: linear-gradient(var(--rm-gold), var(--rm-lime));
}

.rm-hero-route-list > li {
  position: relative;
  min-height: 68px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 15px;
  color: rgba(242, 240, 232, 0.7);
  font-size: 12px;
  line-height: 1.35;
}

.rm-hero-route-list > li::before {
  content: "";
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-left: 11px;
  border: 2px solid var(--rm-gold);
  border-radius: 50%;
  background: var(--rm-navy);
  box-shadow: 0 0 0 5px rgba(217, 179, 124, 0.09);
}

.rm-hero-route-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--rm-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
}

/* Overview dashboard ---------------------------------------------------- */

.rm-overview {
  margin: 0;
  padding-block: clamp(36px, 5vw, 72px);
}

.rm-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rm-progress-card,
.rm-metrics,
.rm-arrival,
.rm-next,
.rm-help-card,
.rm-sequence-note {
  border: 1px solid var(--rm-line);
  border-radius: 16px;
  background: var(--rm-surface);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.14);
}

.rm-progress-card {
  display: grid;
  grid-template-columns: 134px minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
  min-height: 216px;
  padding: clamp(24px, 3vw, 38px);
}

.rm-progress-ring {
  --rm-progress: 0;
  position: relative;
  width: 126px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--rm-lime) calc(var(--rm-progress) * 1%), rgba(255, 255, 255, 0.1) 0);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(60, 224, 181, 0.17), 0 0 36px rgba(60, 224, 181, 0.09);
}

.rm-progress-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(242, 240, 232, 0.1);
  border-radius: inherit;
  background: var(--rm-navy);
}

.rm-progress-value {
  position: relative;
  z-index: 1;
  color: var(--rm-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 33px;
  line-height: 1;
}

.rm-progress-copy {
  min-width: 0;
}

.rm-progress-copy > :first-child,
.rm-next-label {
  margin: 0 0 8px;
  color: var(--rm-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 800;
}

.rm-progress-copy h2,
.rm-progress-copy h3 {
  margin: 0;
  color: var(--rm-cream);
  letter-spacing: -0.03em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.5vw, 36px);
  font-weight: 400;
  line-height: 1.08;
}

.rm-progress-count {
  margin: 10px 0 0;
  color: var(--rm-muted);
  font-size: 13px;
  line-height: 1.5;
}

.rm-native-progress {
  accent-color: var(--rm-lime);
  width: 100%;
  height: 8px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  color: var(--rm-lime);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.rm-native-progress::-webkit-progress-bar {
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.1);
}

.rm-native-progress::-webkit-progress-value {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rm-gold), var(--rm-lime));
}

.rm-native-progress::-moz-progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rm-gold), var(--rm-lime));
}

.rm-reset,
.rm-clear {
  min-height: 42px;
  border: 0;
  color: rgba(242, 240, 232, 0.7);
  background: transparent;
  padding: 8px 0;
  text-decoration: underline;
  text-decoration-color: rgba(242, 240, 232, 0.28);
  text-underline-offset: 4px;
  font-size: 12px;
  cursor: pointer;
}

.rm-reset:hover,
.rm-clear:hover {
  color: var(--rm-cream);
  text-decoration-color: var(--rm-lime);
}

.rm-storage-note {
  margin: 13px 0 0;
  color: rgba(242, 240, 232, 0.52);
  font-size: 11px;
  line-height: 1.5;
}

.rm-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  overflow: hidden;
}

.rm-metric {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  min-height: 216px;
  padding: clamp(24px, 3vw, 36px);
}

.rm-metric + .rm-metric {
  border-left: 1px solid var(--rm-line);
}

.rm-metric > span:first-child {
  color: rgba(242, 240, 232, 0.55);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 800;
}

.rm-metric strong {
  display: block;
  color: var(--rm-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 55px);
  font-weight: 400;
  line-height: 0.92;
}

.rm-metric small {
  display: block;
  margin-top: 8px;
  color: var(--rm-muted);
  font-size: 12px;
  line-height: 1.4;
}

/* Deadline cards -------------------------------------------------------- */

.rm-deadline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 0;
}

.rm-deadline-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(217, 72, 112, 0.42);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(217, 72, 112, 0.13), rgba(255, 255, 255, 0.035));
  padding: 23px 24px 22px 74px;
  overflow: hidden;
}

.rm-deadline-card::before {
  content: "!";
  position: absolute;
  top: 23px;
  left: 24px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rm-coral);
  border-radius: 50%;
  color: var(--rm-coral);
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.rm-deadline-card > :first-child {
  margin: 0 0 7px;
  color: var(--rm-coral);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 800;
}

.rm-deadline-card h3 {
  margin: 0;
  color: var(--rm-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
}

.rm-deadline-card p {
  margin: 9px 0 0;
  color: var(--rm-muted);
  font-size: 13px;
  line-height: 1.55;
}

.rm-source-link {
  min-height: 40px;
  color: var(--rm-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  text-decoration: underline;
  text-decoration-color: rgba(217, 179, 124, 0.5);
  text-underline-offset: 4px;
  font-size: 11px;
  font-weight: 700;
}

.rm-source-link:hover {
  color: var(--rm-cream);
  text-decoration-color: currentColor;
}

/* Metro-style stage rail ------------------------------------------------ */

.rm-route {
  --rm-route-progress: 0;
  position: sticky;
  top: 0;
  z-index: 16;
  border-block: 1px solid var(--rm-line);
  background: rgba(6, 22, 42, 0.93);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  margin: 0 0 clamp(30px, 4vw, 52px);
  padding: 13px clamp(20px, 4.4vw, 68px) 15px;
}

.rm-route-line {
  position: absolute;
  z-index: 0;
  top: 34px;
  right: calc(12.5% + clamp(20px, 4.4vw, 68px));
  left: calc(12.5% + clamp(20px, 4.4vw, 68px));
  height: 2px;
  background: rgba(242, 240, 232, 0.17);
  overflow: hidden;
}

.rm-route-fill {
  width: calc(var(--rm-route-progress) * 1%);
  max-width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--rm-gold), var(--rm-lime));
  display: block;
  transition: width 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rm-stations {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.rm-stations > li {
  min-width: 0;
}

.rm-station {
  min-width: 0;
  min-height: 58px;
  color: rgba(242, 240, 232, 0.62);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px clamp(5px, 1.4vw, 18px);
  text-align: left;
  transition: color 160ms ease, transform 160ms ease;
}

.rm-station:hover,
.rm-station.is-active,
.rm-station[aria-current="step"] {
  color: var(--rm-cream);
}

.rm-station:hover {
  transform: translateY(-1px);
}

.rm-station-dot {
  position: relative;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(242, 240, 232, 0.42);
  border-radius: 50%;
  background: var(--rm-navy);
  display: grid;
  place-items: center;
  color: rgba(242, 240, 232, 0.72);
  font-size: 9px;
  font-weight: 800;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.rm-station.is-active .rm-station-dot,
.rm-station[aria-current="step"] .rm-station-dot {
  border-color: var(--rm-gold);
  color: var(--rm-ink);
  background: var(--rm-gold);
  box-shadow: 0 0 0 6px rgba(217, 179, 124, 0.12);
}

.rm-station.is-complete .rm-station-dot,
.rm-stations > li.is-complete .rm-station-dot {
  border-color: var(--rm-lime);
  color: var(--rm-ink);
  background: var(--rm-lime);
  font-size: 0;
}

.rm-station.is-complete .rm-station-dot::after,
.rm-stations > li.is-complete .rm-station-dot::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.rm-station.is-complete .rm-station-dot > *,
.rm-stations > li.is-complete .rm-station-dot > * {
  visibility: hidden;
}

.rm-station-copy {
  min-width: 0;
  display: block;
}

.rm-station-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.rm-station-copy small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(242, 240, 232, 0.5);
  font-size: 9px;
  line-height: 1.2;
}

/* Search and filters ---------------------------------------------------- */

.rm-toolbar {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  border: 1px solid var(--rm-line);
  border-radius: 14px;
  background: var(--rm-surface);
  padding: 14px;
}

.rm-search-wrap {
  position: relative;
  min-width: 0;
}

.rm-search-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 17px;
  width: 13px;
  height: 13px;
  border: 1.5px solid rgba(242, 240, 232, 0.6);
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.rm-search-wrap::after {
  content: "";
  position: absolute;
  top: calc(50% + 6px);
  left: 29px;
  width: 7px;
  height: 1.5px;
  background: rgba(242, 240, 232, 0.6);
  transform: rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}

.rm-search {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(242, 240, 232, 0.22);
  border-radius: 8px;
  color: var(--rm-cream);
  background: rgba(2, 13, 29, 0.48);
  padding: 10px 42px 10px 48px;
  font-size: 15px;
}

.rm-search::placeholder {
  color: rgba(242, 240, 232, 0.46);
}

.rm-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.rm-filter {
  min-height: 42px;
  border: 1px solid rgba(242, 240, 232, 0.22);
  border-radius: 999px;
  color: rgba(242, 240, 232, 0.72);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.rm-filter:hover {
  border-color: rgba(242, 240, 232, 0.5);
  color: var(--rm-cream);
}

.rm-filter.is-active,
.rm-filter[aria-pressed="true"] {
  border-color: var(--rm-lime);
  color: var(--rm-ink);
  background: var(--rm-lime);
}

.rm-results {
  color: rgba(242, 240, 232, 0.56);
  white-space: nowrap;
  font-size: 11px;
}

.rm-clear {
  margin-left: 7px;
}

/* Sequence explainer ---------------------------------------------------- */

.rm-sequence-note {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 0.45fr) minmax(0, 1.55fr);
  align-items: center;
  gap: 26px;
  margin: 0 0 28px;
  border-color: rgba(217, 179, 124, 0.34);
  padding: clamp(22px, 3vw, 34px);
}

.rm-sequence-note::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -1px;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(var(--rm-gold), var(--rm-lime));
}

.rm-sequence-heading .rm-eyebrow {
  margin-bottom: 9px;
  color: var(--rm-gold);
}

.rm-sequence-heading h2 {
  margin: 0;
  color: var(--rm-cream);
  letter-spacing: -0.035em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.7vw, 38px);
  font-weight: 400;
  line-height: 1.05;
}

.rm-sequence-note p {
  margin: 0;
  color: rgba(242, 240, 232, 0.76);
  font-size: 14px;
  line-height: 1.62;
}

.rm-sequence-note strong {
  color: var(--rm-cream);
}

/* Stage cards ----------------------------------------------------------- */

.rm-page .roadmap {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.rm-page .roadmap-step {
  position: relative;
  scroll-margin-top: 108px;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.067), rgba(255, 255, 255, 0.025));
  padding: 0;
  overflow: clip;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.rm-page .roadmap-step:hover {
  border-color: rgba(242, 240, 232, 0.28);
}

.rm-page .roadmap-step:target,
.rm-page .roadmap-step.is-current {
  border-color: rgba(217, 179, 124, 0.58);
  box-shadow: 0 0 0 1px rgba(217, 179, 124, 0.1), 0 24px 60px rgba(0, 0, 0, 0.18);
}

.rm-stage-shell {
  min-width: 0;
}

.rm-page .roadmap-step-head {
  position: relative;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 22px;
  border-bottom: 1px solid var(--rm-soft-line);
  padding: clamp(26px, 3vw, 40px);
}

.rm-page .roadmap-num {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(217, 179, 124, 0.48);
  border-radius: 50%;
  color: var(--rm-gold);
  display: grid;
  place-items: center;
  letter-spacing: -0.04em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
}

.rm-page .roadmap-when {
  margin: 0 0 9px;
  color: var(--rm-lime);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 800;
}

.rm-page .roadmap-step-head h2 {
  margin: 0;
  color: var(--rm-cream);
  letter-spacing: -0.035em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 400;
  line-height: 1;
}

.rm-page .roadmap-lede {
  max-width: 70ch;
  margin: 12px 0 0;
  color: var(--rm-muted);
  font-size: 14px;
  line-height: 1.6;
}

.rm-stage-status {
  min-height: 31px;
  border: 1px solid rgba(242, 240, 232, 0.2);
  border-radius: 999px;
  color: rgba(242, 240, 232, 0.66);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  white-space: nowrap;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 800;
}

.roadmap-step.is-complete .rm-stage-status {
  border-color: var(--rm-lime);
  color: var(--rm-ink);
  background: var(--rm-lime);
}

.roadmap-step.is-complete .rm-stage-status::before {
  content: "✓";
  font-size: 11px;
}

.roadmap-step.is-complete .roadmap-num {
  border-color: var(--rm-lime);
  color: var(--rm-ink);
  background: var(--rm-lime);
}

.roadmap-step.is-complete::after {
  content: "Stage complete";
  position: absolute;
  z-index: 3;
  top: 20px;
  right: -39px;
  width: 156px;
  color: var(--rm-ink);
  background: var(--rm-lime);
  padding: 6px 0;
  text-align: center;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 900;
  transform: rotate(36deg);
  pointer-events: none;
}

.rm-stage-toggle {
  position: relative;
  display: none;
  align-self: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(242, 240, 232, 0.25);
  border-radius: 50%;
  color: var(--rm-cream);
  background: transparent;
  place-items: center;
  font-size: 0;
  cursor: pointer;
}

.js .rm-page .rm-stage-toggle,
.rm-page.is-enhanced .rm-stage-toggle {
  display: grid;
}

.rm-stage-toggle::before,
.rm-stage-toggle::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 1.5px;
  background: currentColor;
  transition: transform 180ms ease;
}

.rm-stage-toggle::after {
  transform: rotate(90deg);
}

.rm-stage-toggle[aria-expanded="true"]::after {
  transform: rotate(0);
}

.rm-stage-body {
  display: block;
  padding: 0 clamp(26px, 3vw, 40px) clamp(30px, 4vw, 48px);
}

.js .rm-page .roadmap-step.is-collapsed .rm-stage-body,
.rm-page.is-enhanced .roadmap-step.is-collapsed .rm-stage-body {
  display: none;
}

.rm-page .roadmap-step[data-filtered="true"] {
  display: none;
}

/* Existing clock notices inside a stage. */
.rm-page .roadmap-flag {
  position: relative;
  border: 1px solid rgba(217, 72, 112, 0.42);
  border-left: 4px solid var(--rm-coral);
  border-radius: 8px;
  background: rgba(217, 72, 112, 0.09);
  margin: 24px 0 0;
  padding: 16px 18px;
}

.rm-page .roadmap-flag p {
  color: rgba(242, 240, 232, 0.82);
}

.rm-page .roadmap-flag strong {
  color: #ff8cac;
}

/* Tasks ----------------------------------------------------------------- */

.rm-page .roadmap-tasks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.rm-task-shell {
  position: relative;
  min-width: 0;
  min-height: 116px;
  border: 1px solid rgba(242, 240, 232, 0.16);
  border-radius: 11px;
  background: rgba(2, 13, 29, 0.34);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.rm-task-shell:hover,
.rm-task-shell:focus-within {
  border-color: rgba(217, 179, 124, 0.56);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.17);
  transform: translateY(-2px);
}

.rm-task-shell:has(.rm-check),
.rm-task-shell.has-check {
  grid-template-columns: 58px minmax(0, 1fr);
}

.rm-page .rm-task-shell .roadmap-task {
  min-width: 0;
  min-height: 114px;
  border: 0;
  color: var(--rm-cream);
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 7px;
  padding: 20px;
  transition: color 160ms ease, background 160ms ease;
}

.rm-task-shell:has(.rm-check) .roadmap-task,
.rm-task-shell.has-check .roadmap-task {
  grid-column: 2;
  padding-left: 4px;
}

.rm-page .rm-task-shell .roadmap-task:hover {
  border-color: transparent;
  color: var(--rm-cream);
  background: transparent;
}

.rm-page .roadmap-task-name {
  color: var(--rm-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.2;
}

.rm-page .roadmap-task-why {
  color: rgba(242, 240, 232, 0.64);
  font-size: 12.5px;
  line-height: 1.5;
}

.rm-page .roadmap-task:hover .roadmap-task-why {
  color: rgba(242, 240, 232, 0.78);
}

.rm-task-index {
  color: var(--rm-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 800;
}

.rm-task-action {
  position: static;
  align-self: flex-end;
  margin-top: auto;
  padding-top: 7px;
  color: var(--rm-gold);
  font-size: 17px;
  line-height: 1.2;
  transition: transform 160ms ease;
  pointer-events: none;
}

.rm-task-shell:hover .rm-task-action,
.rm-task-shell:focus-within .rm-task-action {
  transform: translateX(3px);
}

.rm-check {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  grid-column: 1;
  grid-row: 1;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242, 240, 232, 0.32);
  border-radius: 50%;
  color: transparent;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.rm-check::before {
  content: "✓";
  color: inherit;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.rm-check:hover {
  border-color: var(--rm-lime);
  color: var(--rm-lime);
  transform: scale(1.05);
}

.rm-check[aria-pressed="true"],
.rm-task-shell.is-complete .rm-check {
  border-color: var(--rm-lime);
  color: var(--rm-ink);
  background: var(--rm-lime);
}

.rm-task-shell.is-complete {
  border-color: rgba(60, 224, 181, 0.36);
  background: rgba(60, 224, 181, 0.075);
}

.rm-task-shell.is-complete .roadmap-task-name {
  color: rgba(242, 240, 232, 0.76);
  text-decoration: line-through;
  text-decoration-color: rgba(60, 224, 181, 0.72);
  text-decoration-thickness: 1px;
}

.rm-task-shell.is-complete .roadmap-task-why {
  color: rgba(242, 240, 232, 0.48);
}

.rm-task-shell.is-hidden,
.rm-task-shell[hidden] {
  display: none !important;
}

.rm-task-tag {
  align-self: flex-start;
  border: 1px solid rgba(217, 72, 112, 0.55);
  border-radius: 999px;
  color: #ff9ab7;
  background: rgba(217, 72, 112, 0.09);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

/* The accessible tag replaces the old generated-text label. */
.rm-page .roadmap-task--urgent .roadmap-task-name::after {
  content: none;
}

.rm-empty {
  border: 1px dashed rgba(242, 240, 232, 0.28);
  border-radius: 14px;
  color: var(--rm-muted);
  padding: 42px 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.rm-empty[hidden] {
  display: none;
}

/* Arrival, next action, and help panels --------------------------------- */

.rm-arrival,
.rm-next {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin: 18px 0 0;
  padding: 22px 24px;
}

.rm-arrival {
  border-color: rgba(60, 224, 181, 0.32);
  background: linear-gradient(135deg, rgba(60, 224, 181, 0.105), rgba(255, 255, 255, 0.035));
}

.rm-arrival-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(60, 224, 181, 0.55);
  border-radius: 50%;
  color: var(--rm-lime);
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
}

.rm-arrival-copy h3,
.rm-next-title {
  margin: 0;
  color: var(--rm-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
}

.rm-arrival-copy p,
.rm-next p {
  margin: 7px 0 0;
  color: var(--rm-muted);
  font-size: 13px;
  line-height: 1.5;
}

.rm-arrival-copy > label {
  display: block;
  margin-top: 8px;
  color: var(--rm-cream);
  font-size: 14px;
  font-weight: 700;
}

.rm-arrival-copy > div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
}

#rm-arrival-date {
  width: min(100%, 250px);
  min-height: 46px;
  border: 1px solid rgba(242, 240, 232, 0.34);
  border-radius: 0;
  color: var(--rm-cream);
  background: rgba(2, 13, 29, 0.72);
  padding: 10px 12px;
  color-scheme: dark;
  font: inherit;
  font-size: 16px;
}

#rm-arrival-date:hover {
  border-color: rgba(60, 224, 181, 0.65);
}

#rm-arrival-date:focus-visible {
  border-color: var(--rm-lime);
  outline: 3px solid rgba(60, 224, 181, 0.32);
  outline-offset: 2px;
}

.rm-nojs {
  margin-top: 24px;
  border: 1px solid rgba(217, 179, 124, 0.44);
  color: var(--rm-cream);
  background: rgba(217, 179, 124, 0.1);
  padding-block: 18px;
  font-size: 14px;
  line-height: 1.6;
}

html:not(.js) .rm-page .rm-overview,
html:not(.js) .rm-page .rm-toolbar,
html:not(.js) .rm-page .rm-hero-actions a[href="#roadmap-dashboard"] {
  display: none;
}

.rm-next {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 24px;
  border-color: rgba(217, 179, 124, 0.3);
}

.rm-next-actions {
  justify-content: flex-end;
}

.rm-overview-grid > .rm-next,
.rm-overview-grid > .rm-arrival {
  margin-top: 0;
}

.rm-help-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  align-items: end;
  gap: 32px;
  margin-top: clamp(42px, 6vw, 82px);
  border-color: rgba(217, 179, 124, 0.5);
  background:
    linear-gradient(125deg, rgba(217, 179, 124, 0.14), rgba(255, 255, 255, 0.035)),
    var(--rm-deep);
  padding: clamp(28px, 4vw, 50px);
  overflow: hidden;
}

.rm-help-card::after {
  content: "G";
  position: absolute;
  right: -9px;
  bottom: -54px;
  color: rgba(217, 179, 124, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 220px;
  font-style: italic;
  line-height: 1;
  pointer-events: none;
}

.rm-help-card > div {
  position: relative;
  z-index: 1;
}

.rm-help-card > div:first-child > :first-child {
  margin: 0 0 10px;
  color: var(--rm-lime);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 800;
}

.rm-help-card h2,
.rm-help-card h3 {
  max-width: 700px;
  margin: 0;
  color: var(--rm-cream);
  letter-spacing: -0.035em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 1;
}

.rm-help-card p {
  max-width: 650px;
  margin: 17px 0 0;
  color: var(--rm-muted);
  font-size: 14px;
  line-height: 1.6;
}

.rm-help-actions {
  position: relative;
  z-index: 2;
  justify-content: flex-end;
}

/* Celebration ----------------------------------------------------------- */

.rm-celebration {
  position: fixed;
  z-index: 100;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
  overflow: hidden;
}

.rm-celebration.is-active {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.rm-celebration-message {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: min(330px, calc(100vw - 40px));
  border: 1px solid var(--rm-gold);
  border-radius: 14px;
  color: var(--rm-cream);
  background: rgba(6, 22, 42, 0.97);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  padding: 22px 28px;
  text-align: center;
  transform: translate(-50%, -50%) scale(0.92);
  animation: rm-celebration-card 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rm-celebration-message strong {
  display: block;
  color: var(--rm-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}

.rm-celebration-message span {
  display: block;
  margin-top: 6px;
  color: var(--rm-muted);
  font-size: 12px;
}

.rm-confetti {
  position: absolute;
  inset: 0;
}

.rm-confetti-piece {
  --x: 50;
  --r: 180deg;
  --i: 0;
  position: absolute;
  top: -24px;
  left: calc(50% + var(--x));
  width: 8px;
  height: 15px;
  border-radius: 2px;
  background: var(--rm-gold);
  opacity: 0;
  transform: translate3d(0, -20px, 0) rotate(0);
}

.rm-celebration.is-active .rm-confetti-piece {
  animation: rm-confetti-fall 1250ms cubic-bezier(0.12, 0.7, 0.28, 1) calc(var(--i) * 22ms) both;
}

.rm-confetti-piece:nth-child(4n + 2) {
  --rm-drift: -8vw;
  background: var(--rm-lime);
}

.rm-confetti-piece:nth-child(4n + 3) {
  --rm-drift: 13vw;
  background: var(--rm-coral);
}

.rm-confetti-piece:nth-child(4n) {
  --rm-drift: -14vw;
  background: var(--rm-blue);
}

.rm-confetti-piece:nth-child(4n + 1) {
  --rm-drift: 7vw;
}

@keyframes rm-confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0) rotate(0);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--rm-drift, 7vw), 105vh, 0) rotate(var(--r));
  }
}

@keyframes rm-celebration-card {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
  }
  32%, 78% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -53%) scale(0.98);
  }
}

/* Focus and control states --------------------------------------------- */

.rm-page :is(a, button, input):focus-visible {
  outline: 3px solid var(--rm-gold);
  outline-offset: 3px;
}

.rm-search:focus-visible {
  border-color: var(--rm-gold);
  outline-offset: 1px !important;
}

.rm-check:focus-visible {
  outline-color: var(--rm-lime) !important;
}

.rm-page :is(button, a)[aria-disabled="true"],
.rm-page :is(button, a):disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Tablet --------------------------------------------------------------- */

@media (max-width: 1280px) {
  .rm-next {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .rm-next-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1080px) {
  .rm-hero-copy {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 42px;
  }

  .rm-overview-grid {
    grid-template-columns: 1fr;
  }

  .rm-progress-card {
    min-height: 0;
  }

  .rm-metric {
    min-height: 170px;
  }

  .rm-toolbar {
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .rm-results {
    grid-column: 1 / -1;
  }

  .rm-page .roadmap-tasks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 901px) and (max-width: 1000px) {
  .rm-route {
    top: 82px;
  }
}

@media (max-width: 860px) {
  .rm-shell {
    padding-inline: 5vw;
  }

  .rm-hero-copy {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 34px;
    min-height: 0;
    max-width: 1480px;
  }

  .rm-hero-route {
    min-height: 0;
  }

  .rm-hero-route-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rm-hero-route-list::before {
    top: 17px;
    right: 12.5%;
    bottom: auto;
    left: 12.5%;
    width: auto;
    height: 2px;
  }

  .rm-hero-route-list > li {
    min-height: 92px;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 12px;
    padding-inline: 7px;
    text-align: center;
  }

  .rm-hero-route-list > li::before {
    justify-self: center;
    margin: 11px 0 0;
  }

  .rm-route {
    margin-inline: 0;
    padding-inline: 5vw;
  }

  .rm-route-line {
    right: calc(12.5% + 5vw);
    left: calc(12.5% + 5vw);
  }

  .rm-station {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 7px;
    padding-inline: 6px;
  }

  .rm-station-dot {
    width: 26px;
    height: 26px;
  }

  .rm-station-copy strong {
    font-size: 11px;
  }

  .rm-station-copy small {
    display: none;
  }

  .rm-sequence-note {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rm-page .roadmap-step-head {
    grid-template-columns: 62px minmax(0, 1fr) auto auto;
  }

  .rm-page .roadmap-num {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .rm-page .roadmap-tasks {
    grid-template-columns: 1fr;
  }

  .rm-help-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .rm-help-actions {
    justify-content: flex-start;
  }
}

/* Mobile --------------------------------------------------------------- */

@media (max-width: 700px) {
  .rm-shell {
    padding: 28px 18px 72px;
  }

  .rm-hero-copy {
    gap: 30px;
    padding-top: 24px;
    padding-bottom: 42px;
  }

  .rm-hero::before {
    top: 23%;
    right: -40%;
    width: 120vw;
  }

  .rm-eyebrow {
    margin-bottom: 19px;
  }

  .rm-hero-title {
    font-size: clamp(46px, 14vw, 68px);
  }

  .rm-hero-lede {
    margin-top: 22px;
    font-size: 16px;
  }

  .rm-hero-actions,
  .rm-help-actions,
  .rm-next-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rm-hero-actions :is(a, button),
  .rm-help-actions :is(a, button),
  .rm-next-actions :is(a, button) {
    width: 100%;
  }

  .rm-hero-route {
    margin-inline: -2px;
    padding: 20px 13px 16px;
  }

  .rm-hero-route-list strong {
    font-size: 14px;
  }

  .rm-hero-route-list > li {
    font-size: 10px;
  }

  .rm-overview {
    margin: 0;
    padding-block: 36px;
  }

  .rm-progress-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
  }

  .rm-progress-ring {
    width: 92px;
  }

  .rm-progress-ring::before {
    inset: 8px;
  }

  .rm-progress-value {
    font-size: 25px;
  }

  .rm-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .rm-metric {
    min-height: 135px;
    gap: 18px;
    padding: 20px;
  }

  .rm-metric + .rm-metric {
    border-left: 0;
  }

  .rm-metric:nth-child(even) {
    border-left: 1px solid var(--rm-line);
  }

  .rm-metric:nth-child(n + 3) {
    border-top: 1px solid var(--rm-line);
  }

  .rm-metric:nth-child(3) {
    grid-column: 1 / -1;
  }

  .rm-deadline-grid {
    grid-template-columns: 1fr;
  }

  .rm-deadline-card {
    padding-right: 18px;
    padding-left: 66px;
  }

  .rm-deadline-card::before {
    left: 18px;
  }

  .rm-route {
    position: relative;
    top: auto;
    width: 100%;
    max-width: 100%;
    margin: 0 0 26px;
    padding: 10px 0 13px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .rm-stations {
    min-width: 620px;
    padding: 0 18px;
  }

  .rm-route-line {
    top: 31px;
    right: calc(12.5% + 18px);
    left: calc(12.5% + 18px);
  }

  .rm-station {
    min-height: 54px;
  }

  .rm-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    margin-inline: 0;
    padding: 11px;
  }

  .rm-filter-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rm-filter {
    border-radius: 8px;
  }

  .rm-results {
    white-space: normal;
  }

  .rm-sequence-note {
    padding: 22px 20px;
  }

  .rm-page .roadmap {
    gap: 14px;
  }

  .rm-page .roadmap-step {
    scroll-margin-top: 18px;
    border-radius: 13px;
  }

  .rm-page .roadmap-step-head {
    grid-template-columns: 48px minmax(0, 1fr) 44px;
    gap: 12px;
    padding: 22px 17px;
  }

  .rm-page .roadmap-num {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .rm-page .roadmap-step-head h2 {
    font-size: clamp(27px, 9vw, 38px);
  }

  .rm-page .roadmap-lede {
    font-size: 13px;
  }

  .rm-stage-status {
    display: none;
  }

  .rm-stage-body {
    padding: 0 15px 22px;
  }

  .rm-page .roadmap-flag {
    margin-top: 18px;
    padding: 14px;
  }

  .rm-page .roadmap-tasks {
    gap: 9px;
    margin-top: 18px;
  }

  .rm-task-shell {
    min-height: 106px;
  }

  .rm-page .rm-task-shell .roadmap-task {
    min-height: 104px;
    padding: 17px 16px;
  }

  .rm-task-shell:has(.rm-check) .roadmap-task,
  .rm-task-shell.has-check .roadmap-task {
    padding-left: 2px;
  }

  .rm-task-shell:has(.rm-check),
  .rm-task-shell.has-check {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .rm-check {
    width: 40px;
    height: 40px;
  }

  .rm-page .roadmap-task-name {
    font-size: 17px;
  }

  .roadmap-step.is-complete::after {
    content: "✓";
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 0;
    font-size: 11px;
    transform: none;
  }

  .rm-arrival,
  .rm-next {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .rm-next-actions {
    justify-content: stretch;
  }

  .rm-help-card {
    padding: 26px 20px;
  }

  .rm-help-card h2,
  .rm-help-card h3 {
    font-size: clamp(32px, 11vw, 48px);
  }
}

@media (max-width: 420px) {
  .rm-page .nav .brand-name {
    display: none;
  }

  .rm-arrival-copy > div {
    align-items: stretch;
    flex-direction: column;
  }

  #rm-arrival-date {
    width: 100%;
  }

  .rm-arrival-copy .rm-clear {
    align-self: flex-start;
  }

  .rm-progress-card {
    grid-template-columns: 1fr;
  }

  .rm-progress-ring {
    width: 102px;
  }

  .rm-metrics {
    grid-template-columns: 1fr;
  }

  .rm-metric:nth-child(even) {
    border-left: 0;
  }

  .rm-metric + .rm-metric {
    border-top: 1px solid var(--rm-line);
  }

  .rm-page .roadmap-step-head {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 9px;
    padding-inline: 13px;
  }

  .rm-page .roadmap-num {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}

/* Motion preferences ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .rm-page *,
  .rm-page *::before,
  .rm-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .rm-celebration .rm-confetti {
    display: none;
  }

  .rm-celebration-message {
    animation: none;
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Windows high-contrast / forced colors -------------------------------- */

@media (forced-colors: active) {
  .rm-page,
  .rm-page .home-buy,
  .rm-progress-card,
  .rm-metrics,
  .rm-arrival,
  .rm-next,
  .rm-help-card,
  .rm-sequence-note,
  .rm-page .roadmap-step,
  .rm-task-shell,
  .rm-toolbar,
  .rm-hero-route {
    color: CanvasText;
    background: Canvas;
    box-shadow: none;
  }

  .rm-route {
    color: CanvasText;
    background: Canvas;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .rm-route-fill,
  .rm-native-progress::-webkit-progress-value,
  .rm-native-progress::-moz-progress-bar,
  .rm-station.is-complete .rm-station-dot,
  .rm-stations > li.is-complete .rm-station-dot,
  .rm-check[aria-pressed="true"],
  .rm-task-shell.is-complete .rm-check {
    color: HighlightText;
    background: Highlight;
  }

  .rm-page :is(a, button, input):focus-visible {
    outline-color: Highlight;
  }

  .rm-stage-status,
  .rm-filter,
  .rm-check,
  .rm-station-dot,
  .rm-search,
  .rm-deadline-card,
  .rm-page .roadmap-flag {
    border-color: CanvasText;
  }

  .rm-task-shell.is-hidden,
  .rm-task-shell[hidden] {
    display: none !important;
  }
}

/* Print ---------------------------------------------------------------- */

@media print {
  @page {
    margin: 14mm;
  }

  .rm-page,
  .rm-page .home-buy {
    min-height: 0;
    color: #000;
    background: #fff !important;
  }

  .rm-page .nav,
  .rm-page .site-footer,
  .rm-hero-actions,
  .rm-hero-route,
  .rm-route,
  .rm-toolbar,
  .rm-check,
  .rm-reset,
  .rm-clear,
  .rm-help-actions,
  .rm-next-actions,
  .rm-celebration,
  .rm-stage-toggle,
  .rm-storage-note {
    display: none !important;
  }

  .rm-shell {
    width: 100%;
    padding: 0;
  }

  .rm-hero {
    min-height: 0;
    display: block;
    border-bottom: 2px solid #000;
    padding: 0 0 10mm;
  }

  .rm-eyebrow,
  .rm-hero-title,
  .rm-hero-title em,
  .rm-hero-lede,
  .rm-progress-copy h2,
  .rm-progress-copy h3,
  .rm-metric strong,
  .rm-page .roadmap-step-head h2,
  .rm-page .roadmap-task-name,
  .rm-help-card :is(h2, h3),
  .rm-help-card p,
  .rm-page .roadmap-flag p,
  .rm-page .roadmap-flag strong {
    color: #000 !important;
  }

  .rm-overview {
    margin: 8mm 0;
  }

  .rm-overview-grid {
    display: block;
  }

  .rm-progress-card,
  .rm-metrics,
  .rm-help-card,
  .rm-sequence-note,
  .rm-page .roadmap-step,
  .rm-task-shell,
  .rm-page .roadmap-flag {
    color: #000;
    background: #fff !important;
    border-color: #777 !important;
    box-shadow: none;
  }

  .rm-progress-card {
    display: block;
    min-height: 0;
  }

  .rm-progress-ring {
    display: none;
  }

  .rm-metrics {
    margin-top: 4mm;
  }

  .rm-metric {
    min-height: 0;
    gap: 4mm;
    padding: 5mm;
  }

  .rm-deadline-grid {
    break-inside: avoid;
  }

  .rm-page .roadmap {
    display: block;
  }

  .rm-page .roadmap-step {
    break-inside: avoid;
    margin: 0 0 7mm;
    overflow: visible;
  }

  .rm-stage-body,
  .js .rm-page .roadmap-step.is-collapsed .rm-stage-body,
  .rm-page.is-enhanced .roadmap-step.is-collapsed .rm-stage-body {
    display: block !important;
  }

  .rm-page .roadmap-step[data-filtered="true"],
  .rm-task-shell.is-hidden,
  .rm-task-shell[hidden] {
    display: grid !important;
  }

  .rm-page .roadmap-step-head {
    grid-template-columns: 15mm minmax(0, 1fr);
    padding: 5mm;
  }

  .rm-stage-status,
  .roadmap-step.is-complete::after {
    display: none;
  }

  .rm-stage-body {
    padding: 0 5mm 5mm;
  }

  .rm-page .roadmap-tasks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2mm;
  }

  .rm-task-shell,
  .rm-task-shell:has(.rm-check),
  .rm-task-shell.has-check {
    min-height: 0;
    display: block !important;
  }

  .rm-page .rm-task-shell .roadmap-task,
  .rm-task-shell:has(.rm-check) .roadmap-task,
  .rm-task-shell.has-check .roadmap-task {
    min-height: 0;
    color: #000;
    padding: 4mm;
  }

  .rm-page .roadmap-task-why,
  .rm-page .roadmap-task:hover .roadmap-task-why,
  .rm-task-shell.is-complete .roadmap-task-why {
    color: #333;
  }

  .rm-task-shell.is-complete .roadmap-task-name {
    color: #000;
  }

  .rm-task-action {
    display: none;
  }

  .rm-help-card {
    break-inside: avoid;
  }
}
