/* Ufreverse Bible. Standalone pages use .ufv-site; shortcodes inherit your theme colours. */
.ufv-site {
	--ufv-bg: #fff; --ufv-fg: #1d2327; --ufv-accent: #1d4f91; --ufv-accent-fg: #fff;
	margin: 0; background: var(--ufv-bg); color: var(--ufv-fg);
	font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
	.ufv-site { --ufv-bg: #14171a; --ufv-fg: #e6e8ea; --ufv-accent: #6ea8ff; --ufv-accent-fg: #0b1020; }
}
.ufv-site a { color: var(--ufv-accent); }

.ufv-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5em 1.5em; padding: .8em 1.2em; border-bottom: 1px solid rgba(127,127,127,.28); }
.ufv-brand { font-weight: 800; font-size: 1.25em; text-decoration: none; color: inherit !important; }
.ufv-menu a { margin-left: 1.1em; text-decoration: none; font-weight: 600; }
.ufv-footer { max-width: 780px; margin: 2em auto 3em; padding: 0 1.2em; font-size: .9em; opacity: .8; text-align: center; }

.ufv-wrap {
	--ufv-fs: 1;
	--ufv-line: rgba(127,127,127,.28);
	--ufv-soft: rgba(127,127,127,.10);
	--ufv-mark: rgba(255,196,0,.38);
	max-width: 780px; margin: 1.5em auto; padding: 0 1.2em; color: inherit;
}
.ufv-wrap *, .ufv-wrap *::before, .ufv-wrap *::after { box-sizing: border-box; }
.ufv-wrap h1 { font-size: 1.9em; line-height: 1.25; margin: .3em 0 .4em; }
.ufv-wrap h1 small { font-size: .5em; font-weight: 600; opacity: .65; margin-left: .4em; }
.ufv-wrap h2 { font-size: 1.25em; margin: 1.6em 0 .6em; }
.ufv-lead { font-size: 1.05em; opacity: .85; }

.ufv-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3em; padding: 0; margin: 0 0 .4em; font-size: .85em; opacity: .85; }
.ufv-crumbs li + li::before { content: "›"; margin-right: .3em; opacity: .6; }
.ufv-crumbs a { text-decoration: none; }

