* { margin: 0; padding: 0; font-size: 100%; }
a img { border: none; }

ul, ol, li { list-style: none; }

.hideme { display: none; }
.hideme:focus { display: inline; }

.clearing { clear: both; }

body {
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 75%;
  min-width: 800px;
}

.innertube { padding: 8px; }

/* -------------- Basic headers and whatnot --------- */

h1 {
  font-size: 180%;
  margin-bottom: .5em;
  color: #3C5B8E;
  min-height: 48px;
  padding-top: 3px;
}

h2 {
  font-size: 125%;
  color: #013366;
  font-weight: bold;
  margin-bottom: .5em;
}

h2 small {
  margin-left: 1em;
  font-size: 90%;
}

ol.terms li {
   list-style-position:inside;
   list-style-type:decimal;
   margin-bottom: 10px;
 }
 
h3 {
  font-size: 100%;
  font-weight: bold;
  margin-bottom: .5em;
  color: #3C5B8E;
}

p {
  margin-bottom: 1.7em;
}

div.hr {
  height: 2px; overflow: hidden;
  background: #3C5B8E;
  margin: 5px 0px;
  padding: 0;
  color: black;
}

div.hr hr { display: none; }

a:link    { color: #000000; text-decoration: none; }
a:visited { color: #3C5B8E; text-decoration: none; }
a:focus   { color: #3C5B8E; text-decoration: underline; }
a:hover   { color: #3C5B8E; text-decoration: underline; }
a:active  { color: #3C5B8E; text-decoration: underline; }

/* --- FlashMessage --- */

#flashMessage {
  border-top: 2px solid #e8900a;
  border-bottom: 2px solid #e8900a;
  background: #f8f7f1 url(../img/orange_warning_32.gif) no-repeat 5px 50%;
  color: #000000;
  padding: 5px 5px 5px 50px;
  min-height: 30px;
  margin: 5px; margin-left: 0;
  font-weight: bold;
}

/* Columns layout */

.leftcol {
  width: 49%;
  display: table-cell;
  vertical-align: top;
  padding-right: 5px;
}

.rightcol {
  width: 50%;
  display: table-cell;
  vertical-align: top;
  padding-left: 5px;
}

/* Table layout for definition lists */

dl.table { }

dl.table dt { width: 40%; float: left; clear: left; padding-bottom: .5em;  }

dl.table dd { width: 59%; float: left; padding-bottom: .5em; }

/* --- Forms --- */

/*
form .row { display: table; width: 100%; table-layout: fixed; }

form .row .label { display: table-cell; width: 50%; font-weight: bold; }

form .row .field { display: table-cell; width: 50%; padding: 5px; }

*/

#notes-table {
  position: relative;
  padding-left: 2px;
  clear: both;
}

#notes-table form {
  width: 90%;
}

form .txt, form textarea, form select { width: 100%; }

form table textarea { width: auto; }

.btnholder { clear: left; padding-top: 10px; padding-bottom: 10px; overflow: auto; }

form {
  overflow: hidden;
}

.form-chunk {
  width: 49%; width: 49.5%; float: left;
}

form .row {
  clear: both; overflow: hidden;
}

form .row .label {
  float: left;
  width: 7em;
  min-height: 1.5em;
  padding-bottom: 5px;
}

form .row .field {
  float: left;
  width: 22em;
  min-height: 1.5em;
  padding-bottom: 5px;
  position: relative;
  margin-right: 4px;
}

form .error-message {
  border: 2px solid #e8900a;
  background: #f8f7f1 url(../img/icons-pretty/warning-16.gif) no-repeat 2px 50%;
  margin-top: 2px;
  padding: 5px 5px 5px 30px;
  color: black;
  font-weight: bold;
  /*
  position: absolute;
  left: 100%; top: 0%; width: auto; height: auto;
  */
}

a.fakebutton {
  padding: 5px 15px;
  background: #9999CC!important;
  text-decoration: none!important;
  border-top:    3px solid #ACACE5;
  border-left:   3px solid #ACACE5;
  border-right:  3px solid #8686B3;
  border-bottom: 3px solid #8686B3;
  color: #B6B6F2;
  font-weight: bold;

  font-size: 150%;
}

a.small.fakebutton, a.fakebutton.small {
  padding: 2px 5px;
  border-top:    2px solid #ACACE5;
  border-left:   2px solid #ACACE5;
  border-right:  2px solid #8686B3;
  border-bottom: 2px solid #8686B3;
  font-size: 100%;
}

a.fakebutton:link    { color: #B6B6F2; border-top-color: #ACACE5; border-left-color: #ACACE5; border-right-color: #8686B3; border-bottom-color: #8686B3; }
a.fakebutton:visited { color: #B6B6F2; border-top-color: #ACACE5; border-left-color: #ACACE5; border-right-color: #8686B3; border-bottom-color: #8686B3; }
a.fakebutton:focus   { color: #FFFFFF; border-top-color: #B6B6F2; border-left-color: #B6B6F2; border-right-color: #7C7CA6; border-bottom-color: #7C7CA6; }
a.fakebutton:hover   { color: #FFFFFF; border-top-color: #B6B6F2; border-left-color: #B6B6F2; border-right-color: #7C7CA6; border-bottom-color: #7C7CA6; }
a.fakebutton:active  { color: #FFFFFF; border-top-color: #7C7CA6; border-left-color: #7C7CA6; border-right-color: #B6B6F2; border-bottom-color: #B6B6F2; }

label.bronze { display: inline; padding: 5px; padding-left:20px; background: url(../img/icons-pretty/bronze-16.png) no-repeat 0% 50%; }
label.silver { display: inline; padding: 5px; padding-left:20px; background: url(../img/icons-pretty/silver-16.png) no-repeat 0% 50%; }
label.gold   { display: inline; padding: 5px; padding-left:20px; background: url(../img/icons-pretty/gold-16.png)   no-repeat 0% 50%; }

/* --- End Forms --- */

/* -------------- TABS ---------------- */

ul.tabs {
  width: 100%;
  font-size: 70%;
  text-transform: uppercase;
  font-weight: bold;
  margin-top: 5px;
  padding-bottom: 2px;
  border-bottom: 4px solid #8A8A8A;
  margin-bottom: 1em;
  float: left;
}

ul.tabs:after {
  content: '.';
  height: 0px;
  visibility: hidden;
  overflow: hidden;
  clear: both;
}

ul.tabs li {
  float: left;
  display: block;
  min-width: 11em;
  margin-left: 16px;
  background: url(../img/tab-right-1.png) no-repeat 100% 0%;
  color: #2C1A51;
  text-align: center;
  margin-right: -8px;
  position: relative;
}

ul.tabs li a {
  display: block;
  width: auto;
  background: url(../img/tab-left-1.png) no-repeat 0% 0%;
  padding-left: 8px;
  padding-right: 8px;
  margin-left: -16px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-weight: bold;
}

ul.tabs li.current, ul.tabs li:hover {
  z-index: 99!important;
  margin-top: -4px;
}

ul.tabs li.current a, ul.tabs li:hover a { padding-bottom: 12px; }

ul.tabs li a:link    { color: #2C1A51; text-decoration: none; }
ul.tabs li a:visited { color: #2C1A51; text-decoration: none; }
ul.tabs li a:focus   { color: #2C1A51; text-decoration: underline; }
ul.tabs li a:hover   { color: #2C1A51; text-decoration: underline; }
ul.tabs li a:active  { color: #2C1A51; text-decoration: underline; }


/* ------------- CheckBoxLists (js-replaced) ------------ */

.checkboxlist {
  display: block;
  border: 2px outset;
  max-height: 10em;
  overflow: auto;
  position: relative;

}

.checkboxlist a.cb-checkbox {
  display: block;
  width: 40%;
  float: left;
  padding: 2px 2px 2px 20px;
  background: white url(../img/checkbox-unchecked.gif) no-repeat 2px 50%;
  color: black;
  text-decoration: none;
}

.checkboxlist a.cb-checked {
  background-image: url(../img/checkbox-checked.gif);
}

.checkboxlist a.cb-checkbox:hover {
  background-color: #CDE6E6;
}

.checkbox-tree-holder {
  border: 2px outset;
}

/* ----------  Links with icons  -------- */

a.website { padding: 5px; padding-left:20px; background: url(../img/icons-pretty/website-16.png) no-repeat 0% 50%; }
a.email   { padding: 5px; padding-left:20px; background: url(../img/icons-pretty/email-16.png)   no-repeat 0% 50%; }
a.info    { padding: 5px; padding-left:20px; background: url(../img/icons-pretty/info-16.png)    no-repeat 0% 50%; }

a.listing-bronze { display: block; padding: 5px; padding-left:20px; background: url(../img/icons-pretty/bronze-16.png) no-repeat 0% 50%; }
a.listing-silver { display: block; padding: 5px; padding-left:20px; background: url(../img/icons-pretty/silver-16.png) no-repeat 0% 50%; }
a.listing-gold   { display: block; padding: 5px; padding-left:20px; background: url(../img/icons-pretty/gold-16.png)   no-repeat 0% 50%; }

/* ------------------------------------ */

.factsheet {
  position: relative;
  line-height: 150%;
}

.factsheet p, .factsheet h1, .factsheet h2, .factsheet h3, .factsheet ul {
	margin-bottom: 16px;
}

.factsheet ul {
  margin-bottom: .5em;
}

.factsheet ul li {
  background: url(../img/item-brown.png) no-repeat 0% 3px;
  padding-left: 24px;
  margin-bottom: 5px;
}

.factsheet .image-holder {
  float: right;
  width: 205px;
  text-align: center;
  margin-left: 10px;
}

.factsheet .image-holder img {
  display: block;
  width: 200px; overflow: hidden;
  border: 1px solid rgb(149,150,202);
}

.factsheet .image-holder small {
  display: block;
  font-weight: normal;
  font-style: italic;
  font-size: 80%;
}

/* ----------------------- */

.section-edit {
  width: 40em;
  position: relative;

  padding-right: 16em;

  padding-bottom: 1em;
  
  border-bottom: 2px solid #3C5B8E;
  margin-bottom: 1em;
}

.section-edit .image-edit {
  position: absolute;
  right: 0; top: 0em; width: 15em;
  margin-left: 1em;
  padding-top: 0;
}

.section-edit .image-edit h3 {
  height: 2em;
  vertical-align: middle;
  display: block;
  font-weight: bold;
}

.section-edit form {
  margin-right: 0px;
  padding-right: 5px;
}

.section-edit form label {
  height: 2em;
  vertical-align: middle;
  display: block;
  font-weight: bold;
}

.section-edit .btnholder {
  /*
  position: absolute;
  right: 0; top: 2em; width: 15em;
  margin-left: 1em;
  padding-top: 0;
  */
  font-size: 100%;
  overflow: auto;
}

.section-edit .btnholder .submit {
  float: left;
  margin: 0; padding: 0;
}

.section-edit .btnholder a.fakebutton {
  width: 10em;
  margin-right: .5em;
  margin-bottom: .5em;
  text-align: center;
  font-size: 110%;
}

/* ----------------------- */



h2.factsheet-link {
  background: url(../img/item-brown.png) no-repeat 0% 50%;
  padding-left: 24px;
  padding-top: 2px;
  padding-bottom: 2px;
  margin-top: 25px;
  margin-bottom: 15px;
}

/* --- Sidebar chunks --- */
.chunk-brown {
  background: #3C5B8E;
  color: #FFFFFF;
  padding: 0px 0px 3px 0px;
  margin-bottom: 6px;
}

.chunk-brown h2 {
  background: #9999CC url(../img/hash-brown.png) repeat 0% 0%;
  margin: 0;
  padding: 8px; padding-left: 14px;
  color: white;
  position: relative; overflow: hidden;
  border-bottom: 2px solid white;
}

.chunk-brown h2 b {
  position: absolute;
  left: 0; top: 0; width: 6px; height: 25px;
  background: url(../img/snip-brown.png) no-repeat 0 0;
}

.chunk-brown h2 a {
  color: white; text-decoration: none;
}

.chunk-brown h2 a:hover {
  color: white; text-decoration: underline;
}

.chunk-brown ul {
  padding: 8px;
}

.chunk-brown ul li {
  background: url(../img/item-brown.png) no-repeat 0% 3px;
  padding-left: 24px;
  letter-spacing: 1px;
}

.chunk-brown ul ul {
  padding-left: 0px;
  padding-bottom: 0px;
  margin-top: -9px;
}

.chunk-brown ul ul li {
  background: url(../img/item-brown-2.png) no-repeat 0% 3px;
}

.chunk-brown ul li a {
  display: block;
  text-transform: uppercase;
  font-weight: bold;
  padding-top: 6px;
  padding-bottom: 6px;
}

.chunk-brown ul li i {
  display: block;
  text-transform: uppercase;
  font-weight: normal;
  font-style: italic;
  padding-top: 6px;
  padding-bottom: 6px;
}

.chunk-brown ul li small {
  position: absolute; right: 6px; background: #3C5B8E; font-weight: normal; font-size: 80%;
}

.chunk-brown ul ul li a {
  font-weight: normal;
  padding-top: 3px; padding-bottom: 3px;
}

.chunk-brown ul li a:link    { color: #FFFFFF; text-decoration: none; }
.chunk-brown ul li a:visited { color: #FFFFFF; text-decoration: none; }
.chunk-brown ul li a:focus   { color: #FFFFFF; text-decoration: underline; }
.chunk-brown ul li a:hover   { color: #FFFFFF; text-decoration: underline; }
.chunk-brown ul li a:active  { color: #FFFFFF; text-decoration: underline; }

.chunk-blue {
  background: #CDE6E6;
  color: #006699;
  padding: 0px 0px 3px 0px;
  margin-bottom: 6px;
}

.chunk-blue h2 {
  background: #013366;
  margin: 0;
  padding: 8px; padding-left: 14px;
  color: white;
  position: relative; overflow: hidden;
  border-bottom: 2px solid white;
}

.chunk-blue h2 b {
  position: absolute;
  left: 0; top: 0; width: 6px; height: 25px;
  background: url(../img/snip-blue.png) no-repeat 0 0;
}

.chunk-blue ul {
  padding: 8px;
}

.chunk-blue ul li {
  background: url(../img/item-blue.gif) no-repeat 0% 3px;
  padding-left: 24px;
  padding-top: 6px;
  padding-bottom: 6px;
  letter-spacing: 1px;
}

.chunk-blue ul li small {
  position: absolute; right: 6px; background: #CDE6E6;
}

.chunk-blue ul li a {
  text-transform: uppercase;
  font-weight: bold;
}

.chunk-blue ul li a:link    { color: #006699; text-decoration: none; }
.chunk-blue ul li a:visited { color: #006699; text-decoration: none; }
.chunk-blue ul li a:focus   { color: #006699; text-decoration: underline; }
.chunk-blue ul li a:hover   { color: #006699; text-decoration: underline; }
.chunk-blue ul li a:active  { color: #006699; text-decoration: underline; }

/* --- End Sidebar chunks --- */

/* --- Tables --- */

table.blue {
  /*width: 100%;*/
  border-collapse: collapse;
  border-top: 2px solid #CDE6E6;
  border-left: 1px solid #006699;
  border-right: 1px solid #006699;
  background: red;
  font-size: 80%;
}

table.blue td, table.blue th {
  border: none;
}

table.blue tbody tr td[scope='row'] {
  border-left: 2px solid #006699;
}

table.blue thead td, table.blue thead th {
  background: #006699 url(../img/hash-blue.gif) repeat 0% 0%;
  color: white;
  font-weight: bold;
  text-align: left;
  padding: 5px 10px;
  border-top: 2px solid #CDE6E6;
}

table.blue tr td {
  background: #CDE6E6;
  color: #006699;
  padding: 5px 10px;
  border-bottom: 1px solid #006699;
}

table.blue tr.odd td {
  background: #D9F2F2;
}

table.blue thead th a {
  color: #D9F2F2;
}

table.blue thead th a:hover { color: white; }

/* -- */

table.brown {
  /*width: 100%;*/
  border-collapse: collapse;
  border-top: 2px solid #E1CDC1;
  border-left: 1px solid #995724;
  border-right: 1px solid #995724;
  font-size: 80%;
}

table.brown td, table.brown th {
  border: none;
}

table.brown tbody tr td[scope='row'] {
  border-left: 2px solid #995724;
}

table.brown thead td, table.brown thead th {
  background: #995724 url(../img/hash-brown.gif) repeat 0% 0%;
  color: white;
  font-weight: bold;
  text-align: left;
  padding: 5px 10px;
}

table.brown thead th a {
  color: white;
}

table.brown tr td {
  background: #E1CDC1;
  color: #995724;
  padding: 5px 10px;
  border-bottom: 1px solid #995724;
}

table.brown tr.odd td {
  background: #EDD9CC;
}

/* --- pages --- */

.pages {
  font-size: 80%;
  display: block;
  margin: 5px 0;
}

ul.piped {
  display: inline;
}

ul.piped li {
  display: inline;
  padding: 0 5px 0 4px;
  margin: 0;
  border-left: 1px solid #aaaaaa;
}

ul.piped > li:first-child { border-left: none; padding-left: 0; }
ul.piped > li:last-child { padding-right: 0; }

ol.search-results {
}

ol.search-results li {
  display: block;
  margin-bottom: 1em;
}

/* Debugging */

table.cakeSqlLog {
  /*position: absolute;
  top: 100%; left: 0;*/ width: 100%;
  background: white;
}

table.cakeSqlLog thead th {
  background: #006699 url(../img/hash-blue.gif) repeat 0% 0%;
  margin: 0;
  padding: 2px 7px;
  color: white;
}

table.cakeSqlLog tbody td {
  padding: 2px 5px;
  border: 1px solid #CDE6E6;
  font-family: 'Bitstream Vera Sans Mono', monospace;
}


pre {
	padding: 1em;
}

pre.cake_debug {
	margin: 2px;
	font-size: 12px;
	line-height: 18px;
}

div.cake-stack-trace {
	margin: 2px 2px 0 2px;
	font-size: 12px;
	line-height: 18px;
}

div.cake-stack-trace pre, div.cake-code-dump pre {
	color: #000000;
	background-color: #F0F0F0;
	border: 1px dotted #606060;
	padding: 2px 0 2px 5px;
	margin: 0px 4px 5px 5px;
}

div.cake-code-dump pre, div.cake-code-dump pre code {
	clear: both;
	font-size: 12px;
	line-height: 5px;
	margin: 0;
	padding: 0 0 10px 0;
}

div.cake-code-dump pre {
	padding: 7px 8px;
	margin: 1px 4px 2px 6px;
}

div.cake-code-dump span.code-highlight {
	background-color: #FFFF00;
}


/*--------------- */

/* -------------- Listings (standard list) -------------------- */

.listings {
  overflow: auto;
  margin-bottom: 20px;
  max-width: 50em;
}


.listings h2 {
  font-size: 120%;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 48px;
}

.listings.gold   h2, .listings   h2.gold   { background: url(../img/gold_32.png)   no-repeat 0 50%; }
.listings.silver h2, .listings   h2.silver { background: url(../img/silver_32.png) no-repeat 0 50%; }
.listings.bronze h2, .listings   h2.bronze { background: url(../img/bronze_32.png) no-repeat 0 50%; }

.listings h2.listing-title {
  font-size: 100%;
  padding: 5px 0px 5px 0px;
}

.listings .listing {
  clear: both;
  border: 1px solid #9999CC;
  margin-bottom: 5px;
  background: #F8F7F1;
  position: relative;
  overflow: hidden;
}

.listing .innertube {
  overflow: auto;
}

.listings .listing h3 {
  padding-bottom: 8px;
}

.listings .listing .blurb {
  color: #006699;
  font-weight: bold;
  overflow: hidden;
}

.listings .listing .blurb img.logo {
  float: left;
  margin-right: 8px;
}

.listings .listing .leftcol {
  clear: left;
  display: block;
  float: left;
  width: 55%;
}

.listings .listing .rightcol {
  display: block;
  float: left;
  width: 40%;
}

.listings .listing .address { color: #666666; padding-bottom: 1em; }

.listings .listing dl { padding-bottom: 1em; color: #666666; }
.listings .listing dl dt { display: block; clear: left; width: 2em; float: left; padding-right: 0.5em; }
.listings .listing dl dd { display: block; float: none; }

.listings .listing li a { display: block; color: blue; text-transform: uppercase; text-decoration: underline; font-weight: bold; }
.listings .listing li { display: block; }

.listings .listing li p { padding-left: 20px; color: #666666; }

/* ----------------------------------------- */

ul.imagelist {
  overflow: auto;
  display: block;
}

ul.imagelist li {
  display: block;
  float: left;
  text-align: center;
  width: 150px;
}

ul.imagelist li img {
  display: block;
  margin: 0 auto;
}




.home-chunk {
  padding-left: 192px;
  min-height: 144px;
  overflow: hidden;
}

.home-chunk a.more {
  display: block;
  float: right;
}

.home-chunk a.more:after { content: ' \bb'; }

.advice { background: url(../img/advice-icon.png) no-repeat 0 0; }
.directory { background: url(../img/directory-icon.png) no-repeat 0 0; }
.yard { background: url(../img/yard-icon.png) no-repeat 0 0; }