/* Phân hệ Tin tức (+ khối tin trên Bảng tin) — chỉ dùng token của app.css */

/* Ảnh 16:9 dùng chung cho thẻ tin */
.tt-anh { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-nhat); }
.tt-anh img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tt-anh__so { position: absolute; right: 10px; bottom: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(20, 30, 30, .72);
  color: #fff; font-size: .75rem; font-weight: 700; }

/* Dòng tin */
.tt-dong { display: grid; gap: 14px; }
.tt-the { padding: 0; overflow: hidden; margin: 0; }
.tt-the__than { padding: 14px 16px 16px; }
.tt-the__tieu-de { font-size: 1.125rem; margin: 0 0 6px; }
.tt-the__tieu-de a { color: var(--chu); text-decoration: none; }
.tt-the__tieu-de a:hover { color: var(--c-dam); }
.tt-the__tom { margin: 0 0 8px; overflow-wrap: anywhere; }
@media (min-width: 720px) { .tt-dong { grid-template-columns: 1fr 1fr; } }

/* Bài đầy đủ */
.tt-bai__tieu-de { margin: 2px 0 12px; font-size: 1.375rem; }
.tt-tac-gia { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--vien); }
.tt-bai__noi-dung { margin-bottom: 14px; overflow-wrap: anywhere; }
.tt-bai__noi-dung p:last-child { margin-bottom: 0; }
.tt-luoi { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 -16px 14px; }
.tt-luoi a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-nhat); }
.tt-luoi a:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.tt-luoi img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tt-luoi--mot a:first-child { aspect-ratio: auto; }
.tt-luoi--mot img { height: auto; }
@media (min-width: 720px) { .tt-luoi { margin: 0 0 14px; } .tt-luoi a { border-radius: var(--r-nho); } }
.tt-bai__nut { padding-top: 12px; border-top: 1px solid var(--vien); }

/* Form: ảnh đang có */
.tt-anh-cu { border: 0; padding: 0; margin: 0; min-width: 0; }
.tt-anh-cu legend { font-weight: 600; font-size: .9375rem; padding: 0; margin-bottom: 4px; }
.tt-anh-cu__luoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
@media (min-width: 720px) { .tt-anh-cu__luoi { grid-template-columns: repeat(5, 1fr); } }
.tt-anh-cu__o { display: flex; flex-direction: column; border: 1px solid var(--vien); border-radius: var(--r-nho); overflow: hidden; cursor: pointer; }
.tt-anh-cu__o img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.tt-anh-cu__o span { display: flex; align-items: center; gap: 6px; padding: 6px 8px; font-size: .875rem; min-height: 36px; }
.tt-anh-cu__o input { width: 18px; height: 18px; accent-color: var(--do); }
.tt-anh-cu__o:has(input:checked) { border-color: var(--do); }
.tt-anh-cu__o:has(input:checked) img { opacity: .4; }
.field input[type="file"] { padding: 9px 10px; }

/* Bảng tin: tin nổi bật + tin kế */
.tq-tin { padding: 0; overflow: hidden; }
.tq-tin__h { padding: 14px 16px 0; }
.tq-tin__noi { display: block; color: var(--chu); text-decoration: none; }
.tq-tin__noi:hover .tq-tin__tieu-de { color: var(--c-dam); }
.tq-tin__than { display: block; padding: 12px 16px 14px; }
.tq-tin__tieu-de { display: block; font-size: 1.1875rem; line-height: 1.35; margin: 0 0 6px; }
.tq-tin__tom { display: block; margin-bottom: 6px; overflow-wrap: anywhere; }
.tq-tin__ke { list-style: none; margin: 0; padding: 0 16px 4px; border-top: 1px solid var(--vien); }
.tq-tin__ke li { border-bottom: 1px solid var(--vien); }
.tq-tin__ke li:last-child { border-bottom: 0; }
.tq-tin__ke a { display: flex; gap: 12px; align-items: center; padding: 12px 0; color: var(--chu); text-decoration: none; }
.tq-tin__ke a:hover strong { color: var(--c-dam); }
.tq-tin__nho { flex: none; width: 96px; aspect-ratio: 16 / 9; border-radius: var(--r-nho); overflow: hidden; background: var(--c-nhat); }
.tq-tin__nho img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tq-tin__ke strong { display: block; line-height: 1.35; }
