/* V5: researched editorial data, Zalo contact and an accessible AI assistant. */
.article-detail .prose-content{max-width:780px;margin-inline:auto;font-size:16px;line-height:1.97;color:var(--text)}
.article-detail .prose-content h2{font-size:29px;margin:39px 0 13px;color:var(--text)}
.article-detail .prose-content p{margin:14px 0;color:var(--secondary)}
.article-detail .prose-content ul{margin:16px 0 22px;padding-left:26px;color:var(--secondary)}
.article-detail .prose-content li{padding:4px 0}
.article-detail .prose-content strong{color:var(--text)}
.article-detail .prose-content a{color:var(--accent);border-bottom:1px solid var(--metal);word-break:break-word}
.article-detail .prose-content a:hover{border-color:var(--text)}
.article-card{transition:transform .23s ease}.article-card:hover{transform:translateY(-4px)}
.article-grid{row-gap:45px}
.btn-zalo{display:flex;align-items:center;justify-content:center;gap:10px;margin:10px 0;padding:12px 20px;background:#0878cf;color:#fff;border-radius:10px;font-size:13px;font-weight:800;transition:background .2s}
.btn-zalo:hover{background:#0666ad}

/* Floating Zalo is separate from the existing direct-call shortcut. */
.floating-zalo{position:fixed;z-index:171;left:28px;bottom:101px;width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(140deg,#28c1fa,#0879ce 67%,#055b9c);border:2px solid #b1ecff;color:#fff;box-shadow:0 13px 29px #066bc687,inset 0 1px #ffffff7d;transform:rotate(-5deg);transition:transform .25s,box-shadow .25s}
.floating-zalo:before{content:'';position:absolute;inset:-7px;border:1px solid #39adf1a3;border-radius:22px;z-index:-1;animation:zalo-wave 3s ease-out infinite}
.floating-zalo span{font-family:Arial,sans-serif!important;font-size:17px;font-weight:900;letter-spacing:-.05em;color:white;text-shadow:0 2px 5px #004479}
.floating-zalo:hover{transform:translateY(-4px) rotate(0) scale(1.03);box-shadow:0 19px 35px #066bc6a8}
.floating-zalo:focus-visible{outline:3px solid #d0eaff;outline-offset:4px}
@keyframes zalo-wave{0%{opacity:.8;transform:scale(.9)}90%,100%{opacity:0;transform:scale(1.42)}}

/* Chat: compact orbital-gold trigger and frosted graphite panel. */
.tvp-chat-launcher{position:fixed;bottom:91px;right:25px;z-index:191;display:flex;align-items:center;gap:10px;padding:13px 18px;min-height:57px;border-radius:18px;background:linear-gradient(135deg,#f0d7a1,#d3b477 65%,#af844c);border:1px solid #fff3d2;color:#2a2011;box-shadow:0 17px 39px #5e492d77,inset 0 1px #fff8e6;cursor:pointer;font-size:12px;font-weight:850;transition:transform .25s,box-shadow .25s;font-family:var(--font-body)}
.tvp-chat-launcher:hover{transform:translateY(-4px);box-shadow:0 22px 42px #74542d94}
.tvp-chat-launcher[aria-expanded=true]{background:linear-gradient(140deg,#efe8db,#cdbd9f)}
.tvp-chat-launcher svg{height:24px;width:24px}
.tvp-chat-launcher i{height:7px;width:7px;border-radius:50%;background:#357d52;box-shadow:0 0 0 4px #458b5b28}
.tvp-chat-panel[hidden]{display:none!important}
.tvp-chat-panel{position:fixed;right:24px;bottom:160px;z-index:192;width:min(390px,calc(100vw - 30px));height:min(575px,calc(100dvh - 188px));display:flex;flex-direction:column;overflow:hidden;border-radius:23px;border:1px solid #b6965dc9;background:#fffdf9;box-shadow:0 30px 85px #0504048c,0 0 0 6px #d9bc8142;animation:tvp-chat-enter .2s ease-out;isolation:isolate}
.tvp-chat-header{display:flex;align-items:center;gap:11px;padding:20px 18px;background:radial-gradient(circle at 95% 15%,#6d583b,#29231c 65%);color:#fff5e7;flex-shrink:0}
.tvp-chat-avatar{display:grid;place-items:center;width:44px;height:44px;background:#d9bf8d20;border:1px solid #e0c68e88;border-radius:14px}
.tvp-chat-heading{display:flex;flex-direction:column;flex:1;min-width:0;gap:2px}
.tvp-chat-heading strong{font-size:13px;white-space:nowrap;letter-spacing:-.02em}
.tvp-chat-heading small{font-size:10px;color:#e6d4b6;display:flex;align-items:center;gap:7px}
.tvp-chat-heading small i{display:inline-block;width:7px;height:7px;background:#82c99d;border-radius:50%}
.tvp-chat-close{background:#ffffff12;border:1px solid #d3b88555;border-radius:9px;width:31px;height:31px;color:#f4e4c6;font-size:21px;cursor:pointer;display:grid;place-items:center}
.tvp-chat-close:hover{background:#ffffff27}
.tvp-chat-messages{display:flex;flex-direction:column;gap:15px;padding:21px 18px;overflow:auto;flex:1;min-height:0;background:radial-gradient(circle at 92% 5%,#ead7b84a,transparent 33%),#f9f6ef;scroll-behavior:smooth}
.tvp-chat-entry{max-width:93%;align-self:flex-start;min-width:0}
.tvp-chat-entry.user{align-self:flex-end}
.tvp-chat-entry-label{font-size:9px;letter-spacing:.08em;font-weight:850;color:#94713d;margin-bottom:6px;display:block}
.tvp-chat-entry p{background:#fff;border:1px solid #e8dcc9;border-radius:5px 15px 15px 15px;padding:12px 14px;font-size:12px;line-height:1.78;margin:0;color:#35302b;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 8px 18px #523a1911}
.tvp-chat-entry.user p{background:#302820;color:#fff7eb;border-color:#5c4b35;border-radius:15px 5px 15px 15px}
.tvp-chat-entry>a{display:inline-flex;align-items:center;color:#85622b;border-bottom:1px solid #b99a63;padding-bottom:3px;margin-top:8px;font-size:11px;font-weight:800}
.tvp-chat-entry.typing p{opacity:.7;font-style:italic}
.tvp-chat-quick{display:flex;flex-wrap:wrap;gap:7px;align-self:flex-start}
.tvp-chat-quick button{background:#f1e6d1;border:1px solid #ccb78f;border-radius:19px;color:#694e2a;font-size:10px;font-family:var(--font-body);font-weight:740;padding:9px 12px;cursor:pointer}
.tvp-chat-quick button:hover{background:#e8d5b1}
.tvp-chat-compose{display:flex;align-items:end;gap:9px;padding:13px;background:#fffdf9;border-top:1px solid #e4daca;flex-shrink:0}
.tvp-chat-compose-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.tvp-chat-compose textarea{resize:none;flex:1;min-width:0;min-height:42px;max-height:76px;padding:12px 13px;background:#f6f2e9;color:#38312a;border:1px solid #e0d1ba;border-radius:11px;font-size:12px;line-height:1.5;font-family:var(--font-body)}
.tvp-chat-compose textarea:focus{outline:2px solid #caa974;outline-offset:1px}
.tvp-chat-send{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border:0;border-radius:11px;background:linear-gradient(135deg,#debb7e,#ac823e);color:#271d0f;cursor:pointer}
.tvp-chat-send:disabled{opacity:.6;cursor:wait}
.tvp-chat-send svg{width:19px;height:19px}
.tvp-chat-foot{padding:8px 15px;background:#f6f1e8;color:#82796c;font-size:9px;text-align:center;line-height:1.5;border-top:1px solid #ede2cf}
@keyframes tvp-chat-enter{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}

html[data-theme=dark] .tvp-chat-panel{background:#161514;border-color:#876d40}
html[data-theme=dark] .tvp-chat-messages{background:radial-gradient(circle at 93% 5%,#392b19,transparent 34%),#111}
html[data-theme=dark] .tvp-chat-entry p{background:#24211d;border-color:#504436;color:#ece7df}
html[data-theme=dark] .tvp-chat-entry.user p{background:#54432c;border-color:#8d744c}
html[data-theme=dark] .tvp-chat-entry-label,html[data-theme=dark] .tvp-chat-entry>a{color:#e2c48a}
html[data-theme=dark] .tvp-chat-quick button{background:#29231a;border-color:#806943;color:#ead2a1}
html[data-theme=dark] .tvp-chat-compose{background:#171614;border-color:#494036}
html[data-theme=dark] .tvp-chat-compose textarea{background:#23201c;border-color:#544732;color:#eee8df}
html[data-theme=dark] .tvp-chat-foot{background:#171512;border-color:#494036;color:#c0b4a4}

@media(max-width:620px){
 .floating-zalo{width:52px;height:52px;bottom:91px;left:20px;border-radius:16px}.floating-zalo span{font-size:15px}
 .tvp-chat-launcher{bottom:87px;right:15px;min-height:52px;border-radius:16px;padding:12px 13px;gap:7px;font-size:11px}.tvp-chat-launcher svg{width:21px;height:21px}
 .tvp-chat-panel{right:12px;bottom:151px;width:calc(100vw - 24px);height:min(555px,calc(100dvh - 180px));border-radius:19px}
 .tvp-chat-header{padding:15px}.tvp-chat-messages{padding:16px 14px}
 .article-detail .prose-content{font-size:15px;line-height:1.88}.article-detail .prose-content h2{font-size:23px}
}
@media(prefers-reduced-motion:reduce){.floating-zalo:before{animation:none!important}.tvp-chat-panel{animation:none!important}}