/* Search form */
.ufv-form { display: flex; flex-wrap: wrap; gap: .5em; margin: 1em 0 1.2em; }
.ufv-form .ufv-q { flex: 1 1 260px; min-width: 0; padding: .6em .8em; border: 1px solid var(--ufv-line); border-radius: 6px; font-size: 1em; background: transparent; color: inherit; }
.ufv-form select, .ufv-compare select { padding: .55em .6em; border: 1px solid var(--ufv-line); border-radius: 6px; background: transparent; color: inherit; max-width: 100%; }
.ufv-form select option, .ufv-compare select option { color: #111; }
.ufv-go, .ufv-compare button { padding: .6em 1.2em; border: 0; border-radius: 6px; background: #1d4f91; color: #fff; font-weight: 600; cursor: pointer; }
.ufv-go:hover, .ufv-compare button:hover { background: #163c6e; }
.ufv-compare { margin: 1em 0; font-size: .9em; }

/* Browse lists */
.ufv-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5em; }
.ufv-index h2 { margin-top: .6em; }
.ufv-books { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1em; }
.ufv-books li { break-inside: avoid; margin: 0; }
.ufv-books a { display: block; padding: .3em .2em; text-decoration: none; border-bottom: 1px solid var(--ufv-line); }
.ufv-books a:hover, .ufv-chapter-list a:hover { background: var(--ufv-soft); }
.ufv-chapter-list { list-style: none; margin: 1em 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: .4em; }
.ufv-chapter-list li { margin: 0; }
.ufv-chapter-list a { display: block; text-align: center; padding: .6em 0; border: 1px solid var(--ufv-line); border-radius: 6px; text-decoration: none; }

/* Passage */
.ufv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; border-bottom: 2px solid var(--ufv-line); margin-bottom: .6em; }
.ufv-tools { display: none; gap: .3em; }
.ufv-tools.is-ready { display: flex; }
.ufv-tools button { border: 1px solid var(--ufv-line); background: transparent; color: inherit; border-radius: 5px; padding: .2em .6em; cursor: pointer; }
.ufv-tabs { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-wrap: wrap; gap: .3em; }
.ufv-tabs li { margin: 0; }
.ufv-tabs a { display: block; padding: .25em .8em; border: 1px solid var(--ufv-line); border-radius: 999px; text-decoration: none; font-size: .85em; }
.ufv-tabs a span { opacity: .7; font-size: .9em; }
.ufv-tabs .is-active a { background: #1d4f91; border-color: #1d4f91; color: #fff; }

.ufv-text { font-family: Georgia, "Times New Roman", serif; font-size: calc(1.12em * var(--ufv-fs)); line-height: 1.85; margin: 0 0 1em; }
.ufv-verse { transition: background .3s; }
.ufv-verse.ufv-copied, .ufv-verse:target { background: var(--ufv-mark); }
.ufv-vn { font-family: system-ui, sans-serif; font-size: .6em; font-weight: 700; margin-right: .25em; opacity: .65; cursor: pointer; user-select: none; }
.ufv-vn:hover { opacity: 1; }

/* Parallel */
.ufv-parallel { width: 100%; border-collapse: collapse; font-family: Georgia, "Times New Roman", serif; font-size: calc(1.02em * var(--ufv-fs)); line-height: 1.65; }
.ufv-parallel th { text-align: left; font-family: system-ui, sans-serif; font-size: .85em; padding: .5em; border-bottom: 2px solid var(--ufv-line); }
.ufv-parallel td { vertical-align: top; padding: .55em .5em; border-bottom: 1px solid var(--ufv-line); width: 47%; }
.ufv-parallel td.ufv-vn-cell { width: 6%; font-family: system-ui, sans-serif; font-size: .75em; font-weight: 700; opacity: .65; }
@media (max-width: 560px) {
	.ufv-books { columns: 1; }
	.ufv-parallel thead { display: none; }
	.ufv-parallel tr { display: block; border-bottom: 1px solid var(--ufv-line); padding: .4em 0; }
	.ufv-parallel td { display: block; width: auto; border-bottom: 0; }
}

/* Prev / next */
.ufv-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6em 1em; margin: 1.2em 0; }
.ufv-nav a { text-decoration: none; font-weight: 600; }
.ufv-nav .ufv-next { margin-left: auto; }
.ufv-formats, .ufv-license { font-size: .85em; opacity: .8; }

/* Search results */
.ufv-count { margin: 0 0 .8em; }
.ufv-hits { padding-left: 1.6em; }
.ufv-hits li { margin: 0 0 .9em; line-height: 1.6; }
.ufv-hit-ref { font-weight: 700; margin-right: .3em; text-decoration: none; }
.ufv-hit-text { font-family: Georgia, "Times New Roman", serif; }
.ufv-wrap mark { background: var(--ufv-mark); color: inherit; padding: 0 .1em; border-radius: 2px; }

/* Quotes (shortcodes, verse of the day) */
.ufv-quote { margin: 1.2em 0; padding: .4em 1.1em; border-left: 4px solid var(--ufv-line); background: var(--ufv-soft); border-radius: 0 6px 6px 0; }
.ufv-quote .ufv-text { margin: .5em 0; }
.ufv-cite { display: block; margin-bottom: .6em; font-style: normal; font-weight: 600; font-size: .9em; }
.ufv-cite a { text-decoration: none; }
.ufv-votd-title { margin: 0 0 .2em; text-transform: uppercase; letter-spacing: .08em; font-size: .8em; opacity: .7; }

/* API docs */
.ufv-api { width: 100%; border-collapse: collapse; font-size: .92em; }
.ufv-api th, .ufv-api td { text-align: left; padding: .5em; border-bottom: 1px solid var(--ufv-line); vertical-align: top; }
.ufv-wrap pre { overflow-x: auto; padding: 1em; border-radius: 6px; background: var(--ufv-soft); font-size: .85em; }
.ufv-wrap code { font-size: .9em; word-break: break-word; }

.ufv-notice { padding: .8em 1em; border: 1px solid var(--ufv-line); border-radius: 6px; background: var(--ufv-soft); }
