.ely-community{--community-navy:var(--ely-navy);--community-gold:var(--ely-gold);--community-cream:var(--ely-surface-soft);color:var(--community-navy)}
.ely-community-account .ely-community-tabs{align-items:center}
.ely-community-account .ely-community-tabs .ely-community-create{margin-left:auto;min-height:60px;min-width:240px;padding:18px 28px;font-size:1.1rem;text-align:center;text-decoration:none}
.ely-community-recipe-actions .ely-community-delete{background:transparent;color:var(--community-navy);border:1px solid var(--community-navy)}
@media(max-width:650px){.ely-community-account .ely-community-tabs .ely-community-create{width:100%;margin-left:0;min-width:0}.ely-community-recipe-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ely-community *{box-sizing:border-box}.ely-community [hidden]{display:none!important}.ely-community a,.ely-community button,.ely-community summary{touch-action:manipulation}
.ely-community :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--ely-focus);outline-offset:4px}
.ely-community button.ely-text-link{border:0;background:transparent;color:var(--community-navy);font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:4px;cursor:pointer;padding:10px 0}.ely-community button:disabled{opacity:.6;cursor:wait}
.ely-community-field-help{font-size:.8rem;font-weight:400;line-height:1.5}.ely-community-report{max-width:820px;margin:12px auto 0}.ely-community-report summary{display:flex;width:fit-content;margin-left:auto;align-items:center;gap:4px;list-style:none;border:0;border-radius:3px;padding:4px 0 4px 6px;font-size:.6875rem;font-weight:400;line-height:1.4;color:#964646;background:transparent;min-height:24px}.ely-community-report summary::-webkit-details-marker{display:none}.ely-community-report summary:hover{color:#a12626;text-decoration:underline;text-underline-offset:3px}.ely-community-report-icon{font-size:.75rem;color:inherit}.ely-community-report details[open]>summary{margin-bottom:12px}
.ely-community-hero{display:flex;align-items:center;justify-content:space-between;gap:40px;padding:48px;background:var(--community-cream);border:1px solid #e9dfce;border-radius:24px;margin:16px 0 32px}
.ely-community-hero h1{font-size:clamp(2.2rem,4.5vw,4rem);line-height:1.08;margin:12px 0 20px;letter-spacing:-.035em}.ely-community-hero p{max-width:610px;font-size:1.08rem;line-height:1.7}.ely-community-hero>.ely-button{flex-shrink:0}
.ely-community-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:end;padding:24px;border:1px solid #e4e1db;border-radius:16px;margin-bottom:24px}.ely-community-search{grid-column:span 2}
.ely-community label{display:flex;flex-direction:column;gap:7px;font-weight:600;font-size:.92rem}.ely-community :is(input,select,textarea){font:inherit;color:var(--community-navy);background:white;width:100%;min-width:0;border:1px solid var(--ely-control-border);border-radius:var(--ely-radius-control);padding:12px;line-height:1.4}.ely-community textarea{resize:vertical}.ely-community [aria-invalid=true]{border:2px solid #b13030}
.ely-community-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.ely-community-card{background:var(--ely-surface);border:1px solid var(--ely-border);border-radius:var(--ely-radius-card);overflow:hidden;display:flex;flex-direction:column;min-width:0}.ely-community-card-photo{display:block;aspect-ratio:4/3;overflow:hidden;background:var(--community-cream)}.ely-community-card-photo img{width:100%;height:100%;object-fit:cover;transition:transform .2s}.ely-community-card-photo:hover img{transform:scale(1.03)}.ely-community-card-body{padding:24px;flex:1}.ely-community-card h2{font-size:1.45rem;line-height:1.25;margin:0 0 12px;overflow-wrap:anywhere}.ely-community-card h2 a{text-decoration:none;color:inherit}
.ely-community-byline{font-size:.9rem;line-height:1.8;margin:8px 0}.ely-community-badge{display:inline-block;font-size:.72rem;letter-spacing:.04em;border-radius:20px;padding:3px 9px;background:#f0e2c6;color:#614514;font-weight:700}.ely-community-stats{display:flex;flex-wrap:wrap;gap:5px;font-size:.85rem;margin:12px 0 18px}.ely-community-stats>span:first-child{color:#79581e;font-weight:700}.ely-community-product{border-top:1px solid #e9e2d7;padding-top:14px;font-size:.85rem;display:grid;gap:6px}.ely-community-pagination{display:flex;justify-content:center;align-items:center;gap:24px;margin:36px 0}.ely-community-placeholder{display:grid;place-items:center;min-height:160px;font-family:serif;font-size:3rem;background:var(--community-cream);color:var(--community-gold)}
.ely-community-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;margin:28px 0 56px;align-items:start}.ely-community-detail-photo{border-radius:20px;overflow:hidden;background:var(--community-cream)}.ely-community-detail-photo img{display:block;width:100%;height:auto}.ely-community-detail h1{font-size:clamp(2rem,4vw,3.3rem);line-height:1.13;margin:10px 0 18px}.ely-community-detail h2{font-size:1.3rem;margin-top:24px}.ely-community-detail li{margin-bottom:9px}.ely-community-detail .ely-recipe-steps{line-height:1.8;overflow-wrap:anywhere}.ely-community-actions{display:flex;gap:14px;flex-wrap:wrap;align-items:start;margin:18px 0}.ely-community-actions form{margin:0}.ely-community-actions .ely-community-message:empty{display:none}
.ely-community-form{display:grid;gap:18px;margin:20px 0;max-width:780px}.ely-community-form p{margin:0;line-height:1.6}.ely-community-form button{justify-self:start}.ely-community-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ely-community-message:not(:empty){padding:14px;border-left:4px solid #417c55;background:#f1f7f0;overflow-wrap:anywhere}.ely-community-message.is-error{border-color:#a52a2a;background:#fff1ef;color:#832020}.ely-community-form progress{width:100%;height:16px}.ely-community-cover-preview img{max-width:280px;max-height:230px;object-fit:contain;border-radius:10px}.ely-community-preview{padding:24px;background:var(--community-cream);border:1px solid #c7b38c;border-radius:14px}.ely-community-preview p{white-space:pre-wrap}.ely-community-preview img{max-width:100%;max-height:400px;object-fit:contain}.ely-community-notice{padding:16px;background:var(--community-cream);border-left:4px solid var(--community-gold)}
.ely-community-discussion{max-width:820px;margin:0 auto}.ely-community-review{padding:24px 0;border-bottom:1px solid #e4e1db;overflow-wrap:anywhere}.ely-community-review h3{font-size:1.05rem}.ely-community-review h2{font-size:1.3rem}.ely-community-review small{color:#59616a}.ely-community-reply{padding:18px 22px;margin-top:18px;background:var(--community-cream);border-radius:10px}.ely-community summary{cursor:pointer;font-weight:600;padding:14px 0}.ely-community-tabs{display:flex;flex-wrap:wrap;gap:10px 20px;padding:18px 0 24px;margin-bottom:22px;border-bottom:1px solid #e4e1db}.ely-community-tabs a{font-weight:600}.ely-community-account .ely-community-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ely-community-account>.ely-community-heading{font-size:2.2rem}.ely-community-profile{justify-content:start}.ely-community-avatar{width:110px;height:110px;border-radius:50%;overflow:hidden;flex-shrink:0;display:grid;place-items:center;background:#e8d7b6;font-size:3rem}.ely-community-avatar img{width:100%;height:100%;object-fit:cover}
@media(max-width:1000px){.ely-community-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ely-community-hero{padding:30px;gap:24px;flex-wrap:wrap}.ely-community-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.ely-community-detail{gap:28px}}
@media(max-width:650px){.ely-community-grid,.ely-community-account .ely-community-grid,.ely-community-detail,.ely-community-fields{grid-template-columns:1fr}.ely-community-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:18px;gap:14px}.ely-community-search{grid-column:1/-1}.ely-community-hero{padding:24px;border-radius:16px}.ely-community-hero>.ely-button{width:100%;text-align:center;white-space:normal}.ely-community-detail{margin-top:24px}.ely-community-card-body{padding:20px}.ely-community-pagination{gap:14px;flex-wrap:wrap}.ely-community-actions{display:grid}.ely-community-actions .ely-button{width:100%}.ely-community :is(input,select,textarea){font-size:16px}.ely-community-profile{align-items:start}.ely-community-avatar{width:80px;height:80px}}
@media(prefers-reduced-motion:reduce){.ely-community *{transition:none!important}}
@media(max-width:650px){.ely-community-filters{grid-template-columns:minmax(0,1fr)}}
.ely-community-discussion-heading{margin-bottom:22px}.ely-community-discussion-heading h2{font-size:clamp(1.8rem,3vw,2.4rem);margin:10px 0}.ely-community-discussion-heading p{max-width:650px;line-height:1.7;color:#4d5c6b}.ely-community-comment-composer>summary{display:inline-flex;align-items:center;gap:9px;list-style:none;border:1px solid #142c45;border-radius:8px;padding:11px 16px;min-height:44px;color:#142c45;background:#fbf7ef;font-size:.92rem}.ely-community-comment-composer>summary::-webkit-details-marker{display:none}.ely-community-comment-composer>summary:hover{background:#f0e5d2}.ely-community-comment-composer[open]{padding-bottom:20px}.ely-community-comment-composer[open]>summary{margin-bottom:8px}.ely-community-comment-login{padding:24px;background:#fbf7ef;border-radius:12px;margin-top:12px}.ely-community-comment-login h3{margin-top:0}.ely-community-comment-hint{font-size:.85rem;color:#4d5c6b}.ely-community-comments{margin-top:30px}.ely-community-comments>h3{display:flex;gap:12px;align-items:center;font-size:1.15rem;margin:0 0 20px}.ely-community-comment-count{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 7px;background:#f0e5d2;color:#614514;border-radius:50px;font-size:.8rem}.ely-community-comments-empty{padding:26px;border:1px dashed #d9c9ad;border-radius:12px;background:#fbf7ef}.ely-community-comments-empty strong{font-size:1.05rem}.ely-community-comments-empty p{line-height:1.7;margin:10px 0 0;color:#4d5c6b}.ely-community-comments .ely-community-review{padding:22px;border:1px solid #e4e1db;border-radius:12px;margin:16px 0;background:white}.ely-community-review-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ely-community-review-heading h4{font-size:1rem;margin:0 0 4px}.ely-community-review-heading h4 a{color:#142c45;text-decoration:none}.ely-community-review-avatar{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:50%;background:#f0e5d2;color:#614514;font-weight:700}.ely-community-review-stars{color:#79581e;letter-spacing:2px;margin-left:auto;white-space:nowrap}.ely-community-review-body{line-height:1.8;margin:18px 0 0;overflow-wrap:anywhere}.ely-community-review-heading>div{min-width:0;overflow-wrap:anywhere;flex:1}.ely-community-review-heading small{font-size:.76rem}
@media(max-width:480px){.ely-community-comments .ely-community-review{padding:18px}.ely-community-review-stars{width:100%;margin-left:54px}.ely-community-comment-composer>summary{max-width:100%}}

/* Numbered recipe navigation. */
.ely-community-pagination{gap:10px;flex-wrap:wrap;margin:40px 0}
.ely-community-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 6px;box-sizing:border-box;color:#301c46;font-size:16px;font-weight:400;line-height:1;text-underline-offset:3px;border-radius:50%}
.ely-community-pagination .page-numbers.current{background:#301c46;color:#fff;text-decoration:none}
.ely-community-pagination .page-numbers.dots{text-decoration:none;min-width:24px;padding:0}
.ely-community-pagination .page-numbers.prev,.ely-community-pagination .page-numbers.next{border:1px solid #e7e3de;text-decoration:none;margin:0 8px;font-size:24px}
.ely-community-pagination a:hover{background:#eee8e0}
.ely-community-pagination a:focus-visible{outline:2px solid #301c46;outline-offset:4px}
@media(max-width:400px){.ely-community-pagination{gap:3px}.ely-community-pagination .page-numbers{min-width:34px;height:34px}.ely-community-pagination .page-numbers.prev,.ely-community-pagination .page-numbers.next{margin:0 2px}}

/* Recipe detail: centered composition and comfortable reading measure. */
.single-ely_recipe .ely-community.ely-section{padding-top:24px}
.ely-recipe-back{display:flex;align-items:center;gap:10px;width:fit-content;max-width:100%;min-height:44px;margin:0 auto 20px max(0px,calc((100% - 1080px)/2));padding:10px 16px;border:1px solid #e0d4c0;border-radius:12px;background:var(--community-cream);color:var(--community-navy);font-size:.9rem;font-weight:600;line-height:1.4;text-decoration:none;transition:background .2s,border-color .2s}
.ely-recipe-back svg{flex-shrink:0}
.ely-recipe-back:hover{background:#f0e5d2;border-color:var(--community-gold);color:var(--community-navy)}
.ely-community-detail{max-width:1080px;margin:0 auto 48px;grid-template-columns:minmax(240px,.85fr) minmax(0,1.45fr);gap:24px 36px;align-items:start}
.ely-community-detail-photo{max-width:300px;width:100%;justify-self:start;border:1px solid #eee5d6}
.ely-community-detail-photo img{aspect-ratio:1/1;object-fit:contain}
.ely-community-detail>div:nth-child(2){min-width:0;padding-top:12px}
.ely-community-detail h1{font-size:clamp(2rem,3.5vw,3rem);text-wrap:balance}
.ely-recipe-ingredients-panel,.ely-recipe-preparation-panel{align-self:start;min-width:0;padding:28px;border-radius:20px}
.ely-recipe-ingredients-panel{background:var(--community-cream);border:1px solid #eee5d6}
.ely-recipe-preparation-panel{background:#fff;border:1px solid #eee5d6}
.ely-community-detail :is(.ely-recipe-ingredients-panel,.ely-recipe-preparation-panel)>h2{font-size:1.6rem;margin:0 0 24px;line-height:1.25}
.ely-community-detail .ely-ingredients{list-style:none;padding:0;margin:0;font-size:1rem;line-height:1.65}
.ely-community-detail .ely-ingredients li{position:relative;padding:12px 0 12px 20px;margin:0;border-bottom:1px solid #e9dfcf;overflow-wrap:anywhere}
.ely-community-detail .ely-ingredients li:last-child{border-bottom:0}
.ely-community-detail .ely-ingredients li:before{content:'';position:absolute;left:0;top:22px;width:6px;height:6px;border-radius:50%;background:var(--community-gold)}
.ely-community-detail .ely-recipe-steps{font-size:1rem;line-height:1.75}
.ely-recipe-steps>p{margin:0 0 14px}
.ely-recipe-steps ol{list-style:none;counter-reset:ely-step;padding:0;margin:24px 0 0}
.ely-community-detail .ely-recipe-steps ol>li{counter-increment:ely-step;position:relative;padding:0 0 20px 46px;margin:0 0 20px;border-bottom:1px solid #eee5d6}
.ely-recipe-steps ol>li:before{content:counter(ely-step,decimal-leading-zero);position:absolute;left:0;top:0;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--community-cream);color:var(--community-gold);font-size:.8rem;font-weight:700;font-variant-numeric:tabular-nums}
.ely-community-detail .ely-recipe-steps ol>li:last-child{margin-bottom:0;padding-bottom:0;border:0}
.ely-recipe-preparation-panel .ely-community-actions{margin:26px 0 0;padding-top:22px;border-top:1px solid #eee5d6}
@media(max-width:800px){.ely-recipe-back{margin-left:max(0px,calc((100% - 640px)/2))}.ely-community-detail{grid-template-columns:minmax(0,1fr);max-width:640px;gap:20px}.ely-community-detail>div:nth-child(2){text-align:center;padding-top:0}.ely-community-detail>div:nth-child(2) .ely-community-byline{justify-content:center}.ely-community-detail-photo{max-width:280px;justify-self:center}.ely-recipe-ingredients-panel,.ely-recipe-preparation-panel{padding:24px}}

/* Editorial gallery, keeping the native GET form and community contracts. */
.ely-community-hero { padding:32px; border-radius:var(--ely-radius-panel); border-color:var(--ely-border); gap:24px; }
.ely-community-hero h1 { font-size:var(--ely-title-xl); line-height:var(--ely-line-heading); }
.ely-community-filters { border-color:var(--ely-border); border-radius:var(--ely-radius-card); grid-template-columns:minmax(0,1fr) auto; padding:20px; }
.ely-community-filters .ely-community-search { grid-column:1/-1; }
.ely-community-filters > .ely-recipe-filter-panel { grid-column:1/-1; margin:0; border-radius:var(--ely-radius-control); }
.ely-recipe-filter-fields { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; padding:20px; }
.ely-community-filters > .ely-button { justify-self:start; }
.ely-community-filters > .ely-arrow-link { justify-self:end; }
.ely-community-card { border-radius:var(--ely-radius-card); }
.ely-community-card-body { display:flex; flex-direction:column; padding:20px; }
.ely-community-card h2 { font-size:1.5rem; line-height:1.25; margin-bottom:8px; }
.ely-community-card .ely-community-byline { font-size:var(--ely-text-sm); color:var(--ely-muted); margin:0 0 8px; }
.ely-community-card .ely-community-stats { color:var(--ely-muted); font-size:var(--ely-text-sm); gap:4px 8px; margin:0 0 16px; }
.ely-community-card .ely-community-product { margin:16px 0 0; padding-top:12px; color:var(--ely-muted); }
.ely-community-card .ely-community-product .ely-arrow-link { background:transparent; border:0; justify-content:flex-start; padding:8px 0; font-size:var(--ely-text-sm); }
.ely-community-pagination .page-numbers { min-width:44px; height:44px; border-radius:var(--ely-radius-control); color:var(--ely-navy); }
.ely-community-pagination .page-numbers.current { background:var(--ely-navy); color:var(--ely-white); }
.ely-community-pagination a:focus-visible { outline:3px solid var(--ely-focus); }
.ely-community .ely-community-report summary { min-height:44px; font-size:var(--ely-text-sm); }
.ely-recipe-editorial { grid-template-areas:'photo intro' 'photo meta' 'ingredients prep'; grid-template-rows:auto auto 1fr; row-gap:16px; }
.ely-recipe-editorial > .ely-recipe-intro { grid-area:intro; align-self:end; }
.ely-recipe-editorial > .ely-community-detail-photo { grid-area:photo; align-self:start; padding-top:0; }
.ely-recipe-editorial > .ely-recipe-metadata { grid-area:meta; }
.ely-recipe-editorial > .ely-recipe-ingredients-panel { grid-area:ingredients; }
.ely-recipe-editorial > .ely-recipe-preparation-panel { grid-area:prep; }
.ely-recipe-editorial .ely-recipe-intro h1 { margin-bottom:0; }
.ely-recipe-editorial .ely-recipe-ingredients-panel { border:0; border-radius:var(--ely-radius-card); padding:24px; }
.ely-recipe-editorial .ely-recipe-preparation-panel { border:0; border-radius:0; padding:0; }
.ely-recipe-editorial .ely-recipe-steps ol > li { padding-bottom:16px; margin-bottom:16px; border-bottom:0; }
.ely-recipe-editorial .ely-recipe-steps ol > li:before { color:var(--ely-accent-text); }
@media(max-width:800px) {
 .ely-recipe-filter-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .ely-recipe-editorial { grid-template-columns:minmax(0,1fr); grid-template-areas:'intro' 'photo' 'meta' 'ingredients' 'prep'; grid-template-rows:none; gap:24px; }
 .ely-recipe-editorial > .ely-recipe-intro,.ely-recipe-editorial > .ely-recipe-metadata { text-align:left; }
 .ely-recipe-editorial > .ely-community-detail-photo { max-width:300px; }
}
@media(max-width:600px) {
 .ely-community-hero { padding:24px 20px; }
 .ely-community-filters { grid-template-columns:minmax(0,1fr); padding:16px; }
 .ely-community-filters > .ely-button,.ely-community-filters > .ely-arrow-link { width:100%; justify-self:stretch; }
 .ely-recipe-filter-fields { grid-template-columns:minmax(0,1fr); padding:16px; }
 .ely-community-pagination { gap:4px; }
 .ely-community-pagination .page-numbers.prev,.ely-community-pagination .page-numbers.next { margin:0; }
}
@media(max-width:400px){.ely-recipe-ingredients-panel,.ely-recipe-preparation-panel{padding:20px}.ely-community-detail .ely-recipe-steps ol>li{padding-left:40px}}

/* Independent columns keep preparation directly below the introduction. */
.ely-community-detail{align-items:start;gap:32px;margin-top:20px}
.ely-recipe-sidebar,.ely-recipe-main{display:grid;gap:24px;min-width:0}
.ely-community-detail-photo{max-width:280px}
.ely-community-detail .ely-recipe-intro{text-align:left;padding:0}
.ely-community-detail h1{margin:8px 0 14px}
.ely-recipe-ingredients-panel,.ely-recipe-preparation-panel{padding:24px}
.ely-community-detail .ely-recipe-steps ol>li{padding-bottom:14px;margin-bottom:14px}
@media(max-width:800px){.ely-recipe-sidebar,.ely-recipe-main{display:contents}.ely-community-detail-photo{grid-row:2;max-width:240px}.ely-recipe-intro{grid-row:1}.ely-recipe-ingredients-panel{grid-row:3}.ely-recipe-preparation-panel{grid-row:4}.ely-community-detail{gap:20px}.ely-community-detail .ely-recipe-intro{text-align:center}}

/* Compact preparation: wider reading area, inline metadata, shorter step spacing. */
@media(min-width:801px){.ely-community-detail{max-width:1160px;grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:32px}}
.ely-community-detail .ely-recipe-preparation-panel{padding:22px 24px}
.ely-community-detail .ely-recipe-preparation-panel>h2{margin-bottom:14px}
.ely-community-detail .ely-recipe-steps{display:flex;flex-wrap:wrap;gap:8px 20px;line-height:1.55;text-align:left}
.ely-recipe-steps>p{margin:0;font-size:.9rem}
.ely-recipe-steps>ol,.ely-recipe-steps>ul,.ely-recipe-steps>div{flex-basis:100%;min-width:0}
.ely-recipe-steps ol{margin:8px 0 0}
.ely-community-detail .ely-recipe-steps ol>li{padding:0 0 0 34px;margin:0 0 12px;border:0}
.ely-recipe-steps ol>li:before{width:24px;height:24px;font-size:.72rem}
.ely-community-detail .ely-recipe-steps li p{margin:0}
.ely-recipe-preparation-panel .ely-community-actions{margin-top:16px;padding-top:14px}
@media(max-width:400px){.ely-community-detail .ely-recipe-preparation-panel{padding:18px}.ely-community-detail .ely-recipe-steps ol>li{padding-left:32px}}

/* Align the recipe heading with the back link and raise preparation. */
@media(min-width:801px){.ely-community-detail>.ely-recipe-main{margin-top:-64px;padding-top:0;gap:14px}}

/* Bring the whole recipe closer to the site header. */
.single-ely_recipe .ely-community.ely-section{padding-top:8px}
.single-ely_recipe .ely-recipe-back{margin-bottom:8px}
.single-ely_recipe .ely-community-detail{margin-top:8px}
@media(min-width:801px){.ely-community-detail>.ely-recipe-main{margin-top:-52px}}

/* Compact introduction on the recipe listing. */
.ely-community-listing.ely-section{padding-top:24px}
.ely-community-listing .ely-community-hero:not(.ely-community-profile){padding:26px 30px;gap:28px;margin:0 0 20px;border-radius:20px}
.ely-community-listing .ely-community-hero:not(.ely-community-profile)>div{flex:1;min-width:0}
.ely-community-listing .ely-community-hero:not(.ely-community-profile) h1{font-size:clamp(2rem,3vw,3rem);line-height:1.12;margin:8px 0 12px}
.ely-community-listing .ely-community-hero:not(.ely-community-profile) p{max-width:740px;font-size:1rem;line-height:1.55;margin:0}
@media(max-width:1000px){.ely-community-listing .ely-community-hero:not(.ely-community-profile){gap:18px}.ely-community-listing .ely-community-hero:not(.ely-community-profile)>div{flex-basis:100%}}
@media(max-width:650px){.ely-community-listing.ely-section{padding-top:16px}.ely-community-listing .ely-community-hero:not(.ely-community-profile){padding:22px 20px;border-radius:16px}}

/* Product used in the recipe, with the existing cart action. */
.ely-recipe-purchase{grid-area:purchase;display:grid;gap:12px;min-width:0;padding:24px;background:var(--community-cream);border:1px solid var(--ely-border);border-radius:var(--ely-radius-card);text-align:center}
.ely-recipe-purchase-image img{display:block;width:100%;height:150px;object-fit:contain}
.ely-recipe-purchase-caption{font-size:.8rem;color:var(--ely-muted)}
.ely-community-detail .ely-recipe-purchase h2{font-size:1.4rem;line-height:1.25;margin:0;overflow-wrap:anywhere}
.ely-recipe-purchase-price{font-weight:600;color:var(--ely-navy)}
.ely-recipe-purchase-button{display:flex;align-items:center;justify-content:center;min-height:64px;width:100%;padding:16px;white-space:normal;line-height:1.4;text-align:center}
.ely-recipe-purchase-button:focus-visible{outline:3px solid var(--ely-focus);outline-offset:4px}
@media(min-width:1100px){
 .ely-recipe-editorial:has(>.ely-recipe-purchase){max-width:none;grid-template-columns:minmax(200px,260px) minmax(0,1fr) 280px;grid-template-areas:'photo intro purchase' 'photo meta purchase' 'ingredients prep prep';column-gap:28px}
}
@media(min-width:801px) and (max-width:1099px){
 .ely-recipe-editorial:has(>.ely-recipe-purchase){grid-template-areas:'photo intro' 'photo meta' 'purchase purchase' 'ingredients prep'}
 .ely-recipe-purchase{grid-template-columns:140px minmax(0,1fr);align-items:center;text-align:left}
 .ely-recipe-purchase-image{grid-column:1;grid-row:1 / span 5}
 .ely-recipe-purchase>:not(.ely-recipe-purchase-image){grid-column:2}
}
@media(max-width:800px){
 .ely-recipe-editorial:has(>.ely-recipe-purchase){grid-template-areas:'intro' 'photo' 'meta' 'purchase' 'ingredients' 'prep'}
 .ely-recipe-editorial>.ely-recipe-purchase{grid-row:auto}
}

/* ELY-045: discovery listing; shared account and recipe detail remain independent. */
.ely-community-listing{background:var(--community-cream)}
.ely-community-listing .ely-community-hero:not(.ely-community-profile){background:var(--community-navy);color:#fff;border:0;border-radius:18px 18px 0 0;margin-bottom:0;padding:28px 30px 20px;flex-wrap:wrap;gap:18px}
.ely-community-listing .ely-community-hero:not(.ely-community-profile) h1{color:#fff;font-size:clamp(1.8rem,3vw,2.75rem);margin:8px 0 12px}
.ely-community-listing .ely-community-hero:not(.ely-community-profile) .ely-section-label{color:#e1c68e;letter-spacing:.13em}
.ely-community-listing .ely-community-hero:not(.ely-community-profile) p{color:#eceff3;max-width:760px}
.ely-community-listing .ely-discovery-actions{display:flex;align-items:center;gap:14px 24px;flex-wrap:wrap;flex:0 1 auto!important}
.ely-community-listing .ely-discovery-actions>a{color:#fff;min-height:44px;display:inline-flex;align-items:center;gap:10px;font-size:.875rem}
.ely-community-listing .ely-discovery-actions>.ely-button{background:#e1c68e;color:var(--community-navy);border:1px solid #e1c68e;padding:10px 18px}
.ely-community-listing .ely-community-filters{background:var(--community-navy);color:#fff;margin:0;border:0;border-radius:0 0 18px 18px;padding:0 30px 24px;gap:12px;grid-template-columns:minmax(0,1fr) auto}
.ely-community-listing .ely-community-search{position:relative;margin:0;--ely-control-padding:14px 16px 14px 44px}
.ely-community-listing .ely-community-search input{padding:14px 16px 14px 44px;background:#fff;color:var(--community-navy);border:1px solid #fff;min-height:50px;border-radius:9px;width:100%}
.ely-community-listing .ely-community-search input::placeholder{color:#586475;opacity:1}
.ely-community-listing .ely-discovery-search-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);font-size:26px;color:#586475;pointer-events:none}
.ely-community-listing .ely-recipe-filter-panel{background:transparent;border:1px solid #687487;color:inherit}
.ely-community-listing .ely-recipe-filter-panel summary{padding:10px 14px;min-height:44px}
.ely-community-listing .ely-recipe-filter-fields{padding:0 14px 14px;gap:12px;align-items:end}
.ely-community-listing .ely-recipe-filter-fields label{color:#fff;font-size:.8rem;min-width:0}
.ely-community-listing .ely-recipe-filter-fields select{width:100%;min-width:0;min-height:44px;background:#fff;color:var(--community-navy)}
.ely-community-listing .ely-control-help{color:#fff}
.ely-community-listing .ely-community-filters>.ely-button{background:#fff;color:var(--community-navy);min-height:44px;padding:10px 18px}
.ely-community-listing .ely-community-filters>.ely-arrow-link{color:#fff;min-height:44px}
.ely-community-listing .ely-discovery-shortcuts,.ely-community-listing .ely-discovery-active{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.ely-community-listing .ely-discovery-shortcuts a,.ely-community-listing .ely-discovery-active a{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:8px 16px;border:1px solid var(--ely-border);border-radius:24px;color:var(--community-navy);font-size:.8rem;text-decoration:none;background:var(--ely-surface)}
.ely-community-listing .ely-discovery-active:empty{display:none}
.ely-community-listing .ely-discovery-active a{border-color:var(--community-navy)}
.ely-community-listing .ely-discovery-heading{margin:26px 0 18px}
.ely-community-listing .ely-discovery-heading h2{font-size:1.5rem;margin:0 0 6px}
.ely-community-listing .ely-results-count{font-size:.875rem;margin:0;color:var(--ely-muted)}
.ely-community-listing .ely-community-grid{gap:28px 22px;grid-template-columns:repeat(3,minmax(0,1fr))}
.ely-community-listing .ely-community-card{background:transparent;border:0;border-radius:0}
.ely-community-listing .ely-community-card-photo{aspect-ratio:4/5;border-radius:12px;border:1px solid var(--ely-border)}
.ely-community-listing .ely-community-card-photo img{display:block}
.ely-community-listing .ely-community-card-photo:hover img{transform:none}
.ely-community-listing .ely-community-card-photo:has(.ely-community-placeholder),.ely-community-listing .ely-community-card-photo:empty{aspect-ratio:auto;min-height:150px}
.ely-community-listing .ely-community-placeholder{min-height:150px;height:100%}
.ely-community-listing .ely-community-card-body{padding:16px 0 0}
.ely-community-listing .ely-community-card h2{font-size:1.35rem}
.ely-community-listing .ely-community-card .ely-community-product{margin-top:auto;padding-top:14px;font-size:.8rem}
.ely-community-listing .ely-community-card-body>.ely-arrow-link{min-height:44px;align-self:start}
.ely-community-listing .ely-community-pagination{flex-wrap:wrap;gap:8px;margin-top:32px}
@media(max-width:1000px){.ely-community-listing .ely-community-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.ely-community-listing .ely-recipe-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.ely-community-listing .ely-community-hero:not(.ely-community-profile){padding:24px 20px 18px}.ely-community-listing .ely-community-filters{padding:0 20px 20px}.ely-community-listing .ely-community-filters>.ely-button,.ely-community-listing .ely-community-filters>.ely-arrow-link{width:auto}.ely-community-listing .ely-community-grid{gap:24px 16px}}
@media(max-width:540px){.ely-community-listing .ely-community-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ely-community-listing .ely-recipe-filter-fields{grid-template-columns:minmax(0,1fr)}.ely-community-listing .ely-discovery-actions{gap:8px}.ely-community-listing .ely-community-card-photo{aspect-ratio:1/1}.ely-community-listing .ely-discovery-actions>a{width:100%;justify-content:center}}
.ely-community-listing .ely-discovery-type{margin:0 0 8px;font-size:.75rem;letter-spacing:.04em;color:var(--ely-muted)}
.ely-community-listing .ely-community-card-photo:has(img[src*="recipe-cover.svg"]){aspect-ratio:auto;height:180px}
.ely-community-listing .ely-community-card-photo img[src*="recipe-cover.svg"]{object-fit:contain;padding:18px}
.ely-community-listing .ely-community-filters:has(input[name="busca"]:focus-visible){outline-offset:4px}
/* Keep search and clear action legible alongside shared control styles. */
.ely-community-listing .ely-community-search .screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ely-community-listing .ely-community-search input{--ely-control-padding:14px 16px 14px 44px}
.ely-community-listing .ely-community-filters>.ely-arrow-link{background:transparent;border:0;color:#fff}

/* ELY-048: photograph only on the public discovery hero. */
.ely-community-listing .ely-community-hero.ely-recipes-photo-hero{position:relative;isolation:isolate;display:flex;min-height:340px;padding:32px 40px;overflow:hidden;border-radius:16px;margin-bottom:20px;background:#f4e5ce;color:var(--community-navy)}
.ely-recipes-photo-hero .ely-recipes-hero-photo{position:absolute;inset:0;z-index:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center 22%;pointer-events:none}
.ely-community-listing .ely-community-hero.ely-recipes-photo-hero>.ely-recipes-hero-copy{position:relative;z-index:1;flex:0 1 46%;min-width:0}
.ely-community-listing .ely-community-hero.ely-recipes-photo-hero h1{color:var(--community-navy);font-size:clamp(2rem,3.2vw,2.75rem);line-height:1.12;margin:10px 0 14px;text-wrap:balance}
.ely-community-listing .ely-community-hero.ely-recipes-photo-hero .ely-section-label{color:#76511e;font-size:.6875rem;letter-spacing:.13em}
.ely-community-listing .ely-community-hero.ely-recipes-photo-hero p{color:var(--community-navy);font-size:.9375rem;line-height:1.6;max-width:440px}
.ely-community-listing .ely-recipes-photo-hero .ely-discovery-actions{margin-top:20px;gap:4px 18px}
.ely-community-listing .ely-recipes-photo-hero .ely-discovery-actions>a{color:var(--community-navy);font-size:.8125rem}
.ely-community-listing .ely-recipes-photo-hero .ely-discovery-actions>.ely-button{background:var(--community-navy);border-color:var(--community-navy);color:#fff;white-space:normal;text-align:center;justify-content:center}
.ely-community-listing .ely-recipes-photo-hero .ely-discovery-actions>.ely-button:hover{background:#243e59}
.ely-community-listing .ely-recipes-photo-hero+.ely-community-filters{border-radius:16px;padding-top:20px}
@media(min-width:768px) and (max-width:1000px){.ely-community-listing .ely-community-hero.ely-recipes-photo-hero{padding:26px;min-height:320px}.ely-community-listing .ely-community-hero.ely-recipes-photo-hero>.ely-recipes-hero-copy{flex-basis:49%}.ely-community-listing .ely-community-hero.ely-recipes-photo-hero h1{font-size:2rem}}
@media(max-width:767px){.ely-community-listing .ely-community-hero.ely-recipes-photo-hero{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;min-height:0;background:#f4e5ce}.ely-community-listing .ely-community-hero.ely-recipes-photo-hero>.ely-recipes-hero-copy{flex:0 1 auto;order:-1;padding:26px 24px 20px}.ely-recipes-photo-hero .ely-recipes-hero-photo{position:static;z-index:auto;height:auto;aspect-ratio:1672/941;object-fit:contain}.ely-community-listing .ely-community-hero.ely-recipes-photo-hero h1{font-size:clamp(1.75rem,5vw,2.25rem)}.ely-community-listing .ely-recipes-photo-hero .ely-discovery-actions{margin-top:16px}.ely-community-listing .ely-recipes-photo-hero .ely-discovery-actions>a{width:auto}.ely-community-listing .ely-recipes-photo-hero .ely-discovery-actions>.ely-button{width:100%}}

/* Compact recipe cards retain two readable columns on phones. */
@media(max-width:540px){
 .ely-community-grid,.ely-community-listing .ely-community-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}
 .ely-community-card-body{padding:12px 8px}
 .ely-community-listing .ely-community-card-body{padding:12px 0 0}
 .ely-community-card h2,.ely-community-listing .ely-community-card h2{font-size:1rem;line-height:1.3;margin-bottom:8px}
 .ely-community-card .ely-community-byline,.ely-community-card .ely-community-stats{font-size:.75rem;line-height:1.5;gap:4px}
 .ely-community-listing .ely-community-card .ely-community-product{font-size:.75rem;padding-top:10px}
 .ely-community-card-body>.ely-arrow-link{font-size:.8rem;line-height:1.4}
}

/* Overlay the mobile community introduction on the full hero photo. */
@media(max-width:767px){
 .ely-community-listing .ely-community-hero.ely-recipes-photo-hero{padding:26px 24px 64px;min-height:420px}
 .ely-recipes-photo-hero .ely-recipes-hero-photo{position:absolute;inset:0;z-index:0;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:72% center}
 .ely-community-listing .ely-community-hero.ely-recipes-photo-hero::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(to bottom,rgba(244,229,206,.88) 0%,rgba(244,229,206,.72) 45%,rgba(244,229,206,.24) 75%,rgba(244,229,206,0) 100%)}
 .ely-community-listing .ely-community-hero.ely-recipes-photo-hero>.ely-recipes-hero-copy{z-index:2;padding:0}
}
.ely-recipe-versions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.ely-recipe-version{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 12px;border:1px solid #cbbca6;border-radius:8px;color:#07182a;background:#fffaf1;font-size:.8125rem;text-decoration:none}
.ely-recipe-version[aria-current="page"]{background:#07182a;color:#fff}
.ely-recipe-alternate{margin:24px 0;padding:20px;border:1px solid #cbbca6;border-radius:12px}
.ely-recipe-alternate label{display:block;margin:12px 0}

/* Immediate feedback while opening a recipe. */
body .ely-community-card-body > .ely-arrow-link:active,
body .ely-community-card-body > .ely-arrow-link.is-opening-recipe {
  background: #1764c0;
  border-color: #1764c0;
  color: #fff;
  transition: none;
}
