/*
===============================================================================
 Project Wulfila
 ------------------------------------------------------------------------------
 
 Main CSS file for the facsimile resources.
 
 Revision history:
 [2003-05-25] created
 [2003-06-16] substantial revision
 [2021-04-22] minor edits (removed justification e.a.)
 [2026-03-26] clean-up; edits for HTML5

 Tom De Herdt
 https://www.wulfila.be/ 
 
===============================================================================
*/

/* --- Base reset ---------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}


/* --- LINKS --------------------------------------------------------------- */

a:link {
	color: blue;
	text-decoration: none;
}

a:visited {
	color: blue;
	text-decoration: none;
}

a:active {
	color: red;
	text-decoration: underline;
}

a:hover {
	color: blue;
	text-decoration: underline;
	background-color: #FFFFEE;
}

a img {
	border: 0; /* prevents blue border around image links */
}


/* --- MAIN DIVISIONS ------------------------------------------------------ */

body {
	margin: 0;
	font-family: Georgia, Cambria, serif;
	font-size: 0.9em;
	line-height: 1.5;
	max-width: 70em;
}

header {
	margin: 0 10px 1em 10px;
	padding: 10px 6% 5px 6%;
	border-bottom: 1px solid gray;
	/*#A5C9EB*/
	text-align: center;
	font-family: sans-serif;
	font-size: 12pt;
}

main {
	margin: 2% 6% 2% 6%;
}

footer {
	margin: 1cm 0 0 0;
	padding: 5px 6% 10px 6%;
	border-top: 1px solid gray;
	font-family: sans-serif;
	font-size: 9pt;
	text-align: left;
}


/* --- SECTIONS AND TITLES ------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
	font-family: sans-serif;
	font-weight: normal;
	color: #005A9C;
}

h1 {
	margin-top: 1.5em;
	margin-bottom: 0.5em;
	font-size: 200%;
}

h2 {
	margin-top: 1.5em;
	padding-bottom: 0.1em;
	border-bottom: 1px solid #A5C9EB;
	font-size: 150%;
	font-weight: normal;
}

div.title-book h1 {
	margin-bottom: 1em;
}

div.title-book h2 {
	border: 0;
	margin-top: 0;
	margin-bottom: 1.5em;
	padding-top: 0;
	font-size: 175%;
}

li.book {
	margin-bottom: 1em;
}


/* --- BLOCK-LEVEL ELEMENTS ------------------------------------------------ */

p {
	text-align: left;
}

p.biblio {
	margin-left: 2em;
	margin-right: 2em;
	text-align: left;
}

p.biblio span.author {
	font-weight: normal;
	font-variant: small-caps;
}

p.biblio span.title {
	font-style: italic;
}


/* --- TOC ----------------------------------------------------------------- */

.TOC p {
	margin: 0 0 0 0.7em;
	text-align: left;
}

.TOC h3 {
	background-color: #F6F6F6;
	color: navy;
	font-weight: normal;
	font-size: 120%;
	margin: 0.6em 0 0.3em 0;
	padding: 0.2em 0.3em 0.2em 0.6em;
	text-align: left;
	font-family: inherit;
}

p.TOCchapter,
p.TOCsection {
	margin: 0pt 0pt 0pt 0pt;
	color: navy;
	text-align: left;
}

.TOC .page-ref {
	display: inline-block;
	width: 3em;
}

span.leader {
	color: gray;
}

span.chapternumber {
	font-weight: bold;
}

span.paragraph {
	color: teal;
}

form {
	padding: 0em;
}


/* TODO */

.toc-entry {
	display: grid;
	grid-template-columns: 3em 1fr;
	gap: 0.5em;
}
.toc-entry.toc-level-2 { grid-template-columns: 4em 1fr; }
.toc-entry.toc-level-3 { grid-template-columns: 5em 1fr; }
.toc-entry.toc-level-4 { grid-template-columns: 6em 1fr; }
.toc-entry.toc-level-5 { grid-template-columns: 7em 1fr; }
.toc-entry.toc-level-6 { grid-template-columns: 8em 1fr; }
.toc-entry.toc-level-7 { grid-template-columns: 9em 1fr; }
.toc-entry.toc-level-8 { grid-template-columns: 9em 1fr; }


/* --- INLINE ELEMENTS ----------------------------------------------------- */

q {
	font-style: italic;
	color: navy;
}

em.special {
	color: maroon;
	font-style: normal;
}

span.inline-title {
	color: navy;
	font-weight: normal;
}

.separator {
	color: #ababab;
	padding: 0 0.1em;
}

/* --- PRINTING ------------------------------------------------------------ */

@media print {

	body {
		/* provide some gutter: */
		margin: 0 0 0 5mm;
		font-family: Georgia, serif;
	}

	h1, h2, h3, h4, h5, h6 {
		font-family: Arial, sans-serif;
	}

	div.title-book h1 {
		margin-bottom: 5mm;
	}

	div.title-book h2 {
		margin-bottom: 5mm;
	}

	p {
		margin: 6pt 0 6pt 0;
	}

	p.biblio {
		margin: 6pt 1cm 6pt 1cm;
	}

	abbr {
		border: 0;
	}

	/* Hide the following elements: */
	div#header, form {
		display: none;
	}

}