#swiftype {
  color: #666666;
  width: 100%;
  margin: 0 auto;
}

#swiftype h3 {
	margin: 0 0 2px 0;
	font-size: 13px;
}

/* Search field */

#swiftype form { margin-bottom: 5px; }

#swiftype form input.st-search-input {
  height: 18px;
  width: 500px;
  max-width: 100%;
  background: #fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAUFJREFUeNqU0j0oRWEcx/Hj3ifvlMHL7C1lY7mDwUBKkoksBjKJxWIQu7xlOybDLVGukhhMZDFbxGBS8nIjKR3E96nf0dPjuuVfn+6tc35P//P8/yYMw8CpbgygGQlcYw8H+Ai8MvotxQImgt81hk1M4cEPF2IV43jCGo7wjk5MYhhlGMKbG+7BKO4wiGPn8DO1vIN+jGA9fpjQaUksecG4zjGPL3VQ5IZb9OAw+LtO1FkjatxwUuEoTzjSbRu9/xO+0W97nnArqvXuoxve1/9p1OUIlmNGU7EX9+KGt3GKNuyiC5WoQAe2NJFP3PpzzmoR0khpxle6h3pnkeKJPCPjbtglerVFfWhSVxfqJtK4qrChTMY4XdjVm9O21aIA92LrFcv6HHtAsclxQVnxa0WfsqgDUib4X9muStCA2W8BBgDJ0EeGeFZ8WAAAAABJRU5ErkJggg==) no-repeat 7px 7px;
  color: #666;
  border: 1px solid #fff;
  outline: none;
  padding: 5px 9px 5px 27px;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  box-shadow: 0 1px 3px 2px rgba(0, 0, 0, .2);
  -webkit-box-shadow: 0 1px 3px 2px rgba(0, 0, 0, .2);
  -moz-box-shadow: 0 1px 3px 2px rgba(0, 0, 0, .2);
  -ms-box-shadow: 0 1px 3px 2px rgba(0, 0, 0, .2);
  font-size: 14px;
}

/*typeahead*/

.typeahead {
  margin-bottom: 40px;
  padding-left: 20px;
}

.twitter-typeahead {
  height: 40px;
}

.tt-input,
.tt-hint {
  width: 480px;
  height: 40px;
  font-size: 14px;
  /*line-height: 30px;*/
  border: 1px solid #fff !important;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  -ms-box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  outline: none;
}

.tt-hint {
	color: #fff !important;
}

.tt-query {
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.tt-menu {
  width: 500px;
  margin-top: 0; /*5px;*/
  padding: 0; /*8px 0;*/
  background-color: #fff;
  border: 1px solid #fff !important;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  box-shadow: 0 1px 3px 2px rgba(0, 0, 0, .2);
  -webkit-box-shadow: 0 1px 3px 2px rgba(0, 0, 0, .2);
  -moz-box-shadow: 0 1px 3px 2px rgba(0, 0, 0, .2);
  -ms-box-shadow: 0 1px 3px 2px rgba(0, 0, 0, .2);
}

.tt-suggestion {
  padding: 5px 10px 5px 25px;
  font-size: 14px;
}

.tt-suggestion.tt-cursor, .tt-suggestion:hover {
  color: #000;
  background-color: #ebebeb;
}

.tt-suggestion p {
  margin: 5px;
}

/*  Typeahead Menu  */

.tt-menu .simplepage {
  overflow: hidden;
  width: calc(100% - 10px);
  max-height: 17px;
  float: left;
  margin: 1px;
  padding: 5px 4px;
  cursor: pointer;
}

.tt-menu .simplepage span.title {
	font-weight: 500;
	font-size: 14px;
	line-height: 18px;
}

.tt-menu .page {
	overflow: hidden;
	width: calc(100% - 10px);
	max-height: 62px;
	float: left;
	margin: 1px;
	padding: 2px 4px;
	cursor: pointer;
}

.tt-menu .page h3 {
	margin: 0 0 2px 0 !important;
	color: #008334 !important;
	font-weight: 500 !important;
	font-size: 14px !important;
	line-height: 15px !important;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.tt-menu .page span {
	font-size: 12px;
	line-height: 14px;
	font-weight: 400;
}

.tt-menu .page em {
	font-weight: bold;
	font-style: normal;
}

.tt-menu .page span.image {
    float: left;
    width: 56px;
    margin-right: 10px;
}

.tt-menu .page span.desc {
	color: #333333;
   	overflow: hidden;
   	text-overflow: ellipsis;
   	display: -webkit-box;
   	line-height: 14px;     /* fallback */
   	max-height: 28px;      /* fallback */
   	-webkit-line-clamp: 2; /* number of lines to show */
   	-webkit-box-orient: vertical;
}

.tt-menu hr { 
	margin-bottom: 5px;
	margin-top: 5px;
}

.show-all {
	padding-left: 5px;
	padding-bottom: 5px;
}

.show-all a {
  font-size: 13px; 
  font-weight: 500;
  color: #008334; 
  text-decoration: none;
}

/* Search result listing */

.st-loading-message {
  font-size: 16px;
  font-style: italic;
  color: #999;
  margin: 10px auto;
}

#st-spelling-suggestion {
    font-size: 13px;
}

#st-spelling-suggestion a.st-suggestion {
    color: #008334;
}

