/* PrayTime.me Bible Verses — inherits the theme's fonts and sizes; only colours and spacing are set here. */

.praybive {
	--praybive-accent: #8a5a2b;
	--praybive-surface: #fbf8f3;
	--praybive-border: #e7dccd;
	--praybive-text: #2b2620;
	--praybive-muted: #6f6558;
	--praybive-badge-bg: #f1e7d8;
	--praybive-error: #b42318;
	--praybive-radius: 10px;

	margin: 1.5em 0;
	color: var(--praybive-text);
}

/* The colour scheme setting adds praybive--scheme-light or praybive--scheme-dark; without either the visitor's system decides. */
@media (prefers-color-scheme: dark) {
	.praybive:not(.praybive--scheme-light) {
		--praybive-accent: #e0b07a;
		--praybive-surface: #221d18;
		--praybive-border: #3d342a;
		--praybive-text: #eee6da;
		--praybive-muted: #b3a797;
		--praybive-badge-bg: #3a2f24;
		--praybive-error: #f97066;
	}
}

.praybive.praybive--scheme-dark {
	--praybive-accent: #e0b07a;
	--praybive-surface: #221d18;
	--praybive-border: #3d342a;
	--praybive-text: #eee6da;
	--praybive-muted: #b3a797;
	--praybive-badge-bg: #3a2f24;
	--praybive-error: #f97066;
}

.praybive-passage {
	padding: 1.5em 1.75em;
	border: 1px solid var(--praybive-border);
	border-left: 4px solid var(--praybive-accent);
	border-radius: var(--praybive-radius);
	background: var(--praybive-surface);
}

.praybive-passage__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5em 1em;
	margin-bottom: 1em;
}

.praybive .praybive-passage__title {
	margin: 0;
	color: var(--praybive-accent);
	font-size: 1.25em;
	line-height: 1.3;
}

.praybive-passage__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em;
}

.praybive-badge {
	display: inline-block;
	padding: 0.15em 0.6em;
	border-radius: 999px;
	background: var(--praybive-badge-bg);
	color: var(--praybive-accent);
	font-size: 0.75em;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	white-space: nowrap;
	cursor: help;
}

.praybive-passage__text {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.1em;
	line-height: 1.8;
}

.praybive-passage__label {
	margin: 0 0 0.35em;
	color: var(--praybive-muted);
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.praybive-passage__actions {
	display: flex;
	gap: 0.35em;
	margin-left: auto;
}

.praybive-action {
	padding: 0.2em 0.75em;
	border: 1px solid var(--praybive-border);
	border-radius: 999px;
	background: transparent;
	color: var(--praybive-accent);
	font: inherit;
	font-size: 0.75em;
	font-weight: 600;
	line-height: 1.6;
	cursor: pointer;
}

.praybive-action:hover,
.praybive-action:focus-visible,
.praybive-action.is-done {
	border-color: var(--praybive-accent);
	background: var(--praybive-badge-bg);
}

.praybive-passage__text--lines .praybive-verse {
	display: block;
	margin-bottom: 0.35em;
}

.praybive-verse__number {
	margin-right: 0.25em;
	color: var(--praybive-accent);
	font-family: inherit;
	font-size: 0.65em;
	font-weight: 700;
	vertical-align: super;
	line-height: 0;
}

.praybive-copy-verse {
	padding: 0 0.15em;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--praybive-accent);
	font: inherit;
	font-weight: 700;
	cursor: copy;
}

.praybive-copy-verse.praybive-verse__number {
	font-size: 0.65em;
	vertical-align: super;
	line-height: 1;
}

.praybive-copy-verse:hover,
.praybive-copy-verse:focus-visible,
.praybive-copy-verse.is-done {
	background: var(--praybive-badge-bg);
}

.praybive-compare {
	margin: 0;
	padding: 0;
	list-style: none;
}

.praybive-compare__verse {
	display: grid;
	grid-template-columns: 2.25em 1fr;
	gap: 0.75em;
	padding: 1em 0;
	border-top: 1px solid var(--praybive-border);
}

.praybive-compare__verse:first-child {
	padding-top: 0;
	border-top: 0;
}

