/* Database-topic-specific styling tweaks (kept tiny — most styles
   come from the shared shell.css + widgets.css). */

.lesson-card {
  display: block;
  padding: 1.2rem 1.4rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  position: relative;
}

.lesson-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--ink);
}

.lesson-card .num {
  position: absolute;
  top: -10px;
  left: -10px;
  background: var(--accent);
  color: white;
  font-family: var(--font-display);
  font-size: 0.9rem;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-6deg);
}

.lesson-card h3 {
  margin: 0 0 0.3em;
  font-size: 1.3rem;
}

.lesson-card .blurb {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* SVG primitives used across multiple widgets */
.sv-node-fill { fill: var(--paper); }
.sv-node-stroke { stroke: var(--ink); stroke-width: 2; }
.sv-text { font-family: var(--font-mono); font-size: 13px; fill: var(--ink); }
.sv-label { font-family: var(--font-body); font-size: 12px; fill: var(--ink-soft); }
.sv-accent-fill { fill: var(--accent-soft); }
.sv-accent-stroke { stroke: var(--accent); }

/* WAL stripes */
.wal-cell {
  display: inline-block;
  min-width: 36px;
  padding: 0.3em 0.4em;
  text-align: center;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-right: -1.5px;
}

.wal-cell.committed { background: #c8f0c8; }
.wal-cell.uncommitted { background: #ffe9b3; }
.wal-cell.replay { background: var(--accent-soft); }
