/* Family Recipes */

.recipes-page {
    width: min(1120px, 92%);
    margin: 0 auto;
    padding: 52px 0 70px;
}

.recipes-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 28px;
}

.recipes-header .eyebrow {
    margin: 0 0 8px;
    color: #71806b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.recipes-header h1 {
    margin: 0 0 12px;
    font: 700 clamp(40px, 5vw, 60px)/1 Georgia, serif;
    color: #342d28;
}

.recipes-header > div:first-child > p:last-child {
    max-width: 680px;
    margin: 0;
    color: #776d64;
    font: 18px/1.55 Georgia, serif;
}

.recipe-search {
    margin: 26px 0 16px;
}

.recipe-search input {
    margin: 0;
    padding: 15px 18px;
    background: #fffdf8;
    border: 1px solid #d8ccbc;
    border-radius: 14px;
    font-size: 16px;
}

.recipe-search input:focus {
    outline: 2px solid #71806b;
    outline-offset: 2px;
}

.recipe-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.recipe-filter {
    padding: 9px 14px;
    border: 1px solid #d8ccbc;
    border-radius: 999px;
    background: #fffdf8;
    color: #5f564e;
    font-weight: 700;
    cursor: pointer;
}

.recipe-filter:hover,
.recipe-filter.active {
    background: #71806b;
    border-color: #71806b;
    color: white;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.recipe-card {
    min-height: 0;
    overflow: hidden;
    background: #fffdf8;
    border: 1px solid #e4d9ca;
    border-radius: 20px;
    box-shadow: 0 12px 35px #0000000d;
    transition: transform .15s ease, box-shadow .15s ease;
}

.recipe-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px #00000014;
}

.recipe-card[hidden] {
    display: none;
}

.recipe-card-body {
    padding: 16px;
}

.recipe-category {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8ede4;
    color: #5d6b58;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.recipe-card h2 {
    margin: 0 0 10px;
    font: 700 21px/1.18 Georgia, serif;
}

.recipe-card h2 a {
    color: #342d28;
    text-decoration: none;
}

.recipe-card h2 a:hover {
    color: #b56f59;
}

.recipe-card p {
    color: #776d64;
    font: 15px/1.55 Georgia, serif;
}

.recipe-from {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eee4d7;
    color: #b56f59 !important;
    font-style: italic !important;
}

.recipe-empty {
    max-width: 720px;
    margin: 35px auto 0;
    padding: 55px 40px;
    text-align: center;
    background: #fffdf8;
    border: 1px solid #e4d9ca;
    border-radius: 24px;
    box-shadow: 0 12px 35px #0000000d;
}

.recipe-empty-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ead8d2;
    color: #b56f59;
    font-size: 30px;
}

.recipe-empty h2 {
    margin: 0 0 12px;
    font: 700 34px/1.15 Georgia, serif;
}

.recipe-empty p {
    max-width: 570px;
    margin: 0 auto 25px;
    color: #776d64;
    font: 17px/1.65 Georgia, serif;
}

