/* Keep the original figure's grid, padding and crop around the chosen image. */
.team-portrait > .ije-portrait-source {
  display: contents;
}

/* These numerals sit on the page ground or the theme's secondary surface. */
.home-gap-story .sequence-number,
.home-paths .card-number,
.segment-context .numeral {
  color: var(--terracotta-dark, #b9502f);
}

html[data-theme="dark"] .home-gap-story .sequence-number,
html[data-theme="dark"] .home-paths .card-number,
html[data-theme="dark"] .segment-context .numeral {
  color: var(--terracotta, #e2805a);
}

/* The AI Instructions article has white headings on the light page ground. */
body.ije-approved-index-theme:is(.page-id-3510, .ije-audit-ai-instructions) .wp-entry-content h2 {
  color: var(--text, #1b0d01) !important;
}

/* At phone widths the full-bleed links extend beyond the scrollbar gutter. */
@media (max-width: 43rem) {
  .home-audiences .audience-list > a {
    margin-inline: 0;
  }

  .home-audiences .audience-list > a:hover {
    transform: none;
  }
}
