/* The glyph on every light / dark button: a sun while the site is dark, a moon while it is light (the mode a click switches to).
   One empty element, <span class="theme-icon" aria-hidden="true"></span>, inside the button: no icon font, and no script to swap it, since it follows
   <html data-bs-theme> (set by theme.js). The drawing is used as a mask over currentColor, so it takes the button's text color.
   Size follows the button's font size; a page that wants it bigger or smaller sets width and height on its own selector. Both drawings are on a 30x30 grid
   with 2-unit strokes, like Bootstrap's three-line menu icon. In the url()s, < and > are written %3c and %3e.

   Loaded by views/theme-head.ejs. Static files are cached for a year: after changing this file, bump its ?v= there. */
.theme-icon {
	--theme-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3e%3ccircle cx='15' cy='15' r='5.5'/%3e%3cpath d='M15 3.5v3M15 23.5v3M3.5 15h3M23.5 15h3M6.9 6.9 9 9M21 21l2.1 2.1M6.9 23.1 9 21M21 9l2.1-2.1'/%3e%3c/svg%3e");
	display: inline-block;
	width: 1.3em;
	height: 1.3em;
	vertical-align: middle;
	background-color: currentColor;
	-webkit-mask: var(--theme-icon) center / contain no-repeat;
	mask: var(--theme-icon) center / contain no-repeat;
}
[data-bs-theme="light"] .theme-icon {
	--theme-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3e%3cpath d='M25.5 18A11.5 11.5 0 0 1 12 4.5 11.5 11.5 0 1 0 25.5 18Z'/%3e%3c/svg%3e");
}
/* high-contrast modes replace background colors, which would make the glyph disappear */
@media (forced-colors: active) {
	.theme-icon { forced-color-adjust: none; background-color: ButtonText; }
}
