/* Color palette */
:root {
  --bg-cream: #fdf8f2;
  --text-blue: #2c3e50;
  --accent-blue: #3a6ea5;
  --card-bg: #ffffff;
  --muted: #e8eef6;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-blue);
  line-height: 1.6;
}

header {
  background-color: var(--accent-blue);
  color: white;
  padding: 1.5rem;
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
}

main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h2 {
  color: var(--accent-blue);
  border-bottom: 2px solid var(--accent-blue);
  padding-bottom: 0.3rem;
}

/* Card-like lists (kept for any remaining <ul>) */
ul {
  list-style: none;
  padding: 0;
}
li {
  background: var(--card-bg);
  margin: 0.5rem 0;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  font-size: 1.1rem;
}

/* Tables */
.table-wrap {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;              /* rounds header corners */
  margin: 1rem 0 2rem;
}

/* allow horizontal scroll on small screens */
.table-scroller {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;              /* prevents squish on mobile */
}

thead th {
  background: var(--accent-blue);
  color: #fff;
  text-align: left;
  font-weight: 600;
  padding: 0.75rem 0.9rem;
  position: sticky;
  top: 0;                        /* sticky header on overflow */
}

tbody td, tbody th {
  padding: 0.7rem 0.9rem;
  border-top: 1px solid #eef2f7;
}

tbody tr:nth-child(odd) {
  background: #fafcff;
}
tbody tr:nth-child(even) {
  background: #f6f9ff;
}

tbody tr:hover {
  background: var(--muted);
}

/* Niceties */
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #dbe7ff;
  font-size: 0.85rem;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin: 3rem 0 1rem;
}
