/*

Theme Name: CEHCF
Theme URL: http://www.cehcf.org/
Description: Complete Clarence E. Heller Charitable Foundation web site theme
Author: Damon Tribble
Author URI: www.tribbledesigns.com

*/



/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
	font:12px/17px Arial, Helvetica, sans-serif;	
	text-align:center;
	color:#5A4A42;
	padding-bottom:40px;
}

a {
	color:#C44E26;	
	text-decoration:none;
}

a:hover {
	text-decoration:underline;
}

strong {
	font-weight:bold;	
}

header, header .container, #main, footer {
	margin:0 auto;	
}

header {
	max-width:1165px;	
	height:177px;
	background:url(img/header-background.gif) 0 0 repeat-x;
	position:relative;
}

header .container {
	position:relative;	
}

header .container, #main {
	width:983px;	
}

h1 {
	position:absolute;
	top:31px;
	left:0;	
}

header form {
	position:absolute;
	right:0;
	top:15px;	
}

#s {
	background:white;
	padding:2px;
	width:151px;
	height:20px;
	font-size:14px;
	border:none;
	position:absolute;
	top:0;
	right:22px;	
	-webkit-box-shadow: inset 0px 0px 4px 4px rgba(230, 230, 230, 1);
	box-shadow: inset 0px 0px 4px 4px rgba(230, 230, 230, 1);
	color:#333;
}

header form input[type=image] {
	position:absolute;
	top:0;
	right:0;	
}

#meta-nav {
	position:absolute;
	top:19px;
	right:178px;	
}

#meta-nav li {
	float:left;
	padding:0 8px;
	border-left:1px solid #fff;	
}

#meta-nav li:first-child {
	border-left:none;
}

#meta-nav a {
	color:white;
	text-decoration:none;	
}

#meta-nav a:hover {
	text-decoration:underline;
}

#main-nav {
	width:100%;
	min-width:983px;
	position:absolute;
	bottom:0;
	left:0;
	text-align:center;
	height:42px;
background: #716558; /* Old browsers */
background: -moz-linear-gradient(top,  #716558 0%, #5a4a42 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#716558), color-stop(100%,#5a4a42)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  #716558 0%,#5a4a42 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  #716558 0%,#5a4a42 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  #716558 0%,#5a4a42 100%); /* IE10+ */
background: linear-gradient(to bottom,  #716558 0%,#5a4a42 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#716558', endColorstr='#5a4a42',GradientType=0 ); /* IE6-9 */
}

.lt-ie8 #main-nav {
	filter:none;
}

#main-nav ul {
	width:983px;
	margin:0 auto;	
}

#main-nav > ul > li.current-menu-ancestor, #main-nav > ul > li.current-menu-item {
	background:#5A4A42;
-webkit-box-shadow: inset 0px 0px 2px 2px rgba(0, 0, 0, .2);
        
        box-shadow: inset 0px 0px 2px 2px rgba(0, 0, 0, .2);}

#main-nav ul ul {
	zoom:1;
}

#main-nav > ul > li {
	float:left;
}

#main-nav > ul > li > a {
	text-decoration:none;
	color:white;
	font-size:18px;
	line-height:42px;
	padding:0 46px;
	font-family:'Palatino LT W01 Roman';
	border-right:1px solid #463E37;
	border-left:1px solid #948D7C;
	display:block;
}

#main-nav > ul > li > a > span {
	padding-right:15px;
	background:url(img/dropdown-arrow.png) center right no-repeat;	
}

#main-nav > ul > li:hover > a > span {
	background:url(img/dropdown-arrow-hover.png) center right no-repeat;	
}

#main-nav > ul > li.current {
	background:#5A4A42;	
}

#main-nav > ul > li:hover > a {
	color:#E7AE2B;
}

#main-nav ul ul {
	width:250px;
	position:absolute;
	z-index:1000;
	background:#716558;
	background:rgba(108,95,83,.9);
	padding:15px 0;
}

#main-nav ul ul a {
	display:block;
	line-height:32px;
	text-align:left;
	padding:0 30px;
	font-size:14px;	
	color:white;
}

#main-nav ul ul a:hover {
	text-decoration:none;
	color:#E7AE2B;
}

#main-nav ul ul li {
	position:relative;	n
}

#main-nav ul ul ul {
	left:250px;
	top:0;	
}

.sf-sub-indicator {
	display:none;	
}

body.home article {
	/* width:600px; */
	float:left;	
	color:#5A4A42;
	font-size:15px;
	line-height:22px;
	font-weight:bold;
	text-align:left;
	margin-left:13px;
	padding-top:26px;
}

.home article p {
	margin-bottom:30px;	
}

