/* Figma round 6 (Nov 10 2026, review 5 fixes). Screen only. */

/* Old-app leftovers inside the new frame: on a desktop (mouse, wide) the
   sidebar already goes back, so "Back to Menu" above the title and
   "Back to tablet" in the sidebar are hidden. A touch tablet and a phone keep them. */
@media (min-width: 821px) and (hover: hover) and (pointer: fine) {
    html.fg-shell main#main a.back-button:is([href="/main_menu"], [href="/food"]) { display: none; }
    html.fg-shell .fig-side-tablet #navBackToTablet { display: none; }
}

/* /food: the two old tiles become Figma cards. */
html.fg-shell .fig-food-lede { margin: -2px 0 0; color: var(--fg-muted); font-size: 14px; }
html.fg-shell .fig-food-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 20px; max-width: 760px; }
html.fg-shell .fig-food-grid .fig-food-card.menu-button { min-height: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; text-align: left; padding: 18px 18px 16px; border: 1px solid var(--fg-line); border-left-width: 1px; border-left-color: var(--fg-line) !important; border-radius: 12px; background: #fff; box-shadow: var(--fg-shadow); color: var(--fg-ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
html.fg-shell .fig-food-grid .fig-food-card:hover { transform: translateY(-2px); border-color: #9dbbb5 !important; box-shadow: 0 8px 25px rgba(31,68,59,.1); }
html.fg-shell .fig-food-card .fig-food-old, html.fg-shell .fig-food-card > i.fas { display: none !important; }
html.fg-shell .fig-food-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
html.fg-shell .fig-food-icon.is-amber { background: #fbf0dc; color: #9a6413; }
html.fg-shell .fig-food-icon.is-teal { background: var(--fg-teal-soft); color: var(--fg-teal); }
html.fg-shell .fig-food-text { display: flex; flex-direction: column; gap: 3px; }
html.fg-shell .fig-food-card .menu-button-title { font-family: var(--fg-serif); font-size: 19px; font-weight: 600; letter-spacing: -.3px; color: var(--fg-ink-strong); margin: 0; }
html.fg-shell .fig-food-sub { font-size: 13px; color: var(--fg-muted); line-height: 1.4; }
html.fg-shell .fig-food-go { margin-top: 2px; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 650; color: var(--fg-teal); }
/* Outside the new frame (fg-shell off) the page is the old one. */
html:not(.fg-shell) .fig-food-icon, html:not(.fg-shell) .fig-food-sub, html:not(.fg-shell) .fig-food-go, html:not(.fg-shell) .fig-food-lede { display: none; }

/* Overview "Needs attention": a grouped row ("Vaccines due: 4 children"). */
html.fg-shell .fig-attention-item .fig-att-count { margin-left: auto; margin-right: 6px; font-size: 12px; font-weight: 700; color: #56635f; background: var(--fg-wash); border: 1px solid var(--fg-line); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
