/* The header on QuizBrewer's public pages other than the home page (terms, privacy, the free
   Christmas quiz, Find a quiz): the same menu as the home page, staying at the top as you scroll. */
html {
  scroll-padding-top: 90px;
}
header.qb-top {
  position: sticky;
  top: 0;
  z-index: 20;
  width: auto;
  margin: 0;
  padding: 0;
  display: block;
  background: #edf0ea;
  border-bottom: 1px solid #cbd2cb;
}
.qb-top .qb-wrap {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}
.qb-top .qb-logo img {
  height: 34px;
  width: auto;
  display: block;
}
.qb-top nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.qb-top .qb-main {
  margin-left: auto;
}
.qb-top nav a {
  white-space: nowrap;
  text-decoration: none;
  font-weight: 700;
  color: #1c221f;
}
.qb-top nav a:hover {
  color: #17372c;
  text-decoration: underline;
}
.qb-top nav a[aria-current='page'] {
  color: #17372c;
  text-decoration: underline;
}
.qb-top nav a.qb-btn {
  background: #e2a83e;
  color: #17372c;
  padding: 0.7em 1.2em;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.qb-top .qb-mob {
  display: none;
}
/* The section links move to a second row below 1000px (iPads upright included). */
@media (max-width: 999px) {
  html {
    scroll-padding-top: 120px;
  }
  .qb-top .qb-wrap {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0 10px;
  }
  .qb-top .qb-main .hide-sm {
    display: none;
  }
  .qb-top .qb-main {
    gap: 14px;
  }
  .qb-top nav a.qb-btn {
    padding: 0.6em 1em;
  }
  .qb-top .qb-mob {
    display: flex;
    flex-wrap: wrap;
    row-gap: 6px;
    gap: 18px;
    width: 100%;
    font-size: 0.95rem;
  }
}
@media (max-width: 400px) {
  .qb-top .qb-logo img {
    height: 28px;
  }
  .qb-top .qb-mob {
    column-gap: 14px;
    font-size: 0.9rem;
  }
}
