/*
 * Content pages: posts page (home.php), single post (single.php), and pages
 * on the default or "General Page" template.
 *
 * Loaded only on those views, so nothing here can reach the landing pages.
 * Palette matches the theme: #1d2945 (navy), #fdcb15 (yellow).
 */

/*--------------------------------------------------------------
# Header in flow
#
# .site-header is position:absolute and .main-navigation inside it is
# absolute too, so the header has no height of its own and content starts
# underneath it. Landing pages want that; article pages do not.
--------------------------------------------------------------*/
.blog .site-header,
.page-template-default .site-header,
.page-template-template-general .site-header,
.single .site-header {
	position: static;
	border-bottom: 1px solid rgba(29, 41, 69, 0.1);
}

.blog .main-navigation,
.page-template-default .main-navigation,
.page-template-template-general .main-navigation,
.single .main-navigation {
	position: static;
	max-width: 100%;
}

.blog .site-header .site-branding,
.page-template-default .site-header .site-branding,
.page-template-template-general .site-header .site-branding,
.single .site-header .site-branding {
	min-height: 80px; /* at least as tall as the floating nav toggle */
	padding-top: 16px;
	padding-bottom: 16px;
	padding-left: 76px; /* keeps clear of the fixed nav toggle */
	text-align: right;
}

.blog .site-header .site-branding img,
.page-template-default .site-header .site-branding img,
.page-template-template-general .site-header .site-branding img,
.single .site-header .site-branding img {
	max-height: 60px;
	width: auto;
}

/*--------------------------------------------------------------
# Shared
--------------------------------------------------------------*/
.post-list,
.content-page,
.single-post-main {
	padding-top: 40px;
	padding-bottom: 60px;
	color: #1d2945;
}

.content-head {
	margin-bottom: 32px;
	text-align: center;
}

.content-head__title {
	margin: 0;
	font-size: 38px;
	font-weight: 800;
	color: #1d2945;
}

.content-head__title::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	margin: 14px auto 0;
	border-radius: 2px;
	background: #fdcb15;
}

/*--------------------------------------------------------------
# Card grid
--------------------------------------------------------------*/
.post-list__grid {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
}

.post-list__cell {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	margin-bottom: 30px;
	float: none; /* the cells are flex items, not bootstrap floats */
}

.post-card {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	width: 100%;
	background: #fff;
	border: 1px solid rgba(29, 41, 69, 0.08);
	border-radius: 10px;
	overflow: hidden;
	-webkit-transition: -webkit-transform 0.25s ease, -webkit-box-shadow 0.25s ease;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
	-webkit-transform: translateY(-4px);
	    -ms-transform: translateY(-4px);
	        transform: translateY(-4px);
	-webkit-box-shadow: 0 10px 26px rgba(29, 41, 69, 0.14);
	        box-shadow: 0 10px 26px rgba(29, 41, 69, 0.14);
}

.post-card__media {
	display: block;
	height: 200px;
	overflow: hidden;
	background: #f2f3f5;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	   object-fit: cover;
	-webkit-transition: -webkit-transform 0.4s ease;
	transition: transform 0.4s ease;
}

.post-card:hover .post-card__media img {
	-webkit-transform: scale(1.05);
	    -ms-transform: scale(1.05);
	        transform: scale(1.05);
}

.post-card__body {
	-webkit-box-flex: 1;
	    -ms-flex: 1 1 auto;
	        flex: 1 1 auto;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	padding: 20px 22px 22px;
}

.post-card__title {
	margin: 0 0 6px;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.35;
}

.post-card__title a {
	color: #1d2945;
	text-decoration: none;
}

.post-card__title a:hover,
.post-card__title a:focus {
	color: #3c4653;
	text-decoration: none;
}

.post-card__date {
	display: block;
	margin-bottom: 12px;
	font-size: 14px;
	color: #8a8f9a;
}

.post-card__excerpt {
	-webkit-box-flex: 1;
	    -ms-flex: 1 1 auto;
	        flex: 1 1 auto;
	font-size: 16px;
	line-height: 1.7;
	color: #4a5262;
}

.post-card__excerpt p {
	margin: 0;
}

