/* TASK 830F-2 - shared live hero text and decor CSS.
   Plain CSS only. No Bootstrap. ASCII only.
   Layer order inside .axm-hero-wrap:
   bg-layer (1), decor (5), fg-layer (10), text (11). */

.axm-hero-wrap.axm-live {
    container-type: inline-size;
}

.axm-live-decor {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    box-sizing: border-box;
}

.axm-live-text {
    position: absolute;
    z-index: 11;
    transform: translateY(-50%);
    margin: 0;
    white-space: pre-line;
    box-sizing: border-box;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* TASK 830F-4 - one line unless the text is longer than the layer can hold. */
.axm-live-text.axm-nowrap {
    display: block;
    white-space: nowrap;
    overflow: visible;
}

.axm-live-text.axm-wrap {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.axm-live-text a {
    color: inherit;
    text-decoration: none;
}

/* TASK 830F-5 - the phone re-stack of the live hero text (axmLiveMobileHtml).
   Hidden everywhere by default; the Sidebar phone rules in
   assets/css/sidebar-mobile.css turn it into a flow column. */
.axm-live-mobile {
    display: none;
}
