﻿/* Keep the classroom entrance visible and every navigation destination reachable. */
.top-nav .nav-links {
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #70849e transparent;
  scroll-padding-inline: 4px;
}
.top-nav .nav-links > a,
.top-nav .nav-links > details {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
}
.top-nav .nav-links > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.top-nav .nav-links .nav-classroom {
  gap: 9px;
  padding: 10px 16px;
  color: #11233b;
  background: #e7bc71;
  border: 1px solid #f3d49f;
  border-radius: 12px;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 #ffffff40;
  transition: background .18s ease, border-color .18s ease;
}
.top-nav .nav-links .nav-classroom svg { flex: 0 0 auto; }
.top-nav .nav-links .nav-classroom:hover {
  color: #11233b;
  background: #f3d49f;
  border-color: #ffe4b7;
  transform: none;
}
.top-nav .nav-links a:focus-visible,
.top-nav .nav-links summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 768px) {
  .top-nav .nav-links {
    width: 100%;
    gap: 8px;
    padding-block: 3px;
  }
  .top-nav .nav-links > a { font-size: .85rem; }
  .top-nav .nav-links .nav-classroom { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .top-nav .nav-links .nav-classroom { transition: none; }
}