.praybive-compare__number {
	color: var(--praybive-accent);
	font-size: 1.4em;
	font-weight: 700;
	line-height: 1.2;
}

.praybive-compare__translations {
	display: grid;
	gap: 0.6em;
	margin: 0;
}

.praybive-compare__row {
	display: grid;
	grid-template-columns: 6.5em 1fr;
	gap: 0.75em;
	align-items: baseline;
}

.praybive-compare__row dt,
.praybive-compare__row dd {
	margin: 0;
}

.praybive-compare__row dd {
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.7;
}

.praybive-columns-scroll {
	overflow-x: auto;
}

.praybive-columns {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.praybive-columns th,
.praybive-columns td {
	padding: 0.6em 0.75em 0.6em 0;
	border: 0;
	border-top: 1px solid var(--praybive-border);
	background: transparent;
	text-align: left;
	vertical-align: top;
}

.praybive-columns thead th {
	border-top: 0;
}

.praybive-columns td {
	min-width: 14em;
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.7;
}

.praybive-columns tbody th {
	width: 2.5em;
	color: var(--praybive-accent);
	font-weight: 700;
}

.praybive-compare__missing,
.praybive-passage__empty {
	color: var(--praybive-muted);
	font-style: italic;
}

.praybive-passage__sources {
	margin-top: 1.25em;
	padding-top: 0.9em;
	border-top: 1px dashed var(--praybive-border);
	color: var(--praybive-muted);
	font-size: 0.85em;
	line-height: 1.5;
}

.praybive-passage__sources ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.praybive-passage__sources li + li {
	margin-top: 0.35em;
}

.praybive-passage__sources a {
	color: inherit;
}

.praybive-passage__credit {
	margin: 0.75em 0 0;
}

.praybive-picker {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75em;
	margin-bottom: 1em;
}

.praybive-picker__field {
	display: flex;
	flex: 1 1 12em;
	flex-direction: column;
	gap: 0.25em;
	min-width: 0;
	font-size: 0.85em;
	font-weight: 600;
}

.praybive-picker__field--narrow {
	flex: 0 1 6em;
}

.praybive-picker__field select {
	width: 100%;
	max-width: 100%;
	font-weight: normal;
}

.praybive-picker__submit {
	padding: 0.5em 1.25em;
	border: 0;
	border-radius: 6px;
	background: var(--praybive-accent);
	color: var(--praybive-surface);
	font-weight: 600;
	cursor: pointer;
}

.praybive-tools {
	display: flex;
	gap: 0.35em;
	margin-left: auto;
}

.praybive-tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.05em;
	min-width: 2.4em;
	height: 2.4em;
	padding: 0 0.5em;
	border: 1px solid var(--praybive-border);
	border-radius: 6px;
	background: transparent;
	color: var(--praybive-accent);
	font: inherit;
	font-size: 0.85em;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.praybive-tool[hidden],
.praybive-tools[hidden] {
	display: none;
}

.praybive-tool:hover,
.praybive-tool:focus-visible {
	border-color: var(--praybive-accent);
	background: var(--praybive-badge-bg);
}

.praybive-tool[aria-disabled="true"] {
	opacity: 0.45;
	cursor: default;
}

.praybive-tool[aria-disabled="true"]:hover {
	border-color: var(--praybive-border);
	background: transparent;
}

.praybive-tool__a {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.15em;
}

.praybive-tool__a--small {
	font-size: 0.9em;
}

.praybive-tool[aria-pressed="true"] .praybive-tool__enter,
.praybive-tool[aria-pressed="false"] .praybive-tool__exit {
	display: none;
}

/* Set by reader.js from the A− / A+ buttons; only the Bible text grows, not the headings and controls. */
.praybive--reader .praybive-compare,
.praybive--reader .praybive-columns,
.praybive--reader .praybive-search__results {
	font-size: calc(var(--praybive-font-scale, 1) * 1em);
}

.praybive--reader .praybive-passage__text {
	font-size: calc(var(--praybive-font-scale, 1) * 1.1em);
}

/* Full screen keeps the reader's own colours and a comfortable line length. */
.praybive--reader:fullscreen {
	box-sizing: border-box;
	margin: 0;
	padding: 1.5em max(1.25em, calc((100% - 52em) / 2));
	overflow-y: auto;
	background: var(--praybive-surface);
}

.praybive--reader:-webkit-full-screen {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 1.5em max(1.25em, calc((100% - 52em) / 2));
	overflow-y: auto;
	background: var(--praybive-surface);
}

.praybive--reader:fullscreen .praybive-passage {
	border-color: transparent;
	border-left-color: var(--praybive-accent);
}

.praybive--reader {
	position: relative;
}

.praybive-search-box {
	position: absolute;
	right: 0;
	z-index: 20;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	box-sizing: border-box;
	width: 24em;
	max-width: 100%;
	padding: 0.75em;
	border: 1px solid var(--praybive-border);
	border-radius: var(--praybive-radius);
	background: var(--praybive-surface);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.praybive-search-box[hidden] {
	display: none;
}

.praybive-search-box__input {
	flex: 1 1 10em;
	min-width: 0;
	font: inherit;
}

.praybive-search-box__submit {
	padding: 0.45em 1.1em;
	border: 0;
	border-radius: 6px;
	background: var(--praybive-accent);
	color: var(--praybive-surface);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.praybive-search-box__hint {
	flex-basis: 100%;
	margin: 0;
	color: var(--praybive-muted);
	font-size: 0.8em;
}

.praybive-tool[aria-expanded="true"] {
	border-color: var(--praybive-accent);
	background: var(--praybive-badge-bg);
}

.praybive-search__summary {
	margin: 0 0 1em;
	color: var(--praybive-muted);
	font-size: 0.9em;
}

.praybive-search__results {
	margin: 0;
	padding: 0;
	list-style: none;
}

.praybive-search__result {
	padding: 0.7em 0;
	border-top: 1px solid var(--praybive-border);
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.7;
}

.praybive-search__result:first-child {
	padding-top: 0;
	border-top: 0;
}

.praybive-search__reference {
	margin-right: 0.35em;
	color: var(--praybive-accent);
	font-family: system-ui, sans-serif;
	font-size: 0.85em;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.praybive-search__reference:hover,
.praybive-search__reference:focus {
	text-decoration: underline;
}

.praybive-search__text mark {
	padding: 0 0.1em;
	border-radius: 3px;
	background: var(--praybive-badge-bg);
	color: inherit;
	font-weight: 700;
}

.praybive-search__pages {
	align-items: center;
	margin-top: 1em;
}

.praybive-search__page {
	color: var(--praybive-muted);
	font-size: 0.9em;
}

.praybive-search__back {
	margin: 1.25em 0 0;
}

/* The verse a search result links to. */
.praybive-verse.is-target,
.praybive-compare__verse.is-target,
.praybive-columns tr.is-target {
	border-radius: 4px;
	background: var(--praybive-badge-bg);
	box-shadow: 0 0 0 0.2em var(--praybive-badge-bg);
}

.praybive-chapter-nav {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	margin-top: 1em;
}

.praybive-chapter-nav__link {
	color: var(--praybive-accent);
	font-weight: 600;
	text-decoration: none;
}

.praybive-chapter-nav__link:hover,
.praybive-chapter-nav__link:focus {
	text-decoration: underline;
}

.praybive-chapter-nav__link--next {
	margin-left: auto;
}

.praybive-notice {
	padding: 0.75em 1em;
	border-radius: var(--praybive-radius);
	background: var(--praybive-badge-bg);
	color: var(--praybive-text);
}

.praybive-note-marker {
	display: inline-flex;
	align-items: center;
	gap: 0.2em;
	margin: 0 0.25em;
	padding: 0.05em 0.45em;
	border: 1px solid var(--praybive-border);
	border-radius: 999px;
	background: var(--praybive-badge-bg);
	color: var(--praybive-accent);
	font: inherit;
	font-family: system-ui, sans-serif;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.4;
	vertical-align: middle;
	cursor: pointer;
}

.praybive-note-marker:hover,
.praybive-note-marker:focus-visible {
	border-color: var(--praybive-accent);
}

/* Logged-in users get an "add" marker on every verse; it stays faint until the verse is hovered or focused. */
.praybive-note-marker.is-empty {
	border-style: dashed;
	background: transparent;
	opacity: 0.35;
}

.praybive-verse:hover .praybive-note-marker.is-empty,
.praybive-compare__verse:hover .praybive-note-marker.is-empty,
.praybive-columns tr:hover .praybive-note-marker.is-empty,
.praybive-note-marker.is-empty:focus-visible,
.praybive-note-marker[aria-expanded="true"] {
	opacity: 1;
}

.praybive-note-marker[aria-expanded="true"] {
	border-color: var(--praybive-accent);
}

/* Tooltips and dropdowns are positioned against the passage by notes.js. */
.praybive-passage[data-praybive-notes-book] {
	position: relative;
}

.praybive-note-tooltip,
.praybive-note-popover {
	position: absolute;
	z-index: 20;
	box-sizing: border-box;
	border: 1px solid var(--praybive-border);
	border-radius: var(--praybive-radius);
	background: var(--praybive-surface);
	color: var(--praybive-text);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	font-family: inherit;
	font-size: 0.9rem;
	line-height: 1.5;
	text-align: left;
}

.praybive-note-tooltip[hidden],
.praybive-note-popover[hidden] {
	display: none;
}

.praybive-note-tooltip {
	width: 20em;
	max-width: calc(100% - 16px);
	padding: 0.6em 0.8em;
	pointer-events: none;
}

.praybive-note-tooltip__list {
	display: grid;
	gap: 0.6em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.praybive-note-tooltip__note + .praybive-note-tooltip__note {
	padding-top: 0.6em;
	border-top: 1px solid var(--praybive-border);
}

.praybive-note-tooltip .praybive-note__meta {
	margin-bottom: 0.2em;
}

.praybive-note-tooltip__more {
	margin: 0.6em 0 0;
	color: var(--praybive-muted);
	font-size: 0.85em;
}

.praybive-note-popover {
	width: 26em;
	max-width: calc(100% - 16px);
	max-height: 70vh;
	padding: 0.75em 0.9em 0.9em;
	overflow-y: auto;
}

.praybive-note-popover:focus {
	outline: none;
}

.praybive-note-popover__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5em;
	margin-bottom: 0.6em;
}

.praybive-note-popover__title {
	margin: 0;
	color: var(--praybive-accent);
	font-weight: 700;
}

.praybive-note-popover__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.9em;
	height: 1.9em;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 6px;
	background: transparent;
	color: var(--praybive-muted);
	cursor: pointer;
}

.praybive-note-popover__close:hover,
.praybive-note-popover__close:focus-visible {
	border-color: var(--praybive-border);
	color: var(--praybive-accent);
}

.praybive-note-popover .praybive-notes__list {
	margin-bottom: 0.75em;
}

.praybive-note-popover .praybive-notes__login {
	margin: 0;
}

.praybive-compare__verse > .praybive-note-marker,
.praybive-columns th .praybive-note-marker {
	justify-self: start;
	margin: 0.25em 0 0;
}

.praybive-notes {
	margin-top: 1.25em;
	padding-top: 0.9em;
	border-top: 1px dashed var(--praybive-border);
}

.praybive-notes__toggle {
	padding: 0.25em 0.9em;
	border: 1px solid var(--praybive-border);
	border-radius: 999px;
	background: transparent;
	color: var(--praybive-accent);
	font: inherit;
	font-size: 0.85em;
	font-weight: 600;
	cursor: pointer;
}

.praybive-notes__toggle::after {
	content: " \25BE";
}

.praybive-notes__toggle[aria-expanded="true"]::after {
	content: " \25B4";
}

.praybive-notes__toggle:hover,
.praybive-notes__toggle:focus-visible {
	border-color: var(--praybive-accent);
	background: var(--praybive-badge-bg);
}

.praybive-notes__body {
	margin-top: 0.9em;
	font-size: 0.95em;
}

.praybive-notes__body:focus {
	outline: none;
}

.praybive-notes__body[hidden],
.praybive-notes [hidden] {
	display: none;
}

.praybive-notes__empty,
.praybive-notes__hint,
.praybive-notes__login {
	margin: 0 0 0.75em;
	color: var(--praybive-muted);
}

.praybive-notes__login a {
	color: var(--praybive-accent);
	font-weight: 600;
}

.praybive-notes__message {
	margin: 0.5em 0 0;
	color: var(--praybive-muted);
	font-size: 0.9em;
}

.praybive-notes__message:empty {
	display: none;
}

.praybive-notes__message.is-error {
	color: var(--praybive-error);
}

.praybive-notes__list {
	display: grid;
	gap: 0.75em;
	margin: 0 0 1em;
	padding: 0;
	list-style: none;
}

.praybive-note {
	padding: 0.75em 0.9em;
	border: 1px solid var(--praybive-border);
	border-radius: var(--praybive-radius);
}

.praybive-note.is-private {
	border-style: dashed;
}

.praybive-note:focus {
	outline: 2px solid var(--praybive-accent);
	outline-offset: 2px;
}

.praybive-note__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25em 0.6em;
	margin: 0 0 0.4em;
	color: var(--praybive-muted);
	font-size: 0.85em;
}

.praybive-note__avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
}

.praybive-note__author {
	color: var(--praybive-text);
}

.praybive-note__verse,
.praybive-note__badge {
	padding: 0.05em 0.55em;
	border-radius: 999px;
	background: var(--praybive-badge-bg);
	color: var(--praybive-accent);
	font-size: 0.85em;
	font-weight: 600;
}

.praybive-note__content {
	margin: 0;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	line-height: 1.6;
}

.praybive-note__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em 1em;
	margin-top: 0.5em;
}

