/* Guides directory visual refresh.
   Layered on calculators-index-refresh.css, which despite its name carries the
   approved directory-page system: body, header, footer, editorial, faq-lite and
   related-content are all shared with this page. Only the hero, the guide cards
   and the study path are specific to /guias/. */

.guides-section {
  padding-top: 0;
  padding-bottom: 20px;
}

/* Three guides, so a 3-up grid rather than the calculators' 2-up. */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.guide-card-link {
  border-radius: 16px;
  text-decoration: none;
}

.guide-card-link:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.35);
  outline-offset: 3px;
}

.guide-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 28px;
  border: 1px solid #dce5e1;
  border-radius: 16px;
  background: white;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.guide-card:hover {
  border-color: #7fc3aa;
  box-shadow: 0 10px 26px rgba(7, 94, 71, 0.08);
  transform: translateY(-2px);
}

.guide-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.guide-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border-radius: 13px;
  background: #eaf6f0;
}

.guide-icon .emoji-icon {
  height: 2.4rem !important;
}

.guide-title {
  margin: 0;
  color: #17201d;
  font-size: 21px;
  line-height: 1.3;
}

.guide-description {
  margin-bottom: 22px;
  color: #5f6f68;
  line-height: 1.65;
}

/* Pinned to the bottom so the three CTAs line up despite descriptions of
   different lengths. */
.guide-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #087a55;
  font-size: 15px;
  font-weight: 700;
}

.guide-card-link:hover .guide-cta {
  color: #075e47;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.study-path {
  margin-top: 72px;
  margin-bottom: 72px;
}

.study-card {
  padding: 36px;
  border: 1px solid #e2e8e5;
  border-radius: 16px;
  background: white;
  box-shadow: none;
}

.study-card h2 {
  color: #075e47;
}

.study-card h2 img {
  display: none !important;
}

.study-card p {
  color: #5f6f68;
  line-height: 1.7;
}

/* shared.css zeroes list padding through its `*` reset; the calculator system
   restores it for guide sections, which this page's markup does not use. */
.study-card ol,
.study-card ul {
  margin: 18px 0;
  padding-left: 28px;
}

.study-card li {
  margin-bottom: 10px;
  color: #3d4a45;
  line-height: 1.7;
}

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

@media (max-width: 600px) {
  .guides-section,
  .study-path {
    padding-right: 4px;
    padding-left: 4px;
  }

  .guide-card {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .guide-title {
    font-size: 19px;
  }

  .study-path {
    margin-top: 48px;
    margin-bottom: 48px;
  }

  .study-card {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .study-card h2 {
    font-size: 26px;
    line-height: 1.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card {
    transition: none;
  }
}
