/* Game Formats page (also the card grid on Features): intro checklist and the format cards. Ported from legacy's
   "Game Formats page (modernized card layout)" block. */
.gfIntro {
  margin: 4px 0 22px 2px;
}

.gfIntroLead {
  font-size: 16px;
  margin-bottom: 8px;
}

.gfIntroList {
  list-style: none;
  margin: 0 0 0 4px;
  padding: 0;
}

.gfIntroList li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 4px;
}

.gfIntroList li:before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--ptfg-navy);
  font-weight: bold;
}

.gfGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 10px;
}

.gfCard {
  --gf-accent: var(--ptfg-navy);
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--ptfg-border);
  box-shadow: 0 1px 3px rgba(20, 20, 40, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gfCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(20, 20, 40, 0.12);
}

.gfCard--blue   { --gf-accent: var(--ptfg-navy); }
.gfCard--green  { --gf-accent: var(--ptfg-green); }
.gfCard--red    { --gf-accent: var(--ptfg-red); }
.gfCard--purple { --gf-accent: var(--ptfg-purple); }

.gfCard-top {
  height: 5px;
  background: var(--gf-accent);
}

.gfCard-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 4px 20px;
}

.gfCard-number {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gf-accent);
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gfCard-title {
  margin: 0;
  font-size: 17px;
  font-weight: bold;
  color: var(--ptfg-heading);
}

.gfCard-flagship {
  display: inline-block;
  margin-left: auto;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gf-accent);
  background: color-mix(in srgb, var(--gf-accent) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--gf-accent) 35%, #fff);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.gfCard-body {
  padding: 12px 20px 20px 20px;
  color: var(--ptfg-body-gray);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gfCard-list {
  list-style: none;
  margin: 0 0 6px 0;
  padding: 0;
  flex: 1;
}

.gfCard-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.gfCard-list li:before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gf-accent);
  font-weight: bold;
}

.gfCard-paragraph {
  margin: 0 0 6px 0;
  flex: 1;
}

.gfCard-link {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 13px;
  font-weight: bold;
  color: var(--gf-accent) !important;
  text-decoration: none !important;
  border: 1px solid var(--gf-accent);
  border-radius: 999px;
  padding: 6px 14px;
  transition: background 0.15s ease, color 0.15s ease;
}

.gfCard-link:hover {
  background: var(--gf-accent);
  color: #fff !important;
}
