/*
 * Webasyst Default 4.0 theme family
 *
 * Blog app CSS
 *
 * @link http://www.webasyst.com/
 * @author Webasyst LLC
 * @copyright 2015 Webasyst LLC
 * @package Webasyst
 *
 * ... extends the standalone YES Global Shop theme bundle
 */

: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;
}

.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; padding: 30px; background-color: var(--bg-gray-color); box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06); border-radius: var(--element-border-radius); }
.post h3 { font-size: 2em; margin-right: 5px; margin-bottom: 24px; }
.post h3 a { text-decoration: none; }
.post img { max-width: 100%; height: auto !important; }
.post iframe { max-width: 100%; }
.post .text { margin-top: 5px; margin-right: 10px; font-size: 16px;}
.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: var(--tp-theme-1); }
.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; }

/* Turie Blog Standard
---------------------- */

.blog-standard-breadcrumb {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.blog-standard-layout .tp-postbox-thumb {
    overflow: hidden;
    border-radius: 16px;
    background: #f6f6f9;
}

.blog-standard-layout .tp-postbox-thumb > a {
    display: block;
}

.blog-standard-layout .tp-postbox-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto !important;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-standard-layout .tp-postbox-item:hover .tp-postbox-thumb img {
    transform: scale(1.025);
}

.blog-standard-layout .tp-postbox-title a {
    text-decoration: none;
}

.blog-standard-layout .tp-postbox-text {
    margin: 0;
}

.blog-standard-sidebar .sidebar-search-input input {
    width: 100%;
    height: 56px;
    min-height: 0;
    margin: 0;
    padding: 22px 30px 23px 0;
    border-radius: 0;
    background: #fff;
    line-height: 56px;
    -webkit-appearance: none;
    appearance: none;
}

.blog-standard-sidebar .sidebar-search-input input::-webkit-search-decoration,
.blog-standard-sidebar .sidebar-search-input input::-webkit-search-cancel-button,
.blog-standard-sidebar .sidebar-search-input input::-webkit-search-results-button,
.blog-standard-sidebar .sidebar-search-input input::-webkit-search-results-decoration {
    display: none;
}

.blog-standard-sidebar .sidebar-search-input input:focus,
.blog-standard-sidebar .sidebar-search-input input:focus-visible {
    border-color: var(--tp-theme-1);
    outline: none !important;
    box-shadow: 0 1px 0 0 var(--tp-theme-1);
}

.blog-standard-sidebar .sidebar-search-input button {
    width: 15px;
    min-width: 15px;
    height: 56px;
    padding: 0;
    border: 0;
    background: transparent;
}

.blog-standard-sidebar .sidebar-widget-category ul,
.blog-standard-sidebar .tagcloud {
    margin: 0;
    padding: 0;
}

.blog-standard-sidebar .sidebar-widget-category a {
    width: 100%;
    text-decoration: none;
}

.blog-standard-sidebar .sidebar-widget-category a.is-current {
    color: var(--tp-theme-1);
}

.blog-standard-sidebar .rc-post-thumb img {
    display: block;
    width: 135px;
    height: 136px !important;
    object-fit: cover;
}

.blog-standard-sidebar .rc-post-title a,
.blog-standard-sidebar .rc-post-category a,
.blog-standard-sidebar .tagcloud a {
    text-decoration: none;
}

.blog-empty-state {
    padding: 48px;
    border-radius: 16px;
    background: #f6f6f9;
}

.blog-empty-state > :last-child {
    margin-bottom: 0;
}

.blog-page-anchor {
    position: relative;
    top: -100px;
}

/* Turie Blog Post
------------------ */

.blog-post-breadcrumb {
    margin-bottom: 20px;
}

.blog-post-breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-post-breadcrumb li {
    display: flex;
    align-items: center;
    min-width: 0;
    color: var(--tp-grey-1);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.blog-post-breadcrumb li + li::before {
    content: "/";
    flex: 0 0 auto;
    margin-right: 10px;
    color: rgba(7, 21, 22, 0.35);
}

.blog-post-breadcrumb a {
    color: var(--tp-grey-1);
    text-decoration: none;
}

.blog-post-breadcrumb a:hover {
    color: var(--tp-theme-1);
}

.blog-post-breadcrumb [aria-current="page"] {
    max-width: 60ch;
}

.blog-post-breadcrumb [aria-current="page"] span {
    overflow: hidden;
    color: var(--tp-common-black);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-post-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto !important;
    object-fit: cover;
}

.blog-post-author-summary {
    gap: 14px;
}

.blog-post-author-avatar {
    flex: 0 0 auto;
    width: 50px;
    height: 50px !important;
    object-fit: cover;
    border-radius: 50%;
}

.blog-post .tp-testimonial-avatar-title {
    display: block;
    margin: 0;
}

.blog-post-share a {
    text-decoration: none;
}

.blog-post-share a span {
    font-size: 12px;
    font-weight: 700;
}

.blog-post-body .blog-post-cover-source {
    display: none !important;
}

.blog-post-body > :first-child,
.blog-post-body .postbox-details-text > :first-child {
    margin-top: 0;
}

.blog-post-body > :last-child,
.blog-post-body .postbox-details-text > :last-child {
    margin-bottom: 0;
}

.blog-post-body p,
.blog-post-body li {
    font-size: 17px;
    line-height: 1.72;
}

.blog-post,
.blog-post-body {
    min-width: 0;
    max-width: 100%;
}

.blog-post .postbox-title {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.blog-post-body {
    overflow-wrap: anywhere;
}

.blog-post-body p {
    margin-bottom: 24px;
}

.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
    max-width: 100%;
    scroll-margin-top: 120px;
    overflow-wrap: anywhere;
}

.blog-post-body a {
    color: var(--tp-theme-1);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.blog-post-body a:hover {
    color: var(--tp-common-black);
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 0 0 28px;
    padding-left: 26px;
}

.blog-post-body blockquote {
    margin: 0;
}

.blog-post-body img,
.blog-post-body video,
.blog-post-body iframe {
    max-width: 100%;
}

.blog-post-body img {
    height: auto !important;
}

.blog-table-scroll {
    width: 100%;
    max-width: 100%;
    margin: 0 0 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.blog-table-scroll table {
    display: table;
    width: max-content;
    min-width: 100%;
    max-width: none;
    margin: 0;
    border-collapse: collapse;
}

.blog-post-body pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
}

.blog-post-body th,
.blog-post-body td {
    padding: 12px 14px;
    border: 1px solid rgba(45, 26, 14, 0.12);
    text-align: left;
}

.blog-post-gallery {
    margin-top: 40px;
}

.blog-post-sidebar .sidebar-widget-title {
    font-size: 24px;
    line-height: 1.2;
}

.blog-post-related {
    margin-top: 40px;
    border-top: 1px solid rgba(45, 26, 14, 0.1);
}

.blog-post-related .tp-blog-two-thumb > a {
    display: block;
}

.blog-post-related .tp-blog-two-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto !important;
    object-fit: cover;
}

.blog-post-related .tp-blog-title a,
.blog-post-related .tp-btn-solid {
    text-decoration: none;
}

@media screen and (max-width: 1199px) {
    .blog-standard-sidebar,
    .blog-post-sidebar {
        margin-top: 30px;
    }
}

@media screen and (max-width: 767px) {
    .blog-standard-layout {
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .blog-inner-layout {
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .blog-standard-layout .tp-postbox-item {
        margin-bottom: 48px;
    }

    .blog-standard-sidebar .rc-post-thumb img {
        width: 100px;
        height: 100px !important;
    }

    .blog-empty-state {
        padding: 30px 24px;
    }

    .blog-post-breadcrumb [aria-current="page"] {
        max-width: min(100%, 38ch);
    }

    .blog-post .postbox-title {
        font-size: clamp(30px, 10vw, 36px);
        line-height: 1.16;
    }

    .blog-post-body p,
    .blog-post-body li {
        font-size: 16px;
    }

    .blog-post-body h2 {
        font-size: clamp(28px, 9vw, 36px);
        line-height: 1.18;
    }

    .blog-post-body h3 {
        font-size: clamp(23px, 7.5vw, 30px);
        line-height: 1.22;
    }

    .blog-post-body h4 {
        font-size: clamp(20px, 6.5vw, 26px);
        line-height: 1.25;
    }

    .blog-post-body .postbox-details-quote-box {
        padding: 28px 24px;
    }

    .blog-post-body .postbox-details-quote p {
        font-size: 24px;
    }

    .blog-post .postbox-details-author {
        padding: 30px 24px;
    }

    .blog-post-related {
        padding-bottom: 20px;
    }
}

/* 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; }

}
