/* Blog index visual refresh.
   Layered on calculators-index-refresh.css, which carries the directory-page
   system (body, header, footer, flat hero). Only the article list is specific
   to /blog/. */

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

.blog-grid {
  display: grid;
  max-width: 900px;
  gap: 16px;
}

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

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

/* The hover state was a 5px transparent border turning solid black, which
   shifted nothing but read as a harsh outline. Matches the card hover used
   across the calculators and guides directories instead. */
.blog-card {
  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;
}

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

.blog-meta {
  margin-bottom: 14px;
  color: #64736d;
  font-size: 13px;
}

.blog-meta .emoji-icon {
  display: none !important;
}

.blog-category {
  padding: 4px 12px;
  border-radius: 20px;
  background: #eaf6f0;
  color: #075e47;
  font-size: 12px;
  font-weight: 700;
}

/* Was var(--primary-color) (#10b981), which is the pre-refresh bright green
   and measures below 3:1 on white at this weight. */
.blog-title {
  margin-bottom: 12px;
  color: #17201d;
  font-size: 22px;
  line-height: 1.3;
}

.blog-excerpt {
  margin-bottom: 18px;
  color: #5f6f68;
  font-size: 16px;
  line-height: 1.65;
}

.blog-read-more {
  min-height: 44px;
  color: #087a55;
  font-size: 15px;
  font-weight: 700;
}

.blog-card-link:hover .blog-read-more {
  color: #075e47;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-status-badge {
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.status-published {
  background: #087a55;
  color: white;
}

.status-coming-soon {
  background: #b45309;
  color: white;
}

/* Pagination ships in its own stylesheet loaded before this one. Its active
   state was white on #10b981, which measures 2.5:1. */
.pagination-link {
  min-height: 44px;
  border: 1px solid #dce5e1;
  border-radius: 10px;
  background: white;
  color: #26332e;
  box-shadow: none;
}

.pagination-link:hover:not(.active) {
  border-color: #7fc3aa;
  background: #f7fffb;
  color: #075e47;
}

.pagination-link.active {
  border-color: #087a55;
  background: #087a55;
  color: white;
}

.pagination-dots {
  color: #64736d;
}

@media (max-width: 900px) {
  .blog-grid {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .blog-section {
    padding-right: 4px;
    padding-left: 4px;
  }

  .blog-grid {
    gap: 12px;
    padding: 0;
  }

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

  .blog-title {
    font-size: 20px;
  }
}

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