.bk-word {
	border-bottom: 1px dashed currentColor;
	cursor: help;
	text-decoration: none;
}

.bk-tooltip {
	position: absolute;
	z-index: 999999;
	background: var( --bk-bg, #333333 );
	color: var( --bk-color, #ffffff );
	font-size: var( --bk-font-size, 14px );
	width: var( --bk-width, 250px );
	max-width: 90vw;
	padding: 10px 12px;
	border-radius: 6px;
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.25 );
	line-height: 1.4;
}

.bk-tooltip-text {
	white-space: pre-line;
	/* Yaklaşık 3 satırla sınırla; taşarsa "devamını oku" gösterilir. */
	max-height: 4.5em;
	overflow: hidden;
}

.bk-readmore {
	display: inline-block;
	margin-top: 6px;
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	font-size: 0.9em;
	text-decoration: underline;
	cursor: pointer;
	color: inherit;
	opacity: 0.85;
}

.bk-readmore:hover {
	opacity: 1;
}

.bk-tooltip.bk-below::before {
	content: "";
	position: absolute;
	top: -6px;
	left: 16px;
	border-width: 0 6px 6px 6px;
	border-style: solid;
	border-color: transparent transparent var( --bk-bg, #333333 ) transparent;
}

.bk-tooltip.bk-above::before {
	content: "";
	position: absolute;
	bottom: -6px;
	left: 16px;
	border-width: 6px 6px 0 6px;
	border-style: solid;
	border-color: var( --bk-bg, #333333 ) transparent transparent transparent;
}

/* ---- Devamını oku modalı ---- */

.bk-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.bk-modal-box {
	position: relative;
	background: #ffffff;
	color: #222222;
	width: 100%;
	max-width: 480px;
	max-height: 80vh;
	overflow-y: auto;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 12px 40px rgba( 0, 0, 0, 0.35 );
	border-top: 4px solid var( --bk-bg, #333333 );
}

.bk-modal-close {
	position: absolute;
	top: 6px;
	right: 8px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #888888;
	padding: 4px 8px;
}

.bk-modal-close:hover {
	color: #333333;
}

.bk-modal-word {
	font-weight: 700;
	font-size: 17px;
	margin: 0 28px 12px 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #e5e5e5;
}

.bk-modal-meaning {
	white-space: pre-line;
	line-height: 1.6;
	font-size: 15px;
}
