*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	border: 0;
	padding: 0;
	font: inherit;
	text-align: inherit;
}

html, body {
	min-height: 100%;

	overflow-x: hidden;
}

html {
	line-height: 24px;

	overflow-y: scroll;
}

body {
	max-width: 960px;
	margin: 0 auto;

	padding: 0 6px;
	padding-left: calc( 8ch + 6px );

	font-family: system-ui;
	font-size: 16px;

	color: #222;
}

@media ( max-width: 960px ) {
	body {
		padding-left: calc( 6ch + 6px );
	}
}

/*  */

a {
	text-decoration: none;
	color: #1A73E8;
}

a:hover {
	text-decoration: underline;
}

a:active {
	text-decoration: underline;
	color: #222;
}

a[new] {
	color: #D33;
}

/*  */

h1 {
	line-height: 48px;
	font-size: 32px;
	font-weight: 700;
}

h2 {
	font-size: 24px;
	font-weight: 700;
}

h3 {
	font-size: 16px;
	font-weight: 700;
	border-bottom: 1px solid #222;
}

h3 + ul {
	padding-top: 1px;
	margin-top: 0;
}

/*  */

dt {
	float: left;
	clear: left;

	margin-right: 8px;

	width: 56px;
	width: 112px;

	font-weight: 700;
}

dt::after {
	content: "";
}

/*  */

ul > li > time {
	display: inline-block;
	margin-left: -5ch;
	margin-right: 1ch;
	width: 4ch;
}

/*  */

span.initial {
	display: inline-block;
	text-align: center;
	margin-left: -5ch;
	margin-right: 4ch;
	width: 1ch;
}

@media ( max-width: 960px ) {
	span.initial {
		margin-left: -3ch;
		margin-right: 2ch;
	}
}

/*  */

h1 {
	margin-top: 32px;
}

h2 {
	font-size: 24px;
	margin-top: 48px;
}

h3 {
	margin: 32px 0;
	border: 0;
}

h1,
h2,
h1 + h3,
h1 + h3 + h3 {
	margin-bottom: 40px;
}

ul, ol, p {
	margin-bottom: 24px;
}

dl {
	margin: 48px 0;
}

i {
	font-style: italic;
}

/*  */

body > ul, body > ol {
	margin-left : calc( -8ch );
	padding-left: calc(  8ch );
}

@media ( max-width: 960px ) {
	body > ul, body > ol {
		margin-left : calc( -6ch );
		padding-left: calc(  6ch );
	}
}

ol {
	list-style: upper-roman;
}

ol > li {
	padding-left: 2ch;
	margin-left: -2ch;
}

ol ol {
	list-style: "-";
	margin: 0;
	padding-left: 4ch;
}

@media ( max-width: 960px ) {
	ol ol {
		padding-left: 3ch;
	}
}

ol ol > li {
	padding-left: 3ch;
	margin-left: -3ch;
}


@media ( max-width: 960px ) {
	ol ol > li {
		padding-left: 1ch;
		margin-left: -2ch;
	}
}

span.topic {
	float: right;
}

@media ( max-width: 960px ) {
	span.topic {
		display: none;
	}
}

/*  */

ul ul {
	margin : 0;
}

ul ul > li {
	display: none;
}

ul ul > li:first-child {
	display: block;
}

ul ul.group-expand > li {
	display: block;
	background :#f0f0f0;
}

/*  */

li.group {
	position: relative;
}

/* li.group > button {
	position: absolute;
	left : -1.5ch;
	top  : 6px;
	width: 14px;
	height: 14px;
	background: inherit;
	line-height: 12px;

	border: 1px solid currentColor;
} */

li > button {
	display: block;
	margin-left: 4ch;
	background: none;
	margin-bottom: 24px;
}

ul ul.group-expand > li:not( :last-child ) > button {
	display: none;
}

li > button:hover::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	width: 100%;
	height: 24px;
	background: #f0f0f0;
}

/*  */

li > button {
	display: none;
}


ul ul > li {
	display: block;
	background :#f0f0f0;
	margin-left: -6px;
	padding-left: 6px;
}

span.topic {
	margin-right: 6px;
}

ul ul > li:not( .group ) > span.topic {
	display: none;
}

li.group {
	margin-top: 3px;
}

