/* Search */
form#article-search {
  border: 0;
  width: 150px;
}

form#article-search fieldset {
  border: 0;
  width: 138px;
  padding: 5px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

form#article-search #article-search-term {
  float: left;
  width: 118px;
  height: 20px;
  line-height: 18px;
  border: 0;
  padding: 0;
  background: none;
}

form#article-search #article-search-submit {
  float: right;
  width: 17px;
  height: 21px;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: transparent !important;
  background: url(/_img/search_go.png) no-repeat !important;
  /*img replace hack*/
  display: block;
  text-indent: -9999px;
}

.results {
  padding-bottom: 10px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}

.results h3 {
  margin-bottom: 0;
}

.results h3 a {
  text-decoration: none;
}

.results .meta {
  margin-bottom: 0;
}

.results .summary {
  margin-bottom: 0;
}

/* Articles */
.items {
  overflow: hidden;
  padding-bottom: 25px;
  width: 100%;
}

.items article {
  overflow: hidden;
  margin-bottom: 40px;
}

article img {
  float: left;
  margin-right: -150px;
  max-width: 150px;
}

article header {
  float: left;
  margin-left: 175px;
  overflow: hidden;
}

article header h3 {
  margin: 0 0 0.3em 0;
}

article h3 a {
  text-decoration: none;
  font-size: 1em;
  line-height: 1em;
}

article .meta {
  font-size: 0.9em;
  line-height: 1.2em;
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}

article .meta a {
  text-decoration: none;
}

article .summary {
  margin: 0;
}

article .media {
  float: right;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

article .media li {
  display: block;
  float: left;
  padding-left: 0 !important;
  width: 28px;
  margin-left: 8px;
  line-height: 28px;
  height: 28px;
  font-size: 1.2em;
  margin: 7px 7px !important;
  color: hotpink;
  position: relative;
}
article .media li:hover {
  opacity: 0.9;
}

article .media li a {
  text-decoration: none;
  position: absolute;
  left: 0;
  top: 0;
  height: 28px;
  /*img replace hack*/
  display: block;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}

article .media li.listen a {
  width: 25px;
}

article .media li.download a {
  width: 20px;
  background-position: -32px 0;
}

article .media li.video a {
  width: 26px;
  background-position: -59px 0;
}

article .media li.notes a {
  width: 21px;
  background-position: -92px 0;
}

/* article detail (sidebar added) */
article.detail {
  margin: 0;
}

article.detail .title {
  padding: 0 0 10px 15px;
  /*left padding should match header left padding*/
  overflow: hidden;
}

article.detail .title h2 {
  display: inline;
  float: left;
  width: 50%;
  margin: 0;
}

article.detail .title h2 a {
  text-decoration: none;
}

article.detail .meta {
  display: inline;
  float: right;
  border: 0;
  width: 45%;
  text-align: right;
  font-size: 1em;
  padding-top: 5px;
  margin: 0 0 0 5%;
}

article.detail header {
  display: block;
  position: relative;
  float: none;
  background: darkslateblue;
  padding: 15px;
  margin-bottom: 15px;
  margin-left: 0;
}

article.detail img {
  float: left;
  max-width: 290px;
  margin-right: 15px;
  margin-bottom: 5px;
}

article.detail .summary {
  font-size: 1.1em;
}

article.detail .media {
  float: none;
}

article.detail .details {
  padding-left: 15px;
}

/* sidebar (not used on list view) */
aside.left h2 {
  font-size: 1.6em;
  margin-bottom: 5px;
}

aside.left .return {
  margin: 15px 0;
  font-size: 1em;
  line-height: 1;
  position: relative;
}
aside.left .return span {
  color: hotpink;
  position: absolute;
  left: 7px;
  top: 11px;
  font-size: 0.6em;
  z-index: 1;
}

aside.left .return a {
  display: block;
  background: dodgerblue;
  padding: 7px 5px 5px 19px;
  text-decoration: none;
}

aside.left .sidebar-article {
  margin: 0 0 15px 0;
}

aside.left .sidebar-article a {
  text-decoration: none;
}

aside.left .sidebar-article img {
  max-width: 150px;
  margin-bottom: 5px;
}

aside.left .sidebar-article h3 {
  font-size: 1.1em;
  margin: 0;
}

aside.left .sidebar-article p {
  font-size: 0.9em;
  margin: 0;
}

/*Featured*/
article.featured {
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
  padding-bottom: 10px;
}

article.featured .title {
  padding: 0 0 10px 0;
  margin-bottom: 10px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}

article.featured .title h2 {
  display: inline;
  float: left;
  width: 50%;
  margin: 0;
}

article.featured .title h2 a {
  text-decoration: none;
}

article.featured .meta {
  display: inline;
  float: right;
  border: 0;
  width: 45%;
  text-align: right;
  font-size: 1em;
  padding-top: 5px;
  margin: 0 0 0 5%;
}

article.featured header {
  display: block;
  position: relative;
  float: none;
  width: 100%;
  background: none;
  padding: 0;
  margin-bottom: 0;
  margin-left: 0;
}

article.featured img {
  float: left;
  max-width: 290px;
  margin-right: 15px;
  margin-bottom: 15px;
}

article.featured .summary {
  font-size: 1em;
}

article.featured .media {
  float: none;
}

/* Filter */
.filters {
  margin-bottom: 25px;
  overflow: hidden;
  padding: 15px 20px 10px 20px;
  position: relative;
  z-index: 1000;
  background: darkslateblue;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
  border-radius: 3px;
}

.filters h6 {
  float: left;
  margin-right: 20px;
  margin-bottom: 0;
  margin-top: 0;
  padding-top: 4px;
  font-size: 1.2em;
  font-weight: normal;
  color: lavender;
}

.filters #article-search {
  float: right;
}

