/* One shared component for every student screen. Desktop keeps its text menu. */
.student-nav { display: flex; align-items: center; gap: 8px; }
.student-nav a { min-height: 44px; display: flex; align-items: center; padding: 10px 15px; border-radius: 8px; text-decoration: none; font-size: .9375rem; }
.student-nav a[aria-current="page"] { background: var(--ink); color: var(--surface); }
.student-nav-symbol { display: none; }

@media (max-width: 767px) {
  /* Reserve the fixed bar's space on every route, including future screens. */
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .student-nav {
    position: fixed; z-index: 5; inset: auto 0 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
    padding: 7px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
    border: 1px solid #e6e0d6; border-bottom: 0; border-radius: 22px 22px 0 0;
    background: #fffcf7;
  }
  .student-nav a {
    flex-direction: column; justify-content: center; gap: 4px;
    min-width: 0; min-height: 64px; padding: 7px 3px; border-radius: 22px;
    background: transparent; color: #1c1c1a;
    font-size: .8125rem; font-weight: 400; line-height: 1.25;
    text-align: center; white-space: nowrap;
  }
  .student-nav a[aria-current="page"] { background: #fff0dc; color: #b95a0b; font-weight: 600; }
  .student-nav a:focus-visible { outline-offset: 1px; }
  .student-nav-symbol { display: block; position: relative; width: 28px; height: 28px; flex: none; color: #171715; }
  .student-nav-icon { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
  .student-nav a[aria-current="page"] .student-nav-icon { stroke-width: 2.2; }
  .student-nav-profile-dot { position: absolute; top: 0; right: -4px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
}
