/* GFM Start Hero block styles */

.hrt-section.gfm-refresh-hero {
    padding: 104px 0;
    position: relative;
    /* Let the backdrop chip paint under the next section’s top arc. */
    overflow: visible;
    z-index: 1;

    &.has-backdrop {
        /* Chip anchors to the section bottom and hangs under the next arc. */
        padding-bottom: 0;
    }

    /* Figma desktop-hero chip (Ellipse 6579) — right slot ~768, hangs under next arc. */
    .gfm-refresh-hero__backdrop {
        position: absolute;
        right: 0;
        top: 0;
        bottom: -96px;
        z-index: 0;
        pointer-events: none;
        line-height: 0;
        width: min(58vw, 768px);
        overflow: hidden;
    }

    .gfm-refresh-hero__backdrop-desktop {
        width: 100%;
        height: 100%;
    }

    .gfm-refresh-hero__backdrop-desktop img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: left center;
    }

    /* Mobile Figma cloud — hidden on desktop. */
    .gfm-refresh-hero__backdrop-mobile {
        display: none;
    }

    @media (max-width: 767px) {
        /*
         * Figma mobile hero (350:7980): teal cloud ~1146×486 centered under copy,
         * clipped so the wide asset can't create page x-overflow.
         */
        &.has-backdrop {
            overflow-x: clip;
        }

        .gfm-refresh-hero__backdrop {
            width: min(1146.4px, 294vw);
            max-width: none;
            top: auto;
            bottom: -16px;
            left: 50%;
            right: auto;
            height: auto;
            overflow: visible;
            transform: translateX(-50%);
        }

        .gfm-refresh-hero__backdrop-desktop {
            display: none;
        }

        .gfm-refresh-hero__backdrop-mobile {
            display: block;
            width: 100%;
            line-height: 0;
        }

        .gfm-refresh-hero__backdrop-mobile img {
            display: block;
            width: 100%;
            height: auto;
            max-width: none;
        }
    }

    .container-flexible {
        position: relative;
        z-index: 1;
    }

    &.is-variant-crisis-page {
        background-color: #F5F5F5 !important;

        /* Longer crisis headlines: Display Small instead of default Display */
        .column--left h1 {
            font-size: var(--hrt-size-font-display-sm);
            font-weight: var(--hrt-font-weight-bold);
            line-height: 1.1;
            letter-spacing: -0.8px;
        }

        .wrap-hero-image {
            border-radius: 16px;
            overflow: hidden;
        }

        .column--right img {
            border-radius: 16px;
        }
    }

    /* Campaign (Dark): brand-strongest surface; arc ::after inherits it. */
    &.is-variant-campaign-dark {
        background-color: var(--hrt-color-surface-brand-strongest, #0b291a) !important;
        color: var(--hrt-color-text-on-strong, #fff);

        .columns {
            align-items: flex-start;
        }

        .column--left {
            gap: 3rem;

            h1 {
                color: var(--hrt-color-text-brand-on-strong, #ccf88e);
                font-size: var(--hrt-size-font-display-md);
                font-weight: var(--hrt-font-weight-bold);
                line-height: 1.1;
                letter-spacing: -1.28px;
            }

            p,
            li {
                color: var(--hrt-color-text-on-strong, #fff);
            }

            a:not(.hrt-base-button) {
                color: inherit;
            }

            /* Column gap owns the spacing above the tracker (Figma: 48px). */
            .content > :last-child {
                margin-bottom: 0;
            }
        }

        .wrap-hero-image,
        .column--right img {
            border-radius: 16px;
            overflow: hidden;
        }

        /* Figma frame is 4:3 with object-fit cover. */
        .column--right img {
            aspect-ratio: 4 / 3;
            object-fit: cover;
        }
    }

    /* Goal tracker ("$X raised" + bar). */
    .gfm-refresh-goal-tracker {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .column--left .gfm-refresh-goal-tracker__funds {
        display: flex;
        align-items: baseline;
        gap: 4px;
        margin: 0;
    }

    .gfm-refresh-goal-tracker__amount {
        font-size: 1.5rem;
        font-weight: var(--hrt-font-weight-bold, 700);
        line-height: 1.2;
    }

    .gfm-refresh-goal-tracker__label {
        font-size: 1rem;
        line-height: 1.5;
    }

    .gfm-refresh-goal-tracker__bar {
        position: relative;
        width: 100%;
        height: 16px;
        border-radius: 9999px;
        overflow: hidden;
        background-color: var(--hrt-color-neutral-100, #f5f5f5);
    }

    .gfm-refresh-goal-tracker__fill {
        position: absolute;
        inset: 0 auto 0 0;
        width: var(--gfm-goal-pct, 0%);
        border-radius: 9999px;
        background-color: #1c9d53;
        transition: width 0.8s ease-out;

        /* Any progress shows at least a full pill (small totals vs. large goals). */
        &.is-started {
            min-width: 16px;
        }
    }


    /*
     * Product page: full-bleed hero image that scales with viewport width
     * (mirrors creators page .hero-cover / wp-block-cover pattern).
     */
    /*
     * Communities: feed sits flush on the next section’s arc — no section bottom pad.
     * Heart uses `.hrt-section:has(+ section.hrt-section-top-edge--arc) { padding-bottom: calc(5% + …) !important }`
     * when the following block has a top arc, so we must beat that !important here.
     */
    &.is-variant-hero-kit,
    &.is-variant-hero-kit.has-backdrop {
        padding-bottom: 0 !important;
    }

    &.is-variant-product-page {
        position: relative;
        overflow: hidden;
        padding: 0;
        min-height: 50vw;

        .hero-bg {
            position: absolute;
            inset: 0;
            z-index: 0;
            pointer-events: none;

            img {
                position: absolute;
                top: 0;
                right: 0;
                left: auto;
                height: 100%;
                width: auto;
                max-width: none;
                object-fit: contain;
                object-position: right center;
                display: block;
            }
        }

        .container-flexible {
            position: relative;
            z-index: 1;
            min-height: 50vw;
            display: flex;
            align-items: center;
        }

        .columns {
            width: 100%;
            align-items: center;
        }

        .column--right {
            /* Desktop image lives in .hero-bg; right column is mobile-only. */
            min-height: 0;
        }

        .column--left h1 {
            font-size: var(--hrt-size-font-display-lg);
        }

        .column--left p {
            max-width: 450px;
        }
    }

    /*
     * Full background: Marketplace-style cover photo + scrim + light type.
     * Distinct from product_page (which keeps a right-column / creators layout).
     */
    &.is-variant-full-background {
        position: relative;
        overflow: hidden;
        padding: 0;
        min-height: 760px;
        color: #fff;
        background-color: #0b291a;

        .hero-bg--full {
            position: absolute;
            inset: 0;
            z-index: 0;
            pointer-events: none;
        }

        .hero-bg__media {
            position: absolute;
            inset: 0;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
                display: block;
            }
        }

        .hero-bg__media--desktop {
            display: block;
        }

        .hero-bg__media--mobile {
            display: none;
        }

        /* Figma "Scrim (flat)": #000 at 90% fill × 38% layer opacity. */
        .hero-bg__scrim {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.342);
        }

        .container-flexible {
            position: relative;
            z-index: 1;
            min-height: 760px;
            display: flex;
            align-items: center;
            padding-top: 64px;
            padding-bottom: 64px;
        }

        .columns {
            width: 100%;
            max-width: 900px;
        }

        .column--left {
            flex-basis: 100%;
            gap: 24px;
        }

        .column--left h1,
        .column--left .content h1 {
            color: #fff;
            /* Figma mobile: H1 48px, sub copy 20px (floors; fluid up to the 1024 desktop sizes below). */
            font-size: clamp(3rem, 2rem + 3vw, 5rem);
            line-height: 1.02;
            letter-spacing: -0.04em;
            margin: 0 0 0.35em;
            max-width: 18ch;
        }

        .column--left p,
        .column--left .content p {
            color: #f5f5f5;
            font-size: clamp(1.25rem, 1rem + 0.5vw, 1.5rem);
            line-height: 1.3;
            max-width: 36ch;
            margin: 0;
        }

        /* Beat Norma/theme `a` resets — Figma Primary on strong = lime + dark green type */
        .button-wrap a.hrt-primary-button--default-on-strong,
        .button-wrap .hrt-primary-button--default-on-strong {
            background-color: var(--hrt-color-surface-brand-on-strong, #ccf88e) !important;
            color: var(--hrt-color-text-brand-strong, #274a34) !important;
            border: 0 !important;
            text-decoration: none !important;
            box-shadow: none !important;
        }

        .button-wrap a.hrt-primary-button--default-on-strong:hover,
        .button-wrap a.hrt-primary-button--default-on-strong:focus,
        .button-wrap .hrt-primary-button--default-on-strong:hover,
        .button-wrap .hrt-primary-button--default-on-strong:focus {
            background-color: var(--hrt-color-surface-brand-on-strong-hover, #b8e87a) !important;
            color: var(--hrt-color-text-brand-strong, #274a34) !important;
        }

        /*
         * Figma desktop (871:5269): 760 tall including the next section's arc, which overlaps
         * the photo — so drop Heart's arc padding. Copy column 737 wide at the 1116 gutter,
         * top at 210: Display/Lg + 20 + Body/Lg + 20 + 52 button.
         */
        @media (min-width: 1024px) {
            padding-bottom: 0 !important;

            .container-flexible {
                max-width: 1116px;
                padding-top: 64px;
                padding-bottom: 96px;
            }

            .columns {
                max-width: 737px;
            }

            .column--left {
                gap: 20px;
            }

            .column--left h1,
            .column--left .content h1 {
                font-size: var(--hrt-size-font-display-lg, 5.125rem);
                line-height: 1.1;
                letter-spacing: -0.02em;
                max-width: none;
                margin: 0 0 20px;
            }

            .column--left p,
            .column--left .content p {
                color: #fff;
                font-size: var(--hrt-size-font-body-lg, 1.5rem);
                line-height: 1.5;
                max-width: none;
            }

            .button-wrap .hrt-primary-button {
                min-height: 52px;
                padding: 14px 28px;
            }
        }
    }

    .columns {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .column {
        flex-basis: 50%;
    }

    .column--left {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;

        h1 {
            font-size: clamp(2.5rem, 1.97183rem + 2.25352vw, 4rem);
            margin-bottom: 1rem;
            font-weight: 700;
            line-height: 1.1;
        }
        p {
            font-size: 1rem;
            margin-bottom: 1rem;
            line-height: 1.5;
        }

        /* Figma Decorative Tag — lime chip, forest text (not supporting gray). */
        p.is-style-tag,
        .is-style-tag {
            color: var(--hrt-color-text-brand-strong, #274a34);
            background-color: var(--hrt-color-surface-brand-medium, #ccf88e);
        }
    }

    /* Image media only — do not stretch imgs inside Custom HTML feed tiles. */
    .column--right .wrap-hero-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    .column--right .masked img {
        -webkit-mask-image: url("hero-mask.svg");
        mask-image: url("hero-mask.svg");
        mask-repeat: no-repeat;
        mask-size: contain;
    }

    .button-wrap {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
    }

    .button .hrt-primary-button {
        width: auto;
    }

    .hide-mobile {
        display: block;
    }
    .hide-desktop {
        display: none;
    }

    /*
     * Communities-style custom HTML hero (reference-prototype):
     * fixed copy column + oversized visual that bleeds right; copy stacks above the graphic.
     */
    &.is-media-hero-kit {
        padding: 0;
        height: 770px;
        overflow-x: clip;
        overflow-y: visible;

        .container-flexible {
            max-width: 1440px;
            width: 100%;
            height: 768px;
            margin-inline: auto;
            padding-left: clamp(32px, calc((100vw - 1116px) / 2), 162px);
            padding-right: 0;
            display: flex;
            align-items: center;
            z-index: 1;
            opacity: 1;
        }

        .columns {
            width: 100%;
            height: 100%;
            align-items: center;
            gap: 24px;
            position: relative;
        }

        .column--left {
            flex: none;
            flex-basis: auto;
            width: 546px;
            max-width: 546px;
            position: relative;
            z-index: 2;
            padding-bottom: 40px;
            gap: 48px;

            .content {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                gap: 24px;
            }

            h1 {
                /* Figma Display/Lg — desktop 82. */
                font-size: var(--hrt-size-font-display-lg, 5.125rem);
                font-weight: 700;
                line-height: 1.1;
                letter-spacing: -0.02em;
                font-feature-settings: "ss10" 1;
                margin-bottom: 0;
            }

            p {
                /* Figma Body/Md — 16. */
                max-width: 451px;
                margin-bottom: 0;
                font-size: var(--hrt-size-font-body-md, 1rem);
                line-height: 1.5;
            }

            p.is-style-tag,
            .is-style-tag {
                margin-bottom: 0;
                /* Figma Decorative Tag / Brand */
                color: var(--hrt-color-text-brand-strong, #274a34);
                background-color: var(--hrt-color-surface-brand-medium, #ccf88e);
            }
        }

        .column--right {
            flex: none;
            flex-basis: auto;
            width: 1168px;
            max-width: none;
            position: relative;
            z-index: 1;
            /* Slide offset lives on .hero__visual in hero-mock.css (same as prototype). */
        }

        .wrap-hero-kit {
            width: 1168px;
            max-width: none;
            line-height: normal;
            /* X open for bubbles; Y clipped so the feed strip can't bleed down the page.
               overflow-y: clip (not hidden) — hidden would silently turn visible x into auto
               and crop the bubbles. hidden stays as the fallback for browsers without clip. */
            overflow-x: visible;
            overflow-y: hidden;
            overflow-y: clip;
        }

        .wrap-hero-kit .gfm-hero-mock,
        .wrap-hero-kit .gfm-hero-mock .hero__visual {
            overflow-x: visible;
            overflow-y: hidden;
            overflow-y: clip;
        }

        .button-wrap {
            gap: 0;
        }
    }

    &.is-media-hero-kit.has-backdrop .gfm-refresh-hero__backdrop {
        /* Ring sits in the visual’s bottom-right plane, under copy and under the next arc. */
        z-index: 0;
    }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    .hrt-section.gfm-refresh-hero.is-media-hero-kit {
        height: 655px;

        .container-flexible {
            height: 653px;
        }

        .column--left {
            width: 460px;
            max-width: 460px;

            h1 {
                /* Let Heart Display/Lg fluid token interpolate (~69px here). */
                font-size: var(--hrt-size-font-display-lg, 5.125rem);
                letter-spacing: -0.02em;
            }

            p {
                max-width: 420px;
                font-size: var(--hrt-size-font-body-md, 1rem);
            }
        }

        .wrap-hero-kit .gfm-hero-mock .hero__visual {
            zoom: 0.85;
        }
    }
}

@media (max-width: 1023px) {
    .hrt-section.gfm-refresh-hero.is-media-hero-kit {
        height: auto;
        padding: 64px 0 0;
        overflow-x: clip;

        .container-flexible {
            height: auto;
            padding: 0;
            display: block;
            overflow-x: clip;
        }

        .column--right,
        .wrap-hero-kit {
            overflow-x: clip;
            max-width: 100%;
        }

        .columns {
            flex-direction: column;
            height: auto;
            gap: 48px;
        }

        .column--left {
            width: auto;
            max-width: none;
            padding: 0 40px 0;
            align-items: center;
            text-align: center;
            gap: 40px;

            .content {
                align-items: center;
            }

            h1 {
                font-size: var(--hrt-size-font-display-lg, 5.125rem);
                letter-spacing: -0.02em;
                max-width: 600px;
            }

            p {
                max-width: 480px;
                font-size: var(--hrt-size-font-body-md, 1rem);
                line-height: 1.5;
            }
        }

        .column--right {
            width: 100%;
            margin-left: 0;
        }

        .wrap-hero-kit {
            width: 100%;
            max-width: 100%;
        }

        .button-wrap {
            justify-content: center;
        }

        /*
         * Same ≤1023 stack as the mock’s horizontal feed — paint the mobile
         * cloud in the visual slot (not the section-level backdrop).
         */
        &.has-backdrop {
            padding-bottom: 0 !important;

            /*
             * Backdrops must switch at the same width as the stacked layout + kit (1023),
             * not at 767: the section-level desktop chip is hidden here and the mobile cloud
             * is painted inside the kit's visual slot below. (Otherwise 768–1023 shows both.)
             */
            .gfm-refresh-hero__backdrop {
                display: none;
            }

            .gfm-refresh-hero__backdrop-mobile {
                display: none;
            }

            .wrap-hero-kit .gfm-hero-mock .hero__visual {
                background-image: var(--gfm-hero-bd-mobile);
                background-repeat: no-repeat;
                background-position: center 140px;
                background-size: min(1146.4px, 294vw) auto;
            }
        }
    }

    .hrt-section.gfm-refresh-hero.is-variant-hero-kit,
    .hrt-section.gfm-refresh-hero.is-variant-hero-kit.has-backdrop {
        padding-bottom: 0 !important;
    }
}

@media (max-width: 768px) {
    .hrt-section.gfm-refresh-hero {
        padding: 40px 0;

        /* Room for a hanging mobile cloud on non-Communities heroes. */
        &.has-backdrop:not(.is-variant-hero-kit) {
            padding-bottom: 280px;
            overflow-x: clip;
        }

        &.is-variant-hero-kit,
        &.is-variant-hero-kit.has-backdrop {
            padding-bottom: 0 !important;
        }

        .columns {
            flex-direction: column-reverse;
        }

        /* Communities Custom HTML: copy first, visual + cloud below. */
        &.is-variant-hero-kit.is-media-hero-kit,
        &.is-media-hero-kit {
            padding: 48px 0 0;
            overflow-x: clip;
            max-width: 100%;

            .columns {
                flex-direction: column;
                gap: 32px;
                overflow-x: clip;
                max-width: 100%;
            }

            .column--right,
            .wrap-hero-kit,
            .wrap-hero-kit .gfm-hero-mock {
                overflow-x: clip;
                max-width: 100%;
                width: 100%;
            }

            .column--left {
                padding: 0 24px;
                gap: 32px;
                text-align: center;
                width: 100%;
                max-width: none;

                .content {
                    align-items: center;
                    /* Figma: 16 between Display/Body; tag sits 24 above the stack via margin. */
                    gap: 16px;
                    width: 100%;

                    > .is-style-tag,
                    > p.is-style-tag {
                        margin-bottom: 8px;
                    }
                }

                h1 {
                    /* Figma mobile Display/Lg = 48 (floor; no shrink under 390). */
                    font-size: 3rem;
                    letter-spacing: -0.02em;
                    line-height: 1.1;
                    max-width: 344px;
                    margin-inline: auto;
                }

                p {
                    max-width: 344px;
                    margin-inline: auto;
                    font-size: var(--hrt-size-font-body-md, 1rem);
                    line-height: 1.5;
                    color: var(--hrt-color-text-supporting, #6f6f6f);
                }

                /* Figma Decorative Tag — brand medium chip + brand-strong text (#274a34). */
                p.is-style-tag,
                .is-style-tag {
                    color: var(--hrt-color-text-brand-strong, #274a34);
                    background-color: var(--hrt-color-surface-brand-medium, #ccf88e);
                }
            }

            .button-wrap {
                width: 100%;
                max-width: 342px;
                margin-inline: auto;
            }

            /*
             * Figma 350:7980 Slot: Ellipse at top 40% / y=140, ~1146 wide, overflow-clipped
             * by the 350px visual. Paint ACF mobile cloud there (via --gfm-hero-bd-mobile);
             * hide the section-level mobile img so it isn't double-drawn / mis-cropped.
             */
            &.has-backdrop {
                padding-bottom: 0;

                .gfm-refresh-hero__backdrop-mobile {
                    display: none;
                }

                .wrap-hero-kit .gfm-hero-mock .hero__visual {
                    background-image: var(--gfm-hero-bd-mobile);
                    background-repeat: no-repeat;
                    background-position: center 140px;
                    background-size: min(1146.4px, 294vw) auto;
                }
            }
        }

        .button-wrap {
            flex-direction: column;
            align-items: stretch;
            width: 100%;
        }

        &:not(.is-variant-full-background) .button-wrap .hrt-primary-button,
        &:not(.is-variant-full-background) .button-wrap .hrt-secondary-button {
            width: 100%;
            text-align: center;
        }

        &.is-variant-full-background .button-wrap {
            align-items: flex-start;
        }

        &.is-variant-full-background .button-wrap .hrt-primary-button,
        &.is-variant-full-background .button-wrap .hrt-secondary-button {
            width: auto;
        }

        .column {
            flex-basis: 100%;
            width: 100%;
        }

        .column--right .masked img {
            -webkit-mask-image: url("hero-mask-mobile.svg");
            mask-image: url("hero-mask-mobile.svg");
        }

        .column--left {
            text-align: center;
            gap: 1rem;
        }

        .hide-mobile {
            display: none;
        }
        .hide-desktop {
            display: block;
        }

        /* Mobile Figma: image first, copy stays left-aligned, 32px gaps. */
        &.is-variant-campaign-dark {
            .columns {
                gap: 2rem;
            }

            .column--left {
                text-align: left;
                gap: 2rem;
            }
        }


        /*
         * Figma "Hero (full-bleed photo)" 390: 520 tall, 342 copy stack (16 gaps) centered 8px above middle
         * (112 above / 128 below), H1 lh 1.1 / -2%, body lh 1.5, button 52 tall. The next section's
         * top arc overlaps the photo, so no extra bottom padding (beats Heart's :has(+ arc) !important).
         */
        &.is-variant-full-background {
            min-height: 520px;
            padding-bottom: 0 !important;

            .container-flexible {
                min-height: 520px;
                padding-top: 0;
                padding-bottom: 16px;
            }

            .column--left,
            .column--left .content {
                gap: 16px;
            }

            .column--left h1,
            .column--left .content h1 {
                line-height: 1.1;
                letter-spacing: -0.02em;
                margin: 0 0 16px;
            }

            .column--left p,
            .column--left .content p {
                line-height: 1.5;
            }

            .button-wrap .hrt-primary-button,
            .button-wrap .hrt-secondary-button {
                padding: 14px 28px;
                line-height: 1.5;
            }

            .hero-bg__media--desktop {
                display: none;
            }

            .hero-bg__media--mobile {
                display: block;
            }

            .column--left {
                text-align: left;
            }

            .column--left h1,
            .column--left .content h1 {
                max-width: none;
            }
        }

        &.is-variant-product-page {
            min-height: 0;
            /* Keep top inset; image sits flush to the bottom edge. */
            padding: 40px 0 0;
            padding-bottom: 0 !important;

            .hero-bg {
                display: none;
            }

            .container-flexible {
                min-height: 0;
                display: block;
            }

            /* Text first, image below (unlike default column-reverse). */
            .columns {
                flex-direction: column;
                gap: 24px;
            }

            .column--left p {
                max-width: none;
            }

            .column--right {
                line-height: 0;
                margin-bottom: 0;
            }

            /*
             * Full-bleed hero image on mobile.
             * Cancels .container-flexible’s 1.5rem side inset (same pattern as product-proof).
             */
            .column--right .wrap-hero-image {
                margin-left: -1.5rem;
                margin-right: -1.5rem;
                margin-bottom: 0;
                width: calc(100% + 3rem);
                max-width: none;
            }

            .column--right .wrap-hero-image img {
                display: block;
                width: 100%;
                height: auto;
            }
        }
    }

    .wrap-hero-kit {
        width: 100%;
        max-width: 100%;
        line-height: normal;
    }

    .wrap-hero-kit > * {
        max-width: 100%;
    }

    /* Editor: kit placeholder (front end uses real kit markup) */
    .gfm-kit-editor-placeholder {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 320px;
        width: 100%;
        margin: 0;
        padding: 24px;
        border-radius: 16px;
        background: #f0f0f0;
        border: 1px dashed #b7b7b6;
        color: #232323;
        text-align: center;
        box-sizing: border-box;
    }

    .gfm-kit-editor-placeholder__label {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.3;
        color: #274a34;
    }

    .gfm-kit-editor-placeholder__hint {
        font-size: 13px;
        line-height: 1.4;
        color: #6f6f6f;
    }

    .gfm-kit-editor-placeholder--empty .gfm-kit-editor-placeholder__label,
    .gfm-kit-editor-placeholder--missing .gfm-kit-editor-placeholder__label {
        font-weight: 500;
        color: #424242;
    }

    .gfm-kit-editor-placeholder--missing {
        background: #fff4f4;
        border-color: #e8b4b4;
    }

    .gfm-kit-editor-placeholder--missing .gfm-kit-editor-placeholder__label {
        color: #8a1f1f;
    }
}

/*
 * Hero kit column entrance (block-owned — no kit zip change).
 * Same pattern as collage: pending in PHP markup → arm paused WAAPI → play on view.
 */
.hrt-section.gfm-refresh-hero.is-media-hero-kit.is-kit-entrance-pending .column--right {
    opacity: 0;
    visibility: hidden;
}

/* Only once JS has taken over (is-kit-motion-ready): the editor preview and the no-WAAPI fallback never get it. */
.hrt-section.gfm-refresh-hero.is-media-hero-kit.is-kit-motion-ready .column--right:not(.is-in) {
    opacity: 0;
}

.hrt-section.gfm-refresh-hero.is-media-hero-kit .column--right.is-in {
    opacity: 1;
}

.hrt-section.gfm-refresh-hero.is-media-hero-kit.is-kit-entrance-pending:not(.is-kit-motion-ready) .column--right {
    animation: gfm-hero-kit-reveal-fallback 0s 2.5s forwards;
}

@keyframes gfm-hero-kit-reveal-fallback {
    to {
        opacity: 1;
        visibility: visible;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hrt-section.gfm-refresh-hero.is-media-hero-kit.is-kit-entrance-pending .column--right {
        /* Still hide until JS; reduced path fades without transform. */
        visibility: hidden;
    }
}
