/* Keep the shared library, source links and shopping formatter; replace only the
   expanded recipe's instruction workspace after its guide loads successfully. */
#mcshane-recipe-finder .rf-guided-enabled>.rf-recipe-grid,
#mcshane-recipe-finder .rf-guided-enabled>.rf-method,
#mcshane-recipe-finder .rf-guided-enabled>#rf-recipe-extras{display:none!important}
#mcshane-recipe-finder .rf-guided-enabled .rf-visual{display:block;margin:12px 0 20px;padding:0;min-height:0}
#mcshane-recipe-finder .rf-guided-enabled #rf-art-link,
#mcshane-recipe-finder .rf-guided-enabled #rf-recipe-note,
#mcshane-recipe-finder .rf-guided-enabled #rf-card-note{display:none}
#rf-guided-recipe{display:block;margin:16px 0 22px}
body.rf-cook-open{overflow:hidden}
#mcshane-recipe-finder .rf-guided-drawer{position:fixed;inset:0;margin:auto;width:min(620px,calc(100% - 24px));max-width:100%;max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #d9d3c2;background:#fbf8ef;border-radius:12px;padding:20px;color:#333d2e;box-shadow:0 20px 70px #29332433}
#mcshane-recipe-finder .rf-guided-drawer::backdrop{background:#29332466}
#mcshane-recipe-finder .rf-guided-drawer>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}
#mcshane-recipe-finder #rf-guided-drawer-title{font:32px/1.1 'Instrument Serif',Georgia,serif}
#mcshane-recipe-finder #rf-guided-drawer-close{min-width:44px;min-height:44px;border:1px solid #d9d3c2;background:transparent;border-radius:50%;font:24px Arial,sans-serif}
#mcshane-recipe-finder .rf-guided-drawer .rf-ingredients,#mcshane-recipe-finder .rf-guided-drawer .rf-shop{padding:0;border:0;background:none;position:static}
#mcshane-recipe-finder .rf-guided-drawer .rf-ingredients-top>h3,#mcshane-recipe-finder .rf-guided-drawer .rf-shop>h3{display:none}
#rf-guided-drawer-body>input{display:block;width:100%;padding:12px;font-size:15px;margin-bottom:12px;border:1px solid #d9d3c2;background:#fffdf7}
@media print{#rf-guided-recipe,.rf-guided-drawer{display:none!important}}

/* A quiet paper sticker credits this recipe's inspiration under its title. */
#mcshane-recipe-finder .rf-recipe-book .book-inspiration{
  display:table;max-width:100%;box-sizing:border-box;margin:11px 0 14px;padding:7px 13px;
  border:1px solid #8a9673;border-radius:5px 12px 6px 11px;background:#f0f2e7;color:#46543b;
  box-shadow:inset 0 0 0 3px #fbf8ef,1px 2px 0 #52613d14;transform:rotate(-1deg);
  text-align:center;line-height:1.2
}
.book-inspiration span{display:block;font:400 10px/1.3 'DM Sans',Arial,sans-serif;letter-spacing:.035em}
.book-inspiration strong{display:block;font:400 19px/1.15 'Instrument Serif',Georgia,serif}
.rf-recipe-book #rf-recipe-title:has(+.book-inspiration):after{display:none}
@media screen and (max-width:980px){
  #mcshane-recipe-finder .rf-recipe-book .book-inspiration{margin:9px 0 11px;padding:6px 10px}
  .book-inspiration strong{font-size:17px}
}

