/* Vehicle Dynamics Labs · shared app rules. Tokens and components come from /design/xallace-ui.css;
   only layout helpers live here (no new colours or fonts). */
body { overflow-x: clip; }

@media (min-width: 1061px) {
  .split-layout > .control-col {
    position: sticky;
    top: 16px;
    align-self: start;
  }
}

.control-col > .panel-card { transition: border-color 0.2s ease; }

.view.active { animation: vdlViewIn 0.22s ease both; }
@keyframes vdlViewIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.plate-canvas.xtall { height: 660px; }
.plate-canvas.tall { height: 520px; }
.plate-canvas.mid { height: 440px; }
.plate-canvas.short { height: 280px; }
@media (max-width: 640px) {
  .plate-canvas.xtall { height: 700px; }
  .plate-canvas.tall { height: 560px; }
  .plate-canvas.mid { height: 420px; }
  .plate-canvas.short { height: 240px; }
}
.verdict-strip.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1060px) { .verdict-strip.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.about-sheet { max-width: 920px; margin: 0 auto; }
.about-sheet + .about-sheet { margin-top: 14px; }
.formula {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-main);
  background: var(--bg-panel); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 8px 10px; margin: 8px 0; overflow-x: auto; white-space: pre;
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.field-row.one { grid-template-columns: minmax(0, 1fr); }
.check-table td:first-child, .check-table th:first-child { text-align: left; }
.check-table td { white-space: nowrap; padding-left: 14px; }
.check-table td.wrap { white-space: normal; text-align: left; font-family: var(--font-ui); font-weight: 400; }
.legend-note { font-size: 0.75rem; color: var(--text-muted); margin: 6px 14px 10px; }
.play-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* hub */
@keyframes vdlCardIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }
.lab-card {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--border); border-top: 2px solid var(--accent-line);
  border-radius: var(--radius-lg); background: var(--bg-card-solid);
  padding: 0 0 14px; overflow: hidden; color: inherit; text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, background-color 0.22s ease;
  animation: vdlCardIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lab-card:nth-child(1) { animation-delay: 0ms; }
.lab-card:nth-child(2) { animation-delay: 45ms; }
.lab-card:nth-child(3) { animation-delay: 90ms; }
.lab-card:nth-child(4) { animation-delay: 135ms; }
.lab-card:nth-child(5) { animation-delay: 180ms; }
.lab-card:hover, .lab-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  border-top-color: var(--accent);
}
.lab-card canvas { display: block; width: 100%; height: 150px; background: var(--draw-paper); border-bottom: 1px solid var(--border-soft); }
.lab-card h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; margin: 4px 16px 0; transition: color 0.2s ease; }
.lab-card:hover h2 { color: var(--accent); }
.lab-card p { margin: 0 16px; color: var(--text-muted); font-size: 0.86rem; line-height: 1.45; }
.lab-card .lab-meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 16px 0; }
.lab-card .lab-try { font-size: 0.8rem; color: var(--text-dim); }
.hub-intro { max-width: 920px; margin: 0 0 18px; }
