/* Copyright 2009 Infogrid Pacific Pte. Ltd. All rights reserved */

/* galley */
.galley-rw {font-size: 0.9em; line-height: 1.2em; text-align: justify; padding-right: 0em;}
.galley-rw h2, .galley-rw h3, .galley-rw h4, .galley-rw h5, .galley-rw h6 {font-size: 1em; line-height: 1.2em; text-align: center; margin: 0; padding: 0;}
.galley-rw h2 { font-weight: normal; text-transform: uppercase; padding: 2em 2em 1em 2em; }
.galley-rw h3 { font-weight: bold; padding: 1em 2em 0.5em 2em; }
.galley-rw h4 { font-style: italic; font-weight: bold; padding: 1em 2em 0.25em 2em; }
.galley-rw h5 { font-weight: bold; text-align: left; padding: 1em 2em 0.25em 0; }
.galley-rw h6 { font-style: italic; font-weight: bold; text-align: left; padding: 1em 2em 0.25em 0; }

p {margin: 0;}
p + p {text-indent: 1.3em;}
.alt-rw p {font-family: sans-serif; font-size: 0.9em;}
.decoration-rw {text-align: center; padding: 1em 0 1em 0;}
.leading-line-rw {height: 1em; }
.hanging-rw p, .hanging-rw p + p {text-indent: -1.3em; margin-left: 1.3em;}

p.middle-rw { text-indent:0; text-align: center; }
p.right-rw { text-align: right; }
p.indent-rw { text-indent: 1.3em; }
p.attribution {text-align: right; font-style: italic;}

span.sc-rw { font-variant: small-caps; }
.superscript {font-size: 0.7em; vertical-align: top;}
.subscript {font-size: 0.7em; vertical-align: bottom;}
.dropcap-rw { float: left; font-size: 2.7em; line-height: 0.87em; }
.raisedcap-rw { font-size: 2em; line-height: 1em; }
.bts-rw { font-size: small; }
.btl-rw { font-size: large; }

div.cover {position: relative; text-align: center; text-indent: 0px; clear: both; width: auto; height: 100%;}
div.cover img {display: block; height: 100%; margin-left: auto; margin-right: auto;}

/* caption */
p.caption-rw { font-size: 0.9em; line-height: 1.2em; font-style: italic; text-indent: 0; text-align: left; padding: 0.25em 0 0.25em 0; }

/* title-block-book */
.title-block-book-rw {margin:0; padding: 4em 0.5em 2em 0.5em;}
.title-block-book-rw h1, .title-block-book-rw .title-sub-rw, .title-block-book-rw .title-author-rw, .title-block-book-rw p {font-weight: normal; text-align: center; text-indent: 0; margin: 0;}
.title-block-book-rw h1 { font-size: 2.7em; line-height: 1.1em; font-weight: normal; padding: 0 0 2em 0; }
.title-block-book-rw .title-sub-rw { font-size: 1.25em; line-height: 1.2em; padding: 0 0 3em 0; }
.title-block-book-rw .title-author-rw, .title-block-book-rw .title-contributor-rw { font-size: 2em; line-height: 1.5em; padding: 0 0 3em 0; }
.title-block-book-rw .title-other-rw { font-size: 1em; line-height: 1.2em; text-indent: 0; padding: 0 0 1em 0; }
.title-block-book-rw p {text-indent: 0;}
.imprint-rw { font-family: sans-serif; text-align: center; margin-top: 3em; padding: 1em 0 0.5em 0; border-top: 1px solid rgb(0,0,0); border-bottom: 1px solid rgb(0,0,0); }
.imprint-rw p { font-size: 0.9em; line-height: 1.2em; text-indent: 0; margin: 0; padding: 0 0 0.5em 0; }

/* title-block */
.title-block-rw { margin: 1em 0 1em 0; padding: 2em 0.5em 2em 0.5em; }
.title-block-rw h1, .title-block-rw .title-sub-rw, .title-block-rw .title-num-rw, .title-block-rw .title-author-rw, .title-block-rw .title-contributor-rw, .title-block-rw .title-other-rw { font-weight: normal; text-align: center; text-indent: 0; margin: 0; }
.title-block-rw h1 { text-transform: uppercase; font-size: 2em; line-height: 1.4em; padding: 0 0 0.5em 0; }
.title-block-rw .title-sub-rw { font-size: 1.25em; padding: 0 0 1em 0; }
.title-block-rw .title-num-rw { text-transform: uppercase; font-size:1.5em; padding: 0 0 0.5em 0; }
.title-block-rw .title-author-rw, div.title-block-rw .title-contributor-rw { font-size: 1.25em; padding: 0 0 0.5em 0; }
.title-block-rw .title-other-rw { font-size: 0.9em; padding: 1em 0 0.5em 0; }

/* copyright */
.Copyright-rw { padding: 4em 2em 1em 2em; }
.copyright-rw p, .copyright-center-rw p { font-weight: normal; font-size: 0.9em; text-indent: 0; padding: 0 0 0.5em 0; }

/* Dedication */
.Dedication-rw { padding: 4em 2em 1em 2em; }
.Dedication-rw p, .Dedication-rw div { display: block; font-size: 1.1em; line-height: 1.3em; text-align: center; text-indent: 0; }

