/* The research page: one research a row, on the ground between hairlines (28 Nov 2026; before, eighteen boxed cards each drew a step chart
   over a folded table of the same numbers). Left: icon, name, level and trade as one quiet line, the effect, Total to max. Right: the rank
   table. Tokens come from /static/site.css, the table and pills from components.css (BRAND.md). */
.rs-note { margin: 0 0 var(--sp-4); }
.rs-list { container-type: inline-size; margin: var(--sp-4) 0 0; border-top: 1px solid var(--border-strong); }
.rs-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); min-width: 0; padding: var(--sp-5) 0; border-bottom: 1px solid var(--border);
  scroll-margin-top: 88px; }
.rs-card:target .rs-name { color: var(--ember-soft); }
.rs-what { min-width: 0; }
.rs-head { display: flex; gap: var(--sp-3); align-items: center; }
.rs-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--surface); }
.rs-ic .ic { image-rendering: pixelated; }
.rs-hd { min-width: 0; }
.rs-name { margin: 0; font: 600 20px/1.2 var(--display, "Tektur", system-ui, sans-serif); letter-spacing: .015em; color: var(--text); }
/* level, trade and ranks as one line of words under the name */
.rs-hd .c-pills { margin: 2px 0 0; gap: 0; }
.rs-hd .c-pills > li:not(:last-child)::after { content: "\00B7"; margin: 0 7px; color: var(--text-3); font: 600 13px/1.5 var(--sans); }
.rs-hd .c-pill { padding: 0; background: none; border-radius: 0; font: 500 13px/1.5 var(--sans); color: var(--text-2); gap: 5px; }
.rs-effect { margin: var(--sp-3) 0 0; font-size: 16px; line-height: 1.45; color: var(--text); max-width: 44ch; }
.rs-extra { margin: var(--sp-2) 0 0; font-size: 14px; line-height: 1.45; color: var(--text-2); max-width: 44ch; }
.rs-total { margin: var(--sp-3) 0 0; font-size: 14px; color: var(--text-3); }
.rs-total strong { font-weight: 500; color: var(--text-3); }
.rs-sum { margin-left: 6px; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 16px; }
.rs-ranks { min-width: 0; }
.rs-ranks .c-table { margin: 0; }
.rs-ranks .c-table th { padding-top: 0; }
.rs-ranks .c-table th, .rs-ranks .c-table td { padding: 7px 10px; height: auto; font-size: 14px; }
.rs-ranks .c-table td { white-space: nowrap; }
.rs-ranks .c-table .c-t :is(th, td):first-child { position: static; min-width: 0; max-width: none; background: none; padding-left: 0; border-bottom-color: var(--border); }
.rs-ranks .c-table .c-t :is(th, td):last-child { padding-right: 0; background: none; border-bottom-color: var(--border); }
.rs-ranks .c-table .c-t thead th { border-bottom-color: var(--border-strong); }
.rs-ranks .c-table .c-t tbody tr:last-child :is(th, td) { border-bottom: 0; }
@container (min-width: 640px) {
  .rs-card { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--sp-6); align-items: start; }
}
