/**
 * A blog post's page (templates/content.php, docs/media.md): the media
 * releases and presentations for the media, since November 11, 2026.
 *
 * The page hero is the component's, its title a size smaller: a release's
 * title runs to two lines of a hundred characters and more, which the
 * hero's 48px would set in five. Under it the text in a 768px column in
 * the style guide's body copy (Prose's roles), the release's opening
 * paragraph, which the posts set as a heading (h4) or in bold, as a lead in
 * charcoal; the other languages over it in supporting text; the way back
 * to the Media page under it.
 *
 * The text is Elementor's for most posts: sections with one column, whose
 * gap and padding go, so the copy starts at the column's edge.
 */

/* The parent's page wrapper fills the viewport and is gray; a short post,
   a presentation for the media, ends on white above the footer, as the
   account pages do (auth.css). */
#c27-site-wrapper:has(> .sba-post) {
	background-color: var(--sba-surface);
}

.sba-post .sba-c-hero .sba-c-hero-title {
	max-width: 52rem;
	font-size: 28px;
	line-height: 34px;
}

@media (min-width: 1024px) {
	.sba-post .sba-c-hero .sba-c-hero-title {
		font-size: 36px;
		line-height: 44px;
	}
}

.sba-post .sba-post-article .sba-c-container > * {
	max-width: 48rem;
}

.sba-post .sba-post-languages {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0 0 32px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--sba-border);
	color: var(--sba-slate);
	font-size: 14px;
	line-height: 20px;
}

.sba-post .sba-post-languages a {
	color: var(--sba-charcoal);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: hsl(var(--sba-red-hsl) / 0.5);
	text-underline-offset: 4px;
	transition: text-decoration-color var(--sba-duration-hover) ease;
}

.sba-post .sba-post-languages a:hover,
.sba-post .sba-post-languages a:focus-visible {
	text-decoration-color: var(--sba-red);
}

/* Elementor's sections and columns without their own gaps. */
.sba-post .sba-post-text .elementor-section .elementor-container {
	max-width: none;
}

.sba-post .sba-post-text .elementor-section,
.sba-post .sba-post-text .elementor-column > .elementor-element-populated,
.sba-post .sba-post-text .elementor-column > .elementor-widget-wrap {
	margin: 0;
	padding: 0;
}

.sba-post .sba-post-text .elementor-widget:not(:last-child) {
	margin-bottom: 0;
}

.sba-post .sba-post-text,
.sba-post .sba-post-text :is(p, li, .elementor-widget-text-editor) {
	color: var(--sba-slate);
	font-family: var(--sba-font-sans);
	font-size: 16px;
	line-height: 1.625;
}

.sba-post .sba-post-text :is(p, ul, ol, h2, h3, h4, h5, h6, figure, table) {
	margin: 0;
}

.sba-post .sba-post-text :is(p, ul, ol, h2, h3, h4, h5, h6, figure, table) + :is(p, ul, ol, h2, h3, h4, h5, h6, figure, table),
.sba-post .sba-post-text .elementor-widget + .elementor-widget,
.sba-post .sba-post-text .elementor-section + .elementor-section {
	margin-top: 16px;
}

.sba-post .sba-post-text li + li {
	margin-top: 8px;
}

.sba-post .sba-post-text strong {
	color: var(--sba-charcoal);
	font-weight: 700;
}

.sba-post .sba-post-text :is(h2, h3) {
	color: var(--sba-charcoal);
	font-size: 20px;
	font-weight: var(--sba-heading-weight);
	letter-spacing: var(--sba-heading-tracking);
	line-height: 28px;
}

.sba-post .sba-post-text :is(p, ul, ol) + :is(h2, h3) {
	margin-top: 32px;
}

/* The release's opening: a heading in the newer posts, the lead's role. */
.sba-post .sba-post-text :is(h4, h5, h6) {
	color: var(--sba-charcoal);
	font-size: 18px;
	font-weight: 500;
	letter-spacing: normal;
	line-height: 28px;
}

.sba-post .sba-post-text img {
	max-width: 100%;
	height: auto;
	border-radius: var(--sba-radius);
}

.sba-post .sba-post-text a {
	overflow-wrap: anywhere;
}

.sba-post .sba-post-foot {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--sba-border);
}
