/* Tai Chinh So Knowledge - standalone design layer */
:root{--tks-ink:#0f172a;--tks-ink2:#334155;--tks-muted:#64748b;--tks-blue:#2563eb;--tks-blue2:#1d4ed8;--tks-line:#e2e8f0;--tks-cream:#f8fafc;--tks-soft:#eff6ff;--tks-radius:16px;--tks-wide:1200px}
*{box-sizing:border-box}
body.tks-site{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--tks-ink);background:#fff;font-size:16px;line-height:1.7}
body.tks-site a{text-decoration:none;color:inherit}
body.tks-site a:hover{color:var(--tks-blue2)}
body.tks-site img{max-width:100%;height:auto}
.tks-shell{width:min(calc(100% - 48px),var(--tks-wide));margin-inline:auto}
.tks-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.98);border-bottom:1px solid var(--tks-line);box-shadow:0 5px 26px rgba(15,23,42,.035)}
.tks-header-row{height:86px;display:flex;align-items:center;gap:30px;justify-content:space-between}
.tks-brand{display:flex;align-items:center;flex-shrink:0;width:175px}
.tks-brand img{width:175px;max-height:65px;object-fit:contain;object-position:left center}
.tks-nav{display:flex;gap:22px;align-items:center;justify-content:center;flex-wrap:wrap}
.tks-nav>a{font-size:14px;font-weight:650;white-space:nowrap;transition:color .2s}
.tks-nav>a[aria-current=page]{color:var(--tks-blue)}
.tks-header-actions{display:flex;gap:8px}
.tks-icon-button,.tks-mobile-button{width:42px;height:42px;border-radius:12px;border:1px solid var(--tks-line);background:#fff;color:var(--tks-ink);display:flex;align-items:center;justify-content:center;cursor:pointer}
.tks-icon-button span{font-size:30px;line-height:1}
.tks-mobile-button{display:none;gap:5px;width:auto;padding-inline:12px}.tks-mobile-label{font-weight:650;font-size:13px}
.tks-search-popover{position:absolute;inset:86px 0 auto;background:#fff;box-shadow:0 20px 30px rgba(15,23,42,.1);border-bottom:1px solid var(--tks-line);padding:24px 0}
.tks-search-popover[hidden]{display:none}
.tks-search-popover label{display:block;font-size:15px;font-weight:700;margin-bottom:10px}
.tks-search-line{display:flex;gap:8px}
.tks-search-line input,.tks-hero-search input{flex:1;width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--tks-ink)}
.tks-search-line input{padding:15px;border:1px solid var(--tks-line);border-radius:10px}
.tks-search-line button,.tks-hero-search button{background:var(--tks-blue);border:0;color:#fff;font-weight:750;cursor:pointer;border-radius:10px;padding:12px 24px}
.tks-search-line button:hover,.tks-hero-search button:hover{background:var(--tks-blue2)}
.tks-skip{position:absolute;top:-100px;left:16px;background:#fff;padding:12px;z-index:200}
.tks-skip:focus{top:0}
.tks-main{min-height:50vh}
.tks-hero{background:radial-gradient(circle at 85% 10%,rgba(96,165,250,.12),transparent 38%),linear-gradient(118deg,#f8fbff 0%,#fff 56%,#eef5ff 100%);border-bottom:1px solid #eaf0f8;overflow:hidden}
.tks-hero-grid{min-height:560px;display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:50px;padding-block:75px 85px}
.tks-eyebrow,.tks-kicker{font-size:12px;font-weight:850;letter-spacing:1.5px;color:#2563eb;margin:0 0 16px}
.tks-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--tks-blue);vertical-align:middle;margin-right:6px}
.tks-hero h1{font-size:clamp(35px,4.1vw,59px);line-height:1.15;letter-spacing:-2.1px;font-weight:820;margin:0 0 22px;color:var(--tks-ink)}
.tks-hero h1 span{color:var(--tks-blue)}
.tks-hero-lead{font-size:17px;max-width:610px;color:#475569;line-height:1.85;margin:0 0 26px}
.tks-hero-search{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #d6e1f0;box-shadow:0 14px 40px rgba(37,99,235,.1);border-radius:16px;padding:9px;max-width:670px}
.tks-hero-search>span{font-size:26px;color:#64748b;margin-left:10px}
.tks-hero-search input{font-size:14px;padding:10px 0}
.tks-hero-search button{padding:15px 25px;white-space:nowrap}
.tks-keywords{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:18px;font-size:13px}
.tks-keywords span{color:var(--tks-muted);font-weight:650}
.tks-keywords a{border-radius:22px;border:1px solid #dae4f3;background:rgba(255,255,255,.78);padding:4px 12px;font-weight:600;color:#334155}
.tks-hero-visual{position:relative;min-height:415px;display:flex;align-items:center;justify-content:center}
.tks-visual-ring{height:305px;width:305px;border-radius:50%;background:radial-gradient(circle,#c7dafe 0%,#e9f2ff 55%,rgba(219,234,254,.1) 72%);border:1px solid #dae8ff;display:grid;place-items:center;box-shadow:0 28px 90px rgba(37,99,235,.07)}
.tks-visual-inner{height:200px;width:200px;background:#fff;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 10px 40px rgba(37,99,235,.12)}
.tks-visual-inner strong{font-size:20px}.tks-visual-inner small{color:var(--tks-muted);font-size:12px}.tks-visual-mark{font-size:60px;color:var(--tks-blue);line-height:1.1;margin-bottom:10px}
.tks-floating{position:absolute;display:flex;flex-direction:column;background:#fff;border:1px solid #e4edf9;border-radius:14px;padding:12px 17px;box-shadow:0 13px 28px rgba(15,23,42,.1);min-width:170px}
.tks-floating>span{color:var(--tks-blue);font-size:12px;font-weight:850}.tks-floating strong{font-size:13px}.tks-floating small{color:var(--tks-muted);font-size:11px}
.tks-floating-one{top:12px;left:0}.tks-floating-two{right:0;top:52%}.tks-floating-three{bottom:14px;left:14%}
.tks-strip{background:#fff;border-bottom:1px solid var(--tks-line)}.tks-strip-items{display:flex;gap:20px;justify-content:space-between;padding:19px 0;flex-wrap:wrap}
.tks-strip-items div{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:700;color:#475569}.tks-strip-items span{color:var(--tks-blue);font-weight:900}
.tks-section{padding:82px 0}.tks-section-cream{background:var(--tks-cream)}.tks-section-blue{background:linear-gradient(135deg,#eff6ff,#f7faff)}
.tks-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:32px}
.tks-section-head h2,.tks-learning-grid h2,.tks-philosophy h2{font-size:clamp(28px,3vw,37px);font-weight:790;letter-spacing:-1.1px;line-height:1.28;margin:0 0 12px}
.tks-section-head p:not(.tks-kicker),.tks-learning-grid>div>p:not(.tks-kicker),.tks-philosophy>div>p:not(.tks-kicker){font-size:15px;color:var(--tks-muted);margin:0;max-width:720px}
.tks-domain-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.tks-domain-card{position:relative;border:1px solid var(--tks-line);border-radius:var(--tks-radius);padding:27px 26px;min-height:237px;background:#fff;transition:transform .2s,box-shadow .2s,border-color .2s}
.tks-domain-card:hover{transform:translateY(-4px);border-color:#bfd5fb;box-shadow:0 20px 42px rgba(15,23,42,.065)}
.tks-domain-icon{display:grid;place-items:center;width:49px;height:49px;border-radius:13px;background:#eff6ff;color:var(--tks-blue);font-size:27px;font-weight:750;margin-bottom:17px}
.tks-domain-card h3{font-size:18px;letter-spacing:-.3px;margin:0 0 8px;line-height:1.35}
.tks-domain-card p{font-size:14px;color:var(--tks-muted);line-height:1.65;margin:0 0 15px}
.tks-domain-sub{font-size:11px;font-weight:700;color:#64748b}.tks-card-arrow{position:absolute;right:22px;top:27px;color:var(--tks-blue);font-size:21px}
.tks-learning-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:85px;align-items:center}
.tks-button{display:inline-flex;align-items:center;gap:20px;background:var(--tks-blue);color:#fff!important;border-radius:11px;padding:13px 22px;font-size:14px;font-weight:750;margin-top:25px}
.tks-button:hover{background:var(--tks-blue2)}
.tks-steps{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.tks-steps li{display:flex;align-items:start;gap:19px;padding:19px 23px;background:#fff;border:1px solid var(--tks-line);border-radius:14px}
.tks-steps li>span{color:var(--tks-blue);font-size:23px;font-weight:800;line-height:1.3}
.tks-steps h3{font-size:16px;margin:0 0 4px}.tks-steps p{font-size:13px;margin:0;color:var(--tks-muted)}
.tks-text-link{display:inline-flex;white-space:nowrap;align-items:center;gap:6px;color:var(--tks-blue)!important;font-weight:800;font-size:14px}
.tks-article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px}
.tks-article-card{overflow:hidden;border:1px solid var(--tks-line);border-radius:var(--tks-radius);background:#fff;display:flex;flex-direction:column}
.tks-article-image{display:block;aspect-ratio:16/9;background:#eaf3ff;overflow:hidden}
.tks-article-image img{width:100%;height:100%;object-fit:cover;transition:transform .25s}.tks-article-card:hover .tks-article-image img{transform:scale(1.04)}
.tks-article-placeholder{height:100%;display:grid;place-items:center;color:#9ab3db;font-size:13px;letter-spacing:2px;font-weight:800}
.tks-article-card-body{padding:22px;flex:1;display:flex;flex-direction:column}
.tks-article-category{font-size:11px;color:var(--tks-blue);font-weight:850;text-transform:uppercase;letter-spacing:.6px}
.tks-article-card h3{font-size:17px;line-height:1.45;margin:9px 0}.tks-article-card p{color:var(--tks-muted);font-size:13px;margin:0 0 15px;line-height:1.7}
.tks-card-read{color:var(--tks-blue)!important;font-size:13px;font-weight:750;margin-top:auto;display:inline-flex;gap:10px}
.tks-tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.tks-tool-card{background:#fff;border:1px solid #d7e4f6;border-radius:var(--tks-radius);padding:23px;min-height:245px;display:flex;flex-direction:column;gap:10px}
.tks-tool-card:hover{border-color:#8db2f2;box-shadow:0 12px 29px rgba(37,99,235,.1)}
.tks-tool-icon{display:grid;place-items:center;background:#eff6ff;color:var(--tks-blue);width:44px;height:44px;border-radius:11px;font-size:25px}
.tks-tool-card h3{font-size:17px;line-height:1.4;margin:0}.tks-tool-card p{font-size:13px;color:var(--tks-muted);margin:0 0 12px;line-height:1.65}
.tks-philosophy{display:grid;grid-template-columns:1.05fr .95fr;gap:80px;align-items:center}
.tks-principle-list{background:#f8fafc;border:1px solid var(--tks-line);border-radius:18px;padding:20px 25px}
.tks-principle-list>div{display:flex;gap:18px;align-items:center;padding:16px 0;border-bottom:1px solid #e2e8f0}.tks-principle-list>div:last-child{border-bottom:0}
.tks-principle-list span{font-weight:800;color:var(--tks-blue);font-size:20px}.tks-principle-list strong{font-size:14px}
.tks-footer{background:var(--tks-ink);color:#d5deec;padding:68px 0 25px}.tks-footer-grid{display:grid;grid-template-columns:2.1fr 1fr 1fr 1fr;gap:42px}
.tks-footer-grid h2{color:#fff;font-size:14px;margin:0 0 19px}.tks-footer-grid>div>a:not(.tks-footer-brand){display:block;color:#d5deec;font-size:13px;margin-bottom:11px}
.tks-footer-about p{font-size:14px;line-height:1.8;max-width:340px}.tks-footer-about small{font-size:12px;color:#a8b7cc;display:block;max-width:345px}
.tks-footer-brand{display:inline-block;background:#fff;border-radius:10px;padding:6px 12px}.tks-footer-brand img{width:145px;max-height:49px;object-fit:contain}
.tks-footer-bottom{border-top:1px solid #334155;margin-top:43px;padding-top:21px;display:flex;justify-content:space-between;gap:20px;font-size:12px;color:#a8b7cc}
/* Teaching pages and archives */
.tks-page-hero{background:#f8fbff;border-bottom:1px solid var(--tks-line);padding:56px 0 48px}
.tks-page-hero h1{font-size:clamp(32px,3.6vw,47px);letter-spacing:-1.5px;line-height:1.25;margin:0 0 15px;max-width:890px}
.tks-page-hero p{color:var(--tks-muted);max-width:800px;margin:0;font-size:16px}
.tks-breadcrumb{font-size:12px;color:var(--tks-muted);margin-bottom:21px;display:flex;gap:7px;flex-wrap:wrap}
.tks-breadcrumb a{color:var(--tks-blue)!important}
.tks-two-col{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:55px;align-items:start}
.tks-reading{max-width:780px;padding:48px 0 85px}
.tks-reading h2{font-size:27px;line-height:1.3;margin:35px 0 14px}
.tks-reading h3{font-size:21px;line-height:1.4;margin:29px 0 12px}
.tks-reading p,.tks-reading li{font-size:16px;line-height:1.95;color:#334155}
.tks-reading blockquote{border-left:4px solid var(--tks-blue);background:#eff6ff;margin:25px 0;padding:15px 22px}
.tks-reading img{border-radius:12px}.tks-reading a{color:var(--tks-blue)!important;text-decoration:underline}
.tks-article-side{position:sticky;top:115px;padding-top:48px}.tks-side-panel{border:1px solid var(--tks-line);border-radius:14px;padding:22px;background:#fff}
.tks-side-panel h2{font-size:15px;margin:0 0 15px}.tks-toc{display:grid;gap:11px}.tks-toc a{font-size:13px;color:#475569!important;line-height:1.5}
.tks-toc a.tks-toc-sub{padding-left:14px;font-size:12px}
.tks-author-meta{display:flex;gap:14px;color:#64748b;font-size:12px;margin-top:14px;flex-wrap:wrap}
.tks-archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px;padding:48px 0 90px}
.tks-pagination{display:flex;justify-content:center;gap:8px;margin:24px 0 70px}.tks-pagination a,.tks-pagination span{border:1px solid var(--tks-line);padding:7px 14px;border-radius:8px}
.tks-empty{padding:60px 0;text-align:center;max-width:600px;margin:auto}.tks-empty h2{font-size:25px}
.tks-article-finish{padding:24px;background:#eff6ff;border-radius:14px;margin-top:46px;font-size:13px;color:#475569}
.tks-general-page{max-width:850px;margin:0 auto}
.tks-general-page .tks-reading{padding-top:30px}
/* Keep existing calculator classes intact, adjust global header/footer only */
@media(max-width:1100px){.tks-header-row{gap:16px}.tks-nav{gap:12px}.tks-nav>a{font-size:12px}.tks-hero-grid{gap:20px}.tks-floating-one{left:-8px}.tks-floating-two{right:-8px}}
@media(max-width:920px){
.tks-shell{width:min(calc(100% - 34px),var(--tks-wide))}
.tks-header-row{height:72px}.tks-brand{width:150px}.tks-brand img{width:150px}.tks-nav{position:absolute;left:0;right:0;top:72px;padding:17px 24px 24px;background:#fff;box-shadow:0 18px 30px rgba(15,23,42,.1);display:none;flex-direction:column;align-items:stretch;gap:0}.tks-nav.is-open{display:flex}.tks-nav>a{padding:12px 4px;border-bottom:1px solid #e2e8f0;font-size:14px}.tks-mobile-button{display:flex}.tks-search-popover{top:72px}
.tks-hero-grid{grid-template-columns:1fr;padding-block:65px;min-height:0}.tks-hero-visual{display:none}
.tks-domain-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.tks-learning-grid,.tks-philosophy{grid-template-columns:1fr;gap:26px}.tks-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.tks-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.tks-two-col{grid-template-columns:1fr}.tks-article-side{display:none}
}
@media(max-width:650px){
.tks-shell{width:calc(100% - 32px)}.tks-header-row{height:67px}.tks-nav{top:67px}.tks-search-popover{top:67px}
.tks-hero-grid{padding-block:46px 53px}.tks-hero h1{font-size:37px;letter-spacing:-1.1px}.tks-hero-lead{font-size:15px}
.tks-hero-search{padding:6px;gap:6px}.tks-hero-search>span{margin-left:8px;font-size:21px}.tks-hero-search input{font-size:12px}.tks-hero-search button{padding:12px 13px;font-size:12px}
.tks-strip-items{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tks-strip-items div{font-size:11px}
.tks-section{padding:55px 0}.tks-section-head{align-items:start;flex-direction:column;gap:8px;margin-bottom:23px}
.tks-section-head h2,.tks-learning-grid h2,.tks-philosophy h2{font-size:27px}
.tks-domain-grid{grid-template-columns:1fr;gap:12px}.tks-domain-card{min-height:0;padding:20px}.tks-domain-icon{height:43px;width:43px;margin-bottom:11px}
.tks-article-grid,.tks-archive-grid{grid-template-columns:1fr;gap:17px}
.tks-tool-grid{grid-template-columns:1fr;gap:12px}.tks-tool-card{min-height:0;padding:20px}.tks-steps li{padding:14px}
.tks-footer{padding-top:48px}.tks-footer-grid{grid-template-columns:1fr 1fr;gap:27px 18px}.tks-footer-about{grid-column:1/-1}.tks-footer-bottom{flex-direction:column;gap:8px}
.tks-page-hero{padding:38px 0}.tks-page-hero h1{font-size:30px}.tks-reading{padding:26px 0 58px}.tks-reading h2{font-size:23px}.tks-reading h3{font-size:19px}
.tks-search-line{flex-direction:column}.tks-search-line button{width:100%}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
/* Production accessibility and article TOC fixes */
.tks-site .tks-toc nav[data-tks-toc]{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.tks-site .tks-toc nav[data-tks-toc] a{display:block;padding:10px 0;border-top:1px solid #e2e8f0;font-size:13px;line-height:1.55;overflow-wrap:anywhere;text-decoration:none!important}
.tks-site .tks-toc nav[data-tks-toc] a:first-child{border-top:0}
.tks-site .tks-toc nav[data-tks-toc] a.tks-toc-sub{padding-left:15px;font-size:12px;color:#64748b!important}
.tks-site .tks-toc{display:block}.tks-site .tks-toc h2{margin:0 0 10px;font-size:15px}
.tks-site .tks-side-panel{max-height:calc(100vh - 160px);overflow:auto;overscroll-behavior:contain}
.tks-site .tks-article-side,.tks-site .tks-reading{min-width:0}
.tks-site .tks-reading .tks-featured{margin:0 0 30px}.tks-site .tks-reading .tks-featured img{width:100%;height:auto;display:block}
.tks-site .tks-reading table{display:block;max-width:100%;overflow-x:auto}
.tks-site .tks-reading iframe,.tks-site .tks-reading video{max-width:100%}
.tks-site .tks-reading pre{overflow-x:auto}
.tks-site .tks-nav>a:focus-visible,.tks-site .tks-toc a:focus-visible,.tks-site .tks-mobile-button:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
@media(min-width:921px) and (max-width:1200px){.tks-site .tks-nav{gap:12px}.tks-site .tks-nav>a{font-size:13px}.tks-site .tks-header-row{gap:12px}.tks-site .tks-brand,.tks-site .tks-brand img{width:155px}}
