/*Tables*/
.landTable {
	page: landscape;
}

.breakHere {
	page-break-before:always !important;
}

.row-pgBreak {
	page-break-after:avoid !important;
}

.botBorder {
	border-bottom:1px solid black;
}

.two-wide .graphic {
	max-width: 45%;
	margin:5px;
	margin-left:auto;
	margin-right:auto;
}

.rotated .para {
	white-space: nowrap;
	writing-mode:vertical-rl;
	-ms-writing-mode:tb-rl;
	-webkit-writing-mode:vertical-rl;
	transform:rotate(180deg);
	display: inline-block;
}

/*Gallery & Image stuff*/

.half-page {
	float:right;
	max-width:2.2in;
	margin-left:5px;
	margin-top:5px;
	clear:left;
}

.half-page-drop {
	float:right;
	max-width:2.2in;
	margin-left:1px;
	margin-top:.2in;
	clear:left;
}

.half-page {
	flex-flow:column;
	-webkit-flex-flow:column;
}

.two-wide .graphic {
	max-width: 45%;
	margin:5px;
	margin-left:auto;
	margin-right:auto;
}

/*
  ========================================
  Clearfix
  ========================================
*/

.group:before,
.group:after {
	content: "";
	display: table;
}

.group:after {
	clear: both;
}

.group {
	clear: both;
	*zoom: 1;
	display:flex;
	overflow:auto;
	flex-direction:row;
}

/*
  ========================================
  endClearfix
  ========================================
*/

/*eCode Only*/
@media screen {
	.rotated .para {
		display: inline-block;
		
	}


.two-wide .graphic {
	max-width: 45%;
	margin:5px;
	margin-left:auto;
	margin-right:auto;
}

.rotated .para {
	white-space: nowrap;
	writing-mode:vertical-rl;
	-ms-writing-mode:tb-rl;
	-webkit-writing-mode:vertical-rl;
	transform:rotate(180deg);
	display: inline-block;
}

.half-page {
	float:right;
	max-width:2.2in;
	margin-left:1px;
	margin-top:.5in;
	clear:left;
}

.half-page-drop {
	float:right;
	max-width:2.2in;
	margin-left:1px;
	margin-top:.2in;
	clear:left;
}

.half-page {
	flex-flow:column;
	-webkit-flex-flow:column;
}

.two-wide .graphic {
	max-width: 45%;
	margin:5px;
	margin-left:auto;
	margin-right:auto;
}

}
	
/*Prince-Specific Override for rotated text */
	.rotated > para {
		writing-mode: vertical-rl;
		transform:rotate(180deg);
		display: inline-block;
		}
	
/**********PRINT-ONLY**********/
@media print {
	@page landscape {
		size: letter landscape;
		@footnotes { border-top:thin solid black; padding-top:3pt; margin-top:.125in;}
		@top-center {width: 3.75in;}
		@top-left { content: string(left-corner,start);}
		@top-right { content: string(right-corner,last);}
		@bottom-center { content: string(ch-num)":"string(particle-num,last)"-"counter(page); margin-bottom:0;}
	}
	
	@page landscape:left {
		margin: .75in .5in 1.25in .5in ;
		@footnotes { border-top:thin solid black; padding-top:3pt; margin-top:.125in;}
		@bottom {padding-bottom:.875in;}
		@top {padding-top:.375in;}
		@top-left {padding-top:.375in;}
		@top-right {padding-top:.375in;}
		@bottom-center { content: string(ch-num)":"string(particle-num,last)"-"counter(page); margin-bottom:0;}
	}

	@page landscape:right {
		margin: 1.25in .5in .75in .5in ;
		@footnotes { border-top:thin solid black; padding-top:3pt; margin-top:.125in;}
		@bottom {padding-bottom:.375in;}
		@top {padding-top:.875in;}
		@top-left {padding-top:.875in;}
		@top-right {padding-top:.875in;}
		@bottom-center { content: string(ch-num)":"string(particle-num,last)"-"counter(page); margin-bottom:0;}
	}

	@page landscape:blank {
		@top-center { content: "" }
		@top-left { content: "" }
		@top-right { content: "" }
		@bottom-center { content: "" }
		@bottom-right { content: ""}
	} 
	
	title {
		page-break-after: avoid !important;
	}
	
	@page particle {
		@bottom-center { content: string(ch-num)":"string(particle-num,last)"-"counter(page); margin-bottom:0; padding-bottom:.625in;}
	}
	
	article {
		counter-reset: page 1;
	}
	
	scheme-item.article {
		page-break-inside: avoid;
	}

	.codeTable table td, .codeTable table th {
    hyphens: auto;
	}
	
}

/*eCode Only*/
@media screen {
	.codeTable{
		margin-bottom:1em;
		font-size: 10;
		}
}

/*Page Breaks Are Fun*/
[indexnum="350-404A(8)"],
[indexnum="350-502B(3)"],
[indexnum="350-203C"],
[indexnum="350-602E"],
[indexnum="350-608B"],
[indexnum="350-608C"],
[indexnum="350-603F(8)(b)"]{
	page-break-before:always;
}

section[indexnum="350-508"],
[indexnum="350-511"],
[indexnum="350-405"],
[indexnum="350-605"]{
	page-break-before:always;
}

section[indexnum="350-824"],
[indexnum="350-703"]{
	page-break-after:avoid !important;
}

[indexnum="350-608A"]{
	page-break-after:avoid;
}	