.tb-brochure-teaser__image {
    // Might be replaced later by a design token
    transform: rotate(350deg);
}

.tb-brochure-teaser__toggle {
    .c-icon {
        top: .3125rem; // Adjustment for not visually vertically centered icon.
    }

    .c-icon--toggle-up {
        display: none;
    }

    &[aria-expanded=true] {
        .c-icon--toggle-up {
            display: inline;
        }

        .c-icon--toggle-down {
            display: none;
        }
    }
}

.tb-brochure-teaser__text {
    max-height: 0;
}

.tb-brochure-teaser__action--initially-hidden {
    display: none;
}

.tb-brochure-teaser__content {
    @apply -mb-20 transition-all;
    /*
     * Removes flicker effect of collapsing content. Might
     * be replaced later with another solution.
     */
    min-height: 10rem;
    transition-timing-function: cubic-bezier(.7, .075, .53, 1.49);
}

.tb-brochure-teaser__content.expanded {
    margin-bottom: -10rem;
    transform: translateY(-10rem);

    .tb-brochure-teaser__text {
        opacity: 1;
        max-height: 1000rem;
        visibility: visible;
        margin-top: theme('margin.2');
    }

    .tb-brochure-teaser__action--initially-hidden,
    .tb-brochure-teaser__file-size {
        display: block;
    }
}
