/* Single Post 10.6 — clean, modern, one TOC in sidebar */
.sr-read-progress{position:fixed;top:0;left:0;height:3px;width:0;z-index:100000;background:linear-gradient(90deg,#2563eb,#7c3aed);transition:width .1s linear}
.sr-post{--sr-ink:#0f172a;--sr-muted:#64748b;--sr-line:#e2e8f0;--sr-soft:#f8fafc;--sr-brand:#2563eb;color:var(--sr-ink);font-family:Tahoma,Vazirmatn,system-ui,sans-serif}
.sr-post__hero{background:linear-gradient(180deg,#f1f5f9 0%,#fff 100%);padding:28px 20px 8px;border-bottom:1px solid var(--sr-line)}
.sr-post__hero-inner{max-width:1120px;margin:0 auto}
.sr-post__crumb{font-size:13px;color:var(--sr-muted);margin-bottom:14px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.sr-post__crumb a{color:var(--sr-muted);text-decoration:none}
.sr-post__crumb a:hover{color:var(--sr-brand)}
.sr-post__cats{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.sr-post__chip{display:inline-flex;padding:4px 12px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font:700 12px/1.4 Tahoma;text-decoration:none}
.sr-post__title{margin:0 0 18px;font:800 clamp(1.55rem,3.2vw,2.35rem)/1.35 Tahoma;letter-spacing:-.02em;max-width:18em}
.sr-post__meta{display:flex;flex-wrap:wrap;gap:16px 28px;align-items:center;justify-content:space-between;margin-bottom:16px}
.sr-post__author{display:flex;gap:12px;align-items:center}
.sr-post__avatar{border-radius:50%;width:44px;height:44px}
.sr-post__author-name{display:block;font:700 14px Tahoma}
.sr-post__author time{font-size:12px;color:var(--sr-muted)}
.sr-post__stats{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--sr-muted)}
.sr-post__stat{background:var(--sr-soft);border:1px solid var(--sr-line);border-radius:999px;padding:6px 10px}
.sr-post__toolbar{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:18px}
.sr-post__tool{width:40px;height:40px;border-radius:12px;border:1px solid var(--sr-line);background:#fff;cursor:pointer;font:700 14px Tahoma;color:var(--sr-ink);transition:.15s}
.sr-post__tool:hover,.sr-post__tool[aria-pressed="true"]{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}
.sr-post__cover{max-width:1120px;margin:20px auto 0;padding:0 20px}
.sr-post__cover-img{width:100%;height:auto;border-radius:20px;display:block;box-shadow:0 20px 50px rgba(15,23,42,.08)}
.sr-post__shell{max-width:1120px;margin:0 auto;padding:28px 20px 64px;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:36px;align-items:start}
@media (max-width:960px){.sr-post__shell{grid-template-columns:1fr}.sr-post__aside{order:-1}.sr-post__aside-sticky{position:relative;top:auto}}
.sr-post__body{font-size:1.05rem;line-height:1.95;color:#1e293b}
.sr-post__body > *{max-width:42rem}
.sr-post__body h2,.sr-post__body h3{scroll-margin-top:88px;line-height:1.35;margin-top:1.8em}
.sr-post__body img{max-width:100%;height:auto;border-radius:12px}
.sr-post__body a{color:var(--sr-brand)}
.sr-post__body pre,.sr-post__body code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.sr-post__body pre{background:#0f172a;color:#e2e8f0;padding:16px;border-radius:12px;overflow:auto}
.sr-post__tags{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:28px 0;font-size:13px}
.sr-post__tags a{background:var(--sr-soft);border:1px solid var(--sr-line);border-radius:999px;padding:6px 12px;text-decoration:none;color:#334155}
.sr-post__share{margin:28px 0;padding:18px;border-radius:18px;background:var(--sr-soft);border:1px solid var(--sr-line)}
.sr-post__share-label{display:block;font:700 13px Tahoma;margin-bottom:10px}
.sr-post__share-links{display:flex;flex-wrap:wrap;gap:8px}
.sr-post__share-btn{border:1px solid var(--sr-line);background:#fff;border-radius:12px;padding:8px 12px;font:700 12px Tahoma;text-decoration:none;color:var(--sr-ink);cursor:pointer}
.sr-post__share-btn:hover{border-color:#bfdbfe;color:#1d4ed8}
.sr-post__author-card{display:flex;gap:16px;padding:20px;border-radius:20px;border:1px solid var(--sr-line);background:#fff;margin:28px 0;box-shadow:0 10px 30px rgba(15,23,42,.04)}
.sr-post__author-card-avatar{border-radius:50%;width:72px;height:72px}
.sr-post__author-card p{margin:6px 0 10px;color:var(--sr-muted);font-size:13px;line-height:1.7}
.sr-post__author-link{font:700 13px Tahoma;color:var(--sr-brand);text-decoration:none}
.sr-post__nextprev{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:28px 0}
@media (max-width:640px){.sr-post__nextprev{grid-template-columns:1fr}}
.sr-post__np{display:block;padding:14px 16px;border-radius:16px;border:1px solid var(--sr-line);text-decoration:none;color:var(--sr-ink);background:#fff}
.sr-post__np span{display:block;font-size:12px;color:var(--sr-muted);margin-bottom:4px}
.sr-post__np strong{font-size:14px;line-height:1.5}
.sr-post__related{margin:36px 0}
.sr-post__related-title{margin:0 0 14px;font:800 1.2rem Tahoma}
.sr-post__related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:800px){.sr-post__related-grid{grid-template-columns:1fr}}
.sr-post__related-card{display:flex;flex-direction:column;gap:10px;border:1px solid var(--sr-line);border-radius:16px;overflow:hidden;text-decoration:none;color:var(--sr-ink);background:#fff}
.sr-post__related-card img{width:100%;height:140px;object-fit:cover;display:block}
.sr-post__related-card strong{padding:0 12px 14px;font-size:14px;line-height:1.5}
.sr-post__aside-sticky{position:sticky;top:88px;display:grid;gap:14px}
.sr-widget{background:#fff;border:1px solid var(--sr-line);border-radius:18px;padding:16px;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.sr-widget__title{margin:0 0 10px;font:800 14px Tahoma}
.sr-toc__list{margin:0;padding:0 16px 0 0;list-style:decimal}
.sr-toc__item{margin:6px 0;font-size:13px;line-height:1.5}
.sr-toc__item a{color:#334155;text-decoration:none}
.sr-toc__item a:hover,.sr-toc__item.is-active a{color:var(--sr-brand);font-weight:700}
.sr-toc__item--h3{margin-right:12px;list-style:circle}
.sr-widget--cta{background:linear-gradient(145deg,#eff6ff,#f5f3ff)}
.sr-post__cta-btn{display:inline-flex;margin-top:8px;padding:10px 14px;border-radius:12px;background:var(--sr-brand);color:#fff;text-decoration:none;font:700 13px Tahoma}
.sr-post__mobile-bar{position:fixed;bottom:0;left:0;right:0;z-index:99990;display:none;gap:8px;padding:10px 12px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-top:1px solid var(--sr-line)}
.sr-post__mobile-bar button,.sr-post__mobile-bar a{flex:1;text-align:center;padding:10px;border-radius:12px;border:1px solid var(--sr-line);background:#fff;font:700 12px Tahoma;text-decoration:none;color:var(--sr-ink);cursor:pointer}
@media (max-width:960px){.sr-post__mobile-bar{display:flex}}
/* Focus / reader */
html.sr-focus-mode .site-header,html.sr-focus-mode .sr-post__aside,html.sr-focus-mode .sr-post__related,html.sr-focus-mode .sr-post__comments,html.sr-focus-mode .sr-post__mobile-bar{opacity:.08;pointer-events:none}
html.sr-focus-mode .sr-post__body{font-size:1.15rem;max-width:40rem;margin:0 auto}
/* Hide legacy TOC leftovers if any cached HTML */
.sr-auto-toc,nav#sr-toc,.sx-toc,[data-sx-toc="auto"],.sr-article .sr-toc:not(.sr-post__aside .sr-toc){display:none!important}
