/* =========================================================
   "All Guides" index page — a grid of every guide, each card
   linking straight to that guide's page. Lives inside the
   shared .guide-page wrapper (from guide.css) so it inherits
   the same fonts/colors/banner, but defines its own container
   and card grid instead of the numbered-steps card.
   ========================================================= */

.guides-index-wrap {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: -26px auto 0;
  padding: 0 18px 40px;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--gp-surface);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-r);
  padding: 18px;
  text-decoration: none;
  color: var(--gp-text);
  box-shadow: 0 1px 2px rgba(17,24,39,.04);
  transition: box-shadow .15s, transform .15s, border-color .15s;
}

.guide-card:hover {
  box-shadow: 0 8px 20px rgba(16,34,90,.12);
  border-color: #c7d3f5;
  transform: translateY(-2px);
}

.guide-card-icon {
  width: 52px;
  height: 44px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(16,34,90,.16);
  padding: 5px;
  overflow: hidden;
}

.guide-card-icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.guide-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.guide-card-desc {
  font-size: 12.5px;
  color: var(--gp-muted);
  line-height: 1.5;
  flex: 1;
}

.guide-card-cta {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gp-accent);
}

.guides-index-note {
  font-size: 12.5px;
  color: var(--gp-muted);
  text-align: center;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .guides-index-wrap { margin-top: -20px; padding: 0 14px 32px; }
  .guides-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

@media (max-width: 420px) {
  .guides-grid { grid-template-columns: 1fr; }
}
