.csr-strongs-reference {
	display: inline;
	cursor: help;
	text-decoration: underline dotted;
	text-underline-offset: 0.12em;
}

.csr-strongs-reference:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.csr-tooltip {
	position: fixed;
	z-index: 2147483000;
	display: none;
	width: min(370px, calc(100vw - 24px));
	max-height: min(460px, calc(100vh - 24px));
	overflow: hidden;
	padding: 0;
	background: #fff;
	color: #1d2327;
	border: 2px solid #1d2327;
	border-radius: 3px;
	box-shadow: 0 8px 28px rgba(0,0,0,.25);
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
}

.csr-tooltip.csr-open {
	display: block;
}

.csr-tooltip h3 {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.2;
}

.csr-tooltip h4 {
	margin: 14px 0 4px;
	font-size: 15px;
	line-height: 1.3;
}

.csr-tooltip p {
	margin: 0;
	white-space: pre-line;
}

@media (max-width: 600px) {
	.csr-tooltip {
		left: 12px !important;
		right: 12px !important;
		bottom: 12px !important;
		top: auto !important;
		width: auto;
		max-height: 70vh;
	}
}


.csr-lookup {
	max-width: 760px;
}

.csr-lookup-form {
	margin: 0 0 24px;
	padding: 18px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #fff;
}

.csr-lookup-controls {
	display: flex;
	gap: 10px;
	margin-top: 8px;
}

.csr-lookup-controls input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 12px;
	font-size: 16px;
}

.csr-lookup-controls button {
	padding: 10px 18px;
	cursor: pointer;
}

.csr-lookup-help {
	margin: 8px 0 0;
	font-size: 14px;
}

.csr-lookup-message {
	margin: 0 0 20px;
	padding: 12px 14px;
	border-left: 4px solid #d63638;
	background: #fff;
}

.csr-lookup-result {
	padding: 20px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #fff;
}

.csr-lookup-result h2 {
	margin-top: 0;
}

.csr-lookup-result h3 {
	margin: 18px 0 6px;
	font-size: 1.05em;
}

.csr-lookup-result p {
	margin: 0;
	white-space: normal;
}

@media (max-width: 600px) {
	.csr-lookup-controls {
		flex-direction: column;
	}

	.csr-lookup-controls button {
		width: 100%;
	}
}


.csr-tooltip h4 {
	margin: 18px 0 6px;
	padding-bottom: 3px;
	border-bottom: 1px solid rgba(0,0,0,.12);
}

.csr-tooltip p + h4 {
	margin-top: 22px;
}


.csr-nested-reference {
	cursor: help;
	font-weight: 700;
	text-decoration: underline dotted;
	text-underline-offset: .12em;
}

.csr-nested-reference:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.csr-tooltip-depth-1,
.csr-tooltip-depth-2,
.csr-tooltip-depth-3,
.csr-tooltip-depth-4,
.csr-tooltip-depth-5,
.csr-tooltip-depth-6 {
	z-index: 2147483001;
}

@media (max-width: 600px) {
	.csr-tooltip {
		left: 12px !important;
		right: 12px !important;
		bottom: 12px !important;
		top: auto !important;
		width: auto !important;
		max-height: 70vh !important;
	}

	.csr-tooltip:not(:last-of-type) {
		display: none !important;
	}
}


/* v1.8.1 - visual alignment with Clark's Scripture Tooltip */
.csr-tooltip .csr-tooltip-header {
	background: #2b6f9f;
	color: #fff;
	margin: 0;
	padding: 10px 12px;
	border-radius: 1px 1px 0 0;
}

.csr-tooltip .csr-tooltip-header h3 {
	margin: 0;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}

.csr-tooltip .csr-tooltip-body {
	max-height: calc(min(460px, calc(100vh - 24px)) - 82px);
	overflow-y: auto;
	padding: 10px 12px 12px;
	background: #fff;
}

.csr-tooltip .csr-tooltip-number {
	margin: 0 0 8px;
	color: #0b5f9a;
	font-size: 14px;
	font-weight: 700;
}

.csr-tooltip .csr-tooltip-language {
	margin: 0 0 8px;
	padding-bottom: 7px;
	border-bottom: 1px solid #c8ccd0;
	color: #1d2327;
	font-size: 12px;
	font-weight: 600;
	opacity: .9;
}

.csr-tooltip .csr-tooltip-body h4 {
	margin: 8px 0 3px;
	padding: 0 0 3px;
	border-bottom: 1px solid #c8ccd0;
	color: #1d2327;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

.csr-tooltip .csr-tooltip-body p {
	margin: 0;
	color: #1d2327;
	white-space: pre-line;
}

.csr-tooltip .csr-tooltip-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 34px;
	padding: 5px 10px;
	background: #f4f5f6;
	border-top: 1px solid #c8ccd0;
	color: #1d2327;
	font-size: 11px;
	line-height: 1.2;
	white-space: nowrap;
}

