/*---------------------------------------------------
    LESS Elements 0.6
  ---------------------------------------------------
    A set of useful LESS mixins by Dmitry Fadeyev
    Special thanks for mixin suggestions to:
      Kris Van Herzeele,
      Benoit Adam,
      Portenart Emile-Victor,
      Ryan Faerman

    More info at: http://lesselements.com
-----------------------------------------------------*/
body.toolbar #page .stuck {
  top: 90px;
}
body.toolbar #page .subnav-jump {
  top: 55px;
}
/***** @group Sidebar Block Container ********************/
/******************** @end   Sidebar Block Container *****/
/***** @group Buttons ********************/
/******************** @end   Buttons *****/
/***** @group narrowNav ********************/
/******************** @end   narrowNav *****/
/**
 * @file
 * Positioning for responsive layout .
 *
 * Define CSS classes to create a table-free, 3-column, 2-column, or single
 * column layout depending on whether blocks are enabled in the left or right
 * columns.
 *
 * This layout uses the Zen Grids plugin for Compass: http://zengrids.com
 */
/*
 * Center the page.
 */
#page,
.region-bottom {
  /* For screen sizes larger than 1200px, prevent excessively long lines of text
     by setting a max-width. */

  margin-left: auto;
  margin-right: auto;
  max-width: 1145px;
}
/*
 * Apply the shared properties of grid items in a single, efficient ruleset.
 */
#header,
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  word-wrap: break-word;
  _display: inline;
  _overflow: hidden;
  _overflow-y: visible;
}
/*
 * Containers for grid items and flow items.
 */
