/* Custom params
	custom:font
	custom:textcolor				black;
	custom:textcolorreverse	white;
	custom:pagecolor				white;   	was #f0f0f0; light light gray
  custom:hover	          #E3E9FB; 	light blue
  custom:strong						#1c1e7a; 	kinda dark blue
  custom:heading					#1c1e7a; 	kinda dark blue
  custom:logobg							#3e506d;	square logo background color
  custom:rule							#20208F; 	slightly subdued blue
	custom:shade	 					#f0f0f0; 	light light gray (was #ebebeb;)

links: text-decoration: underline only in content
	visited: black;					custom:textcolor
*/

@import "standard.css";

body {
	font-family: Calibri, Verdana, Geneva, Arial, Helvetica, sans-serif;	/* custom:font */
	margin: 0; padding: 0;
	color: black;	/* custom:textcolor */
	background-color: white; /* custom:pagecolor */
	line-height: 1.2em;  /* Little tighter than normal, also IE6 Peekaboo, www.dracos.co.uk/web/css/ie6floatbug/ */
}
address {
	font-style: normal;
	font-size: 80%;
}
blockquote { 
	margin: 1em 2em 1em 2em;
}
pre { 
	font-family : Calibri, Verdana, Geneva, Arial, Helvetica, sans-serif; /* custom:font */
	font-size: 95%; 
	margin-left: 2em; 
	white-space: pre-wrap; /* allows wrapping if need be, compare to pre, which can give trouble with small screens */
}
strong {
	color: #1c1e7a; /* custom:strong */
}

table.styled { border-top: 2px solid #0004B4; border-bottom: 2px solid #0004B4; margin-bottom: 2em; }
table.styled td { border-bottom: 1px solid #0004B4; padding: 5px; }
table.styled th { background-color: #E3E9FB; }
td.nowrap { white-space: nowrap; }
tr.noborder td { border-bottom: none; }

h1 {
	margin: 0 0 10px 0;
	padding: 0;
	font-size: 150%;
	font-weight: bold;
}
h1 a, h1 a:hover, h1 a:focus {
	text-decoration: none;
	background-color: transparent;
	color: black;	/* custom:textcolor */
}
h2 {
	margin: 1em 0 0.25em 0;
	padding: 0;
	font-size: 120%;
	font-weight: bold;
}
h3 {
	margin: 0.75em 0 0.25em 0;
	font-size: 105%;
	font-weight: bold;
}
h4 {
	margin: 0.5em 0 0 0;
	font-size: 100%;
	font-weight: bold;	
}
h1, h2, h3, h4 {
	color: #1c1e7a;	/* custom:heading */
}
a {
	color: #20208F;
	text-decoration: none;
}
a:hover, a:focus {
	background-color: #E3E9FB;	/* custom:hover */
	text-decoration: underline;
}
a.active:hover, a.active:focus {
	background-color: transparent;	
	text-decoration: none;
}
a.active, li.active {
	font-weight: bold;
}
hr {
	color: #20208F;	/* custom:rule */
	/* clear: both; */
}

/* --- page --- */
#page {
	/* Set positioning context. Absolute trips the IE6 text selection bug */
	/* Relative works, but it needs width to avoid tripping an IE6 right margin bug */
	/* width: 790px; */ /* home header pic */
	/* border-right: 1px solid #20208F; */ /* home only */
	/* background-color: #f0f0f0; */
}

/* --- content --- */
#content {
	margin: 0 220px 0 0; /* right margin >= sidebar width */
	padding: 10px 5px 10px 10px;
	/* Min height keeps right border on content */
	min-height: 45em;
	border-right: 1px solid #20208F;	/* custom:rule */
	border-bottom: 1px solid #f0f0f0; /* background color; pulls down left and right borders in FF and Opera */
}
#content .button {
	color: white;	/* custom:pagecolor */
	background-color: #20208F;	/* custom:rule */
}
#content .box {
	border: 2px dotted #20208F;	/* custom:rule */
	margin-top: 0.5em;
	padding: 7px;
}
#content p.copyright {
	margin-top: 3em;
	font-weight: bold;
	font-size: 75%;
}
#content .blurb { 
	font-style: italic;
	margin: 2em 0 2em 4em;
}
#content .blurb p.attrib { 
	margin: 0 0 0 4em; 
	font-style: normal; 
	font-variant: small-caps; 
}
#content h1 {
	margin-top: 5px;
}
#content a {
	text-decoration: underline;
}
#content #welcome {
	padding-bottom: 0.75em;
	border-bottom: 1px solid #20208F;	/* custom:rule */
}

/* --- content#upcoming --- */
#content #upcoming {
	margin-bottom: 1em;
	float: left;			/* want callout float right to be under upcoming */
}
#content #upcoming h3 {
	margin: 0.75em 0 0 1em;
}
#content #upcoming p {
	margin: 0.25em 0 0 2em;
}
#content #upcoming h2 {
	/* white-space: nowrap; */ /* needed for ipad Portrait 2/4/2014 */
}

