/**
 * Minimal grid — replaces bootstrap/css/bootstrap.min.css (Bootstrap v3.2.0).
 *
 * Bootstrap was 18.3 KiB with 17.5 KiB unused and ~1,040 ms of render-blocking
 * time, to supply a container, some column widths and two utilities. Everything
 * below is copied from the values in that file so the layout is unchanged:
 * 15px gutters, 750/970/1170px containers, breakpoints at 768/992/1200px,
 * float-based columns.
 *
 * Only the classes the theme actually uses are here. A scan of every class
 * attribute in the templates found:
 *   container, container-fluid
 *   col-xs-12 · col-sm-6/9/12 · col-md-2/3/4/6/8/9/10/12 · col-lg-4/6
 *   col-md-push-1, col-md-push-2
 *   text-left, text-center, visible-md, visible-lg
 *
 * Notably the theme uses NO `.row` wrapper, so the negative margins Bootstrap
 * pairs with it are deliberately omitted — adding them would break these
 * layouts rather than fix them.
 *
 * The `*` box-sizing reset below was Bootstrap's, and nothing else in the theme
 * declares it. Every width and padding calculation on the site depends on it,
 * so it has to stay.
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* -------------------------------------------------------------------------
 * Containers
 * ---------------------------------------------------------------------- */

.container,
.container-fluid {
	padding-right: 15px;
	padding-left: 15px;
	margin-right: auto;
	margin-left: auto;
}

@media (min-width: 768px) {
	.container { width: 750px; }
}

@media (min-width: 992px) {
	.container { width: 970px; }
}

@media (min-width: 1200px) {
	.container { width: 1170px; }
}

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

.col-xs-12,
.col-sm-6, .col-sm-9, .col-sm-12,
.col-md-2, .col-md-3, .col-md-4, .col-md-6,
.col-md-8, .col-md-9, .col-md-10, .col-md-12,
.col-lg-4, .col-lg-6 {
	position: relative;
	min-height: 1px;
	padding-right: 15px;
	padding-left: 15px;
}

/* xs floats at every width. */
.col-xs-12 {
	float: left;
	width: 100%;
}

@media (min-width: 768px) {
	.col-sm-6, .col-sm-9, .col-sm-12 { float: left; }
	.col-sm-6  { width: 50%; }
	.col-sm-9  { width: 75%; }
	.col-sm-12 { width: 100%; }
}

@media (min-width: 992px) {
	.col-md-2, .col-md-3, .col-md-4, .col-md-6,
	.col-md-8, .col-md-9, .col-md-10, .col-md-12 { float: left; }
	.col-md-2  { width: 16.66666667%; }
	.col-md-3  { width: 25%; }
	.col-md-4  { width: 33.33333333%; }
	.col-md-6  { width: 50%; }
	.col-md-8  { width: 66.66666667%; }
	.col-md-9  { width: 75%; }
	.col-md-10 { width: 83.33333333%; }
	.col-md-12 { width: 100%; }

	.col-md-push-1 { left: 8.33333333%; }
	.col-md-push-2 { left: 16.66666667%; }
}

@media (min-width: 1200px) {
	.col-lg-4, .col-lg-6 { float: left; }
	.col-lg-4 { width: 33.33333333%; }
	.col-lg-6 { width: 50%; }
}

/* -------------------------------------------------------------------------
 * Utilities
 * ---------------------------------------------------------------------- */

.text-left   { text-align: left; }
.text-center { text-align: center; }

/* Responsive visibility, matching Bootstrap's breakpoint windows. */
.visible-md,
.visible-lg {
	display: none !important;
}

@media (min-width: 992px) and (max-width: 1199px) {
	.visible-md { display: block !important; }
	table.visible-md { display: table !important; }
	tr.visible-md { display: table-row !important; }
	th.visible-md,
	td.visible-md { display: table-cell !important; }
}

@media (min-width: 1200px) {
	.visible-lg { display: block !important; }
	table.visible-lg { display: table !important; }
	tr.visible-lg { display: table-row !important; }
	th.visible-lg,
	td.visible-lg { display: table-cell !important; }
}
