.mlp-flex {
    display: flex;
    gap: clamp(1rem, 1vw, 5rem);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 18px;
    scroll-snap-type: x proximity;
    scroll-padding-left: 2px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    justify-content: space-between;
}

.mlp-flex > * {
    width: 100%;
    scroll-snap-align: start;
}

.mlp-flex > .cvoix-p-card {
    max-width: 100%;
}

.mlp-flex::-webkit-scrollbar {
    height: 6px;
}

.mlp-flex::-webkit-scrollbar-track {
    background: transparent;
}

.mlp-flex::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .25);
    border-radius: 25px;
}

.mlp-flex:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.mlp-card {
    display: flex;
    min-width: 320px !important;
    background-color: #fff;
    border-radius: 25px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mlp-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none !important;
}

.mlp-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f2ede6;
}

.mlp-thumb-wrap img,
img.mlp-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mlp-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    min-width: 70px;
    padding: 4px 10px;
    font-size: clamp(11px, 2.2vw, 12px);
    text-align: center;
    background-color: #faf4ec;
    border-radius: 25px;
}

.mlp-tag:empty {
    display: none;
}

.mlp-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: clamp(0.3rem, 1.4vw, 0.5rem);
    padding: clamp(14px, 3.4vw, 22px);
}

.mlp-category {
    display: block;
    margin-bottom: clamp(2px, 1.4vw, 8px);
    font-size: clamp(10px, 2.1vw, 12px);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cvoix-primary);
}

.mlp-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    margin: 0;
    font-size: clamp(1.15rem, 3.4vw, 1.25rem);
    line-height: 1.25;
    overflow: hidden;
}

.mlp-excerpt {
    flex: 1 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: clamp(14px, 2.6vw, 14px);
    line-height: 1.45;
    opacity: 0.7;
    overflow: hidden;
    font-weight: 400;
}

.mlp-footer {
    display: flex;
    align-items: center;
    font-weight: 400;
    gap: 0.5rem;
}

.mlp-meta {
    font-size: clamp(12px, 2.4vw, 14px);
    opacity: 0.7;
}

.mlp-body:hover .mlp-title {
    text-decoration: underline;
}

.mlp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.mlp-body:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .mlp-flex {
        --mlp-col: 320px;
    }

    .mlp-excerpt {
        -webkit-line-clamp: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mlp-flex {
        scroll-behavior: auto;
    }

    .mlp-card {
        transition: none;
    }

    .mlp-card:hover {
        transform: none;
    }
}

@media (max-width: 990px) {
    .mlp-flex {
        margin-right: calc(-5vw - 10px);
        padding-right: calc(5vw + 10px);
    }

    .mlp-flex > .cvoix-p-card {
        flex: 1 0 min(400px, 95%);
    }
}