body.home aside {
	width:294px;
	padding:17px 19px;
	border:1px solid #D5D1CF;
	float:right;
	overflow:visible;
	margin-top:26px;
background: #ece9e2; /* Old browsers */
background: -moz-linear-gradient(top,  #ece9e2 0%, #ffffff 17%, #ffffff 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ece9e2), color-stop(17%,#ffffff), color-stop(100%,#ffffff)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  #ece9e2 0%,#ffffff 17%,#ffffff 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  #ece9e2 0%,#ffffff 17%,#ffffff 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  #ece9e2 0%,#ffffff 17%,#ffffff 100%); /* IE10+ */
background: linear-gradient(to bottom,  #ece9e2 0%,#ffffff 17%,#ffffff 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ece9e2', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
text-align:left;
}

.home aside section {
	padding-bottom:20px;	
}

.home aside h2 {
	background:#D86212;
	color:white;
	text-transform:uppercase;
	width:290px;
	padding-left:30px;
	line-height:32px;
	margin-left:-29px;	
	font-size:16px;
	font-weight:bold;
	text-align:left;
	margin-bottom:7px;
-webkit-box-shadow:  2px 2px 0px 0px rgba(224, 222, 220, 1);
        
        box-shadow:  2px 2px 0px 0px rgba(224, 222, 220, 1);
		position:relative;
}

.home aside p {
	margin-bottom:8px;	
}

.home aside .item {
	display:block;
	padding-bottom:20px;
	border-bottom:1px solid #ADACA5;
	margin-bottom:20px;	
}

.home aside .item:last-child {
	padding-bottom:0;
	border-bottom:none;
	margin-bottom:0;	
}

.home aside .item:before,
.home aside .item:after {
    content: " ";
    display: table;
}

.home aside .item:after {
    clear: both;
}

.home aside .item {
    *zoom: 1;
}


section#spotlight img {
	float:left;
	border:1px solid #D5D1CF;
	margin-right:12px;
	max-width:157px;
	height:auto;	
}

section#spotlight a {
	white-space:nowrap;	
}


section#other {
	padding-bottom:10px;	
}

section#other h2 {
	margin-bottom:20px;	
}

#billboard {
	margin:0 -13px 26px;
	/* width:626px; */	
	position:relative;
	background:#8FA08D;
}

#billboard h2 {
	position:absolute;
	bottom:0;
	left:0;
	padding:0 12px;
	/* width:602px; */
	background-color: rgba(90, 74, 66, .44);
	color:#F1EFEC;
	font-size:10px;
	line-height:22px;
	margin-bottom:0;
}

footer {
	max-width:1091px;
	min-width:983px;
	border-top:1px solid #D8D3D0;
	color:#645143;
	padding-top:10px;
	margin-top:40px;
}

footer a {
	color:#645143;	
}

footer p {
	margin-bottom:5px;	
}

footer nav {
	margin:0 auto;
}

footer nav li {
	display:inline;
	padding:0 7px;
	border-left:1px solid #645143;
}

footer nav li:first-child {
	border-left:none;
}

.page #main, .single #main, .search-results #main {
	padding-top:47px;	
}

.home #main {
	padding-top:0;	
}

#sub-nav {
	float:left;
	width:185px;
	border:1px solid #D3CDC8;
	background:#F1EFEC;	
	min-height:329px;
	padding-bottom:30px;
}

.page-resources #sub-nav {
	display:none;	
}

#sub-nav > ul {
	padding-top:26px;	
}

#sub-nav li {
	display:none;	
}

#sub-nav span {
	display:block;	
	padding:10px 0 10px 5px;
	border-bottom:1px solid #D1CCC7; 	
}

#sub-nav li li li span {
	padding-left:20px;
}

#sub-nav li li.current-menu-item span {
	border-bottom:none; 	
}

#sub-nav li.current-menu-item, #sub-nav li.current-menu-item li, #sub-nav li.current-menu-ancestor, #sub-nav li.current-menu-ancestor li, .single-grantee #sub-nav li.grants, .single-grantee #sub-nav li.grants li {
	display:block;	
}

#sub-nav ul li ul li.current-menu-item > a {
	color:white;
	font-weight:bold;	
	padding-top:1px;
	margin-top:-1px;
}

#sub-nav ul li ul li.current-menu-item > a {
	border:none;
	color:white;
	background:#D86212 url(img/subnav-arrow-selected.png) 9px 15px no-repeat;
}

#sub-nav ul li ul li li.current-menu-item a {
	background:#D86212 url(img/subnav-bullet-selected.png) 22px 15px no-repeat;
}

#sub-nav ul ul li a {
	padding:0 8px 0 15px;
	background:url(img/subnav-arrow.png) 9px 14px no-repeat;
	text-align:left;

}

#sub-nav ul ul ul li a {
	background:url(img/subnav-bullet.png) 22px 15px no-repeat;
	text-align:left;
}

#sub-nav ul ul ul li a {
/*	padding:10px 5px 10px 20px;
*/}

#sub-nav > ul > li > a {
	display:none;	
}

#sub-nav li a {
	display:block;
	line-height:14px;
	color:#5A4A42;
}

#sub-nav li a:hover {
	text-decoration:none;
}

