/* Persistent, readable provenance labels. No image edits or hover dependency. */
.itbs-labelled-media,
.article-card-media,
.home-news-media,
.news-card-media,
.concept-product-visual,
.product-hero-media,
.medalert-hero-visual,
.pharmaflow-hero-visual {
    position: relative;
}

.media-origin-label {
    position: absolute;
    z-index: 5;
    inset: auto .625rem .625rem auto;
    display: block;
    width: max-content;
    max-width: calc(100% - 1.25rem);
    box-sizing: border-box;
    padding: .28rem .5rem;
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: .3rem;
    background: rgb(9 35 38 / 84%);
    color: #fff;
    font-family: inherit;
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .01em;
    text-align: left;
    text-transform: none;
    overflow-wrap: anywhere;
    pointer-events: none;
}

/* CMS figures may include captions/diagrams below the image. */
.itbs-labelled-media > .media-origin-label {
    inset: .625rem .625rem auto auto;
}

.about-profile-photo > .media-origin-label {
    inset: auto .35rem .35rem auto;
    width: max-content;
    max-width: calc(100% - .7rem);
    padding: .2rem .35rem;
}

/* Reserve a caption slot so narrow hero CTAs cannot sit behind the label. */
.itbs-inner-hero.itbs-inner-hero:has(> .media-origin-label) > .container {
    padding-bottom: 3.25rem;
}

/* Keep the homepage disclosure away from the slide controls and bottom CTA. */
.home-hero-slide > .media-origin-label {
    inset: .75rem .75rem auto auto;
}

@media (forced-colors: active) {
    .media-origin-label {
        background: Canvas;
        color: CanvasText;
        border-color: CanvasText;
    }
}
