.railbound-guide {
  --guide-max-copy: 70ch;
  --guide-section-gap: clamp(3rem, 6vw, 5rem);
  --guide-media-radius: var(--radius-medium);
  --guide-media-border: var(--border-width) solid var(--border-color);
}

.railbound-guide .guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem);
  position: relative;
}

.railbound-guide .guide-hero__content {
  min-width: 0;
}

.railbound-guide .guide-hero__content h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.15;
  margin-block-end: var(--space-4);
  max-width: var(--guide-max-copy);
}

.railbound-guide .guide-hero__lead {
  font-size: var(--text-body-large);
  line-height: var(--leading-body-large);
  max-width: var(--guide-max-copy);
  margin-block-end: var(--space-3);
}

.railbound-guide .guide-hero__support {
  max-width: var(--guide-max-copy);
  margin-block-end: var(--space-4);
}

.railbound-guide .guide-hero__facts {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: var(--guide-max-copy);
}

.railbound-guide .guide-hero__facts li {
  position: relative;
  padding-inline-start: 1.75rem;
  line-height: var(--leading-body);
}

.railbound-guide .guide-hero__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-round);
  background-color: var(--color-sage-green);
  border: 2px solid var(--color-ivory);
  box-shadow: 0 0 0 1px var(--color-soft-gray);
}

.railbound-guide .guide-hero__media {
  min-width: 0;
  margin: 0;
}

.railbound-guide .guide-hero__media img {
  width: 100%;
  height: auto;
  border-radius: var(--guide-media-radius);
  border: var(--guide-media-border);
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.railbound-guide .guide-hero__railway {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-block-start: var(--space-4);
}

.railbound-guide .guide-hero__railway::before,
.railbound-guide .guide-hero__railway::after {
  content: "";
  flex: 1;
  border-block-start: 2px dashed var(--color-desaturated-blue);
}

.railbound-guide .guide-hero__railway .station-marker {
  width: 14px;
  height: 14px;
}

.railbound-guide .guide-section {
  padding-block: var(--guide-section-gap);
}

.railbound-guide .guide-section + .guide-section {
  border-block-start: 2px dashed var(--color-desaturated-blue);
}

.railbound-guide .guide-section__header {
  margin-block-end: clamp(2rem, 4vw, 3rem);
}

.railbound-guide .guide-section__header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  margin-block-end: var(--space-3);
  max-width: var(--guide-max-copy);
}

.railbound-guide .guide-section__intro {
  font-size: var(--text-body-large);
  line-height: var(--leading-body-large);
  max-width: var(--guide-max-copy);
  margin-block-end: 0;
}

.railbound-guide .guide-section__body {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.railbound-guide .guide-section__body--split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.railbound-guide .guide-section__body--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
}

.railbound-guide .guide-section__body--reverse .guide-section__text {
  order: 2;
}

.railbound-guide .guide-section__body--reverse .guide-section__media {
  order: 1;
}

.railbound-guide .guide-section__text {
  min-width: 0;
}

.railbound-guide .guide-section__text h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  margin-block-end: var(--space-2);
  max-width: var(--guide-max-copy);
}

.railbound-guide .guide-section__text p {
  max-width: var(--guide-max-copy);
  margin-block-end: var(--space-3);
}

.railbound-guide .guide-section__text p:last-child {
  margin-block-end: 0;
}

.railbound-guide .guide-section__media {
  min-width: 0;
  margin: 0;
}

.railbound-guide .guide-section__media img {
  width: 100%;
  height: auto;
  border-radius: var(--guide-media-radius);
  border: var(--guide-media-border);
  object-fit: cover;
}

.railbound-guide .guide-section__media--diagram img {
  aspect-ratio: 4 / 3;
}

.railbound-guide .guide-section__media--wide img {
  aspect-ratio: 16 / 9;
}

.railbound-guide .guide-section__media figcaption {
  margin-block-start: var(--space-2);
  max-width: 60ch;
}

.railbound-guide .tips-list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.railbound-guide .tips-list__item {
  min-width: 0;
  background-color: var(--color-ivory);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-medium);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.railbound-guide .tips-list__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.railbound-guide .tips-list__item h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  margin-block-end: 0;
}

.railbound-guide .tips-list__item p {
  margin-block-end: 0;
  max-width: 60ch;
}

.railbound-guide .guide-cta {
  margin-block-start: var(--space-5);
  display: flex;
  justify-content: flex-start;
}

.railbound-guide .guide-cta .btn {
  min-width: 220px;
}

@media (max-width: 63.9375rem) {
  .railbound-guide .guide-hero {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .railbound-guide .guide-hero__media {
    order: -1;
  }

  .railbound-guide .guide-section__body--split,
  .railbound-guide .guide-section__body--reverse {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .railbound-guide .guide-section__body--reverse .guide-section__text {
    order: 1;
  }

  .railbound-guide .guide-section__body--reverse .guide-section__media {
    order: 2;
  }

  .railbound-guide .tips-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 47.9375rem) {
  .railbound-guide .guide-hero {
    padding-block-start: var(--space-6);
    padding-block-end: var(--space-5);
  }

  .railbound-guide .guide-hero__content h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .railbound-guide .guide-hero__railway {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    margin-block-start: var(--space-3);
  }

  .railbound-guide .guide-hero__railway::before,
  .railbound-guide .guide-hero__railway::after {
    display: none;
  }

  .railbound-guide .guide-hero__railway .station-marker {
    width: 12px;
    height: 12px;
  }

  .railbound-guide .guide-section {
    padding-block: var(--space-6);
  }

  .railbound-guide .guide-section__header h2 {
    font-size: clamp(1.5rem, 7vw, 1.75rem);
  }

  .railbound-guide .guide-section__intro {
    font-size: var(--text-body);
    line-height: var(--leading-body);
  }

  .railbound-guide .guide-section__text h3 {
    font-size: var(--text-h3);
  }

  .railbound-guide .tips-list__item {
    padding: var(--space-3);
  }

  .railbound-guide .guide-cta {
    justify-content: stretch;
  }

  .railbound-guide .guide-cta .btn {
    width: 100%;
  }
}
