/**
 * Main CSS for Legislature Tracker
 */


.ls {
  margin: 1em auto;
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}

/**
 * Element styles
 */
.ls h2 {
  font-size: 2em;
  line-height: 1.25em;
}
.ls h3 {
  font-size: 1.5em;
  margin-bottom: .5em;
}
.ls h4 {
  font-size: 1.25em;
  margin-top: .5em;
}
.ls h5 {
  font-size: 1em;
  margin-top: .5em;
}

.ls p {
  font-family: Georgia, "Times New Roman", Times,serif;
}

.ls ins {
  text-decoration: none;
}

/**
 * General styles
 */
.ls .clear {
  clear: both;
}
.ls .hidden {
  display: none;
}

.ls .clear-block:after {
  content:".";
  display:block;
  height:0;
  clear:both;
  visibility:hidden;
}
.ls .clear-block {
  display:inline-block;
}
/*_\*/
* html .ls .clear-block {
  height:1%;
}
.ls .clear-block{
  display:block;
}
/* End hide from IE-mac */

.ls a.permalink {
  font-size: .5em;
  background: transparent url('images/link-16x8-red.png') center right no-repeat;
  height: 8px;
  width: 16px;
  display: -moz-inline-stack;
  display: inline-block;
  zoom: 1;
  *display: inline;
  margin-left: .5em;
}

.ls .number {
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}

/**
 * Loading styles
 */
.ls .loading-general {
  width: 100%;
  text-align: center;
  padding: 2em 2em;
  color: #ABABAB;
  vertical-align: middle;
  height: 100%;
  line-height: 100%;
}
.ls .loading-general span {
  padding: 10px 5px 10px 40px;
  background: transparent url('images/loading.gif') center left no-repeat;
  vertical-align: middle;
  height: 100%;
  line-height: 100%;
}

/**
 * Headers
 */
.ls .ls-header-container {
  color: #414141;
  margin-bottom: 1em;
  width: 100%;
}

.ls .ls-header {
  border-bottom: 1px solid #BCBCBC;
  padding: 1em 0 .5em 0;
  min-height: 1.5em;
}

.ls .ls-header.glued {
  position: fixed;
  top: 0;
  background-color: #FFFFFF;
  padding-left: .5em;
  padding-right: .5em;
  z-index: 999;
  width: 942px;
  border-left: 1px solid #BCBCBC;
  border-right: 1px solid #BCBCBC;
  -webkit-box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
}

.ls .ls-header img {
  max-height: 1em;
  margin-right: .25em;
}

/**
 * Category styles
 */
.ls .category-image {
  max-height: 1em;
  margin-left: .5em;
  display: -moz-inline-stack;
  display: inline-block;
  zoom: 1;
  *display: inline;
}

.ls h2 .category-image {
  margin-left: 0;
  margin-right: .25em;
}

/**
 * Category list styles
 */
.ls .categories-container {
  background: transparent url('images/capitol-bg.png') top center no-repeat;
  background-size: 100% 100%;
  min-height: 350px;
  padding-top: 4.5em;
}

.ls .categories-container .aggregate-counts {
  text-align: center;
  font-size: 1.25em;
  margin-bottom: 6em;
}
.ls .categories-container .aggregate-stat {
  margin-right: 3em;
}
.ls .categories-container .aggregate-counts .aggregate-count-value {
  font-weight: bold;
}

.ls .categories-container ul {
  margin: 1em 0 2em 0;
  padding: 0;
}
.ls .categories-container ul li {
  margin: 0;
  padding: 0;
  list-style: none;
  display: block;
  width: 25%;
  min-height: 200px;
  float: left;
  text-align: center;
}
.ls .categories-container ul li .category-inner {
  padding: .5em .25em;
  margin: .5em .25em;
}

/*
.ls .categories-container ul li.category-item-0,
.ls .categories-container ul li.category-item-1,
.ls .categories-container ul li.category-item-2 {
  width: 33.332222222%;
}
*/

.ls .category-list .category-image {
  max-height: 85px;
  opacity: .85;
  filter: alpha(opacity = 85);
  margin: 0 auto;
  display: block;
  zoom: 1;
  *display: block;
}
.ls .category-list .category-image:hover {
  opacity: 1;
  filter: alpha(opacity = 100);
}

.ls .categories-container ul h3 {
  margin-bottom: 0;
}

/**
 * Indiviual category styles
 */
.ls .total-bill {
  text-align: right;
}

.ls .category-container .e-links-list {
  margin-bottom: 2em;
}

/**
 * Bill styles
 */
.ls .bill h3 {
  margin-bottom: 0;
  margin-top: 0;
}

.ls .bill-updated,
.ls .actions,
.ls .sponsors,
.ls .sources,
.ls .e-links {
  margin-bottom: 1.5em;
}

.ls .bill .e-bill-categories {
  margin-bottom: 1em;
  color: #575757;
}

.ls .bill .description,
.ls .bill .latest-action {
  margin-bottom: .5em;
}

.ls .bill .bill-update {
  font-size: .85em;
}

.ls .bill-expand {
  display: inline-block;
  font-weight: bold;
}

.ls .expanded .bill-expand {
  margin-bottom: 1em;
}

.ls .is-expandable .bill-bottom {
  display: none;
}

.ls .bill-top {
  margin-bottom: 2em;
}

.ls .is-expandable .bill-top {
  margin-bottom: 0;
}

.ls .bills-list .bill {
  margin-bottom: 1em;
  padding-bottom: 1em;
  border-bottom: 1px solid #BBBBBB;
}

