/* Justify paragraph text. */
p, dd {
	text-align: justify;
}

/* Width allows table to be centered. */
table.booktabs, table.minimal {
	width: max-content;
	margin: 12px auto;
	border: none;
	margin-left: auto;
	margin-right: auto;
	border-collapse: collapse;
}

/* Lack of width allows table to be constrained to browser width. */
table.booktabs-confined {
	margin: 12px auto;
	border: none;
	margin-left: auto;
	margin-right: auto;
	border-collapse: collapse;
}

table.booktabs thead, table.booktabs-confined thead {
	background-color: transparent;
	border-top: 2px solid;
	border-bottom: 1px solid;
}

table.booktabs th, table.minimal td, table.booktabs-confined th, table.booktabs td, table.booktabs-confined td {
	background-color: transparent;
	border: none;
	padding-left: 1.5em;
}

table.booktabs tbody, table.booktabs-confined tbody {
	background-color: transparent;
	border-bottom: 2px solid;
}

tr.booktabs-ruled {
	border-bottom: 1px dotted;
}

.booktabs-right {
	text-align: right;
	padding-right: 1.5em;
}

.booktabs-center {
	text-align: center;
	padding-right: 1.5em;
}

/* See https://www.jimmybonney.com/articles/column_header_rotation_css/. */
th.booktabs-rotate {
	background-color: transparent;
	border: none;
	padding-left: 1.5em;

	height: 160px;
	width: 40px;
	min-width: 40px;
	max-width: 40px;
	position: relative;
	vertical-align: bottom;
	padding: 0;
	font-size: 12px;
	line-height: 0.8;
}

th.booktabs-rotate > div {
	position: relative;
	top: 0px;
	left: 80px; /* 160 * tan(45) / 2 = 80, where 160 is height on cell and 45 is transform angle. */
	height: 100%;
	transform: skew(-45deg,0deg);
	overflow: hidden;
	border-right: 1px solid;
}

th.booktabs-rotate > div > span {
	transform: skew(45deg,0deg) rotate(315deg);
	position: absolute;
	bottom: 30px; /* 40 cos(45) = 28 with an additional 2px margin. */
	left: 0px; /* Looked good; probably a mathematical link here as well. */
	display: inline-block;
	// width: 100%;
	width: 85px; /* 80 / cos(45) - 40 cos (45) = 85, where 80 is height of the cell, 40 is width of the cell, and 45 the transform angle. */
	text-align: left;
	white-space: nowrap;
}

/* See https://www.jimmybonney.com/articles/column_header_rotation_css/. */
th.booktabs-rotate2 {
	background-color: transparent;
	border: none;
	padding-left: 1.5em;

	height: 160px;
	width: 40px;
	min-width: 40px;
	max-width: 40px;
	position: relative;
	vertical-align: bottom;
	padding: 0;
	font-size: 12px;
	line-height: 0.8;
}

th.booktabs-rotate2 > div {
	position: relative;
	top: 0px;
	left: 80px; /* 160 * tan(45) / 2 = 80, where 160 is height on cell and 45 is transform angle. */
	height: 100%;
	transform: skew(45deg,0deg);
	overflow: hidden;
	border-right: 1px solid;
}

th.booktabs-rotate2 > div > span {
	transform: skew(-45deg,0deg) rotate(45deg);
	position: absolute;
	bottom: 115px; /* Looked good. Not sure how this relates to booktabs-rotate. */
	left: 0px; /* Looked good; probably a mathematical link here as well. */
	display: inline-block;
	// width: 100%;
	width: 85px; /* 80 / cos(45) - 40 cos (45) = 85, where 80 is height of the cell, 40 is width of the cell, and 45 the transform angle. */
	text-align: left;
	white-space: nowrap;
}

ul.checklist {
	list-style: none;
	margin-left: 1em;
	text-indent: -1em;
}

.checklist li:before {
	content: '□ ';
}

.checklist li.ungraded:before {
	content: '◉ ';
}

.checklist li.done:before {
	content: '✓ ';
}

.checklist li.failed:before {
	content: '✕ ';
}

video.fullwidth {
	width: 100%;
	height: auto;
	max-height: 100%;
}

/* Leave a little wider than default. */
.article-container {
	width: auto;
	max-width: 1024px;
}

/* Reduce vertical white space in homepage. */
.home-section {
	padding: 20px 0 20px 0;
}

#topbar-nav {
	text-align: center;
	padding-top: 0;
	padding-bottom: 0;
}

.docs-topbar-item {
	margin-left: 1em;
	margin-right: 1em;
}

.docs-topbar-link {
	font-weight: bold;
	color: rgba(0, 0, 0, 0.65);
}

.docs-topbar-link:hover {
	text-decoration: none;
	color: black;
}

.docs-topbar-link.active {
	color: #2962ff;
}

.docs-topbar-link.active:hover {
	color: #2962ff;
	text-decoration: none;
}

div.tight p, div.tight ul {
	margin-bottom: 0
}