/* indent */
div.indent-rw { margin-left: 1.5em; }

/* block */
.block-rw { margin-top: 1em; margin-bottom: 1em; padding: 0; }
.block-rw h4 { font-size: 1em; font-weight: bold; text-align: left; padding: 1em 0 0.5em 0.25em; }

/* epigraph */
div.epigraph-rw { width: 60%; display: block; font-size: 0.9em; line-height: 1.2em; margin-left: auto; margin-right: auto; }

/* extract */
div.extract-rw { margin-left: 1em; margin-right: 1em; }

/* speech */
div.speech-rw { text-align: left; }
.speech-rw p { text-indent: -2em; margin-left: 2em; }
span.speaker-rw { padding-right: 0.5em; }

/* notebox */
div.notebox-rw { font-size: 0.9em; line-height: 1.2em; padding: 1em; background: rgb(230, 230, 250); }

/* boxed */
div.boxed-rw { padding: 0.5em 1em 0.5em 1em; border: 1px solid rgb(0,0,0); }

/* code */
div.code-rw { background: rgb(255, 255, 204); margin: 1em 0 1em 0; padding: 0.5em; }
pre { font-family: 'DejaVu Sans Mono', monospace; font-size: 0.8em; line-height: 1.2em; margin: 0; padding: 0 1em 0 1em; background: rgb(255, 255, 204); }
pre + p { margin-top: 1em; text-indent: 0; }
p + pre { margin-top: 1em; }

/* poem */
div.poem-rw { display: table; margin-left: auto; margin-right: auto; }
div.poem-rw p, div.poem-rw p + p { text-indent: 0; }

/* references */
div.references-rw { font-size: 0.9em; line-height: 1.3em; margin: 1em 0 1em 0; }
.references-rw p, .references-rw p + p, .list-references-rw p, .list-references-rw p + p { text-align: left; text-indent: -1.3em; margin: 0 0 0 1.3em; padding: 0; }

/* list-notes */
.list-notes-rw p { font-size: 0.9em; line-height: 1.2em; text-indent: -1.3em; margin: 0 0 0.5em 1.3em; padding: 0; }
.list-notes-rw li { text-indent: 0; }
.list-notes-rw h2, .notes-rw h3, .book-end-notes-rw h3, .part-end-notes-rw h3, .chapter-end-notes-rw h3 { font-size: 0.8em; line-height: 1em; font-weight: bold; margin: 1em 0 0.5em 0; }
span.num-note-rw { float: left; width: 1em; padding-right: 0.25em; }

/* list-toc */
ul.list-toc-rw li { list-style-type: none; margin: 0 0 0.5em 1em; }
.ch-num-rw {float: left; width: 1.5em; text-align: right; margin-right: 0.5em; margin-left: -1.5em; }
.citation-rw { display: block; font-style: italic; margin-left: 0.5em;}

/* numbered-paras */
.numbered-paras-rw p { margin-left: 1.3em; text-indent: -1.3em; }
.numbered-paras-rw p.indent-rw { text-indent: 0em; }

/* li */
li { margin-bottom: 0.25em; }
ol ol li { list-style: lower-alpha; }
ol ol ol li { list-style: lower-roman; }
ul ul li { list-style: square; }
ul ul ul li { list-style: circle; }

/* ol */
ol { margin: 1em 0 1em 1.5em; padding: 0; }
ol ol, ol ul { padding-top: 0.25em; }

/* ul */
ul { margin: 1em 0 1em 1em; padding: 0; }
ul ul, ul ol { padding-top: 0.25em; }

/* table */
div.table-rw { font-size: 1em; line-height: 1.2em; text-align: left; margin: 1em 2em 1em 2em; }
div.table-rw h4 { font-size: 1em; margin: 0 0 0.5em 0; }
div.table-rw p, div.table-float-rw p { text-indent: 0; padding: 0 0 0.5em 0; }
table { border-collapse: collapse; font-size: 1em; line-height: 1.2em; margin-top: 0.5em; margin-bottom: 0.5em; margin-right: auto; margin-left: auto; border-top: 1px solid rgb(255, 255, 255); border-bottom: 1px solid rgb(255, 255, 255); width: 100%; }
table th { font-weight: bold; vertical-align: top; padding: 0.25em 0.5em 0.25em 0.5em; border-bottom: 1px solid rgb(255, 255, 255); }
table td { vertical-align: top; padding: 0 0.5em -.25em 0.5em; }
table tfoot td { font-size: 0.9em; line-height: 1em; font-style: italic; padding-top: 0.5em; border-top: 0.1pt solid rgb(0,0,0); }

/* Document Sections */

/* frontmatter */
.HalfTitle .title-block h1{font-size: 1.5em; text-transform: none;}
.HalfTitle { }
.BookTitlePage { }
.Copyright { }
.Dedication { }
.TableOfContents { }
.Foreword {padding-bottom: 5em; }
.Preface { padding-bottom: 5em;}
.Introduction { padding-bottom: 5em;}

/* body */
.Part {padding-bottom: 5em; }
.Chapter {padding-bottom: 5em; }

/* backmatter */
.Appendix {padding-bottom: 5em; }
.Bibliography {padding-bottom: 5em; }
.EndNotes {padding-bottom: 5em; }
.InsertedCopyright { }
