/* Testimonials page (/testimonials) — pieces pages.css has no component for:
   the learner rating summary with bars, two-figure stat pairs on industry cards,
   and case-study cards. */

/* Hero panel extras */
.v4-panel-unit { font-family: var(--v4-font-sans); font-size: .8125rem; font-weight: 600; color: rgba(255, 255, 255, .64); margin-left: 2px; }
.v4-panel-note { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8125rem; color: rgba(255, 255, 255, .64); }

/* Empty stars for ratings below five */
.v4-stars .is-off { color: var(--v4-line-2); }
.v4-quote > .v4-card__top { align-items: center; }
.v4-quote .v4-tag .v4-ico { width: 13px; height: 13px; }

/* Learner rating summary: score · breakdown bars · source note */
.v4-ratingsum {
    display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, .8fr); align-items: center; gap: 24px 48px;
    margin-bottom: 24px; padding: clamp(22px, 3vw, 32px); background: #fff; border: 1px solid var(--v4-line); border-radius: var(--v4-r-lg);
}
.v4-ratingsum__score { display: flex; align-items: center; gap: 16px; }
.v4-ratingsum__score > strong { font-family: var(--v4-font-display); font-weight: 600; font-size: 3.5rem; line-height: 1; letter-spacing: -0.03em; }
.v4-ratingsum__score > div { display: grid; gap: 6px; font-size: .875rem; color: var(--v4-text-3); }
.v4-ratingsum__score .v4-stars .v4-ico { width: 18px; height: 18px; }
.v4-ratingsum__note { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--v4-text-3); }
.v4-ratingsum__note > .v4-ico { width: 20px; height: 20px; color: var(--v4-teal-700); margin-top: 1px; }

.v4-bars { display: grid; gap: 8px; }
.v4-bars li { display: grid; grid-template-columns: 52px minmax(0, 1fr) 28px; align-items: center; gap: 12px; font-size: .8438rem; color: var(--v4-text-2); }
.v4-bars b { display: block; height: 8px; border-radius: 999px; background: var(--v4-slate-100); overflow: hidden; }
.v4-bars i { display: block; width: var(--w, 0%); height: 100%; border-radius: inherit; background: var(--v4-gold-500); }
.v4-bars em { font-style: normal; font-weight: 700; text-align: right; color: var(--v4-text); font-variant-numeric: tabular-nums; }

/* Two figures at the foot of an industry card */
.v4-pair { justify-content: flex-start; gap: 28px; }
.v4-pair > div { display: flex; flex-direction: column; gap: 2px; }
.v4-pair dd { order: -1; margin: 0; font-family: var(--v4-font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; color: var(--v4-text); font-variant-numeric: tabular-nums; }
.v4-pair dt { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--v4-text-3); }

/* Case studies */
.v4-cases { display: grid; gap: 20px; }
.v4-case { gap: 24px; padding: clamp(24px, 3vw, 36px); }
.v4-case__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; padding-bottom: 24px; border-bottom: 1px solid var(--v4-line); }
.v4-case__head h3 { margin-top: 6px; font-size: clamp(1.25rem, .5vw + 1.05rem, 1.5rem); }
.v4-case__stats { display: flex; }
.v4-case__stats > div { display: flex; flex-direction: column; gap: 4px; padding-inline: 24px; border-left: 1px solid var(--v4-line); }
.v4-case__stats > div:first-child { padding-left: 0; border-left: 0; }
.v4-case__stats > div:last-child { padding-right: 0; }
.v4-case__stats dd { order: -1; margin: 0; font-family: var(--v4-font-display); font-weight: 600; font-size: 2rem; line-height: 1; color: var(--v4-text); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.v4-case__stats dt { font-size: .8125rem; color: var(--v4-text-3); }
.v4-case__story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.v4-case__story dt { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--v4-text-3); }
.v4-case__story dt .v4-ico { width: 18px; height: 18px; color: var(--v4-teal-700); }
.v4-case__story dd { margin: 0; font-size: .9375rem; color: var(--v4-text-2); }
.v4-case__story .is-result { padding: 16px 18px; margin: -16px -18px; border-radius: var(--v4-r); background: var(--v4-teal-50); }
.v4-case__story .is-result dt { color: var(--v4-teal-800); }
.v4-case__story .is-result dd { color: var(--v4-text); font-weight: 600; }

@media (max-width: 1080px) {
    .v4-ratingsum { grid-template-columns: auto minmax(0, 1fr); }
    .v4-ratingsum__note { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .v4-case__story { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .v4-case__story .is-result { margin: 4px 0 0; }
}
@media (max-width: 640px) {
    .v4-ratingsum { grid-template-columns: minmax(0, 1fr); }
    .v4-case__head { padding-bottom: 20px; }
    .v4-case__stats { width: 100%; }
    .v4-case__stats > div { flex: 1 1 0; padding-inline: 14px; }
    .v4-case__stats dd { font-size: 1.6rem; }
    .v4-case__stats dt { font-size: .75rem; line-height: 1.35; }
}
