/*
 * ~~~~~~~~~~~~~~~~
 * STYLESHEET: BASE
 * ~~~~~~~~~~~~~~~~
 */


body {
	margin: 0;
	font-family: 'tahoma', sans-serif;
	line-height: 1.4;
	font-size: 11pt;
	color: #333;
}

.container {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 1em;
}


/*
 * -----------------
 * LINKS
 * -----------------
 */

a {
	color: #468AA7;
	text-decoration: none;
}

a:hover {
	color: #000;
	text-decoration: underline dotted;
}

.no-external-icon a[href^="http"]::after {
	display: none;
}

a[href^="http"]::after {
	/*content: url(icons/external.svg);*/
	content: url('data:image/svg+xml;utf8,<svg id="svg5" width="10" height="10" version="1.1" viewBox="0 0 2.6458 2.6458" xmlns="http://www.w3.org/2000/svg"><path id="rect866" transform="scale(.26458)" d="m5.2031 0v1.5996h1.9961l-3.7891 3.791 1.1289 1.1309 3.8613-3.8613v2.1367h1.5996v-3.1973-1.5996h-4.7969zm-5.2031 2.3984v1.5977 6.0039h1.5996 4.4043 1.5977v-1.5996-2.4004h-1.5977v2.4004h-4.4043v-4.4043h2.4004v-1.5977h-4z" stroke-width="8.2442"/></svg>');
	display: inline;
	margin-left: 2pt;
	filter: invert(40%);
}

a[href^="http"]:hover::after {
	filter: invert(0);
}

section {
	clear: both;
}


.addon-error {
	opacity: 0.5;
	font-size: 0.9em;
	color: red;
	display: inline-block;
}

/*
 * -----------------
 * NAVBAR
 * -----------------
 */

.navbar {
	padding: 0.5em 0 2em 0;
}

.navbar a {
	color: #999;
	text-decoration: none;
}

.navbar a:hover {
	color: #000;
}

.navbar-menu {
}

.navbar-menu-left {
	display: inline;
}

.navbar-menu-left a {
	margin-right: 5px;
}

.navbar-menu-right {
	display: inline;
	float: right;
}

.navbar-menu-right a {
	margin: 0;
	margin-left: 5px;
}

.navbar .active {
	font-weight: bold;
	color: #333;
}

.navbar .navbar-title * {
	color: #333;
	font-weight: bold;
}

.navbar .navbar-title a {
	display: inline-block;
	margin-right: 1.5em;
}

.navbar-menu-aside {
	position: fixed;
	bottom: 1em;
	right: 1em;
	margin-left: 1em;
	z-index: 100;
	text-align: right;
}
.navbar-menu-aside summary::marker,
.navbar-menu-aside summary::-webkit-details-marker {
	display: none;
}
.navbar-menu-aside summary {
	position: absolute;
	right: 0;
	bottom: 0;
	cursor: pointer;
	display: block;
	width: 20px;
}
.navbar-menu-aside .content {
	background-color: white;
	border: 1px solid #777;
	box-shadow: 0 0 5px #77777755;
	overflow: scroll;
	max-height: calc( 100vh - 7em );
	margin-bottom: 2em;
	padding: 1em;
	min-width: 100px;
}
.navbar-menu-aside .content a {
	display: block;
}
.navbar-menu-aside hr {
	margin: 10px 0;
	width: 100%;
}
.navbar-menu-aside span {
	font-style: italic;
}


/*
 * -----------------
 * FOOTER
 * -----------------
 */

footer {
	color: #999;
	font-size: 0.9em;
	margin-bottom: 2em;
}

.navbar-footer {
	border-top: 1px dotted #999;
	margin-bottom: 1em;
}

footer p {
	margin: 0;
}


/*
 * -----------------
 * MAIN ELEMENTS
 * -----------------
 */

h1,h2,h3,h4,h5 {
	line-height: 1.15;
	margin-top: 1.5em;
}

img {
	max-width: 100%;
}

code {
	color: #555;
	font-size: 0.8em;
	font-family: monospace;
}

blockquote {
	margin: 2em 0;
	padding: 0 2em;
	color: #777;
}

dt {
	font-weight: bold;
}

