.rw-research-block { color: var(--ink); scroll-margin-top: 6rem; min-width: 0; }
.rw-research-block h2 { margin: 0 0 1rem; }
.rw-section-head p { margin: 0; line-height: 1.6; max-width: 48rem; color: var(--muted); }
.rw-table-tools, .rw-citation-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; font-size: .875rem; }
.rw-table-tools { margin: 1.8rem 0 .8rem; color: var(--muted); }
.rw-table-tools label { display: inline-flex; align-items: center; gap: .65rem; }
.rw-sort-wrap { position: relative; display: inline-grid; }
.rw-sort-wrap::after { content: ""; position: absolute; pointer-events: none; right: .95rem; top: 40%; width: .4rem; height: .4rem; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
#rw-sort, #rw-copy { appearance: none; border: 1px solid var(--line); border-radius: .4rem; background: white; color: var(--ink); font: inherit; font-size: .875rem; padding: .55rem .85rem; cursor: pointer; }
#rw-sort { padding-right: 2.1rem; }
.rw-research-block :is(select,button,pre,a,.rw-table-view):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rw-table-view { overflow-x: auto; border: 1px solid var(--line); border-radius: .65rem; background: white; }
.rw-score-table { width: 100%; min-width: 33rem; border-collapse: collapse; font-size: 1rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.rw-score-table :is(td,th) { padding: .8rem 1.2rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rw-score-table thead th { background: #f5f7f7; color: var(--muted); font-size: .875rem; font-weight: 600; }
.rw-score-table th:first-child { text-align: left; }
.rw-score-table tbody th { font-weight: 500; }
.rw-score-table tbody tr:last-child > * { border-bottom: 0; }
.rw-score-table td strong { color: var(--accent); font-weight: 750; }
.rw-source-note { font-size: .875rem; color: var(--muted); line-height: 1.65; margin: .8rem 0 0; }
.rw-source-note a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.rw-author-list { display: flex; flex-wrap: wrap; gap: .45rem 0; list-style: none; margin: 0; padding: 0; line-height: 1.55; }
.rw-author-list li { white-space: nowrap; }
.rw-author-list li:not(:last-child)::after { content: "·"; color: var(--muted); padding: 0 .75rem; }
.rw-citation-panel { border: 1px solid var(--line); border-radius: .65rem; overflow: hidden; background: #f7f9f9; }
.rw-citation-toolbar { padding: .7rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.rw-citation-panel pre { margin: 0; padding: 1.15rem; white-space: pre-wrap; overflow-wrap: anywhere; font: .875rem/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; }
.rw-citation-panel code { font: inherit; }
#rw-copy-feedback { margin: 0; font-size: .875rem; color: var(--ink); }
#rw-copy-feedback:not(:empty) { padding: 0 1.15rem 1rem; }
@media (max-width: 650px) {
  .rw-score-table :is(td,th) { padding: .8rem .75rem; }
  .rw-score-table { min-width: 29rem; }
}
