/* The playwipeday.com roadmap. Loaded after /styles.css, whose tokens, header and footer it shares. */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Page head ---- */

.rm-head {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(61, 99, 255, .07) 58% 72%, transparent 72%),
    var(--ink-1);
  padding: 48px 0 40px;
}
.rm-title {
  display: flex; align-items: center; gap: 14px;
  margin: 0; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.02;
  font-weight: 900; font-stretch: 112%; letter-spacing: -.015em; text-transform: uppercase;
}
.rm-title svg { width: 48px; height: 48px; color: var(--blue-text); flex: none; stroke-width: 1.8; }
.rm-lede { margin: 14px 0 0; max-width: 62ch; color: var(--text-2); font-size: 19px; }
.rm-note { margin: 10px 0 0; max-width: 72ch; color: var(--text-3); font-size: 15px; }

/* ---- The track: every version in a row ---- */

.rm-track-wrap { padding-top: 28px; padding-bottom: 8px; }
.rm-track {
  list-style: none; margin: 0; padding: 0 0 6px;
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; position: relative;
}
.rm-stop { position: relative; flex: 1 0 96px; min-width: 96px; }
/* The rail runs through every dot; it's solid as far as the version being built. */
.rm-stop::before {
  content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 3px;
  background: var(--line-hi);
}
.rm-stop:first-child::before { left: 50%; }
.rm-stop:last-child::before { right: 50%; }
.rm-stop--done::before { background: var(--green); }
.rm-stop--now::before { background: linear-gradient(90deg, var(--green) 50%, var(--line-hi) 50%); }
.rm-stop a {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 8px 10px; text-decoration: none; text-align: center; border-radius: 12px;
}
.rm-stop a:hover { background: var(--ink-1); }
.rm-stop__dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink-0); border: 3px solid var(--line-hi); margin-bottom: 4px;
}
.rm-stop--done .rm-stop__dot { background: var(--green); border-color: var(--green); }
.rm-stop--now .rm-stop__dot {
  background: var(--orange); border-color: var(--orange);
  box-shadow: 0 0 0 6px rgba(255, 122, 61, .22);
}
.rm-stop__id { font-weight: 850; font-size: 19px; font-feature-settings: "tnum"; font-stretch: 105%; }
.rm-stop__name { color: var(--text-2); font-size: 14px; font-weight: 600; line-height: 1.3; }
.rm-stop--next .rm-stop__id, .rm-stop--later .rm-stop__id { color: var(--text-3); }
.rm-stop__here {
  margin-top: 4px; padding: 3px 9px; border-radius: 8px;
  background: rgba(255, 122, 61, .14); color: #ffb38f;
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}

/* ---- The line of versions ---- */

.rm-line { position: relative; padding-top: 28px; padding-bottom: 88px; }
.rm-ver {
  position: relative; margin-left: 34px; padding: 0 0 0 40px;
}
/* The vertical rail on the left, through every version's node. */
.rm-ver::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--line-hi); transform: translateX(-1.5px);
}
.rm-ver--done::before { background: var(--green); }
.rm-ver--now::before { background: linear-gradient(var(--green) 30px, var(--line-hi) 30px); }
.rm-ver:last-child::before { bottom: auto; height: 30px; }
.rm-ver + .rm-ver { padding-top: 0; }
.rm-ver__node {
  position: absolute; left: 0; top: 18px; width: 24px; height: 24px; border-radius: 50%;
  transform: translateX(-50%);
  background: var(--ink-0); border: 3px solid var(--line-hi);
}
.rm-ver--done .rm-ver__node { background: var(--green); border-color: var(--green); }
.rm-ver--now .rm-ver__node { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 7px rgba(255, 122, 61, .2); }

