/* Single posts and pages: hide share/like sections */
body.single-post .sharedaddy,
body.single-post .sd-sharing,
body.single-post .sd-like,
body.single-post .post-likes-widget,
body.single-post .jetpack-likes-widget-wrapper,
body.single-post .jp-sharing-input-touch,
body.page .sharedaddy,
body.page .sd-sharing,
body.page .sd-like,
body.page .post-likes-widget,
body.page .jetpack-likes-widget-wrapper,
body.page .jp-sharing-input-touch {
    display: none !important;
}

@media (max-width: 781px) {
    .questetra-related-posts-grid {
        grid-template-columns: 1fr;
    }
}
body.category-developer-blog .archive-list-item .wp-block-post-excerpt {
    text-align: left !important;
}
body.category-developer-blog .archive-list-item .wp-block-post-excerpt__excerpt {
    color: #4f5b6e;
    line-height: 1.65;
}

/* Tag archives: keep dense template results readable in one horizontal list. */
body.tag .wp-block-post-template,
body.category-templates .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.25rem;
}
body.tag .wp-block-post-template > .wp-block-post,
body.category-templates .wp-block-post-template > .wp-block-post {
    width: auto;
}
body.tag .wp-block-post-template .archive-list-item,
body.category-templates .wp-block-post-template .archive-list-item {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--q-primary);
    text-align: left !important;
}
body.tag .wp-block-post-template .archive-horizontal-thumb,
body.category-templates .wp-block-post-template .archive-horizontal-thumb {
    flex: 0 0 220px;
}
body.tag .wp-block-post-template .archive-horizontal-thumb img,
body.category-templates .wp-block-post-template .archive-horizontal-thumb img {
    display: block;
    width: 220px;
    height: 124px;
    object-fit: cover;
}
body.tag .wp-block-post-template .archive-list-item > .wp-block-group:last-child,
body.category-templates .wp-block-post-template .archive-list-item > .wp-block-group:last-child {
    flex: 1 1 auto;
    min-width: 0;
}
@media (max-width: 781px) {
    body.tag .wp-block-post-template,
    body.category-templates .wp-block-post-template {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    body.tag .wp-block-post-template .archive-list-item,
    body.category-templates .wp-block-post-template .archive-list-item {
        flex-direction: column;
    }
    body.tag .wp-block-post-template .archive-horizontal-thumb,
    body.category-templates .wp-block-post-template .archive-horizontal-thumb {
        display: none;
    }
    body.tag .wp-block-post-template .archive-horizontal-thumb,
    body.tag .wp-block-post-template .archive-horizontal-thumb img,
    body.category-templates .wp-block-post-template .archive-horizontal-thumb,
    body.category-templates .wp-block-post-template .archive-horizontal-thumb img {
        width: 100%;
        height: auto;
    }
}
@media (max-width: 900px) {
    body.category-developer-blog .archive-horizontal-thumb,
    body.category-developer-blog .archive-horizontal-thumb img {
        width: 210px !important;
        height: 118px !important;
    }
}
@media (max-width: 781px) {
    body.category-developer-blog .archive-list-item {
        gap: 0.85rem !important;
    }
    body.category-developer-blog .archive-horizontal-thumb,
    body.category-developer-blog .archive-horizontal-thumb img {
        width: 168px !important;
        height: 94px !important;
    }
body.category-developer-blog .archive-list-item .wp-block-post-title {
    font-size: clamp(20px, 6.6vw, 28px) !important;
    }
}
