/*!
 * Saransh Dainik — Hindi + Odia Text-to-Speech
 * Styles for the reusable TTS control. Brand-aware (primary #0494b1).
 */

.tts-section {
	position: relative;
}

.tts-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;  /* mobile-friendly touch target */
	min-width: 40px;
	padding: 6px 14px;
	margin: 6px 0;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 20px;
	background-color: #ffffff;
	color: #444444;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.tts-button:hover,
.tts-button:focus-visible {
	border-color: #0494b1;
	color: #0494b1;
	background-color: rgba(4, 148, 177, .05);
	outline: none;
}

.tts-button:focus {
	outline: 2px solid rgba(0, 0, 0, .2);
	outline-offset: 2px;
}

.tts-button .tts-icon {
	font-style: normal;
	font-size: 16px;
	line-height: 1;
}

.tts-button.is-speaking {
	background-color: #0494b1;
	border-color: #0494b1;
	color: #ffffff;
}

/* subtle highlight on the section being read */
.tts-speaking {
	outline: 2px solid rgba(0, 0, 0, .10);
	background: rgba(0, 0, 0, .025);
	border-radius: 6px;
}

/* small non-intrusive status message (voice unavailable / empty) */
.tts-message {
	display: inline-block;
	margin: 4px 0 4px 10px;
	padding: 4px 10px;
	border-radius: 4px;
	background-color: #fff7e6;
	border: 1px solid #f0c36d;
	color: #7a5c00;
	font-size: 13px;
	vertical-align: middle;
}

/* unsupported language / hidden controls */
.tts-unsupported,
.tts-hidden,
.tts-button.tts-hidden {
	display: none !important;
}

/* compact on small screens */
@media (max-width: 767px) {
	.tts-button {
		padding: 8px 12px;
		min-height: 40px;
		min-width: 40px;
	}
	.tts-message {
		display: block;
		margin: 6px 0 0;
	}
}
