/* ================================
   TABLET (600px = 37.5em)
   ================================ */
@media (min-width: 37.5em) {
  .countries-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    gap: var(--spacing-lg);
  }
}

/* ================================
   DESKTOP (1024px = 64em)
   ================================ */
@media (min-width: 64em) {
  .main {
    padding: var(--spacing-xl) 5rem;
  }

  .navbar {
    padding: var(--spacing-md) 5rem;
  }

  .navbar__title {
    font-size: 2.4rem; /* 24px */
  }

  .controls {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .search-box {
    width: 30rem;
  }

  .countries-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
  }

  /* Detail page goes side by side on desktop */
  .country-detail {
    flex-direction: row;
    align-items: center;
    gap: 8rem;
    margin-top: var(--spacing-xl);
  }

  .country-detail__flag {
    width: 45%;
    flex-shrink: 0;
  }

  .country-detail__info {
    flex: 1;
  }

  .country-detail__stats {
    flex-direction: row;
    gap: var(--spacing-xl);
  }

  .country-detail__group {
    flex: 1;
  }
}
