/* Only library surfaces, including the dialog appended to body. */
html[data-osbs-mode="dark"] .osbs {
    --bs-ink:#edf3f7;
    --bs-muted:#bdcbd4;
    --bs-blue:#8dd2f2;
    --bs-paper:#20272d;
    --bs-tint:#2a353e;
    --bs-line:#536572;
    color-scheme:dark;
    color:var(--bs-ink);
}
html[data-osbs-mode="dark"] .osbs :is(h1,h2,h3,h4,dt,dd,.osbs-description,.osbs-use) {
    color:var(--bs-ink);
}
html[data-osbs-mode="dark"] .osbs .osbs-data dt { color:var(--bs-muted); }
html[data-osbs-mode="dark"] .osbs .osbs-description :is(p,li,strong,em,blockquote) { color:inherit; }
html[data-osbs-mode="dark"] .osbs .osbs-primary,
html[data-osbs-mode="dark"] .osbs .osbs-pagination .current {
    background:var(--bs-blue); color:#102b39;
}
html[data-osbs-mode="dark"] .osbs input::placeholder { color:var(--bs-muted); opacity:1; }
html[data-osbs-mode="dark"] .osbs :is(input,select,option) { color-scheme:dark; }
html[data-osbs-mode="dark"] dialog.osbs-reader { background:#151b20; }
html[data-osbs-mode="dark"] .osbs :is(.osbs-reader-top,.osbs-reader-toolbar,.osbs-reader-status,.osbs-reader-bottom) {
    background:var(--bs-paper); color:var(--bs-ink);
}
html[data-osbs-mode="dark"] .osbs .osbs-reader-toolbar input {
    background:var(--bs-tint); color:var(--bs-ink); border-color:var(--bs-line);
}
/* Do not invert covers, PDF canvas or its transparent selectable text layer. */
/* The compact shortcode uses text links, even when the reader link retains
   the primary-button class. Keep this after the general dark button rule. */
html[data-osbs-mode="dark"] .osbs .osbs-reference .osbs-reference-links a {
    background:none;
    color:var(--bs-blue);
}
