/* Critical styles for the two business-solution cards on the homepage.
   This small sheet is intentionally loaded on both desktop and mobile: the
   full frontend bundle is deferred until interaction on the homepage. */
.o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-card--solution {
    background: #fff;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 0 !important;
}

.o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-card--solution::before {
    z-index: 3;
}

.o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-card--solution .card-body {
    align-content: start;
    display: grid;
    min-width: 0;
}

.o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-solution-visual {
    aspect-ratio: 12 / 5;
    background: #111a43;
    color: #fff;
    min-height: 0;
    margin: 0 !important;
    overflow: hidden;
    position: relative;
}

.o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-solution-visual--photo::after {
    background: linear-gradient(180deg, rgba(7, 15, 49, .02) 35%, rgba(7, 15, 49, .42) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-solution-visual--photo picture,
.o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-solution-visual--photo img {
    display: block;
    height: 100%;
    width: 100%;
}

.o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-solution-visual--photo img {
    object-fit: cover;
    transition: transform 240ms ease;
}

.o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-card--solution:is(:hover, :focus-within) .bd-category-solution-visual--photo img {
    transform: scale(1.025);
}

.o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-card-title-link {
    color: inherit;
    text-decoration: none;
}

.o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-subfamilies {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1.25rem;
}

.o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-subfamilies a {
    background: #f1f4fb;
    border: 1px solid rgba(46, 54, 122, .1);
    border-radius: 999px;
    color: #3d4765;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.25;
    padding: .35rem .6rem;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-subfamilies a:is(:hover, :focus-visible) {
    background: #e1f6fb;
    border-color: rgba(0, 141, 177, .45);
    color: #006f8a;
    outline: none;
}

.o_bluedakota_theme section[data-name="BlueDakota - Catégories"] :is(.bd-category-card-title-link, .bd-category-card-cta):focus-visible {
    border-radius: .25rem;
    outline: 3px solid rgba(0, 159, 198, .32);
    outline-offset: 3px;
}

.o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-card-cta {
    color: var(--bluedakota-link);
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-card--solution {
        grid-template-columns: minmax(14rem, 44%) minmax(0, 1fr);
        grid-template-rows: 1fr;
        min-height: 20rem !important;
    }

    .o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-card--solution .card-body {
        align-content: center;
        padding: 2rem !important;
    }

    .o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-solution-visual {
        aspect-ratio: auto;
        height: 100%;
    }

    .o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-solution-visual--photo img {
        object-position: center;
    }
}

@media (max-width: 575.98px) {
    .o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-card--solution {
        grid-template-columns: 1fr;
        min-height: 0 !important;
    }

    .o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-solution-visual {
        aspect-ratio: 12 / 5;
        min-height: 0;
    }

    .o_bluedakota_theme section[data-name="BlueDakota - Catégories"] .bd-category-card--solution .card-body {
        padding: 1.35rem !important;
    }

}
