/* =============================================================================
   THE ARTIFACT, NaviBeat.

   Direction 4 shares a chassis between the two sites and diverges in exactly
   two places: five colour slots, and this. The artifact is the thing a template
   cannot contain. Panic ships a 26 KB script so a 16-pixel fly walks the
   homepage around the real bounding boxes of DOM elements. Sketch confines a
   handwriting face to a single rule in 232 KB of CSS.

   NaviBeat's artifact is a working 10-band equaliser, because music is about
   sound. It maps to a feature the app actually ships ("A 10-band EQ on the new
   audio engine"), so it demonstrates rather than decorates. NaviFin's
   counterpart is a working scrubber, because video is about time.

   Built on real <input type="range"> elements, so the keyboard, screen readers
   and touch all work without any of it being reimplemented.
   ============================================================================= */

.eq-band {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--raise);
  max-width: 780px;
}

.eq-band__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}
.eq-band__preset { color: var(--emph); }

.eq-band__stage { position: relative; padding: 20px 18px 8px; }
.eq-band__curve {
  position: absolute;
  inset: 20px 18px 8px;
  pointer-events: none;
}
.eq-band__bands {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
}
.eq-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Vertical range input. writing-mode is the modern way; the older Firefox
   orient attribute is set in the JS as a fallback. */
.eq-col input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 22px;
  height: 150px;
  background: transparent;
  cursor: ns-resize;
  margin: 0;
}
.eq-col input[type="range"]::-webkit-slider-runnable-track {
  width: 3px;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 2px;
}
.eq-col input[type="range"]::-moz-range-track {
  width: 3px;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 2px;
}
.eq-col input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 8px;
  border-radius: 2px;
  background: var(--emph);
  border: 0;
  margin-left: -8.5px;
}
.eq-col input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 8px;
  border-radius: 2px;
  background: var(--emph);
  border: 0;
}
.eq-col input[type="range"]:focus-visible {
  outline: 2px solid var(--emph);
  outline-offset: 4px;
  border-radius: 3px;
}
.eq-col__f {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-2);
  margin-top: 10px;
}

.eq-band__read {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px 14px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
  flex-wrap: wrap;
}
.eq-band__read b { color: var(--text-0); font-weight: 400; }
.eq-hint { font-size: 13px; color: var(--text-2); margin-top: 14px; }

@media (max-width: 640px) {
  .eq-band__bands { gap: 5px; }
  .eq-col input[type="range"] { height: 122px; width: 16px; }
  .eq-col__f { font-size: 9px; }
}
