/* HealthSpandan Paragraph Voice 1.6.0 - brand: blue #1565c0, green #2e7d32, orange #ef6c00 */

/* Per-paragraph speaker button (icon only, so no extra text is added to the page) */
.single .entry-content button.hs-voice-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 28px;
	height: 28px;
	min-width: 0;
	margin: -4px 8px -4px 0;
	padding: 0;
	vertical-align: middle;
	border: 1px solid #bbd6f5;
	border-radius: 50%;
	background: #f5f9ff;
	color: #1565c0;
	font-size: 0;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: 0 1px 3px rgba(21, 101, 192, .15);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background .15s, color .15s, border-color .15s;
}
.single .entry-content button.hs-voice-btn:hover {
	background: #e3f0fd;
	color: #0d47a1;
}
.single .entry-content button.hs-voice-btn:focus-visible {
	outline: 3px solid #ef6c00;
	outline-offset: 2px;
}
.single .entry-content button.hs-voice-btn[aria-pressed="true"] {
	background: #1565c0;
	border-color: #1565c0;
	color: #fff;
}
.single .entry-content button.hs-voice-btn svg {
	display: block;
	width: 16px;
	height: 16px;
	fill: currentColor;
	pointer-events: none;
}

/* Section button inside an H2 heading: bigger, green, so it reads as "this whole section" */
.single .entry-content button.hs-voice-btn.hs-voice-sec {
	width: 34px;
	height: 34px;
	margin: -4px 12px -4px 0;
	border-color: #2e7d32;
	background: #fff;
	color: #2e7d32;
	box-shadow: 0 1px 4px rgba(46, 125, 50, .25);
}
.single .entry-content button.hs-voice-btn.hs-voice-sec:hover {
	background: #e6f5ee;
	color: #1b5e20;
}
.single .entry-content button.hs-voice-btn.hs-voice-sec[aria-pressed="true"] {
	background: #2e7d32;
	border-color: #2e7d32;
	color: #fff;
}
.single .entry-content button.hs-voice-btn.hs-voice-sec svg {
	width: 18px;
	height: 18px;
}
/* A heading being read keeps its own colours; only a green outline marks it */
.single .entry-content h2.hs-voice-active,
.single .entry-content h3.hs-voice-active,
.single .entry-content h4.hs-voice-active {
	outline: 3px solid #2e7d32;
	outline-offset: 3px;
}

/* Button row placed above lists */
.single .entry-content .hs-voice-row {
	margin: 0 0 .35em;
	line-height: 1;
}

/* Paragraph being read: no layout shift (background + shadow only) */
.single .entry-content p.hs-voice-active,
.single .entry-content ul.hs-voice-active,
.single .entry-content ol.hs-voice-active,
.single .entry-content summary.hs-voice-active {
	background: #eaf3fe;
	box-shadow: 0 0 0 6px #eaf3fe, -10px 0 0 0 #2e7d32;
	border-radius: 6px;
}

/* "Listen to the full article" bar */
.single .entry-content .hs-voice-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 0 0 1.3em;
	padding: .6em .8em;
	background: #f5f9ff;
	border: 1px solid #d9e2ec;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(13, 71, 161, .06);
	font-size: 15px;
	line-height: 1.4;
}
.single .entry-content .hs-voice-bar [hidden] {
	display: none !important;
}
.single .entry-content .hs-voice-bar button.hs-vb {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-sizing: border-box;
	min-height: 38px;
	margin: 0;
	padding: .45em 1em;
	border: 1px solid #1565c0;
	border-radius: 999px;
	background: #1565c0;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.single .entry-content .hs-voice-bar button.hs-vb:hover {
	background: #0d47a1;
	border-color: #0d47a1;
}
.single .entry-content .hs-voice-bar button.hs-vb-ghost {
	background: #fff;
	color: #1565c0;
}
.single .entry-content .hs-voice-bar button.hs-vb-ghost:hover {
	background: #e3f0fd;
	color: #0d47a1;
}
.single .entry-content .hs-voice-bar button.hs-vb:focus-visible,
.single .entry-content .hs-voice-bar select:focus-visible {
	outline: 3px solid #ef6c00;
	outline-offset: 2px;
}
.single .entry-content .hs-voice-bar button.hs-vb svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}
.single .entry-content .hs-voice-bar .hs-vopts {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin: 0 0 0 auto;
}
.single .entry-content .hs-voice-bar label.hs-vsel {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: #52606d;
	font-size: 14px;
	font-weight: 400;
}
.single .entry-content .hs-voice-bar select.hs-vrate,
.single .entry-content .hs-voice-bar select.hs-vpick {
	width: auto;
	max-width: 160px;
	min-height: 34px;
	margin: 0;
	padding: .3em .5em;
	border: 1px solid #d9e2ec;
	border-radius: 8px;
	background: #fff;
	color: #1f2933;
	font-size: 14px;
}

