/**
 * @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 {
  /* 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: 1000px;
  width: 1000px;
}

/*
 * Apply the shared properties of grid items in a single, efficient ruleset.
 */

#header {
  padding-left: 14px;
  padding-right: 14px;
  word-wrap: break-word;
  _display: inline;
  _overflow: hidden;
  _overflow-y: visible;
}
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer {
  padding-left: 14px;
  padding-right: 14px;
  -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;
}

#navigation {
  padding: 0;
}

/*
 * 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;
}
/*
 * Navigation bar
 */

  #main {
    padding-top: 50px; /* Move all the children of #main down to make room. */
    position: relative;
  }

  #navigation {
    z-index: 998;
    box-shadow: 0 2px 2px #bbb;
    background: #fff;
  }

  /*
   * 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: 80%;
    margin-left: 20%;
    margin-right: -100%;
  }
  .sidebar-first .region-sidebar-first { /* Span 1 column, starting in 1st column from left. */
    float: left;
    width: 20%;
    margin-left: 0%;
    margin-right: -20%;
  }

  /*
   * 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: 670px;
    margin-left: 0%;
    margin-right: -670px;
    padding: 0 0 0 14px;
    border-right: 1px solid #ccc;
    padding-right: 10px;
  }
  .sidebar-second .region-sidebar-second { /* Span 1 column, starting in 5th column from left. */
    float: left;
    width: 331px;
    margin-left: 669px;
    margin-right: -100%;
    padding: 0 14px 0 10px;
    border-left: 1px solid #ccc;
  }

  /*
   * The layout when there are two sidebars.
   */

  .two-sidebars #content { /* Span 3 columns, starting in 2nd column from left. */
    float: left;
    width: 420px;
    margin-left: 250px;
    margin-right: -670px;
    border-right: 1px solid #ccc;
    padding-right: 10px;
    border-left: 1px solid #ccc;
    padding-left: 10px;
  }
  .two-sidebars .region-sidebar-first { /* Span 1 column, starting in 1st column from left. */
    float: left;
    width: 251px;
    margin-left: 0%;
    margin-right: -250px;
    padding: 0 10px 0 14px;
    border-right: 1px solid #ccc;
  }
  .two-sidebars .region-sidebar-second { /* Span 1 column, starting in 5th column from left. */
    float: left;
    width: 331px;
    margin-left: 668px;
    margin-right: -100%;
    padding: 0 14px 0 10px;
    border-left: 1px solid #ccc;
  }
