:root {
  --primary: #2c5f8a;
  --primary-dark: #1a3f5f;
  --accent: #e07b39;
  --bg: #f9f9fb;
  --surface: #ffffff;
  --text: #1e1e2e;
  --text-muted: #5a5a72;
  --border: #dde1ec;
  --radius: 8px;
  --sidebar-width: 260px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* Layout */
.layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 2rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar .brand {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.sidebar .brand h1 {
  font-size: 1.5rem; font-weight: 700; color: var(--primary);
  letter-spacing: -0.5px; line-height: 1.2;
}
.sidebar .brand p { margin-top: 0.5rem; font-size: 0.82rem; color: var(--text-muted); }
.sidebar nav { display: flex; flex-direction: column; }
.sidebar nav a { text-decoration: none; display: block; }
.sidebar nav button {
  width: 100%;
  background: none; border: none; border-left: 3px solid transparent;
  color: var(--text-muted); cursor: pointer; font-size: 0.98rem;
  font-weight: 500; text-align: left; padding: 0.7rem 1.5rem;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.sidebar nav button:hover { color: var(--primary); background: var(--bg); }
.sidebar nav button.active {
  color: var(--primary); font-weight: 700;
  border-left-color: var(--accent); background: var(--bg);
}

/* Content */
.content { flex: 1; min-width: 0; padding: 3rem 2.5rem; max-width: 900px; }
.content > h2.page-title {
  font-size: 1.8rem; color: var(--primary-dark);
  margin-bottom: 1.5rem; font-weight: 700;
}

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 1.75rem; margin-bottom: 1.25rem;
}
.card h2 { font-size: 1.25rem; color: var(--primary); margin-bottom: 0.6rem; }
.card h3 { font-size: 1rem; color: var(--primary-dark); margin: 1rem 0 0.4rem; }
.card p, .card li { color: var(--text-muted); font-size: 0.95rem; }
.card p { text-align: justify; }
.card ul, .card ol { padding-left: 1.25rem; }
.card ul li, .card ol li { margin-bottom: 0.3rem; }
.card a { color: var(--primary); }

/* Badge */
.badge {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.55rem;
  border-radius: 20px; margin-left: 0.5rem; vertical-align: middle;
}

/* Table */
table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); }
th { color: var(--primary-dark); font-weight: 600; }
td { color: var(--text-muted); }

/* Organizers */
.organizers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem;
}
.organizer-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
}
.organizer-card .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 1.5rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 0.75rem;
}
.organizer-card h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.organizer-card p { font-size: 0.82rem; color: var(--text-muted); }

/* Contact */
.contact-list { list-style: none; padding: 0; }
.contact-list li {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0;
  border-bottom: 1px solid var(--border); font-size: 0.95rem; color: var(--text-muted);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .icon { font-size: 1.1rem; width: 1.5rem; text-align: center; }

/* Footer */
footer {
  border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 1.5rem;
  font-size: 0.82rem; color: var(--text-muted);
}
footer a { color: var(--primary); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: static;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar nav button { border-left: none; border-bottom: 3px solid transparent; }
  .sidebar nav button.active { border-left-color: transparent; border-bottom-color: var(--accent); }
  .content { padding: 1.5rem 1.25rem; }
}

/* Status badges for leaderboard */
.badge-reproduced { background: var(--accent); }
.badge-verified { background: #2e8b57; }
.badge-green { background: #2e8b57; }
.badge-yellow { background: #d9a41a; color: #fff; }
.badge-red { background: #c0392b; }
code {
  background: var(--bg); border: 1px solid var(--border);
  padding: 0.1rem 0.4rem; border-radius: 4px;
  font-size: 0.88rem; color: var(--primary-dark);
}
