/* ════════════════════════════════════════════════════════════════
   Hash Tables from Scratch · Tutorial-specific styles
   Builds on tutorial.css design tokens.
   ════════════════════════════════════════════════════════════════ */

/* ── History timeline (same shape as sort-tutorial.css / graph-tutorial.css;
      duplicated so this tutorial does not need to load those stylesheets) ─ */
.sort-timeline {
  margin: 1.75rem 0 2.25rem;
  border-left: 1px solid var(--tut-border);
  padding-left: 1.25rem;
}

.sort-timeline-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.25rem;
  padding: 0.55rem 0;
  align-items: baseline;
}

.sort-timeline-year {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--tut-accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  position: relative;
}

.sort-timeline-year::before {
  content: '';
  position: absolute;
  left: -1.95rem;
  top: 0.4em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tut-accent);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

.sort-timeline-body {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--tut-soft);
}

.sort-timeline-body strong { color: var(--tut-text); font-weight: 600; }

/* ── Code blocks ─────────────────────────────────────────────────── */
pre.code code {
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  white-space: pre;
  display: block;
}

/* ── Card visual on the home index for this tutorial ─────────────── */
.tut-card-visual.hash-bg,
.game-card-visual.hash-bg {
  background:
    radial-gradient(circle at 30% 35%, rgba(248, 113, 113, 0.24), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(96, 165, 250, 0.22), transparent 45%),
    linear-gradient(135deg, #0a0a1f 0%, #1a0a2e 50%, #0a1a16 100%);
}

/* ── Table styling (reuse from existing tutorials) ────────────────── */
.rep-table {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.rep-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.55;
}

.rep-table th {
  text-align: left;
  font-weight: 700;
  color: var(--tut-text);
  padding: 0.55rem 0.75rem;
  border-bottom: 2px solid var(--tut-border);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rep-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--tut-border-soft);
  color: var(--tut-soft);
  vertical-align: top;
}

.rep-table td strong { color: var(--tut-text); }
