/*
Theme Name: 2H Company Handbook
Theme URI: https://2hmedia.net/
Author: 2H MEDIA
Description: Cổng thông tin sổ tay nhân viên theo phong cách Knowledge Base, giao diện tiếng Việt và bảng màu DTH Core.
Version: 2.7.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: 2h-company-handbook
*/
:root{--navy:#081632;--navy-2:#10264d;--blue:#3b6df2;--blue-dark:#2856d8;--ink:#172b4d;--muted:#718096;--line:#e5eaf2;--bg:#f3f6fc;--surface:#fff;--soft:#edf3ff;--green:#22a477;--radius:14px;--shadow:0 8px 26px rgba(21,43,82,.06)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:15px;line-height:1.65}a{color:var(--blue);text-decoration:none}a:hover{color:var(--blue-dark)}button,input{font:inherit}.site-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:290px;background:var(--navy);color:#d6e0f2;z-index:30;display:flex;flex-direction:column;overflow-y:auto;transition:transform .25s}.brand{height:66px;display:flex;align-items:center;gap:11px;padding:0 22px;border-bottom:1px solid rgba(255,255,255,.09);color:#fff;font-weight:700;letter-spacing:.2px}.brand-mark{width:29px;height:29px;border-radius:9px;background:linear-gradient(145deg,#5b8cff,#315fe4);display:grid;place-items:center;color:white;font-size:14px;font-weight:800;box-shadow:0 4px 12px #315fe455}.brand small{display:block;font-size:9px;color:#91a7cc;letter-spacing:1.5px;font-weight:600}.side-inner{padding:18px 12px 28px}.side-search{display:flex;align-items:center;gap:9px;background:#14294d;border:1px solid rgba(255,255,255,.08);border-radius:9px;padding:9px 11px;margin:0 4px 20px;color:#8ea2c3}.side-search input{background:none;border:0;outline:0;color:white;width:100%;font-size:13px}.side-search input::placeholder{color:#8ea2c3}.nav-label{font-size:10px;font-weight:700;letter-spacing:1.1px;color:#7186aa;padding:12px 12px 7px;text-transform:uppercase}.side-link{display:flex;align-items:center;gap:11px;padding:10px 12px;margin:3px 0;border-radius:8px;color:#c7d3e8;font-size:13px;transition:.18s}.side-link:hover,.side-link.active{background:var(--blue);color:#fff}.side-link .nav-icon{width:18px;text-align:center;font-size:15px;opacity:.95}.side-sub{padding-left:15px}.side-sub .side-link{font-size:12.5px;padding:8px 11px}.side-bottom{margin-top:auto;padding:14px 16px;border-top:1px solid rgba(255,255,255,.08);font-size:12px;color:#8194b5}.main-area{margin-left:290px;min-height:100vh}.topbar{height:66px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:22px;padding:0 30px;position:sticky;top:0;z-index:20}.mobile-toggle{display:none;border:0;background:transparent;color:var(--ink);font-size:22px}.top-title{min-width:112px;font-size:14px;font-weight:700;color:var(--ink)}.top-title small{display:block;color:var(--blue);font-size:9px;letter-spacing:1.3px}.global-search{max-width:420px;flex:1;display:flex;align-items:center;gap:9px;background:#f6f8fc;border:1px solid #e7edf6;border-radius:9px;padding:8px 12px;color:#8b9ab0}.global-search input{border:0;background:none;outline:0;width:100%;font-size:13px;color:var(--ink)}.top-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.top-pill{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 12px;color:#62728c;font-size:12px}.top-pill.primary{background:var(--blue);border-color:var(--blue);color:white}.content-wrap{max-width:1500px;margin:0 auto;padding:28px 30px 60px}.breadcrumbs{font-size:12px;color:#8a98ad;margin:0 0 15px}.breadcrumbs a{color:#71839e}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.3px;color:var(--blue);text-transform:uppercase}.page-heading h1{font-size:27px;line-height:1.25;margin:4px 0 7px;color:#12264a;letter-spacing:-.5px}.page-heading p{margin:0;color:var(--muted);font-size:14px}.hero-panel{background:linear-gradient(115deg,#e9f0ff 0%,#f4f7ff 60%,#e4edff 100%);border:1px solid #dce7fb;border-radius:16px;min-height:185px;padding:28px 34px;display:flex;align-items:center;justify-content:space-between;gap:25px;overflow:hidden;position:relative;margin-bottom:25px}.hero-panel:after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;right:7%;top:-160px;background:#d7e5ff;opacity:.55}.hero-copy{max-width:650px;position:relative;z-index:1}.hero-copy .tag{display:inline-flex;align-items:center;gap:6px;color:#2861d9;background:#fff;border:1px solid #dce7ff;border-radius:30px;padding:5px 10px;font-size:11px;font-weight:700}.hero-copy h2{font-size:25px;line-height:1.3;margin:12px 0 8px;color:#142b53}.hero-copy p{margin:0;color:#657895;font-size:14px;max-width:610px}.hero-illustration{position:relative;z-index:1;width:180px;height:130px;flex:0 0 180px;display:grid;place-items:center;color:#3c6fe6}.hero-illustration svg{width:145px;height:125px;filter:drop-shadow(0 8px 10px rgba(45,85,160,.12))}.section-head{display:flex;justify-content:space-between;align-items:center;margin:25px 0 13px}.section-head h2{font-size:16px;margin:0;color:#1b3157}.section-head a{font-size:12px;font-weight:600}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quick-card{display:flex;align-items:center;gap:13px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 3px 12px rgba(20,44,82,.025);transition:.18s}.quick-card:hover{border-color:#bfd0fa;box-shadow:var(--shadow);transform:translateY(-2px)}.quick-icon{width:40px;height:40px;border-radius:11px;background:#edf3ff;color:var(--blue);display:grid;place-items:center;font-size:18px;flex:0 0 40px}.quick-card strong{display:block;color:#1b3157;font-size:13px}.quick-card small{display:block;color:#8a98ad;font-size:11px;margin-top:2px}.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.category-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:18px;min-height:145px;box-shadow:0 3px 12px rgba(20,44,82,.025);transition:.18s}.category-card:hover{transform:translateY(-2px);border-color:#c7d5f8;box-shadow:var(--shadow)}.category-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.category-icon{width:36px;height:36px;border-radius:10px;background:#eef3ff;display:grid;place-items:center;color:var(--blue);font-size:17px}.count{font-size:11px;color:#8a98ad;background:#f4f6fa;padding:4px 8px;border-radius:20px}.category-card h3{font-size:14px;margin:0 0 5px;color:#1c3154}.category-card p{font-size:12px;color:#8492a8;margin:0}.updates{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.update-row{display:flex;align-items:center;gap:12px;padding:13px 17px;border-bottom:1px solid #eef1f6}.update-row:last-child{border-bottom:0}.update-dot{width:8px;height:8px;border-radius:50%;background:var(--blue);flex:0 0 8px}.update-row strong{display:block;font-size:13px;color:#24395d}.update-row small{font-size:11px;color:#8b99ad}.update-date{margin-left:auto;font-size:11px;color:#8b99ad;white-space:nowrap}.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:28px}.article-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:30px;box-shadow:0 4px 16px rgba(20,44,82,.025)}.article-meta{display:flex;align-items:center;gap:9px;color:#8492a8;font-size:11px;margin-bottom:16px}.verified{color:#188c66;background:#e9f8f1;padding:4px 8px;border-radius:20px;font-weight:700}.article-card h1{font-size:28px;line-height:1.3;margin:0 0 14px;color:#15294c}.article-card .lead{font-size:15px;color:#62748f}.article-card h2,.article-card h3{color:#1b3157;margin-top:28px}.article-card p,.article-card li{color:#53647e;font-size:14px}.article-card table{width:100%;border-collapse:collapse}.article-card th,.article-card td{border:1px solid var(--line);padding:10px;text-align:left;font-size:13px}.article-card th{background:#f4f7fc}.article-toc{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;height:max-content;position:sticky;top:88px}.article-toc h3{font-size:13px;margin:0 0 10px}.article-toc a{display:block;font-size:12px;color:#71829b;padding:6px 0}.doc-list{display:grid;gap:10px}.doc-item{display:flex;align-items:center;gap:14px;padding:15px 17px;background:#fff;border:1px solid var(--line);border-radius:11px}.doc-item .file-icon{width:38px;height:38px;border-radius:10px;background:#eef3ff;color:var(--blue);display:grid;place-items:center}.doc-item strong{display:block;font-size:13px;color:#203657}.doc-item small{font-size:11px;color:#8b99ad}.doc-item .arrow{margin-left:auto;color:#8b99ad}.pagination{display:flex;gap:7px;margin-top:20px}.pagination .page-numbers{padding:7px 11px;background:#fff;border:1px solid var(--line);border-radius:7px;font-size:12px}.pagination .current{background:var(--blue);border-color:var(--blue);color:white}.site-footer{padding:20px 30px;color:#8b99ad;font-size:11px;border-top:1px solid var(--line);background:#fff}.empty-state{padding:40px;text-align:center;background:#fff;border:1px dashed #d8e0ec;border-radius:13px;color:#8492a8}.mobile-overlay{display:none}
@media(max-width:1100px){.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.article-layout{grid-template-columns:1fr}.article-toc{position:static}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);width:270px}.sidebar.is-open{transform:translateX(0)}.mobile-overlay.is-open{display:block;position:fixed;inset:0;background:rgba(4,15,35,.45);z-index:25}.main-area{margin-left:0}.topbar{padding:0 15px;gap:12px}.mobile-toggle{display:block}.top-title{min-width:80px}.top-title small{font-size:8px}.global-search{max-width:none}.top-pill:not(.primary){display:none}.top-pill.primary{font-size:0;padding:8px 10px}.content-wrap{padding:20px 15px 40px}.hero-panel{padding:23px;min-height:0}.hero-illustration{width:90px;flex-basis:90px}.hero-illustration svg{width:90px}.hero-copy h2{font-size:20px}.hero-copy p{font-size:12px}.page-heading h1{font-size:23px}.quick-grid{grid-template-columns:1fr}.category-grid{grid-template-columns:1fr}.article-card{padding:20px}.article-card h1{font-size:23px}.site-footer{padding:18px 15px}}
@media(max-width:430px){.top-title{display:none}.hero-illustration{display:none}.hero-panel{padding:21px}.page-heading{display:block}.page-heading .top-pill{display:inline-block;margin-top:12px}}