.post-card__more {
	-ms-flex-item-align: start;
	    align-self: flex-start;
	margin-top: 16px;
	padding: 9px 20px;
	border-radius: 6px;
	background: #1d2945;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	-webkit-transition: background-color 0.25s ease, color 0.25s ease;
	-o-transition: background-color 0.25s ease, color 0.25s ease;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.post-card__more:hover,
.post-card__more:focus {
	background: #fdcb15;
	color: #1d2945;
	text-decoration: none;
}

/*--------------------------------------------------------------
# General page
--------------------------------------------------------------*/

/* Same centred reading column as a single post. */
.content-page .content-col {
	float: none;
	margin-right: auto;
	margin-left: auto;
}

.content-page__media {
	margin-bottom: 28px;
	border-radius: 10px;
	overflow: hidden;
}

.content-page__media img {
	display: block;
	width: 100%;
	height: auto;
}

/*--------------------------------------------------------------
# Single article
--------------------------------------------------------------*/

/* Centred reading column. Bootstrap's offset classes assume LTR and push
   the column to one side on an RTL page, so centre it directly. */
.single-post-main .single-article-col {
	float: none;
	margin-right: auto;
	margin-left: auto;
}

.single-article__header {
	margin-bottom: 24px;
	text-align: center;
}

.single-article__title {
	margin: 0 0 10px;
	font-size: 36px;
	font-weight: 800;
	line-height: 1.25;
	color: #1d2945;
}

.single-article__date {
	font-size: 15px;
	color: #8a8f9a;
}

.single-article__media {
	margin-bottom: 28px;
	border-radius: 10px;
	overflow: hidden;
}

.single-article__media img {
	display: block;
	width: 100%;
	height: auto;
}

.rich-text {
	font-size: 18px;
	line-height: 1.9;
	color: #2c3444;
}

.rich-text p {
	margin: 0 0 1.2em;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
	margin: 1.6em 0 0.5em;
	font-weight: 700;
	line-height: 1.3;
	color: #1d2945;
}

.rich-text h2 {
	font-size: 28px;
}

.rich-text h3 {
	font-size: 23px;
}

.rich-text img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.rich-text a {
	color: #1d2945;
	text-decoration: underline;
}

.rich-text ul,
.rich-text ol {
	margin: 0 0 1.2em;
	padding-right: 22px;
	padding-left: 0;
}

.rich-text li {
	margin-bottom: 0.4em;
}

.rich-text blockquote {
	margin: 1.6em 0;
	padding: 4px 20px;
	border-right: 4px solid #fdcb15;
	border-left: 0;
	color: #3c4653;
	font-style: italic;
}

/*--------------------------------------------------------------
# Pagination / post navigation
--------------------------------------------------------------*/
.post-list .navigation.pagination,
.single-post-main .post-navigation {
	margin-top: 40px;
}

.post-list .nav-links {
	text-align: center;
}

.post-list .page-numbers {
	display: inline-block;
	min-width: 40px;
	margin: 0 3px;
	padding: 8px 12px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid rgba(29, 41, 69, 0.15);
	color: #1d2945;
	font-weight: 700;
	text-decoration: none;
}

.post-list .page-numbers:hover,
.post-list .page-numbers:focus {
	background: #fdcb15;
	border-color: #fdcb15;
	text-decoration: none;
}

.post-list .page-numbers.current {
	background: #1d2945;
	border-color: #1d2945;
	color: #fff;
}

.single-post-main .post-navigation {
	padding-top: 24px;
	border-top: 1px solid rgba(29, 41, 69, 0.1);
}

.single-post-main .post-navigation .nav-links {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
}

.single-post-main .post-navigation a {
	display: block;
	max-width: 46%;
	color: #1d2945;
	font-weight: 700;
	text-decoration: none;
}

.single-post-main .post-navigation a:hover {
	color: #3c4653;
}

.single-post-main .post-navigation .nav-label {
	display: block;
	margin-bottom: 4px;
	color: #8a8f9a;
	font-size: 14px;
	font-weight: 400;
}

/*--------------------------------------------------------------
# Small screens
--------------------------------------------------------------*/
@media screen and (max-width: 767px) {
	.blog .site-header .site-branding,
	.page-template-default .site-header .site-branding,
	.page-template-template-general .site-header .site-branding,
	.single .site-header .site-branding {
		padding-left: 64px;
	}

	.post-list,
	.content-page,
	.single-post-main {
		padding-top: 24px;
	}

	.content-head__title {
		font-size: 28px;
	}

	.single-article__title {
		font-size: 27px;
	}

	.rich-text {
		font-size: 17px;
	}

	.single-post-main .post-navigation .nav-links {
		display: block;
	}

	.single-post-main .post-navigation a {
		max-width: 100%;
		margin-bottom: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.post-card,
	.post-card__media img {
		-webkit-transition: none;
		-o-transition: none;
		transition: none;
	}
}
