/* Free Demo (demo.php). Prefix dm-. No inline styles are used anywhere: the CSP forbids them. */
.demo { max-width: 46rem; margin: 0 auto; }
.dm-view[hidden] { display: none; }
.dm-kicker { margin: 0 0 0.3rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.dm-zh { color: var(--muted); font-size: 1rem; }
.dm-small { color: var(--muted); font-size: 0.95rem; margin-top: 0.4rem; }
.dm-center { text-align: center; }
.dm-cap { display: block; color: var(--muted); font-size: 0.9rem; }

/* the four steps at the top of every demo page */
.dm-steps { list-style: none; display: flex; gap: 0.4rem; padding: 0; margin: 0 auto 1rem; max-width: 46rem; }
.dm-steps li { flex: 1; text-align: center; font-size: 0.85rem; color: var(--muted); border-top: 4px solid var(--line); padding-top: 0.35rem; }
.dm-steps li span { display: inline-block; width: 1.4rem; height: 1.4rem; line-height: 1.4rem; border-radius: 50%; background: var(--line); color: #fff; font-weight: 700; margin-right: 0.25rem; }
.dm-steps[data-step="1"] li[data-n="1"], .dm-steps[data-step="2"] li[data-n="2"],
.dm-steps[data-step="3"] li[data-n="3"], .dm-steps[data-step="4"] li[data-n="4"] { border-top-color: var(--amber); color: var(--ink); font-weight: 700; }
.dm-steps[data-step="1"] li[data-n="1"] span, .dm-steps[data-step="2"] li[data-n="2"] span,
.dm-steps[data-step="3"] li[data-n="3"] span, .dm-steps[data-step="4"] li[data-n="4"] span { background: var(--teal); }
.dm-steps[data-step="2"] li[data-n="1"], .dm-steps[data-step="3"] li[data-n="1"], .dm-steps[data-step="3"] li[data-n="2"],
.dm-steps[data-step="4"] li[data-n="1"], .dm-steps[data-step="4"] li[data-n="2"], .dm-steps[data-step="4"] li[data-n="3"],
.dm-steps[data-step="5"] li { border-top-color: var(--teal); }
.dm-steps[data-step="2"] li[data-n="1"] span, .dm-steps[data-step="3"] li[data-n="1"] span, .dm-steps[data-step="3"] li[data-n="2"] span,
.dm-steps[data-step="4"] li[data-n="1"] span, .dm-steps[data-step="4"] li[data-n="2"] span, .dm-steps[data-step="4"] li[data-n="3"] span,
.dm-steps[data-step="5"] li span { background: var(--good); }
.dm-steps[data-step="0"] { display: none; }

.dm-path { padding-left: 1.2rem; margin: 0 0 1rem; }
.dm-path li { margin-bottom: 0.35rem; }
.dm-path li span { color: var(--muted); }
.dm-path li strong::after { content: " \2013"; font-weight: 400; }

/* result bars */
.dm-bars { margin: 1rem 0; }
.dm-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.25rem 0; border-radius: 8px; }
.dm-row.is-level { background: var(--amber-soft); font-weight: 700; }
.dm-row b { width: 9.5rem; font-weight: inherit; font-size: 0.95rem; }
.dm-dots { display: flex; gap: 0.3rem; }
.dm-dot { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; color: #fff; }
.dm-dot.y { background: var(--good); }
.dm-dot.n { background: var(--bad); }
.dm-next { background: var(--teal-soft); border-color: var(--teal); }

.dm-wrap { max-width: 46rem; margin: 0 auto; }
.dm-skip { text-align: center; margin: 0.4rem 0 1rem; font-size: 0.95rem; }
@media (max-width: 30rem) {
  .dm-row b { width: 6.5rem; font-size: 0.85rem; }
  .dm-steps li { font-size: 0.7rem; }
  .dm-steps li span { display: none; }
}
