/* V11A.2: Align the three toolbar controls to the Lightning card width. */
.recipe-page{container-type:inline-size;}
.recipe-page .recipe-head > div:first-child{min-width:0;}
/* Both rows follow the ingredients panel's 40% column on desktop. */
.recipe-page .recipe-tools,
.recipe-page .lr-tip-block.lr-tip-recipe{
  width:calc((100cqw - 38px) * .4);
  max-width:100%;
  box-sizing:border-box;
}
.recipe-page .recipe-tools{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,1.4fr);
  align-items:stretch;
  gap:10px;
  margin-top:16px;
}
.recipe-page .recipe-tools > .print-button,
.recipe-page .recipe-tools > .lr-share-control,
.recipe-page .recipe-tools > .recipe-save-control,
.recipe-page .recipe-tools > a.btn{width:100%;min-width:0;margin:0;align-self:stretch;}
.recipe-page .recipe-tools > .print-button,
.recipe-page .recipe-tools > a.btn{height:47px;min-height:47px;box-sizing:border-box;padding:0 8px;white-space:nowrap;}
.recipe-page .recipe-tools .lr-share-control > summary.btn{width:100%;height:47px;min-height:47px;padding:0 7px;gap:7px;}
.recipe-page .recipe-tools .lr-share-label{font-size:12px;}
.recipe-page .recipe-tools .lr-share-chevron{min-width:13px;border-left:0!important;padding:0;}
.recipe-page .recipe-tools .recipe-save-control{display:flex;align-items:stretch;flex-wrap:nowrap;}
.recipe-page .recipe-tools .recipe-save-split{display:flex;align-items:stretch;min-height:47px;height:47px;width:100%;min-width:0;}
.recipe-page .recipe-tools .recipe-save-split .save-recipe-form{display:flex;flex:1 1 auto;min-width:0;width:auto;}
.recipe-page .recipe-tools .recipe-save-split .recipe-split-main{height:45px;min-height:45px;width:100%;padding:0 5px;white-space:nowrap;font-size:12px;}
.recipe-page .recipe-tools .recipe-save-split .recipe-split-picker{flex:0 0 34px;}
.recipe-page .recipe-tools .recipe-split-picker > summary{min-width:34px;min-height:45px;height:45px;}
.recipe-page .lr-tip-block.lr-tip-recipe{
  display:flex;align-items:center;justify-content:center;
  margin:14px 0 0;
}
/* On small screens a two-row toolbar avoids cramped or overflowing labels. */
@media(max-width:680px){
  .recipe-page .recipe-tools,.recipe-page .lr-tip-block.lr-tip-recipe{width:100%;}
}
@media(max-width:420px){
  .recipe-page .recipe-tools{grid-template-columns:1fr 1fr;}
  .recipe-page .recipe-tools > .recipe-save-control{grid-column:1 / -1;}
  .recipe-page .recipe-tools .recipe-save-split .recipe-split-main{font-size:13px;}
}
@media print{.recipe-page .lr-tip-block.lr-tip-recipe{display:none!important;}}

/* V11D.7e — Fix the missed narrow two-column layout. The container can
   be under 681px while the photo and recipe details still share one row.
   Do not use a minimum container-width threshold here.
   The recipe header can remain two columns even after the
   toolbar becomes too narrow for three controls. React to the recipe-page
   container width instead of waiting for the phone-width media breakpoint. */
@container (max-width: 1150px) {
  .recipe-page .recipe-tools {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .recipe-page .recipe-tools > .recipe-save-control {
    grid-column: 1 / -1;
  }
  .recipe-page .recipe-tools .lr-share-control > summary.btn {
    white-space: nowrap;
  }
}
/* At very narrow widths the existing mobile 2-row layout still applies.
   Never allow control labels to paint over adjacent buttons. */
.recipe-page .recipe-tools > * { min-width: 0; }
.recipe-page .recipe-tools .lr-share-label { white-space: nowrap; }