ol ol {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/*  */

/* pre {
	position: absolute;
	left: 0;
	width: 100vw;

	padding-left: calc( 50vw - 480px );

	font-family: consolas, 'courier new', monospace;
	font-size: 16px;
	line-height: 18px;
}


pre {
	position: absolute;
	left: 0;
	width: 100vw;

	padding-left: calc( 50vw - 480px );

	background: #efefef;

	font-family: consolas, 'courier new', monospace;
	font-size: 14px;
	line-height: 18px;
}

pre {
	background: #1f1f1f;
	color     : #cccccc;
}

pre ::selection {
	background: #264f78;
}

pre ::selection:window-inactive{
	background: #3a3d41;
} */

pre {
	font-family: consolas, 'courier new', monospace;
	font-size: 16px;
	line-height: 18px;
}

/*  */

form.toolbar {
	margin: 32px  0;
}

select {
	color: #1A73E8;
}

a.search {
	float: right;
}

li {
	position: relative;
}

/*  */

div.count {
	position: absolute;
	right: 0;
	top: 1px;
	z-index: -1;

	height:22px;

	color: #ddd;

	background: repeating-linear-gradient(
		to left,
		currentColor,
		currentColor 2px,
		transparent 2px,
		transparent 4px
	);
}

a:hover  + div.count {
	color: #97d0fe;
}

/*  */

ul.list-authors.hide-missing > li {
	display: none;
}

ul.list-authors.link-to-home    > li:not([data-home   ]) > a,
ul.list-authors.link-to-blog    > li:not([data-blog   ]) > a,
ul.list-authors.link-to-wiki    > li:not([data-wiki   ]) > a,
ul.list-authors.link-to-twitter > li:not([data-twitter]) > a,
ul.list-authors.link-to-github  > li:not([data-github ]) > a,
ul.list-authors.link-to-youtube > li:not([data-youtube]) > a,
ul.list-authors.link-to-patreon > li:not([data-patreon]) > a {
	color: #aaa;
}

ul.list-authors.link-to-cafe    > li,
ul.list-authors.link-to-home    > li[data-home],
ul.list-authors.link-to-blog    > li[data-blog],
ul.list-authors.link-to-wiki    > li[data-wiki],
ul.list-authors.link-to-twitter > li[data-twitter],
ul.list-authors.link-to-github  > li[data-github ],
ul.list-authors.link-to-patreon > li[data-patreon],
ul.list-authors.link-to-youtube > li[data-youtube] {
	display: block
}

ul.list-authors.hide-missing span.initial {
	display: none;
}

/*  */

form,
span.initial,
time {
	user-select: none;
}

/*  */

label.disabled,
label.disabled > input,
select[disabled],
input[disabled],
li[disabled],
a[disabled] {
	color: #aaa;
}

a[disabled] {
	cursor: pointer;
}

input {
	margin-right: 12px;
}

label {
	margin-right: 24px;
}

/*  */

/*ol.toc {
/*	width: 640px;
/*	border: 1px solid #444;
/*	list-style-type: decimal;
/*	/* padding-top: 24px; */
/*	list-style: none;
/*	padding-left: 12px;
/*	margin-left: 0;
/*}
*/

li::marker {
	color: inherit;
}

ul.list-authors.hide-new > li.new {
	display: none;
}

/*  */

th, td {
	padding: 0 8px;
}

td:first, td:first > a {
	padding-left: 0;
}

td > li {
	margin-left: 18px
}

a[href^="https"]::after {
	content: "↗";
	display: inline;
}

table {
	text-align: top;
}

table img {
	/* width: 102px; */
	height: 76px;
	outline: 1px solid currentColor;
}


body > ul {
	list-style: circle;
}

body > table {
	margin-bottom: 32px;
}


table td:first-child {
	text-wrap: nowrap;
}

table:only-child {
	text-wrap: nowrap;
}

table a {
	text-wrap: nowrap;
}

table {
	text-wrap: nowrap;
}

body {
	overflow: visible;
}

ol ol ol > li {
	padding-left: 3ch;
    margin-left: -3ch;
}

ol {
	overflow: visible !important;
}

table {
	display: block;
	width: 960px;
	max-width: 960px;
	overflow-x: scroll;
}

a[href=""] {
	color: #D33;
}

img.autha,
img.world {
	width: 960px;
	height: calc( 960px * 1398 / 2754 );
}

img.autha {
	border: 2px solid #CCC;
}













table, tr {
	overflow: visible;
}

td[data-topic]::after {
	content: attr( data-topic );
	display: inline;
	float: right;
}

/* table td.img img[src^="/image/youtube"] {
	width: 60px;
	height: 45px;
	display: inline;
} */

td.img {
	padding: 0;
}

td.img ~ td[data-topic]::after {
	content: attr( data-topic );
	display: block;
	float: none;
}

td.img > a::after { display: none; }

td.img > a > img {
	border: 1px solid #FFF;
	outline: 1px solid currentColor;
}

blockquote {
	/* background: #EFEFEF; */
	padding: 0 8px;
	/* margin: 0 -8px; */
	border-left: 4px solid #EEE;
}

td.img-tt > a::after { display: none; }

td.img-tt {
	padding-left: 0;
	padding-right: 0;
}

td.img-tt > a > img {
	border: 1px solid #FFF;
	outline: 1px solid currentColor;
	width: auto;
	height: 76px;
}












table {
	border-collapse: collapse;
	padding: 0;
	margin-left: 0;
}















li[data-life] {
	list-style: none;
}

li[data-life]::before {
	content: attr( data-life );
	display: inline;
	margin-left: -13ch;
	margin-right: 1ch;
	font-family: consolas, 'courier new', monospace;
	text-align: right;
	white-space-collapse: preserve;

}

a[new] {
	cursor: pointer;
}


body > p > img {
	height: 240px;
}

td.img + td.img {
	padding-left: 2px;
}

h1 + h1 { margin-top: -40px; }
h2 ~ ul + blockquote{ margin-top: 64px; }

b {
	font-weight: 650;
}



















ul > li[data-year] {
	list-style: none;
}

ul > li[data-year]::before {
	content: attr( data-year );
	display: inline;
	margin-left: -5ch;
	margin-right: 1ch;
	width: 4ch;
	font-family: 'Consolas', 'Courier New', Courier, monospace;
}


ul > li[data-ybce] {
	list-style: none;
}

ul > li[data-ybce]::before {
	content: attr( data-ybce );
	display: inline;
	margin-left: -9ch;
	margin-right: 1ch;
	width: 8ch;
	font-family: 'Consolas', 'Courier New', Courier, monospace;
}

ul > li[data-year-bp] {
	list-style: none;
}

ul > li[data-year-bp]::before {
	content: attr( data-year-bp );
	display: inline;
	margin-left: -11ch;
	margin-right: 1ch;
	width: 10ch;
	font-family: 'Consolas', 'Courier New', Courier, monospace;
}




th[data-year-ce ], ul > li[data-year-ce ],
th[data-year-bce], ul > li[data-year-bce],
th[data-year-kya], ul > li[data-year-kya],
th[data-year-mya], ul > li[data-year-mya],
th[data-year-gya], ul > li[data-year-gya] {
	list-style: none;
	white-space: preserve nowrap;
}

th[data-year-ce ]::before,
th[data-year-bce]::before,
th[data-year-kya]::before,
th[data-year-mya]::before,
th[data-year-gya]::before {
	display: inline;
	margin-left: -10ch;
	margin-right: 1ch;
	width: 9ch;
	font-family: 'Consolas', 'Courier New', Courier, monospace;
}

ul > li[data-year-ce ]::before,
ul > li[data-year-bce]::before,
ul > li[data-year-kya]::before,
ul > li[data-year-mya]::before,
ul > li[data-year-gya]::before {
	display: inline;
	margin-left: -9ch;
	margin-right: 1ch;
	width: 8ch;
	font-family: 'Consolas', 'Courier New', Courier, monospace;
}

th[data-year-ce ]::before, ul > li[data-year-ce ]::before { content: attr( data-year-ce  ) "  CE"; }
th[data-year-bce]::before, ul > li[data-year-bce]::before { content: attr( data-year-bce ) " BCE"; }
th[data-year-kya]::before, ul > li[data-year-kya]::before { content: attr( data-year-kya ) " KYA"; }
th[data-year-mya]::before, ul > li[data-year-mya]::before { content: attr( data-year-mya ) " MYA"; }
th[data-year-gya]::before, ul > li[data-year-gya]::before { content: attr( data-year-gya ) " GYA"; }

th[data-date] {
	padding-right: 0;
	padding-left: 0;
}

th[data-date]::before {
	content: attr( data-date );
	display: inline;
	margin-left: -11ch;
	margin-right: 1ch;
	width: 10ch;
	font-family: consolas, 'courier new', monospace;
	text-align: right;
}

li[data-date] {
	list-style: none;
}

li[data-date]::before {
	content: attr( data-date );
	display: inline;
	margin-left: -11ch;
	margin-right: 1ch;
	width: 10ch;
	font-family: consolas, 'courier new', monospace;
	text-align: right;
}

th[data-dune] {
	padding: 0;
}

th[data-dune]::before {
    content: attr(data-dune);
    display: inline;
    margin-left: -21ch;
    margin-right: 1ch;
    font-family: consolas, 'courier new', monospace;
    text-align: right;
	white-space-collapse: preserve;
}

th[data-dune]:empty + td {
	padding-left: 0;
}

th[data-year] {
	padding-right: 0;
	padding-left: 0;
	margin-left: -16px;
}

th[data-year]::before {
	content: attr( data-year );
	display: inline;
	margin-left: -5ch;
	/* margin-right: 1ch; */
	font-family: consolas, 'courier new', monospace;
	text-align: right;
}

th[data-year]:empty + td {
	padding-left: 0;
}





table img[src^="/static/image/media"] {
	width: 51px;
	height: 82px;
}

table.missing img:not( :hover ),
table tr.missing img:not( :hover ),
table td.missing img:not( :hover ) {
	/* filter: sepia(100%) saturate(100%) hue-rotate(180deg) opacity(60%); */
	filter: sepia(100%) hue-rotate(290deg) contrast(60%) opacity(80%);
}

th {
	padding: 0;
}

td {
	padding: 0 2.5px;
}












/* h3[data-year] {
	padding-right: 0;
	padding-left: 0;
	margin-left: -16px;
} */

h3[data-year]::before {
	content: attr( data-year );
	display: inline;
	margin-left: -5ch;
	margin-right: 1ch;
	font-family: consolas, 'courier new', monospace;
	text-align: right;
}

















input[missing]:checked + label ~ h3.missing       { display: none; }
input[missing]:checked + label ~ table td.missing { display: none; }
input[missing]:checked + label ~ table tr.missing { display: none; }
input[missing]:checked + label ~ table.missing    { display: none; }
