/* DoiHinhTFT.VN — Single post title + breadcrumb: in-flow title auto align v1.0.17 */
html body.single-post {
    --dhtft-font-display: "Rajdhani", "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --dhtft-font-body: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --dhtft-title-accent: #22d3ee;
    --dhtft-title-accent-rgb: 34, 211, 238;
    --dhtft-title-wrap-max: 1460px;
    --dhtft-title-offset-x: 0px;
    --dhtft-title-auto-x: 0px;
}

/* Khoảng thở nhẹ giữa ticker/header và khung bài viết mới.
   Dùng selector mạnh để thắng reset .bloghash-container trong custom header. */
html body.single-post #page #main > .bloghash-container {
    padding-top: clamp(14px, 1.8vw, 26px) !important;
}

@media (max-width: 768px) {
    html body.single-post #page #main > .bloghash-container {
        padding-top: 14px !important;
    }
}

/* Không dùng page-header của theme nữa để tránh nền riêng và tránh đè lên shortcode. */
html body.single-post #masthead > .page-header.dhtft-post-page-header,
html body.single-post #masthead > .page-header.bloghash-has-page-title.dhtft-post-page-header,
html body.single-post .page-header.dhtft-post-page-header {
    display: none !important;
}

/* Title mới nằm trong luồng bài viết, nên content tự đẩy xuống, không bị đè. */
html body.single-post .dhtft-inline-single-title {
    display: block !important;
    width: 100% !important;
    max-width: var(--dhtft-title-wrap-max, 1460px) !important;
    margin: 22px auto 28px !important;
    padding: 0 18px !important;
    box-sizing: border-box !important;
    transform: translateX(calc(var(--dhtft-title-offset-x, 0px) + var(--dhtft-title-auto-x, 0px))) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

html body.single-post .dhtft-inline-single-title__inner {
    position: relative !important;
    max-width: 1180px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 8px 22px !important;
    text-align: left !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body.single-post .dhtft-inline-single-title__inner::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 8px !important;
    width: 4px !important;
    min-height: 72px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, var(--dhtft-title-accent) 0%, var(--dhtft-title-accent) 58%, #ec4899 100%) !important;
    box-shadow: 0 0 18px rgba(var(--dhtft-title-accent-rgb), .45) !important;
}

/* Breadcrumb xanh giống Builder Pro */
html body.single-post .dhtft-inline-single-title .dhtft-single-breadcrumb {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: var(--dhtft-title-accent) !important;
    font-family: var(--dhtft-font-display) !important;
    font-size: 13px !important;
    line-height: 1.28 !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: 0 0 14px rgba(var(--dhtft-title-accent-rgb), .22) !important;
}

html body.single-post .dhtft-inline-single-title .dhtft-single-breadcrumb a {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    color: var(--dhtft-title-accent) !important;
    font-family: var(--dhtft-font-display) !important;
    text-decoration: none !important;
    transition: color .18s ease, text-shadow .18s ease !important;
}
html body.single-post .dhtft-inline-single-title .dhtft-single-breadcrumb a::before,
html body.single-post .dhtft-inline-single-title .dhtft-single-breadcrumb a::after {
    display: none !important;
    content: none !important;
}
html body.single-post .dhtft-inline-single-title .dhtft-single-breadcrumb a:hover,
html body.single-post .dhtft-inline-single-title .dhtft-single-breadcrumb a:focus {
    color: var(--dhtft-title-accent) !important;
    text-shadow: 0 0 16px rgba(var(--dhtft-title-accent-rgb), .45) !important;
}
html body.single-post .dhtft-inline-single-title .dhtft-breadcrumb-home-icon {
    display: none !important;
}
html body.single-post .dhtft-inline-single-title .dhtft-breadcrumb-sep {
    flex: 0 0 auto !important;
    color: rgba(var(--dhtft-title-accent-rgb), .72) !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    letter-spacing: 0 !important;
}
html body.single-post .dhtft-inline-single-title .dhtft-breadcrumb-current {
    display: inline-block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: var(--dhtft-title-accent) !important;
    font-family: var(--dhtft-font-display) !important;
    font-weight: 700 !important;
}

/* H1 style Builder Pro */
html body.single-post .dhtft-inline-single-title .dhtft-inline-page-title {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--dhtft-font-display) !important;
    font-size: clamp(31px, 4.1vw, 52px) !important;
    line-height: 1.06 !important;
    font-weight: 700 !important;
    letter-spacing: -.01em !important;
    text-align: left !important;
    text-transform: none !important;
    color: transparent !important;
    background: linear-gradient(180deg, #ffffff 0%, #e6edf7 54%, #aab8c8 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 0 30px rgba(var(--dhtft-title-accent-rgb), .10) !important;
}

html body.single-post .dhtft-inline-single-title .dhtft-title-highlight {
    font-family: var(--dhtft-font-display) !important;
    font-weight: 700 !important;
    color: var(--dhtft-title-accent) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: var(--dhtft-title-accent) !important;
    text-shadow: 0 0 22px rgba(var(--dhtft-title-accent-rgb), .24) !important;
}

/* Chặn title/meta mặc định nếu theme vẫn in ra đâu đó. */
html body.single-post .bloghash-article > .entry-header:first-child,
html body.single-post .bloghash-article > .post-category:first-child,
html body.single-post .bloghash-article > .entry-meta:first-child {
    display: none !important;
}

/* Không tự thêm khoảng cách vào shortcode nữa. */
html body.single-post #main .entry-content,
html body.single-post #main #content.site-content .entry-content,
html body.single-post #main .entry-content > :first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    html body.single-post .dhtft-inline-single-title {
        margin: 16px auto 22px !important;
        transform: translateX(0px) !important;
        padding: 0 12px !important;
    }
    html body.single-post .dhtft-inline-single-title__inner {
        padding-left: 16px !important;
        padding-bottom: 8px !important;
    }
    html body.single-post .dhtft-inline-single-title__inner::before {
        width: 3px !important;
        min-height: 62px !important;
    }
    html body.single-post .dhtft-inline-single-title .dhtft-single-breadcrumb {
        gap: 6px !important;
        font-size: 11px !important;
        letter-spacing: .065em !important;
    }
    html body.single-post .dhtft-inline-single-title .dhtft-inline-page-title {
        font-size: clamp(30px, 9vw, 40px) !important;
        line-height: 1.04 !important;
    }
}
