/* Night mode: one red for the whole site (blagovist-accent.php).
   #ef5a52 — text, links, rubrics, lines, icons;  #de3a33 — filled buttons and chips (white text on it). */

/* 1. The theme's accent (#dd3333). body:where(.ashe-dark-mode) keeps specificity at 0,1,2: above the theme's
      «.page-content a» (0,1,1), below our components' own rules such as «.page-content .bvt a» (0,2,1). */
body:where(.ashe-dark-mode) .page-content a,
body:where(.ashe-dark-mode) .post-categories,
body:where(.ashe-dark-mode) #page-wrap .ashe-widget.widget_text a,
body:where(.ashe-dark-mode) #page-footer a:hover,
body:where(.ashe-dark-mode) .instagram-title h2 { color: #ef5a52; }
body:where(.ashe-dark-mode) blockquote { border-color: #de3a33; }
body:where(.ashe-dark-mode) .slide-caption,
body:where(.ashe-dark-mode) .page-content .submit,
body:where(.ashe-dark-mode) .page-content .post-password-form input[type="submit"],
body:where(.ashe-dark-mode) .page-content .wpcf7 [type="submit"] { background-color: #de3a33; color: #fff; }
body.ashe-dark-mode ::selection { background: #de3a33; color: #fff; }

/* 2. Red rubrics typed into texts (akathists, prayers, liturgical books): inline styles and <font color>. */
body.ashe-dark-mode .page-content [style*="color:#ff0000" i], body.ashe-dark-mode .page-content [style*="color: #ff0000" i],
body.ashe-dark-mode .page-content [style*="color:#f00;" i], body.ashe-dark-mode .page-content [style*="color: #f00;" i],
body.ashe-dark-mode .page-content [style*="color:#f00\"" i], body.ashe-dark-mode .page-content [style*="color: #f00\"" i],
body.ashe-dark-mode .page-content [style*="color:red" i], body.ashe-dark-mode .page-content [style*="color: red" i],
body.ashe-dark-mode .page-content [style*="rgb(255, 0, 0)"], body.ashe-dark-mode .page-content [style*="rgb(255,0,0)"],
body.ashe-dark-mode .page-content [style*="#e42908" i], body.ashe-dark-mode .page-content [style*="#e34234" i],
body.ashe-dark-mode .page-content [style*="#dd3333" i], body.ashe-dark-mode .page-content [style*="#cc0000" i],
body.ashe-dark-mode .page-content [style*="#c00000" i], body.ashe-dark-mode .page-content [style*="#d40000" i],
body.ashe-dark-mode .page-content [style*="#b22222" i], body.ashe-dark-mode .page-content [style*="#de3a33" i],
body.ashe-dark-mode .page-content font[color="red" i], body.ashe-dark-mode .page-content font[color="#ff0000" i],
body.ashe-dark-mode .page-content font[color="#e42908" i],
body.ashe-dark-mode .page-content p.cs_comment,
body.ashe-dark-mode .su-tabs-nav span.su-tabs-current { color: #ef5a52 !important; }
/* the same rubrics inside a reddish background block stay readable */
body.ashe-dark-mode .page-content [style*="background-color:#ff0000" i], body.ashe-dark-mode .page-content [style*="background-color: #ff0000" i] { background-color: #de3a33 !important; color: #fff !important; }

/* 3. Молитвослов plugin (molytvoslov-dark-*): its own dark reds #ff6b6b / #ff7a7a */
body.ashe-dark-mode .mlv-wrap, body.ashe-dark-mode #mlvWrap, .mlv-wrap.mlv-dark, #mlvWrap.mlv-dark { --s-red: #ef5a52 !important; --s-red-hover: #de3a33 !important; }
html body #mlvWrap.mlv-dark .mlv-bm-remove:hover { color: #ef5a52 !important; }

/* 4. Бібліотека plugin (bv-library): #ff7a7a, #ff6b5b, #ff8070 */
html body.ashe-dark-mode #bv-lib, html body #bv-lib[data-bv-theme="dark"] { --bv-accent: #ef5a52 !important; }
html body.ashe-dark-mode #bvml, html body #bvml[data-bvml-theme="dark"] { --r: #de3a33 !important; --r-light: #ef5a52 !important; }
html body #bvml[data-bvml-theme="dark"] .bvml-tab.is-on, html body.ashe-dark-mode #bvml .bvml-tab.is-on,
html body #bvml[data-bvml-theme="dark"] .bvml-topbar-btn.is-active, html body.ashe-dark-mode #bvml .bvml-topbar-btn.is-active { background: #de3a33 !important; border-color: #de3a33 !important; }
html body #bvml[data-bvml-theme="dark"] .bvml-linklist li a:hover, html body #bvml[data-bvml-theme="dark"] .bvml-works li a:hover,
html body #bvml[data-bvml-theme="dark"] .bvml-today-ttl, html body.ashe-dark-mode #bvml .bvml-today-ttl { color: #ef5a52 !important; }
html body.ashe-dark-mode #bvml .bvml-acc-btn { border-color: #de3a33 !important; }
html body.ashe-dark-mode #bvml .bvml-acc-arrow { color: #ef5a52 !important; }

/* 5. Filled buttons of «Сьогодні» and «Святі»: the same fill as the header and the reader (#de3a33, white text) */
body.ashe-dark-mode .bvt a.bvt-pill--solid, body.ashe-dark-mode .page-content .bvt a.bvt-pill--solid,
body.ashe-dark-mode .bvt .bvt-cta, body.ashe-dark-mode .bvsv-search button { background: #de3a33 !important; color: #fff !important; }

/* 6. Light theme: red rubrics typed into texts → the logo red (the Молитвослов / Бібліотека plugins keep their own
      brown-and-maroon palette in light mode on purpose) */
body:not(.ashe-dark-mode) .page-content [style*="color:#ff0000" i], body:not(.ashe-dark-mode) .page-content [style*="color: #ff0000" i],
body:not(.ashe-dark-mode) .page-content [style*="color:red" i], body:not(.ashe-dark-mode) .page-content [style*="color: red" i],
body:not(.ashe-dark-mode) .page-content [style*="rgb(255, 0, 0)"], body:not(.ashe-dark-mode) .page-content [style*="#e42908" i],
body:not(.ashe-dark-mode) .page-content [style*="#e34234" i], body:not(.ashe-dark-mode) .page-content font[color="red" i],
body:not(.ashe-dark-mode) .page-content font[color="#ff0000" i], body:not(.ashe-dark-mode) .page-content p.cs_comment,
body:not(.ashe-dark-mode) .su-tabs-nav span.su-tabs-current { color: #de3a33 !important; }
