/* Public Race Hub additions. Loaded after index-dashboard.css. */
.race-hub-strip .status-pill-card {
  min-width: 0;
}

.race-hub-strip .status-copy span {
  white-space: normal;
}

.race-hub-overview {
  width: min(var(--max), calc(100% - 28px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 18px;
}

.race-hub-latest,
.race-hub-progress {
  min-width: 0;
}

.race-hub-latest-summary {
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 18px;
}

.race-hub-latest-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.race-hub-latest-podium .podium-card-lite {
  min-width: 0;
}

.race-hub-latest-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.race-hub-latest-facts .fact-card {
  min-width: 0;
}

.race-hub-latest-facts .fact-card strong {
  overflow-wrap: anywhere;
}

.race-hub-progress {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 18%, transparent), transparent 35%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, var(--primary) 4%), var(--surface));
}

.race-hub-progress-value {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.04em;
}

.race-hub-progress-copy {
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.race-hub-progress-track {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  background: color-mix(in srgb, var(--surface-2) 76%, var(--bg-main));
}

.race-hub-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-2, var(--secondary)));
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 42%, transparent);
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}

.race-hub-progress-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.race-hub-progress-meta > div {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--surface-2) 72%, var(--surface));
}

.race-hub-progress-meta span,
.race-hub-progress-meta strong {
  display: block;
}

.race-hub-progress-meta span {
  color: var(--text-muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 5px;
}

.race-hub-progress-meta strong {
  font-size: 1.25rem;
}

.race-hub-empty {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed color-mix(in srgb, var(--accent) 24%, transparent);
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.race-hub-storyline {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .race-hub-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .race-hub-latest-podium {
    grid-template-columns: 1fr;
  }

  .race-hub-latest-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .race-hub-latest-facts,
  .race-hub-progress-meta {
    grid-template-columns: 1fr;
  }
}
