/* Журнальная колонка, боковой рубрикатор и элементы, доступные с клавиатуры. */
.reader-layout { display:grid; grid-template-columns:minmax(178px,235px) minmax(0,920px); justify-content:center; gap:clamp(24px,4vw,70px); align-items:start; }
.reader-progress { appearance:none; position:fixed; z-index:12; inset:0 0 auto; width:100%; height:3px; border:0; color:var(--accent); background:transparent; pointer-events:none; }
.reader-progress::-webkit-progress-bar { background:transparent; }
.reader-progress::-webkit-progress-value { background:var(--accent); }
.reader-progress::-moz-progress-bar { background:var(--accent); }
.reader-rail { position:sticky; top:20px; max-height:calc(100vh - 40px); overflow:auto; border:1px solid var(--stroke); border-radius:12px; background:#0f2231; }
.reader-rail summary,.reader-toc summary { padding:15px 20px; cursor:pointer; font:700 1.35rem var(--display); }
.reader-rail nav { display:grid; padding:0 16px 10px; }
.reader-rail nav a { display:flex; justify-content:space-between; align-items:center; gap:10px; line-height:1.35; padding:10px 4px; font-size:.9rem; border-top:1px solid var(--stroke); }
.reader-rail nav span { color:var(--muted); font-variant-numeric:tabular-nums; }
.reader-rail nav a:is(:hover,[aria-current]),.reader-all,.reader-byline:hover,.reader-author a:hover { color:var(--accent); }
.reader-article { min-width:0; }
.inside .reader-head h1 { margin:8px 0; font:800 clamp(2.5rem,5vw,5.25rem)/1.01 var(--display); letter-spacing:-.043em; }
.reader-head .lead { max-width:65ch; }
.reader-meta { display:flex; flex-wrap:wrap; align-items:center; gap:7px 17px; font-size:.86rem; color:var(--muted); margin:17px 0 14px; }
.reader-byline { display:inline-flex; align-items:center; gap:8px; color:var(--text); }
.reader-avatar { display:inline-grid; place-items:center; width:36px; height:36px; object-fit:cover; background:#1b3240; border-radius:50%; flex:none; }
.reader-share-menu { position:relative; width:fit-content; }
.reader-share-menu summary,.reader-share-links :is(a,button) { cursor:pointer; width:fit-content; border:1px solid #405463; border-radius:7px; padding:7px 11px; background:#142a39; color:var(--text); font:600 .88rem/1.5 Inter,Arial,sans-serif; }
.reader-share-menu summary { color:var(--accent); }
.reader-share-menu .reader-share-links { position:absolute; z-index:2; top:calc(100% + 6px); left:0; width:min(340px,78vw); padding:12px; border:1px solid #385366; border-radius:9px; background:#0d1e2e; box-shadow:0 12px 30px #040e19aa; }
.reader-share-links { display:flex; gap:7px; flex-wrap:wrap; }
.reader-share-links :is(a,button):hover { color:var(--accent); border-color:#a98c5c; }
.copy-status:empty { display:none; }
.copy-status { width:100%; font-size:.86rem; color:var(--accent); }
.copy-status input { width:100%; }
.reader-cover { margin:18px 0 26px; }
.reader-cover .cover-image { width:100%; aspect-ratio:2.55; height:auto; object-fit:cover; border-radius:12px; }
.reader-cover figcaption,.reader-prose figcaption { margin-top:6px; color:var(--muted); font-size:.82rem; }
.reader-article h2:not(.reader-head h2),.reader-club h2 { font:740 clamp(1.5rem,2.4vw,2.2rem)/1.15 var(--display); letter-spacing:-.025em; }
.reader-article .reader-prose :is(h2,h3,h4),#reader-author { scroll-margin-block-start:20px; }
.reader-article .reader-prose h3 { font:700 clamp(1.28rem,1.8vw,1.58rem)/1.25 var(--display); margin:1.2em 0 .45em; }
.reader-audio,.story-points,.reader-toc,.reader-share-bottom,.reader-author { margin:22px 0; }
.reader-audio { display:grid; gap:10px; padding:16px 20px; border:1px solid var(--stroke); border-radius:10px; }
.reader-audio audio { width:100%; }
.reader-audio a { font-size:.85rem; color:var(--accent); }
.reader-audio-options { display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; font-size:.88rem; }
.reader-audio-options select { padding:4px 7px; color:var(--text); background:var(--surface); border:1px solid var(--stroke); border-radius:5px; font:inherit; }
.story-points { padding:clamp(17px,2.1vw,29px); border:1px solid #395355; border-left:3px solid #75b8b2; border-radius:10px; background:linear-gradient(115deg,#153238,#10232c); }
.story-takeaways { border-color:#5c503b; border-left-color:var(--accent); background:linear-gradient(115deg,#302b27,#17242e); }
.story-points ul,.reader-toc ol { margin:12px 0 0; padding-left:1.35em; }
.story-points li + li,.reader-toc li + li { margin-top:6px; }
.story-points li::marker,.reader-toc li::marker { color:var(--accent); }
.reader-toc { border-block:1px solid var(--stroke); }
.reader-toc summary { padding:14px 0; }
.reader-toc summary span { color:var(--muted); font:500 .85rem Inter,Arial,sans-serif; margin-left:8px; }
.reader-toc ol { margin:0 0 18px; }
.reader-toc a:hover { text-decoration:underline; color:var(--accent); }
.reader-prose { max-width:none; font-size:clamp(1rem,1.22vw,1.13rem); line-height:1.78; }
.reader-prose :is(p,ul,ol,blockquote) { max-width:74ch; }
.reader-prose h2 { margin:1.3em 0 .5em; }
.reader-prose blockquote { margin:1.4em 0; padding:3px 1.2em; border-left:3px solid var(--accent); font-style:italic; color:#f0e2c9; }
.reader-prose cite { font-size:.87rem; }
.reader-prose figure { max-width:100%; margin:1.2em 0; }
.reader-prose img,.reader-prose video { max-width:100%; height:auto; }
.reader-prose .wp-block-table,.reader-prose .reader-table { overflow-x:auto; }
.reader-prose table { width:100%; border-collapse:collapse; font-size:.95rem; line-height:1.55; }
.reader-prose :not(.wp-block-table,.reader-table) > table,.reader-prose > table { display:block; overflow-x:auto; }
.reader-prose :is(th,td) { text-align:start; padding:10px 13px; border:1px solid #324958; }
.reader-prose th { background:#17313d; color:#eee0c8; }
.reader-prose tr:nth-child(even) td { background:#102332; }
.reader-share-bottom { padding:22px 0; border-block:1px solid var(--stroke); }
.reader-share-bottom h2 { margin:0 0 14px; }
.reader-author,.reader-club { display:flex; align-items:center; gap:17px; padding:clamp(17px,2vw,28px); border:1px solid var(--stroke); border-radius:12px; background:#112635; }
.reader-author .reader-avatar { width:62px; height:62px; }
.reader-author p,.reader-club p { color:var(--muted); margin-top:6px; }
.reader-club { margin-top:32px; justify-content:space-between; flex-wrap:wrap; }
@media(max-width:850px) {
	.reader-layout { grid-template-columns:minmax(0,1fr); gap:22px; }
	.reader-rail { position:static; max-height:none; }
	.reader-rail summary { padding:11px 15px; font-size:1.15rem; }
	.reader-rail nav { grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr)); gap:0 15px; }
}
@media(max-width:520px) {
	.reader-cover .cover-image { aspect-ratio:1.95; }
	.reader-head .reader-meta { gap:8px 12px; }
	.reader-author { align-items:flex-start; }
	.reader-author .reader-avatar { width:43px; height:43px; }
	.reader-share-links :is(a,button) { padding:8px 10px; }
}