/* Imported handbook content */
.article-content table{width:100%;border-collapse:collapse;margin:20px 0;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.article-content th,.article-content td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.article-content th{width:34%;background:#f3f6fc;color:#243653;font-weight:700}
.article-content tr:last-child th,.article-content tr:last-child td{border-bottom:0}
.article-content h2{margin:28px 0 14px;color:#172b4d;font-size:22px;line-height:1.35}
.article-content h3{margin:24px 0 10px;color:#244b91;font-size:18px;line-height:1.45}
.article-content h4{margin:18px 0 8px;color:#243653;font-size:16px}
.article-content p{line-height:1.8;margin:0 0 14px}
.article-content ul,.article-content ol{padding-left:24px;margin:10px 0 18px}
.article-content li{padding-left:4px;margin:0 0 9px;line-height:1.75}
.article-content strong{color:#172b4d}
.article-content p:has(+ h3){margin-bottom:18px}
@media(max-width:700px){.article-content table{display:block;overflow-x:auto;white-space:normal}.article-content th,.article-content td{min-width:150px}}

/* v2.3.0: improved reading comfort for handbook chapters */
.article-content{font-size:16px;line-height:1.85;max-width:920px}
.article-content p,.article-content li{font-size:16px;line-height:1.85;color:#465873}
.article-content h2{font-size:25px;line-height:1.4;margin-top:34px;margin-bottom:16px}
.article-content h3{font-size:21px;line-height:1.5;margin-top:28px;margin-bottom:12px}
.article-content h4{font-size:18px;line-height:1.5;margin-top:22px;margin-bottom:10px}
.article-content th,.article-content td{font-size:15px;line-height:1.7}
.article-card .lead{font-size:17px;line-height:1.8}
@media(max-width:760px){.article-content,.article-content p,.article-content li{font-size:16px}.article-content h2{font-size:22px}.article-content h3{font-size:19px}}


/* v2.4.0: typography system based on 18px handbook body text */
.article-content{font-size:18px;line-height:1.9;max-width:960px}
.article-content p,.article-content li,.article-content blockquote{font-size:18px;line-height:1.9;color:#465873}
.article-content ul,.article-content ol{padding-left:28px;margin:14px 0 22px}
.article-content li{padding-left:5px;margin-bottom:11px}
.article-content h2{font-size:28px;line-height:1.4;margin-top:38px;margin-bottom:18px}
.article-content h3{font-size:24px;line-height:1.5;margin-top:32px;margin-bottom:14px}
.article-content h4{font-size:21px;line-height:1.5;margin-top:26px;margin-bottom:12px}
.article-content th,.article-content td{font-size:17px;line-height:1.75;padding:13px 15px}
.article-card .lead{font-size:20px;line-height:1.85}
.article-card h1{font-size:32px;line-height:1.35}
.article-meta{font-size:13px}
@media(max-width:760px){.article-content,.article-content p,.article-content li,.article-content blockquote{font-size:17px;line-height:1.85}.article-content h2{font-size:25px}.article-content h3{font-size:22px}.article-content h4{font-size:19px}.article-card .lead{font-size:18px}.article-card h1{font-size:26px}.article-content th,.article-content td{font-size:16px}}
