/* ==========================================================================
   3deshnik — надстройка над prosilver (22.11.2026)
   Цель: читаемый текст в темах, крупнее элементы управления, заметный фокус,
   уважение к «меньше движения». Подключается после tweaks.css в overall_header.html.
   При обновлении стиля файл надо положить снова и снова добавить строку <link>.
   ========================================================================== */

/* --- 1. Крупнее база: prosilver стартует с 10px, из-за этого текст тем мелкий --- */
body{font-size:11.5px}

.postbody .content{font-size:1.45em;line-height:1.65}
.postbody .content p{margin:0 0 1em}
.postbody .content li{margin:.25em 0}
.postbody .content img{max-width:100%;height:auto;border-radius:8px}
.postbody .content blockquote{background:#f6f8fa;border:1px solid #e6e9ef;border-left:3px solid #2f6feb;
  border-radius:0 8px 8px 0;padding:10px 14px;margin:1em 0}
.postbody .content code{background:#f3f5f9;border-radius:4px;padding:.1em .35em;font-size:.94em}
.postbody .content pre{background:#f6f8fa;border:1px solid #e6e9ef;border-radius:8px;padding:12px 14px;
  overflow:auto;font-size:.92em}
.postbody .content h2,.postbody .content h3{margin:1.3em 0 .5em}

/* подпись и метаданные — спокойнее, но читаемо */
.signature{border-top:1px solid #e6e9ef;margin-top:14px;padding-top:10px;color:#5b6472;font-size:.95em}
.postbody .author,.postbody .date{font-size:1.05em}

/* --- 2. Контраст ссылок внутри сообщений --- */
.postlink,.postlink:visited{color:#1a5fa8}
.postlink:hover{color:#2f6feb;text-decoration:underline}
a.postlink:focus-visible{outline:2px solid #2f6feb;outline-offset:2px}

/* --- 3. Элементы управления: не мельче 32–36px по высоте --- */
input.button1,input.button2,button.button1,button.button2,.button,.dropdown a,.pagination a,a.button{
  min-height:32px;display:inline-flex;align-items:center;justify-content:center;padding:.35em .9em;
  border-radius:6px}
.pagination a,.pagination strong{min-width:32px}
input[type="text"],input[type="password"],input[type="email"],select,textarea{min-height:32px;padding:.35em .55em;
  border-radius:6px}

/* --- 4. Видимый фокус с клавиатуры --- */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,
summary:focus-visible{outline:2px solid #2f6feb;outline-offset:2px;border-radius:4px}

/* --- 5. Строки списка тем: чуть больше воздуха --- */
.topiclist .topics,.topiclist .posts{font-size:1.08em}
.topiclist li.row dl{padding:.55em 0}
.post{padding:14px 0}
.postprofile{font-size:1em}

/* --- 6. Системная настройка «меньше движения» --- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;scroll-behavior:auto!important}
}

/* --- 7. Телефон: текст тем ещё крупнее, отступы ровнее --- */
@media (max-width:700px){
  body{font-size:12px}
  .postbody .content{font-size:1.4em}
  .postbody .content img{border-radius:6px}
  .post{padding:12px 0}
}

/* --- 8. Печать --- */
@media print{
  .headerbar,.navbar,.forumbg .header,.postprofile,.post-buttons,.action-bar,.dropdown,.pagination{display:none!important}
  .postbody .content{font-size:11pt}
  a.postlink{color:#000;text-decoration:underline}
}

/* --- 9. Убираем «шаблон 2010-х»: без градиентов и синих плашек --- */
.headerbar{background:#ffffff;color:#1b1f24;border-bottom:1px solid #e6e9ef;box-shadow:none}
.headerbar .site-description,.headerbar h1{color:#1b1f24}
.headerbar .site-description p{color:#5b6472}
.forabg,.forumbg{background:transparent;border:0}
.forabg > .header,.forumbg > .header,.topiclist .header,.forumbg .header{
  background:#f3f5f9;color:#1b1f24;border:1px solid #e6e9ef;border-radius:8px 8px 0 0;box-shadow:none}
.topiclist .header th,.topiclist .header th a{color:#3d4552;text-shadow:none}
.bg1,.bg2,ul.topiclist li.row,.post .bg1,.post .bg2{background:#ffffff}
ul.topiclist li.row{border-bottom:1px solid #eef1f5}
.post{border-bottom:1px solid #eef1f5;background:#fff}
.postprofile{border-right:1px solid #eef1f5;color:#5b6472}
.postbody .content{color:#1a1f26}
.panel{background:#ffffff;border:1px solid #e6e9ef;border-radius:10px;box-shadow:none}
.action-bar,.page-footer{background:transparent}
.button,a.button,input.button1{border-radius:6px;text-shadow:none}
.navbar{background:#ffffff;border:1px solid #e6e9ef;border-radius:8px;box-shadow:none}
.topic-title h2,.topic-title a{color:#141a21}
