/* Shared student/parent application footer. */

.nn-student-footer {
  margin-top: 48px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.nn-student-footer__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  max-width: 1120px;
  padding-top: 25px;
  padding-bottom: 25px;
}

.nn-student-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  text-decoration: none;
}

.nn-student-footer__brand:hover,
.nn-student-footer__brand:focus-visible {
  color: #0f172a;
  text-decoration: none;
}

.nn-student-footer__brand img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nn-student-footer__brand span {
  display: grid;
  gap: 1px;
}

.nn-student-footer__brand strong {
  font-size: 0.9rem;
  font-weight: 800;
}

.nn-student-footer__brand small {
  color: #64748b;
  font-size: 0.73rem;
}

.nn-student-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: wrap;
}

.nn-student-footer__links a {
  color: #475569;
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
}

.nn-student-footer__links a:hover,
.nn-student-footer__links a:focus-visible {
  color: #087780;
}

.nn-student-footer__copyright {
  margin: 0;
  color: #94a3b8;
  font-size: 0.74rem;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .nn-student-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 17px;
    padding: 24px 18px 28px;
    text-align: center;
  }

  .nn-student-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 360px);
    gap: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
  }

  .nn-student-footer__links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 10px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
  }

  .nn-student-footer__links a:nth-child(2n) {
    border-right: 0;
  }

  .nn-student-footer__links a:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 420px) {
  .nn-student-footer__links {
    grid-template-columns: 1fr;
  }

  .nn-student-footer__links a,
  .nn-student-footer__links a:nth-child(2n),
  .nn-student-footer__links a:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .nn-student-footer__links a:last-child {
    border-bottom: 0;
  }
}
