/* SI menu — bottom bar and the SI strip under the menu. Loaded in order after the files before it (see index.html). */
/* bottom nav */
.nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  z-index: 30;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  /* flexible, not five fixed slots: when a button is switched off, the others share its place */
  display: flex;
  flex-wrap: wrap;
  padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px))
    max(8px, env(safe-area-inset-left, 0px));
}
/* under the buttons: the restaurant's name and the SI mark (a link to the system's site) */
.made-by {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  margin-top: 4px;
  padding: 0 10px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
/* the strip is switched off for this restaurant (Settings → identity, system manager) */
.made-by[hidden] {
  display: none;
}
.made-by a {
  display: block;
  color: var(--ink);
  opacity: 0.9;
}
.made-by .si-mark {
  display: block;
  height: 30px;
  width: auto;
}
/* the mark takes the menu's colours: ink for the letters, the accent for the brim and the dot */
.made-by .si-mark .sm {
  fill: var(--ink);
}
.made-by .si-mark .sa {
  fill: var(--accent);
}
.nav button {
  flex: 1 1 20%; /* a fifth each; fewer buttons grow to share the bar. the SI strip, if any, goes on its own line */
  min-width: 0;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  color: var(--ink-soft);
  border-radius: 12px;
  position: relative;
}
.nav button.on,
.nav button:hover {
  color: var(--accent);
}
.nav .badge {
  position: absolute;
  top: 4px;
  inset-inline-start: calc(50% + 6px);
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--accent-bg);
  color: var(--on-accent-bg);
  font-size: 10px;
  line-height: 16px;
  padding: 0 4px;
  font-weight: 600;
}
