/*
 * ============================================================
 * BLOG POSTS FILTER ULTRA
 * MIND · Blog index
 * ============================================================
 */

.smu-blog-filter-ultra {
    --smu-blog-filter-max: 1120px;
    --smu-blog-filter-reading: 760px;

    padding:
        clamp(72px, 8vw, 112px)
        0
        clamp(88px, 9vw, 128px);

    background: #ffffff;
    color: #12100f;

    font-family: var(
        --smu-font-body,
        "Archivo",
        system-ui,
        sans-serif
    );
}

.smu-blog-filter-ultra.smu-bg-soft {
    background: #f4f4f1;
}

.smu-blog-filter-ultra.smu-bg-white,
.smu-blog-filter-ultra.smu-bg-base {
    background: #ffffff;
}


/* ============================================================
 * CONTAINER
 * ============================================================
 */

.smu-blog-filter-ultra > .smu-container {
    width: min(
        var(--smu-blog-filter-max),
        calc(100% - 48px)
    );

    max-width: none;
    margin-right: auto;
    margin-left: auto;
    padding: 0;
}


/* ============================================================
 * HEADER
 * ============================================================
 */

.smu-blog-filter-head {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 360px);

    gap:
        36px
        clamp(48px, 7vw, 96px);

    align-items: end;

    margin-bottom: 34px;
}

.smu-blog-filter-head__main {
    max-width: 700px;
}

.smu-blog-filter-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin: 0 0 13px;

    color: #008c5a;

    font-family: var(
        --smu-font-data,
        "IBM Plex Mono",
        monospace
    );

    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;

    letter-spacing: .09em;
    text-transform: uppercase;
}

.smu-blog-filter-eyebrow::before {
    content: "";

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #008c5a;
}

.smu-blog-filter-title {
    max-width: 700px;

    margin: 0;

    color: #12100f;

    font-family: var(
        --smu-font-display,
        "Bricolage Grotesque",
        system-ui,
        sans-serif
    );

    font-size:
        clamp(
            2.15rem,
            4vw,
            3.45rem
        );

    font-weight: 800;
    line-height: .99;

    letter-spacing: -.045em;
    text-wrap: balance;
}

.smu-blog-filter-title .smu-title-highlight {
    color: #008c5a;
}

.smu-blog-filter-text {
    max-width: 620px;

    margin:
        20px
        0
        0;

    color: #4d5361;

    font-size: 15px;
    line-height: 1.65;
}


/* ============================================================
 * SEARCH
 * ============================================================
 */

.smu-blog-search {
    display: flex;
    align-items: center;

    min-height: 48px;

    padding:
        0
        16px;

    border:
        1px
        solid
        #dcdeda;

    border-radius: 999px;

    background: #ffffff;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.smu-blog-search:focus-within {
    border-color: #008c5a;

    box-shadow:
        0 0 0 3px
        rgba(0, 140, 90, .09);
}

.smu-blog-search > span {
    margin-right: 9px;

    color: #008c5a;

    font-size: 18px;
    line-height: 1;
}

.smu-blog-search input {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;
    color: #12100f;

    font: inherit;
    font-size: 14px;

    box-shadow: none;
}

.smu-blog-search input::placeholder {
    color: #8a8d94;
}


/* ============================================================
 * CATEGORY CHIPS
 * ============================================================
 */

.smu-blog-filter-chips {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    padding:
        22px
        0
        30px;

    border-top:
        1px
        solid
        #e5e6e3;
}

.smu-blog-filter-chips button {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    min-height: 36px;

    margin: 0;
    padding:
        7px
        13px;

    appearance: none;

    border:
        1px
        solid
        #dfe1dd;

    border-radius: 999px;

    background: #ffffff;
    color: #454a54;

    font-family: var(
        --smu-font-body,
        "Archivo",
        system-ui,
        sans-serif
    );

    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.smu-blog-filter-chips button:hover {
    border-color: #008c5a;
    color: #008c5a;
}

.smu-blog-filter-chips button.is-active {
    border-color: #008c5a;
    background: #008c5a;
    color: #ffffff;
}

.smu-blog-filter-chips button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 22px;
    height: 22px;

    padding: 0 6px;

    border-radius: 999px;

    background: #f2f3f0;

    color: #747984;

    font-family: var(
        --smu-font-data,
        "IBM Plex Mono",
        monospace
    );

    font-size: 9px;
}