/* @group Select Menus */
.ui-selectmenu {
  display: block;
  float: left;
  position: relative;
  height: 34px;
  width: 150px;
  text-decoration: none;
  overflow: hidden;
  margin-right: 5px;
  background: dodgerblue;
  padding: 0;
}

#content a.ui-selectmenu:hover {
  text-decoration: none;
}

.ui-selectmenu-icon {
  position: absolute;
  right: 6px;
  margin-top: -8px;
  top: 50%;
}

.ui-selectmenu-menu {
  padding: 0;
  margin: 0;
  list-style: none;
  position: absolute;
  z-index: 1001;
  top: 0;
  visibility: hidden;
  overflow: auto;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  background: aliceblue;
  height: 200px;
  width: 200px !important;
}

.ui-selectmenu-open {
  visibility: visible;
}

.ui-selectmenu-menu-popup {
  margin-top: -1px;
}

.ui-selectmenu-menu li {
  padding: 0;
  margin: 0;
  display: block;
  border-top: 1px dotted transparent;
  border-bottom: 1px dotted transparent;
  border-right-width: 0 !important;
  border-left-width: 0 !important;
  font-weight: normal !important;
}

.ui-selectmenu-menu li a, .ui-selectmenu-status {
  line-height: 1.4em;
  display: block;
  padding: .3em 1.5em .3em 1em;
  outline: none;
  text-decoration: none;
  font-size: 11px;
  color: darkseagreen;
}

.ui-selectmenu-menu li.ui-selectmenu-hasIcon a, .ui-selectmenu-hasIcon .ui-selectmenu-status {
  padding-left: 20px;
  position: relative;
  margin-left: 5px;
}

.ui-selectmenu-menu li .ui-icon, .ui-selectmenu-status .ui-icon {
  position: absolute;
  top: 1em;
  margin-top: -8px;
  left: 0;
}

.ui-selectmenu-status {
  line-height: 24px;
  height: 24px;
  overflow: hidden;
  font-size: 0.9em;
  font-family: "Roboto", sans-serif;
  color: hotpink;
  position: relative;
}
.ui-selectmenu-status span.icon-sort-updown {
  font-size: 0.9em;
  position: absolute;
  right: 10px;
  top: 12px;
}

.ui-selectmenu-open li.ui-selectmenu-item-focus a {
  background: rgba(0, 0, 0, 0.1);
  opacity: 0.9;
}

.ui-selectmenu-menu li span, .ui-selectmenu-status span {
  display: block;
  margin-bottom: .2em;
}

.ui-selectmenu-menu li .ui-selectmenu-item-header {
  font-weight: bold;
}

.ui-selectmenu-menu li .ui-selectmenu-item-footer {
  opacity: .8;
}

/*for optgroups*/
.ui-selectmenu-menu .ui-selectmenu-group {
  font-size: 1em;
}

.ui-selectmenu-menu .ui-selectmenu-group .ui-selectmenu-group-label {
  line-height: 1.4em;
  display: block;
  padding: .6em .5em 0;
  font-weight: bold;
}

.ui-selectmenu-menu .ui-selectmenu-group ul {
  margin: 0;
  padding: 0;
}

/* =Custom Styles
---------------------------------------------------------------------
*/
/* custom styles for selectmenu */
ul.ui-selectmenu-menu-dropdown {
  padding: 0;
  margin: 0;
  width: 200px !important;
}

/* =Override
---------------------------------------------------------------------
*/
.content.detail {
  margin-left: 175px;
  padding: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.5);
  float: right;
}

.content.search {
  width: 735px;
  padding: 0 0 0 15px;
  border-left: 1px solid rgba(0, 0, 0, 0.5);
}

aside.left {
  width: 150px;
  margin-right: -150px;
  float: left;
}

#results {
  padding-left: 25px;
}

/* Medium Break */
@media (max-width: 58.75em) {
  .filters #article-search {
    clear: both;
    float: none;
    margin-bottom: 15px;
    position: relative;
    top: 15px;
    left: 103px;
  }
}
/* Small Break */
@media (max-width: 40em) {
  article.featured img {
    float: none;
    max-width: 100%;
    margin-right: 0;
  }

  article.featured .meta {
    float: none;
    display: block;
    text-align: left;
    width: auto;
    margin: 0;
  }

  article.featured .title h2 {
    display: block;
    float: none;
    width: auto;
  }

  .filters h6 {
    float: none;
  }

  .filters #article-search {
    position: static;
    margin: 10px 0;
  }

  .ui-selectmenu {
    float: none;
    margin: 10px 0;
  }

  article img {
    margin: 10px 0;
    float: none;
    max-width: 100%;
    width: auto;
    height: auto;
  }

  article header {
    float: none;
    margin: 0;
  }

  article .media {
    float: none;
    margin: 5px 0;
  }

  article {
    padding-bottom: 1em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
  }

  /* Detail */
  aside.left {
    float: none;
    margin: 0;
    width: auto;
  }

  .content.detail {
    float: none;
    margin: 0;
    border: 0;
  }

  aside.left .return {
    width: 150px;
  }

  article.detail img {
    float: none;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  article.detail .title h2 {
    width: auto;
    float: none;
    display: block;
  }

  article.detail .meta {
    display: block;
    float: none;
    text-align: left;
    width: 100%;
    margin: 0;
  }
}
