/* ===== Reading page colours: every bar and panel changes its background AND its foreground together.
   Rule: never light text on a light ground, never dark on dark. Loaded last so a later !important can't split them. ===== */
/* Contents: one line per chapter — the number at the side, the title, the progress on the right (like a book's own contents page) */
html body .rbs-toc a{grid-template-columns:3.6em 1fr auto!important;align-items:baseline;gap:0 10px!important;padding:11px 22px 11px 16px!important}
html body .rbs-toc .rbs-num{grid-column:1;text-align:right;font:400 17px/1.3 "EB Garamond",Georgia,serif;font-variant-numeric:lining-nums tabular-nums;color:var(--ink3)}
html body .rbs-toc .rbs-t{grid-column:2!important;font-size:18px}
html body .rbs-toc .rbs-p{grid-column:3!important;grid-row:auto!important;align-self:baseline!important}
html body .rbs-toc a.on .rbs-num{color:#C4000C}
/* the selected menu item: red on the plain white ground; on any coloured ground (night or a book's own
   tinted ground) it's just that ground's own ink — cream on a dark ground, black on a
   light one — never the brand red, which clashed against colour (the user, 2026-11-18) */
html:root body .siderail a.on,html:root body .siderail a.on span,html:root body .siderail a.on .ic{color:#C4000C!important}
html:root:is(.night,.bk-tint) body .siderail a.on,
html:root:is(.night,.bk-tint) body .siderail a.on *{color:var(--ink)!important}