.rm-ver > .rm-ver__head, .rm-ver > .rm-ver__body {
  background: var(--ink-1); border: 1px solid var(--line);
}
.rm-ver__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  padding: 16px 24px 12px; border-bottom: 0 !important;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.rm-ver__id {
  font-weight: 900; font-size: 34px; line-height: 1; font-stretch: 105%;
  font-feature-settings: "tnum"; color: var(--blue-text);
}
.rm-ver--done .rm-ver__id { color: var(--green); }
.rm-ver--now .rm-ver__id { color: var(--orange); }
.rm-ver--later .rm-ver__id { color: var(--text-3); }
.rm-ver__name {
  margin: 0; font-weight: 850; font-stretch: 108%; font-size: 26px; line-height: 1.15;
  text-transform: uppercase; letter-spacing: -.005em;
}
.rm-ver__badge {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto; align-self: center;
  font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2);
}
.rm-ver--done .rm-ver__badge { color: var(--green); }
.rm-ver--now .rm-ver__badge { color: #ffb38f; }
.rm-ver__when { flex-basis: 100%; color: var(--text-3); font-size: 14.5px; font-weight: 650; }

.rm-ver__body {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px;
  padding: 4px 24px 24px; margin-bottom: 28px;
  border-top: 0 !important; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.rm-ver__body--shot { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.rm-ver--now > .rm-ver__head, .rm-ver--now > .rm-ver__body { border-color: rgba(255, 122, 61, .55); }
.rm-ver--now > .rm-ver__head { box-shadow: inset 0 3px 0 var(--orange); }
.rm-ver--later > .rm-ver__head, .rm-ver--later > .rm-ver__body { background: transparent; border-style: dashed; }

.rm-ver__summary { margin: 0; max-width: 68ch; color: var(--text-2); font-size: 17.5px; }
.rm-ver__shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-frame); }
.rm-ver__shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.rm-group { margin-top: 18px; }
.rm-group__title {
  margin: 0 0 8px; color: var(--text-3);
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.rm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rm-list > li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.45; }
.rm-list:not(.rm-list--state) > li::before {
  content: ""; position: absolute; left: 2px; top: .58em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
}
.rm-ver--next .rm-list:not(.rm-list--state) > li::before,
.rm-ver--later .rm-list:not(.rm-list--state) > li::before { background: var(--text-3); }

.rm-list--state > li { display: flex; gap: 10px; padding-left: 0; }
.rm-item__mark {
  flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 5px;
  border: 2px solid var(--text-3); display: grid; place-items: center;
}
.rm-item__mark svg { width: 13px; height: 13px; stroke-width: 3; color: var(--ink-0); }
.rm-item--done .rm-item__mark { background: var(--green); border-color: var(--green); }
.rm-item--done .rm-item__text { color: var(--text-2); }
.rm-item--doing .rm-item__mark { border-color: var(--orange); background: linear-gradient(90deg, var(--orange) 50%, transparent 50%); }

.rm-progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; max-width: 420px; }
.rm-progress__bar {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 8px; border: 0; border-radius: 6px; background: var(--ink-3); overflow: hidden; color: var(--orange);
}
.rm-progress__bar::-webkit-progress-bar { background: var(--ink-3); border-radius: 6px; }
.rm-progress__bar::-webkit-progress-value { background: var(--orange); border-radius: 6px; }
.rm-progress__bar::-moz-progress-bar { background: var(--orange); border-radius: 6px; }
.rm-progress__text { font-size: 13.5px; font-weight: 750; color: #ffb38f; white-space: nowrap; }

@media (max-width: 1000px) {
  .rm-ver__body--shot { grid-template-columns: minmax(0, 1fr); }
  .rm-ver__shot { order: -1; }
}

@media (max-width: 760px) {
  .rm-head { padding: 32px 0 28px; }
  .rm-title svg { width: 38px; height: 38px; }
  .rm-lede { font-size: 17px; }
  .rm-stop { flex-basis: 92px; min-width: 92px; }
  .rm-ver { margin-left: 12px; padding-left: 24px; }
  .rm-ver__node { width: 20px; height: 20px; top: 16px; }
  .rm-ver__head { padding: 14px 16px 10px; }
  .rm-ver__body { padding: 4px 16px 18px; }
  .rm-ver__id { font-size: 28px; }
  .rm-ver__name { font-size: 21px; }
  .rm-ver__badge { margin-left: 0; flex-basis: 100%; }
}