/* --- content#news --- */
#content #news {
	clear: left;	/* upcoming and callout are above */
	margin-bottom: 1em;
}
#content #news h3 {
	margin: 1em 0 0 1em;
}
#content #news p {
	margin: 0.25em 0 0 1em;
}

/* --- content#announcements --- */
#content #announcements {
	height: 20em;
	overflow: auto;
	overflow-x: hidden; /* IE needs 1/2014 */
	/* white-space: pre-line; */ /* *** adds undesired top space, should remove and <p> source */
	margin: 0;
	padding: 0 5px 0 5px;
	font-size: 90%;
	/* background-color: #E9E9E9; */
}

/* --- .pagepic --- */
.pagepic {
	float: right;
	text-align: right;
	margin: 0; padding: 0;
	width: 500px;
	max-width: 50%;
}
.pagepic img { max-width: 100%; height: auto; }

/* --- callout --- */
#callout {
	float: right;
	width: 256px; /* 12em; */ /* 145px; */
	margin: 0;
	padding: 0 0 2px 2px;
	/* border: 1px solid #20208F; */	/* custom:rule */
	/* border-top: none; border-right: none; */
	font-size: 85%;
	line-height: 1.3em;
	/* background-color: #f0f0f0; */
	text-align: center;
}
#callout h2 {
	margin-top: 0.2em;
}
#callout iframe {  /* for youtube */
	border: none;
	max-width: 100%; 
}

#callout .section, #callout .section a {
  /* color: white; */	/* custom:pagecolor */
	/* background-color: #20208F; */	/* custom:rule */
	font-weight: bold;
	margin-bottom: 0;
	padding-top: 2px;
}
#callout .section a {
	text-decoration: none;
}
#callout p {
	margin-top: 0.5em;
	margin-bottom: 0; 
	padding: 1px;
}
#callout img {
	float: left;
	max-width: 100%;
	height: auto;
}
#callout ul {
	list-style-type: none;
	margin-top: 0.25em;
	margin-left: 0;
	padding-left: 5px;
}
#callout ul li {
	margin-bottom: 0.75em;
}


/* --- header --- */
#header {
	margin-bottom: 0;
	padding-bottom: 10px;
	/* border-bottom: 1px solid #20208F; */	/* custom:rule */
	min-height: 63px; /* right.gif */
	/* width: 790px; */	/* home page pic */
	/* border-right: 1px solid #20208F; */	/* custom:rule */ /* home only */
}
#header #homepic {
	height: 200px;
	background: url(/images/header2013.jpg) no-repeat -10px top;
	background-color: #f0f0f0; /* #999b98; */
}
#header #homepic img {
	margin: 0; padding: 0;
}
#header h1 {
	margin: 0 0 7px 0;
	padding-top: 10px;
	color: black;	/* custom:textcolor */
	/* white-space: nowrap; */
}
#header img { 
	float: left;
	margin: 0;
	padding: 3px;
}
#header p {
	margin-bottom: 0;
	padding-top: 0; padding-bottom: 0;
}
#header a {
	color: black;	/* custom:textcolor */
}
#header #tagline {
	font-size: 80%;
	margin-bottom: 7px;
	line-height: 1em;
}

/* --- menu --- */
/* Define ul, then li, then a */
.menu {
	margin: 0; padding: 0 0 1px 5px;
	font-size: 95%;
	color: white;								/* custom:textcolorreverse */
	background-color: #3e506d;	/* custom:logobg */
	list-style-type: none;
	height: 1.7em;
	clear: left;
}
.menusmall, .menufull {
	margin: inherit; padding: inherit;
}
.menusmall { display: none; } /* not visible for desktop widths */

.menusmall ul, .menufull ul { /* 2ndlevel */
  display: none; 				/* left: -999em;	advised by son of suckerfish, but not as good for ipad */ 
	position: absolute;
	margin: 8px 0 0 0; 
	padding: 0;
	color: #1c1e7a;						/* custom:strong */
	background-color: white; 	/* custom:textcolorreverse */
	z-index: 10;							/* for floorplan.shtml */
	list-style-type: none;
	border-bottom: 1px solid gray;
	border-right: 1px solid gray;
	border-radius: 10px;
	box-shadow: 4px 4px 2px gray;
	height: auto;
}
.menusmall ul ul { /* 3rd level */
	left: 7em; top: 0;
	white-space: nowrap;
}

.menusmall > li, .menufull > li {
	margin-right: 15px;
	float: left;
	display: block;
	text-align: center;
	height: 1.8em;
	/* width: 7em; */
}
.menufull > li.wide {
	/* width: 11em; */	/* 11em (with caret) "Religious Education" on ipad */
}

.menusmall > li li, .menufull > li li { /* 2nd level */
	text-align: left;
	margin: 5px;	/* a little breathing room */
	padding: 0;
	font-size: 95%;
}
.menusmall > li li li { /* 3rd level */
	/* width: 10em; */
}
.menusmall > li li.wide {
	/* width: 20em; */	/* 14em "Weekly Announcements" on old ipod / 12em "Sunday Service Live!" and graphic on ipod */
}	

