.mpf-block {
    width: 100%;
    position: relative;
}

.mpf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.mpf-filter {
    appearance: none;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    padding: 0.75rem 1rem;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}


.mpf-card__icon svg{padding:20px;}

.mpf-filter:hover,
.mpf-filter:focus-visible {
    transform: translateY(-1px);
}

.mpf-filter.is-active {
    color: #fff;
    background: #1d1d1d;
}

.mpf-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.mpf-card {
    min-width: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 1rem;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.mpf-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 0, 0, 0.22);
    box-shadow: 0 0.85rem 2rem rgba(0, 0, 0, 0.1);
}

.mpf-card__link {
    display: flex;
    flex-direction: row;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.mpf-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0rem 0 0 1.25rem;
}

.mpf-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: #1d1d1d;
    color: #fff;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.mpf-card:hover .mpf-card__icon {
    transform: translateY(-2px) scale(1.03);
}

.mpf-card__svg {
    width: 2.9rem;
    height: 2.9rem;
    display: block;
}

.mpf-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
}

.mpf-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.mpf-card__type,
.mpf-card__term {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.4rem 0.55rem;
}

.mpf-card__type {
    background: #111;
    color: #fff;
}

.mpf-card__term {
    background: #f0f0f0;
    color: #333;
}

.mpf-card__title {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.25;
}

.mpf-card__excerpt {
    margin: 0.75rem 0 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.55;
}

.mpf-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 1.25rem;
    font-weight: 700;
}

.mpf-card__cta::after {
    content: "→";
    transition: transform 0.2s ease;
}

.mpf-card:hover .mpf-card__cta::after {
    transform: translateX(3px);
}

.mpf-empty {
    border: 1px dashed rgba(0, 0, 0, 0.25);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    color: #555;
    background: #fafafa;
}

.mpf-block.is-loading .mpf-results {
    opacity: 0.45;
    pointer-events: none;
}

.mpf-block.is-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 55%;
    width: 2rem;
    height: 2rem;
    margin-left: -1rem;
    margin-top: -1rem;
    border: 3px solid rgba(0, 0, 0, 0.15);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: mpf-spin 0.7s linear infinite;
}

@keyframes mpf-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .mpf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .mpf-grid {
        grid-template-columns: 1fr;
    }

    .mpf-filter {
        width: 100%;
        justify-content: center;
    }
}