/* Hallmark · component: PDF reader · typography inherited from website */
.tnpb{--ink:oklch(28% .025 205);--accent:oklch(44% .075 205);--stage:oklch(96% .006 205);--paper:oklch(99% .002 205);--line:oklch(86% .012 205);--muted:oklch(48% .02 205);--shadow:oklch(20% .02 205 / .18);box-sizing:border-box;max-width:1200px;width:100%;margin:24px auto;color:var(--ink);font-family:inherit;outline-offset:4px}
.tnpb{container-type:inline-size}
.tnpb *{box-sizing:border-box}
.tnpb .tnpb-heading{font:inherit;font-size:18px;font-weight:600;margin:0 0 16px;overflow-wrap:anywhere}
.tnpb .tnpb-viewport{height:min(65svh,780px);min-height:160px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--stage);touch-action:pan-y;padding:16px}
.tnpb .tnpb-viewport{height:min(65svh,76cqw,780px)}
.tnpb .tnpb-paper{position:relative;flex:none;box-shadow:0 8px 24px var(--shadow);transform-origin:center}
.tnpb .tnpb-paper>canvas{display:block;width:100%;height:100%;max-width:none}
.tnpb .tnpb-turn{position:absolute;inset:0;perspective:1800px;pointer-events:none}
.tnpb .tnpb-half{position:absolute;top:0;width:50%;height:100%;display:block;max-width:none}
.tnpb .tnpb-sheet{position:absolute;top:0;width:50%;height:100%;transform-style:preserve-3d;z-index:2}
.tnpb .tnpb-sheet canvas{position:absolute;inset:0;width:100%;height:100%;max-width:none;backface-visibility:hidden}
.tnpb .tnpb-sheet .tnpb-back{transform:rotateY(180deg)}
.tnpb .tnpb-toolbar{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:4px;padding:12px 0;border-bottom:1px solid var(--line)}
.tnpb .tnpb-toolbar button,.tnpb .tnpb-toolbar a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;height:44px;margin:0;padding:0 12px;border:0;border-radius:4px;background:transparent;color:var(--ink);box-shadow:none;font:inherit;font-size:13px;line-height:1;text-decoration:none;letter-spacing:normal;text-transform:none;white-space:nowrap;cursor:pointer;transition:background-color 150ms,color 150ms}
.tnpb .tnpb-toolbar button:hover,.tnpb .tnpb-toolbar a:hover{background:var(--stage)}
.tnpb .tnpb-toolbar button:active,.tnpb .tnpb-toolbar a:active,.tnpb .tnpb-toolbar button[aria-pressed=true]{background:var(--accent);color:var(--paper)}
.tnpb .tnpb-toolbar button:disabled{opacity:.35;cursor:default;background:transparent;color:var(--muted)}
.tnpb :focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.tnpb .tnpb-toolbar label{display:flex;align-items:center;gap:4px;margin:0;font-size:13px;font-weight:400}
.tnpb .tnpb-page{appearance:textfield;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;color:var(--ink);font:inherit;text-align:center}
.tnpb .tnpb-page::-webkit-inner-spin-button{appearance:none}
.tnpb .tnpb-total{font-size:13px;color:var(--muted);padding-right:4px}
.tnpb .tnpb-status{margin:8px 0 0!important;min-height:20px;font-size:12px;line-height:1.6;color:var(--muted);text-align:center}
.tnpb[data-zoomed=true] .tnpb-viewport{touch-action:none;cursor:grab}
.tnpb[data-zoomed=true] .tnpb-viewport:active{cursor:grabbing}
.tnpb:fullscreen{max-width:none;height:100dvh;padding:16px;background:var(--paper);display:flex;flex-direction:column;overflow:hidden}
.tnpb:fullscreen .tnpb-viewport{flex:1;min-height:0;height:auto}
.tnpb:fullscreen .tnpb-heading{margin-bottom:8px}
@media(min-width:640px){.tnpb .tnpb-toolbar{gap:8px}.tnpb .tnpb-viewport{padding:24px}}
@media(prefers-reduced-motion:reduce){.tnpb .tnpb-toolbar button,.tnpb .tnpb-toolbar a{transition:none}}

/* Hiện ảnh bìa ngay khi PDF tải nền */
.tnpb .tnpb-poster{display:block;max-width:100%;max-height:calc(min(65svh,76cqw,780px) - 32px);width:auto;height:auto;object-fit:contain}
.tnpb .tnpb-cover{width:min(68cqw,520px);aspect-ratio:0.7071;background:linear-gradient(135deg,#fff,#eef2f3);box-shadow:0 8px 24px var(--shadow)}
