/** 
 * SilverStripe Black Candy Theme
 * http://www.silverstripe.com
 *
 * This typography file is included in the WYSIWYG editor and the front end. It provides
 * a place to add link styles and font styles you would like in the CMS and the Front End.
 */

 
/* GENERIC STYLES 
-------------------------------------------- */
 
.typography * {
	font-family: Verdana, Lucida, Arial, sans-serif; 
}

/* Home page styles */
div.typography.home h1 {
	margin-top: .5em;
}
div.typography.home h3 {
	clear: none;
}

/* The page title */
.typography h1.page-title {
  font-weight: 300;
  font-size: 24px;
  margin-top: 0;
  color: #004376;
  font-weight: bold;
}

/* General */
.typography p { 
 	color: #222;
 	line-height: 18px;
 	font-size: 12px;
	margin: .5em 0 0;
}
.typography hr {
  margin: 1em 0 .2em;
	border: 0;
	border-bottom: 1px solid #ccc;
}
.typography em {
  font-style: italic;
}
.typography strong {
  font-weight: bold;
}
.typography code {
  color: #B35900;
  font-family: "Courier New", Courier;
}
.typography var {
  color: #000;
  font-weight: bold;
  font-family: "Courier New", Courier;
}


/* QUOTES
-------------------------------------------- */
.typography blockquote {
	margin: 1em 0 .5em;
  padding: 1em 50px .75em;
	font-size: 11px;
	color: #333;
	font-style: italic;
  line-height: 1.75em;
  background: url('../images/Quote_Open_en-US.png') no-repeat 3px 3px #FFEFDE;
  border: 1px solid #ccc;
  border-left: none;
  border-right: none;
}
  .typography blockquote cite {
    display: block;
    margin: .5em 0 0 1.5em;
  }
.typography q {
	color: #407940;
	font-style: italic;
  font-weight: normal;
}
.typography cite {
	color: #666;
  font-style: italic;
  font-weight: bold;
}


/* LINKS 
-------------------------------------------- */

.typography a,
.typography a:link { 
 	text-decoration: none; 
	color: #0066e3;
}
  .typography a:visited { 
	  color: #0049a3;
  }
  .typography a:active { 
	  color: #1e848a;
  }
	.typography a:hover {
    color: #3e95ff;
 		text-decoration: underline;
	}

	/* LINK ICONS - shows type of file
	------------------------------------ */
	.typography a[href$=".pdf"],
	.typography a[href$=".PDF"],
	.typography a.pdf {
		padding: 2px;
		padding-left: 20px;
		background: url(../images/icons/page_white_acrobat.png) no-repeat left center;
	}
	.typography a[href$=".doc"],
	.typography a[href$=".DOC"],
	.typography a.doc {
		padding: 2px;
		padding-left: 20px;
		background: url(../images/icons/page_word.png) no-repeat left center;
	}
	.typography a[href$=".xls"],
	.typography a[href$=".XLS"],
	.typography a.xls {
		padding: 2px;
		padding-left: 20px;
		background: url(../images/icons/page_excel.png) no-repeat left center;
	}
	.typography a[href$=".gz"],
	.typography a[href$=".GZ"],
	.typography a[href$=".gzip"],
	.typography a[href$=".GZIP"],
	.typography a[href$=".zip"],
	.typography a[href$=".ZIP"],
	.typography a.archive {
		padding: 2px;
		padding-left: 20px;
		background: url(../images/icons/page_white_zip.png) no-repeat left center;
	}
	.typography a[href$=".exe"],
	.typography a[href$=".EXE"],
	.typography a.application {
		padding: 2px;
		padding-left: 20px;
		background: url(../images/icons/application.png) no-repeat left center;
	}

/* LIST STYLES 
-------------------------------------------- */
.typography ul, 
.typography ol {
	margin: 0 0 1em 1em;
}
.typography ol {
  list-style-type: decimal;
}
  .typography ol ol {
    list-style-type: lower-alpha;
  }
.typography ul {
  list-style-type: disc;
}
  .typography ul ul {
    list-style-type: circle;
  }
	.typography li {
		margin: .5em 0 0 1em;
	}
		.typography li li {
      margin-left: .5em;
		}
		
/* HEADER STYLES 
-------------------------------------------- */

.typography h1 { 
	color: #333; 
	margin: 1.5em 0 .5em 0;
	font-weight: 300;
	font-size: 22px;
}
.typography h1.home {
	margin-bottom: .2em;
}
.typography h2 { 
 	font-size: 22px;
  color: #233b79; 
	margin: 1.5em 0 .5em 0;
	font-weight: bold;
}
.typography h3 {
	color: #0e1831;
	margin: 1.5em 0 .5em 0;
	font-weight: bold;
	clear: both;
	font-size: 18px;
}
.typography h4 {
	font-size: 15px;
	color: #394258;
	font-weight: bold;
	margin: 1em 0 .5em 0;
}
.typography h4.home {
  margin-bottom: 1.5em;
}
.typography h5 {
	font-size: 13px;
	color: #394258;
	font-weight: bold;
	margin: 1em 0 .5em 0;
}
.typography h6 {
	font-size: 12px;
	color: #394258;
	font-weight: bold;
	margin: 1em 0 .5em 0; 
}

/* PRE STYLES 
-------------------------------------------- */	
.typography pre {
	font-family: "Courier New", Courier;
	font-size: 11px;
	margin: 1em 0;
	padding: 0.5em 1em;
	border: 1px #ccc solid;
	background: #eee;
  color: #B35900;
  white-space: pre-wrap;       /* css-3 */
  white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
  white-space: -pre-wrap;      /* Opera 4-6 */
  white-space: -o-pre-wrap;    /* Opera 7 */
  word-wrap: break-word;       /* Internet Explorer 5.5+ */
  line-height: 1.5em;
}

/* TABLE STYLING 
-------------------------------------------- */
.typography table {
	margin: 0 0 1.5em;
	font-size: 11px;
	color: #666;
	border-collapse:collapse;
}
	.typography th {
    border: 1px solid #999;
    background: #666;
    padding: .2em .4em;
    color: #fff;
    text-align: center;
    vertical-align: top;
  }
  .typography td {
    border: 1px solid #999;
    padding: .3em .5em;
    vertical-align: top;
  }

/* WYSIWYG EDITOR ALIGNMENT CLASSES 
-------------------------------------------- */
.typography .left {
	text-align: left;
}
.typography .center {
	text-align: center;
}
.typography .right {
	text-align: right;
}

/* IMAGES 
-------------------------------------------- */
.typography img {
	border: none;
}
	.typography div.image.right,
	.typography div.captionImage.right {
		float: right;
    margin: 0 0 5px 20px; 
	}
	
	.typography .captionImage {
		border: 1px solid #aaa;
		padding: 5px;
	}
	
	.typography div.image.left,
	.typography div.captionImage.left {
		float: left;
    margin: 0 20px 5px 0;
	}
	.typography div.image.leftAlone,
	.typography div.captionImage.leftAlone {
		float: left;
		margin-right: 100%;
	}
	.typography div.image.center,
	.typography div.captionImage.center {
		float: none;
		margin-left: auto;
		margin-right: auto;
		display: block;
	}
	
	.typography .caption {
		font-weight: bold;
		text-align: center;
		color: #666;
	}
