.rail-tour-widget,
.legacy-tour-rail {
  color: #142721;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rail-tour-widget {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(20, 39, 33, .18);
}

.rail-tour-widget > p,
.legacy-tour-rail > p {
  margin: 0 0 12px;
  color: #c95735;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.rail-tour-widget [data-ep-widget="products"],
.legacy-tour-rail [data-ep-widget="products"],
.story-tour-variants [data-ep-widget="products"] {
  min-width: 0;
}

.rail-tour-widget iframe,
.legacy-tour-rail iframe,
.story-tour-variants iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  border: 0;
}

.rail-tour-link {
  display: block;
  padding: 16px;
  border: 1px solid rgba(20, 39, 33, .18);
  background: #fffaf3;
  color: #142721 !important;
  font-size: 12px !important;
  font-weight: 760;
  line-height: 1.45;
  text-decoration: none !important;
}

.mobile-tour-link {
  display: none;
}

.rail-tour-link span {
  display: block;
  margin-top: 8px;
  color: #c95735;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.story-tour-variants {
  margin: clamp(70px, 9vw, 105px) 0;
  padding: clamp(28px, 5vw, 46px);
  border-top: 3px solid #c95735;
  background: #fffaf3;
  color: #142721;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.story-tour-variants .section-label {
  margin: 0 0 12px;
  color: #c95735;
  font-size: 10px;
  font-weight: 850;
  font-style: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.story-tour-variants h2 {
  margin: 0 0 12px;
  color: #142721;
  font: 400 clamp(32px, 4vw, 48px)/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}

.story-tour-variants > p:not(.section-label) {
  margin: 0 0 26px;
  color: #52645f;
  font-size: 14px;
  line-height: 1.6;
}

.legacy-tour-rail {
  display: none;
}

@media (min-width: 1240px) {
  .article-shell {
    grid-template-columns: 240px minmax(0, 780px);
  }

  .story-rail {
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-color: rgba(20, 39, 33, .32) transparent;
    scrollbar-width: thin;
  }

  .story-rail::-webkit-scrollbar { width: 4px; }
  .story-rail::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(20, 39, 33, .32);
  }
}

@media (min-width: 1121px) {
  main.legacy-story-shell {
    width: min(100%, 1240px);
    display: grid;
    grid-template-columns: 240px minmax(0, 820px);
    gap: 80px;
    align-items: start;
  }

  main.legacy-story-shell > article {
    width: 100%;
    margin: 0;
  }

  .legacy-tour-rail {
    position: sticky;
    top: 28px;
    display: block;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 20px 8px 0 0;
    border-top: 2px solid #c95735;
  }
}

@media (max-width: 760px) {
  .story-tour-variants {
    margin-right: -21px;
    margin-left: -21px;
    padding: 34px 21px;
  }
}

@media (max-width: 1120px) {
  .mobile-tour-link {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin: 0 0 38px;
    padding: 16px 18px;
    border: 1px solid rgba(20, 39, 33, .18);
    background: #fffaf3;
    color: #142721 !important;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none !important;
    text-transform: uppercase;
  }

  .mobile-tour-link span {
    flex: 0 0 auto;
    color: #c95735;
    font-size: 18px;
  }
}
