/* Shared styles for "Past calculations" (per-calculator) and
   "Your recent calculators" (homepage) — calcs.mom recents feature. */

.recents-section { margin-top: 24px; }
.recents-heading {
  font-family: 'Lora', serif; font-size: 15px; font-weight: 700;
  color: oklch(35% 0.03 40); margin: 0 0 10px; letter-spacing: 0.01em;
}
.recents-heading.recents-heading-center { text-align: center; font-size: 20px; }

.recents-list { display: flex; flex-direction: column; gap: 10px; }

.recent-item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: #fff; border: 1px solid oklch(93% 0.015 60); border-radius: 16px;
  padding: 12px 16px; cursor: pointer; text-align: left;
  font-family: 'Nunito', sans-serif; text-decoration: none; color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.recent-item:hover {
  transform: translateY(-2px); box-shadow: 0 6px 18px oklch(50% 0.03 40 / 0.12);
  border-color: oklch(85% 0.02 60); color: inherit;
}
.recent-item-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.recent-item-icon svg { width: 20px; height: 20px; }
.recent-item-body { flex: 1; min-width: 0; }
.recent-item-title { font-weight: 700; font-size: 14.5px; color: oklch(30% 0.04 30); }
.recent-item-subtitle {
  font-size: 13px; color: oklch(50% 0.02 50); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.recent-item-meta { font-size: 12px; color: oklch(58% 0.02 50); flex-shrink: 0; white-space: nowrap; }

.recents-section-home { max-width: 480px; margin: 32px auto 0; padding: 0 24px; }
