/* Retenra progress dashboard layout. The dashboard is a hub
   that fills the screen: the page itself never scrolls, the
   tile grid takes whatever height the viewport leaves between
   the header and the bottom of the screen, and every tile
   clicks through to its own full page. Detail pages keep the
   ordinary scrolling layout; this sheet loads only on the
   dashboard. */
body.dash-page {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dash-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-4);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.dash-head { flex: 0 0 auto; }
.dash-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.dash-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-1);
  min-height: 0;
  overflow: hidden;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  text-decoration: none;
}
a.dash-tile:hover { border-color: var(--navy); }
.dash-cap {
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-fig {
  font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
}
.dash-line { font-size: var(--text-small); color: var(--muted); }
.dash-sub p { margin: var(--space-1) 0; }
@media (max-width: 760px) {
  .dash-main { padding: var(--space-3); padding-bottom: calc(var(--space-3) + 58px); }
  .dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-3);
  }
  .dash-tile { padding: var(--space-2) var(--space-3); }
  .dash-fig { font-size: 1rem; }
  .dash-sub { grid-column: 1 / -1; }
}
