/* Tortellini only: stable initial markup, protected desktop layout. */
.g17-tortellini-hero,.g17-tortellini-copy{display:contents;}
.g17-tort-phone,.g17-tortellini-hero>.meta small{display:none;}
.g17-tortellini-hero>.meta b{font-weight:inherit;}
@media(max-width:767px) and (orientation:portrait),(max-width:950px) and (max-height:500px) and (orientation:landscape){
 body .recipe-wrap{padding:22px!important;margin:0!important;max-width:none!important;}
 .g17-tort-desktop{display:none;}.g17-tort-phone{display:inline;}
 body .g17-tortellini-hero{display:grid;grid-template-columns:minmax(0,45fr) minmax(0,55fr);gap:12px 8px;align-items:start;margin:0;}
 body .g17-tortellini-copy{box-sizing:border-box;display:flex;flex-direction:column;background:#07181b;color:white;padding:12px;min-height:0;aspect-ratio:75240/51755;border-radius:18px;justify-content:center;text-align:left;overflow:visible;}
 body .g17-tortellini-copy .eyebrow{font-size:8px!important;font-weight:400!important;letter-spacing:.07em!important;line-height:1.4!important;color:#ffd51f!important;margin:0!important;}
 body .g17-tortellini-copy h1{font-size:clamp(1rem,4.25vw,1.15rem)!important;line-height:1.08!important;letter-spacing:-.035em!important;hyphens:none!important;-webkit-hyphens:none!important;overflow-wrap:normal!important;word-break:normal!important;margin:8px 0 0!important;color:#16d8d5!important;}
 body .g17-tortellini-picture.recipe-hero.clean{grid-column:2;grid-row:1;display:flex!important;align-items:center;justify-content:center;min-height:0!important;height:auto!important;border-radius:18px!important;overflow:hidden!important;background:transparent!important;margin:0!important;box-shadow:none!important;}
 body .g17-tortellini-picture.recipe-hero.clean img{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;flex:none!important;aspect-ratio:1672/941!important;object-fit:contain!important;border-radius:18px!important;box-shadow:var(--shadow)!important;}
 body .g17-tortellini-hero>.lead{grid-column:1/-1;grid-row:2;font-size:14px!important;line-height:1.4!important;color:#10231e!important;margin:0!important;text-align:center!important;}
 body .g17-tortellini-hero>.meta{grid-column:1/-1;grid-row:3;font-size:clamp(.5rem,2vw,.74rem);display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:0!important;padding:0!important;}
 body .g17-tortellini-hero>.meta>div{box-sizing:border-box;display:block;background:#07181b!important;color:white!important;padding:9px 7px!important;border-radius:10px!important;min-width:0!important;min-height:48px!important;text-align:center!important;font-weight:400!important;}
 body .g17-tortellini-hero>.meta small{display:block;font-size:10px!important;line-height:1.3!important;color:#dce8e4!important;}
 body .g17-tortellini-hero>.meta b{display:block;font-size:11px!important;line-height:1.4!important;white-space:normal!important;color:white!important;font-weight:700;}
}
@media(max-width:950px) and (max-height:500px) and (orientation:landscape){body .g17-tortellini-hero{grid-template-columns:minmax(0,40fr) minmax(0,60fr);}body .g17-tortellini-copy{aspect-ratio:66880/56460;}}
/* Approved tablet portrait contrast correction; phone and desktop unchanged. */
@media(min-width:768px) and (max-width:1023px) and (min-height:501px){
 body .g17-tortellini-copy .eyebrow{color:#0c5751!important;}
}
/* G17 release delta: narrow portrait panels must not clip ingredient words.
   Hero, tablet, landscape and desktop rules remain unchanged. */
@media(max-width:600px) and (orientation:portrait){
 body .recipe-wrap>.recipe-grid{grid-template-columns:minmax(0,1fr)!important;}
 body .recipe-wrap>.recipe-grid>.panel{min-width:0;max-width:100%;box-sizing:border-box;}
}
