/* SEEK2LRN — Classes page, part 4: "group classes open now" card grid.
   Scoped under .s2t-page (the --s2e-* tokens live there) and .s2c-groups
   (this section's own mount). Editorial light: white cards, square corners,
   2px black border, no shadow. */

.s2t-page .s2c-groups-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 1080px) {
  .s2t-page .s2c-groups-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}
@media (max-width: 680px) {
  .s2t-page .s2c-groups-list { grid-template-columns: 1fr; gap: 1rem; }
}

/* loading / empty / error text takes the grid's place, not a cell in it */
.s2t-page .s2c-groups-list.is-message { display: block; }
.s2t-page .s2c-groups-note {
  font-size: 0.98rem; font-weight: 300; line-height: 1.6; color: var(--s2e-muted);
  padding: 2.5rem 0; margin: 0; border-top: 1px solid var(--s2e-line);
}
.s2t-page .s2c-groups-note a { color: var(--s2e-blue); text-decoration: underline; text-underline-offset: 3px; }
.s2t-page .s2c-groups-note a:hover { color: var(--s2e-ink); }
.s2t-page .s2c-groups-retry {
  font-family: inherit; font-size: 0.95rem; font-weight: 400; color: var(--s2e-blue);
  background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.s2t-page .s2c-groups-retry:hover { color: var(--s2e-ink); }
.s2t-page .s2c-groups-retry:focus-visible { outline: 2px solid var(--s2e-blue); outline-offset: 2px; }

/* ---- the card ---- */
.s2t-page .s2c-gc {
  background: #fff; border: 2px solid #000; border-radius: 0;
  padding: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem;
}

.s2t-page .s2c-gc-tutor { display: flex; align-items: center; gap: 0.7rem; }
.s2t-page .s2c-gc-thumb {
  position: relative; flex: none; width: 40px; height: 40px; overflow: hidden;
  background: #EAF1FD; display: flex; align-items: center; justify-content: center;
}
.s2t-page .s2c-gc-initials {
  font-family: var(--s2e-display); font-weight: 300; font-size: 1rem; letter-spacing: -0.01em;
  color: var(--s2e-blue); user-select: none;
}
.s2t-page .s2c-gc-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.s2t-page .s2c-gc-tutor-name { font-size: 0.92rem; font-weight: 500; color: var(--s2e-ink); }

.s2t-page .s2c-gc-title {
  margin: 0; font-family: var(--s2e-display); font-weight: 300; font-size: 1.3rem; line-height: 1.2;
  letter-spacing: -0.01em; color: var(--s2e-ink); overflow-wrap: anywhere;
}
.s2t-page .s2c-gc-meta { margin: -0.4rem 0 0; font-size: 0.86rem; font-weight: 300; color: var(--s2e-muted); }

.s2t-page .s2c-gc-foot { margin-top: auto; padding-top: 0.6rem; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; border-top: 1px solid var(--s2e-line); }
.s2t-page .s2c-gc-price { font-family: var(--s2e-display); font-weight: 300; font-size: 1.15rem; color: var(--s2e-ink); }
.s2t-page .s2c-gc-price-none { font-family: var(--s2e-body); font-size: 0.86rem; color: var(--s2e-muted); }

.s2t-page .s2c-gc-enrol {
  font-family: inherit; font-size: 0.86rem; font-weight: 500; color: #fff;
  background: var(--s2e-blue); border: 1px solid var(--s2e-blue); border-radius: 0;
  padding: 0.55rem 1.1rem; text-decoration: none; transition: background-color 0.2s ease, border-color 0.2s ease;
}
.s2t-page .s2c-gc-enrol:hover { background: var(--s2e-ink); border-color: var(--s2e-ink); }
.s2t-page .s2c-gc-enrol:focus-visible { outline: 2px solid var(--s2e-blue); outline-offset: 2px; }
.s2t-page .s2c-gc-enrol-off {
  color: var(--s2e-muted); background: transparent; border: 1px solid var(--s2e-line);
  padding: 0.55rem 1.1rem; cursor: not-allowed;
}

/* ---- entrance: blur + a short drop, settling to sharp ("cloth falling") ---- */
@keyframes s2c-cloth {
  from { opacity: 0; transform: translateY(-18px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
.s2t-page .s2c-gc {
  animation: s2c-cloth 1.1s cubic-bezier(.22, .61, .36, 1) both;
  animation-delay: calc(var(--s2c-i, 0) * 0.3s);
}
@media (prefers-reduced-motion: reduce) {
  .s2t-page .s2c-gc { animation: none; }
}
