/* ── Mobile ─────────────────────────────────────────── */
.herr-wrapper-k9x7 {
    display: block;
    overflow-x: clip;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}

.herr-section-k9x7 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: calc(100% - 16px);
    max-width: 1920px;
    margin: 8px auto 0;
    padding: 8px;
    border-radius: 20px;
    background: #fff394;
    position: relative;
    box-sizing: border-box;
}

/* Fundo cinza só no desktop — no mobile a própria section já é cinza */
.herr-bg-k9x7 {
    display: none;
}

.herr-card-k9x7 {
    background: #ffe600;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.herr-card-intro-k9x7 {
    padding: 24px 40px 24px 24px;
    justify-content: flex-start;
}

.herr-title-k9x7 {
    font-size: 32px;
    font-family: 'Proxima Nova Advanced', 'Proxima Nova', sans-serif;
    font-feature-settings: 'ss04' on, 'case' on;
    line-height: 1;
    letter-spacing: -1.28px;
    font-weight: 700;
    color: #282834;
    margin: 0;
}

.herr-cards-k9x7 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    flex-shrink: 0;
}

.herr-cards-track-k9x7 {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* Peek past section edges: section has 8px margin + 8px padding = 16px per side */
    width: calc(100% + 32px);
    margin-left: -16px;
    padding-left: 16px;
    scroll-padding-left: 16px;
    box-sizing: border-box;
}

.herr-cards-track-k9x7::-webkit-scrollbar {
    display: none;
}

.herr-card-feature-k9x7 {
    flex: 0 0 calc(100% - 40px);
    height: 380px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.herr-card-feature-k9x7:last-child{
    margin-right: 16px;
}

.herr-feature-image-k9x7 {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.herr-feature-image-k9x7 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.herr-feature-title-k9x7 {
    font-size: 24px;
    font-family: 'Proxima Nova Advanced', 'Proxima Nova', sans-serif;
    font-feature-settings: 'ss04' on, 'case' on;
    line-height: 1;
    letter-spacing: -0.96px;
    padding: 16px 24px 0;
    font-weight: 700;
    color: #282834;
    margin: 0;
    flex-shrink: 0;
}

.herr-button-k9x7 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #282834;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    transition: background-color 0.18s ease-out;
    width: fit-content;
    margin: 12px 24px 20px;
    flex-shrink: 0;
}

.herr-button-k9x7:hover {
    background: rgba(255, 255, 255, 0.85);
    color: #282834;
}

/* ── Desktop: sticky page scroll (padrão MLB ferramentas-vender) ── */
@media (min-width: 1024px) {
    /* Wrapper transparente: o branco fica ao redor do módulo (margem lateral) */
    .herr-wrapper-k9x7 {
        display: block;
        position: relative;
        width: calc(100% - 16px);
        margin-top: 8px;
        max-width: 1920px;
        margin-left: auto;
        margin-right: auto;
        background: transparent;
        border-radius: 0;
    }

    /* Seção: grid de 2 colunas. SEM altura fixa — a coluna direita (cards
       empilhados) cria a distância de scroll que faz o fundo/título deslizar */
    .herr-section-k9x7 {
        display: grid;
        grid-template-columns: calc(50% - 4px) calc(50% - 4px);
        column-gap: 8px;
        width: 100%;
        margin: 0;
        padding: 8px;
        background: transparent;
        border-radius: 0;
        box-sizing: border-box;
    }

    /* Fundo cinza do módulo (#e7e9f3): sticky, cobre as 2 colunas e flutua
       com 8px de respiro branco em volta (topo, base e laterais) */
    .herr-bg-k9x7 {
        display: block;
        grid-column: 1 / -1;
        grid-row: 1;
        position: sticky;
        top: 92px;
        align-self: start;
        height: calc(100vh - 100px);
        min-height: 484px;
        width: calc(100% + 16px);
        margin: 0 -8px;
        background: #fff394;
        border-radius: 20px;
        z-index: 0;
    }

    /* Card título: MESMO sticky box que o fundo (top/height) para grudar e
       soltar em sincronia — sem colar nas extremidades. O card visual claro
       fica no ::before (com 8px de respiro vertical e raio uniforme). */
    .herr-card-intro-k9x7 {
        grid-column: 1;
        grid-row: 1;
        position: sticky;
        top: 92px;
        align-self: start;
        height: calc(100vh - 100px);
        min-height: 484px;
        width: auto;
        box-sizing: border-box;
        margin: 0;
        background: transparent;
        overflow: visible;
        padding: 40px 56px 40px 32px;
        justify-content: flex-start;
        border-radius: 0;
        z-index: 1;
    }

    /* Card visual claro: respiro cinza vertical de 8px (top/bottom) com raio
       uniforme; fica atrás do título e deixa ver o fundo cinza no topo/base */
    .herr-card-intro-k9x7::before {
        content: '';
        position: absolute;
        top: 8px;
        right: 0;
        bottom: 8px;
        left: 0;
        background: #ffe600;
        border-radius: 12px;
        z-index: -1;
    }

    .herr-title-k9x7 {
        font-size: clamp(48px, 5vw, 72px);
        letter-spacing: -0.04em;
        max-width: 515px;
    }

    /* Coluna direita: cards deslizam sobre o fundo cinza.
       padding vertical de 8px dá o respiro cinza no topo/base dos cards. */
    .herr-cards-k9x7 {
        grid-column: 2;
        grid-row: 1;
        box-sizing: border-box;
        width: auto;
        margin: 0;
        padding: 8px 0;
        z-index: 1;
    }

    .herr-cards-track-k9x7 {
        flex-direction: column;
        gap: 8px;
        overflow: visible;
        scroll-snap-type: none;
        /* reset mobile peek extension */
        width: auto;
        margin-left: 0;
        padding-left: 0;
        scroll-padding-left: 0;
        box-sizing: border-box;
    }

    /* Cada card desliza dentro do módulo, com respiro cinza ao redor */
    .herr-card-feature-k9x7 {
        flex: none;
        height: calc(100vh - 116px);
        min-height: 468px;
        max-height: none;
        width: 100%;
        margin-right: 0;
        scroll-snap-align: none;
    }

    .herr-feature-image-k9x7 img {
        object-fit: contain;
        object-position: center 40%;
    }

    .herr-feature-title-k9x7 {
        font-size: clamp(24px, 2.8vw, 36px);
        letter-spacing: -0.04em;
        padding: 32px 80px 0 32px;
    }

    .herr-button-k9x7 {
        margin: 20px 32px 32px;
        font-size: 16px;
        height: 48px;
        padding: 0 24px;
    }
}
