/* Research pages (data studies) */
.rs{max-width:1080px;padding-top:28px;padding-bottom:64px}
.rs h2{margin:2.4rem 0 .8rem;font-size:1.6rem}
.rs p,.rs li{color:var(--ink-soft);line-height:1.7}
.rs-key{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:8px 0 8px}
.rs-stat{border:1px solid var(--line);border-radius:14px;padding:16px 18px;background:#fff}
.rs-stat b{display:block;font:700 1.7rem/1.1 var(--serif);color:var(--ink);font-variant-numeric:tabular-nums}
.rs-stat span{display:block;margin-top:6px;font-size:.88rem;color:var(--muted);line-height:1.45}
.rs-tablewrap{max-height:none;border:1px solid var(--line);border-radius:12px}
.rs-table{width:100%;margin:0;font-size:.9rem}
.rs-table th,.rs-table td{padding:.55rem .7rem;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.rs-table th:first-child,.rs-table td:first-child{text-align:left}
.rs-table thead th{position:sticky;top:0;background:#F6F4EF;cursor:pointer;user-select:none;white-space:normal;vertical-align:bottom;font-size:.8rem;line-height:1.3}
.rs-table thead th[aria-sort]::after{content:" ↓";color:var(--accent-600)}
.rs-table thead th[aria-sort="ascending"]::after{content:" ↑"}
.rs-table thead th:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.rs-table tbody th{font-weight:600}
.rs-table tbody th a{color:var(--ink);text-decoration:none;border-bottom:1px dotted var(--muted)}
.rs-table tbody tr:hover{background:#FBF9F4}
.rs-table tfoot th,.rs-table tfoot td{font-weight:700;background:#F6F4EF;border-top:2px solid var(--line)}
.rs-dl{margin:14px 0 0}
.rs-sources li{font-size:.92rem}
.rs-cite{margin-top:2.4rem;padding:20px 24px;border-radius:14px;background:#F6F4EF;border:1px solid var(--line)}
.rs-cite h2{margin-top:0}
.rs-citation{font-size:.9rem;overflow-wrap:anywhere}
.rs-calcs{margin-top:8px}
.popx__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.popx__grid a{display:grid;gap:6px;align-content:start;padding:18px;border:1px solid var(--line);border-radius:14px;text-decoration:none;color:var(--ink);background:#fff}
.popx__grid a:hover{border-color:var(--ink)}
.popx__grid span{font-size:14px;color:var(--muted);line-height:1.45}
@media(max-width:900px){.rs-key,.popx__grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.rs-key,.popx__grid{grid-template-columns:1fr}}
.rs .table-wrap{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
.rs{overflow-wrap:anywhere}
.rs-table th,.rs-table td{overflow-wrap:normal}
/* Category pages (/calculators/<topic>) */
.hub-feat{grid-template-columns:repeat(3,1fr)}
.hub-list .calc-item{flex-direction:column;align-items:flex-start;gap:.2rem}
.hub-list .calc-item .name{font-weight:600}
.hub-desc{font-size:.88rem;color:var(--muted);line-height:1.45}
.hub-others{display:flex;flex-wrap:wrap;gap:8px}
.hub-others a{padding:.4rem .8rem;border:1px solid var(--line);border-radius:999px;text-decoration:none;color:var(--ink);font-size:.92rem;background:#fff}
.hub-others a:hover{border-color:var(--ink)}
.dir-cat h3 a{color:inherit;text-decoration:none}
.dir-cat h3 a:hover{text-decoration:underline}
@media(max-width:900px){.hub-feat{grid-template-columns:1fr}}
