/* Digibordspellen – the games page ([digibordspellen]) */
.dgs-spellen {
  --dgs-groen: #1f5e42;
  --dgs-groen-donker: #164a33;
  --dgs-inkt: #24312b;
  --dgs-zacht: #5d6a63;
  --dgs-lijn: #dfe7e1;
  container-type: inline-size;
  margin: 28px 0 40px;
  padding: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--dgs-inkt);
  text-align: left;
}

.dgs-spellen__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
/* Browsers without container queries */
@supports not (container-type: inline-size) {
  .dgs-spellen__grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

.dgs-spellen .dgs-kaart {
  --dgs-tint: #e6f0ea;
  --dgs-kleur: var(--dgs-groen);
  display: flex;
  flex-direction: column;
  margin: 0;
  background: #fff;
  border: 1px solid var(--dgs-lijn);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 40, 30, 0.06), 0 10px 28px -14px rgba(20, 40, 30, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dgs-spellen .dgs-kaart:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(20, 40, 30, 0.06), 0 18px 36px -16px rgba(20, 40, 30, 0.36);
}
.dgs-spellen .dgs-kaart--bossen { --dgs-tint: #e3efe6; --dgs-kleur: #2c7a3f; }
.dgs-spellen .dgs-kaart--telefoon { --dgs-tint: #f3eadb; --dgs-kleur: #9a6a2c; }
.dgs-spellen .dgs-kaart--label { --dgs-tint: #f7e6ec; --dgs-kleur: #b0145a; }

.dgs-spellen .dgs-kaart__beeld {
  display: block;
  aspect-ratio: 900 / 520;
  background: var(--dgs-tint);
  padding: 14px 14px 6px;
  box-sizing: border-box;
  text-decoration: none;
  border: 0;
}
.dgs-spellen .dgs-kaart__beeld img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.dgs-spellen .dgs-kaart__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px 24px 22px;
}
.dgs-spellen .dgs-kaart__thema {
  margin: 0 0 2px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dgs-kleur);
}
.dgs-spellen .dgs-kaart__titel {
  margin: 0 0 10px;
  padding: 0;
  font-family: 'Greenfood', 'Trebuchet MS', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dgs-groen);
}
.dgs-spellen .dgs-kaart__tekst {
  margin: 0 0 14px;
  font-size: 15.5px;
  color: var(--dgs-inkt);
}
.dgs-spellen .dgs-kaart__feiten {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.dgs-spellen .dgs-kaart__feiten li {
  margin: 0;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--dgs-groen-donker);
  background: #eef4f0;
  border-radius: 999px;
  list-style: none;
}
.dgs-spellen .dgs-kaart__feiten li::before,
.dgs-spellen .dgs-kaart__feiten li::marker { content: none; }

.dgs-spellen .dgs-kaart__knoppen {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.dgs-spellen a.dgs-knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 46px;
  padding: 10px 18px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid var(--dgs-groen);
  box-sizing: border-box;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.dgs-spellen a.dgs-knop svg { width: 20px; height: 20px; flex: 0 0 20px; }
.dgs-spellen a.dgs-knop--spel,
.dgs-spellen a.dgs-knop--spel:visited {
  background: var(--dgs-groen);
  color: #fff;
}
.dgs-spellen a.dgs-knop--spel:hover,
.dgs-spellen a.dgs-knop--spel:focus-visible {
  background: var(--dgs-groen-donker);
  border-color: var(--dgs-groen-donker);
  color: #fff;
}
.dgs-spellen a.dgs-knop--pdf,
.dgs-spellen a.dgs-knop--pdf:visited {
  background: #fff;
  color: var(--dgs-groen);
}
.dgs-spellen a.dgs-knop--pdf:hover,
.dgs-spellen a.dgs-knop--pdf:focus-visible {
  background: #eef4f0;
  color: var(--dgs-groen-donker);
}
.dgs-spellen a.dgs-knop:focus-visible { outline: 3px solid #eeca23; outline-offset: 2px; }

.dgs-spellen a.dgs-kaart__meer {
  align-self: flex-start;
  margin: -6px 0 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--dgs-groen);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dgs-spellen a.dgs-kaart__meer:hover { color: var(--dgs-groen-donker); }

@media (max-width: 480px) {
  .dgs-spellen .dgs-kaart__body { padding: 18px 18px 20px; }
  .dgs-spellen .dgs-kaart__titel { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .dgs-spellen .dgs-kaart, .dgs-spellen a.dgs-knop { transition: none; }
  .dgs-spellen .dgs-kaart:hover { transform: none; }
}

/* Not wide enough for three next to each other: one card per row, picture on the left. */
@container (max-width: 899px) {
  .dgs-spellen__grid { grid-template-columns: 1fr; gap: 22px; }
  .dgs-spellen .dgs-kaart { flex-direction: row; }
  .dgs-spellen .dgs-kaart__beeld { flex: 0 0 40%; aspect-ratio: auto; display: flex; align-items: center; padding: 16px; }
  .dgs-spellen .dgs-kaart__beeld img { height: auto; }
  .dgs-spellen a.dgs-knop { flex: 0 1 auto; }
}
@container (max-width: 559px) {
  .dgs-spellen .dgs-kaart { flex-direction: column; }
  .dgs-spellen .dgs-kaart__beeld { flex: none; aspect-ratio: 900 / 520; padding: 12px 12px 4px; }
  .dgs-spellen a.dgs-knop { flex: 1 1 auto; }
}
