/* Blagovist Bible reader (/bibliia). Tokens follow «Сьогодні» (today.css). Mobile first; one column up to 760 px. */
/* Church Slavonic: Triodion TB (the face of our printed books), Ponomar TB as fallback. OFL, see fonts/OFL.txt */
@font-face { font-family: "BVB Triodion"; src: url("fonts/TriodionTB.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "BVB Ponomar"; src: url("fonts/PonomarTB.woff2") format("woff2"); font-display: swap; }
.bvb {
	--bvb-red: #c0312b;
	--bvb-ink: #1e1e1e;
	--bvb-text: #2b2724;
	--bvb-muted: #6e6862;
	--bvb-dim: #7d766f;
	--bvb-line: #eeeae6;
	--bvb-tint: #fbf6f4;
	--bvb-hl: #fbeee4;
	--bvb-hl-line: #c0312b;
	--bvb-bg: #fff;
	--bvb-serif: "Playfair Display", Georgia, serif;
	--bvb-sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--bvb-read: Georgia, "Times New Roman", serif;
	--bvb-cs: "BVB Triodion", "BVB Ponomar", "Ponomar Unicode", serif;
	--bvb-size: 19px;
	max-width: 760px;
	margin: 0 auto;
	color: var(--bvb-ink);
	font-family: var(--bvb-sans);
	text-align: left;
}
body.ashe-dark-mode .bvb, html[data-theme="dark"] .bvb, body[data-theme="dark"] .bvb {
	--bvb-red: #ef7a72;
	--bvb-ink: #ece6e1;
	--bvb-text: #ddd6d0;
	--bvb-muted: #b2aaa3;
	--bvb-dim: #9a928b;
	--bvb-line: #3a3431;
	--bvb-tint: #2a2422;
	--bvb-hl: #3a2a24;
	--bvb-hl-line: #ef7a72;
	--bvb-bg: #1b1716;
}
.bvb *, .bvb *::before, .bvb *::after { box-sizing: border-box; }
.bvb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-content .bvb a, .bvb a { color: inherit; text-decoration: none; }

/* buttons and selects */
.bvb .bvb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 40px; padding: 0 14px; margin: 0;
	border: 1px solid var(--bvb-line); border-radius: 20px; background: var(--bvb-bg);
	color: var(--bvb-ink); font: 600 14px/1 var(--bvb-sans); letter-spacing: 0; text-transform: none; cursor: pointer;
}
.bvb .bvb-btn:hover, .bvb .bvb-btn[aria-pressed="true"], .bvb .bvb-btn[aria-expanded="true"] { border-color: var(--bvb-red); color: var(--bvb-red); }
.bvb-sel {
	height: 40px; padding: 0 30px 0 12px; margin: 0;
	border: 1px solid var(--bvb-line); border-radius: 20px; background-color: var(--bvb-bg); color: var(--bvb-ink);
	font: 15px/1 var(--bvb-sans); max-width: 100%;
	-webkit-appearance: none; appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: right 16px top 18px, right 11px top 18px; background-size: 5px 5px; background-repeat: no-repeat;
}
.bvb-sel--book { flex: 1 1 auto; min-width: 0; }
.bvb-sel--ch { flex: 0 0 auto; width: 84px; }

/* top bar: book, chapter, settings */
.bvb-bar { display: flex; gap: 8px; align-items: center; padding: 8px 0 4px; }
.bvb-pick { display: flex; gap: 8px; flex: 1 1 auto; min-width: 0; margin: 0; }
.bvb-btn--set { flex: none; width: 44px; padding: 0; font-family: var(--bvb-serif) !important; font-size: 17px !important; }

.bvb-set { margin: 8px 0; padding: 12px 16px; border: 1px solid var(--bvb-line); border-radius: 12px; background: var(--bvb-tint); }
.bvb-set-in { display: grid; gap: 12px; }
.bvb-set fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.bvb-set legend { float: left; width: 100%; margin: 0 0 2px; padding: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--bvb-muted); }
.bvb-set label { display: inline-flex; gap: 6px; align-items: center; font-size: 15px; color: var(--bvb-text); cursor: pointer; }
.bvb-size .bvb-btn { width: 52px; }

/* title and the reading bar */
.bvb .bvb-h1 { margin: 16px 0 4px; font-family: var(--bvb-serif); font-size: 26px; line-height: 1.25; font-weight: 600; color: var(--bvb-ink); text-align: left; }
.bvb-h1-sub { display: block; margin-top: 4px; font-family: var(--bvb-sans); font-size: 15px; font-weight: 400; color: var(--bvb-muted); }
.bvb-ref {
	position: sticky; top: 0; z-index: 5;
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	margin: 8px 0 0; padding: 8px 0; background: var(--bvb-bg); border-bottom: 1px solid var(--bvb-line);
}
.bvb-ref-t { font-weight: 600; color: var(--bvb-red); font-size: 15px; }
.bvb-ref-z { font-weight: 400; color: var(--bvb-muted); margin-left: 6px; }
.admin-bar .bvb-ref { top: 46px; }
@media (min-width: 783px) { .admin-bar .bvb-ref { top: 32px; } }

