/*

Title:    ALA Regional - Master screen styles
Date:     1/1/2008

*/

@import "lib/reset.css";
@import "lib/typography.css";

body {
	margin: 0; padding: 0;
	font-family: arial, helvetica, sans-serif;
	line-height: 1.5; 
	color: #252525;	
	background: #fff url(../images/site/body-bg.gif) repeat-x top left;
}

a { 
	color: #749e38; text-decoration: underline; 
}
a:hover { 
	color: #7fab40;
	text-decoration: underline;
}
a.more {
	text-decoration: underline;
}


/* =structure
------------------------------------------------------ */

#header { 
	position: relative;
	height: 118px; width: 967px;
	margin: 0 0 0 0;
	background: #749e38;
}
#main {
	padding: 11px 0 0 48px;
}
#main-inner {
	background: #ededcc;
}
#primary {
	padding: 0;
	width: 940px;
	background: url(../images/site/main-bg.gif) repeat-y top left;
	border: 1px solid #c2c2c2;
	border-left: 0;
}
#content {
	float: left;
	width: 560px;
	margin: 10px 0 30px -48px;
	background: #ededcc;
	min-height: 465px; /* assumes photo height of 505px */
}
#content-inner {
	padding: 30px 45px 30px 48px;
}
#sidebar {
	float: right;
	width: 419px;
}
#footer {
	clear: both;
	padding: 0 0 0 48px;	
	
}
#footer-inner {
	width: 940px;
	padding: 4px 0 0;
	font-family: arial, helvetica, sans-serif;
	background: url(../images/site/footer-bg.gif) repeat-x top left;
}

/* temp re-grid per Fletch - remove or replace later */

#main {
	padding-left: 0;
}
#primary {
	width: 988px;
	background: url(../images/site/main-bg-988.gif) repeat-y top left;
}
#content {
	margin-left: 0;
}




/* =header
------------------------------------------------------ */

#header h1 {
	margin: 0; padding: 0;
	height: 23px; width: 304px;
	position: absolute; top: 27px; left: 49px;
	background: url(../images/site/sfo-logo.gif) no-repeat 0 0;
}
#header h1 a {
	display: block;
	height: 59px; width: 395px;
	text-indent: -9999px;
}
#header h2 {
	margin: 0; padding: 0;
	height: 47px; width: 326px;
	position: absolute; top: 17px; left: 642px;
	background: url(../images/site/ala-logo.gif) no-repeat 0 0;
}
#header h2 a {
	display: block;
	height: 47px; width: 326px;
	text-indent: -9999px;
}


/* =navigation
------------------------------------------------------ */

#nav {
	position: absolute;
	top: 83px; left: 48px;
	width: 940px; height: 35px;
	margin: 0; padding: 0;
	list-style: none;
	background: url(../images/site/nav-sprite.gif) no-repeat top left;
	font-family: arial, helvetica, sans-serif;
}
#nav li {
	margin: 0; padding: 0;
	float: left;
	position: relative; 
}
#nav li a {
	float: left;
	display: block;
	height: 35px;
	text-indent: -9999px;
	text-decoration: none;
	position: relative; z-index: 20;
}

#n-1 a { width: 66px; }  /* home */
#n-2 a { width: 88px; }  /* about */
#n-3 a { width: 91px; }  /* issue */
#n-4 a { width: 177px; } /* legislation */
#n-5 a { width: 138px; } /* what you can do */
#n-6 a { width: 191px; } /* secondhand facts */
#n-7 a { width: 84px; }  /* contact */

#n-1 a:hover { background: url(../images/site/nav-sprite.gif) no-repeat 0 -35px; padding-right: 1px; }
#n-2 a:hover { background: url(../images/site/nav-sprite.gif) no-repeat -66px -35px; padding-right: 1px; }
#n-3 a:hover { background: url(../images/site/nav-sprite.gif) no-repeat -154px -35px; padding-right: 1px; }
#n-4 a:hover { background: url(../images/site/nav-sprite.gif) no-repeat -245px -35px; padding-right: 1px; }
#n-5 a:hover, #n-5:hover a, #n-5.sfhover a { background: url(../images/site/nav-sprite.gif) no-repeat -422px -35px; padding-right: 1px; }
#n-6 a:hover { background: url(../images/site/nav-sprite.gif) no-repeat -560px -35px; padding-right: 1px; }
#n-7 a:hover { background: url(../images/site/nav-sprite.gif) no-repeat -751px -35px; padding-right: 1px; }


/* second level nav */

