/*
 * Dashboard final polish
 *
 * The Dashboard is intentionally focused on the information a user needs first:
 * latest training + coach reading, period summary, recent evolution + HR,
 * latest activities and upcoming goals.
 * Secondary distribution/source blocks remain available in their dedicated areas
 * and are not repeated at the bottom of the Dashboard.
 */

.dashboard-reference {
  padding-bottom: 40px;
}

/* Keep the main analysis row visually balanced on desktop. */
.dashboard-reference__analysis-grid {
  align-items: stretch;
}

.dashboard-reference__evolution,
.dashboard-reference__hr {
  min-height: 0;
}

/* The Dashboard ends after the latest-activities / upcoming-goals row. */
.dashboard-reference > .dashboard-reference__lower-grid ~ section {
  display: none !important;
}

/* Slightly tighter chart footprint: the graph remains legible without
   pushing the important activity/objective cards too far down the page. */
.dashboard-reference__evolution-chart {
  min-height: 0;
}

.dashboard-reference__evolution-chart svg {
  max-height: 180px;
}

/* Preserve the orange brand accent on the key latest-training metrics. */
.dashboard-reference .dashboard-training-metric__value,
.dashboard-reference .dashboard-reference__training-value,
.dashboard-reference .dashboard-reference__metric-value {
  color: var(--pd-orange, #ff7417);
}

/* Avoid an oversized empty tail after the final dashboard row. */
.dashboard-reference__lower-grid {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .dashboard-reference {
    padding-bottom: 24px;
  }
}
