/* Flag Atom - country flag chip.
   Real flags come from flag-icons (the `fi`/`fi-xx` classes loaded in
   index.html). These rules size the chip and round it; flag-empty is the
   code-in-a-box fallback for unknown codes. Loaded after flag-icons so the
   box sizing + cover fit win. */

.flag {
  display: inline-block;
  vertical-align: middle;
  border-radius: var(--border-radius-sm);
  border: var(--border-width-1) solid var(--border-subtle);
  background-color: var(--bg-muted);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.flag-sm { width: var(--space-5); height: var(--space-3_5); }
.flag-md { width: var(--space-6); height: var(--space-4); }
.flag-lg { width: var(--space-8); height: var(--space-5); }

/* Fallback when the country code is unknown: show the code centered */
.flag-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xs);
  font-weight: var(--font-weight-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
}
