/* Interactive temperature demo (used in notes and slides) */
.td { border: 1px solid #ddd8cc; border-radius: 12px; padding: 16px; background: #fff; color: #1f2328; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-align: left; }
.td-prompt { font-size: 1.05em; margin-bottom: 10px; }
.td-prompt b { color: #c2410c; }
.td-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.td-controls input[type=range] { flex: 1 1 200px; accent-color: #c2410c; }
.td-tval { font-weight: 700; min-width: 7.5em; }
.td-row { display: grid; grid-template-columns: 6em 1fr 3.5em; gap: 8px; align-items: center; margin: 4px 0; }
.td-word { font-weight: 600; }
.td-bar { height: 18px; background: #f1ede4; border-radius: 4px; overflow: hidden; }
.td-bar span { display: block; height: 100%; background: #c2410c; transition: width 0.25s; }
.td-pct { text-align: right; font-variant-numeric: tabular-nums; color: #5b636e; }
.td-actions { margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.td-actions button { font: inherit; padding: 6px 14px; border-radius: 999px; border: 1.5px solid #c2410c; background: #c2410c; color: #fff; cursor: pointer; }
.td-out { font-family: ui-monospace, Consolas, monospace; color: #1d4ed8; }
.td-hint { font-size: 0.85em; color: #5b636e; margin-top: 8px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .td.td-themed { background: #1d2024; color: #e8e6e1; border-color: #33373d; }
  :root:not([data-theme="light"]) .td.td-themed .td-bar { background: #2c3036; }
  :root:not([data-theme="light"]) .td.td-themed .td-pct,
  :root:not([data-theme="light"]) .td.td-themed .td-hint { color: #a1a7b0; }
  :root:not([data-theme="light"]) .td.td-themed .td-out { color: #93b4ff; }
}
