/* Shared dealer videos: retain the inner-page paper, navy and teal system. */
.dealer-videos {
  padding: clamp(44px, 6vw, 72px) 0;
  color: var(--sp-charcoal);
  font: 400 17px/1.65 var(--sp-body);
  scroll-margin-top: 100px;
}

.dealer-videos,
.dealer-videos *,
.dealer-videos *::before,
.dealer-videos *::after {
  box-sizing: border-box;
}

.dealer-videos__inner {
  width: 100%;
  max-width: calc(var(--sp-max) + 2 * var(--sp-gut));
  margin-inline: auto;
  padding-inline: var(--sp-gut);
}

.dealer-videos h2 {
  margin: 0 0 20px;
  color: var(--sp-ink);
  font: 700 clamp(34px, 5.2vw, 62px)/.98 var(--sp-display);
  letter-spacing: .005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.dealer-videos__inner > p {
  max-width: 68ch;
  margin: 0 0 26px;
}

.dealer-videos__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.dealer-videos .dealer-video,
.dealer-video__question > .dealer-video {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--sp-card);
  border: 1px solid var(--sp-hair);
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(11, 31, 46, .05);
}

.dealer-video video.dealer-video__player {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0;
  border: 0;
  border-radius: 19px 19px 0 0;
  background: var(--sp-ink);
  object-fit: contain;
}

.dealer-video .dealer-video__body {
  min-width: 0;
  padding: clamp(20px, 2.5vw, 28px);
  color: var(--sp-charcoal);
  font: 400 17px/1.65 var(--sp-body);
  overflow-wrap: break-word;
}

.dealer-video .dealer-video__body h3 {
  margin: 0 0 16px;
  color: var(--sp-ink);
  font: 700 clamp(26px, 3.2vw, 36px)/1.08 var(--sp-display);
  text-transform: uppercase;
  text-wrap: pretty;
}

.dealer-video .dealer-video__body blockquote {
  margin: 0 0 20px;
  padding: 0 0 0 18px;
  border: 0;
  border-left: 3px solid var(--sp-teal);
  color: var(--sp-charcoal);
  font: inherit;
}

.dealer-video .dealer-video__body blockquote p {
  margin: 0 0 12px;
}

.dealer-video .dealer-video__body blockquote p:last-child {
  margin-bottom: 0;
}

.dealer-video .dealer-video__byline {
  margin: 0 0 22px;
  color: var(--sp-grey);
  font: 400 14px/1.6 var(--sp-body);
}

.dealer-video .dealer-video__byline p {
  margin: 0;
}

.dealer-video .dealer-video__byline strong {
  color: var(--sp-ink);
  font-weight: 600;
}

/* Override legacy details surfaces without replacing native disclosure behavior. */
.dealer-video details.dealer-video__transcript {
  min-width: 0;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--sp-hair);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dealer-video details.dealer-video__transcript > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 12px 0;
  color: var(--sp-navy);
  font: 600 14px/1.5 var(--sp-body);
  text-transform: none;
  letter-spacing: normal;
  list-style: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dealer-video details.dealer-video__transcript > summary::after {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}

.dealer-video details.dealer-video__transcript[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}

.dealer-video details.dealer-video__transcript p {
  margin: 0 0 16px;
  color: var(--sp-charcoal);
  font: 400 15px/1.75 var(--sp-body);
}

.dealer-video details.dealer-video__transcript p:last-child {
  margin-bottom: 4px;
}

/* FAQ question disclosure: separate the question from the inner transcript. */
.dealer-videos details.dealer-video__question,
details.dealer-video__question {
  min-width: 0;
  margin: 0;
  padding: 0;
  background: var(--sp-card);
  border: 1px solid var(--sp-hair);
  border-radius: 16px;
  color: var(--sp-ink);
  scroll-margin-top: 100px;
}

details.dealer-video__question > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 20px 24px;
  border-radius: 15px;
  color: var(--sp-ink);
  font: 700 clamp(22px, 2.5vw, 28px)/1.18 var(--sp-display);
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
  overflow-wrap: break-word;
}

details.dealer-video__question > summary::after {
  content: "";
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    linear-gradient(var(--sp-navy), var(--sp-navy)) center / 14px 2px no-repeat,
    linear-gradient(var(--sp-navy), var(--sp-navy)) center / 2px 14px no-repeat,
    rgba(83, 200, 210, .16);
}

details.dealer-video__question[open] > summary::after {
  background:
    linear-gradient(var(--sp-navy), var(--sp-navy)) center / 14px 2px no-repeat,
    var(--sp-teal);
}

.dealer-videos details.dealer-video__question[open],
details.dealer-video__question[open] {
  border-color: rgba(15, 69, 104, .35);
}

.dealer-video__question > .dealer-video {
  margin: 0 24px 24px;
  box-shadow: none;
}

details.dealer-video__question > summary::-webkit-details-marker,
.dealer-video__transcript > summary::-webkit-details-marker {
  display: none;
}

details.dealer-video__question > summary:hover {
  background: rgba(83, 200, 210, .07);
}

.dealer-video .dealer-video__transcript > summary:hover,
.dealer-videos a.dealer-videos__more:hover {
  text-decoration-thickness: 2px;
}

.dealer-videos a.dealer-videos__more {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  max-width: 100%;
  margin-top: 24px;
  color: var(--sp-navy);
  font: 700 16px/1.3 var(--sp-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--sp-teal);
  text-underline-offset: 5px;
}

.dealer-video video.dealer-video__player:focus-visible,
.dealer-video .dealer-video__transcript > summary:focus-visible,
details.dealer-video__question > summary:focus-visible,
.dealer-videos a.dealer-videos__more:focus-visible {
  outline: 3px solid var(--sp-teal);
  outline-offset: 3px;
}

.dealer-video video.dealer-video__player:focus-visible {
  outline-offset: -4px;
}

/* The new page keeps the same hero measure and display scale as inner pages. */
.testimonials-page {
  min-width: 0;
  color: var(--sp-charcoal);
  font: 400 17px/1.65 var(--sp-body);
}

.testimonials-page .testimonials-hero {
  padding-block: clamp(48px, 7vw, 88px) 38px;
  background: linear-gradient(135deg, rgba(83, 200, 210, .14), transparent 55%);
}

.testimonials-page .testimonials-hero h1 {
  max-width: 850px;
  margin: 0;
  color: var(--sp-ink);
  font: 800 clamp(48px, 8vw, 98px)/.9 var(--sp-display);
  text-transform: uppercase;
  text-wrap: balance;
}

.testimonials-page .testimonials-hero p {
  max-width: 62ch;
  margin: 20px 0 0;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.65;
}

@media (min-width: 768px) {
  .dealer-videos--featured .dealer-videos__grid--single {
    max-width: none;
  }

  .dealer-videos--featured .dealer-video {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
  }

  .dealer-videos--featured video.dealer-video__player {
    border-radius: 19px 0 0 0;
  }

  .dealer-videos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dealer-videos__grid--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 860px;
  }
}

@media (max-width: 520px) {
  details.dealer-video__question > summary {
    gap: 12px;
    padding: 18px;
  }

  .dealer-video__question > .dealer-video {
    margin: 0 16px 16px;
  }

  .dealer-video__question .dealer-video__body {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dealer-video details.dealer-video__transcript > summary::after {
    transition: none;
  }
}
