/* Their First Meals: what its pages add to the family's shared sheets. The app page (/meals/, on
   product.css) gets a film band and the ten free dishes; each dish page (/meals/<dish>, on the
   resource-page base) gets its hero, what you need, the steps and the way into the app.
   --accent and --tint come from the page's <body>. */

/* ---- The film: a phone-shaped frame beside its words ---- */
.meals-film{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:56px;align-items:center;max-width:900px;margin-inline:auto}
.meals-film-figure{margin:0}
.meals-phone{background:var(--tint);border-radius:28px;padding:16px;box-shadow:var(--sh-2)}
.meals-phone video{display:block;width:100%;height:auto;aspect-ratio:720/1560;border-radius:16px;background:#F5F8FA}
.meals-film-figure figcaption{margin-top:12px;font-size:13px;font-weight:700;color:var(--ink-3);text-align:center}
.meals-film-copy h2{margin:0 0 16px}
.meals-film-copy p{max-width:46ch;color:var(--ink-2);margin:0 0 12px}
.meals-film-copy .eyebrow{color:var(--gold-ink);margin-bottom:14px}
.tf-product .meals-watch{border-top:1px solid var(--hairline);padding:64px 0 72px}
.tf-product .meals-free{padding-top:0}

/* ---- The free dishes: cards with the finished dish ---- */
.meals-dishes{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.meals-dishes li{margin:0;max-width:none}
.meals-dishes a{display:flex;flex-direction:column;gap:4px;height:100%;padding:12px 12px 16px;background:var(--card);border-radius:var(--r-tile);box-shadow:var(--sh-1);color:var(--ink);text-decoration:none;transition:box-shadow var(--dur-base),transform var(--dur-fast) var(--ease)}
.meals-dishes a:hover{box-shadow:var(--sh-2);transform:translateY(-1px)}
.meals-dishes .pic{display:block;position:relative;aspect-ratio:1;margin-bottom:8px;background:var(--tint);border-radius:12px}
.meals-dishes img{position:absolute;inset:13%;width:74%;height:74%;object-fit:contain}
.meals-dishes b{font-size:15px;font-weight:800;line-height:1.25;text-wrap:balance}
.meals-dishes small{font-size:12.5px;font-weight:700;color:var(--ink-3)}
.meals-more-head{margin:56px auto 28px}
.meals-more-head h3{font-family:var(--serif);font-size:clamp(22px,3vw,28px);line-height:1.2;color:var(--ink)}
.meals-dishes-small{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.meals-dishes-small a{padding:10px 10px 12px}
.meals-dishes-small b{font-size:13.5px}
.meals-dishes-small small{font-size:12px}

/* ---- A dish page ---- */
.meals-dish-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:48px;align-items:center;padding:28px 0 8px}
.meals-dish-hero .intro{padding:28px 0 20px}
.meals-dish-hero h1{margin:12px 0 20px}
.meals-dish-hero .intro p{margin:0 0 14px}
.meals-dish .group h2{margin:0 0 20px}
.meals-dish .qa h3{margin:0 0 6px}
.meals-facts{list-style:none;display:flex;flex-wrap:wrap;gap:6px 8px;margin:4px 0 18px;padding:0}
.meals-facts li{margin:0;font-size:13px;font-weight:800;color:var(--ink-2);background:var(--paper-deep);border-radius:999px;padding:7px 13px}
.meals-free-note{font-size:15px;font-weight:700;color:var(--ink-2)}
.meals-free-note a{font-weight:800;white-space:nowrap}
.meals-plate{margin:0;position:relative;aspect-ratio:1;background:var(--tint);border-radius:28px;box-shadow:var(--sh-2)}
.meals-plate img{position:absolute;inset:13%;width:74%;height:74%;object-fit:contain}
.meals-dish .group.meals-film{max-width:none;padding-block:30px}
.meals-dish .group.meals-film .meals-film-figure{width:100%;max-width:260px;justify-self:center}
.meals-need{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 40px}
.meals-need h3{font-family:var(--sans);font-size:12px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:var(--gold-ink);margin:0 0 6px}
.meals-need ul{list-style:none;margin:0;padding:0}
.meals-need li{margin:0;padding:11px 0;border-top:1px solid var(--line)}
.meals-need li:first-child{border-top:0}
.meals-need b{display:block;color:var(--ink);font-weight:800}
.meals-need span{display:block;font-size:15px}
.meals-need small{display:block;font-size:14px;color:var(--ink-3);margin-top:2px}
.meals-steps li{margin:18px 0;scroll-margin-top:16px}
.meals-steps b{display:block;color:var(--ink);font-weight:800;font-size:18px;line-height:1.45}
.meals-steps span{display:block;margin-top:2px}
.meals-steps-note{margin:22px 0 0;padding-top:18px;border-top:1px solid var(--line);font-size:15px;color:var(--ink-3)}
.meals-cta{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:32px;align-items:center;margin:28px 0 20px;padding:40px 44px;background:var(--tint);border-radius:var(--r-band);scroll-margin-top:16px}
.meals-cta h2{margin:0 0 12px}
.meals-cta p{margin:0;max-width:52ch;color:var(--ink-2)}
.meals-cta-actions{display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.meals-cta-actions .product-actions{align-items:flex-end}
.meals-cta-actions .stores{justify-content:flex-end}
.meals-cta .meals-cta-note{font-size:14px;font-weight:600;color:var(--ink-3);text-align:right;max-width:34ch}
.meals-more{padding:28px 0 56px}
.meals-more h2{margin-bottom:20px}
.meals-more-all{margin:18px 0 0}

@media (max-width:900px){
  .meals-dishes{grid-template-columns:repeat(3,minmax(0,1fr))}
  .meals-dishes-small{grid-template-columns:repeat(4,minmax(0,1fr))}
  .meals-film{gap:36px;grid-template-columns:minmax(0,260px) minmax(0,1fr)}
}
@media (max-width:760px){
  .meals-dish-hero{grid-template-columns:minmax(0,1fr);gap:8px;padding-top:8px}
  .meals-plate{order:-1;max-width:300px;width:100%;margin:20px auto 0}
  .meals-dish-hero .intro{padding-top:20px}
  .meals-cta{grid-template-columns:minmax(0,1fr);padding:30px 26px;border-radius:var(--r-card)}
  .meals-cta-actions,.meals-cta-actions .product-actions{align-items:flex-start}
  .meals-cta-actions .stores{justify-content:flex-start}
  .meals-cta .meals-cta-note{text-align:left;max-width:none}
}
@media (max-width:640px){
  .meals-film{grid-template-columns:minmax(0,1fr);gap:24px}
  .meals-film-figure{width:100%;max-width:280px;margin-inline:auto}
  .meals-film-copy{text-align:left}
  .meals-dishes{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .meals-dishes-small{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .meals-need{grid-template-columns:minmax(0,1fr)}
  .meals-need div+div{margin-top:18px}
}
