/* MSJ inner-page heroes: one responsive layout contract. Opt-in and screen only.
   Minimum heights let long copy, narrow screens and enlarged text grow safely. */
@media screen {
    :root {
        --msj-hero-height: 480px;
        --msj-hero-top: 100px;
        --msj-hero-bottom: 20px;
        --msj-hero-width: 1240px;
        --msj-hero-gutter: 48px;
        --msj-hero-heading: clamp(40px, 4.2vw, 60px);
        --msj-hero-lead: clamp(17px, 1.5vw, 20px);
    }
    @media (max-width: 1100px) {
        :root {
            --msj-hero-height: 420px;
            --msj-hero-top: 100px;
            --msj-hero-bottom: 30px;
            --msj-hero-gutter: 32px;
            --msj-hero-heading: clamp(36px, 5vw, 52px);
        }
    }
    @media (max-width: 760px) {
        :root {
            --msj-hero-height: 360px;
            --msj-hero-top: 98px;
            --msj-hero-bottom: 30px;
            --msj-hero-gutter: 20px;
            --msj-hero-heading: clamp(32px, 7vw, 40px);
            --msj-hero-lead: 17px;
        }
    }
    /* Explicit opt-in prevents affecting homepage, text-only pages and admin. */
    body #main section.msj-inner-hero.msj-inner-hero {
        box-sizing: border-box;
        min-height: var(--msj-hero-height);
        height: auto;
        margin-top: 0;
        padding: var(--msj-hero-top) 0 var(--msj-hero-bottom);
        display: grid;
        align-items: center;
        color: #fff;
        background-color: #242526;
    }
    body #main section.msj-inner-hero.msj-inner-hero > .msj-hero-content {
        box-sizing: border-box;
        width: min(var(--msj-hero-width), calc(100% - 2 * var(--msj-hero-gutter)));
        min-width: 0;
        margin: 0 auto;
        padding: 0;
        overflow-wrap: anywhere;
    }
    body #main section.msj-inner-hero.msj-inner-hero .msj-hero-content > h1 {
        font-size: var(--msj-hero-heading);
        font-weight: 700;
        line-height: 1.12;
        letter-spacing: normal;
        margin: 0 0 12px;
        max-width: 960px;
    }
    body #main section.msj-inner-hero.msj-inner-hero .msj-hero-content > .msj-hero-lead {
        font-size: var(--msj-hero-lead);
        line-height: 1.5;
        color: #f1f1f1;
        max-width: 720px;
        margin: 0 0 14px;
    }
    body #main section.msj-inner-hero.msj-inner-hero .msj-hero-content > .msj-hero-lead:last-child { margin-bottom: 0; }
    body #main section.msj-inner-hero.msj-inner-hero .msj-hero-content > .msj-hero-kicker {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 10px;
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.4;
        letter-spacing: .075em;
        text-transform: uppercase;
        max-width: none;
    }
    body #main section.msj-inner-hero.msj-inner-hero .msj-hero-kicker::before {
        content: "";
        display: block;
        flex: 0 0 24px;
        width: 24px;
        height: 2px;
        margin: 0;
        background: #e04449;
    }
    body #main section.msj-inner-hero.msj-inner-hero .msj-hero-content > nav[aria-label="Breadcrumb"] {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin: 0 0 12px;
        color: #f1f1f1;
        font-size: 13px;
        line-height: 1.5;
    }
    body #main section.msj-inner-hero.msj-inner-hero nav[aria-label="Breadcrumb"] a {
        color: inherit;
        font: inherit;
        padding: 0;
        border: 0;
        text-decoration: none;
    }
    body #main section.msj-inner-hero.msj-inner-hero nav[aria-label="Breadcrumb"] a:hover { text-decoration: underline; }
    body #main section.msj-inner-hero.msj-inner-hero a:focus-visible { outline-color: white; }
    /* Existing contact and realtor heroes used negative margins to overlap a
       header spacer. Opted-in pages instead use the same overlay as Forms. */
    body.msj-hero-overlay .msj-header-spacer { display: none; }
    body.msj-hero-overlay .msj-header:not(.is-docked) { position: absolute; top: 0; left: 0; right: 0; }
    body #main section.msj-inner-hero.msj-inner-hero .rt-hero-note { margin: 10px 0 0; }
}
