/* GENERAL STYLES --------------------------- 
--------------------------------------------- */
#region-page-top a,
#region-page-top a:hover,
#region-page-top a:visited,
#region-page-top a:active {
	text-decoration: none;	
}



/* SFGOV & ACCESSIBILITY TAB STYLES ---------------- 
---------------------------------------------------- */

#sfam *, #sfdm * {font-family: sans-serif;}

#sfdbtn { /* container for tabs */
	width: 231px; 
	height: 74px;
	z-index: 10000;
	padding: 0;
	padding-right: 5px;
	margin: 0;
	float: right;
}

#sfm { /* sfgov tab */
	display: block;
	width: 99px;
	height: 69px;
	position: relative;
	float: left;
	padding: 0;
	margin: 0;
}

#sfm span { /* hides sfgov text link */
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	background: url(../_gfx/sfg-tab-closed__.png) no-repeat 0 100%;
	overflow: hidden;
	padding: 0;
	margin: 0;
	border: 0px none;
	float: left;
}

#sfm.show span { /* hides sfgov text link */
	background: url(../_gfx/sfg-tab-open__.png) no-repeat 0 100%;
}

#sfa { /* accessibility tab */
	display: block;
	width: 113px;
	height: 36px;
	position: relative;
	float: left;
}

#sfa span { /* hides accessibility text link */
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	background: url(../_gfx/sfgacctabs__.png) no-repeat -112px 3px;
	padding: 0;
	margin: 0;
	float: left;
}

#sfa.show span { /* hides accessibility text link */
	background: url(../_gfx/sfgacctabs__.png) no-repeat -112px -37px;
}

/* SFGOV MENU STYLES ------------------------ 
--------------------------------------------- */

#sfdm * {
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}

#sfdm ul {background: transparent;	}

#sfdm.hide, #sfdm .hide, #sfba.hide {display:none;} /*hides menu*/

#sfdm.show, #sfdm .show, #sfba.show {display:block;} /*displays menu*/

#sfdm {
	font-family: sans-serif;
	background: #ebebeb url(../_gfx/sfg-topnavbar__.png) repeat-x;	
	padding-bottom: 10px;
	border-bottom: #2ba1d1 7px solid;
}

.wrapper {
	max-width: 980px;
	padding-top: 10px;	
	margin: 0 auto;
}

#sfdm #nav {
	list-style: none;
	padding: 0;
	margin: 0 0 25px;
	background: transparent;
}

#sfdm #nav li {
	font-size: 14px;
	line-height: 1;
	float: left;
	font-weight: bold;
	text-align: center;
	height: 51px;
	width: 14.28571%;
	padding-top: 13px;
	margin: 0;
}

#sfdm #nav li.on {
	background: #b0cadf; /* Old browsers */
	background: -moz-linear-gradient(top,  #b0cadf 0%, #ebebeb 60%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b0cadf), color-stop(60%,#ebebeb)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #b0cadf 0%,#ebebeb 60%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #b0cadf 0%,#ebebeb 60%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #b0cadf 0%,#ebebeb 60%); /* IE10+ */
	background: linear-gradient(to bottom,  #b0cadf 0%,#ebebeb 60%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b0cadf', endColorstr='#ebebeb',GradientType=0 ); /* IE6-9 */
	border-top: 1px solid #fff;
	border-right: 1px solid #fff;
	border-left: 1px solid #fff;
	-webkit-border-radius: 9px 9px 0px 0px;
    border-radius: 9px 9px 0px 0px;
}

#sfdm #nav li a {
	color: #fff;
	text-decoration: none;
	text-shadow: 0px -1px 0px #437288;
}

#sfdm #nav li.on a {
	color: #095c85;
	text-decoration: none;
	text-shadow: 0px 1px 0px #fff;
}

#menuwrapper {
	width: 960px;
	padding: 0;
	margin: 0 auto;
}

