/* This is the printing style sheet */
body {font-size:11pt; font-family:Georgia, serif; }
.screen-note { display:none; }
div.titlepage,
div.halftitle,
div.titleverso,
div.contents,
div.frontmatter,
	div.docinfo,
	div.dedication,
	div.foreword,
	div.preface,
	div.prologue,
	div.introduction,
	div.acknowledgments,
div.body, div.page,
	div.volume,
	div.book,
	div.chapter,
	div.act,
	div.essay,
	div.story,
	div.canto,
div.backmatter,
	div.afterword,
	div.epilogue,
	div.postscript,
	div.appendix,
	div.notes,
	div.glossary,
	div.bibliography,
	div.index {
		page-break-after:always;
}
h1,h2,h3,h4,h5,h6 { page-break-after:avoid; }
div.titlepage p.imprint { margin-top:60%; }

div.navigation { display:none; }
div.titlepage hr { display:none; }
div.contents hr { display:none; }
div.docinfo hr { display:none; }

/*
The following is derived from "Printing a Book with CSS: Boom!",
http://www.alistapart.com/articles/boom/ 

Unfortunately, the CSS is not yet widely implemented :(

h1 { string-set: header content();}
div.chapter h3 { string-set: header "Chapter " counter(chapter) ": " content(); }
@page {
	size:6in 9in;
	margin:25mm 20mm 20mm 20mm;
}
div.titlepage,
div.halftitle,
div.titleverso,
div.contents
	page: blank;
}
div.frontmatter,
	div.docinfo,
	div.dedication,
	div.foreword,
	div.preface,
	div.prologue,
	div.introduction,
	div.acknowledgments {
		page: frontmatter
}
@page :left {
	@top-left {
		font: 11pt "Gill Sans", serif;
		content: "Cascading Style Sheets";
		vertical-align: bottom;
		padding-bottom: 2em;
	}

	@bottom-left {
		font: 11pt "Gill Sans", serif;
		content: counter(page);
		padding-top: 2em;
		vertical-align: top;
	}
}

@page :right {
	@top-right {
		font: 11pt "Gill Sans", serif;
		content: string(header, first); 
		vertical-align: bottom;
		padding-bottom: 2em; 
	}

	@bottom-right {
		font: 11pt "Gill Sans", serif;
		content: counter(page);
		text-align: right;
		vertical-align: top;
		padding-top: 2em;
	}
}

@page frontmatter :left {
	@top-left {
		font: 11pt "Gill Sans", serif;
		content: string(title);
		vertical-align: bottom;
		padding-bottom: 2em;
	}

	@bottom-left {
		font: 11pt "Gill Sans", serif;
		content: counter(page, lower-roman);
		padding-top: 2em;
		vertical-align: top;
	}
}
@page frontmatter :right {
	@top-right {
		font: 11pt "Gill Sans", serif;
		content: string(header, first); 
		vertical-align: bottom;
		padding-bottom: 2em; 
	}

	@bottom-right {
		font: 11pt "Gill Sans", serif;
		content: counter(page, lower-roman);
		text-align: right;
		vertical-align: top;
		padding-top: 2em;
	}
}

@page blank :left {
	@top-left { content: normal }
	@bottom-left { content: normal }
}

@page blank :right {
	@top-right { content: normal }
	@bottom-right { content: normal }
}
@page blank :left {
	@top-left { content: normal; }
}

*/
