/*
Theme Name: Taxhint
Theme URI: https://taxhint.in/
Author: Taxhint Advisors Private Limited
Description: Lightweight theme for HTML-block pages. No jQuery, no page builder, no icon fonts. Site design lives in Additional CSS (served as a cached file).
Version: 1.1.2
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: taxhint
*/

:root{
	--th-teal:#0D5F66;--th-teal-d:#0A4A50;--th-ink:#111E1D;--th-cream:#FBF8F3;--th-sand:#E7E0D4;
	--th-muted:#56625f;--th-wa:#25D366;
	--th-serif:'Fraunces',Georgia,serif;--th-sans:'Instrument Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
	--th-head-h:72px;--th-top:var(--wp-admin--admin-bar--height,0px);
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--th-head-h) + var(--th-top) + 12px)}
html.th-lock{overflow:hidden}
body{margin:0;background:#fff;color:var(--th-ink);font:16px/1.6 var(--th-sans);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img,svg,video,iframe{max-width:100%}
img{height:auto;border:0}
iframe{border:0}
a{color:var(--th-teal)}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--th-teal);outline-offset:2px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.th-skip{position:absolute;left:12px;top:-60px;z-index:1000;background:var(--th-ink);color:#fff;padding:10px 14px;border-radius:8px;text-decoration:none}
.th-skip:focus{top:12px}
.th-main{display:block;min-height:50vh}
.th-wrap{max-width:1180px;margin:0 auto;padding:0 22px}

/* ---------- Header ---------- */
.th-head{position:sticky;top:var(--th-top);z-index:900;background:#fff;border-bottom:1px solid var(--th-sand)}
.th-head-in{max-width:1400px;margin:0 auto;padding:0 22px;height:var(--th-head-h);display:flex;align-items:center;gap:24px}
.th-brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--th-ink);flex:none}
.th-mark{display:block;flex:none}
.th-word{display:flex;flex-direction:column;line-height:1}
.th-word b{font:600 23px/1 var(--th-serif);letter-spacing:-.01em}
.th-word small{font:600 10px/1 var(--th-sans);letter-spacing:.22em;text-transform:uppercase;color:var(--th-teal);margin-top:4px}
.custom-logo-link img{max-height:46px;width:auto;display:block}

.th-nav{margin-left:auto}
.th-menu,.th-menu ul{list-style:none;margin:0;padding:0}
.th-menu a{text-decoration:none;color:var(--th-ink)}
.th-sub-toggle{display:none}