.csr-tooltip .csr-tooltip-anchor {
	font-size: 20px;
	line-height: 1;
}

@media (max-width: 600px) {
	.csr-tooltip .csr-tooltip-body {
		max-height: calc(70vh - 78px);
	}
}

/* v1.9.0 — shared BSB Strong's usage index */
.csr-lookup-usage{margin-top:22px;padding-top:4px;border-top:1px solid #dcdcde;}
.csr-usage-links{display:flex;flex-wrap:wrap;gap:6px 12px;line-height:1.6;}
.csr-usage-links a{text-decoration:underline dotted;text-underline-offset:.12em;}
.csr-usage-results{margin-top:24px;padding-top:18px;border-top:1px solid #dcdcde;}
.csr-usage-count{margin:0 0 12px!important;color:#50575e;}
.csr-usage-result{padding:10px 0 12px;border-bottom:1px solid #e2e4e7;}
.csr-usage-result:last-child{border-bottom:0;}
.csr-usage-verse{margin-top:4px;line-height:1.55;}
.csr-usage-hit{background:#fff3a6;padding:0 .04em;font-weight:700;}

/* v1.9.1 — lookup occurrence views and LXX usage */
.csr-usage-note{color:#50575e;}
.csr-lookup-usage h3{margin-top:18px;}


/* v1.9.1 — lookup occurrence views and LXX usage */
.csr-usage-note{color:#50575e;}
.csr-lookup-usage h3{margin-top:18px;}


/* v1.9.4 - standalone lookup usage results modal */
/* v1.9.6 - keep Usage modal below Scripture/LXX popup layers so drill-down popups remain visible */
.csr-usage-links a {
    display: inline-block;
    margin: 0 .45em .3em 0;
}

html.csr-usage-modal-open,
html.csr-usage-modal-open body {
    overflow: hidden;
}

.csr-usage-modal {
    position: fixed;
    inset: 0;
    z-index: 9000000;
    display: none;
}

.csr-usage-modal.csr-open {
    display: block;
}

.csr-usage-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.42);
}

.csr-usage-modal-panel {
    position: absolute;
    left: 50%;
    top: 7vh;
    transform: translateX(-50%);
    width: min(760px, calc(100vw - 32px));
    max-height: 86vh;
    overflow: hidden;
    border: 2px solid #1d2327;
    border-radius: 4px;
    background: #fff;
    color: #1d2327;
    box-shadow: 0 12px 38px rgba(0,0,0,.28);
}

.csr-usage-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #2b6f9f;
    color: #fff;
}

.csr-usage-modal-close {
    padding: 2px 7px;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.csr-usage-modal-body {
    max-height: calc(86vh - 44px);
    overflow: auto;
    padding: 12px 14px 18px;
}

.csr-usage-modal .csr-usage-results {
    margin: 0;
}

.csr-usage-modal .csr-usage-results > h3 {
    margin-top: 0;
}

.csr-usage-result {
    margin: 0 0 14px;
    padding: 0 0 12px;
    border-bottom: 1px solid #dcdcde;
}

.csr-usage-result:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.csr-usage-verse {
    margin-top: 4px;
    line-height: 1.55;
}

.csr-usage-hit {
    padding: 0 .08em;
    font-weight: 700;
}

.csr-usage-loading,
.csr-usage-error {
    margin: 0;
}

@media (max-width: 600px) {
    .csr-usage-modal-panel {
        top: 12px;
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }

    .csr-usage-modal-body {
        max-height: calc(100vh - 68px);
    }
}


/* v1.9.8 — hierarchical Strong's definition formatting */
.csr-definition-tree {
	margin: 0;
	line-height: 1.55;
}

.csr-definition-line {
	display: grid;
	grid-template-columns: 2.7em minmax(0, 1fr);
	column-gap: .35em;
	align-items: start;
	margin: 2px 0;
}

.csr-definition-label {
	font-weight: 700;
	white-space: nowrap;
}

.csr-definition-level-0 {
	margin-top: 8px;
}

.csr-definition-level-0:first-child {
	margin-top: 0;
}

.csr-definition-level-1 {
	margin-left: 20px;
}

.csr-definition-level-2 {
	margin-left: 40px;
}

.csr-definition-note {
	display: block;
	margin-top: 9px;
	padding-top: 7px;
	border-top: 1px dotted rgba(0, 0, 0, .18);
}

.csr-tooltip .csr-definition-tree {
	font-size: inherit;
}

.csr-tooltip .csr-definition-line {
	grid-template-columns: 2.55em minmax(0, 1fr);
	margin-top: 1px;
	margin-bottom: 1px;
}

.csr-tooltip .csr-definition-level-1 {
	margin-left: 14px;
}

.csr-tooltip .csr-definition-level-2 {
	margin-left: 28px;
}

@media (max-width: 600px) {
	.csr-definition-level-1 {
		margin-left: 14px;
	}

	.csr-definition-level-2 {
		margin-left: 28px;
	}
}
