html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  overflow-y: scroll;
}

body {
  background: #fff url(/img/layout/background.png) repeat-x 0 0;
}

h4 {
  font-size: 1em;
}

/***** Blocks *****/

#wrap {
  display: block;
  overflow: hidden;
  margin: 0 auto;
  max-width: 1140px;
  min-width: 980px;
}

#header {
  background: transparent;
  height: 145px;
  margin: 0 auto;
  position: relative;
  width: 980px;
}

#header .bg {
  background: url(/img/layout/header.jpg) no-repeat 0 0;
  float: right;
  height: 101px;
  margin-right: -79px;
  width: 320px;
}

#header .tagline {
  color: #999;
  font-family: Georgia;
  font-size: 1.8em;
  margin-left: 150px;
  position: absolute;
  top: 62px;
}

h1#logo {
  background: url(/img/logos/walk_free.png) no-repeat 0 0;
  color: transparent;
  height: 70px;
  margin: 0;
  position: absolute;
  text-indent: -5000px;
  top: 15px;
  width: 140px;
}

#menu {
  height: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 102px;
}

#menu li {
  float: left;
  font-size: 12px;
  height: 32px;
  line-height: 30px;
  margin: 0;
  padding: 0;
  text-align: center;
  width: 120px;
}

#menu li a {
  border: none;
  color: #000;
  display: block;
  text-decoration: none;
}

#menu li a:hover {
  text-decoration: none;
}

#menu li.active {
  background: url(/img/layout/tab.png) no-repeat 0 0;
}

#menu li.active a {
  color: #fff;
  font-weight: bold;
  text-shadow: #777 1px 1px 2px;
}

#content {
  background: url(/img/layout/line1.png) no-repeat 0 0;
  margin: -10px auto 0;
  min-height: 350px;
  overflow: auto;
  padding: 0;
  width: 980px;
}

#main {
  float: left;
  font-size: 1.1em;
  padding: 10px;
  width: 720px;
}

#side {
  background: url(/img/layout/line2.png) no-repeat 100% 0;
  margin-left: 740px;
  min-height: 350px;
  padding: 10px;
  width: 220px;
}

#footer {
  border-top: dashed 1px #ccc;
  clear: both;
  color: #888;
  margin: 1em 2.5em 0;
  padding: 1.5em;
  text-align: center;
}

/***** Notifications *****/

.msg_plain, .msg_info, .msg_warn, .msg_error {
  border: solid 2px;
  padding: 1em;
  margin-bottom: 0.5em;
}
.msg_plain {
  background: #e6e6e6;
  border: solid 2px #ccc;
}
.msg_info {
  background: #dfdfff;
  border-color: #bbe;
}
.msg_warn {
  background: #fec;
  border-color: #fc9;
}
.msg_error {
  background: #fdd;
  border-color: #d66;
}

/***** General *****/

p.signature {
  text-align: right;
}

blockquote {
  color: #888;
}

.left {
  float: left;
  margin: 0.25em 0.75em 0.25em 0;
}

.right {
  float: right;
  margin: 0.25em 0 0.25em 0.75em;
}

.caption {
  color: #444;
  display: block;
  font-size: 0.7em;
  padding: 0.25em 0 0.5em;
}

a.icon, a.image {
  border: none;
  text-decoration: none;
}
a.icon {
  margin: 0 0.4em;
}
a.icon img, img.icon {
  display: inline;
  vertical-align: middle;
}

hr {
  margin: 1em 2em;
}

button img {
  display: inline;
  margin: 1px 0;
  vertical-align: middle;
}

/***** Footnotes *****/

ul.footnotes {
  font-size: 0.9em;
  margin: 0.5em 0;
}
ul.footnotes li {
  list-style: none;
  padding: 0.2em 0.5em;
}
ul.footnotes li:target {
  background: #ff9;
  border-radius: 5px;
  -khtml-border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
}
ul.footnotes img {
  display: inline;
  padding: 0 0.2em;
  vertical-align: center;
}
a.ftn {
  font-size: xx-small;
  padding: 0.1em;
  vertical-align: text-top;
}
a.ftn:target {
  font-weight: bold;
}
a.ftn:before {
  content: '[';
}
a.ftn:after {
  content: ']';
}

/***** Causes *****/

#causes h2.references {
  font-size: 1em;
}
#causes ul.sources {
  font-size: 0.9em;
  margin: 0.5em 0 0.5em 2em;
}
#causes ul.sources li {
  padding: 0.2em 0.5em 0.2em 0;
}
#causes ul.sources img {
  display: inline;
}

/***** Sponsor *****/

#sponsor ul.actions li p:first-child {
  font-weight: bold;
}

/***** Prototyping/Debugging/WIP *****/

/*span.todo {
  background: #ff0;
  color: #f00;
  padding: 2px;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -khtml-border-radius: 5px;
  -webkit-border-radius: 5px;
}*/

/***** FAQs *****/

#faq h3:target, #faq h4:target {
  background: #ff9;
  padding: 0.1em 0.5em;
  margin-left: -0.5em;
  margin-right: -0.5em;
  border-radius: 5px;
  -khtml-border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
}
#faq ol.toc {
  margin: 1em 0;
}
#faq ol.toc li {
  list-style: none;
}
#faq ol.toc ol {
  margin: 0 0 0 2em;
}
#faq p.backlink {
  margin-bottom: 1.5em;
}
#faq p.backlink:before {
  bottom: 1px;
  content: "↑ ";
  position: relative;
}
#faq p.backlink a {
  font-size: 0.9em;
}

