/* Keep the update date in the title column, beside the country flag. */
body.seo-country-page .seo-country-header.seo-country-hero {
  grid-template-areas:
    "flag title"
    "flag updated"
    "intro intro";
  row-gap: 6px;
  padding-inline: clamp(12px, 3vw, 24px);
}

body.seo-country-page .seo-country-header > h1 {
  align-self: end;
}

body.seo-country-page .seo-country-header > .seo-country-updated {
  grid-area: updated;
  align-self: start;
  min-width: 0;
  margin: 0;
  color: #626b62;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* Preserve the original separation before the full-width introduction. */
body.seo-country-page .seo-country-header > .seo-country-intro {
  margin-block-start: 10px;
}

body.seo-country-page .seo-country-header.seo-country-hero:not(:has(> .seo-country-updated)) {
  grid-template-areas:
    "flag title"
    "intro intro";
}

body.seo-country-page .seo-country-header:not(:has(> .seo-country-updated)) > h1 {
  align-self: center;
}

@media (max-width: 420px) {
  body.seo-country-page .seo-country-header.seo-country-hero {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  body.seo-country-page .seo-country-header > .seo-country-flag {
    box-sizing: border-box;
    width: 64px;
    height: 64px;
    font-size: 40px;
  }
}
