/* Country grid on the index page */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
  margin: 1.2rem 0 2rem;
}

.country-card {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.55rem;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.4;
}

.country-card:hover {
  border-color: var(--md-accent-fg-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.country-card .flag {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.3rem;
}

.country-card strong,
.country-card p {
  display: block;
}

.country-card p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--md-default-fg-color--light);
}

/* Tighten tables a bit */
.md-typeset table:not([class]) {
  font-size: 0.8rem;
}
