/*
|--------------------------------------------------------------------------
| Pattern: Highlight Functionality (HF)
|--------------------------------------------------------------------------
|
| Scaffolding: assets/css/template-parts/block-highlightFunctionality.css
| Template:    template-parts/block-highlightFunctionality.php
|
| Note: the component is primarily styled via Tailwind utility classes
| in the markup. This file only contains overrides and structural helpers.
*/

/* ── Reset list styles (override main.css ul defaults) ─────────────────── */
.block-hf__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Rich-text last-child margin reset ─────────────────────────────────── */
.block-hf__richtext > *:last-child {
    margin-bottom: 0;
}

/* ── Description text color (secondary-dark #001022) ───────────────────── */
.block-hf__desc,
.block-hf__desc p,
.block-hf__desc li {
    color: var(--color-secondary-dark);
}

/* ── List item description text color (secondary-dark #001022) ─────────── */
.block-hf__item-desc,
.block-hf__item-desc p,
.block-hf__item-desc li {
    color: var(--color-secondary-dark);
}

/* ── Decorative shape ──────────────────────────────────────────────────── */
.block-hf__media {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.block-hf__media--visual {
    width: 100%;
    max-width: 392px;
    aspect-ratio: 336 / 332.571;
    height: auto;
    margin-inline: auto;
}

.block-hf__media--plain {
    max-width: 336px;
    height: 332.571px;
    margin-inline: auto;
}

.block-hf__shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/*
 * Image container sits centered above the decorative shape. Mobile keeps the
 * tighter image ratio while allowing the visual to use the available column
 * width; from md+ the image fills the whole shape area (392 × 388).
 */
.block-hf__image-frame {
    position: absolute;
    z-index: 1;
    width: 98.81%;
    height: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.block-hf__image {
    display: block;
}

.block-hf__image--visual {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.block-hf__image--plain {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 336px) {
    .block-hf__media--plain {
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .block-hf__media--visual,
    .block-hf__media--plain {
        width: 392px;
        max-width: none;
        height: 388px;
    }

    .block-hf__image-frame {
        width: 100%;
        height: 100%;
        inset: 0;
        left: 0;
        top: 0;
        transform: none;
    }
}

@media (min-width: 1280px) {
    .block-hf__media--visual,
    .block-hf__media--plain {
        margin-inline: 0;
    }
}
