.tools-examples-section {
  margin: 40px 0 8px;
}

.tools-examples-head {
  margin-bottom: 18px;
}
.tools-examples-head h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: #1a0a2e;
  margin: 0 0 4px;
}
.tools-examples-head p {
  font-size: 14px;
  color: #6b5c8a;
  margin: 0;
}

/* Grid + card layout, hover reveal, and shared spacing/radius/shadow now
   live in examples-masonry-grid.css (.ex-masonry-grid / .ex-masonry-card),
   shared with page-menus-for-category.php's .mg-grid / .mg-card. Only the
   bits unique to this "Related Examples" section stay here. */

/* examples-masonry-grid.js sizes each card by measuring its rendered
   height once the image has loaded/errored — but featured images below
   the fold use loading="lazy" and never fire that event until scrolled
   into view. With 40+ examples, every not-yet-visible card was stuck at
   its default ~1-row span (a thin sliver) and grid-auto-flow: dense packed
   them into a fragmented brick pattern instead of a clean grid. Fixing the
   media area to the featured image's real ratio (16:9, see
   DEFAULT_FEATURED_RATIO in generate_flashcard_posts_from_excel.py) makes
   every card's height deterministic from the moment it's inserted, so
   sizing no longer depends on images having actually loaded. Scoped to
   #tools-examples-grid only — page-menus-for-category.php's own
   .ex-masonry-grid usage is intentionally left as true variable-ratio
   masonry.
*/
#tools-examples-grid .ex-masonry-card-media {
  aspect-ratio: 16 / 9;
}
#tools-examples-grid .ex-masonry-card-media img {
  height: 100%;
  object-fit: cover;
}

.tools-examples-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  color: #a480f2;
  background: linear-gradient(135deg, #f3ecff, #eee6ff);
}

.tools-examples-card.tools-examples-hidden {
  display: none;
}

.tools-examples-loadmore-wrap {
  text-align: center;
  margin-top: 24px;
}
.tools-examples-loadmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 30px;
  border-radius: 8px;
  border: 1px solid #750ef7;
  background: #fff;
  color: #750ef7;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.tools-examples-loadmore-btn:hover {
  background: #750ef7;
  color: #fff;
}
