@font-face{font-family:"Be Vietnam Pro";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-vietnamese-400-normal.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Be Vietnam Pro";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Be Vietnam Pro";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Be Vietnam Pro";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-vietnamese-600-normal.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Be Vietnam Pro";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-latin-ext-600-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Be Vietnam Pro";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Be Vietnam Pro";font-style:normal;font-weight:800;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-vietnamese-800-normal.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Be Vietnam Pro";font-style:normal;font-weight:800;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-latin-ext-800-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Be Vietnam Pro";font-style:normal;font-weight:800;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-latin-800-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/source-serif-4-vietnamese-600-normal.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/source-serif-4-latin-ext-600-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/source-serif-4-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/source-serif-4-vietnamese-700-normal.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/source-serif-4-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/source-serif-4-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--paper:#faf7f0;--surface:#fff;--ink:#17231f;--muted:#5a6661;--line:#e2dccf;--brand:#12312b;--accent:#a85a1c;--accent-soft:#f6e7d6;--serif:"Source Serif 4",Georgia,"Times New Roman",serif;--sans:"Be Vietnam Pro",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:400 17px/1.75 var(--sans);overflow-wrap:break-word}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.wrap{width:min(1160px,100% - 32px);margin-inline:auto}
.wrap-narrow{width:min(720px,100% - 32px);margin-inline:auto}
.skip{position:absolute;left:-999px;top:0;background:#fff;padding:8px 14px;z-index:10}
.skip:focus{left:8px;top:8px}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.masthead{background:var(--brand);color:#f5efe3}
.masthead-in{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;padding:14px 0}
.brand{display:inline-flex;align-items:center;gap:9px;text-decoration:none;font:700 21px/1.2 var(--serif)}
.brand svg{color:#e8a15b}
.brand em{font-style:normal;color:#e8a15b}
.masthead nav{display:flex;gap:4px 20px;flex-wrap:wrap;font-size:14.5px;font-weight:600}
.masthead nav a{text-decoration:none;padding:4px 0;border-bottom:2px solid transparent}
.masthead nav a:hover,.masthead nav a[aria-current]{border-color:#e8a15b}
.hero{display:grid;grid-template-columns:1fr 1.15fr;gap:40px;align-items:center;padding:44px 0 36px;border-bottom:1px solid var(--line)}
.hero h2{font:700 clamp(28px,3.6vw,42px)/1.18 var(--serif);margin:6px 0 14px;letter-spacing:-.01em}
.hero h2 a,.card h3 a{text-decoration:none}
.hero h2 a:hover,.card h3 a:hover{color:var(--accent)}
.hero p{color:var(--muted);margin:0 0 14px}
.hero-img img,.thumb img,.post-cover img{border-radius:6px}
.kicker{color:var(--accent)!important;font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;margin:0}
.meta{display:flex;flex-wrap:wrap;gap:2px 12px;color:var(--muted);font-size:13.5px}
.meta .cat{color:var(--accent);font-weight:600}
.section-title{font:700 24px/1.3 var(--serif);margin:36px 0 20px;padding-bottom:8px;border-bottom:2px solid var(--brand)}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 26px}
.card h3{font:700 20px/1.3 var(--serif);margin:6px 0 8px}
.card p{color:var(--muted);font-size:15px;line-height:1.6;margin:0}
.card .thumb{display:block;margin-bottom:12px}
.page-head{padding:44px 0 8px}
.page-head h1{font:700 clamp(30px,4vw,42px)/1.2 var(--serif);margin:4px 0 8px}
.page-head p{color:var(--muted);margin:0}
.post-head{padding-top:36px}
.crumbs{display:flex;gap:8px;font-size:13.5px;color:var(--muted);margin-bottom:14px}
.crumbs a{text-decoration:none}
.crumbs a:hover{text-decoration:underline}
.post-head h1{font:700 clamp(30px,4.6vw,46px)/1.16 var(--serif);letter-spacing:-.012em;margin:0 0 14px}
.dek{font-size:19px;line-height:1.6;color:var(--muted);margin:0 0 16px}
.post-cover{max-width:960px;margin:26px auto 30px}
.prose h2{font:700 27px/1.28 var(--serif);margin:38px 0 12px}
.prose h3{font:600 21px/1.35 var(--serif);margin:28px 0 8px}
.prose p,.prose ul,.prose ol{margin:0 0 18px}
.prose li{margin-bottom:7px}
.prose a{color:var(--accent);text-underline-offset:3px}
.prose blockquote{margin:24px 0;padding:14px 20px;background:var(--accent-soft);border-left:4px solid var(--accent);border-radius:0 6px 6px 0}
.prose blockquote p:last-child{margin:0}
.table-wrap{overflow-x:auto;margin:0 0 22px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}
table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.5}
th,td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
th{background:#f1ece0;font-weight:600}
tr:last-child td{border-bottom:0}
.source-box{display:flex;flex-direction:column;gap:2px;margin:32px 0 16px;padding:16px 20px;background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--brand);border-radius:6px}
.source-box strong{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.source-box a{font:600 19px/1.4 var(--serif)}
.source-box span{font-size:13.5px;color:var(--muted)}
.disclosure{font-size:13.5px;line-height:1.6;color:var(--muted)}
.related{margin-top:24px}
.pager{display:flex;justify-content:space-between;align-items:center;margin-top:36px;font-size:15px}
.footer{margin-top:64px;background:var(--brand);color:#d9ddd6;font-size:14.5px}
.footer-in{display:flex;justify-content:space-between;gap:20px 40px;flex-wrap:wrap;padding:30px 0}
.footer strong{color:#fff;font-family:var(--serif);font-size:18px}
.footer p{margin:4px 0 0;max-width:520px}
.footer-in>div:last-child{display:flex;flex-wrap:wrap;gap:6px 18px}
@media(max-width:900px){.hero{grid-template-columns:1fr;gap:22px;padding-top:28px}.hero-img{order:-1}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body{font-size:16px}.grid{grid-template-columns:1fr}.dek{font-size:17px}.prose h2{font-size:24px}}

.theme-bar{display:none}
[data-preview] .theme-bar{display:flex;position:fixed;z-index:50;left:50%;bottom:14px;transform:translateX(-50%);gap:4px;align-items:center;padding:6px 8px;background:#111;color:#fff;border-radius:999px;font:600 13px/1 var(--sans);box-shadow:0 6px 24px rgba(0,0,0,.35);white-space:nowrap}
.theme-bar span{padding:0 6px;color:#aaa}
.theme-bar a{padding:7px 10px;border-radius:999px;text-decoration:none}
.theme-bar a:hover{background:#333}
[data-theme=a] .theme-bar a[href$="=a"],[data-theme=b] .theme-bar a[href$="=b"],[data-theme=c] .theme-bar a[href$="=c"]{background:#fff;color:#111}
@media(max-width:480px){.theme-bar span{display:none}.theme-bar a{padding:7px 8px;font-size:12px}}

/* 1. Ky thuat: dark engineering journal */
[data-theme=a]{--paper:#0c1420;--surface:#141f2e;--ink:#e8eef5;--muted:#9aa9ba;--line:#26354a;--brand:#0c1420;--accent:#38d6c4;--accent-soft:#12302f}
[data-theme=a] body{background-image:linear-gradient(rgba(56,214,196,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(56,214,196,.035) 1px,transparent 1px);background-size:44px 44px}
[data-theme=a] .masthead{border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;background:rgba(12,20,32,.94)}
[data-theme=a] .brand,[data-theme=a] h1,[data-theme=a] h2,[data-theme=a] h3,[data-theme=a] .prose h2,[data-theme=a] .prose h3,[data-theme=a] .source-box a{font-family:var(--sans);font-weight:800;letter-spacing:-.015em}
[data-theme=a] .brand svg,[data-theme=a] .brand em{color:var(--accent)}
[data-theme=a] .masthead nav a:hover,[data-theme=a] .masthead nav a[aria-current]{border-color:var(--accent)}
[data-theme=a] .hero h2,[data-theme=a] .post-head h1,[data-theme=a] .page-head h1{font-family:var(--sans);font-weight:800}
[data-theme=a] .hero{border-color:var(--line)}
[data-theme=a] .hero-img img,[data-theme=a] .post-cover img{border:1px solid var(--line);border-radius:10px}
[data-theme=a] .kicker,[data-theme=a] .meta{font-family:ui-monospace,"Cascadia Code",Consolas,monospace}
[data-theme=a] .section-title{border-bottom:1px solid var(--line);font-size:20px}
[data-theme=a] .section-title::before{content:"// ";color:var(--accent)}
[data-theme=a] .card{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:14px 14px 18px;transition:border-color .15s,transform .15s}
[data-theme=a] .card:hover{border-color:var(--accent);transform:translateY(-2px)}
[data-theme=a] th{background:#1b2a3d}
[data-theme=a] .source-box{border-top-color:var(--accent)}
[data-theme=a] .footer{background:#080e17;border-top:1px solid var(--line)}

/* 2. Nhat bao: classic broadsheet */
[data-theme=b]{--paper:#fff;--surface:#fff;--ink:#111;--muted:#555;--line:#d9d9d9;--brand:#fff;--accent:#b3121d;--accent-soft:#fbeeee}
[data-theme=b] body{font-size:18px}
[data-theme=b] .masthead{color:#111;border-bottom:4px double #111}
[data-theme=b] .masthead-in{flex-direction:column;justify-content:center;padding:22px 0 10px}
[data-theme=b] .brand{font-size:clamp(32px,5.4vw,54px);font-weight:700;letter-spacing:-.02em}
[data-theme=b] .brand svg{display:none}
[data-theme=b] .brand em{color:var(--accent)}
[data-theme=b] .masthead nav{justify-content:center;gap:4px 28px;text-transform:uppercase;font-size:12.5px;letter-spacing:.09em}
[data-theme=b] .masthead nav a:hover,[data-theme=b] .masthead nav a[aria-current]{border-color:var(--accent)}
[data-theme=b] .hero{grid-template-columns:1.5fr 1fr;gap:36px;padding:30px 0;border-bottom:1px solid #111}
[data-theme=b] .hero-img{order:-1}
[data-theme=b] .hero-img img,[data-theme=b] .thumb img,[data-theme=b] .post-cover img{border-radius:0}
[data-theme=b] .hero h2{font-size:clamp(30px,3.5vw,44px)}
[data-theme=b] .section-title{text-align:center;text-transform:uppercase;font:600 14px/1 var(--sans);letter-spacing:.16em;border-bottom:1px solid #111;padding-bottom:10px}
[data-theme=b] .grid{gap:0}
[data-theme=b] .card{padding:0 22px 26px;border-right:1px solid var(--line)}
[data-theme=b] .card:nth-child(3n){border-right:0}
[data-theme=b] .card h3{font-size:22px}
[data-theme=b] .post-head{text-align:center}
[data-theme=b] .post-head .crumbs,[data-theme=b] .post-head .meta{justify-content:center}
[data-theme=b] .prose>p:first-child::first-letter{float:left;font:700 4.1em/.82 var(--serif);padding:6px 10px 0 0;color:var(--accent)}
[data-theme=b] th{background:#111;color:#fff}
[data-theme=b] .source-box{border:1px solid #111;border-top:4px solid var(--accent);border-radius:0}
[data-theme=b] .footer{background:#111}
@media(max-width:900px){[data-theme=b] .hero{grid-template-columns:1fr}[data-theme=b] .card:nth-child(3n){border-right:1px solid var(--line)}[data-theme=b] .card:nth-child(2n){border-right:0}}
@media(max-width:600px){[data-theme=b] body{font-size:17px}[data-theme=b] .card,[data-theme=b] .card:nth-child(3n){border-right:0;padding:0 0 24px}}

/* 3. Hien dai: bright product magazine */
[data-theme=c]{--paper:#f4f5f8;--surface:#fff;--ink:#14172b;--muted:#5d637a;--line:#e4e6ee;--brand:#fff;--accent:#e4480f;--accent-soft:#fff0e9}
[data-theme=c] .masthead{color:var(--ink);margin:12px auto 0;width:min(1160px,100% - 32px);border-radius:16px;box-shadow:0 4px 20px rgba(20,23,43,.07)}
[data-theme=c] .masthead .wrap{width:calc(100% - 40px)}
[data-theme=c] .brand,[data-theme=c] h1,[data-theme=c] h2,[data-theme=c] h3,[data-theme=c] .prose h2,[data-theme=c] .prose h3,[data-theme=c] .source-box a{font-family:var(--sans);font-weight:800;letter-spacing:-.02em}
[data-theme=c] .brand svg,[data-theme=c] .brand em{color:var(--accent)}
[data-theme=c] .masthead nav a{padding:6px 12px;border:0;border-radius:999px}
[data-theme=c] .masthead nav a:hover,[data-theme=c] .masthead nav a[aria-current]{background:var(--accent-soft);color:var(--accent)}
[data-theme=c] .hero{display:block;position:relative;margin-top:20px;padding:0;border:0;border-radius:22px;overflow:hidden;min-height:440px;background:#14172b}
[data-theme=c] .hero-img{position:absolute;inset:0}
[data-theme=c] .hero-img img{width:100%;height:100%;object-fit:cover;border-radius:0}
[data-theme=c] .hero-img::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(10,12,28,.92) 8%,rgba(10,12,28,.45) 52%,rgba(10,12,28,.05))}
[data-theme=c] .hero-copy{position:absolute;z-index:2;left:0;right:0;bottom:0;padding:32px clamp(20px,4vw,44px);max-width:820px;color:#fff}
[data-theme=c] .hero h2{font-family:var(--sans);font-weight:800}
[data-theme=c] .hero h2 a:hover{color:#ffb596}
[data-theme=c] .hero p,[data-theme=c] .hero .meta,[data-theme=c] .hero .meta .cat{color:#e4e6f0}
[data-theme=c] .hero .kicker{color:#ffb596!important}
[data-theme=c] .section-title{border:0;font-size:26px;margin-bottom:14px}
[data-theme=c] .meta .cat{background:var(--accent-soft);padding:1px 10px;border-radius:999px}
[data-theme=c] .hero .meta .cat{background:rgba(255,255,255,.16)}
[data-theme=c] .card{background:var(--surface);border-radius:16px;overflow:hidden;padding-bottom:20px;box-shadow:0 2px 12px rgba(20,23,43,.06);transition:box-shadow .15s,transform .15s}
[data-theme=c] .card:hover{transform:translateY(-3px);box-shadow:0 10px 28px rgba(20,23,43,.13)}
[data-theme=c] .card .thumb img{border-radius:0}
[data-theme=c] .card .meta,[data-theme=c] .card h3,[data-theme=c] .card p{margin-left:18px;margin-right:18px}
[data-theme=c] .post-head h1,[data-theme=c] .page-head h1{font-family:var(--sans);font-weight:800}
[data-theme=c] .post-cover img{border-radius:20px}
[data-theme=c] .table-wrap,[data-theme=c] .source-box{border-radius:14px}
[data-theme=c] .source-box{border-top:1px solid var(--line);border-left:4px solid var(--accent)}
[data-theme=c] th{background:#eef0f6}
[data-theme=c] .footer{background:#14172b}
@media(max-width:600px){[data-theme=c] .hero{min-height:420px}[data-theme=c] .masthead .wrap{width:calc(100% - 24px)}[data-theme=c] .masthead nav a{padding:4px 9px}}
