/* Basic page colors and spacing */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #111827;
  color: white;
  line-height: 1.6;
}

/* Light mode styles are used when JavaScript adds this class. */
body.light-mode {
  background: #f4f7fb;
  color: #111827;
}

.site-header {
  background: #0b1220;
  border-bottom: 2px solid #2563eb;
}

body.light-mode .site-header {
  background: white;
}

.navbar {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.navbar h1 {
  margin: 0;
  color: #60a5fa;
}

.nav-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
}

.nav-links a:hover {
  color: #60a5fa;
}

button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 16px;
}

.hero {
  padding-top: 70px;
}

h2 {
  color: #60a5fa;
}

.note {
  color: #bfdbfe;
}

body.light-mode .note {
  color: #1d4ed8;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: #1f2937;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #374151;
}

body.light-mode .card {
  background: white;
  border-color: #d1d5db;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #1f2937;
}

body.light-mode table {
  background: white;
}

th,
td {
  padding: 12px;
  border: 1px solid #374151;
  text-align: left;
}

body.light-mode th,
body.light-mode td {
  border-color: #d1d5db;
}

th {
  color: #60a5fa;
}

footer {
  text-align: center;
  padding: 20px;
  background: #0b1220;
}

body.light-mode footer {
  background: white;
}

/* On small screens, stack the cards in one column. */
@media (max-width: 700px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}