dd {
	margin-bottom: 0.5em;
	margin-left: 1.5em;
}

hr {
	border: unset;
	border-bottom: 1px dotted #999;
	margin: 20px auto;
	width: 70%;
}

table {
	border-collapse: collapse;
	margin: 1em auto;
}

table th,
table td {
	border: 1px solid #999;
	padding: 2px 5px;
}

table th {
	background-color: #ddd;
}

table td {
	background-color: white;
}

ul > li {
	list-style: square;
}

ol > li::marker {
	font-weight: bold;
}

video {
	margin: 1em 0;
	display: block;
	width: 100%;
}

.item-show-hide {
	position: absolute;
	top: 8px;
	right: 10px;
	color: #999;
	cursor: default;
	font-weight: bold;
}


/*
 * ----------------
 * PAGE HEADER INFO
 * ----------------
 */

.item-header {
	margin-bottom: 2em;
}

.item-banner * {
	margin: 0;
	width: 100%;
}

.item-info {
	margin: 0.5em 0 0 0;
	padding: 0.2em 0;
	border-top: 1px dotted;
	border-bottom: 1px dotted;
	font-family: monospace;
	font-weight: bold;
	font-size: 0.8em;
	line-height: 1.2;
}

.item-info i {
	color: #333;
	letter-spacing: -4px;
}

.item-info * {
	margin: 0;
	padding: 0;
}


/*
 * -----------------
 * CONNECTIONS
 * -----------------
 */

/* this is a details element */
.item-connections {
	margin: 0.3em 0;
}

.item-connections summary {
	cursor: default;
}

.item-connections .content {
	font-size: 0.9em;
	opacity: 0.9;
	border-left: 2px solid #999;
	padding-left: 1em;
	margin: 0.5em 0 0 2px;
}

.item-connections span {
	display: inline-block;
}

.item-connections span:not(:last-child):after {
	content: ",";
}


/*
 * -----------------
 * ITEM TAGS
 * -----------------
 */

.item-tags {
	margin: 0.3em 0;
}

.item-tags a {
	border-radius: 5px;
}



/*
 * ---------------
 * LAYOUTS
 * ---------------
 */


/* === LAYOUT: BASE === */

.item-body {
	padding-top: 2em;
}

.item-header {
	margin: 0;
}

.item-title {
	line-height: 1;
	margin: 0;
}

.item-summary {
	margin: 0;
	line-height: 1.1;
}

.item-content {
	padding: 1em 0;
}

.item-footer {
	color: #999;
	font-size: 0.9em;
	text-align: center;
}

.text-right {
	display: block;
	text-align: right;
}

.text-center {
	display: block;
	text-align: center;
}

.align-center {
	display: block;
	margin: 30px auto;
}

.go-back {
	font-weight: bold;
	font-size: 1.2em;
	margin: 1em 0;
}

.button {
	margin: 0.5em;
	padding: 1em;
	background-color: #eee;
	display: inline-block;
	text-align: center;
	border: 1px solid #aaa;
}
.button:hover {
	background-color: #ddd;
	text-decoration: none;
}



/* === LAYOUT: HOMEPAGE === */

.homepage-info {
	margin: 2em 0;
	text-align: center;
}

.homepage-info .logo {
	width: 75px;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-o-user-select: none;
	user-select: none;
	pointer-events: none;
}

.homepage-banner {
	margin: 0 5%;
	padding: 0;
}

.homepage-banner img {
	box-shadow: 0 0 5px #ddd;
}

.homepage-connections {
	margin: 1em 0 0 0;
	padding: 0;
}

.homepage-connections * {
	border: none;
}


/* === LAYOUT: PAGE === */

.layout-page {
}



/* === LAYOUT: WIKI === */

.layout-wiki {
}

.layout-wiki .item-footer {
	font-family: monospace;
	font-size: small;
	margin: 0;
	text-align: right;
}

.layout-wiki .item-footer * {
	margin: 0 auto;
}

.layout-wiki code {
	background-color: #ddd;
	border-radius: 2px;
	border: 1px solid #bbb;
}

.layout-wiki pre{
	background-color: #eee;
	border-left: 2px solid #ccc;
	padding: 1rem 1rem;
	max-width: 100%;
	overflow-x: auto;
	font-size: 0.8em;
}

