.cc-trades-carousel {
  --cc-trades-gap: 18px;
  background: transparent;
  color: var(--white, #fff);
  padding: 80px 20px 16px;
}

.cc-trades-carousel__inner {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.cc-trades-carousel__title {
  margin: 0 0 80px;
  color: var(--white, #fff);
  font-size: var(--title-font-size, 50px);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

/* The dedicated trades route has a light page surface; the homepage is dark. */
[data-site-route="trades-we-serve"] .cc-trades-carousel__title {
  color: var(--blue, #1f2236);
}

.cc-trades-carousel__stage {
  position: relative;
}

.cc-trades-carousel__viewport {
  overflow: hidden;
  border-radius: 10px;
  outline: none;
  touch-action: pan-y;
}

.cc-trades-carousel__viewport:focus-visible {
  outline: 3px solid var(--yellow, #e8a743);
  outline-offset: 5px;
}

.cc-trades-carousel__track {
  display: flex;
  align-items: stretch;
  transition: transform 420ms ease;
  will-change: transform;
}

.cc-trades-carousel__group {
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--cc-trades-gap);
}

.cc-trades-carousel__card {
  overflow: hidden;
  min-width: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--blue, #1f2236);
}

.cc-trades-carousel__card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cc-trades-carousel__card h3 {
  display: grid;
  min-height: 64px;
  margin: 0;
  padding: 12px 14px;
  place-items: center;
  color: var(--blue, #1f2236);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.18;
  text-align: center;
}

.cc-trades-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.cc-trades-carousel__control {
  display: inline-grid;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--yellow, #e8a743);
  cursor: pointer;
  place-items: center;
}

.cc-trades-carousel__control:hover {
  color: var(--dark-yellow, #c88318);
}

.cc-trades-carousel__control:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.cc-trades-carousel__control svg {
  width: 52px;
  height: 52px;
}

.cc-trades-carousel__status {
  min-width: 98px;
  color: var(--white, #fff);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.cc-trades-carousel__more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 60px;
  margin: 28px auto 0;
  padding: 0 26px;
  border-radius: 3px;
  background: var(--yellow, #e8a743);
  color: var(--white, #fff);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s;
}

.cc-trades-carousel__more:hover {
  background: var(--dark-yellow, #c88318);
}

@media (min-width: 76rem) {
  .cc-trades-carousel__controls {
    position: absolute;
    top: 50%;
    right: -64px;
    left: -64px;
    justify-content: space-between;
    margin-top: 0;
    pointer-events: none;
    transform: translateY(-50%);
  }

  .cc-trades-carousel__control {
    pointer-events: auto;
  }

  .cc-trades-carousel__status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.cc-trades-list {
  padding: clamp(48px, 6vw, 80px) 20px;
}

.cc-trades-list__inner {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.cc-trades-list__title {
  margin: 0 0 28px;
  color: #171b35;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  text-align: center;
}

.cc-trades-list__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-trades-list__grid li {
  position: relative;
  padding-left: 30px;
  color: #171b35;
  font-size: 1.05rem;
  font-weight: 650;
}

.cc-trades-list__grid li::before {
  position: absolute;
  top: 0.1em;
  left: 0;
  color: #e6a900;
  content: "\2713";
  font-size: 1.25em;
  font-weight: 900;
}

@media (max-width: 47.99em) {
  .cc-trades-carousel {
    --cc-trades-gap: 10px;
    padding: 0 14px 16px;
  }

  .cc-trades-carousel__title {
    margin-bottom: 40px;
    font-size: 28px;
  }

  .cc-trades-carousel__group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cc-trades-carousel__card h3 {
    min-height: 58px;
    padding: 9px 7px;
    font-size: 0.94rem;
  }

  .cc-trades-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }
}

@media (max-width: 23rem) {
  .cc-trades-carousel__card h3 {
    font-size: 0.84rem;
  }

  .cc-trades-list__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-trades-carousel__track {
    transition: none;
  }
}
