.fdclinic-expandable {
    --fdclinic-expandable-text: #434343;
    --fdclinic-expandable-title: #333333;
    --fdclinic-expandable-accent: #e31e24;
    --fdclinic-expandable-accent-hover: #c9171d;
    --fdclinic-expandable-radius: 12px;
    width: 100%;
    margin: 0;
    color: var(--fdclinic-expandable-text);
    box-sizing: border-box;
}

.fdclinic-expandable *,
.fdclinic-expandable *::before,
.fdclinic-expandable *::after {
    box-sizing: border-box;
}

.fdclinic-expandable__container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.fdclinic-expandable__title {
    margin: 0;
    padding: 0 15px 32px;
    color: var(--fdclinic-expandable-title);
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 42px;
}

.fdclinic-expandable__layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    grid-template-rows: auto 1fr auto auto;
    grid-template-areas:
        "image lead"
        "image visible"
        "image button"
        "extra extra";
    width: 100%;
    align-items: start;
}

.fdclinic-expandable__image-wrap {
    grid-area: image;
    min-width: 0;
    margin: 0;
    padding: 0 15px;
    align-self: stretch;
}

.fdclinic-expandable__image {
    display: block;
    width: 100%;
    aspect-ratio: 486.656 / 556.781;
    object-fit: cover;
    border: 4px solid #ffffff;
    border-radius: var(--fdclinic-expandable-radius);
}

.fdclinic-expandable__lead {
    grid-area: lead;
    min-width: 0;
    padding: 0 15px;
    color: var(--fdclinic-expandable-title);
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.15;
}

.fdclinic-expandable__lead:empty {
    display: none;
}

.fdclinic-expandable__visible {
    grid-area: visible;
    min-width: 0;
    padding: 24px 15px 0;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.fdclinic-expandable__visible > :first-child,
.fdclinic-expandable__extra-inner > :first-child {
    margin-top: 0;
}

.fdclinic-expandable__visible > :last-child,
.fdclinic-expandable__extra-inner > :last-child {
    margin-bottom: 0;
}

.fdclinic-expandable__visible p,
.fdclinic-expandable__visible ul,
.fdclinic-expandable__visible ol,
.fdclinic-expandable__visible blockquote,
.fdclinic-expandable__extra-inner p,
.fdclinic-expandable__extra-inner ul,
.fdclinic-expandable__extra-inner ol,
.fdclinic-expandable__extra-inner blockquote {
    margin-top: 0;
    margin-bottom: 16px;
}

.fdclinic-expandable__visible ul,
.fdclinic-expandable__visible ol,
.fdclinic-expandable__extra-inner ul,
.fdclinic-expandable__extra-inner ol {
    padding-left: 24px;
}

.fdclinic-expandable__visible li + li,
.fdclinic-expandable__extra-inner li + li {
    margin-top: 8px;
}

.fdclinic-expandable__visible h2,
.fdclinic-expandable__visible h3,
.fdclinic-expandable__visible h4,
.fdclinic-expandable__extra-inner h2,
.fdclinic-expandable__extra-inner h3,
.fdclinic-expandable__extra-inner h4 {
    margin: 24px 0 12px;
    color: var(--fdclinic-expandable-title);
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    line-height: 1.2;
}

.fdclinic-expandable__toggle {
    grid-area: button;
    justify-self: start;
    min-width: 168px;
    min-height: 48px;
    margin: 20px 15px 0;
    padding: 12px 24px;
    border: 0;
    border-radius: 6px;
    background: var(--fdclinic-expandable-accent);
    color: #ffffff;
    box-shadow: none;
    cursor: pointer;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
    transition: background-color .2s ease, transform .2s ease;
}

.fdclinic-expandable__toggle:hover {
    background: var(--fdclinic-expandable-accent-hover);
}

.fdclinic-expandable__toggle:active {
    transform: translateY(1px);
}

.fdclinic-expandable__toggle:focus-visible {
    outline: 3px solid rgba(227, 30, 36, .24);
    outline-offset: 3px;
}

.fdclinic-expandable__toggle:disabled {
    cursor: wait;
    opacity: .78;
}

.fdclinic-expandable__extra {
    grid-area: extra;
    min-width: 0;
    padding: 0 15px;
    overflow: hidden;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.fdclinic-expandable__extra[hidden] {
    display: none !important;
}

.fdclinic-expandable__extra-inner {
    padding-top: 30px;
}

@media (max-width: 767px) {
    .fdclinic-expandable__container {
        padding: 0 15px;
    }

    .fdclinic-expandable__title {
        padding: 0 0 20px;
        font-size: 28px;
        line-height: 34px;
    }

    .fdclinic-expandable__layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        grid-template-areas:
            "image"
            "lead"
            "visible"
            "button"
            "extra";
    }

    .fdclinic-expandable__image-wrap,
    .fdclinic-expandable__lead,
    .fdclinic-expandable__visible,
    .fdclinic-expandable__extra {
        padding-right: 0;
        padding-left: 0;
    }

    .fdclinic-expandable__image-wrap {
        margin-bottom: 22px;
    }

    .fdclinic-expandable__image {
        width: 100%;
        max-height: 520px;
        aspect-ratio: 1 / 1.08;
    }

    .fdclinic-expandable__lead {
        font-size: 21px;
        line-height: 1.2;
    }

    .fdclinic-expandable__visible {
        padding-top: 18px;
    }

    .fdclinic-expandable__toggle {
        width: 100%;
        margin: 22px 0 0;
    }

    .fdclinic-expandable__extra-inner {
        padding-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fdclinic-expandable__toggle {
        transition: none;
    }
}
