/* Sınav listesi: içerik ortada, lider tablosu sağda */
.exam-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 13.5rem);
  gap: 1.25rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  align-items: start;
  box-sizing: border-box;
}

.exam-page-main {
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

.exam-general-hint {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #475569;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
}

.quiz-section-heading {
  margin-top: 1.5rem;
}

.quiz-section-heading.quiz-section-exclusive {
  margin-top: 0.5rem;
  color: #5b21b6;
}

.quiz-section-heading.quiz-section-pool {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 2px solid #e2e8f0;
  color: #334155;
}

.quiz-section-desc {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.9rem;
  color: #64748b;
}

.quiz-list-exclusive {
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
  border: 1px solid #ddd6fe;
  border-radius: 12px;
  list-style: none;
}

.quiz-list-exclusive .quiz-item-exclusive {
  padding: 0.65rem 0;
  border-bottom: 1px solid #ede9fe;
}

.quiz-list-exclusive .quiz-item-exclusive:last-child {
  border-bottom: none;
}

.quiz-section-heading.quiz-section-acl {
  color: #b45309;
}

.quiz-section-heading.quiz-section-multicast {
  color: #0d9488;
}

.quiz-list-exclusive .quiz-tag-acl {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #92400e;
  background: #fef3c7;
  border-radius: 4px;
}

.quiz-list-exclusive .quiz-tag-multicast {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 4px;
}

.quiz-tag-exclusive {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #5b21b6;
  background: #ede9fe;
  border-radius: 4px;
  vertical-align: middle;
}

.quiz-section-heading.quiz-section-route-summary {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 2px solid #86efac;
  color: #166534;
}

.quiz-list-exclusive .quiz-tag-route-summary {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #166534;
  background: #dcfce7;
  border-radius: 4px;
  vertical-align: middle;
}

.exam-sidebar {
  position: sticky;
  top: 1rem;
  width: 100%;
}

.exam-sidebar .sidebar-panel {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.exam-sidebar .sidebar-panel h2 {
  margin: 0;
  padding: 0.75rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.exam-sidebar .leaderboard-compact {
  font-size: 0.8rem;
}

.exam-sidebar .leaderboard-compact th,
.exam-sidebar .leaderboard-compact td {
  padding: 0.45rem 0.65rem;
}

.exam-sidebar .leaderboard-compact .nick {
  max-width: 5.5rem;
}

.leaderboard-panel--expandable:not(.is-expanded) .lb-row--more {
  display: none;
}

.leaderboard-toggle {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: none;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}

.leaderboard-toggle:hover {
  background: #eff6ff;
}

.leaderboard-panel.is-expanded .toggle-more {
  display: none;
}

.leaderboard-panel:not(.is-expanded) .toggle-less {
  display: none;
}

.leaderboard-compact .lb-row--me {
  background: #eff6ff;
}

.leaderboard-compact .lb-row--me .nick {
  font-weight: 700;
  color: #1d4ed8;
}

@media (max-width: 960px) {
  .exam-page-shell {
    grid-template-columns: 1fr;
    padding: 0 1rem 1.5rem;
  }

  .exam-sidebar {
    position: static;
    order: 2;
    max-width: 20rem;
    margin-left: auto;
    margin-right: 0;
  }

  .exam-page-main {
    order: 1;
  }
}
