/* Basalt: page-scoped additions to the kit. A static Library tree, sample data only. */
:root { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 3h11v14.5l-5.5-4-5.5 4V3z'/%3E%3Cpath d='M12 17.5v4M12 21.5l-2.4 1.2M12 21.5l2.4 1.2'/%3E%3C/svg%3E"); }   /* this tool's glyph, the mask in each section head (see tool.css) */
.bs-top { display: flex; align-items: center; gap: 12px; }
.bs-mark { width: 28px; height: 28px; color: var(--th-ink); flex: none; }
.bs-crumb { margin: 0; color: var(--th-ink-2); font: 400 14px/1.4 var(--th-font-ui); }
.bs-crumb b { color: var(--th-ink); font-weight: 500; }
.bs-tree { position: relative; margin-top: 18px; }
.bs-list, .bs-kids { list-style: none; margin: 0; padding: 0; }
.bs-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 0 14px; align-items: start; padding-top: 11px; min-height: 56px; }
.bs-tile { width: 34px; height: 34px; border-radius: var(--th-r-min); display: grid; place-items: center; background: var(--th-fill-ghost); box-shadow: inset 0 0 0 1px var(--th-hairline-strong); font: 500 14px/1 var(--th-font-ui); color: var(--th-ink); }
.bs-tile .th-icon { width: 18px; height: 18px; }
.bs-body { display: grid; gap: 1px; min-width: 0; padding-bottom: 11px; border-bottom: 1px solid var(--th-hairline); }
.bs-row > .bs-end { padding-top: 7px; color: var(--th-ink-2); display: inline-flex; align-items: center; gap: 8px; }
.bs-title { font: 400 15px/20px var(--th-font-ui); color: var(--th-ink); overflow-wrap: break-word; }
.bs-folder .bs-title { font-weight: 500; }
.bs-meta { font: 400 13px/18px var(--th-font-ui); color: var(--th-ink-2); }
.bs-status { display: inline-flex; align-items: center; gap: 6px; }
.bs-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); flex: none; }
.bs-kids { position: relative; margin-left: 16px; padding-left: 15px; }
.bs-kids::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--acc) 38%, transparent); transform-origin: 50% 0; }   /* the branch line: a 1 px bar so it can draw down on transform */
.bs-folder .bs-tile { color: var(--acc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 32%, transparent); }
.bs-star { width: 14px; height: 14px; fill: var(--acc); stroke: none; }
/* the tree's one entrance: rows step in 50 ms apart (--i is set by page.js), the branch line draws down with them. Hidden only once th.js has booted
   (html.th-ready), so without scripts the tree is simply there. Reduced-motion mode: one 160 ms crossfade, no movement, no stagger. */
@keyframes bs-row-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes bs-line-in { from { transform: scaleY(0); } }
html.th-ready .bs-tree:not(.is-in) .bs-row { opacity: 0; }
html.th-ready[data-motion="full"] .bs-tree:not(.is-in) .bs-kids::before { opacity: 0; }
.bs-tree.is-in .bs-row { animation: bs-row-in 560ms var(--th-ease-decay) calc(var(--i, 0) * 50ms) backwards; }
.bs-tree.is-in .bs-kids::before { animation: bs-line-in 640ms var(--th-ease-decay) 60ms backwards; }
/* reduced-motion mode: no CSS animation (the kit zeroes them); page.js fades the finished rows in with one 160 ms Web Animations crossfade, the branch line is simply there */
html[data-motion="calm"] .bs-tree.is-in .bs-row, html[data-motion="calm"] .bs-tree.is-in .bs-kids::before { animation: none; }
.bs-foot { margin: 18px 0 0; color: var(--th-ink-2); font: 400 14px/1.5 var(--th-font-ui); }