.layout-wiki pre code {
	all: unset;
}


/* === LAYOUT: GALLERY === */

.layout-gallery {
}



/* === LAYOUT: PROJECT === */

.layout-project {
}

.layout-project .item-info {
	border-bottom: none;
}


/* === LAYOUT: BLOGPOST === */

.layout-blogpost {
}

.layout-blogpost .blogpost-info {
	margin: 0.2em 0;
	color: #999;
	font-size: 0.9em;
}


/*
 * -----------------
 * ADDONS
 * -----------------
 */

/* === TAGS === */

.tags-list li {
	line-height: 1.1;
	margin-bottom: 0.5em;
}

.tags-list li a {
	font-size: 1.1em;
}

.tags-list li span {
	font-size: 0.9em;
}


/* === ITEMCARD === */

.itemcard {
	margin: 1.5em 0;
	display: flex;
}

.itemcard .thumb {
	background-color: #eee;
	background: repeating-linear-gradient(
	45deg,
	#eee,
	#eee 10px,
	#ddd 10px,
	#ddd 20px
	);
	max-width: 60px;
	width: 60px;
	height: 60px;
	object-fit: cover;
	border: 1px solid #999;
	box-shadow: 5px 5px 0 #ddd;

	margin-right: 1em;
}

.itemcard .thumb:hover {
	box-shadow: 5px 5px 0 #aaa;
	filter: contrast(80%);
}

.itemcard .info {
	margin: 0;
	line-height: 1.1;
}

.itemcard .title {
	font-weight: bold;
	font-size: 1.2em;
	margin: 0;
	padding: 0;
}

.itemcard .summary {
	margin: 0.2em 0;
	font-size: 0.9em;
}

.itemcard .tags {
	margin: 0;
	font-size: 0.9em;
	font-weight: bold;
	line-height: 1.1;
}

.itemcard .tags a {
	margin-right: 0.5em;
}



/* === SITEMAP === */

.sitemap-list dt {
	font-weight: bold;
	font-size: 1.2em;
}

.sitemap-list dd {
	margin: 0 0 1.5em 3px;
	padding-left: 0.7em;
	border-left: 2px solid #999;
	line-height: 1.1;
}

.sitemap-list dd * {
	margin: 0;
}

.sitemap-list p {
	font-size: 0.9em;
}

.sitemap-list a {
	margin-left: 0.2em;
}

.sitemap-list code {
	font-weight: bold;
}

.sitemap-list .connections {
	font-family: monospace;
	font-size: 0.8em;
}

.sitemap-list .tags {
	font-family: monospace;
	font-size: 0.8em;
}




/*
 * -------------------
 * GALLERY CONTAINER
 * -------------------
 */

figcaption {
	color: #999;
	margin-top: 0.5em;
	text-align: center;
	font-size: 0.9em;
	font-style: italic;
	line-height: 1;
}

figure {
	display: inline-block;
	margin: 0;
}

figure img {
	max-width: 100%;
	width: calc( 100% - 2px );
	border: 1px solid #999;
	display: block;
}

figure a img:hover {
	box-shadow: 0 0 10px #ddd;
}

figure .without-border {
	border-color: transparent;
	box-shadow: unset;
}

figure a .without-border:hover {
	border-color: #aaa;
}

.gallery .image-size-original {
	object-fit: unset;
	aspect-ratio: unset;
}

.gallery {
	padding: 1em 0;
}

.gallery-columns-base {
	grid-gap: 1em 1em;
	display: grid;
}
.gallery-columns-base img {
	aspect-ratio: 1/1;
	object-fit: cover;
}
.gallery-min-columns-base {
	grid-gap: 1em 1em !important;
	display: grid !important;
}
.gallery-min-columns-base img {
	aspect-ratio: 1/1 !important;
	object-fit: cover !important;
}

.gallery-columns-1,
.gallery-min-columns-1 {
	margin: 0;
	grid-template-columns: 1fr;
}
.gallery-columns-1 figure,
.gallery-min-columns-1 figure {
	margin: auto;
}
.gallery-columns-1 img,
.gallery-min-columns-1 img {
	aspect-ratio: unset;
	object-fit: unset;
}

