/* Lancaster Paint & Glass blog
 *
 * Loaded after the static site's css/main.css, css/quickmenu_styles.css and
 * m-assets/style-template.css, which supply the header, navigation, footer,
 * fonts and responsive layout. Everything below is scoped to #content so the
 * shared header and footer are never touched.
 *
 * Brand values (from main.css): headings/links #08279a, buttons #1334b6,
 * navy #293254, body text Georgia 14px.
 * Breakpoints (from style-template.css): 959px, 767px, 479px.
================================================== */

/* Banner
================================================== */
body#interior #header.blog-banner {
	height: 355px;
	background-repeat: no-repeat;
}

/* Accessibility helpers
================================================== */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 10px;
	left: 10px;
	z-index: 200000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 16px;
	clip: auto;
	background: #fff;
	color: #08279a;
	font: bold 14px Arial, Helvetica, sans-serif;
	text-decoration: none;
}

#content a:focus-visible,
#content .button:focus-visible {
	outline: 2px solid #08279a;
	outline-offset: 2px;
}

/* Shared bits
================================================== */
#content .blog-meta {
	margin: 0;
	padding: 0 0 0.5em 0;
	color: #393a3a;
	font-style: italic;
}

#content .button {
	display: inline-block;
	border-color: #1334b6;
	font-size: 13px;
	line-height: 1.2;
}

#content .button:hover {
	color: #fefefe;
}

#content .blog-back {
	margin-top: 20px;
}

#content .blog-back .button {
	margin: 0 8px 8px 0;
}

/* Listing header and topics
================================================== */
#content .blog-listing-intro p {
	padding-top: 0;
}

#content .blog-topics {
	margin: 10px 0 5px;
	font-size: 0.95em;
	line-height: 2;
}

#content .blog-topics__label {
	margin-right: 4px;
	font-weight: bold;
}

#content .blog-topics a {
	display: inline-block;
	margin: 0 4px 4px 0;
	padding: 0 10px;
	background: rgba(255, 255, 255, 0.6);
	border-radius: 3px;
	line-height: 26px;
	text-decoration: none;
}

#content .blog-topics a:hover,
#content .blog-topics a[aria-current="page"] {
	background: #1334b6;
	color: #fff;
}

/* Cards (styled like the white #partner-logos box)
================================================== */
#content .blog-list {
	margin: 15px 0;
}

#content .blog-card {
	display: flex;
	gap: 15px;
	margin: 0 0 15px 0;
	padding: 15px;
	background: #fff;
	border-radius: 4px;
}

#content .blog-card__media {
	flex: 0 0 180px;
	display: block;
	align-self: flex-start;
	overflow: hidden;
	border-radius: 3px;
	aspect-ratio: 16 / 10;
}

#content .blog-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

#content .blog-card__media:hover img {
	transform: scale(1.04);
}

#content .blog-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: #98b6bf url(/images/logo.png) center / 80% auto no-repeat;
}

#content .blog-card__body {
	flex: 1 1 auto;
	min-width: 0;
}

#content h2.blog-card__title {
	margin: 0 0 4px 0;
	font-size: 1.4em;
	line-height: 1.25em;
}

#content .blog-card__title a {
	color: #08279a;
	text-decoration: none;
}

#content .blog-card__title a:hover {
	text-decoration: underline;
}

#content .blog-card__excerpt p {
	padding: 0 0 0.75em 0;
}

/* Pagination
================================================== */
#content .blog-pagination {
	margin: 20px 0;
}

#content .blog-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

#content .blog-pagination .page-numbers {
	display: inline-block;
	min-width: 34px;
	padding: 6px 10px;
	box-sizing: border-box;
	background: #fff;
	border: 2px solid #fff;
	border-radius: 3px;
	color: #1334b6;
	font: bold 13px/1.2 Arial, Helvetica, sans-serif;
	text-align: center;
	text-decoration: none;
}

#content .blog-pagination a.page-numbers:hover,
#content .blog-pagination .page-numbers.current {
	background: #1334b6;
	border-color: #1334b6;
	color: #fff;
}

#content .blog-pagination .page-numbers.dots {
	background: none;
	border-color: transparent;
}

/* Article
================================================== */
#content .blog-article__header .blog-meta {
	margin-top: -12px;
}

#content .blog-article__image {
	margin: 0 0 10px 0;
}

#content .blog-article__image img {
	display: block;
	width: 100%;
	height: auto;
	border: 3px solid #fff;
	box-sizing: border-box;
}

#content .blog-article__footer {
	margin-top: 20px;
	padding-top: 10px;
	border-top: 1px solid rgba(8, 39, 154, 0.25);
}

#content .blog-terms {
	padding: 0.25em 0;
}

#content .blog-post-nav {
	margin: 10px 0;
}

#content .blog-post-nav .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 15px;
}

#content .blog-post-nav .nav-next {
	margin-left: auto;
	text-align: right;
}

#content .blog-post-nav a {
	display: block;
	max-width: 250px;
}

#content .blog-post-nav__label {
	display: block;
	color: #393a3a;
	font-size: 0.85em;
	font-style: italic;
}

/* Article content: WordPress / Gutenberg elements
================================================== */
#content .blog-entry > *:first-child {
	margin-top: 0;
}

/* main.css turns #content h3 into a fixed-height image heading; undo that for post content. */
#content .blog-entry h3 {
	display: block;
	height: auto;
	margin: 0.6em 0 0.3em 0;
	padding: 0;
	color: #08279a;
	font-size: 1.6em;
	line-height: 1.3em;
}

#content .blog-entry h3 span {
	display: inline;
}

#content .blog-entry h2 {
	margin: 0.5em 0 0.25em 0;
}

