/* ==========================================================================
   Truck Soap Blog
   Loaded after /themes/css/main.css and /m-assets/styles.css.
   Scope: only .ts-blog (#bodycontainer) and blog-* classes. Never restyle
   #header, #nav, #footer or other shared main-site components here.
   Breakpoints match the main site: 1119 / 959 / 767 / 479.
   ========================================================================== */

/* Utilities
   -------------------------------------------------------------------------- */
.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;
	z-index: 200000;
	top: 10px;
	left: 10px;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 15px;
	background: #fff;
	color: #004161;
	font-weight: 700;
	border-radius: 5px;
}

/* Base: main.css only colours p/ul/ol/h*, so give every other element in the
   content area the site's white text and contain media.
   -------------------------------------------------------------------------- */
.ts-blog {
	color: #fff;
	font-size: 15px;
	line-height: 24px;
}
.ts-blog img,
.ts-blog video,
.ts-blog iframe,
.ts-blog embed,
.ts-blog object {
	max-width: 100%;
}
.ts-blog img {
	height: auto;
}
.ts-blog a:focus-visible,
.ts-blog button:focus-visible,
.ts-blog input:focus-visible {
	outline: 2px solid #33aef0;
	outline-offset: 2px;
}
.blog-main:after {
	content: '';
	display: block;
	clear: both;
}

/* Shared bits
   -------------------------------------------------------------------------- */
.blog-eyebrow {
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 18px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #9cc9e0;
}
.blog-eyebrow a,
.blog-eyebrow a:visited {
	color: #9cc9e0;
}
.blog-meta {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 20px;
	color: rgba(255, 255, 255, .75);
}
.blog-meta a,
.blog-meta a:visited {
	color: #9cc9e0;
}
.blog-meta__sep {
	margin: 0 6px;
	opacity: .5;
}

/* Site gray buttons, sized down for inline use (base styles in main.css). */
.ts-blog .smaller-gray-button,
.ts-blog .smaller-gray-button:visited {
	float: none;
	display: inline-block;
	padding: 8px 18px;
	font-size: 14px;
	line-height: 20px;
	color: #fff;
	text-decoration: none;
}

/* Listing header + search
   -------------------------------------------------------------------------- */
.blog-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 15px 30px;
}
.blog-header__title {
	margin: 0;
}
.blog-intro {
	margin: 15px 0 0;
	max-width: 760px;
}
.blog-intro p:last-child {
	margin-bottom: 0;
}

.blog-search {
	display: flex;
	margin: 0;
}
.ts-blog .blog-search__field {
	width: 240px;
	height: 40px;
	margin: 0;
	padding: 0 12px;
	font-size: 15px;
	color: #333;
	background: #fff;
	border: 1px solid #000;
	border-right: 0;
	border-radius: 5px 0 0 5px;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3);
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}
.blog-search__submit {
	width: 46px;
	height: 40px;
	margin: 0;
	padding: 0;
	font-size: 16px;
	color: #fff;
	cursor: pointer;
	border: 1px solid #000;
	border-radius: 0 5px 5px 0;
	background-color: #0089d0;
	background-image: linear-gradient(to bottom, #0089d0, #004161);
	box-shadow: inset 0 1px 0 #6bbbe4;
}
.blog-search__submit:hover {
	background-image: linear-gradient(to bottom, #26b5ff, #004161);
}

/* Card grid
   -------------------------------------------------------------------------- */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}
.blog-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: rgba(0, 0, 0, .3);
	border: 1px solid #00506b;
	border-radius: 5px;
	box-shadow: 0 1px 3px #000, inset 0 1px 0 rgba(255, 255, 255, .08);
}
.blog-card__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #001c2a;
}
.blog-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}
.blog-card:hover .blog-card__media img {
	transform: scale(1.03);
}
.blog-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background-color: #004061;
	background-image: linear-gradient(to bottom, #004061, #001c2a);
}
.blog-card__media .blog-card__placeholder img {
	width: 65%;
	height: auto;
	object-fit: contain;
	opacity: .55;
}
.blog-card:hover .blog-card__placeholder img {
	transform: none;
}
.blog-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 20px;
}
.blog-card__title {
	margin: 0 0 10px;
	font-size: 21px;
	line-height: 1.25;
}
.blog-card__title a,
.blog-card__title a:visited {
	color: #fff;
	text-shadow: 0 1px 1px #000;
}
.blog-card__title a:hover {
	color: #fff;
	text-decoration: underline;
}
.blog-card__excerpt p {
	margin: 0 0 15px;
}
.ts-blog .blog-card__more {
	align-self: flex-start;
	margin-top: auto;
}

