/* Recipe card (uses the theme tokens when available, with neutral fallbacks). */
.jmnd-recipe-card{--rc-accent:var(--jm-accent,#8E3B46);--rc-text:var(--jm-text,#2A2220);--rc-muted:var(--jm-muted,#6B5E57);--rc-border:var(--jm-border,#E7DDD3);--rc-surface:var(--jm-surface,#fff);--rc-sand:var(--jm-sand,#F3ECE4);--rc-ok:#2f7d4f;--rc-ok-soft:#e6f4ea;--rc-radius:var(--jm-radius,14px);margin:2.5rem 0;padding:1.5rem;border:1px solid var(--rc-border);border-radius:var(--rc-radius);background:var(--rc-surface)}
@media (min-width:768px){.jmnd-recipe-card{padding:2rem}}
.jmnd-recipe-card__title{margin:0 0 1rem;font-size:1.75rem}
.jmnd-recipe-card__intro{margin:-.25rem 0 1.5rem;font-size:1.0625rem;line-height:1.65;color:var(--rc-text)}
.jmnd-recipe-card__intro p,.jmnd-recipe-card__outro p{margin:0 0 .8em}
.jmnd-recipe-card__intro p:last-child,.jmnd-recipe-card__outro p:last-child{margin-bottom:0}
.jmnd-recipe-card__intro a,.jmnd-recipe-card__outro a{color:var(--rc-accent)}
.jmnd-recipe-card__outro{margin-top:1.75rem;padding-top:1.5rem;border-top:1px solid var(--rc-border);font-size:1.0625rem;line-height:1.65}
.jmnd-recipe-card__outro h2,.jmnd-recipe-card__outro h3,.jmnd-recipe-card__outro h4{margin:1.25em 0 .4em;font-size:1.25rem}
.jmnd-recipe-card__outro h2:first-child,.jmnd-recipe-card__outro h3:first-child{margin-top:0}
.jmnd-recipe-card__outro ul,.jmnd-recipe-card__outro ol{margin:0 0 .8em 1.25em;padding:0}
/* Facts strip: one sand-coloured band, hairline dividers (the 1px gap shows the border colour), icon + label on top, big serif value below. */
.jmnd-recipe-card__facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:0 0 1.75rem;padding:0;border:1px solid var(--rc-border);border-radius:calc(var(--rc-radius) - 2px);background:var(--rc-border);overflow:hidden}
@media (min-width:640px){.jmnd-recipe-card__facts{grid-template-columns:repeat(auto-fit,minmax(6.5rem,1fr))}}
.jmnd-recipe-card__fact{min-width:0;padding:.9rem 1rem 1rem;background:var(--rc-sand)}
@media (min-width:640px){.jmnd-recipe-card__fact{padding:1rem 1.25rem 1.1rem}}
.jmnd-recipe-card__fact dt{display:flex;align-items:center;gap:.4rem;margin:0;color:var(--rc-muted);font-size:.6875rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;line-height:1.2}
.jmnd-recipe-card__icon{flex:none;width:18px;height:18px;color:var(--rc-accent)}
.jmnd-recipe-card__fact dd{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;min-height:2.75rem;margin:.35rem 0 0;color:var(--rc-text);font-weight:700}
.jmnd-recipe-card__time{font-family:var(--jm-font-serif,ui-serif,Georgia,serif);line-height:1;gap:.45rem!important}
.jmnd-recipe-card__time b{font-size:1.625rem;font-weight:700;letter-spacing:-.02em}
.jmnd-recipe-card__time small{margin-left:.2rem;color:var(--rc-muted);font-family:var(--jm-font-sans,system-ui,sans-serif);font-size:.8125rem;font-weight:600}
.jmnd-recipe-card__fact--difficulty dd{font-size:1rem}
.jmnd-recipe-card__level{display:inline-flex;align-items:flex-end;gap:3px;height:18px}
.jmnd-recipe-card__level i{display:block;width:5px;border-radius:2px;background:color-mix(in srgb,var(--rc-accent) 22%,transparent)}
@supports not (background:color-mix(in srgb,red 10%,#fff)){.jmnd-recipe-card__level i{background:rgba(142,59,70,.22)}}
.jmnd-recipe-card__level i:nth-child(1){height:8px}.jmnd-recipe-card__level i:nth-child(2){height:13px}.jmnd-recipe-card__level i:nth-child(3){height:18px}
.jmnd-recipe-card__level[data-level="1"] i:nth-child(-n+1),.jmnd-recipe-card__level[data-level="2"] i:nth-child(-n+2),.jmnd-recipe-card__level[data-level="3"] i:nth-child(-n+3){background:var(--rc-accent)}
.jmnd-recipe-card__fact--servings{grid-column:1/-1}
@media (min-width:640px){.jmnd-recipe-card__fact--servings{grid-column:auto}}
/* Servings stepper: the number reads like the other values; the arrows are a quiet column on the right. */
.jmnd-recipe-card__stepper{display:inline-flex;align-items:stretch;height:2.75rem;border:1px solid var(--jm-border-strong,#8A7B72);border-radius:10px;background:var(--rc-surface);box-shadow:0 1px 2px rgba(42,34,32,.06);overflow:hidden;transition:border-color .15s,box-shadow .15s}
.jmnd-recipe-card__stepper:focus-within{border-color:var(--rc-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--rc-accent) 18%,transparent)}
.jmnd-recipe-card .jmnd-recipe-card__stepper input.jmnd-recipe-card__input{width:3rem;min-width:0;height:auto;min-height:0;margin:0;padding:0 .25rem;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--rc-text);font-family:var(--jm-font-serif,ui-serif,Georgia,serif);font-size:1.625rem;font-weight:700;line-height:1;letter-spacing:-.02em;text-align:center;-moz-appearance:textfield;appearance:textfield}
.jmnd-recipe-card__input::-webkit-outer-spin-button,.jmnd-recipe-card__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.jmnd-recipe-card .jmnd-recipe-card__stepper input.jmnd-recipe-card__input:focus{outline:none;box-shadow:none;border:0}
.jmnd-recipe-card__arrows{display:flex;flex-direction:column;border-left:1px solid var(--rc-border)}
.jmnd-recipe-card__arrow{flex:1;display:grid;place-items:center;width:2.25rem;padding:0;border:0;background:var(--rc-sand);color:var(--rc-accent);cursor:pointer;line-height:0;transition:background .15s,color .15s}
.jmnd-recipe-card__arrow+.jmnd-recipe-card__arrow{border-top:1px solid var(--rc-border)}
.jmnd-recipe-card__arrow:hover,.jmnd-recipe-card__arrow:focus-visible{background:var(--rc-accent);color:#fff;outline:none}
.jmnd-recipe-card__arrow:active{filter:brightness(.9)}
.jmnd-recipe-card__error{flex-basis:100%;margin:0;color:#b42318;font-size:.8125rem;font-weight:600;line-height:1.3}
.jmnd-recipe-card__section{margin-top:1.75rem}
.jmnd-recipe-card__heading{margin:0 0 .5rem;font-size:1.375rem}
.jmnd-recipe-card__hint{margin:0 0 1rem;color:var(--rc-muted);font-size:.9375rem}
.jmnd-recipe-card__ingredients,.jmnd-recipe-card__steps{margin:0;padding:0;list-style:none}
.jmnd-recipe-card__group{margin:1rem 0 .25rem;font-weight:700;color:var(--rc-accent);text-transform:uppercase;letter-spacing:.06em;font-size:.8125rem}
.jmnd-recipe-card__item{position:relative;border-bottom:1px solid var(--rc-border)}
.jmnd-recipe-card__item:last-child{border-bottom:0}
.jmnd-recipe-card__check{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
.jmnd-recipe-card__item label{display:flex;align-items:flex-start;gap:.75rem;min-height:48px;padding:.6rem .25rem;cursor:pointer;line-height:1.5}
.jmnd-recipe-card__item label::before{content:"";flex:none;width:24px;height:24px;margin-top:.1rem;border:2px solid var(--rc-accent);border-radius:7px;background:var(--rc-surface);transition:background .15s,border-color .15s}
.jmnd-recipe-card__item label::after{content:"";position:absolute;left:.25rem;top:calc(.6rem + .1rem);width:24px;height:24px;background:no-repeat center/16px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12.5 4.5 4.5L19 7'/></svg>");opacity:0;transition:opacity .15s}
.jmnd-recipe-card__check:focus-visible + label::before{outline:3px solid var(--rc-accent);outline-offset:2px}
.jmnd-recipe-card__item.is-done label{color:var(--rc-muted);text-decoration:line-through;text-decoration-color:var(--rc-ok);text-decoration-thickness:2px}
.jmnd-recipe-card__item.is-done label::before{border-color:var(--rc-ok);background:var(--rc-ok)}
.jmnd-recipe-card__item.is-done label::after{opacity:1}
.jmnd-recipe-card__item.is-done{background:var(--rc-ok-soft)}
.jmnd-recipe-card__amount{font-weight:700;white-space:nowrap}
.jmnd-recipe-card__unit{white-space:nowrap}
.jmnd-recipe-card__item--step label{align-items:flex-start;gap:1rem;padding-block:.9rem}
.jmnd-recipe-card__num{flex:none;display:grid;place-items:center;width:2rem;height:2rem;border-radius:50%;background:var(--rc-accent);color:#fff;font-weight:700;font-size:.9375rem}
.jmnd-recipe-card__item--step.is-done .jmnd-recipe-card__num{background:var(--rc-ok)}
.jmnd-recipe-card__item--step label::before,.jmnd-recipe-card__item--step label::after{display:none}
.jmnd-recipe-card__actions{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:1rem}
.jmnd-recipe-card__action{display:inline-flex;align-items:center;min-height:44px;padding:.5rem 1.125rem;border:2px solid var(--rc-accent);border-radius:999px;background:var(--rc-accent);color:#fff;font:700 .9375rem/1 inherit;cursor:pointer}
.jmnd-recipe-card__action:hover{filter:brightness(.92)}
.jmnd-recipe-card__action[hidden]{display:none}
.jmnd-recipe-card__action--ghost{background:var(--rc-surface);color:var(--rc-accent)}
.jmnd-recipe-card__status{flex-basis:100%;color:var(--rc-ok);font-weight:600;font-size:.9375rem}
@media print{.jmnd-recipe-card__actions,.jmnd-recipe-card__arrows,.jmnd-recipe-card__error,.jmnd-recipe-card__hint{display:none!important}.jmnd-recipe-card__item label::before{border-color:#000}}

/* Servings control right above the ingredient list (the amounts below change with it). */
.jmnd-recipe-card__servings{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .875rem;margin:0 0 .75rem;padding:.75rem 1rem;border-radius:calc(var(--rc-radius) - 4px);background:var(--rc-sand)}
.jmnd-recipe-card__servings-label{display:inline-flex;align-items:center;gap:.45rem;color:var(--rc-text);font-weight:700}
.jmnd-recipe-card__servings-label .jmnd-recipe-card__icon{width:20px;height:20px;color:var(--rc-accent)}
.jmnd-recipe-card__servings-control{display:inline-flex;align-items:center}
.jmnd-recipe-card__servings-note{color:var(--rc-muted);font-size:.875rem}
.jmnd-recipe-card__servings .jmnd-recipe-card__error{flex-basis:100%;order:5}
