
.color-scheme {
	border: 0;
	padding: 0;
	display: flex;
	gap: var(--space-size-xs);
	justify-content: flex-end;

	legend {
		position:absolute;
		clip:rect(0 0 0 0);
	}

	input[name="color-scheme"] {
		position:absolute;
		clip:rect(0 0 0 0);
	}

	label {
		cursor: pointer;

		&:has(:not(:checked)) {
			color: var(--color-disabled);
		}

	

		&:has(:focus-visible) {
			outline: 1px solid var(--color-primary);
			outline-offset: 4px;
			border-radius: 5%;
		}


		&::before {
			font-family: "font awesome 6 free";
			font-style: normal;
			font-variant: normal;
			text-rendering: auto;
			font-weight: 900;
			-webkit-font-smoothing: antialiased;
			font-size: var(--text-size-s);
		}

		&:has([value="dark"]) {
			&::before {
				content: "\f186";
			}
		}

		&:has([value="light"]) {
			&::before {
				content: "\f185";
			}
		}

		&:has([value="system"]) {
			&::before {
				content: "\f390";
			}
		}

		&:has(:checked)::before {
			text-shadow: var(--color-decoration) 1px 0 10px;
		}
	}
}