/* 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 ---------------- 
---------------------------------------------------- */

#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;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: 0px none;
  float: left;
}

#sfm.show span { /* hides sfgov text link */
}

#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;
  padding: 0;
  margin: 0;
  float: left;
}

#sfa.show span { /* hides accessibility text link */
}

/* SFGOV MENU STYLES ------------------------ 
--------------------------------------------- */

#sfdm * {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

#sfdm ul li.leaf {
  list-style: none;
}

#sfdm.hide, #sfdm .hide { /* hides menu */
  display:none;
}

#sfdm.show, #sfdm .show { /* displays menu */
  display:block;
}

#sfdm {
  font-family: sans-serif;
  padding-bottom: 10px;
  border-bottom: #2ba1d1 7px solid;
}

.wrapper {
  max-width: 980px;
  padding-top: 10px;  
  margin: 0 auto;
}

#nav {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}

#nav li {
  font-size: 1.13333em; /*14/12*/
  line-height: 1;
  float: left;
  font-weight: bold;
  text-align: center;
/*  width: 140px;
*/  height: 51px;
  width: 14.28571%;
  padding-top: 13px;
  margin: 0;
}

#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;
}

#nav li a {
  color: #fff;
  text-decoration: none;
  text-shadow: 0px -1px 0px #437288;
}

#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;
  margin-bottom: 17px;
}

.keyservices {
  float: left;
  width: 518px;
  padding-left: 10px;
  margin: 0;
}

.header {
  font-weight: bold;
  font-size: 1em; /*12/12*/
  margin-bottom: 20px;
  color: #373737;
}

.keyservices ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.keyservices ul li.leaf {
  float: left;
  margin: 0;
  padding: 0;
  width: 145px;
  margin-right: 9px;
  margin-bottom: 16px;
  font-size: 1em; /*12/12*/

}

.keyservices li a,
.keyservices li a:visited {
  text-decoration: none;
  color: #095c85;  
}

.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-size: 1.3333333em; /*16/12*/
  font-weight: bold;
  color: #095c85;  
  margin-bottom: 20px;
}

.main a {
  color: #1f7ead;  
  text-decoration: none;
  text-shadow: 0px 1px 0px #fff;
}

.imagebox {
  float: right;
  width: 175px;
  margin: -20px 0 15px 20px;
}

.imagebox img {
  max-width: 100%;
}

p.more a {
  float: left;
  font-size: 1em; /*12/12*/
  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: "";
    display: table;
} 

.clearfix:after {
    clear: both;
}

.clearfix {
    zoom: 1; /* For IE 6/7 (trigger hasLayout) */
}

/* ACCESSIBILITY MENU STYLES ---------------- 
--------------------------------------------- */

#sfam.hide { /* hides menu */
  display:none;
}

#sfam.show { /* displays menu */
  display:block;
}

#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;
}

#sfam li{
  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;
}

#sfafs a { /* font size button*/
  padding-left: 40px !important;
}

#sfato a { /* text only button*/
  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;
}

#sfam li#sfaln span {
  padding-left: 30px !important;
}

#sfagv a { /* Viewer button */
  padding-left: 30px !important;
}

#support a { /* Support button */
  padding-left: 30px !important;
}


/* hides listen now widget images */

#sfaln {
  position: relative;  
}
    
#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;
}


/* addes help link on Listen now button */

.help {
  display: block;
  position: absolute;
  right: 5px;
  top: 15px;  
  width: 10px;
  height: 13px;
  text-indent: -999999px;
  padding: 0 !important;  
  z-index: 100;
}


/* Smartphones (portrait and landscape) ----------- */
@media only screen 
and (max-width : 768px) {
  
#sfdm {
  background-image: none;  
}

#wrapper {
}

#nav {
  min-width: inherit;  
}
  
#nav li,
#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;
  font-size: 1em;
  width: 42%;
  border: none 0;
}

#nav li a {
  display: block;
  padding: 18px 0;
  margin-left: 5%;
  margin: 0 auto;
}

#nav li.on a {
  color: #fff;
  text-shadow: none;
}

#menuwrapper {
  display: none;
}
  
#sfam li{
  width: 42%; /* Should be 190÷960 */
  margin: 10px;
}

}

.opensf-global-menu-configure {
  float: right;
}

