/* Dòng thời gian lịch sử (/cong-cu/dong-thoi-gian). Tệp nạp ở mọi trang → mọi lớp có tiền tố dtg-. Trang trong iframe dùng dong-thoi-gian-khung.css. */
.chinh:has(> .dtg) { max-width: 1500px; }
.dtg-an-chu { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dtg-giua { justify-content: center; }
.dtg-dau { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.dtg-dau h1 { margin: 0; }
.dtg-dau .phu { margin: 2px 0 0; }
.dtg-dau__phai { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.dtg-chon { min-width: 280px; }

.dtg-tab { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; }
.dtg-tab [role="tab"] { flex: none; min-height: 46px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--vien); background: var(--the);
  color: var(--chu); font: inherit; font-weight: 700; cursor: pointer; }
.dtg-tab [role="tab"]:hover { border-color: var(--c-vien); color: var(--c-dam); }
.dtg-tab [role="tab"][aria-selected="true"] { background: var(--c-dam); border-color: var(--c-dam); color: #fff; }

/* Xem */
.dtg-xem__nut { margin-bottom: 10px; }
.dtg-khung { border: 1px solid var(--vien); border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: var(--bong); }
.dtg-khung iframe { display: block; width: 100%; height: clamp(540px, 76vh, 920px); border: 0; }
.dtg-xem:fullscreen { background: var(--bg); padding: 10px 14px 14px; display: flex; flex-direction: column; }
.dtg-xem:fullscreen .dtg-khung { flex: 1; min-height: 0; }
.dtg-xem:fullscreen .dtg-khung iframe { height: 100%; }
.dtg-p .rong .hang-nut { margin-top: 12px; }

/* Soạn */
.dtg-soan { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .dtg-soan { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.dtg-form, .dtg-ds-the { margin-bottom: 0; }
.dtg-form { display: grid; gap: 12px; }
.dtg-form h2 { margin: 0; }
.dtg-form .field__hint { margin-top: -4px; }
.dtg-form .field .field__hint { margin-top: 0; }
.dtg-ngay { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.dtg-kt { border: 1px solid var(--vien); border-radius: var(--r-nho); padding: 10px 12px; }
.dtg-kt summary { cursor: pointer; font-weight: 600; font-size: .9375rem; color: var(--c-dam); }
.dtg-kt[open] summary { margin-bottom: 10px; }
.dtg-kt .field--check { margin-top: 10px; }
.dtg-anh { border: 1px solid var(--vien); border-radius: var(--r-nho); padding: 12px; margin: 0; display: grid; gap: 10px; min-width: 0; }
.dtg-anh legend { font-weight: 600; font-size: .9375rem; padding: 0 6px; }
.dtg-anh__xem img { display: block; max-width: 100%; max-height: 220px; border-radius: var(--r-nho); border: 1px solid var(--vien); }
.dtg-form .form-nut { margin-top: 0; }
.dtg-form .bao { margin: 0; }

.dtg-ds-the h2 { margin-bottom: 10px; }
.dtg-ds { list-style: none; margin: 0; padding: 0; }
.dtg-ds__muc { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--vien); }
.dtg-ds__muc:first-child { border-top: 0; }
.dtg-ds__muc--sua { background: var(--nhan-nhat); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: var(--r-nho); }
.dtg-ds__anh { flex: none; width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--c-nhat); border: 1px solid var(--vien); }
.dtg-ds__than { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.dtg-ds__than strong { overflow-wrap: anywhere; }
.dtg-ds__nam { font-size: .875rem; font-weight: 700; color: var(--nhan-dam); }
.dtg-ds__nut { display: flex; gap: 6px; flex: none; }

@media (max-width: 640px) {
  .dtg-chon { min-width: 0; flex: 1 1 200px; }
  .dtg-khung iframe { height: 600px; }
  .dtg-ds__muc { flex-wrap: wrap; }
  .dtg-ds__nut { width: 100%; justify-content: flex-end; }
  .dtg-xem__nut .phu { display: none; }
}