.ls .bills-list .bill.is-expandable {
  border: 1px solid #DDDDDD;
  padding: 2.5%;
  -moz-border-bottom-right-radius: 10px;
  -webkit-border-bottom-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.ls .primary-bill {
  width: 100%;
  float: none;
}
.ls .primary-bill.with-companion,
.ls .companion-bill {
  width: 50%;
  float: left;
}

.ls .actions-inner {
  font-size: .85em;
  height: 100px;
}

.ls .co-sponsors-inner {
  height: 150px;
}

.ls .actions-inner,
.ls .co-sponsors-inner {
  border: 1px solid #EBEBEB;
  -moz-box-shadow: 0px 6px 4px -4px rgba(50, 50, 50, .3);
  -webkit-box-shadow: 0px 6px 4px -4px rgba(50, 50, 50, .3);
  box-shadow: 0px 6px 4px -4px rgba(50, 50, 50, .3);
  padding: .25em .75em;
}

.ls .overflowed {
  overflow-y: scroll;
}

.ls .primary-bill-inner,
.ls .companion-bill-inner {
  margin-right: 1.5em;
}

.ls ul.e-links-list {
  padding-left: 0;
}
.ls ul.e-links-list li {
  list-style: none;
}

.ls .bill .bill-details-link,
.ls .bill .latest-action-label {
  display: none;
}

/**
 * Bill description
 */
.ls .bill .description .ellipsis-ellipsis {
  display: none;
}
.ls .bill.is-expandable .description .ellipsis-ellipsis {
  display: inline;
}
.ls .bill.is-expandable.expanded .description .ellipsis-ellipsis {
  display: none;
}

.ls .bill.is-expandable .description .ellipsis-end {
  display: none;
}
.ls .bill.is-expandable.expanded .description .ellipsis-end {
  display: inline;
}

.ls .bill.is-expandable .description .ellipsis-start p {
  display: inline;
}
.ls .bill.is-expandable.expanded .description .ellipsis-start p {
  display: block;
}

.ls .bill .description .ellipsis-start p:last-child {
  margin-bottom: 1em;
}
.ls .bill.is-expandable .description .ellipsis-start p:last-child {
  margin-bottom: 0;
}
.ls .bill.is-expandable.expanded .description .ellipsis-start p:last-child {
  margin-bottom: 1em;
}


/**
 * Bill sponsors/legislators styles
 */
.ls .sponsors .sponsor {
  width: 25%;
  float: left;
  font-size: .85em;
}
.ls .with-companion .sponsors .sponsor,
.ls .companion-bill .sponsors .sponsor {
  width: 50%;
  float: left;
  font-size: .85em;
}
.ls .legislator img {
  max-height: 75px;
  float: left;
  margin: 0 .5em 1em 0;
  -moz-border-bottom-right-radius: 5px;
  -webkit-border-bottom-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

/**
 * Bill progress styles
 */
.ls .bill-status {
  margin-bottom: 1em;
  text-align: right;
  float: right;
}
.ls .bill-status img {
  max-height: 2em;
  margin-right: .5em;
  opacity: .25;
  filter: alpha(opacity = 25);
}
.ls .bill-status img.passed {
  opacity: 1;
  filter: alpha(opacity = 100);
}

/**
 * Conference bill styles
 */
.ls .has-conference-bill {
  display: none;
}


/**
 * Responsive, media query styles styles
 */
 
@media screen and (max-width: 942) {
  .ls .ls-header.glued {
    left: 0;
    right: 0;
    width: auto;
    border-left: none;
    border-right: none;
  }
}
 
@media screen and (max-width: 768px) {
  .ls .ls-header .categories-nav {
    display: none;
  }

  .ls .categories-container .aggregate-stat {
    margin-right: 1em;
  }

  .ls .categories-container .aggregate-counts {
    margin-bottom: 3em;
  }
  
  .ls .categories-container {
    background-position: bottom center;
    background-size: 100% auto;
    padding-top: 3em;
  }

  .ls .categories-container ul li {
    width: 33.32222222%;
    text-align: center;
  }
  
  .ls .bill .bill-details-link {
    display: inline;
    font-weight: bold;
  }
  .ls .bill .bill-expand {
    display: none;
  }
  
  .ls .sponsors .sponsor {
    width: 50%;
  }
  .ls .with-companion .sponsors .sponsor,
  .ls .companion-bill .sponsors .sponsor {
    width: 100%;
  }
}


@media screen and (max-width: 520px) {
  .ls .bill .bill-status {
    float: none;
    display: block;
    text-align: left;
    margin-bottom: .5em;
  }
  
  .ls .primary-bill.with-companion, 
  .ls .companion-bill {
    width: 100%;
    float: none;
  }
  
  .ls .bill .bill-bottom .sponsors.co-sponsors {
    display: none;
  }
  
  /* Just show latest actions */
  .ls .bill .bill-bottom .latest-action-label {
    display: inline;
  }
  .ls .bill-bottom .actions-inner.overflowed {
    overflow-y: hidden;
  }
  .ls .bill-bottom .actions-inner {
    border: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    padding: 0;
    height: auto;
    max-height: 5em;
  }
}

@media screen and (max-width: 420px) {

  .ls .categories-container .aggregate-counts {
    margin-bottom: 2em;
  }

  .ls .categories-container {
    padding-top: 2em;
  }
  
  .ls .categories-container ul li {
    width: 50%;
    text-align: center;
  }
  
  .ls .sponsors .sponsor {
    width: 100%;
  }
}

@media screen and (max-width: 375px) {
  .ls .categories-container .aggregate-counts .aggregate-stat {
    display: block;
  }
}

@media screen and (max-width: 280px) {
  
  .ls .categories-container ul li {
    width: 100%;
    text-align: center;
  }
}


