/**
 * Interview archives only: responsive two-column checkerboard.
 * Loaded after the shared styles, with a dedicated asset URL.
 */
.amandla-plugin-scope .amandla-interview-grid {
  --amandla-interview-yellow: #ffcc00;
  --amandla-interview-green: #008001;
  display: grid;
  width: 100%;
  margin: 0;
  grid-template-columns: minmax(0, 1fr);
}

/*
 * The scoped important color variables also supersede the inline color
 * variables emitted by older versions of the interview archive template.
 * Shared card text, buttons and hover states consume these same variables.
 */
.amandla-plugin-scope .amandla-interview-grid > .amandla-interview-archive-card {
  --amandla-episode-background: var(--amandla-interview-yellow) !important;
  --amandla-episode-foreground: var(--amandla-dark, #200000) !important;
  background-color: var(--amandla-episode-background);
  color: var(--amandla-episode-foreground);
}

/* One column: yellow, green, yellow, green. */
.amandla-plugin-scope .amandla-interview-grid > .amandla-interview-archive-card:nth-child(even) {
  --amandla-episode-background: var(--amandla-interview-green) !important;
  --amandla-episode-foreground: var(--amandla-white, #fff) !important;
}

/* Two columns: Y G / G Y / Y G / G Y. */
@media (min-width: 961px) {
  .amandla-plugin-scope .amandla-interview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .amandla-plugin-scope .amandla-interview-grid > .amandla-interview-archive-card:nth-child(4n + 1),
  .amandla-plugin-scope .amandla-interview-grid > .amandla-interview-archive-card:nth-child(4n) {
    --amandla-episode-background: var(--amandla-interview-yellow) !important;
    --amandla-episode-foreground: var(--amandla-dark, #200000) !important;
  }

  .amandla-plugin-scope .amandla-interview-grid > .amandla-interview-archive-card:nth-child(4n + 2),
  .amandla-plugin-scope .amandla-interview-grid > .amandla-interview-archive-card:nth-child(4n + 3) {
    --amandla-episode-background: var(--amandla-interview-green) !important;
    --amandla-episode-foreground: var(--amandla-white, #fff) !important;
  }
}