#sfgov,
#resident,
#business,
#government,
#visitor,
#onservices,
#help {
	clear: left;
	background: url(../_gfx/hrule__.png) repeat-y 56.04166% 0%;
	margin-bottom: 17px;
}

.keyservices {
	float: left;
	width: 518px;
	padding-left: 10px;
	margin: 0;
	text-align: left;
}

.hgheader {
	font-weight: bold;
	margin-bottom: 12px;
	color: #373737;
}

.hgheader a {
	color: #357FB8;
	text-decoration: none;	
}

.hgheader a:hover {text-decoration: underline;}

.keyservices ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.keyservices li {
	float: left;
	margin: 0;
	padding: 0;
	width: 31.25%;
	margin-right: 2%;
	margin-bottom: 16px;
	font-size: 12px;
}

.keyservices li a,
.keyservices li a:visited {
	text-decoration: none;
	color: #357FB8;
}

.keyservices li a:hover,
.keyservices li a:active,
.keyservices li a:focus {
	text-decoration: underline;
}

.featured {
	width: 420px;
	float: left;
	padding-left: 60px;
}

.main {
	font-weight: bold;
	color: #095c85;	
	margin-bottom: 12px;
}

.main a {
	color: #1f7ead !important;	
	text-decoration: none;
	text-shadow: 0px 1px 0px #fff;
}

.imagebox {
	float: right;
	width: 175px;
	margin: -20px 0 15px 20px;
}

.imagebox img {
	max-width: 100%;
	margin-bottom: 0;
}

p.more a {
	float: left;
	font-weight: bold;
	text-shadow: 0px -1px 0px #437288;
	text-transform: uppercase;
	-webkit-border-radius: 3px;
    border-radius: 3px;
	padding: 4px 6px;
	border: 1px solid #7db9e8;
	background: rgb(125,185,232); /* Old browsers */
	background: -moz-linear-gradient(top,  rgba(125,185,232,1) 0%, rgba(41,137,216,1) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(125,185,232,1)), color-stop(100%,rgba(41,137,216,1))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  rgba(125,185,232,1) 0%,rgba(41,137,216,1) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  rgba(125,185,232,1) 0%,rgba(41,137,216,1) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  rgba(125,185,232,1) 0%,rgba(41,137,216,1) 100%); /* IE10+ */
	background: linear-gradient(to bottom,  rgba(125,185,232,1) 0%,rgba(41,137,216,1) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7db9e8', endColorstr='#2989d8',GradientType=0 ); /* IE6-9 */
	color: #fff;
	text-decoration: none;
}

.more a:hover {
	background: rgb(41,137,216); /* Old browsers */
	background: -moz-linear-gradient(top,  rgba(41,137,216,1) 0%, rgba(125,185,232,1) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(41,137,216,1)), color-stop(100%,rgba(125,185,232,1))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  rgba(41,137,216,1) 0%,rgba(125,185,232,1) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  rgba(41,137,216,1) 0%,rgba(125,185,232,1) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  rgba(41,137,216,1) 0%,rgba(125,185,232,1) 100%); /* IE10+ */
	background: linear-gradient(to bottom,  rgba(41,137,216,1) 0%,rgba(125,185,232,1) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2989d8', endColorstr='#7db9e8',GradientType=0 ); /* IE6-9 */
}

.clearfix:before,
.clearfix:after {
    content: "";
} 

.clearfix:after {clear: both;}

.clearfix {zoom: 1;} /*For IE 6/7 (trigger hasLayout)*/

/* ACCESSIBILITY MENU STYLES ---------------- 
--------------------------------------------- */

#sfam.hide {display:none;} /* hides menu */

#sfam.show {display:block;} /* displays menu */

#sfam {
	background: #f1f1f1;
	border-bottom: 5px solid #D9D9D9;
	display:block;
	width:100%;
	margin: 0;
	padding: 30px 1.04166% 20px;
}

