/*
 * Standard blog post (post type `post`) — templates/single/single-post.php.
 *
 * Hand-written and enqueued from inc/blog.php. It lives under assets/ rather
 * than styles/ because styles/*.css is gulp output and gitignored wholesale,
 * so anything written there would never be committed.
 *
 * Design tokens follow styles/src/client/_variables.scss:
 *   body bg #1B232F · body text #fff · muted #BDBDBD
 * except the accent, which is the REELZ gold #F5B700 (the site-wide
 * $color-accent is teal #02b7c3 — blog posts deliberately use the gold).
 */

/*
 * Site-wide `main` is a two-column grid (content + 300px sidebar). A blog post
 * has no sidebar, so collapse it back to a single centred column — otherwise
 * the article is pushed off-centre by the empty sidebar track.
 */
body.template--single-post main {
	display: block;
	padding-top: 24px;
	padding-bottom: 48px;
}

body.template--single-post .blog-post {
	max-width: 760px;
	margin: 0 auto;
	color: #fff;
	font-family: Arial, sans-serif;
	font-size: 1.05em;
	line-height: 1.65;
}

/* ---------- Masthead ---------- */

body.template--single-post .blog-post__title {
	font-family: "FlamaSemicondensed", sans-serif;
	font-size: 2.4em;
	font-weight: 400;
	line-height: 1.15;
	color: #fff;
	margin: 0 0 10px;
}

body.template--single-post .blog-post__meta {
	display: block;
	color: #bdbdbd;
	font-size: 0.9em;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin-bottom: 22px;
}

body.template--single-post .featured-image-wrapper {
	margin: 0 0 22px;
}

body.template--single-post .featured-image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

body.template--single-post .social-share-bar {
	color: #fff;
	margin: 0 0 30px;
	padding-bottom: 22px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* ---------- Article body ---------- */

body.template--single-post .blog-post__content > * {
	margin-top: 0;
	margin-bottom: 1.15em;
}

body.template--single-post .blog-post__content h2 {
	font-family: "FlamaSemicondensed", sans-serif;
	font-size: 1.6em;
	font-weight: 400;
	line-height: 1.25;
	color: #fff;
	margin-top: 1.7em;
	margin-bottom: 0.5em;
}

body.template--single-post .blog-post__content h3 {
	font-family: "FlamaSemicondensed", sans-serif;
	font-size: 1.2em;
	font-weight: 400;
	color: #fff;
	margin-top: 1.5em;
	margin-bottom: 0.4em;
}

body.template--single-post .blog-post__content p {
	color: #e6e6e6;
}

body.template--single-post .blog-post__content a {
	color: #F5B700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.template--single-post .blog-post__content a:hover {
	color: #fff;
}

body.template--single-post .blog-post__content strong {
	color: #fff;
}

body.template--single-post .blog-post__content ul,
body.template--single-post .blog-post__content ol {
	padding-left: 1.4em;
	color: #e6e6e6;
}

/* ---------- Embeds ---------- */

body.template--single-post .blog-post__content .wp-block-embed {
	margin-left: auto;
	margin-right: auto;
}

body.template--single-post .blog-post__content .wp-block-embed iframe {
	max-width: 100%;
	border-radius: 4px;
}

/*
 * Responsive embeds. Declared here rather than relying on wp-block-library so
 * the ratio holds even if core block styles are dropped again upstream.
 */
body.template--single-post .blog-post__content .wp-block-embed__wrapper {
	position: relative;
	aspect-ratio: 16 / 9;
}

body.template--single-post .blog-post__content .wp-block-embed__wrapper > iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Vertical (9:16) YouTube Shorts. */
body.template--single-post .blog-post__content .wp-embed-aspect-9-16 .wp-block-embed__wrapper {
	max-width: 420px;
	margin: 0 auto;
	aspect-ratio: 9 / 16;
}

body.template--single-post .blog-post__content .wp-element-caption,
body.template--single-post .blog-post__content figcaption {
	color: #bdbdbd;
	font-size: 0.85em;
	text-align: center;
	margin-top: 10px;
}

/* ---------- CTA button ---------- */

body.template--single-post .blog-post__content .wp-block-button__link {
	display: inline-block;
	background-color: #F5B700;
	color: #10171f;
	font-family: "FlamaSemicondensed", sans-serif;
	font-size: 1.05em;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 13px 28px;
	border-radius: 3px;
}

body.template--single-post .blog-post__content .wp-block-button__link:hover {
	background-color: #fff;
	color: #10171f;
}

/* ---------- Small screens ---------- */

@media (max-width: 599px) {

	body.template--single-post .blog-post {
		font-size: 1em;
	}

	body.template--single-post .blog-post__title {
		font-size: 1.9em;
	}

	body.template--single-post .blog-post__content h2 {
		font-size: 1.35em;
	}
}

/* ---------- "Featured on" show card ---------- */

body.template--single-post .blog-show-callout {
	margin: 44px 0 0;
	padding-top: 26px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body.template--single-post .blog-show-callout__eyebrow {
	margin: 0 0 12px;
	color: #bdbdbd;
	font-family: "FlamaSemicondensed", sans-serif;
	font-size: 0.8em;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

body.template--single-post .blog-show-callout__link {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 16px;
	background-color: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

body.template--single-post .blog-show-callout__link:hover {
	background-color: rgba(255, 255, 255, 0.07);
	border-color: #F5B700;
}

body.template--single-post .blog-show-callout__art {
	flex: 0 0 200px;
	display: block;
	overflow: hidden;
	border-radius: 4px;
	line-height: 0;
}

body.template--single-post .blog-show-callout__art img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

body.template--single-post .blog-show-callout__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

body.template--single-post .blog-show-callout__title {
	color: #fff;
	font-family: "FlamaSemicondensed", sans-serif;
	font-size: 1.5em;
	line-height: 1.15;
}

body.template--single-post .blog-show-callout__cta {
	color: #F5B700;
	font-size: 0.9em;
}

body.template--single-post .blog-show-callout__link:hover .blog-show-callout__cta {
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (max-width: 599px) {

	body.template--single-post .blog-show-callout__link {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	body.template--single-post .blog-show-callout__art {
		flex: 0 0 auto;
	}

	body.template--single-post .blog-show-callout__title {
		font-size: 1.3em;
	}
}
