/* The 12-column Deco Grid System. 
 * For the 16-column variant, see decogrids-16.css.
 *
 * Cells are 6.08% width, 1.125% left/right margin.
 * 
 * If page width is fixed to 960px width:
 * Cell will be equivalent to 60px, left/right margin will be 10px.
 */

div.row {
  float: left;
  width: 100%;
  display: block;
  position: relative;
}
div.cell {
  position: relative;
  float: left;
  left: 100%;
}

/* Width classes. 
   For a given cell width, the calculation is: width: (6.25*n - 2.25)% */
div.width-1  { width:  6.08% }
div.width-2  { width: 14.41% }
div.width-3  { width: 22.74% }
div.width-4  { width: 31.07% }
div.width-5  { width: 39.4%  }
div.width-6  { width: 47.73% }
div.width-7  { width: 56.06% }
div.width-8  { width: 64.39% }
div.width-9  { width: 72.72% }
div.width-10 { width: 81.05% }
div.width-11 { width: 89.38% }
div.width-12 { width: 97.71% }


/* Positioning classes, these are subtracting from a rightmost 
   position, which is why they seem the wrong way around */
/* For a given position, the calculation is margin-left: -100 + (8.33*n) + 1.125 */
div.position-0  { margin-left: -98.875% }
div.position-1  { margin-left: -90.545% }
div.position-2  { margin-left: -82.215% }
div.position-3  { margin-left: -73.885% }
div.position-4  { margin-left: -65.555% }
div.position-5  { margin-left: -57.225% }
div.position-6  { margin-left: -48.895% }
div.position-7  { margin-left: -40.565% }
div.position-8  { margin-left: -32.235% }
div.position-9  { margin-left: -23.905% }
div.position-10 { margin-left: -15.575% }
div.position-11 { margin-left:  -7.245% }


/* End of the core Deco Grid System */

/* Convenience classes — ¼, ½, ¾ widths and ¼, ½, ¾ positions. 
   Not strictly necessary. */
div.width-1\3a 2 { width:    47.75%; } /* .width-1:2 */
div.width-1\3a 4 { width:    22.75%; } /* .width-1:4 */
div.width-3\3a 4 { width:    72.75%; } /* .width-3:4 */
div.position-1\3a 4 {margin-left:    -73.875%;} /* .position-1:4 */
div.position-1\3a 2 {margin-left:    -48.875%;} /* .position-1:2 */
div.position-3\3a 4 {margin-left:    -23.875%;} /* .position-3:4 */


/* Special classes for ⅓, ⅔ widths and ⅓, ⅔ positions. 
These do not strictly conform to the grid, but are useful for certain layouts. */
div.width-1\3a 3 { width: 31.08%; } /* .width-1:3 */
div.width-2\3a 3 { width: 64.42%; } /* .width-2:3 */
div.position-1\3a 3 {margin-left: -65.545%;} /* .position-1:3 */
div.position-2\3a 3 {margin-left: -32.205%;} /* .position-2:3 */

