/*
 * "Our approach" section. New for WaveLocal (the reference has no equivalent), built from the
 * reference's own tokens, type scale, spacing and card treatment so it sits naturally between sections.
 */
#approach {
  padding: var(--sectionPadding);
  background-color: #f7f7f7;
}
#approach .cs-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  max-width: 80rem;
  width: 100%;
  gap: clamp(2.5rem, 6vw, 4rem);
}
#approach .cs-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 46.875rem;
}
#approach .cs-text {
  margin: 0 auto;
}
#approach .cs-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
  counter-reset: step;
}
#approach .cs-step {
  position: relative;
  counter-increment: step;
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: 0 0.75rem 2rem rgba(0, 31, 63, 0.07);
  padding: clamp(2rem, 4vw, 2.5rem);
  transition: box-shadow 0.3s, transform 0.3s, background-color 0.3s;
}
#approach .cs-step:before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 1rem;
  font-family: var(--headerFont);
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1em;
  font-weight: 700;
  color: var(--secondary);
}
#approach .cs-step:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 1rem 2.5rem rgba(0, 31, 63, 0.14);
}
#approach .cs-h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.5625rem);
  line-height: 1.2em;
  font-weight: 700;
  color: var(--headerColor);
}
#approach .cs-item-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5em;
  color: var(--bodyTextColor);
}
@media only screen and (min-width: 48rem) {
  #approach .cs-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (min-width: 64rem) {
  #approach .cs-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* Homepage only (.ap-swipe): on phones the steps are a native, scroll-snapping row with about 15% of the next card showing,
   equal heights and position dots (assets/js/about-carousel.js). Other pages using this section are unaffected. */
#approach .ap-swipe {
  width: 100%;
}
#approach .ap-dots {
  display: none;
}
@media only screen and (max-width: 39.999rem) {
  #approach .ap-swipe {
    width: calc(100% + 2rem);
    margin: 0 -1rem; /* the row runs to the screen edges; the section's side padding is 1rem */
  }
  #approach .ap-swipe .cs-steps {
    display: flex;
    position: relative;
    gap: 0.75rem;
    margin: -0.5rem 0 -1.5rem;
    padding: 0.5rem 1rem 2rem; /* room inside the scrolling row for the cards' shadows */
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    scrollbar-width: none;
  }
  #approach .ap-swipe .cs-steps::-webkit-scrollbar {
    display: none;
  }
  #approach .ap-swipe .cs-steps:focus-visible {
    outline: 2px solid var(--linkOnLight);
    outline-offset: -2px;
  }
  #approach .ap-swipe .cs-step {
    flex: 0 0 calc((100% + 0.25rem) / 1.15);
    scroll-snap-align: start;
  }
  #approach .ap-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.15rem;
    margin-top: 0.75rem;
  }
  #approach .ap-dots[hidden] {
    display: none;
  }
  #approach .ap-dot {
    display: grid;
    place-items: center;
    min-width: 1.75rem;
    min-height: 2.75rem;
    margin: 0;
    border: 0;
    border-radius: 0.5rem;
    background: none;
    padding: 0 0.375rem;
    cursor: pointer;
  }
  #approach .ap-dot span {
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 99px;
    background-color: rgba(0, 31, 63, 0.28);
    transition: width 0.25s, background-color 0.25s;
  }
  #approach .ap-dot.is-active span {
    width: 1.5rem;
    background-color: #0a76c2;
  }
  #approach .ap-dot:focus-visible {
    outline: 2px solid #0a76c2;
    outline-offset: 0;
  }
  html.dark-mode #approach .ap-swipe .cs-steps:focus-visible,
  html.dark-mode #approach .ap-dot:focus-visible {
    outline-color: var(--primaryLight);
  }
  html.dark-mode #approach .ap-dot span {
    background-color: rgba(255, 255, 255, 0.32);
  }
  html.dark-mode #approach .ap-dot.is-active span {
    background-color: var(--primaryLight);
  }
}
@media (prefers-reduced-motion: reduce) {
  #approach .ap-dot span {
    transition: none;
  }
}
html.dark-mode #approach {
  background-color: var(--dark);
}
html.dark-mode #approach .cs-step {
  background-color: var(--medium);
  box-shadow: none;
}
html.dark-mode #approach .cs-h3,
html.dark-mode #approach .cs-item-text {
  color: #fff;
}