#results { width: 100%; }

#results #st-results-container {
	width: 100%;
}

#results #st-no-results {
  font-size: 16px;
  font-style: italic;
}

#results ul.resultlist {
    margin: 0;
    float: left;
    text-indent: 0px;
}

#results ul.resultlist li {
    padding: 0 0 10px 0;
    background-image: none;
    list-style-type: none;
    overflow: hidden;
}

#results .page {
  overflow: hidden;
  width: 100%;
  max-height: 90px;
  float: left;
  margin: 0; 
  padding: 0;
}

#results .page h2 {
  margin: 5px 0 0 0;
  color: #666666;
  font-weight: 500; 
  font-size: 16px;
}

#results .page h3 {
  	margin: 5px 0 0 0;
  	font-weight: 500; 
  	font-size: 16px;
  	line-height: 16px;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

#results .page span {
  font-size: 13px;
  line-height: 16px;
  font-weight: 400;
}

#results .page em {
  font-weight: bold;
  font-style: normal;
}

#results .page p.link {
	width: 100%;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	padding-bottom: 3px;
	font-size: 13px;
	line-height: 16px;
	color: #666666;
	margin: 0;
}

#results .page span.image {
    float: left;
    width: 56px;
    margin-right: 10px;
}

#results .page span.desc {
	color: #333333;
   	overflow: hidden;
   	text-overflow: ellipsis;
   	display: -webkit-box;
   	line-height: 15px;     /* fallback */
   	max-height: 48px;      /* fallback */
   	-webkit-line-clamp: 3; /* number of lines to show */
   	-webkit-box-orient: vertical;
}

/* Pagination links */

#results .st-page {
  width: 100%; 
  clear: both;
  padding: 20px 0 20px 0;
}

#results .st-page .st-prev {
  margin-right: 20px;
}

#results .st-page a {
  text-transform: uppercase;
  font-size: 14px;
}

#results .st-page a:hover {
  text-decoration: underline;
}

/* Search Infos  */

#swiftype .searchtips {
	margin-bottom: 5px;
}

#swiftype .searchtips a {
	color: #666666;
}

#swiftype .searcharea {
	margin-bottom: 10px;
}

/* Filter */

#searchfilter {
  margin-bottom: 10px;
  font-size: 13px; 
  line-height: 1.75;
}

#searchfilter input[type="checkbox"] {
  display: inline-block; margin-right: 4px; }

#searchinfos {
	margin-bottom: 10px;
	font-size: 13px;
	line-height: 1.75;
	float: left;
	width: 100%;
}

#resultinfo {
	float: left;
	font-style: italic;
	padding-right: 20px;
	width: calc(50% - 20px);
}

#sorting {
	float: right;
	text-align: right;
	width: 50%;
}

#dateRange {
	margin: 5px 0;
}

a.sort,
a.dateFilter,
a.subpageFilter,
a.clear-selection {
  width: auto;
  display: inline-block;
  margin: 0 6px 0 0;
  padding: 2px 7px 2px 7px;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  background: #ccc;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 500;
  color: #000;
  cursor: pointer;
  text-decoration: none;
}

a.sort:last-of-type, a.dateFilter:last-of-type { margin-right: 0; }
a.sort.active, a.dateFilter.active { background: #008334; color: #fff; }

/* Responsive */

@media only screen and (max-width : 900px) {
	#swiftype form {
		padding: 0;
		background: none;
	}
}

@media only screen and (max-width : 615px) {
	#swiftype span.twitter-typeahead {
		width: 100% !important;
	}
		
	#swiftype .st-search-input {
		width: calc(100% - 36px) !important;
	}
	
	#swiftype .tt-menu {
		width: 100% !important;
	}
	
	#swiftype #searchfilter {
		margin-bottom: 5px;
	}
	
	#swiftype a.dateFilter {
		margin: 0 6px 6px 0;
	}
	
	#swiftype #resultinfo {
		padding-right: 0;
		padding-bottom: 5px;
		width: 100%;
	}
	
	#swiftype #sorting {
		float: left;
		text-align: left;
		width: 100%;
	}
 
	#swiftype #results .page {
		max-height: 136px;
	}
	 
	#swiftype #results .page span.desc {
		max-height: 75px;
		-webkit-line-clamp: 5;
	}
}