ul#nav ul {
	position: absolute;
	top: 34px; left: -999em; /* hide */
	width: 120px; /* default */
	background: #ededcc;
	margin: 0; padding: 0 0 0 5px;
	list-style: none;
	z-index: 10;
	border: 1px solid #749e38;
}
ul#nav ul li {
	height: auto;
	padding: 12px 0;
	color: #7abcd4;
}
ul#nav li ul li a {
	display: block;
	height: auto; width: auto;
	padding: 0 12px !important;
	background: none !important;
	border-right: 1px solid #749e38;
	font-size: 10px; color: #749e38; text-transform: uppercase;
	line-height: 1;	text-indent: 0;
}
ul#nav ul li a.last {
	border: 0;
}
ul#nav ul li a:hover {
	text-decoration: underline;
}

ul#nav li:hover ul, ul#nav li.sfhover ul {
	left: 0; margin-left: -1px;
}

/* subnav width adjustments */
ul#nav #s-5 { width: 324px; }


/* =main
------------------------------------------------------ */

#content ul {
	margin: 0 0 1.5em;
	list-style: none;
}
#content ul li {
	background: url(../images/site/bullet.gif) no-repeat 0 8px;
	padding-left: 9px;
}

#content ul.anchor-list li {
	padding: 0; background: none;
}

div.module {
	padding-top: 1.5em;
	border-top: 1px solid #749e38;
}
div.module cite {
	font-size: 90%; font-style: italic; color: #666;
}
div.module cite a {
	color: #666;
}

/* headline image replacement */

h1#about, h1#issue, h1#legislation, h1#get-involved, h1#facts, h1#join, h1#city-council, h1#search {
	height: 20px;
	text-indent: -9999px;
}
h1#about { background: url(../images/site/h-about.gif) no-repeat top left; }
h1#issue { background: url(../images/site/h-issue.gif) no-repeat top left; }
h1#legislation { height: 24px; background: url(../images/site/h-legislation.gif) no-repeat top left; }
h1#get-involved { background: url(../images/site/h-get-involved.gif) no-repeat top left; }
h1#facts { background: url(../images/site/h-risks.gif) no-repeat top left; }
h1#join { background: url(../images/site/h-join.gif) no-repeat top left; }
h1#city-council { height: 24px; background: url(../images/site/h-city-council.gif) no-repeat top left; }
h1#search { background: url(../images/site/h-search.gif) no-repeat top left; }

/* 3 columns */
#content div.col, #content ul.col {
	float: left;
	width: 140px;
	margin: 0 15px 0 0;
}

/* sponsor logos */
div.logos {
	margin: 0 0 1.5em 0;
}
div.logos img {
	float: left;
	padding: 5px;
	margin: 0 15px 15px 0;
	border: 1px solid #749e38;
}

/* council contacts */

dl.contact {
	width: 140px; float: left;
	margin: 0 15px 1em 0;
}
dl.contact dt {
	font-weight: bold;
	color: #749e38;
	font-size: 0.917em;
}
dl.contact dd {
	margin: 0; padding: 0;
	font-size: 0.917em;
}

/* =search
------------------------------------------------------ */

#search-form { margin: 0 0 25px 0; }
#keywords {
	padding: 1px 3px;
	width: 250px;
	background: #fff;
	border: 1px solid #c2c2c2;
	vertical-align: middle;
}
#search-btn {
	margin-left: 7px;
	vertical-align: middle;
}
#content dl#search-results {
	margin: 0 0 1.5em 0;
	padding: 10px 0 0 0;
	border-top: 1px dashed #c2c2c2;
}
#content dl#search-results dt {
	margin: 0 0 4px 0;
	padding: 0;
	font-size: 1.083em;
}
#content dl#search-results a { text-decoration: underline; }
#content dl#search-results dd {
	margin: 0 0 10px 0; 
	padding: 0 0 10px 0;
	border-bottom: 1px dashed #c2c2c2;
	line-height:1.2em;
}
#content dl#search-results dd span.date { color: #888; }
form#search-filter {
	margin: 0 0 15px 0;
	padding: 15px 0 15px 15px;
}
form#search-filter h3 {
	margin: 0 0 8px 0;
	padding: 0;
	border: 0;
	font-size: 1.3em;
	font-weight: normal;
}
form#search-filter select, .search-options select { 
	margin: 0 10px 0 0; 
}



/* =footer
------------------------------------------------------ */

#footer p {
	float: left;
	color: #3e3e3e;
	font-size: 9px;
	padding-top: 15px;
	margin: 0;
	width: 590px;
}
#footer a {
	color: #3e3e3e;
	text-decoration: none;
}
#footer a:hover {
	text-decoration: underline;
}
#footer #search {
	float: right;
	width: 322px;
	padding: 10px 0;
	background: #ededcc;
}
#footer #search, #footer input { 
	vertical-align: middle;
}
#search #search-txt {
	width: 120px;
	margin-left: 17px;
}


