.text-anaplast-2 {
    width: 100%;
    padding: var(--apl-space-7) 0;
    background-color: var(--apl-surface);
    container-type: inline-size;
}
.text-anaplast-2--bg-alt {
    background-color: var(--apl-surface-alt);
}
.text-anaplast-2 .content-wrapper {
    max-width: var(--apl-container);
    margin: 0 auto;
    padding-inline: var(--apl-gutter);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 6cqi, 5.5rem);
}
.text-anaplast-2--img-left .text-anaplast-2__media {
    order: -1;
}

.text-anaplast-2__text {
    display: flex;
    flex-direction: column;
    gap: var(--apl-space-3);
}
.text-anaplast-2__eyebrow {
    font-size: var(--apl-text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--apl-tracking-caps);
    color: var(--apl-amber-hover);
}
.text-anaplast-2__heading {
    margin: 0;
    font-size: var(--apl-text-2xl);
    font-weight: 700;
    line-height: var(--apl-leading-tight);
    color: var(--heading-color);
}
.text-anaplast-2__body {
    display: flex;
    flex-direction: column;
    gap: var(--apl-space-2);
}
.text-anaplast-2__body p {
    margin: 0;
    font-size: var(--apl-text-base);
    line-height: var(--apl-leading-normal);
    color: var(--text-color);
    white-space: pre-line;
}
.text-anaplast-2__cta {
    align-self: flex-start;
    margin-top: var(--apl-space-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--apl-control-min);
    background-color: var(--apl-accent);
    color: var(--apl-on-accent);
    text-decoration: none;
    font-size: var(--apl-text-sm);
    font-weight: 700;
    padding: 0.85rem 2rem;
    border: 2px solid transparent;
    border-radius: var(--apl-radius-sm);
    transition: background-color var(--apl-transition);
}
.text-anaplast-2__cta:hover {
    background-color: var(--apl-accent-hover);
}
.text-anaplast-2__cta:focus-visible {
    outline: var(--apl-focus);
    outline-offset: var(--apl-focus-offset);
}

.text-anaplast-2__media {
    border: 1px solid var(--apl-border);
    border-radius: var(--apl-radius-md);
    overflow: hidden;
    box-shadow: var(--apl-shadow-sm);
}
.text-anaplast-2__media .text-anaplast-2__img,
.text-anaplast-2__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@container (width < 55rem) {
    .text-anaplast-2 {
        padding: var(--apl-space-5) 0;
    }
    .text-anaplast-2 .content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--apl-space-4);
    }
    /* img-left keeps its order:-1 (image above text); img-right stacks
       text-then-image, matching the chosen image position. */
}
