/*
	stylesheet for PPUR book
	Yves Piguet, June 2014
*/

hr {}

body {
	max-width: 40em;
	margin: 3em auto;
	font-family: Times, serif;
}

p {
	text-align: justify;
	text-indent: 2em;
	font-size: 12pt;
	margin-top: 0.7ex;
	margin-bottom: 0.7ex;
}

div.objectif {
	font-family: sans-serif;
	font-style: italic;
	padding-top: 1em;
	padding-bottom: 1em;
}

div.objectif h2 {
	text-align: left;
	font-weight: normal;
	text-transform: uppercase;
	margin-bottom: 0ex;
}

div.displaymath {
	width: 100%;
	display: table;
	border-collapse: collapse;
}
div.displaymath div {
	display: table-row;
}
div.displaymath div > div {
	display: table-cell;
	vertical-align: middle;
	/* border: solid 1px magenta; */
}
div.displaymath div > div:first-child {
	padding-left: 3em;
}
div.displaymath div > div:nth-child(2) {
	text-align: right;
}
div.eqnum {
	font-size: 12pt;
}
div.eqnum p {
	text-align: right;
}

/*
div.displaymath div > div:first-child {
	padding-left: 3em;
}
div.displaymath div > div:nth-child(2) {
	text-align: right;
}
div.eqnum {
	font-size: 12pt;
}
div.eqnum p {
	text-align: right;
}
*/

div.error, span.error {
	background: #faa;
}

h1 {
	text-align: center;
}

h1.chapnum {
	font-size: 16pt;
	font-weight: normal;
	font-variant: small-caps;
	margin-top: 3em;
	margin-bottom: 3em;
}

h1.part {
	background: silver;
	padding: 5pt;
	font-size: 32pt;
}

h2 {
	text-align: center;
	margin-top: 3em;
	margin-bottom: 1em;
}

h3 {
	margin-top: 2em;
}

h3.exemple {
	margin-top: 2em;
	font-variant: small-caps;
	font-weight: normal;
	background: #ddd;
}

div.def, div.th {
	background: #ddd;
	padding-left: 2ex;
	padding-right: 2ex;
	padding-top: 0.5ex;
	padding-bottom: 0.5ex;
	margin-top: 2em;
	margin-bottom: 1em;
}

div.def > h2, div.th > h2 {
	text-align: left;
	font-size: 12pt;
	margin-top: 1ex;
	margin-bottom: 0ex;
}

div.def > p {
	text-indent: 0em;
}

div.th > p {
	text-indent: 0em;
	font-style: italic;
}

div.carre {
	width: 0.8em;
	height: 0.8em;
	background: black;
	float: right;
	margin-top: -1.5em;
}

div.demo {
	margin-bottom: 2em;
}

div.demo > h2 {
	text-align: left;
	font-size: 12pt;
	margin-bottom: 0ex;
}

span.exo {
	font-weight: bold;
	margin-right: 0.8em;
}

img.f {
	width: 100%;
}

figure.figure, figure.table {
	margin-top: 2em;
	margin-bottom: 2em;
}

figure.figure > div {
	margin-left: auto;
	margin-right: auto;
}

figure.figure > p {
	text-align: center;
}

div.figoverlay {
	font-size: 90%;
}

table {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

figure.figure > figcaption {
	font-size: 90%;
	text-align: justify;
}

figure.table > figcaption {
	font-size: 90%;
	text-align: center;
}

figcaption > span.title {
	font-weight: bold;
	margin-right: 0.8em;
}

table {
	border-collapse: collapse;
	margin-top: 1em;
}
td {
	border: solid black 1px;
	text-align: center;
	text-indent: 0em;
	vertical-align: middle;
	padding-left: 1em;
	padding-right: 1em;
	padding-top: 1ex;
	padding-bottom: 1ex;
}

table.hlines th {
	border-top: solid black 1px;
	border-bottom: solid black 1px;
	border-left: none;
	border-bottom: none;
	padding-top: 1ex;
	padding-bottom: 1ex;
	padding-left: 0ex;
	text-align: left;
}
table.hlines td {
	border-top: solid black 1px;
	border-bottom: solid black 1px;
	border-right: none;
	border-left: none;
	padding-top: 1ex;
	padding-bottom: 1ex;
	padding-left: 0ex;
	text-align: left;
}

a.xref {
	text-decoration: none;
	color: black;
	background: #eee;
}

a.xref:hover {
	color: red;
}

.bf {
	font-weight: bold;
}

.it {
	font-style: italic;
}

.rm {
	font-style: normal;
}

.sl {
	font-style: oblique;
}

.bf {
	font-weight: bold;
}

ul.toc {
	list-style-type: none;
	font-size: 12pt;
}

li.tocentry1 {
	text-indent: 0ex;
	font-weight: bold;
	margin-top: 2ex;
}

li.tocentry2 {
	text-indent: 0ex;
	margin-top: 1ex;
}

li.tocentry3 {
	text-indent: 1em;
}

li.tocentry4 {
	text-indent: 2em;
}
