/**
 * Post section headings + links (ticket #4192583, 30/10/2026, updated 18/11/2026).
 * Markup comes from inc/jh-post-sections.php and the "Post – About the guest" Elementor template.
 */

:root {
	--jh-icon-guest: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='5'/%3E%3Cpath d='M2 23c0-6 4.5-9.5 10-9.5S22 17 22 23z'/%3E%3C/svg%3E");
	--jh-icon-links: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M10 14a4.5 4.5 0 0 0 6.4 0l3.2-3.2a4.5 4.5 0 0 0-6.4-6.4L11.6 6'/%3E%3Cpath d='M14 10a4.5 4.5 0 0 0-6.4 0l-3.2 3.2a4.5 4.5 0 0 0 6.4 6.4l1.6-1.6'/%3E%3C/svg%3E");
	--jh-icon-books: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M4 2h14a2 2 0 0 1 2 2v18H6.5A2.5 2.5 0 0 1 4 19.5zM7.5 5.5v2.5h9V5.5z'/%3E%3C/svg%3E");
	--jh-icon-quotes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12.5C2 7.5 4.6 4.2 9 3l.9 2.3C7.5 6.3 6.4 8 6.3 10H10v10H2zM13 12.5c0-5 2.6-8.3 7-9.5l.9 2.3c-2.4 1-3.5 2.7-3.6 4.7H21v10h-8z'/%3E%3C/svg%3E");
	/* External link arrow. Drawn with a mask (not the ↗ character, which Apple devices show as a grey emoji box). */
	--jh-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E");
}

/* Section headings ------------------------------------------------------- */

.jh-section-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 30px 0 14px;
	padding-top: 24px;
	border-top: 1px solid #E5E5E5;
	font-family: "Chivo", sans-serif;
	font-size: 22px;
	font-weight: 700;
	font-style: normal;
	line-height: 1.3;
	color: #32333B;
}

.jh-section-heading::before {
	content: "";
	flex: 0 0 24px;
	height: 24px;
	background-color: #EE4931;
	-webkit-mask: var(--jh-icon) center / contain no-repeat;
	mask: var(--jh-icon) center / contain no-repeat;
}

.jh-section-heading--guest  { --jh-icon: var(--jh-icon-guest); }
.jh-section-heading--links  { --jh-icon: var(--jh-icon-links); }
.jh-section-heading--books  { --jh-icon: var(--jh-icon-books); }
.jh-section-heading--quotes { --jh-icon: var(--jh-icon-quotes); }

/* Heading inside the Elementor template: the class sits on the widget wrapper. */
.elementor-widget.jh-section-heading .elementor-heading-title {
	margin: 0;
	font: inherit;
	color: inherit;
}

/* The first heading follows the image separator line, so no second line. */
.wp-block-separator + .wp-block-spacer + .jh-guest-wrap .jh-section-heading,
.wp-block-separator + .jh-guest-wrap .jh-section-heading,
.wp-block-separator + .wp-block-spacer + .jh-section-heading,
.wp-block-separator + .jh-section-heading {
	border-top: 0;
	padding-top: 0;
}

/* About the guest -------------------------------------------------------- */

.jh-guest-bio {
	margin-bottom: 14px;
}

/* Links: Find out more + Books mentioned --------------------------------- */

/* Spacers between typed guest links: drop them so the list is evenly spaced. */
.wp-block-spacer:has(+ .jh-link--guest) {
	display: none;
}

/* One link per line, left aligned, no icons. */
.jh-link--guest,
.jh-link--book,
.jh-book {
	margin: 0 0 6px;
}

.jh-link a::after {
	content: "";
	display: inline-block;
	width: 0.65em;
	height: 0.65em;
	margin-left: 0.3em;
	background-color: currentColor;
	-webkit-mask: var(--jh-icon-arrow) center / contain no-repeat;
	mask: var(--jh-icon-arrow) center / contain no-repeat;
}
