/* Calculators Corner components: calculators, directory, breadcrumbs, contact form.
   Tokens are defined in the theme (style.css :root) with fallbacks here. */

.th-tool, .th-directory, .th-contact, .th-breadcrumbs, .th-notice {
	--_ink: var(--th-ink, #0f172a);
	--_text: var(--th-text, #334155);
	--_muted: var(--th-muted, #64748b);
	--_line: var(--th-line, #e2e8f0);
	--_surface: var(--th-surface, #ffffff);
	--_soft: var(--th-soft, #f1f5f9);
	--_brand: var(--th-brand, #1d4ed8);
	--_brand-ink: var(--th-brand-ink, #1e3a8a);
	--_brand-soft: var(--th-brand-soft, #eff6ff);
	--_ok: var(--th-ok, #047857);
	--_bad: var(--th-bad, #b91c1c);
	--_r: var(--th-radius, 12px);
	font-family: var(--th-font, Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	color: var(--_text);
	box-sizing: border-box;
}
.th-tool *, .th-directory *, .th-contact * { box-sizing: border-box; }
.th-icon { flex-shrink: 0; vertical-align: middle; }
.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; }

/* ---------------------------------------------------------------- calculator layout */
.th-tool {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	width: 100%;
}
.th-tool__form, .th-tool__results {
	min-width: 0; /* grid items must be allowed to shrink below their content's intrinsic width */
	background: var(--_surface);
	border: 1px solid var(--_line);
	border-radius: var(--_r);
	padding: 24px;
}
.th-tool__results {
	position: sticky;
	top: 88px;
	background: linear-gradient(180deg, var(--_brand-soft), var(--_surface) 140px);
	border-color: #c7d7fe;
}
.th-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.th-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.th-field--wide, .th-field--radio { grid-column: 1 / -1; }
.th-field__label { font-size: 14px; font-weight: 600; color: var(--_ink); line-height: 1.35; }
.th-field__hint { margin: 0; font-size: 13px; line-height: 1.45; color: var(--_muted); }
.th-field__error { margin: 0; font-size: 13px; color: var(--_bad); font-weight: 500; }
.th-field__error:empty { display: none; }

.th-input {
	display: flex; align-items: stretch;
	border: 1px solid #cbd5e1; border-radius: 8px; background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.th-input:focus-within { border-color: var(--_brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, .18); }
.is-invalid .th-input { border-color: var(--_bad); }
.th-input input, .th-input select, .th-input textarea {
	flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
	font: inherit; font-size: 16px; color: var(--_ink); padding: 10px 12px; line-height: 1.4;
	-moz-appearance: textfield;
}
.th-input input::-webkit-outer-spin-button, .th-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.th-input--select { position: relative; }
.th-input--select select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; }
.th-input--select::after {
	content: ""; position: absolute; right: 13px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
	border-right: 2px solid var(--_muted); border-bottom: 2px solid var(--_muted); transform: rotate(45deg); pointer-events: none;
}
.th-input__affix {
	display: flex; align-items: center; padding: 0 0 0 12px; color: var(--_muted); font-size: 15px; font-weight: 500; white-space: nowrap;
}
.th-input__affix--end { padding: 0 12px 0 0; }
.th-input input + .th-input__affix--end { padding-left: 4px; }
.th-input__affix + input { padding-left: 6px; }

.th-segment { border: 0; padding: 0; margin: 0; min-width: 0; }
.th-segment legend { padding: 0; margin-bottom: 6px; }
.th-segment__options { display: inline-flex; flex-wrap: wrap; background: var(--_soft); border: 1px solid var(--_line); border-radius: 10px; padding: 3px; gap: 3px; }
.th-segment input { position: absolute; opacity: 0; pointer-events: none; }
.th-segment label { padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--_muted); cursor: pointer; }
.th-segment input:checked + label { background: #fff; color: var(--_ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.th-segment input:focus-visible + label { outline: 2px solid var(--_brand); outline-offset: 2px; }
.th-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 500; color: var(--_ink); cursor: pointer; }
.th-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--_brand); }

.th-tool__formfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--_line); }
.th-tool__note { margin: 0; font-size: 13px; color: var(--_muted); flex: 1 1 220px; }

/* conditional fields */
.th-tool .th-when-net { display: none; }
.th-tool.is-net .th-when-net { display: revert; }
.th-tool .th-field.th-when-net { display: none; }
.th-tool.is-net .th-field.th-when-net { display: flex; }
.th-tool .th-mode { display: none; }
.th-tool[data-mode="markup"] .th-mode--markup, .th-tool[data-mode="margin"] .th-mode--margin, .th-tool[data-mode="price"] .th-mode--price { display: flex; }
.th-tool .th-only { display: none; }
.th-tool[data-country="US"] .th-only--US, .th-tool[data-country="UK"] .th-only--UK, .th-tool[data-country="CA"] .th-only--CA, .th-tool[data-country="AU"] .th-only--AU { display: flex; }

/* ---------------------------------------------------------------- results */
.th-result__label { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--_brand-ink); }
.th-result__value { margin: 0; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; font-weight: 700; color: var(--_ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.th-result__value--sm { font-size: clamp(24px, 3vw, 32px); }
.th-result__sub { margin: 8px 0 0; font-size: 15px; color: var(--_text); }
.th-result__sub strong { color: var(--_ink); }
.th-result__compare { margin: 16px 0 0; font-size: 14px; color: var(--_text); line-height: 1.5; }
.has-error .th-result__value { color: var(--_muted); }

.th-breakdown { width: 100%; margin: 20px 0 0; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.th-breakdown caption { text-align: left; font-weight: 600; color: var(--_ink); padding-bottom: 6px; font-size: 14px; }
.th-breakdown th { text-align: left; font-weight: 400; color: var(--_text); padding: 7px 8px 7px 0; border-top: 1px solid var(--_line); }
.th-breakdown td { text-align: right; color: var(--_ink); font-weight: 500; padding: 7px 0; border-top: 1px solid var(--_line); white-space: nowrap; }
.th-breakdown__total th, .th-breakdown__total td { font-weight: 700; color: var(--_ink); border-top-color: #cbd5e1; }
.th-breakdown__sub th { padding-left: 14px; color: var(--_muted); font-size: 13px; }
.th-breakdown__sub td { color: var(--_muted); font-size: 13px; font-weight: 400; }
.th-result__list { margin-top: 18px; }
.th-result__list ul { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; }
.th-result__list li { padding: 6px 0; border-top: 1px solid var(--_line); }
.th-result__list li span { color: var(--_muted); margin-right: 6px; }

.th-tool__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.th-tool__status { font-size: 13px; color: var(--_ok); font-weight: 600; }
.th-tool__noscript { grid-column: 1 / -1; padding: 12px 16px; background: #fff7ed; border-radius: 8px; }

/* ---------------------------------------------------------------- buttons */
.th-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 9px 16px; border-radius: 8px; border: 1px solid transparent;
	font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none;
	transition: background .15s, border-color .15s, color .15s;
}
.th-btn--primary { background: var(--_brand); color: #fff; }
.th-btn--primary:hover { background: var(--_brand-ink); }
.th-btn--secondary { background: #fff; color: var(--_ink); border-color: #cbd5e1; }
.th-btn--secondary:hover { border-color: var(--_brand); color: var(--_brand); }
.th-btn--ghost { background: transparent; color: var(--_muted); padding-left: 8px; padding-right: 8px; }
.th-btn--ghost:hover { color: var(--_ink); background: var(--_soft); }
.th-btn:focus-visible, .th-linkbtn:focus-visible, .th-chip:focus-visible, .th-person__remove:focus-visible { outline: 2px solid var(--_brand); outline-offset: 2px; }
.th-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--_brand); text-decoration: underline; cursor: pointer; }

/* ---------------------------------------------------------------- meeting planner */
.th-meeting { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.th-meeting input[type="date"] { min-width: 0; width: 100%; }
.th-people { display: flex; flex-direction: column; gap: 12px; }
.th-person { display: grid; grid-template-columns: minmax(0, 1fr) 120px 120px 36px; gap: 10px; align-items: end; padding-bottom: 12px; border-bottom: 1px solid var(--_line); }
.th-person__remove { width: 36px; height: 42px; border: 1px solid var(--_line); border-radius: 8px; background: #fff; color: var(--_muted); font-size: 20px; cursor: pointer; }
.th-person__remove:hover { color: var(--_bad); border-color: var(--_bad); }
.th-timeline { margin-top: 18px; overflow-x: auto; font-size: 12px; }
.th-tl__head, .th-tl__row { display: grid; grid-template-columns: 96px repeat(96, minmax(2px, 1fr)); align-items: center; min-width: 380px; }
.th-tl__head span { color: var(--_muted); white-space: nowrap; }
.th-tl__row { margin-top: 4px; }
.th-tl__name { font-weight: 600; color: var(--_ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.th-tl__name small { display: block; font-weight: 400; color: var(--_muted); }
.th-tl__cell { height: 22px; background: #e2e8f0; }
.th-tl__cell.is-on { background: #93c5fd; }
.th-tl__cell.is-all { background: var(--_ok); }
.th-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; padding: 0; margin: 10px 0 0; font-size: 12px; color: var(--_muted); }
.th-legend li { display: flex; align-items: center; gap: 6px; }
.th-swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.th-swatch--all { background: var(--_ok); } .th-swatch--some { background: #93c5fd; } .th-swatch--none { background: #e2e8f0; }

/* ---------------------------------------------------------------- directory */
.th-directory { width: 100%; }
.th-directory__controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 20px; }
.th-search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--_muted); }
.th-search:focus-within { border-color: var(--_brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, .18); }
.th-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; padding: 12px 0; color: var(--_ink); }
.th-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.th-chip { border: 1px solid var(--_line); background: #fff; color: var(--_text); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.th-chip.is-active { background: var(--_ink); border-color: var(--_ink); color: #fff; }
.th-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.th-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; background: #fff; border: 1px solid var(--_line); border-radius: var(--_r); transition: border-color .15s, box-shadow .15s; }
.th-card:hover, .th-card:focus-within { border-color: #93c5fd; box-shadow: 0 8px 24px rgba(15, 23, 42, .07); }
.th-card[hidden] { display: none; }
.th-card__icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--_brand-soft); color: var(--_brand); }
.th-card__title { margin: 6px 0 0; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--_ink); }
.th-card__title a { color: inherit; text-decoration: none; }
.th-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--_r); }
.th-card__title a:focus-visible { outline: none; }
.th-card__title a:focus-visible::after { outline: 2px solid var(--_brand); outline-offset: 2px; }
.th-card__desc { margin: 0; font-size: 15px; line-height: 1.55; color: var(--_text); }
.th-card__meta { margin: auto 0 0; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--_muted); }
.th-card__meta span { background: var(--_soft); border-radius: 999px; padding: 3px 10px; }
.th-directory__empty { margin: 16px 0 0; padding: 16px; background: var(--_soft); border-radius: 10px; }

/* ---------------------------------------------------------------- breadcrumbs */
.th-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 14px; color: var(--_muted); }
.th-breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #cbd5e1; }
.th-breadcrumbs a { color: var(--_muted); text-decoration: none; }
.th-breadcrumbs a:hover { color: var(--_brand); text-decoration: underline; }
.th-breadcrumbs [aria-current] { color: var(--_ink); font-weight: 500; }

/* ---------------------------------------------------------------- contact */
.th-contact { max-width: 720px; }
.th-input--area textarea { resize: vertical; min-height: 140px; }
.th-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.th-contact__privacy { font-size: 13px; color: var(--_muted); margin: 16px 0; }
.th-notice { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; font-weight: 500; }
.th-notice--ok { background: #ecfdf5; color: #065f46; }
.th-notice--error { background: #fef2f2; color: #991b1b; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
	.th-tool { grid-template-columns: 1fr; }
	.th-tool__results { position: static; }
}
@media (max-width: 600px) {
	.th-tool__form, .th-tool__results { padding: 18px; }
	.th-grid { grid-template-columns: 1fr; }
	.th-person { grid-template-columns: 1fr 1fr 36px; }
	.th-person__zone { grid-column: 1 / -1; }
	.th-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.th-tool *, .th-card, .th-input { transition: none !important; }
}

/* ================================================================ v1.2 polish: groups, results, tables */
.th-group {
	grid-column: 1 / -1; margin: 6px 0 -2px; padding: 0 0 8px; border-bottom: 1px solid var(--_line);
	font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--_brand-ink);
}
.th-grid > .th-group:first-child { margin-top: 0; }
.th-meeting > .th-group { margin: 4px 0 0; }
.th-tool__form { border-top: 4px solid var(--_brand); }
.th-tool__results { border-top: 4px solid var(--_ok); box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.th-result__value { color: var(--_brand-ink); }
.th-breakdown tbody tr:nth-child(even) th, .th-breakdown tbody tr:nth-child(even) td { background: rgba(241, 245, 249, .6); }
.th-breakdown tr.th-breakdown__total th, .th-breakdown tr.th-breakdown__total td { background: var(--_brand-soft); }
.th-breakdown th, .th-breakdown td { padding-left: 8px; padding-right: 8px; }
.th-result__compare { padding: 12px 14px; background: #f8fafc; border-radius: 8px; border: 1px solid var(--_line); }

.th-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.th-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.th-table caption { caption-side: top; text-align: left; padding: 14px 16px 10px; font-weight: 700; color: #0f172a; font-size: 16px; }
.th-table thead th { background: #0f172a; color: #fff; text-align: left; font-weight: 600; padding: 11px 16px; font-size: 14px; white-space: nowrap; }
.th-table tbody th, .th-table tbody td { padding: 11px 16px; border-top: 1px solid #e2e8f0; text-align: left; vertical-align: top; color: #334155; }
.th-table tbody th { font-weight: 600; color: #0f172a; }
.th-table tbody tr:nth-child(even) { background: #f8fafc; }
.th-table-note { margin: 8px 0 0; font-size: 13px; color: #64748b; }

/* ================================================================ v1.3 design: directory, calculator panels */
/* Directory cards. The Elementor kit styles every h2/h3 at 36px+; these selectors win over it. */
.th-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.th-card { padding: 24px; gap: 10px; border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
	transition: border-color .2s, box-shadow .2s, transform .2s; }
.th-card:hover, .th-card:focus-within { border-color: #bfd4fb; box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .25); transform: translateY(-3px); }
.th-card__icon { width: 48px; height: 48px; border-radius: 12px; }
.th-card[data-cat="tax"] .th-card__icon { background: #ecfdf5; color: #047857; }
.th-card[data-cat="time"] .th-card__icon { background: #f5f3ff; color: #6d28d9; }
html body .th-directory .th-card__title { margin: 6px 0 0; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--_ink); font-family: var(--th-font); }
.th-card:hover .th-card__title a { color: var(--_brand); }
html body .th-directory .th-card__desc { font-size: 15px; line-height: 1.6; color: var(--_text); }
.th-card__meta span { background: #f1f5f9; color: #475569; font-weight: 500; }
.th-card__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--_line); font-size: 14px; font-weight: 700; color: var(--_brand); }
.th-card__arrow { transition: transform .2s; }
.th-card:hover .th-card__arrow { transform: translateX(4px); }
.th-card[data-cat="tax"] .th-card__go { color: #047857; }
.th-card[data-cat="time"] .th-card__go { color: #6d28d9; }

.th-directory__controls { padding: 14px; background: #fff; border: 1px solid var(--_line); border-radius: 16px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); margin-bottom: 24px; }
.th-search { border-color: #d5dde8; background: #f8fafc; }
.th-search:focus-within { background: #fff; }
.th-chip { transition: background .15s, border-color .15s, color .15s; }
.th-chip:hover { border-color: var(--_brand); color: var(--_brand); }
.th-chip.is-active:hover { color: #fff; }

/* Calculator panels */
.th-tool__form, .th-tool__results { border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .22), 0 1px 3px rgba(15, 23, 42, .06); }
.th-tool__form { padding: 28px; }
.th-tool__results { padding: 28px; }
.th-group { display: flex; align-items: center; gap: 10px; border-bottom: 0; padding: 0; margin-top: 10px; }
.th-group::after { content: ""; flex: 1; height: 1px; background: var(--_line); }
.th-input { min-height: 46px; border-radius: 10px; }
.th-input input, .th-input select { padding-top: 11px; padding-bottom: 11px; }
.th-result__value { font-size: clamp(36px, 4.4vw, 50px); }
.th-tool__intro { grid-column: 1 / -1; margin: 0; padding: 12px 14px; background: var(--_brand-soft); border-radius: 10px; font-size: 14px; line-height: 1.5; color: var(--_brand-ink); }
.th-tool[data-country="OTHER"] .th-only--OTHER { display: flex; }
.th-tool[data-country="OTHER"] p.th-only--OTHER { display: block; }
@media (max-width: 600px) {
	.th-tool__form, .th-tool__results { padding: 20px; border-radius: 14px; }
}
/* final audit: readable timeline labels */
.th-timeline { font-size: 13px; }
.th-tl__name small { font-size: 12px; }
.th-tl__head span { font-size: 12px; }

/* ================================================================ v1.3: quick rate check + result pulse */
.th-quick { position: relative; overflow: hidden; color: #e2e8f0; font-family: var(--th-font, system-ui, sans-serif);
	background: linear-gradient(160deg, rgba(30, 41, 59, .92), rgba(15, 23, 42, .94)); border: 1px solid rgba(148, 163, 184, .28); border-radius: 22px;
	padding: 24px 24px 20px; box-shadow: 0 40px 80px -30px rgba(2, 6, 23, .9), inset 0 1px 0 rgba(255, 255, 255, .06); --mx: 50%; --my: -200px; }
.th-quick::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(103, 232, 249, .10), transparent 45%); }
.th-quick * { box-sizing: border-box; }
.th-quick__cap { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #67e8f9; }
.th-quick__pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: th-ping 2s infinite; }
@keyframes th-ping { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.th-quick__title { margin: 0 0 16px; font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.th-quick__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.th-quick__field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #94a3b8; font-weight: 600; }
.th-quick__field--wide { grid-column: 1 / -1; }
.th-quick__field b { color: #fff; }
.th-quick input[type="number"], .th-quick select { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; font: inherit; font-size: 16px; color: #fff;
	background: rgba(15, 23, 42, .7); border: 1px solid rgba(148, 163, 184, .3); outline: none; transition: border-color .2s, box-shadow .2s; }
.th-quick select option, .th-quick select optgroup { color: #0f172a; }
.th-quick input[type="number"]:focus, .th-quick select:focus { border-color: #67e8f9; box-shadow: 0 0 0 3px rgba(103, 232, 249, .2); }
.th-quick input[type="range"] { width: 100%; accent-color: #67e8f9; height: 28px; }
.th-quick__result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 16px 0 6px; padding: 16px 18px; border-radius: 16px;
	background: rgba(99, 102, 241, .10); border: 1px solid rgba(129, 140, 248, .3); transition: box-shadow .3s; }
.th-quick__label { flex-basis: 100%; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a5b4fc; }
.th-quick__value { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; background: linear-gradient(90deg, #e0f2fe, #93c5fd 50%, #c4b5fd);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }
.th-quick__unit { color: #94a3b8; font-weight: 700; }
.th-quick__day { margin-left: auto; font-size: 14px; color: #cbd5e1; }
.th-quick__day b { color: #fff; }
.th-quick__note { margin: 0 0 14px; font-size: 12.5px; color: #94a3b8; }
.th-quick__cta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 12px; color: #fff !important; font-weight: 700; text-decoration: none; }
.th-quick.is-pulse .th-quick__result { animation: th-flash .6s ease; }
@keyframes th-flash { 0% { box-shadow: 0 0 0 0 rgba(103, 232, 249, .55); } 100% { box-shadow: 0 0 0 14px rgba(103, 232, 249, 0); } }

/* full calculators: soft glow when the result changes */
.th-tool__results.is-pulse { animation: th-glow .7s ease; }
@keyframes th-glow { 0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, .35), 0 18px 40px -18px rgba(15, 23, 42, .22); } 100% { box-shadow: 0 0 0 16px rgba(99, 102, 241, 0), 0 18px 40px -18px rgba(15, 23, 42, .22); } }
.th-tool__results .th-result__value { background: linear-gradient(90deg, #1e3a8a, #4f46e5 60%, #7c3aed); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (prefers-reduced-motion: reduce) { .th-quick__pulse, .th-quick.is-pulse .th-quick__result, .th-tool__results.is-pulse { animation: none; } }
@media (max-width: 480px) { .th-quick__grid { grid-template-columns: 1fr; } .th-quick__value { font-size: 38px; } }

/* ================================================================ v1.4: light quick rate check + readable dropdowns */
.th-quick { color: #0f172a; background: rgba(255, 255, 255, .88); border: 1px solid rgba(99, 102, 241, .22);
	box-shadow: 0 40px 80px -36px rgba(79, 70, 229, .45), 0 2px 6px rgba(15, 23, 42, .05), inset 0 1px 0 #fff; backdrop-filter: blur(10px); }
.th-quick::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #22d3ee, #6366f1, #a855f7); }
.th-quick::before { background: radial-gradient(360px circle at var(--mx) var(--my), rgba(99, 102, 241, .08), transparent 45%); }
.th-quick__cap { color: #4338ca; }
.th-quick__title { color: #0b1220; }
.th-quick__field { color: #475569; }
.th-quick__field b { color: #0f172a; }
.th-quick input[type="number"], .th-quick select { color: #0f172a; background: #fff; border: 1px solid #cbd5e1; }
.th-quick input[type="number"]:focus, .th-quick select:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .18); }
.th-quick input[type="range"] { accent-color: #6366f1; }
/* dropdown lists: always a solid light background so the native list never turns grey */
.th-quick select, .th-quick select option, .th-quick select optgroup,
.th-tool select, .th-tool select option, .th-tool select optgroup { background-color: #fff; color: #0f172a; }
.th-quick select optgroup, .th-tool select optgroup { font-weight: 700; color: #4338ca; }
.th-quick__result { background: linear-gradient(135deg, #eef2ff, #f5f3ff); border-color: #c7d2fe; }
.th-quick__label { color: #4338ca; }
.th-quick__value { background: linear-gradient(90deg, #1e3a8a, #4f46e5 55%, #7c3aed); -webkit-background-clip: text; background-clip: text; }
.th-quick__unit { color: #64748b; }
.th-quick__day { color: #475569; }
.th-quick__day b { color: #0f172a; }
.th-quick__note { color: #64748b; }
@keyframes th-flash { 0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, .40); } 100% { box-shadow: 0 0 0 14px rgba(99, 102, 241, 0); } }

/* ================================================================ v1.6: calculator heading, tooltips, phone result bar */
.th-tool__head { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 18px;
	background: linear-gradient(135deg, #ffffff, #f5f7ff); border: 1px solid #e0e7ff; box-shadow: 0 18px 40px -26px rgba(79, 70, 229, .45); }
.th-tool__badge { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff;
	background: linear-gradient(135deg, #3b82f6, #7c3aed); box-shadow: 0 10px 22px -10px rgba(79, 70, 229, .8); }
.th-tool__titles { flex: 1; min-width: 0; }
html body .th-tool .th-tool__heading { margin: 0; font-family: var(--th-font-head, inherit); font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; color: #0b1220; }
.th-tool__sub { margin: 4px 0 0; font-size: 14.5px; color: #475569; }
.th-tool__live { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
	color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; }
.th-tool__live i { width: 8px; height: 8px; border-radius: 50%; background: #10b981; animation: th-ping 2s infinite; }
@media (max-width: 600px) { .th-tool__head { padding: 14px 16px; gap: 12px; } .th-tool__live { display: none; } html body .th-tool .th-tool__heading { font-size: 19px; } .th-tool__badge { width: 42px; height: 42px; } }

/* label row with the info button */
.th-field__head { display: flex; align-items: center; gap: 6px; }
.th-segment legend { display: flex; align-items: center; gap: 6px; }
.th-tip { position: relative; flex-shrink: 0; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid #c7d2fe; background: #eef2ff; color: #4338ca;
	font: italic 700 12px/1 Georgia, "Times New Roman", serif; cursor: help; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.th-tip:hover, .th-tip:focus-visible, .th-tip.is-open { background: #4f46e5; color: #fff; border-color: #4f46e5; outline: none; }
.th-tip:focus-visible { box-shadow: 0 0 0 3px rgba(99, 102, 241, .3); }
.th-tip__bubble { position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 10px); width: max-content; max-width: 260px; padding: 10px 12px; border-radius: 10px;
	background: #0f172a; color: #f8fafc; font: 500 13px/1.45 var(--th-font, system-ui, sans-serif); font-style: normal; text-align: left; letter-spacing: 0;
	box-shadow: 0 14px 30px -12px rgba(15, 23, 42, .5); opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; }
.th-tip__bubble::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #0f172a; }
.th-tip:hover .th-tip__bubble, .th-tip:focus-visible .th-tip__bubble, .th-tip.is-open .th-tip__bubble { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (max-width: 600px) {
	.th-tip__bubble { left: auto; right: -12px; transform: translate(0, 4px); max-width: min(260px, 78vw); }
	.th-tip:hover .th-tip__bubble, .th-tip.is-open .th-tip__bubble, .th-tip:focus-visible .th-tip__bubble { transform: none; }
	.th-tip__bubble::after { left: auto; right: 16px; }
}

/* phones and tablets: result bar while the result panel is off screen */
.th-resultbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 0; border-radius: 16px;
	background: linear-gradient(135deg, #1e3a8a, #4f46e5 60%, #7c3aed); color: #fff; font: inherit; text-align: left; cursor: pointer;
	box-shadow: 0 18px 40px -14px rgba(30, 27, 75, .6); transform: translateY(140%); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.th-resultbar.is-on { transform: none; }
.th-resultbar__label { flex: 1; min-width: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #c7d2fe; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-resultbar__value { font-family: var(--th-font-head, inherit); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.th-resultbar__go { font-size: 12px; font-weight: 600; color: #e0e7ff; white-space: nowrap; }
@media (min-width: 1025px) { .th-resultbar { display: none; } }
@media (prefers-reduced-motion: reduce) { .th-resultbar { transition: none; } .th-tool__live i { animation: none; } }
/* audit fixes: hidden tooltips take no space; right-side tooltips open leftwards; taller slider */
.th-tip__bubble { display: none; }
.th-tip:hover .th-tip__bubble, .th-tip:focus-visible .th-tip__bubble, .th-tip.is-open .th-tip__bubble { display: block; }
.th-tip--end .th-tip__bubble { left: auto; right: -10px; transform: none !important; }
.th-tip--end .th-tip__bubble::after { left: auto; right: 14px; margin-left: 0; }
.th-quick input[type="range"] { height: 36px; }
.th-tip--end .th-tip__bubble { right: -2px; }
.th-tip--end .th-tip__bubble::after { right: 6px; }
/* tooltip placement is measured by th-ui.js: the bubble shifts by --tx to stay on screen; the arrow keeps pointing at the "i" */
html body .th-tip .th-tip__bubble, html body .th-tip--end .th-tip__bubble { left: 50%; right: auto; transform: translateX(calc(-50% + var(--tx, 0px))) !important; }
html body .th-tip .th-tip__bubble::after, html body .th-tip--end .th-tip__bubble::after { left: calc(50% - var(--tx, 0px)); right: auto; margin-left: -6px; }
@media (max-width: 600px) { html body .th-tip .th-tip__bubble { max-width: min(260px, calc(100vw - 24px)); } }
/* shift via margin (immune to other transform rules) */
html body .th-tip .th-tip__bubble, html body .th-tip--end .th-tip__bubble, html body .th-tip.is-open .th-tip__bubble, html body .th-tip:hover .th-tip__bubble { transform: translateX(-50%) !important; margin-left: var(--tx, 0px); }
@media (max-width: 420px) { .th-resultbar__go { display: none; } .th-resultbar__label { white-space: normal; line-height: 1.25; } }

/* ================================================================ v1.7: searchable location dropdown + calmer calculator type scale */
.th-input--combo { position: relative; }
.th-combo { position: absolute; z-index: 40; left: -1px; right: -1px; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: 300px; overflow-y: auto;
	background: #fff; border: 1px solid #c7d2fe; border-radius: 14px; box-shadow: 0 22px 50px -20px rgba(30, 41, 99, .45); overscroll-behavior: contain; }
.th-combo[hidden] { display: none; }
.th-combo__group { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6366f1; }
.th-combo__opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; font-size: 14px; color: #0f172a; line-height: 1.3; }
.th-combo__opt:hover, .th-combo__opt.is-active { background: #eef2ff; color: #3730a3; }
.th-combo__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-combo__meta { flex-shrink: 0; font-size: 12px; color: #64748b; font-variant-numeric: tabular-nums; }
.th-combo__empty { padding: 12px 10px; font-size: 14px; color: #64748b; }
.th-person__zone .th-input input { text-overflow: ellipsis; }

/* type scale inside calculators: about 4px smaller than before, still scaling with the screen */
.th-tool .th-field__label { font-size: 13.5px; }
.th-tool .th-field__hint, .th-tool .th-tool__note { font-size: 12.5px; }
.th-tool .th-group { font-size: 12px; }
.th-tool .th-result__label { font-size: 12px; }
html body .th-tool .th-result__value { font-size: clamp(28px, 3.4vw, 42px); }
html body .th-tool .th-result__value--sm { font-size: clamp(20px, 2.3vw, 26px); line-height: 1.2; }
.th-tool .th-result__sub { font-size: 14px; }
.th-tool .th-breakdown, .th-tool .th-breakdown caption { font-size: 13px; }
.th-tool .th-result__compare, .th-tool .th-result__list ul { font-size: 13px; }
.th-tool .th-segment label { font-size: 13px; padding: 7px 12px; }
.th-tool .th-check { font-size: 13.5px; }
.th-tool .th-btn { font-size: 13.5px; }
html body .th-tool .th-tool__heading { font-size: clamp(17px, 1.6vw, 19px); }
.th-tool .th-tool__sub { font-size: 13.5px; }
.th-tool .th-timeline { font-size: 12px; }
/* inputs: 15px with a mouse, but 16px on touch screens so phones do not zoom in when a field is tapped */
.th-tool .th-input input, .th-tool .th-input select, .th-quick input[type="number"], .th-quick select { font-size: 16px; }
@media (hover: hover) and (pointer: fine) {
	.th-tool .th-input input, .th-tool .th-input select, .th-quick input[type="number"], .th-quick select { font-size: 15px; }
}
.th-tool .th-input { min-height: 42px; }
.th-tool .th-input input, .th-tool .th-input select { padding-top: 9px; padding-bottom: 9px; }
.th-resultbar__value { font-size: 19px; }

/* quick rate check on the home page follows the same scale */
.th-quick__title { font-size: 18px; }
.th-quick__value { font-size: clamp(30px, 3.2vw, 38px); }
.th-quick__field { font-size: 12.5px; }
.th-combo { right: auto; width: max(100% + 2px, min(340px, calc(100vw - 32px))); }
.th-person:nth-child(n) .th-combo { max-width: calc(100vw - 32px); }
@media (max-width: 600px) { .th-combo { width: auto; left: -1px; right: -1px; max-width: none; } }

/* ============================================================ v2.0 calculators (hourly to salary, pay raise, pro rata, overtime, time card, VAT, GST) */
.th-tool[data-mode="h2s"] .th-mode--h2s, .th-tool[data-mode="s2h"] .th-mode--s2h,
.th-tool[data-mode="pct"] .th-mode--pct, .th-tool[data-mode="amount"] .th-mode--amount, .th-tool[data-mode="new"] .th-mode--new,
.th-tool[data-mode="hours"] .th-mode--hours, .th-tool[data-mode="dates"] .th-mode--dates, .th-tool[data-mode="both"] .th-mode--both { display: flex; }
.th-tool .th-pay { display: none; }
.th-tool[data-pay="hourly"] .th-pay--hourly { display: flex; }
.th-tool .th-when-dates, .th-tool .th-when-double, .th-tool .th-when-pay, .th-tool .th-when-pst { display: none; }
.th-tool[data-mode="dates"] .th-when-dates, .th-tool[data-mode="both"] .th-when-dates,
.th-tool.has-double .th-when-double, .th-tool.has-pay .th-when-pay, .th-tool.has-pst .th-when-pst { display: table-row; }
.th-tool.is-realcut [data-out="realPct"] { color: #b91c1c; }
.th-field--date .th-input input { width: 100%; }

/* rate chips (VAT) */
.th-rates { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: #64748b; margin-top: -4px; }
.th-rates:empty { display: none; }
.th-ratechip { font: inherit; font-weight: 700; font-size: 13px; padding: 5px 11px; border-radius: 999px; cursor: pointer; color: #4338ca;
	background: #eef2ff; border: 1px solid #c7d2fe; transition: background .15s, color .15s, transform .15s; }
.th-ratechip:hover { background: #e0e7ff; transform: translateY(-1px); }
.th-ratechip.is-on { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.th-ratechip:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }

/* time card grid */
.th-tc { display: flex; flex-direction: column; gap: 6px; }
.th-tc__head, .th-tc__row { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) 76px 52px; gap: 8px; align-items: center; }
.th-tc__head { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; padding: 0 2px; }
.th-tool .th-field.th-tc__row { display: grid; margin: 0; padding: 6px 8px; border-radius: 12px; background: #f8faff; border: 1px solid #e6eaf5; }
.th-tc__row .th-field__error { grid-column: 1 / -1; margin: 0; }
.th-tc__row .th-field__error:empty { display: none; }
.th-tc__day { font-weight: 700; font-size: 14px; color: #0f172a; }
.th-tc__cell { display: block; min-width: 0; }
.th-tc__lbl { display: none; }
.th-tc__cell .th-input input { width: 100%; min-width: 0; padding-left: 10px; padding-right: 6px; }
.th-tc__total { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; color: #4338ca; }
.th-tc__clear { align-self: flex-start; margin-top: 4px; }
@media (max-width: 600px) {
	.th-tc__head { display: none; }
	.th-tc__row, .th-tool .th-field.th-tc__row { grid-template-columns: 1fr 1fr 1fr; row-gap: 6px; padding: 10px; }
	.th-tc__day { grid-column: 1 / 3; }
	.th-tc__total { grid-column: 3; grid-row: 1; }
	.th-tc__lbl { display: block; font-size: 11px; font-weight: 700; color: #64748b; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .05em; }
}
@media (min-width: 1025px) { .th-tool[data-th-tool="time-card"] { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); } }
.th-tc__cell input[type="time"] { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
	.th-tc__cell input[type="time"] { padding-left: 8px; padding-right: 4px; }
	.th-tc__cell input[type="time"]::-webkit-calendar-picker-indicator { display: none; }
}
.th-result__warn { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; font-size: 14px; line-height: 1.5; }
.th-result__warn:empty { display: none; }

/* Directory filter chips (Dec 2026): readable resting, hover, active and keyboard states */
html body .th-chips .th-chip { background: #fff; border: 1px solid #d5dbe7; color: #334155; font-weight: 600; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
html body .th-chips .th-chip:hover { background: #eef2ff; border-color: #a5b4fc; color: #3730a3; }
html body .th-chips .th-chip.is-active,
html body .th-chips .th-chip[aria-pressed="true"] { background: #4f46e5; border-color: #4f46e5; color: #fff; box-shadow: 0 6px 14px -6px rgba(79, 70, 229, .55); }
html body .th-chips .th-chip.is-active:hover,
html body .th-chips .th-chip[aria-pressed="true"]:hover { background: #4338ca; border-color: #4338ca; color: #fff; }
html body .th-chips .th-chip:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }

/* v3 calculators (estimated tax, 1099 vs W-2, late fee) */
.th-tool[data-mode="monthly"] .th-mode--monthly, .th-tool[data-mode="annual"] .th-mode--annual,
.th-tool[data-mode="flat"] .th-mode--flat, .th-tool[data-mode="uk"] .th-mode--uk { display: flex; }
.th-tool .th-when-interest, .th-tool .th-when-flat, .th-tool .th-when-uk { display: none; }
.th-tool.has-interest .th-when-interest, .th-tool.has-flat .th-when-flat, .th-tool.has-uk .th-when-uk { display: table-row; }
.th-tool.is-w2-better [data-out="difference"] { background: linear-gradient(90deg, #0f766e, #0891b2); -webkit-background-clip: text; background-clip: text; }

/* ---------- Contact page (v2.2): form card + side panel ---------- */
.th-cform { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; font-family: inherit; color: #0f172a; }
.th-cform * { box-sizing: border-box; }
.th-cform .th-ci { flex: none; }
.th-cform__card { max-width: none; background: #fff; border: 1px solid #e6e8f0; border-radius: 22px; padding: 34px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 24px 60px -32px rgba(79,70,229,.35); position: relative; overflow: hidden; }
.th-cform__card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #4f46e5, #7c3aed 55%, #0ea5e9); }
.th-cform__kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #4f46e5; }
.th-cform__title { margin: 0; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; color: #0f172a; }
.th-cform__intro { margin: 8px 0 24px; color: #475569; font-size: 15.5px; line-height: 1.6; }
.th-cform__label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 650; color: #1e293b; }
.th-cform__topics { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.th-cform__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.th-cform__chip { position: relative; cursor: pointer; }
.th-cform__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.th-cform__chip span { display: flex; align-items: center; gap: 10px; height: 100%; padding: 12px 14px; border: 1.5px solid #e2e8f0; border-radius: 14px; background: #f8fafc; font-size: 14.5px; font-weight: 600; color: #334155; transition: border-color .15s, background .15s, color .15s, box-shadow .15s; }
.th-cform__chip span .th-ci { color: #64748b; transition: color .15s; }
.th-cform__chip:hover span { border-color: #a5b4fc; background: #eef2ff; color: #3730a3; }
.th-cform__chip:hover span .th-ci { color: #4f46e5; }
.th-cform__chip input:checked + span { border-color: #4f46e5; background: #eef2ff; color: #312e81; box-shadow: 0 0 0 3px rgba(79,70,229,.14); }
.th-cform__chip input:checked + span .th-ci { color: #4f46e5; }
.th-cform__chip input:focus-visible + span { outline: 2px solid #4f46e5; outline-offset: 2px; }
.th-cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.th-cform__field { margin: 0 0 18px; min-width: 0; }
.th-cform__input { position: relative; display: flex; align-items: center; border: 1.5px solid #e2e8f0; border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.th-cform__input > .th-ci { position: absolute; left: 14px; color: #94a3b8; pointer-events: none; }
.th-cform__input:focus-within { border-color: #4f46e5; box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.th-cform__input:focus-within > .th-ci { color: #4f46e5; }
.th-cform__input input, .th-cform__input textarea { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: #0f172a; padding: 13px 14px 13px 44px; border-radius: 14px; }
.th-cform__input--area textarea { padding: 14px 16px; min-height: 150px; resize: vertical; line-height: 1.55; }
.th-cform__input input::placeholder, .th-cform__input textarea::placeholder { color: #94a3b8; }
.th-cform__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.th-cform__hint { margin: 0; font-size: 13px; color: #64748b; line-height: 1.5; }
.th-cform__count { flex: none; font-size: 12.5px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.th-cform__foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 6px; padding-top: 20px; border-top: 1px solid #eef0f5; }
.th-cform__foot .th-contact__privacy { margin: 0; font-size: 13px; color: #64748b; max-width: 320px; }
.th-cform__foot .th-contact__privacy a { color: #4f46e5; }
.th-cform__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: none; border: 0; cursor: pointer; padding: 14px 26px; border-radius: 14px; font: inherit; font-size: 15.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 12px 24px -12px rgba(79,70,229,.7); transition: transform .15s, box-shadow .15s, filter .15s; }
.th-cform__btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 16px 30px -12px rgba(79,70,229,.75); }
.th-cform__btn:focus-visible { outline: 3px solid #c7d2fe; outline-offset: 2px; }
.th-cform__btn .th-ci { transition: transform .2s; }
.th-cform__btn:hover .th-ci { transform: translate(2px, -2px); }
.th-cform .th-notice { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 14px 16px; margin: 0 0 22px; font-size: 14.5px; }
.th-cform .th-notice--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.th-cform .th-notice--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.th-cform__aside { display: grid; gap: 16px; }
.th-cform__mail { position: relative; overflow: hidden; border-radius: 22px; padding: 26px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, #7c3aed 0%, rgba(124,58,237,0) 60%), linear-gradient(150deg, #312e81, #4f46e5); box-shadow: 0 24px 50px -28px rgba(49,46,129,.8); }
.th-cform__mail::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%; border: 22px solid rgba(255,255,255,.07); }
.th-cform__mailicon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255,255,255,.14); margin-bottom: 14px; }
.th-cform__mailtitle { margin: 0 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.th-cform__mailtext { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.82); }
.th-cform__address { position: relative; z-index: 1; display: block; word-break: break-all; font-size: 17px; font-weight: 700; color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 4px; }
.th-cform__address:hover { text-decoration-color: #fff; color: #fff; }
.th-cform__copy { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s; }
.th-cform__copy:hover { background: rgba(255,255,255,.2); }
.th-cform__copy .th-ci { width: 16px; height: 16px; }
.th-cform__panel { background: #fff; border: 1px solid #e6e8f0; border-radius: 18px; padding: 20px 22px; }
.th-cform__ptitle { margin: 0 0 12px; font-size: 15px; font-weight: 750; color: #0f172a; }
.th-cform__steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 10px; }
.th-cform__steps li { counter-increment: s; position: relative; padding-left: 36px; font-size: 14.5px; line-height: 1.5; color: #334155; min-height: 26px; }
.th-cform__steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: #eef2ff; color: #4338ca; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.th-cform__checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.th-cform__checks li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; color: #334155; }
.th-cform__checks .th-ci { width: 18px; height: 18px; color: #059669; margin-top: 1px; }
@media (max-width: 960px) { .th-cform { grid-template-columns: 1fr; } .th-cform__aside { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
@media (max-width: 600px) {
	.th-cform__card { padding: 24px 18px; border-radius: 18px; }
	.th-cform__row, .th-cform__chips { grid-template-columns: 1fr; gap: 10px; }
	.th-cform__foot { flex-direction: column-reverse; align-items: stretch; }
	.th-cform__btn { width: 100%; }
	.th-cform__foot .th-contact__privacy { max-width: none; text-align: center; }
}
.th-contact-intro { max-width: 760px; margin: 0 0 32px; }
.th-contact-intro a { color: #4f46e5; font-weight: 600; }

/* ---------- Batch 4 calculators (holiday entitlement, working days, commission): conditional fields and rows ---------- */
.th-tool[data-mode="irregular"] .th-mode--irregular, .th-tool[data-mode="between"] .th-mode--between, .th-tool[data-mode="add"] .th-mode--add,
.th-tool[data-mode="tiered"] .th-mode--tiered, .th-tool[data-mode="rate"] .th-mode--rate, .th-tool[data-mode="target"] .th-mode--target { display: flex; }
.th-tool .th-when-custom, .th-tool .th-when-au, .th-tool .th-when-part, .th-tool .th-when-irregular, .th-tool .th-when-draw,
.th-tool .th-when-tiered, .th-tool .th-when-between { display: none; }
.th-tool.is-custom .th-field.th-when-custom, .th-tool.is-au .th-field.th-when-au, .th-tool.has-part .th-field.th-when-part { display: flex; }
.th-tool.has-part tr.th-when-part, .th-tool.is-irregular tr.th-when-irregular, .th-tool.has-draw tr.th-when-draw { display: table-row; }
.th-tool.is-irregular tr.th-when-fixed { display: none; }
.th-tool.is-tiered .th-when-tiered, .th-tool[data-mode="between"] .th-when-between { display: revert; }
.th-tool .th-result__list ul li .th-hol-date { font-variant-numeric: tabular-nums; color: #64748b; margin-right: 8px; }

/* ---------- Compact directory by category (home page): equal-height tiles, colour per category ---------- */
.th-catdir { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; align-items: start; }
.th-catdir__col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.th-catdir__group { --c: #4f46e5; --c-soft: #eef2ff; min-width: 0; }
.th-catdir--pay { --c: #7c3aed; --c-soft: #f5f3ff; }
.th-catdir--tax { --c: #059669; --c-soft: #ecfdf5; }
.th-catdir--pricing { --c: #e11d48; --c-soft: #fff1f2; }
.th-catdir--time { --c: #0284c7; --c-soft: #e0f2fe; }
html body .th-catdir__title { margin: 0 0 12px; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
html body .th-catdir__title a { color: var(--c); text-decoration: none; }
.th-catdir__title a span { display: inline-block; transition: transform .15s; }
.th-catdir__title a:hover span { transform: translateX(3px); }
.th-catdir__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.th-catdir__list li { margin: 0; padding: 0; }
html body .th-catdir__tile { display: flex; align-items: center; gap: 14px; height: 74px; padding: 0 16px; border: 1px solid #e2e8f0; border-radius: 14px;
	background: #fff; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: border-color .15s, box-shadow .15s, transform .15s; }
html body .th-catdir__tile:hover, html body .th-catdir__tile:focus-visible { border-color: var(--c); box-shadow: 0 10px 24px -14px var(--c); transform: translateY(-1px); text-decoration: none; }
.th-catdir__tile:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.th-catdir__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--c-soft); color: var(--c); }
.th-catdir__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.th-catdir__name, .th-catdir__desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-catdir__name { font-size: 15.5px; font-weight: 600; color: #0f172a; line-height: 1.25; }
.th-catdir__desc { font-size: 13.5px; color: #64748b; line-height: 1.3; }
.th-catdir__tile:hover .th-catdir__name { color: var(--c); }
.th-catdir__more { margin: 28px 0 0; text-align: center; }
html body .th-catdir__more a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; border: 1px solid #c7d2fe; background: #eef2ff; color: #3730a3; font-weight: 600; font-size: 15px; text-decoration: none; }
html body .th-catdir__more a:hover { background: #e0e7ff; }
@media (max-width: 1100px) { .th-catdir { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.th-catdir { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	html body .th-catdir__tile { height: 68px; padding: 0 14px; gap: 12px; }
	.th-catdir__icon { width: 38px; height: 38px; border-radius: 11px; }
	.th-catdir__name { font-size: 15px; }
	.th-catdir__desc { font-size: 13px; }
}
/* Tablet: the four categories flow as a 2x2 grid (Pay | Tax, Pricing | Time) instead of stacking the third column */
@media (max-width: 1100px) and (min-width: 641px) { .th-catdir__col { display: contents; } .th-catdir { row-gap: 30px; } }
