.sts-tool {
	--sts-charcoal: #1A1D20;
	--sts-navy: #0A192F;
	--sts-red: #E63946;
	--sts-offwhite: #F8F9FA;

	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: var(--sts-offwhite);
	color: var(--sts-charcoal);
	border: 1px solid rgba(10, 25, 47, 0.12);
	border-radius: 8px;
	padding: 2rem;
	max-width: 720px;
	margin: 0 auto;
	box-sizing: border-box;
}

.sts-tool *,
.sts-tool *::before,
.sts-tool *::after {
	box-sizing: inherit;
}

.sts-tool__title {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--sts-navy);
	margin: 0 0 0.5rem;
}

.sts-tool__lede {
	margin: 0 0 1.5rem;
	color: rgba(26, 29, 32, 0.75);
}

.sts-tool__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.sts-tool__field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--sts-navy);
}

.sts-tool__field--wide {
	grid-column: 1 / -1;
}

.sts-tool__field input {
	font-family: inherit;
	font-size: 1rem;
	padding: 0.6rem 0.75rem;
	border: 1px solid rgba(10, 25, 47, 0.25);
	border-radius: 6px;
	background: #fff;
	color: var(--sts-charcoal);
	width: 100%;
}

.sts-tool__field input:focus {
	outline: 2px solid var(--sts-navy);
	outline-offset: 1px;
}

.sts-tool__limit {
	font-weight: 400;
	color: rgba(26, 29, 32, 0.55);
}

.sts-tool__submit {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 700;
	font-size: 1rem;
	background: var(--sts-red);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 0.75rem 2rem;
	cursor: pointer;
}

.sts-tool__submit:hover {
	filter: brightness(0.92);
}

.sts-tool__results {
	margin-top: 2rem;
}

.sts-tool__overall {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 700;
	font-size: 1.125rem;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	margin-bottom: 1rem;
}

.sts-tool__overall--pass {
	background: rgba(46, 160, 67, 0.12);
	color: #1a7431;
}

.sts-tool__overall--exceeded {
	background: rgba(230, 57, 70, 0.12);
	color: var(--sts-red);
}

.sts-tool__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.sts-tool__table th,
.sts-tool__table td {
	text-align: left;
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid rgba(10, 25, 47, 0.1);
}

.sts-tool__status--pass {
	color: #1a7431;
	font-weight: 700;
}

.sts-tool__status--exceeded {
	color: var(--sts-red);
	font-weight: 700;
}

.sts-tool__notice {
	background: rgba(10, 25, 47, 0.05);
	border-left: 3px solid var(--sts-navy);
	padding: 1rem;
	border-radius: 4px;
}

.sts-tool__disclaimer {
	margin-top: 1.5rem;
	font-size: 0.8rem;
	color: rgba(26, 29, 32, 0.55);
}
