/* Home page: the "Need an idea?" wall of random places (pages/ideas.js). The cards are the site's own .es-card (site.css). */
/* a full-width white band: the cards line up with the content edges like every other section (and the activity circles above) */
.es-ideas, .es-ideas.sk-b { margin-top: 13px; padding: 84px 0 92px; background: #fff; }   /* the gap under the activity labels matches the 44px above the circles */
html:not(.js) .es-ideas { display: none; }   /* the cards are drawn by script */
.es-ideas__panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head side" "cards cards"; align-items: end; gap: 44px 32px; }
.es-ideas__head { grid-area: head; }
.es-ideas__head h2 { font-size: clamp(34px, 3.6vw, 52px); text-wrap: balance; }
.es-ideas__side { grid-area: side; display: flex; align-items: center; gap: 26px; padding-bottom: 6px; }
.es-ideas__shuffle { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px 0 11px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 700 15.5px/1 var(--font-body); cursor: pointer; white-space: nowrap; transition: background .2s, transform .2s; }
.es-ideas__shuffle:hover { background: var(--ink-3); transform: translateY(-2px); }
.es-ideas__shuffle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.es-ideas__shuffle i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--ink); }
.es-ideas__shuffle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.es-ideas__shuffle.is-spin svg { animation: es-ideas-spin .7s cubic-bezier(.2, .7, .2, 1); }
@keyframes es-ideas-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.es-ideas__grid { grid-area: cards; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 22px; transition: opacity .26s, translate .26s; }
.es-ideas__grid.is-out { opacity: 0; translate: 0 10px; }
.es-ideas .es-card h3 { font-size: 20px; }
.es-ideas .es-card__blurb { font-size: 14.5px; }

@media (max-width: 1100px) {
  .es-ideas, .es-ideas.sk-b { margin-top: 13px; padding: 64px 0 72px; }
  .es-ideas__panel { gap: 36px 24px; }
  .es-ideas__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; }
  .es-ideas__grid > :nth-child(n+7) { display: none; }
}
@media (max-width: 760px) {
  .es-ideas__panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "cards" "side"; }
  .es-ideas__side { flex-direction: column-reverse; align-items: stretch; gap: 18px; padding-bottom: 0; }
  .es-ideas__side .es-link { justify-content: center; }
  .es-ideas__shuffle { justify-content: center; }
  .es-ideas__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .es-ideas, .es-ideas.sk-b { margin-top: 2px; padding: 48px 0 52px; }
  .es-ideas__panel { gap: 28px; }
  .es-ideas__grid { gap: 22px 12px; }
  .es-ideas .es-card__img { aspect-ratio: 1; border-radius: 14px; }
  .es-ideas .es-card__type { left: 8px; bottom: 8px; height: 26px; padding: 0 10px; gap: 6px; font-size: 11.5px; max-width: calc(100% - 16px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .es-ideas .es-card .es-heart { width: 40px; height: 40px; right: 6px; top: 6px; font-size: 17px; }
  .es-ideas .es-card h3 { font-size: 16.5px; line-height: 1.2; margin-top: 11px; }
  .es-ideas .es-card__meta { font-size: 12.5px; margin-top: 4px; }
  .es-ideas .es-card__blurb { display: none; }
}
