/* Main site navigation. Kalam matches the informal handwritten typography
   of the visual reference; retain system handwriting fallbacks when offline. */
@import url("https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&display=swap");

.masthead #site-nav {
  font-family: "Kalam", "Comic Sans MS", "Segoe Print", cursive;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.masthead #site-nav .visible-links > li > a {
  margin: 0 0.46rem;
  padding: 0.72rem 0;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.masthead #site-nav .visible-links > li:first-child > a {
  margin-left: 0;
}

.masthead #site-nav .visible-links > li:last-child > a {
  margin-right: 0;
}

/* Keep Home on the same scale as all other sections. */
.masthead #site-nav .masthead__menu-item--lg {
  padding-right: 0.5rem;
}

.masthead #site-nav .visible-links .masthead__menu-home-item > a {
  font-size: 22px;
  font-weight: 700;
}

/* The priority-plus dropdown uses the same typeface and readable sizing. */
.masthead #site-nav .hidden-links > li > a {
  margin: 0;
  padding: 0.65rem 0.86rem;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

/* Greedy navigation can move items to the dropdown on narrower screens. */
@media (max-width: 840px) {
  .masthead #site-nav .visible-links > li > a,
  .masthead #site-nav .visible-links .masthead__menu-home-item > a {
    margin-right: 0.38rem;
    margin-left: 0.38rem;
    font-size: 20px;
  }

  .masthead #site-nav .visible-links > li:first-child > a {
    margin-left: 0;
  }
}
