.country-facts {
  --facts-ink: #142c48;
  --facts-muted: #536176;
  --facts-accent: #b65b44;
  box-sizing: border-box;
  margin: 1rem 0 1.25rem;
  padding: clamp(.65rem, 3vw, 1.6rem);
  border-radius: 1rem;
  background: #f0e8db;
}

.country-facts__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}

.country-facts__header img {
  display: block;
  width: clamp(3.5rem, 11vw, 6rem);
  height: auto;
  border-radius: .35rem;
  flex-shrink: 0;
}

.country-facts h2,
.country-facts p {
  margin: 0;
}

.country-facts h2 {
  color: var(--facts-ink);
  line-height: 1.18;
}

.country-facts h2 { font-size: clamp(1rem, 2.3vw, 1.2rem); }

.country-facts p {
  margin-top: .35rem;
  color: var(--facts-muted);
  font-size: clamp(.875rem, 2.5vw, 1rem);
  line-height: 1.42;
}

.country-facts__header p { margin: 0; }

.country-facts__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(.45rem, 1.7vw, .85rem);
}

.country-facts__card,
.country-facts__note {
  min-width: 0;
  padding: clamp(.55rem, 2.3vw, 1.1rem);
  border-radius: .7rem;
  overflow-wrap: break-word;
}

.country-facts__card {
  background: #fff;
  box-shadow: 0 1px 4px #142c480d;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
}

@media (max-width: 380px) {
  .country-facts__card h2 { min-block-size: 2lh; }
}

.country-facts__icon {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
  margin-bottom: .5rem;
  color: var(--facts-accent);
}

.country-facts__note {
  margin-top: clamp(.55rem, 1.7vw, .85rem);
  background: var(--facts-ink);
}

.country-facts__note h2,
.country-facts__note p { color: #fff; }
.country-facts__note .country-facts__icon { color: #f3af9f; }

.country-facts[data-mobile-columns="1"] .country-facts__header img {
  border-radius: 0;
}

@media (max-width: 600px) {
  .country-facts[data-mobile-columns="1"] .country-facts__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
  }

  .country-facts[data-mobile-columns="1"] .country-facts__card h2 {
    min-block-size: 0;
  }
}

.country-facts__symbol {
  width: clamp(2.3rem, 9vw, 3.6rem);
  height: auto;
  flex-shrink: 0;
  color: var(--facts-ink);
}
