/*
 * blog-aside-recent.css – Recent Articles BEM widget for blog single sidebar.
 * Pure CSS + BEM on theme tokens with literal fallbacks.
 * Scoped under .blog-aside-recent (replaces inline Bootstrap card in blog-show.php).
 */

.blog-aside-recent {
  background: var(--color-surface, #ffffff);
  box-shadow: var(--shadow-card, 0 2px 12px rgba(0, 0, 0, 0.06));
  padding: var(--space-5, 1.25rem) var(--space-5, 1.25rem) var(--space-4, 1rem);
  margin-bottom: var(--space-4, 1rem);
}

.blog-aside-recent__heading {
  font-size: var(--text-lg, 1.125rem);
  font-weight: 700;
  color: var(--color-text-primary, #1a1a1a);
  margin: 0 0 var(--space-4, 1rem);
  font-family: 'Montserrat', sans-serif;
  line-height: var(--line-height-tight, 1.2);
}

.blog-aside-recent__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-aside-recent__item {
  padding-bottom: var(--space-3, 0.75rem);
  margin-bottom: var(--space-3, 0.75rem);
  border-bottom: 1px solid var(--border-color, #dee2e6);
}

.blog-aside-recent__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.blog-aside-recent__link {
  display: block;
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-primary, #b33f00);
  text-decoration: none;
  transition: color var(--duration-fast, 0.2s) ease;
}

.blog-aside-recent__link:hover {
  color: var(--color-primary-hover, #d45400);
}

.blog-aside-recent__link:focus-visible {
  outline: 2px solid var(--color-primary, #b33f00);
  outline-offset: 2px;
  border-radius: 2px;
}

.blog-aside-recent__date {
  display: block;
  font-size: var(--text-xs, 0.75rem);
  color: var(--text-muted, #718096);
  margin-top: var(--space-1, 0.25rem);
  line-height: 1.4;
}

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