/* -------------------------------------------------------------- 
   
   grid.css
   * Sets up an easy-to-use grid of 12 columns.
   
   By default, the grid is 960px wide, with 12 columns 
   spanning 60px, and a 10px margin between columns.
   
   If you need fewer or more columns, namespaces or semantic
   element names, use the compressor script (lib/compress.rb)
   
   Note: Changes made in this file will not be applied when
   using the compressor: make changes in lib/blueprint/grid.css.rb
   
-------------------------------------------------------------- */

/* A container should group all your columns. */
.container_grid {
  width: 960px;
  margin: 0 auto;
}

/* Use this class on any .span / container to see the grid. */
.showgrid { background: url(grid.png);  }


/* Columns
-------------------------------------------------------------- */

/* Sets up basic grid floating and margin. */
.column, div.span-1, div.span-2, div.span-3, div.span-4, div.span-5, 
div.span-6, div.span-7, div.span-8, div.span-9, div.span-10, 
div.span-11, div.span-12 {
  float: left;
  margin-right: 10px;
  margin-left: 10px;
}

/* The last column in a row needs this class. */
.last, div.last { margin-right: 0; }

/* Use these classes to set the width of a column. */
.span-1 { width: 60px; }
.span-2 { width: 140px; }
.span-3 { width: 220px; }
.span-4 { width: 300px; }
.span-5 { width: 380px; }
.span-6 { width: 460px; }
.span-7 { width: 540px; }
.span-8 { width: 620px; }
.span-9 { width: 700px; }
.span-10 { width: 780px; }
.span-11 { width: 860px; }
.span-12 { width: 940px; margin: 0; }

/* Add these to a column to append empty cols. */
.append-1  { padding-right: 80px; }
.append-2  { padding-right: 160px; } 
.append-3  { padding-right: 240px; } 
.append-4  { padding-right: 320px; } 
.append-5 { padding-right: 400px; } 
.append-6 { padding-right: 480px; } 
.append-7 { padding-right: 560px; } 
.append-8 { padding-right: 640px; } 
.append-9 { padding-right: 720px; } 
.append-10 { padding-right: 800px; } 
.append-11 { padding-right: 880px; } 

/* Add these to a column to prepend empty cols. */
.prepend-1  { padding-left: 80px; }
.prepend-2  { padding-left: 160px; } 
.prepend-3  { padding-left: 240px; } 
.prepend-4  { padding-left: 320px; } 
.prepend-5 { padding-left: 400px; } 
.prepend-6 { padding-left: 480px; } 
.prepend-7 { padding-left: 560px; } 
.prepend-8 { padding-left: 640px; } 
.prepend-9 { padding-left: 720px; } 
.prepend-10 { padding-left: 800px; } 
.prepend-11 { padding-left: 880px; } 


/* Border on right hand side of a column. */
.border {
  padding-right: 4px;
  margin-right: 5px;
  border-right: 1px solid #eee;
}

/* Border with more whitespace, spans one column. */
.colborder {
  padding-right: 24px;
  margin-right: 25px;
  border-right: 1px solid #eee;
}


/* Use these classes on an element to push it into the 
   next column, or to pull it into the previous column.  */

.pull-1 { margin-left: -80px; }
.pull-2 { margin-left: -160px; }
.pull-3 { margin-left: -280px; }
.pull-4 { margin-left: -340px; }
.pull-5 { margin-left: -420px; }

.pull-1, .pull-2, .pull-3, .pull-4, .pull-5 {
  float:left;
	position:relative;
}

.push-1 { margin: 0 -80px 1.5em 40px; }
.push-2 { margin: 0 -160px 1.5em 80px; }
.push-3 { margin: 0 -280px 1.5em 120px; }
.push-4 { margin: 0 -340px 1.5em 160px; }
.push-5 { margin: 0 -420px 1.5em 200px; }

.push-1, .push-2, .push-3, .push-4, .push-5 { 
  float: right;
	position:relative;
}


/* Misc classes and elements
-------------------------------------------------------------- */

/* In case you need to add a gutter above/below an element */
.prepend-top { 
	margin-top:1.5em; 
}
.append-bottom { 
	margin-bottom:1.5em; 
}
.prepend-top-2 {
	margin-top:3em;
}
.prepend-top-4 {
	margin-top:6em;
}
.append-bottom-2 {
	margin-bottom:3em;
}

/* Use a .box to create a padded box inside a column.  */ 
.box { 
  padding: 1.5em; 
  margin-bottom: 1.5em; 
  background: #E5ECF9; 
}

/* Use this to create a horizontal ruler across a column. */
hr {
  background: #ddd; 
  color: #ddd;
  clear: both; 
  float: none; 
  width: 100%; 
  height: .1em;
  margin: 0 0 1.45em;
  border: none; 
}
hr.space {
  background: #fff;
  color: #fff;
}


/* Clearing floats without extra markup
   Based on How To Clear Floats Without Structural Markup by PiE
   [http://www.positioniseverything.net/easyclearing.html] */

.clearfix:after, .container_grid:after {
    content: "\0020";
    display: block; 
    height: 0; 
    clear: both; 
    visibility: hidden; 
    overflow:hidden; 
}
.clearfix, .container_grid {display: block;}

/* Regular clearing
   apply to column that should drop below previous ones. */

.clear { clear:both; }
