/* The figures' own look, every iframe's, maths.html's and the cs600 posts':
   the desktop's type, and Windows 98's controls as the programs draw them
   (_sass/_programs.scss). A figure is a page of its own, so the stylesheet's
   tokens are restated here */
:root {
	--face: #bfb8bf;
	--shade: #7f787f;
	--on: #d4d0d4;
	--navy: #000080;
	--mute: #4d4852;
	--ui: "Helvetica Neue", Arial, sans-serif;
	--mono: "Lucida Console", Menlo, Monaco, monospace;
}
body {
	margin: 0;
	background: #ffffff;
	color: var(--mute);
	font: 11px var(--ui);
}
button, input, select {
	font: inherit;
}

/* a button, raised, and held in while pressed or on */
.fig-btn {
	height: 20px;
	padding: 0 8px;
	background: var(--face);
	border: 2px solid;
	border-color: #ffffff #000000 #000000 #ffffff;
	color: #000000;
	cursor: pointer;
}
.fig-btn:active, .fig-btn[aria-pressed="true"] {
	border-color: #000000 #ffffff #ffffff #000000;
	background: var(--on);
}
.fig-btn:focus-visible {
	outline: 1px dotted #000000;
	outline-offset: -5px;
}

/* a slider as Windows 98's trackbar: a sunken groove, a raised thumb */
input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	height: 18px;
	margin: 0;
	background: none;
	cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
	height: 2px;
	background: #ffffff;
	border: 1px solid;
	border-color: var(--shade) #ffffff #ffffff var(--shade);
	box-shadow: inset 1px 1px 0 #404040;
}
input[type="range"]::-moz-range-track {
	height: 2px;
	background: #ffffff;
	border: 1px solid;
	border-color: var(--shade) #ffffff #ffffff var(--shade);
}
input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 9px;
	height: 16px;
	margin-top: -8px;
	background: var(--face);
	border: 2px solid;
	border-color: #ffffff #000000 #000000 #ffffff;
}
input[type="range"]::-moz-range-thumb {
	box-sizing: border-box;
	width: 9px;
	height: 16px;
	border-radius: 0;
	background: var(--face);
	border: 2px solid;
	border-color: #ffffff #000000 #000000 #ffffff;
}
input[type="range"]:focus-visible {
	outline: 1px dotted #000000;
	outline-offset: 1px;
}

/* a select and a checkbox sunken, as Windows 98 sinks a field; the box's
   tick drawn pixel for pixel as Windows 9x's */
select {
	height: 20px;
	padding: 0 1px;
	background: #ffffff;
	border: 1px solid;
	border-color: var(--shade) #ffffff #ffffff var(--shade);
	box-shadow: inset 1px 1px 0 #404040;
	border-radius: 0;
	color: #000000;
}
input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	width: 13px;
	height: 13px;
	margin: 0;
	background: #ffffff no-repeat 2px 2px;
	border: 1px solid;
	border-color: var(--shade) #ffffff #ffffff var(--shade);
	box-shadow: inset 1px 1px 0 #404040;
	cursor: pointer;
}
input[type="checkbox"]:checked {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' shape-rendering='crispEdges'%3E%3Cpath d='M6 0h1v1H6zM5 1h2v1H5zM0 2h1v1H0zM4 2h3v1H4zM0 3h2v1H0zM3 3h3v1H3zM0 4h5v1H0zM1 5h3v1H1zM2 6h1v1H2z'/%3E%3C/svg%3E");
}
input[type="checkbox"]:focus-visible {
	outline: 1px dotted #000000;
	outline-offset: 1px;
}
