/*
 * Single posts (blog, webinars, reports …) case studies (1.15.8), events, press releases and offers (1.15.9) — rendered by the Hello theme template, not Elementor
 * (agent webinar-single, 2026-10-23). Loaded only on single posts by inc/webinar-speakers.php.
 * 1.15.10: larger top/bottom + title spacing (#35), case-study summary as italic body text (#34).
 * Values mirror the site's global classes so posts match the Elementor pages:
 *   spacing = class "section-pding-btm-lg" (140px, 78px on phones; was "section" 80/48 before 1.15.10); headshot corners = class "photo-card" (30px).
 */

/* Space between the site header and the post title, and above the footer.
 * 1.15.10 (KWSM Markup #35): 80px → 140px desktop/tablet, 48px → 78px phones
 * = the site's large section spacing (global class "section-pding-btm-lg"). */
.single-post main.site-main,
.single-case-story main.site-main,
.single-event main.site-main,
.single-press main.site-main,
.single-offer main.site-main {
	padding-top: 140px;
	padding-bottom: 140px;
}

/* Space between the title (page header) and the post content (#35): 16px → 48px, 32px on phones. */
.single-post main.site-main .page-header,
.single-case-story main.site-main .page-header,
.single-event main.site-main .page-header,
.single-press main.site-main .page-header,
.single-offer main.site-main .page-header {
	margin-bottom: 48px;
}

.single-post main.site-main .page-header .entry-title,
.single-case-story main.site-main .page-header .entry-title,
.single-event main.site-main .page-header .entry-title,
.single-press main.site-main .page-header .entry-title,
.single-offer main.site-main .page-header .entry-title {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.single-post main.site-main,
	.single-case-story main.site-main,
	.single-event main.site-main,
	.single-press main.site-main,
	.single-offer main.site-main {
		padding-top: 78px;
		padding-bottom: 78px;
	}

	.single-post main.site-main .page-header,
	.single-case-story main.site-main .page-header,
	.single-event main.site-main .page-header,
	.single-press main.site-main .page-header,
	.single-offer main.site-main .page-header {
		margin-bottom: 32px;
	}
}

/* Case studies: the opening summary is written as an italic H3 in each post; show it as
 * body text in italics (KWSM Markup #34). Size/weight/colour inherit the body text. */
.single-case-story .page-content > h3:first-child {
	margin-top: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
	font-style: italic;
}

/* Webinar speakers: one row of equal columns (built by inc/webinar-speakers.php). */
.vmg-speakers-title {
	margin-top: 48px;
}

.vmg-speakers {
	--vmg-cols: 3;
	display: grid;
	grid-template-columns: repeat(var(--vmg-cols), minmax(0, 240px));
	gap: 32px;
	margin: 24px 0 0;
}

.vmg-speakers--1 { --vmg-cols: 1; }
.vmg-speakers--2 { --vmg-cols: 2; }
.vmg-speakers--3 { --vmg-cols: 3; }
.vmg-speakers--4 { --vmg-cols: 4; }
.vmg-speakers--5 { --vmg-cols: 5; }
.vmg-speakers--6 { --vmg-cols: 6; }

.vmg-speaker-photo img {
	display: block;
	float: none;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0;
	border-radius: 30px;
}

.vmg-speaker-info {
	margin-top: 16px;
	font-size: 16px;
	line-height: 1.5;
}

.vmg-speaker-info p {
	margin: 0;
}

.vmg-speaker-info p + p {
	margin-top: 6px;
}

/* Name / position / company each look different (user, KWSM Markup comment 25). Colours = Site Settings globals. */
.vmg-speaker-name {
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--e-global-color-vmgnavy900);
}

.vmg-speaker-name a {
	color: inherit;
}

.vmg-speaker-role {
	font-size: 15px;
	color: var(--e-global-color-vmggray700);
}

.vmg-speaker-company {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--e-global-color-vmgteal600);
}

/* Retired tags are no longer printed (inc/webinar-speakers.php); hide the empty wrapper. */
.single-post .post-tags {
	display: none;
}

/* Tablet: at most 3 across; 4 speakers → 2 × 2, 6 → 3 × 2 (even rows). */
@media (max-width: 1024px) {
	.vmg-speakers--4 { --vmg-cols: 2; }
	.vmg-speakers--5,
	.vmg-speakers--6 { --vmg-cols: 3; }
}

/* Phones: 2 across for even counts; 3 or 5 speakers stack one per row (no orphan on the last row). */
@media (max-width: 767px) {
	.vmg-speakers { gap: 20px; }
	.vmg-speakers--2,
	.vmg-speakers--4,
	.vmg-speakers--6 { --vmg-cols: 2; }
	.vmg-speakers--3,
	.vmg-speakers--5 { --vmg-cols: 1; }
}

