/* Masthead and colophon, the same on every site. */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
  position: relative;
  z-index: 10;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: var(--s1);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; }
.masthead ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.masthead nav a {
  display: inline-block;
  padding-block: 0.25rem;
  font-weight: 600;
  text-decoration: none;
}
.masthead nav a:hover,
.masthead nav a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 0.14em;
}

.colophon {
  margin-top: 6rem;
  background: var(--ink);
  color: var(--paper);
}
.colophon-bands { display: flex; height: 14px; }
.colophon-bands span { flex: 1; }
.colophon-bands span:nth-child(1) { background: var(--sun); }
.colophon-bands span:nth-child(2) { background: var(--tangerine); }
.colophon-bands span:nth-child(3) { background: var(--leaf); }
.colophon-bands span:nth-child(4) { background: var(--lagoon); }
.colophon-bands span:nth-child(5) { background: var(--sky); }
.colophon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2.5rem;
  padding-block: 3.5rem 4rem;
}
.colophon h2 {
  font-size: var(--s1);
  font-stretch: 115%;
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li + li { margin-top: 0.35rem; }
.colophon a { color: var(--paper); }
.colophon .colophon-legal { margin-top: 1rem; }
.colophon :focus-visible { outline-color: var(--paper); }

/* Every product of the QuantyVerse, one click away from any page. */
.verse-bar {
  background: var(--ink);
  color: var(--paper);
  font-size: var(--s-1);
}
.verse-bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  list-style: none;
  margin: 0;
  padding-block: 0;
}
.verse-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 4px solid transparent;
}
.verse-bar a:hover { border-bottom-color: var(--rule); }
.verse-bar a[aria-current] { border-bottom-color: var(--sun); }
.verse-core a[aria-current] { border-bottom-color: var(--coral); }
.verse-db a[aria-current] { border-bottom-color: var(--leaf); }
.verse-kube a[aria-current] { border-bottom-color: var(--sky); }
.verse-bar :focus-visible { outline-color: var(--paper); }

.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--sun);
}
.to-top[hidden] { display: none; }
.to-top:hover { box-shadow: 4px 4px 0 var(--tangerine); }
.to-top:focus-visible { outline-color: var(--ink); }
/* on phones only the arrow, so it covers less of the text; the name
   stays for screen readers */
@media (max-width: 40rem) {
  .to-top { width: 44px; padding: 0; justify-content: center; }
  .to-top-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media print { .to-top, .verse-bar { display: none; } }
