/* Updates-specific styles: improves article typography and index grid */
.prose {
  color: #374151; /* gray-700 */
  line-height: 1.75;
}
.prose h1, .prose h2, .prose h3 {
  color: #111827; /* gray-900 */
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.prose p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.prose img {
  display: block;
  margin: 0.75rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.prose ul, .prose ol {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}
.prose blockquote {
  border-left: 4px solid #e5e7eb;
  padding-left: 1rem;
  color: #6b7280;
  margin: 1rem 0;
}

.update-article {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.updates-card {
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(15,23,42,0.1),
              0 4px 6px -4px rgba(15,23,42,0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  margin-bottom: 1.5rem;
  cursor: pointer;
  will-change: transform;
}

.updates-card:hover {
  box-shadow: 0 25px 50px -12px rgba(15,23,42,0.25);
  transform: translateY(-8px);
}

.updates-card img {
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.updates-card h3 {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.5rem;
}
.updates-card p {
  flex-grow: 1;
  margin-bottom: 1rem;
  color: #4b5563; /* Tailwind gray-600 */
}
.updates-card a {
  font-weight: 600;
  color: #2563eb; /* Tailwind blue-600 */
  text-decoration: none;
}
.updates-card a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .update-article {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
