/* RC7: compact, ALWAYS VISIBLE references. Main article/table typography stays unchanged. */
.bw-post-content .bw-source-section, .article-body .source-block {
 padding:12px 16px; margin:24px 0 12px; background:#f5f8f6;
 border:1px solid #dce6df; border-left:3px solid #af8c47; border-radius:8px;
 box-shadow:none;
}
.bw-post-content .bw-source-section h2,
html[lang^="hi"] .bw-post-content .bw-source-section h2,
.article-body .source-block .source-head strong {
 font-family:var(--bw-font-ui,system-ui,sans-serif); font-size:calc(18px * var(--read-scale,1));
 font-weight:650; line-height:1.45; color:#705826; letter-spacing:normal;
 margin:0 0 6px; padding:0; border:0;
}
.bw-post-content .bw-source-section h2::before,
.bw-post-content .bw-source-section h2::after {display:none;}
.bw-post-content .bw-source-section :is(p,li,td,th,a,span),
.article-body .source-block :is(p,li,td,th,a,span) {
 font-size:calc(14px * var(--read-scale,1)); line-height:1.5;
}
.bw-post-content .bw-source-section :is(ol,ul) {margin:4px 0 0; padding-left:1.35em;}
.bw-post-content .bw-source-section li {margin:3px 0; padding:0;}
.bw-post-content .bw-source-section p {margin:4px 0;}
.bw-post-content .bw-source-section a {color:#086d62; text-decoration:underline; text-underline-offset:2px; overflow-wrap:anywhere;}
.bw-post-content .bw-source-section .bw-table-scroll {margin:5px 0; border-radius:5px; box-shadow:none;}
.bw-post-content .bw-source-section table {min-width:0; width:100%; margin:0;}
.bw-post-content .bw-source-section :is(td,th) {padding:6px 8px; overflow-wrap:anywhere; white-space:normal;}
.bw-post-content .bw-source-section .bw-table-hint {margin:3px 0; font-size:12px!important;}
.bw-scroll-top {position:fixed; z-index:90; right:22px; bottom:calc(22px + var(--bw-dock-offset,0px) + env(safe-area-inset-bottom,0px));
 display:grid; place-items:center; width:46px; height:46px; padding:0; border:1px solid #2b8b80;
 border-radius:12px; background:#086c61; color:#fff; cursor:pointer; box-shadow:0 5px 16px #132c3b28;
 transition:background-color .16s ease,box-shadow .16s ease;}
.bw-scroll-top[hidden] {display:none!important;}
.bw-scroll-top svg {width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;}
.bw-scroll-top:hover {background:#154b49; box-shadow:0 6px 20px #132c3b38;}
.bw-scroll-top:focus-visible {outline:3px solid #a47b2f; outline-offset:4px;}
#top:focus {outline:none;}
@media(max-width:600px) {
 .bw-post-content .bw-source-section, .article-body .source-block {padding:10px 12px; margin:18px 0 10px;}
 .bw-post-content .bw-source-section :is(p,li,td,th,a,span), .article-body .source-block :is(p,li,td,th,a,span) {font-size:calc(13.5px * var(--read-scale,1)); line-height:1.45;}
 .bw-scroll-top {right:14px; bottom:calc(14px + var(--bw-dock-offset,0px) + env(safe-area-inset-bottom,0px)); width:44px; height:44px;}
}
@media(prefers-reduced-motion:reduce) {.bw-scroll-top{transition:none;} html{scroll-behavior:auto!important;}}
@media print {.bw-scroll-top{display:none!important;} .bw-post-content .bw-source-section{break-inside:avoid;}}
