/* ==========================================================================
   Tool pages (page-tool-*.php; load with taa_component( 'tool' )): header, tool card
   with steps (.sol = step-by-step tool card), sidebar, result CTA, state table, FAQ.
   ========================================================================== */

:root {
	--icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F45A8' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

/* Header
   ========================================================================== */

.tool-head {
	padding: 22px 0 clamp(28px, 4vw, 44px);
	border-bottom: 2px solid var(--c-manila-edge);
	background: var(--c-manila-2);
}

.tool-head .breadcrumbs ol {
	margin-bottom: clamp(22px, 3.5vw, 36px);
}

.tool-head__main {
	max-width: 780px;
}

.tool-head__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	font-size: 12.5px;
}

.tool-head__eyebrow::before {
	display: none;
}

.tool-head__title {
	margin-bottom: 16px;
	font-size: clamp(34px, 4.6vw, 54px);
	line-height: 1.06;
	letter-spacing: -.02em;
}

.tool-head__lead {
	color: var(--c-text);
	font-size: clamp(17px, 1.6vw, 19px);
	line-height: 1.55;
}

/* Layout: tool + sidebar
   ========================================================================== */

.tool-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 40px;
	padding-top: clamp(28px, 4vw, 48px);
	padding-bottom: clamp(28px, 4vw, 48px);
}

.sol {
	flex: 1 1 620px;
	min-width: 0;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-xl);
	background: var(--c-surface);
	box-shadow: 0 1px 0 var(--c-line), 0 22px 44px -30px rgba(var(--c-dark-rgb), .3);
	scroll-margin-top: 16px;
}

.tool-aside {
	display: flex;
	flex: 1 1 300px;
	flex-direction: column;
	gap: 28px;
	min-width: 0;
	max-width: 440px;
}

.tool-why {
	padding-top: 16px;
	border-top: 2px solid var(--c-ink);
}

.tool-why h2 {
	margin-bottom: 10px;
	font-size: 22px;
}

.tool-why p {
	margin-bottom: 12px;
	color: var(--c-text);
	font-size: 15px;
	line-height: 1.6;
}

.tool-reasons {
	padding: 18px 20px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	background: var(--c-surface);
}

.tool-reasons h2 {
	margin-bottom: 10px;
	font-family: var(--f-sans);
	font-size: 15.5px;
}

.tool-reasons ul {
	margin: 0;
	padding-left: 18px;
	color: var(--c-text);
	font-size: 14.5px;
	line-height: 1.6;
}

/* Tool
   ========================================================================== */

.sol__progress {
	display: grid;
	grid-template-columns: repeat(var(--sol-steps, 4), minmax(0, 1fr));
	gap: 6px;
	margin: 0;
	padding: 18px clamp(18px, 3vw, 28px) 0;
	color: var(--c-muted);
	font-size: 12px;
	list-style: none;
}

.sol__progress li span {
	display: block;
	height: 4px;
	margin-bottom: 8px;
	border-radius: 2px;
	background: var(--c-line-2);
}

.sol__progress .is-done span {
	background: var(--c-green);
}

.sol__progress .is-current span {
	background: var(--c-green);
}

.sol__progress .is-done,
.sol__progress .is-current {
	color: var(--c-ink);
}

.sol__progress .is-current {
	font-weight: 600;
}

.sol__body {
	min-height: 340px;
	padding: clamp(22px, 3vw, 32px) clamp(18px, 3vw, 28px) 8px;
}

.sol__kicker {
	margin-bottom: 8px;
	color: var(--c-manila-text);
	font-family: var(--f-mono);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0;
	text-transform: none;
}

.sol__kicker--green {
	margin: 0;
	color: var(--c-green);
}

.sol__title {
	margin-bottom: 6px;
	font-size: clamp(24px, 2.6vw, 30px);
}

.sol__intro {
	margin-bottom: 20px;
	color: var(--c-text-2);
	font-size: 15.5px;
	line-height: 1.55;
}

.sol__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 420px;
	font-size: 15px;
	font-weight: 600;
}

.sol__field--date {
	max-width: 320px;
}

.sol__field select,
.sol__field input {
	min-height: 52px;
	font-size: 17px;
}

.sol__quick-label {
	margin: 18px 0 8px;
	color: var(--c-muted);
	font-size: 13px;
}

