/*
 * Eat My Food — Recipe Finder result presentation.
 *
 * Intentionally scoped to the Finder so the shared homepage search
 * control is not visually changed.
 */

.emf-finder-results {
    width: calc(100% - 30px);
    max-width: 980px;
    margin: 24px auto 0;
}

.emf-finder-results-summary {
    margin: 0 0 12px;
    color: #fff;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.65);
}

.emf-finder-unmatched {
    width: calc(100% - 30px);
    max-width: 980px;
    margin: 18px auto 6px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #3b4650;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    font-size: 0.9rem;
    line-height: 1.45;
}

.emf-finder-unmatched strong {
    color: #222;
}

.emf-finder-unmatched-term {
    display: inline-block;
    margin: 3px 4px 3px 0;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff1c7;
    color: #6b4d00;
    font-weight: 600;
}

.emf-finder-result {
    margin-bottom: 16px;
}

.emf-finder-card {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 14px;
    border: 2px solid #2c91c5;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.16);
    transition:
        transform 140ms ease,
        box-shadow 140ms ease;
}

.emf-finder-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.2);
}

.emf-finder-card__image-link {
    flex: 0 0 170px;
    display: block;
}

.emf-finder-card__image {
    display: block;
    width: 170px;
    height: 118px;
    object-fit: cover;
    border-radius: 12px;
}

.emf-finder-card__body {
    min-width: 0;
    padding: 4px 6px 4px 0;
}

.emf-finder-card__title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.25;
}

.emf-finder-card__title a {
    color: #1679b5;
    text-decoration: none;
}

.emf-finder-card__title a:hover {
    text-decoration: underline;
}

.emf-finder-card__intro {
    margin: 0;
    color: #3c4650;
    font-size: 0.98rem;
    line-height: 1.55;
}

.emf-finder-empty {
    width: calc(100% - 30px);
    max-width: 760px;
    margin: 24px auto;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    color: #303941;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.14);
}

.emf-finder-empty h2 {
    margin: 0 0 7px;
    font-size: 1.25rem;
}

.emf-finder-empty p {
    margin: 0;
    line-height: 1.5;
}


@media (max-width: 575.98px) {
    .emf-finder-results {
        width: calc(100% - 20px);
    }

    .emf-finder-unmatched {
        width: calc(100% - 20px);
    }

    .emf-finder-card {
        gap: 12px;
        padding: 11px;
        border-radius: 14px;
    }

    .emf-finder-card__image-link {
        flex-basis: 105px;
    }

    .emf-finder-card__image {
        width: 105px;
        height: 90px;
        border-radius: 10px;
    }

    .emf-finder-card__title {
        margin-bottom: 5px;
        font-size: 0.98rem;
    }

    .emf-finder-card__intro {
        font-size: 0.88rem;
        line-height: 1.4;
    }
}

/*
 * Keep Recipe Finder result titles visually identical to normal
 * recipe-list titles.
 */
h2.emf-finder-card__title {
    font-size: 1rem !important;
    line-height: 1.28 !important;
}

@media (max-width: 575.98px) {
    h2.emf-finder-card__title {
        font-size: 0.95rem !important;
        line-height: 1.28 !important;
    }
}

/* EMF FINAL FINDER HEADING SIZE START */

h2.emf-finder-card__title,
.emf-finder-card__title {
    font-size: 1.08rem !important;
    line-height: 1.30 !important;
}

@media (max-width: 575.98px) {
    h2.emf-finder-card__title,
    .emf-finder-card__title {
        font-size: 1.02rem !important;
        line-height: 1.30 !important;
    }
}

/* EMF FINAL FINDER HEADING SIZE END */

/* EMF FINDER TITLE SIZE FINAL START */

h2.emf-finder-card__title,
.emf-finder-card__title {
    font-size: 1.32rem !important;
    line-height: 1.20 !important;
}

@media (max-width: 575.98px) {
    h2.emf-finder-card__title,
    .emf-finder-card__title {
        font-size: 1.08rem !important;
        line-height: 1.25 !important;
    }
}

/* EMF FINDER TITLE SIZE FINAL END */

/* EMF APPROVED LARGE FINDER H2 START */

h2.emf-finder-card__title,
.emf-finder-card__title {
    font-size:
        2rem !important;

    line-height:
        1.20 !important;

    font-weight:
        500;
}

@media (max-width: 575.98px) {
    h2.emf-finder-card__title,
    .emf-finder-card__title {
        font-size:
            1.5rem !important;

        line-height:
            1.22 !important;
    }
}

/* EMF APPROVED LARGE FINDER H2 END */


/*
 * Recipe Finder — zero-result recovery
 */

.emf-finder-empty__example {
    margin-top: 12px !important;
}

.emf-finder-example-link {
    display: inline-block;

    margin-left: 4px;
    padding: 5px 10px;

    border-radius: 999px;

    background: #087eb8;
    color: #fff !important;

    font-weight: 600;
    text-decoration: none !important;
}

.emf-finder-example-link:hover,
.emf-finder-example-link:focus {
    background: #056b9d;
    color: #fff !important;
}


/*
 * Separate Featured recipes recovery panel.
 *
 * Do not modify the approved Recipe Finder result H2 rules.
 */

.emf-finder-featured {
    width: calc(100% - 30px);
    max-width: 980px;

    margin: 20px auto 30px;
    padding: 20px;

    box-sizing: border-box;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.95);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.14);
}

.emf-finder-featured__header {
    margin-bottom: 16px;
}

