/* sm-nav.css — StudentMenu's bottom menu, v1.3 (the markup is in sm-nav.html). Load it after home.html's own styles:
   it only changes how the menu looks, not when it shows (home.html still shows #mnav on phones only).
   Off: quiet grey lines. On: a soft purple pill behind the icon, a light purple fill, and one orange detail. */
#mnav {
  --nav-bg: rgba(255, 255, 255, .9); --i-bg: #fff; --nav-ring: #fff;
  --nav-ink: var(--ink-faint, #675F7F); --nav-hover: var(--ink-soft, #5C566F); --nav-on: var(--purple-deep, #57309C);
  --nav-pill: rgba(108, 63, 197, .11); --nav-tint: rgba(108, 63, 197, .17); --nav-acc: #FF8A3D; --nav-acc-line: #E8701F;
  justify-content: space-around; align-items: stretch; gap: 0; padding: 6px 6px calc(7px + env(safe-area-inset-bottom, 0px));
  background: var(--nav-bg); border-top: 1px solid rgba(32, 26, 51, .07); box-shadow: 0 -12px 30px -24px rgba(32, 26, 51, .4);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
}
#mnav > a, #mnav > .center {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-height: 52px; margin: 0; padding: 0;
  border: 0; background: none; color: var(--nav-ink); font: 600 11px/1.1 var(--body, 'Manrope', system-ui, sans-serif); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; position: relative; top: 0;
}
#mnav .smn-ico { display: grid; place-items: center; width: 54px; height: 30px; border-radius: 999px; transition: background-color .2s ease, transform .15s ease; }
#mnav .smn-ico svg { display: block; width: 24px; height: 24px; overflow: visible; }
#mnav .smn-label { white-space: nowrap; }
#mnav > a:hover { color: var(--nav-hover); }
#mnav > a:active .smn-ico { transform: scale(.94); }
#mnav > a.on { color: var(--nav-on); font-weight: 800; }
#mnav > a.on .smn-ico { background: var(--nav-pill); --i-fill: var(--nav-tint); --i-acc: var(--nav-acc); --i-acc-line: var(--nav-acc-line); --i-dot: #fff; }
#mnav > :is(a, .center):focus-visible { outline: none; }
#mnav > a:focus-visible .smn-ico, #mnav > .center:focus-visible .minicard { outline: 2px solid var(--orange, #FF8A3D); outline-offset: 2px; }

/* Order: your card, in miniature, raised above the bar (R215: the card itself again, as on the wallet; the purple
   scan frame around a tiny card is gone). card-designs / home.html put your design on #mnavCard; without one,
   StudentMenu's purple. */
#mnav > .center { flex: 0 0 76px; justify-content: flex-start; color: var(--nav-on); font-weight: 800; }
#mnav > .center .smn-label { margin-top: auto; }
#mnav .minicard { position: relative; display: block; flex: none; width: 60px; height: 38px; margin: -17px 0 0; overflow: hidden; border-radius: 9px;
  background: #5B2E9D linear-gradient(135deg, #8253E0 0%, #6C3FC5 46%, #4B2690 100%); background-size: cover; background-position: center;
  box-shadow: 0 0 0 3px var(--nav-ring), 0 12px 22px -10px rgba(87, 48, 156, .85); transition: transform .15s ease; }
#mnav .minicard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .35); }
#mnav .minicard img { width: 100%; height: 100%; object-fit: cover; display: block; }
#mnav > .center:hover .minicard { filter: brightness(1.06); }
#mnav > .center:active .minicard { transform: translateY(-2px) scale(1.04); }

/* the basket pill's icon */
#cartPill .ico { flex: none; width: 18px; height: 18px; }

/* dark */
body.dark #mnav { --nav-bg: rgba(24, 18, 38, .9); --i-bg: #181226; --nav-ring: #1b1429; --nav-ink: #A99DC9; --nav-hover: #CFC5EA; --nav-on: #D9C9FF;
  --nav-pill: rgba(157, 92, 255, .2); --nav-tint: rgba(157, 92, 255, .32); border-top-color: rgba(255, 255, 255, .06); box-shadow: 0 -12px 30px -24px rgba(0, 0, 0, .8); }

@media (prefers-reduced-motion: reduce) { #mnav .smn-ico, #mnav .minicard { transition: none; } }
@media (prefers-reduced-transparency: reduce) { #mnav { background: var(--surface, #fff); -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.dark #mnav { background: #181226; } }
