/* Testimonials — TM-A */

.centercontent > .container.design-print:has(.tm-page) {
  width: 100%;
  max-width: 1280px;
  padding-left: 0;
  padding-right: 0;
}

.centercontent .container:has(.tm-page) .leftdefaultimg,
.centercontent .container:has(.tm-page) .weareeverywhere {
  display: none !important;
}

.tm-page,
.tm-page *,
.tm-page *::before,
.tm-page *::after {
  box-sizing: border-box;
}

.tm-page {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: #26313a;
}

.tm-page a {
  color: #204e75;
  text-decoration: none;
}

.tm-page a:hover,
.tm-page a:focus {
  color: #163854;
  text-decoration: underline;
}

/* 1. Header band */
.tm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 40px;
  border-bottom: 1px solid #e6e9ec;
}

.tm-intro {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-tick {
  display: block;
  width: 34px;
  height: 3px;
  background: #c4470c;
}

.tm-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #8a9199;
  text-transform: uppercase;
}

.tm-intro h1 {
  margin: 0;
  font-size: 33px;
  font-weight: 700;
  line-height: 1.12;
  color: #204e75;
}

.tm-intro p,
.tm-intro .gap-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #55606a;
}

.tm-intro p + p,
.tm-intro .gap-text + .gap-text,
.tm-intro p + .gap-text {
  margin-top: 10px;
}

.tm-intro b,
.tm-intro strong {
  font-weight: 700;
  color: #26313a;
}

.tm-intro h2 {
  display: none;
}

.tm-rating {
  flex: none;
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 30px;
  border: 1px solid #dfe4e8;
  border-top: 3px solid #c4470c;
  background: #fff;
  text-align: center;
  text-decoration: none !important;
  color: inherit;
}

.tm-rating:hover,
.tm-rating:focus {
  color: inherit;
  text-decoration: none !important;
  border-color: #204e75;
  border-top-color: #c4470c;
}

.tm-rating:focus-visible {
  outline: 2px solid #204e75;
  outline-offset: 2px;
}

.tm-rating__score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}

.tm-rating__num {
  font-size: 46px;
  font-weight: 700;
  color: #1d2429;
}

.tm-rating__of {
  font-size: 18px;
  color: #8a9199;
}

.tm-rating__stars {
  display: flex;
  gap: 3px;
  color: #e8a33d;
}

.tm-rating__note {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: #6a747d;
}

/* 2. Grid */
.tm-list {
  padding: 44px 40px 56px;
}

.tm-page .list-view.tm-grid,
.tm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tm-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 28px;
  border: 1px solid #dfe4e8;
  background: #fff;
}

.tm-card:hover,
.tm-card:focus-within {
  border-color: #204e75;
}

.tm-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tm-card__stars {
  display: flex;
  gap: 2px;
  color: #e8a33d;
}

.tm-card__stars .tm-star--empty {
  color: #e6ebf1;
}

.tm-quote-mark {
  flex: none;
  color: #e6ebf1;
}

.tm-card__quote {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #26313a;
}

.tm-card__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #eef0f2;
}

.tm-initials {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #204e75;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tm-who strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #204e75;
}

.tm-who span {
  display: block;
  font-size: 12px;
  color: #8a9199;
}

.tm-grid > .pagination,
.tm-grid > .ias-spinner,
.tm-grid > .ias-noneleft,
.tm-grid > .ias-trigger,
.tm-grid > .empty {
  grid-column: 1 / -1;
}

.tm-page .empty {
  margin: 0;
  padding: 24px 0;
  font-size: 14.5px;
  color: #55606a;
  text-align: center;
}

.tm-page .ias-noneleft {
  display: none;
}

.tm-page .ias-spinner {
  padding: 12px 0 0;
  text-align: center;
}

/* 3. Closing CTA */
.tm-close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px;
  background: #f5f5f5;
  border-top: 1px solid #e6e9ec;
}

.tm-close__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tm-close__copy h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #204e75;
}

.tm-cta {
  flex: none;
  display: inline-block;
  padding: 14px 30px;
  background: #c4470c;
  border: 1px solid #c4470c;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.tm-cta:hover,
.tm-cta:focus {
  background: #a13908;
  border-color: #a13908;
  color: #fff !important;
  text-decoration: none !important;
}

.tm-cta:focus-visible {
  outline: 2px solid #204e75;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .tm-head,
  .tm-close {
    flex-direction: column;
    align-items: stretch;
  }

  .tm-intro h1 {
    font-size: 26px;
  }

  .tm-rating {
    width: 100%;
  }

  .tm-page .list-view.tm-grid,
  .tm-grid {
    grid-template-columns: 1fr;
  }

  .tm-head,
  .tm-list,
  .tm-close {
    padding-left: 18px;
    padding-right: 18px;
  }
}
