main[role="main"] {
  --home-teal: #014961;
  --home-teal-hover: #00384b;
  --home-sage: #eaf3ec;
  --home-heading-size: clamp(2.8rem, 2.4vw + 1rem, 4rem);
  --home-subheading-size: clamp(2.1rem, 1.3vw + 1rem, 2.8rem);
  --home-small-heading-size: clamp(1.8rem, 1.4vw, 2rem);
  --home-copy-size: clamp(1.7rem, 1.4vw, 1.8rem);
  --home-copy-leading: 1.6;
}

main[role="main"] > section .section_header {
  margin: 0 0 clamp(20px, 3vw, 32px);
  color: var(--home-teal);
  font-size: var(--home-heading-size);
  font-weight: 600;
  line-height: 1.15;
  text-shadow: none;
  text-wrap: balance;
}

main[role="main"] > section p {
  font-size: var(--home-copy-size);
  line-height: var(--home-copy-leading);
}

main[role="main"] > section p a:not(.theme_button) {
  color: var(--home-teal);
  text-underline-offset: 0.15em;
}

main[role="main"] > section p a:not(.theme_button):is(:hover, :focus-visible) {
  color: var(--home-teal-hover) !important;
  text-decoration-thickness: 2px !important;
}

.home-icon-definitions {
  position: absolute;
}

/* Homepage action links share a size, with a light variant on photography. */
main[role="main"] a.theme_button {
  --home-button-bg: var(--home-teal);
  --home-button-text: #fff;
  --home-button-hover: var(--home-teal-hover);
  --home-button-focus: var(--home-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  margin-bottom: 0;
  padding: 11px 18px;
  border: 1px solid var(--home-button-bg);
  border-radius: 8px;
  /* The shared color utilities set CTA colors with !important. */
  background-color: var(--home-button-bg) !important;
  color: var(--home-button-text) !important;
  box-shadow: none;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-shadow: none;
  text-transform: none;
  transition: none;
}

main[role="main"] a.theme_button:is(:hover, :active) {
  border-color: var(--home-button-hover);
  background-color: var(--home-button-hover) !important;
  text-decoration: none;
}

main[role="main"] a.theme_button:focus-visible {
  outline: 2px solid var(--home-button-focus);
  outline-offset: 3px;
  text-decoration: none;
}

main[role="main"] a.theme_button svg {
  flex: none;
}

main[role="main"] > .section_action.parallax a.theme_button.color1 {
  --home-button-bg: #fff;
  --home-button-text: var(--home-teal);
  --home-button-hover: var(--home-sage);
  --home-button-focus: #fff;
}

/* Homepage section dividers */

/* Keep the solid edge of each rotated wave joined to the preceding section. */
main[role="main"] > :is(.wave-container-2, .wave-container-3)::before {
  top: -1px;
  background-position: bottom;
}

#about > .wave-container::before {
  transform: translateY(1px);
}

/* Homepage call-to-action banners */

main[role="main"] > .section_action.parallax {
  background-color: var(--home-teal);
  box-shadow: none;
}

main[role="main"] > .section_action.parallax::before {
  content: none;
}

main[role="main"] > .section_action.parallax::after {
  background: linear-gradient(110deg, rgb(1 73 97 / 78%), rgb(1 73 97 / 73%));
  opacity: 1;
  pointer-events: none;
}

main[role="main"] > .section_action.parallax h2 {
  max-width: 29ch;
  margin: 0 auto 12px;
  font-size: var(--home-heading-size);
  font-weight: 600;
  line-height: 1.15;
  text-shadow: none;
  text-wrap: balance;
}

main[role="main"] > .section_action.parallax .sub-heading {
  max-width: 58ch;
  margin: 0 auto;
  font-size: clamp(1.8rem, 1.7vw, 2.1rem);
  line-height: 1.5;
  text-shadow: none;
}

main[role="main"] > .section_action.parallax :is(.home-banner-cta, .call-banner .mt-50) {
  margin: 22px 0 0 !important;
}

