/* Scrolling tree mockups (Version B) — see tree.js */

/* both: the scrolling tree replaces the tree drawing behind Play therapy */
.old-tree { display: none; }
.band--topsoil { padding-bottom: clamp(88px, 13vh, 150px); }

/* idea 1: whole tree in the rail, between the menu and the links at the bottom */
.rail-tree { position: relative; flex: 1 1 auto; min-height: 0; margin: 0 -8px; overflow: hidden; }
.rail-tree svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rail-tree__base { opacity: .14; }
.rail-tree__live {
  --edge: 18px;
  -webkit-mask-image: linear-gradient(#000 calc(var(--y, 0px) - var(--edge)), transparent var(--y, 0px));
  mask-image: linear-gradient(#000 calc(var(--y, 0px) - var(--edge)), transparent var(--y, 0px));
}
@media (max-width: 1023px) { .rail-tree { display: none; } }

/* idea 3: line tree down the gutter, over the bands, under the rail */
.line-tree {
  position: absolute; top: 0; z-index: 5; pointer-events: none; overflow: visible;
  --edge: 90px;
  -webkit-mask-image: linear-gradient(#000 calc(var(--y, 0px) - var(--edge)), transparent var(--y, 0px));
  mask-image: linear-gradient(#000 calc(var(--y, 0px) - var(--edge)), transparent var(--y, 0px));
}

.tree-static .rail-tree__live, .tree-static .line-tree { -webkit-mask-image: none; mask-image: none; }