.single .entry-content .hs-voice-bar label.hs-vcapwrap {
	cursor: pointer;
}
.single .entry-content .hs-voice-bar input.hs-vcaptoggle {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: #1565c0;
}

.single .entry-content .hs-voice-bar label.hs-vsec {
	flex: 1 1 100%;
	margin: 0;
}
.single .entry-content .hs-voice-bar select.hs-vsecsel {
	flex: 1 1 auto;
	width: auto;
	max-width: 100%;
	min-height: 34px;
	margin: 0;
	padding: .3em .5em;
	border: 1px solid #d9e2ec;
	border-radius: 8px;
	background: #fff;
	color: #1f2933;
	font-size: 14px;
}
.single .entry-content .hs-voice-bar label.hs-vsec[hidden],
.single .entry-content .hs-voice-bar label.hs-vpickwrap[hidden] {
	display: none !important;
}
.single .entry-content pre.hs-vdebug {
	margin: 0 0 1em;
	padding: 8px;
	background: #f5f7fa;
	border-radius: 8px;
	font-size: 11px;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-all;
}

/* Words of the paragraph being read: the sentence is tinted, the word being spoken pops out in colour */
.single .entry-content .hs-w-sent {
	background: #fff3c4;
	border-radius: 4px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.single .entry-content .hs-w-on {
	position: relative;
	z-index: 1;
	border-radius: 6px;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	animation: hsPop .32s ease-out both;
}
.single .entry-content .hs-w-on.hs-c0 {
	--hsc: #ef6c00;
	background: linear-gradient(135deg, #ef6c00, #ffa726);
}
.single .entry-content .hs-w-on.hs-c1 {
	--hsc: #1565c0;
	background: linear-gradient(135deg, #1565c0, #42a5f5);
}
.single .entry-content .hs-w-on.hs-c2 {
	--hsc: #2e7d32;
	background: linear-gradient(135deg, #2e7d32, #66bb6a);
}
.single .entry-content .hs-w-on.hs-c3 {
	--hsc: #c2185b;
	background: linear-gradient(135deg, #c2185b, #f06292);
}
@keyframes hsPop {
	0% {
		box-shadow: 0 0 0 0 var(--hsc), 0 0 0 0 rgba(0, 0, 0, 0);
	}
	55% {
		box-shadow: 0 0 0 8px var(--hsc), 0 8px 18px rgba(0, 0, 0, .32);
	}
	100% {
		box-shadow: 0 0 0 3px var(--hsc), 0 4px 12px rgba(0, 0, 0, .28);
	}
}

/* Control strip at the bottom of the screen while reading */
.hs-vcap {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99998;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
	background: #0b2545;
	color: #fff;
	box-shadow: 0 -3px 12px rgba(0, 0, 0, .25);
}
.hs-vcap[hidden] {
	display: none !important;
}
.hs-vcap button {
	box-sizing: border-box;
	min-width: 112px;
	min-height: 40px;
	margin: 0;
	padding: .3em 1em;
	border: 1px solid #fff;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.hs-vcap button.hs-vcap-pause {
	background: #fff;
	color: #0b2545;
}
.hs-vcap button:focus-visible {
	outline: 3px solid #ef6c00;
	outline-offset: 2px;
}

/* Small message at the bottom of the screen */
.hs-voice-toast {
	position: fixed;
	left: 50%;
	bottom: 18px;
	z-index: 99999;
	max-width: min(92vw, 460px);
	padding: .75em 1em;
	background: #0b2545;
	color: #fff;
	border-radius: 10px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
	font-size: 14px;
	line-height: 1.6;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
	transition: opacity .2s, transform .2s;
}
.hs-voice-toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}

@media (max-width: 480px) {
	.single .entry-content .hs-voice-bar .hs-vopts {
		width: 100%;
		margin-left: 0;
	}
	.single .entry-content .hs-voice-bar label.hs-vsel {
		flex: 1 1 140px;
	}
	.single .entry-content .hs-voice-bar select.hs-vrate,
	.single .entry-content .hs-voice-bar select.hs-vpick {
		flex: 1 1 auto;
		max-width: none;
	}
	.single .entry-content .hs-voice-bar label.hs-vsec {
		flex: 1 1 100%;
	}
	.single .entry-content button.hs-voice-btn.hs-voice-sec {
		margin-right: 8px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.single .entry-content button.hs-voice-btn,
	.hs-voice-toast {
		transition: none;
	}
	.single .entry-content .hs-w-on {
		animation: none;
		box-shadow: 0 0 0 3px var(--hsc);
	}
}
@media print {
	.hs-vcap,
	.hs-voice-bar,
	.hs-voice-btn,
	.hs-voice-row,
	.hs-voice-toast {
		display: none !important;
	}
}