main[role="main"] > .call-banner .theme_button.fs-20 {
  font-size: 1.6rem !important;
}

/* The parallax script still writes offsets when tablet backgrounds scroll. */
@media (max-width: 991px) {
  main[role="main"] > .section_action.parallax {
    background-position: center !important;
  }
}

@supports (-webkit-touch-callout: none) {
  main[role="main"] > .section_action.parallax {
    background-position: center !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  main[role="main"] > .section_action.parallax {
    background-attachment: scroll;
    background-position: center !important;
  }
}

/* Offer cards sit in the existing hero and lower banner. */
.vimeo-slider-wrapper .slider-content,
.home-offer-footer {
  height: auto;
  padding: clamp(16px, 2vw, 28px);
  border: 1px solid #d5e4db;
  border-radius: 14px;
  background-color: var(--home-sage);
  box-shadow: 0 4px 16px rgb(0 38 51 / 12%);
}

.vimeo-slider-wrapper .slider-content h2,
main[role="main"] > .section_action.parallax .home-offer h2 {
  margin-bottom: 8px;
  color: var(--home-teal);
  font-size: var(--home-subheading-size);
  font-weight: 600;
  line-height: 1.15;
  text-shadow: none;
  text-transform: none;
  text-wrap: balance;
}

.vimeo-slider-wrapper .slider-content p,
main[role="main"] > .section_action.parallax .home-offer .sub-heading {
  color: var(--home-teal);
  font-size: var(--home-copy-size);
  font-style: normal;
  line-height: 1.45;
  text-shadow: none;
}

.vimeo-slider-wrapper .slider-content p {
  margin: 0 0 12px;
}

.vimeo-slider-wrapper .slider-content .theme_button {
  width: auto;
}

.home-offer-price {
  font-size: clamp(3.4rem, 3vw + 1rem, 5.6rem);
  line-height: 1;
  white-space: nowrap;
}

.slider-content .home-offer-price {
  display: block;
  margin-bottom: 4px;
}

.home-offer-footer {
  width: min(100%, 620px);
  margin-inline: auto;
}

@media (max-width: 991px) {
  .vimeo-slider-wrapper {
    height: auto;
    padding-bottom: 0;
  }

  .vimeo-slider-wrapper > picture {
    display: block;
    overflow: hidden;
  }

  .vimeo-slider-wrapper > picture img {
    position: static;
    display: block;
    height: auto;
    /* Trim the empty teal area above the doctor. */
    margin-top: -26%;
  }

  .vimeo-slider-wrapper > .row {
    margin: 0;
    padding: 8px 12px 0;
  }

  .vimeo-slider-wrapper > .row > :empty {
    display: none;
  }

  .vimeo-slider-wrapper > .row > .col-lg-4 {
    padding: 0;
  }

  .vimeo-slider-wrapper .slider-content {
    max-width: 500px;
    margin: 0 auto !important;
    padding: 10px 12px;
  }

  .vimeo-slider-wrapper .slider-content .home-offer-price {
    display: inline;
    margin-bottom: 0;
    font-size: 2.7rem;
  }

  .vimeo-slider-wrapper .slider-content p {
    margin-bottom: 8px;
  }

  .vimeo-slider-wrapper .slider-content .theme_button {
    margin-top: 0 !important;
  }

  #about.welcome-section {
    padding-top: 20px !important;
  }

  #about.welcome-section > .wave-container::before {
    content: none;
  }
}

/* Welcome and welcome video */

#about.welcome-section {
  --welcome-teal: #014961;
  --welcome-sage: #eef5ef;
  background: #fff;
}

#about .welcome-layout {
  display: grid;
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
}

@media (min-width: 768px) {
  #about .welcome-layout {
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  }
}

#about .welcome-copy .section_header {
  display: block;
  margin: 0 0 12px;
}

#about .welcome-copy h1 {
  margin: 0 0 16px;
  color: var(--welcome-teal);
  font-size: var(--home-subheading-size);
  font-weight: 700;
  line-height: 1.25;
}

#about .welcome-copy p {
  margin: 0 0 24px;
}

