.gn-top-courses {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 20px;
  color: #123923;
  background: #ffffff;
  border: 1px solid #d5e6da;
  border-radius: 8px;
  font-family: inherit;
  line-height: 1.45;
}

.gn-top-courses *,
.gn-top-courses *::before,
.gn-top-courses *::after {
  box-sizing: border-box;
}

.gn-top-courses header {
  margin: 0 0 16px;
}

.gn-top-courses .gn-top-eyebrow {
  margin: 0 0 4px;
  color: #e58222;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gn-top-courses h2 {
  margin: 0;
  color: #123923;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.gn-top-courses .gn-top-intro {
  margin: 8px 0 0;
  color: #456451;
  font-size: 0.9rem;
}

.gn-top-courses .gn-top-results {
  min-width: 0;
}

.gn-top-courses .gn-top-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gn-top-courses .gn-top-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.gn-top-courses .gn-top-rank {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #ffffff;
  background: #123923;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.gn-top-courses .gn-top-body {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.gn-top-courses .gn-top-name {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #123923;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration-color: #e58222;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.gn-top-courses .gn-top-name:hover,
.gn-top-courses .gn-top-name:focus {
  color: #e58222;
}

.gn-top-courses .gn-top-name:focus-visible,
.gn-top-courses .gn-top-more:focus-visible {
  outline: 2px solid #e58222;
  outline-offset: 3px;
}

.gn-top-courses .gn-top-place,
.gn-top-courses .gn-top-count {
  overflow-wrap: anywhere;
  color: #456451;
  font-size: 0.8rem;
}

.gn-top-courses .gn-top-score {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
  margin-top: 2px;
}

.gn-top-courses .gn-top-stars {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  color: #cfdae2;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.gn-top-courses .gn-top-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: #e58222;
  white-space: nowrap;
}

.gn-top-courses .gn-top-score strong {
  color: #123923;
  font-size: 0.86rem;
  white-space: nowrap;
}

.gn-top-courses .gn-top-empty,
.gn-top-courses .gn-top-fewer {
  margin: 0;
  color: #456451;
  font-size: 0.88rem;
}

.gn-top-courses .gn-top-fewer {
  margin-top: 12px;
}

.gn-top-courses .gn-top-method {
  margin: 16px 0 0;
  padding-top: 12px;
  color: #456451;
  border-top: 1px solid #d5e6da;
  font-size: 0.76rem;
}

.gn-top-courses .gn-top-more {
  display: inline-block;
  margin-top: 14px;
  color: #123923;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration-color: #e58222;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.gn-top-courses .gn-top-more:hover,
.gn-top-courses .gn-top-more:focus {
  color: #e58222;
}

.gn-top-courses .gn-top-status {
  min-height: 1.3em;
  margin: 10px 0 0;
  color: #8a3f0a;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .gn-top-courses {
    padding: 16px;
  }

  .gn-top-courses h2 {
    font-size: 20px;
  }

  .gn-top-courses .gn-top-item {
    gap: 9px;
  }

  .gn-top-courses .gn-top-name {
    font-size: 0.95rem;
  }
}

.gn-top-courses .gn-top-status:empty { display: none; }
.gn-top-portal .gn-top-courses { scroll-margin-top: 160px; }
.gn-top-portal .gn-top-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 20px;
}
.gn-top-portal .gn-top-item {
  padding: 16px;
  border: 1px solid #e0e8e2;
  border-radius: 6px;
  background: #f5f8f5;
}
@media (max-width: 560px) {
  .gn-top-portal .gn-top-list { grid-template-columns: minmax(0, 1fr); }
}
