.tf-recipes {
    --tf-recipe-line: var(--tf-ed-line, #dce4d6);
    --tf-recipe-pale: color-mix(in srgb, var(--tf-sage) 50%, white);
    --tf-recipe-ink: var(--tf-forest, #073c2d);
}
.tf-recipes h3 { margin: 0; color: var(--tf-recipe-ink); font-family: var(--tf-display); font-size: var(--tf-type-heading-3); line-height: 1.25; }
.tf-recipe-library-heading p:last-child { max-width: 55ch; }
.tf-recipes .tf-recipe-kicker {
    margin: 0 0 6px;
    color: var(--tf-recipe-ink);
    font-size: var(--tf-type-label);
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.tf-recipe-search {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0,1fr)) auto;
    gap: 12px;
    align-items: end;
    padding: clamp(14px, 2.5vw, 24px);
    border: 1px solid var(--tf-recipe-line);
    border-radius: 16px;
    background: var(--tf-recipe-pale);
}
.tf-recipe-search label { display: block; margin-bottom: 4px; font-size: var(--tf-type-compact); font-weight: 750; }
.tf-recipe-search :is(input,select) {
    box-sizing: border-box;
    min-height: 45px;
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #9aac9e;
    border-radius: 9px;
    background: white;
    color: var(--tf-text);
    font: inherit;
}
.tf-recipe-button {
    min-height: 45px;
    padding: 10px 20px;
    border: 1px solid var(--tf-recipe-ink);
    border-radius: 10px;
    background: var(--tf-recipe-ink);
    color: white;
    font: 750 var(--tf-type-button)/1.3 var(--tf-body);
    cursor: pointer;
}
.tf-recipe-button:hover { background: #124e3b; }
.tf-recipes :is(input,select,button,a):focus-visible { outline: 2px solid var(--tf-recipe-ink); outline-offset: 3px; }
.tf-recipe-result-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin: 26px 0 15px; }
.tf-recipe-result-bar a, .tf-recipe-pagination a { color: var(--tf-recipe-ink); font-weight: 750; }
.tf-recipe-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.tf-recipe-card, .tf-recipe-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--tf-recipe-line);
    border-radius: 16px;
    background: white;
}
.tf-recipe-card { display: flex; flex-direction: column; box-shadow: 0 4px 12px #103a2410; }
.tf-recipe-card-image {
    position: relative;
    display: block;
    flex: none;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--tf-recipe-pale);
}
.tf-recipe-card-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tf-recipe-card-copy, .tf-recipe-panel { padding: clamp(14px, 2.4vw, 25px); }
.tf-recipe-card-copy { display: flex; flex: 1; flex-direction: column; font-size: var(--tf-type-compact); line-height: 1.45; }
body.wp-child-theme-tastifit-child main .tf-recipe-card h3 { font-size: clamp(1.125rem, 1rem + .3vw, 1.25rem); line-height: 1.3; }
.tf-recipe-card-copy p, .tf-recipe-panel p { margin: 7px 0 0; }
.tf-recipe-card h3 { overflow-wrap: anywhere; }
.tf-recipe-card-copy:has(.tf-recipe-card-facts) > :nth-last-child(2) { margin-bottom: .7rem; }
.tf-recipe-card-copy .tf-recipe-card-facts { margin-top: auto; }
.tf-recipe-card h3 a { text-decoration: none; }
.tf-recipe-card h3 a:hover { text-decoration: underline; }
.tf-recipe-card-copy .tf-recipe-card-facts, .tf-recipe-muted { color: #4b6255; font-size: var(--tf-type-small); }
.tf-recipe-pagination { display: flex; gap: 25px; margin-top: 24px; }
@media (min-width: 1150px) {
    .tf-recipe-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .tf-recipe-search { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tf-recipe-search-query { grid-column: 1 / -1; }
    .tf-recipe-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
    .tf-recipe-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 370px) {
    .tf-recipe-search { grid-template-columns: minmax(0,1fr); }
}

.tf-recipe-detail {
    --tf-recipe-accent: #5d890f;
    --tf-recipe-soft: #f1f5e9;
    --tf-recipe-warm: #f8f5ef;
    --tf-recipe-gap: clamp(14px, 2.1vw, 26px);
}
.tf-recipe-hero {
    display: grid;
    align-items: center;
    gap: clamp(18px, 4vw, 48px);
    margin: 0 0 var(--tf-recipe-gap);
}
.tf-recipe-hero--image { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
.tf-recipe-hero figure { margin: 0; overflow: hidden; border-radius: 20px; aspect-ratio: 1.62; background: var(--tf-recipe-warm); }
.tf-recipe-hero figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tf-recipe-hero .tf-recipe-kicker { letter-spacing: .2em; }
.tf-recipe-hero .tf-recipe-kicker::before,
.tf-recipe-hero-copy h1::after {
    display: block;
    width: 3.3rem;
    height: 3px;
    border-radius: 2px;
    background: var(--tf-recipe-accent);
    content: "";
}
.tf-recipe-hero .tf-recipe-kicker::before { margin-bottom: .55rem; }
.tf-recipe-hero-copy h1 { margin: .45rem 0 .65rem; line-height: 1.08; }
.tf-recipe-hero-copy h1::after { margin-top: .55rem; }
.tf-recipe-intro { font-size: var(--tf-type-lead, 1.125rem); line-height: 1.55; overflow-wrap: anywhere; }
.tf-recipe-intro > :first-child { margin-top: 0; }
.tf-recipe-intro > :last-child { margin-bottom: 0; }
.tf-recipe-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--tf-recipe-gap);
    margin-bottom: var(--tf-recipe-gap);
}
.tf-recipe-pair > :only-child { grid-column: 1 / -1; }
.tf-recipe-cook { grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); }
.tf-recipe-cook .tf-recipe-panel { border-color: #e5e8e1; box-shadow: 0 1px 5px #18241b0b; }
.tf-recipe-summary, .tf-recipe-storage {
    min-width: 0;
    padding: clamp(14px, 2.1vw, 25px);
    border-radius: 18px;
    background: var(--tf-recipe-soft);
}
.tf-recipe-summary--facts { background: var(--tf-recipe-warm); }
.tf-recipe-section-head { display: flex; align-items: flex-start; gap: clamp(.55rem, 1.35vw, 1rem); }
.tf-recipe-section-head > svg { flex: none; width: clamp(25px, 3.6vw, 42px); height: auto; color: var(--tf-recipe-accent); }
.tf-recipe-detail .tf-recipe-section-head h2, .tf-recipe-detail .tf-recipe-summary h2 { margin: 0; }
.tf-recipe-section-head p { margin: .12rem 0 0; }
.tf-recipe-detail .tf-recipe-overview h2,
.tf-recipe-detail .tf-recipe-storage h2,
.tf-recipe-detail .tf-recipe-related h2 { font-size: var(--tf-type-heading-3); }
.tf-recipe-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.1rem), 1fr));
    row-gap: .85rem;
    margin: .9rem 0 0;
    text-align: center;
}
.tf-recipe-stat-grid div { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding-inline: .25rem; overflow-wrap: anywhere; }
.tf-recipe-stat-grid div + div { border-inline-start: 1px solid #61766545; }
.tf-recipe-stat-grid svg { width: 27px; height: 27px; color: var(--tf-recipe-accent); }
.tf-recipe-stat-grid dt { font-size: var(--tf-type-support, .875rem); line-height: 1.3; }
.tf-recipe-stat-grid dd { margin: 0; color: var(--tf-recipe-ink); font-size: var(--tf-type-heading-3); font-weight: 800; line-height: 1.25; }
.tf-recipe-overview .tf-recipe-summary:not(.tf-recipe-summary--facts) dd { order: -1; }
.tf-recipe-ingredient-group { margin-top: .9rem; }
.tf-recipe-ingredient-group + .tf-recipe-ingredient-group { padding-top: .8rem; border-top: 1px solid var(--tf-recipe-line); }
.tf-recipe-detail .tf-recipe-ingredient-group h3 {
    display: flex;
    gap: .65rem;
    align-items: center;
    padding: .3rem .75rem;
    border-radius: 99px;
    background: var(--tf-recipe-soft);
    font-size: var(--tf-type-heading-5);
}
.tf-recipe-ingredient-group svg { width: 24px; height: 24px; flex: none; color: var(--tf-recipe-accent); }
.tf-recipe-ingredients, .tf-recipe-steps, .tf-recipe-advice ul, .tf-recipe-related ul { list-style: none; padding: 0; margin: .55rem 0 0; }
.tf-recipe-ingredients label { display: flex; align-items: flex-start; gap: .7rem; padding: .18rem .36rem; cursor: pointer; }
.tf-recipe-ingredients input { flex: none; width: 16px; height: 16px; margin: .23em 0 0; accent-color: var(--tf-recipe-accent); }
.tf-recipe-ingredients input:checked + span { text-decoration: line-through; color: #4b6255; }
.tf-recipe-steps { display: grid; gap: .75rem; margin-top: 1rem; }
.tf-recipe-steps li { position: relative; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: clamp(.5rem, 1.25vw, 1rem); align-items: center; }
.tf-recipe-steps li:not(:last-child)::before { position: absolute; width: 1px; inset: 50% auto calc(-.75rem - 50%) 1rem; background: #abc87a; content: ""; }
.tf-recipe-steps > li > p:empty, .tf-recipe-step p:empty { display: none; }
.tf-recipe-step-number {
    grid-area: 1 / 1;
    position: relative;
    display: grid;
    place-items: center;
    min-height: 2rem;
    border-radius: 50%;
    background: var(--tf-recipe-accent);
    color: white;
    font-weight: 800;
    box-shadow: 0 0 0 4px #fff;
}
.tf-recipe-step { grid-area: 1 / 2; display: grid; min-width: 0; overflow: hidden; border-radius: 15px; background: var(--tf-recipe-warm); }
.tf-recipe-step--photo { grid-template-columns: minmax(0, .46fr) minmax(0, 1fr); }
.tf-recipe-step-media {
    position: relative;
    grid-area: 1 / 1;
    min-height: 100px;
    margin: 0;
}
.tf-recipe-step--photo > div { grid-area: 1 / 2; }
.tf-recipe-step-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.tf-recipe-step > div { min-width: 0; padding: .65rem clamp(.6rem, 1.3vw, 1rem); overflow-wrap: anywhere; }
.tf-recipe-detail .tf-recipe-step h3 { margin: 0; font-size: var(--tf-type-heading-4); }
.tf-recipe-step p { margin: .15rem 0 0; }
.tf-recipe-step p, .tf-recipe-ingredients, .tf-recipe-advice ul, .tf-recipe-storage p { font-size: var(--tf-type-compact); line-height: 1.46; }
.tf-recipe-extras { align-items: center; }
.tf-recipe-video { padding: .65rem; border-radius: 18px; background: var(--tf-recipe-warm); }
.tf-recipe-detail .tf-recipe-video-card { position: relative; display: grid; align-items: end; box-sizing: border-box; width: 100%; min-width: 0; min-height: 170px; aspect-ratio: 2.2; padding: 1rem; overflow: hidden; border-radius: 14px; background: var(--tf-recipe-ink); color: white; text-decoration: none; }
.tf-recipe-video-card img, .tf-recipe-video-card:has(img)::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.tf-recipe-video-card img { object-fit: cover; }
.tf-recipe-video-card:has(img)::before { z-index: 1; background: linear-gradient(90deg, #0b160fd9, #07161000 85%); content: ""; }
.tf-recipe-video-label, .tf-recipe-video-title, .tf-recipe-video-play, .tf-recipe-video-duration { position: relative; z-index: 2; }
.tf-recipe-video-label { align-self: start; font-size: var(--tf-type-small); font-weight: 800; }
.tf-recipe-video-title { max-width: min(12ch, 65%); font-size: var(--tf-type-heading-3); line-height: 1.14; }
.tf-recipe-video-play { position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center; width: 52px; height: 52px; transform: translate(-50%, -50%); border: 2px solid white; border-radius: 50%; background: #cc251b; }
.tf-recipe-video-play svg { width: 29px; }
.tf-recipe-video-duration { position: absolute; inset: auto .7rem .7rem auto; padding: .1rem .35rem; border-radius: 4px; background: #161616; font-size: var(--tf-type-small); }
.tf-recipe-advice { padding-block: .25rem; }
.tf-recipe-video + .tf-recipe-advice { padding-inline-start: var(--tf-recipe-gap); border-inline-start: 1px solid var(--tf-recipe-line); }
.tf-recipe-advice li { display: flex; align-items: start; gap: .55rem; margin-top: .45rem; }
.tf-recipe-advice li svg { flex: none; width: 23px; color: var(--tf-recipe-accent); }
.tf-recipe-advice span, .tf-recipe-storage p, .tf-recipe-related a { overflow-wrap: anywhere; }
.tf-recipe-storage { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--tf-recipe-gap); margin-bottom: var(--tf-recipe-gap); }
.tf-recipe-storage .tf-recipe-section-head { align-items: center; }
.tf-recipe-storage p { padding-inline-start: var(--tf-recipe-gap); border-inline-start: 1px solid #61766545; margin: 0; }
.tf-recipe-related { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem var(--tf-recipe-gap); }
.tf-recipe-related .tf-recipe-section-head { align-items: center; }
.tf-recipe-related ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.tf-recipe-related a { display: inline-flex; align-items: center; min-height: 40px; padding: .45rem .95rem; border-radius: 99px; background: var(--tf-recipe-soft); color: var(--tf-recipe-ink); font-size: var(--tf-type-compact); font-weight: 750; text-decoration: none; }
.tf-recipe-related a:hover { text-decoration: underline; }
@media (max-width: 760px) {
    .tf-recipe-hero--image, .tf-recipe-pair, .tf-recipe-cook, .tf-recipe-storage { grid-template-columns: minmax(0, 1fr); }
    .tf-recipe-video + .tf-recipe-advice, .tf-recipe-storage p { padding-inline-start: 0; border-inline-start: 0; }
}
@media (max-width: 420px) {
    .tf-recipe-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tf-recipe-stat-grid div:nth-child(odd) { border-inline-start: 0; }
    .tf-recipe-step--photo { grid-template-columns: minmax(0, 1fr); }
    .tf-recipe-step--photo > div { grid-area: 2 / 1; }
    .tf-recipe-step-media { aspect-ratio: 2 / 1; }
}

.tf-recipe-detail .tf-ed-breadcrumb { margin-block-end: clamp(16px, 2.3vw, 26px); }
body.wp-child-theme-tastifit-child main .tf-recipe-detail .tf-recipe-hero-copy h1 { margin: .45rem 0 .65rem; line-height: 1.08; }
body.wp-child-theme-tastifit-child main .tf-recipe-detail :is(.tf-recipe-overview, .tf-recipe-storage, .tf-recipe-related) h2 { font-size: var(--tf-type-heading-3); }
body.wp-child-theme-tastifit-child main .tf-recipe-detail .tf-recipe-ingredient-group h3 { font-size: var(--tf-type-heading-5); }
body.wp-child-theme-tastifit-child main .tf-recipe-detail .tf-recipe-step h3 { font-size: var(--tf-type-heading-4); }
.tf-recipe-related a { gap: .45rem; }
.tf-recipe-related a svg { width: 16px; height: 16px; flex: none; color: var(--tf-recipe-accent); }

.tf-recipe-photo-placeholder {
    display: grid;
    position: absolute;
    inset: 0;
    place-content: center;
    justify-items: center;
    gap: .65rem;
    background: #edf1e8;
    color: var(--tf-recipe-ink);
    font-size: var(--tf-type-small);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.tf-recipe-hero figure { position: relative; }
.tf-recipe-total { margin: .75rem 0 0; text-align: center; font-size: var(--tf-type-small); }
.tf-recipe-total strong { margin-inline-start: .35rem; color: var(--tf-recipe-ink); }

.tf-recipe-media-credits { margin: 0 0 1.2rem; font-size: var(--tf-type-small); }
.tf-recipe-media-credits summary { width: fit-content; cursor: pointer; color: var(--tf-recipe-ink); }
.tf-recipe-media-credits ul { padding-inline-start: 1.2rem; }
.tf-recipe-media-credits li + li { margin-top: .35rem; }
.tf-recipe-video-title { max-width: min(19ch, 68%); }
.tf-recipe-video-play { inset-inline-start: 76%; }
