body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  background-color: #f7f7f9;
}

a {
  color: #1d5fd6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.site-header {
  background-color: #0b4b8b;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-branding {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
}

.site-title:hover {
  text-decoration: none;
}

.site-tagline {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.site-nav a {
  margin-left: 1rem;
  font-size: 0.95rem;
  color: #e9efff;
}

.site-nav a:hover {
  color: #ffffff;
}

.page-content {
  padding-top: 1.5rem;
}

.page h1 {
  font-size: 2rem;
  margin-top: 0;
}

.hero-actions {
  margin: 1.25rem 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid #d0d6e5;
  background-color: #fff;
  color: #1d3557;
}

.hero-button.primary {
  background-color: #1d5fd6;
  color: #fff;
  border-color: #1d5fd6;
}

.hero-button:hover {
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1.3fr);
  gap: 2rem;
  margin-top: 2rem;
  align-items: flex-start;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.leaderboard-table th {
  font-weight: 600;
  background-color: #f3f4f6;
}

.leaderboard-footer {
  margin-top: 0.75rem;
}

.glance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.glance-card-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.site-footer {
  border-top: 1px solid #e2e8f0;
  background-color: #ffffff;
}

.footer-inner {
  text-align: center;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.footer-title {
  margin: 0;
  font-weight: 600;
}

.footer-description {
  margin: 0.3rem 0 0.6rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.footer-links {
  margin: 0;
  font-size: 0.9rem;
}

/* Detail page styles */
.detail-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.detail-title {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #111;
}

.detail-subtitle {
  font-size: 1rem;
  color: #4b5563;
  margin: 0 0 1rem 0;
  font-family: 'Courier New', monospace;
}

.detail-score-section {
  margin-top: 1.5rem;
}

.score-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.score-badge.high {
  background-color: #d1fae5;
  color: #065f46;
}

.score-badge.medium {
  background-color: #fef3c7;
  color: #92400e;
}

.score-badge.low {
  background-color: #fee2e2;
  color: #991b1b;
}

.breakdown-section {
  margin-top: 2rem;
}

.breakdown-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
}

.breakdown-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #111;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.detail-table th,
.detail-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.detail-table th {
  font-weight: 600;
  background-color: #f3f4f6;
  color: #374151;
}

.detail-table td {
  color: #111;
}

.detail-table tr:last-child td {
  border-bottom: none;
}

.detail-score-value {
  font-weight: 600;
  font-size: 1.1em;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: #1d5fd6;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.back-link::before {
  content: "← ";
  margin-right: 0.25rem;
}

@media (max-width: 800px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    margin-top: 0.5rem;
  }

  .site-nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-title {
    font-size: 1.5rem;
  }

  .score-badge {
    font-size: 1.25rem;
    padding: 0.4rem 0.8rem;
  }

  .detail-table {
    font-size: 0.85rem;
  }

  .detail-table th,
  .detail-table td {
    padding: 0.5rem 0.6rem;
  }
}