#sfam ul{
	margin:0; 
	border:0; 
	list-style:none;
	padding: 0;
	max-width: 960px;
	margin: 0 auto;
	font-family: sans-serif;
	font-weight: bold;
	background-color: transparent;
}

#sfam li{
	font-size: 12px;
	color: #373737;
	text-align: left;
	text-transform: uppercase;
	font-weight: bold;
	text-shadow: 1px 1px 0px #fff;
	text-align: center;
	width: 16.5%; /* Should be 190÷960 */
	margin: 0 3% 0 0;
	padding: 0;
	line-height: 1;
	float: left;
	-webkit-border-radius: 5px;
    border-radius: 5px;
	border: 1px #ccc solid;
	background: rgb(242,242,242); /* Old browsers */
	background: -moz-linear-gradient(top,  rgba(242,242,242,1) 0%, rgba(209,209,209,1) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(242,242,242,1)), color-stop(100%,rgba(209,209,209,1))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  rgba(242,242,242,1) 0%,rgba(209,209,209,1) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  rgba(242,242,242,1) 0%,rgba(209,209,209,1) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  rgba(242,242,242,1) 0%,rgba(209,209,209,1) 100%); /* IE10+ */
	background: linear-gradient(to bottom,  rgba(242,242,242,1) 0%,rgba(209,209,209,1) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f2f2', endColorstr='#d1d1d1',GradientType=0 ); /* IE6-9 */ 
}

#sfam li:last-child {
	margin-right: 0;	
}

#sfam li a,
#sfam li#sfaln span {
	display: block;
	padding: 15px 5.1282% 10px 25%;
	color: #373737;
}

#sfam li a {
	text-decoration: none;	
}

#sfafs a { /* font size button*/
	background: url(../_gfx/access/acc-font__.png) no-repeat 15% 50%;	
	padding-left: 40px !important;
}

#sfato a { /* text only button*/
	background: url(../_gfx/access/acc-text__.png) no-repeat 15% 50%;	
	padding-left: 30px !important;
}

#sfam li#sfaln {
	position: relative;
	overflow: hidden;
}

#sfam li#sfaln div#_ba__button a { /* listen now button - unique due to widget */
	width: 80% !important;
	position: absolute;
	top: 0;
	left: 0;
	height: 3em !important;
	background:url(../_gfx/spacer__.gif);
}

#sfam li#sfaln span {
	background: url(../_gfx/access/acc-listen__.png) no-repeat 15% 50%;
	padding-left: 30px !important;
}

#sfagv a { /* Viewer button */
	background: url(../_gfx/access/acc-viewers__.png) no-repeat 15% 50%;	
	padding-left: 30px !important;
}

#support a { /* Support button */
	background: url(../_gfx/access/acc-support__.png) no-repeat 15% 50%;	
	padding-left: 30px !important;
}


/* hides listen now widget images */

#sfaln {
	position: relative;	
	max-height: 37px;
}
		
#sfaln p {
	margin:0 !important;
	padding:0 !important;
}
	
#sfaln #_ba__button { 
	background-image:none !important;
	width:auto !important;
	height:auto !important;
	text-align:right !important;
	padding: 0 !important;
}

#sfaln #_ba__title, 
#sfaln #_ba__button .logo,
#sfaln #_ba__button img {
	display:none !important;
}

#sfaln #_ba__button a[target="_blank"] {
	display:none !important;
}

#sfaln #_ba__button a {
	width:100% !important;
	height:100% !important;
	vertical-align:baseline !important;
	padding: 0 !important;
}


#sfba {
    float: right;
    margin-right: -20%;
    margin-top: -1%;
}

#sfaln > a {
    padding: 0 1% 1% !important;
}
/* addes help link on Listen now button */

