:root {
	--primary-color: #007bff;
	--text-color: #333;
	--background-color: #fff;
	--link-hover-color: #0056b3;
	--border-color: #999;
}

body {
	margin: 0;
	padding: 0 1rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--text-color);
	background-color: var(--background-color);
	word-break: keep-all;
  overflow-wrap: anywhere;
	hyphens: auto;
}

@media (min-width: 768px) {
	body {
		max-width: 750px;
		margin: auto;
	}
}

/* @media (min-width: 992px) {
	body {
		max-width: 970px;
		font-size: 1.32rem;
	}
} */

header {
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid var(--border-color);
}

header h1 {
	margin-block-end: 0;
}

header nav {
	display: flex;
	justify-content: flex-end;
	column-gap: 16px;
}

#language-option-container {
	display: block;
	margin-block-end: 2em;
	font-size: 12px;
}

#language-option-container select {
	padding: 0;
	border: 0;
	background: transparent;
	appearance: none;
	color: var(--primary-color);
	cursor: pointer;
	outline: none;
	font-size: 12px;
}

#mobile-language-option-select {
	display: none;
	align-self: flex-end; margin-left: auto;
	margin-block-end: 2px;
}

#language-option-container select option {
	font-size: revert;
}

#language-option-container select:hover {
	color: var(--link-hover-color);
	text-decoration: underline;
}

@media (max-width: 600px) {
	header h1 {
		margin-block-end: revert;
	}

	header nav {
		justify-content: flex-start;
	}

	nav a {
		margin-left: 0;
		margin-top: 5px;
	}

	input {
		font-size: 16px;
	}

	#language-option-container {
		display: none;
	}

	#mobile-language-option-select {
		display: block;
	}
}

footer {
	padding: 1rem 0;
	text-align: center;
	border-top: 1px solid var(--border-color);
	margin-top: 20px;
}

/* h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--primary-color);
} */

a {
	color: var(--primary-color);
	text-decoration: none;
}

a:hover {
	color: var(--link-hover-color);
	text-decoration: underline;
}

table {
	width: 100%;
	margin-top: 20px;
	border-collapse: collapse;
	font-size: 0.85rem;
}

th,
td {
	text-align: left;
	padding: 8px;
	border: 1px solid var(--border-color);
}

pre code {
	padding: 10px;
	border: 1px solid var(--border-color);
	display: block;
	margin-top: 10px;
	font-size: 0.85rem;
}

code {
	display: inline-block;
}

.meta {
	/* padding: 0 20px; */
	color: #666;
	font-style: italic;
}

.tag {
	display: inline-block;
	margin-right: 10px;
}

.title h1 {
	font-size: 2em;
}

.content {
	margin-top: 20px;
}

article h1 {
	font-size: 2em;
	margin-block-start: 0.67em;
	margin-block-end: 0.67em;
}

article h1 a,
article h2 a,
article h3 a,
article h4 a,
article h5 a,
article h6 a {
	color: inherit;
}

.article-list li .article-date {
	display: inline-block;
	margin-right: 10px;
}

.article-list li .article-title {
	display: inline-block;
}

ul.pagination {
	list-style-type: none;
	text-align: center
}

ul.pagination li.page-item {
	display: inline;
	padding: 5px
}

ul.pagination li.active a {
	text-decoration: none;
	font-weight: bold;
	color: var(--text-color);
}

ul.pagination li.disabled a {
	text-decoration: none;
	color: var(--text-color);
}

nav#TableOfContents {
	float: right;
	width: 200px;
	overflow: auto;
	margin: 0;
	padding: 0 10px;
	vertical-align: top;
}

nav#TableOfContents:before {
	content: 'Content';
	font-weight: bold;
}

nav#TableOfContents:lang(*-Hans)::before {
	content: '目录';
	font-weight: bold;
}

nav#TableOfContents ul {
	margin: 0;
	padding-inline-start: 24px;
}

.content-with-toc {
	width: calc(100% - 220px);
	margin: 0;
}

@media (max-width:500px) {
	nav#TableOfContents {
		float: none;
		width: 100%;
	}

	.content-with-toc {
		width: 100%;
	}
}