/**
 * Resource and Education lifecycle states.
 *
 * The wrapper classes mirror the production Elementor container hierarchy;
 * this file owns only lifecycle-specific visual tokens and responsive layout.
 */

/* Square by design (DIGI-5045): the notice is deliberately not card-shaped,
   so it reads as an alert against the rounded cards either side of it. */
.ashm-lifecycle-notice {
    align-items: stretch;
    background: #f4eaf1;
    border-radius: 0;
    color: #122346;
    display: grid;
    grid-template-columns: 6px minmax(0, 1fr);
    margin: 0;
    overflow: hidden;
    width: 100%;
}

.ashm-lifecycle-notice__bar {
    background: #d81159;
    display: block;
}

.ashm-lifecycle-notice__message {
    color: inherit;
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    padding: 20px 24px;
}

.ashm-tombstone {
    --display: flex;
    --flex-direction: column;
    background: #f5f6fa;
    color: #122346;
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    width: 100%;
}

.ashm-tombstone > .e-con-inner {
    display: flex;
    flex-direction: column;
    margin-inline: auto;
    max-width: min(100%, 1140px);
    width: 100%;
}

.ashm-tombstone .ashm-tombstone__inner {
    --flex-direction: row;
    --flex-wrap: nowrap;
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 48px;
    justify-content: space-between;
    margin-inline: auto;
    max-width: 1060px;
    padding: 48px 0;
    width: calc(100% - 80px);
}

.ashm-tombstone .ashm-tombstone__content {
    --width: calc((100% - 48px) / 2);
    display: flex;
    flex: 1 1 calc((100% - 48px) / 2);
    width: calc((100% - 48px) / 2);
    flex-direction: column;
    max-width: 520px;
    min-width: 0;
}

.ashm-tombstone__eyebrow-widget,
.ashm-tombstone__title-widget,
.ashm-tombstone__message-widget {
    margin: 0;
}

.ashm-tombstone .ashm-tombstone__eyebrow {
    color: #d81159;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 20px;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.ashm-tombstone .ashm-tombstone__title {
    color: #333;
    font-family: Roboto, sans-serif;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0 0 16px;
}

.ashm-tombstone__message {
    color: #4a5773;
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 24px;
    max-width: 500px;
}

.ashm-tombstone__cta-widget {
    align-self: flex-start;
    margin: 0;
    width: max-content;
}

.ashm-tombstone__cta .elementor-button-content-wrapper {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.ashm-tombstone__cta .elementor-button-icon {
    display: inline-flex;
}

.ashm-tombstone__cta .elementor-button-icon svg {
    fill: currentColor;
    height: 12px;
    width: 8px;
}

.ashm-tombstone .ashm-tombstone__media {
    --width: calc((100% - 48px) / 2);
    align-items: center;
    display: flex;
    flex: 1 1 calc((100% - 48px) / 2);
    justify-content: center;
    max-width: 520px;
    width: calc((100% - 48px) / 2);
    min-width: 0;
}

.ashm-tombstone__image-widget {
    width: 100%;
}

.ashm-tombstone__illustration {
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

@media (max-width: 1024px) {
    .ashm-tombstone .ashm-tombstone__inner {
        gap: 32px;
        padding: 40px 24px;
        width: 100%;
    }

    .ashm-tombstone .ashm-tombstone__title {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .ashm-lifecycle-notice__message {
        font-size: 15px;
        padding: 16px;
    }

    .ashm-tombstone .ashm-tombstone__inner {
        --flex-direction: column;
        --flex-wrap: nowrap;
        align-items: flex-start;
        flex-direction: column;
        gap: 32px;
        padding: 32px 16px;
    }

    .ashm-tombstone .ashm-tombstone__content {
        --width: 100%;
        flex: 0 1 auto;
        max-width: none;
        width: 100%;
    }

    .ashm-tombstone .ashm-tombstone__title {
        font-size: 32px;
        line-height: 1.2;
    }

    .ashm-tombstone__message {
        font-size: 16px;
    }

    .ashm-tombstone .ashm-tombstone__media {
        --width: 100%;
        align-self: center;
        flex: 0 1 auto;
        max-width: 100%;
        width: min(100%, 478px);
    }

    .ashm-tombstone__illustration {
        width: 100%;
    }
}