/* Phone + WhatsApp menu items (classes set in Appearance > Menus) */
.th-menu .thx-call>a{display:inline-flex;align-items:center;gap:7px;border:1.5px solid var(--th-teal);color:var(--th-teal);border-radius:999px;padding:8px 14px!important;font-weight:600;white-space:nowrap}
.th-menu .thx-call>a::before{content:"";width:15px;height:15px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center/contain no-repeat}
.th-menu .thx-call>a:hover{background:var(--th-teal);color:#fff}
.th-menu .thx-wa-float{position:fixed;right:22px;bottom:22px;z-index:950;margin:0!important;border:0!important}
.th-menu .thx-wa-float>a{display:block;width:58px;height:58px;padding:0!important;border-radius:50%;background:var(--th-wa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M17.5 14.4c-.3-.1-1.7-.8-2-.9-.3-.1-.5-.1-.7.1l-.9 1.2c-.2.2-.3.2-.6.1a8.1 8.1 0 0 1-4-3.5c-.3-.5.3-.5.9-1.6.1-.2 0-.4 0-.5l-.9-2.2c-.2-.6-.5-.5-.7-.5h-.6c-.2 0-.5.1-.8.4-.3.3-1 1-1 2.5s1.1 2.9 1.2 3.1c.1.2 2.1 3.2 5.1 4.5 1.9.8 2.7.9 3.6.7.6-.1 1.7-.7 2-1.4.2-.7.2-1.3.2-1.4-.1-.1-.3-.2-.6-.3zM12 21.8c-1.8 0-3.5-.5-5-1.4l-.4-.2-3.7 1 1-3.6-.2-.4A9.8 9.8 0 1 1 12 21.8zm8.4-18.2A11.8 11.8 0 0 0 1.8 17.9L.1 24l6.3-1.6A11.8 11.8 0 0 0 23.8 12c0-3.2-1.2-6.1-3.4-8.4z'/%3E%3C/svg%3E") center/30px no-repeat;box-shadow:0 8px 24px rgba(17,30,29,.25);font-size:0!important;color:transparent!important;transition:transform .15s}
.th-menu .thx-wa-float>a:hover{transform:scale(1.06)}
.th-menu .thx-wa-float>a::after,.th-menu .thx-wa-float>.th-sub-toggle{display:none!important}
@media print{.th-head,.th-menu .thx-wa-float{display:none!important}}

/* Desktop menu */
@media (min-width:1121px){
	.th-burger{display:none}
	.th-menu{display:flex;align-items:center;gap:2px}
	.th-menu>li{position:relative}
	.th-menu>li>a{display:flex;align-items:center;gap:5px;padding:10px 9px;font-size:14px;font-weight:500;border-radius:8px;white-space:nowrap}
	.th-menu>li:not(.thx-call):not(.thx-wa-float)>a:hover,.th-menu>li.current-menu-item:not(.menu-item-has-children)>a,.th-menu>li.current-menu-ancestor>a{color:var(--th-teal);background:rgba(13,95,102,.07)}
	.th-menu>li.thx-call{margin-left:8px}
	.th-menu>.menu-item-has-children>a::after{content:"";width:7px;height:7px;border:solid currentColor;border-width:0 1.6px 1.6px 0;transform:translateY(-2px) rotate(45deg);opacity:.55}
	.th-menu .sub-menu{display:none;position:absolute;top:calc(100% + 6px);left:-8px;min-width:270px;background:#fff;border:1px solid var(--th-sand);border-radius:14px;padding:8px;box-shadow:0 20px 46px -12px rgba(17,30,29,.22)}
	.th-menu .sub-menu::before{content:"";position:absolute;left:0;right:0;top:-10px;height:10px}
	.th-menu .th-wide>.sub-menu{grid-template-columns:repeat(2,minmax(230px,1fr));min-width:540px;column-gap:4px}
	.th-menu>li:nth-last-child(-n+6)>.sub-menu{left:auto;right:-8px}
	.th-menu>li:hover>.sub-menu,.th-menu>li:focus-within>.sub-menu{display:grid}
	.th-menu .sub-menu a{display:block;padding:8px 12px;border-radius:8px;font-size:14px;line-height:1.35;color:var(--th-ink)}
	.th-menu .sub-menu a:hover,.th-menu .sub-menu .current-menu-item>a{background:var(--th-cream);color:var(--th-teal)}
}
@media (min-width:1121px) and (max-width:1400px){
	.th-head-in{gap:14px}
	.th-menu>li>a{padding:9px 7px;font-size:13.5px}
	.th-menu>li.thx-call{display:none}
}

/* Mobile menu */
@media (max-width:1120px){
	:root{--th-head-h:64px}
	.th-burger{margin-left:auto;display:inline-flex;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;padding:0 11px;border:1px solid var(--th-sand);border-radius:10px;background:#fff;cursor:pointer}
	.th-burger span{display:block;height:2px;background:var(--th-ink);border-radius:2px;transition:transform .2s,opacity .2s}
	.is-open .th-burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
	.is-open .th-burger span:nth-child(2){opacity:0}
	.is-open .th-burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
	.th-nav{display:none;position:absolute;left:0;right:0;top:100%;margin:0;background:#fff;border-bottom:1px solid var(--th-sand);max-height:calc(100vh - var(--th-head-h) - var(--th-top));max-height:calc(100dvh - var(--th-head-h) - var(--th-top));overflow-y:auto;overscroll-behavior:contain;padding:8px 16px 24px;box-shadow:0 24px 40px -20px rgba(17,30,29,.3)}
	.is-open .th-nav{display:block}
	.th-menu>li{position:relative;border-bottom:1px solid #f0ebe2}
	.th-menu>li>a{display:block;padding:14px 48px 14px 4px;font-size:16px;font-weight:500}
	.th-menu>li.thx-call{border:0;padding-top:14px}
	.th-menu>li.thx-call>a{justify-content:center;width:100%;padding:12px!important}
	.th-sub-toggle{display:block;position:absolute;right:0;top:4px;width:44px;height:44px;border:0;background:transparent;cursor:pointer}
	.th-sub-toggle::before{content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;border:solid var(--th-ink);border-width:0 2px 2px 0;transform:translate(-50%,-70%) rotate(45deg);transition:transform .2s}
	.is-open>.th-sub-toggle::before{transform:translate(-50%,-30%) rotate(-135deg)}
	.th-menu .sub-menu{display:none;padding:0 0 10px 10px}
	.th-menu li.is-open>.sub-menu{display:block}
	.th-menu .sub-menu a{display:block;padding:9px 6px;font-size:15px;color:var(--th-muted)}
}
@media (max-width:600px){
	.admin-bar .th-head{top:0}
	.th-head-in{padding:0 16px}
	.th-word b{font-size:21px}
	.th-menu .thx-wa-float{right:14px;bottom:14px}
	.th-menu .thx-wa-float>a{width:52px;height:52px;background-size:28px}
}

/* ---------- Footer ---------- */
.th-foot{display:block;background:#0F4F4C}
.th-foot-widgets{padding-top:48px}
.th-foot-widgets>.th-fw{max-width:1270px;margin:0 auto;padding:0 35px}
@media (max-width:768px){.th-foot-widgets{padding-top:24px}.th-foot-widgets>.th-fw{padding:0 20px}}
.th-fw-title{display:none}
.th-foot-bar{border-top:1px solid rgba(255,255,255,.16);color:#9FBAB6;font-size:12.5px;padding:24px 22px;display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:center;text-align:center}
.th-foot-bar p{margin:0}
.th-foot-menu{list-style:none;margin:0;padding:0;display:flex;gap:18px}
.th-foot-menu a{color:inherit}

/* ---------- Plain pages, posts, archives ---------- */
.th-article,.th-archive,.th-404{padding-top:56px;padding-bottom:80px}
.th-article{max-width:820px}
.th-eyebrow{margin:0 0 10px;font-size:12.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--th-teal)}
.th-title{margin:0 0 24px;font:600 clamp(32px,4.4vw,48px)/1.12 var(--th-serif);letter-spacing:-.015em;color:var(--th-ink)}
.th-prose{font-size:17.5px;line-height:1.72}
.th-prose>*{margin:0 0 1.1em}
.th-prose h2,.th-prose h3,.th-prose h4{font-family:var(--th-serif);font-weight:600;line-height:1.25;margin:1.8em 0 .6em;color:var(--th-ink)}
.th-prose h2{font-size:1.65em}.th-prose h3{font-size:1.3em}
.th-prose ul,.th-prose ol{padding-left:1.3em}
.th-prose li{margin:.3em 0}
.th-prose blockquote{margin-left:0;padding:4px 0 4px 18px;border-left:3px solid var(--th-teal);color:var(--th-muted)}
.th-prose table{width:100%;border-collapse:collapse;font-size:.92em}
.th-prose th,.th-prose td{border:1px solid var(--th-sand);padding:9px 12px;text-align:left}
.th-prose th{background:var(--th-cream)}
.th-prose img{border-radius:12px}
.th-hero-img{margin:0 0 28px}.th-hero-img img{border-radius:16px;width:100%}
.th-postnav{display:flex;justify-content:space-between;gap:16px;margin-top:48px;padding-top:20px;border-top:1px solid var(--th-sand)}
.th-postnav a{text-decoration:none;font-weight:600}
.th-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px}
.th-card{background:#fff;border:1px solid var(--th-sand);border-radius:16px;padding:22px}
.th-card-img{display:block;margin:-22px -22px 18px}.th-card-img img{border-radius:16px 16px 0 0;width:100%;aspect-ratio:16/9;object-fit:cover}
.th-card h2{font:600 21px/1.3 var(--th-serif);margin:0 0 8px}
.th-card h2 a{color:var(--th-ink);text-decoration:none}
.th-card p{margin:0;color:var(--th-muted)}
.th-pager .nav-links{display:flex;gap:6px;margin-top:36px}
.th-pager .page-numbers{padding:8px 13px;border:1px solid var(--th-sand);border-radius:8px;text-decoration:none}
.th-pager .current{background:var(--th-teal);color:#fff;border-color:var(--th-teal)}
.th-empty{color:var(--th-muted)}
.th-404{text-align:center;max-width:640px}
.th-404-links{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:24px}
.th-btn{display:inline-block;background:var(--th-teal);color:#fff;text-decoration:none;font-weight:600;padding:12px 20px;border-radius:999px}
.th-btn-ghost{background:transparent;color:var(--th-teal);border:1.5px solid var(--th-teal)}
.search-form{display:flex;gap:8px;max-width:460px;margin:20px auto 0}
.search-form label{flex:1}
.search-field{width:100%;padding:12px 14px;border:1px solid var(--th-sand);border-radius:10px;background:#fff}
.search-submit{padding:12px 18px;border:0;border-radius:10px;background:var(--th-teal);color:#fff;font-weight:600;cursor:pointer}
.alignwide{max-width:1100px}.alignfull{max-width:none}
.wp-caption-text,figcaption{font-size:.85em;color:var(--th-muted)}

/* ---------- On-this-page jump bar (inc/toc.php) ---------- */
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
.th-main h2[id]{scroll-margin-top:64px}
.th-toc{position:sticky;top:calc(var(--th-head-h) + var(--th-top));z-index:60;background:rgba(255,255,255,.97);border-top:1px solid var(--th-sand);border-bottom:1px solid var(--th-sand);font-family:var(--th-sans)}
.th-toc .th-toc-in{max-width:1180px;margin:0 auto;padding:0 22px;display:flex;align-items:center;gap:16px}
.th-toc .th-toc-label{flex:none;margin:0;font-size:11.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--th-muted)}
.th-toc .th-toc-list{list-style:none;margin:0;padding:0;display:flex;gap:2px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
.th-toc .th-toc-list::-webkit-scrollbar{display:none}
.th-toc .th-toc-list li{margin:0;padding:0;flex:none;scroll-snap-align:start}
.th-toc .th-toc-list a{display:block;white-space:nowrap;padding:14px 11px 12px;font-size:14px;font-weight:500;line-height:1.2;color:var(--th-ink);text-decoration:none;border-bottom:2px solid transparent;transition:color .15s,border-color .15s}
.th-toc .th-toc-list a:hover{color:var(--th-teal)}
.th-toc .th-toc-list a[aria-current]{color:var(--th-teal);border-bottom-color:var(--th-teal);font-weight:600}
@media (max-width:700px){
	.th-toc .th-toc-label{display:none}
	.th-toc .th-toc-in{padding:0 6px}
	.th-toc .th-toc-list a{padding:12px 10px 10px;font-size:13.5px}
	.th-toc{-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
}
/* Plain pages / blog posts: static box above the first heading */
.th-toc.th-toc-box{position:static;background:var(--th-cream);border:1px solid var(--th-sand);border-radius:14px;margin:0 0 32px;-webkit-mask-image:none;mask-image:none}
.th-toc.th-toc-box .th-toc-in{display:block;padding:18px 22px}
.th-toc.th-toc-box .th-toc-label{display:block;margin-bottom:8px}
.th-toc.th-toc-box .th-toc-list{display:block;overflow:visible;counter-reset:toc}
.th-toc.th-toc-box .th-toc-list a{padding:5px 0;border:0;white-space:normal;font-size:15.5px}
.th-toc.th-toc-box .th-toc-list li{counter-increment:toc;display:flex;gap:10px}
.th-toc.th-toc-box .th-toc-list li::before{content:counter(toc,decimal-leading-zero);color:var(--th-teal);font-size:12.5px;font-weight:600;padding-top:8px}
@media print{.th-toc{display:none}}