#about .welcome-video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--welcome-teal);
}

#about .welcome-video-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

#about .welcome-video-trigger img,
#about .welcome-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

#about .welcome-video-trigger img {
  object-fit: cover;
}

#about .welcome-video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--welcome-teal);
  color: #fff;
}

#about .welcome-video-trigger:hover .welcome-video-play,
#about .welcome-video-trigger:focus-visible .welcome-video-play {
  background: #fff;
  color: var(--welcome-teal);
}

#about .welcome-video-trigger:focus-visible {
  outline: 3px solid var(--welcome-teal);
  outline-offset: -3px;
}

#about .welcome-credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

#about .welcome-credential {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: var(--welcome-sage);
  color: var(--welcome-teal);
  font-size: 1.4rem;
  line-height: 1.3;
}

#about .welcome-credential strong {
  display: block;
}

#about .welcome-credential svg {
  flex: none;
  color: #00778a;
}

/* Chiropractic and rehab therapies */

#services.therapy-selector {
  --therapy-teal: #014961;
  --therapy-border: #d7e3df;
  background: #f2f7f5;
}

#services .therapy-selector-layout {
  display: grid;
  gap: 16px;
}

#services[data-mode="tabs"] .therapy-selector-layout {
  grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
  align-items: start;
  gap: clamp(12px, 2vw, 24px);
}

#services .therapy-selector-tabs:not([hidden]),
#services .therapy-selector-panels {
  display: grid;
  gap: 8px;
}

#services[data-mode="tabs"] .therapy-selector-panels {
  gap: 0;
}

#services .therapy-selector-tabs button,
#services .therapy-accordion-heading button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--therapy-border);
  border-radius: 8px;
  background: #fff;
  color: var(--therapy-teal);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

#services .therapy-selector-tabs button:not([aria-selected="true"]):hover,
#services .therapy-accordion-heading button:not([aria-expanded="true"]):hover {
  border-color: var(--therapy-teal);
  background: #f5f8f5;
}

#services .therapy-selector-tabs [aria-selected="true"],
#services .therapy-accordion-heading [aria-expanded="true"] {
  border-color: var(--therapy-teal);
  background: var(--therapy-teal);
  color: #fff;
}

#services .therapy-accordion-heading {
  margin: 0;
}

#services .therapy-selector-symbols {
  position: absolute;
}

#services .therapy-selector-icon,
#services .therapy-selector-chevron {
  flex: none;
}

#services .therapy-selector-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

#services .therapy-panel {
  min-width: 0;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--therapy-border);
  border-radius: 10px;
  background: #fff;
}

#services[data-mode="tabs"] .therapy-panel {
  grid-area: 1 / 1;
}

/* Inactive desktop panels size the shared grid row while staying invisible and inert. */
#services[data-mode="tabs"] .therapy-panel[hidden] {
  display: block;
  visibility: hidden;
}

#services .therapy-panel picture {
  display: block;
  max-width: 356px;
  margin-inline: auto;
  margin-bottom: 14px;
}

#services .therapy-panel img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 356 / 200;
  border-radius: 8px;
  object-fit: cover;
}

#services .therapy-panel-title {
  margin: 0 0 8px;
  color: var(--therapy-teal);
  font-size: var(--home-subheading-size);
  font-weight: 600;
  line-height: 1.25;
}

#services[data-mode="accordion"] .therapy-panel-title {
  display: none;
}

#services .therapy-panel p {
  margin: 0 0 12px;
}

#services button:focus-visible,
#services .therapy-panel:focus-visible,
#services a:focus-visible {
  outline: 2px solid var(--therapy-teal);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  #services .therapy-selector-tabs button,
  #services .therapy-accordion-heading button {
    transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
  }

  #services[data-mode] .therapy-panel:not([hidden]) {
    animation: therapy-panel-reveal 160ms ease-out;
  }
}

@keyframes therapy-panel-reveal {
  from { opacity: 0.76; }
  to { opacity: 1; }
}

/* Patient testimonials */

