/*
 * Webasyst Default 4.0 theme family
 *
 * Blog app CSS
 * (requires linking base default.css file from the Site app)
 *
 * @link http://www.webasyst.com/
 * @author Webasyst LLC
 * @copyright 2015 Webasyst LLC
 * @package Webasyst
 *
 * ... extends base Site app's default.css
 */

:root {
    --comment-new-bg: light-dark(color-mix(in srgb, var(--accent-color) 15%, white 0%), color-mix(in srgb, var(--accent-color) 10%, black 0%));
}

@supports not (color: light-dark(white, black)) {
    :root {
        --comment-new-bg: color-mix(in srgb, var(--accent-color) 15%, white 0%);
    }
}

.sidebar .search { margin: 16px 26px 16px 16px; }
.sidebar .search .search-wrapper { background: #fff; }
.sidebar .search input { margin-bottom: 0; }
.sidebar .timeline { margin-top: 0; }
.sidebar .timeline li a {
    padding:         0;
    display:         block;
    text-decoration: none;
    font-size:       16px;
}
.sidebar .timeline li a:not(:last-child) {
    margin-bottom:   8px;
}
.sidebar .timeline ul {
    padding-left:  0;
    margin-bottom: 0;
    list-style:    none;
}
.sidebar .timeline li:not(:last-child) ul {
    margin-bottom: 32px;
}

.sidebar .timeline ul a {
    padding:   3px 0;
    font-size: 14px;
}
.container_pages {
    max-width: 138rem;
    margin: 0 auto;
    width: 96%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.6rem;
    padding-right: 1.6rem;
    position: relative;
}
.subscribe { }
.subscribe ul { list-style: none; padding-left: 0; margin-bottom: 0; margin-top: 0; }
.subscribe ul li:not(:last-child) { margin-bottom: 12px; }
.subscribe ul li a { text-decoration: none; font-size: 16px; color: var(--text-color-secondary); }
.subscribe ul li i.icon16 { margin-top: 0.1em; margin-right: 0.5em; width: 24px; height: 24px; background-position: 0 -50px;}
.subscribe #twitter-follow-code { overflow: hidden; }

.post { margin-bottom: 20px; background-color: white; box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06); }
.post h3 { font-size: 2em; margin-right: 5px; margin-bottom: 24px; }
.post h3 a { text-decoration: none; font-size: 28px; color: #191919c9;}
.post img { max-width: 100%; height: auto !important; }
.post iframe { max-width: 100%; }
.post .text { margin-top: 5px;  font-size: 16px; line-height: 1.7;}
.post textarea { width: 100%; min-height: 300px; margin-top: 10px; height: 250px; }
.post.search-match { margin-top: 20px; margin-bottom: 50px; }
.post.search-match h3 { font-size: 1.5em; margin-bottom: 5px; }
.post.search-match p { margin-top: 5px; }
.post li, .post lh { line-height: 1.4em; }

.credentials { overflow: hidden; line-height: 1.3em; }
.credentials a,
.credentials span:not(.staff) { display: inline-block; vertical-align: middle; padding-left: 0; }
.credentials .staff { background-color: var(--bg_tr_25); }
.credentials .userpic { min-width: 20px; display: block; float: left; margin-right: 2px; border-radius: 50%; }
.credentials .username { margin: 0; }
.credentials .username, .credentials .username a { color: var(--text-color-secondary); padding: 0; display: inline; font-size: 16px; }
.credentials a.username:hover { color: red; }
.credentials .date {color: var(--text-color-additional);}
.credentials .date,
.credentials .icon16 { margin: 0 3px; }
.credentials img.userpic { width: 20px; }
.post .credentials { margin-bottom: 24px;}

.photo-album-attachment ul.thumbs { padding-left: 0; }
.photo-album-attachment ul.thumbs li { list-style: none; display: inline-block; margin: 0 20px 20px 0; }
.photo-album-attachment .photo { margin-bottom: 20px; }
.photo-album-attachment .photo img { margin-top: -10px; }
.post .photo-album-attachment { padding-top: 10px; }

.comments { margin-top: 50px; }
.comments h3 { margin: 0; font-size: 24px; }
.comments h4 { margin: 0 0 10px; }
.comments .credentials .date { margin: 0 5px; padding-top: 1px; }
.comments .credentials .userpic { margin-right: 5px; }
.comments .credentials .userpic.icon16 { min-width: 0; width: 16px; height: 16px; margin: 7px 4px 0; }
.comments textarea { height: 100px; min-height: 100px; width: 75%; margin-top: 0; }
.comments ul { padding: 0; margin: 0 0 20px 0; list-style: none;}
.comments ul li:not(:last-child) { margin-bottom: 1rem; }
.comments ul li ul { margin: 20px 0 0 0; }
.comments ul li span.hint a { color: #aaa; text-decoration: underline; }
.comments .text { color:#808080;font-size: 14px; word-break: break-word; }
.comments .actions { margin-top: 8px; font-size: 0.9em; }
.comments ul li a.comment-delete { margin: 0 0 0 5px; padding: 0; color: #d99; text-decoration: underline; }
.comments ul li a.comment-delete:hover { background: red; color: white; }
.comments ul li ul { padding-left: 18px; }
.comments ul li .comment-form { margin-top: 16px; }
.comments ul li .comment-form textarea { min-height: 100px; }
.comment { border: 1px solid var(--divider-color); border-radius: var(--element-border-radius);background: var(--bg_tr_8); padding: 18px;}
.comment.in-reply-to { position: relative; }
.comment.new { background: var(--comment-new-bg); margin-left: -13px; }
.comment .credentials { margin-bottom: 16px; }

ul.auth-type { padding: 0 0 10px !important; list-style: none; }
ul.auth-type li { padding-right: 10px; display: inline-block; float: left \9; display: inline \9; }
ul.auth-type li a { padding: 5px 6px; }
ul.auth-type li a img { margin-right: 5px; top: 4px; position: relative; }

.comment-form { padding: 0; margin-top: 30px; }
.comment-form h4 { margin: 0 0 20px; font-weight: normal; }
.comment-form-fields p { margin: 0 0 10px; }
.comment-form-fields p a { display: inline !important; }
.comment-form-fields label { width: 160px; display: block; clear: left; float: left; margin: 0 10px 0 0; color: #aaa; padding-top: 3px; }
.comment-form-fields input { width: 20em; }
.comment-form textarea { min-width: 70%; min-height: 160px; }
.comment-form .comment-submit { }
.comment-form .userpic { width: 20px; height: 20px; float: left; margin-right: 5px; border-radius: 50%; }
.comment-form ul.menu-h.auth-type li a img { float: left; margin-right: 3px; position: relative; top: 2px; }
.comment-form ul.menu-h.auth-type { padding-bottom: 20px; }

.pageless-wrapper { font-style: italic; }

html.realtime-preview,
html.realtime-preview body { background: #fff; }
html.realtime-preview .globalheader,
html.realtime-preview .globalfooter { display: none; }
html.realtime-preview .content { margin-right: 0; }
html.realtime-preview .page { top: 0; margin: 10px 0; }

/* Plugins
---------- */

ul.menu-v.categories { }
ul.menu-v.categories li { border: none; }
ul.menu-v.categories li:not(:last-child)  { margin-bottom: 16px; }
ul.menu-v.categories li a { padding: 0; }
ul.menu-v.categories li.selected a { color: #000; text-decoration: none; font-weight: bold; }

.tags.cloud { text-align: center; }


/* TABLET
========= */

@media screen and (min-width: 760px) and (max-width: 1024px) {

    .post { overflow-x: hidden; }

    .comment-form-fields input,
    .comment-form textarea { width: auto; min-width: 0; }

    .subscribe { padding-left: 10px; padding-right: 10px; }

}


/* MOBILE
========= */

@media screen and (max-width: 760px) {

    .category-plugin,
    .tag-plugin,
    .nav-sidebar hr,
    .timeline { display: none; }

    .subscribe ul li { display: inline-block; }

    .subscribe ul li a span { display: none; }

    .subscribe #twitter-follow-code { display: none; }

    .post { margin-right: 0 !important; overflow-x: hidden; }

    .post h3 { font-size: 1.6em; }

    .post img { max-width: 100%; height: auto !important; }

    .comment-form-fields label { width: auto; float: none; }

    .comment-form-fields input { width: 80%; }

    .comment-form textarea { width: 90%; }

    .comment-form .comment-submit { padding-left: 0; }

    .comment-form .wa-captcha img { margin-bottom: 10px; }

    html.realtime-preview body { padding-top: 0; }

    html.realtime-preview .container { margin: 0 10px; }

    html.realtime-preview .post h1 { font-size: 2.6em; }

}

.post-sim03 {
    padding: 15px;border-radius: 20px;
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;  */
}

.post-sim03 p {
    margin-bottom: 21px;

}


.post-sim03 h1 {
    margin-top: 24px;
        font-size: 28px;
    line-height: 1.2;
        /* font-family: "Trebuchet MS", "Helvetica Neue", Helvetica, Tahoma, sans-serif; */
    font-weight: 700;
    color: var(--text-color-input);
    text-rendering: optimizeLegibility;
    margin-bottom: 24px;
            text-rendering: optimizeLegibility;
 
    color: var(--text-dark-sim03);
    
    letter-spacing: -1.12px;

}

.post-sim03 h2 {
    margin-top: 32px!important;
        font-size: 24px;
    line-height: 1.4;
        /* font-family: "Trebuchet MS", "Helvetica Neue", Helvetica, Tahoma, sans-serif; */
    font-weight: 700;
    color: var(--text-color-input);
    text-rendering: optimizeLegibility;
    margin-bottom: 24px;
            text-rendering: optimizeLegibility;
 
    color: var(--text-dark-sim03);
    
    letter-spacing: -1.12px;

}

.post-sim03 h3 {
font-size: 32px;
    line-height: 1.4;
    margin-top: 36px;
        text-rendering: optimizeLegibility;
    
    font-weight: 600;
    color: var(--text-dark-sim03);
    
    /* letter-spacing: -1.12px; */
    margin-bottom: 12px;
}

.post-sim03 h4 {
font-size: 21px!important;
    line-height: 1.4;
    margin-top: 36px!important;
        text-rendering: optimizeLegibility;
    font-weight: 600;
    margin-bottom: 12px;
     
   
    color: var(--text-dark-sim03);
    
    /* letter-spacing: -1.12px; */
}


.post-sim03 h5 {
font-size: 16px!important;
    line-height: 1.4;
    margin-top: 24px!important;
        text-rendering: optimizeLegibility;

    color: #001a34;
    
   letter-spacing: -0.22px;
    font-weight: 500;
}
.post-sim03 strong {
   color: #2e2e2e !important;
}

.post-sim03 table {
margin-top: 10px;

    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
        display: table;
    box-sizing: border-box;
    border-collapse: separate;
    text-indent: initial;
    unicode-bidi: isolate;
    
        margin-bottom: 20px;
            position: relative;
    overflow: auto;
    
    /* padding: 24px 20px; */
    padding-top: 10px;
    outline: 0;
    white-space: normal;
    border-radius: 10px;
        overflow: hidden;
    overflow-wrap: anywhere;
    line-height: 1.5 /* for better readable content output */;
}

.post-sim03 thead {
     display: table-header-group;
    vertical-align: middle;
    unicode-bidi: isolate;
    break-inside: if(media(overflow-block: paged): avoid;);
    border-color: inherit;
        margin-top: 16px;
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
        border-collapse: separate;
    text-indent: initial;
    border-spacing: 2px;
    cursor: text;
    position: relative;
    overflow: auto;
    margin: 0;
    padding: 24px 20px;
    padding-top: 20px;
    outline: 0;
    white-space: normal;
    border: 1px solid rgba(0, 0, 0, .07);
        overflow: hidden;
    overflow-wrap: anywhere;
    line-height: 1.5 /* for better readable content output */;
}


.post-sim03 table th {
    border: 1px solid rgba(0, 0, 0, .07);
    padding: 16px;
    text-align: left;
    font-size: 14px;
    color: #667;
    display: table-cell;
    vertical-align: inherit;
    font-weight: bold;
    text-align: -internal-center;
    unicode-bidi: isolate;
}

.post-sim03 table td {
    border: 1px solid rgba(0, 0, 0, .07);
    padding: 12px;
        font-size: 14px;
        display: table-cell;
    vertical-align: inherit;
    unicode-bidi: isolate;

}

.post-sim03 table tr:hover td {
    background: #e04f593b;
}

.bg-gray {
    background-color: light-dark(#f2f2f2, rgba(255, 255, 255, 10%));
}

.button, button, input[type=button], input[type=submit], input[type=reset] {
    display: inline-flex;
    justify-content: center;
    outline: 0;
    padding: 14px 22px;
    font-size: 16px;
    font-weight: 600;
    border: 0 none;
    border-radius: 8px;
    background-color: light-dark(#888888, #888888);
    color: light-dark(#fff, #fff);
    position: relative;
    transition: background-color 200ms linear;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: normal;
}
a {
    color: light-dark(#888888, #888888);
    outline: 0 none;
    text-decoration: none;
    transition: color 300ms linear;
}

.button:hover, button:hover, input[type=button]:hover, input[type=submit]:hover, input[type=reset]:hover {
    cursor: pointer;
    background-color: light-dark(
color-mix(in srgb, #888888 100%, white 30%), 
color-mix(in srgb, #888888 100%, white 30%));
    color: light-dark(#fff, #fff);
}

.Breadcrumbs {
    margin: 0;
    padding: 0;
    list-style: none;
    box-shadow: 0 0.2rem #e0e0e0;
    background-color: #fafafa;
    border-bottom-left-radius: 0.2rem;
    border-bottom-right-radius: 0.2rem;
    padding: 0.4rem 1.6rem;
    border: 0 solid transparent;
    border-radius: 0.2rem;
    margin-bottom: 2.2rem;
}

.Breadcrumbs__Item {
    display: inline-block;
}

.Breadcrumbs__Icon--Divider {
    color: #bfbfbf;
    font-family: icons;
    font-size: 0.4em;
    display: inline-block;
    margin: 1px 0.3em 0px 0.5em;
    vertical-align: middle;
}

.icon-arrow-point-to-right:before {
    content: "\f126";
}

.Breadcrumbs__Link {
    color: #838383;
    font-size: 1.2rem;
    font-weight: 400;
    text-decoration: none;
    transition: 0.3s all;
}

.blog-mini-text {
    margin-top: 20px;
}


@media (max-width: 700px) {
    .post-sim03 h1 {
    margin-bottom: 6px;
        line-height: 1.6!important;
    }
    .post-sim03 h2 {
    font-size: 28px;
    line-height: 1.4;
    }
    .post-sim03 h3 {
    
        line-height: 1.4;
        font-size: 26px;
    }
    .post .credentials {
    margin-bottom: 0px;
    width: 80%;
    }

    .shop-pages {
    
    display: block;
    }

    .container_pages {
        width: 100%;
            padding-left: 1rem;
    padding-right: 1rem;
    }
}

.blog-start-div {
        background-color: #f0f7ff;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #3168EF;
    margin: 25px 0;
}

.blog-start-inner {
    display: flex; align-items: center; margin-bottom: 15px; gap: 10px;
}

.blog-start-inner p {
    font-size: 16px;line-height: 1.7;color: #444;margin-bottom: 20px;
}

.blog-start-h3 {
    font-size: 22px; color: #333; margin-top: 10px!important;
}

.blog-start-time-span {
    background-color: #3168EF; color: white; padding: 4px 12px; border-radius: 12px; font-size: 13px; font-weight: 500;
}

.blog-start-komu-div {
    background-color: #fff; padding: 20px; border-radius: 8px; margin-top: 20px;
}

.blog-start-komu-div h4 {
   font-size: 18px; color: #3168EF; margin-top: 0!important; margin-bottom: 15px!important;
}

.blog-start-komu-div ul {
   margin: 0; padding-left: 20px; line-height: 1.8;
}

.blog-start-komu-div li {
   margin-bottom: 18px;
   line-height: 1.6;
}


.article-toc {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  font-family: Arial, sans-serif;
}

.article-toc h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  font-size: 1.2rem;
  border-bottom: 2px solid #007bff;
  padding-bottom: 8px;
  display: inline-block;
}

.article-toc ul {
  list-style-type: none;
  padding-left: 0;
  counter-reset: section;
}

.article-toc ul ul {
  padding-left: 20px;
  counter-reset: subsection;
}

.article-toc li {
  margin-bottom: 8px;
  counter-increment: section;
  position: relative;
}

.article-toc li::before {
  content: counters(section, ".") ". ";
  color: #007bff;
  font-weight: bold;
}

.article-toc ul ul li {
  counter-increment: subsection;
}

.article-toc ul ul li::before {
  content: counters(subsection, ".") " ";
  color: #555;
  font-weight: normal;
}

.article-toc a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}

.article-toc a:hover {
  color: #007bff;
  text-decoration: underline;
}

/* Убираем нумерацию у самого верхнего уровня, если хочешь просто список разделов */
.article-toc > ul > li::before {
  content: ""; 
}