.sol__quick {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sol__chip {
	min-height: 38px;
	padding: 6px 14px;
	border: 1.5px solid var(--c-line);
	border-radius: var(--radius-lg);
	background: var(--c-surface);
	color: var(--c-ink);
	font-size: 14px;
	cursor: pointer;
}

.sol__chip[aria-pressed="true"] {
	border-color: var(--c-green);
	background: var(--c-green-tint);
}

.sol__types {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sol__type {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 58px;
	padding: 13px 16px;
	border: 1.5px solid var(--c-line);
	border-radius: var(--radius);
	background: var(--c-surface);
	color: var(--c-text-2);
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}

.sol__type strong {
	display: block;
	margin-bottom: 2px;
	color: var(--c-ink);
	font-size: 16px;
}

.sol__radio {
	flex: 0 0 20px;
	height: 20px;
	border: 1.5px solid var(--c-line);
	border-radius: 50%;
}

.sol__type[aria-checked="true"] {
	border-color: var(--c-green);
	background: var(--c-green-tint);
}

.sol__type[aria-checked="true"] .sol__radio {
	border-color: var(--c-green);
	background: radial-gradient(circle, var(--c-green) 0 5px, transparent 5.5px);
}

.sol__error {
	margin: 16px 0 0;
	padding: 10px 12px;
	border: 1px solid var(--c-accent);
	background: var(--c-accent-tint);
	color: var(--c-accent-dark);
	font-size: 14px;
}

.sol__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	padding: 14px clamp(18px, 3vw, 28px) 22px;
	border-top: 1px solid var(--c-line-2);
}

.sol__back {
	min-height: 48px;
	padding: 0 4px;
	border: 0;
	background: none;
	color: var(--c-text-2);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
}

.sol__restart {
	text-decoration: underline;
}

.sol__next {
	margin-left: auto;
}

/* Result */
.sol__result-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}

.sol__badge {
	padding: 4px 10px;
	border-radius: var(--radius-lg);
	background: var(--c-green-tint);
	color: var(--c-green);
	font-size: 13px;
	font-weight: 600;
}

.sol__badge.is-soon {
	background: var(--c-sand);
	color: var(--c-accent-dark);
}

.sol__badge.is-passed {
	background: var(--c-accent-tint-2);
	color: var(--c-accent-dark);
}

.sol__label {
	margin-bottom: 4px;
	color: var(--c-text-2);
	font-size: 15px;
}

.sol__deadline {
	margin-bottom: 10px;
	color: var(--c-ink);
	font-family: var(--f-serif);
	font-size: clamp(38px, 5.6vw, 56px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -.02em;
}

.sol__left {
	margin-bottom: 24px;
	color: var(--c-ink);
	font-size: 17px;
}

.sol__left span {
	color: var(--c-text-2);
}

.sol__bar {
	position: relative;
	height: 10px;
	margin-bottom: 8px;
	border-radius: var(--radius-xl);
	background: var(--c-line-2);
}

.sol__bar span {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	border-radius: var(--radius-xl);
	background: var(--c-green);
}

.sol__bar span.is-urgent {
	background: var(--c-accent);
}

.sol__bar-labels {
	display: flex;
	justify-content: space-between;
	margin-bottom: 18px;
	color: var(--c-muted);
	font-family: var(--f-mono);
	font-size: 12px;
}

.sol__cite {
	margin-bottom: 18px;
	color: var(--c-text-2);
	font-size: 14px;
	line-height: 1.55;
}

.sol__gov {
	margin-bottom: 16px;
	padding: 14px 16px;
	border: 1px solid var(--c-sand-line);
	border-radius: var(--radius);
	background: var(--c-sand);
	color: var(--c-sand-text);
	font-size: 15px;
	line-height: 1.55;
}

.sol__notes {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 22px;
	padding: 0;
	color: var(--c-text);
	font-size: 15px;
	line-height: 1.55;
	list-style: none;
}

.sol__notes li {
	display: flex;
	gap: 10px;
}

.sol__notes svg {
	margin-top: 2px;
	color: var(--c-green);
}

.sol__disclaimer {
	margin-bottom: 22px;
	color: var(--c-muted);
	font-size: 13.5px;
	line-height: 1.55;
}

.sol__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	padding: 20px 22px;
	border-radius: var(--radius-lg);
	background: var(--c-dark);
	color: var(--c-on-dark-2);
	font-size: 14.5px;
	line-height: 1.5;
}

.sol__cta > div {
	flex: 1 1 260px;
}

.sol__cta-title {
	margin-bottom: 4px;
	color: var(--c-on-dark);
	font-family: var(--f-serif);
	font-size: 21px;
	font-weight: 600;
}

.sol__cta .btn {
	white-space: normal;
}

/* State table
   ========================================================================== */

.tool-table {
	padding: clamp(40px, 5vw, 64px) 0;
	border-top: 1px solid var(--c-line);
	background: var(--c-surface);
}

.tool-table__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 32px;
	margin-bottom: 24px;
}

.tool-table__head h2 {
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.1;
}

.tool-table__head > p {
	max-width: 440px;
	color: var(--c-muted);
	font-size: 14px;
	line-height: 1.5;
}