/*#sub-nav li li:hover {
	padding-top:1px;
	margin-top:-1px;
	background-position:9px 15px;
}
*/
#sub-nav li li a:hover {
	background-color:#ddd;
}

/*#sub-nav li li:hover a {
	border-bottom:1px solid transparent;
}
*/
.page article, .single article, .search-results article {
	float:left;
	margin-left:29px;
	width:492px;	
	text-align:left;
}

.single-grantee article {
	width:750px;	
}

.page-resources article {
	width:706px;
	margin-left:0;	
}

.search-results article, .page-page-not-found article {
	width:auto;
	float:none;	
	margin-left:0;
}

.page aside, .single aside {
	width:246px;
	float:left;
	margin-left:29px;	
}

.page-page-not-found aside, .page-page-not-found #sub-nav {
	display:none;	
}

.page aside figure a, .single aside figure a {
	text-decoration:underline;	
}

.page aside figure > div, .single aside figure > div {
	padding:5px;
	border:1px solid #D6D6D2;	
	margin-bottom:6px;
-webkit-box-shadow:  0px 0px 3px 3px rgba(230, 230, 230, 1);
        
        box-shadow:  0px 0px 3px 3px rgba(230, 230, 230, 1);}

.page aside img, .single aside img {
	border:1px solid #D6D6D2;
}

aside figure {
	margin-bottom:40px;	
}

aside figcaption {
	color:#C6C5C0;
	font-size:11px;
	line-height:14px;
	padding:0 10px;	
	text-align:left;
}

.page article h2, .single article h2, .search-results article h2 {
	color:#D86212;
	font-size:24px;	
	margin-bottom:15px;
}

.page article p, .single article p, .search-results article p {
	margin-bottom:15px;	
}

.page article ul, .page article ol, .single article ul, .single article ol, .search-results article ul, .search-results article ol {
	margin:15px 0;	
}

.page article ul li, .single article ul li, .search-results article ul li {
	list-style-type:disc;	
}

.page article ol li, .single article ol li, .search-results article ol li {
	list-style-type:decimal;	
}

.page article ul, .page article ol, .single article ul, .single article ol, .search-results article ul, .search-results article ol {
	padding-left:35px;	
}

.page article li, .single article li, .search-results article li {
	margin-bottom:5px;	
}

.page article h3, .single article h3, .search-results article h3 {
	text-transform:uppercase;
	padding-bottom:4px;
	border-bottom:1px solid #D6D2D0;
	margin-bottom:10px;
	font-weight:bold;	
}

article h4 {
	font-size:13px;
	font-weight:bold;
}

.recent-grants article h3 {
	font-size:20px;
	text-transform:none;
	padding-bottom:2px;	
	margin-top:25px;
}

.recent-grants article p {
	margin-bottom:20px;
}

.recent-grants article h4 {
	font-size:13px;
	font-weight:bold;	
}

.page article a, .single article a, .search-results article a {
	text-decoration:underline;
}

.page-template-page-taxonomy-php article a {
	text-decoration:none;
}

.page-template-page-taxonomy-php article h3 {
	font-size:20px;
	font-weight:bold;
}

.page-template-page-taxonomy-php article a:hover {
	text-decoration:underline;
}

.recent-grants article a {
	text-decoration:none;
}

.recent-grants article a:hover {
	text-decoration:underline;
}

.column {
	width:176px;
	float:left;
	margin-right:69px;	
}

.highlight {
	padding:16px 16px 0;
	border:1px solid #CEC7C2;
	background:#F1EFEC;	
	margin-bottom:20px;
}

.page article .highlight ul, .page article .highlight ol, .single article .highlight ul, .single article .highlight ol {
	margin-top:0;
}

.spotlight td {
	border-bottom:1px solid #DCDBD9;	
	padding:25px 0;
	vertical-align:top;
}

.spotlight tr:first-child td {
	padding-top:10px;
}

.spotlight .image {
	width:123px;
	text-align:left;
}

.spotlight .image img {
	border:1px solid #D0CAC5;	
	max-width:106px;
	height:auto;	
}

article .spotlight h3 {
	text-transform:none;
	padding:0;
	border:none;
	margin-bottom:0;	
}

article .spotlight h3 a {
	text-decoration:none;
	color:#5A4A42;	
}

article .spotlight h3 a:hover {
	text-decoration:underline;
	color:#C44E26;
}

article .spotlight p {
	margin-bottom:5px;	
}

.single-grantee article h2 {
	margin-bottom:30px;	
}

#spotlight-images {
	width:261px;
	float:left;	
}

#spotlight-images img {
	margin-bottom:13px;
}

#spotlight-description {
	width:488px;
	float:right;	
}

#spotlight-description.no-images {
	width:749px;
	float:left;	
}

#spotlight-description h3 {
	text-transform:none;
	padding-bottom:0;
	border-bottom:0;
	margin-bottom:0;

}

article blockquote {
	margin:30px;
	border:2px solid #D86212;
	border-width:0 2px;
	padding:0 16px;
	line-height:22px;
	font-style:italic;	
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