@media (max-width: 850px) {
    .recipes-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .recipes-page {
        padding-top: 34px;
    }

    .recipes-header h1 {
        font-size: 42px;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .recipe-empty {
        padding: 38px 22px;
    }

    .recipe-categories {
        gap: 6px;
    }

    .recipe-filter {
        padding: 8px 11px;
        font-size: 12px;
    }
}

.recipe-back {
    display: inline-block;
    margin-bottom: 24px;
    color: #71806b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.recipe-back:hover {
    color: #b56f59;
    text-decoration: underline;
}

/* Recipe forms, details, and letter-size printing */
.recipe-search{display:flex;gap:10px;align-items:center}.recipe-search input{flex:1}.recipe-search button,.recipe-detail-nav button{width:auto;margin:0}.recipe-search a{font-weight:700;color:#71806b}
.recipe-filter{display:inline-block;text-decoration:none}.recipe-card-image{display:block;width:100%;height:115px;object-fit:cover}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.recipe-editor h1{font:700 38px/1.1 Georgia,serif}.recipe-editor label{display:block;margin:0 0 18px;font-weight:700}.recipe-editor input,.recipe-editor select,.recipe-editor textarea{display:block;width:100%;box-sizing:border-box;margin-top:7px}.recipe-editor textarea{resize:vertical}.recipe-editor .field-help{display:block;margin-top:5px;color:#776d64;font-size:13px;font-weight:400}.current-artwork{margin:0 0 20px}.current-artwork img{display:block;max-width:320px;max-height:220px;object-fit:contain;border-radius:14px}.current-artwork .check-option{margin-top:8px}.current-artwork .check-option input{display:inline;width:auto}
.recipe-detail-page{width:min(1050px,94%);margin:0 auto;padding:38px 0 70px}.recipe-detail-nav{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.recipe-detail-nav .recipe-back{margin:0}.recipe-detail-nav>div{display:flex;gap:10px;align-items:center}
.printable-recipe{box-sizing:border-box;max-width:8in;min-height:10in;margin:0 auto;padding:.45in;background:#fffdf8;border:1px solid #dfd3c3;border-radius:18px;box-shadow:0 12px 35px #0000000d;color:#342d28}.recipe-title-block{text-align:center;border-bottom:2px solid #b56f59;padding-bottom:18px}.recipe-title-block h1{margin:5px 0 10px;font:700 42px/1.08 Georgia,serif}.recipe-description{font:italic 17px/1.45 Georgia,serif}.recipe-byline{color:#b56f59;font-weight:700}.recipe-artwork{display:block;max-width:100%;max-height:3.1in;margin:22px auto;object-fit:contain;border-radius:12px}
.recipe-columns{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr);gap:34px;margin-top:24px}.printable-recipe h2{margin:0 0 12px;color:#71806b;font:700 24px/1.2 Georgia,serif}.recipe-lines{padding-left:22px}.recipe-lines li{margin-bottom:9px;white-space:pre-wrap;line-height:1.45}.recipe-notes,.recipe-story{margin-top:24px;padding:18px 20px;background:#f4eee5;border-radius:12px}.recipe-notes p,.recipe-story p{margin:7px 0;white-space:pre-wrap;line-height:1.5}.recipe-print-footer{margin-top:28px;padding-top:12px;border-top:1px solid #dfd3c3;text-align:center;color:#776d64;font-size:12px}
@media(max-width:700px){.recipe-detail-nav{align-items:flex-start;flex-direction:column}.recipe-columns{grid-template-columns:1fr}.printable-recipe{padding:24px}.recipe-title-block h1{font-size:34px}.recipe-search{align-items:stretch;flex-direction:column}}
@page{size:Letter portrait;margin:.25in}
@media print{body{background:#fff!important}body>header,body>footer,.no-print,.recipe-detail-nav{display:none!important}.recipe-detail-page{width:auto;margin:0;padding:0}.printable-recipe{width:8in;max-width:none;min-height:10.5in;margin:0;padding:.25in;border:0;border-radius:0;box-shadow:none;background:#fff}.recipe-title-block h1{font-size:30pt}.recipe-artwork{max-height:2.5in}.recipe-columns{gap:.3in}.printable-recipe h2{font-size:17pt}.recipe-lines li,.recipe-notes p,.recipe-story p{font-size:10.5pt;line-height:1.3;break-inside:avoid}.recipe-notes,.recipe-story{break-inside:avoid;background:#f4eee5!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.home-brand{color:#342d28;text-decoration:none}
.recipes-header,.recipe-title-block{height:auto;background:transparent;border-bottom:0}
.recipe-title-block{display:block}
.recipe-search button,.recipe-detail-nav button{display:inline-block;padding:12px 20px;border:0;border-radius:999px;background:#71806b;color:#fff;font-weight:700;cursor:pointer}

.favorite-option{display:flex;align-items:center;gap:9px;margin:12px 0;padding:12px 14px;border:1px solid #d8ccbc;border-radius:10px;background:#fffdf8;font-weight:700}.favorite-option input{width:auto;margin:0}.local-recipe-file{padding:14px;border:1px solid #d8ccbc;border-radius:10px;background:#f8f3eb}.local-recipe-file input[type=file]{margin-top:9px;background:#fff}.recipe-upload-mode{margin:20px 0;padding:16px 18px;border:1px solid #d8ccbc;border-radius:12px;background:#f8f3eb}.recipe-upload-mode legend{padding:0 6px;font-weight:700}.recipe-upload-mode .check-option{margin:0;font-size:15px}.recipe-upload-mode .check-option input{display:inline;width:auto;margin:0 8px 0 0}.recipe-upload-mode .field-help{margin:8px 0 0}
.complete-recipe{min-height:0;padding:0;overflow:hidden;background:#fff}.complete-recipe-page{display:block;width:100%;height:auto;margin:0}
.image-only-detail{position:relative;width:100%;min-height:calc(100vh - 58px);margin:0;padding:76px 0 24px;background:#201d1a;box-sizing:border-box}.image-only-detail .recipe-detail-nav{position:absolute;z-index:2;top:14px;left:14px;right:14px;margin:0;padding:10px 12px;border-radius:14px;background:#fffdf8e8;box-shadow:0 4px 18px #0004;backdrop-filter:blur(6px)}.image-only-detail .complete-recipe{width:min(100%,8.5in);height:auto;max-width:8.5in;margin:0 auto;border:0;border-radius:0;box-shadow:none;background:#201d1a}.image-only-detail .complete-recipe-page{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
@media(max-width:700px){.image-only-detail{min-height:calc(100vh - 52px);padding:0 0 16px}.image-only-detail .recipe-detail-nav{position:relative;top:auto;left:auto;right:auto;width:calc(100% - 16px);box-sizing:border-box;margin:8px auto;gap:8px;padding:8px}.image-only-detail .recipe-detail-nav>div{gap:6px}.image-only-detail .recipe-detail-nav button,.image-only-detail .recipe-detail-nav .button{padding:9px 12px}.image-only-detail .complete-recipe{height:auto}}
.recipe-book-summary{display:flex;align-items:center;gap:18px;margin:18px 0 22px;padding:15px 18px;border:1px solid #e4d9ca;border-radius:16px;background:#f4eee5}.recipe-book-summary div{display:flex;align-items:baseline;gap:7px;white-space:nowrap}.recipe-book-summary strong{color:#b56f59;font:700 28px/1 Georgia,serif}.recipe-book-summary span{color:#5f564e;font-weight:700}.recipe-book-summary p{margin:0;color:#776d64;font:15px/1.4 Georgia,serif}.recipe-filter small{display:inline-grid;min-width:19px;height:19px;margin-left:4px;padding:0 4px;place-items:center;border-radius:999px;background:#eee5d9;color:#6d6259;font-size:10px}.recipe-filter.active small,.recipe-filter:hover small{background:#ffffff2b;color:#fff}.recipe-actions{display:flex;flex-direction:column;gap:10px;align-items:flex-end}.add-category-form{display:flex;gap:8px;align-items:center}.add-category-form input{width:180px;margin:0;padding:10px 12px}.add-category-form button{width:auto;margin:0}.category-control{display:inline-flex;align-items:center}.category-control .recipe-filter{border-radius:999px 0 0 999px}.category-control .inline-delete{display:inline-flex}.category-control .inline-delete button{width:30px;height:36px;margin:0;padding:0;border:1px solid #d8ccbc;border-left:0;border-radius:0 999px 999px 0;background:#fffdf8;color:#9b4f43;font-size:20px;cursor:pointer}.recipe-card-manage{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid #eee4d7}.recipe-card-manage form{margin:0}.recipe-move-form{display:flex;align-items:center;gap:7px}.move-recipe{width:auto;margin:0;padding:7px 10px;border:1px solid #71806b;border-radius:8px;background:#71806b;color:#fff;font-weight:700;cursor:pointer}.recipe-card-manage label{font-size:13px;font-weight:700;color:#5f564e}.recipe-card-manage select{margin-left:5px;padding:7px;border:1px solid #d8ccbc;border-radius:8px;background:#fff}.delete-recipe{width:auto;margin:0;padding:8px 11px;border:1px solid #c58d82;border-radius:8px;background:#fff7f5;color:#9b4f43;font-weight:700;cursor:pointer}.edit-delete-form{margin:18px 0 0;padding-top:18px;border-top:1px solid #eaded0}.edit-delete-form .delete-recipe{padding:11px 16px}
@media(max-width:700px){.recipe-actions{align-items:stretch;width:100%}.add-category-form{flex-wrap:wrap}.add-category-form input{flex:1;min-width:150px}.recipe-card-manage{align-items:stretch;flex-direction:column}}
@media print{.image-only-detail{display:block;min-height:0;background:#fff}.image-only-detail .complete-recipe{height:10.5in;background:#fff}.printable-recipe.complete-recipe{width:8in;min-height:10.5in;padding:.25in}.complete-recipe-page{width:7.5in;height:10in;object-fit:contain}}

.recipe-kitchen-hero{width:100%;overflow:hidden;background:#e9ddc6;border-bottom:1px solid #c9b08e}.recipe-kitchen-hero img{display:block;width:100%;height:auto;margin:0 auto}.recipe-kitchen-hero-browse{display:none}.recipe-toolbar{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:8px}.recipe-toolbar .recipe-back{margin:0}.recipe-toolbar .recipe-actions{flex-direction:row;align-items:center}.recipe-category-prompt{min-height:310px;padding:34px 20px 55px;text-align:center;color:#263f39}.recipe-category-prompt .kitchen-tools{font-size:42px;letter-spacing:8px}.recipe-category-prompt h2{margin:18px 0 8px;font:700 28px/1.25 Georgia,serif}.recipe-category-prompt p{margin:0;color:#776d64;font:16px/1.5 Georgia,serif}.prompt-flourish{margin-top:18px;color:#a52222;font-size:24px}
@media(max-width:700px){.recipe-toolbar{align-items:flex-start;flex-direction:column}.recipe-toolbar .recipe-actions{align-items:stretch;flex-direction:column;width:100%}.recipe-kitchen-hero img{width:100%;height:auto;object-fit:contain}.recipe-category-prompt{min-height:240px}}

/* Mobile image-only recipe: keep controls clear of recipe artwork */
@media(max-width:700px){.image-only-detail .recipe-detail-nav{margin-bottom:14px}.image-only-detail .complete-recipe{width:calc(100% - 16px);margin:0 auto}.image-only-detail .complete-recipe-page{width:100%;height:auto}}

/* Enlarged recipe artwork viewer */
.recipe-artwork-enlarge{cursor:zoom-in}
.recipe-artwork-open{display:block;text-decoration:none}
.recipe-artwork-viewer{display:none;position:fixed;inset:0;z-index:10000;width:100vw;height:100vh;margin:0;padding:0;background:rgba(0,0,0,.88);overflow:auto}
.recipe-artwork-viewer:target{display:block}
.recipe-artwork-backdrop{position:fixed;inset:0;display:block}
.recipe-artwork-viewer-panel{position:relative;z-index:1;width:min(94vw,1000px);margin:12px auto;padding:52px 10px 10px;box-sizing:border-box}
.recipe-artwork-viewer-panel img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100vh - 76px);margin:0 auto;object-fit:contain}
.recipe-artwork-viewer .recipe-artwork-close{position:fixed;top:10px;right:14px;z-index:2;display:inline-block;padding:10px 16px;border-radius:999px;background:#fff;color:#342d28;text-decoration:none;font-weight:800}
@media(max-width:700px){.recipe-artwork-viewer-panel{width:100vw;margin:0;padding:56px 6px 6px}.recipe-artwork-viewer-panel img{max-height:calc(100vh - 66px)}}

.recipe-enlarge-hint{display:block;margin:-12px 0 18px;text-align:center;color:#71806b;font-size:14px;font-weight:700;text-decoration:none}

/* Family Recipes legacy landing artwork */
.recipe-landing-open{display:block;max-width:760px;margin:28px auto;cursor:zoom-in}
.recipe-landing-open img{display:block;width:100%;height:auto;object-fit:contain;border-radius:18px;box-shadow:0 12px 35px #0002}
@media(max-width:700px){.recipe-landing-open{width:100%;max-width:none;margin:0 auto}.recipe-landing-open img{border-radius:0}}

/* Image-only recipes: force the complete artwork onto one Letter sheet */
@media print {
  .image-only-detail {
    width: 8in !important;
    height: 10.5in !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  .image-only-detail .complete-recipe,
  .printable-recipe.complete-recipe {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 8in !important;
    height: 10.5in !important;
    min-height: 0 !important;
    max-height: 10.5in !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .image-only-detail .complete-recipe-page,
  .complete-recipe-page {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 8in !important;
    max-height: 10.5in !important;
    margin: auto !important;
    object-fit: contain !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}
