/* ==== Удобство чтения mscexb.ru (дополнение к bundle.min.css) ==== */

/* Пропуск к содержимому для клавиатуры и экранных дикторов */
.skip-link{position:absolute;left:-9999px;top:8px;z-index:10000;background:#16806d;color:#fff;padding:10px 16px;border-radius:6px;font-size:16px}
.skip-link:focus{left:8px;color:#fff}

/* Видимый фокус (раньше его не было видно) */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #c8963e;outline-offset:2px;border-radius:3px}

/* Основной текст статьи: крупнее и спокойнее для длинного чтения */
.post-template .editor-content{font-size:calc(1.125rem * var(--reader-scale,1));line-height:var(--reader-lh,1.75);max-width:44em}
.post-template .editor-content p,.post-template .editor-content li{font-size:1em;line-height:inherit;color:#1f1a17}
.post-template .editor-content blockquote{border-left:4px solid #c8963e;background:#faf6ee;margin:1.2em 0;padding:.8em 1.1em;font-style:italic;border-radius:0 6px 6px 0}
.post-template .editor-content h2,.post-template .editor-content h3{scroll-margin-top:70px}
html.reader-spacing{--reader-lh:2.05}

/* Режим «Бумага» */
html.reader-paper body,html.reader-paper .main-container{background:#f6efdf}
html.reader-paper .editor-content p,html.reader-paper .editor-content li{color:#2b2118}

/* Мета-строка: время чтения */
.reading-time{color:#6b7280;font-size:.9em;margin-left:.6em;white-space:nowrap}

/* Панель чтения */
.reader-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:18px 0 6px;padding:8px 10px;border:1px solid #e3e8e6;border-radius:10px;background:#fbfcfb}
.reader-bar[hidden]{display:none}
.reader-group{display:inline-flex;align-items:center;gap:4px}
.reader-btn{min-height:40px;min-width:40px;padding:6px 12px;border:1px solid #cbd8d4;border-radius:8px;background:#fff;color:#1f4d44;font:600 15px/1.2 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;cursor:pointer}
.reader-btn:hover{background:#edf8f4;border-color:#16806d}
.reader-btn[aria-pressed="true"]{background:#16806d;border-color:#16806d;color:#fff}
.reader-size{min-width:3.2em;text-align:center;font:600 14px system-ui,Arial,sans-serif;color:#40545a}
html.reader-paper .reader-bar{background:#fbf6ea;border-color:#e6dcc5}

/* Подсветка абзаца, который читается вслух */
.reader-speaking{background:#fff3c4;box-shadow:0 0 0 6px #fff3c4;border-radius:3px}

/* Полоса прогресса чтения */
.reader-progress{position:fixed;top:0;left:0;height:3px;width:0;background:#c8963e;z-index:9999;transition:width .1s linear}

/* Всплывающее сообщение вместо alert() */
.msc-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(20px);background:#1f2d2a;color:#fff;padding:12px 18px;border-radius:10px;font:15px/1.4 system-ui,Arial,sans-serif;box-shadow:0 8px 24px rgba(0,0,0,.2);opacity:0;transition:opacity .25s,transform .25s;z-index:10001;max-width:90vw;text-align:center}
.msc-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* Меню шапки: мелкий 11–12px шрифт был трудночитаем */
header nav ul li a{font-size:14px!important;padding:6px 7px!important}
@media(max-width:1100px){header nav ul li a{font-size:13.5px!important}}

/* Печать: только текст статьи */
@media print{
  header,footer,.reader-bar,.reader-progress,.related-posts,.prev-post,.next-post,.page-views,.drawer-trigger,.socialshare,.read-later,.article-edit{display:none!important}
  .editor-content{font-size:12pt!important;max-width:none!important}
  a[href^="http"]:after{content:""}
}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reader-progress,.msc-toast{transition:none}}
