/* Related articles swipe deck. Tokens only; motion = transform/opacity and respects reduced-motion. */
.rs { margin-top: 40px; display: grid; gap: 14px; min-width: 0; }
.rs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .rs-head h2 { font-size: 19px; margin: 0; }
.rs-nav { display: flex; gap: 8px; } .rs-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong, var(--border)); background: var(--surface); color: var(--text); font-size: 1.2rem; cursor: pointer; transition: background .25s, border-color .25s; } .rs-nav button:hover:not(:disabled) { border-color: var(--accent-2); background: var(--accent-2-soft); } .rs-nav button:disabled { opacity: .35; cursor: default; }
.rs-track { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 6px 8% 14px; scroll-padding-inline: 8%; scrollbar-width: none; outline: none; }
.rs-track::-webkit-scrollbar { display: none; } .rs-track:focus-visible { box-shadow: 0 0 0 2px var(--accent-2); border-radius: 20px; }
.rs-card { flex: 0 0 84%; scroll-snap-align: center; display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden; border: 1px solid var(--border-strong, var(--border)); background: var(--surface); opacity: .72; transform: scale(.955); transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .5s, border-color .3s; }
.rs-card.is-on { opacity: 1; transform: none; border-color: var(--accent-2-border); }
.rs-img { display: block; aspect-ratio: 16 / 10; background: rgb(var(--fg-rgb) / .04); overflow: hidden; position: relative; }
.rs-img img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .6s ease; } .rs-img img.is-loaded { opacity: 1; }
.rs-img:not(.has-img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(var(--fg-rgb) / .07) 50%, transparent 70%); background-size: 200% 100%; animation: rs-shimmer 1.6s linear infinite; pointer-events: none; }
.rs-img.is-done::after { display: none; }
@keyframes rs-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.rs-ph { position: absolute; inset: 0; display: grid; place-items: center; } .rs-ph i { width: 40%; height: 8px; border-radius: 4px; background: rgb(var(--fg-rgb) / .08); display: block; margin: 4px; }
.rs-body { display: grid; gap: 6px; padding: 14px 16px 16px; align-content: start; } .rs-body small { color: var(--text-faint, var(--text-muted)); font-size: .78rem; }
.rs-body h3 { margin: 0; font-size: 1rem; line-height: 1.7; } .rs-body h3 a { color: inherit; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rs-body p { margin: 0; color: var(--text-muted); font-size: .86rem; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rs-more { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 700; text-decoration: none; }
.rs-dots { display: flex; justify-content: center; gap: 4px; } .rs-dots button { width: 24px; height: 24px; border: 0; background: transparent; padding: 0; cursor: pointer; display: grid; place-items: center; } .rs-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--border-strong, rgb(var(--fg-rgb) / .25)); transition: width .35s, background .3s; } .rs-dots button[aria-current="true"]::before { width: 22px; background: var(--accent-2); }
@media (min-width: 720px) { .rs-card { flex-basis: 44%; } .rs-track { padding-inline: 28%; scroll-padding-inline: 28%; } }
@media (min-width: 1000px) { .rs-card { flex-basis: 32%; } .rs-track { padding-inline: 0; scroll-padding-inline: 0; } .rs-card { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rs-card, .rs-img img, .rs-dots button::before { transition: none; } .rs-img::after { animation: none; } }
