/* Stickwise lessons, tips and the routine timer. Colours only from style.css tokens. */

.dr-meta { gap: 8px 12px; margin-top: -8px; }
.dr-lesson { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.dr-lesson > .prose:first-child h2:first-child { margin-top: 0; }
.dr-figure { max-width: 100%; min-width: 0; }
.dr-figure .caption:empty { display: none; }
.dr-figure h3 { font-size: 16px; }
.dr-callout-body { display: flex; flex-direction: column; gap: 6px; }
.dr-list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.dr-table td .btn { white-space: nowrap; }
.dr-table td.mono { white-space: nowrap; }
.dr-part-info { min-height: 3.4em; max-width: 62ch; }

.dr-practise { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.dr-practise h2 { font-size: 22px; }
.dr-complete {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.dr-complete .btn.primary { max-width: 100%; white-space: normal; text-align: left; }

/* ---------- home ---------- */
.dr-hero { gap: 14px; }
.dr-hero select { max-width: 60%; }
.score-strip.dr-progress { grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); }

/* ---------- tips ---------- */
.dr-totd { display: flex; flex-direction: column; gap: 10px; background: var(--accent-soft); border-radius: var(--radius); padding: 18px; }
.dr-tip {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.dr-tip p { color: var(--muted); font-size: 15px; }
.dr-tip .dr-tip-link { margin-top: auto; font-size: 14px; font-weight: 600; text-decoration: none; }
.dr-tip .dr-tip-link:hover { text-decoration: underline; }
.dr-tip-featured { border-color: var(--accent); }
.dr-tip-featured h2 { font-size: clamp(24px, 5vw, 32px); }
.dr-tip-featured p { color: var(--fg); font-size: 17px; max-width: 62ch; }
.dr-tip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.dr-tips-empty { grid-column: 1 / -1; padding: 24px 0; text-align: center; }

.dr-filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; }
.dr-search { flex: 1 1 260px; }
.dr-search input { width: 100%; }
.dr-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.dr-chip-btn {
  font: 500 13px var(--font-body); padding: 6px 12px; border-radius: 999px; cursor: pointer; min-height: 34px;
  background: var(--surface-2); color: var(--muted); border: 1px solid transparent;
}
.dr-chip-btn:hover { color: var(--fg); border-color: var(--line); }
.dr-chip-btn.on { background: var(--accent); color: var(--accent-ink); }

/* ---------- routine timer ---------- */
.dr-routine-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 720px) { .dr-routine-grid { grid-template-columns: 1fr; } }
.dr-blocks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dr-block {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
}
.dr-block-body { gap: 2px; min-width: 0; }
.dr-block-min { flex: 0 0 auto; min-width: 52px; font-size: 13px; font-weight: 600; color: var(--accent); padding-top: 2px; white-space: nowrap; }
.dr-block-min input { width: 4em; min-height: 36px; padding: 4px 6px; }
.dr-block.now { border-color: var(--accent); background: var(--accent-soft); }
.dr-block.done { opacity: 0.6; }
.dr-block.done strong::after { content: ' ✓'; color: var(--good); }
.dr-timer { display: flex; flex-direction: column; gap: 12px; align-items: stretch; background: var(--surface-2); border-radius: var(--radius); padding: 16px; }
.dr-timer-label { font-weight: 600; }
.dr-timer-clock { font: 900 clamp(52px, 14vw, 84px)/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
