/* ================================================================
   STEP3-BOARD.CSS — the board (../practice/step3-board.js): one block per
   person; in it one small chart per course (Seth 2026-10-12: "the text is
   much larger, and the graph is overall much simpler"), each a bar a day in
   its course's colour with its number on top, its target a dotted line with
   "N a day", and your target's handle in the left margin. Big type (15px+),
   no gridlines, tokens only. The chart is drawn at its real width, so an SVG
   px is a screen px.
   ================================================================ */

/* A course's colour: its place in the board's course list. */
.s3-c0 { --s3-ink: var(--info); }
.s3-c1 { --s3-ink: var(--accent-2); }
.s3-c2 { --s3-ink: var(--ok); }
.s3-c3 { --s3-ink: var(--warn); }

/* ---- a person ---------------------------------------------------------- */
.s3-member + .s3-member {
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding-top: 20px;
}
.s3-name {
  align-items: baseline;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  font-size: 19px;
  font-weight: 700;
  gap: 4px 10px;
  margin: 0 0 12px;
}
.s3-you {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 1px 9px;
}
/* A day every target was met (Seth, 2026-10-11: "it shows like a flame icon
   on that day"), under the day's name; the run beside the name. */
.s3-streak {
  color: var(--warn);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* ---- the charts: side by side when there is room ----------------------- */
.s3-entries {
  display: grid;
  gap: 22px 18px;
  grid-template-columns: minmax(0, 1fr);
}
.s3-entries.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.s3-entry { min-width: 0; }
.s3-entry-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin: 0 0 6px;
}
.s3-swatch {
  align-self: center;
  background: var(--s3-ink);
  border-radius: 4px;
  flex: none;
  height: 14px;
  width: 14px;
}
.s3-entry-title {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}
.s3-entry-today {
  color: var(--muted);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  margin: 0 0 0 auto;
}
.s3-entry-today b { color: var(--text); font-size: 20px; font-weight: 800; }
.s3-entry.is-met .s3-entry-today,
.s3-entry.is-met .s3-entry-today b { color: var(--ok); }
.s3-entry-note { color: var(--muted); font-size: 15px; margin: 4px 0 0; }
.s3-entry-note.is-error { color: var(--danger); }
.s3-wait { color: var(--muted); font-size: 15px; margin: 0; }

.s3-chart {
  display: block;
  height: auto;
  max-width: 100%;
  overflow: visible;
}
.s3-chart.is-dragging { cursor: ns-resize; user-select: none; }

/* The bars: solid, in the course's colour; the days to come are blank. */
.s3-fill { fill: var(--s3-ink); }
.s3-num {
  fill: var(--text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  paint-order: stroke;
  stroke: var(--surface);
  stroke-linejoin: round;
  stroke-width: 4px;
}
.s3-num.is-zero { fill: var(--muted); font-weight: 500; }
.s3-dayname { fill: var(--muted); font-size: 15px; }
.s3-day.is-today .s3-dayname { fill: var(--text); font-weight: 700; }
.s3-day.is-ahead .s3-dayname { opacity: 0.55; }
.s3-floor { stroke: var(--border-strong, var(--border)); stroke-width: 2; }
.s3-flame { font-size: 18px; }

/* The target: a dotted line in the course's colour, "N a day" on it. */
.s3-target {
  stroke: var(--s3-ink);
  stroke-dasharray: 3 6;
  stroke-linecap: round;
  stroke-width: 3;
}
.s3-target.is-unset { opacity: 0.35; }
.s3-target-label {
  fill: var(--s3-ink);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  /* A halo in the card colour keeps it legible where it crosses a bar. */
  paint-order: stroke;
  stroke: var(--surface);
  stroke-linejoin: round;
  stroke-width: 5px;
}
.s3-target-label.is-unset { fill: var(--muted); font-weight: 600; }

/* Your handle, far left: a pill carrying the number; the margin is its lane. */
.s3-lane { cursor: ns-resize; fill: transparent; touch-action: none; }
.s3-handle { cursor: ns-resize; outline: none; touch-action: none; }
.s3-handle-pill { fill: var(--s3-ink); stroke: var(--surface); stroke-width: 2; }
.s3-handle-num {
  fill: var(--surface);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  pointer-events: none;
}
.s3-handle-grip {
  fill: none;
  stroke: var(--s3-ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}
.s3-handle.is-unset .s3-handle-pill { opacity: 0.55; }
.s3-handle:hover .s3-handle-pill,
.s3-chart.is-dragging .s3-handle-pill { stroke: var(--text); }
.s3-handle:focus-visible .s3-handle-pill { stroke: var(--text); stroke-width: 3; }

/* Your Practice button under each of your charts, in that chart's colour
   (Seth 2026-10-12: a button per graph, "color-coded ... obvious the
   connection"); it practises that course only (practice/run-mode.js). */
.s3-go {
  align-items: center;
  background: var(--s3-ink);
  border: 2px solid var(--s3-ink);
  border-radius: 12px;
  color: var(--surface);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 10px 0 0;
  padding: 12px 16px;
  width: 100%;
}
.s3-go:hover { filter: brightness(1.08); }
.s3-go:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.s3-go-word { font-size: 19px; font-variant-numeric: tabular-nums; font-weight: 800; }
.s3-go-sub { font-size: 14px; font-weight: 600; opacity: 0.9; }
.s3-entry.is-met .s3-go { background: transparent; color: var(--s3-ink); }
