/* =========================
   Shared UI Utilities
   ========================= */

.shard-icon {
  display: inline-block;
  line-height: 1;
  vertical-align: -25%;
  padding: 0 2px 0 0;
}

.claim-reward-button {
  background: transparent;
  border: 1px solid #ddda17;
  color: #ddda17;
}

.claim-reward-button:hover {
  background: #ddda17;
  border: 1px solid #8f8c04;
  color: #23220a;
}

/* Stage profile images shown on race pages. */
.stage-profile-layout {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
  justify-content: space-between;
}

.stage-profile-layout.no-profile-img {
  justify-content: flex-start;
}

.stage-profile-nav {
  position: relative;
  z-index: 1;
}

.stage-profile-info {
  flex: 1 1 320px;
  max-width: 50%;
}

.stage-profile-title {
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  font-weight: 600;
}

.stage-profile-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.stage-profile-route {
  font-size: 1.1rem;
}

.stage-profile-distance {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.stage-profile-image-wrap {
  flex: 1 1 320px;
  max-width: 50%;
  display: flex;
  justify-content: center;
}

.stage-profile-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .stage-profile-info,
  .stage-profile-image-wrap {
    max-width: 100%;
  }
}
