/* Ported from the static site (bite100.vercel.app, 2026-11-10 mobile/tablet pass).
   Changes from the original: link selectors use our clean URLs ("about#team",
   not "about.html#team"). Loaded last on every page by SiteDocument. */
/* Bite100 — mobile UX layer (loaded after every other stylesheet).
   Goal on phones: no long one-card-per-row scrolls.
   - filter/chip rows  -> one swipeable line
   - card collections  -> 2 per row, compact
   - 3–4 feature cards -> swipeable row with a peek of the next card   */

@media (max-width:767px){

  /* ---------- 1. Chip / filter rows: one horizontal line ---------- */
  .gh-chips, .fl-pills, .b1-toc, #stageFilterBar, .ab-srcs,
  .m-chips, div:has(> .filter-chip){
    display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;
    overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;
    margin-left:-18px!important;margin-right:-18px!important;padding:2px 18px 6px!important;
    gap:8px!important;scroll-padding:0 16px
  }
  .gh-chips::-webkit-scrollbar, .fl-pills::-webkit-scrollbar, .b1-toc::-webkit-scrollbar,
  #stageFilterBar::-webkit-scrollbar, .ab-srcs::-webkit-scrollbar, .m-chips::-webkit-scrollbar,
  div:has(> .filter-chip)::-webkit-scrollbar{display:none}
  .gh-chips > *, .fl-pills > *, .b1-toc > *, #stageFilterBar > *, .ab-srcs > *,
  .m-chips > *, div:has(> .filter-chip) > *{flex:0 0 auto!important;white-space:nowrap}
  .gh-chips{margin-top:28px!important}

  /* food library dropdowns: 2 × 2 instead of 4 stacked */
  .fl-selects{display:grid!important;grid-template-columns:1fr 1fr;gap:8px}
  /* food library, a search being typed: the filters fold away so what was found sits right under the search box
     (food-library.js sets .is-searching and brings the box to the top of the screen) */
  #library.is-searching .fl-selects, #library.is-searching .fl-pills{display:none!important}
  #library.is-searching .fl-count{margin-top:10px!important}
  /* recipes, the same: while a search is typed only the search row of the filter box stays (recipes.js) */
  section.is-searching:has(#recipeSearchInput) > div:not(:first-child){display:none!important}
  section.is-searching:has(#recipeSearchInput){padding-top:12px!important;padding-bottom:12px!important}
  .fl-selects select{min-width:0;width:100%;font-size:13px;padding:9px 28px 9px 12px;background-position:right 10px center}

  /* ---------- 2. Swipe rows (feature trios, plans, stages) ---------- */
  .m-swipe, .fd-stages, .ab-vals, .ab-steps, .grid:has(> article[data-plan]){
    display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;overflow-y:visible;
    scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;
    gap:12px!important;margin-left:-18px!important;margin-right:-18px!important;
    padding:6px 18px 12px!important;scroll-padding:0 16px
  }
  .m-swipe::-webkit-scrollbar, .fd-stages::-webkit-scrollbar, .ab-vals::-webkit-scrollbar,
  .ab-steps::-webkit-scrollbar, .grid:has(> article[data-plan])::-webkit-scrollbar{display:none}
  .m-swipe > *, .fd-stages > *, .ab-vals > *, .ab-steps > *,
  .grid:has(> article[data-plan]) > *{flex:0 0 84%!important;max-width:84%;min-width:0;scroll-snap-align:start}
  .fd-stages::before{display:none!important}
  .fd-stage p{font-size:14.5px!important;line-height:1.55!important}
  .grid:has(> article[data-plan]) > article{padding:20px!important}
  .grid:has(> article[data-plan]) > article [style*="font-size:52px"]{font-size:42px!important}

  /* ---------- 3. Card collections: 2 per row ---------- */
  .m-2col, .b1-cards, .b1-related, .grid:has(> article[data-recipe-href]), .grid:has(> .tl-card){
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important
  }

  /* recipe collection cards (b1) */
  .b1-card{border-radius:16px}
  .b1-card-body{padding:10px 11px 12px!important;gap:3px!important}
  .b1-card h3{font-size:15.5px!important;line-height:1.25!important}
  .b1-card p{display:none}
  .b1-card-time{font-size:11.5px!important}
  .b1-card-time .material-symbols-outlined{font-size:13px!important}
  .b1-card-age{top:7px!important;right:7px!important;padding:2px 8px!important;font-size:11px!important}

  /* related links */
  .b1-related{margin-top:14px!important}
  .b1-related a{border-radius:14px!important}
  .b1-related a > span{padding:9px 10px!important;font-size:13.5px!important;line-height:1.3;gap:4px}
  .b1-related a > span .material-symbols-outlined{font-size:16px!important}

  /* recipe hub cards */
  article[data-recipe-href]{border-radius:16px!important}
  article[data-recipe-href] > div:first-child{padding:8px 8px 10px!important;gap:6px!important}
  article[data-recipe-href] > div:first-child > div:first-child{border-radius:10px!important}
  article[data-recipe-href] > div:first-child > div:first-child > span{top:6px!important;right:6px!important;padding:2px 7px!important;font-size:10.5px!important}
  article[data-recipe-href] > div:first-child > div:nth-of-type(2){flex-wrap:wrap;gap:2px 6px!important;padding-top:0!important}
  article[data-recipe-href] > div:first-child > div:nth-of-type(2) > span{font-size:10.5px!important;line-height:1.3!important}
  article[data-recipe-href] > div:first-child > div:nth-of-type(2) .material-symbols-outlined{font-size:12px!important}
  article[data-recipe-href] h3{font-size:15.5px!important;line-height:1.25!important}
  article[data-recipe-href] > div:first-child > div.space-y-1,
  article[data-recipe-href] > div:last-child:not(:first-child){display:none!important}

  /* tool cards */
  .tl-card{border-radius:16px!important}
  .tl-card > span:last-child{padding:10px 11px 12px!important}
  .tl-card h2{font-size:15.5px!important}
  .tl-card > span:last-child > span:first-child > span:first-child,
  .tl-card p, .tl-card > span:last-child > span:last-child{display:none!important}
}

/* ---------- Hero passport: keep the open-book spread on phones, scaled to fit (zoom set in main.js) ---------- */
@media (max-width:640px){
  .b100-bk{width:640px!important;max-width:none!important;aspect-ratio:640/470!important;height:auto!important;padding-top:0!important;margin:0 0 56px 56px!important;flex-shrink:0}
  .b100-bk-cover{display:block!important}
  .b100-bk-open{position:absolute!important;right:0;bottom:4%;width:74%!important;height:88%!important;transform:rotate(2deg)!important;grid-template-columns:1fr 14px 1fr!important}
  .b100-bk-spine{display:block!important}
  .b100-bk-left{border-radius:6px 0 0 6px!important;padding-bottom:14px!important}
  .b100-bk-right{border-radius:0 6px 6px 0!important}
  .b100-bk-ribbon{height:60px!important}
  .b100-bk-caption{position:absolute!important;left:28%;bottom:-52px;margin:0!important;font-size:22px!important}
}

/* ---------- Global phone rhythm: gutters, type scale, section spacing ---------- */
@media (max-width:767px){
  .px-margin-desktop{padding-left:18px!important;padding-right:18px!important}
  .text-headline-lg{font-size:28px!important;line-height:34px!important}
  .text-headline-xl{font-size:36px!important;line-height:42px!important}
  .text-body-lg{font-size:16px!important;line-height:25px!important}
  .py-space-xl{padding-top:2rem!important;padding-bottom:2rem!important}
  .space-y-space-xl>:not([hidden])~:not([hidden]){margin-top:1.75rem!important}
}
@media (max-width:767px){
  .cut-chips{grid-template-columns:1fr 1fr!important;gap:6px!important}
  .cut-chip{padding:6px 8px 6px 6px!important;gap:8px!important}
  .cut-chip img{width:30px!important;height:30px!important}
  .cut-chip b{font-size:13px!important}
  .cut-chip span{font-size:11.5px!important}
  .cut-rules li{font-size:14.5px!important}
}
@media (max-width:767px){
  .b1-faqs{gap:8px!important}
  .b1-faq{padding:0 14px!important;border-radius:14px!important}
  .b1-faq summary{padding:12px 0!important;gap:10px}
  .b1-faq summary h3{font-size:15px!important;line-height:1.35!important}
  .b1-faq p{padding:0 0 14px!important;font-size:14.5px!important;line-height:1.55!important}
}
/* recipe hub: the two stage "doors" side by side */
@media (max-width:767px){
  .grid:has(> .pv-track){grid-template-columns:1fr 1fr!important;gap:10px!important}
  .pv-track{padding:14px 12px!important;justify-content:flex-start!important;border-radius:16px!important}
  .pv-track > img{position:static!important;width:64px!important;height:64px!important;margin-bottom:10px}
  .pv-track > div:first-of-type > div:first-child{margin-bottom:4px!important}
  .pv-track > div:first-of-type > div:first-child > span:first-child{display:none!important}
  .pv-track > div:first-of-type > div:first-child > span:last-child{font-size:10px!important}
  .pv-track h2{font-size:17px!important;line-height:1.25!important;margin:0!important}
  .pv-track p, .pv-track > div.flex-wrap{display:none!important}
}
/* food library: get to the foods fast, stamps in a 3-up sheet */
@media (max-width:767px){
  .fl-wrap{padding-top:22px!important}
  .fl-lede{font-size:15.5px!important;margin-top:8px!important}
  .fl-duo{margin-top:22px!important}
  .fl-lib{display:none!important}
  .fl-pass{padding:18px 18px 20px!important;border-radius:20px!important}
  .fl-pass-art{height:112px!important;margin-bottom:4px}
  .fl-pass h2{font-size:24px!important;margin-top:6px!important}
  .fl-pass-note{display:none!important}
  .fl-slots{margin-top:12px!important}
  .fl-pass .fl-btns{margin-top:14px!important;flex-wrap:nowrap!important}
  .fl-pass .fl-btn{padding:10px 14px!important;font-size:14px!important;white-space:nowrap}
  .fl-browse{padding-top:32px!important}
  .fl-browse-head h2{font-size:26px!important}
  .fl-seg{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;max-width:100%}
  .fl-seg-btn{padding:8px 12px!important;font-size:13px!important;white-space:nowrap}
  .fl-tools{margin-top:14px!important;gap:8px!important}
  .fl-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  .fl-card{padding:6px 6px 9px!important;border-radius:14px!important}
  .fl-top{display:none!important}
  .fl-art{aspect-ratio:1/1!important;border-radius:10px!important}
  .fl-stamp{width:66%!important}
  .fl-title{margin:7px 2px 0!important}
  .fl-title h3{font-size:14px!important;line-height:1.2!important}
  .fl-title span{font-size:11px!important}
  .fl-chips{margin:6px 2px 0!important;gap:4px!important}
  .fl-chip{font-size:9.5px!important;padding:2px 6px!important;line-height:1.3}
  .fl-chip:nth-child(n+2){display:none}
}
/* food detail: title first with a small stamp beside it, facts in one row */
@media (max-width:767px){
  .fd-hero{display:block!important;margin-top:10px!important}
  .fd-hero::after{content:"";display:block;clear:both}
  .fd-hero > div:first-child{float:right;width:108px;margin:4px 0 6px 12px}
  .fd-art-stamp img{max-width:108px!important}
  .fd-art-icon{width:96px!important}
  .fd-art-icon .fd-ms{font-size:40px!important}
  .fd-art-photo{width:108px!important}
  .fd-art-photo img{border-width:4px!important;border-radius:16px!important}
  .fd-art-photo figcaption{margin-top:6px!important;font-size:8.5px!important;line-height:1.2}
  .fd-kicker{font-size:10.5px!important;flex-wrap:wrap;gap:6px!important}
  .fd-hero h1{font-size:30px!important;line-height:1.08!important;margin-top:8px!important}
  .fd-answer{clear:both;margin-top:16px!important;padding:14px 16px!important;border-radius:16px!important}
  .fd-answer .fd-ms{left:16px!important;top:14px!important;font-size:18px!important}
  .fd-answer h2{padding-left:24px!important}
  .fd-answer p{font-size:15px!important;line-height:1.55!important}
  .fd-facts{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  .fd-fact{flex-direction:column;gap:6px!important;padding:10px!important;border-radius:14px!important}
  .fd-fact>.fd-ms{width:26px!important;height:26px!important;font-size:16px!important;border-radius:9px!important}
  .fd-fact small{font-size:9px!important;letter-spacing:.06em!important}
  .fd-fact b{font-size:16px!important}
  .fd-fact-note{top:-9px;right:6px;font-size:9.5px;gap:3px;padding:1px 6px 1px 2px}
  .fd-fact-note::before{width:11px;height:11px;font-size:8px}
}
/* b1 page header (guides, schedules, collections): image right after the title, not after all the copy */
@media (max-width:767px){
  .b1-hero{display:flex!important;flex-direction:column;gap:0!important;margin-top:12px!important}
  .b1-hero > div:first-child{display:contents!important}
  .b1-hero .b1-pill{order:1;align-self:flex-start;font-size:11px!important;padding:5px 11px!important}
  .b1-hero .b1-h1{order:2;font-size:31px!important;line-height:1.1!important;margin-top:12px!important}
  .b1-hero > figure{order:3;margin-top:16px!important;max-width:none!important}
  .b1-hero > figure img{border-width:5px!important;border-radius:18px!important;aspect-ratio:16/10}
  .b1-hero > figure figcaption{display:none}
  .b1-hero .b1-lead{order:4;font-size:15.5px!important;line-height:1.55!important;margin-top:14px!important}
  .b1-hero .b1-meta{order:5;align-self:flex-start;font-size:12.5px!important;margin-top:12px!important}
  .b1-hero .b1-ctas{order:6;margin-top:16px!important;gap:8px!important;flex-wrap:nowrap!important}
  .b1-hero .b1-btn{padding:11px 16px!important;font-size:14px!important;white-space:nowrap;flex:1 1 auto;justify-content:center}
  .b1-crumb{font-size:13px}

  /* guide components */
  .ap-jump, .gp-jump{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;margin-left:-18px!important;margin-right:-18px!important;padding:2px 18px 6px!important;gap:8px!important}
  .ap-jump > *, .gp-jump > *{flex:0 0 auto;white-space:nowrap}
  .ap-weeks, .ap-why, .ap-feat{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:10px!important;margin-left:-18px!important;margin-right:-18px!important;padding:4px 18px 12px!important;scroll-padding:0 18px}
  .ap-weeks > *, .ap-why > *, .ap-feat > *{flex:0 0 72%;min-width:0;scroll-snap-align:start}
  .ap-week .ap-wk-head{min-height:0!important}
  .ap-week .ap-stamp{width:72px!important;height:80px!important}
  .ap-week .ap-stamp img{height:64px!important}
  .ap-week h3{font-size:22px!important;margin-top:8px!important}
  .gp-related-grid{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:10px!important;margin-left:-18px!important;margin-right:-18px!important;padding:4px 18px 10px!important;scroll-padding:0 18px}
  .gp-related-grid > a{flex:0 0 46%;scroll-snap-align:start;padding:8px!important;border-radius:14px!important}
  .gp-related-grid b{display:block;margin-top:8px;font-size:13.5px;line-height:1.3}
  .gp-related{padding-top:36px!important}
}
/* guide chip navs (age switcher, on-this-page, collections) -> one swipeable line */
@media (max-width:767px){
  .gp-months, nav[aria-label="On this page"], .gp-colls, .nt-chips{
    display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;
    margin-left:-18px!important;margin-right:-18px!important;padding:2px 18px 6px!important;gap:8px!important;align-items:center
  }
  .gp-months::-webkit-scrollbar, nav[aria-label="On this page"]::-webkit-scrollbar, .gp-colls::-webkit-scrollbar, .nt-chips::-webkit-scrollbar{display:none}
  .gp-months > *, nav[aria-label="On this page"] > *, .gp-colls > *, .nt-chips > *{flex:0 0 auto!important;white-space:nowrap}
  .fd-jump{scrollbar-width:none}

  /* example-food trios on schedule pages -> swipe */
  .grid.grid-cols-1.md\:grid-cols-3:has(> div > div img[src*="/stamps/"]){display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:10px!important;margin-left:-18px!important;margin-right:-18px!important;padding:4px 18px 12px!important;scroll-padding:0 18px}
  .grid.grid-cols-1.md\:grid-cols-3:has(> div > div img[src*="/stamps/"]) > div{flex:0 0 70%;min-width:0;scroll-snap-align:start;padding:16px!important}
  .grid.grid-cols-1.md\:grid-cols-3:has(> div > div img[src*="/stamps/"]) img.w-36{width:6rem!important}

  /* guide FAQ + bullet lists: tighter */
  .gp-faq-list{gap:8px!important}
  .gp-faq-list details{padding:0 14px!important;border-radius:14px!important}
  .gp-faq-list summary{padding:12px 0!important;font-size:15px!important;line-height:1.35!important}
  .gp-faq-list p{font-size:14.5px!important;line-height:1.55!important;padding-bottom:14px}
}

/* wide data tables scroll inside their own box instead of pushing the page sideways */
@media (max-width:767px){
  main table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  main table th, main table td{white-space:normal;min-width:96px}
  /* labelled tables (main.js adds .b100-rtable + data-label): every row becomes a card, no hidden columns */
  main table.b100-rtable{display:block!important;width:100%!important;min-width:0!important;overflow:visible!important;border:0!important;background:none!important}
  main table.b100-rtable thead{display:none!important}
  main table.b100-rtable tbody{display:grid!important;gap:10px}
  main table.b100-rtable tr{display:block!important;background:#FFFDF9;border:1px solid rgba(140,113,107,.22);border-radius:14px;padding:12px 14px!important}
  main table.b100-rtable td, main table.b100-rtable tbody th{display:block!important;position:relative;min-width:0!important;width:auto!important;padding:6px 0 6px 36%!important;border:0!important;border-top:1px dashed rgba(140,113,107,.22)!important;background:none!important;text-align:left!important;font-size:14px;line-height:1.45}
  main table.b100-rtable td::before, main table.b100-rtable tbody th::before{content:attr(data-label);position:absolute;left:0;top:6px;width:32%;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#8c7e70;padding-top:2px}
  main table.b100-rtable tr > :first-child{display:block!important;border-top:0!important;padding:0 0 6px 0!important;font-family:Newsreader,Georgia,serif;font-size:18px!important;font-weight:500;color:#2b2622}
  main table.b100-rtable tr > :first-child::before{display:none}
  .gp-table, .ap-table-wrap, .fs-table-wrap, .cg-table-wrap, .tl-table-wrap, div:has(> table.b100-rtable){overflow:visible!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;max-width:100%}
}

/* ---------- QA pass fixes (2026-11-10) ---------- */
/* app shell: lock the page while the side drawer is open */
html:has(body.b100-nav-open), body.b100-nav-open{overflow:hidden!important}

@media (max-width:767px){
  /* text-card trios (recipe Allergens/Swaps/Storage, schedule tips), feeding rules, tool steps -> swipe */
  .grid.grid-cols-1.md\:grid-cols-3:not(form):not(.seal-row):not(.m-swipe):not(.b100-serve):not(:has(> article[data-plan])),
  .fs-rules, ol.tl-steps{
    display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;
    gap:10px!important;margin-left:-18px!important;margin-right:-18px!important;padding:4px 18px 12px!important;scroll-padding:0 18px
  }
  .grid.grid-cols-1.md\:grid-cols-3:not(form):not(.seal-row):not(.m-swipe):not(.b100-serve):not(:has(> article[data-plan])) > *,
  .fs-rules > *, ol.tl-steps > *{flex:0 0 78%;min-width:0;scroll-snap-align:start}
  .grid.grid-cols-1.md\:grid-cols-3:not(form):not(.seal-row):not(.m-swipe):not(.b100-serve)::-webkit-scrollbar, .fs-rules::-webkit-scrollbar, ol.tl-steps::-webkit-scrollbar{display:none}

  /* stamp-card grids (app "New this week") and icon-row collections -> 2 per row */
  .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4:has(img[src*="/stamps/"]),
  .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3:has(> a > .material-symbols-outlined){
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important
  }
  .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3:has(> a > .material-symbols-outlined) > a{padding:10px 11px!important;gap:8px!important;align-items:flex-start!important}
  .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3:has(> a > .material-symbols-outlined) > a > .material-symbols-outlined{font-size:22px!important}
  .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3:has(> a > .material-symbols-outlined) .text-label-md{font-size:13.5px!important;line-height:1.25!important}
  .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3:has(> a > .material-symbols-outlined) .text-body-sm{font-size:11.5px!important;line-height:1.3!important}

  /* b1 hero CTAs: wrap instead of touching the edges on 360px phones */
  .b1-hero .b1-ctas{flex-wrap:wrap!important}

  /* stamp filters on /foods/stamps -> one swipeable line */
  .flex.flex-wrap.justify-center.gap-2:has(> button.rounded-full){
    flex-wrap:nowrap!important;justify-content:flex-start!important;overflow-x:auto;scrollbar-width:none;
    margin-left:-18px!important;margin-right:-18px!important;padding:2px 18px 6px!important
  }
  .flex.flex-wrap.justify-center.gap-2:has(> button.rounded-full) > button{flex:0 0 auto;white-space:nowrap}

  /* recipe hero meta chips: tighter so they take 2 rows, not 4 */
  .flex.flex-wrap.gap-space-sm:has(> span.rounded-full){gap:6px!important}
  .flex.flex-wrap.gap-space-sm:has(> span.rounded-full) > span{padding:4px 9px!important;font-size:12px!important;gap:4px!important;letter-spacing:0!important;font-weight:600!important}
  .flex.flex-wrap.gap-space-sm:has(> span.rounded-full) > span .material-symbols-outlined{font-size:14px!important}

  /* buttons whose label should stay on one line */
  button[onclick="addToBag()"]{white-space:nowrap;padding-left:14px!important;padding-right:14px!important;font-size:14px!important;gap:6px!important}

  /* readable minimums */
  .fl-chip{font-size:10.5px!important}
  .fd-fact small{font-size:10px!important}
  .fd-art-photo figcaption{font-size:9.5px!important}

  /* tap targets */
  .hiw-link, .pv-rcard a, .ap-week .try a{display:inline-flex;align-items:center;min-height:36px}
  button.filter-chip, .allergen-chip, .goal-chip{min-height:34px}
  .b1-crumb a, .fd-crumb a{display:inline-flex;align-items:center;min-height:32px}
}

/* tablet 768–900: no lone single column of 3–4 cards */
@media (min-width:768px) and (max-width:900px){
  .hiw-steps{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-width:none!important;gap:12px!important}
  .hiw-step{padding:16px!important}
  .fd-stages{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
/* "Reviewed by our dietitians · …" pill: flow as one sentence, not 3 flex columns */
@media (max-width:767px){
  .rounded-full.bg-surface-container-high:has(> a[href*="about#team"]){display:block!important;border-radius:14px!important;padding:7px 12px!important;font-size:13px!important;line-height:1.45!important}
  .rounded-full.bg-surface-container-high:has(> a[href*="about#team"]) > .material-symbols-outlined{font-size:15px!important;vertical-align:-3px;margin-right:4px}
}

/* ---------- UI/UX audit fixes (2026-11-10, round 2) ---------- */
@media (max-width:767px){
  /* one mobile gutter everywhere: 18px */
  .px-margin, .px-gutter-desktop, main section.px-6, main > section.px-6{padding-left:18px!important;padding-right:18px!important}
  .fd, .fl-wrap, .ab, .b1-page{padding-left:18px!important;padding-right:18px!important}
  main [class*="max-w-"].px-4, main [class*="max-w-"].px-6{padding-left:18px!important;padding-right:18px!important}
  main > div[style*="max-width:1180px"]{padding-left:18px!important;padding-right:18px!important}

  /* headings: no orphan words */
  main h1, main h2, main h3{text-wrap:balance}

  /* recipe hub cards: time on its own line so every title starts at the same height */
  article[data-recipe-href] > div:first-child > div:nth-of-type(2){flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;min-height:30px}

  /* recipe hub eyebrow: drop the reviewed-by part from the pill (it is repeated below the cards) */
  .rounded-full.bg-surface-container:has(> span > a[href*="about#team"]){flex-wrap:wrap;justify-content:center;row-gap:2px}
  .rounded-full.bg-surface-container:has(> span > a[href*="about#team"]) > span:has(> a){flex-basis:100%;text-align:center;font-size:12px!important}
  .rounded-full.bg-surface-container:has(> span > a[href*="about#team"]) > span.rounded-full{display:none}

  /* decorations that sat on top of text */
  .absolute.-top-10.-right-10, section:has(> div > .material-symbols-outlined.text-\[160px\]) > div.absolute{display:none!important}
  .fl-pass-art{margin-bottom:16px!important}

  /* food library hero: stacked CTAs, segmented control in equal thirds */
  .fl-pass .fl-btns{flex-direction:column;align-items:stretch;flex-wrap:nowrap!important}
  .fl-pass .fl-btn{justify-content:center}
  .fl-seg{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;overflow:visible!important}
  .fl-seg-btn{justify-content:center;text-align:center;white-space:normal!important;flex-direction:column;gap:0!important;padding:7px 4px!important;font-size:12.5px!important;line-height:1.2}
  .fl-seg-btn .material-symbols-outlined{display:none}

  /* kicker pill: icon stays with its text */
  .b1-pill{flex-wrap:nowrap!important;align-items:flex-start!important;max-width:100%}
  .b1-pill .material-symbols-outlined{flex:none;margin-top:1px}

  /* pricing: promoted plan first in the swipe row */
  article[data-plan="lifetime"]{order:-1}

  /* how-to-serve stages are core safety content: vertical, compact, not a carousel */
  .fd-stages{display:grid!important;grid-template-columns:1fr!important;overflow:visible!important;margin-left:0!important;margin-right:0!important;padding:0!important;gap:10px!important}
  .fd-stages > *{flex:none!important;max-width:none!important}
  .fd-stage-top{padding:10px 14px!important;gap:10px!important}
  .fd-stage-top img{width:44px!important;height:44px!important}
  .fd-stage-top h3{font-size:19px!important}
  .fd-stage p{padding:10px 14px 14px!important}
  /* stages with cut photos: 2 × 2 grid, photo on top of each card (no 1-per-row stack of giant photos) */
  .fd-stages:has(.fd-stage-pic){grid-template-columns:1fr 1fr!important;gap:8px!important}
  .fd-stage:has(.fd-stage-pic){display:flex!important;flex-direction:column}
  .fd-stage:has(.fd-stage-pic)::before{order:-2}
  .fd-stage:has(.fd-stage-pic) .fd-stage-pic{order:-1}
  .fd-stage:has(.fd-stage-pic) .fd-stage-top{padding:10px 11px!important}
  .fd-stage:has(.fd-stage-pic) .fd-stage-top h3{margin-top:0!important}
  .fd-stage:has(.fd-stage-pic) .fd-stage-top > div{flex-wrap:nowrap!important}
  .fd-stage:has(.fd-stage-pic) .fd-stage-top span{font-size:8.5px!important;padding:0 6px 0 0!important;margin-right:6px!important;letter-spacing:.08em!important}
  .fd-stage:has(.fd-stage-pic) .fd-stage-top h3{font-size:15px!important}
  .fd-stage:has(.fd-stage-pic) p{padding:8px 10px 12px!important;font-size:13px!important;line-height:1.45!important}

  /* text-card trio rows: cards keep their own height */
  .grid.grid-cols-1.md\:grid-cols-3:not(form):not(.seal-row):not(.m-swipe):not(.b100-serve):not(:has(> article[data-plan])){align-items:flex-start!important}

  /* readable sizes for safety / meaning */
  .fl-chip{font-size:11px!important}
  .fd-art-photo figcaption{font-size:10px!important}

  /* stamp entrance: no overshoot past the screen edge on phones */
  .fd-art-stamp.b100-stamp, .fd-art-stamp .b100-stamp, .fd-art-stamp img{animation:none!important;opacity:1!important}
  .fd-art-stamp img{transform:rotate(-3deg)!important}

  /* app demo: keep the reset pill from covering content */
  .b100-demo-pill{transform:scale(.85);transform-origin:bottom right;opacity:.85}
}
/* tablet 768–1023 */
@media (min-width:768px) and (max-width:1023px){
  .gh-grid{scroll-padding-inline:16px}
  .fd-stage{height:auto!important}
  .fd-stage p{overflow:visible!important}
}
@media (max-width:1023px){ .gh-grid{scroll-padding-inline:16px} }

/* video in the b1 hero: keep its own frame, show its caption */
@media (max-width:767px){
  .b1-hero > figure.b100-video img{border:0!important;border-radius:13px!important;aspect-ratio:auto!important;box-shadow:none!important}
  .b1-hero > figure.b100-video figcaption{display:flex!important;margin-top:10px}
  .b1-hero > figure.b100-video{align-self:stretch!important;width:100%!important}
}

/* recipe "Serve it by age" = core safety content: always vertical and compact on phones (2026-11-14) */
@media (max-width:767px){
  .grid.b100-serve{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;overflow:visible!important;margin-left:0!important;margin-right:0!important;padding:0!important}
  .grid.b100-serve > *{padding:12px 14px!important;flex:none!important}
}

/* home "Recipes for every stage": the two stage cards side by side on phones */
@media (max-width:767px){
  .pv-rgrid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;padding-top:0!important;width:100%!important;max-width:100%!important}
  .pv-rgrid > *{min-width:0!important}
  .pv-rgrid .pv-rcard *{overflow-wrap:anywhere}
  .pv-rgrid .pv-rcard{display:flex!important;flex-direction:column!important;padding:14px 12px!important;border-radius:16px!important}
  .pv-rgrid .pv-rcard > img{position:static!important;display:block!important;width:68px!important;height:68px!important;margin:0 auto 10px!important;transform:none!important;float:none!important}
  .pv-rgrid .pv-rcard > div{margin:0!important;padding-left:0!important}
  .pv-rgrid .pv-rcard span{font-size:9px!important;letter-spacing:.04em!important;white-space:normal!important;line-height:1.35!important;margin-bottom:6px!important}
  .pv-rgrid .pv-rcard > div{min-width:0!important;max-width:100%!important}
  .pv-rgrid .pv-rcard h3{font-size:17px!important;line-height:1.2!important}
  .pv-rgrid .pv-rcard p{font-size:13px!important;line-height:1.45!important}
  .pv-rgrid .pv-rcard a{font-size:13px!important}
}
@media (max-width:767px){
  .pv-rgrid .pv-rcard h3, .pv-rgrid .pv-rcard span, .pv-rgrid .pv-rcard a{text-wrap:balance}
  .pv-rgrid .pv-rcard span{min-height:2.7em}
  .pv-rgrid .pv-rcard > div + div{margin-top:12px!important;padding-top:8px!important}
}

/* link rows (recipe "Find it in these collections" / "Read next", tool "Guides & recipes"):
   one swipeable line on phones like the guide rows, fading at the right edge, 40px tap targets */
@media (max-width:767px){
  [data-colls-row]{display:block!important}
  [data-colls-row] > p{margin-bottom:8px}
  [data-colls-row] > div, .b100-linkrow{
    display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;
    margin-left:-18px!important;margin-right:-18px!important;padding:2px 18px 6px!important;gap:8px!important;align-items:center
  }
  [data-colls-row] > div::-webkit-scrollbar, .b100-linkrow::-webkit-scrollbar{display:none}
  [data-colls-row] > div > a, .b100-linkrow > *{flex:0 0 auto!important;white-space:nowrap}
  [data-colls-row] > div, .b100-linkrow, .gp-colls{
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)
  }
  [data-colls-row] a, .b100-linkrow a, .gp-colls a{min-height:40px}
}
