/* The header the docs and the landing page share (its markup is in page.html and landing.html): the
   mark and wordmark, the main sections, search, the theme switch and the GitHub link. */

.v-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
}
.v-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--sl-color-white);
  flex-shrink: 0;
}
.v-brand svg {
  width: 2.6rem;
  height: auto;
  overflow: visible;
}
.v-trace {
  fill: none;
  stroke: var(--v-mark);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.v-spark {
  fill: var(--v-spark);
}
.v-brand span {
  font-family: var(--v-sans);
  font-variation-settings: "wdth" 88, "opsz" 48;
  font-weight: 750;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}
/* hovered, the trace sweeps in like a scope's beam with the spark at its head (on the landing
   page, the hero's big mark does this on load) */
@keyframes v-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes v-ride {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}
.v-brand:hover .v-trace {
  stroke-dasharray: 1;
  animation: v-draw 0.9s var(--v-ease) both;
}
.v-brand:hover .v-spark {
  offset-path: var(--trace);
  offset-rotate: 0deg;
  animation: v-ride 0.9s var(--v-ease) both;
  cx: 0;
  cy: 0;
}
@media (prefers-reduced-motion: reduce) {
  .v-brand:hover .v-trace,
  .v-brand:hover .v-spark {
    animation: none;
    stroke-dasharray: none;
    offset-path: none;
  }
}
.v-links {
  display: none;
  gap: 0.25rem;
}
.v-links a {
  padding: 0.35rem 0.6rem;
  border-radius: 0.3rem;
  color: var(--sl-color-gray-2);
  text-decoration: none;
  font-size: 0.95rem;
}
.v-links a:hover {
  color: var(--sl-color-white);
}
.v-links a[aria-current="true"] {
  color: var(--sl-color-white);
  box-shadow: inset 0 -2px 0 var(--sl-color-accent);
  border-radius: 0;
}
.v-search {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.v-right {
  display: none;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 50rem) {
  .v-links,
  .v-right {
    display: flex;
  }
  .v-search {
    justify-content: center;
  }
}
