/*Custom CSS rules for Woruldhord*/

/*Header*/
header[role="banner"] {
  background: transparent url(../images/interface/header-bg.jpg) repeat-x 330px 56px;
}
#search-container {
  top: 6.75em;
}
#search-container button {
  background: #9a4b24;
}

/*Navigation*/
.nav-menu {
  font-family: Georgia, times, serif;
}
#primary-nav .nav-item a, #primary-nav .nav-item:first-child > a {
  background: #aa9674;
  color: #fff;
  border-color: #896644;
}
#primary-nav li.active a {
  background: #896644;
  color: white;
  border-color: #896644;
}
#primary-nav a:hover, #primary-nav a:focus, #primary-nav .nav-item > a.open {
  color: white;
  background: #9a4b24;
  border-color: #896644;
}
#primary-nav .sub-nav > li {
  border-color: #896644;
  border-width: 1px;
}

/*Content*/
#content {
  border-color: #896644;
}

/*Links*/
main a {
  text-decoration: underline;
}
a:link, a:visited, a:hover, a:active, a:focus {
  color: #CF7A30;
}
.nav>li>a, h1 a {
  text-decoration: none;
}


/*Headings*/
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, times, serif;
  color: #422c32;
  text-transform: none;
}
#home #content h2 {
  text-transform: none;
}

/*Tables*/
table {
  border-spacing: 2px;
  border-color: grey;
}
thead th {
  border-top: 2px solid #A79D96;
  border-bottom: 2px solid #A79D96;
}
tbody {
  border: 2px solid #A79D96;
}
td, th {
  border: 1px solid #A79D96;
  vertical-align: top;
  padding: 0.2778em;
  font-size: 0.9em;
}

/*Search results*/
table#search-results {
  width: 100%;
}
table#search-results td, table#search-results th {
  border-left: 0;
  border-right: 0;
}
table#search-results img {
  border: 5px solid #E0DED9;
}
table#search-results tbody {
  border-left: 0;
  border-right: 0;
}

/*Pagination*/
.pagination li {
  border: 0;
  text-decoration: none;
  background-color: #E0DED9;
  color: #44687D;
  font-weight: bold;
  margin: 1em 1em 0 0;
  padding: 0;
}
.pagination a {
  color: #44687D;
}
.pagination>li>a:focus, .pagination>li>a:hover, .pagination>li>span:focus, .pagination>li>span:hover {
  background-color: #A79D96;
  color: white;
}

/*Forms*/
form fieldset {
  padding: 1em;
  border: 1px solid #3e322c;
  border-radius: 5px;
  background: #f1ede1;
  margin: 1em 0;
}
form label {
  font-weight: bold;
}
#contribution-item-metadata input[type=text], #contribution-item-metadata textarea {
  min-width: 400px;
}
#contribution-item-metadata textarea {
  min-height: 100px;
}

/*Featured content*/
.featured {
  background-color: #fffaee;
/*  padding: 0px;*/
/*  padding-bottom: 5px;*/
/*  clear: both;*/
  border: 1px solid #896644;
/*  margin: 3px;*/
/*  margin-top: 1em;*/
}
.featured h2 {
  border-bottom: 1px solid #896644;
  color: #fff;
  background-color: #856f4b;
  padding: 2px;
  margin: -1.5em -20px 1.5em -20px;
  text-align: center;
  font-size: 1.1em;
}

/*Keyword lists*/
#keyword-list ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
#keyword-list ul li.cat {
  font-family: Georgia, times, serif;
  border: 1px solid #AA9674;
  border-bottom: 1px solid #896644;
  background-color: #c2b298;
  padding: 5px;
  padding-left: 10px;
  clear: both;
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 10px;
}
#keyword-list ul li.cat a {
  color: #000;
}
#keyword-list ul li.cat ul {
  display: block;
}
#keyword-list ul li.cat ul:after {
  content: "";
  display: table;
  clear: both;
}
#keyword-list ul li.cat ul li
{
  font-family: Arial, Verdana, sans-serif;
  float: left;
  font-weight: normal;
  border: 1px solid #333;
  padding: 5px;
  margin: 2px;
  background-color: #fffaee;
  font-size: 0.85em;
}
#keyword-list ul li.cat ul li a
{
  text-decoration: none;
}
#keyword-list ul li.cat ul li a:focus,
#keyword-list ul li.cat ul li a:hover {
  text-decoration: underline;
}
#keyword-list h3 {
  margin: 0;
}