.emf-finder-featured__header h2 {
    margin: 0 0 4px;
}

.emf-finder-featured__header p {
    margin: 0;
    color: #56616b;
}

.emf-finder-featured__grid {
    display: grid;

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

    gap: 14px;
}

.emf-finder-featured-card {
    display: flex;

    min-width: 0;

    overflow: hidden;

    border: 1px solid rgba(0, 123, 181, 0.18);
    border-radius: 13px;

    background: #fff;
}

.emf-finder-featured-card__image-link {
    flex: 0 0 135px;
}

.emf-finder-featured-card__image {
    display: block;

    width: 135px;
    height: 100%;

    min-height: 105px;

    object-fit: cover;
}

.emf-finder-featured-card__body {
    min-width: 0;

    padding: 12px 13px;
}

.emf-finder-featured-card__title {
    margin: 0 0 6px;

    font-size: 1.08rem;
    line-height: 1.25;
}

.emf-finder-featured-card__title a {
    color: #1679b5;
    text-decoration: none;
}

.emf-finder-featured-card__title a:hover,
.emf-finder-featured-card__title a:focus {
    text-decoration: underline;
}

.emf-finder-featured-card__body p {
    margin: 0;

    color: #49545e;

    font-size: 0.88rem;
    line-height: 1.42;
}


@media (max-width: 767.98px) {
    .emf-finder-featured {
        width: calc(100% - 20px);

        padding: 14px;
    }

    .emf-finder-featured__grid {
        grid-template-columns: 1fr;
    }

    .emf-finder-featured-card__image-link {
        flex-basis: 110px;
    }

    .emf-finder-featured-card__image {
        width: 110px;
        min-height: 95px;
    }
}

/* EMF FEATURED RECIPES CONSISTENT CARDS START */

.emf-finder-featured__grid {
    display: grid;

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

    gap: 18px;
}

.emf-finder-featured-card {
    display: block;

    min-width: 0;

    overflow: hidden;

    border:
        1px solid
        rgba(44, 145, 197, 0.28);

    border-radius:
        13px;

    background:
        #fff;
}

.emf-finder-featured-card__image-link {
    display: block;

    width: 100%;

    height: auto;

    overflow: hidden;
}

.emf-finder-featured-card__image {
    display: block;

    width:
        100% !important;

    height:
        auto !important;

    min-height:
        0 !important;

    aspect-ratio:
        3 / 2;

    object-fit:
        cover;

    border-radius:
        12px 12px 0 0;
}

.emf-finder-featured-card__body {
    padding:
        13px
        15px
        16px;
}

.emf-finder-featured-card__title {
    margin:
        0 0 7px;

    font-size:
        1.25rem;

    line-height:
        1.22;
}

.emf-finder-featured-card__body p {
    margin: 0;

    line-height:
        1.45;
}

@media (max-width: 767.98px) {
    .emf-finder-featured__grid {
        grid-template-columns:
            1fr;
    }

    .emf-finder-featured-card__image-link {
        width: 100%;
        height: auto;
    }

    .emf-finder-featured-card__image {
        width:
            100% !important;

        height:
            auto !important;
    }
}

/* EMF FEATURED RECIPES CONSISTENT CARDS END */


/* EMF FINDER RECOVERY CONSISTENCY START */

/*
 * Empty-search and zero-result states use the established
 * Eat My Food blue search-message treatment.
 *
 * Featured recipe cards are deliberately not changed here.
 */

.emf-finder-recovery-message {
    box-sizing:
        border-box;

    display:
        block;

    float:
        none;

    clear:
        both;

    width:
        calc(100% - 30px);

    max-width:
        800px;

    margin:
        24px auto 18px;

    padding:
        15px;

    border:
        3px solid
        #fff;

    border-radius:
        25px;

    background:
        rgba(0, 103, 160, 0.8) !important;

    color:
        #fff !important;

    text-shadow:
        1px 1px #000;
}


.emf-finder-recovery-message__title {
    margin:
        0 0 12px;

    color:
        #fff;

    font-size:
        18pt;

    line-height:
        1.2;
}


.emf-finder-recovery-message
.foodsearchtip {
    display:
        block;

    padding-top:
        0;

    color:
        #fff;
}


.emf-finder-recovery-message
.emf-finder-empty__example {
    margin-top:
        12px !important;

    color:
        #fff;

    font-size:
        11pt;

    line-height:
        1.45;
}


.emf-finder-recovery-message
.emf-finder-example-link {
    margin-left:
        5px;

    border:
        1px solid
        #fff;

    background:
        rgba(255, 255, 255, 0.14);

    color:
        #fff !important;
}


.emf-finder-recovery-message
.emf-finder-example-link:hover,
.emf-finder-recovery-message
.emf-finder-example-link:focus {
    border-color:
        #fff;

    background:
        rgba(255, 255, 255, 0.25);

    color:
        #fff !important;
}


.emf-finder-recovery-actions {
    display:
        flex;

    justify-content:
        center;

    gap:
        12px;

    width:
        calc(100% - 30px);

    max-width:
        800px;

    margin:
        20px auto 30px;
}


@media (max-width: 575.98px) {

    .emf-finder-recovery-message {
        width:
            calc(100% - 20px);

        margin-top:
            18px;
    }


    .emf-finder-recovery-message__title {
        font-size:
            1.25rem;
    }


    .emf-finder-recovery-message
    .emf-finder-empty__example {
        font-size:
            0.88rem;
    }

}

/* EMF FINDER RECOVERY CONSISTENCY END */
