/* =============================================================================
   Lysia Readiness Grove — /static/readiness-grove.css
   Host + labels for the per-technique status trees. Garden tokens assumed
   (falls back gracefully). Load anywhere readiness-grove.js is used.
   ========================================================================== */

/* FinalRedesign host: the grove sits in a .grove-layer slab inside the
   readiness column (cr1-tree-col). currentColor inks any inline-SVG trunks;
   the canvas grove reads its palette itself. */
.grove-layer {
  position: relative;
  width: 100%;
  color: var(--ink-muted, #756d5f);
}
.grove-layer svg { display: block; width: 100%; height: 100%; }
.grove-layer[hidden] { display: none; }

.rg-host {
  position: relative;
  width: 100%;
  min-height: 240px;
}

.rg-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.rg-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rg-label {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: 110px;
  text-align: center;
}

.rg-name {
  font: 600 9px/1.3 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted, #756d5f);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rg-pct {
  font: 600 12px "JetBrains Mono", ui-monospace, monospace;
  color: var(--rg-col, var(--ink, #383329));
  transition: color .4s ease;
}

/* the status scale, spelled out — crimson → gold → sage */
.rg-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font: 600 9.5px "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .14em;
  color: var(--ink-muted, #756d5f);
}
.rg-legend .rg-bar {
  flex: 1;
  min-width: 90px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg,
    var(--missed, #c05548),
    var(--exam, #c0973a),
    var(--done, #4a9180));
}