#home-testimonials {
  --testimonial-teal: #014961;
  --testimonial-border: #d7e3df;
  background: #f2f7f5;
}

#home-testimonials h3 {
  color: var(--testimonial-teal);
}

#home-testimonials .testimonial-track {
  --testimonial-columns: 1;
  --testimonial-gap: 16px;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--testimonial-columns) - 1) * var(--testimonial-gap)) / var(--testimonial-columns));
  gap: var(--testimonial-gap);
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  overflow-anchor: none;
}

#home-testimonials .testimonial-track[data-positioning] {
  scroll-snap-type: none;
}

@media (min-width: 768px) {
  #home-testimonials .testimonial-track {
    --testimonial-columns: 2;
  }
}

@media (min-width: 992px) {
  #home-testimonials .testimonial-track {
    --testimonial-columns: 3;
  }
}

#home-testimonials[data-enhanced] .testimonial-track {
  scrollbar-width: none;
}

#home-testimonials[data-enhanced] .testimonial-track::-webkit-scrollbar {
  display: none;
}

#home-testimonials .testimonial-card {
  min-width: 0;
  padding: 0;
  border: 1px solid var(--testimonial-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  scroll-snap-align: start;
}

@media (min-width: 768px) and (width < 992px) {
  #home-testimonials .testimonial-card:nth-child(even) {
    scroll-snap-align: none;
  }
}

@media (min-width: 992px) {
  #home-testimonials .testimonial-card:not(:nth-child(3n + 1)) {
    scroll-snap-align: none;
  }
}

#home-testimonials .testimonial-card h3 {
  margin: 0;
  padding: 14px 16px;
  font-size: var(--home-small-heading-size);
  font-weight: 600;
  line-height: 1.3;
}

#home-testimonials .testimonial-play {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--testimonial-teal);
}

#home-testimonials .testimonial-play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#home-testimonials .testimonial-play-icon {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--testimonial-teal);
  color: #fff;
}

#home-testimonials .testimonial-play:focus-visible .testimonial-play-icon,
#home-testimonials .testimonial-play:hover .testimonial-play-icon {
  background: #fff;
  color: var(--testimonial-teal);
}

#home-testimonials .testimonial-controls:not([hidden]),
#home-testimonials .testimonial-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

#home-testimonials .testimonial-controls {
  margin-top: 16px;
}

#home-testimonials .testimonial-controls button:not([hidden]),
#home-testimonials .testimonial-dialog button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--testimonial-border);
  border-radius: 8px;
  background: #fff;
  color: var(--testimonial-teal);
}

#home-testimonials .testimonial-controls button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}

#home-testimonials .testimonial-pagination button:not([hidden]) {
  width: 28px;
  border: 0;
  background: transparent;
}

#home-testimonials .testimonial-pagination button::before {
  content: '';
  width: 8px;
  height: 8px;
  border: 1px solid var(--testimonial-teal);
  border-radius: 50%;
}

#home-testimonials .testimonial-pagination button:hover::before {
  background: var(--testimonial-teal);
}

#home-testimonials .testimonial-pagination [aria-current="true"]::before {
  width: 14px;
  border-radius: 6px;
  background: var(--testimonial-teal);
}

#home-testimonials .testimonial-controls button:not([aria-disabled="true"]):hover,
#home-testimonials .testimonial-dialog button:hover {
  border-color: var(--testimonial-teal);
}

#home-testimonials :is(.testimonial-track, .testimonial-play, button):focus-visible {
  outline: 2px solid var(--testimonial-teal);
  outline-offset: 3px;
}

#home-testimonials :is(.testimonial-track, .testimonial-play):focus-visible {
  outline-offset: -3px;
}

#home-testimonials .testimonial-play:focus-visible {
  outline-color: #fff;
}

#home-testimonials .p-sm {
  margin: 18px 0 0;
}

#home-testimonials .testimonial-dialog {
  width: min(calc(100% - 24px), 840px);
  max-width: none;
  max-height: calc(100% - 24px);
  padding: clamp(12px, 2vw, 20px);
  border: 0;
  border-radius: 12px;
  background: #fff;
}

