/* Development roadmap shared by the studio and file-based game pages. */
.s-site .s-roadmap {
  --rm-ink: #1a201e;
  --rm-muted: #515951;
  --rm-paper: #fdfbf5;
  --rm-line: #d5cfc1;
  --rm-accent: #ff8e77;
  --rm-active: #983a2b;
  --rm-active-surface: #fff0e9;
  --rm-done: #315a45;
  --rm-pad: clamp(20px, 4.4vw, 62px);
  max-width: 1440px;
  padding: clamp(22px, 4vw, 50px) clamp(16px, 5vw, 76px) clamp(38px, 6vw, 78px);
  color: var(--rm-ink);
}

.s-view-roadmap .s-roadmap {
  --rm-art: url('/images/greyrail-atmosphere.webp');
  --rm-mobile-art-position: 83% 39%;
}

.s-site .gp-roadmap-native {
  --rm-active: #77420a;
  --rm-active-surface: #fff3dd;
  border-top: 1px solid var(--rm-line);
}

.s-site .s-roadmap .s-page-title {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  min-height: clamp(310px, 31vw, 404px);
  margin: 0;
  padding: var(--rm-pad);
  border: 1px solid #292e2c;
  border-radius: 12px;
  color: #fdfaf1;
  background: #171b19;
}

