.jr { padding: clamp(28px, 4vw, 52px) 0 clamp(56px, 7vw, 96px); }
.jr :where(h1, h2, h3) { color: var(--ink); letter-spacing: -.02em; }
.jr img { display: block; }
.jr-pagehead { padding-bottom: clamp(20px, 3vw, 32px); margin-bottom: clamp(24px, 3.5vw, 40px); border-bottom: 1px solid var(--line); }
.jr-pagehead h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin: 0 0 8px; }
.jr-pagehead p { color: var(--muted); font-size: 16.5px; margin: 0; max-width: 70ch; }
.jr-pagehead p a { color: var(--brand); font-weight: 700; }
.jr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.jr-main { min-width: 0; }

.jr-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px); }
.jr-item { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.jr-item-media { position: relative; display: block; overflow: hidden; border-radius: 18px; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.jr-cat-float { position: absolute; left: 14px; top: 14px; z-index: 1; }
.jr-item-body { flex: 1; align-content: start; gap: 10px !important; }
.jr-item-foot { margin-top: auto; padding-top: 4px; }
.jr-item-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.jr-item:hover .jr-item-media img { transform: scale(1.05); }
.jr-item-body { display: grid; gap: 12px; min-width: 0; }
.jr-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.jr-cat { display: inline-block; padding: 4px 11px; border-radius: 6px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.jr-cat:hover { background: var(--ink); color: #fff; }
.jr-item-title { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 800; line-height: 1.25; }
.jr-item-title a { color: var(--ink); text-decoration: none; transition: color .2s; }
.jr-item-title a:hover { color: var(--brand); }
.jr-item-excerpt { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.jr-item-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.jr-author { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.jr-avatar { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 800; }
.jr-avatar.is-lg { flex-basis: 46px; width: 46px; height: 46px; font-size: 17px; }
.jr-avatar.is-xl { flex-basis: 72px; width: 72px; height: 72px; font-size: 26px; background: var(--brand); }
.jr-dot { width: 4px; height: 4px; border-radius: 50%; background: #c9ced9; }
.jr-read { margin-left: auto; color: var(--ink); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid var(--brand); padding-bottom: 2px; }
.jr-read i { transition: transform .2s; }
.jr-read:hover { color: var(--brand); }
.jr-read:hover i { transform: translateX(4px); }

.jr-side { display: grid; gap: 22px; position: sticky; top: 24px; }
.jr-widget { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.jr-widget-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); position: relative; }
.jr-widget-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 36px; height: 2px; background: var(--brand); }
.jr-widget-title i { color: var(--brand); }
.jr-search { position: relative; margin: 0; }
.jr-search input { width: 100%; height: 48px; padding: 0 52px 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-soft); font-size: 14.5px; color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s; }
.jr-search input:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-100); }
.jr-search button { position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; border: 0; border-radius: 9px; background: var(--brand); color: #fff; }
.jr-cats { list-style: none; margin: 0; padding: 0; display: grid; }
.jr-cats a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: color .2s, padding .2s; }
.jr-cats li:last-child a { border-bottom: 0; }
.jr-cats a em { font-style: normal; min-width: 30px; text-align: center; padding: 2px 8px; border-radius: 999px; background: var(--line-2); color: var(--muted); font-size: 12px; transition: background .2s, color .2s; }
.jr-cats a:hover, .jr-cats a.active { color: var(--brand); padding-left: 6px; }
.jr-cats a:hover em, .jr-cats a.active em { background: var(--brand); color: #fff; }
.jr-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: jr; }
.jr-mini a { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.jr-mini img { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.jr-mini.is-ranked li { counter-increment: jr; }
.jr-mini.is-ranked a { position: relative; }
.jr-mini.is-ranked a::before { content: counter(jr); position: absolute; left: -6px; top: -6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; border: 2px solid #fff; }
.jr-mini span { display: grid; gap: 4px; min-width: 0; }
.jr-mini strong { font-size: 14px; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.jr-mini small { font-size: 12.5px; color: var(--muted); }
.jr-mini a:hover strong { color: var(--brand); }
.jr-products { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.jr-products a { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 8px; margin: -8px; border-radius: 12px; transition: background .2s; }
.jr-products a:hover { background: var(--bg-soft); }
.jr-products img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); }
.jr-products span { display: grid; gap: 4px; min-width: 0; }
.jr-products strong { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-products em { font-style: normal; font-weight: 800; color: var(--brand); font-size: 14.5px; }
.jr-products del { color: #9aa1b1; font-weight: 500; font-size: 12.5px; margin-left: 4px; }
.jr-promo { display: grid; gap: 6px; padding: 26px 22px; border: 0; color: #fff; text-decoration: none; background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--brand) 75%, transparent), transparent 60%), #171a22; }
.jr-promo small { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.jr-promo strong { font-size: 22px; font-weight: 800; line-height: 1.2; }
.jr-promo span { margin-top: 8px; font-weight: 700; font-size: 14px; }
.jr-promo:hover { color: #fff; }
.jr-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 14px; border-left: 2px solid var(--line); }
.jr-toc a { display: block; padding: 7px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
.jr-toc a:hover { color: var(--brand); border-left-color: var(--brand); background: var(--brand-50); }

@media (max-width: 1199.98px) { .jr-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 991.98px) {
   .jr-layout { grid-template-columns: minmax(0, 1fr); }
   .jr-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
   .jr-side .jr-toc { display: none !important; }
   .jr-article-wrap { grid-template-columns: minmax(0, 1fr); }
   .jr-share-rail { display: none; }
   .jr-post-foot, .jr-related { margin-left: 0; }
   .jr-cover { aspect-ratio: 16 / 9; }
}
@media (max-width: 767.98px) {
   .jr-side { grid-template-columns: minmax(0, 1fr); }
   .jr-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
   .jr-prevnext { grid-template-columns: minmax(0, 1fr); }
   .jr-prevnext a.is-next { text-align: left; }
   .jr-read { margin-left: 0; }
}
@media (max-width: 575.98px) {
   .jr-related-grid, .jr-list { grid-template-columns: minmax(0, 1fr); }
   .jr-authorbox { flex-direction: column; align-items: flex-start; }
   .jr-article { font-size: 16.5px; }
}
