/* ToolKit Pro 1.2.0 */
:root{
	--tk-accent:#2563eb;
	--tk-accent-dark:#1d4ed8;
	--tk-bg:#f6f8fb;
	--tk-card:#ffffff;
	--tk-text:#1e293b;
	--tk-muted:#64748b;
	--tk-border:#e2e8f0;
	--tk-radius:14px;
	--tk-shadow:0 2px 12px rgba(15,23,42,.06);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;background:var(--tk-bg);color:var(--tk-text);line-height:1.65;font-size:16px}
a{color:var(--tk-accent);text-decoration:none}
a:hover{color:var(--tk-accent-dark)}
img{max-width:100%;height:auto}
.tk-container{max-width:1140px;margin:0 auto;padding:0 20px}
.tk-main{min-height:60vh}

/* Header */
.tk-header{background:var(--tk-card);border-bottom:1px solid var(--tk-border);position:sticky;top:0;z-index:50}
.tk-header-inner{max-width:1140px;margin:0 auto;padding:0 20px;height:66px;display:flex;align-items:center;gap:18px}
.tk-logo-text{font-size:22px;font-weight:800;color:var(--tk-text);letter-spacing:-.5px}
.tk-logo-text:hover{color:var(--tk-accent)}
.tk-nav{flex:1}
.tk-nav ul{display:flex;gap:4px;list-style:none}
.tk-nav a{display:block;padding:9px 14px;border-radius:9px;color:var(--tk-muted);font-weight:500;font-size:15px}
.tk-nav a:hover{background:var(--tk-bg);color:var(--tk-text)}
.tk-cta{background:var(--tk-accent);color:#fff!important;font-weight:600;padding:10px 20px;border-radius:10px;font-size:15px;white-space:nowrap}
.tk-cta:hover{background:var(--tk-accent-dark);color:#fff!important}
.tk-menu-toggle{display:none;background:none;border:0;flex-direction:column;gap:5px;padding:8px;cursor:pointer}
.tk-menu-toggle span{width:22px;height:2px;background:var(--tk-text);border-radius:2px}

/* Hero */
.tk-hero{background:linear-gradient(135deg,var(--tk-accent) 0%,var(--tk-accent-dark) 100%);color:#fff;padding:64px 20px 56px;text-align:center}
.tk-hero-inner{max-width:760px;margin:0 auto}
.tk-hero h1{font-size:40px;line-height:1.2;letter-spacing:-1px;margin-bottom:12px}
.tk-hero-sub{font-size:18px;opacity:.92;margin-bottom:26px}
.tk-search-wrap{max-width:560px;margin:0 auto 20px}
.tk-search-wrap input{width:100%;padding:15px 22px;font-size:16px;border:0;border-radius:12px;box-shadow:var(--tk-shadow)}
.tk-search-wrap input:focus{outline:3px solid rgba(255,255,255,.4)}
.tk-hero-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.tk-hero-chips a{background:rgba(255,255,255,.16);color:#fff;font-size:13.5px;font-weight:500;padding:7px 15px;border-radius:20px}
.tk-hero-chips a:hover{background:rgba(255,255,255,.3)}

/* Sections & cards */
.tk-section{margin:44px 0}
.tk-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.tk-section-head h2{font-size:24px;letter-spacing:-.5px}
.tk-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.tk-card{background:var(--tk-card);border:1px solid var(--tk-border);border-radius:var(--tk-radius);padding:22px 20px;display:flex;flex-direction:column;gap:8px;box-shadow:var(--tk-shadow);transition:.15s}
.tk-card:hover{transform:translateY(-3px);border-color:var(--tk-accent);box-shadow:0 8px 24px rgba(15,23,42,.1)}
.tk-card-icon{font-size:30px}
.tk-card-title{font-size:17px;font-weight:700;color:var(--tk-text)}
.tk-card-desc{font-size:14px;color:var(--tk-muted);line-height:1.55}

/* Features & FAQ */
.tk-feat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.tk-feat{background:var(--tk-card);border:1px solid var(--tk-border);border-radius:var(--tk-radius);padding:26px 22px;box-shadow:var(--tk-shadow)}
.tk-feat span{font-size:32px}
.tk-feat h3{margin:10px 0 6px;font-size:17px}
.tk-feat p{font-size:14.5px;color:var(--tk-muted)}
.tk-faq{max-width:800px}
.tk-faq details{background:var(--tk-card);border:1px solid var(--tk-border);border-radius:12px;margin-bottom:10px;box-shadow:var(--tk-shadow)}
.tk-faq summary{padding:16px 20px;font-weight:600;cursor:pointer;list-style:none}
.tk-faq summary::-webkit-details-marker{display:none}
.tk-faq summary::after{content:"+";float:right;color:var(--tk-accent);font-size:20px;font-weight:700}
.tk-faq details[open] summary::after{content:"–"}
.tk-faq details p{padding:0 20px 18px;color:var(--tk-muted);font-size:15px}

/* Tool page */
.tk-tool-page{padding-top:8px;padding-bottom:40px}
.tk-crumb{font-size:13.5px;color:var(--tk-muted);margin:18px 0 6px}
.tk-crumb a{color:var(--tk-muted)}
.tk-crumb a:hover{color:var(--tk-accent)}
.tk-crumb span{margin:0 4px}
.tk-tool-head{margin:6px 0 20px}
.tk-tool-head h1{font-size:32px;letter-spacing:-.5px;margin-bottom:8px}
.tk-tool-desc{font-size:17px;color:var(--tk-muted);max-width:760px}
.tk-tool-shell{background:var(--tk-card);border:1px solid var(--tk-border);border-radius:var(--tk-radius);box-shadow:var(--tk-shadow);padding:28px;margin:20px 0}
.tk-tool-content{margin:26px 0;max-width:800px}
.tk-tool-content h2{margin:20px 0 10px;font-size:21px}

/* Calculator form */
.tk-fields{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:8px}
.tk-field{display:flex;flex-direction:column;gap:6px}
.tk-field.full{grid-column:1/-1}
.tk-field label{font-size:14px;font-weight:600}
.tk-field input,.tk-field select{padding:12px 14px;font-size:16px;border:1px solid var(--tk-border);border-radius:10px;background:#fff;color:var(--tk-text);width:100%}
.tk-field input:focus,.tk-field select:focus{outline:none;border-color:var(--tk-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--tk-accent) 18%,transparent)}
.tk-results{margin-top:20px;background:var(--tk-bg);border:1px solid var(--tk-border);border-radius:12px;overflow:hidden}
.tk-result-row{display:flex;justify-content:space-between;align-items:center;padding:13px 18px;border-bottom:1px solid var(--tk-border);font-size:15.5px}
.tk-result-row:last-child{border-bottom:0}
.tk-result-row .k{color:var(--tk-muted)}
.tk-result-row .v{font-weight:700;font-size:17px}
.tk-result-row.hero{background:var(--tk-accent);color:#fff}
.tk-result-row.hero .k{color:#fff;opacity:.9}
.tk-result-row.hero .v{font-size:20px}
.tk-note{margin-top:12px;font-size:13.5px;color:var(--tk-muted)}
.tk-btn{display:inline-block;background:var(--tk-accent);color:#fff!important;border:0;font-weight:600;font-size:16px;padding:13px 28px;border-radius:10px;cursor:pointer;margin-top:6px}
.tk-btn:hover{background:var(--tk-accent-dark)}
.tk-btn.ghost{background:var(--tk-bg);color:var(--tk-text)!important;border:1px solid var(--tk-border)}
.tk-btn.ghost:hover{border-color:var(--tk-accent)}

/* Basic calculator pad */
.tk-pad{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;max-width:380px}
.tk-pad button{padding:16px;font-size:19px;border:1px solid var(--tk-border);border-radius:10px;background:#fff;cursor:pointer;font-weight:600}
.tk-pad button:hover{border-color:var(--tk-accent)}
.tk-pad button.op{background:var(--tk-bg);color:var(--tk-accent)}
.tk-pad button.eq{background:var(--tk-accent);color:#fff;border-color:var(--tk-accent);grid-column:span 2}
.tk-display{max-width:380px;margin-bottom:12px;padding:16px 18px;font-size:28px;font-weight:700;text-align:right;background:var(--tk-bg);border:1px solid var(--tk-border);border-radius:12px;min-height:70px;word-break:break-all}

/* Invoice */
.tk-inv-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.tk-inv-form h3{font-size:16px;margin:18px 0 10px;padding-bottom:6px;border-bottom:2px solid var(--tk-bg)}
.tk-inv-form h3:first-child{margin-top:0}
.tk-inv-items{width:100%;border-collapse:collapse;margin-top:8px}
.tk-inv-items th{font-size:13px;text-align:left;color:var(--tk-muted);padding:8px 6px;border-bottom:1px solid var(--tk-border)}
.tk-inv-items td{padding:6px}
.tk-inv-items input{width:100%;padding:9px 10px;font-size:14.5px;border:1px solid var(--tk-border);border-radius:8px}
.tk-inv-items .amt{text-align:right;font-weight:600;white-space:nowrap}
.tk-rm{color:#dc2626;background:none;border:0;font-size:18px;cursor:pointer;padding:4px 8px}
.tk-inv-preview-wrap{background:var(--tk-bg);border-radius:12px;padding:18px}
.tk-inv-preview{background:#fff;border:1px solid var(--tk-border);border-radius:8px;padding:34px 30px;font-size:14.5px;color:#1e293b;box-shadow:var(--tk-shadow)}
.tk-inv-preview .inv-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}
.tk-inv-preview .inv-title{font-size:30px;font-weight:800;letter-spacing:2px;color:var(--tk-accent)}
.tk-inv-preview .inv-meta{text-align:right;font-size:13.5px;color:var(--tk-muted)}
.tk-inv-preview .inv-parties{display:flex;justify-content:space-between;gap:20px;margin-bottom:20px}
.tk-inv-preview .inv-party{font-size:13.5px}
.tk-inv-preview .inv-party strong{display:block;font-size:14.5px;margin-bottom:2px}
.tk-inv-preview table{width:100%;border-collapse:collapse;margin:10px 0 18px}
.tk-inv-preview th{background:#f1f5f9;text-align:left;padding:10px;font-size:13px}
.tk-inv-preview td{padding:10px;border-bottom:1px solid #f1f5f9;font-size:13.5px}
.tk-inv-preview .num{text-align:right}
.tk-inv-totals{width:240px;margin-left:auto;font-size:14px}
.tk-inv-totals .row{display:flex;justify-content:space-between;padding:5px 0}
.tk-inv-totals .grand{font-weight:800;font-size:17px;border-top:2px solid #1e293b;margin-top:6px;padding-top:8px}
.tk-inv-notes{margin-top:18px;font-size:13px;color:var(--tk-muted)}
.tk-inv-actions{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}

/* Archive / list / misc */
.tk-archive-head{margin:8px 0 6px}
.tk-archive-head h1{font-size:32px;letter-spacing:-.5px}
.tk-archive-head p{color:var(--tk-muted)}
.tk-page{padding-top:8px;padding-bottom:44px}
.tk-page h1{font-size:32px;margin:6px 0 16px}
.tk-page-content{max-width:800px}
.tk-page-content p{margin-bottom:14px}
.tk-list-item{background:var(--tk-card);border:1px solid var(--tk-border);border-radius:12px;padding:18px 20px;margin-bottom:12px}
.tk-list-item h2{font-size:19px}
.tk-list-item p{color:var(--tk-muted);font-size:15px;margin-top:4px}
.tk-pagination{margin-top:20px}
.tk-ad{margin:18px auto;text-align:center;max-width:1140px;padding:0 20px}
.tk-404{text-align:center;padding-top:40px}

/* Footer */
.tk-footer{background:#0f172a;color:#cbd5e1;margin-top:60px}
.tk-footer-inner{max-width:1140px;margin:0 auto;padding:44px 20px 20px;display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}
.tk-footer .tk-logo-text{color:#fff}
.tk-footer-brand p{font-size:14px;margin-top:8px;color:#94a3b8}
.tk-footer-links strong{color:#fff;display:block;margin-bottom:10px;font-size:15px}
.tk-footer-links ul{list-style:none}
.tk-footer-links li{margin-bottom:7px}
.tk-footer-links a{color:#94a3b8;font-size:14px}
.tk-footer-links a:hover{color:#fff}
.tk-footer-bottom{border-top:1px solid #1e293b;text-align:center;padding:18px;font-size:13.5px;color:#64748b}

/* Responsive */
@media(max-width:900px){
	.tk-grid{grid-template-columns:repeat(2,1fr)}
	.tk-feat-grid{grid-template-columns:1fr}
	.tk-inv-grid{grid-template-columns:1fr}
	.tk-footer-inner{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
	.tk-grid{grid-template-columns:1fr}
	.tk-hero h1{font-size:30px}
	.tk-fields{grid-template-columns:1fr}
	.tk-nav{display:none;position:absolute;top:66px;left:0;right:0;background:#fff;border-bottom:1px solid var(--tk-border);padding:10px 20px}
	.tk-nav.open{display:block}
	.tk-nav ul{flex-direction:column}
	.tk-menu-toggle{display:flex}
	.tk-cta{display:none}
	.tk-tool-shell{padding:18px}
	.tk-inv-preview{padding:20px 16px}
}

/* ===== ToolKit Pro v1.1.0 — professional polish ===== */

/* Top utility bar */
.tk-topbar{background:#0f172a;color:#cbd5e1;font-size:13px}
.tk-topbar-inner{max-width:1140px;margin:0 auto;padding:7px 20px;display:flex;justify-content:space-between;gap:10px}
.tk-topbar-right{color:#94a3b8}

/* Header refinements */
.tk-header{box-shadow:0 1px 3px rgba(15,23,42,.06)}
.tk-logo-mark{font-size:24px}
.tk-logo-text{display:flex;align-items:center;gap:8px}
.tk-header-search{display:flex;align-items:center;background:var(--tk-bg);border:1px solid var(--tk-border);border-radius:10px;overflow:hidden}
.tk-header-search input{border:0;background:transparent;padding:9px 12px;font-size:14px;width:170px;color:var(--tk-text)}
.tk-header-search input:focus{outline:none}
.tk-header-search button{border:0;background:transparent;padding:9px 12px;cursor:pointer;font-size:15px}

/* Hero stats */
.tk-hero{position:relative;overflow:hidden}
.tk-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 20%,rgba(255,255,255,.14),transparent 45%),radial-gradient(circle at 85% 30%,rgba(255,255,255,.1),transparent 40%)}
.tk-hero-inner{position:relative}
.tk-hero-stats{display:flex;gap:36px;justify-content:center;margin-top:26px}
.tk-hero-stats div{display:flex;flex-direction:column}
.tk-hero-stats strong{font-size:26px;letter-spacing:-.5px}
.tk-hero-stats span{font-size:13px;opacity:.85}

/* Section headings with accent bar */
.tk-section-head h2{position:relative;padding-left:14px}
.tk-section-head h2::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:4px;border-radius:2px;background:var(--tk-accent)}

/* Cards: icon tile */
.tk-card-icon{width:52px;height:52px;display:flex;align-items:center;justify-content:center;font-size:26px;background:color-mix(in srgb,var(--tk-accent) 10%,#fff);border-radius:12px;margin-bottom:4px}

/* Tool shell polish */
.tk-tool-shell{padding:32px}
.tk-field textarea{padding:12px 14px;font-size:15px;border:1px solid var(--tk-border);border-radius:10px;width:100%;font-family:inherit;resize:vertical}
.tk-field textarea:focus{outline:none;border-color:var(--tk-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--tk-accent) 18%,transparent)}
.tk-field input[type="time"]{padding:12px 14px;font-size:16px;border:1px solid var(--tk-border);border-radius:10px;width:100%}
.tk-field input[type="time"]:focus{outline:none;border-color:var(--tk-accent)}

/* Scientific pad: 5 columns */
.tk-pad-sci{grid-template-columns:repeat(5,1fr);max-width:460px}
.tk-pad-sci button{padding:14px 8px;font-size:16px}

/* Dice */
.tk-die{width:56px;height:56px;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:800;background:var(--tk-card);border:2px solid var(--tk-accent);border-radius:12px;box-shadow:var(--tk-shadow)}

/* Footer 4 columns */
.tk-footer-inner{grid-template-columns:1.6fr 1fr 1fr 1fr}
.tk-footer-bottom-inner{max-width:1140px;margin:0 auto;padding:0 20px 14px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.tk-footer-bottom{padding:18px 0 8px}
.tk-footer-bottom p{max-width:1140px;margin:0 auto;padding:0 20px 14px}
.tk-footer-note{color:#475569}

@media(max-width:900px){
	.tk-footer-inner{grid-template-columns:1fr 1fr}
	.tk-header-search{display:none}
	.tk-topbar-right{display:none}
}
@media(max-width:640px){
	.tk-hero-stats{gap:22px}
	.tk-pad-sci{grid-template-columns:repeat(5,1fr)}
	.tk-pad-sci button{padding:12px 4px;font-size:14px}
	.tk-tool-shell{padding:20px}
}

/* ===== v1.2.0: articles, tables, misc ===== */
.tk-article-wrap, .tk-article{margin:26px 0;max-width:820px}
.tk-article h2{font-size:21px;margin:22px 0 10px;letter-spacing:-.3px}
.tk-article p{margin-bottom:12px;color:#334155;font-size:15.5px}
.tk-article ol{margin:0 0 12px 22px;color:#334155;font-size:15.5px}
.tk-article ol li{margin-bottom:6px}
.tk-article a{font-weight:500}
.tk-also{background:var(--tk-bg);border:1px solid var(--tk-border);border-radius:10px;padding:12px 16px;font-size:14.5px}
.tk-updated{font-size:13.5px;color:var(--tk-muted);margin-top:8px}
.tk-cat-desc{color:var(--tk-muted);font-size:15px;margin:-8px 0 16px}
.tk-table{width:100%;border-collapse:collapse;margin-top:14px;font-size:14px;background:#fff}
.tk-table th{background:#f1f5f9;text-align:left;padding:10px 12px;font-size:13px;color:var(--tk-muted);position:sticky;top:0}
.tk-table td{padding:10px 12px;border-bottom:1px solid var(--tk-border)}
.tk-table tr:hover td{background:#f8fafc}

/* ===== v1.2.0 QA: mobile hardening ===== */
.tk-inv-preview{overflow-x:auto}
.tk-inv-preview .inv-head{flex-wrap:wrap;gap:14px}
.tk-inv-preview .inv-parties{flex-wrap:wrap}
.tk-inv-preview table{min-width:420px}
@media(max-width:640px){
	.tk-inv-preview .inv-title{font-size:24px}
	.tk-inv-totals{width:100%}
	.tk-hero{padding:44px 16px 40px}
	.tk-display{font-size:24px}
	.tk-tool-head h1{font-size:26px}
	.tk-archive-head h1{font-size:26px}
	.tk-page h1{font-size:26px}
}

/* ===== invoice print: only the invoice prints ===== */
@media print {
	.tk-topbar, .tk-header, .tk-footer, .tk-breadcrumb, .tk-tool-head,
	.tk-inv-form, .tk-inv-actions, .tk-ad, .tk-article, .tk-faq, .tk-related,
	.tk-updated, .tk-tool-shell > .tk-results { display: none !important; }
	body { background: #fff; }
	.tk-tool-shell { box-shadow: none; border: none; padding: 0; margin: 0; }
	.tk-inv-preview-wrap { margin: 0; }
	.tk-inv-preview { box-shadow: none; border: 1px solid #ddd; }
}

/* ===== v1.2.0 QA: narrow-screen safety ===== */
@media(max-width:640px){
	.tk-hero-stats{flex-wrap:wrap}
	.tk-result-row{flex-wrap:wrap;gap:6px}
	.tk-result-row .v{text-align:right}
}
