/* ==========================================================
   SINGLE POST
========================================================== */

.ons-single-thumb{
    width:100%;
    overflow:hidden;
    background:var(--ons-bg-alt);
}

.ons-single-thumb img{
    width:100%;
    /* max-height:480px; */
    object-fit:cover;
    display:block;
}

.ons-single-layout{
    display:grid;
    grid-template-columns:1fr 340px;
    gap:50px;
    align-items:start;
    padding:50px 20px 70px;
}

.ons-single-main{
    min-width:0;
}

.ons-single-title{
    font-size:32px;
    line-height:1.3;
    margin:10px 0 18px;
    color:var(--ons-text);
}

.ons-single-meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:22px;
    color:var(--ons-text-muted);
    font-size:14px;
    padding-bottom:26px;
    margin-bottom:30px;
    border-bottom:1px solid var(--ons-border);
}

.ons-single-meta i{
    color:var(--ons-red);
    margin-right:6px;
}

.ons-single-content{
    color:var(--ons-text-muted);
    font-size:16px;
    line-height:1.8;
}

.ons-single-content h1,
.ons-single-content h2,
.ons-single-content h3,
.ons-single-content h4{
    color:var(--ons-text);
    margin:36px 0 16px;
}

.ons-single-content p{
    margin:0 0 20px;
}

.ons-single-content a{
    color:var(--ons-red);
}

.ons-single-content img{
    border-radius:10px;
    margin:20px 0;
}

.ons-single-content blockquote{
    margin:24px 0;
    padding:18px 24px;
    border-left:3px solid var(--ons-red);
    background:var(--ons-surface);
    border-radius:0 10px 10px 0;
    color:var(--ons-text);
    font-style:italic;
}

.ons-single-content ul,
.ons-single-content ol{
    margin:0 0 20px;
    padding-left:22px;
}

.ons-single-pages{
    margin-top:20px;
    font-size:14px;
    color:var(--ons-text-muted);
}

.ons-single-tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:36px 0;
}

.ons-tag{
    display:inline-flex;
    padding:6px 14px;
    border-radius:20px;
    border:1px solid var(--ons-border);
    color:var(--ons-text-muted);
    text-decoration:none;
    font-size:13px;
    transition:.2s ease;
}

.ons-tag:hover{
    border-color:var(--ons-red);
    color:var(--ons-red);
}

.ons-single-author{
    display:flex;
    align-items:center;
    gap:18px;
    padding:24px;
    margin-bottom:30px;
    background:var(--ons-surface);
    border:1px solid var(--ons-border);
    border-radius:14px;
}

.ons-single-author img{
    border-radius:50%;
    flex-shrink:0;
}

.ons-single-author h4{
    margin:0 0 6px;
    font-size:16px;
    color:var(--ons-text);
}

.ons-single-author p{
    margin:0;
    font-size:14px;
    color:var(--ons-text-muted);
}

.ons-single-nav{
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:20px 0;
    margin-bottom:30px;
    border-top:1px solid var(--ons-border);
    border-bottom:1px solid var(--ons-border);
}

.ons-single-nav a{
    color:var(--ons-text);
    text-decoration:none;
    font-size:14px;
    font-weight:600;
}

.ons-single-nav a:hover{
    color:var(--ons-red);
}

.ons-single-nav-next{
    margin-left:auto;
    text-align:right;
}

/* ---------- Sidebar ---------- */

.ons-single-sidebar{
    position:sticky;
    top:20px;
}

.ons-sidebar-title{
    color:var(--ons-text);
    font-size:18px;
    margin:10px 0 20px;
    padding-bottom:14px;
    border-bottom:1px solid var(--ons-border);
}

.ons-sidebar-empty{
    color:var(--ons-text-muted);
    font-size:14px;
}

.ons-related-list{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.ons-related-card{
    display:flex;
    gap:14px;
    text-decoration:none;
    align-items:center;
}

.ons-related-thumb{
    width:76px;
    height:76px;
    flex-shrink:0;
    border-radius:10px;
    overflow:hidden;
    background:var(--ons-surface-alt);
}

.ons-related-thumb img{
    width:100%;
    height:100% !important;
    object-fit:cover;
    display:block;
}

.ons-related-thumb-fallback{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--ons-red);
    font-size:20px;
}

