/* Module title */
.steps_module_title {
  font-family: Gazpacho, serif;
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 40px;
}

/* Module description (under title, before steps) */
.steps_module_description,
.steps_module_description * {
  font-family: Aeonik, sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  color: #000;
}

.steps_module_description {
  max-width: 100%;
  margin-bottom: 60px;
}

@media (max-width: 600px) {
  .steps_module_description {
    font-size: 1rem;
    margin-bottom: 32px;
  }
}

/* Layout */
.steps_module {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Sidebar */
.steps_sidebar {
  width: 240px;
    min-width: 240px;
  position: relative;
}

.steps_sidebar__inner {
  width: 240px;
}

.steps_sidebar__inner.is-fixed {
  position: fixed;
  top: 140px;
  z-index: 10;
}

.steps_sidebar__inner.is-stopped {
  position: absolute;
  bottom: 0;
}

.steps_sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps_sidebar li {
  margin-bottom: 10px;
}

.step_num_wrapper {
  display: inline-block;
  width: 30px;
  text-align: right;
  margin-right: 10px;
}

.steps_sidebar .step_num {
  font-family: Aeonik, sans-serif;
  font-weight: 300;
}

.steps_sidebar a {
  font-family: Aeonik, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #000;
  text-decoration: none;
  opacity: 0.85;
}

.steps_sidebar a:hover,
.steps_sidebar a.is-active {
  opacity: 1;
}

.steps_sidebar a:hover .step_num,
.steps_sidebar a:hover .step_title_text,
.steps_sidebar a.is-active .step_num,
.steps_sidebar a.is-active .step_title_text {
  font-weight: 700;
}

.steps_sidebar .step_num,
.steps_sidebar .step_title_text {
  transition: font-weight 0.15s ease;
}

/* Content */
.steps_content {
  flex-grow: 1;
}

.step_section {
  margin-bottom: 80px;
  scroll-margin-top: 140px;
}

.step_title {
  font-family: Aeonik, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.steps_content .step_num {
  margin-right: 0;
}

.step_introduction,
.step_introduction * {
  font-family: Aeonik, sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
}

.step_introduction {
  margin-bottom: 28px;
  max-width: 900px;
}

/* Explanation grid */
.step_explanations_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step_explanation_box {
  background: var(--box-bg, #F7F2EF);
  padding: 24px;
  border-radius: 12px;
}

/* White box = no padding */
.step_explanation_box--no-padding {
  padding: 0;
}

.step_explanation_title {
  font-family: Aeonik, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0px;
  text-align: center
    
  color: var(--title-color, #000); /* default fallback */
}

.step_explanation_body,
.step_explanation_body * {
  font-family: Aeonik, sans-serif;
  font-weight: 300;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .step_explanations_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .steps_module {
    flex-direction: column;
  }

  .steps_sidebar,
  .steps_sidebar__inner {
    width: 100%;
    position: static !important;
  }

  .step_explanations_grid {
    grid-template-columns: 1fr;
  }
}

html {
  scroll-behavior: smooth;
}

/* Image blocks (same grid cell size/feel as boxes) */
.step_explanation_image {
  grid-column: span 2;
  border-radius: 12px;
  overflow: hidden;
}

.step_explanation_image img {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .step_explanation_image {
    grid-column: span 1;
  }
}

/* --- FORCE bullets to follow text color inside the explanation body --- */

/* 1) Reset lists back to normal bullets */
.step_explanation_body ul,
.step_explanation_body ol {
  list-style: revert !important;
  padding-left: 1.25em !important;
  margin: 0.75em 0 !important;
}

/* 2) If the theme is drawing bullets with ::before/::after, kill them */
.step_explanation_body li::before,
.step_explanation_body li::after {
  content: none !important;
  background: none !important;
}

/* 3) Native markers: make them match the text color (works for ul + ol) */
.step_explanation_body li::marker {
  color: currentColor !important;
}

/* 4) Ensure list items inherit the chosen rich text color */
.step_explanation_body li {
  color: inherit !important;
}

.step_explanation_body ul li,
.step_explanation_body ol li {
  list-style: revert !important;
}

/* Mobile tuning */
@media (max-width: 600px) {

  /* Module title sizing */
  .steps_module_title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  /* Step title sizing */
  .step_title {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }

  /* Intro spacing */
  .step_introduction {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  /* Bring sections closer together on mobile */
  .step_section {
    margin-bottom: 48px;
  }

  /* Sidebar becomes a horizontal nav bar instead of a tall list */
  .steps_sidebar__inner ul {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .steps_sidebar__inner li {
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  /* Sidebar items look like tabs/chips */
  .steps_sidebar a {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    padding: 10px 12px;
    border: 1px solid #000;
    border-radius: 999px;
    opacity: 1;
  }

  /* Slightly reduce fixed number width on mobile */
  .step_num_wrapper {
    width: 24px;
    flex: 0 0 24px;
  }

  /* Grid: keep 1 column (already) but reduce gap */
  .step_explanations_grid {
    gap: 20px;
  }
}
