.compared-flags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.compared-flags-grid > article.feature-card {
  grid-column: auto;
  min-height: auto;
  justify-content: flex-start;
  scroll-margin-block-start: 6rem;
}

.compared-flags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .75rem;
  margin-block: 1rem;
}

.compared-flags figure {
  margin: 0;
}

/* The shared SVGs have a 4:3 viewport. Center-cropping these plain bands
   preserves their order and equal widths at the proportions in the guide. */
.compared-flags img {
  height: var(--flag-height, 48px);
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}

#indonesia-monaco-poland .compared-flags {
  --flag-height: 40px;
}

.compared-flags figcaption {
  margin-block-start: .4rem;
  font-size: .875rem;
}

.compared-flags a,
.flag-reference a {
  text-decoration: underline;
  text-underline-offset: .15em;
}

.flag-reference {
  margin-block-start: 1rem;
  color: var(--muted);
}
