/* Mobile swipe carousels: dots under each track (filled by carousel.js) and the About page's
   Our Principles track. Track layouts for the home page live in home-mobile.css. */
.ffp-dots {
  display: none;
}
@media (max-width: 767px) {
  [data-carousel] {
    position: relative;
  }
  .ffp-dots {
    display: flex;
    justify-content: center;
    margin-top: 8px;
  }
  .ffp-dots[hidden] {
    display: none;
  }
  .ffp-dots button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
  }
  .ffp-dots button::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #aab4c8;
    transition:
      width 0.25s ease,
      background-color 0.25s ease;
  }
  .ffp-dots button[aria-current='true']::before {
    width: 22px;
    background: #00796b;
  }
  .ffp-dots button:focus-visible {
    outline: 3px solid #00796b;
    outline-offset: -3px;
  }

  /* About: Our Principles, one card at a time (no peek). The grid's inline layout is overridden. */
  #principles .ffp-principles {
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 16px !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  #principles .ffp-principles::-webkit-scrollbar {
    display: none;
  }
  #principles .ffp-principles > article {
    scroll-snap-align: start;
    padding: 28px 22px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ffp-dots button::before {
    transition: none;
  }
}