.s-roadmap .s-page-title::before {
  position: absolute;
  inset: 0 0 0 31%;
  z-index: -1;
  content: '';
  background:
    linear-gradient(90deg, #171b19 0%, #171b1966 27%, transparent 63%),
    linear-gradient(0deg, #171b1980, transparent 54%),
    var(--rm-art, none) center 53% / cover no-repeat;
}

.s-site .s-roadmap .s-page-title > .s-eyebrow {
  gap: 10px;
  color: var(--rm-accent);
  font-size: .75rem;
  letter-spacing: .16em;
}

.s-roadmap .s-page-title > .s-eyebrow::before {
  background: currentColor;
}

.s-site .s-roadmap .s-page-title :is(h1, h2) {
  margin: 12px 0 0;
  max-width: 100%;
  font-family: StudioDisplay, 'Arial Narrow', sans-serif;
  font-size: clamp(3.05rem, 6.6vw, 6.25rem);
  font-weight: 700;
  line-height: .93;
  letter-spacing: -.025em;
  color: inherit;
  overflow-wrap: anywhere;
}

.s-site .s-roadmap .s-page-title > p {
  max-width: 39ch;
  margin: 20px 0 0;
  padding: 0;
  color: #e1e3dc;
  font-size: .9375rem;
  line-height: 1.6;
}

.s-site .s-roadmap .s-roadmap-current {
  align-items: center;
  gap: 8px 16px;
  min-height: 58px;
  margin: 18px 0 12px;
  padding: 10px clamp(12px, 2.25vw, 24px);
  border: 1px solid var(--rm-line);
  border-inline-start: 3px solid var(--rm-active);
  border-radius: 6px;
  background: var(--rm-paper);
}

.s-roadmap .s-roadmap-current > div { gap: 4px 16px; }

.s-roadmap .s-current-label,
.s-roadmap .s-roadmap-current > span {
  color: var(--rm-muted);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.s-roadmap .s-current-label::before {
  flex: none;
  background: var(--rm-active);
  box-shadow: 0 0 0 3px var(--rm-active-surface);
}

.s-roadmap .s-roadmap-current strong {
  font-size: .9375rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.s-site .s-roadmap .s-milestones { margin: 0 0 26px; }
.s-site .s-roadmap .s-page-title + :is(.s-milestones, .s-development-detail) { margin-top: 18px; }
.s-site .s-roadmap .s-milestones[hidden] + .s-development-detail,
.s-site .gp-roadmap-native:not(.rm-ready) .s-milestones + .s-development-detail { margin-top: 18px; }

.s-roadmap .s-milestones ol {
  grid-template-columns: repeat(var(--rm-stage-count, 4), minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.s-roadmap .s-milestone-line {
  inset: 42px 14px auto;
  width: auto;
  height: 1px;
  background: var(--rm-line);
}

.s-roadmap .s-milestone-line > span {
  width: var(--completed);
  height: 100%;
  background: var(--rm-done);
}

.s-roadmap .s-route-signal { display: none; }

.s-roadmap .s-milestone {
  --rm-state: #5b6258;
  --rm-state-bg: #eeece3;
  min-width: 0;
}

.s-roadmap .s-milestone-complete {
  --rm-state: var(--rm-done);
  --rm-state-bg: #e7eee3;
}

.s-roadmap .s-milestone-in-progress {
  --rm-state: var(--rm-active);
  --rm-state-bg: var(--rm-active-surface);
}

.s-roadmap .s-milestone button {
  position: relative;
  flex-flow: row nowrap;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  height: 100%;
  min-height: 86px;
  padding: 12px clamp(9px, 1.35vw, 21px);
  border: 1px solid var(--rm-line);
  border-radius: 8px;
  background: var(--rm-paper);
  color: var(--rm-ink);
  cursor: pointer;
}

.s-roadmap .s-milestone-in-progress button { border-top: 2px solid var(--rm-active); }

.s-roadmap .s-milestone button:hover { border-color: var(--rm-state); }

.s-site .s-roadmap .s-milestone button[aria-pressed='true'] {
  border-color: #222824;
  background: #222824;
  color: #fcfaf2;
  box-shadow: inset 0 -3px var(--rm-accent);
}

.s-roadmap :is(button, a):focus-visible {
  outline: 2px solid var(--rm-active);
  outline-offset: 3px;
}

.s-site .s-roadmap .s-milestone .s-milestone-circle {
  flex: 0 0 auto;
  width: clamp(31px, 3.8vw, 46px);
  height: clamp(31px, 3.8vw, 46px);
  border: 1px solid color-mix(in srgb, var(--rm-state), transparent 70%);
  background: var(--rm-state-bg);
  color: var(--rm-state);
  box-shadow: none;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.s-roadmap .s-milestone-circle svg { width: 17px; height: 17px; }

.s-site .s-roadmap .s-milestone button[aria-pressed='true'] .s-milestone-circle {
  border-color: var(--rm-accent);
  background: var(--rm-accent);
  color: #222824;
}

.s-site .s-roadmap .s-milestone :is(.s-milestone-circle, .s-milestone-label)::before,
.s-site .s-roadmap .s-milestone :is(.s-milestone-circle, .s-milestone-label)::after { content: none; }

.s-site .s-roadmap .s-milestone-label {
  gap: 4px;
  min-width: 0;
  padding: 0;
  text-align: start;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.s-roadmap .s-milestone-label strong { font-size: .875rem; font-weight: 800; }

.s-roadmap .s-milestone-label small {
  color: var(--rm-state);
  font-size: .6875rem;
  font-weight: 750;
}

.s-roadmap .s-milestone button[aria-pressed='true'] small { color: #dddcd1; }

.s-site .s-roadmap .s-development-detail {
  --rm-panel-pad: clamp(16px, 3.5vw, 44px);
  min-height: 0;
  padding: 0;
  border: 1px solid var(--rm-line);
  border-radius: 10px;
  background: var(--rm-paper);
}

.s-roadmap .s-development-copy {
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr);
  gap: clamp(22px, 4.5vw, 68px);
  padding: var(--rm-panel-pad);
}

.s-site .s-roadmap .s-development-copy > div:first-child {
  min-width: 0;
  padding-inline-start: clamp(12px, 1.5vw, 22px);
  border: 0;
  border-inline-start: 2px solid var(--rm-active);
}

.s-roadmap .s-development-copy .s-eyebrow {
  color: var(--rm-active);
  font-size: .6875rem;
  letter-spacing: .12em;
}

.s-site .s-roadmap .s-development-copy :is(h2, h3) {
  max-width: 18ch;
  margin: 10px 0 0;
  font-family: StudioDisplay, 'Arial Narrow', sans-serif;
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  font-weight: 700;
  line-height: .98;
  overflow-wrap: anywhere;
}

.s-site .s-roadmap .s-detail-status {
  --rm-status: var(--rm-muted);
  --rm-status-bg: #eeece3;
  min-height: 27px;
  margin: 14px 0 0;
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--rm-status-bg);
  color: var(--rm-status);
  font-size: .6875rem;
  font-weight: 800;
}

.s-site .s-roadmap .s-detail-status-complete {
  --rm-status: var(--rm-done);
  --rm-status-bg: #e7eee3;
}

.s-site .s-roadmap .s-detail-status-in-progress {
  --rm-status: var(--rm-active);
  --rm-status-bg: var(--rm-active-surface);
}

.s-roadmap .s-detail-status i { background: currentColor; }

.s-site .s-roadmap .s-development-copy > div:last-child > p:first-child {
  max-width: 63ch;
  margin: 0;
  font-size: .9375rem;
  line-height: 1.7;
}

.s-roadmap .s-focus { margin: 16px 0 0 !important; }

.s-site .s-roadmap .s-focus li {
  align-items: flex-start;
  gap: 12px;
  min-height: 0;
  padding: 12px 0;
  border-color: var(--rm-line);
  font-size: .875rem;
  line-height: 1.58;
  text-align: start;
  overflow-wrap: anywhere;
}

.s-site .s-roadmap .s-focus li > svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--rm-active);
  stroke-width: 1.7;
}

.s-site .s-roadmap .s-detail-note {
  max-width: 65ch;
  margin: 20px 0 0;
  padding: 12px 14px;
  border-inline-start: 2px solid var(--rm-active);
  color: var(--rm-muted);
  background: #f2eee4;
  font-size: .8125rem;
  line-height: 1.65;
}

.s-roadmap .gp-rm-panel[hidden],
.s-roadmap .s-milestones[hidden],
.s-roadmap .s-development-controls[hidden],
.gp-roadmap-native:not(.rm-ready) .s-milestones { display: none; }

.s-roadmap:not(.rm-ready) .gp-rm-panel + .gp-rm-panel { border-top: 1px solid var(--rm-line); }

.s-roadmap .gp-rm-groups { display: grid; align-content: start; gap: 24px; }
.s-roadmap .gp-rm-group .s-focus { margin-top: 0 !important; }

.s-roadmap .gp-rm-group-title {
  margin: 0;
  color: var(--rm-active);
  font: 800 .75rem/1.5 StudioSans, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.s-site .s-roadmap .s-development-detail > .s-development-controls {
  gap: 12px 16px;
  margin-top: auto;
  padding: 12px var(--rm-panel-pad);
  border-top: 1px solid var(--rm-line);
  background: #f5f1e8;
  border-radius: 0 0 9px 9px;
}

.s-site .s-roadmap .s-development-controls > .s-text-link { color: var(--rm-ink); font-size: .8125rem; }
.s-site .s-roadmap .s-development-controls > div { gap: clamp(6px, 1.6vw, 16px); }
.s-site .s-roadmap .s-development-controls > div > span { color: var(--rm-muted); font-size: .75rem; }

.s-site .s-roadmap .s-development-controls .s-icon-button {
  width: 44px;
  height: 44px;
  border-radius: 5px;
  background: var(--rm-paper);
  color: var(--rm-ink);
}

.s-site .s-roadmap .s-development-controls .s-icon-button:hover { background: var(--rm-ink); color: #fff; }

.s-site .s-roadmap .s-roadmap-note {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  color: var(--rm-muted);
  font-size: .75rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .s-site .s-roadmap .s-page-title { min-height: 330px; }
  .s-roadmap .s-page-title::before {
    inset: 0;
    background:
      linear-gradient(90deg, #171b194d, transparent 78%),
      linear-gradient(0deg, #171b19 0%, #171b19f2 29%, #171b1955 74%, #171b191a),
      var(--rm-art, none) var(--rm-mobile-art-position, 58% 39%) / cover no-repeat;
  }
  .s-site.s-view-roadmap .s-roadmap .s-page-title h1 { font-size: clamp(2rem, 10.55vw, 3.05rem); }
  .s-site .s-roadmap .s-page-title > p { margin-top: 15px; font-size: .875rem; }
  .s-roadmap .s-development-copy { grid-template-columns: minmax(0, 1fr); }
  .s-roadmap .s-milestones ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .s-roadmap .s-milestone-line { display: none; }
  .s-roadmap .s-milestone button { min-height: 67px; }
}

@media (max-width: 370px) {
  .s-site .s-roadmap .s-page-title :is(h1, h2) { font-size: clamp(2.25rem, 12.7vw, 3rem); }
  .s-roadmap .s-milestone-label strong { font-size: .8125rem; }
}
