/* Main CSS Entry Node */
@import './variables.css';
@import './reset.css';
@import './typography.css';
@import './animations.css';
@import './atoms.css';
@import './molecules.css';
@import './backgrounds.css';
@import './organisms.css';
@import './AnimatedList.css';

/* Service endorsement carousel: layout + remove shaded section background */
section.press-hub-bridge:has(+ .endorsement-carousel-wrapper),
section.press-hub-bridge:has(+ section.endorsement-section) {
    margin-bottom: var(--spacing-md);
}

section.external-citations.protected-citations:has(+ .endorsement-carousel-wrapper),
section.external-citations.protected-citations:has(+ section.endorsement-section) {
    margin-bottom: 0;
    padding-bottom: var(--spacing-md);
}

section.press-hub-bridge + .endorsement-carousel-wrapper,
section.external-citations.protected-citations + .endorsement-carousel-wrapper,
section.press-hub-bridge + section.endorsement-section,
section.external-citations.protected-citations + section.endorsement-section {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
}

.endorsement-carousel-wrapper {
    background: transparent;
    padding: var(--spacing-xl) 0;
}

.endorsement-carousel-wrapper .endorsement-section {
    background: transparent;
    background-image: none;
    padding: 0;
}

.endorsement-carousel-container .endorsement-horizontal-card,
section.endorsement-section .endorsement-horizontal-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: var(--spacing-lg);
    row-gap: var(--spacing-md);
    align-items: start;
}

.endorsement-carousel-container .endorsement-badge,
section.endorsement-section .endorsement-badge {
    grid-column: 1;
    grid-row: 1;
}

.endorsement-carousel-container .endorsement-content,
section.endorsement-section .endorsement-content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.endorsement-carousel-container .endorsement-cta-button,
section.endorsement-section .endorsement-cta-button {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    white-space: normal;
    font-size: 0.875rem;
    line-height: 1.4;
    padding: 0.65rem 1.15rem;
    max-width: 100%;
}

@media (max-width: 768px) {
    .endorsement-carousel-container .endorsement-horizontal-card,
    section.endorsement-section .endorsement-horizontal-card {
        grid-template-columns: 1fr;
    }

    .endorsement-carousel-container .endorsement-badge,
    section.endorsement-section .endorsement-badge {
        grid-column: 1;
        grid-row: 1;
    }

    .endorsement-carousel-container .endorsement-content,
    section.endorsement-section .endorsement-content {
        grid-column: 1;
        grid-row: 2;
    }

    .endorsement-carousel-container .endorsement-cta-button,
    section.endorsement-section .endorsement-cta-button {
        grid-column: 1;
        grid-row: 3;
        width: 100%;
        text-align: center;
        justify-self: stretch;
    }
}