.smu-blog-filter-chips button.is-active span {
    background:
        rgba(
            255,
            255,
            255,
            .16
        );

    color: #ffffff;
}


/* ============================================================
 * FILTER STATE
 * ============================================================
 */

.smu-blog-filter-state {
    display: flex;
    align-items: center;
    gap: 7px;

    margin:
        0
        0
        24px;

    color: #777c86;

    font-family: var(
        --smu-font-data,
        "IBM Plex Mono",
        monospace
    );

    font-size: 11px;
}

.smu-blog-filter-state[hidden] {
    display: none;
}

.smu-blog-filter-state button {
    margin-left: 10px;
    padding: 0;

    border: 0;

    background: transparent;
    color: #008c5a;

    font: inherit;

    cursor: pointer;
}


/* ============================================================
 * LIST LABEL
 * ============================================================
 */

.smu-blog-list-label {
    display: flex;
    align-items: center;
    gap: 10px;

    margin:
        6px
        0
        22px;

    color: #12100f;

    font-family: var(
        --smu-font-display,
        "Bricolage Grotesque",
        system-ui,
        sans-serif
    );

    font-size: 21px;
    font-weight: 700;
}

.smu-blog-list-label::before {
    content: "";

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #008c5a;
}


/* ============================================================
 * POSTS GRID
 * ============================================================
 */

.smu-blog-list {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 20px;
}

.smu-blog-list.is-loading {
    opacity: .45;

    pointer-events: none;
}


/* ============================================================
 * CARD
 * ============================================================
 */

.smu-blog-list-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 100%;

    overflow: hidden;

    border:
        1px
        solid
        #e1e3df;

    border-radius: 16px;

    background: #ffffff;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.smu-blog-list-card:hover {
    transform: translateY(-3px);

    border-color: #d4d8d1;

    box-shadow:
        0
        16px
        36px
        rgba(18, 16, 15, .07);
}


/* ============================================================
 * IMAGE
 * ============================================================
 */

.smu-blog-list-card__image {
    position: relative;

    display: block;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #eeefec;
}

.smu-blog-list-card__image:empty::after {
    content: "MIND.";

    position: absolute;

    right: 18px;
    bottom: 14px;

    color: #c5c8c2;

    font-family: var(
        --smu-font-display,
        "Bricolage Grotesque",
        system-ui,
        sans-serif
    );

    font-size: 26px;
    font-weight: 800;
}

.smu-blog-list-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .45s
        cubic-bezier(
            .2,
            .7,
            .2,
            1
        );
}

.smu-blog-list-card:hover
.smu-blog-list-card__image img {
    transform: scale(1.025);
}


/* ============================================================
 * CARD CONTENT
 * ============================================================
 */

.smu-blog-list-card__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;

    padding:
        21px
        22px
        22px;
}

.smu-blog-list-card__cat {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    width: fit-content;

    margin:
        0
        0
        12px;

    color: #008c5a;

    font-family: var(
        --smu-font-data,
        "IBM Plex Mono",
        monospace
    );

    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;

    letter-spacing: .035em;
    text-transform: uppercase;
}

.smu-blog-list-card__cat::before {
    content: "";

    width: 6px;
    height: 6px;

    flex: 0 0 6px;

    border-radius: 50%;

    background: #008c5a;
}

.smu-blog-list-card h3 {
    margin: 0;

    color: #12100f;

    font-family: var(
        --smu-font-display,
        "Bricolage Grotesque",
        system-ui,
        sans-serif
    );

    font-size:
        clamp(
            1.25rem,
            1.7vw,
            1.55rem
        );

    font-weight: 750;
    line-height: 1.07;

    letter-spacing: -.025em;
    text-wrap: balance;
}

