/* NFS-specific styles */
.photo-gallery {
  margin: 1rem 0;
}

.photo-entry {
  margin-bottom: 2rem;
}

.photo-entry img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

.photo-caption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
  font-style: italic;
}

.article-photo {
  margin-bottom: 1.5rem;
}

.article-photo img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

/* Info page table of contents */
.info-toc {
  margin: 1rem 0 2rem;
  padding-left: 1.25rem;
  line-height: 1.9;
  list-style: none;
}

.info-toc > li {
  margin-bottom: 0.1rem;
}

.info-toc ul {
  padding-left: 1.75rem;
  list-style: none;
}

.info-toc ul ul {
  padding-left: 1.75rem;
}

/* Info essay page */
.info-essay p {
  margin-bottom: 1.3em;
}

.info-essay h4 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.info-essay h5 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  margin-left: 1.5rem;
}

/* People directory links */
.people-directory a {
  color: #0d3b66;
  font-weight: 700;
}

.people-directory input[type="checkbox"] {
  accent-color: #0d3b66;
}

/* NFS home page font size */
body.nfs-home {
  font-size: 1.35rem;
}

/* NFS navigation bar */
.nfs-nav {
  text-align: center;
  margin: 1.5rem 0 0.5rem;
  font-size: 0.95em;
}

.nfs-nav a {
  margin: 0 0.5em;
  white-space: nowrap;
  font-weight: 600;
}

/* People directory - night mode */
body.night-mode .filter-panel {
  background: #2a2a2a !important;
  border-color: #444 !important;
  color: #d4d4d4;
}

body.night-mode .abbrev-panel {
  background: #2a2a2a !important;
  color: #d4d4d4;
}

body.night-mode .nfs-nav a {
  color: #6baadb;
}

/* NFS responsive */
@media (max-width: 600px) {
  body.nfs-home {
    font-size: 1rem;
  }

  .nfs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  .nfs-nav a {
    display: inline-block;
    padding: 0.4rem 0.6rem;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
  }

  #nat-list,
  #occ-list {
    column-count: 2 !important;
  }

  #inst-list {
    column-count: 1 !important;
  }

  .people-directory label {
    font-size: 0.9em;
  }

  .people-directory input[type="checkbox"] {
    width: 1.15em;
    height: 1.15em;
  }
}

@media (max-width: 400px) {
  #nat-list,
  #occ-list {
    column-count: 1 !important;
  }
}

@media (max-width: 600px) {
  body.night-mode .nfs-nav a {
    border-color: #444;
  }
}
