.tfnz-expandable_container {
    margin: 56px auto 28px auto;
    width: 1056px;
    max-width: 80%;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tfnz-expandable_container .tfnz-expandable_content {
    background-color: var(--background-color);
    border-radius: 0.25rem;
    width: 100%;
}

.tfnz-expandable_container .tfnz-expandable_visible {
    padding: 40px 40px 50px 40px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border-radius: 0.25rem;
    background: inherit;
    transition: border-radius 0.15s;
    transition-delay: 0.4s;
    display: flex;
    gap: 30px;
}

.tfnz-expandable_container .tfnz-expandable_visible .tfnz-expandable_title {
    font-size: 1.4rem;
    line-height: 1.34;
    margin: 0;
    flex: 2.8;
}

.tfnz-expandable_container .tfnz-expandable_visible .tfnz-expandable_synopsis {
    color: #333;
    font-size: 1rem;
    line-height: 1.46;
    margin: 0;
    flex: 4;
}

.tfnz-expandable_container .tfnz-expandable_progress {
    background: var(--progress-color);
    transition: width 0.5s;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    position: absolute;
    bottom: 0;
    left: 0;
    height: 10px;
    width: 0;
    pointer-events: none;
}

.tfnz-expandable_container .tfnz-expandable_grid {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
}

.tfnz-expandable_container .tfnz-expandable_collapsible {
    box-shadow: 0 .5rem 2rem 0 #c0c5ce;
    background: #fff;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    overflow: hidden;
}

.tfnz-expandable_container .tfnz-expandable_collapsible_content {
    width: 80%;
    margin: 0 auto;
    padding: 56px 0 80px 0;
}

.tfnz-expandable_container .tfnz-expandable_collapsible_content p,
.tfnz-expandable_container .tfnz-expandable_collapsible_content li {
    font-size: 0.9rem; /* Match font size to TFI */
    color: #333;
    margin-left: 0 !important; /* WYSIWYG adds +40 margin. Override. */
    line-height: 1.46;
}

.tfnz-expandable_container .tfnz-expandable_collapsible_content img {
    border-radius: 0.625rem;
}

.tfnz-expandable_container .tfnz-expandable_collapsible_content h1,
.tfnz-expandable_container .tfnz-expandable_collapsible_content h2,
.tfnz-expandable_container .tfnz-expandable_collapsible_content h3,
.tfnz-expandable_container .tfnz-expandable_collapsible_content h4,
.tfnz-expandable_container .tfnz-expandable_collapsible_content h5,
.tfnz-expandable_container .tfnz-expandable_collapsible_content h6 {
    margin-left: 0 !important;
}

.tfnz-expandable_container .tfnz-expandable_button {
    background: var(--button-color);
    border: 0.125rem solid var(--button-color);
    padding: 0 1.25rem;
    height: 56px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.875rem;
    font-family: FSMe-regular, Calibri, "founders_grotesk_bold",sans-serif;
    margin: 0 2.5rem;
    border-radius: 0.375rem;
    color: rgb(255 255 255 / 1);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    gap: 12px;
    transition: background 0.3s, border-color 0.3s;
}

.tfnz-expandable_container .tfnz-expandable_button:hover {
    background: var(--button-hover-color);
    border-color: var(--button-hover-color);
}

.tfnz-expandable_container .tfnz-expandable_circle {
    background: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--button-color);
    transition: color 0.3s;
}

.tfnz-expandable_circle, .tfnz-expandable_container .tfnz-expandable_button:hover .tfnz-expandable_circle {
    color: var(--button-hover-color);
}

.tfnz-expandable_container .tfnz-expandable_circle svg:last-of-type {
    display: none;
}

.tfnz-expandable_container .tfnz-expandable_button::after {
    content: "Read more";
}

.tfnz-expandable_container.tfnz-expandable_expanded .tfnz-expandable_grid {
    grid-template-rows: 1fr;
}

.tfnz-expandable_container.tfnz-expandable_expanded .tfnz-expandable_visible {
    border-radius: 0.25rem 0.25rem 0 0;
    transition-delay: 0s;
}

.tfnz-expandable_container.tfnz-expandable_expanded .tfnz-expandable_progress {
    width: 100%;
}

.tfnz-expandable_container.tfnz-expandable_expanded .tfnz-expandable_button::after {
    content: "Close panel";
}

.tfnz-expandable_container.tfnz-expandable_expanded .tfnz-expandable_circle svg:first-of-type {
    display: none;
}

.tfnz-expandable_container.tfnz-expandable_expanded .tfnz-expandable_circle svg:last-of-type {
    display: block;
}

@media screen and (max-width: 1250px) {
    .tfnz-expandable_container {
        align-items: flex-start;
    }

    .tfnz-expandable_container .tfnz-expandable_visible {
        flex-direction: column;
        gap: 16px;
        padding: 32px 40px 52px 40px;
    }

    .tfnz-expandable_container .tfnz-expandable_visible .tfnz-expandable_title {
        font-size: 1.3rem;
    }

    .tfnz-expandable_container .tfnz-expandable_visible .tfnz-expandable_synopsis {
        font-size: 0.9rem;
    }

@media screen and (max-width: 800px) {
    .tfnz-expandable_container {
        max-width: 88%;
    }

    .tfnz-expandable_container .tfnz-expandable_visible {
        padding: 32px 20px 52px 20px;
    }

    .tfnz-expandable_container .tfnz-expandable_collapsible_content {
        width: auto;
        margin: 0 20px;
        padding: 32px 0 64px 0;
    }

    .tfnz-expandable_container .tfnz-expandable_visible .tfnz-expandable_title {
        font-size: 1.5rem;
    }

    .tfnz-expandable_container .tfnz-expandable_visible .tfnz-expandable_synopsis {
        font-size: 1.1rem;
    }

    .tfnz-expandable_container .tfnz-expandable_collapsible_content p,
    .tfnz-expandable_container .tfnz-expandable_collapsible_content li {
        font-size: 1.1rem;
    }
}