/* G17 approved corrections. Desktop visual state remains unchanged. */
body:has(.recipe-wrap) .recipe-hero.clean img[src$="tortellini-home-approved.webp"]{aspect-ratio:1672/941!important;height:auto!important;}
@media(max-width:1023px){
 .hub-choice-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
 .hub-choice-row .hub-choice-card{grid-template-columns:40px minmax(0,1fr)!important;gap:8px!important;padding:12px!important;align-content:center!important;}
 .hub-choice-row .hub-choice-card .choice-visual{width:40px!important;height:40px!important;min-width:40px!important;}
 .hub-choice-row .hub-choice-card .choice-copy{min-width:0!important;}
 .hub-choice-row .hub-choice-card strong,.hub-choice-row .hub-choice-card small{white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;}
 .hub-choice-row .hub-choice-card .choice-arrow{grid-column:2!important;justify-self:start!important;}
 .hub-main .hub-section-head p{white-space:normal!important;min-width:0!important;}
 .themen-page .tm-hero-copy h1{hyphens:none!important;-webkit-hyphens:none!important;overflow-wrap:normal!important;word-break:normal!important;}
 .themen-page .tm-hero.g17-title-fit>.tm-hero-copy{padding-inline:16px!important;}
 .themen-page .tm-hero.g17-title-fit{grid-template-columns:minmax(0,var(--g17-title-width)) minmax(0,1fr)!important;}
 body.recipe-page .recipe-hero.g17-tablet-title>.hero-copy{padding-inline:14px!important;}
 body.recipe-page .recipe-hero.g17-tablet-title{grid-template-columns:minmax(0,var(--g17-title-width)) minmax(0,1fr)!important;}
}
@media(max-width:767px) and (orientation:portrait){
 .hub-choice-row .hub-choice-card{grid-template-columns:minmax(0,1fr)!important;justify-items:center!important;text-align:center!important;}
 .hub-choice-row .hub-choice-card .choice-visual{width:40px!important;height:40px!important;}
 .hub-choice-row .hub-choice-card .choice-arrow{grid-column:1!important;justify-self:center!important;}
 .hub-choice-row .hub-choice-card strong{max-width:100%!important;}
}
@media(max-width:950px) and (max-height:500px) and (orientation:landscape){
 .hub-choice-row{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
 .hub-choice-row .hub-choice-card{grid-template-columns:38px minmax(0,1fr)!important;}
 .hub-choice-row .hub-choice-card .choice-visual{width:38px!important;height:38px!important;min-width:38px!important;}
}
@media(max-width:767px) and (orientation:portrait),(max-width:950px) and (max-height:500px) and (orientation:landscape){
 body .recipe-hero.g17-mobile-hero.g17-mobile-hero{display:grid!important;grid-template-columns:minmax(0,45fr) minmax(0,55fr)!important;gap:12px 8px!important;align-items:start!important;}
 body .recipe-hero.g17-mobile-hero.g17-mobile-hero>.hero-copy{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;background:#07181b!important;color:white!important;padding:12px!important;min-height:0!important;height:auto!important;border-radius:18px!important;justify-content:center!important;text-align:left!important;overflow:visible!important;}
 body .recipe-hero.g17-mobile-hero.g17-mobile-hero>.hero-copy .kicker{font-size:8px!important;letter-spacing:.07em!important;line-height:1.4!important;color:#ffd51f!important;}
 body .recipe-hero.g17-mobile-hero.g17-mobile-hero>.hero-copy h1{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 .recipe-hero.g17-mobile-hero.g17-mobile-hero>picture.hero-media{display:flex!important;align-items:center!important;justify-content:center!important;min-height:0!important;height:auto!important;border-radius:18px!important;overflow:hidden!important;background:transparent!important;}
 body .recipe-hero.g17-mobile-hero.g17-mobile-hero>picture.hero-media img{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;flex:none!important;object-fit:contain!important;border-radius:18px!important;}
 body .recipe-hero.g17-mobile-hero.g17-mobile-hero>.g17-description{grid-column:1/-1!important;font-size:14px!important;line-height:1.4!important;color:#10231e!important;margin:0!important;text-align:center!important;}
 body .recipe-hero.g17-mobile-hero.g17-mobile-hero>.facts{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:0!important;padding:0!important;}
 body .recipe-hero.g17-mobile-hero.g17-mobile-hero>.facts>.fact{display:block!important;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;}
 body .recipe-hero.g17-mobile-hero.g17-mobile-hero>.facts .fact-icon{display:none!important;}
 body .recipe-hero.g17-mobile-hero.g17-mobile-hero>.facts small{display:block!important;font-size:10px!important;line-height:1.3!important;color:#dce8e4!important;}
 body .recipe-hero.g17-mobile-hero.g17-mobile-hero>.facts b{display:block!important;font-size:11px!important;line-height:1.4!important;white-space:normal!important;color:white!important;}
 body .recipe-wrap.g17-tortellini-mobile{padding:22px!important;margin:0!important;max-width:none!important;}
 body .g17-tortellini-mobile .g17-mobile-hero.g17-mobile-hero{margin:0!important;}
 body .g17-tortellini-mobile .g17-mobile-hero.g17-mobile-hero h1{font-size:clamp(1rem,4.25vw,1.15rem)!important;}
}
@media(max-width:950px) and (max-height:500px) and (orientation:landscape){
 body .recipe-hero.g17-mobile-hero.g17-mobile-hero{grid-template-columns:minmax(0,40fr) minmax(0,60fr)!important;}
}

/* Authorized G17 exception: both recipe category heroes, phone portrait/landscape. */
@media(max-width:767px) and (orientation:portrait),(max-width:950px) and (max-height:500px) and (orientation:landscape){
 body[data-recipe-category] .category-hub-hero.g17-category-mobile{background:transparent!important;box-shadow:none!important;overflow:visible!important;border-radius:0!important;gap:12px 8px!important;align-items:start!important;grid-template-columns:minmax(0,45fr) minmax(0,55fr)!important;}
 .g17-category-mobile>.category-hub-copy{box-sizing:border-box!important;padding:12px!important;justify-content:center!important;overflow:visible!important;}
 .g17-category-mobile .category-kicker{font-size:8px!important;line-height:1.4!important;letter-spacing:.07em!important;color:#ffd51f!important;}
 body[data-recipe-category] .category-hub-hero.g17-category-mobile .category-hub-copy h1{font-size:clamp(1rem,4.3vw,1.2rem)!important;line-height:1.08!important;margin:8px 0 0!important;hyphens:none!important;word-break:normal!important;overflow-wrap:normal!important;letter-spacing:-.035em!important;color:#16d8d5!important;}
 .g17-category-mobile>.category-hub-copy,.g17-category-mobile>.category-hub-media,.g17-category-mobile>.category-hub-media img{border-radius:18px!important;}
 .g17-category-mobile>.category-hub-media{height:auto!important;background:transparent!important;}
 .g17-category-mobile>.category-hub-media img{display:block!important;width:100%!important;height:auto!important;min-height:0!important;object-fit:contain!important;aspect-ratio:var(--g17-category-image-ratio)!important;}
 .g17-category-mobile>.g17-category-description{grid-column:1/-1!important;margin:0!important;text-align:center!important;color:#10231e!important;font-size:14px!important;line-height:1.4!important;}
}
@media(max-width:950px) and (max-height:500px) and (orientation:landscape){.g17-category-mobile.g17-category-mobile{grid-template-columns:minmax(0,40fr) minmax(0,60fr)!important;}}
