/* Public pages only. Fix intrinsic grid widths instead of clipping the page. */
body main,body main :is(section,article,aside,form),body :is(.browse-results,.fn-results,.rd-content,.rd-sidebar,.recipe-card,.story-card,.card,.ct-article-card,.rd-card,.masthead,.header-search,.search-line){min-width:0}
body :is(.browse-layout,.fn-layout,.rd-layout,.recipe-grid,.story-grid,.ct-article-grid,.grid)>*{min-width:0}
body main :is(h1,h2,h3,h4,p,li,a,figcaption,.breadcrumbs,.eyebrow,.kicker){overflow-wrap:anywhere}
body main :is(img,video,iframe){max-width:100%}
body main pre{max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.mr-table-scroll{display:block;width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;margin-block:20px}.mr-table-scroll table{margin:0;max-width:none}.mr-table-scroll:focus-visible{outline:2px solid currentColor;outline-offset:3px}
body .mr-mobile-filters{min-width:0;max-width:100%;margin:0;align-self:start}body .mr-mobile-filters>summary{display:none}body .mr-filter-body{min-width:0}body .mr-filter-close{display:none}
@media(max-width:1000px){
 body :is(.browse-layout,.fn-layout){grid-template-columns:220px minmax(0,1fr);gap:20px}
 body .browse-results .recipe-grid,body .fn-browse .recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
 body :is(.browse-layout,.fn-layout){grid-template-columns:minmax(0,1fr)!important;gap:20px}
 body .mr-mobile-filters{border:1px solid var(--line,#dce4d8);border-radius:12px;background:var(--sage,#f3f6ef);width:100%}
 body .mr-mobile-filters>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;padding:13px 16px;font:700 16px/1.45 var(--sans,Arial,sans-serif);cursor:pointer;list-style:none;color:var(--ink,#234331)}
 body .mr-mobile-filters>summary::-webkit-details-marker{display:none}body .mr-mobile-filters>summary:after{content:'＋';font-size:22px;line-height:1}body .mr-mobile-filters[open]>summary:after{content:'−'}
 body .mr-mobile-filters[open]>summary{border-bottom:1px solid var(--line,#dce4d8)}
 body .mr-filter-body .fn-sidebar,body .mr-filter-body .filter-panel{margin:0;border:0;border-radius:0;background:transparent;width:100%;max-width:100%;padding:16px}
 body .mr-filter-body .fn-facets,body .mr-filter-body .filter-options{max-height:240px;overflow-y:auto;overscroll-behavior:contain}
 body .mr-filter-body :is(a,summary){min-height:44px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
 body .mr-filter-body .fn-facets a{align-items:center;padding-block:10px}
 body .mr-filter-close{display:block;width:calc(100% - 32px);margin:0 16px 16px;min-height:46px;border:1px solid var(--green,#31583d);border-radius:8px;background:white;color:var(--ink,#234331);font:700 15px/1.4 var(--sans,Arial,sans-serif);cursor:pointer}
 body .rd-page .rd-layout{grid-template-columns:minmax(0,1fr)!important;gap:26px}
 body .rd-page .rd-sidebar{grid-template-columns:minmax(0,1fr);position:static}
 body :is(.recipe-overview,.recipe-reading,.article-layout,.single-layout){grid-template-columns:minmax(0,1fr)!important;gap:24px}
}
@media(max-width:760px){
 body{font-size:16px;line-height:1.65}
 body .container,body .wrap{width:calc(100% - 32px);max-width:100%;margin-inline:auto}
 body :is(.rd-page,.ct-recipe,.ct-long){width:100%;max-width:100%;padding-inline:16px;margin-inline:auto}
 body .masthead{min-width:0;max-width:100%;gap:14px;padding-block:18px}
 body .site-header .masthead{display:grid;grid-template-columns:minmax(0,1fr) auto}
 body .masthead .brand{min-width:0;max-width:100%}body .brand img{width:min(180px,100%);height:auto}
 body .masthead .brand:not(:has(img)){font-size:44px;line-height:1;overflow-wrap:anywhere}
 body .masthead .brand small{font-size:9px;line-height:1.5;letter-spacing:1px;white-space:normal;margin-top:8px}
 body .masthead .header-search{grid-column:1/-1;grid-row:2;width:100%;max-width:100%;min-width:0;margin:0;padding:6px 6px 6px 12px;gap:6px;box-sizing:border-box}
 body .header-search .search-line{width:100%;max-width:100%;min-width:0;display:flex;gap:6px}
 body .header-search input,body .search-line input{min-width:0!important;width:100%;font-size:16px!important;flex:1 1 0;padding-inline:4px}
 body .header-search button,body .search-line button{flex:0 0 auto;min-height:44px;padding:9px 14px;font-size:14px;white-space:nowrap}
 body :is(.menu-toggle,.hamburger){min-width:48px;min-height:44px;max-width:100%;font-size:14px}
 body .header-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:0;max-width:100%}
 body .masthead:has(.header-actions){display:flex;flex-wrap:wrap;justify-content:space-between}
 body .masthead:has(.header-actions)>a{min-width:0;max-width:100%}
 body .masthead .logo{font-size:clamp(36px,11vw,52px);white-space:normal;overflow-wrap:anywhere}
 body .masthead .tagline{font-size:9px;letter-spacing:1px;white-space:normal}
 body .header-actions :is(button,a){min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:13px}
 body .main-nav>.container,body .nav-inner{min-width:0;max-width:100%;gap:6px;overflow:visible}
 body .main-nav.open>.container,body .nav.open .nav-inner{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding-block:12px}
 body :is(.main-nav,.nav) a{min-width:0;min-height:44px;padding:10px 8px;display:flex;align-items:center;white-space:normal;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
 body :is(.suggestions,#tavichka-suggestions,#telling-suggestions,.search-results){max-width:100%;max-height:65vh;overflow-y:auto;overscroll-behavior:contain;overflow-wrap:anywhere}
 body .edition-bar>.container{flex-wrap:wrap;gap:4px 12px;font-size:10px;line-height:1.5}
 body .top-note,body .topline{font-size:11px;line-height:1.5;padding:8px 16px;letter-spacing:.5px;overflow-wrap:anywhere}
 body :is(.archive,.page-main,.single-main){padding-top:26px;padding-bottom:36px}
 body main h1{font-size:clamp(29px,8.5vw,39px)!important;line-height:1.18;letter-spacing:-.7px}
 body main h2{line-height:1.3}body :is(.archive-heading,.category-intro){margin-bottom:24px}
 body .breadcrumbs{display:flex;flex-wrap:wrap;gap:4px 7px;font-size:13px;line-height:1.6;margin-bottom:20px}
 body :is(.archive-description,.lede,.article-body,.ct-body,.ct-intro,.article-content){font-size:16px;line-height:1.8;max-width:100%}
 body :is(.article-body,.ct-body,.article-content) h2{font-size:25px}body :is(.article-body,.ct-body,.article-content) h3{font-size:21px}
 body main figure{max-width:100%;margin-inline:0}body main figure img{height:auto;object-fit:contain}
 body .rd-page .ct-cover img{height:auto;max-height:460px;object-fit:contain}
 body :is(.tn-card,.rd-faq,.rs-community,.recipe-box,.ct-cooking){padding:18px;max-width:100%;min-width:0}
 body .tn-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 body main :is(input,select,textarea){max-width:100%;min-width:0;box-sizing:border-box;font-size:16px}
 body main :is(input[type=number],input[type=search],select,button,.button){min-height:44px}
 body .ct-facts,body .recipe-card-facts{flex-wrap:wrap}
 body .rs-stars{display:flex;flex-wrap:wrap;gap:10px}
 body :is(.pagination,.subcategory-chips,.selected-filters,.hero-buttons){display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
 body .pagination :is(a,span){min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:8px 10px;line-height:1.4;box-sizing:border-box}
 body .hero{grid-template-columns:minmax(0,1fr)!important;gap:24px;padding-top:28px}
 body .hero-visual{min-width:0;max-width:100%;padding-right:0}body .hero-badge{right:5px;transform:none}body .hero-caption{left:0;max-width:100%}
 body .section-heading{flex-wrap:wrap;gap:12px}body .section-heading .text-link{white-space:normal}
 body .category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 10px}
 body .category-card{min-width:0}body .category-card strong{white-space:normal;overflow-wrap:anywhere}
 body .category-photo{max-width:100%;width:70px;height:70px}
 body :is(.footer-grid,.footer-grid>div){min-width:0}body .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
 body .footer-grid a,body .site-footer a{overflow-wrap:anywhere;white-space:normal;line-height:1.6}
 body :is(.cookie-banner,.consent-banner){max-width:calc(100% - 20px);max-height:80dvh;overflow:auto;box-sizing:border-box}
 body dialog{max-width:calc(100vw - 24px);max-height:85dvh;overflow:auto;box-sizing:border-box}
 body :is(.cookie-buttons,.consent-actions){display:flex;flex-wrap:wrap;gap:8px}
}
@media(min-width:601px) and (max-width:900px){body :is(.recipe-grid,.browse-results .recipe-grid,.fn-browse .recipe-grid,.latest-section .recipe-grid,.story-grid,.grid,.ct-article-grid,.rd-card-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){
 body :is(.recipe-grid,.browse-results .recipe-grid,.fn-browse .recipe-grid,.latest-section .recipe-grid,.story-grid,.grid,.ct-article-grid,.rd-card-grid){display:grid;grid-template-columns:minmax(0,1fr)!important;gap:20px}
 body :is(.recipe-card,.story-card,.card,.ct-article-card,.rd-card){width:100%;max-width:100%;min-width:0}
 body :is(.recipe-image,.story-image,.card .photo){display:block;width:100%;aspect-ratio:3/2;height:auto;min-width:0}
 body :is(.recipe-image,.story-image,.card .photo)>img{display:block;width:100%;height:100%;max-width:100%;object-fit:cover}
 body .recipe-card-copy,body .story-copy{padding:17px}body .recipe-card h2,body .story-card h2,body .card h3{font-size:22px;line-height:1.35;letter-spacing:-.3px}
 body .recipe-card-copy .eyebrow,body .story-copy .kicker,body .card .eyebrow{font-size:11px;line-height:1.5;white-space:normal;letter-spacing:1px}
 body .recipe-card-facts{font-size:13px;gap:12px}
 body .rd-page .rd-mini-grid{grid-template-columns:minmax(0,1fr)}body .rd-mini-grid .rd-card{grid-template-columns:76px minmax(0,1fr)}
 body .rd-mini-grid .rd-card img{width:76px!important;height:76px!important}body .rd-card strong{font-size:17px;line-height:1.45}
 body .ct-article-card img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
 body .fn-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body .fn-hub{padding:15px;min-width:0}body .fn-hub strong{font-size:17px;overflow-wrap:anywhere}
 body .subcategory-links{grid-template-columns:minmax(0,1fr)}body .category-group-title{flex-wrap:wrap}
}
@media print{body .mr-mobile-filters{display:none!important}.mr-table-scroll{overflow:visible}.mr-filter-close{display:none!important}}
/* Long archives must wrap pagination at tablet and desktop widths too. */
body .pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:100%;min-width:0}body .pagination :is(a,span){flex:0 0 auto}
@media(min-width:761px) and (max-width:1100px){body .main-nav>.container,body .nav-inner{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 12px;max-width:100%}body :is(.main-nav,.nav) a{white-space:normal;overflow-wrap:anywhere;min-width:0}}
