/* Shared layout for the published testimonials, including the Véro pilot. */
.apd-testimonial {
    --story-ink: #3b4756;
    --story-accent: #bd3c03;
    color: var(--story-ink);
    font: 400 18px/1.8 Karla, Arial, sans-serif;
}
.apd-testimonial .apd-testimonial-header {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
    background: #faf7f3;
    border-top: 3px solid #e74804;
}
.apd-testimonial .apd-testimonial-portrait { margin: 0; }
.apd-testimonial .apd-testimonial-image {
    display: block;
    float: none;
    width: 360px;
    max-width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
}
.apd-testimonial .apd-testimonial-identity { min-width: 0; padding: 24px 24px 24px 0; }
.apd-testimonial .apd-testimonial-kicker {
    margin: 0 0 8px;
    color: var(--story-accent);
    font: 700 12px/1.5 Montserrat, Arial, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.apd-testimonial h2 {
    margin: 0 0 20px;
    color: var(--story-ink);
    font: 700 36px/1.2 Montserrat, Arial, sans-serif;
    text-transform: none;
}
.apd-testimonial .apd-testimonial-facts { margin: 0; }
.apd-testimonial .apd-testimonial-facts > div + div { margin-top: 12px; }
.apd-testimonial dt { color: #62676b; font: 400 14px/1.5 Karla, Arial, sans-serif; }
.apd-testimonial dd { margin: 0; color: var(--story-ink); font: 700 17px/1.5 Karla, Arial, sans-serif; }
.apd-testimonial .apd-testimonial-copy { max-width: none; }
.apd-testimonial .apd-testimonial-copy p { margin: 0 0 22px; text-align: left; }
.apd-testimonial .apd-testimonial-copy p:first-child { font-size: 21px; line-height: 1.65; }
.apd-testimonial .apd-testimonial-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid #e2e5e8; }
.apd-testimonial .apd-testimonial-footer a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: var(--story-ink);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--story-accent);
    text-underline-offset: 5px;
}
.apd-testimonial .apd-testimonial-footer a:hover { color: var(--story-accent); }
.apd-testimonial .apd-testimonial-footer a:focus-visible { outline: 2px solid var(--story-accent); outline-offset: 5px; }
@media (max-width: 640px) {
    .apd-testimonial { font-size: 17px; line-height: 1.75; }
    .apd-testimonial .apd-testimonial-header { grid-template-columns: 1fr; gap: 20px; padding: 24px; margin-bottom: 24px; }
    .apd-testimonial .apd-testimonial-image { width: 100%; max-width: 360px; }
    .apd-testimonial .apd-testimonial-identity { padding: 0; }
    .apd-testimonial h2 { font-size: 30px; margin-bottom: 16px; }
    .apd-testimonial .apd-testimonial-copy p:first-child { font-size: 19px; }
}

/* The same reading rhythm for the original table-based stories and videos. */
.apd-testimonial .apd-testimonial-header--text {
    display: block;
    padding: 28px 32px;
}
.apd-testimonial .apd-testimonial-header--text .apd-testimonial-identity { padding: 0; }
.apd-testimonial .apd-testimonial-text,
.apd-testimonial .apd-testimonial-fragment,
.apd-testimonial .apd-testimonial-story {
    color: var(--story-ink);
    font: 400 18px/1.8 Karla, Arial, sans-serif;
    text-align: left;
    overflow-wrap: break-word;
}
.apd-testimonial .apd-testimonial-story { max-width: none; }
.apd-testimonial .apd-testimonial-text { margin: 0 0 22px; }
.apd-testimonial .apd-testimonial-fragment { margin-bottom: 22px; }
.apd-testimonial .apd-testimonial-fragment br { display: block; content: ''; margin-top: 14px; }
.apd-testimonial .apd-testimonial-photo-links { margin-top: 16px; }
.apd-testimonial .apd-testimonial-photo-links a { color: var(--story-ink); text-decoration: underline; text-underline-offset: 4px; }
.apd-testimonial .apd-testimonial-photo-links span { font: inherit !important; color: inherit !important; }
.apd-testimonial .apd-testimonial-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 28px 0; }
.apd-testimonial .apd-testimonial-gallery img { display: block; max-width: 100%; width: auto; height: auto; float: none; margin: 0 auto; }
.apd-testimonial .apd-testimonial-gallery p { margin: 0; }
.apd-testimonial .apd-testimonial-portrait a { display: block; }
.apd-testimonial .apd-legacy-story { margin: 0; color: inherit; }
.apd-testimonial .wp-video { max-width: 100%; margin: 24px 0; }
.apd-testimonial .wp-video video { max-width: 100%; }
.apd-testimonial .vc_tta-panel-body { min-width: 0; }
.apd-testimonial a:focus-visible { outline: 2px solid var(--story-accent); outline-offset: 4px; }
@media (max-width: 640px) {
    .apd-testimonial .apd-testimonial-header--text { padding: 24px; }
    .apd-testimonial .apd-testimonial-gallery { grid-template-columns: 1fr; }
    .apd-testimonial .apd-testimonial-text,
    .apd-testimonial .apd-testimonial-fragment,
    .apd-testimonial .apd-testimonial-story { font-size: 17px; line-height: 1.75; }
}

.apd-testimonial .apd-testimonial-image { max-height: 480px; object-fit: contain; }
@media (max-width: 640px) { .apd-testimonial .apd-testimonial-image { max-height: 420px; } }

.apd-testimonial .vc_pagination { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; margin: 0 0 24px; }
.apd-testimonial .vc_pagination .vc_pagination-trigger { display: inline-flex; align-items: center; justify-content: center; min-width: 80px; width: auto; height: auto; min-height: 44px; padding: 8px 16px; border: 1px solid #d6dadd; border-radius: 0; color: #3b4756; background: #fff; font: 700 16px/1.5 Karla, Arial, sans-serif; }
.apd-testimonial .vc_pagination .vc_active .vc_pagination-trigger { border-color: #bd3c03; color: #fff; background: #bd3c03; }
.apd-testimonial .vc_tta-pageable { padding-top: 0 !important; }
.apd-testimonial .vc_tta-pageable .vc_tta-panels-container { display: flex; flex-direction: column; }
.apd-testimonial .vc_tta-pageable .vc_pagination { position: static !important; top: auto !important; transform: none !important; order: -1; margin: 0 0 24px !important; }

@media (min-width: 641px) and (max-width: 900px) {
    .apd-testimonial .apd-testimonial-header { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 24px; }
    .apd-testimonial .apd-testimonial-image { width: 280px; }
}
