/* phred-decoder: the quality-string decoder of module 1 (content/academy/genetics-for-data-scientists/module-1.md). */
.phred-decoder__toggle { display: inline-flex; align-items: center; gap: var(--spacing-8); color: var(--text-secondary); font-size: var(--font-size-14); }
.phred-decoder__name { margin-bottom: var(--spacing-8); font-size: var(--font-size-14); }
.phred-decoder__placement { color: var(--text-secondary); }
.phred-decoder__strip { display: flex; flex-wrap: wrap; gap: 1px; margin-bottom: var(--spacing-8); padding: var(--spacing-8); background-color: var(--background-surface-2); font-family: var(--font-family-mono); font-size: var(--font-size-12); }
.phred-decoder__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1.25rem;
  padding: 2px 0;
  border: var(--stroke-weight-1) solid transparent;
  border-radius: var(--corner-radius-xs);
  background: none;
  color: var(--text-primary);
  font: inherit;
  line-height: 1.1;
  cursor: pointer;
}
.phred-decoder__cell:hover { border-color: var(--border-strong); }
.phred-decoder__cell:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 1px; }
.phred-decoder__cell--low .phred-decoder__qual { color: var(--text-danger); font-weight: var(--font-weight-700); }
.phred-decoder__cell--negative .phred-decoder__qual { text-decoration: line-through; }
.phred-decoder__cell--mismatch .phred-decoder__base { background-color: var(--background-highlight); font-weight: var(--font-weight-700); }
.phred-decoder__cell--selected { border-color: var(--text-primary); background-color: var(--background-base); }
.phred-decoder__ref { color: var(--text-tertiary); }
.phred-decoder__cell--mismatch .phred-decoder__ref { color: var(--text-danger); }
.phred-decoder__legend { display: flex; flex-wrap: wrap; gap: var(--spacing-16); margin-bottom: var(--spacing-12); color: var(--text-secondary); font-size: var(--font-size-12); }
.phred-decoder__legend-item { display: inline-flex; align-items: center; gap: var(--spacing-4); }
.phred-decoder__swatch { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 2px; }
.phred-decoder__swatch--low { background-color: var(--text-danger); }
.phred-decoder__swatch--mismatch { background-color: var(--background-highlight); border: var(--stroke-weight-1) solid var(--border-strong); }
.phred-decoder__swatch--negative { background: linear-gradient(to top right, transparent 45%, var(--text-primary) 45%, var(--text-primary) 55%, transparent 55%); border: var(--stroke-weight-1) solid var(--border-strong); }
.phred-decoder__detail { display: grid; grid-template-columns: max-content 1fr; gap: var(--spacing-4) var(--spacing-16); margin-bottom: var(--spacing-12); font-size: var(--font-size-14); }
.phred-decoder__detail dt { color: var(--text-secondary); }
.phred-decoder__detail dd { color: var(--text-primary); font-family: var(--font-family-mono); }
.phred-decoder__summary { color: var(--text-secondary); font-size: var(--font-size-14); }
