/* Noto Serif KR is the font identified in the homepage popup's local
   LogosPromoSerif face. Load the full family, not its 20-glyph title subset.
   Presentation only: sorting, playback timing and counters stay unchanged. */
:root {
  --sort-popup-font: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --sort-waiting: #dedee9;
  --sort-compare: #ffbe80;
  --sort-move: #b8a1f0;
  --sort-fixed: #7dd7bf;
  --sort-waiting-edge: #8a899d;
  --sort-compare-edge: #b66a2c;
  --sort-move-edge: #8055b8;
  --sort-fixed-edge: #338972;
}
body[data-sorting-version='2'] {
  font-family: var(--sort-popup-font);
  font-synthesis: none;
}
body[data-sorting-version='2'] :is(button,input,select,option,summary,.timer-value,.heap-view text) {
  font-family: var(--sort-popup-font);
}
body[data-sorting-version='2'] :is(h1,h2,h3,.algo-name,.narration h3) {
  font-weight: 900;
  letter-spacing: -.025em;
}
body[data-sorting-version='2'] :is(.algorithm-header p,.narration p,.dataset-options p,.run-description p) {
  line-height: 1.85;
  letter-spacing: 0;
}
body[data-sorting-version='2'] .timer-value {
  font-variant-numeric: tabular-nums;
  font-size: clamp(22px,2.4vw,32px);
  letter-spacing: -.025em;
}
/* Keep bright fills separate from the darker accessible labels/outlines. */
body[data-sorting-version='2'] .number-bar .bar-body {
  background: var(--sort-waiting);
  box-shadow: inset 0 0 0 1px var(--sort-waiting-edge);
  border-radius: 5px 5px 2px 2px;
}
body[data-sorting-version='2'] .number-bar.is-active .bar-body {
  background: var(--sort-compare);
  box-shadow: inset 0 0 0 1px var(--sort-compare-edge);
}
body[data-sorting-version='2'] .number-bar.is-moving .bar-body {
  background: var(--sort-move);
  box-shadow: inset 0 0 0 1px var(--sort-move-edge);
}
body[data-sorting-version='2'] .number-bar.is-fixed:not(.is-active):not(.is-moving) .bar-body {
  background: var(--sort-fixed);
  box-shadow: inset 0 0 0 1px var(--sort-fixed-edge);
}
body[data-sorting-version='2'] .legend-dot.waiting {background:var(--sort-waiting);box-shadow:inset 0 0 0 1px var(--sort-waiting-edge)}
body[data-sorting-version='2'] .legend-dot.compare {background:var(--sort-compare);box-shadow:inset 0 0 0 1px var(--sort-compare-edge)}
body[data-sorting-version='2'] .legend-dot.move {background:var(--sort-move);box-shadow:inset 0 0 0 1px var(--sort-move-edge)}
body[data-sorting-version='2'] .legend-dot.fixed {background:var(--sort-fixed);box-shadow:inset 0 0 0 1px var(--sort-fixed-edge)}
body[data-sorting-version='2'] .array-strip .active {outline-color:var(--sort-compare-edge);background:#fff0df}
body[data-sorting-version='2'] .aux-chip {background:#eee6fc;color:#412360}
body[data-sorting-version='2'] .aux-chip.is-active {background:var(--sort-compare);color:#523009}
body[data-sorting-version='2'] .aux-group.is-active {background:#fff3e5;border:1px solid var(--sort-compare-edge)}
body[data-sorting-version='2'] .aux-chip.is-fixed {background:var(--sort-fixed);color:#174c40}
body[data-sorting-version='2'] .heap-view circle {fill:#eee6fc;stroke:var(--sort-move-edge);stroke-width:1}
body[data-sorting-version='2'] .heap-view .is-active circle {fill:var(--sort-compare);stroke:var(--sort-compare-edge);stroke-width:1}
body[data-sorting-version='2'] .count-cell.is-active {background:#ffe3c3;color:#523009}
body[data-sorting-version='2'] .count-cell.is-active strong {color:#523009}
body[data-sorting-version='2'] .bead.full {background:#bab4d0}
body[data-sorting-version='2'] .bead.full.focus {background:var(--sort-move)}
body[data-sorting-version='2'] .bead.focus {outline:1px solid var(--sort-move-edge)}
body[data-sorting-version='2'] .bead-matrix.is-final .bead.full {background:var(--sort-fixed)}
/* The canvas contains only bars and the zero line; labels remain unfiltered.
   This is a display-only treatment, outside the timed worker calculation. */
body[data-sorting-version='2'] #runCanvas {filter:brightness(1.35) saturate(.8);opacity:.72}
@media(max-width:650px) {
  body[data-sorting-version='2'] .timer-value {font-size:24px}
  body[data-sorting-version='2'] .narration {min-height:200px}
}
@media(forced-colors:active) {
  body[data-sorting-version='2'] #runCanvas {filter:none;opacity:1}
}
