/*
 * Light and dark switch.
 *
 * The button ships as the pattern "Light and dark switch" and is placed in the
 * header. It only shows when the color scheme is set to "Visitor chooses",
 * which puts data-takt-scheme-mode="user" on the html element. In the editor
 * the rule below is scoped away, so the button stays visible while editing.
 */
html:not([data-takt-scheme-mode="user"]) .takt-scheme-toggle {
	display: none;
}
.takt-scheme-toggle__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
}
.takt-scheme-toggle__button:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.takt-scheme-toggle__button:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }
.takt-scheme-toggle__moon { display: none; }
html[data-takt-scheme="dark"] .takt-scheme-toggle__sun { display: none; }
html[data-takt-scheme="dark"] .takt-scheme-toggle__moon { display: block; }
