/* Scoped redesign for roadmap.php. */
body.sub-page .page-wrap.roadmap-flow-page {
  width: min(960px, calc(100% - 2rem));
  max-width: 960px;
  margin-top: 2rem;
  color: var(--text);
  overflow-x: clip;
}

.roadmap-flow-page .page-breadcrumb {
  margin-bottom: 2.4rem;
}

.road-flow-hero {
  padding: 0.7rem 0 2.8rem;
  border-bottom: 1px solid rgba(255, 194, 58, 0.18);
}

.road-flow-kicker,
.road-step-label,
.road-step-side-title {
  margin: 0 0 0.72rem;
  color: rgba(255, 194, 58, 0.82);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
}

.road-flow-hero h1 {
  max-width: 100%;
  margin: 0;
  color: #fff4c9;
  font-family: var(--display-font);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.road-flow-lead {
  max-width: 46rem;
  margin: 1.2rem 0 0;
  color: rgba(255, 244, 201, 0.78);
  font-size: 1.08rem;
  line-height: 1.75;
}

.road-flow-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2.2rem 0 0;
  border-top: 1px solid rgba(255, 194, 58, 0.16);
  border-bottom: 1px solid rgba(255, 194, 58, 0.16);
}

.road-flow-meta span {
  min-height: 3.55rem;
  display: flex;
  align-items: center;
  padding: 0.72rem 1rem;
  color: rgba(255, 244, 201, 0.86);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.35;
  border-right: 1px solid rgba(255, 194, 58, 0.14);
}

.road-flow-meta span:last-child {
  border-right: 0;
}

.road-flow-actions,
.road-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.road-flow-actions a {
  color: #ffd28a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 210, 138, 0.45);
}

.road-flow-actions a:hover,
.road-flow-actions a:focus-visible {
  color: #fff4c9;
  border-color: #fff4c9;
}

.road-section {
  padding: 3.3rem 0;
  border-bottom: 1px solid rgba(255, 194, 58, 0.14);
}

.road-section-heading {
  max-width: 42rem;
  margin-bottom: 1.7rem;
}

.road-section-heading h2,
.road-final h2 {
  margin: 0;
  color: #fff4c9;
  font-family: var(--display-font);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.road-rule-grid,
.road-week-grid,
.road-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 194, 58, 0.16);
  background: rgba(255, 194, 58, 0.16);
}

.road-rule,
.road-week-item,
.road-resource-group {
  min-width: 0;
  padding: 1.28rem;
  background: #14100b;
}

.road-rule h3,
.road-week-item h3,
.road-resource-group h3 {
  margin: 0 0 0.6rem;
  color: #fff4c9;
  font-size: 1.02rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.road-rule p,
.road-week-item p,
.road-resource-group li,
.road-step-goal,
.road-step-work li,
.road-step-side p,
.road-faq-list p,
.road-final p {
  color: rgba(255, 244, 201, 0.74);
  font-size: 0.98rem;
  line-height: 1.68;
}

.road-rule p,
.road-week-item p,
.road-step-side p,
.road-faq-list p,
.road-final p {
  margin: 0;
}

.roadmap-flow-page p,
.roadmap-flow-page li,
.roadmap-flow-page h1,
.roadmap-flow-page h2,
.roadmap-flow-page h3,
.roadmap-flow-page a,
.roadmap-flow-page span {
  overflow-wrap: anywhere;
}

.road-steps {
  position: relative;
}

.road-steps::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 1.35rem;
  width: 1px;
  background: rgba(255, 194, 58, 0.2);
}

.road-step {
  position: relative;
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 0 0 2.8rem;
}

.road-step + .road-step {
  padding-top: 0.15rem;
}

.road-step:last-child {
  padding-bottom: 0;
}

.road-step-marker {
  position: sticky;
  top: 5rem;
  z-index: 1;
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  color: #14100b;
  background: #ffc23a;
  border: 1px solid rgba(255, 244, 201, 0.35);
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.road-step-content {
  min-width: 0;
  padding: 0 0 2.8rem;
  border-bottom: 1px solid rgba(255, 194, 58, 0.16);
}

.road-step:last-child .road-step-content {
  padding-bottom: 0;
  border-bottom: 0;
}

.road-step-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.road-step-header h3 {
  margin: 0;
  color: #fff4c9;
  font-family: var(--display-font);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.road-step-header > span {
  flex: 0 0 auto;
  max-width: 10rem;
  padding-top: 0.18rem;
  color: rgba(255, 210, 138, 0.86);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: right;
  text-transform: uppercase;
}

.road-step-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.48fr);
  gap: 2rem;
  align-items: start;
}

.road-step-goal {
  max-width: 44rem;
  margin: 0 0 1.1rem;
}

.road-step-work {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding-left: 1.35rem;
}

