/* NLKT Core - tìm kiếm chung (sách + từ điển + Kinh Thánh) */
.nlkt-tk { max-width: 860px; margin: 0 auto; }
.nlkt-tk-form { display: flex; gap: 8px; align-items: stretch; }
.nlkt-tk-o { position: relative; flex: 1 1 auto; min-width: 0; }
.nlkt-tk-o input[type="search"] {
    width: 100%; box-sizing: border-box; font-size: 17px; line-height: 1.3;
    padding: 12px 14px; border: 2px solid #c9d2dc; border-radius: 10px; background: #fff;
    -webkit-appearance: none; appearance: none;
}
.nlkt-tk-o input[type="search"]:focus { outline: none; border-color: #2a6db0; box-shadow: 0 0 0 3px rgba(42,109,176,.18); }
.nlkt-tk .nlkt-tk-form button {
    flex: 0 0 auto; font-size: 16px; font-weight: 600; padding: 0 22px; border: 0; border-radius: 10px;
    background: #2a6db0; color: #fff; cursor: pointer;
}
.nlkt-tk .nlkt-tk-form button:hover { background: #1f568d; }
.nlkt-tk-huong-dan { font-size: 13.5px; color: #6b7480; margin: 8px 2px 14px; }
.nlkt-tk-huong-dan em { font-style: normal; color: #2a6db0; }
/* ô tìm gọn ở đầu trang Thư Viện (chỉ ô + nút, Enter -> trang tìm kiếm) */
.nlkt-tk-gon { margin: 0 auto 18px; }

/* gợi ý */
.nlkt-tk-goi-y {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; background: #fff;
    border: 1px solid #c9d2dc; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); overflow: hidden;
}
.nlkt-tk-goi-y div { padding: 10px 14px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.nlkt-tk-goi-y div + div { border-top: 1px solid #eef1f4; }
.nlkt-tk-goi-y div:hover, .nlkt-tk-goi-y div.is-active { background: #eaf2fb; }
.nlkt-tk-goi-y small { color: #8a94a0; white-space: nowrap; }

/* theme đặt kiểu chung cho <button>: đặt lại trong khung tìm kiếm */
.nlkt-tk button { text-transform: none; letter-spacing: 0; line-height: 1.3; box-shadow: none; font-family: inherit; }

/* tab loại */
.nlkt-tk-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; -webkit-overflow-scrolling: touch; }
.nlkt-tk .nlkt-tk-tabs button {
    flex: 0 0 auto; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid #c9d2dc;
    background: #fff; color: #333; cursor: pointer; white-space: nowrap;
}
.nlkt-tk .nlkt-tk-tabs button.is-active { background: #2a6db0; border-color: #2a6db0; color: #fff; }
.nlkt-tk .nlkt-tk-tabs button:disabled { opacity: .45; cursor: default; }
.nlkt-tk-tabs b { font-weight: 600; margin-left: 4px; }

/* kết quả */
.nlkt-tk-ket-qua { min-height: 40px; }
.nlkt-tk-tom-tat { color: #6b7480; font-size: 14px; margin: 0 0 10px; }
.nlkt-tk-trong { padding: 24px 0; color: #6b7480; text-align: center; }
.nlkt-tk-muc { display: block; padding: 12px 0; border-top: 1px solid #e6eaef; color: inherit; text-decoration: none; }
.nlkt-tk-muc:last-child { border-bottom: 1px solid #e6eaef; }
.nlkt-tk-muc:hover .nlkt-tk-tua, a.nlkt-tk-muc:focus .nlkt-tk-tua { text-decoration: underline; }
.nlkt-tk-nhan {
    display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
    padding: 2px 8px; border-radius: 4px; background: #eef3f8; color: #2a6db0; margin-bottom: 4px;
}
.nlkt-tk-nhan.kinh_thanh { background: #f3efe4; color: #8a6a1f; }
.nlkt-tk-nhan.tu_dien { background: #eaf5ec; color: #2e7d46; }
.nlkt-tk-tua { display: block; font-size: 17px; font-weight: 600; color: #1d2733; margin: 0 0 4px; line-height: 1.35; }
.nlkt-tk-trich { font-size: 15px; line-height: 1.55; color: #3d4752; margin: 0; word-break: break-word; }
.nlkt-tk-trich mark, .nlkt-tk-doan mark { background: #fff3a8; color: inherit; padding: 0 1px; border-radius: 2px; }
.nlkt-tk button.nlkt-tk-xem-doan, .nlkt-tk button.nlkt-tk-xem-doan:hover, .nlkt-tk button.nlkt-tk-xem-doan:focus {
    display: inline-block; margin-top: 6px; font-size: 13.5px; font-weight: 500; line-height: 1.4; color: #2a6db0;
    background: none; border: 0; border-radius: 0; padding: 0; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0;
}
.nlkt-tk button.nlkt-tk-xem-doan:hover { text-decoration: underline; }
.nlkt-tk-doan { margin: 8px 0 0; padding: 10px 12px; background: #fbf9f3; border-left: 3px solid #d9c98f; border-radius: 4px; font-size: 14.5px; line-height: 1.6; }
.nlkt-tk-doan .nlkt-popup-verse { margin: 0 0 6px; }
.nlkt-tk-doan .is-dich { background: #fff3a8; }

/* phân trang */
.nlkt-tk-trang { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.nlkt-tk .nlkt-tk-trang button {
    min-width: 38px; height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid #c9d2dc; background: #fff; cursor: pointer; font-size: 14px;
}
.nlkt-tk .nlkt-tk-trang button.is-active { background: #2a6db0; border-color: #2a6db0; color: #fff; }
.nlkt-tk .nlkt-tk-trang button:disabled { opacity: .4; cursor: default; }
.nlkt-tk-dang-tai { opacity: .5; pointer-events: none; }

@media (max-width: 480px) {
    .nlkt-tk .nlkt-tk-form button { padding: 0 16px; }
    .nlkt-tk-tua { font-size: 16px; }
    .nlkt-tk-trich { font-size: 14.5px; }
}