.gallery-columns-2 {
	grid-template-columns: 1fr 1fr;
}
.gallery-columns-3 {
	grid-template-columns: 1fr 1fr 1fr;
}
.gallery-columns-4 {
	grid-template-columns: 1fr 1fr 1fr 1fr;
}
.gallery-columns-5 {
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.gallery-columns-auto,
.gallery-min-columns-auto {
	grid-template-columns: repeat(auto-fit,minmax(150px,1fr)) !important;
}



/*
 * -----------------
 * OTHER THINGS
 * -----------------
 */

/* figures */

.figure-left {
	display: inline;
	float: left;
	clear: both;
	margin: 0 1em 0 2px;
}
.figure-right {
	display: inline;
	float: right;
	clear: both;
	margin: 0 2px 0 1em;
}
.figure-center {
	display: block;
	padding: 1em 0;
	margin: 1.5em auto 1em auto;
	clear: both;
	text-align: center;
}

.item-content aside {
	background-color: #eee;
	border: 1px solid #ccc;
	margin: 2rem;
	padding: 5px;
	font-size: 0.9em;
	line-height: 1.1;
}
.item-content aside * {
	margin: 0;
}
.item-content .notice {
	background-color: #F1E6C2;
	border: 1px solid #E7AB19;
}


/*
 * -----------------
 *  ERROR INFO
 * -----------------
 */

.error {
	padding: 2em 1em;
	margin: 2em 10%;
	text-align: center;
	background-color: #eee;
	border: 1px solid #ddd;
}

.error big {
	font-size: 2em;
	font-weight: bold;
}

.error code {
	all: unset;
	font-family: monospace;
	font-weight: bold;
	text-decoration: underline;
}




/*
 * -----------------
 * MEDIA QUERIES
 * -----------------
 */

/*
 * ========================
 * SMALL SCREEN <700px
 * ========================
 */


@media screen and (max-width: 700px) {

	/*
	 * NAVBAR
	 */

	.navbar-title {
		display: block;
		font-size: 1.3em;
		max-width: calc(100% - 3em);
		margin-top: 3px;
	}
	.navbar-title a {
		display: inline;
	}
	.navbar a {
		display: inline-block;
		padding-top: 4px;
	}
	.navbar-menu-right {
		display: inline;
		float: unset;
	}
	.navbar-menu-right a {
		margin: 0;
		margin-right: 0.5em;
	}

	.navbar-menu-aside a {
		margin: 0;
		padding: 0;
		line-height: 2;
	}

	.navbar-menu-aside {
		bottom: unset;
		top: 1.4em;
	}

	.navbar-menu-aside summary {
		bottom: unset;
		top: 0;
	}

	.navbar-menu-aside .content {
		margin-bottom: 0;
		margin-top: 2em;
	}

	.aside-menu-active {
		display: none;
	}


	/*
	 * LAYOUT
	 */

	.homepage-banner {
		margin: 0;
	}


	/*
	 * OTHERS
	 */

	.notice {
		border-left: none;
		border-right: none;
		margin: auto -5.5%;
		padding: 1rem 2rem;
	}

	.item-show-hide {
		top: 1.1em;
		right: 3em;
	}
}


/*
 * ========================
 * SMALL SCREEN
 * ========================
 */

@media screen and (max-width: 500px) {

	/*
	 * GALLERY
	 */

	[class*='gallery-columns-'] {
		all: unset;
	}

	[class*='gallery-columns-'] figure {
		display: block;
		margin: 1em 0;
	}

	[class*='gallery-columns-'] img {
		height: auto;
		object-fit: unset;
		aspect-ratio: unset;
	}


	.gallery-min-columns-2 {
		grid-template-columns: 1fr 1fr;
	}
	.gallery-min-columns-3 {
		grid-template-columns: 1fr 1fr 1fr;
	}
	.gallery-min-columns-4 {
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}
	.gallery-min-columns-5 {
		grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
	}

}

/*
 * OTHERS
 */

@media screen and (max-width: 700px) {
	.figure-left,
	.figure-right
	{
		float: unset;
		display: block;
		padding: 0;
		margin: 1em auto;
		text-align: center;
	}

}
