/*
===============================================================================
 Project Wulfila
 ------------------------------------------------------------------------------
 
 Main CSS file for all pages.
 
 ------------------------------------------------------------------------------
 tdh.20040608, 20260625
===============================================================================
*/

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: black;
	background-color: white;
	font-family: Georgia, serif;
}

h1, h2, h3 {
	font-family: Georgia, serif;
	font-weight: normal;
}

h1 {
	font-size: 1.5rem;
}

h2 {
	font-size: 1.3rem;
	color: #333333;
	margin-top: 1em;
	margin-bottom: 0;
}

h3 {
	font-size: 1rem;
}

#logo {
	text-align: right;
	padding: 5px 30px 5px 2cm;
	border-bottom: 1px solid maroon;
}

#map {
	margin: 0;
	padding: 10px 30px 5px 2cm;
	text-align: left;
	background-color: #FFEDDD;
	font-family: sans-serif;
	font-size: 16px;
}

#menu {
	margin: 0;
	padding: 5px 30px 5px 2cm;
	text-align: left;
	background-color: #EFEFEF;
	border-top: 1px solid #ABABAB;
	border-bottom: 1px solid #ABABAB;
	font-family: sans-serif;
	font-size: 16px;
}

#map ul, #menu ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

#map li, #menu li {
	display: inline-block;
	line-height: 1;
}

#map li::after {
	display: inline;
	color: #868686;
	padding: 0 0.1em 0 0.2em;
	content: "\0020>\0020";
}

#menu li::after {
	display: inline;
	color: #ABABAB;
	padding: 0 0.1em;
	content: "\0020|\0020";
}

#map li:last-child::after,
#menu li:last-child::after {
	content: none;
}

/* legacy separators: */
#map span.separator {
	color: #CCBAAA;
}

#menu span.separator {
	color: #ABABAB;
}

/* nav and menu links: */
#map a, #menu a, #map .current, #menu .disabled {
	padding: 1px 4px 1px 4px;
}

#map a:hover, #menu a:hover {
	outline: 1px solid gray;
	border-radius: 0.2em;
	background-color: #F9F9F9;
}

#map a:link, #map a:visited, #map a:active,
#menu a:link, #menu a:visited, #menu a:active {
	color: maroon;
	text-decoration: none;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

header {
	margin-left: -4px;
}

main, #body {
	margin: 0 0 0 2cm;
	padding: 10px 30px 5px 0;
	min-height: 16em;
	max-width: 90ch;
	flex: 1;
}

footer, #footer {
	margin: 1cm 0 0 0;
	padding: 5px 30px 15px 2cm;
	min-height: 2em;
	border-top: 1px solid #ABABAB;
	font-family: sans-serif;
	font-size: smaller;
}

#bottom-menu {
	margin: 0;
	margin-top: 2em;
	padding: 0;
}

#bottom-menu a:visited {
	color: maroon;
}

#notes {
	border-top: 1px dotted gray;
	margin-top: 3em;
	font-size: 0.9rem;
}

#notes h2 {
	margin-top: 0.5em;
}

p, li, dt, dd {
	line-height: 1.5;
}

p {
	margin-bottom: 0.5em;
	margin-top: 0.5em;
}

li {
	margin-left: 0;
	padding-left: 0;
}

dl.spaced dd, ul.spaced li, ol.spaced li {
	margin-bottom: 1em;
}

dl.sections dd {
	margin-left: 2em;
	margin-bottom: 1em;
}

dl.sections dt {
	margin-left: 2em;
	font-weight: bold;
}

ul.spaced {
	margin-bottom: 0.5em;
}

th {
	text-align: left;
}

blockquote {
	margin-right: 0;
}

img {
	max-inline-size: 100%;
}

pre {
	overflow-x: auto;
	padding-bottom: 1rem;
	scrollbar-gutter: stable;
	max-width: 100%;
}

sup {
	line-height: 0;
}

mark, .highlight {
	font-style: normal;
	color: olive;
	background-color: inherit;
}

code {
	font-family: Consolas, monospace;
}

address {
	font-family: monospace;
	font-style: normal;
}

/* keyboard keys (borrowed from Wikipedia 2021-03-16) */
kbd {
	border: 1px solid #aaa;
	border-radius: 0.2em;
	box-shadow: 0.1em 0.1em 0.2em rgba(0, 0, 0, 0.1);
	background-color: #f9f9f9;
	background-image: linear-gradient(to bottom, #eee, #f9f9f9, #eee);
	color: #446;
	padding: 0.1em 0.3em;
	font-family: Calibri, sans-serif;
	font-variant-numeric: lining-nums tabular-nums;
	font-stretch: semi-condensed;
	font-size: 0.85em;

}

a:link {
	color: maroon;
	text-decoration: none;
}

a:visited {
	text-decoration: none;
}

a:link:hover, a:visited:hover {
	text-decoration: underline;
}

.greek, :lang(grc) {
	font-family: 'Palatino Linotype', 'Cambria', serif;
}

.title {
	font-style: italic;
}

.smaller {
	font-size: 0.9rem;
}

.center {
	text-align: center;
}

.right {
	text-align: right;
}

.warning {
	color: orange;
}

.smallcaps {
	font-variant: small-caps;
}

.no-bullets {
	list-style-type: none;
}

.infobox {
	background-color: #F6F6F6;
	border-radius: 0.65em;
	border-bottom: 1px solid #E1E1E1;
	border-right: 1px solid #E1E1E1;
	margin-top: 0.8em;
	padding: 0.5em 1em 1em 1em;
}

.infobox h2 {
	margin-top: 0.5em;
}

div.notice {
	border: 1px solid orange;
	border-left-width: 5px;
	padding: 1em;
	margin-top: 1em;
	margin-bottom: 2em;
}

@media print {
	#map, #menu, #bottom-menu {
		display: none;
	}

	main, #body {
		margin: 0 0 0 0.5cm;
		padding: 10px 10px 10px 10px;
	}

	footer, #footer {
		font-size: 8pt;
		margin: 0 0 0 0.5cm;
		padding: 10px 10px 10px 10px;
	}
}

/* TODO: quick draft to make things more pleasant on a phone. */
@media only screen and (max-width: 768px) {
	main, #body, #logo, #map, #menu, div#bottom-menu, #footer, footer {
		padding: 5px 1em 5px 1em !important;
		margin: 0 !important;
	}

	footer, #footer, #bottom-menu {
		margin-bottom: 20px !important;
	}

	div.token {
		margin-bottom: 2em;
	}
}