.praybive-note__votes {
	display: inline-flex;
	align-items: center;
	gap: 0.15em;
}

.praybive-note__vote {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.9em;
	height: 1.9em;
	padding: 0;
	border: 1px solid var(--praybive-border);
	border-radius: 6px;
	background: transparent;
	color: var(--praybive-muted);
	cursor: pointer;
}

.praybive-note__vote:not(:disabled):hover,
.praybive-note__vote:focus-visible {
	border-color: var(--praybive-accent);
	color: var(--praybive-accent);
}

.praybive-note__vote[aria-pressed="true"] {
	border-color: var(--praybive-accent);
	background: var(--praybive-badge-bg);
	color: var(--praybive-accent);
}

.praybive-note__vote:disabled {
	opacity: 0.45;
	cursor: default;
}

.praybive-note__score {
	min-width: 2ch;
	font-weight: 700;
	text-align: center;
}

.praybive-note__actions {
	display: inline-flex;
	gap: 0.35em;
	margin-left: auto;
}

.praybive-note__action {
	padding: 0.15em 0.7em;
	border: 1px solid var(--praybive-border);
	border-radius: 999px;
	background: transparent;
	color: var(--praybive-accent);
	font: inherit;
	font-size: 0.8em;
	font-weight: 600;
	cursor: pointer;
}

