/* Thời Biểu Kinh Thánh (assets/thoi-bieu.js). Màu từng thời kỳ truyền qua biến --mau.
 *
 * Giao diện Astra/Elementor của site đặt kiểu cho MỌI <button> (chữ in hoa, giãn chữ, đệm 18×35, nền màu chủ đạo,
 * button:hover đổi nền) và cho h3/h4 (font Times, màu xanh lá). Đo trên site 26/10/2026: luật mạnh nhất là
 * `button:hover` (độ ưu tiên 0,1,1). Vì vậy: luật của nút ở đây đều có tiền tố `.nlkt-tb ` (0,2,0 trở lên) và
 * nền / chữ của nút đặt qua biến --nen / --chu, áp lại cả ở :hover / :focus.
 */
.nlkt-tb {
  --tb-nen: #fbf8f2; --tb-vien: #e2d9c8; --tb-chu: #2b2620; --tb-nhat: #7a7061; --tb-trang: #fff;
  position: relative; color: var(--tb-chu); font-size: 15px; line-height: 1.45; margin: 0 0 2em;
}
.nlkt-tb button {
  --nen: transparent; --chu: inherit;
  font-family: inherit; font-weight: inherit; text-transform: none; letter-spacing: normal; text-decoration: none;
  border-radius: 0; box-shadow: none; text-shadow: none; min-height: 0; margin: 0; cursor: pointer;
}
.nlkt-tb button, .nlkt-tb button:hover, .nlkt-tb button:focus, .nlkt-tb button:active {
  background-color: var(--nen); color: var(--chu); border-color: var(--tb-vien);
}
.nlkt-tb button:focus-visible { outline: 2px solid var(--mau, #8a6d1f); outline-offset: 2px; }
.nlkt-tb .nlkt-tb-nho { color: var(--tb-nhat); font-size: .9em; }

/* thanh trên */
.nlkt-tb-tren { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.nlkt-tb-tim { position: relative; flex: 1 1 240px; max-width: 420px; }
.nlkt-tb .nlkt-tb-tim input {
  width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--tb-vien); border-radius: 6px;
  background: var(--tb-trang); color: var(--tb-chu); font-size: 15px; line-height: 1.4; margin: 0;
}
.nlkt-tb-ket-qua {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0; list-style: none;
  background: var(--tb-trang); border: 1px solid var(--tb-vien); border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.nlkt-tb-ket-qua li { margin: 0; }
.nlkt-tb .nlkt-tb-ket-qua button { display: block; width: 100%; text-align: left; border: 0; padding: 8px 12px; font-size: 15px; line-height: 1.4; }
.nlkt-tb .nlkt-tb-ket-qua button:hover, .nlkt-tb .nlkt-tb-ket-qua button:focus { --nen: var(--tb-nen); }
.nlkt-tb-ket-qua small, .nlkt-tb-lien small { color: var(--tb-nhat); font-weight: 400; }
.nlkt-tb-khong-thay { padding: 8px 12px; color: var(--tb-nhat); }
.nlkt-tb-phong { display: flex; gap: 4px; margin-left: auto; }
.nlkt-tb .nlkt-tb-nut {
  --nen: var(--tb-trang); min-width: 38px; height: 38px; padding: 0; border: 1px solid var(--tb-vien); border-radius: 6px;
  font-size: 20px; line-height: 1;
}
.nlkt-tb .nlkt-tb-nut:hover { --nen: var(--tb-nen); }

/* thẻ thời kỳ */
.nlkt-tb-the-ky { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: thin; }
.nlkt-tb-thoi-dai { flex: 0 0 auto; }
.nlkt-tb-thoi-dai-ten {
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--tb-nhat); margin: 0 0 6px 2px; font-weight: 600;
}
.nlkt-tb-thoi-dai-hang { display: flex; gap: 6px; }
.nlkt-tb .nlkt-tb-the {
  --nen: var(--mau); --chu: #fff;
  width: 128px; min-height: 84px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; text-align: left;
  padding: 8px 10px; border: 0; border-radius: 6px; line-height: 1.25;
  background-image: linear-gradient(160deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 70%);
  box-shadow: inset 0 0 0 2px transparent; transition: transform .12s;
}
.nlkt-tb .nlkt-tb-the:hover { transform: translateY(-2px); }
.nlkt-tb .nlkt-tb-the.nlkt-tb-dang-xem { box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--mau); }
.nlkt-tb-the-ten { font-weight: 700; font-size: 14px; line-height: 1.2; }
.nlkt-tb-the-nam, .nlkt-tb-the-so { font-size: 12px; opacity: .9; }

/* trục ngang */
.nlkt-tb-vung { position: relative; }
.nlkt-tb-khung {
  overflow-x: auto; overflow-y: hidden; border: 1px solid var(--tb-vien); border-radius: 8px; background: var(--tb-nen);
  cursor: grab; scrollbar-width: thin; user-select: none;
}
.nlkt-tb-khung.nlkt-tb-dang-keo { cursor: grabbing; }
.nlkt-tb-khung.nlkt-tb-dang-keo button { pointer-events: none; }
.nlkt-tb-nen { position: relative; }
.nlkt-tb .nlkt-tb-dai-ky {
  --nen: var(--mau); --chu: #fff;
  position: absolute; top: 0; height: 34px; border: 0; border-right: 1px solid rgba(255,255,255,.5); border-radius: 0;
  font-weight: 700; font-size: 13px; line-height: 34px; text-transform: uppercase; letter-spacing: .04em; padding: 0 12px;
  text-align: left; white-space: nowrap; overflow: hidden;
}
.nlkt-tb-nhan-bam { display: inline-block; will-change: transform; }
.nlkt-tb-o-ky {
  position: absolute; top: 34px; bottom: 36px; border-right: 1px dashed var(--tb-vien);
  background: color-mix(in srgb, var(--mau) 6%, transparent);
}
.nlkt-tb-o-trong { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); color: var(--tb-nhat); font-style: italic; white-space: nowrap; }

