.research-highlight{background:rgba(245,220,131,.35);color:inherit;padding:.2em 0;box-decoration-break:clone;-webkit-box-decoration-break:clone}
html[data-night] .research-highlight{background:rgba(245,220,131,.18)}
mark.reader-highlight .research-highlight,.research-highlight mark.reader-highlight{background:transparent}
.research-backlinks,.research-parts{font:16px/1.6 Georgia,serif;margin:12px 0 22px;color:var(--muted,var(--ink));overflow-wrap:anywhere}
.research-backlinks summary,.research-parts summary{cursor:pointer;min-height:44px;display:list-item;padding:8px 0;box-sizing:border-box}
.research-backlinks ul{margin:0;padding-left:24px}.research-backlinks li{margin:10px 0}
.research-used-text{display:block;font-size:15px;margin-top:4px}
.research-parts a{display:block;min-height:36px;padding:4px 0}
.research-book-info,.research-reference-tools{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;margin:18px 0;font:16px/1.6 Georgia,serif}
.research-reference-tools button{font:inherit;padding:8px 12px;min-height:44px;color:var(--ink);background:var(--panel,transparent);border:1px solid var(--line);border-radius:6px;cursor:pointer}
.research-link-warning{font:16px/1.6 Georgia,serif;border-left:3px solid var(--accent);padding-left:12px}
.research-backlinks a:focus-visible,.research-backlinks summary:focus-visible,.research-parts summary:focus-visible,.research-reference-tools button:focus-visible{outline:2px solid currentColor;outline-offset:3px}

.research-reference-tools{position:sticky;top:0;z-index:12;background:var(--paper);padding:8px 0;border-bottom:1px solid var(--line)}
.research-reference-tools[hidden],.research-parts[hidden]{display:none}

/* Keep linked text below the wrapping sticky reading controls. */
#book-text[data-research-reference]:target,#book-text[data-research-reference] :target{scroll-margin-top:140px}