/* Pagination (site gray buttons)
   -------------------------------------------------------------------------- */
.blog-pagination {
	margin: 40px 0 0;
}
.blog-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.blog-pagination li {
	margin: 0;
}
.blog-pagination .page-numbers {
	display: block;
	min-width: 40px;
	padding: 8px 12px;
	box-sizing: border-box;
	font-size: 15px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	color: #fff;
	text-decoration: none;
	text-shadow: 0 1px 1px #000;
	background: #333;
	border: 1px solid #222;
	border-radius: 5px;
	box-shadow: inset 0 1px 0 #666, 0 1px 0 #aaa;
}
.blog-pagination a.page-numbers:visited {
	color: #fff;
}
.blog-pagination a.page-numbers:hover {
	background: #444;
	text-decoration: none;
}
.blog-pagination .page-numbers.current {
	background: #0089d0;
	background-image: linear-gradient(to bottom, #0089d0, #004161);
	box-shadow: inset 0 1px 0 #6bbbe4, 0 1px 0 #aaa;
}
.blog-pagination .page-numbers.dots {
	background: none;
	border-color: transparent;
	box-shadow: none;
}

/* Empty state
   -------------------------------------------------------------------------- */
.blog-empty {
	max-width: 640px;
}
.blog-empty .blog-search {
	margin: 0 0 20px;
}

/* Single article
   -------------------------------------------------------------------------- */
.blog-article__title {
	margin: 0 0 10px;
}
.blog-article__header .blog-meta {
	margin: 0;
	font-size: 14px;
}
.blog-article__image {
	margin: 0 0 30px;
}
.blog-article__image img {
	display: block;
	width: 100%;
	border-radius: 5px;
	box-shadow: 0 1px 3px #000;
}
.blog-article__footer hr {
	margin: 40px 0 25px;
}
.blog-article__cats {
	margin: 0 0 20px;
}
.blog-article__cats a,
.blog-article__cats a:visited {
	color: #9cc9e0;
}
.blog-post-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}
.ts-blog .blog-post-nav__adjacent {
	display: flex;
	flex: 1 1 400px;
	justify-content: flex-end;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.blog-post-nav__adjacent li {
	max-width: 300px;
}
.blog-post-nav__adjacent span {
	display: block;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .6);
}
.blog-post-nav__adjacent a,
.blog-post-nav__adjacent a:visited {
	color: #fff;
	font-weight: 700;
}
.blog-post-nav__next {
	text-align: right;
}

/* Article content: WordPress/Gutenberg elements in the site's style
   -------------------------------------------------------------------------- */
.entry-content {
	overflow-wrap: break-word;
}
.entry-content:after {
	content: '';
	display: block;
	clear: both;
}
.entry-content > :first-child {
	margin-top: 0;
}
/* Full-width blocks start below any floated image. */
.entry-content hr,
.entry-content .wp-block-separator,
.entry-content .wp-block-columns,
.entry-content .wp-block-table,
.entry-content .wp-block-gallery,
.entry-content .wp-block-embed,
.entry-content .wp-block-cover {
	clear: both;
}

