/* Shared navigation for the two completed modules. */
body { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
.module-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
  border: 1px solid #dce6df;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: #fffefa;
  box-shadow: 0 -4px 24px #223d360a;
}
.module-nav a {
  min-height: 54px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #52645c;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.module-nav a[aria-current="page"] { background: #e8f1eb; color: #174f45; }
.module-nav a:hover { background: #f0f4ed; }
.module-nav a:focus-visible { outline: 3px solid #c37b38; outline-offset: 1px; }
.module-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; flex-shrink: 0; }
@media (max-width: 400px) { .module-nav a { font-size: 11.5px; } }
.toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