#content .blog-entry h5,
#content .blog-entry h6 {
	margin: 0.75em 0 0.25em 0;
	font-size: 1.15em;
}

#content .blog-entry h6 {
	font-size: 1em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

#content .blog-entry li {
	padding: 0.15em 0;
}

#content .blog-entry ul ul,
#content .blog-entry ol ol,
#content .blog-entry ul ol,
#content .blog-entry ol ul {
	padding-top: 0.15em;
	padding-bottom: 0;
}

#content .blog-entry blockquote,
#content .blog-entry .wp-block-quote {
	margin: 1em 0;
	padding: 10px 15px;
	background: rgba(255, 255, 255, 0.55);
	border-left: 4px solid #08279a;
	font-style: italic;
}

#content .blog-entry blockquote cite {
	display: block;
	margin-top: 4px;
	font-size: 0.9em;
	font-style: normal;
}

#content .blog-entry .wp-block-pullquote {
	margin: 1em 0;
	padding: 1em 0;
	border-top: 3px solid #08279a;
	border-bottom: 3px solid #08279a;
	text-align: center;
}

#content .blog-entry .wp-block-pullquote blockquote {
	background: none;
	border: 0;
}

/* Images, captions, galleries */
#content .blog-entry img {
	max-width: 100%;
	height: auto;
}

#content .blog-entry figure {
	margin: 1em 0;
}

#content .blog-entry figcaption,
#content .blog-entry .wp-caption-text {
	margin: 4px 0 0 0;
	color: #393a3a;
	font-size: 0.9em;
	font-style: italic;
	text-align: center;
}

#content .blog-entry .wp-caption {
	max-width: 100%;
}

#content .blog-entry .alignleft {
	float: left;
	margin: 0.5em 15px 0.5em 0;
}

#content .blog-entry .alignright {
	float: right;
	margin: 0.5em 0 0.5em 15px;
}

#content .blog-entry .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

#content .blog-entry .alignleft,
#content .blog-entry .alignright {
	max-width: 50%;
}

#content .blog-entry .wp-block-gallery {
	margin: 1em 0;
}

#content .blog-entry .wp-block-gallery figure {
	margin: 0;
}

#content .blog-entry::after {
	content: "";
	display: table;
	clear: both;
}

/* Tables */
#content .blog-entry table {
	width: 100%;
	margin: 1em 0;
	border-collapse: collapse;
	background: #fff;
	font-size: 0.95em;
}

#content .blog-entry th,
#content .blog-entry td {
	padding: 6px 8px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	text-align: left;
	vertical-align: top;
}

#content .blog-entry thead th,
#content .blog-entry .wp-block-table thead {
	background: #08279a;
	color: #fff;
	border-bottom: 0;
}

#content .blog-entry .wp-block-table {
	overflow-x: auto;
	margin: 1em 0;
}

#content .blog-entry .wp-block-table table {
	margin: 0;
}

#content .blog-entry .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: #eef3f5;
}

/* Embeds */
#content .blog-entry iframe,
#content .blog-entry embed,
#content .blog-entry object,
#content .blog-entry video {
	max-width: 100%;
}

#content .blog-entry .wp-block-embed {
	margin: 1em 0;
}

/* Columns, buttons, separators, code */
#content .blog-entry .wp-block-columns {
	margin: 1em 0;
	gap: 15px;
}

#content .blog-entry .wp-block-buttons {
	margin: 1em 0;
}

#content .blog-entry .wp-block-button__link {
	display: inline-block;
	padding: 10px 20px;
	background: #1334b6;
	border: 3px solid #1334b6;
	border-radius: 3px;
	color: #fff;
	font: bold 13px/1.2 Arial, Helvetica, sans-serif;
	text-transform: uppercase;
	text-decoration: none;
	transition: all 0.3s;
}

#content .blog-entry .wp-block-button__link:hover {
	background: #fefefe;
	color: #1334b6;
}

#content .blog-entry .is-style-outline .wp-block-button__link {
	background: #fefefe;
	color: #1334b6;
}

#content .blog-entry .is-style-outline .wp-block-button__link:hover {
	background: #1334b6;
	color: #fff;
}

#content .blog-entry hr,
#content .blog-entry .wp-block-separator {
	margin: 1.5em 0;
	border: 0;
	border-top: 1px solid rgba(8, 39, 154, 0.3);
}

#content .blog-entry pre,
#content .blog-entry code {
	font-family: Consolas, Monaco, monospace;
	font-size: 0.9em;
}

#content .blog-entry pre {
	overflow-x: auto;
	padding: 10px;
	background: rgba(255, 255, 255, 0.6);
	white-space: pre;
}

#content .blog-page-links {
	margin: 1em 0;
}

/* Tablet: 768px - 959px
================================================== */
@media only screen and (min-width: 768px) and (max-width: 959px) {
	#content .blog-card__media {
		flex-basis: 150px;
	}
}

/* Phones: 767px and below
================================================== */
@media only screen and (max-width: 767px) {
	#content .blog-card {
		flex-direction: column;
		gap: 10px;
	}

	#content .blog-card__media {
		flex-basis: auto;
		width: 100%;
	}

	#content .blog-entry .alignleft,
	#content .blog-entry .alignright {
		float: none;
		max-width: 100%;
		margin: 1em 0;
	}

	#content .blog-entry .wp-block-columns {
		flex-wrap: wrap !important;
	}

	#content .blog-entry .wp-block-column {
		flex-basis: 100% !important;
	}

	#content .blog-post-nav .nav-links {
		flex-direction: column;
	}

	#content .blog-post-nav .nav-next {
		margin-left: 0;
		text-align: left;
	}
}
