.thanks-marquee-section,
.thanks-marquee-section * {
    box-sizing: border-box;
}

.thanks-marquee-section {
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #253437;
    background: transparent;
}

.thanks-marquee-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.thanks-marquee-heading-copy {
    min-width: 0;
}

.thanks-marquee-heading h2 {
    margin: 0;
    font-size: clamp(30px, 3.1vw, 48px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.thanks-marquee-total {
    flex: 0 0 auto;
    margin: 0 0 3px;
    color: #68777a;
    font-size: 14px;
    line-height: 1.4;
}

.thanks-marquee-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    min-width: 0;
    align-items: stretch;
}

.thanks-marquee-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 344px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(37, 52, 55, .12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(19, 67, 82, .07);
    color: #253437;
    text-decoration: none;
    transform: translateY(0);
    transition: border-color 180ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1);
}

.thanks-marquee-card--clickable {
    cursor: pointer;
}

.thanks-marquee-card--clickable:focus-within {
    border-color: rgba(2, 187, 223, .42);
    box-shadow: 0 14px 36px rgba(19, 67, 82, .12);
}

.thanks-marquee-logo-slot {
    display: flex;
    min-height: 72px;
    align-items: center;
    padding: 14px 20px 0;
}

.thanks-marquee-logo {
    display: block;
    width: auto;
    max-width: 125px;
    height: 56px;
    object-fit: contain;
    object-position: left center;
}

.thanks-marquee-logo--fallback {
    width: 64px;
    max-width: 64px;
    height: 56px;
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(20%) sepia(11%) saturate(822%) hue-rotate(144deg) brightness(88%) contrast(90%);
}

.thanks-marquee-review {
    min-height: 108px;
    margin: 0;
    padding: 22px 20px 14px;
    color: #253437;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.4;
}

.thanks-marquee-review > span {
    display: block;
}

.thanks-marquee-person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px 18px;
}

.thanks-marquee-avatar {
    display: grid;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    object-fit: cover;
    background: #f5f2eb;
}

.thanks-marquee-avatar--empty {
    color: #02bbdf;
    font-size: 20px;
}

.thanks-marquee-who {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.thanks-marquee-who strong {
    overflow-wrap: anywhere;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
}

.thanks-marquee-who span {
    color: #68777a;
    font-size: 12px;
    line-height: 1.35;
}

.thanks-marquee-letter-link {
    display: flex;
    min-height: 48px;
    margin-top: auto;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    color: #253437;
    background: #f5f2eb;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}

.thanks-marquee-letter-link--missing {
    color: #68777a;
    background: #f5f2eb;
}

.thanks-marquee-card--clickable:focus-visible .thanks-marquee-letter-link {
    color: #fff;
    background: #00b3db;
}

.thanks-load-more-controls {
    margin-top: 28px;
}

.thanks-marquee-section a:focus-visible {
    outline: 3px solid rgba(2, 187, 223, .42);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .thanks-marquee-card--clickable:hover {
        border-color: rgba(2, 187, 223, .28);
        box-shadow: 0 14px 36px rgba(19, 67, 82, .12);
        transform: translateY(-2px);
    }

    .thanks-marquee-card--clickable:hover .thanks-marquee-letter-link {
        color: #fff;
        background: #00b3db;
    }
}

@media (max-width: 767px) {
    .thanks-marquee-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 22px;
    }

    .thanks-marquee-total {
        margin: 0;
    }

    .thanks-marquee-card {
        min-height: clamp(340px, 98vw, 380px);
    }
}

@media (min-width: 768px) {
    .thanks-marquee-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .thanks-marquee-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .thanks-marquee-card {
        transition-duration: .01ms;
    }

    .thanks-marquee-card--clickable:hover {
        transform: none;
    }

    .thanks-marquee-letter-link {
        transition: none;
    }
}