/* =home page
------------------------------------------------------ */

body#home #primary { 
	background: url(../images/site/main-bg-pattern.gif) repeat top left;
}
body#home #content {
	width: 494px; margin-bottom: 0;
	min-height: 327px; /* assumes photo height of 367px */
}
body#home #content-inner {
	padding-bottom: 20px;
}
body#home #sidebar {
	width: 479px;
}
body#home #main {
	margin-bottom: 5px;
}

body#home #footer {
	padding: 0 0 0 48px;
	background: url(../images/site/extra-bg-bot.gif) repeat-x top left;
}
body#home #footer-inner {
	padding: 7px 0 0;
	background: none;
}


#extra {
	clear: both;
	padding: 25px 0 25px 48px;
	font-size: 10px; color: #5f5f5f;  line-height: 1.4;
	background: #cadead url(../images/site/extra-bg-top.gif) repeat-x top left;
}
#extra-inner {
	width: 940px;
	min-height: 51px;
	background: url(../images/site/extra-bg.gif) repeat-y 0 0;/* equal height dividers */
}

#extra h2 {
	float: left; 
	width: 111px;	height: 51px; margin: 0 46px 0 0;
	text-indent: -999px;
	background: url(../images/site/extra-headline.gif) no-repeat 0 0;
}
#extra h3 {
	margin: 0;
	font-size: 10px; line-height: 1.4; 
}
#extra div.column {
	width: 200px; margin: 0 36px 0 0;
	float: left;
}
#extra div.last {
	margin-right: 0;
}
#extra p {
	margin: 0 0 0.5em;
}
#extra p.more {
	margin: 0;
}

/* =forms
------------------------------------------------------ */

label { font-weight: bold; color: #749e38; }

/* Fieldsets */
fieldset { padding: 1.5em; margin: 0 0 1.5em 0; border: 1px solid #749e38; }
legend { padding: 0 .4em; font-weight: bold; font-size: 1.2em; color: #749e38; }

/* inputs */
textarea { 
	margin: 0.5em 0.5em 0 0; padding: .4em;
}
input.txt {
	padding: 2px .4em;
}
textarea, input.txt {
	background: #fff; 
	border-top: 1px solid #cece90;
	border-left: 1px solid #cece90;
	border-right: 1px solid #d9d9ac;
	border-bottom: 1px solid #d9d9ac;
	width: 90%;
}

form.cform p, .cform form p { margin: 0 0 .5em; clear: both; }
form.cform p label, .cform form p label { display: block; }
form.cform p.checkbox label, .cform form p.checkbox label { display: inline; font-weight: normal; }

form.cform span {
	float: left; margin-right: 8px; margin-bottom: .5em;
}
form.cform p span label, form.cform div p label, form.cform label.field {
	font-weight: normal; color: #666; font-size: 10px; padding-left: 0.5em;
}
form.cform label.radio {
	font-weight: normal; color: #666; font-size: 10px; padding-left: 4px; margin-right: 8px; display: inline;
}
form.cform p span input, form.cform p span input.txt, form.cform input.field { width: auto; }

form.cform p, form.cform div { clear: both; }

/* Success, error & notice boxes for messages and errors. */
/* user messages */
form.cform .error, .cform form .error { background:#FBE3E4; } /* elements */
div.error, p.error, .notice,.success { margin-bottom:1em;border:2px solid #ddd;padding:0.8em; }
div.error, p.error { background:#FBE3E4;color:#D12F19;border-color:#FBC2C4; }
.notice { background:#FFF6BF;color:#817134;border-color:#FFD324; }
.success { background:#E6EFC2;color:#529214;border-color:#C6D880; }
div.error a, p.error a { color:#D12F19; text-decoration: underline; }
.notice a { color:#817134; text-decoration: underline; }
.success a { color:#529214; text-decoration: underline; }


/* =misc
------------------------------------------------------ */

hr, .hide {
	display: none;
}

.highlight { 
	background: #ffc; 
}

/* photos */

img.pic { padding: 4px; border: 1px solid #ededed; }
img.plain { padding: 0; border: 0; }
.left {
	float: left;
	margin: 0 14px 8px 0;
}
.right {
	float: right;
	margin: 0 0 8px 14px;
}

/* back to top */

.top-link {
	text-align: right;
	margin: 0 0 1em;
}

/* self-clearing floats */

.wrap:after {
	content: "."; 
	display: block; 
	height: 0; 
	clear: both; 
	visibility: hidden;
}