.documentation {
	position: static;
	margin: 0;
	padding: 1rem;

	.is-dark-mode & {
		color: var(--color-text-light);
	}

	.with-navigation & {
		width: 75%;
	}

	h1 {
		&:first-of-type {
			border-left: 2px solid var(--color-primary);
			padding-left: 1rem;
			margin-bottom: 4rem;
			font-weight: 700;

			&:after {
				content: "";
				width: 100%;
				height: 0px;
				display: block;
				border-bottom: 1px dashed rgba(var(--color-border-rgb), 0.5);
				transform: translateY(2rem);
			}
		}
	}

	h2 {
		margin-top: 2.5rem;
		margin-bottom: 1rem;
		font-weight: 700;

		&[id] {
			&:before {
				content: "#";
				margin-left: -1rem;
				margin-top: 0.25rem;
				position: absolute;
				font-size: 1rem;
				color: var(--color-primary);
				opacity: 0.75;
			}
		}
	}

	h3 {
		margin-top: 2.5rem;
		margin-bottom: 1rem;
	}

	hr {
		border-top: 1px dashed rgba(var(--color-border-rgb), 0.2);
		margin-top: 2rem;
		margin-bottom: 2rem;
	}

	img {
		max-width: 100%;
	}

	abbr {
		border-bottom: 0;
		cursor: help;
		text-decoration: underline;
		-webkit-text-decoration: underline dotted;
		text-decoration: underline dotted;
		-webkit-text-decoration-skip-ink: none;
		text-decoration-skip-ink: none
	}

	h1 + ul {
		&:first-of-type {
			position: fixed;
			padding: 1rem;
			list-style: none;
			padding: 0;
			width: 20%;
			top: 1rem;
			right: 1rem;

			li {
				border-bottom: 1px dashed rgba(var(--color-border-rgb), 0.35);
				line-height: 1.5;
				padding: 0.75rem;

				a {
					font-size: 0.875rem;
					color: rgba(var(--color-text-rgb), 0.65);

					.is-dark-mode & {
						color: rgba(var(--color-text-light-rgb), 0.75);
					}
				}
			}

			ul {
				list-style: none;
				padding: 0;
				padding-left: 1rem;
			}
		}
	}

	&:not(pre),
	*:not(pre) {
		> code {
			background-color: var(--color-pink-lucid);
			padding: 0.2rem 0.35rem;
			border-radius: 0.25rem;
			color: var(--color-pink-shade);
			line-height: 1.5;
			line-height: 1.6;
			font-size: 0.9em;
			margin: 0 0.2rem;

			.is-dark-mode & {
				background-color: rgba(255,255,255, 0.2);
				color: var(--color-text-light);
			}
		}
	}

	ol {
		> li {
			padding-top: 0.5rem;
			padding-bottom: 0.5rem;
		}
	}

	ul {
		> li {
			padding-top: 0.5rem;
			padding-bottom: 0.5rem;
		}
	}

	p {
		font-size: 1rem;
		line-height: 2;
	}

	blockquote {
		border-left: 2px solid var(--color-border);
		padding: 1rem;
		font-style: italic;

		p:last-child {
			margin: 0;
		}
	}

	table {
		background-color: var(--color-white);
		border: none;
		border-collapse: collapse;
		border-color: transparent !important;
		border-radius: 0.5rem;
		border-width: 0 !important;
		margin: 1rem auto;
		max-width: 100%;
		overflow: hidden;
		padding: 0;
		position: relative;
		width: 100%;
		box-shadow: 0 3px 12px rgba(var(--color-border-rgb), 0.35), inset 0 0 0 1px rgba(var(--color-border-rgb), 0.35);

		&:hover {
			box-shadow: 0 3px 12px rgba(var(--color-border-rgb), 0.35),
				inset 0 0 0 1px rgba(var(--color-border-rgb), 0.35);
		}

		.is-dark-mode & {
			background-color: var(--color-black);
			box-shadow: 0 3px 12px rgba(var(--color-black-rgb), .35), inset 0 0 0 1px var(--color-dark-tint);
		}

		thead {
			th {
				border: 0 solid transparent;
				color: var(--color-text);
				font-size: 0.75rem;
				font-weight: 700;
				line-height: 1em;
				padding: 1.25rem;
				text-transform: uppercase;

				.is-dark-mode & {
					color: var(--color-text-light);
				}
			}

			tr {
				border-width: 0;

				th {
					&:hover {
						background: none !important;
						box-shadow: none;
					}
				}

				&:hover {
					background: none !important;
					box-shadow: none;
				}
			}
		}

		tbody {
			tr {
				border: none;
				transition: background-color 0.4s, border 0.4s, box-shadow 0.3s;

				td {
					border: none;
					border-top: 1px dashed rgba(var(--color-border-rgb), 0.1);
					box-sizing: content-box;
					color: var(--color-text-rgb);
					padding: 0.875rem 1.25rem;
					vertical-align: middle;

					tt {
						font-family: inherit;
					}

					&:hover {
						background-color: transparent;
						box-shadow: none;
						cursor: pointer;
					}
				}

				&:hover {
					background-color: hsla(0, 0%, 75%, 0.1);
				}
			}
		}
	}

	.alert-block {
		code {
			background-color: rgba(255, 255, 255, 0.2) !important;
			padding: 0.1rem 0.35rem;
			border-radius: 0.25rem;
			color: var(--color-text-light) !important;
			line-height: 1.5;
			line-height: 1.6;
			font-size: 0.9em;
			margin: 0 0.2rem;
		}
	}
}

@media (max-width: 780px) {
	.documentation {
		padding: 0 40px !important;
		width: 100%;

		> ul {
			&:first-of-type {
				list-style: none;
				padding: 0;
				width: 100%;
				position: inherit;
				top: 10px;
				right: 30px;
			}
		}
	}
}