.help {
	display: block;
	position: absolute;
	right: 5px;
	top: 15px;	
	width: 10px;
	height: 13px;
	text-indent: -999999px;
	background: url(../_gfx/help__.png) no-repeat;
	padding: 0 !important;	
	z-index: 100;
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen 
and (max-width : 768px) {
	
	#sfdm {background-image: none;	}
		
	#sfdm #nav {min-width: inherit;}
		
	#sfdm #nav li,
	#sfdm #nav li.on {
		text-transform: uppercase;
		-webkit-border-radius: 8px;
		border-radius: 8px;
		background-image: none;
		background: #4987bf; /* Old browsers */
		background: -moz-linear-gradient(top,  #4987bf 0%, #245996 100%); /* FF3.6+ */
		background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4987bf), color-stop(100%,#245996)); /* Chrome,Safari4+ */
		background: -webkit-linear-gradient(top,  #4987bf 0%,#245996 100%); /* Chrome10+,Safari5.1+ */
		background: -o-linear-gradient(top,  #4987bf 0%,#245996 100%); /* Opera 11.10+ */
		background: -ms-linear-gradient(top,  #4987bf 0%,#245996 100%); /* IE10+ */
		background: linear-gradient(to bottom,  #4987bf 0%,#245996 100%); /* W3C */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4987bf', endColorstr='#245996',GradientType=0 ); /* IE6-9 */
		text-decoration: none;
		margin-left: 5%;
		margin-bottom: 10px;
		padding: 0;
		height: auto;
		width: 42%;
		border: none 0;
	}
	
	#sfdm #nav li a {
		display: block;
		padding: 18px 0;
		margin-left: 5%;
		margin: 0 auto;
	}
	
	#sfdm #nav li.on a {
		color: #fff;
		text-shadow: none;
	}
	
	#menuwrapper {display: none;}
		
	#sfam li{
		width: 42%; /* Should be 190÷960 */
		margin: 10px;
	}

}

/*************************************************/
body {background-color: #f0f0f0 !important;}
.keyservices p.hgheader {border-bottom: #bfbfbf solid 1px;margin-bottom:0;padding-bottom:12px;font-size:12px;}
.keyservices p.hgheader a {padding-right: 40px;background:url(../_gfx/theme/breadcrumb-arrow__.png) no-repeat 85% center;}
#sfgov ul.menu, #resident ul.menu, #business ul.menu, #business ul.menu, #government ul.menu, #visitor ul.menu, #onservices ul.menu, #help ul.menu {border-top: #fff solid 1px;padding-top:18px;}
div.featured {background:#fff;border:#bfbfbf solid 1px;padding:17px;padding-left:17px;margin-left:18px;text-align:left;}
div.featured .imagebox {border:#bfbfbf 1px solid;margin: -30px 0 0 15px;}
#sfgov, #resident, #business, #government, #visitor, #onservices, #help {background-image:none;}
p.main {line-height: 1.2; font-size: 16px;}
p.more{font-size:12px;}
#sfaln{max-height: 37px;}
.featured p.hgheader {
	font-size: 12px;	
}


#hgpage{
  background:url(../_gfx/theme/mainbackgroundv2__.jpg) no-repeat 8% 0 #F0F0F0 !important;
  border-top: 3px solid #2ba1d1 !important;
  min-width: 975px;
}

.hgheader{
	background: rgb(255, 255, 255) transparent !important;
}

#zone-wrapper{
	width:100%;
	text-align:center;
}
#zone-branding{
  text-align:left;
  width:974px;
  margin-left:auto;
  margin-right:auto;
  padding-left: 25px;
}

#region-page-bottom {
  background: #d7e2e9 url(../_gfx/theme/cityimagebottom__.jpg) no-repeat center bottom;
  width: 100%;
  height: 200px;
  -webkit-box-shadow: inset 0px 4px 1px 1px rgba(0, 0, 0, .1);
  box-shadow: inset 0px 4px 1px 1px rgba(0, 0, 0, .1);
  margin-top: 30px;
  min-width: 975px;
}


#toolbar {
	display: none !important;
}
