.res-head { margin-bottom: 26px; }
.res-head h1 { margin: 6px 0 12px; }

/* ---------- Jump to ---------- */
.res-jump { display: flex; align-items: center; gap: 14px 16px; flex-wrap: wrap; padding: 20px 2px 22px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.res-jump-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); flex-shrink: 0; line-height: 1.6; padding-right: 2px; }
.res-jump-links { display: flex; flex-wrap: wrap; gap: 7px; }
.res-jump-links a { font-size: 12.5px; font-weight: 540; color: var(--text-dim); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); transition: color .15s, border-color .15s, background .15s; }
.res-jump-links a:hover { color: var(--accent); border-color: rgba(88,168,125,0.4); background: rgba(88,168,125,0.07); }

/* ---------- Stacked sections ---------- */
.res-sections { }
.res-section { padding: 40px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 150px; max-width: 760px; }
.res-section:last-child { border-bottom: none; }
.res-sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.res-sec-num { font-size: 13px; color: var(--accent); letter-spacing: 0.06em; }
.res-sec-head h2 { font-size: 26px; }
.res-overview { font-size: 15px; line-height: 1.7; color: var(--text-dim); margin-bottom: 22px; }

.res-links { list-style: none; border-top: 1px solid var(--rule); }
.res-links li { border-bottom: 1px solid var(--rule); }
.res-links a { display: block; padding: 13px 6px; transition: background .15s, padding-left .15s; }
.res-links a:hover { background: rgba(255,255,255,0.02); padding-left: 12px; }
.res-name { display: flex; align-items: center; gap: 7px; font-weight: 560; font-size: 15px; color: var(--text); }
.res-links a:hover .res-name { color: var(--accent); }
.res-ext { display: inline-flex; color: var(--text-faint); }
.res-ext svg { width: 13px; height: 13px; }
.res-links a:hover .res-ext { color: var(--accent); }
.res-desc { display: block; font-size: 13px; color: var(--text-dim); margin-top: 3px; line-height: 1.5; }

/* ---------- Try this callout ---------- */
.res-try { margin-top: 20px; padding: 14px 16px; border-radius: 10px; background: rgba(88,168,125,0.07); border: 1px solid rgba(88,168,125,0.22); font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }
.res-try-tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-right: 9px; }

/* ---------- Back to top ---------- */
.res-top { position: fixed; bottom: 24px; right: 24px; width: 42px; height: 42px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; z-index: 90; box-shadow: var(--shadow); }
.res-top.show { opacity: 1; pointer-events: auto; transform: none; }
.res-top:hover { border-color: var(--accent); color: var(--accent); }
.res-top svg { width: 18px; height: 18px; }

@media (max-width: 620px) {
  .res-section { padding: 30px 0; }
}
