/* ============================================================
 * Elos Tıbbi Sözlük — terim vurgusu ve açıklama balonu
 * Tema müdahalelerine karşı html body önekiyle sertleştirilmiştir.
 * ============================================================ */

html body .ckh-gl-kapsam { --esz-accent: #6C4AB6; }

html body .ckh-gl {
	position: relative;
	display: inline;
	border-bottom: 1px dashed var(--esz-accent, #6C4AB6);
	cursor: help;
	color: inherit;
	background: none;
	padding: 0;
	font: inherit;
	text-decoration: none;
}
html body .ckh-gl:hover,
html body .ckh-gl:focus {
	border-bottom-style: solid;
	background: rgba(108, 74, 182, 0.07);
	outline: none;
}
html body .ckh-gl:focus-visible {
	outline: 2px solid var(--esz-accent, #6C4AB6);
	outline-offset: 2px;
}


/* Tanım verisi: DOM'da ve ekran okuyucularda var, görsel olarak gizli.
   display:none yerine clip yöntemi kullanılır; böylece metin arama
   motorları ve erişilebilirlik araçları için erişilebilir kalır. */
html body .ckh-gl__veri {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Balon */
html body .ckh-gl__balon {
	position: absolute;
	z-index: 99990;
	max-width: 320px;
	background: #2b2b33;
	color: #fff;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 13.5px;
	line-height: 1.55;
	font-weight: 400;
	text-align: left;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease;
	pointer-events: none;
}
html body .ckh-gl__balon--acik {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
html body .ckh-gl__balon-terim {
	display: block;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 4px;
	color: #fff;
}
html body .ckh-gl__balon-ok {
	position: absolute;
	width: 10px;
	height: 10px;
	background: #2b2b33;
	transform: rotate(45deg);
}
/* Kapat butonu: tema buton stilleri sızmasın diye tüm durumlar için sabit. */
html body .ckh-gl__balon-kapat,
html body .ckh-gl__balon-kapat:hover,
html body .ckh-gl__balon-kapat:focus,
html body .ckh-gl__balon-kapat:active {
	display: none;
	margin-top: 10px !important;
	background: rgba(255, 255, 255, 0.16) !important;
	border: 0 !important;
	border-radius: 6px !important;
	color: #ffffff !important;
	font-size: 12.5px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	text-transform: none !important;
	text-shadow: none !important;
	box-shadow: none !important;
	cursor: pointer;
	padding: 7px 14px !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}
html body .ckh-gl__balon-kapat:hover,
html body .ckh-gl__balon-kapat:focus {
	background: rgba(255, 255, 255, 0.28) !important;
}

/* Mobil: dokunmayla açılır, kapatma bağlantısı görünür */
@media (max-width: 640px) {
	html body .ckh-gl__balon {
		max-width: min(320px, calc(100vw - 32px));
		font-size: 14px;
	}
	html body .ckh-gl__balon-kapat,
	html body .ckh-gl__balon-kapat:hover,
	html body .ckh-gl__balon-kapat:focus { display: inline-block !important; }
}

@media (prefers-reduced-motion: reduce) {
	html body .ckh-gl__balon { transition: none; }
}
