/* Mobile cards share the weekly suggestion's rounded publication frame without vertical side borders on phones.
   Bleed only the outer list item: nested recipe cards retain their normal width and padding. */
@media (max-width:760px){
 html :is(#main#main#main#main) .news-feed-page{overflow:visible!important}
 html :is(#main#main#main#main) :is(.profile-feed-grid>.profile-feed-event,.catalog-grid:not(.profile-feed-grid):not(.recipe-carousel)>.catalog-recipe-card,.catalog-grid:not(.profile-feed-grid):not(.recipe-carousel)>.personal-card-wrap){margin-inline:calc(50% - var(--card-screen-width,100vw)*.5)!important;width:auto!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important}
 /* Own recipes (« Mon profil ») sit in a wrapper holding the edit and delete buttons: the wrapper bleeds, the card fills it. */
 html :is(#main#main#main#main) .catalog-grid:not(.profile-feed-grid):not(.recipe-carousel)>.personal-card-wrap>.catalog-recipe-card{margin-inline:0!important;width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important}
 /* Text and photo posts keep their own frame; recipe posts use the cap/content frame inside. */
 html :is(#main#main#main#main) .profile-feed-grid>.profile-feed-event:not(.profile-recipe-post){padding:0!important;border:1px solid var(--edge,#cbd5d8)!important;border-inline:0!important;border-radius:24px!important;overflow:hidden!important}
 /* The author line, text and reactions keep their inner margin, so the rounded top corner never clips the avatar;
    only the photos and step-by-step reach the screen edges. */
 html :is(#main#main#main#main) .profile-feed-grid>.profile-feed-event:not(.profile-recipe-post)>:not(.profile-post-attachments){padding-inline:16px!important}
 html :is(#main#main#main#main) .profile-feed-grid>.profile-feed-event:not(.profile-recipe-post)>header{padding-top:12px!important}
 html :is(#main#main#main#main) .profile-feed-grid>.profile-feed-event:not(.profile-recipe-post)>:last-child{padding-bottom:12px!important}
 html :is(#main#main#main#main) .profile-feed-grid>.profile-recipe-post{padding:0!important}
 html :is(#main#main#main#main) :is(.recipe-publication-cap,.recipe-publication-content,.pm-recipe-link,.profile-post-attached-recipe){border-inline:0!important}
 html :is(#main#main#main#main) .recipe-publication-content::before{border-inline:0!important;inset-inline:0!important}
 /* A one-pixel media bleed is clipped by the post, preventing subpixel white seams. */
 html :is(#main#main#main#main) :is(.pm-attachments>.pm-carousel,.pm-attachments>.pm-video,.profile-post-attachments>.profile-post-photo){margin-inline:-1px!important;width:calc(100% + 2px)!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important}
 /* Full-width media meet the phone edges: no inset, border, or rounded corner. */
 html :is(#main#main#main#main) :is(.pm-attachments>.pm-carousel,.pm-attachments>.pm-video,.profile-post-attachments>.profile-post-photo){border:0!important;border-radius:0!important;padding:0!important}
 html :is(#main#main#main#main) :is(.pm-slide>img,.profile-post-photo>img,.pm-upload>video){border-radius:0!important}
 html :is(#main#main#main#main) .wide-recipe-media>:is(.card-photo,.recipe-photo-invitation){border-start-start-radius:0!important;border-end-start-radius:0!important}
 /* Each horizontal card is one screen wide, with the same cap and body as the weekly card. */
 html :is(#main#main#main#main) .recipe-shelf:has(>.recipe-carousel,>.fair-cooks-row){margin-inline:calc(50% - var(--card-screen-width,100vw)*.5)!important;width:auto!important}
 html :is(#main#main#main#main) .recipe-shelf:has(>.recipe-carousel,>.fair-cooks-row)>.recipe-shelf-header{padding-inline:17px}
 html :is(#main#main#main#main) .fair-cooks-row{padding-inline:17px;scroll-padding-inline:17px;min-width:0;box-sizing:border-box}
 html :is(#main#main#main#main) .recipe-carousel{margin-inline:0!important;width:100%!important;max-width:none!important;grid-auto-columns:100%!important;gap:10px!important;scroll-padding-inline:0!important;padding-inline:0!important}
 html :is(#main#main#main#main) .recipe-carousel>.catalog-recipe-card{width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;overflow:hidden!important}
}
