/* Trang Hướng dẫn sử dụng (đọc sách PDF của Toyota). Link không gạch chân; nút <button> đặt lại đủ trạng thái để thắng kiểu Kadence. */
.tbtc-hdsdp { padding: 28px 0 36px; }
.tbtc-hdsdp__crumb { font-size: 14px; color: var(--tbtc-muted); margin-bottom: 12px; }
.tbtc-hdsdp__crumb a:hover { color: var(--tbtc-red); }
.tbtc-hdsdp__head { margin-bottom: 20px; }
.tbtc-hdsdp__head h1, .tbtc-hdsdp__title { margin: 0 0 6px; font-size: clamp(22px, 3vw, 32px); line-height: 1.25; }
.tbtc-hdsdp__title { margin-bottom: 14px; }
.tbtc-hdsdp__alt, .tbtc-hdsdp__alt:hover { color: var(--tbtc-ink); font-weight: 600; white-space: nowrap; }
.tbtc-hdsdp__alt:hover { color: var(--tbtc-red); }
.tbtc-hdsdp__acts .tbtc-hdsdp__alt { margin-left: 14px; }
.tbtc-hdsdp__head p { margin: 0; color: var(--tbtc-muted); }
.tbtc-hdsdp__err { padding: 14px 16px; background: var(--tbtc-bg-soft); border-radius: var(--tbtc-radius); }
.tbtc-hdsdp .tbtc-hdsdp__acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.tbtc-hdsdp .tbtc-btn--ghost { background: transparent; border-color: var(--tbtc-ink); color: var(--tbtc-ink); }
.tbtc-hdsdp .tbtc-btn--ghost:hover, .tbtc-hdsdp .tbtc-btn--ghost:focus-visible { background: var(--tbtc-ink); color: #fff; }


/* Danh sách quyển: bìa sách có gáy, đổ bóng */
.tbtc-hdsdp__books { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 36px 28px; padding: 8px 0 4px; }
.tbtc-hdsdp__book { display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--tbtc-ink); text-align: center; }
.tbtc-hdsdp__cover { position: relative; display: block; width: 100%; max-width: 230px; aspect-ratio: 5 / 7; background: #fff; border-radius: 3px 8px 8px 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 10px 22px rgba(17, 17, 17, .22), 0 22px 40px rgba(17, 17, 17, .10); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.tbtc-hdsdp__cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .28) 0, rgba(255, 255, 255, .35) 1.5%, rgba(0, 0, 0, .12) 3%, rgba(0, 0, 0, 0) 7%), linear-gradient(135deg, rgba(255, 255, 255, .22) 0, rgba(255, 255, 255, 0) 40%); }
.tbtc-hdsdp__cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tbtc-hdsdp__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(160deg, #3a3d43, #1c1d20); color: #fff; }
.tbtc-hdsdp__ph svg { width: 44px; height: 44px; }
.tbtc-hdsdp__book strong { max-width: 230px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.tbtc-hdsdp__book:hover { color: var(--tbtc-red); }
.tbtc-hdsdp__book:hover .tbtc-hdsdp__cover, .tbtc-hdsdp__book:focus-visible .tbtc-hdsdp__cover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .14), 0 18px 32px rgba(17, 17, 17, .28), 0 32px 50px rgba(17, 17, 17, .12); }

/* Bìa sách của từng dòng xe (trang chọn xe) */
.tbtc-hdsdp__cover--xe { display: flex; flex-direction: column; align-items: center; padding: 16px 14px 0; background: linear-gradient(180deg, #ffffff 0%, #eef0f3 100%); text-align: center; }
.tbtc-hdsdp__cover--xe::before { content: "TOYOTA"; display: block; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--tbtc-red); }
.tbtc-hdsdp__ct { display: block; margin-top: 6px; font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--tbtc-ink); }
.tbtc-hdsdp__ct::after { content: ""; display: block; width: 28px; height: 2px; margin: 8px auto 0; background: var(--tbtc-red); }
.tbtc-hdsdp__cimg { display: flex; flex: 1 1 auto; align-items: center; width: 100%; padding-bottom: 8px; }
.tbtc-hdsdp__cimg img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .2)); }
.tbtc-hdsdp__cn { display: block; flex: none; margin: 0 0 14px; font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--tbtc-ink); }
.tbtc-hdsdp__cband { flex: none; align-self: stretch; height: 26px; margin: 0 -14px; background: var(--tbtc-red); }
.tbtc-hdsdp__books--xe { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* Khung đọc sách */
.tbtc-rd { background: #2b2d31; border-radius: var(--tbtc-radius); overflow: hidden; }
.tbtc-rd__bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #1c1d20; color: #fff; }
.tbtc-rd__sp { flex: 1 1 auto; }
.tbtc-rd__pg { display: inline-flex; align-items: center; gap: 8px; margin: 0 2px; font-size: 14px; white-space: nowrap; }
.tbtc-rd .tbtc-rd__pg input { width: 56px; height: 38px; padding: 0 4px; border: 1px solid #555; border-radius: 8px; background: #2b2d31; box-shadow: none; color: #fff; font-size: 15px; text-align: center; -moz-appearance: textfield; }
.tbtc-rd .tbtc-rd__pg input::-webkit-outer-spin-button, .tbtc-rd .tbtc-rd__pg input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tbtc-rd .tbtc-rd__pg input:focus { border-color: #aaa; background: #2b2d31; color: #fff; box-shadow: none; }
.tbtc-rd .tbtc-rd__b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid #555; border-radius: 8px; background: transparent; box-shadow: none; color: #fff; font-size: 13px; font-weight: 500; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tbtc-rd .tbtc-rd__b svg { width: 18px; height: 18px; flex: none; }
.tbtc-rd .tbtc-rd__b:hover, .tbtc-rd .tbtc-rd__b:focus, .tbtc-rd .tbtc-rd__b:active { border: 1px solid #aaa; background: #3a3c41; box-shadow: none; color: #fff; }
.tbtc-rd .tbtc-rd__b[hidden] { display: none; }
.tbtc-rd .tbtc-rd__b:disabled { opacity: .35; cursor: default; }
.tbtc-rd__prog { height: 3px; background: #0f1012; }
.tbtc-rd__prog i { display: block; height: 100%; width: 0; background: var(--tbtc-red); transition: width .3s ease; }
.tbtc-rd__stage { position: relative; height: min(80vh, 920px); min-height: 380px; overflow: hidden; padding: 12px; outline: none; background: radial-gradient(ellipse at 50% 40%, #3a3d43 0%, #26282c 70%); }
.tbtc-rd__stage.is-zoomed { overflow: auto; -webkit-overflow-scrolling: touch; }
.tbtc-rd__book { margin: 0 auto; touch-action: pan-y; }
.tbtc-rd__stage.is-zoomed .tbtc-rd__book { touch-action: auto; }
.tbtc-rd__page { background: #fff; overflow: hidden; }
.tbtc-rd__page canvas { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .25s ease; }
.tbtc-rd__page.is-ready canvas { opacity: 1; }
.tbtc-rd__load { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0 20px; color: #ddd; text-align: center; background: inherit; }
.tbtc-rd__load[hidden] { display: none; }
.tbtc-rd__load a { color: #fff; margin-left: 6px; }
.tbtc-rd__hint { margin: 0; padding: 8px 12px; background: #1c1d20; color: #aaa; font-size: 12.5px; }
.tbtc-rd:fullscreen { display: flex; flex-direction: column; border-radius: 0; }
.tbtc-rd:fullscreen .tbtc-rd__stage { flex: 1 1 auto; height: auto; }
@media (max-width: 768px) {
	.tbtc-rd__bar { gap: 4px; padding: 6px 8px; }
	.tbtc-rd .tbtc-rd__b { min-width: 40px; height: 40px; padding: 0; border-color: #4a4c52; border-radius: 10px; }
	.tbtc-rd .tbtc-rd__b svg { width: 20px; height: 20px; }
	.tbtc-rd__t { display: none; }
	.tbtc-rd .tbtc-rd__pg input { width: 46px; height: 40px; border-radius: 10px; border-color: #4a4c52; }
	.tbtc-rd__of { font-size: 13px; color: #bbb; }
	.tbtc-rd__sp { flex: 1 1 0; min-width: 0; }
	/* "Vừa khung" chỉ hiện khi đang phóng to, đỡ chật thanh công cụ */
	.tbtc-rd:not(.is-zoomed) .tbtc-rd__b--fit { display: none; }
	.tbtc-rd.is-zoomed .tbtc-rd__b--full { display: none; }
	.tbtc-rd__stage { height: 74vh; height: min(74svh, 760px); padding: 6px; }
	.tbtc-rd__hint { display: none; }
	.tbtc-hdsdp { padding: 20px 0 28px; }
	.tbtc-hdsdp__books { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}