/* Blog posts: date + byline under the title, then the "About the authors" box (KWSM Markup #614; plugin modules/single-posts.php). */
.vmg-post-byline { margin: -24px 0 32px; font-size: 15px; color: var(--gray-700, #494949); }
.vmg-post-byline a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.vmg-post-byline a:hover, .vmg-post-byline a:focus-visible { color: var(--teal-600, #217D7A); }
.vmg-post-authors { margin: 0 0 40px; padding: 24px 28px; background: #EEF8F7; border-radius: 24px; }
/* Authors box under the byline (Julia 2026-11-17, Kristin #1214–#1217 #1222): light mint rounded box, 20px heading,
   72px headshots, 18px names, 15px job titles. Hidden automatically when a post has no authors. */
.vmg-post-authors h2 { margin: 0 0 16px; font-family: Manrope, sans-serif; font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--green-900, #003726); }
.vmg-post-authors ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 48px; }
.vmg-author { display: flex; align-items: center; gap: 14px; margin: 0; }
/* Specific selector: the post-content image rules would otherwise stretch the headshot to full width. */
main .vmg-post-authors img.vmg-author-photo { width: 72px; height: 72px; max-width: 72px; margin: 0; border-radius: 50%; object-fit: cover; flex: none; }
.vmg-author-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.vmg-author-name { font-size: 18px; font-weight: 800; color: var(--navy-900, #0D2947); text-decoration: none; }
.vmg-author-name:hover, .vmg-author-name:focus-visible { text-decoration: underline; color: var(--teal-600, #217D7A); }
.vmg-author-title { font-size: 15px; color: var(--gray-700, #494949); }
@media (max-width: 767px) { .vmg-post-authors { padding: 20px; border-radius: 20px; margin-bottom: 28px; } .vmg-post-authors ul { gap: 14px; } main .vmg-post-authors img.vmg-author-photo { width: 60px; height: 60px; max-width: 60px; } }
@media (max-width: 767px) { .vmg-post-byline { margin-top: -12px; } }

/* Newsletter sign-up after a blog post (modules/blog-signup.php): its section pulls itself up 60px (overlap style),
   which would cover the authors row — give it that room inside its own wrapper. */
.vmg-blog-signup { padding-top: 60px; margin-top: 32px; }

/* Blog posts: featured image under the byline (KWSM Markup #613; plugin modules/single-posts.php). */
.vmg-post-featured { margin: 0 0 40px; }
.vmg-post-featured img { display: block; width: 65%; height: auto; margin-inline: auto; border-radius: 24px; }
/* Kristin #1211 #1218–#1220 (Julia 2026-11-17): the image was very large — about 65% of the text column, centred, on
   desktop and tablet; full width on phones. */
@media (max-width: 767px) { .vmg-post-featured { margin-bottom: 28px; } .vmg-post-featured img { width: 100%; border-radius: 16px; } }

/* Bullet lists in post bodies end with the same space as a paragraph, so the next paragraph or button doesn't butt
   against the last bullet (Markup Group 1 #1193 #1226, #1158; Julia 2026-11-17). */
main .page-content > ul, main .page-content > ol { margin-block-end: .9em; }

/* Report + webinar download box (Julia 2026-11-17, Group 3b; plugin modules/single-posts.php). Same look as the Contact
   form box (#763): light mint, 30px radius, 32px padding, thin border, soft shadow. Report posts: cover | form. */
.vmg-post-form { margin: 40px 0 0; padding: 32px; background: var(--e-global-color-vmgmint100, #CEEBE8); border: 1px solid #E7E7E7;
  border-radius: 30px; box-shadow: 0 10px 30px rgba(0, 0, 0, .16); }
.vmg-post-form--cover { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.vmg-post-form-cover { margin: 0; }
main .vmg-post-form-cover img { display: block; width: 100%; height: auto; margin: 0; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.vmg-post-form-body > h2:first-child, .vmg-post-form-body > p:first-child + h2 { margin-top: 0; }
@media (min-width: 1367px) { .vmg-post-form { padding: 40px; } .vmg-post-form--cover { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; } }
@media (max-width: 767px) { .vmg-post-form { padding: 24px; border-radius: 20px; } .vmg-post-form--cover { grid-template-columns: 1fr; gap: 24px; } .vmg-post-form-cover { max-width: 200px; } }
/* Report posts: the opening sub-heading is lighter (H4 size, regular weight) and sits closer to the title. */
main .page-content h2.vmg-report-subhead { font-size: 24px; font-weight: 400; line-height: 1.35; margin-top: -28px; margin-bottom: 24px; color: #003726; }
@media (max-width: 767px) { main .page-content h2.vmg-report-subhead { font-size: 20px; margin-top: -12px; } }

/* Bullet lists in post bodies: markers sit inside the text column, item text indented, teal markers (Julia 2026-11-17). */
main .page-content ul, main .page-content ol { padding-inline-start: 1.75em; margin-inline-start: 0; }
main .page-content li { padding-inline-start: .35em; }
main .page-content li::marker { color: var(--teal-600, #217D7A); }