/* Headings: main.css makes h3 = h2 and h4 > h2, so restore a hierarchy. */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	font-family: "obliqua-1", "obliqua-2", sans-serif;
	color: #fff;
	line-height: 1.25;
	margin: 1.6em 0 .6em;
	text-shadow: 0 1px 1px #000;
}
.entry-content h1 { font-size: 32px; }
.entry-content h2 { font-size: 26px; }
.entry-content h3 { font-size: 21px; }
.entry-content h4 { font-size: 18px; }
.entry-content h5 { font-size: 16px; }
.entry-content h6 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

/* Body links: a brighter step of the site blue for contrast on navy. */
.entry-content a,
.entry-content a:visited {
	color: #33aef0;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.entry-content a:hover {
	color: #7fcdf6;
}

/* Lists: main.css sets list-style-position:inside globally. */
.entry-content ul:not([class]),
.entry-content ol:not([class]),
.entry-content .wp-block-list {
	margin: 0 0 1em;
	padding-left: 1.5em;
	list-style-position: outside;
}
.entry-content li {
	margin: 0 0 .35em;
}
.entry-content li > ul,
.entry-content li > ol {
	margin: .35em 0 0;
}

/* Quotes: main.css floats every blockquote right at 430px. */
.entry-content blockquote,
.entry-content .wp-block-quote {
	float: none;
	width: auto;
	margin: 1.5em 0;
	padding: 5px 0 5px 20px;
	border-left: 4px solid #0089d0;
	font-style: italic;
	color: #fff;
}
.entry-content blockquote p:last-of-type {
	margin-bottom: 0;
}
.entry-content blockquote cite,
.entry-content .wp-block-quote cite {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	font-style: normal;
	color: rgba(255, 255, 255, .7);
}
.entry-content .wp-block-pullquote {
	margin: 2em 0;
	padding: 1.5em 0;
	border-top: 4px solid #0089d0;
	border-bottom: 4px solid #0089d0;
	color: #fff;
}
.entry-content .wp-block-pullquote blockquote {
	border: 0;
	padding: 0;
	text-align: center;
}
.entry-content .wp-block-pullquote p {
	font-size: 22px;
	line-height: 1.4;
}

/* Rules: match the site's double-line <hr>. */
.entry-content hr,
.entry-content .wp-block-separator {
	height: 0;
	margin: 40px 0;
	border: 0;
	border-top: 1px solid #000;
	border-bottom: 1px solid #00506b;
	opacity: 1;
}

/* Images and captions */
.entry-content figure {
	margin: 0 0 1.5em;
}
.entry-content figcaption,
.entry-content .wp-caption-text,
.entry-content .wp-element-caption {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
	color: rgba(255, 255, 255, .75);
}
.entry-content .wp-caption {
	max-width: 100%;
}
.entry-content .alignleft {
	float: left;
	margin: 5px 30px 20px 0;
}
.entry-content .alignright {
	float: right;
	margin: 5px 0 20px 30px;
}
.entry-content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}
.entry-content .wp-block-image img {
	border-radius: 5px;
}

/* Tables */
.entry-content table,
.entry-content .wp-block-table table {
	width: 100%;
	margin: 0 0 1.5em;
	border-collapse: collapse;
	font-size: 14px;
	color: #fff;
}
.entry-content .wp-block-table {
	overflow-x: auto;
}
.entry-content th,
.entry-content td {
	padding: 10px 12px;
	text-align: left;
	border: 1px solid rgba(255, 255, 255, .2);
}
.entry-content thead th,
.entry-content .wp-block-table thead {
	background: rgba(0, 0, 0, .35);
	border-bottom: 2px solid #0089d0;
}
.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: rgba(255, 255, 255, .06);
}
.entry-content .wp-block-table.is-style-stripes {
	border-bottom: 0;
}

