.wtd-article {
	--wtd-accent: #0b63ce;
	--wtd-ink: #172033;
	--wtd-muted: #5c6678;
	--wtd-border: #dbe3ee;
	--wtd-soft: #f4f8fc;
	--wtd-purple: #7c3aed;
	--wtd-teal: #06b6a4;
	--wtd-orange: #f97316;
}

.wtd-article .wtd-update,
.wtd-article .wtd-answer,
.wtd-article .wtd-sources,
.wtd-article .wtd-cta {
	border: 1px solid var(--wtd-border);
	border-radius: 12px;
	padding: 1rem 1.1rem;
	background: var(--wtd-soft);
}

.wtd-article .wtd-answer {
	border-left: 4px solid var(--wtd-accent);
}

.wtd-article .wtd-tool {
	margin: 2rem 0;
	padding: 1.2rem;
	border: 1px solid var(--wtd-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(23, 32, 51, .06);
	position: relative;
	overflow: hidden;
}

.wtd-article .wtd-tool::before {
	content: '';
	display: block;
	height: 5px;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: linear-gradient(90deg, var(--wtd-accent), var(--wtd-purple), var(--wtd-teal));
}

.wtd-article .wtd-tool h2 {
	margin-bottom: .45rem;
	font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}

.wtd-article .wtd-table-tool {
	background: linear-gradient(145deg, #f2f7ff 0%, #ffffff 58%, #f6f1ff 100%);
}

.wtd-article .wtd-checklist-tool {
	background: linear-gradient(145deg, #effdf8 0%, #ffffff 60%, #fff5fb 100%);
}

.wtd-article .wtd-calculator {
	background: linear-gradient(145deg, #f4f0ff 0%, #ffffff 54%, #eafffb 100%);
}

.wtd-article .wtd-tool h2 {
	margin-top: 0;
	color: var(--wtd-ink);
}

.wtd-article .wtd-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.wtd-article .wtd-table {
	width: 100%;
	min-width: 620px;
	border-collapse: collapse;
	font-size: .95rem;
}

.wtd-article .wtd-table th,
.wtd-article .wtd-table td {
	padding: .75rem .8rem;
	border-bottom: 1px solid var(--wtd-border);
	text-align: left;
	vertical-align: top;
}

.wtd-article .wtd-table th {
	background: var(--wtd-soft);
	color: var(--wtd-ink);
}

.wtd-article .wtd-sort-button {
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.wtd-article .wtd-sort-button::after {
	content: ' ↕';
	color: var(--wtd-accent);
}

.wtd-article .wtd-sort-button[aria-sort='ascending']::after {
	content: ' ↑';
}

.wtd-article .wtd-sort-button[aria-sort='descending']::after {
	content: ' ↓';
}

.wtd-article .wtd-field {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	margin: .65rem 0;
	font-weight: 600;
	color: var(--wtd-ink);
}

.wtd-article .wtd-field input {
	box-sizing: border-box;
	max-width: 100%;
	padding: .7rem .75rem;
	border: 1px solid #aebbd0;
	border-radius: 8px;
	background: #fff;
	color: var(--wtd-ink);
}

.wtd-article .wtd-field input:focus,
.wtd-article .wtd-sort-button:focus-visible,
.wtd-article .wtd-check-item:focus-visible {
	outline: 3px solid rgba(11, 99, 206, .28);
	outline-offset: 2px;
}

.wtd-article .wtd-checklist {
	padding-left: 0;
	list-style: none;
}

.wtd-article .wtd-checklist li {
	margin: .6rem 0;
}

.wtd-article .wtd-checklist label {
	display: flex;
	gap: .55rem;
	align-items: flex-start;
	font-weight: 500;
}

.wtd-article .wtd-check-item {
	margin-top: .2rem;
	accent-color: var(--wtd-accent);
}

.wtd-article .wtd-progress-bar {
	display: block;
	height: 8px;
	margin: .8rem 0 .4rem;
	border-radius: 999px;
	background: #e8eef6;
	overflow: hidden;
}

.wtd-article .wtd-progress-bar span {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: var(--wtd-accent);
	transition: width .2s ease;
}

.wtd-article .wtd-progress-text,
.wtd-article .wtd-table-status,
.wtd-article .wtd-result-box small {
	color: var(--wtd-muted);
}

.wtd-article .wtd-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .4rem 1rem;
}

.wtd-article .wtd-result-box {
	display: grid;
	gap: .35rem;
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 10px;
	background: #eef6ff;
	color: var(--wtd-ink);
}

.wtd-article .wtd-result-box output {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--wtd-accent);
}

.wtd-article .wtd-result-box {
	background: linear-gradient(135deg, #e9e1ff, #dcfbf5);
	border: 1px solid rgba(124, 58, 237, .18);
}

.wtd-article .wtd-progress-bar span {
	background: linear-gradient(90deg, var(--wtd-teal), #84cc16, var(--wtd-orange));
}

.wtd-article .wtd-related,
.wtd-article .wtd-quick-card {
	border-radius: 14px;
	border: 1px solid var(--wtd-border);
	box-shadow: 0 7px 20px rgba(23, 32, 51, .06);
}

.wtd-article .wtd-related {
	margin: 1.25rem 0 1.75rem;
	padding: 1rem 1.15rem;
	background: #fff9ec;
	border-color: #fed7aa;
}

.wtd-article .wtd-related strong {
	display: block;
	color: #c2410c;
	font-size: 1.05rem;
}

.wtd-article .wtd-related p {
	margin: .35rem 0;
}

.wtd-article .wtd-related ul {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .55rem 1rem;
	margin: .75rem 0 0;
	padding-left: 1.35rem;
	list-style-position: outside;
}

.wtd-article .wtd-related li {
	padding-left: .2rem;
}

.wtd-article .wtd-related a {
	font-weight: 700;
	color: #9a3412;
}

.wtd-article .wtd-quick-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .8rem;
	margin: 1.25rem 0 1.5rem;
}

.wtd-article .wtd-quick-card {
	display: grid;
	gap: .4rem;
	padding: .95rem;
	background: linear-gradient(145deg, #ffffff, #f7faff);
}

.wtd-article .wtd-quick-card:nth-child(2) {
	background: linear-gradient(145deg, #fff8ed, #fff);
	border-color: #fed7aa;
}

.wtd-article .wtd-quick-card:nth-child(3) {
	background: linear-gradient(145deg, #f0fdfa, #fff);
	border-color: #99f6e4;
}

.wtd-article .wtd-quick-card strong {
	color: var(--wtd-ink);
}

.wtd-article .wtd-quick-card span {
	color: var(--wtd-muted);
	font-size: .94rem;
}

.wtd-article .wtd-hero-media {
	margin: 1.25rem 0 1.75rem;
	border-radius: 18px;
	overflow: hidden;
	background: #eef5ff;
	box-shadow: 0 12px 30px rgba(23, 32, 51, .1);
}

.wtd-article .wtd-hero-media img {
	display: block;
	width: 100%;
	height: clamp(190px, 32vw, 360px);
	object-fit: cover;
}

.wtd-article .wtd-hero-media figcaption {
	padding: .65rem .85rem;
	color: var(--wtd-muted);
	font-size: .86rem;
}

.wtd-article .wtd-inline-media {
	max-width: 920px;
	margin: 1.6rem auto 1.9rem;
	border: 1px solid #dbe3ee;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 24px rgba(23, 32, 51, .08);
}

.wtd-article .wtd-inline-media img {
	display: block;
	width: 100%;
	height: clamp(170px, 25vw, 300px);
	object-fit: cover;
}

.wtd-article .wtd-inline-media figcaption {
	padding: .65rem .9rem;
	color: var(--wtd-muted);
	font-size: .88rem;
}

.wtd-article .wtd-contact-panel {
	margin: 1.25rem 0 1.7rem;
	padding: 1.15rem;
	border-radius: 18px;
	background: linear-gradient(135deg, #f8fbff 0%, #ffffff 48%, #f4f0ff 100%);
	border: 1px solid #dce5f3;
	box-shadow: 0 12px 28px rgba(23, 32, 51, .09);
}

.wtd-article .wtd-contact-panel--alt {
	margin-top: 2.2rem;
	background: linear-gradient(135deg, #fffaf0 0%, #ffffff 48%, #eefcf8 100%);
	border-color: #f2d6a7;
}

.wtd-article .wtd-contact-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: .9rem;
}

.wtd-article .wtd-contact-heading strong {
	color: #1735d5;
	font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

.wtd-article .wtd-contact-heading span {
	color: var(--wtd-muted);
	font-size: .93rem;
}

.wtd-article .wtd-contact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
}

.wtd-article .wtd-contact-card {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .65rem;
	min-height: 54px;
	padding: .75rem 1rem;
	border-radius: 10px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.wtd-article .wtd-contact-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 7px 16px rgba(23, 32, 51, .13);
	filter: saturate(1.08);
}

.wtd-article .wtd-contact-card--outline {
	background: #fff;
	border: 1px solid #e2e8f0;
	color: #172033;
}

.wtd-article .wtd-contact-card--quote {
	background: linear-gradient(135deg, #4bd267, #31c65c);
	color: #fff;
}

.wtd-article .wtd-contact-card--whatsapp {
	background: linear-gradient(135deg, #16c83a, #00a928);
	color: #fff;
}

.wtd-article .wtd-contact-icon {
	display: inline-grid;
	place-items: center;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 50%;
	background: #dceeff;
	color: #1769c2;
	font-size: 1.1rem;
}

.wtd-article .wtd-contact-card--quote .wtd-contact-icon,
.wtd-article .wtd-contact-card--whatsapp .wtd-contact-icon {
	background: rgba(255, 255, 255, .22);
	color: #fff;
}

.wtd-article .wtd-topic-tool {
	background: linear-gradient(145deg, #fff4fa 0%, #ffffff 50%, #edf9ff 100%);
	border-color: #e6c9e4;
}

.wtd-article .wtd-topic-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .7rem 1rem;
}

.wtd-article .wtd-topic-field {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	font-weight: 700;
	color: var(--wtd-ink);
}

.wtd-article .wtd-topic-field input,
.wtd-article .wtd-topic-field select {
	width: 100%;
	box-sizing: border-box;
	min-height: 42px;
	padding: .6rem .7rem;
	border: 1px solid #b8c7dd;
	border-radius: 9px;
	background: #fff;
	color: var(--wtd-ink);
}

.wtd-article .wtd-topic-field input[type='range'] {
	padding: 0;
	accent-color: var(--wtd-purple);
}

.wtd-article .wtd-topic-field output {
	color: var(--wtd-purple);
	font-size: .85rem;
	font-weight: 800;
}

.wtd-article .wtd-topic-check {
	display: flex;
	align-items: flex-start;
	gap: .55rem;
	padding: .65rem .7rem;
	border: 1px solid #f1cce5;
	border-radius: 10px;
	background: rgba(255, 255, 255, .82);
	font-weight: 600;
}

.wtd-article .wtd-topic-check input {
	margin-top: .2rem;
	accent-color: var(--wtd-purple);
}

.wtd-article .wtd-topic-result {
	display: grid;
	gap: .3rem;
	margin-top: 1rem;
	padding: .9rem 1rem;
	border-radius: 12px;
	background: linear-gradient(135deg, #ede7ff, #e8fbff);
	border: 1px solid #d8d2f9;
}

.wtd-article .wtd-topic-result output {
	color: #5133bf;
	font-size: 1.16rem;
	font-weight: 800;
}

.wtd-article .wtd-topic-result small {
	color: var(--wtd-muted);
}

.wtd-article .wtd-serp-preview {
	grid-column: 1 / -1;
	padding: .85rem 1rem;
	border: 1px solid #d9e3f0;
	border-radius: 10px;
	background: #fff;
}

.wtd-article .wtd-serp-preview strong,
.wtd-article .wtd-serp-preview span,
.wtd-article .wtd-serp-preview p {
	display: block;
	margin: .25rem 0;
}

.wtd-article .wtd-serp-preview strong {
	color: #1a0dab;
	font-size: 1.05rem;
}

.wtd-article .wtd-serp-preview span {
	color: #168039;
	font-size: .84rem;
}

.wtd-article .wtd-serp-preview p {
	color: #4d5156;
	font-size: .9rem;
}

.wtd-article .wtd-steps {
	padding-left: 1.4rem;
}

.wtd-article .wtd-steps li {
	margin: .6rem 0;
}

@media (max-width: 640px) {
	.wtd-article .wtd-tool {
		padding: .9rem;
	}

	.wtd-article .wtd-fields {
		grid-template-columns: 1fr;
	}

	.wtd-article .wtd-quick-grid {
		grid-template-columns: 1fr;
	}

	.wtd-article .wtd-related ul {
		display: block;
	}

	.wtd-article .wtd-contact-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: .25rem;
	}

	.wtd-article .wtd-contact-grid,
	.wtd-article .wtd-topic-fields {
		grid-template-columns: 1fr;
	}

	.wtd-article .wtd-contact-card {
		min-height: 50px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wtd-article .wtd-progress-bar span {
		transition: none;
	}
}

.wtd-article .wtd-helper-tool {
	background: linear-gradient(145deg, #f3f8ff 0%, #ffffff 52%, #fff6ed 100%);
	border-color: #bfd4ef;
}

.wtd-article .wtd-helper-tool .wtd-topic-result {
	background: linear-gradient(135deg, #e8f2ff, #fff4df);
	border-color: #bfd4ef;
}

/* Topic-specific helper variants make the two tools in an article visibly distinct. */
.wtd-article .wtd-helper-tool--checklist {
	background: linear-gradient(145deg, #effdf8 0%, #ffffff 52%, #fff1f7 100%);
	border-color: #a9d8c6;
}

.wtd-article .wtd-helper-tool--checklist .wtd-topic-result {
	background: linear-gradient(135deg, #e5fbf2, #fff1f7);
	border-color: #a9d8c6;
}

.wtd-article .wtd-helper-tool--calculator {
	background: linear-gradient(145deg, #fff8e8 0%, #ffffff 50%, #eef4ff 100%);
	border-color: #e5c47d;
}

.wtd-article .wtd-helper-tool--calculator .wtd-topic-result {
	background: linear-gradient(135deg, #fff2c9, #e9f1ff);
	border-color: #e5c47d;
}

.wtd-article .wtd-helper-tool--simulator {
	background: linear-gradient(145deg, #f1edff 0%, #ffffff 52%, #e9fbff 100%);
	border-color: #b9a9e4;
}

.wtd-article .wtd-helper-tool--simulator .wtd-topic-result {
	background: linear-gradient(135deg, #eee7ff, #e1f8ff);
	border-color: #b9a9e4;
}

.wtd-article .wtd-helper-tool--composer {
	background: linear-gradient(145deg, #fff0f5 0%, #ffffff 52%, #fff9e9 100%);
	border-color: #e3b6c8;
}

.wtd-article .wtd-helper-tool--composer .wtd-topic-result {
	background: linear-gradient(135deg, #ffe7f0, #fff4d8);
	border-color: #e3b6c8;
}

.wtd-article .wtd-helper-tool--tester {
	background: linear-gradient(145deg, #eafaff 0%, #ffffff 52%, #f3f7ff 100%);
	border-color: #9bcddd;
}

.wtd-article .wtd-helper-tool--tester .wtd-topic-result {
	background: linear-gradient(135deg, #ddf7ff, #edf0ff);
	border-color: #9bcddd;
}

.wtd-article .wtd-helper-tool--map {
	background: linear-gradient(145deg, #f2fff0 0%, #ffffff 52%, #fff8e8 100%);
	border-color: #b8d38e;
}

.wtd-article .wtd-helper-tool--map .wtd-topic-result {
	background: linear-gradient(135deg, #eaffdf, #fff1cf);
	border-color: #b8d38e;
}

.wtd-article .wtd-chart-tool {
	background: linear-gradient(145deg, #f5f1ff 0%, #ffffff 48%, #effcf6 100%);
	border-color: #cfc4f3;
}

.wtd-article .wtd-chart-plot {
	min-height: 250px;
	margin-top: 1rem;
	padding: 1rem 1rem .75rem;
	border: 1px solid #d8d8ef;
	border-radius: 14px;
	background: linear-gradient(180deg, #fff, #f8f8ff);
}

/* The chart markup uses .wtd-chart-bars. Keep the bars side by side so the
 * comparison is readable instead of collapsing into a vertical list. */
.wtd-article .wtd-chart-bars {
	display: flex;
	align-items: flex-end;
	justify-content: space-around;
	gap: .75rem;
	height: 270px;
	min-height: 0;
	margin-top: 1rem;
	padding: 1rem 1rem 2.35rem;
	box-sizing: border-box;
	border: 1px solid #d8d8ef;
	border-radius: 14px;
	border-bottom: 2px solid #9da5bd;
	background: repeating-linear-gradient(to top, transparent 0, transparent 51px, rgba(91, 102, 138, .13) 52px), linear-gradient(180deg, #fff, #f8f8ff);
}

.wtd-article .wtd-chart-bars .wtd-chart-bar {
	flex: 1 1 0;
}

.wtd-article .wtd-chart-columns {
	display: flex;
	align-items: flex-end;
	justify-content: space-around;
	gap: .75rem;
	height: 210px;
	padding: 0 .4rem;
	border-bottom: 2px solid #9da5bd;
	background: repeating-linear-gradient(to top, transparent 0, transparent 51px, rgba(91, 102, 138, .13) 52px);
}

.wtd-article .wtd-chart-bar {
	position: relative;
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-width: 40px;
	max-width: 86px;
	min-height: 24px;
	padding-top: .35rem;
	border-radius: 10px 10px 0 0;
	background: linear-gradient(180deg, #744de4, #3d9be9);
	box-shadow: 0 5px 14px rgba(72, 61, 153, .18);
	transition: height .25s ease, filter .2s ease;
}

.wtd-article .wtd-chart-bar:nth-child(2) {
	background: linear-gradient(180deg, #f39b3d, #f05d7a);
}

.wtd-article .wtd-chart-bar:nth-child(3) {
	background: linear-gradient(180deg, #22b573, #168ac1);
}

.wtd-article .wtd-chart-bar:nth-child(4) {
	background: linear-gradient(180deg, #ee5eaa, #7b50cf);
}

.wtd-article .wtd-chart-bar:hover {
	filter: saturate(1.18) brightness(1.06);
}

.wtd-article .wtd-chart-value {
	color: #fff;
	font-size: .8rem;
	font-weight: 800;
}

.wtd-article .wtd-chart-bar small {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translate(-50%, 1.15rem);
	width: 7rem;
	color: var(--wtd-ink);
	font-size: .76rem;
	font-weight: 700;
	text-align: center;
}

.wtd-article .wtd-chart-tool .wtd-topic-result {
	margin-bottom: .25rem;
}

@media (max-width: 640px) {
	.wtd-article .wtd-chart-plot {
		padding-left: .45rem;
		padding-right: .45rem;
	}

	.wtd-article .wtd-chart-columns {
		gap: .3rem;
	}

	.wtd-article .wtd-chart-bars {
		gap: .3rem;
		padding-left: .45rem;
		padding-right: .45rem;
	}

	.wtd-article .wtd-chart-bar small {
		width: 5rem;
		font-size: .68rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wtd-article .wtd-chart-bar {
		transition: none;
	}
}
