/*
 * Single templates (plugin 1.17.0, user 2026-11-19) — the pieces of the Elementor Theme Builder single templates
 * (blog, webinars + reports, case studies, events, press, team bios) that come from shortcodes or from the post text
 * itself. Layout, spacing, colours of the sections and cards are global classes in Elementor; this file only styles
 * the HTML the shortcodes print (modules/single-templates.php) and the post body (blockquotes, lists, images).
 * Colours = the site palette (green-900 #003726, teal-600 #217D7A, teal-400 #00AFA8, mint-100 #CEEBE8,
 * navy-900 #0D2947, gray-700 #494949, gray-200 #E7E7E7).
 */

/* The old Hello-theme layout spacing (vmg-single-post.css) is not used when a template draws the page. */
body.vmg-tpl-single main.site-main { padding-top: 0; padding-bottom: 0; }

/* ---------- Byline: date · By Name; Name ([vmg_post_byline]) ---------- */
.vmg-byline { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 600; color: inherit; }
.vmg-byline a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.vmg-byline a:hover, .vmg-byline a:focus-visible { text-decoration-thickness: 2px; }
.vmg-byline--light { color: #FFFFFF; }
.vmg-byline--light .vmg-byline-sep { opacity: .7; }

/* ---------- Authors box at the end of the post ([vmg_post_authors]; look from vmg-single-post.css, spacing here) ---------- */
.vmg-tpl-single .vmg-post-authors { margin: 0; padding: 28px 32px; background: #EEF8F7; border-radius: 24px; }
.vmg-tpl-single .vmg-post-authors h2 { margin: 0 0 18px; font-family: Manrope, sans-serif; font-size: 20px; line-height: 1.3; font-weight: 800; color: #003726; }
.vmg-tpl-single .vmg-post-authors ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 48px; }
.vmg-tpl-single .vmg-post-authors img.vmg-author-photo { width: 72px; height: 72px; max-width: 72px; margin: 0; border-radius: 50%; object-fit: cover; flex: none; }
@media (max-width: 767px) { .vmg-tpl-single .vmg-post-authors { padding: 20px; border-radius: 20px; } .vmg-tpl-single .vmg-post-authors img.vmg-author-photo { width: 60px; height: 60px; max-width: 60px; } }

/* Post Info widget in the hero (date · Updated … · By …): author links underlined, same colour as the text. */
.elementor-widget-post-info .vmg-by a, .elementor-widget-post-info .vmg-updated a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.elementor-widget-post-info .vmg-by a:hover, .elementor-widget-post-info .vmg-by a:focus-visible { text-decoration-thickness: 2px; }

/* ---------- Category / term chips ([vmg_insight_categories], [vmg_terms]) ---------- */
.vmg-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vmg-cats li { margin: 0; padding: 0; }
.vmg-cat { display: inline-flex; align-items: center; padding: 6px 12px; border: 1.5px solid #E7E7E7; border-radius: 30px; background: #FFFFFF;
	font-size: 13.5px; line-height: 1.3; font-weight: 700; color: #003726; text-decoration: none; transition: border-color .2s ease, background-color .2s ease; }
.vmg-cat:hover, .vmg-cat:focus-visible { border-color: #217D7A; color: #003726; text-decoration: none; }
.vmg-cat:focus-visible { outline: 2px solid #0D2947; outline-offset: 2px; }
.vmg-cats a.vmg-cat, .vmg-cats a.vmg-cat:hover, .vmg-cats a.vmg-cat:focus-visible { color: #003726; } /* beats the site link colour (contrast on mint) */
.vmg-cat.is-current { background: #CEEBE8; border-color: #CEEBE8; }

/* ---------- Table of contents (Elementor "Table of Contents" widget in the sidebar) ---------- */
/* Headings the TOC jumps to stop below the sticky site header. */
.vmg-tpl-single .elementor-widget-theme-post-content :is(h2, h3, h4) { scroll-margin-top: 140px; }
/* Current section: teal text with a teal bar on its left (the widget marks it .elementor-item-active as you scroll). */
.vmg-tpl-single .elementor-toc__list-item-text-wrapper { position: relative; }
.vmg-tpl-single .elementor-toc__list-item-text.elementor-item-active { font-weight: 800; }
.vmg-tpl-single .elementor-toc__list-item-text-wrapper:has(> .elementor-item-active)::after {
	content: ""; position: absolute; left: -14px; top: 1px; bottom: 1px; width: 3px; border-radius: 3px; background: #00AFA8; }
.vmg-tpl-single .elementor-toc__body { padding-left: 14px; }

/* ---------- Post body inside the template (Post Content widget) ---------- */
.vmg-tpl-single .elementor-widget-theme-post-content { font-size: 18px; line-height: 1.75; color: #494949; }
.vmg-tpl-single .elementor-widget-theme-post-content :is(h2, h3, h4) { margin-top: 1.6em; margin-bottom: .55em; }
.vmg-tpl-single .elementor-widget-theme-post-content > :first-child,
.vmg-tpl-single .elementor-widget-theme-post-content > .elementor-widget-container > :first-child { margin-top: 0; }
.vmg-tpl-single .elementor-widget-theme-post-content img { max-width: 100%; height: auto; border-radius: 20px; }
/* Links in the post text are underlined (WCAG 1.4.1 — colour alone isn't enough), as in the old post layout. */
.vmg-tpl-single .elementor-widget-theme-post-content a:not([class*="button"]):not(.vmg-author-name) { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.vmg-tpl-single .elementor-widget-theme-post-content a:not([class*="button"]):not(.vmg-author-name):hover { text-decoration-thickness: 2px; }
.vmg-tpl-single .elementor-widget-theme-post-content :is(ul, ol) { padding-inline-start: 1.75em; margin-inline-start: 0; margin-block-end: .9em; }
.vmg-tpl-single .elementor-widget-theme-post-content li { padding-inline-start: .35em; }
.vmg-tpl-single .elementor-widget-theme-post-content li::marker { color: #217D7A; }
.vmg-tpl-single .elementor-widget-theme-post-content h2.vmg-report-subhead { font-size: 24px; font-weight: 400; line-height: 1.35; margin-top: 0; margin-bottom: 24px; color: #003726; }
.vmg-tpl-single .elementor-widget-theme-post-content .vmg-post-featured { display: none; } /* the template shows it in the hero */
@media (max-width: 767px) {
	.vmg-tpl-single .elementor-widget-theme-post-content { font-size: 16px; line-height: 1.7; }
	.vmg-tpl-single .elementor-widget-theme-post-content img { border-radius: 14px; }
}

/* Block quotes (pull quotes + "Key Point:" style callouts — as on the old site, branded): mint panel, teal bar. */
.elementor-widget-theme-post-content blockquote,
main .page-content blockquote {
	margin: 40px 0; padding: 28px 32px 28px 34px; border: 0; border-left: 6px solid #00AFA8; border-radius: 0 24px 24px 0;
	background: #EEF8F7; color: #0D2947; font-size: 19px; line-height: 1.65; font-style: normal; quotes: none;
}
.elementor-widget-theme-post-content blockquote :is(p, h4, h5, h6),
main .page-content blockquote :is(p, h4, h5, h6) { margin: 0 0 .7em; font: inherit; color: inherit; letter-spacing: 0; text-transform: none; text-align: left !important; }
.elementor-widget-theme-post-content blockquote > :last-child,
main .page-content blockquote > :last-child { margin-bottom: 0; }
.elementor-widget-theme-post-content blockquote :is(b, strong),
main .page-content blockquote :is(b, strong) { color: #003726; font-weight: 800; }
.elementor-widget-theme-post-content blockquote a,
main .page-content blockquote a { color: #217D7A; text-decoration: underline; }
@media (max-width: 767px) {
	.elementor-widget-theme-post-content blockquote,
	main .page-content blockquote { margin: 28px 0; padding: 20px 20px 20px 22px; border-left-width: 5px; border-radius: 0 18px 18px 0; font-size: 17px; }
}

/* Case studies: the opening summary (first H3 in the text) reads as a lead — larger, navy, on a mint panel with a
   teal bar; the grey rules typed around it are hidden. */
.single-case-story.vmg-tpl-single .elementor-widget-theme-post-content h3:first-of-type {
	margin: 0 0 40px; padding: 28px 32px; border-left: 6px solid #00AFA8; border-radius: 0 24px 24px 0; background: #EEF8F7;
	font-size: clamp(19px, 1.05rem + .35vw, 23px); line-height: 1.55; font-weight: 700; font-style: normal; color: #0D2947; }
.single-case-story.vmg-tpl-single .elementor-widget-theme-post-content h3:first-of-type :is(em, i) { font-style: normal; }
.single-case-story.vmg-tpl-single .elementor-widget-theme-post-content h3:first-of-type a { color: #217D7A; }
.single-case-story.vmg-tpl-single .elementor-widget-theme-post-content :is(hr:has(+ h3:first-of-type), h3:first-of-type + hr) { display: none; }
@media (max-width: 767px) { .single-case-story.vmg-tpl-single .elementor-widget-theme-post-content h3:first-of-type { padding: 20px 22px; margin-bottom: 28px; border-radius: 0 18px 18px 0; } }

/* ---------- Team bios: Service Lines / Areas of Expertise / Credentials ([vmg_member_details]) ---------- */
.vmg-member-details { display: flex; flex-direction: column; gap: 28px; padding: 28px; background: #FFFFFF; border: 1px solid #E7E7E7; border-radius: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
@media (max-width: 767px) { .vmg-member-details { padding: 22px; border-radius: 20px; gap: 22px; } }
.vmg-member-detail h2 { margin: 0 0 12px; font-family: Manrope, sans-serif; font-size: 18px; line-height: 1.3; font-weight: 800; color: #003726; }
.vmg-member-detail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vmg-member-detail li { position: relative; margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.5; color: #494949; }
.vmg-member-detail li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: #00AFA8; }

/* ---------- Newsletter sign-up placed by the template ([vmg_blog_signup]) ---------- */
.vmg-blog-signup--tpl { width: 100%; padding-top: 0; margin-top: 0; }
