/* Learn More cards and unified back links — July 23, 2026 */

/* Learn More cards: cover plus a compact, centered title panel only. */
.project-page .learn-more-card__link {
  display: grid !important;
  grid-template-rows: auto 60px !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  background: var(--brown, #3d332c) !important;
}

.project-page .learn-more-card__cover,
.project-page .learn-more-card__link[href="cornerstone.html"] .learn-more-card__cover {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #eee7de !important;
  box-shadow: none !important;
  transform: none !important;
}

.project-page .learn-more-card__content {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 60px !important;
  height: 60px !important;
  padding: 10px 12px !important;
  background: var(--brown, #3d332c) !important;
  color: var(--cream, #f8f4f0) !important;
  text-align: center !important;
}

.project-page .learn-more-card__title {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-family: "Raleway", Arial, sans-serif !important;
  font-size: clamp(13px, 1vw, 15px) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

.project-page .learn-more-card__meta,
.project-page .learn-more-card__action {
  display: none !important;
}

/* Match every project back button to the Profile page's pill button. */
.page-profile .back-link,
.project-page .back-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  margin-bottom: 58px !important;
  padding: 8px 16px !important;
  border: 1px solid rgba(61, 51, 44, 0.38) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--brown, #3d332c) !important;
  font-family: "Raleway", Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.10em !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  transition: border-color 160ms ease, color 160ms ease !important;
}

.page-profile .back-link:hover,
.page-profile .back-link:focus-visible,
.project-page .back-link:hover,
.project-page .back-link:focus-visible {
  border-color: #023fa1 !important;
  color: #023fa1 !important;
}

/* Profile CTA: remove arrow spacing and enlarge the label by 1.5px. */
.page-profile .explore-work {
  gap: 0 !important;
  font-size: 11.5px !important;
}

@media (max-width: 640px) {
  .project-page .learn-more-card__link {
    grid-template-rows: auto 52px !important;
  }

  .project-page .learn-more-card__content {
    min-height: 52px !important;
    height: 52px !important;
    padding: 8px 10px !important;
  }

  .project-page .learn-more-card__title {
    font-size: 13px !important;
  }
}

@media (max-width: 608px) {
  .page-profile .back-link,
  .project-page .back-link {
    margin-bottom: 38px !important;
  }
}