/* Code */
.entry-content code,
.entry-content kbd,
.entry-content pre {
	font-family: Consolas, Monaco, "Courier New", monospace;
	font-size: 14px;
}
.entry-content code {
	padding: 2px 5px;
	background: rgba(0, 0, 0, .35);
	border-radius: 3px;
}
.entry-content pre {
	margin: 0 0 1.5em;
	padding: 15px;
	overflow-x: auto;
	color: #fff;
	background: rgba(0, 0, 0, .35);
	border: 1px solid #00506b;
	border-radius: 5px;
}
.entry-content pre code {
	padding: 0;
	background: none;
}

/* Embeds (responsive-embeds theme support supplies the aspect wrappers) */
.entry-content .wp-block-embed {
	margin: 0 0 1.5em;
}
.entry-content .wp-block-embed iframe {
	max-width: 100%;
}

/* Buttons block: the site's blue .button look at body-copy size */
.entry-content .wp-block-buttons {
	margin: 0 0 1.5em;
}
.entry-content .wp-block-button__link,
.entry-content .wp-block-button__link:visited {
	display: inline-block;
	padding: 10px 24px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	text-shadow: 0 1px 1px #000;
	border: 0;
	border-radius: 5px;
	background-color: #0089d0;
	background-image: linear-gradient(to bottom, #0089d0, #004161);
	box-shadow: inset 0 1px 0 #6bbbe4, 0 1px 3px #000, 0 0 25px #00466a;
}
.entry-content .wp-block-button__link:hover {
	color: #fff;
	background-image: linear-gradient(to bottom, #26b5ff, #004161);
	box-shadow: inset 0 1px 0 #6bbbe4, 0 1px 3px #000, 0 0 25px #00679d;
}
.entry-content .wp-block-button__link:active {
	position: relative;
	top: 1px;
}
.entry-content .is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid #0089d0;
	box-shadow: none;
	color: #fff;
}
.entry-content .wp-block-button__link.has-background {
	background-image: none;
}

/* Columns, galleries, groups */
.entry-content .wp-block-columns {
	margin: 0 0 1.5em;
}
.entry-content .wp-block-column > :last-child {
	margin-bottom: 0;
}
.entry-content .wp-block-gallery {
	margin: 0 0 1.5em;
}
.entry-content .wp-block-gallery .wp-block-image img {
	border-radius: 3px;
}
.entry-content .wp-block-group.has-background {
	padding: 20px 25px;
	border-radius: 5px;
}
.entry-content .wp-block-cover {
	margin: 0 0 1.5em;
	border-radius: 5px;
}

/* Paged posts */
.blog-page-links {
	margin: 20px 0 0;
	font-weight: 700;
}
.blog-page-links a,
.blog-page-links > span:not(:first-child) {
	margin-left: 8px;
}

/* Responsive
   -------------------------------------------------------------------------- */
@media only screen and (max-width: 959px) {
	.blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
	.entry-content .alignleft,
	.entry-content .alignright {
		max-width: 50%;
	}
}

@media only screen and (max-width: 767px) {
	.blog-header {
		display: block;
	}
	.blog-header__title {
		margin: 0 0 15px;
	}
	.blog-search {
		width: 100%;
	}
	.ts-blog .blog-search__field {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
	}
	.ts-blog hr {
		margin: 25px 0;
	}
	.blog-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.blog-card__title {
		font-size: 19px;
	}
	.blog-article__title {
		font-size: 26px;
		line-height: 1.2em;
	}
	.entry-content h2 { font-size: 22px; }
	.entry-content h3 { font-size: 19px; }
	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		max-width: 100%;
		margin: 0 0 20px;
	}
	.ts-blog .blog-post-nav__adjacent {
		flex-direction: column;
		gap: 15px;
	}
	.blog-post-nav__next {
		text-align: left;
	}
	.entry-content .wp-block-pullquote p {
		font-size: 19px;
	}
	.blog-main {
		padding-bottom: 30px;
	}
}
