// Header on explore page

.explore {

  .hero {
    
    &> .inner {
      .wrapper();
    }

    h1 {
      font-size: 34px;
      padding: 5px 0 5px 50px;
      display: inline-block;
      margin-bottom: 5px;
      background: transparent url() scroll no-repeat left center;
      .at2x( '../img/icon_explore-data.png', 42px, 42px );
    }

    nav {
      .avenir-next-bold;
      text-transform: uppercase;
      a {
        color: @black;
        .avenir-next;
        &.active {
          .avenir-next-bold;
        }
      }
      ul {
        .mobile-nav();
      }
      li {
        display: block;
      }
    }

    .clearfix();

  }

  .helper-text {
    label {
    font-size: .75em;
    padding-bottom: 0;
    }
  }

  .ffiec-lookup {
    font-size: .875em;
    margin-top: .5em; 
  }

  .lender-name-temp {
    list-style-type: none;
    margin-bottom: 1.75em;
    font-size: .875em;

    .lender-name-label {
      width: 25%;
      margin: 0 15px;
      display: inline-block;
      vertical-align: top;
      .avenir-next-demi;
      text-align: right;      
    }

    .lender-name-text {
      .avenir-next;
      width: 50%;
      margin: 0 15px;
      display: inline-block; 
      vertical-align: top;
      text-align: left;
 
    }
    
  }

  .coming-soon {
    font-size: .875em;
  }

  .sub-header {
    .avenir-next-demi;
    display: block;
    text-transform: uppercase;
    margin: 0;
  }

  .pipe {
    padding: 0 15px;
    position: relative;
    bottom: 2px;
    color: @dark_field;
  }

  .preview i {
    margin-left: 10px;
  }

  // File size estimation
  .download-size {
    font-style: italic;
    font-size: .75em;
    float: left;
  }

  .spinnergif {
    position: relative;
    bottom: 3px;
  }

}

// Wrapper on explore page

#filters,
#summary {

  .wrapper();
  margin-top: 40px;
  .invisible();
  
  h2 {
    margin-top: 40px;
    padding-bottom: 5px;
    .avenir-next-demi;
    font-size: 1.5em;
  }

  .pipe {
    padding: 0 15px;
    position: relative;
    bottom: 2px;
    color: @dark_field;
  }

  &.ready {
    .opaque();
    // display: block;
    // animation: fadein .2s;
    // -moz-animation: fadein .2s;
    // -webkit-animation: fadein .2s;
    // -o-animation: fadein .2s;
  }

  &.loading {
    // .translucent();
  }

}

// Top banner

.hero {

  h1 {
    .avenir-next-bold;
  }

}

// Download and share sections

.download-share {

  input[type=select] {
    width: 100%;
  }
  
  section {
    .column( 12 );
    border: 0;
  }

  .inner {
    background-color: @light_field10;
    padding: 25px 30px;
  }

  label {
    .avenir-next-demi;
    margin-right: 15px;
    padding: 0 0 .5em 0;
  }

  .widget {
    border-right: 0;
    input[type=radio] {
      margin: 0 8px 0 0;
    }
    label {
      .avenir-next;
    }
  }

  .share_url {
    width: 100%;
  }

  .help {
    margin-left: 5px;
    height: auto;
  }

  .select {
    margin-bottom: 20px;
  }

  .action {
    margin-top: 20px;
    text-align: left;
  }

}

#all{
  h3 {
    .avenir-next-demi;
  }
}

#download-button,
#download-raw-button {
  display: block;
}

// Calculations

.calculating {
  //.spin_16;
  display: inline-block;
}

// Messages on the explore page

.msg {
  &.error {
    margin: 0 0 10px;
    background-color: @red_orange;
    color: @white;
    font-weight: 600;
    padding: 10px;
    font-size: .875em;
    a {
      color: @white;
      text-decoration: underline;
    }
  }
  &.mobile-warning,
  &.javascript-warning {
    .avenir-next-demi;
    margin: 10px 0 10px;
    background-color: @red_orange;
    color: @white;
    font-weight: 600;
    padding: 10px;
    font-size: .875em;
    a {
      color: @white;
      text-decoration: underline;
    }
    p {
      margin: 0;
    }
  }
}

.no-js {
  .js-disabled {
    max-width: 960px;
    margin: 0 auto;
  }
}

@media only screen and ( min-width: 768px ) {

  .explore {

    h1 {
      float: left;
      display: block;
    }

    .hero {
      
      background-color: #FAB051;
      padding: 5px 0 0;
      border-bottom: 5px solid @light_field20;
      position: relative;

      &> .inner {
        text-align: left;
      }

      nav {
        margin: 0 0 0 13px;
        float: left;
        position: relative;
        width: 54.5%;
        ul {
          .horiz();
          margin: 19px 0 0;
          height: 44px;
          position: absolute;
          bottom: -60px;
          a {
            .avenir-next-bold;
            background-color: transparent;
          }
        }
        li {
          margin: 0 0 0 25px;
          display: inline-block;
        }
      }

      a:hover,
      a:active,
      a.active {
        text-decoration: none;
        padding-bottom: 16px;
        border-bottom: 5px solid @dark_field;
        background-color: transparent !important;
      }

    }

  }

  .download-share {

    .widget {
      border-right: 0;
      label {
        text-align: left;
        border: 0;
      }
      input {
        width: 100%;
        margin: 0;
      }
      input[type=radio] {
        width: 20px;
      }
    }

    #download {
      border-left: 0;
    }

    #share {
      border-right: 0;
      label {
        border: 0;
      }
      .share-url-width {
        width: 180%;
      }
    }

    .codes {
      width: 100%;
      .avenir-next;
      font-weight: 400;
    }

    .help {
      margin-left: 0;
    }

    .bump-up {
      top: 0;
    }

    .btn-bump-down {
      margin-top: 5px;
    }

  }

  .download-share.no-summary {

    section {
      .column( 6 );
      .inner {
        min-height: 275px;
      }
    }

  }

  .download-share.summary {

    section {
      .column( 4 );
      .inner {
        min-height: 290px;
      }
    }

    .widget {
      width: 100%;

    }

  }

  .msg {
    &.mobile-warning {
      display: none;
    }
  }

}

// This is the compiled CSS for cf-notifications. This project is pre-CF and it's
// not worth porting the entire thing to CF, especially considering it doesn't
// follow modern CFPB design guidelines.

.cf-error {
  position: relative;
  padding: 11px;
  padding-left: 40px;
  margin: 15px;
  background: @gold20;
  border: 1px solid @gold80;

  .cf-icon {
    position: absolute;
    top: 13px;
    left: 15px;
    color: @gold80;
    font-size: 1.125em;
  }
  
  .message {
    margin: 0;
    margin-bottom: 15px;      
    font-family: "Avenir Next Medium";
    font-size: 18px;
  }

  .action {
    margin: 0;
    font-family: "Avenir Next";
    font-size: 16px;
  }
}

.cf-alert {
  position: relative;
  padding: 11px;
  padding-left: 40px;
  margin: 15px;
  background: @red_orange20;
  border: 1px solid @red_orange80;

  .cf-icon {
    position: absolute;
    top: 13px;
    left: 15px;
    color: @red_orange80;
    font-size: 1.125em;
  }

  .message {
    margin: 0;
    margin-bottom: 15px;      
    font-family: "Avenir Next Medium";
    font-size: 18px;
  }

  .action {
    margin: 0;
    font-family: "Avenir Next";
    font-size: 16px;
  }
}

.missing-2014-warning {
  margin-left: 30px;
  margin-right: 30px;
}


.msa-warning {
  margin-left: 0px;
}