.tool-table__eyebrow {
	margin-bottom: 10px;
}

.tool-table__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
	gap: 0 28px;
}

.tool-table__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 44px;
	padding: 10px 2px;
	border: 0;
	border-bottom: 1px solid var(--c-line-2);
	background: none;
	color: var(--c-ink);
	font-size: 15px;
	text-align: left;
	cursor: pointer;
}

.tool-table__row:hover {
	background: var(--c-bg);
	color: var(--c-green);
}

.tool-table__years {
	color: var(--c-green);
	font-family: var(--f-mono);
	font-size: 13px;
	font-weight: 500;
}

.tool-table__years.is-short {
	color: var(--c-accent);
}

/* FAQ (body section.faq-block, same markup as guides)
   ========================================================================== */

.tool-faq {
	padding: clamp(40px, 5vw, 64px) 0;
	border-top: 1px solid var(--c-line);
}

.tool-faq .faq-block > h2 {
	margin-bottom: 12px;
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.1;
}

.tool-faq .faq-block > p {
	margin-bottom: 16px;
	color: var(--c-text-2);
	font-size: 15.5px;
	line-height: 1.6;
}

/* Title + intro on the left, questions on the right. Floats (not grid rows), so opening a
   question never stretches the left column. */
@media (min-width: 900px) {
	.tool-faq .faq-block {
		--faq-gap: clamp(24px, 4vw, 56px);
		--faq-left: calc((100% - var(--faq-gap)) / 3);
		display: flow-root;
	}

	.tool-faq .faq-block > h2,
	.tool-faq .faq-block > p {
		float: left;
		clear: left;
		width: var(--faq-left);
	}

	.tool-faq .faq-block > details {
		margin-left: calc(var(--faq-left) + var(--faq-gap));
	}
}

.tool-faq details {
	border-bottom: 1px solid var(--c-line);
}

.tool-faq details:first-of-type {
	border-top: 1px solid var(--c-line);
}

.tool-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0;
	color: var(--c-ink);
	font-family: var(--f-serif);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}

/* Questions are <h3> inside <summary> (required for every FAQ). */
.tool-faq summary h3 {
	margin: 0;
	color: inherit;
	font: inherit;
}

.tool-faq summary:hover {
	color: var(--c-green);
}

.tool-faq summary::after {
	content: "";
	flex: 0 0 30px;
	height: 30px;
	border: 1px solid var(--c-line-strong);
	border-radius: 50%;
	background: var(--icon-plus) center / 14px no-repeat;
	transition: transform .2s;
}

.tool-faq details[open] summary::after {
	transform: rotate(45deg);
}

.tool-faq details p {
	padding: 0 46px 22px 0;
	color: var(--c-text);
	font-size: 16px;
	line-height: 1.65;
}

/* Shared by the tool templates (moved from page-tool-settlement-calculator.css)
   ========================================================================== */

/* Header: intro + check list on the right */
.tool-head__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 56px;
}

.tool-head__row .tool-head__main {
	max-width: 760px;
}

.tool-checks {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	color: var(--c-text);
	font-size: 14.5px;
	list-style: none;
}

.tool-checks li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tool-checks li::before {
	content: "";
	flex: 0 0 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F45A8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Sidebar: "How the estimate works" */
.tool-how {
	padding-top: 16px;
	border-top: 1px solid var(--c-line);
}

.tool-how h2 {
	margin-bottom: 12px;
	color: var(--c-ink);
	font-family: var(--f-serif);
	font-size: clamp(21px, 2vw, 25px);
	font-weight: 600;
	letter-spacing: -.01em;
	text-transform: none;
}

.tool-how ol {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	color: var(--c-text);
	font-size: 14.5px;
	line-height: 1.5;
	list-style: none;
	counter-reset: how;
}

.tool-how li {
	display: flex;
	gap: 12px;
	counter-increment: how;
}

.tool-how li::before {
	content: counter(how, decimal-leading-zero);
	color: var(--c-manila-text);
	font-family: var(--f-mono);
}

/* Lawyer block + related links */
.tool-lawyer {
	padding-bottom: clamp(40px, 5vw, 64px);
}

.tool-more {
	padding: clamp(40px, 5vw, 64px) 0;
	border-top: 1px solid var(--c-line);
	background: var(--c-surface);
}

.tool-more__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 40px;
}

.tool-links h2 {
	margin-bottom: 16px;
	font-size: clamp(24px, 2.6vw, 30px);
}

.tool-links ul {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--c-line);
	list-style: none;
}

.tool-links li {
	border-bottom: 1px solid var(--c-line);
}

.tool-links a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	color: var(--c-ink);
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
}

.tool-links a:hover {
	color: var(--c-green);
}

.tool-links--tools a::after {
	content: "→";
	color: var(--c-muted);
}
