/**
 * EU project hub listing — plugin override for [subcategoriesTiles].
 * Scoped to .extral-eu-project-list only.
 */

.extral-eu-project-list {
  --eed-list-text: var(--extral-eu-text, #1f2933);
  --eed-list-muted: var(--extral-eu-muted, #4b5563);
  --eed-list-bg: #f5f5f5;
  --eed-list-arrow: var(--extral-eu-accent-strong, #5f6800);
  color: var(--eed-list-text);
  margin: 0 0 2rem;
}

.extral-eu-project-list.extral-eu-font-open-sans,
.extral-eu-project-list.extral-eu-font-open-sans * {
  font-family: 'Open Sans', Arial, sans-serif;
}

.extral-eu-project-list__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.extral-eu-project-list__grid--cols-1 {
  grid-template-columns: 1fr;
}

.extral-eu-project-list__grid--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.extral-eu-project-list__grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.extral-eu-project-list__grid--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.extral-eu-project-list__card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.35rem 0.75rem;
  align-items: center;
  min-height: 120px;
  padding: 1.5rem 2rem;
  background: var(--eed-list-bg);
  color: var(--eed-list-text);
  text-decoration: none;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.extral-eu-project-list__card:hover {
  background: #ffffff;
  border-color: #c5ce7a;
}

.extral-eu-project-list__card:focus-visible {
  outline: 3px solid var(--eed-list-text);
  outline-offset: 3px;
}

.extral-eu-project-list__eyebrow {
  grid-column: 1 / -1;
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--eed-list-muted);
  line-height: 1.35;
}

.extral-eu-project-list__title {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--eed-list-text);
}

.extral-eu-project-list__arrow {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  color: var(--eed-list-arrow);
  font-size: 2rem;
  line-height: 1;
  font-weight: 400;
}

/* Theme-compatible variant */
.extral-eu-project-list--theme-compatible .extral-eu-project-list__theme-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.extral-eu-project-list--theme-compatible .extral-eu-project-list__theme-card {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--eed-list-bg);
  color: var(--eed-list-text);
  text-decoration: none;
  border-left: 3px solid var(--extral-eu-accent, #7a8500);
}

.extral-eu-project-list--theme-compatible .extral-eu-project-list__theme-card:focus-visible {
  outline: 3px solid var(--eed-list-text);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .extral-eu-project-list__grid,
  .extral-eu-project-list__grid--cols-3,
  .extral-eu-project-list__grid--cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .extral-eu-project-list__grid,
  .extral-eu-project-list__grid--cols-2,
  .extral-eu-project-list__grid--cols-3,
  .extral-eu-project-list__grid--cols-4 {
    grid-template-columns: 1fr;
  }

  .extral-eu-project-list__card {
    padding: 1.25rem 1.5rem;
  }
}
