/* Global font size: Material's default is 125% on large screens, 100% on small */
:root {
	--md-text-font-size: 0.8rem;
}

html {
	/* default is 125%; lower = smaller everything */
	font-size: 100%;
}

/* Line spacing for body content */
.md-typeset {
	/* base text size inside articles */
	font-size: 0.9rem;
	/* default is 1.6 */
	line-height: 1.5;
}

/* Tighter spacing in lists and between paragraphs */
.md-typeset p,
.md-typeset ul,
.md-typeset ol {
	margin-block: 0.6em;
}

.md-typeset li {
	margin-bottom: 0.2em;
}

.md-nav {
	font-size: 0.9rem;
	line-height: 1.1;
}

.md-grid {
	/* default is 61rem */
	max-width: 100rem;
}

@media screen and (min-width: 76.25em) {
	.md-sidebar--primary {
		width: 24rem; /* adjust to taste */
	}

	/* Cancel Material's padding that keeps the nav at its old width */
	[dir=ltr] .md-sidebar--primary .md-sidebar__inner {
		padding-right: 0;
	}

	/* Let long titles wrap instead of showing "..." */
	.md-sidebar--primary .md-nav__link .md-ellipsis {
		overflow: visible;
		text-overflow: clip;
		white-space: normal;
	}
}

.md-nav__title {
	font-size: 120%;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
	height: 1.6rem;
	width: auto;
}

/* Space between list items */
.md-typeset ul li,
.md-typeset ol li {
	/* Material default is 0.5em; use 0 for none */
	margin-bottom: 0.2em;
}

/*.md-typeset h1, .md-typeset h2*/
div.md-content h1,
div.md-content h2,
div.md-content h3,
div.md-content h4,
div.md-content h5,
div.md-content h6 {
	font-weight: bold;
	letter-spacing: unset;
}

.md-header, .md-footer-meta {
	background-color: darkblue;
	background-image: linear-gradient(to top, #1e3c72 0%, #1e3c72 1%, #2a5298 100%);
}

/* Light mode: light gray page background */
[data-md-color-scheme="default"] {
	/* default is #fff */
	--md-default-bg-color: #efefef;
	/* default #f5f5f5, which would blend in on gray */
	--md-code-bg-color: #e0e0e0;
}

.md-copyright {
	/* height of one text line */
	--footer-line: 1.3rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

/* ".md-copyright" prefix is needed to beat Material's ".md-typeset img" rule */
.md-copyright .md-copyright__logo {
	/* = height of the two text lines */
	height: calc(2 * var(--footer-line));
	width: auto;
	flex-shrink: 0;
}

.md-copyright .md-copyright__text {
	line-height: var(--footer-line);
}

.two-col {
	display: grid;
	/* e.g. 2fr 1fr for unequal widths */
	grid-template-columns: fit-content(50%) fit-content(50%);
	gap: 1rem;
	align-items: start;
}

/* Stack on small screens */
@media screen and (max-width: 45em) {
	.two-col {
		grid-template-columns: 1fr;
	}
}
