/* Молитвослов — reader and landing. Fonts are the Bible module's files (same URLs → one download for the reader):
   Source Serif 4 for civil text, Triodion TB (Unicode CS, the face of our printed books). Red = site red only. */
@font-face{font-family:'BVB Serif';font-style:normal;font-weight:400 600;src:url(../blagovist-bible/fonts/SourceSerif4-normal-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;font-display:swap}
@font-face{font-family:'BVB Serif';font-style:normal;font-weight:400 600;src:url(../blagovist-bible/fonts/SourceSerif4-normal-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;font-display:swap}
@font-face{font-family:'BVB Serif';font-style:normal;font-weight:400 600;src:url(../blagovist-bible/fonts/SourceSerif4-normal-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;font-display:swap}
@font-face{font-family:'BVB Serif';font-style:normal;font-weight:400 600;src:url(../blagovist-bible/fonts/SourceSerif4-normal-punct.woff2) format('woff2');unicode-range:U+0020-0040,U+005B-0060,U+007B-007E,U+00A0-00BF,U+00D7,U+2010-2027,U+2030-203A;font-display:swap}
@font-face{font-family:'BVB Serif';font-style:italic;font-weight:400;src:url(../blagovist-bible/fonts/SourceSerif4-italic-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;font-display:swap}
@font-face{font-family:'BVB Serif';font-style:italic;font-weight:400;src:url(../blagovist-bible/fonts/SourceSerif4-italic-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;font-display:swap}
@font-face{font-family:'BVB Triodion';src:url(../blagovist-bible/fonts/TriodionTB.woff2) format('woff2');font-display:swap}
@font-face{font-family:'BVB Ponomar';src:url(../blagovist-bible/fonts/PonomarTB.woff2) format('woff2');font-display:swap}

.bvm {
	--bvm-red: #de3a33;
	--bvm-ink: #1e1e1e;
	--bvm-text: #2b2724;
	--bvm-muted: #6e6862;
	--bvm-line: #eeeae6;
	--bvm-tint: #fbf6f4;
	--bvm-bg: #fff;
	--bvm-size: 20px;
	--bvm-read: "BVB Serif", Georgia, "Times New Roman", serif;
	--bvm-cs: "BVB Triodion", "BVB Ponomar", "Ponomar Unicode", serif;
	--bvm-sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	max-width: 760px;
	margin: 0 auto;
	color: var(--bvm-text);
	font-family: var(--bvm-sans);
	text-align: left;
}
body.ashe-dark-mode .bvm, html[data-theme="dark"] .bvm, body[data-theme="dark"] .bvm {
	--bvm-red: #ef5a52;
	--bvm-ink: #ece8e3;
	--bvm-text: #d9d4ce;
	--bvm-muted: #a29b94;
	--bvm-line: #353331;
	--bvm-tint: #2b2a29;
	--bvm-bg: #222;
}
.bvm *, .bvm *::before, .bvm *::after { box-sizing: border-box; }
.bvm [id] { scroll-margin-top: 72px; }
.bvm a { color: inherit; }
.bvm button { font: inherit; letter-spacing: 0; text-transform: none; }

/* ---------- toolbar: languages + contents + size, sticks while reading ---------- */
.bvm-bar {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; gap: 8px;
	margin: 0 -12px 12px; padding: 8px 12px;
	background: var(--bvm-bg); border-bottom: 1px solid var(--bvm-line);
}
.admin-bar .bvm-bar { top: 32px; }
@media (max-width: 782px) { .admin-bar .bvm-bar { top: 0; } }
.bvm-modes { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.bvm-modes::-webkit-scrollbar { display: none; }
.page-content .bvm-modes a, .bvm-modes a {
	flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
	border: 1px solid var(--bvm-line); border-radius: 18px; white-space: nowrap;
	font: 600 14px/1 var(--bvm-sans); color: var(--bvm-ink); text-decoration: none;
}
.bvm-modes .bvm-short { display: none; }
@media (max-width: 520px) {
	.bvm-modes .bvm-long { display: none; }
	.bvm-modes .bvm-short { display: inline; }
	.page-content .bvm-modes a, .bvm-modes a { padding: 0 11px; font-size: 13px; }
}
.bvm-modes a[aria-selected="true"] { background: var(--bvm-red); border-color: var(--bvm-red); color: #fff !important; }
.bvm-tools { display: flex; gap: 4px; flex: none; }
.bvm .bvm-ic {
	display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 36px; padding: 0; margin: 0;
	border: 1px solid var(--bvm-line); border-radius: 18px; background: var(--bvm-bg); color: var(--bvm-ink);
	font: 600 13px/1 var(--bvm-sans); cursor: pointer;
}
.bvm .bvm-ic:hover { border-color: var(--bvm-red); color: var(--bvm-red); }
.bvm-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.bvm-ic[hidden] { display: none; }
@media (max-width: 480px) { .bvm-tools [data-act="smaller"] { display: none; } }

.bvm-resume { margin: 0 0 12px; }
.bvm-resume button, .bvm-resume a {
	display: inline-block; padding: 8px 14px; border: 0; border-radius: 18px; cursor: pointer;
	background: var(--bvm-tint); color: var(--bvm-red) !important; font: 600 14px/1.2 var(--bvm-sans); text-decoration: none;
}

/* ---------- contents of a long text ---------- */
.bvm-toc { display: none; }
.bvm-tocpanel[hidden] { display: none; }
.bvm-tocpanel {
	position: absolute; left: 0; right: 0; top: 100%; max-height: min(70vh, 560px); overflow: auto; overscroll-behavior: contain;
	background: var(--bvm-bg); border: 1px solid var(--bvm-line); border-radius: 0 0 12px 12px; box-shadow: 0 12px 24px rgba(0,0,0,.12);
}
.bvm-tocpanel .bvm-toc { display: block; margin: 0; border: 0; border-radius: 0; background: none; }
.bvm-tocpanel .bvm-toc ol { padding-top: 12px; }
.bvm-ic[aria-expanded="true"] { border-color: var(--bvm-red); color: var(--bvm-red); }
.bvm-toc ol { list-style: none; margin: 0; padding: 0 14px 12px; columns: 2 240px; column-gap: 24px; }
.bvm-toc li { break-inside: avoid; margin: 0; padding: 3px 0; font: 15px/1.35 var(--bvm-read); }
.bvm-toc li.bvm-l1 { font-weight: 600; color: var(--bvm-red); padding-top: 8px; }
.bvm-toc li.bvm-l2 { padding-left: 12px; }
.bvm-toc a { text-decoration: none; }
.bvm-toc a:hover { color: var(--bvm-red); }
.bvm-pane[lang="cu"] .bvm-toc li, .bvm-tocpanel[lang="cu"] .bvm-toc li { font-family: var(--bvm-cs); font-size: 17px; }

/* ---------- text ---------- */
.bvm-text {
	font-family: var(--bvm-read); font-size: var(--bvm-size); line-height: 1.6; color: var(--bvm-text);
	overflow-wrap: break-word;
}
/* hyphens come from the build (soft hyphens); browser hyphenation breaks a vowel from its stress mark */
.bvm-text { hyphens: manual; -webkit-hyphens: manual; }
.bvm-pane[lang="cu"] .bvm-text, .bvm .bvm-cu {
	font-family: var(--bvm-cs) !important; font-size: calc(var(--bvm-size) * 1.16); line-height: 1.5;
	hyphens: manual; -webkit-hyphens: manual;
}
.bvm-pane[lang="cu"] .bvm-text .bvm-cu, .bvm-cu .bvm-cu { font-size: 1em; }
.bvm [lang="uk"]:not(.bvm-pane) { font-family: var(--bvm-read); }
.bvm-pane[lang="cu"] .bvm-civ { font-family: var(--bvm-read); font-size: .86em; }
.bvm-text p { margin: 0 0 .55em; }
.bvm-pane--our .bvm-p { text-indent: 1em; text-align: justify; }
.bvm-pane--our .bvm-p:has(> .bvm-d:first-child) { text-indent: 0; }
.bvm .bvm-text h2, .bvm .bvm-text h3, .bvm .bvm-text h4 {
	font-family: inherit; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.3;
	text-align: center; color: var(--bvm-red); margin: 1.4em 0 .5em;
}
.bvm .bvm-text .bvm-t { font-size: 1.3em; margin-top: .8em; }
.bvm .bvm-text .bvm-h { font-size: 1.08em; }
.bvm .bvm-text h2:first-child { margin-top: .2em; }
.bvm-rub { color: var(--bvm-red); font-size: .9em; text-align: justify; }
.bvm-irm, .bvm-ref, .bvm-pod, .bvm-verse { font-size: .94em; text-indent: 1em; }
.bvm-r { color: var(--bvm-red); }
.bvm-g { color: var(--bvm-muted); }
.bvm-s { font-size: .86em; }
.bvm-i { font-style: italic; }
.bvm-b { font-weight: 600; }
.bvm-d { float: left; font-size: 2.6em; line-height: .86; margin: .05em .08em -.05em 0; color: var(--bvm-red); }
.bvm-rule { border: 0; border-top: 1px solid var(--bvm-line); margin: 1.5em 25%; }
.bvm-fnref { font: 600 .62em/1 var(--bvm-sans); }
.bvm-fnref a { color: var(--bvm-red) !important; text-decoration: none; padding: 0 2px; }
.bvm-notes { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--bvm-line); font-size: .86em; }
.bvm-notes ol { padding-left: 1.4em; margin: 0; }
.bvm-notes li { margin-bottom: .5em; }
.bvm-fnback { text-decoration: none; color: var(--bvm-red) !important; }

/* old texts: one red, one face, no box from the theme */
.bvm .bvm-text .l, .bvm .bvm-text .k, .bvm .bvm-text .red, .bvm .bvm-text .color-red, .bvm .bvm-text .zachala,
.bvm .bvm-text .first-letter-red::first-letter, .bvm .bvm-text .Basic_-_red_word, .bvm .bvm-text .red-small { color: var(--bvm-red); }
.bvm .bvm-text .slavic h2, .bvm .bvm-text .slavic h3, .bvm .bvm-text .slavic > p, .bvm .bvm-text .slavic > span,
.bvm .bvm-text .slavic > a, .bvm .bvm-text .triucs, .bvm .bvm-text .triodion, .bvm .bvm-text .slavic {
	font-family: var(--bvm-cs) !important; font-size: inherit; margin-top: 0;
}
.bvm .bvm-text .slavic h2, .bvm .bvm-text .slavic h3 { font-size: 1.08em; margin: 1.2em 0 .4em; }
.bvm-pane--old .bvm-text { text-align: left; }
.bvm-pane--old .bvm-text [lang="cu"] p, .bvm-pane--old .bvm-text p[lang="cu"] { text-align: left; }
.bvm .bvm-text img { max-width: 100%; height: auto; }

/* ---------- after the text ---------- */
.bvm-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 32px 0 16px; font-family: var(--bvm-sans); }
.page-content .bvm-nav a, .bvm-nav a {
	display: block; padding: 12px 14px; border: 1px solid var(--bvm-line); border-radius: 12px;
	color: var(--bvm-ink); text-decoration: none; font: 600 15px/1.3 var(--bvm-sans);
}
.bvm-nav a:hover { border-color: var(--bvm-red); }
.bvm-nav small { display: block; margin-bottom: 4px; font-weight: 400; font-size: 12px; color: var(--bvm-muted); }
.bvm-nav .bvm-next { grid-column: 2; text-align: right; }
.bvm-nav .bvm-up { grid-column: 1 / -1; text-align: center; border: 0; color: var(--bvm-red); }

/* two cards one under the other, full width, the same frame as the Titlo strip */
.bvm-promo { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 24px; }
.bvm-promo > * { margin: 0 !important; }
.bvm-card {
	display: flex; gap: 16px; align-items: center; padding: 14px 20px 14px 14px;
	border: 1px solid var(--bvm-line); border-radius: 12px; background: var(--bvm-bg);
	font: 14.5px/1.5 var(--bvm-sans); color: var(--bvm-muted);
}
.bvm-card img { flex: none; width: 64px; height: 64px; border-radius: 14px; }
.bvm-card > div { flex: 1 1 auto; min-width: 0; }
.bvm-card strong { display: block; font-size: 17px; line-height: 1.3; color: var(--bvm-ink); margin-bottom: 2px; }
.bvm-card p { margin: 0; }
.bvm-stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 640px) { .bvm-card { align-items: flex-start; } .bvm-card img { width: 52px; height: 52px; border-radius: 12px; } }
.page-content .bvm-card .bvm-more, .bvm-card .bvm-more {
	display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 10px; white-space: nowrap;
	font: 600 14px/1 var(--bvm-sans); text-decoration: none;
}
.page-content .bvm-store, .bvm-store {
	display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 12px; border-radius: 10px;
	background: #000; border: 1px solid #000; color: #fff !important; text-decoration: none !important;
	font-family: var(--bvm-sans); transition: transform .15s, box-shadow .15s;
}
.bvm-store:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.bvm-store svg { width: 24px; height: 24px; flex: none; }
.bvm-store span { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
@media (max-width: 540px) { .bvm-store { padding: 0 12px 0 10px; } .bvm-store b { font-size: 15px; } }
.bvm-store small { font-size: 10px; letter-spacing: .02em; opacity: .85; }
.bvm-store b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
body.ashe-dark-mode .bvm-store { border-color: #5a5653; }
.bvm-card .bvm-more { background: var(--bvm-red); color: #fff !important; margin-top: 8px; }

/* ---------- landing ---------- */
.bvm-lead { font: 17px/1.5 var(--bvm-read); color: var(--bvm-muted); text-align: center; margin: 0 0 16px; }
.bvm .bvm-find input[type="search"] {   /* the theme styles inputs with !important-free but more specific rules */
	width: 100%; height: 46px; padding: 0 16px 0 42px; border: 1px solid #d9d3cd !important; border-radius: 23px !important;
	background: var(--bvm-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236e6862' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M12.5 12.5 17 17'/%3E%3C/svg%3E") no-repeat 16px 50% !important;
	color: var(--bvm-ink); font: 16px var(--bvm-sans); box-shadow: none !important;
}
body.ashe-dark-mode .bvm .bvm-find input[type="search"] { border-color: var(--bvm-line) !important; }
.bvm-find input:focus { outline: 2px solid var(--bvm-red); outline-offset: 0; border-color: transparent; }
.bvm-land .bvm-resume { margin: 12px 0 0; }
.bvm-jump { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 14px -12px 6px; padding: 0 12px 4px; }
.bvm-jump::-webkit-scrollbar { display: none; }
.page-content .bvm-jump a, .bvm-jump a {
	flex: none; padding: 8px 12px; border: 1px solid var(--bvm-line); border-radius: 18px;
	font: 600 13px/1 var(--bvm-sans); color: var(--bvm-ink); text-decoration: none; white-space: nowrap;
}
.bvm-today, .bvm-grp { margin: 22px 0 0; }
.bvm .bvm-today h2, .bvm .bvm-grp h2 {
	margin: 0 0 8px; font: 600 13px/1.3 var(--bvm-sans); letter-spacing: .06em; text-transform: uppercase;
	color: var(--bvm-red); text-align: left;
}
.bvm-today { padding: 12px 16px; border-radius: 14px; background: var(--bvm-tint); }
.bvm-today ul, .bvm-grp ul { list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .bvm-grp ul { columns: 2; column-gap: 20px; } }
.bvm-today li, .bvm-grp li { break-inside: avoid; margin: 0; }
.page-content .bvm-land li a, .bvm-land li a {
	display: block; padding: 11px 0; border-bottom: 1px solid var(--bvm-line);
	font: 18px/1.3 var(--bvm-read); color: var(--bvm-ink); text-decoration: none;
}
.bvm-today li:last-child a { border-bottom: 0; }
.bvm-land li a:hover { color: var(--bvm-red); }
.bvm-land li.bvm-more a { font-size: 15px; font-family: var(--bvm-sans); color: var(--bvm-muted); }
.bvm-land li.bvm-more a::after { content: " →"; }
.bvm-empty { margin: 24px 0; text-align: center; color: var(--bvm-muted); }
.bvm-land .bvm-promo { margin-top: 32px; }

/* The theme clips .main-container and .post-content (overflow: hidden, a float clearfix) — that turns position: sticky
   off, so the bar scrolled away. flow-root keeps floats contained without clipping. Only on the reader pages. */
body.bvm-reader .main-container, body.bvm-reader .post-content { overflow: visible; display: flow-root; }
