:root {
	--space: 2rem;
}

html, body {
	position: relative;
	width: 100%;
	height: 100%;
}

body {
	color: #333;
	margin: 0;
	padding: 8px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

a {
	color: rgb(0,100,200);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a:visited {
	color: rgb(0,80,160);
}

input, button, select, textarea {
	font-family: inherit;
	font-size: inherit;
	-webkit-padding: 0.4em 0;
	padding: 0.4em;
	margin: 0 0 0.5em 0;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 2px;
}

input:disabled {
	color: #ccc;
}

button {
	color: #333;
	background-color: #f4f4f4;
	outline: none;
}

button:disabled {
	color: #999;
}

button:not(:disabled):active {
	background-color: #ddd;
}

button:focus {
	border-color: #666;
}

* {
	box-sizing: border-box;
}

nav {
	box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.25);
	-webkit-box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.25);
	-moz-box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.25);
	padding: 1rem;
}

nav > * > * {
	margin-right: 2rem;
}

.cover {
	display: flex;
	flex-direction: column;
	min-block-size: 100vh;
	padding: 1rem;
}

.cover > * {
	margin-block: 1rem;
}

.cover > :first-child:not(h1) {
	margin-inline-start: 0;
}

.cover > :last-child:not(h1) {
	margin-inline-end: 0;
}

.stack > * + * {
	margin-block-start: var(--space);
}

.stack .stack {
	--space: 0.5rem;
}

.with-sidebar {
	display: flex;
	flex-wrap: wrap;
}

.sidebar {
	flex-basis: 20rem;
	flex-grow: 1;
}

/** Make sure the Logout button stays right */
nav > .sidebar {
	flex-basis: auto;
}

.not-sidebar {
	flex-basis: 0;
	flex-grow: 999;
	min-inline-size: 50%;
}

.cluster {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space, 1rem);
	justify-content: flex-start;
	align-items: center;
}


.fill {
	width: 100%;
}