.olympiads-hub {
  max-width: 1120px;
}

.olympiads-hero {
  max-width: 860px;
}

.olympiad-user-summary {
  background: linear-gradient(135deg, rgba(103, 114, 229, 0.12), rgba(79, 201, 190, 0.1));
  border: 1px solid rgba(103, 114, 229, 0.24);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}

.olympiad-user-summary__achievement {
  white-space: nowrap;
}

.olympiad-user-summary__note {
  color: #7b8494;
  font-size: 0.78rem;
}

.olympiads-eyebrow,
.olympiads-section-kicker {
  color: #6772e5;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.olympiad-card {
  border: 1px solid rgba(127, 127, 127, 0.24);
  border-radius: 1rem;
  box-shadow: 0 0.75rem 2rem rgba(16, 24, 40, 0.06);
}

.olympiad-card__abbr {
  align-items: center;
  background: #6772e5;
  border-radius: 0.75rem;
  color: #fff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  min-height: 2.5rem;
  padding: 0 0.85rem;
}

.olympiads-cta {
  align-items: center;
  background: linear-gradient(135deg, rgba(103, 114, 229, 0.13), rgba(79, 201, 190, 0.12));
  border: 1px solid rgba(103, 114, 229, 0.22);
  border-radius: 1rem;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: 2rem;
}

.olympiads-cta__actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
}

.olympiads-sources {
  border-top: 1px solid rgba(127, 127, 127, 0.24);
  padding-top: 2rem;
}

.olympiads-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  color: #8a94a6;
}

.olympiad-news-body {
  max-width: 760px;
  white-space: pre-line;
}

.olympiad-resource-grade {
  border-left: 3px solid rgba(103, 114, 229, 0.35);
  padding-left: 1.25rem;
}

.olympiad-media-card {
  align-items: center;
  background: rgba(103, 114, 229, 0.07);
  border: 1px solid rgba(103, 114, 229, 0.2);
  border-radius: 1rem;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: 1.5rem;
}

.olympiad-video-frame {
  aspect-ratio: 16 / 9;
  background: #111827;
  border-radius: 1rem;
  max-width: 900px;
  overflow: hidden;
}

.olympiad-video-frame iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.olympiad-writeup__body {
  max-width: 800px;
  white-space: pre-line;
}

@media (max-width: 991.98px) {
  .olympiads-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .olympiads-cta__actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .olympiad-media-card {
    align-items: stretch;
    flex-direction: column;
  }

  .olymp-current-place {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Inline SVG icons (currentColor-driven, theme-friendly). */
.olymp-icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.16em;
  flex: 0 0 auto;
}

.olympiads-quicklinks .list-group-item {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  font-weight: 600;
}

.olympiads-quicklinks .olymp-icon {
  color: #6772e5;
  width: 1.25em;
  height: 1.25em;
}

/* Result rows and achievement badges. */
.olymp-result-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.35rem;
}

.olymp-result-name {
  font-weight: 600;
}

.olymp-student-row--me > * {
  background: rgba(103, 114, 229, 0.11) !important;
  border-bottom: 1px solid rgba(103, 114, 229, 0.55);
  border-top: 1px solid rgba(103, 114, 229, 0.55);
}

.olymp-student-row--me > :first-child {
  border-left: 3px solid #6772e5;
}

.olymp-you-label {
  background: #6772e5;
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: 0.4rem;
  padding: 0.18rem 0.45rem;
  vertical-align: 0.08rem;
}

.olymp-current-place {
  align-items: center;
  background: rgba(103, 114, 229, 0.08);
  border: 1px solid rgba(103, 114, 229, 0.4);
  border-left: 4px solid #6772e5;
  border-radius: 0.75rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.olymp-current-place__rank {
  color: #6772e5;
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.olymp-status-icon {
  display: inline-flex;
}

.olymp-status-icon--winner {
  color: #b7791f;
}

.olymp-status-icon--prizer {
  color: #3858a8;
}

.olymp-badges {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.olymp-badge {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 600;
  gap: 0.3em;
  line-height: 1.1;
  padding: 0.28em 0.6em;
  white-space: nowrap;
}

.olymp-badge .olymp-icon {
  width: 0.95em;
  height: 0.95em;
}

.olymp-badge--winner {
  background: #fff7e6;
  border-color: #f0c46a;
  color: #8a5a00;
}

.olymp-badge--prizer {
  background: #eef3ff;
  border-color: #9db8f0;
  color: #27408a;
}

.olymp-badge--repeat {
  background: #eafaf0;
  border-color: #8bd6a6;
  color: #1d6b3a;
}

.olympiad-results-list,
.olympiad-school-results,
.olympiad-region-results,
.olymp-repeat-list {
  list-style: none;
  padding-left: 0;
}

.olymp-badge--participant {
  background: #f3f0fb;
  border-color: #c3b6ec;
  color: #5b3da8;
}

.olymp-status-icon--participant {
  color: #6c4fd0;
}

/* Analytics tables: keep badges tidy and let long school names wrap. */
.olymp-stats-table td .olymp-badges {
  margin-top: 0.25rem;
}

.olymp-rank-num {
  color: #6772e5;
  font-weight: 700;
}

.olymp-score {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.olymp-muted-note {
  color: #8a8f98;
  font-size: 0.82rem;
}

.olymp-years {
  color: #6b7280;
  font-size: 0.82rem;
}