/* The illustrated spread is reserved for full recipe guides on desktop. */
@media screen and (min-width:981px){
  #mcshane-nourish-preview:has(.rf-recipe-book:not([hidden])){max-width:1720px}
  #mcshane-nourish-preview #rf-result.rf-recipe-book:not([hidden]){
    --book-line:#d8c9a9;--book-ink:#30392c;--book-olive:#5a6547;
    position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.16fr) clamp(55px,4.7vw,82px);
    grid-template-areas:"cover tools tools" "cover stage tabs" "footer footer footer";
    height:max(460px,calc(100dvh - 24px));grid-template-rows:min-content minmax(0,1fr) auto;align-items:start;gap:0;
    margin:18px calc(-1 * clamp(16px,2.5vw,40px)) 0;padding:0;scroll-margin-top:8px;
    border:1px solid var(--book-line);border-radius:5px 12px 12px 5px;background:#faf6ec;color:var(--book-ink);
    box-shadow:3px 2px #f7f0db,4px 3px #d5c6a5,6px 5px #f5eddc,7px 6px #d5c6a5,0 9px 27px #614a2712
  }
  #mcshane-nourish-preview #mcshane-recipe-finder .rf-recipe-book .rf-detail-intro{
    grid-area:cover;display:flex;position:relative;isolation:isolate;align-self:stretch;flex-direction:column;align-items:stretch;justify-content:flex-start;overflow:hidden;min-width:0;
    min-height:0;margin:0;padding:clamp(14px,2.2vh,25px) clamp(18px,2vw,34px) 10px;border-right:1px solid var(--book-line);
    background:linear-gradient(to left,#b3a38420,transparent 3%),#faf5e9
  }
  .rf-recipe-book .rf-detail-intro:before{content:"";position:absolute;inset:0 0 48%;z-index:-1;background:linear-gradient(to bottom,transparent 48%,#faf5e9),url('/assets/recipes/illustrated/nourish-kitchen.webp') 48% top/auto 100% no-repeat;opacity:.19}
  #mcshane-nourish-preview #mcshane-recipe-finder .rf-recipe-book .rf-recipe-head{display:block;border:0;padding:0;margin:0}
  #mcshane-nourish-preview #mcshane-recipe-finder .rf-recipe-book #rf-recipe-title{font:400 clamp(32px,min(3.4vw,6.1vh),56px)/.99 var(--np-serif);letter-spacing:-.034em;max-width:20ch;color:#283328;margin:6px 0 9px}
  .rf-recipe-book #rf-recipe-title:after{content:"";display:block;margin:13px 0 0;width:67px;height:4px;background:#788250;border-radius:80% 32% 65% 10%;transform:rotate(-2deg)}
  .book-breadcrumb,.rf-recipe-book .book-breadcrumb{font:italic 14px/1.3 Georgia,serif;color:#775b29;letter-spacing:.1em;text-transform:uppercase}
  .book-meta b,.book-meta i{display:block}.book-meta b{font:500 clamp(14px,1.15vw,19px)/1.4 Georgia,serif}.book-meta i{margin-top:5px;font:italic 13px/1.45 Georgia,serif;color:#68634f}
  #mcshane-nourish-preview .rf-recipe-book #rf-match{margin:10px 0 0;color:#806329;font:italic 15px/1.35 Georgia,serif}
  #mcshane-recipe-finder .rf-recipe-book .rf-detail-cover{flex:1 1 0;min-height:0;align-self:stretch;width:100%;height:0;max-width:none;margin:8px 0 0;object-fit:contain;object-position:center;mix-blend-mode:multiply;mask-image:linear-gradient(transparent,black 6%,black 94%,transparent),linear-gradient(90deg,transparent,black 5%,black 95%,transparent);mask-composite:intersect}
  #mcshane-recipe-finder .rf-recipe-book :is(#rf-recipe-meta,.rf-visual,#rf-back-library,.rf-preview-note,#rf-result-label,#rf-close){display:none}
  .rf-recipe-book .rf-results-top{grid-area:footer;justify-content:flex-end;border-top:1px solid var(--book-line);padding:8px 16px;margin:0}
  .rf-recipe-book .rf-results-top select{font-size:12px}
  .rf-recipe-book .book-tools{grid-area:tools;display:flex;align-items:center;justify-content:space-between;gap:4px;position:relative;z-index:3;margin:0 clamp(14px,2vw,32px);padding:clamp(3px,.8vh,9px) 0;border-bottom:1px solid var(--book-line)}
  #mcshane-recipe-finder .book-tools button,#mcshane-recipe-finder .book-tools summary{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:6px 3px;border:0;background:transparent;font:clamp(13px,1vw,17px)/1.2 Georgia,serif;cursor:pointer}
  .book-tools button:hover,.book-tools summary:hover{text-decoration:underline;text-underline-offset:4px}
  :is(.book-tools,.book-rail) svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;color:#63683f}
  .book-tools summary::marker{content:""}.book-tools summary::-webkit-details-marker{display:none}
  .book-save{position:relative}.book-save-options{position:absolute;min-width:210px;right:0;top:100%;padding:14px;background:#fffdf6;border:1px solid var(--book-line);border-radius:5px;box-shadow:0 8px 22px #51432425}
  #mcshane-recipe-finder .book-save-options .rf-card-actions{display:grid;margin:0;gap:5px}
  #mcshane-recipe-finder .book-save-options .rf-action,#mcshane-recipe-finder .book-save-options .book-share{display:flex;justify-content:flex-start;align-items:center;padding:8px 10px;border:0;background:#f6f1e5;color:var(--book-ink);border-radius:4px;font:14px/1.35 'DM Sans',Arial,sans-serif;min-height:36px}
  #mcshane-recipe-finder .book-save-options .book-share{margin-top:5px;width:100%}.book-share svg{display:none}
  #mcshane-recipe-finder .rf-recipe-book #rf-guided-recipe{grid-area:stage;align-self:stretch;min-width:0;min-height:0;margin:0;padding:clamp(10px,1.8vh,18px) clamp(14px,1.7vw,28px)}
  .book-rail{grid-area:tabs;display:grid;gap:5px;margin:clamp(18px,2vw,32px) 0 0}
  #mcshane-recipe-finder .book-rail button{display:grid;place-content:center;justify-items:center;gap:7px;padding:8px 2px;min-height:clamp(75px,10vh,112px);font:20px/1 var(--np-serif);color:#514a33;border:1px solid #ccb990;border-right:0;border-radius:5px 12px 12px 5px;background:linear-gradient(110deg,#eee2c4,#fbf2de);cursor:pointer}
  #mcshane-recipe-finder .book-rail button[aria-pressed=true]{background:#596547;color:#fffdf4;border-color:#596547}.book-rail button[aria-pressed=true] svg{color:inherit}
  #mcshane-recipe-finder .rf-recipe-book .rf-results-top{display:flex;padding:4px 16px;justify-content:flex-end}
  #mcshane-recipe-finder .rf-recipe-book #rf-alternatives{margin:0}
  #mcshane-recipe-finder .rf-recipe-book #rf-variants{margin:7px 0;padding:6px 0;gap:5px}
  #mcshane-recipe-finder .rf-recipe-book #rf-variants .rf-choice{min-height:32px}
  #mcshane-recipe-finder .rf-recipe-book .rf-recipe-head,#mcshane-recipe-finder .rf-recipe-book #rf-variants{flex-shrink:0}
}
@media screen and (min-width:981px){
  /* The title receives focus on entry for screen readers. It is a heading,
     and its hand-drawn underline already marks the landing point. */
  #mcshane-nourish-preview #mcshane-recipe-finder .rf-recipe-book #rf-recipe-title:focus{outline:none}
}

/* On a phone the cover, two kitchen tools, and section tabs form one reading
   column. The full ingredient list lives in the existing servings drawer. */
@media screen and (max-width:980px){
 #mcshane-nourish-preview #rf-result.rf-recipe-book:not([hidden]){
   --book-ink:#30392c;--book-line:#d8ceb8;--book-sage:#596547;
   position:relative;display:grid;grid-template-columns:1fr 1fr;min-width:0;
   grid-template-areas:"back save" "cover cover" "ingredients shopping" "tabs tabs" "stage stage" "footer footer";
   align-items:start;column-gap:8px;margin:12px clamp(-14px,-2vw,-6px) 0;padding:0 0 12px;
   border:1px solid var(--book-line);border-radius:8px;background:#fbf8ef;scroll-margin-top:72px;color:var(--book-ink)
 }
 .rf-recipe-book .book-tools{display:contents}
 #mcshane-recipe-finder .book-tools>button,#mcshane-recipe-finder .book-save summary{
   display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;
   margin:0;padding:6px 10px;background:transparent;border:0;color:#46513e;cursor:pointer;font:500 14px/1.25 'DM Sans',Arial,sans-serif
 }
 :is(.book-tools,.book-rail) svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
 #mcshane-recipe-finder .book-tools>button:first-child{grid-area:back;justify-self:start;margin-left:4px}
 #mcshane-recipe-finder .book-tools>button:nth-child(2),#mcshane-recipe-finder .book-tools>button:nth-child(3){
   justify-self:stretch;background:#f4f0e4;border:1px solid #d9d1bd;border-radius:5px;margin-top:10px
 }
 #mcshane-recipe-finder .book-tools>button:nth-child(2){grid-area:ingredients;margin-left:12px}
 #mcshane-recipe-finder .book-tools>button:nth-child(3){grid-area:shopping;margin-right:12px}
 #mcshane-recipe-finder .book-tools>button:last-child{display:none}
 .book-save{grid-area:save;justify-self:end;margin-right:5px;position:relative;z-index:8}
 .book-save summary{cursor:pointer;list-style:none}.book-save summary::-webkit-details-marker{display:none}
 .book-save-options{position:absolute;right:0;top:100%;width:min(225px,75vw);max-height:70dvh;overflow:auto;padding:10px;border:1px solid var(--book-line);border-radius:7px;background:#fffdf7;box-shadow:0 8px 24px #51432424}
 #mcshane-recipe-finder .book-save-options .rf-card-actions{display:grid;gap:3px}
 #mcshane-recipe-finder .book-save-options :is(.rf-action,.book-share){display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:44px;padding:8px 11px;border:0;border-radius:4px;background:#f6f2e8;color:#384534;font:14px/1.3 'DM Sans',Arial,sans-serif}
 #mcshane-recipe-finder .book-save-options .book-share{margin-top:3px}.book-share svg{display:none}
 #mcshane-nourish-preview #mcshane-recipe-finder .rf-recipe-book .rf-detail-intro{
   grid-area:cover;display:grid;isolation:isolate;position:relative;grid-template-columns:minmax(0,1fr) clamp(76px,24vw,180px);
   grid-template-areas:"heading cover" "versions versions";align-items:center;gap:0 7px;
   margin:0;padding:15px clamp(12px,3.5vw,24px);border-block:1px solid #e0d8c7;background:#faf6ec
 }
 .rf-recipe-book .rf-detail-intro:before{content:"";position:absolute;inset:0;z-index:-1;background:url('/assets/recipes/illustrated/nourish-kitchen.webp') center/cover;opacity:.075}
 #mcshane-nourish-preview #mcshane-recipe-finder .rf-recipe-book .rf-recipe-head{display:block;min-width:0;margin:0;padding:0;border:0}
 #mcshane-nourish-preview #mcshane-recipe-finder .rf-recipe-book #rf-recipe-title{font:400 clamp(29px,7.3vw,43px)/1 var(--np-serif);letter-spacing:-.024em;color:#2d382b;margin:4px 0 8px;outline:none}
 .rf-recipe-book #rf-recipe-title br{display:none}
 .rf-recipe-book .book-breadcrumb{font:500 10px/1.4 'DM Sans',Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#79632f}
 .rf-recipe-book .book-meta b{display:block;font:500 13px/1.4 'DM Sans',Arial,sans-serif;color:#4e5948}
 .rf-recipe-book .book-meta i{display:block;margin-top:4px;font:italic 12px/1.4 Georgia,serif;color:#686652}
 #mcshane-recipe-finder .rf-recipe-book .rf-detail-cover{grid-area:cover;align-self:center;width:100%;height:clamp(100px,29vw,165px);max-height:none;object-fit:contain;mix-blend-mode:multiply;mask-image:linear-gradient(transparent,black 5%,black 95%,transparent)}
 #mcshane-recipe-finder .rf-recipe-book #rf-variants{grid-area:versions;gap:6px;margin:10px 0 0;padding:8px 0 0;border-bottom:0}
 #mcshane-recipe-finder .rf-recipe-book #rf-variants .rf-choice{min-height:44px}
 #mcshane-recipe-finder .rf-recipe-book :is(#rf-recipe-meta,#rf-match,.rf-visual,#rf-back-library,.rf-preview-note,#rf-result-label,#rf-close){display:none}
 #mcshane-recipe-finder .rf-recipe-book>.book-rail{grid-area:tabs;position:sticky;top:68px;z-index:4;display:flex;gap:3px;align-self:start;margin:8px 0 0;padding:4px 12px;background:#fbf8ef;border-bottom:1px solid var(--book-line)}
 #mcshane-recipe-finder .book-rail button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:4px;border:0;border-radius:5px;background:transparent;color:#56614d;font:20px/1 var(--np-serif);cursor:pointer}
 #mcshane-recipe-finder .book-rail button[aria-pressed=true]{background:var(--book-sage);color:#fffdf5}
 #mcshane-recipe-finder .rf-recipe-book #rf-guided-recipe{grid-area:stage;min-width:0;margin:0;padding:16px clamp(12px,3.5vw,24px) 6px;scroll-margin-top:128px}
 #mcshane-recipe-finder .rf-recipe-book .rf-results-top{display:flex;grid-area:footer;margin:6px 12px 0;padding:10px 0 0;border-top:1px solid var(--book-line)}
 #mcshane-recipe-finder .rf-recipe-book #rf-alternatives{margin:0;width:100%}
 #mcshane-recipe-finder .rf-recipe-book #rf-alternatives select{min-height:44px;width:100%;max-width:100%}
 #mcshane-recipe-finder .rf-guided-drawer{width:min(540px,calc(100% - 16px));padding:16px;max-height:calc(100dvh - 20px)}
}

/* Desktop recipes: one frame for Prep, Cook / Mix and Tips. */
.book-step-art{display:none}
@media screen and (min-width:981px){
 #mcshane-nourish-preview #rf-result.rf-recipe-book[data-desktop-book]:not([hidden]){
  grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) 78px;
  grid-template-areas:"tools tools tools" "cover stage tabs" "footer footer footer";
  grid-template-rows:62px minmax(0,1fr) auto;height:max(620px,calc(100dvh - 28px));scroll-margin-top:14px;overflow-anchor:none;
 }
 #mcshane-recipe-finder [data-desktop-book] .book-tools{margin-inline:24px;padding-block:8px}
 #mcshane-recipe-finder [data-desktop-book] .book-rail{margin:24px 0 0;align-self:start}
 #mcshane-nourish-preview #mcshane-recipe-finder [data-desktop-book] .rf-detail-intro{padding:24px 30px 20px}
 #mcshane-nourish-preview #mcshane-recipe-finder [data-desktop-book] #rf-recipe-title{font-size:clamp(34px,3vw,50px);line-height:1.05}
 #mcshane-nourish-preview #mcshane-recipe-finder [data-desktop-book] #rf-guided-recipe{padding:24px clamp(20px,2.3vw,40px) 12px}
 #mcshane-recipe-finder [data-desktop-book][data-recipe-stage=cook] .rf-detail-cover{display:none}
 #mcshane-recipe-finder [data-desktop-book][data-recipe-stage=cook] .book-step-art{display:flex;flex:1;min-height:0;align-items:center;justify-content:center;width:100%;margin-top:12px}
 #mcshane-recipe-finder [data-desktop-book] .book-step-art figure{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;min-height:0;margin:0}
 #mcshane-recipe-finder [data-desktop-book] .book-step-art .cooking-watercolor{display:block;width:100%;height:0;flex:1;min-height:0;object-fit:contain;overflow:hidden;mix-blend-mode:multiply}
 #mcshane-recipe-finder [data-desktop-book] .book-step-art figcaption{flex:none;margin:10px 0 0;font:italic 20px/1.3 'Instrument Serif',Georgia,serif;color:#65704d;text-align:center}
 #mcshane-recipe-finder [data-desktop-book][data-hide-step-art] .book-step-art{visibility:hidden}
}

/* Reserve the right page for complete directions, including on short laptops. */
@media screen and (min-width:981px){
 #mcshane-nourish-preview #rf-result.rf-recipe-book[data-desktop-book]:not([hidden]){
  --recipe-art-width:calc((100% - 78px) * .4717);
  grid-template-columns:var(--recipe-art-width) minmax(0,1fr) 78px;
  grid-template-rows:50px minmax(0,1fr) 40px;height:max(540px,calc(100dvh - 20px));
 }
 #mcshane-nourish-preview #mcshane-recipe-finder [data-desktop-book] .rf-detail-intro{padding:16px 24px 100px}
 #mcshane-nourish-preview #mcshane-recipe-finder [data-desktop-book] #rf-guided-recipe{padding:16px 24px 8px;position:static}
 #mcshane-recipe-finder [data-desktop-book] .book-rail{margin-top:16px}
}
@media screen and (min-width:981px) and (max-height:850px){
 #mcshane-nourish-preview #rf-result.rf-recipe-book[data-desktop-book]:not([hidden]){--recipe-art-width:calc((100% - 78px) * .35)}
 #mcshane-nourish-preview #mcshane-recipe-finder [data-desktop-book] #rf-recipe-title{font-size:clamp(28px,2.6vw,36px)}
 #mcshane-recipe-finder [data-desktop-book] .book-breadcrumb{font-size:11px}
 #mcshane-recipe-finder [data-desktop-book] .book-step-art figcaption{font-size:17px}
}

@media screen and (min-width:981px) and (max-width:1100px) and (max-height:850px){
 #mcshane-nourish-preview #rf-result.rf-recipe-book[data-desktop-book]:not([hidden]){--recipe-art-width:calc((100% - 78px) * .30)}
 #mcshane-nourish-preview #mcshane-recipe-finder [data-desktop-book] #rf-guided-recipe{padding-inline:16px}
}
@media screen and (min-width:981px) and (max-height:700px){
 #mcshane-nourish-preview #rf-result.rf-recipe-book[data-desktop-book]:not([hidden]){grid-template-rows:44px minmax(0,1fr) 36px}
 #mcshane-nourish-preview #mcshane-recipe-finder [data-desktop-book] #rf-guided-recipe{padding-top:12px}
}

@media screen and (min-width:981px) and (max-width:1100px) and (max-height:650px){
 #mcshane-nourish-preview #rf-result.rf-recipe-book[data-desktop-book]:not([hidden]){--recipe-art-width:calc((100% - 78px) * .25)}
}

/* The desktop kitchen banner must not force a wider page beside the recipe book. */
@media screen and (min-width:981px){
 #mcshane-nourish-preview .np-hero{width:100%;max-width:100%;min-height:0}
}

/* Keep the dividers within their own grid rows, clear of text and numbers. */
@media screen and (min-width:981px){
 #mcshane-recipe-finder [data-desktop-book] .book-tools{height:100%;min-height:0;align-self:stretch;padding-block:0;box-sizing:border-box}
 #mcshane-recipe-finder [data-desktop-book] .book-tools>button,
 #mcshane-recipe-finder [data-desktop-book] .book-tools summary{min-height:40px;padding-block:4px}
 #mcshane-recipe-finder [data-desktop-book] .rf-results-top{height:100%;min-height:0;align-self:stretch;align-items:center;padding:1px 16px;box-sizing:border-box}
 #mcshane-recipe-finder [data-desktop-book] #rf-alternatives select{height:30px;min-height:30px;max-width:100%;padding:4px 8px;font-size:12px;line-height:1.3}
 #mcshane-nourish-preview #mcshane-recipe-finder [data-desktop-book] .rf-recipe-head{flex:0 0 auto}
 #mcshane-nourish-preview #mcshane-recipe-finder [data-desktop-book] #rf-recipe-title{overflow-wrap:anywhere}
}

/* Mobile Cook/Mix and Tips retain the compact full-screen reader. Prep uses
   the approved illustrated landing layout above. */
@media screen and (max-width:980px){
 body.rf-mobile-book-open{overflow:hidden}
 #mcshane-nourish-preview #rf-result.rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs]):not([hidden]){
  position:fixed;inset:0;z-index:1100;width:100%;height:100dvh;min-height:0;max-width:none;margin:0;
  padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px);border:0;border-radius:0;gap:0;
  grid-template-columns:minmax(0,1fr) 52px;grid-template-rows:44px auto 44px minmax(0,1fr) 40px;
  grid-template-areas:"tools tools" "cover cover" "ingredients ingredients" "stage tabs" "footer footer";overflow:hidden;
 }
 #mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs]) .book-tools{display:flex;grid-area:tools;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid #ded7c7}
 #mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs]) .book-tools>button:first-child{margin:0;padding:4px 0}
 #mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs]) .book-tools>button:nth-child(2),#mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs]) .book-tools>button:nth-child(3){position:absolute;grid-area:auto;top:var(--mobile-tool-top,125px);height:40px;min-height:40px;margin:0;padding:5px 10px;width:calc(50% - 16px)}
 #mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs]) .book-tools>button:nth-child(2){left:12px}
 #mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs]) .book-tools>button:nth-child(3){right:12px}
 #mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs]) .book-save{margin:0}
 #mcshane-nourish-preview #mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs]) .rf-detail-intro{padding:8px 14px;grid-template-columns:minmax(0,1fr) 56px;border:0;gap:0 8px;min-height:74px}
 #mcshane-nourish-preview #mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs]) #rf-recipe-title{font-size:26px;line-height:1.03;margin:0 0 3px;overflow-wrap:anywhere}
 #mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs]) .rf-detail-cover{height:58px}
 #mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs]) :is(.book-breadcrumb,.book-meta i,.book-inspiration){display:none}
 #mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs]) .book-meta b{font:11px/1.3 'DM Sans',Arial,sans-serif}
 #mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs]) #rf-variants{margin:3px 0 0;padding:0;flex-wrap:nowrap;overflow-x:auto}
 #mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs]) #rf-variants .rf-choice{min-height:32px;padding:4px 8px;font-size:12px;flex:none}
 #mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs])>.book-rail{grid-area:tabs;position:static;display:flex;flex-direction:column;gap:6px;padding:8px 0 0;margin:0;background:transparent;border:0;z-index:1}
 #mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs])>.book-rail button{flex:none;display:flex;flex-direction:column;gap:6px;width:52px;min-height:66px;border:1px solid #d8c9a9;border-right:0;border-radius:7px 0 0 7px;background:#f3ecd9;font:18px/1.1 var(--np-serif)}
 #mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs])>.book-rail button[aria-pressed=true]{background:#596547;color:#fffdf5}
 #mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs]) #rf-guided-recipe{height:100%;min-height:0;margin:0;padding:8px 10px 4px 14px;overflow:hidden}
 #mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs]) .rf-results-top{height:40px;margin:0;padding:2px 12px;border-top:1px solid #ded7c7;align-items:center}
 #mcshane-recipe-finder .rf-recipe-book:not([data-recipe-stage=prep]):not([data-centered-mobile-tabs]) #rf-alternatives select{min-height:34px;height:34px;font-size:12px;padding-block:3px}
}