.praybive-note__action:hover,
.praybive-note__action:focus-visible {
	border-color: var(--praybive-accent);
	background: var(--praybive-badge-bg);
}

.praybive-notes__form {
	display: grid;
	gap: 0.5em;
}

.praybive-notes__form--edit {
	margin-top: 0.25em;
}

.praybive-notes__label {
	font-size: 0.85em;
	font-weight: 600;
}

.praybive-notes__text {
	box-sizing: border-box;
	width: 100%;
	min-height: 5em;
	font: inherit;
	resize: vertical;
}

.praybive-notes__visibility {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25em 1em;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 0.9em;
}

.praybive-notes__visibility legend {
	float: left;
	margin-right: 0.5em;
	padding: 0;
	font-weight: 600;
}

.praybive-notes__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em;
}

.praybive-notes__submit {
	justify-self: start;
	padding: 0.45em 1.1em;
	border: 0;
	border-radius: 6px;
	background: var(--praybive-accent);
	color: var(--praybive-surface);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.praybive-notes__submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

.praybive-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 600px) {
	.praybive-passage {
		padding: 1.1em 1em;
	}

	.praybive-compare__verse {
		grid-template-columns: 1fr;
		gap: 0.4em;
	}

	.praybive-compare__row {
		grid-template-columns: 1fr;
		gap: 0.2em;
	}
}
