.layout-main-centered:has(.learning-article) {
    width: 100%;
}

.learning-article .learning-copy {
    max-width: 80ch;
}

.learning-article .learning-definitions {
    max-width: 80ch;
}

.learning-article .learning-definitions dt {
    font-weight: 600;
    margin-block-start: 1rem;
}

.learning-article .learning-definitions dd {
    margin-block-start: .25rem;
}

.learning-article .learning-figure__image {
    display: block;
    position: relative;
    width: 100%;
    max-width: var(--learning-frame-width);
    aspect-ratio: var(--learning-frame-ratio);
    container-type: inline-size;
    overflow: hidden;
}

.learning-article .learning-figure__viewport {
    max-width: 100%;
    overflow-x: auto;
    contain: inline-size;
}

.learning-article .learning-figure--wide .learning-figure__image {
    min-width: 1500px;
}

.learning-article .learning-figure img {
    display: block;
    position: absolute;
    left: var(--learning-image-left);
    top: var(--learning-image-top);
    width: var(--learning-image-width);
    max-width: none;
    height: auto;
}

.learning-article .learning-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.learning-article .learning-marker .badge,
.learning-article .learning-figure__legend .badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
    box-sizing: border-box;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    color: #b91c1c;
    background-color: #fff;
    border: 2px solid #b91c1c;
    border-radius: 50%;
}

.learning-article .learning-figure__legend {
    display: grid;
    gap: .5rem;
    padding: 0;
    list-style: none;
}

.learning-article .learning-figure__legend li {
    display: flex;
    align-items: baseline;
    gap: .65rem;
}

.learning-article .learning-figure__legend .badge {
    flex: 0 0 auto;
    font-weight: 700;
}

.learning-article .learning-steps > section {
    margin-block-start: 3rem;
    scroll-margin-top: 1.5rem;
}

.learning-article .learning-steps > section > section {
    margin-block-start: 2rem;
}
