/* Ban cố vấn và điều hành ViLIB (đợt V-1128-01-nhan-su): /nhan-su, mục trong /gioi-thieu, khối ở trang chủ (trên Tin tức).
   Phương án 2 anh chọn 28/11: ảnh tròn, thẻ trắng, nhãn học vị, tên một dòng, chức danh, tên tiếng Anh, căn giữa;
   điện thoại: danh sách ảnh tròn nhỏ bên trái. Màu, font, bóng đọc từ biến --vl-* của assets/css/giao-dien.css.
   Mã: includes/nhan-su.php. */

/* Ảnh tròn (assets/images/nhan-su/<slug>.jpg, vuông) hoặc chữ tắt khi chưa có ảnh */
.ns-ph { position: relative; flex: none; display: block; width: 168px; height: 168px; overflow: hidden; border-radius: 50%; background: #e8eef9;
    box-shadow: 0 0 0 6px #fff, 0 0 0 8px rgba(29, 97, 231, .18); container-type: inline-size; }
.ns-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ns-initials { display: flex; align-items: center; justify-content: center; color: #fff;
    background: linear-gradient(150deg, var(--vl-brand-deep, #0d2c68) 0%, var(--vl-brand, #1d61e7) 100%); }
.ns-initials span { font-size: 40px; font-size: 30cqw; font-weight: 800; letter-spacing: .02em; line-height: 1; }

/* Chữ của thẻ: nhãn học vị, tên một dòng, chức danh, tên tiếng Anh */
.ns-t { display: block; min-width: 0; }
.ns-hv { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--vl-brand-soft, rgba(29, 97, 231, .10)); color: var(--vl-brand, #1d61e7);
    font-size: 12px; font-weight: 800; letter-spacing: .04em; line-height: 1.5; }
.ns-nm { display: block; margin: 10px 0 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -.2px; color: var(--vl-ink, #1a1c1e); }
.ns-rl { display: block; margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--vl-muted, #6a6b6d); text-wrap: balance; }
.ns-en { display: block; margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: #9a9ca0; }

/* Lưới 3 cột: thẻ trắng căn giữa */
.ns-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ns-card { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 34px 24px 28px; text-align: center; text-decoration: none;
    background: #fff; border: 1px solid #eef0f4; border-radius: var(--vl-r-lg, 24px); box-shadow: var(--vl-shadow, 0 18px 40px rgba(15, 23, 42, .06));
    color: var(--vl-ink, #1a1c1e); transition: box-shadow .2s, transform .2s; }
.ns-card:hover { color: var(--vl-ink, #1a1c1e); box-shadow: var(--vl-shadow-h, 0 28px 80px rgba(17, 55, 132, .14)); transform: translateY(-3px); }
.ns-card:focus-visible { outline: none; box-shadow: var(--vl-focus, 0 0 0 3px rgba(29, 97, 231, .35)), var(--vl-shadow, 0 18px 40px rgba(15, 23, 42, .06)); }
.ns-card .ns-t { margin-top: 22px; }
.ns-card:hover .ns-nm { color: var(--vl-brand, #1d61e7); }
.ns-home-cta { display: flex; justify-content: center; margin-top: 28px; }
.ns-lead { max-width: 880px; margin: -6px 0 24px; font-size: 16px; line-height: 1.7; color: #3c3e40; }

/* /nhan-su: đầu trang, tiểu sử */
.td .td-hero p.ns-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #ffd9a8; }
.ns-bios { display: grid; gap: 20px; }
.ns-bio { scroll-margin-top: 96px; padding: 30px 32px; background: #fff; border: 1px solid #eef0f4; border-radius: var(--vl-r-lg, 24px);
    box-shadow: var(--vl-shadow, 0 18px 40px rgba(15, 23, 42, .06)); }
.ns-bio:target { box-shadow: 0 0 0 3px rgba(29, 97, 231, .25), var(--vl-shadow, 0 18px 40px rgba(15, 23, 42, .06)); }
.ns-bio-hd { display: flex; align-items: center; gap: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--vl-line, #e6e8ec); }
.ns-bio-hd .ns-ph { width: 120px; height: 120px; box-shadow: 0 0 0 5px #fff, 0 0 0 7px rgba(29, 97, 231, .18); }
.ns-bio .ns-nm { font-size: 24px; white-space: normal; }
.ns-bio .ns-rl { font-weight: 700; color: var(--vl-brand, #1d61e7); font-size: 15.5px; }
.ns-bio .ns-grp { margin: 8px 0 0; font-size: 13px; color: var(--vl-muted, #6a6b6d); }
.ns-body { margin-top: 18px; max-width: 900px; }
.ns-body p, .ns-body li { font-size: 15.5px; line-height: 1.75; color: #3c3e40; }
.ns-body > * + * { margin-top: 10px; }
.ns-body b { color: var(--vl-ink, #1a1c1e); }
.ns-list { margin: 4px 0 0; padding-left: 20px; }
.ns-list li + li { margin-top: 6px; }
.ns-list li::marker { color: var(--vl-brand, #1d61e7); }
.ns-body .ns-contrib { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--vl-line, #e6e8ec); }
.ns-body .ns-src, .ns-body .ns-top { font-size: 13px; }
.ns-body .ns-top { margin-top: 4px; }

/* Máy tính bảng, điện thoại: danh sách ảnh tròn nhỏ bên trái */
@media (max-width: 900px) {
    .ns-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .ns-card { flex-direction: row; align-items: center; gap: 18px; padding: 16px 18px; text-align: left; border-radius: 18px; }
    .ns-card .ns-ph { width: 84px; height: 84px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(29, 97, 231, .18); }
    .ns-card .ns-t { margin-top: 0; }
    .ns-card .ns-hv { padding: 3px 9px; font-size: 10.5px; }
    .ns-card .ns-nm { margin-top: 6px; font-size: 18px; }
    .ns-card .ns-rl { margin-top: 2px; font-size: 13.5px; text-wrap: pretty; }
    .ns-card .ns-en { display: none; }
    .ns-card:hover { transform: none; }
}
@media (max-width: 640px) {
    .ns-home-cta .pill { width: 100%; }
    .ns-bio { padding: 20px; border-radius: 18px; }
    .ns-bio-hd { gap: 16px; padding-bottom: 16px; }
    .ns-bio-hd .ns-ph { width: 84px; height: 84px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(29, 97, 231, .18); }
    .ns-bio .ns-hv { padding: 3px 9px; font-size: 10.5px; }
    .ns-bio .ns-nm { margin-top: 6px; font-size: 19px; }
    .ns-bio .ns-rl { font-size: 14px; }
    .ns-body p, .ns-body li { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .ns-card { transition: none; }
    .ns-card:hover { transform: none; }
}
