/* Morse code tree: an inline SVG that scales to the column and scrolls sideways inside its frame on a phone. */
.tree-diagram { margin: 32px 0 0; padding: 12px; border-radius: var(--r-panel); background: var(--panel); box-shadow: var(--shadow); }
.tree-scroll { overflow-x: auto; border-radius: calc(var(--r-panel) - 8px); }
.tree-svg { display: block; width: 100%; min-width: 600px; height: auto; }
.tree-edge { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; fill: none; }
.tree-edge.empty { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 6; }
.tree-mark { fill: var(--ink); stroke: var(--panel); stroke-width: 5; paint-order: stroke; }
.tree-mark.empty { fill: var(--ter); }
.tree-node { fill: var(--y); }
.tree-node.empty { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 4; }
.tree-letter { fill: var(--on-y); font: 500 22px var(--font); font-feature-settings: "ss06" 1; }
.tree-root { fill: var(--cta); }
.tree-root-label { fill: var(--on-cta); font: 600 16px var(--font); }
.tree-diagram figcaption { margin: 14px 8px 4px; font-size: 15px; color: var(--sec); }
.tree-swipe { display: none; }
@media (max-width: 680px) { .tree-swipe { display: inline; } }
