/* Build 661: the chapter's real name belongs to the card, not on top of the
   cover photo. This final layer removes the generic sequence-badge hierarchy
   and gives the title, place/date, facts, and action one dependable flow. */

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover::after,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover::after {
  background: linear-gradient(180deg, transparent 72%, rgba(4, 41, 48, 0.11) 100%) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-copy {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto auto !important;
  grid-template-areas:
    "heading"
    "facts"
    "actions" !important;
  align-items: center !important;
  min-width: 0 !important;
  padding: 15px 16px 16px !important;
  gap: 10px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card-heading,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card-heading {
  grid-area: heading !important;
  display: grid !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 1px 1px !important;
  gap: 4px !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card-heading > strong,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card-heading > strong {
  display: -webkit-box !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #0a3d49 !important;
  font-size: clamp(1rem, 2.1vw, 1.18rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.018em !important;
  line-height: 1.08 !important;
  text-wrap: balance !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card-heading > small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card-heading > small {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #688187 !important;
  font-size: 0.67rem !important;
  font-weight: 720 !important;
  letter-spacing: 0.005em !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-facts,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-facts {
  grid-area: facts !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions {
  grid-area: actions !important;
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-copy {
    padding: 14px 15px 15px !important;
    gap: 9px !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card-heading > strong,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card-heading > strong {
    font-size: 1rem !important;
  }
}
