/*
===============================================================================
 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
 [2026-04-20] integrated browse stylesheet; centered pages
 [2026-05-03] improved print lay-out

 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 auto;
	max-width: 65em;
	line-height: 1.5;
	font-family: Georgia, Cambria, serif;
}

header {
	margin: 0 0 1em 0;
	padding: 10px 1em 5px 1em;
	border-bottom: 1px solid #A5C9EB;
	font-family: sans-serif;
	font-size: 12pt;
	text-align: center;
}

main {
	margin: 0 1em;
}

footer {
	margin: 3em 0 0 0;
	padding: 10px 1em 10px 1em;
	border-top: 1px solid #A5C9EB;
	font-family: sans-serif;
	font-size: 11pt;
	text-align: center;
}


/* --- 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: 2rem;
}

h2 {
	margin-top: 1.5em;
	padding-bottom: 0.1em;
	border-bottom: 1px solid #A5C9EB;
	font-size: 1.4rem;
	font-weight: normal;
}

div.title-book h1 {
	margin-top: 1em;
	margin-bottom: 0.5em;
}

div.title-book h2 {
	border: 0;
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 0;
	font-size: 1.6rem;
}

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: 1.2rem;
	margin: 0.6em 0 0.3em 0;
	padding: 0.2em 0.3em 0.2em 0.6em;
	text-align: left;
	font-family: inherit;
}

.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; }

.toc-letter .toc-capital {
	display: inline-block;
	width: 1.5em;
}

.paragraph {
	color: teal;
}


/* --- Facsimile pages ----------------------------------------------------- */

#navbottom {
	margin: 1em 0;
	text-align: center;
	font-family: sans-serif;
	font-size: 12pt;
}

body.facsimile main {
	margin: 0; /* use entire width for image on narrow screens */
}

body.facsimile main .image img {
	display: block;
	width: 100%;
	max-width: 60em;
	height: auto;
	margin: 0 auto;
}


/* --- Inline elements ----------------------------------------------------- */

q {
	font-style: italic;
	color: navy;
}

.separator {
	color: #ababab;
	padding: 0 0.1em;
}


/* --- Printing ------------------------------------------------------------ */

@media print {

	body {
		margin: 0;
		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 these elements: */
	header, footer, form, #navbottom {
		display: none;
	}

	/* Scale the facsimile image: */
	body.facsimile main .image img {
		max-width: 75%;
	}
}