/*
Theme Name: Calculators Corner
Theme URI: https://calculatorscorner.com
Author: Calculators Corner
Description: Clean, fast theme for the Calculators Corner calculator site. Works with Elementor (V4 atomic elements) and the Calculators Corner Core plugin.
Version: 13.11
Requires PHP: 7.4
Text Domain: tools-heaven
*/

/* ============================================================ tokens */
:root {
	--th-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--th-ink: #0f172a;        /* headings */
	--th-text: #334155;       /* body */
	--th-muted: #64748b;      /* secondary text (4.7:1 on white) */
	--th-line: #e2e8f0;
	--th-soft: #f1f5f9;
	--th-page: #f8fafc;
	--th-surface: #ffffff;
	--th-brand: #1d4ed8;      /* links, primary buttons (6.7:1 on white) */
	--th-brand-ink: #1e3a8a;
	--th-brand-soft: #eff6ff;
	--th-ok: #047857;
	--th-bad: #b91c1c;
	--th-radius: 12px;
	--th-max: 1180px;
	--th-gutter: 24px;
	--th-header-h: 68px;
}

/* ============================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--th-header-h) + 16px); }
body {
	margin: 0; background: var(--th-page); color: var(--th-text);
	font-family: var(--th-font); font-size: 16px; line-height: 1.65;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--th-brand); text-underline-offset: 2px; }
a:hover { color: var(--th-brand-ink); }
:focus-visible { outline: 2px solid var(--th-brand); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--th-ink); font-family: var(--th-font); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
table { border-collapse: collapse; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.th-skip { position: absolute; left: 12px; top: -60px; background: var(--th-ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.th-skip:focus { top: 12px; color: #fff; }

.th-wrap { width: 100%; max-width: var(--th-max); margin: 0 auto; padding: 0 var(--th-gutter); }

/* ============================================================ header */
.th-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--th-line); backdrop-filter: saturate(1.4) blur(8px); }
.th-header__bar { display: flex; align-items: center; gap: 24px; min-height: var(--th-header-h); }
.th-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.th-logo img { display: block; height: 40px; width: auto; }
.th-nav { margin-left: auto; }
.th-nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.th-nav a, .th-nav__toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; color: var(--th-ink); font-size: 15px; font-weight: 500; text-decoration: none; background: none; border: 0; font-family: inherit; cursor: pointer; }
.th-nav a:hover, .th-nav__toggle:hover, .th-nav [aria-current="page"] { background: var(--th-soft); color: var(--th-brand); }
.th-nav__sub { position: relative; }
.th-nav__sub > ul { list-style: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 300px; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--th-line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15, 23, 42, .12); display: none; }
.th-nav__sub.is-open > ul { display: block; }
.th-nav__sub > ul a { display: flex; width: 100%; padding: 10px 12px; }
.th-nav__sub > ul small { display: block; font-size: 13px; color: var(--th-muted); font-weight: 400; }
.th-chevron { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.th-header__cta { flex-shrink: 0; }
.th-menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--th-line); border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.th-menu-btn span, .th-menu-btn span::before, .th-menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--th-ink); position: relative; content: ""; }
.th-menu-btn span::before { position: absolute; top: -6px; } .th-menu-btn span::after { position: absolute; top: 6px; }

.th-btn-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; border-radius: 8px; background: var(--th-brand); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.th-btn-link:hover { background: var(--th-brand-ink); color: #fff; }

/* ============================================================ page chrome */
.th-main { min-height: 60vh; }
.th-pagehead { padding-top: 20px; }
.th-reviewed { margin: 8px 0 0; font-size: 13px; color: var(--th-muted); }
.th-prose-page { padding: 32px 0 72px; }
.th-prose { max-width: 760px; }
.th-prose h1 { margin-bottom: .4em; }
.th-prose h2 { margin-top: 1.8em; }
.th-prose h3 { margin-top: 1.4em; }
.th-prose li { margin-bottom: .4em; }
.th-prose table { width: 100%; font-size: 15px; margin: 1em 0 1.5em; }
.th-prose th, .th-prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--th-line); vertical-align: top; }
.th-prose .th-lead { font-size: 1.125rem; color: var(--th-text); }

/* Elementor content: let V4 sections run full width; keep inner widths in the builder */
.th-main > .elementor { width: 100%; }

/* Use the site font everywhere, including Elementor kit typography (which would otherwise ask for a web font). */
html body, html .elementor-kit-7, html .elementor-kit-7 h1, html .elementor-kit-7 h2, html .elementor-kit-7 h3,
html .elementor-kit-7 h4, html .elementor-kit-7 p, html .elementor-kit-7 button, html .elementor-kit-7 input,
html .elementor-kit-7 select, html .elementor-kit-7 textarea { font-family: var(--th-font); }

/* FAQ accordion (Elementor V4 <details>/<summary>) open/close marker */
.th-faq-head { list-style: none; }
.th-faq-head::-webkit-details-marker { display: none; }
.th-faq-head::after { content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--th-line); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; color: var(--th-brand); }
details[open] > .th-faq-head::after { content: "−"; }
.th-faq-head:hover .th-faq-q { color: var(--th-brand); }