/* Approved mobile recipe template: the illustrated header and centered tab row stay
   in the same page frame across Prep, Cook and Tips. */
@media screen and (max-width:980px){
 #mcshane-recipe-finder .rf-recipe-book[data-centered-mobile-tabs]>.book-rail{justify-content:center}
 #mcshane-recipe-finder .rf-recipe-book[data-centered-mobile-tabs]>.book-rail button{flex:1 1 0;min-width:0}
 #mcshane-recipe-finder .rf-recipe-book[data-centered-mobile-tabs]:not([data-recipe-stage=prep]) #rf-guided-recipe{height:max(520px,calc(100dvh - 140px));min-height:0;overflow:hidden}
}

/* Cacao review: readable ingredients and a compact phone cooking frame. */
#mcshane-recipe-finder[data-active-recipe="warming-spiced-cacao"] .rf-guided-drawer .rf-ingredient,
#mcshane-recipe-finder[data-active-recipe="warming-spiced-cacao"] .rf-guided-drawer .rf-shop-item{font-size:15px;line-height:1.5}
#mcshane-recipe-finder[data-active-recipe="warming-spiced-cacao"] .rf-guided-drawer :is(.rf-amount,.rf-shop-qty,.rf-topping-toggle){font-size:14px;line-height:1.4}
#mcshane-recipe-finder[data-active-recipe="warming-spiced-cacao"] .rf-guided-drawer .rf-ingredient-name small{font-size:12px}
#mcshane-recipe-finder[data-active-recipe="warming-spiced-cacao"] .rf-guided-drawer>header{position:sticky;top:-16px;z-index:2;background:#fffdf6;padding-block:8px}
@media screen and (max-width:980px){
 #mcshane-recipe-finder[data-active-recipe="warming-spiced-cacao"] .rf-recipe-book[data-centered-mobile-tabs]:not([data-recipe-stage=prep]) #rf-guided-recipe{height:clamp(520px,calc(100dvh - 300px),560px)}
}