#home-testimonials .testimonial-dialog::backdrop {
  background: rgba(0, 28, 40, 0.78);
}

#home-testimonials .testimonial-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

#home-testimonials .testimonial-dialog-header h2 {
  margin: 0;
  color: var(--testimonial-teal);
  font-size: var(--home-small-heading-size);
  font-weight: 600;
  line-height: 1.3;
}

#home-testimonials .testimonial-player {
  aspect-ratio: 16 / 9;
  min-height: 200px;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

#home-testimonials .testimonial-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

#home-testimonials .testimonial-video-fallback {
  display: inline-block;
  margin-top: 10px;
  color: var(--testimonial-teal) !important;
  font-size: 1.5rem;
  text-decoration: underline;
}

@media (max-width: 991px) {
  #home-testimonials .testimonial-dialog {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }

  #home-testimonials .testimonial-player {
    width: 100%;
    /* Leave space for the dialog title, close button, and YouTube link. */
    max-height: calc(100dvh - 160px);
  }

  @media (max-height: 340px) {
    #home-testimonials .testimonial-dialog {
      padding: 8px;
    }

    #home-testimonials .testimonial-dialog-header {
      margin-bottom: 6px;
    }

    #home-testimonials .testimonial-video-fallback {
      margin-top: 6px;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  #home-testimonials .testimonial-play img {
    transition: none;
  }
}

/* Meet our chiropractor */

#team.doctor-section {
  --doctor-teal: #014961;
  --doctor-sage: #eef5ef;
  --doctor-accent: #4fb4c8;
  background: #fff;
}

#team .doctor-section-layout {
  display: grid;
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
}

@media (min-width: 768px) {
  #team .doctor-section-layout {
    grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
  }
}

#team .doctor-portrait {
  width: min(100%, 420px);
  margin: 0 auto;
  text-align: center;
}

#team .doctor-portrait-link {
  display: block;
  padding: clamp(8px, 1.3vw, 16px);
  border-radius: 16px;
  background: var(--doctor-sage);
}

#team .doctor-portrait picture,
#team .doctor-portrait img {
  display: block;
}

#team .doctor-portrait img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

#team .doctor-portrait figcaption {
  margin-top: 14px;
}

#team .doctor-title-title {
  margin: 0 0 4px;
  color: var(--doctor-teal);
  font-size: var(--home-small-heading-size);
  font-weight: 700;
  line-height: 1.3;
}

#team .doctor-title-subtitle {
  margin: 0;
  font-size: 1.6rem;
}

#team .doctor-profile {
  min-width: 0;
  color: #333;
}

#team .doctor-profile p {
  margin: 0 0 14px;
}

#team .doctor-profile .doctor-profile-eyebrow {
  margin-bottom: 8px;
  color: var(--doctor-teal);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
}

#team .doctor-profile h3 {
  margin: 0 0 6px;
  color: var(--doctor-teal);
  font-size: var(--home-subheading-size);
  font-weight: 600;
  line-height: 1.25;
}

#team .doctor-profile .doctor-profile-subtitle {
  color: var(--doctor-teal);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
}

#team .doctor-profile-subtitle::after {
  display: block;
  width: 38px;
  height: 2px;
  margin-top: 12px;
  border-radius: 1px;
  background: var(--doctor-accent);
  content: '';
}

#team .doctor-profile-experience {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 18px 0 16px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--doctor-sage);
  color: var(--doctor-teal);
  font-size: 1.4rem;
  line-height: 1.35;
}

#team .doctor-profile-experience svg {
  flex: none;
}

#team .doctor-portrait-link:focus-visible {
  outline: 2px solid var(--doctor-teal);
  outline-offset: 3px;
}

/* What to expect at the chiropractic center */

#first-visit-steps {
  --visit-steps-brand-dark: #014961;
  --visit-steps-border: rgba(1, 73, 97, 0.2);
}

#first-visit-steps .visit-steps-tabs:not([hidden]) {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid var(--visit-steps-border);
  border-radius: 12px;
  background: #f2f7f5;
}