/* ============================================================ footer */
.th-footer { margin-top: 0; background: #0b1220; color: #cbd5e1; font-size: 15px; }
.th-footer a { color: #e2e8f0; text-decoration: none; }
.th-footer a:hover { color: #fff; text-decoration: underline; }
.th-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 56px 0 40px; }
.th-footer__brand img { width: auto; background: none; border-radius: 0; padding: 0; } /* the dark footer uses the white-text logo from Site Identity */
.th-footer__brand p { margin: 14px 0 0; max-width: 320px; color: #94a3b8; line-height: 1.6; }
.th-footer__title { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.th-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.th-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 28px; border-top: 1px solid #1e293b; font-size: 13px; color: #94a3b8; }

/* ============================================================ 404 */
.th-404 { padding: 72px 0 96px; text-align: center; }
.th-404 p { max-width: 560px; margin-left: auto; margin-right: auto; }
.th-404 .th-directory { margin-top: 32px; text-align: left; }

/* ============================================================ responsive */
@media (max-width: 960px) {
	.th-menu-btn { display: inline-flex; }
	.th-nav, .th-header__cta { display: none; }
	.th-header.is-open .th-nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--th-line); padding: 8px var(--th-gutter) 16px; box-shadow: 0 16px 30px rgba(15, 23, 42, .1); }
	.th-header.is-open .th-nav > ul { flex-direction: column; align-items: stretch; }
	.th-header.is-open .th-nav__sub > ul { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
	.th-header.is-open .th-nav__toggle { display: none; }
	.th-footer__grid { grid-template-columns: 1fr 1fr; }
	.th-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	:root { --th-gutter: 16px; }
	.th-logo img { height: 34px; }
	.th-footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================ design layer v5
   V4 global classes print as ".elementor .th-x"; selectors here start with "html body" where they need to win. */
:root {
	--th-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
	--th-shadow-md: 0 18px 40px -18px rgba(15, 23, 42, .25), 0 2px 6px rgba(15, 23, 42, .05);
	--th-radius-lg: 16px;
	--th-band-top: #eaf1ff;
	--th-band: radial-gradient(900px 420px at 100% 0%, rgba(37, 99, 235, .16), transparent 62%),
		radial-gradient(700px 360px at 0% 100%, rgba(16, 185, 129, .09), transparent 60%),
		linear-gradient(180deg, var(--th-band-top) 0%, #f5f8ff 100%);
	--th-tax: #047857; --th-tax-soft: #ecfdf5;
	--th-time: #6d28d9; --th-time-soft: #f5f3ff;
}

/* ---------- header bands (breadcrumb bar + hero) */
.th-crumbbar { background: var(--th-band-top); padding: 16px 0 0; }
.th-crumbbar .th-breadcrumbs ol { font-size: 13px; }
html body .elementor .th-sec-hero { background: var(--th-band); border-bottom: 1px solid #dbe6fb; }
html body .elementor .th-sec-hero:has(+ .th-sec-tool) { padding-bottom: 104px; border-bottom: 0; }
html body .elementor .th-sec-hero + .th-sec-tool { margin-top: -72px; position: relative; z-index: 1; }
html body .elementor .th-sec-hero .th-h1 { max-width: 900px; }
html body .elementor .th-sec-hero .th-lead { max-width: 780px; }

/* trust badges under hero intros */
.th-badges ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
html body .th-badges ul li { margin: 0; padding: 6px 12px 6px 30px; background: rgba(255, 255, 255, .8); border: 1px solid #d5e2fb; border-radius: 999px;
	font-size: 13.5px; font-weight: 600; color: var(--th-brand-ink); line-height: 1.4; box-shadow: var(--th-shadow-sm); }
html body .th-badges ul li::before { left: 9px; top: 50%; margin-top: -8px; width: 16px; height: 16px; background-size: 10px; background-color: #dbeafe; }

/* ---------- headings and rhythm inside Elementor pages */
html body .elementor .th-h2 { letter-spacing: -.02em; }
html body .elementor .th-sec > .th-in > .th-h2:first-child { margin-top: 0; }
html body .elementor .th-sec-white { background: #fff; }

/* ---------- calculator page: guide + sticky sidebar */
html body .elementor .th-guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
html body .elementor .th-guide-main { max-width: 780px; }
html body .elementor .th-guide-main .th-h2 { margin-top: 26px; padding-top: 30px; border-top: 1px solid var(--th-line); font-size: 28px; }
html body .elementor .th-guide-main > .th-note:first-child + .th-h2, html body .elementor .th-guide-main .th-h2:first-child { border-top: 0; padding-top: 0; }
html body .elementor .th-guide-main .th-h3 { margin-top: 14px; font-size: 20px; }
html body .elementor .th-guide-aside { position: sticky; top: calc(var(--th-header-h) + 20px); width: auto; }
.th-aside-card { box-shadow: var(--th-shadow-sm); }
html body .elementor .th-aside-card .th-h3 { margin: 0; font-size: 16px; }
html body .elementor .th-aside-card .th-p { font-size: 15px; line-height: 1.55; }

/* "Key points" box: first note in a guide */
html body .elementor .th-guide-main > .th-note:first-child { background: #fff; border: 1px solid var(--th-line); border-left: 4px solid var(--th-brand); border-radius: 14px; padding: 20px 24px; box-shadow: var(--th-shadow-sm); }
html body .elementor .th-note, html body .elementor .th-warn { border-radius: 12px; }
html body .elementor .th-note .th-p strong:only-child { color: var(--th-ink); }

/* ---------- FAQ as a card */
html body .elementor .th-faq { background: #fff; border: 1px solid var(--th-line); border-radius: var(--th-radius-lg); padding: 4px 28px; box-shadow: var(--th-shadow-sm); }
html body .elementor .th-faq-item:last-child { border-bottom: 0; }
html body .elementor .th-faq-head { padding: 20px 0; cursor: pointer; }
html body .elementor .th-faq-q { font-size: 17px; }
html body .elementor .th-faq-body .th-p { font-size: 16px; color: var(--th-text); }
.th-faq-head::after { background: var(--th-brand-soft); border-color: #cfe0fd; font-weight: 600; }

/* ---------- generic cards (home "why" and guide cards) */
html body .elementor .th-card-box { border: 1px solid var(--th-line); border-top: 0; border-radius: var(--th-radius-lg); padding: 26px; box-shadow: var(--th-shadow-sm);
	position: relative; overflow: hidden; transition: box-shadow .2s, transform .2s; }
html body .elementor .th-card-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--th-brand), #60a5fa); }
html body .elementor .th-card-box:hover { box-shadow: var(--th-shadow-md); transform: translateY(-2px); }
html body .elementor .th-card-box .th-h3 a { color: var(--th-ink); text-decoration: none; }
html body .elementor .th-card-box .th-h3 a::after { content: ""; position: absolute; inset: 0; }
html body .elementor .th-card-box .th-h3 a:hover { color: var(--th-brand); }

/* ---------- home hero */
html body .elementor .th-hero-grid { align-items: center; }
html body .elementor .th-hero-panel { box-shadow: var(--th-shadow-md); border-color: #dbe6fb; }
html body .elementor .th-hero-panel .th-list ul { margin: 0; }
html body .th-hero-panel .th-list ul li { padding: 12px 0 12px 46px; margin: 0; border-top: 1px solid var(--th-line); line-height: 1.45; font-size: 14px; color: var(--th-muted); }
html body .th-hero-panel .th-list ul li:first-child { border-top: 0; }
html body .th-hero-panel .th-list ul li::before { left: 0; top: 50%; margin-top: -16px; width: 32px; height: 32px; border-radius: 9px; background-size: 14px; }
html body .th-hero-panel .th-list a { font-weight: 700; font-size: 16px; color: var(--th-ink); text-decoration: none; }
html body .th-hero-panel .th-small strong { font-size: 12px; letter-spacing: .08em; color: var(--th-brand); }
html body .th-hero-panel .th-list a:hover { color: var(--th-brand); }
html body .th-hero-panel .th-list small { display: block; color: var(--th-muted); font-size: 13.5px; font-weight: 400; margin-top: 2px; }

/* ---------- dark "worldwide" band */
html body .elementor .th-sec-band { background: radial-gradient(800px 400px at 90% 0%, rgba(59, 130, 246, .25), transparent 60%), #0b1220; border: 0; }
html body .elementor .th-sec-band .th-h2, html body .elementor .th-sec-band .th-h3 { color: #fff; }
html body .elementor .th-sec-band .th-p, html body .elementor .th-sec-band .th-lead { color: #cbd5e1; }
html body .elementor .th-sec-band .th-eyebrow { color: #93c5fd; }
html body .elementor .th-sec-band .th-p a { color: #93c5fd; }
html body .elementor .th-world-card { transition: border-color .2s, transform .2s; }
html body .elementor .th-world-card:hover { border-color: #3b82f6; transform: translateY(-2px); }

/* ---------- buttons */
html body .elementor .th-btn-pri { box-shadow: 0 8px 20px -8px rgba(29, 78, 216, .55); }

/* ============================================================ lists (site-wide) */
.th-list ul, .th-prose ul, .th-article ul { list-style: none; padding-left: 0; margin: 0 0 1em; }
.th-list ul li, .th-prose ul li, .th-article ul li { position: relative; padding-left: 30px; margin: 0 0 10px; }
.th-list ul li::before, .th-prose ul li::before, .th-article ul li::before {
	content: ""; position: absolute; left: 2px; top: .42em; width: 18px; height: 18px; border-radius: 50%;
	background: var(--th-brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231d4ed8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.th-list ol, .th-prose ol, .th-article ol { list-style: none; padding-left: 0; margin: 0 0 1em; counter-reset: th-step; }
.th-list ol li, .th-prose ol li, .th-article ol li { position: relative; padding-left: 44px; margin: 0 0 14px; counter-increment: th-step; min-height: 28px; }
.th-list ol li::before, .th-prose ol li::before, .th-article ol li::before {
	content: counter(th-step); position: absolute; left: 0; top: .05em; width: 30px; height: 30px; border-radius: 9px;
	background: var(--th-brand); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.th-sec-band .th-list ul li::before { background-color: rgba(147, 197, 253, .15); }

/* ============================================================ "On this page" (calculator pages and posts) */
.th-toc, .th-aside-tools { background: #fff; border: 1px solid var(--th-line); border-radius: 14px; padding: 18px 18px 14px; font-size: 14px; box-shadow: var(--th-shadow-sm); }
.th-toc__title { margin: 0 0 10px !important; font-weight: 700; color: var(--th-ink); font-size: 12px !important; letter-spacing: .08em; text-transform: uppercase; }
html body .th-toc__list, html body .th-aside-tools ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: none; }
html body .th-toc__list li, html body .th-aside-tools li { margin: 0; padding: 0; min-height: 0; }
html body .th-toc__list li::before, html body .th-aside-tools li::before { content: none; display: none; }
.th-toc__list a, .th-aside-tools a { display: block; padding: 6px 10px; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; color: var(--th-text); text-decoration: none; line-height: 1.4; }
.th-toc__list a:hover, .th-aside-tools a:hover { background: var(--th-soft); color: var(--th-brand); }
.th-toc__list a.is-active { border-left-color: var(--th-brand); background: var(--th-brand-soft); color: var(--th-brand-ink); font-weight: 600; }
.th-toc__cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--th-brand); color: #fff !important; font-weight: 600; text-decoration: none; }
.th-toc__cta:hover { background: var(--th-brand-ink); }
.th-aside-tools a { font-weight: 600; color: var(--th-brand); }

/* ============================================================ bands for blog, archives and posts */
.th-band { background: var(--th-band); border-bottom: 1px solid #dbe6fb; padding: 16px 0 44px; }
.th-band .th-breadcrumbs { margin-bottom: 28px; }
.th-band .th-breadcrumbs ol { font-size: 13px; }
.th-band__eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--th-brand); }
.th-band__eyebrow a { text-decoration: none; }
.th-band__title { margin: 0 0 14px; max-width: 900px; font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem); letter-spacing: -.028em; line-height: 1.12; }
.th-band__lead { margin: 0; max-width: 760px; font-size: 1.15rem; line-height: 1.6; color: var(--th-text); }
.th-band__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.th-band__chips a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; background: #fff; border: 1px solid #d5e2fb; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--th-ink); text-decoration: none; }
.th-band__chips a:hover { border-color: var(--th-brand); color: var(--th-brand); }
.th-band__chips span { background: var(--th-brand-soft); color: var(--th-brand-ink); border-radius: 999px; padding: 0 8px; font-size: 12px; }
.th-band--post { padding-bottom: 32px; }
.th-band .th-byline { border: 0; padding: 0; margin: 24px 0 0; }

/* ---------- guide cards */
.th-listing { padding: 40px var(--th-gutter) 80px; }
.th-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; padding: 0; list-style: none; margin: 0; }
.th-post-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px; background: #fff; border: 1px solid var(--th-line); border-radius: var(--th-radius-lg); box-shadow: var(--th-shadow-sm); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.th-post-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--th-brand), #60a5fa); }
.th-post-card--tax-income::before { background: linear-gradient(90deg, var(--th-tax), #34d399); }
.th-post-card:hover { box-shadow: var(--th-shadow-md); transform: translateY(-3px); border-color: #cfe0fd; }
.th-post-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.th-post-card__time { font-size: 13px; color: var(--th-muted); }
html body .th-post-card__title { font-size: 20px; margin: 0; line-height: 1.3; letter-spacing: -.015em; }
.th-post-card__title a { color: var(--th-ink); text-decoration: none; }
.th-post-card__title a::after { content: ""; position: absolute; inset: 0; }
.th-post-card:hover .th-post-card__title a { color: var(--th-brand); }
.th-post-card__excerpt { margin: 0; color: var(--th-text); font-size: 15px; line-height: 1.6; }
.th-post-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--th-line); font-size: 13px; color: var(--th-muted); }
.th-post-card__go { color: var(--th-brand); font-weight: 600; font-size: 14px; }
.th-chip-sm { display: inline-block; background: var(--th-brand-soft); color: var(--th-brand-ink); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700; text-decoration: none; position: relative; z-index: 1; }
.th-post-card--tax-income .th-chip-sm { background: var(--th-tax-soft); color: var(--th-tax); }
.th-post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--th-muted); margin: 0; }

/* ---------- article */
.th-article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; padding-top: 36px; padding-bottom: 72px; align-items: start; }
.th-article { min-width: 0; background: #fff; border: 1px solid var(--th-line); border-radius: 18px; padding: 44px 52px; box-shadow: var(--th-shadow-sm); font-size: 17.5px; line-height: 1.78; color: #1e293b; }
.th-article > :first-child { margin-top: 0; }
.th-article h2 { margin: 2.1em 0 .6em; padding-top: 1.3em; border-top: 1px solid var(--th-line); font-size: clamp(1.45rem, 1.2rem + 1vw, 1.8rem); letter-spacing: -.02em; }
.th-article h3 { margin: 1.6em 0 .5em; font-size: 1.22rem; }
.th-article p { margin: 0 0 1.1em; }
.th-article a { font-weight: 500; }
.th-article figure { margin: 1.4em 0 1.8em; }
.th-article .wp-block-table { overflow-x: auto; border: 1px solid var(--th-line); border-radius: 12px; }
.th-article table { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; line-height: 1.5; }
.th-article .wp-block-table table { min-width: 520px; }
.th-article .wp-block-table td, .th-article .wp-block-table th { border-left: 0; border-right: 0; }
.th-article thead th { background: var(--th-ink); color: #fff; text-align: left; padding: 11px 14px; font-weight: 600; font-size: 14px; }
.th-article tbody td, .th-article tbody th { padding: 11px 14px; border-top: 1px solid var(--th-line); text-align: left; vertical-align: top; }
.th-article tbody td:first-child { font-weight: 600; color: var(--th-ink); }
.th-article tbody tr:nth-child(even) { background: #f8fafc; }
.th-article .wp-element-caption { font-size: 13.5px; color: var(--th-muted); margin: 0; padding: 10px 14px; text-align: left; border-top: 1px solid var(--th-line); background: #f8fafc; }
.th-article .th-answer { background: linear-gradient(180deg, #eff6ff, #f8fbff); border: 1px solid #cfe0fd; border-left: 5px solid var(--th-brand); border-radius: 14px; padding: 20px 24px; margin: 0 0 26px; font-size: 17.5px; }
.th-article .th-answer p:last-child { margin-bottom: 0; }
.th-article .th-takeaways { background: #f8fafc; border: 1px solid var(--th-line); border-radius: 14px; padding: 20px 24px 8px; margin: 0 0 28px; }
.th-article .th-takeaways > p:first-child { font-weight: 700; color: var(--th-ink); margin-bottom: 12px; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; }
.th-article .th-formula { background: var(--th-brand-soft); border: 1px solid #cfe0fd; border-left: 4px solid var(--th-brand); border-radius: 12px; padding: 16px 20px; font-size: 16px; line-height: 1.85; }
.th-article .th-cta { display: block; background: radial-gradient(500px 200px at 100% 0%, rgba(59, 130, 246, .35), transparent 60%), #0b1220; border-radius: 16px; padding: 24px 26px; margin: 32px 0; }
.th-article .th-cta p { margin: 0; color: #cbd5e1; }
.th-article .th-cta strong { color: #fff; display: block; font-size: 19px; margin-bottom: 4px; }
.th-article .th-cta a { display: inline-flex; margin-top: 14px; padding: 11px 18px; border-radius: 10px; background: #fff; color: var(--th-ink); font-weight: 700; text-decoration: none; }
.th-article .th-cta a:hover { background: #dbeafe; }
.th-article details { border-bottom: 1px solid var(--th-line); padding: 16px 0; }
.th-article details summary { cursor: pointer; font-weight: 600; color: var(--th-ink); font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.th-article details summary::-webkit-details-marker { display: none; }
.th-article details summary::after { content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--th-brand-soft); color: var(--th-brand); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.th-article details[open] summary::after { content: "−"; }
.th-article details > :not(summary) { margin: 10px 0 0; }
.th-byline { display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--th-muted); line-height: 1.5; }
.th-byline strong { color: var(--th-ink); }
.th-byline__mark { width: 44px; height: 44px; border-radius: 12px; background: var(--th-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; font-size: 14px; }
.th-author-box { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--th-line); border-radius: 14px; background: #f8fafc; margin: 36px 0 0; }
.th-author-box p { margin: 0 0 6px; font-size: 15px; line-height: 1.6; }
.th-aside { position: sticky; top: calc(var(--th-header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.th-more { background: #fff; border-top: 1px solid var(--th-line); padding: 56px 0 72px; }
.th-more__title { margin: 0 0 22px; font-size: 26px; }

/* ============================================================ responsive */
@media (max-width: 1024px) {
	html body .elementor .th-guide-grid { grid-template-columns: 1fr; gap: 28px; }
	html body .elementor .th-guide-aside { position: static; order: -1; }
	html body .elementor .th-guide-aside .th-aside-card { display: none; }
	.th-article-wrap { grid-template-columns: 1fr; }
	.th-aside { position: static; }
}
@media (max-width: 767px) {
	html body .elementor .th-sec-hero:has(+ .th-sec-tool) { padding-bottom: 76px; }
	html body .elementor .th-sec-hero + .th-sec-tool { margin-top: -52px; }
	html body .elementor .th-guide-main .th-h2 { font-size: 24px; margin-top: 18px; padding-top: 22px; }
	html body .elementor .th-faq { padding: 2px 18px; }
	.th-article { padding: 24px 20px; border-radius: 14px; font-size: 17px; }
	.th-band { padding-bottom: 32px; }
	.th-listing { padding-top: 28px; }
}

/* ============================================================ images (v5.3) */
html body .elementor .th-hero-grid--tool .th-hero-main { flex: 1 1 520px; }
html body .elementor .th-hero-media { align-self: center; }
html body .elementor .th-hero-media img, html body .elementor img.th-hero-img { display: block; width: 100%; height: auto; max-width: 520px; margin-left: auto; }
html body .elementor .th-figure { background: #f8fafc; border: 1px solid var(--th-line); border-radius: 18px; padding: 12px 12px 14px; }
html body .elementor .th-figure img, html body .elementor img.th-figure-img { display: block; width: 100%; height: auto; border-radius: 12px; }
html body .elementor .th-figure .th-small { padding: 0 6px; font-size: 14px; color: var(--th-muted); }

/* "How to use" and other procedures as numbered step cards */
html body .th-steps ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; margin: 4px 0 6px; }
html body .th-steps ol li { margin: 0; padding: 58px 18px 18px; background: #fff; border: 1px solid var(--th-line); border-radius: 14px;
	box-shadow: var(--th-shadow-sm); font-size: 15.5px; line-height: 1.55; min-height: 0; }
html body .th-steps ol li::before { left: 18px; top: 18px; width: 30px; height: 30px; }
html body .th-steps ol li strong { display: block; color: var(--th-ink); font-size: 16.5px; margin-bottom: 4px; }
.th-sec-white .th-steps ol li { background: #f8fafc; }

/* Blog: cover image and card thumbnails */
.th-article > figure.th-article__cover { margin: -44px -52px 34px; border-bottom: 1px solid var(--th-line); border-radius: 18px 18px 0 0; overflow: hidden; background: #eaf1ff; }
.th-article__cover img { display: block; width: 100%; height: auto; }
.th-article figure.wp-block-image { margin: 1.6em 0 1.8em; }
.th-article figure.wp-block-image img { display: block; width: 100%; height: auto; border: 1px solid var(--th-line); border-radius: 14px; }
.th-article figure.wp-block-image figcaption { font-size: 14px; color: var(--th-muted); margin-top: 8px; text-align: left; }
.th-post-card__img { margin: -26px -26px 6px; aspect-ratio: 1200 / 630; overflow: hidden; background: #eaf1ff; border-bottom: 1px solid var(--th-line); }
.th-post-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.th-post-card:hover .th-post-card__img img { transform: scale(1.03); }
.th-post-card::before { z-index: 1; }

@media (max-width: 960px) {
	html body .elementor .th-hero-grid--tool .th-hero-media { display: none; }
	html body .elementor .th-hero-media img { max-width: 440px; margin: 0 auto; }
}
@media (max-width: 767px) {
	.th-article > figure.th-article__cover { margin: -24px -20px 24px; border-radius: 14px 14px 0 0; }
	html body .th-steps ol li { padding: 54px 16px 16px; }
}
.th-article figure.wp-block-image figcaption { padding: 0; background: none; border: 0; }
html body .elementor .th-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 40px; align-items: center; }
html body .elementor .th-hero-grid > * { min-width: 0; }
@media (max-width: 960px) { html body .elementor .th-hero-grid { grid-template-columns: 1fr; gap: 24px; } }
html body .elementor .th-aside-card { position: relative; transition: border-color .2s, box-shadow .2s; }
html body .elementor .th-aside-card:hover { border-color: #bfd4fb; box-shadow: var(--th-shadow-md); }
html body .elementor .th-aside-card .th-h3 a { color: var(--th-ink); text-decoration: none; }
html body .elementor .th-aside-card .th-h3 a::after { content: ""; position: absolute; inset: 0; }
html body .elementor .th-aside-card .th-h3 a:hover { color: var(--th-brand); }
/* final audit: comfortable touch targets in "On this page" lists */
.th-toc__list a, .th-aside-tools a { padding-top: 9px; padding-bottom: 9px; min-height: 40px; display: flex; align-items: center; }

/* ============================================================ design layer v6: futuristic, interactive */
:root {
	--th-night: #070b1f;
	--th-aurora: radial-gradient(900px 520px at 88% -8%, rgba(59, 130, 246, .38), transparent 60%),
		radial-gradient(760px 460px at -5% 105%, rgba(139, 92, 246, .32), transparent 60%),
		radial-gradient(520px 320px at 55% 60%, rgba(34, 211, 238, .10), transparent 70%), #070b1f;
	--th-grad: linear-gradient(90deg, #2563eb, #7c3aed);
}

/* ---------- dark aurora header bands (breadcrumb bar + Elementor hero + blog bands) */
.th-crumbbar { background: var(--th-night); padding-top: 18px; }
.th-crumbbar .th-breadcrumbs a, .th-band .th-breadcrumbs a { color: #94a3b8; }
.th-crumbbar .th-breadcrumbs [aria-current], .th-band .th-breadcrumbs [aria-current] { color: #e2e8f0; }
.th-crumbbar .th-breadcrumbs li + li::before, .th-band .th-breadcrumbs li + li::before { color: #475569; }
html body .elementor .th-sec-hero, .th-band { position: relative; overflow: hidden; isolation: isolate; background: var(--th-aurora); border-bottom: 0; color: #cbd5e1; }
html body .elementor .th-sec-hero::before, .th-band::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: linear-gradient(rgba(148, 163, 184, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .08) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%);
}
html body .elementor .th-sec-hero::after, .th-band::after {
	content: ""; position: absolute; z-index: -1; pointer-events: none; width: 620px; height: 620px; left: 35%; top: -260px; border-radius: 50%;
	background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 65%); filter: blur(10px); animation: th-drift 16s ease-in-out infinite alternate;
}
@keyframes th-drift { from { transform: translate(-12%, 0) scale(1); } to { transform: translate(18%, 12%) scale(1.15); } }
html body .elementor .th-sec-hero .th-h1, .th-band__title {
	color: #fff; background: linear-gradient(92deg, #ffffff 0%, #ffffff 55%, #a5b4fc 85%, #67e8f9 100%);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
html body .elementor .th-sec-hero .th-lead, .th-band__lead { color: #cbd5e1; }
html body .elementor .th-sec-hero .th-eyebrow, .th-band__eyebrow, .th-band__eyebrow a { color: #67e8f9; }
html body .elementor .th-sec-hero .th-small { color: #94a3b8; }
html body .elementor .th-sec-hero .th-h2, html body .elementor .th-sec-hero .th-h3 { color: #fff; }
.th-band .th-byline { color: #94a3b8; }
.th-band .th-byline strong { color: #e2e8f0; }
.th-band__chips a { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #e2e8f0; }
.th-band__chips a:hover { border-color: #67e8f9; color: #fff; }
.th-band__chips span { background: rgba(103, 232, 249, .15); color: #67e8f9; }
html body .th-sec-hero .th-badges ul li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #e2e8f0; box-shadow: none; }
html body .th-sec-hero .th-badges ul li::before {
	background-color: rgba(103, 232, 249, .18);
	background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 fill=%22none%22 stroke=%22%2367e8f9%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 10.5l3.2 3.2L15 7%22/%3E%3C/svg%3E");
}
html body .elementor .th-sec-hero .th-hero-img { filter: drop-shadow(0 30px 60px rgba(2, 6, 23, .55)); }
html body .elementor .th-sec-hero .th-btn-sec { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .22); }
html body .elementor .th-sec-hero .th-btn-sec:hover { border-color: #67e8f9; color: #fff; }

/* ---------- buttons: gradient with a light sweep */
html body .elementor .th-btn-pri, .th-btn-link, .th-toc__cta, .th-quick__cta {
	background: var(--th-grad); position: relative; overflow: hidden; border: 0;
	box-shadow: 0 10px 30px -10px rgba(79, 70, 229, .7);
}
html body .elementor .th-btn-pri::after, .th-btn-link::after, .th-quick__cta::after {
	content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-20deg);
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transition: left .55s ease;
}
html body .elementor .th-btn-pri:hover::after, .th-btn-link:hover::after, .th-quick__cta:hover::after { left: 120%; }
html body .elementor .th-btn-pri:hover, .th-btn-link:hover { background: var(--th-grad); filter: brightness(1.08); }

/* ---------- header and reading progress */
.th-header { transition: box-shadow .25s, background .25s; }
.th-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .45); }
.th-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
	background: linear-gradient(90deg, #22d3ee, #6366f1, #a855f7); box-shadow: 0 0 10px rgba(99, 102, 241, .7); }
body.admin-bar .th-progress { top: 32px; }

/* ---------- cursor glow on cards */
.th-card, .th-post-card { --mx: 50%; --my: -200px; }
.th-card::after, html body .elementor .th-card-box::after, .th-post-card::after, html body .elementor .th-world-card::after, html body .elementor .th-stat::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
	background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -200px), rgba(99, 102, 241, .13), transparent 45%);
}
html body .elementor .th-world-card::after { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -200px), rgba(103, 232, 249, .16), transparent 45%); }
.th-card:hover::after, html body .elementor .th-card-box:hover::after, .th-post-card:hover::after,
html body .elementor .th-world-card:hover::after, html body .elementor .th-stat:hover::after { opacity: 1; }
html body .elementor .th-world-card, html body .elementor .th-stat { position: relative; }
.th-card:hover { border-color: #a5b4fc; }
.th-card__icon { transition: box-shadow .25s, transform .25s; }
.th-card:hover .th-card__icon { transform: translateY(-2px) rotate(-4deg); box-shadow: 0 0 0 6px rgba(99, 102, 241, .10); }

/* ---------- dark worldwide band gets the same aurora */
html body .elementor .th-sec-band { background: var(--th-aurora); position: relative; overflow: hidden; }
html body .elementor .th-world-card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
html body .elementor .th-sec-band .th-world-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
@media (max-width: 960px) { html body .elementor .th-sec-band .th-world-grid { grid-template-columns: 1fr; } }

/* ---------- stats strip */
html body .elementor .th-sec-stats { padding-top: 0; padding-bottom: 8px; background: transparent; }
html body .elementor .th-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: -46px; position: relative; z-index: 2; }
html body .elementor .th-stat { background: #fff; border: 1px solid var(--th-line); border-radius: 18px; padding: 22px 24px; box-shadow: var(--th-shadow-md); overflow: hidden; }
html body .elementor .th-stat .th-stat-num { margin: 0; font-size: 42px; font-weight: 800; letter-spacing: -.03em; line-height: 1;
	background: var(--th-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
html body .elementor .th-stat .th-p { margin-top: 6px; font-size: 15px; color: var(--th-text); }
@media (max-width: 960px) { html body .elementor .th-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -30px; } }

/* ---------- home hero with the quick rate check */
html body .elementor .th-sec-hero:has(.th-quick) { padding-bottom: 96px; }

/* ---------- scroll reveal */
.th-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.th-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.th-reveal { opacity: 1; transform: none; }
	html body .elementor .th-sec-hero::after, .th-band::after { animation: none; }
}

/* ============================================================ design layer v7: light, modern hero (replaces the dark aurora) */
:root {
	--th-hero-bg: radial-gradient(900px 520px at 88% -10%, rgba(99, 102, 241, .20), transparent 60%),
		radial-gradient(760px 460px at -6% 108%, rgba(34, 211, 238, .18), transparent 60%),
		radial-gradient(620px 380px at 55% 45%, rgba(168, 85, 247, .08), transparent 70%),
		linear-gradient(180deg, #f8faff 0%, #eef2ff 100%);
}
.th-crumbbar { background: #f8faff; }
.th-crumbbar .th-breadcrumbs a, .th-band .th-breadcrumbs a { color: #64748b; }
.th-crumbbar .th-breadcrumbs [aria-current], .th-band .th-breadcrumbs [aria-current] { color: #0f172a; }
.th-crumbbar .th-breadcrumbs li + li::before, .th-band .th-breadcrumbs li + li::before { color: #cbd5e1; }

html body .elementor .th-sec-hero, .th-band { background: var(--th-hero-bg); color: var(--th-text); border-bottom: 1px solid #e0e7ff; }
html body .elementor .th-sec-hero::before, .th-band::before {
	background-image: linear-gradient(rgba(99, 102, 241, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 102, 241, .07) 1px, transparent 1px);
}
html body .elementor .th-sec-hero::after, .th-band::after { background: radial-gradient(circle, rgba(99, 102, 241, .16), transparent 65%); }

/* headline: deep ink with a gradient accent toward the end */
html body .elementor .th-sec-hero .th-h1, .th-band__title {
	color: #0b1220; background: linear-gradient(92deg, #0b1220 0%, #0b1220 52%, #4338ca 80%, #0891b2 100%);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
html body .elementor .th-sec-hero .th-lead, .th-band__lead { color: #334155; }
html body .elementor .th-sec-hero .th-small { color: #64748b; }
html body .elementor .th-sec-hero .th-h2, html body .elementor .th-sec-hero .th-h3 { color: #0b1220; }

/* eyebrow as a trendy pill */
html body .elementor .th-sec-hero .th-eyebrow, .th-band__eyebrow {
	align-self: flex-start; display: inline-flex; width: fit-content; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
	background: rgba(99, 102, 241, .10); border: 1px solid rgba(99, 102, 241, .25); color: #4338ca; font-size: 12.5px; letter-spacing: .08em;
}
html body .elementor .th-sec-hero .th-eyebrow::before, .th-band__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #22d3ee, #6366f1); box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }
.th-band__eyebrow a { color: #4338ca; }

/* badges, chips, byline on light */
html body .th-sec-hero .th-badges ul li { background: rgba(255, 255, 255, .75); border-color: rgba(99, 102, 241, .20); color: #1e1b4b; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
html body .th-sec-hero .th-badges ul li::before {
	background-color: rgba(99, 102, 241, .12);
	background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 fill=%22none%22 stroke=%22%234338ca%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 10.5l3.2 3.2L15 7%22/%3E%3C/svg%3E");
}
.th-band .th-byline { color: #64748b; }
.th-band .th-byline strong { color: #0f172a; }
.th-band__chips a { background: rgba(255, 255, 255, .8); border-color: rgba(99, 102, 241, .2); color: #0f172a; }
.th-band__chips a:hover { border-color: #6366f1; color: #4338ca; }
.th-band__chips span { background: rgba(99, 102, 241, .12); color: #4338ca; }
html body .elementor .th-sec-hero .th-hero-img { filter: drop-shadow(0 30px 50px rgba(79, 70, 229, .18)); }
html body .elementor .th-sec-hero .th-btn-sec { background: #fff; color: #0f172a; border-color: #c7d2fe; }
html body .elementor .th-sec-hero .th-btn-sec:hover { border-color: #6366f1; color: #4338ca; }

/* worldwide section: light tinted band instead of dark */
html body .elementor .th-sec-band { background: var(--th-hero-bg); border-top: 1px solid #e0e7ff; border-bottom: 1px solid #e0e7ff; }
html body .elementor .th-sec-band .th-h2, html body .elementor .th-sec-band .th-h3 { color: #0b1220; }
html body .elementor .th-sec-band .th-p, html body .elementor .th-sec-band .th-lead { color: #334155; }
html body .elementor .th-sec-band .th-eyebrow { color: #4338ca; }
html body .elementor .th-sec-band .th-p a { color: #4338ca; }
html body .elementor .th-world-card { background: rgba(255, 255, 255, .8); border-color: rgba(99, 102, 241, .18); box-shadow: 0 18px 40px -24px rgba(79, 70, 229, .35); }
html body .elementor .th-world-card:hover { border-color: #818cf8; }
html body .elementor .th-world-card::after { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -200px), rgba(99, 102, 241, .12), transparent 45%); }
.th-sec-band .th-list ul li::before { background-color: rgba(99, 102, 241, .12); }

/* stats sit on the light hero edge */
html body .elementor .th-stat { box-shadow: 0 20px 44px -24px rgba(79, 70, 229, .35), 0 1px 3px rgba(15, 23, 42, .06); }

/* ============================================================ design layer v8: fonts, seamless header, stats with icons, ad spaces */
:root {
	--th-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--th-font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html body, html body .elementor-kit-7, html body .elementor-kit-7 p, html body .elementor-kit-7 button, html body .elementor-kit-7 input,
html body .elementor-kit-7 select, html body .elementor-kit-7 textarea, html body .th-tool, html body .th-directory { font-family: var(--th-font); }
html body h1, html body h2, html body h3, html body .elementor-kit-7 h1, html body .elementor-kit-7 h2, html body .elementor-kit-7 h3,
html body .elementor .th-h1, html body .elementor .th-h2, html body .elementor .th-h3, html body .th-directory .th-card__title,
html body .th-post-card__title, .th-band__title, .th-quick__title, .th-statbar__num, .th-result__value, .th-quick__value, .th-more__title,
html body .elementor .th-faq-q { font-family: var(--th-font-head); }
html body .elementor .th-h1, .th-band__title { letter-spacing: -.03em; }
body { font-feature-settings: "cv11", "ss01"; }
.th-result__value, .th-quick__value, .th-statbar__num, .th-breakdown td, .th-table td { font-variant-numeric: tabular-nums; }

/* ---------- one continuous header: breadcrumbs sit on top of the hero, so there is no colour seam */
.th-main { position: relative; }
.th-crumbbar { position: absolute; left: 0; right: 0; top: 0; z-index: 3; background: transparent; padding-top: 18px; }
.th-crumbbar + .elementor .th-sec-hero { padding-top: 70px; }
@media (max-width: 767px) { .th-crumbbar + .elementor .th-sec-hero { padding-top: 58px; } }

/* headline in one solid colour (no mid-word colour shift) */
html body .elementor .th-sec-hero .th-h1, .th-band__title { background: none; -webkit-text-fill-color: currentColor; color: #0b1220; }

/* ---------- stats bar with icons (home, after the hero) */
html body .elementor .th-sec-stats { padding-top: 0; padding-bottom: 10px; }
.th-statbar { list-style: none; margin: -54px 0 0; padding: 10px; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
	background: rgba(255, 255, 255, .92); border: 1px solid #e0e7ff; border-radius: 22px; box-shadow: 0 26px 60px -30px rgba(79, 70, 229, .45), 0 2px 6px rgba(15, 23, 42, .05); backdrop-filter: blur(8px); }
.th-statbar__item { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; transition: background .2s; --mx: 50%; --my: -200px; overflow: hidden; }
.th-statbar__item:hover { background: #f8faff; }
.th-statbar__item + .th-statbar__item::before { content: ""; position: absolute; left: -5px; top: 22%; bottom: 22%; width: 1px; background: #e2e8f0; }
.th-statbar__icon { flex-shrink: 0; width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff;
	background: linear-gradient(135deg, #3b82f6, #6366f1); box-shadow: 0 10px 22px -10px rgba(79, 70, 229, .8); }
.th-statbar__item--1 .th-statbar__icon { background: linear-gradient(135deg, #06b6d4, #3b82f6); box-shadow: 0 10px 22px -10px rgba(6, 182, 212, .8); }
.th-statbar__item--2 .th-statbar__icon { background: linear-gradient(135deg, #8b5cf6, #d946ef); box-shadow: 0 10px 22px -10px rgba(139, 92, 246, .8); }
.th-statbar__item--3 .th-statbar__icon { background: linear-gradient(135deg, #10b981, #06b6d4); box-shadow: 0 10px 22px -10px rgba(16, 185, 129, .8); }
.th-statbar__icon .th-icon { width: 26px; height: 26px; stroke-width: 2; }
.th-statbar__text { display: flex; flex-direction: column; min-width: 0; }
.th-statbar__num { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: #0b1220; }
.th-statbar__label { margin-top: 4px; font-size: 15px; font-weight: 700; color: #0f172a; }
.th-statbar__sub { font-size: 13px; color: #64748b; line-height: 1.35; }
@media (max-width: 1024px) { .th-statbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .th-statbar__item:nth-child(3)::before { display: none; } }
@media (max-width: 520px) { .th-statbar { grid-template-columns: 1fr; margin-top: -40px; } .th-statbar__item::before { display: none; } }

/* ---------- ad spaces (max two per page) */
html body .elementor .th-sec-ad { padding-top: 8px; padding-bottom: 8px; }
.th-ad { margin: 28px auto; max-width: 970px; width: 100%; text-align: center; clear: both; }
.th-ad__label { margin: 0 0 6px !important; font-size: 11px !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8 !important; }
.th-ad__box { min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 14px;
	border: 1px dashed #cbd5e1; background: repeating-linear-gradient(135deg, #f8fafc 0 12px, #f1f5f9 12px 24px); color: #64748b; }
.th-ad__brand { font-size: 15px; font-weight: 700; color: #475569; }
.th-ad__note { font-size: 12px; color: #94a3b8; }
.th-article .th-ad { margin: 2em 0; }
.th-article .th-ad .th-ad__box { min-height: 250px; }
.th-listing .th-ad { margin-top: 40px; }
@media (min-width: 768px) { .th-ad__box { min-height: 110px; } }

/* ============================================================ v9: header & footer options (Appearance → Customize → Header & Footer) */
:root { --th-logo-h: 40px; }
.th-logo img { height: var(--th-logo-h); width: auto; }
@media (max-width: 600px) { .th-logo img { height: min(var(--th-logo-h), 34px); } }
body.th-header-static .th-header { position: relative; }
body.th-header-glass .th-header { background: rgba(255, 255, 255, .72); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.th-social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; }
.th-social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #e2e8f0; transition: background .2s, border-color .2s, transform .2s; }
.th-social a:hover { background: linear-gradient(135deg, #2563eb, #7c3aed); border-color: transparent; color: #fff; transform: translateY(-2px); text-decoration: none; }
body.th-footer-light .th-footer { background: #f8faff; color: #475569; border-top: 1px solid #e0e7ff; }
body.th-footer-light .th-footer a { color: #1e293b; }
body.th-footer-light .th-footer a:hover { color: #4338ca; }
body.th-footer-light .th-footer__brand p, body.th-footer-light .th-footer__title, body.th-footer-light .th-footer__bottom { color: #64748b; }
body.th-footer-light .th-footer__bottom { border-top-color: #e2e8f0; }
body.th-footer-light .th-footer__brand img { background: transparent; padding: 0; }
body.th-footer-light .th-social a { background: #fff; border-color: #e2e8f0; color: #334155; }

/* ============================================================ v10: stat cards (home, below the hero) */
.th-statbar { list-style: none; margin: -64px 0 0; padding: 0; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
	background: none; border: 0; box-shadow: none; backdrop-filter: none; border-radius: 0; }
.th-statbar__item { --c1: #3b82f6; --c2: #6366f1; --tint: rgba(99, 102, 241, .10);
	position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon num" "label label" "sub sub";
	align-items: center; column-gap: 14px; row-gap: 2px; padding: 22px 22px 20px; border-radius: 20px;
	background: #fff; border: 1px solid #e6eaf5; box-shadow: 0 22px 50px -30px rgba(30, 41, 99, .45), 0 2px 6px rgba(15, 23, 42, .04);
	transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, border-color .25s; }
.th-statbar__item::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, var(--tint), transparent 70%); pointer-events: none; }
.th-statbar__item + .th-statbar__item::before { display: none; }
.th-statbar__item:hover { transform: translateY(-4px); border-color: #c7d2fe; box-shadow: 0 30px 60px -30px rgba(30, 41, 99, .55), 0 2px 6px rgba(15, 23, 42, .04); background: #fff; }
.th-statbar__item--1 { --c1: #06b6d4; --c2: #3b82f6; --tint: rgba(6, 182, 212, .12); }
.th-statbar__item--2 { --c1: #8b5cf6; --c2: #d946ef; --tint: rgba(168, 85, 247, .12); }
.th-statbar__item--3 { --c1: #10b981; --c2: #06b6d4; --tint: rgba(16, 185, 129, .12); }
.th-statbar__icon { grid-area: icon; width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #fff;
	background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 12px 24px -12px var(--c2); }
.th-statbar__item--1 .th-statbar__icon, .th-statbar__item--2 .th-statbar__icon, .th-statbar__item--3 .th-statbar__icon { background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 12px 24px -12px var(--c2); }
.th-statbar__icon .th-icon { width: 24px; height: 24px; stroke-width: 2; }
.th-statbar__num { grid-area: num; font-family: var(--th-font-head); font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.035em;
	background: linear-gradient(90deg, #0b1220, var(--c2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.th-statbar__label { grid-area: label; margin-top: 14px; font-size: 16px; font-weight: 700; color: #0b1220; }
.th-statbar__sub { grid-area: sub; font-size: 14px; color: #64748b; line-height: 1.45; }
@media (max-width: 1024px) { .th-statbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: -48px; } }
@media (max-width: 480px) { .th-statbar { gap: 12px; } .th-statbar__item { padding: 18px; } .th-statbar__num { font-size: 32px; } .th-statbar__icon { width: 44px; height: 44px; } }

/* ============================================================ v11: balanced card grids, step timeline */
/* five tool cards fill two full rows (3 + 2) instead of leaving an empty slot */
@media (min-width: 1025px) {
	.th-cards:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.th-cards:has(> li:nth-child(5):last-child) > li { grid-column: span 2; }
	.th-cards:has(> li:nth-child(5):last-child) > li:nth-child(4), .th-cards:has(> li:nth-child(5):last-child) > li:nth-child(5) { grid-column: span 3; }
}

/* numbered steps as a vertical timeline (reads in order on every screen size) */
html body .th-steps ol { display: flex; flex-direction: column; gap: 0; margin: 6px 0 10px; counter-reset: th-step; }
html body .th-steps ol li { position: relative; margin: 0; padding: 4px 0 22px 64px; background: none; border: 0; box-shadow: none; border-radius: 0; min-height: 0; font-size: 16px; line-height: 1.6; }
html body .th-steps ol li::before { left: 0; top: 0; width: 42px; height: 42px; border-radius: 13px; font-size: 16px; font-family: var(--th-font-head);
	background: linear-gradient(135deg, #3b82f6, #7c3aed); box-shadow: 0 10px 22px -12px rgba(79, 70, 229, .8); }
html body .th-steps ol li::after { content: ""; position: absolute; left: 20px; top: 48px; bottom: 4px; width: 2px; border-radius: 2px; background: linear-gradient(#c7d2fe, #e0e7ff); }
html body .th-steps ol li:last-child { padding-bottom: 4px; }
html body .th-steps ol li:last-child::after { display: none; }
html body .th-steps ol li strong { display: block; margin-bottom: 2px; font-family: var(--th-font-head); font-size: 17px; color: #0b1220; }
.th-sec-white .th-steps ol li { background: none; }
/* guide cards with cover images (home) */
html body .elementor .th-guide-card { padding: 0 0 22px; gap: 10px; }
html body .elementor .th-guide-card::before { z-index: 2; }
html body .elementor .th-guide-card img.th-guide-img, html body .elementor .th-guide-card .th-guide-img img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 1px solid #e6eaf5; transition: transform .35s; }
html body .elementor .th-guide-card:hover img.th-guide-img { transform: scale(1.03); }
html body .elementor .th-guide-card > .th-h3, html body .elementor .th-guide-card > .th-p { padding: 0 22px; }
html body .elementor .th-guide-card > .th-h3 { margin-top: 8px !important; }
/* audit fix: long URLs used as link text wrap on narrow phones */
html body .elementor .th-p a, .th-article a, .th-prose a { overflow-wrap: anywhere; }

/* ============================================================ v12: feature cards (home “Why freelancers…”) */
.th-features { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.th-feature { --c1: #3b82f6; --c2: #6366f1; --tint: #eef2ff; --mx: 50%; --my: -200px;
	position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 22px; border-radius: 20px;
	background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--tint) 160%); border: 1px solid #e6eaf5;
	box-shadow: 0 22px 50px -32px rgba(30, 41, 99, .45), 0 2px 6px rgba(15, 23, 42, .04);
	transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, border-color .25s; }
.th-feature::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); opacity: .9; }
.th-feature::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
	background: radial-gradient(300px circle at var(--mx) var(--my), color-mix(in srgb, var(--c2) 14%, transparent), transparent 45%); }
.th-feature:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c2) 35%, #e6eaf5); box-shadow: 0 32px 60px -30px color-mix(in srgb, var(--c2) 55%, transparent), 0 2px 6px rgba(15, 23, 42, .04); }
.th-feature:hover::after { opacity: 1; }
.th-feature--1 { --c1: #10b981; --c2: #0891b2; --tint: #ecfeff; }
.th-feature--2 { --c1: #8b5cf6; --c2: #d946ef; --tint: #faf5ff; }
.th-feature--3 { --c1: #f59e0b; --c2: #f97316; --tint: #fff7ed; }
.th-feature__num { position: absolute; right: 18px; top: 14px; font-family: var(--th-font-head); font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.04em;
	color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--c2) 22%, transparent); }
.th-feature__icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 6px;
	background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 12px 24px -12px var(--c2); transition: transform .25s; }
.th-feature:hover .th-feature__icon { transform: rotate(-6deg) scale(1.05); }
.th-feature__icon .th-icon { width: 24px; height: 24px; stroke-width: 2; }
html body .th-feature__title { margin: 0; font-family: var(--th-font-head); font-size: 18px; font-weight: 800; letter-spacing: -.015em; color: #0b1220; line-height: 1.3; }
.th-feature__title a { color: inherit; text-decoration: none; }
.th-feature__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.th-feature__title a:hover { color: var(--c2); }
.th-feature__text { margin: 0; flex: 1; font-size: 15px; line-height: 1.6; color: #475569; }
.th-feature__chip { align-self: flex-start; margin-top: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .01em;
	color: var(--c2); background: color-mix(in srgb, var(--c2) 10%, #fff); border: 1px solid color-mix(in srgb, var(--c2) 22%, #fff); }
@media (max-width: 1024px) { .th-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 560px) { .th-features { grid-template-columns: 1fr; } .th-feature { padding: 22px 20px 20px; } }

/* ============================================================ v13: Calculators Corner logo (inline SVG mark + wordmark) */
.th-logo { gap: 10px; text-decoration: none !important; }
.th-logo__mark { display: block; flex-shrink: 0; width: var(--th-logo-h, 40px); height: var(--th-logo-h, 40px); filter: drop-shadow(0 6px 10px rgba(79, 70, 229, .28)); transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.th-logo:hover .th-logo__mark { transform: rotate(-6deg) scale(1.04); }
.th-logo__word { font-family: var(--th-font-head, "Plus Jakarta Sans", sans-serif); font-weight: 800; font-size: calc(var(--th-logo-h, 40px) * .5); letter-spacing: -.025em; line-height: 1; white-space: nowrap; color: #0b1220; }
.th-logo__b { background: linear-gradient(90deg, #4f46e5, #0891b2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.th-footer .th-logo__word { color: #fff; }
.th-footer .th-logo__b { background: linear-gradient(90deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; }
body.th-footer-light .th-footer .th-logo__word { color: #0b1220; }
body.th-footer-light .th-footer .th-logo__b { background: linear-gradient(90deg, #4f46e5, #0891b2); -webkit-background-clip: text; background-clip: text; }
@media (max-width: 600px) { .th-logo__mark { width: min(var(--th-logo-h, 40px), 34px); height: min(var(--th-logo-h, 40px), 34px); } .th-logo__word { font-size: 17px; } }
@media (max-width: 360px) { .th-logo__word { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .th-logo__mark { transition: none; } }

/* v13: 12-calculator Tools dropdown (two columns on desktop) and a scrollable mobile menu */
@media (min-width: 961px) {
	.th-nav__sub.is-open > ul { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 2px 6px; width: min(640px, 92vw); }
	.th-nav__sub > ul > li:last-child { grid-column: 1 / -1; border-top: 1px solid var(--th-line); margin-top: 4px; padding-top: 4px; }
}
@media (max-width: 960px) { .th-header.is-open .th-nav { max-height: calc(100vh - 72px); overflow-y: auto; overscroll-behavior: contain; } }
/* v13: byline avatar uses the brand mark */
.th-byline__mark--logo { background: none !important; box-shadow: none !important; padding: 0 !important; overflow: visible; }
.th-byline__mark--logo .th-logo__mark { width: 100%; height: 100%; filter: none; }
.th-footer__bottom .th-consent-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.th-footer__bottom .th-consent-link:hover { opacity: 1; }

/* blog index section heading (v13.2) */
.th-listing__title{font-family:"Plus Jakarta Sans",Inter,system-ui,sans-serif;font-weight:800;font-size:clamp(22px,2.4vw,28px);line-height:1.25;letter-spacing:-.02em;color:#0f172a;margin:0 0 20px}
.th-listing__note{margin:28px 0 0;color:#475569;font-size:15px;line-height:1.6}

/* v13.2: breathing room under the header on every hero (+18px), and a spaced note under the blog grid */
html body .th-band { padding-top: 34px; }
html body .e-con.th-sec-hero > :first-child,
html body .th-sec-hero > :first-child { margin-top: 18px !important; }
html body .th-listing .th-listing__note { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid #e5e7eb; max-width: 760px; color: #475569; font-size: 15px; line-height: 1.6; }
html body .th-listing .th-listing__title { margin: 0 0 22px; }

/* ===== v13.5 (2 Dec 2026) ===== */
/* Calculators menu: full-width panel with one column per category (desktop) */
.th-header__bar { position: relative; }
.th-nav__group > ul { list-style: none; margin: 0; padding: 0; }
.th-nav__group-title { display: block; font-family: var(--th-font-head); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--th-brand); text-decoration: none; }
a.th-nav__group-title:hover { color: var(--th-ink); }
@media (min-width: 961px) {
	.th-nav__sub--mega { position: static; }
	html body .th-nav__sub--mega.is-open > ul {
		display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 22px;
		position: absolute; left: var(--th-gutter); right: var(--th-gutter); top: calc(100% + 1px); width: auto; min-width: 0;
		padding: 16px 22px 8px; border-radius: 0 0 18px 18px; border-top: 0;
		max-height: calc(100vh - var(--th-header-h) - 24px); overflow-y: auto; overscroll-behavior: contain;
	}
	.th-nav__sub--mega .th-nav__group-title { padding: 4px 12px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--th-line); }
	.th-nav__sub--mega .th-nav__group > ul a { display: flex; width: 100%; padding: 6px 12px; border-radius: 10px; line-height: 1.35; }
	.th-nav__sub--mega .th-nav__group > ul small { display: block; font-size: 12.5px; color: var(--th-muted); font-weight: 400; margin-top: 1px; }
	html body .th-nav__sub--mega > ul > li.th-nav__all { grid-column: 1 / -1; border-top: 1px solid var(--th-line); margin-top: 4px; padding-top: 4px; }
	.th-nav__sub--mega > ul > li.th-nav__all a { display: inline-flex; width: auto; font-weight: 600; color: var(--th-brand); }
}
/* Mobile menu: category headings with their calculators */
@media (max-width: 960px) {
	html body .th-header.is-open .th-nav__sub--mega > ul { padding: 0; }
	.th-header.is-open .th-nav__group { padding: 0; }
	.th-header.is-open .th-nav__group-title { padding: 16px 12px 6px; }
	.th-header.is-open .th-nav__group > ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
	.th-header.is-open .th-nav__group > ul a { display: flex; width: 100%; padding: 9px 12px; font-size: 15px; }
	.th-header.is-open .th-nav__group small { display: none; }
	.th-header.is-open .th-nav__all { border-top: 1px solid var(--th-line); margin-top: 10px; padding-top: 6px; }
	.th-header.is-open .th-nav__all a { font-weight: 600; color: var(--th-brand); }
}
@media (max-width: 480px) { .th-header.is-open .th-nav__group > ul { grid-template-columns: 1fr; } }

/* Reading progress sits on the header's bottom edge (inside the sticky header), so it never covers the logo */
.th-header .th-progress { position: absolute; top: auto; bottom: -1px; left: 0; right: 0; }
body.admin-bar .th-header .th-progress { top: auto; }

/* FAQ: the accordion's empty icon box took 200px and squeezed questions on phones; the theme draws the +/− itself */
html body .elementor .th-faq-head > .e-accordion-item-icon-base { display: none; }
html body .elementor .th-faq-head > :first-child { flex: 1 1 auto; min-width: 0; }
html body .elementor .th-faq-head { gap: 16px; justify-content: space-between; }
/* Logged-in admins: the sticky header stops below the WordPress toolbar instead of sliding under it */
body.admin-bar .th-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .th-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .th-header { top: 0; } } /* the toolbar scrolls away on small phones */

/* v13.8: footer with a wide two-column Calculators list, and a menu button that turns into a close (×) icon */
.th-footer__grid { grid-template-columns: 1.2fr 2.4fr 1fr 0.9fr; column-gap: 40px; }
.th-footer__col--footer1 ul { display: block; columns: 2; column-gap: 32px; }
.th-footer__col--footer1 li { break-inside: avoid; margin: 0 0 9px; }
.th-footer__col ul a { display: inline-block; line-height: 1.4; }
@media (max-width: 960px) {
	.th-footer__grid { grid-template-columns: 1fr 1fr; }
	.th-footer__col--footer1 { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.th-footer__grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
	.th-footer__brand, .th-footer__col--footer1 { grid-column: 1 / -1; }
}
@media (max-width: 360px) { .th-footer__col--footer1 ul { columns: 1; } }

.th-menu-btn span, .th-menu-btn span::before, .th-menu-btn span::after { transition: transform .22s ease, top .22s ease, background-color .15s ease; }
.th-menu-btn[aria-expanded="true"] span { background: transparent; }
.th-menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.th-menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.th-menu-btn[aria-expanded="true"] { border-color: var(--th-brand); background: var(--th-soft); }
@media (prefers-reduced-motion: reduce) { .th-menu-btn span, .th-menu-btn span::before, .th-menu-btn span::after { transition: none; } }

/* v13.9: footer by category. Brand | Pay & salary | Tax & VAT | Pricing + Time (stacked) | Company + Legal (stacked) */
html body .th-footer__grid { grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(0, 1fr)); column-gap: 36px; row-gap: 36px; padding: 60px 0 44px; }
.th-footer__col ul { display: grid; columns: auto; gap: 10px; }
.th-footer__col li { margin: 0; break-inside: auto; }
.th-footer__block + .th-footer__block { margin-top: 30px; }
.th-footer__title { color: #e2e8f0; letter-spacing: .08em; font-size: 12.5px; margin-bottom: 14px; }
.th-footer__block--cat .th-footer__title { color: #a5b4fc; }
.th-footer__col ul a { color: #cbd5e1; font-size: 14.5px; }
.th-footer__col ul a:hover { color: #fff; }
.th-footer__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(165, 180, 252, .35); background: rgba(99, 102, 241, .12); color: #e0e7ff !important; font-weight: 600; font-size: 14px; text-decoration: none !important; transition: background .15s, border-color .15s; }
.th-footer__all:hover { background: rgba(99, 102, 241, .25); border-color: rgba(165, 180, 252, .7); }
body.th-footer-light .th-footer__title, body.th-footer-light .th-footer__block--cat .th-footer__title { color: #4338ca; }
body.th-footer-light .th-footer__col ul a { color: #334155; }
body.th-footer-light .th-footer__all { color: #3730a3 !important; background: #eef2ff; border-color: #c7d2fe; }
@media (max-width: 1100px) {
	html body .th-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	html body .th-footer__brand { grid-column: 1 / -1; }
	.th-footer__brand p { max-width: 520px; }
}
@media (max-width: 700px) {
	html body .th-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; padding: 44px 0 32px; }
}
/* v13.10: footer links use full calculator names, so the category columns get more room */
html body .th-footer__grid { grid-template-columns: minmax(200px, 1.05fr) repeat(3, minmax(0, 1.3fr)) minmax(0, 1fr); column-gap: 32px; }
.th-footer__col ul a { font-size: 14px; }
.th-footer__brand p { font-size: 14.5px; }
@media (max-width: 1100px) { html body .th-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { html body .th-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html body .th-footer__grid { grid-template-columns: minmax(235px, 1.1fr) repeat(3, minmax(0, 1.3fr)) minmax(165px, 1fr); column-gap: 30px; }
.th-footer__all { white-space: nowrap; }
@media (max-width: 1100px) { html body .th-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { html body .th-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