/* text */
.bvb-text { font-family: var(--bvb-read); font-size: var(--bvb-size); line-height: 1.65; color: var(--bvb-text); }
.bvb .bvb-ch-h { margin: 28px 0 8px; font-family: var(--bvb-sans); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bvb-muted); text-align: left; }
.bvb-audio { margin: 0 0 10px; }
.bvb-yt { position: relative; margin: 0 0 12px; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; }
.bvb-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bvb .bvb-v { position: relative; margin: 0; padding: 3px 12px 3px 14px; scroll-margin-top: 72px; }
.bvb .bvb-v--sup { font-style: italic; color: var(--bvb-muted); font-size: .9em; padding-bottom: 6px; }
.bvb-n {
	display: inline-block; min-width: 1.4em; margin-right: 2px;
	font-family: var(--bvb-sans); font-size: .62em; font-weight: 700; line-height: 1; vertical-align: .45em;
	color: var(--bvb-red) !important; opacity: .85; cursor: pointer;
}
.bvb-z { font-family: var(--bvb-sans); font-size: .62em; font-weight: 600; color: var(--bvb-muted); vertical-align: .45em; margin-right: 4px; white-space: nowrap; }

/* the reading: a soft band with a line on the left; the rest of the chapter a little quieter */
.has-sel .bvb-v:not(.is-sel):not(.is-picked):not(:target) { opacity: .62; }
.has-sel .bvb-v.is-sel { background: var(--bvb-hl); box-shadow: inset 3px 0 0 var(--bvb-hl-line); }
.bvb-v.sel-a { border-top-right-radius: 8px; padding-top: 8px; margin-top: 6px; }
.bvb-v.sel-z { border-bottom-right-radius: 8px; padding-bottom: 8px; margin-bottom: 6px; }
.bvb-v:target, .bvb-v.is-picked { background: var(--bvb-tint); box-shadow: inset 3px 0 0 var(--bvb-muted); color: var(--bvb-text); }
.bvb-v.is-picked { background: var(--bvb-hl); }
.bvb--only .has-sel .bvb-v:not(.is-sel):not(.bvb-v--sup) { display: none; }
.bvb--only .bvb-ch:not(:has(.is-sel)) { display: none; }

/* two texts side by side */
.bvb-t2 { display: block; margin-top: 2px; color: var(--bvb-muted); font-size: .92em; }
@media (min-width: 760px) {
	.bvb--par .bvb-v:not(.bvb-v--sup) { display: grid; grid-template-columns: auto 1fr 1fr; gap: 0 18px; align-items: start; }
	.bvb--par .bvb-v .bvb-z { grid-column: 1 / -1; }
	.bvb--par .bvb-t2 { margin-top: 0; font-size: 1em; color: inherit; }
}
.bvb [lang="cu"] { font-family: var(--bvb-cs); font-size: 1.12em; line-height: 1.6; }

/* chapter navigation */
.bvb-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 28px 0 8px; padding-top: 16px; border-top: 1px solid var(--bvb-line); }
.bvb-nav-a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 22px; font-weight: 600; font-size: 15px; color: var(--bvb-red) !important; }
.bvb-nav-a:hover { background: var(--bvb-tint); }
.bvb-nav-all { color: var(--bvb-muted) !important; font-weight: 400; }

/* share bar for picked verses */
.bvb-share {
	position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 50;
	display: flex; align-items: center; gap: 6px; max-width: calc(100% - 24px); padding: 6px 6px 6px 14px;
	border-radius: 26px; background: var(--bvb-ink); color: var(--bvb-bg); box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.bvb-share[hidden] { display: none; }
.bvb-share-t { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bvb .bvb-share .bvb-btn { min-height: 36px; background: transparent; color: inherit; border-color: rgba(255,255,255,.35); }
.bvb-empty { padding: 24px 0; }

@media (max-width: 480px) {
	.bvb .bvb-h1 { font-size: 23px; }
	.bvb .bvb-v { padding-left: 10px; padding-right: 6px; }
	.bvb-share-t { display: none; }
}
@media print {
	.bvb-bar, .bvb-set, .bvb-ref .bvb-btn, .bvb-nav, .bvb-share, .bvb-audio { display: none !important; }
	.has-sel .bvb-v { color: #000; }
}

/* the theme clips .post-content and .main-container with overflow:hidden, which kills position:sticky; clip does not */
body.page-id-732 .post-content, body.page-id-732 .main-container { overflow: clip; }

/* today's readings: one quiet line, opens on tap */
.bvb-today { margin: 4px 0 0; font-size: 15px; }
.bvb-today summary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; cursor: pointer; color: var(--bvb-red); font-weight: 600; list-style: none; }
.bvb-today summary::-webkit-details-marker { display: none; }
.bvb-today summary::after { content: "▾"; font-size: 12px; }
.bvb-today[open] summary::after { content: "▴"; }
.bvb-today p { margin: 0 0 8px; line-height: 1.9; color: var(--bvb-muted); }
.bvb-today a { color: var(--bvb-red) !important; white-space: nowrap; }

/* translator's notes */
.bvb-fn { font-family: var(--bvb-sans); font-size: .7em; vertical-align: .5em; margin-left: 2px; color: var(--bvb-red) !important; }
.bvb-notes { margin: 12px 0 0 14px; padding-top: 8px; border-top: 1px solid var(--bvb-line); font-family: var(--bvb-sans); font-size: 14px; line-height: 1.5; color: var(--bvb-muted); }
.bvb .bvb-notes p { margin: 0 0 4px; }
.bvb-notes a { color: var(--bvb-red) !important; font-weight: 600; margin-right: 4px; }
.bvb-notes p:target { background: var(--bvb-hl); }
.bvb-t i { font-style: italic; }
.bvb-t [lang] i, .bvb [lang="cu"] i { font-style: normal; }