.menufull > li li {
	/* width: 14em; */	/* 14em "Buddhist Meditation Group" on PC */
}
.menufull > li li.wide {
	/* width: 16.5em; */	/* 16.5em "Ending Hunger & Homelessness" on ipad */
}
	
.menu a {	/* All links */
	display: block;
	text-decoration: none;
	vertical-align: middle;
}
.menusmall li a, .menufull li a {
	color: inherit; 						/* custom:textcolorreverse */
}
.menusmall li li a, .menufull li li a { /* bottom level */
	color: inherit; 						/* custom:strong */
	background-color: inherit;	/* white; */
	padding-left: 2px;
}
.menusmall img {
	vertical-align: middle;
}

.menufull li.sitemap { display: none; }

/* Hover */
.menusmall li:hover > ul, .menufull li:hover > ul { 	/* display bottom level when their parent is hovered */
 	display: block; /* left: auto; advised by son of suckerfish, but not as good for ipad	*/ 
}
.menusmall li:hover, .menufull li:hover {
	background: #E3E9FB;	/* custom:hover */
	color: #1c1e7a;				/* custom:strong */
}

.caret {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid white;
	font-size: 0; line-height: 0;
	margin-left: 5px;
}
.caret2 {
	width: 0;
	height: 0;
	border-bottom: 4px solid transparent;
	border-top: 4px solid transparent;
	border-left: 4px solid #1c1e7a;	/* custom:strong */
	font-size: 0; line-height: 0;
	margin-left: 5px;
	vertical-align: middle;
}


/* Responsive */

#content > img { max-width: 50%; height: auto; }

@media screen and (max-height: 800px) {
	#header #homepic { height: 50px; background-position: 0 -40px; } /* *** Really need better image */
}

@media screen and (max-width: 780px) {  /* lose header right image, iPad portrait loses */
	#header h1 { font-size: 140%; }
	#header .right { display: none; }
	h2 { font-size: 115%; }
}  /* (max-width: 780px) */

@media screen and (max-width: 700px) {  /* lose sidebar, iPad portrait keeps */
	#sidebar { display: none; }
	#content { margin-right: 5px; border-right: none; }
}  /* (max-width: 700px) */

@media screen and (max-width: 655px) {  /* small menu */ /* return to 635px when "Interim DLRE Search" is removed from home page */
	h1 { font-size: 120%; }	
	h2 { font-size: 110%; }
	h3 { font-size: 100%; }
	#header { padding-bottom: 0; }
	#header h1 { font-size: 100%; font-weight: bold; margin-bottom: 0;  }
	#header p { font-size: 90%; margin-top: 0;  }
	#header #tagline { display: none; }
	.menu { font-size: 100%; }  /* better for smaller screens */
	.menufull { display: none; }
	.menusmall { display: block; } 
	#content .menufull { display: block; }  /* for sitemap */
	#callout { float: none; }

} /* (max-width: 635px) */


/* --- Sidebar --- */
#sidebar {
	float: right;
	width: 220px; /* content right margin */
	margin: 0;
	padding: 0;
	font-size: 85%;
}
#sidebar h2 {
	margin: 1em 0 0.25em 0;
	padding: 3px 0 0 2px;
	/* border-top: 1px solid #20208F;	*/ /* custom:rule */
	color: white;								/* custom:textcolorreverse */
	background-color: #3e506d;	/* custom:logobg */
}
#sidebar > h2:first-child {
	margin-top: 0; padding-left: 3px;
	padding-left: 3px;
	border-top: none;
	color: black;	/* custom:textcolor */
	background-color: white;
}
#sidebar p, #sidebar ul {
	margin-left: 5px;
}
#sidebar img {
	padding: 0 4px 0 0;
	vertical-align: top;
}
#sidebar p a {
	font-weight: bold;
}	
#sidebar ul {
	margin-top: 1em;
	padding: 0;
	list-style-type: none;
}


/* --- footer --- */
#footer {
	font-size: 80%;
	margin: 0;
	padding: 0 5px 0 5px;
	border-top: 1px solid #20208F;	/* custom:rule */
	clear: both;
}
#footer p {
	margin: 0.5em 0 0 0;
	line-height: 1.3em;
}

/* --- utils --- */
.caption {
	font-size: 75%;
}
a.plainlink, a.plainlink:hover, a.plainlink:focus, a.plainlink:visited {
	text-decoration: none;
	color: black;	/* custom:textcolor */
	background-color: transparent;
	border: none;
}

.left {
	float: left;
	text-align: left;
	padding-right: 10px; padding-bottom: 10px;
}
.right {
	float: right;
	text-align: right;
	padding-left: 10px; padding-bottom: 10px;
}	
.captionright {
	float: right;
	text-align: right;
	font-size: 75%;
}
