/* Kaizen #5 (07/11/2026): bình chọn hữu ích, khu bình luận. Dùng cùng biến giao diện đọc --np-ui-*. */

/* ---------- Sửa lỗi bố cục bài ngắn ----------
   Bài có dưới 3 tiêu đề H2 thì không có mục lục bên trái; trước đây nội dung rơi vào cột mục lục (rộng ~230px).
   Luôn đặt nội dung vào cột cuối để thẳng hàng với tiêu đề bài. */
.np-article__layout>.np-article__main{grid-column:-2}

/* ---------- Bình chọn hữu ích ---------- */
.np-vote{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;margin:0 0 18px;padding:16px 20px;border:1px solid var(--np-ui-line-strong);border-radius:18px;background:var(--np-ui-panel)}
.np-vote__q{margin:0;color:#fff;font-weight:700;font-size:1rem;line-height:1.45}
.np-vote__btns{display:flex;flex-wrap:wrap;gap:8px}
.np-vote__btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border:1px solid var(--np-ui-line-strong);border-radius:999px;background:transparent;color:#dbe4ef;font:inherit;font-size:14px;font-weight:700;cursor:pointer;transition:border-color .2s,background .2s,color .2s,transform .2s}
.np-vote__btn svg{width:18px;height:18px;flex-shrink:0}
.np-vote__btn[data-v=yes]:hover{border-color:#34d399;background:rgba(52,211,153,.1);color:#fff}
.np-vote__btn[data-v=no]:hover{border-color:#fbbf24;background:rgba(251,191,36,.08);color:#fff}
.np-vote__btn:active{transform:scale(.97)}
.np-vote__btn:disabled{opacity:.55;cursor:default}
.np-vote__btn:focus-visible{outline:2px solid #38bdf8;outline-offset:2px}
.np-vote__done{flex-basis:100%;margin:0;color:var(--np-ui-muted);font-size:.95rem;line-height:1.6}
.np-vote__done strong{color:#fff}
.np-vote__done a{color:#67e8f9;font-weight:700}
.np-vote.is-done{background:radial-gradient(120% 160% at 0% 0%,rgba(52,211,153,.08),transparent 55%),var(--np-ui-panel)}
.np-vote.is-done .np-vote__btns{display:none}

/* ---------- Bình luận ---------- */
.np-comments{margin-top:40px;padding-top:32px;border-top:1px solid var(--np-ui-line)}
.np-comments__title{display:flex;align-items:center;gap:10px;margin:0 0 20px;color:#fff;font-size:1.5rem;font-weight:800;letter-spacing:-.01em;line-height:1.25}
.np-comments__title span{display:inline-grid;place-items:center;min-width:30px;height:28px;padding:0 9px;border-radius:999px;background:rgba(56,189,248,.14);color:#7dd3fc;font-size:.85rem;font-weight:800}
.np-comments__empty{margin:0 0 8px;color:var(--np-ui-muted);line-height:1.6}
.np-comments__list,.np-comments__list .children{list-style:none;margin:0;padding:0}
.np-comments__list .children{margin:12px 0 0 20px;padding-left:16px;border-left:2px solid var(--np-ui-line)}
.np-cmt{margin:0 0 12px}
.np-cmt__body{padding:14px 16px 12px;border:1px solid var(--np-ui-line);border-radius:16px;background:var(--np-ui-panel)}
.np-cmt.bypostauthor>.np-cmt__body,.np-cmt__body:has(.np-cmt__badge){border-color:rgba(34,211,238,.32)}
.np-cmt__head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-bottom:6px}
.np-cmt__avatar{width:32px;height:32px;font-size:12px}
.np-cmt__name{color:#fff;font-weight:700;font-size:.95rem}
.np-cmt__badge{padding:2px 8px;border-radius:999px;background:var(--np-ui-grad);color:#0a1020;font-size:11px;font-weight:800;letter-spacing:.02em}
.np-cmt__time{margin-left:auto;color:var(--np-ui-muted)!important;font-size:.8rem;text-decoration:none!important}
.np-cmt__pending{margin:0 0 6px;color:#fbbf24;font-size:.85rem}
.np-cmt__text{color:#dbe4ef;font-size:1rem;line-height:1.7;overflow-wrap:anywhere}
.np-cmt__text p{margin:0 0 .6em}
.np-cmt__text p:last-child{margin-bottom:0}
.np-cmt__text a{color:#67e8f9}
.np-cmt__reply{margin-top:6px}
.np-cmt__reply a{display:inline-flex;align-items:center;min-height:32px;font-size:.85rem;font-weight:700;color:#67e8f9!important;text-decoration:none!important}
.np-comments .comments-pagination,.np-comments .nav-links{display:flex;gap:12px;margin:8px 0 16px}
.np-comments .nav-links a,.np-comments .nav-links span{color:#c3cede}

/* Biểu mẫu */
.np-comments .comment-respond{margin-top:22px;padding:20px;border:1px solid var(--np-ui-line-strong);border-radius:18px;background:var(--np-ui-panel-2)}
.np-cmt .comment-respond{margin-top:12px}
.np-comments .comment-reply-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;margin:0 0 6px;color:#fff;font-size:1.15rem;font-weight:800}
.np-comments .comment-reply-title small a{font-size:.85rem;font-weight:700;color:#fca5a5!important}
.np-comments__note{margin:0 0 14px;color:var(--np-ui-muted);font-size:.88rem;line-height:1.55}
.np-comments .comment-form{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px;margin:0}
.np-comments .comment-form>p{margin:0}
.np-comments .comment-form-comment,.np-comments .comment-form-cookies-consent,.np-comments .form-submit,.np-comments .np-comments__note,.np-comments .logged-in-as{grid-column:1/-1}
.np-comments .logged-in-as{color:var(--np-ui-muted);font-size:.88rem}
.np-comments .logged-in-as a{color:#67e8f9}
.np-comments .comment-form label{display:block;margin-bottom:6px;color:#c3cede;font-size:.85rem;font-weight:700}
.np-comments .comment-form .required{color:#fca5a5}
.np-comments .comment-form input[type=text],.np-comments .comment-form input[type=email],.np-comments .comment-form textarea{box-sizing:border-box;width:100%;padding:12px 14px;border:1px solid var(--np-ui-line-strong);border-radius:12px;background:#0b1220;color:#fff;font:inherit;font-size:16px;line-height:1.5;transition:border-color .2s}
.np-comments .comment-form textarea{min-height:120px;resize:vertical}
.np-comments .comment-form ::placeholder{color:#7b8799}
.np-comments .comment-form input:focus,.np-comments .comment-form textarea:focus{border-color:#38bdf8;outline:2px solid rgba(56,189,248,.35);outline-offset:1px}
.np-comments .comment-form-cookies-consent{display:flex;align-items:flex-start;gap:8px}
.np-comments .comment-form-cookies-consent input{margin-top:3px;accent-color:#38bdf8}
.np-comments .comment-form-cookies-consent label{margin:0;font-weight:500;color:var(--np-ui-muted)}
.np-comments__submit{min-height:46px;padding:0 24px;border:0;border-radius:999px;background:var(--np-ui-grad);color:#0a1020;font:inherit;font-size:15px;font-weight:800;cursor:pointer;transition:filter .2s,transform .2s}
.np-comments__submit:hover{filter:brightness(1.08)}
.np-comments__submit:active{transform:scale(.98)}
.np-comments__submit:focus-visible{outline:2px solid #fff;outline-offset:3px}

@media (max-width:640px){
  .np-vote{padding:14px 16px}
  .np-vote__btns{width:100%}
  .np-vote__btn{flex:1;justify-content:center}
  .np-comments .comment-form{grid-template-columns:1fr}
  .np-comments__list .children{margin-left:8px;padding-left:12px}
}
@media (prefers-reduced-motion:reduce){.np-vote__btn,.np-comments__submit{transition:none}}
