/* Common homepage list controls; cards retain their existing design. */
.home-list {
  --home-list-columns: 3;
  --home-list-arrow-ink: #00727e;
  --home-list-arrow-border: #b8d6d4;
  --home-list-arrow-background: #fff;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  align-items: center;
  gap: .8rem;
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
}
.home-list__viewport { min-width: 0; grid-column: 2; grid-row: 1; }
.home-list__arrow--previous { grid-column: 1; grid-row: 1; }
.home-list__arrow--next { grid-column: 3; grid-row: 1; }
.home-list .home-list__items {
  display: grid;
  grid-template-columns: repeat(var(--home-list-columns), minmax(0, 1fr));
  align-items: stretch;
  gap: 1.15rem;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: .35rem 0;
  list-style: none;
  overflow: visible;
  scroll-snap-type: none;
  perspective: none;
}
.home-list .home-list__items > li {
  min-width: 0;
  max-width: none;
  width: auto;
  height: auto;
  opacity: 1;
  transform: none;
  animation: none !important;
  will-change: auto;
}
.home-list [hidden] { display: none !important; }
.home-list__arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--home-list-arrow-border);
  border-radius: 50%;
  background: var(--home-list-arrow-background);
  color: var(--home-list-arrow-ink);
  cursor: pointer;
  transition: background-color 160ms, color 160ms, border-color 160ms;
}
.home-list__arrow svg { display: block; width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-list__arrow:hover { background: #00727e; color: #fff; border-color: #00727e; }
.home-list[data-home-list-single-page] { grid-template-columns: minmax(0, 1fr); }
/* Match the news section gutters to the association and mission lists. */
.welcome .welcome__news {
  width: 100%;
  padding-inline: clamp(1.25rem, 6vw, 5rem);
}
.welcome__news .welcome__news-header { max-width: 76rem; margin-inline: auto; }
.welcome .welcome__missions {
  width: 100%;
  margin: 0;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 6vw, 5rem);
}
.welcome__missions .welcome__missions-header { width: 100%; max-width: 76rem; }
.welcome .welcome__associations { position: relative; padding-block: clamp(3rem, 6vw, 5rem); }
.welcome__associations .welcome__news-header { max-width: 76rem; margin-inline: auto; }
.welcome__console-media,
.welcome .welcome__associations {
  background:
    radial-gradient(90% 70% at 12% 18%, rgb(249 189 103 / .28), transparent 52%),
    radial-gradient(80% 65% at 88% 22%, rgb(62 187 200 / .22), transparent 48%),
    radial-gradient(70% 60% at 70% 88%, rgb(251 98 107 / .16), transparent 50%),
    linear-gradient(155deg, #0c1a13 0%, #10231a 42%, #163528 72%, #0a1610 100%);
}
.welcome__associations .welcome__news-title { color: #fff; }
.welcome__associations .welcome__eyebrow--gold { color: #ffce90; }
.welcome__associations .welcome__news-link { color: #e4f6f2; }
.welcome__associations .welcome__news-link:hover { color: #fff; }
.welcome__associations .home-list {
  --home-list-arrow-ink: #fff;
  --home-list-arrow-border: #a1b5ae;
  --home-list-arrow-background: #ffffff0d;
}
.welcome__associations .home-list__arrow:hover { background: #fff; color: #163528; border-color: #fff; }
.welcome__associations .welcome__news-empty { color: #fff; border-color: #a1b5ae; }
@media (max-width: 1080px) {
  .home-list { --home-list-columns: 2; }
}
@media (max-width: 620px) {
  .home-list { --home-list-columns: 1; grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem; gap: .5rem; }
  .home-list__arrow { width: 2.5rem; height: 2.5rem; padding: 0; }
  .welcome .welcome__news, .welcome .welcome__associations, .welcome .welcome__missions { padding-inline: 1rem; }
}

.home-list[data-home-list-single-page] .home-list__viewport { grid-column: 1; }

@media (prefers-reduced-motion: no-preference) {
  .home-list[data-home-list-pending] .home-list__items > li:not([hidden]) {
    opacity: 0;
    transform: translate3d(0, 32px, 0) scale(0.965);
  }
}
