/* Rules for as long as the prototype's shop script draws parts of the home page.
   This file holds no colour, size or duration of its own: where it needs one, it names the design's token.

   1. That script prints each meal's calories on a line of their own, because the bar it was written for did not
      show them. The ring does: the calories are in its middle. So the extra line is not shown, in the menu's
      tiles and in the "Also on the menu" list. In the box the line stays, because it also carries the allergens.
      This rule goes when the menu is rebuilt on the server. */
.dish__energy,
.also__energy {
  display: none;
}

/* 2. Plan 12, part 2: the server sends the home screen already on show. While it is on show, a phone keeps room under
      the footer for the sticky action bar (shop.css, .has-bar). The script marks the body with has-bar only once it
      runs, and the server cannot mark the body, which every page shares. Asking for the screen on show keeps the same
      room from the first paint, so nothing moves when the script runs. It goes with the design's script. */
body:has(#view-home.is-on) .site-footer__maker {
  padding-block-end: var(--f2f-bar-height);
}

@media (min-width: 48rem) {
  body:has(#view-home.is-on) .site-footer__maker {
    padding-block-end: 0;
  }
}