#header,
#main,
#footer {
  *position: relative;
  *zoom: 1;
}
#header:before,
#header:after,
#main:before,
#main:after,
#footer:before,
#footer:after {
  content: "";
  display: table;
}
#header:after,
#main:after,
#footer:after {
  clear: both;
}
@media all {
  #main {
    /* padding-top: 3em; /* Move all the children of #main down to make room. */
  
    position: relative;
  }
  #navigation {
    /* position: absolute;
      top: 0; /* Move the navbar up inside #main's padding. */
  
    /* height: 3em;
      width: 100%; */
  
  }
  h1#mobile-site-name {
    position: absolute;
    margin: 0;
    padding: 0;
    top: 11px;
  }
  nav.breadcrumb {
    margin: 0;
    min-height: 39px;
  }
  footer .footer-middle .block {
    clear: left;
  }
  #footer {
    padding-bottom: 3em;
  }
  /* testing */
  .sidebar-first:before {
    position: absolute;
  }
}
/* @media all and (min-width: 480px) */
@media all and (max-width: 480px) {
  h1#mobile-site-name {
    left: 14px;
  }
  nav.breadcrumb {
    padding: 0 14px;
  }
  #page {
    min-width: 300px;
  }
  #content {
    padding: 14px;
  }
  .sidebar-first .region-sidebar-first {
    /* Span 1 column, starting in 1st column from left. */
  
    float: left;
    width: 100%;
    margin-left: 0%;
    margin-right: -26%;
    padding: 14px;
  }
  /*
     * The layout when there is only one sidebar, the right one.
     */
  .sidebar-second .region-sidebar-second {
    /* Span 1 column, starting in 5th column from left. */
  
    float: left;
    clear: left;
    width: 100%;
    margin-left: 0%;
    margin-right: -26%;
    padding: 14px;
  }
  /*
     * Footer
     */
  footer .footer-middle {
    clear: both;
  }
  footer .footer-middle .footer-left {
    float: left;
    width: 100%;
    clear: both;
  }
  footer .footer-middle .footer-left .block {
    clear: left;
  }
  footer .footer-middle .footer-right {
    float: left;
    width: 100%;
    clear: both;
  }
  footer .footer-middle .footer-right .region-footer-right {
    padding-top: 5px;
  }
  footer .footer-middle .footer-right .block {
    clear: left;
  }
}
@media all and (min-width: 481px) and (max-width: 768px) {
  h1#mobile-site-name {
    left: 14px;
  }
  nav.breadcrumb {
    padding: 0 14px;
  }
  #content {
    padding: 14px;
  }
  /*
     * The layout when there is only one sidebar, the left one.
     */
  .sidebar-first #content {
    /* Span 4 columns, starting in 2nd column from left. */
  
    width: 100%;
  }
  .sidebar-first .region-sidebar-first {
    /* Span 1 column, starting in 1st column from left. */
  
    float: left;
    width: 100%;
    margin-left: 0%;
    margin-right: -26%;
    padding: 14px;
  }
  /*
     * The layout when there is only one sidebar, the right one.
     */
  .sidebar-second #content {
    /* Span 4 columns, starting in 1st column from left. */
  
    float: left;
    padding: 14px;
  }
  .sidebar-second .region-sidebar-second {
    /* Span 1 column, starting in 5th column from left. */
  
    float: left;
    clear: left;
    width: 100%;
    margin-left: 0%;
    margin-right: -26%;
    padding: 14px;
  }
  /*
     * The layout when there are two sidebars.
     */
  .two-sidebars #content {
    /* Span 2 columns, starting in 2nd column from left. */
  
    float: left;
    /*    width: 66.667%;
      margin-left: 33.333%;
      margin-right: -100%;*/
  
  }
  .two-sidebars .region-sidebar-first {
    /* Span 1 column, starting in 1st column from left. */
  
    float: left;
    width: 100%;
    margin-left: 0%;
    margin-right: -26%;
    padding: 14px;
  }
  .two-sidebars .region-sidebar-second {
    /* Start a new row and span all 3 columns. */
  
    float: left;
    clear: left;
    width: 100%;
    margin-left: 0%;
    margin-right: -26%;
    padding: 14px;
    *position: relative;
    *zoom: 1;
  }
  .two-sidebars .region-sidebar-second:before,
  .two-sidebars .region-sidebar-second:after {
    content: "";
    display: table;
  }
  .two-sidebars .region-sidebar-second:after {
    clear: both;
  }
  .two-sidebars .region-sidebar-second .block {
    padding-left: 10px;
    padding-right: 10px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    word-wrap: break-word;
    _display: inline;
    _overflow: hidden;
    _overflow-y: visible;
  }
  /*
     * Footer
     */
  footer .footer-middle {
    clear: both;
  }
  footer .footer-middle .footer-left {
    float: left;
    width: 100%;
    clear: both;
  }
  footer .footer-middle .footer-left .block {
    clear: left;
  }
  footer .footer-middle .footer-right {
    float: left;
    width: 100%;
    clear: both;
  }
  footer .footer-middle .footer-right .block {
    clear: left;
  }
}
/* @media all and (min-width: 481px) and (max-width: 767px) */
@media all and (min-width: 769px) {
  nav.breadcrumb {
    padding: 0 28px;
  }
  #utility-nav {
    padding: 0 28px;
  }
  #header {
    height: 140px;
    padding: 30px 28px 35px 28px;
  }
  #header:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
  }
  #content {
    padding: 28px;
  }
  /*
     * The layout when there is only one sidebar, the left one.
     */
  .sidebar-first #content {
    /* Span 4 columns, starting in 2nd column from left. */
  
    float: left;
    width: 74%;
    margin-left: 26%;
    margin-right: -100%;
  }
  .sidebar-first .region-sidebar-first {
    /* Span 1 column, starting in 1st column from left. */
  
    float: left;
    width: 26%;
    margin-left: 0%;
    margin-right: -26%;
    padding: 28px 0 28px 28px;
  }
  /*
     * The layout when there is only one sidebar, the right one.
     */
  .sidebar-second #content {
    /* Span 4 columns, starting in 1st column from left. */
  
    float: left;
    width: 74%;
    margin-left: 0%;
    margin-right: -74%;
  }
  .sidebar-second .region-sidebar-second {
    /* Span 1 column, starting in 5th column from left. */
  
    float: left;
    width: 26%;
    margin-left: 74%;
    margin-right: -100%;
    padding: 28px 28px 28px 0;
  }
  /*
     * The layout when there are two sidebars.
     */
  .two-sidebars #content {
    /* Span 3 columns, starting in 2nd column from left. */
  
    float: left;
    width: 60%;
    margin-left: 20%;
    margin-right: -80%;
  }
  .two-sidebars .region-sidebar-first {
    /* Span 1 column, starting in 1st column from left. */
  
    float: left;
    width: 20%;
    margin-left: 0%;
    margin-right: -20%;
  }
  .two-sidebars .region-sidebar-second {
    /* Span 1 column, starting in 5th column from left. */
  
    float: left;
    width: 20%;
    margin-left: 80%;
    margin-right: -100%;
  }
  /*
     * Footer
     */
  footer .footer-middle {
    clear: both;
  }
  footer .footer-middle .footer-left {
    float: left;
    width: 750px;
    margin: 15px;
  }
  footer .footer-middle .footer-left .block {
    clear: left;
  }
  footer .footer-middle .footer-right {
    float: left;
    width: 300px;
    margin: 15px;
  }
  footer .footer-middle .footer-right .block {
    clear: left;
  }
}
/* @media all and (min-width: 940px) */