#first-visit-steps [role="tab"] {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--visit-steps-brand-dark);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
}

#first-visit-steps [role="tab"]:hover {
  border-color: var(--visit-steps-brand-dark);
}

#first-visit-steps [role="tab"][aria-selected="true"] {
  background: var(--visit-steps-brand-dark);
  color: #fff;
}

#first-visit-steps [role="tab"]:focus-visible,
#first-visit-steps [role="tabpanel"]:focus-visible {
  outline: 2px solid var(--visit-steps-brand-dark);
  outline-offset: 2px;
}

#first-visit-steps .visit-steps-panels {
  display: grid;
  gap: 12px;
}

#first-visit-steps .visit-steps-panel:not([hidden]) {
  display: grid;
}

#first-visit-steps .visit-steps-panel {
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--visit-steps-border);
  border-radius: 18px;
  background: #fff;
}

#first-visit-steps .visit-steps-panel img {
  display: block;
  width: min(100%, 180px);
  height: auto;
  margin-inline: auto;
  border-radius: 12px;
  box-shadow: none;
}

#first-visit-steps .visit-steps-copy h3 {
  margin: 0 0 8px;
  color: var(--home-teal);
  font-size: var(--home-small-heading-size);
  font-weight: 600;
  line-height: 1.3;
}

#first-visit-steps .visit-steps-copy p {
  margin: 0;
}

#first-visit-steps h2:not(.section_header) {
  margin: 0 0 8px;
  color: var(--home-teal);
  font-size: var(--home-subheading-size);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

#first-visit-steps h2:not(.section_header) + p {
  max-width: 65ch;
  margin: 0 auto;
}

@media (max-width: 767px) {
  #first-visit-steps [role="tab"] {
    padding-inline: 4px;
    font-size: 1.3rem;
  }

  #first-visit-steps .visit-steps-number {
    display: block;
    margin-bottom: 2px;
  }

  #first-visit-steps .visit-steps-dash {
    display: none;
  }
}

@media (min-width: 768px) {
  #first-visit-steps .visit-steps-panel {
    grid-template-columns: clamp(150px, 20vw, 220px) minmax(0, 1fr);
    gap: 24px;
  }

  #first-visit-steps .visit-steps-panel img {
    width: 100%;
  }

  #first-visit-steps[data-enhanced] .visit-steps-panel {
    grid-area: 1 / 1;
  }

  /* Inactive panels keep the shared desktop row as tall as the largest step. */
  #first-visit-steps[data-enhanced] .visit-steps-panel[hidden] {
    display: grid;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: no-preference) {
  #first-visit-steps[data-enhanced] .visit-steps-panel:not([hidden]) {
    animation: first-visit-panel-in 180ms ease-out;
  }
}

@keyframes first-visit-panel-in {
  from { opacity: 0.72; }
  to { opacity: 1; }
}

/* Homepage FAQ */

#home-faq {
  --faq-sage: #f2f7f5;
  background: var(--faq-sage);
}

#home-faq .section_header {
  text-align: center;
}

.wave-container-2.home-sage-wave::before,
.wave-container-3.home-faq-wave::before {
  background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http://www.w3.org/2000/svg%22%20viewBox%3D%220%200%2035.28%202.17%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M0%201.75C7%201.35%2015%201.15%2025%201.70C33%202.05%2035.40%201.80%2035.30%201.80V2.12H0Z%22%20opacity%3D%220.20%22%20fill%3D%22000000%22%2F%3E%3Cpath%20d%3D%22M0%201.85C7%201.50%2015%201.20%2025%201.85C33%202.10%2035.28%201.85%2035.28%201.85V2.17H0Z%22%20fill%3D%22%23F2F7F5%22%2F%3E%3C%2Fsvg%3E');
}

#home-faq .faq-component .faq-question {
  font-size: var(--home-small-heading-size);
  font-weight: 600;
  line-height: 1.3;
}

#home-faq .faq-component .faq-answer p {
  font-size: var(--home-copy-size);
  line-height: var(--home-copy-leading);
}