.ons-related-info{
    min-width:0;
}

.ons-related-date{
    color:var(--ons-red);
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.03em;
}

.ons-related-info h5{
    margin:4px 0 0;
    color:var(--ons-text);
    font-size:14px;
    line-height:1.4;
    font-weight:600;
}

.ons-related-card:hover .ons-related-info h5{
    color:var(--ons-red);
}

/* ---------- Comments ---------- */

.comments-area{
    margin-top:10px;
}

.comments-title{
    color:var(--ons-text);
    font-size:18px;
    font-weight:700;
    margin-bottom:20px;
}

.comment-list{
    list-style:none;
    margin:0 0 30px;
    padding:0;
}

.comment-list .comment-body{
    background:var(--ons-surface);
    border:1px solid var(--ons-border);
    border-radius:12px;
    padding:18px 20px;
    margin-bottom:14px;
}

.comment-list .comment-author{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:8px;
}

.comment-list .comment-author img{
    border-radius:50%;
    width:36px;
    height:36px;
}

.comment-list .comment-author .fn{
    color:var(--ons-text);
    font-weight:700;
    font-style:normal;
    font-size:14px;
}

.comment-list .comment-author .fn a{
    color:inherit;
    text-decoration:none;
}

.comment-list .says{
    display:none;
}

.comment-list .comment-metadata{
    color:var(--ons-text-muted);
    font-size:12px;
    margin-bottom:10px;
}

.comment-list .comment-metadata a{
    color:inherit;
    text-decoration:none;
}

.comment-list .comment-content p{
    color:var(--ons-text-muted);
    font-size:14px;
    margin:0 0 10px;
}

.comment-reply-link{
    display:inline-block;
    color:var(--ons-red);
    font-size:12px;
    font-weight:700;
    text-decoration:none;
    text-transform:uppercase;
}

.comment-respond{
    background:var(--ons-surface);
    border:1px solid var(--ons-border);
    border-radius:14px;
    padding:26px;
}

.comment-reply-title{
    color:var(--ons-text);
    font-size:18px;
    margin:0 0 18px;
}

.comment-notes,
.logged-in-as{
    color:var(--ons-text-muted);
    font-size:13px;
    margin-bottom:18px;
}

.comment-notes a,
.logged-in-as a{
    color:var(--ons-red);
}

.comment-form label{
    display:block;
    color:var(--ons-text-muted);
    font-size:13px;
    margin-bottom:6px;
}

.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea{
    width:100%;
    background:var(--ons-bg);
    border:1px solid var(--ons-border);
    border-radius:8px;
    color:var(--ons-text);
    padding:10px 14px;
    font-size:14px;
    margin:0 0 18px;
}

.comment-form textarea{
    min-height:120px;
}

.comment-form input:focus,
.comment-form textarea:focus{
    outline:none;
    border-color:var(--ons-red);
}

.comment-form .form-submit{
    margin:0;
}

.comment-form .form-submit input{
    width:auto;
    background:var(--ons-red);
    border:none;
    color:#fff;
    font-weight:700;
    padding:12px 28px;
    border-radius:6px;
    cursor:pointer;
    margin-bottom:0;
}

.comment-form .form-submit input:hover{
    background:var(--ons-red-dark);
}

@media (max-width:900px){
    .ons-single-layout{
        grid-template-columns:1fr;
    }

    .ons-single-sidebar{
        position:static;
    }

    .ons-related-list{
        flex-direction:row;
        overflow-x:auto;
        padding-bottom:6px;
    }

    .ons-related-card{
        flex-direction:column;
        align-items:flex-start;
        flex:0 0 160px;
    }

    .ons-related-thumb{
        width:100%;
        height:110px;
    }
}

@media (max-width:600px){
    .ons-single-title{
        font-size:24px;
    }

    .ons-single-nav{
        flex-direction:column;
    }

    .ons-single-nav-next{
        margin-left:0;
        text-align:left;
    }
}
