/* Shared styles for the text pages (about, month pages) */
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  color: #1d2733;
  background: #f4f6f7;
}
main { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
a { color: #1f6fb2; }
.back { font-size: 14px; }
h1 { margin: 18px 0 6px; font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; }
h1.brand { display: flex; align-items: center; gap: 10px; }
h2 { margin: 40px 0 8px; padding-top: 16px; border-top: 1px solid #dde3e7; font-size: 21px; }
h3 { margin: 22px 0 4px; font-size: 16px; }
.lead { margin: 0 0 12px; font-size: 18px; color: #3d4955; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
dt { color: #5a6672; }
dd { margin: 0; }
small, .muted { color: #5a6672; }

figure { margin: 22px 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 4px 20px rgba(20, 30, 40, 0.12); }
figcaption { margin-top: 6px; font-size: 13px; color: #5a6672; }

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: #1d2733;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: #33414f; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 7px 8px; text-align: left; border-bottom: 1px solid #e3e8eb; white-space: nowrap; }
th { font-size: 13px; font-weight: 600; color: #5a6672; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .country { color: #6b7785; font-size: 13px; }
.score { display: inline-block; min-width: 34px; padding: 1px 6px; border-radius: 6px; text-align: center; font-weight: 600; }

.months-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.months-nav a { display: block; padding: 5px 10px; border-radius: 8px; background: #fff; text-decoration: none; color: #1d2733; border: 1px solid #dde3e7; font-size: 14px; }
.months-nav a[aria-current="page"] { background: #1d2733; color: #fff; border-color: #1d2733; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding: 0; list-style: none; }
.cards a { display: block; height: 100%; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #dde3e7; color: inherit; text-decoration: none; }
.cards a:hover { border-color: #1f6fb2; }
.cards img { display: block; width: 100%; height: auto; border-radius: 8px; }
.cards h2 { margin: 10px 0 4px; padding: 0; border: 0; font-size: 18px; }
.cards p { margin: 0; font-size: 14px; color: #5a6672; }

footer.credits { margin-top: 48px; padding-top: 14px; border-top: 1px solid #dde3e7; font-size: 13px; color: #6b7785; }
footer.credits a { color: inherit; }

@media (max-width: 520px) {
  h1 { font-size: 27px; }
  th, td { padding: 6px 4px; font-size: 14px; white-space: normal; }
  th:nth-child(5), td:nth-child(5) { display: none; } /* cloud column */
  td .country { display: block; }
}
