/* ==========================================================================
   Spurgeon BijbelLink — tooltip in de oxblood/parchment huisstijl
   ========================================================================== */

.sbl-reference {
	cursor: pointer;
	border-bottom: 1px dotted currentColor;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.sbl-reference:hover,
.sbl-reference:focus {
	opacity: 0.8;
}

.sbl-tooltip {
	position: absolute;
	z-index: 99999;
	max-width: 420px;
	min-width: 260px;
	max-height: 70vh;
	overflow-y: auto;
	box-sizing: border-box;
	padding: 0;
	background: #faf6f0;
	color: #2b2018;
	border: 1px solid #d9c9b3;
	border-top: 4px solid #7b2d1e;
	box-shadow: 0 8px 24px rgba(43, 32, 24, 0.18);
	border-radius: 3px;
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 17px;
	line-height: 1.55;
	opacity: 0;
	transform: translateY(4px);
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.sbl-tooltip-content {
	padding: 18px 20px 16px;
}

.sbl-tooltip-brand {
	padding: 8px 20px;
	background: #f0e6d8;
	border-top: 1px solid #e0d0b8;
	text-align: center;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 11.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sbl-tooltip-brand a {
	color: #7b2d1e;
	text-decoration: none;
}

.sbl-tooltip-brand a:hover {
	text-decoration: underline;
}

.sbl-tooltip.sbl-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.sbl-tooltip::before {
	content: '';
	position: absolute;
	width: 12px;
	height: 12px;
	background: inherit;
	border-left: 1px solid #d9c9b3;
	border-top: 1px solid #d9c9b3;
	transform: rotate(45deg);
	top: -7px;
	left: 24px;
}

.sbl-tooltip-header {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.02em;
	color: #7b2d1e;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e7dbc9;
}

.sbl-tooltip-translation-label {
	font-weight: 600;
	font-size: 13px;
	color: #7b2d1e;
	opacity: 0.85;
	letter-spacing: normal;
}

.sbl-tooltip-header-link {
	color: inherit;
	text-decoration: none;
	font-weight: 400;
	opacity: 0.7;
}

.sbl-tooltip-header-link:hover {
	opacity: 1;
}

.sbl-tooltip-body {
	margin: 0;
}

.sbl-tooltip-verse {
	display: block;
	margin-bottom: 8px;
}

.sbl-tooltip-verse:last-of-type {
	margin-bottom: 0;
}

.sbl-tooltip-verse-num {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	color: #7b2d1e;
	font-size: 12px;
	vertical-align: super;
	margin-right: 3px;
}

.sbl-tooltip-chapter-link {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #e7dbc9;
	text-align: right;
}

.sbl-tooltip-chapter-link a {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 13px;
	font-weight: 600;
	color: #7b2d1e;
	text-decoration: none;
	letter-spacing: 0.01em;
}

.sbl-tooltip-chapter-link a:hover {
	text-decoration: underline;
}

.sbl-tooltip-loading,
.sbl-tooltip-error,
.sbl-tooltip-empty {
	font-style: italic;
	color: #8a7a63;
	margin: 0;
	font-size: 15px;
}

.sbl-tooltip-error {
	color: #a33;
}

/* ---------------- Extra secties: kruisverwijzingen / kanttekeningen / commentaar ---------------- */

.sbl-extras {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #e7dbc9;
}

.sbl-details {
	margin-bottom: 6px;
}

.sbl-details summary {
	cursor: pointer;
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 600;
	font-size: 13px;
	color: #7b2d1e;
	padding: 4px 0;
	list-style: none;
}

.sbl-details summary::-webkit-details-marker {
	display: none;
}

.sbl-details summary::before {
	content: '▸';
	display: inline-block;
	margin-right: 6px;
	transition: transform 0.15s ease;
	font-size: 11px;
}

.sbl-details[open] summary::before {
	transform: rotate(90deg);
}

.sbl-details-body {
	padding: 6px 4px 10px 18px;
	font-size: 14.5px;
	line-height: 1.5;
}

.sbl-crossref-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sbl-crossref-chip {
	/* Reset alle stijl die het thema mogelijk site-breed op <button>
	   zet (hoofdletters, dikgedrukt, volle breedte, etc.) — daarna
	   bouwen we de compacte pil-stijl zelf helemaal opnieuw op. */
	all: unset;
	box-sizing: border-box;
	display: inline-block;
	background: #f0e6d8;
	border: 1px solid #e0d0b8;
	border-radius: 10px;
	padding: 1px 8px;
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 11.5px;
	font-weight: 400;
	font-style: normal;
	text-transform: none;
	letter-spacing: normal;
	white-space: nowrap;
	color: #7b2d1e;
	cursor: pointer;
	line-height: 1.6;
}

.sbl-crossref-chip:hover,
.sbl-crossref-chip.sbl-active {
	background: #e7d5ba;
}

.sbl-crossref-preview {
	margin-top: 8px;
	padding: 8px 10px;
	background: #faf6f0;
	border-left: 2px solid #7b2d1e;
	font-size: 14px;
}

.sbl-crossref-preview-link {
	margin-top: 6px;
	text-align: right;
}

.sbl-crossref-preview-link a {
	font-size: 12.5px;
	font-weight: 600;
	color: #7b2d1e;
	text-decoration: none;
}

.sbl-crossref-preview-link a:hover {
	text-decoration: underline;
}

.sbl-annotation-list {
	margin: 0;
	padding-left: 18px;
}

.sbl-annotation-list li {
	margin-bottom: 6px;
}

.sbl-annotation-list li:last-child {
	margin-bottom: 0;
}

.sbl-annotation-lemma {
	font-style: italic;
	font-weight: 600;
	color: #7b2d1e;
}

.sbl-tooltip.sbl-theme-dark .sbl-annotation-lemma {
	color: #c9a15a;
}

.sbl-commentary-item {
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px dashed #e7dbc9;
}

.sbl-commentary-item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.sbl-commentary-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	margin: 0 0 3px;
	color: #2b2018;
}

.sbl-commentary-excerpt {
	margin: 0 0 4px;
	color: #4a3d2c;
}

.sbl-commentary-link {
	font-size: 12.5px;
	font-weight: 600;
	color: #7b2d1e;
	text-decoration: none;
}

.sbl-commentary-link:hover {
	text-decoration: underline;
}

/* Donker thema: extra secties */

.sbl-tooltip.sbl-theme-dark .sbl-extras {
	border-top-color: #4a241a;
}

.sbl-tooltip.sbl-theme-dark .sbl-details summary {
	color: #c9a15a;
}

.sbl-tooltip.sbl-theme-dark .sbl-crossref-chip {
	background: #3a2117;
	border-color: #4a241a;
	color: #c9a15a;
}

.sbl-tooltip.sbl-theme-dark .sbl-crossref-chip:hover,
.sbl-tooltip.sbl-theme-dark .sbl-crossref-chip.sbl-active {
	background: #4a241a;
}

.sbl-tooltip.sbl-theme-dark .sbl-crossref-preview {
	background: #2b1712;
	border-left-color: #c9a15a;
	color: #f0e6d8;
}

.sbl-tooltip.sbl-theme-dark .sbl-crossref-preview-link a {
	color: #c9a15a;
}

.sbl-tooltip.sbl-theme-dark .sbl-commentary-item {
	border-bottom-color: #4a241a;
}

.sbl-tooltip.sbl-theme-dark .sbl-commentary-title {
	color: #f0e6d8;
}

.sbl-tooltip.sbl-theme-dark .sbl-commentary-excerpt {
	color: #d8c9b3;
}

.sbl-tooltip.sbl-theme-dark .sbl-commentary-link {
	color: #c9a15a;
}

.sbl-tooltip.sbl-theme-dark .sbl-tooltip-loading,
.sbl-tooltip.sbl-theme-dark .sbl-tooltip-empty {
	color: #a3907a;
}

/* ---------------- Donker (oxblood) thema ---------------- */

.sbl-tooltip.sbl-theme-dark {
	background: #2b1712;
	color: #f0e6d8;
	border: 1px solid #4a241a;
	border-top: 4px solid #c9a15a;
}

.sbl-tooltip.sbl-theme-dark::before {
	border-left: 1px solid #4a241a;
	border-top: 1px solid #4a241a;
}

.sbl-tooltip.sbl-theme-dark .sbl-tooltip-header {
	color: #c9a15a;
	border-bottom-color: #4a241a;
}

.sbl-tooltip.sbl-theme-dark .sbl-tooltip-translation-label {
	color: #c9a15a;
}

.sbl-tooltip.sbl-theme-dark .sbl-tooltip-verse-num {
	color: #c9a15a;
}

.sbl-tooltip.sbl-theme-dark .sbl-tooltip-chapter-link {
	border-top-color: #4a241a;
}

.sbl-tooltip.sbl-theme-dark .sbl-tooltip-chapter-link a {
	color: #c9a15a;
}

.sbl-tooltip.sbl-theme-dark .sbl-tooltip-brand {
	background: #2b1712;
	border-top-color: #4a241a;
}

.sbl-tooltip.sbl-theme-dark .sbl-tooltip-brand a {
	color: #c9a15a;
}

.sbl-tooltip.sbl-theme-dark .sbl-tooltip-brand:not(:has(a)) {
	color: #a3907a;
}

.sbl-tooltip.sbl-theme-dark .sbl-tooltip-loading,
.sbl-tooltip.sbl-theme-dark .sbl-tooltip-error {
	color: #a3907a;
}

/* ---------------- Mobiel ---------------- */

/* ---------------- Tablet ---------------- */

@media (max-width: 820px) {
	.sbl-tooltip {
		max-width: min(420px, calc(100vw - 32px));
	}
}

/* ---------------- Mobiel ---------------- */

@media (max-width: 480px) {
	.sbl-tooltip {
		max-width: calc(100vw - 32px);
		min-width: 0;
		font-size: 16px;
	}

	/* Iets grotere tikdoelen voor vingerbediening. */
	.sbl-crossref-chip {
		padding: 4px 10px;
	}

	.sbl-details summary {
		padding: 8px 0;
	}
}
