/* Country list: alphabetical roll call, one row per country, marked covered or not yet */

.country-list {
  list-style: none;
  columns: 2;
  column-gap: var(--space-md);
}
.country-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: 5px 0;
  break-inside: avoid;
  line-height: 1.3;
  color: var(--color-quiet);
}
.country-list__item--available {
  color: var(--color-ink);
  font-weight: 600;
}

.country-list__mark {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 16px;
  height: 1.3em;
}
.country-list__mark::before {
  content: "";
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.country-list__item--available .country-list__mark::before {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
}
.country-list__item--available .country-list__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 8px;
  border: solid var(--color-paper);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -62%) rotate(45deg);
}

.country-list__flag {
  flex: none;
  width: 1.5em;
  opacity: 0.55;
}
.country-list__item--available .country-list__flag {
  opacity: 1;
}

/* Two columns must fit a 360 px phone: hyphenate a long name, and only then break it anywhere. */
.country-list__name {
  flex: 1;
  min-width: 0;
  hyphens: auto;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .country-list {
    columns: 3;
    column-gap: var(--space-lg);
  }
}
@media (min-width: 1024px) {
  .country-list {
    columns: 4;
  }
}
