﻿/******************************************************************************
 *
 * FLEX:
 *
 * 1. Avoid the IE 10-11 `min-height` bug.
 * 2. Set `flex-shrink` to `0` to prevent some browsers from
 *    letting these items shrink to smaller than their content's default
 *    minimum size. See http://bit.ly/1Mn35US for details.
 *
 * Оригинал статьи: http://philipwalton.com/articles/normalizing-cross-browser-flexbox-bugs/
 *
 * Перевод: http://css-live.ru/articles/uporyadochivanie-bagov-krossbrauzernosti-flexbox.html 
 *
 ******************************************************************************/

body {
	display: flex;
	flex-direction: column;
	height: 100vh;	/* Flex-1 */
}
.header {
	flex: none;	/* Flex-2 */
}
main {
	flex: 1 0 auto;	/* Flex-2 */
}
.footer {
	flex: none;	/* Flex-2 */
}

/******************************************************************************
 *
 * /FLEX
 *
 ******************************************************************************/

body {
	background-color: #fff;
	font-family: "Open Sans", sans-serif;
	font-weight: normal;
	margin: 0;
	padding: 0;
}

a {
//	text-decoration: none;
}
a:link {
//	border-bottom: 1px solid rgba(0,51,204,.15);
	color: #03c;
}
a:visited {
//	border-bottom: 1px solid rgba(153,0,153,.15);
	color: #909;
}
a:hover {
//	border-bottom: 1px solid rgba(204,0,0,.25);
	color: #c00;
}
a:active {
//	border-bottom: 1px solid rgba(255,0,0,.5);
	color: #f00;
}

img {
	border: none;
}

.header {
	background-color: #c03;
	color: #fff;
	padding: 8px 16px;
}
.header::after {
	clear: both;
	content: "";
	display: block;
}
.header a {
	color: #fff;
	text-decoration-color: rgba(255, 255, 255, 0.33);
}
.header a:hover {
	text-decoration-color: #fff;
}
.header__logo {
	float: left;
	font-family: "Open Sans Condensed", sans-serif;
	font-weight: 700;
}
.header__search {
	float: right;
}

main {
	max-width: 928px;
	padding: 16px;
}
main::after {
	clear: both;
	content: "";
	display: block;
}

main > h1, main > article > header > h1 {
	font-family: "Open Sans", sans-serif;
	font-size: x-large;
	font-weight: normal;
}

/* ---------------------------------------- */

.entries {
	border-top: 1px dotted #ccc;
	margin: 0;
	padding: 0;
}
.entries > li {
	border-bottom: 1px dotted #ccc;
	display: block;
}
.entries__entry {
}
.entries__entry__header {
	padding: 24px 0 16px 0;
}
.entries__entry__header a {
	text-decoration: underline;
}
.entries__entry__header a:link {
	color: #03c;
	text-decoration-color: rgba(0, 51, 204, 0.2);
}
.entries__entry__header a:visited {
	color: #909;
	text-decoration-color: rgba(153, 0, 153, 0.2);
}
.entries__entry__header a:hover {
	color: #c00;
	text-decoration-color: #c00;
}
.entries__entry__header a:active {
	color: #f00;
	text-decoration-color: #f00;
}
.entries__entry__content {
}
.entries__entry__footer {
	padding: 16px 0 24px 0;
}

/* ---------------------------------------- */

.paginator {
	padding: 16px 0;
}
.paginator::after {
	clear: both;
	content: "";
	display: block;
}
.paginator__item {
	background-color: #eee;
	border: 1px solid #eee;
	border-radius: 0.33ex;
	display: block;
	float: left;
	margin-left: 0.5em;
	padding: 0.5ex 0;
	text-align: center;
	width: 2.5em;
}
.paginator__item {
	text-decoration: none;
}

.paginator__item--prev {
	margin-left: 0;
}
.paginator__item--prev, .paginator__item--next {
	x-width: 4em;
}
.paginator__item--curr {
	background-color: #c03;
	border: 1px solid #c03;
	color: #fff;
	font-weight: bold;
}
.paginator__item--active:hover {
	background-color: #fcc;
	border: 1px solid #fcc;
	color: #f00;
}
.paginator__item--unactive {
	background-color: #fff;
	border: 1px solid #ccc;
	color: #ccc;
}

/* ---------------------------------------- */

.footer {
	background-color: #c03;
	color: #fff;
	font-size: small;
	font-weight: 300;
}
.footer::after {
	clear: both;
	content: "";
	display: block;
}
.footer a {
	color: #fff;
	text-decoration-color: rgba(255, 255, 255, 0.33);
}
.footer a:hover {
	text-decoration-color: #fff;
}
.footer__ads {
	text-align: center;
	padding: 8px 0 0 0;
}
.footer__ads img {
	vertical-align: middle;
}
@media (max-width: 499px) {
	.footer__ads {
		display: none;
	}
}
.footer__copyright {
	float: left;
	padding: 8px 16px;
}
.footer__counters {
	float: right;
	padding: 0 16px 8px 0;
}
.footer__counters::after {
	clear: both;
	content: "";
	display: block;
}
.footer__counters__counter {
	float: left;
	padding: 0 0 0 8px;
}
.footer__counters__counter a {
	border: none;
	text-decoration: none;
}
.footer__counters__counter img {
	vertical-align: middle;
}