.smu-blog-list-card h3 a,
.smu-blog-list-card h3 a:visited {
    color: inherit;
    text-decoration: none;
}

.smu-blog-list-card__content > p {
    display: -webkit-box;

    overflow: hidden;

    margin:
        14px
        0
        20px;

    color: #5d626e;

    font-size: 13px;
    line-height: 1.58;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.smu-blog-list-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    margin-top: auto;
    padding-top: 17px;

    border-top:
        1px
        solid
        #eceeeb;

    color: #838792;

    font-family: var(
        --smu-font-data,
        "IBM Plex Mono",
        monospace
    );

    font-size: 9.5px;
    line-height: 1.45;
}

.smu-blog-list-card__meta strong {
    color: #515661;

    font-weight: 500;
}


/* ============================================================
 * ARROW
 * ============================================================
 */

.smu-blog-list-card__arrow {
    position: absolute;

    top: 18px;
    right: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    border:
        1px
        solid
        rgba(
            255,
            255,
            255,
            .45
        );

    border-radius: 50%;

    background:
        rgba(
            18,
            16,
            15,
            .52
        );

    color: #ffffff;

    font-size: 15px;
    line-height: 1;

    text-decoration: none;

    backdrop-filter: blur(6px);

    transition:
        background .18s ease,
        transform .18s ease;
}

.smu-blog-list-card:hover
.smu-blog-list-card__arrow {
    transform: translateY(-1px);

    background: #008c5a;
}


/* ============================================================
 * EMPTY
 * ============================================================
 */

.smu-blog-empty {
    grid-column: 1 / -1;

    margin: 0;

    padding:
        42px
        28px;

    border:
        1px
        dashed
        #d6d9d4;

    border-radius: 14px;

    color: #656a75;

    text-align: center;
}


/* ============================================================
 * LOAD MORE
 * ============================================================
 */

.smu-blog-loadmore-wrap {
    display: flex;
    justify-content: center;

    padding-top: 42px;
}

.smu-blog-loadmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    min-height: 48px;

    padding:
        0
        22px;

    border: 0;
    border-radius: 9px;

    background: #008c5a;
    color: #ffffff;

    font-family: var(
        --smu-font-body,
        "Archivo",
        system-ui,
        sans-serif
    );

    font-size: 13px;
    font-weight: 650;

    cursor: pointer;

    transition:
        transform .18s ease,
        background .18s ease;
}

.smu-blog-loadmore:hover {
    transform: translateY(-1px);

    background: #00784d;
}

.smu-blog-loadmore[hidden] {
    display: none;
}


/* ============================================================
 * RESPONSIVE
 * ============================================================
 */

@media (max-width: 980px) {

    .smu-blog-filter-head {
        grid-template-columns: 1fr;
    }

    .smu-blog-search {
        max-width: 520px;
    }

    .smu-blog-list {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}


@media (max-width: 680px) {

    .smu-blog-filter-ultra {
        padding:
            64px
            0
            82px;
    }

    .smu-blog-filter-ultra > .smu-container {
        width:
            calc(
                100% - 36px
            );
    }

    .smu-blog-filter-title {
        font-size:
            clamp(
                2rem,
                11vw,
                2.7rem
            );
    }

    .smu-blog-filter-chips {
        flex-wrap: nowrap;

        margin-right: -18px;
        margin-left: -18px;

        padding-right: 18px;
        padding-left: 18px;

        overflow-x: auto;

        scrollbar-width: none;
    }

    .smu-blog-filter-chips::-webkit-scrollbar {
        display: none;
    }

    .smu-blog-filter-chips button {
        flex: 0 0 auto;
    }

    .smu-blog-list {
        grid-template-columns: 1fr;
    }

    .smu-blog-list-card__content {
        padding:
            20px
            19px
            21px;
    }
}


/* =========================================================
   BLOG GRID · HOMOGENEIDAD DE IMÁGENES
   ========================================================= */

.smu-blog-list-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.smu-blog-list-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}
