/* The site's top bar (top.html), the same on every page outside the app. Every rule is under
   .site-top, and every colour falls back to the wall's own, so it looks the same whatever
   stylesheet the page around it brings. */

/* A page with the bar always keeps the scrollbar's room, so going between a long page and a
   short one (or a page that grows as it loads) never moves the bar or anything under it. */
html:has(.site-top) {
	scrollbar-gutter: stable;
}
.site-top {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 22px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 22px 48px;
	font-family: var(--font-ui, 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
	line-height: 1.3;
}
.site-top .brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 17px;
	font-weight: 800;
	color: var(--ink, #2b2622);
	text-decoration: none;
}
.site-top .mark {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 4px;
	background: var(--card-yellow, #ffe86b);
	color: var(--ink, #2b2622);
	transform: rotate(-6deg);
	font-size: 16px;
	font-weight: 900;
	box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.15);
}
.site-top nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 26px;
}
.site-top nav a {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink-soft, #6b6560);
	text-decoration: none;
}
.site-top nav a:hover,
.site-top nav a[aria-current='page'] {
	color: var(--ink, #2b2622);
}
.site-top nav a:hover {
	text-decoration: underline;
}
/* the page you are on: a stroke of marker under its name */
.site-top nav a[aria-current='page'] {
	box-shadow: inset 0 -3px 0 var(--card-yellow, #ffe86b);
}
.site-top nav a.strong {
	font-weight: 700;
	color: var(--ink, #2b2622);
}
/* the face of whoever is signed in, beside "Your boards" */
.site-top nav a .face {
	width: 22px;
	height: 22px;
	margin-right: 8px;
	border-radius: 50%;
	vertical-align: -6px;
	object-fit: cover;
}
@media (max-width: 760px) {
	.site-top {
		padding: 16px 20px;
	}
	.site-top nav {
		gap: 6px 16px;
	}
	.site-top nav a {
		font-size: 13px;
	}
}
