/* Learn - SQL: the pieces the Python site has no use for (result charts, the "other systems" callout), on the shared tokens. */

/* ---------------------------------------------------------------- chart */
.chart-wrap {
  direction: ltr;
  position: relative;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--rule);
  background: var(--surface);
}

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-svg text {
  font-family: var(--font-body);
  fill: var(--ink-3);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.chart-grid line {
  stroke: var(--chart-grid);
  stroke-width: 1;
}

.chart-axis line {
  stroke: var(--chart-axis);
  stroke-width: 1;
}

.chart-bar {
  transition: opacity var(--dur-fast);
}

.chart-bar.is-dim {
  opacity: 0.45;
}

.chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-area {
  opacity: 0.1;
}

.chart-dot {
  stroke: var(--surface);
  stroke-width: 2;
}

.chart-crosshair {
  stroke: var(--rule-strong);
  stroke-width: 1;
}

.chart-hit {
  fill: transparent;
  cursor: crosshair;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 6px;
  font-size: var(--fs-xs);
  color: var(--ink-2);
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-key {
  width: 14px;
  height: 3px;
  border-radius: 2px;
}

.chart-key.is-rect {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  min-width: 120px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  font-size: var(--fs-xs);
  color: var(--ink-2);
}

.chart-tooltip-title {
  margin-bottom: 4px;
  color: var(--ink-2);
  font-family: var(--font-mono);
}

.chart-tooltip-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-tooltip-row strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.chart-note {
  padding: 10px 14px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

/* Other database systems: a quiet aside next to the SQLite way. */
.callout-dialect {
  --callout-bg: var(--surface-2);
  --callout-line: var(--rule);
  --callout-chip: var(--surface);
  --callout-ink: var(--ink-2);
}

/* Small grey hint lines (schema drawer, playground rail). */
.sync-note {
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
