/* Section rhythm: connect the landscape, editorial cards and first explainer. */
.passelia-features {
  --feature-drop: 2rem;
  padding-bottom: 1.5rem;
}

/* Public landing composition owner. Loaded after the individual proof styles;
   no private profile, reference-data or interaction contracts are changed. */
body[data-landing-design="interactive"] {
  --landing-content-width: 78rem;
  --landing-gutter: 1rem;
  --landing-proof-space: 2.5rem;
  --landing-closing-space: 3rem;
}

body[data-landing-design="interactive"] :is(.journey-shell, .passelia-parallel-shell, .passelia-process-list, .passelia-confidence-inner) {
  width: min(calc(100% - 2 * var(--landing-gutter)), var(--landing-content-width));
  max-width: var(--landing-content-width);
  margin-inline: auto;
}

body[data-landing-design="interactive"] :is(.journey-section, .passelia-parallel-era, .history-discovery) {
  padding-block: var(--landing-proof-space);
}

/* Keep the three illustrated steps, with the scale of an explanation rather
   than a second hero. The list owns spacing between steps on every device. */
body[data-landing-design="interactive"] .passelia-process {
  padding-block: 3rem;
}

body[data-landing-design="interactive"] .passelia-process .passelia-section-heading {
  margin-bottom: 2rem;
}

body[data-landing-design="interactive"] .passelia-process .passelia-section-heading h2 {
  font-size: clamp(2.25rem, 3.2vw, 3rem);
}

body[data-landing-design="interactive"] .passelia-process .passelia-section-rule { margin-block: 1rem; }
body[data-landing-design="interactive"] .passelia-process .passelia-section-heading p {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

body[data-landing-design="interactive"] .passelia-process-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

body[data-landing-design="interactive"] .passelia-process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  padding: 0;
  text-align: center;
}

body[data-landing-design="interactive"] .passelia-process-number {
  font-size: 1rem;
  margin: 0;
}

body[data-landing-design="interactive"] .passelia-process .process-generated {
  width: min(100%, 18rem);
  margin: 0;
}

body[data-landing-design="interactive"] .passelia-process-heading {
  margin-top: 1rem;
}

body[data-landing-design="interactive"] .passelia-process-step h3 {
  margin: 0;
  font-size: 1.6rem;
  text-align: center;
}

body[data-landing-design="interactive"] .passelia-process-step > p {
  margin: .75rem 0 0;
  text-align: center;
}

body[data-landing-design="interactive"] .passelia-process-list::before,
body[data-landing-design="interactive"] .passelia-process-step + .passelia-process-step::before {
  content: none;
}

body[data-landing-design="interactive"] .passelia-process-action {
  width: min(calc(100% - 2 * var(--landing-gutter)), 52rem);
  margin-top: 2rem;
}

/* Alternate paper and navy in the public reading order. The demonstrations
   retain their own map palettes, independently of their section's background. */
body[data-landing-design="interactive"] .journey-geocoding {
  background: var(--parallel-night);
  color: var(--parallel-light);
  --journey-muted: #b7c7cf;
  --journey-line: #365064;
}
body[data-landing-design="interactive"] .geocoding-heading .journey-invitation { color: #b7c7cf; }
body[data-landing-design="interactive"] .journey-geocoding .journey-cta { border-color: #aac0cf; }
body[data-landing-design="interactive"] .geocoding-proof { --journey-muted: #52626b; --journey-line: #d4d9d5; color: var(--parallel-night); }
body[data-landing-design="interactive"] .journey-migrations {
  background: var(--parallel-paper);
  color: var(--parallel-night);
  --journey-muted: #52626b;
  --journey-line: #d4d9d5;
}
body[data-landing-design="interactive"] .migration-story { border: 1px solid #a6afad; }
body[data-landing-design="interactive"] .history-discovery { background: var(--parallel-night); color: var(--parallel-light); border-top: 0; }
.history-discovery :is(.history-discovery-caption, .history-discovery-results-heading > span, .history-discovery-event p, .history-episode-credit, .history-discovery-distance) { color: #b7c7cf; }
.history-discovery :is(.history-discovery-eyebrow, .history-discovery-year, .history-discovery-explanation strong) { color: #e0b078; }
.history-discovery :is(.history-discovery-event a, .history-discovery-more, .discovery-invitation, .history-discovery-retry) { color: #f7f1e5; }
.history-discovery .history-discovery-event a:hover { color: #e0b078; }
.history-discovery :is(.history-discovery-event, .discovery-invitation) { border-color: #456275; }
.history-discovery :is(.journey-cta, .discovery-invitation-actions a) { border-color: #aac0cf; }
.history-discovery .history-discovery-retry:hover { background: #164560; }

body[data-landing-design="interactive"] .passelia-confidence {
  padding: var(--landing-closing-space) 0;
  background: #e6ece5;
  color: var(--parallel-night);
}

body[data-landing-design="interactive"] .passelia-no-gedcom {
  padding-block: var(--landing-closing-space);
  padding-inline: max(var(--landing-gutter), calc((100% - var(--landing-content-width)) / 2));
  background: var(--parallel-night);
  scroll-margin-top: 5rem;
}

@media (min-width: 521px) {
  body[data-landing-design="interactive"] { --landing-gutter: 1.5rem; }
}

@media (min-width: 981px) {
  body[data-landing-design="interactive"] {
    --landing-gutter: 2rem;
    --landing-proof-space: clamp(3rem, 4vw, 4rem);
    --landing-closing-space: 4rem;
  }

  body[data-landing-design="interactive"] .passelia-confidence { padding-block: 3rem; }

  body[data-landing-design="interactive"] .passelia-process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

/* display:contents flattens the overview copy on narrow screens. A desktop
   column gap must not become a gap between every paragraph and heading. */
@media (max-width: 860px) {
  body[data-landing-design="interactive"] .journey-overview .journey-layout { gap: 0; }
  body[data-landing-design="interactive"] .journey-overview .journey-copy > p { margin-top: 1rem; }
  body[data-landing-design="interactive"] .journey-overview .journey-kicker { margin-top: 0; }
  body[data-landing-design="interactive"] .journey-overview .overview-benefits { margin-top: 1.5rem; }
  body[data-landing-design="interactive"] .journey-overview-proof { margin-top: 2rem; }
  body[data-landing-design="interactive"] .journey-overview .journey-cta { margin-top: 1.5rem; }
}

@media (min-width: 981px) and (max-height: 780px) {
  body[data-landing-design="interactive"] { --landing-proof-space: 2.5rem; }
  body[data-landing-design="interactive"] .geocoding-proof .journey-france { max-height: 24rem; }
  body[data-landing-design="interactive"] .journey-person .journey-sheet-content {
    min-height: 22rem;
    padding-block: .75rem;
  }
}

.passelia-footer {
  padding-bottom: 1.5rem;
}

.passelia-process {
  padding-top: 3rem;
}

@media (min-width: 720px) {
  .passelia-features {
    --feature-drop: 3rem;
  }
}

@media (min-width: 1180px) {
  .passelia-features {
    --feature-drop: 4rem;
    padding-bottom: 1.25rem;
  }

  .passelia-footer {
    padding-bottom: .75rem;
  }

  .passelia-process {
    padding-top: 4rem;
  }
}

@media (max-width: 479px) {
  .passelia-footer p {
    display: block;
    max-width: 20rem;
    margin-inline: auto;
    font-size: 1.05rem;
  }

  .passelia-footer p::before,
  .passelia-footer p::after {
    display: none;
  }
}
