/* Trang "Có gì mới" — N2, 04/11/2026. Dòng thời gian theo tháng. Tiền tố .np-wn-. Dùng biến màu của theme. */
.np-wn { margin: 8px 0 24px; }
.np-wn-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.np-wn-filter button {
  display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13.5px; line-height: 1; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text-secondary); cursor: pointer;
}
.np-wn-filter button:hover { border-color: var(--color-primary); color: var(--color-primary); }
.np-wn-filter button.is-on { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary, #fff); }
.np-wn-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.np-wn-dot--new { background: #16a34a; } .np-wn-dot--improve { background: #2563eb; } .np-wn-dot--fix { background: #d97706; }
.np-wn-filter button.is-on .np-wn-dot { box-shadow: 0 0 0 2px rgba(255,255,255,.75); }

.np-wn-month { margin: 0 0 30px; }
.np-wn-month[hidden], .np-wn-item[hidden] { display: none; }
.content-wrapper .np-wn-month__title {
  position: sticky; top: 56px; z-index: 2; margin: 0 0 14px !important; padding: 8px 0 !important; font-size: 20px !important; font-weight: 700;
  border: 0 !important; background: var(--color-bg); color: var(--color-text);
}
.np-wn-list { list-style: none; margin: 0; padding: 0 0 0 0; position: relative; }
.np-wn-list::before { content: ""; position: absolute; left: 81px; top: 6px; bottom: 6px; width: 2px; background: var(--color-border); }
.np-wn-item { display: grid; grid-template-columns: 64px 1fr; column-gap: 34px; margin: 0 0 12px; position: relative; padding: 0; }
.np-wn-item::before {
  content: ""; position: absolute; left: 76px; top: 15px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-bg); border: 3px solid var(--wn-c, var(--color-primary)); box-sizing: border-box;
}
.np-wn-item[data-type="new"] { --wn-c: #16a34a; } .np-wn-item[data-type="improve"] { --wn-c: #2563eb; } .np-wn-item[data-type="fix"] { --wn-c: #d97706; }
.np-wn-date { text-align: right; font-size: 13.5px; font-weight: 600; color: var(--color-text-muted); padding-top: 11px; font-variant-numeric: tabular-nums; }
.np-wn-card { border: 1px solid var(--color-border); border-radius: 12px; padding: 12px 16px 12px; background: var(--color-bg); min-width: 0; }
.np-wn-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; line-height: 1; padding: 4px 9px; border-radius: 999px; margin: 0 0 7px;
}
.np-wn-tag--new { background: #dcfce7; color: #166534; } .np-wn-tag--improve { background: #dbeafe; color: #1e40af; } .np-wn-tag--fix { background: #fef3c7; color: #92400e; }
.content-wrapper .np-wn-text { margin: 0 0 4px !important; font-size: 15.5px; line-height: 1.55; color: var(--color-text); }
.np-wn-link { font-size: 13.5px; font-weight: 600; color: var(--color-primary); text-decoration: none; }
.np-wn-link:hover { text-decoration: underline; }
.np-wn-link i { vertical-align: -1px; }
.np-wn-empty { color: var(--color-text-muted); }

@media (max-width: 575.98px) {
  .np-wn-list::before { left: 7px; }
  .np-wn-item { grid-template-columns: 1fr; padding-left: 26px; margin-bottom: 10px; }
  .np-wn-item::before { left: 2px; top: 6px; }
  .np-wn-date { text-align: left; padding: 0 0 4px; font-size: 12.5px; }
  .content-wrapper .np-wn-month__title { top: 48px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .np-wn-tag--new { background: rgba(22,163,74,.2); color: #86efac; }
  :root:not([data-theme="light"]) .np-wn-tag--improve { background: rgba(37,99,235,.22); color: #93c5fd; }
  :root:not([data-theme="light"]) .np-wn-tag--fix { background: rgba(217,119,6,.22); color: #fcd34d; }
}
/* theme đặt padding/margin cho ol/li trong nội dung bài → ép về 0 để dòng thời gian thẳng hàng */
.content-wrapper ol.np-wn-list { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.content-wrapper ol.np-wn-list > li.np-wn-item { margin: 0 0 12px !important; padding: 0 !important; list-style: none !important; }
@media (max-width: 575.98px) { .content-wrapper ol.np-wn-list > li.np-wn-item { padding-left: 26px !important; margin-bottom: 10px !important; } }
