/* Scoped guide-card layout. The media frame owns the height, including before images load. */
.guides-page .post-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.5rem;
}
.guides-page .post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.guides-page .guide-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--surface-2);
}
.guides-page .guide-card-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
.guides-page .post-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.guides-page .post-card-content h2 {
  margin: 0 0 .9rem;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.22;
  overflow-wrap: break-word;
}
.guides-page .post-card-content .eyebrow {
  margin: 0 0 .85rem;
}
.guides-page .post-card-content p:not(.eyebrow) {
  margin: 0 0 1rem;
}
.guides-page .post-card-content .text-link {
  margin-top: auto;
  padding-top: .35rem;
}
[data-theme="dark"] .guides-page .button:not(.button-secondary),
[data-theme="dark"] .guides-page .mobile-contact-bar a:last-child {
  color: var(--paper);
}
@media (max-width: 700px) {
  .guides-page .post-grid { grid-template-columns: minmax(0, 1fr); }
}
