/* Where does the heat go next? (scripts/trace_page.py, 28 Nov 2026) */
.trace-layout { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 900px) { .trace-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.trace-figure > svg { width: 100%; height: auto; }
.trace-key { columns: 2; gap: 1rem; margin: 0 0 .8rem; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
/* while playing, the buttons carry the labels; the key stays in the page for the figure's names */
.trace-page:has(.trace-play:not([hidden])) .trace-key { display: none; }
@media (max-width: 899px) { .trace-figure > svg { max-height: 48vh; } }
.trace-play { border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; background: var(--panel); }
.trace-count { margin: 0; color: var(--muted); font-size: .85rem; }
.trace-question { font-weight: 600; margin: .3rem 0 .6rem; }
.trace-choices { display: flex; flex-wrap: wrap; gap: .4rem; }
.trace-choice { min-height: 44px; }
.trace-choice.trace-no { text-decoration: line-through; opacity: .7; }
.trace-choice.trace-no::after { content: " \2715"; }
.trace-choice.trace-yes { border-color: var(--accent); }
.trace-choice.trace-yes::after { content: " \2713"; }
.trace-feedback { margin: .6rem 0 0; }
.trace-right { border-left: 3px solid var(--accent); padding-left: .6rem; }
.trace-next { margin-top: .6rem; min-height: 44px; }
.trace-end { font-weight: 600; margin: .8rem 0; }
.trace-hops > li { margin: .35rem 0; }
.trace-hops summary { cursor: pointer; }
.trace-figure g.trace-on { outline: none; }
.trace-figure g.trace-on > :not(text):not(circle) { stroke: var(--accent); stroke-width: 2.5; }
@media print { .trace-play { display: none !important; } .trace-hops { display: block !important; } .trace-hops details { display: block; } }
