/* Shared layout for story pages, independent of the selected content layout. */
.ef-story-content {
    position: relative;
    overflow: hidden;
    padding: 96px 0 112px;
    background: var(--ef-white);
}

.ef-story-content__head {
    margin: 0 auto 30px;
    text-align: center;
}

.ef-home-shell .ef-story-content__head h2 {
    margin: 10px 0;
    color: var(--ef-black);
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.1;
}

.ef-story-content__head p {
    max-width: 760px;
    margin: 14px auto 0;
    color: var(--ef-color-muted);
    font: 400 18px/1.8 "Open Sans", Arial, sans-serif;
}

.ef-story-content__action {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.ef-story-content__action .ef-btn,
.ef-story-content__action .ef-story-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 32px;
    border: 0;
    border-radius: var(--ef-control-radius);
    background: var(--ef-gold-effect);
    background-size: 200% auto;
    color: var(--ef-black) !important;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.35s ease;
}

.ef-story-content__action .ef-btn:hover,
.ef-story-content__action .ef-btn:focus-visible,
.ef-story-content__action .ef-story-hero__button:hover,
.ef-story-content__action .ef-story-hero__button:focus-visible {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.22);
    outline: none;
}

@media (max-width: 767px) {
    .ef-story-content {
        padding: 72px 0 88px;
    }

    .ef-story-content .ef-home-shell {
        width: min(328px, 520px);
    }

    .ef-story-content__action {
        margin-top: 34px;
    }

    .ef-story-content__action .ef-btn,
    .ef-story-content__action .ef-story-hero__button {
        width: 100%;
        max-width: 310px;
    }
}

@media (max-width: 560px) {
    .ef-story-content {
        padding-top: 48px;
        padding-bottom: 44px;
    }

    .ef-story-content__head {
        margin-bottom: 34px;
    }

    .ef-story-content__head h2 {
        font-size: clamp(1.85rem, 2.3vw, 2.65rem);
        line-height: 1.08;
    }
}
