/* Vallum FRX layer build (living-walls-vallum). Page tokens come from the
   page's inline :root block. */
.vl { margin: 0; border: 1px solid rgba(245, 242, 235, 0.16); background: var(--surface); padding: 1.25rem; }
.vl-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .3rem 1rem;
  margin-bottom: .9rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--code);
}
.vl-head-note { color: var(--accent-3); }
.vl-canvas { background: var(--bg); border: 1px solid var(--border-subtle); }
.vl-svg { display: block; width: 100%; height: auto; }

.vl-steps { margin: 1rem 0 0; padding: 0; border: 0; min-width: 0; }
.vl-steps:disabled { opacity: .55; }
.vl-legend {
  padding: 0;
  margin-bottom: .55rem;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--code);
}
.vl-step-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; background: var(--border-subtle); border: 1px solid var(--border-subtle); }
.vl-step { position: relative; display: block; cursor: pointer; }
.vl-step input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.vl-step-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .15rem;
  min-height: 52px;
  height: 100%;
  padding: .45rem .55rem;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .74rem;
  line-height: 1.2;
  transition: background .2s, color .2s;
}
.vl-step-n { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .12em; color: var(--code); }
.vl-step:hover .vl-step-box { color: var(--text); }
.vl-step input:checked + .vl-step-box { background: var(--bg); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.vl-step input:checked + .vl-step-box .vl-step-n { color: var(--accent); }
.vl-step input:focus-visible + .vl-step-box { outline: 2px solid var(--accent); outline-offset: -2px; }
.vl-steps:disabled .vl-step { cursor: default; }
.vl-desc { margin-top: .9rem; min-height: 3.2em; font-size: .85rem; line-height: 1.6; color: var(--text-muted); }
.vl-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Drawing */
.vl-layer { transform: translate(var(--ex), var(--ey)); transition: transform .7s var(--ease-out-expo); }
.vl-stack { transform-box: view-box; transition: transform .7s var(--ease-out-expo); }
.vl-body { transition: opacity .3s; }
.vl-ghost { fill: none; stroke: rgba(245, 242, 235, 0.28); stroke-width: 1; stroke-dasharray: 4 4; opacity: 0; transition: opacity .3s; }
.vl-edge { fill: none; stroke: rgba(245, 242, 235, 0.45); stroke-width: 1; transition: stroke .3s; }
.vl-wall-face { fill: url(#vl-hatch); }
.vl-hatch-bg { fill: #24201e; }
.vl-hatch-line { stroke: rgba(245, 242, 235, 0.08); stroke-width: 1.5; }
.vl-wall-top { fill: #3a3431; }
.vl-wall-side { fill: #2e2926; }
.vl-steel { fill: #8f9799; }
.vl-steel-top { fill: #c3c9ca; }
.vl-steel-dark { fill: #5d6466; }
.vl-profile { fill: none; stroke: #e4e8e8; stroke-width: 1.4; stroke-linejoin: round; }
.vl-mesh-bg { fill: rgba(139, 157, 160, 0.06); }
.vl-wire { stroke: #aab2b4; stroke-width: 1.1; }
.vl-clip { fill: #dfe4e4; stroke: #6f7779; stroke-width: .6; }
.vl-clip-line { stroke: #6f7779; stroke-width: .8; }
.vl-leaf-face { fill: url(#vl-leaf); }
.vl-leaf-bg { fill: #123821; }
.vl-leaf-a { fill: #1f6b3a; }
.vl-leaf-b { fill: #2b8a4a; }
.vl-leaf-c { fill: #3fa65c; }
.vl-leaf-top { fill: #2b7a45; }
.vl-leaf-side { fill: #0d2a18; }
.vl-labels { transition: opacity .3s; }
.vl-leader { stroke: rgba(196, 162, 101, 0.55); stroke-width: 1; }
.vl-dot { fill: var(--accent-3); }
.vl-label { font-family: var(--font-mono); font-size: 14px; letter-spacing: .1em; fill: var(--text); }
.vl-n { fill: var(--accent-3); }
.vl:not([data-step="0"]) .vl-labels { opacity: 0; }
.vl[data-step="5"] .vl-stack { transform: translate(var(--sx), var(--sy)) scale(1.3); }
.vl[data-step="1"] :is([data-layer="1"]) { transform: none; }
.vl[data-step="2"] :is([data-layer="1"],[data-layer="2"]) { transform: none; }
.vl[data-step="3"] :is([data-layer="1"],[data-layer="2"],[data-layer="3"]) { transform: none; }
.vl[data-step="4"] :is([data-layer="1"],[data-layer="2"],[data-layer="3"],[data-layer="4"]) { transform: none; }
.vl[data-step="5"] :is([data-layer="1"],[data-layer="2"],[data-layer="3"],[data-layer="4"],[data-layer="5"]) { transform: none; }
.vl[data-step="1"] :is([data-layer="2"],[data-layer="3"],[data-layer="4"],[data-layer="5"]) .vl-body { opacity: 0; }
.vl[data-step="1"] :is([data-layer="2"],[data-layer="3"],[data-layer="4"],[data-layer="5"]) .vl-ghost { opacity: 1; }
.vl[data-step="2"] :is([data-layer="3"],[data-layer="4"],[data-layer="5"]) .vl-body { opacity: 0; }
.vl[data-step="2"] :is([data-layer="3"],[data-layer="4"],[data-layer="5"]) .vl-ghost { opacity: 1; }
.vl[data-step="3"] :is([data-layer="4"],[data-layer="5"]) .vl-body { opacity: 0; }
.vl[data-step="3"] :is([data-layer="4"],[data-layer="5"]) .vl-ghost { opacity: 1; }
.vl[data-step="4"] :is([data-layer="5"]) .vl-body { opacity: 0; }
.vl[data-step="4"] :is([data-layer="5"]) .vl-ghost { opacity: 1; }
.vl[data-step="1"] [data-layer="1"] .vl-edge { stroke: var(--accent); stroke-width: 2; }
.vl[data-step="2"] [data-layer="2"] .vl-edge { stroke: var(--accent); stroke-width: 2; }
.vl[data-step="3"] [data-layer="3"] .vl-edge { stroke: var(--accent); stroke-width: 2; }
.vl[data-step="4"] [data-layer="4"] .vl-edge { stroke: var(--accent); stroke-width: 2; }
.vl[data-step="5"] [data-layer="5"] .vl-edge { stroke: var(--accent); stroke-width: 2; }

@media (max-width: 640px) {
  .vl { margin-left: -1.5rem; margin-right: -1.5rem; border-left: 0; border-right: 0; padding: 1rem 1.5rem; }
  .vl-step-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vl-name { display: none; }
  .vl-label { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .vl-layer, .vl-stack, .vl-body, .vl-ghost, .vl-labels, .vl-edge { transition: none; }
}