.road-step-work li::marker {
  color: rgba(255, 194, 58, 0.95);
  font-family: "IBM Plex Mono", monospace;
}

.road-step-side {
  min-width: 0;
  padding: 0.1rem 0 0.1rem 1.2rem;
  border-left: 1px solid rgba(255, 194, 58, 0.22);
}

.road-step-side .road-step-side-title {
  margin-top: 1.1rem;
  margin-bottom: 0.36rem;
}

.road-step-side .road-step-side-title:first-child {
  margin-top: 0;
}

.road-week-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.road-resource-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.road-resource-group ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.05rem;
}

.road-resource-group li::marker {
  color: rgba(255, 194, 58, 0.82);
}

.road-faq-list {
  border-top: 1px solid rgba(255, 194, 58, 0.16);
}

.road-faq-list details {
  border-bottom: 1px solid rgba(255, 194, 58, 0.16);
}

.road-faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  color: #fff4c9;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  position: relative;
}

.road-faq-list summary::-webkit-details-marker {
  display: none;
}

.road-faq-list summary::after {
  content: "+";
  position: absolute;
  top: 1.08rem;
  right: 0;
  color: rgba(255, 194, 58, 0.9);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
}

.road-faq-list details[open] summary::after {
  content: "-";
}

.road-faq-list p {
  max-width: 46rem;
  padding: 0 0 1.15rem;
}

.road-final {
  padding: 3.3rem 0 0.5rem;
}

.road-final p {
  max-width: 44rem;
  margin-top: 1rem;
}

.road-section-heading .road-flow-kicker,
.road-final > .road-flow-kicker {
  color: rgba(255, 244, 201, 0.74);
  font-size: 0.98rem;
  line-height: 1.68;
}

.road-final .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 194, 58, 0.35);
  color: #fff4c9;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.road-final .btn.primary {
  color: #14100b;
  background: #ffc23a;
  border-color: #ffc23a;
}

.road-final .btn.secondary {
  background: rgba(255, 194, 58, 0.06);
}

.road-final .btn:hover,
.road-final .btn:focus-visible {
  color: #14100b;
  background: #fff4c9;
  border-color: #fff4c9;
}

@media (max-width: 860px) {
  html,
  body {
    overflow-x: hidden;
  }

  body.sub-page .page-wrap.roadmap-flow-page {
    width: min(100% - 1.25rem, 960px);
    max-width: calc(100vw - 1.25rem);
    margin-top: 1.4rem;
  }

  .roadmap-flow-page .page-breadcrumb {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    white-space: normal;
  }

  .road-flow-hero,
  .road-section,
  .road-final,
  .road-rule-grid,
  .road-week-grid,
  .road-resource-grid,
  .road-steps,
  .road-step-content,
  .road-step-main,
  .road-step-side {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .road-flow-hero {
    padding-bottom: 2.4rem;
  }

  .road-flow-hero h1 {
    max-width: 100%;
    font-size: 1.85rem;
    line-height: 1.08;
  }

  .road-flow-lead {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.65;
  }

  .road-flow-meta,
  .road-rule-grid,
  .road-week-grid,
  .road-resource-grid {
    grid-template-columns: 1fr;
  }

  .road-flow-meta span {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 194, 58, 0.14);
  }

  .road-flow-meta span:last-child {
    border-bottom: 0;
  }

  .road-flow-actions a {
    width: fit-content;
    max-width: 100%;
  }

  .road-section {
    padding: 2.6rem 0;
  }

  .road-section-heading h2,
  .road-final h2 {
    font-size: 1.85rem;
    line-height: 1.12;
  }

  .road-step {
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 1rem;
  }

  .road-steps::before {
    left: 1.17rem;
  }

  .road-step-marker {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 0.74rem;
    position: relative;
    top: auto;
  }

  .road-step-header {
    display: grid;
    gap: 0.5rem;
  }

  .road-step-header h3 {
    font-size: 1.45rem;
  }

  .road-step-header > span {
    max-width: none;
    text-align: left;
  }

  .road-step-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .road-step-side {
    padding-left: 0;
    padding-top: 1rem;
    border-left: 0;
    border-top: 1px solid rgba(255, 194, 58, 0.18);
  }
}

@media (max-width: 520px) {
  body.sub-page .page-wrap.roadmap-flow-page {
    width: calc(100% - 1.25rem);
    max-width: calc(100vw - 1.25rem);
  }

  .road-flow-hero h1 {
    max-width: calc(100vw - 1.25rem);
    font-size: 1.85rem;
    line-height: 1.12;
  }

  .road-flow-actions,
  .road-final-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .road-final .btn {
    width: 100%;
  }

  .road-rule,
  .road-week-item,
  .road-resource-group {
    padding: 1.05rem;
  }

  .road-step {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .road-steps::before {
    display: none;
  }
}
