/* Equal main-section rows; the eighth row is the compact partner logo strip. */
.vh-mk-features {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(7, minmax(auto, 1fr)) auto minmax(auto, 1fr);
}

/* Stock control: a studio portrait and an independently flowing copy card. */
.vh-mk-features > .vh-mk-features__stock {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-content: stretch;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    width: 100vw;
    max-width: none;
    margin: 0;
    padding: 0 clamp(1.25rem, 4.8vw, 5.75rem);
    background: #746259 url('/assets/images/brand/hustlers/web/studio-background-1600.webp') center / cover no-repeat;
}
.vh-mk-features__stock .vh-mk-stock__copy {
    width: min(100%, 43rem);
    margin-block: 2rem;
    padding: clamp(1.6rem, 3.4vw, 3.5rem);
    border-radius: clamp(1.25rem, 2.3vw, 2rem);
    background: var(--vuka-yellow);
    color: var(--vuka-black);
}
.vh-mk-features__stock .vh-mk-stock__copy :is(h2, p) { color: var(--vuka-black); }
.vh-mk-features__stock .vh-mk-actions { margin-top: 1.5rem; }
.vh-mk-features__stock .vh-mk-support { margin-bottom: 0; }
.vh-mk-stock__portrait {
    position: relative;
    align-self: stretch;
    min-width: 0;
    min-height: 28rem;
}
.vh-mk-stock__portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}
@media (max-width: 900px) {
    .vh-mk-features > .vh-mk-features__stock {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        gap: 0;
        padding: 1.25rem clamp(1rem, 4vw, 2rem) 0;
    }
    .vh-mk-features__stock .vh-mk-stock__copy { justify-self: center; margin-block: 0 1.25rem; }
    .vh-mk-stock__portrait { width: min(100%, 30rem); min-height: 22rem; justify-self: center; }
}

.vh-mk-features > .vh-mk-feature--buying,
.vh-mk-features > .vh-mk-trio,
.vh-mk-features > .vh-mk-final {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 1100px) {
    .vh-mk-features > .vh-mk-features__share {
        align-content: stretch;
        grid-template-rows: auto 1fr;
    }
}

@media (max-width: 900px) {
    /* Stacked sections size to their own content, rather than the tallest row. */
    .vh-mk-features {
        grid-template-rows: none;
        grid-auto-rows: auto;
    }

    .vh-mk-features > .vh-mk-features__share,
    .vh-mk-features > .vh-mk-features__stock {
        grid-template-rows: auto auto;
        align-content: start;
    }

    .vh-mk-features > .vh-mk-features__hero {
        align-content: start;
        grid-template-rows: auto auto;
    }

    .vh-mk-features > .vh-mk-features__hero .vh-mk-features__hero-card {
        align-self: end;
    }
}

/* Give the store and orders Features rows equal color panels with centered content. */
.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-store-title"],
.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-orders-title"] {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: stretch;
    align-items: stretch;
    gap: 0;
    width: 100vw;
    max-width: none;
    margin-inline: 0;
    padding: 0;
    background: transparent;
}

.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-store-title"] > .vh-mk-feature__copy,
.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-orders-title"] > .vh-mk-feature__copy {
    display: flex;
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: clamp(2.5rem, 5vw, 5rem) clamp(1.25rem, 4vw, 4rem);
    text-align: center;
    background: var(--vuka-yellow);
}

/* Keep the Keep hustling color panel flush with the full split-row height. */
.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-orders-title"] > .vh-mk-feature__copy {
    align-self: stretch;
    height: auto;
}

/* Use the hero's desktop height for every main section, allowing content to grow. */
@media (min-width: 901px) {
    .vh-mk-features {
        --vh-feature-section-height: max(calc(100svh - 7.5rem), 34rem);
    }

    body.vuka-public.vuka-marketing-theme .vh-mk-features > .vh-mk-hero,
    body.vuka-public.vuka-marketing-theme .vh-mk-features > .vh-mk-section {
        height: auto;
        min-height: var(--vh-feature-section-height);
    }

}

.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-store-title"] > .vh-mk-feature__visual,
.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-orders-title"] > .vh-mk-feature__visual {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: clamp(2.5rem, 5vw, 5rem) clamp(1.25rem, 4vw, 4rem);
    background: #fff;
}

.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-store-title"] .vh-mk-heading,
.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-orders-title"] .vh-mk-heading,
.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-store-title"] .vh-mk-subtext,
.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-orders-title"] .vh-mk-subtext {
    margin-inline: auto;
}

.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-store-title"] .vh-mk-heading,
.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-orders-title"] .vh-mk-heading {
    max-width: 18ch;
}

.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-store-title"] .vh-mk-subtext,
.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-orders-title"] .vh-mk-subtext {
    max-width: 54ch;
}

.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-store-title"] .vh-mk-feature__visual > .vh-mk-pair,
.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-store-title"] .vh-mk-feature__visual > .vh-mk-shot,
.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-orders-title"] .vh-mk-feature__visual > .vh-mk-shot {
    width: min(100%, 38rem);
}

.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-store-title"] .vh-mk-feature__visual > .vh-mk-pair {
    grid-template-columns: minmax(0, 1fr);
}

/* Add half the former side gutter to each side of the Orders screenshot. */
.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-orders-title"] > .vh-mk-feature__visual {
    padding: clamp(1.25rem, 2.5vw, 2.5rem) 0;
}

.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-orders-title"] .vh-mk-feature__visual > .vh-mk-shot {
    width: calc(50% + min(50% - clamp(1.25rem, 4vw, 4rem), 19rem));
    max-width: calc(100% - 2rem);
}

.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-store-title"] .vh-mk-button,
.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-orders-title"] .vh-mk-button {
    align-self: center;
}

.vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-orders-title"] .vh-mk-checks {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: left;
}

@media (max-width: 700px) {
    .vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-store-title"],
    .vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-orders-title"] {
        grid-template-columns: minmax(0, 1fr);
    }

    .vh-mk-features > .vh-mk-feature[aria-labelledby="vh-features-orders-title"] > .vh-mk-feature__copy {
        height: auto;
    }
}

/* Give the Features setup/help trio the same clear cards as Home's selling row. */
.vh-mk-features > .vh-mk-trio {
    width: 100vw;
    max-width: none;
    margin-inline: calc(50% - 50vw);
    padding-inline: clamp(1.25rem, 6vw, 5rem);
}

.vh-mk-features > .vh-mk-trio .vh-mk-trio__grid {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    align-items: stretch;
}

.vh-mk-features > .vh-mk-trio .vh-mk-trio__group {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border: 2px solid var(--vuka-black);
    background: var(--vuka-white);
}

.vh-mk-features > .vh-mk-trio .vh-mk-trio__group h3 {
    font-size: clamp(1.3rem, 1.3vw, 1.6rem);
}

.vh-mk-features > .vh-mk-trio .vh-mk-trio__group p {
    font-size: 1.05rem;
}

.vh-mk-features > .vh-mk-trio .vh-mk-trio__group .vh-button {
    align-self: flex-start;
}

@media (min-width: 901px) {
    .vh-mk-features > .vh-mk-trio .vh-mk-trio__group {
        min-height: 21rem;
    }
}

@media (max-width: 700px) {
    .vh-mk-features > .vh-mk-trio {
        padding-inline: 1.25rem;
    }

    .vh-mk-features > .vh-mk-trio .vh-mk-trio__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .vh-mk-features > .vh-mk-trio .vh-mk-trio__group {
        min-height: 0;
    }
}
