/* =========================================================
   CỘT MỐC — dòng thời gian theo năm (tông HỒNG PASTEL, trang con)
   File auto-enqueue qua custom-loader.
   ========================================================= */
:root{
  --cm-hong:      #e88bb0;   /* hồng chính */
  --cm-hong-dam:  #c9557f;   /* hồng đậm chữ/nhấn */
  --cm-hong-nhat: #fdeef4;   /* nền hồng rất nhạt */
  --cm-lavender:  #b9a3e3;
  --cm-text:      #5a4a5e;
  --cm-muted:     #8a7d90;
  --cm-line:      #f2d6e2;
}

.kk-cm{
  max-width:900px;
  margin:0 auto;
  padding:8px 16px 40px;
  color:var(--cm-text);
  font-family:inherit;
}
.kk-cm-empty{ text-align:center; color:var(--cm-muted); padding:40px 0; }

/* --- Thống kê --- */
.kk-cm-stats{
  display:flex; gap:16px; justify-content:center; flex-wrap:wrap;
  margin:8px 0 24px;
}
.kk-cm-stat{
  background:var(--cm-hong-nhat);
  border:1px solid var(--cm-line);
  border-radius:18px;
  padding:16px 26px;
  text-align:center;
  min-width:120px;
}
.kk-cm-stat__num{ display:block; font-size:30px; font-weight:800; color:var(--cm-hong-dam); line-height:1; }
.kk-cm-stat__lb{ display:block; margin-top:6px; font-size:13px; color:var(--cm-muted); }

/* --- Bộ lọc loại --- */
.kk-cm-filter{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin:0 0 30px; }
.kk-cm-chip{
  border:1px solid var(--cm-line);
  background:#fff;
  color:var(--cm-text);
  border-radius:999px;
  padding:7px 16px;
  font-size:14px;
  cursor:pointer;
  transition:all .18s ease;
}
.kk-cm-chip:hover{ border-color:var(--cm-hong); color:var(--cm-hong-dam); }
.kk-cm-chip.is-active{ background:var(--cm-hong); border-color:var(--cm-hong); color:#fff; }

/* --- Timeline --- */
.kk-cm-timeline{ position:relative; }

/* Thẻ tổng kết mỗi năm */
.kk-cm-year{
  background:#fff;
  border:1px solid var(--cm-line);
  border-radius:22px;
  overflow:hidden;
  margin:0 0 32px;
  box-shadow:0 12px 30px rgba(201,85,127,.08);
}
.kk-cm-year__head{
  position:relative;
  padding:30px 28px 24px;
  background:linear-gradient(135deg,#fbe3ee,#f6d3e6);  /* fallback khi chưa có ảnh bìa */
  background-size:cover; background-position:center;
  color:#fff;
}
.kk-cm-year__num{
  font-family:'Dancing Script',cursive;
  font-size:52px; font-weight:700; line-height:1;
  text-shadow:0 2px 12px rgba(90,42,74,.35);
}
.kk-cm-year__sum{
  margin:8px 0 0; max-width:560px;
  font-size:15px; line-height:1.6;
  text-shadow:0 1px 6px rgba(90,42,74,.35);
}
.kk-cm-year__prog{ margin-top:16px; max-width:320px; }
.kk-cm-year__bar{
  height:8px; border-radius:999px;
  background:rgba(255,255,255,.4);
  overflow:hidden;
}
.kk-cm-year__bar span{
  display:block; height:100%;
  background:linear-gradient(90deg,#fff,#ffd9ea);
  border-radius:999px;
}
.kk-cm-year__prog small{ display:block; margin-top:6px; font-size:12px; color:#fff; opacity:.95; }

/* Danh sách mốc trong năm — timeline dọc bên trái */
.kk-cm-list{
  list-style:none; margin:0; padding:22px 28px 26px 28px;
  position:relative;
}
.kk-cm-list::before{
  content:""; position:absolute;
  left:44px; top:22px; bottom:26px;
  width:2px; background:var(--cm-line);
}
.kk-cm-item{
  position:relative;
  display:flex; gap:16px;
  padding:0 0 22px 0;
}
.kk-cm-item:last-child{ padding-bottom:0; }
.kk-cm-dot{
  position:relative; z-index:1;
  flex:0 0 34px; width:34px; height:34px;
  border-radius:50%;
  background:var(--cm-hong-nhat);
  border:2px solid var(--cm-hong);
  display:flex; align-items:center; justify-content:center;
  color:var(--cm-hong-dam);
}
.kk-cm-dot .dashicons{ font-size:18px; width:18px; height:18px; }
.kk-cm-item.is-goal .kk-cm-dot{ border-style:dashed; border-color:var(--cm-lavender); color:#6d4a9e; background:#f3eefb; }

.kk-cm-card{
  flex:1;
  display:flex; gap:14px;
  background:var(--cm-hong-nhat);
  border:1px solid var(--cm-line);
  border-radius:14px;
  padding:12px 14px;
}
.kk-cm-item.is-goal .kk-cm-card{ background:#f6f2fd; border-color:#e6ddf7; }
.kk-cm-item.is-featured .kk-cm-card{ box-shadow:0 0 0 2px var(--cm-hong) inset; }
.kk-cm-card__img{ flex:0 0 88px; width:88px; height:88px; border-radius:10px; overflow:hidden; }
.kk-cm-card__img img{ width:100%; height:100%; object-fit:cover; display:block; }
.kk-cm-card__body{ flex:1; min-width:0; }
.kk-cm-card__meta{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-bottom:6px; }
.kk-cm-badge{ font-size:11px; font-weight:700; padding:3px 9px; border-radius:999px; }
.kk-cm-badge.is-done{ background:#e6f4ea; color:#2f7d4f; }
.kk-cm-badge.is-goal{ background:#efe7fb; color:#6d4a9e; }
.kk-cm-loai{ font-size:11px; color:var(--cm-hong-dam); background:#fff; border:1px solid var(--cm-line); padding:3px 9px; border-radius:999px; }
.kk-cm-star{ color:#f2b705; font-size:14px; }
.kk-cm-card__title{ margin:0 0 4px; font-size:16px; font-weight:700; color:var(--cm-text); }
.kk-cm-card__desc{ font-size:13px; line-height:1.6; color:var(--cm-muted); }
.kk-cm-card__desc p{ margin:0; }

/* --- Responsive --- */
@media (max-width:600px){
  .kk-cm-year__num{ font-size:42px; }
  .kk-cm-card{ flex-direction:column; }
  .kk-cm-card__img{ width:100%; height:150px; flex-basis:auto; }
  .kk-cm-list::before{ left:16px; }
  .kk-cm-dot{ flex-basis:34px; }
}