.nlkt-tb .nlkt-tb-thanh {
  --nen: color-mix(in srgb, var(--mau) 82%, #fff); --chu: #fff;
  position: absolute; height: 24px; padding: 0; border: 0; border-radius: 12px; text-align: left; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.15); font-size: 13px; line-height: 18px;
}
@supports not (background: color-mix(in srgb, red 50%, #fff)) { .nlkt-tb .nlkt-tb-thanh { --nen: var(--mau); } }
.nlkt-tb-thanh-chu { display: inline-block; padding: 3px 12px; font-size: 13px; line-height: 18px; }
.nlkt-tb-thanh-chu small { opacity: .85; font-weight: 400; font-size: 12px; }
.nlkt-tb-chu-ngoai .nlkt-tb-thanh-chu { position: absolute; left: calc(100% + 6px); top: 0; color: var(--tb-chu); padding-left: 0; }
.nlkt-tb-chu-ngoai .nlkt-tb-thanh-chu small { color: var(--tb-nhat); }

.nlkt-tb .nlkt-tb-su-kien {
  --nen: var(--tb-trang);
  position: absolute; display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px 0 0; border: 0;
  border-radius: 12px; box-shadow: 0 0 0 1px var(--tb-vien); white-space: nowrap; z-index: 2; font-size: 13px; line-height: 18px;
}
.nlkt-tb-cham { width: 12px; height: 12px; border-radius: 50%; background: var(--mau); box-shadow: 0 0 0 3px var(--tb-trang); flex: none; }
.nlkt-tb-su-kien-chu { font-size: 13px; font-weight: 600; }
.nlkt-tb-vach { position: absolute; width: 0; border-left: 1px dotted color-mix(in srgb, var(--mau) 60%, transparent); z-index: 1; pointer-events: none; }
.nlkt-tb .nlkt-tb-thanh:hover, .nlkt-tb .nlkt-tb-su-kien:hover { filter: brightness(1.06); box-shadow: 0 0 0 2px var(--mau); }
.nlkt-tb .nlkt-tb-dang-mo { outline: 3px solid var(--mau); outline-offset: 2px; z-index: 5; }

.nlkt-tb-thuoc { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; border-top: 1px solid var(--tb-vien); background: var(--tb-trang); }
.nlkt-tb-moc { position: absolute; top: 0; transform: translateX(-50%); padding-top: 9px; font-size: 12px; line-height: 1.3; color: var(--tb-nhat); white-space: nowrap; }
.nlkt-tb-moc::before { content: ''; position: absolute; top: 0; left: 50%; height: 6px; border-left: 1px solid var(--tb-nhat); }
.nlkt-tb-moc-ky { transform: none; padding-left: 6px; font-weight: 700; color: var(--tb-chu); }
.nlkt-tb-moc-ky::before { left: 0; height: 36px; border-left-color: var(--tb-vien); }

.nlkt-tb .nlkt-tb-di {
  --nen: rgba(255,255,255,.92);
  position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 56px; padding: 0; border: 1px solid var(--tb-vien);
  border-radius: 6px; font-size: 16px; line-height: 1; z-index: 6;
}
.nlkt-tb-di-trai { left: -6px; }
.nlkt-tb-di-phai { right: -6px; }

/* bảng chi tiết */
.nlkt-tb-chi-tiet {
  position: fixed; z-index: 99990; top: 0; right: 0; bottom: 0; width: min(440px, 92vw); overflow-y: auto; box-sizing: border-box;
  padding: 22px 22px 28px; background: var(--tb-trang); border-left: 6px solid var(--mau); box-shadow: -8px 0 30px rgba(0,0,0,.18);
}
.nlkt-tb .nlkt-tb-dong {
  --nen: var(--tb-nen);
  position: sticky; top: 0; float: right; width: 40px; height: 40px; padding: 0; margin: -8px -8px 0 8px; border: 0; border-radius: 50%;
  font-size: 24px; line-height: 40px; text-align: center;
}
.nlkt-tb-loai { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mau); font-weight: 700; }
.nlkt-tb .nlkt-tb-ct-ten { margin: 4px 0 4px; padding: 0; font-family: inherit; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--tb-chu); }
.nlkt-tb-ct-nam { color: var(--tb-nhat); font-weight: 600; }
.nlkt-tb .nlkt-tb-ct-ky {
  --chu: var(--mau);
  margin: 10px 0 0; padding: 3px 10px; border: 1px solid var(--mau); border-radius: 999px; font-size: 13px; line-height: 1.4;
}
.nlkt-tb .nlkt-tb-ct-ky:hover { --nen: var(--tb-nen); }
.nlkt-tb .nlkt-tb-ct-tom-tat { margin: 14px 0; }
.nlkt-tb .nlkt-tb-chi-tiet h4 {
  margin: 20px 0 8px; padding: 0; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.4;
  text-transform: uppercase; letter-spacing: .05em; color: var(--tb-nhat);
}
.nlkt-tb-cau { margin: 0 0 12px; padding: 10px 12px; background: var(--tb-nen); border-radius: 6px; border-left: 3px solid var(--mau); }
.nlkt-tb-cau-dia-chi { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.nlkt-tb .nlkt-tb-cau-loi p { margin: 0 0 4px; font-size: 14.5px; }
.nlkt-tb-cau-loi sup { color: var(--mau); font-weight: 700; }
.nlkt-tb .nlkt-tb-ct-ds { list-style: none; margin: 0; padding: 0; }
.nlkt-tb .nlkt-tb-ct-ds li { margin: 0 0 2px; }
.nlkt-tb .nlkt-tb-lien {
  display: block; width: 100%; text-align: left; padding: 7px 0; border: 0; border-bottom: 1px solid var(--tb-nen);
  text-decoration: none; color: var(--tb-chu); font-weight: 600; font-size: 15px; line-height: 1.4;
}
.nlkt-tb a.nlkt-tb-lien:hover, .nlkt-tb button.nlkt-tb-lien:hover { --chu: var(--mau); color: var(--mau); }
.nlkt-tb-ct-dieu-huong { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; border-top: 1px solid var(--tb-vien); padding-top: 12px; }
.nlkt-tb .nlkt-tb-nut-chu { --chu: var(--mau); border: 0; font-weight: 600; padding: 8px 0; text-align: left; font-size: 15px; line-height: 1.4; }
.nlkt-tb .nlkt-tb-nut-chu:last-child { text-align: right; }

/* điện thoại: danh sách dọc */
.nlkt-tb-che-do-doc .nlkt-tb-the-ky { position: sticky; top: 0; z-index: 20; background: var(--tb-trang); padding-top: 6px; }
.nlkt-tb.nlkt-tb-che-do-doc .nlkt-tb-the { width: 112px; min-height: 64px; }
.nlkt-tb-che-do-doc .nlkt-tb-thoi-dai-ten { display: none; }
.nlkt-tb-doc-ky { margin: 0 0 18px; border-left: 4px solid var(--mau); padding-left: 10px; scroll-margin-top: 90px; }
.nlkt-tb .nlkt-tb-doc-dau {
  display: flex; flex-direction: column; align-items: flex-start; width: 100%; border: 0; padding: 6px 0; text-align: left; line-height: 1.35;
}
.nlkt-tb-doc-ten { font-size: 18px; font-weight: 700; color: var(--mau); }
.nlkt-tb-doc-nam { font-size: 13px; color: var(--tb-nhat); }
.nlkt-tb .nlkt-tb-doc-trong { margin: 4px 0; font-size: 14px; }
.nlkt-tb .nlkt-tb-doc-ds { list-style: none; margin: 0; padding: 0; }
.nlkt-tb .nlkt-tb-doc-ds li { margin: 0; }
.nlkt-tb .nlkt-tb-doc-muc {
  display: flex; gap: 10px; width: 100%; padding: 10px 4px; min-height: 44px; border: 0; border-bottom: 1px solid var(--tb-nen);
  text-align: left; align-items: baseline; font-size: 15px; line-height: 1.4;
}
.nlkt-tb-doc-moc { flex: 0 0 82px; font-size: 13px; color: var(--tb-nhat); font-variant-numeric: tabular-nums; }
.nlkt-tb-doc-chu { display: flex; flex-direction: column; }
.nlkt-tb-doc-chu small { color: var(--tb-nhat); font-size: 12.5px; }
.nlkt-tb-loai-nhan_vat .nlkt-tb-doc-chu strong::before { content: '●'; color: var(--mau); margin-right: 6px; font-size: 11px; vertical-align: 2px; }
.nlkt-tb-loai-su_kien .nlkt-tb-doc-chu strong { font-weight: 600; }

@media (max-width: 767px) {
  .nlkt-tb-chi-tiet { width: 100vw; border-left: 0; border-top: 6px solid var(--mau); padding: 18px 16px 32px; }
  .nlkt-tb .nlkt-tb-ct-ten { font-size: 21px; }
  html.nlkt-tb-khoa-cuon, html.nlkt-tb-khoa-cuon body { overflow: hidden; }
}
