@import url("/resources/CSS/hljs-gruvbox-CSSVARS.css");
@import url("/resources/CSS/gruvbox-themes.css");
@import url("/resources/CSS/closedless.css");
@import url("../../css/style.css");

body { display: block; }
main { display: inline-block; max-width: 100%; }
/* set the default max width to A3 */
main section { max-width: 297mm; margin: 0 auto; }
main section a { text-decoration: underline; }
a sup { color: var(--gruv-blue-l); font-weight: 500; }
div.blog-title-container h2 { font-size: xx-large; }

#blog-footer {
	font-size: small;
	padding: 1em 0;
}

#blog-footer p {
	/* line-height: 2em; */
	margin: .5em 0;
}

#blog-footer div p {
	margin-right: 2em;
}

.blog-title-container {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	margin-bottom: 1em;
}

footer {
	padding: 0.5rem;
	text-align: center;
	background-color: var(--purple-bg4);
}

.back-to-top {
	position: fixed;
	bottom: 32px;
	right: 0;
	margin: 1rem;
	font-size: 24px;
	z-index: 2;
}

details pre {
	border: 2px solid var(--gruv-purple-l);
	border-top: none;
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
}

details summary {
	border: 2px solid var(--gruv-purple-l);
	padding: 0.5em 1em;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
}

details pre code { max-height: 240px; }

/* Custom scrollbar for code snippets 
   NOTE: remember webkit is only available in Blink
   browsers or Webkit-based ones.
*/
details pre code::-webkit-scrollbar {
	width: inherit;
	height: 8px;
	background-color: var(--gruv-purple);
}

details pre code::-webkit-scrollbar-thumb { background-color: var(--gruv-blue); }

dl { margin: 1rem 0; }
dl dd { padding: 0.5em 1em 2em 2em; }

blockquote { margin-block-start: 0.5em; margin-block-end: 1.5em; }
blockquote a.ref {
	display: block;
	padding-left: 2em;
	word-break: break-all;
}

@media only screen and (max-width: 1600px) {
	/* set the max width on smaller screens to A4 */
	main section { max-width: 210mm; }
}
