/* 게시판 블록 스킨: hwaryeon-recent (접두사 .hr- 로 충돌 방지) */
.hr-recent {
  --hr-bg: #ffffff;
  --hr-surface: #f7f8fa;
  --hr-line: #e9ecef;
  --hr-text: #191f28;
  --hr-sub: #6b7684;
  --hr-accent: #3182f6;
  --hr-accent-soft: #e8f3ff;
  --hr-radius: 20px;
  display: block !important;
  width: 100% !important;
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 20px;
  color: var(--hr-text);
  box-sizing: border-box;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hr-recent {
    --hr-bg: #17171c; --hr-surface: #202027; --hr-line: #2c2c35;
    --hr-text: #f2f4f6; --hr-sub: #9aa4b2;
    --hr-accent: #4593fc; --hr-accent-soft: #1b2a3f;
  }
}
[data-theme="dark"] .hr-recent {
  --hr-bg: #17171c; --hr-surface: #202027; --hr-line: #2c2c35;
  --hr-text: #f2f4f6; --hr-sub: #9aa4b2;
  --hr-accent: #4593fc; --hr-accent-soft: #1b2a3f;
}

/* 헤더: 칸 전체 너비를 쓰고, "전체 보기"는 오른쪽 끝으로 */
.hr-recent .hr-recent__head {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 16px;
  width: 100% !important;
  box-sizing: border-box;
  margin-bottom: 24px;
}
.hr-recent .hr-recent__headtext { flex: 1 1 auto !important; min-width: 0; }
.hr-recent__eyebrow { display: block; font-size: 12px; letter-spacing: .12em; font-weight: 700; color: var(--hr-accent); margin-bottom: 6px; }
.hr-recent__title { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.hr-recent .hr-recent__more { flex: 0 0 auto !important; margin-left: auto !important; text-align: right; font-size: 14px; font-weight: 600; color: var(--hr-sub); text-decoration: none; white-space: nowrap; transition: color .15s; }
.hr-recent__more:hover { color: var(--hr-accent); }

.hr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hr-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--hr-surface); border-radius: var(--hr-radius);
  text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hr-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.hr-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.hr-card__meta { display: flex; gap: 6px; flex-wrap: wrap; min-height: 22px; }
.hr-card__title {
  font-size: 17px; line-height: 1.45; font-weight: 700; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: keep-all;
}
.hr-card__foot { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hr-sub); flex-wrap: wrap; }
.hr-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

.hr-card--featured { grid-column: span 2; grid-row: span 2; }
.hr-card--featured .hr-card__thumb { display: block; min-height: 240px; flex: 1; background-size: cover; background-position: center; background-color: var(--hr-line); }
.hr-card--featured .hr-card__body { flex: 0 0 auto; padding: 26px; }
.hr-card--featured .hr-card__title { font-size: 24px; -webkit-line-clamp: 3; }

.hr-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--hr-accent-soft); color: var(--hr-accent); }
.hr-badge--new { background: #ffeaea; color: #f04452; }
[data-theme="dark"] .hr-badge--new { background: #3a1f24; }

.hr-empty { text-align: center; padding: 56px 20px; background: var(--hr-surface); border-radius: var(--hr-radius); }
.hr-empty__emoji { font-size: 40px; margin-bottom: 12px; }
.hr-empty__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.hr-empty__desc { margin: 0 0 20px; font-size: 14px; color: var(--hr-sub); }
.hr-btn { display: inline-block; padding: 12px 22px; border-radius: 14px; background: var(--hr-accent); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }

@media (max-width: 860px) {
  .hr-grid { grid-template-columns: 1fr 1fr; }
  .hr-card--featured { grid-column: span 2; grid-row: auto; }
  .hr-card--featured .hr-card__thumb { min-height: 200px; }
}
@media (max-width: 560px) {
  .hr-recent { padding: 40px 16px; }
  .hr-recent__title { font-size: 24px; }
  .hr-grid { grid-template-columns: 1fr; }
  .hr-card--featured { grid-column: auto; }
}
