/**
 * HTML Page Manager — Premium Single Post Layout Stylesheet
 *
 * 3 Distinct Layouts:
 * 1. Full-Width Hero + Editorial Article Layout (.hpm-single--fullwidth)
 * 2. Split Hero + Modern Magazine Layout (.hpm-single--split)
 * 3. Creative Gradient Hero + Floating Article Card (.hpm-single--creative)
 */

/* ═══════════════════════════════════════════════
   1. GLOBAL WRAPPER & THEME CLEANUP
═══════════════════════════════════════════════ */
body.hpm-single-post-active {
    background-color: #ffffff !important;
    overflow-x: hidden !important;
}

html.hpm-single-post-active {
    overflow-x: hidden !important;
}

body.hpm-single-post-active .hpm-single-main-wrapper,
body.hpm-single-post-active .hpm-single-content-area,
body.hpm-single-post-active .hpm-single-site-main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

/* Universal theme container breakout for single post (header/footer excluded so their text keeps its padding) */
body.hpm-single-post-active #page,
body.hpm-single-post-active #content,
body.hpm-single-post-active .site-content,
body.hpm-single-post-active .ast-container:not(footer *):not(header *):not(.site-footer *):not(.site-header *),
body.hpm-single-post-active .grid-container:not(footer *):not(header *):not(.site-footer *):not(.site-header *),
body.hpm-single-post-active #content-wrap:not(footer *):not(header *):not(.site-footer *):not(.site-header *),
body.hpm-single-post-active .container:not(footer *):not(header *):not(.site-footer *):not(.site-header *),
body.hpm-single-post-active .site-container:not(footer *):not(header *):not(.site-footer *):not(.site-header *),
body.hpm-single-post-active .site-main,
body.hpm-single-post-active #main,
body.hpm-single-post-active #primary,
body.hpm-single-post-active .content-area,
body.hpm-single-post-active .entry-content:not(footer *):not(header *):not(.site-footer *):not(.site-header *),
body.hpm-single-post-active .post-content:not(footer *):not(header *):not(.site-footer *):not(.site-header *),
body.hpm-single-post-active .wp-site-blocks,
body.hpm-single-post-active .wp-block-group__inner-container:not(footer *):not(header *):not(.site-footer *):not(.site-header *) {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* Viewport edge-to-edge breakout for fullwidth hero sections across all themes */
body.hpm-layout--fullwidth-editorial .hpm-single-hero--fullwidth,
body.hpm-layout--split-magazine .hpm-single-hero--split,
body.hpm-layout--split-magazine .hpm-split-breadcrumb-bar {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box !important;
}

/* Aggressively suppress Astra and all theme duplicate titles, banners & headers */
body.hpm-single-post-active .ast-single-entry-banner,
body.hpm-single-post-active .ast-single-post-order,
body.hpm-single-post-active .ast-article-post-header,
body.hpm-single-post-active .ast-custom-header,
body.hpm-single-post-active .ast-title-bar,
body.hpm-single-post-active .ast-breadcrumbs-wrapper,
body.hpm-single-post-active .ast-single-post-title-wrapper,
body.hpm-single-post-active header.entry-header:not(.hpm-single-article *),
body.hpm-single-post-active .entry-header:not(.hpm-single-article *),
body.hpm-single-post-active header.page-header,
body.hpm-single-post-active .ast-archive-description,
body.hpm-single-post-active .entry-title:not(.hpm-single-article *),
body.hpm-single-post-active .wp-block-post-title,
body.hpm-single-post-active h1.entry-title:not(.hpm-single-article *) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
}


/* Base article container */
body.hpm-single-post-active .hpm-single-article {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--hpm-sp-body-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif);
    font-size: var(--hpm-sp-body-size, 17px);
    line-height: var(--hpm-reading-line-height, 1.8);
    color: var(--hpm-sp-body-color, #334155);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════
   2. HEADING TARGETS & SMOOTH SCROLL MARGINS
═══════════════════════════════════════════════ */
body.hpm-single-post-active .hpm-heading-target {
    scroll-margin-top: 110px;
    position: relative;
}

body.hpm-single-post-active .hpm-post-body {
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

body.hpm-single-post-active .hpm-post-body h2 {
    font-size: var(--hpm-sp-h2-size, 28px);
    font-weight: 750;
    color: var(--hpm-sp-h2-color, #0f172a);
    line-height: 1.35;
    margin: 44px 0 18px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    width: 100% !important;
    max-width: var(--hpm-reading-max-width, 100%) !important;
}

body.hpm-single-post-active .hpm-post-body h3 {
    font-size: var(--hpm-sp-h3-size, 22px);
    font-weight: 700;
    color: var(--hpm-sp-h3-color, #1e293b);
    line-height: 1.4;
    margin: 32px 0 14px 0;
    width: 100% !important;
    max-width: var(--hpm-reading-max-width, 100%) !important;
}

body.hpm-single-post-active .hpm-post-body h4,
body.hpm-single-post-active .hpm-post-body h5,
body.hpm-single-post-active .hpm-post-body h6 {
    font-weight: 700;
    color: #1e293b;
    margin: 24px 0 12px 0;
    width: 100% !important;
    max-width: var(--hpm-reading-max-width, 100%) !important;
}

body.hpm-single-post-active .hpm-single-article p,
body.hpm-single-post-active .hpm-post-body p,
body.hpm-layout--creative-card .hpm-creative-entry-content p,
body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content p,
body.hpm-layout--split-magazine .hpm-l2-entry-content p,
body.hpm-single-post-active .entry-content p,
body.hpm-single-post-active .hpm-post-body li,
body.hpm-layout--creative-card .hpm-creative-entry-content li,
body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content li,
body.hpm-layout--split-magazine .hpm-l2-entry-content li {
    margin: 0 0 24px 0;
    line-height: var(--hpm-reading-line-height, 1.8);
    font-size: var(--hpm-sp-body-size, 17px);
    font-weight: 400 !important;
    width: 100% !important;
    max-width: var(--hpm-reading-max-width, 100%) !important;
}

body.hpm-single-post-active .hpm-post-body a {
    color: var(--hpm-sp-accent, #4f46e5);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.18s ease;
}

body.hpm-single-post-active .hpm-post-body a:hover {
    color: #7c3aed;
}

body.hpm-single-post-active .hpm-post-body ul,
body.hpm-single-post-active .hpm-post-body ol {
    margin: 0 0 24px 28px;
    padding: 0;
    line-height: var(--hpm-reading-line-height, 1.8);
    width: 100% !important;
    max-width: var(--hpm-reading-max-width, 100%) !important;
}

body.hpm-single-post-active .hpm-post-body li {
    margin-bottom: 8px;
}

body.hpm-single-post-active .hpm-post-body blockquote {
    margin: 32px 0;
    padding: 20px 28px;
    border-left: 4px solid var(--hpm-sp-accent, #4f46e5);
    background: #f8fafc;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #1e293b;
    font-size: 1.05em;
    width: 100% !important;
    max-width: var(--hpm-reading-max-width, 100%) !important;
}

body.hpm-single-post-active .hpm-post-body blockquote p:last-child {
    margin-bottom: 0;
}

body.hpm-single-post-active .hpm-post-body pre,
body.hpm-single-post-active .hpm-post-body code {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9em;
}

body.hpm-single-post-active .hpm-post-body pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 20px 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 28px 0;
    width: 100% !important;
    max-width: var(--hpm-reading-max-width, 100%) !important;
}

body.hpm-single-post-active .hpm-post-body code:not(pre code) {
    background: #f1f5f9;
    color: #0f172a;
    padding: 3px 6px;
    border-radius: 6px;
}

/* Responsive Tables & Embeds */
body.hpm-single-post-active .hpm-table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 28px 0;
    box-sizing: border-box;
}

body.hpm-single-post-active .hpm-post-body table,
body.hpm-layout--creative-card .hpm-creative-entry-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 0.95em;
    min-width: 320px;
}

body.hpm-single-post-active .hpm-post-body .wp-block-table,
body.hpm-single-post-active .hpm-post-body > table,
body.hpm-layout--creative-card .hpm-creative-entry-content .wp-block-table,
body.hpm-layout--creative-card .hpm-creative-entry-content > table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

body.hpm-single-post-active .hpm-post-body th,
body.hpm-single-post-active .hpm-post-body td,
body.hpm-layout--creative-card .hpm-creative-entry-content th,
body.hpm-layout--creative-card .hpm-creative-entry-content td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

body.hpm-single-post-active .hpm-post-body th,
body.hpm-layout--creative-card .hpm-creative-entry-content th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
}

body.hpm-single-post-active .hpm-post-body img,
body.hpm-single-post-active .hpm-post-body iframe,
body.hpm-single-post-active .hpm-post-body video,
body.hpm-single-post-active .hpm-post-body embed,
body.hpm-single-post-active .hpm-post-body object {
    max-width: 100% !important;
    height: auto;
    box-sizing: border-box;
}

body.hpm-single-post-active .hpm-post-body img {
    border-radius: 12px;
    margin: 24px 0;
}

/* ═══════════════════════════════════════════════
   3. BREADCRUMBS
═══════════════════════════════════════════════ */
body.hpm-single-post-active .hpm-single-breadcrumb {
    margin-bottom: 20px;
}

body.hpm-single-post-active .hpm-breadcrumb-ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
}

body.hpm-single-post-active .hpm-bc-step {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body.hpm-single-post-active .hpm-bc-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: opacity 0.18s ease;
}

body.hpm-single-post-active .hpm-bc-sep {
    user-select: none;
    opacity: 0.6;
    font-size: 11px;
}

body.hpm-single-post-active .hpm-bc-step--current {
    opacity: 0.85;
}

/* Light & Dark Breadcrumbs (Guaranteed dark, readable text on all light & white layouts) */
body.hpm-single-post-active .hpm-bc--light .hpm-bc-link,
body.hpm-single-post-active .hpm-bc--dark .hpm-bc-link {
    color: #475569 !important;
}
body.hpm-single-post-active .hpm-bc--light .hpm-bc-link:hover,
body.hpm-single-post-active .hpm-bc--dark .hpm-bc-link:hover {
    color: #2563eb !important;
    text-decoration: underline !important;
}
body.hpm-single-post-active .hpm-bc--light .hpm-bc-sep,
body.hpm-single-post-active .hpm-bc--dark .hpm-bc-sep {
    color: #94a3b8 !important;
}
body.hpm-single-post-active .hpm-bc--light .hpm-bc-step--current,
body.hpm-single-post-active .hpm-bc--dark .hpm-bc-step--current {
    color: #0f172a !important;
    font-weight: 600 !important;
}

/* White Breadcrumb (reserved exclusively for dark banners) */
body.hpm-single-post-active .hpm-bc--white .hpm-bc-link {
    color: rgba(255, 255, 255, 0.9);
}
body.hpm-single-post-active .hpm-bc--white .hpm-bc-link:hover {
    color: #ffffff;
    text-decoration: underline;
}
body.hpm-single-post-active .hpm-bc--white .hpm-bc-sep,
body.hpm-single-post-active .hpm-bc--white .hpm-bc-step--current {
    color: rgba(255, 255, 255, 0.7);
}

/* ═══════════════════════════════════════════════
   4. CATEGORY PILLS & METAS
═══════════════════════════════════════════════ */
body.hpm-single-post-active .hpm-hero-cat-wrap {
    margin-bottom: 16px;
}

body.hpm-single-post-active .hpm-hero-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.hpm-single-post-active .hpm-hero-cat-pill .hpm-cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
}

body.hpm-single-post-active .hpm-hero-cat-pill.hpm-pill--accent {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

body.hpm-single-post-active .hpm-hero-cat-pill.hpm-pill--glass {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Author Avatar & Bar */
body.hpm-single-post-active .hpm-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

body.hpm-single-post-active .hpm-author-avatar {
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body.hpm-single-post-active .hpm-author-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

body.hpm-single-post-active .hpm-author-by {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
}

body.hpm-single-post-active .hpm-author-name {
    font-weight: 700;
    font-size: 14.5px;
}

/* ═══════════════════════════════════════════════
   5. TABLE OF CONTENTS SYSTEM (DESKTOP & MOBILE)
═══════════════════════════════════════════════ */
body.hpm-single-post-active .hpm-toc-sticky-box {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 24px;
    border-radius: 16px;
    background: var(--hpm-sp-toc-bg, #f8fafc);
    border: 1px solid var(--hpm-sp-toc-border, #e2e8f0);
    box-sizing: border-box;
}

body.hpm-single-post-active .hpm-toc-static {
    position: static !important;
    top: auto !important;
}

body.hpm-single-post-active .hpm-toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--hpm-sp-toc-border, #e2e8f0);
}

body.hpm-single-post-active .hpm-toc-header h3 {
    font-size: 15px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hpm-sp-toc-title-color, #0f172a);
    margin: 0;
    padding: 0;
}

body.hpm-single-post-active .hpm-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.hpm-single-post-active .hpm-toc-item {
    margin: 0 0 8px 0;
    line-height: 1.35;
}

body.hpm-single-post-active .hpm-toc-item--h2 > .hpm-toc-link {
    font-size: var(--hpm-sp-toc-font-size, 14px);
    font-weight: 600;
    color: var(--hpm-sp-toc-link-color, #475569);
}

body.hpm-single-post-active .hpm-toc-sublist {
    list-style: none;
    margin: 6px 0 6px 14px;
    padding: 0;
}

body.hpm-single-post-active .hpm-toc-item--h3 > .hpm-toc-link {
    font-size: calc(var(--hpm-sp-toc-font-size, 14px) - 1px);
    color: var(--hpm-sp-toc-link-color, #64748b);
    opacity: 0.9;
}

body.hpm-single-post-active .hpm-toc-link {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.16s ease;
}

body.hpm-single-post-active .hpm-toc-link:hover {
    color: var(--hpm-sp-toc-active-color, var(--hpm-sp-accent, #4f46e5));
    background: #edf2f7;
    transform: translateX(2px);
}

body.hpm-single-post-active .hpm-toc-link.is-active {
    color: var(--hpm-sp-toc-active-color, var(--hpm-sp-accent, #4f46e5)) !important;
    background: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
    border-left: 3px solid var(--hpm-sp-toc-active-color, var(--hpm-sp-accent, #4f46e5));
}

/* Mobile Collapsible TOC */
body.hpm-single-post-active .hpm-toc-mobile-accordion {
    display: none;
    margin-bottom: 28px;
    background: var(--hpm-sp-toc-bg, #f8fafc);
    border: 1px solid var(--hpm-sp-toc-border, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
}

body.hpm-single-post-active .hpm-toc-accordion--force-desktop {
    display: block !important;
    margin-bottom: 32px;
}

body.hpm-single-post-active .hpm-toc-toggle-btn {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 700;
    color: var(--hpm-sp-toc-title-color, #0f172a);
    cursor: pointer;
    background: var(--hpm-sp-toc-bg, #f8fafc);
    transition: background 0.2s ease;
}

body.hpm-single-post-active .hpm-toc-toggle-btn:hover {
    background: #f1f5f9;
}

body.hpm-single-post-active .hpm-toc-toggle-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.hpm-single-post-active .hpm-toc-chevron {
    font-size: 12px;
    transition: transform 0.25s ease;
}

body.hpm-single-post-active .hpm-toc-toggle-btn[aria-expanded="true"] .hpm-toc-chevron {
    transform: rotate(180deg);
}

body.hpm-single-post-active .hpm-toc-mobile-content {
    padding: 12px 18px 18px 18px;
    border-top: 1px solid var(--hpm-sp-toc-border, #e2e8f0);
}

/* ═══════════════════════════════════════════════
   6. SOCIAL SHARING BAR
═══════════════════════════════════════════════ */
body.hpm-single-post-active .hpm-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.hpm-single-post-active .hpm-share-btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body.hpm-single-post-active .hpm-share-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.hpm-single-post-active .hpm-share-btn.hpm-share-x:hover { background: #000000; }
body.hpm-single-post-active .hpm-share-btn.hpm-share-fb:hover { background: #1877f2; }
body.hpm-single-post-active .hpm-share-btn.hpm-share-li:hover { background: #0a66c2; }
body.hpm-single-post-active .hpm-share-btn.hpm-share-wa:hover { background: #25d366; }
body.hpm-single-post-active .hpm-share-btn.hpm-share-copy:hover { background: #4f46e5; }

/* Vertical Floating Share */
body.hpm-single-post-active .hpm-share--vertical {
    flex-direction: column;
}

body.hpm-single-post-active .hpm-floating-share-box {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

body.hpm-single-post-active .hpm-share-vertical-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #94a3b8;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════
   7. ARTICLE FOOTER (TAGS & AUTHOR BIO)
═══════════════════════════════════════════════ */
body.hpm-single-post-active .hpm-article-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

body.hpm-single-post-active .hpm-article-tags-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

body.hpm-single-post-active .hpm-tags-label {
    font-weight: 700;
    font-size: 14px;
    color: #475569;
}

body.hpm-single-post-active .hpm-tag-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.16s ease;
}

body.hpm-single-post-active .hpm-tag-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}

body.hpm-single-post-active .hpm-bottom-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 24px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 36px;
}

body.hpm-single-post-active .hpm-share-title {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
}

body.hpm-single-post-active .hpm-author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

body.hpm-single-post-active .hpm-author-box-avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

body.hpm-single-post-active .hpm-author-box-content {
    flex: 1;
}

body.hpm-single-post-active .hpm-author-box-role {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hpm-sp-accent, #4f46e5);
}

body.hpm-single-post-active .hpm-author-box-name {
    margin: 4px 0 10px 0;
    font-size: 18px;
    font-weight: 750;
}

body.hpm-single-post-active .hpm-author-box-name a {
    color: #0f172a;
    text-decoration: none;
}

body.hpm-single-post-active .hpm-author-box-name a:hover {
    color: var(--hpm-sp-accent, #4f46e5);
}

body.hpm-single-post-active .hpm-author-box-bio {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
}

/* ═══════════════════════════════════════════════
   8. SPECIFIC LAYOUT: STYLE 1 (LINEAR / TECH-EDITORIAL SPLIT HERO)
   Matches Webflow / Linear Insights Editorial Reference:
   - Pure White Background (#ffffff)
   - Left side: Breadcrumb, Category Pill (〰 Insights), Bold Headline, Subtitle, Inline Author + Date
   - Right side: Clean Rounded Featured Image Card
   - Two-Column Article Section: Left Sticky Sidebar (Author Card + Tree-Branch Boxed TOC + Social Share), Right Content with Regular Paragraphs
═══════════════════════════════════════════════ */
body.hpm-layout--fullwidth-editorial .hpm-single--linear-editorial,
body.hpm-layout--fullwidth-editorial .hpm-single--fullwidth {
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    position: relative;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-hero-header {
    width: 100% !important;
    background: #ffffff !important;
    padding: 40px 0 32px 0 !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-hero-container {
    width: 100% !important;
    max-width: var(--hpm-sp-content-width, 100%) !important;
    margin: 0 auto !important;
    padding: 0 max(24px, 4vw) !important;
    box-sizing: border-box !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 1fr) !important;
    gap: 48px !important;
    align-items: center !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-hero-grid.hpm-no-hero-thumb {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: var(--hpm-reading-max-width, 960px) !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-breadcrumb {
    margin-bottom: 16px !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-cat-wrap {
    margin-bottom: 18px !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-cat-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 9999px !important;
    padding: 5px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    text-transform: capitalize !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-cat-icon {
    color: var(--hpm-sp-accent, #0284c7) !important;
    font-size: 14px !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-hero-left h1,
body.hpm-layout--fullwidth-editorial .hpm-l1-hero-title {
    font-family: var(--hpm-sp-title-font, inherit) !important;
    font-size: clamp(28px, 3.8vw, var(--hpm-sp-title-size, 46px)) !important;
    font-weight: var(--hpm-sp-title-weight, 800) !important;
    color: #0f172a !important;
    line-height: 1.18 !important;
    letter-spacing: -0.03em !important;
    margin: 0 0 16px 0 !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-hero-subtitle {
    font-size: 18px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    color: #475569 !important;
    margin: 0 0 24px 0 !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-hero-meta-bar {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    font-size: 14px !important;
    color: #64748b !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-inline-author {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-avatar-inline {
    border-radius: 50% !important;
    object-fit: cover !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-dot {
    color: #cbd5e1 !important;
    user-select: none !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-image-card {
    border-radius: var(--hpm-sp-radius, 16px) !important;
    overflow: hidden !important;
    box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(15, 23, 42, 0.05) !important;
    background: #f1f5f9 !important;
    line-height: 0 !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-hero-img {
    width: 100% !important;
    height: auto !important;
    max-height: 480px !important;
    object-fit: cover !important;
    display: block !important;
}

/* Two-Column Editorial Article Section */
body.hpm-layout--fullwidth-editorial .hpm-l1-content-container {
    width: 100% !important;
    max-width: var(--hpm-sp-content-width, 100%) !important;
    margin: 0 auto !important;
    padding: 48px max(24px, 4vw) 80px max(24px, 4vw) !important;
    box-sizing: border-box !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-article-grid.hpm-has-sidebar-toc {
    display: grid !important;
    grid-template-columns: minmax(250px, 280px) minmax(0, 1fr) !important;
    gap: var(--hpm-sp-col-gap, 56px) !important;
    align-items: start !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-article-grid.hpm-no-toc {
    display: block !important;
    max-width: var(--hpm-reading-max-width, 860px) !important;
    margin: 0 auto !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-sidebar {
    width: 100% !important;
    max-width: 280px !important;
    min-width: 250px !important;
    box-sizing: border-box !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-main-col {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Left Sticky Sidebar */
body.hpm-layout--fullwidth-editorial .hpm-l1-sidebar-sticky:not(.hpm-toc-static) {
    position: sticky !important;
    top: 32px !important;
    max-height: calc(100vh - 64px) !important;
    overflow-y: auto !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-author-card {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-author-card-avatar {
    border-radius: 50% !important;
    object-fit: cover !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-author-card-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-author-card-role {
    font-size: 12.5px !important;
    color: #64748b !important;
    margin-top: 2px !important;
}

/* Boxed Table of Contents with Tree Branch Connectors (└) */
body.hpm-layout--fullwidth-editorial .hpm-l1-toc-box {
    background: var(--hpm-sp-toc-bg, #f8fafc) !important;
    border: 1px solid var(--hpm-sp-toc-border, #e2e8f0) !important;
    border-radius: 12px !important;
    padding: 18px !important;
    box-sizing: border-box !important;
    margin-bottom: 24px !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-toc-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--hpm-sp-toc-title-color, #0f172a) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin: 0 0 12px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-toc-tree .hpm-toc-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-toc-tree .hpm-toc-item {
    margin: 4px 0 !important;
    line-height: 1.4 !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-toc-tree .hpm-toc-item--h3 {
    margin-left: 14px !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-toc-tree .hpm-toc-bullet {
    display: inline-block !important;
    font-family: monospace, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
    margin-right: 6px !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-toc-tree .hpm-toc-bullet::before {
    content: "└ " !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-toc-tree .hpm-toc-item--h3 .hpm-toc-bullet::before {
    content: "└─ " !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-toc-tree .hpm-toc-link {
    display: flex !important;
    align-items: center !important;
    font-size: var(--hpm-sp-toc-font-size, 14px) !important;
    color: var(--hpm-sp-toc-link-color, #475569) !important;
    text-decoration: none !important;
    padding: 4px 6px !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-toc-tree .hpm-toc-link:hover,
body.hpm-layout--fullwidth-editorial .hpm-l1-toc-tree .hpm-toc-link.is-active {
    color: var(--hpm-sp-toc-active-color, #0f172a) !important;
    background: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-social-box {
    padding-top: 16px !important;
    border-top: 1px solid #e2e8f0 !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-social-label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #94a3b8 !important;
    margin-bottom: 8px !important;
}

/* Right Column: Article Typography & Responsive Tables */
body.hpm-layout--fullwidth-editorial .hpm-l1-main-col {
    min-width: 0 !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content {
    font-family: var(--hpm-sp-body-font, inherit) !important;
    font-size: var(--hpm-sp-body-size, 17.5px) !important;
    line-height: var(--hpm-reading-line-height, 1.82) !important;
    color: var(--hpm-sp-body-color, #334155) !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content p {
    font-weight: 400 !important;
    margin: 0 0 24px 0 !important;
    color: inherit !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content h2 {
    font-size: var(--hpm-sp-h2-size, 28px) !important;
    font-weight: 700 !important;
    color: var(--hpm-sp-h2-color, #0f172a) !important;
    margin: 44px 0 18px 0 !important;
    letter-spacing: -0.02em !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content h3 {
    font-size: var(--hpm-sp-h3-size, 22px) !important;
    font-weight: 600 !important;
    color: var(--hpm-sp-h3-color, #1e293b) !important;
    margin: 32px 0 14px 0 !important;
}

/* Responsive Data Tables in Style 1 */
body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content .hpm-table-responsive,
body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content .wp-block-table {
    width: 100% !important;
    overflow-x: auto !important;
    margin: 32px 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    text-align: left !important;
    font-size: 15px !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content th {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    padding: 14px 18px !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content td {
    padding: 14px 18px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155 !important;
}

body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content tr:last-child td {
    border-bottom: none !important;
}

/* ═══════════════════════════════════════════════
   9. SPECIFIC LAYOUT: STYLE 2 (LAYERED CONTRAST BANNER + OVERLAPPING AVATAR & CENTERED EDITORIAL)
   Matches Style 2 Reference:
   - Dark Contrast Banner at Top (#22252a / #262626) with crisp white bold headline
   - Centered featured image overlapping banner and white reading background
   - Circular author avatar overlapping bottom-center edge of featured image
   - Centered author name, byline/role ('Content Writer, CodeXyard'), and publication date
   - Focused centered reading column (~800px) on pure white background, italic blockquotes
═══════════════════════════════════════════════ */
body.hpm-layout--split-magazine .hpm-single--layered-editorial,
body.hpm-layout--split-magazine .hpm-single--split {
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    position: relative;
}

body.hpm-layout--split-magazine .hpm-l2-header {
    width: 100% !important;
    box-sizing: border-box !important;
}

body.hpm-layout--split-magazine .hpm-l2-dark-banner {
    width: 100% !important;
    background: var(--hpm-sp-split-bg, #24272c) !important;
    color: #ffffff !important;
    padding: 44px max(24px, 4vw) 100px max(24px, 4vw) !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

body.hpm-layout--split-magazine .hpm-l2-banner-inner {
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

body.hpm-layout--split-magazine .hpm-l2-breadcrumb {
    margin-bottom: 14px !important;
}

body.hpm-layout--split-magazine .hpm-l2-banner-title {
    font-family: var(--hpm-sp-title-font, inherit) !important;
    font-size: clamp(26px, 3.5vw, var(--hpm-sp-title-size, 42px)) !important;
    font-weight: var(--hpm-sp-title-weight, 700) !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
    margin: 0 !important;
}

/* Overlapping Featured Image and Circular Author Avatar */
body.hpm-layout--split-magazine .hpm-l2-hero-overlap-wrap {
    width: 100% !important;
    max-width: 880px !important;
    margin: -72px auto 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10 !important;
}

body.hpm-layout--split-magazine .hpm-l2-image-card {
    border-radius: var(--hpm-sp-radius, 12px) !important;
    overflow: hidden !important;
    box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.28) !important;
    background: #1e293b !important;
    line-height: 0 !important;
}

body.hpm-layout--split-magazine .hpm-l2-featured-img {
    width: 100% !important;
    height: auto !important;
    max-height: 520px !important;
    object-fit: cover !important;
    display: block !important;
}

body.hpm-layout--split-magazine .hpm-l2-avatar-overlap {
    position: absolute !important;
    left: 50% !important;
    bottom: -32px !important;
    transform: translateX(-50%) !important;
    z-index: 20 !important;
}

body.hpm-layout--split-magazine .hpm-l2-avatar-img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    border: 4px solid #ffffff !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
    object-fit: cover !important;
    display: block !important;
}

/* Centered Author Byline & Date */
body.hpm-layout--split-magazine .hpm-l2-meta-center {
    text-align: center !important;
    margin-top: 44px !important;
    margin-bottom: 36px !important;
}

body.hpm-layout--split-magazine .hpm-l2-author-name {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

body.hpm-layout--split-magazine .hpm-l2-author-role {
    font-size: 13px !important;
    font-style: italic !important;
    color: #64748b !important;
    margin-top: 2px !important;
}

body.hpm-layout--split-magazine .hpm-l2-date {
    font-size: 13px !important;
    color: #94a3b8 !important;
    margin-top: 6px !important;
}

/* Centered Reading Column */
body.hpm-layout--split-magazine .hpm-l2-content-container {
    width: 100% !important;
    background: #ffffff !important;
    padding: 0 20px 80px 20px !important;
    box-sizing: border-box !important;
}

body.hpm-layout--split-magazine .hpm-l2-centered-col {
    width: 100% !important;
    max-width: var(--hpm-reading-max-width, 800px) !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

body.hpm-layout--split-magazine .hpm-l2-entry-content {
    font-family: var(--hpm-sp-body-font, inherit) !important;
    font-size: var(--hpm-sp-body-size, 17.5px) !important;
    line-height: var(--hpm-reading-line-height, 1.82) !important;
    color: var(--hpm-sp-body-color, #334155) !important;
}

body.hpm-layout--split-magazine .hpm-l2-entry-content p {
    font-weight: 400 !important;
    margin: 0 0 24px 0 !important;
    color: inherit !important;
}

body.hpm-layout--split-magazine .hpm-l2-entry-content blockquote {
    font-style: italic !important;
    color: #475569 !important;
    padding: 18px 24px !important;
    border-left: 3px solid #0f172a !important;
    margin: 32px 0 !important;
    background: #f8fafc !important;
    border-radius: 0 8px 8px 0 !important;
}

body.hpm-layout--split-magazine .hpm-l2-entry-content h2 {
    font-size: var(--hpm-sp-h2-size, 26px) !important;
    font-weight: 700 !important;
    color: var(--hpm-sp-h2-color, #0f172a) !important;
    margin: 40px 0 16px 0 !important;
    letter-spacing: -0.02em !important;
}

body.hpm-layout--split-magazine .hpm-l2-entry-content h3 {
    font-size: var(--hpm-sp-h3-size, 21px) !important;
    font-weight: 600 !important;
    color: var(--hpm-sp-h3-color, #1e293b) !important;
    margin: 30px 0 14px 0 !important;
}

/* ═══════════════════════════════════════════════
   10. SPECIFIC LAYOUT: STYLE 3 (FEATURED IMAGE BANNER + FLOATING CARD — FANCY EDITORIAL)
   Matches reference: Clean featured image banner, zero purple color, floating white card,
   blue category link ('BLOG'), clean meta ('By admin • October 11, 2026'),
   and left-side Table of Contents.
═══════════════════════════════════════════════ */
body.hpm-layout--creative-card .hpm-single--creative {
    width: 100% !important;
    max-width: 100% !important;
    background: #f8fafc !important; /* Soft light slate page background matching reference */
    padding: 36px 0 80px 0 !important;
    box-sizing: border-box !important;
    position: relative;
    overflow-x: clip;
}

body.hpm-layout--creative-card .hpm-single--creative.hpm-no-thumb {
    padding-top: 20px !important;
}

body.hpm-layout--creative-card .hpm-creative-page-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* 1. Top Header Section: Breadcrumb, Category Link, Title, Meta (Positioned BACK above featured image as requested) */
body.hpm-layout--creative-card .hpm-creative-top-header {
    width: 100% !important;
    max-width: var(--hpm-l3-card-width, 1140px) !important;
    margin: 0 auto 24px auto !important;
    padding: 0 max(20px, 3vw) !important;
    box-sizing: border-box !important;
}

body.hpm-layout--creative-card .hpm-creative-header-inner {
    width: 100% !important;
    box-sizing: border-box !important;
}

body.hpm-layout--creative-card .hpm-creative-breadcrumb-bar,
body.hpm-layout--creative-card .hpm-creative-breadcrumb-container {
    width: 100% !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.hpm-layout--creative-card .hpm-creative-breadcrumb-bar .hpm-bc-link,
body.hpm-layout--creative-card .hpm-creative-breadcrumb-bar a,
body.hpm-layout--creative-card .hpm-creative-breadcrumb-bar span,
body.hpm-layout--fullwidth-editorial .hpm-l1-breadcrumb .hpm-bc-link,
body.hpm-layout--fullwidth-editorial .hpm-l1-breadcrumb a {
    color: #475569 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

body.hpm-layout--creative-card .hpm-creative-breadcrumb-bar .hpm-bc-link:hover,
body.hpm-layout--creative-card .hpm-creative-breadcrumb-bar a:hover,
body.hpm-layout--fullwidth-editorial .hpm-l1-breadcrumb .hpm-bc-link:hover {
    color: #2563eb !important;
    text-decoration: underline !important;
}

body.hpm-layout--creative-card .hpm-creative-breadcrumb-bar .hpm-bc-sep,
body.hpm-layout--fullwidth-editorial .hpm-l1-breadcrumb .hpm-bc-sep {
    color: #94a3b8 !important;
    margin: 0 4px !important;
}

body.hpm-layout--creative-card .hpm-creative-breadcrumb-bar .hpm-bc-step--current,
body.hpm-layout--creative-card .hpm-creative-breadcrumb-bar .hpm-bc-step--current span,
body.hpm-layout--fullwidth-editorial .hpm-l1-breadcrumb .hpm-bc-step--current {
    color: #0f172a !important;
    font-weight: 600 !important;
}

/* Category Link: Clean Royal Blue Uppercase ('BLOG' / 'TOP STORIES' style) */
body.hpm-layout--creative-card .hpm-creative-category-wrap,
body.hpm-layout--creative-card .hpm-creative-cat-wrap {
    margin: 0 0 12px 0 !important;
}

body.hpm-layout--creative-card .hpm-creative-category-link {
    display: inline-block !important;
    color: var(--hpm-l3-cat-color, #2563eb) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}
body.hpm-layout--creative-card .hpm-creative-category-link:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

/* Post Title: Positioned BACK above featured image matching user screenshot */
body.hpm-layout--creative-card .hpm-creative-top-header h1,
body.hpm-layout--creative-card .hpm-creative-top-header .hpm-creative-post-title,
body.hpm-layout--creative-card .hpm-creative-post-title,
body.hpm-layout--creative-card .hpm-creative-card-title {
    font-family: var(--hpm-l3-title-font, inherit) !important;
    font-size: clamp(26px, 3.5vw, var(--hpm-l3-title-size, 38px)) !important;
    font-weight: var(--hpm-l3-title-weight, 800) !important;
    color: #0f172a !important; /* Deep dark charcoal, NEVER white */
    line-height: 1.25 !important;
    letter-spacing: -0.025em !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    border: none !important;
    text-transform: none !important;
}

/* Post Meta: 'By admin • October 11, 2026' with clean bullet dots */
body.hpm-layout--creative-card .hpm-creative-post-meta,
body.hpm-layout--creative-card .hpm-creative-card-meta-bar {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    border: none !important;
}

body.hpm-layout--creative-card .hpm-creative-post-meta .hpm-meta-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #64748b !important;
}

body.hpm-layout--creative-card .hpm-creative-post-meta .hpm-meta-author {
    color: #334155 !important;
    font-weight: 600 !important;
}

body.hpm-layout--creative-card .hpm-creative-avatar-mini {
    border-radius: 50% !important;
    object-fit: cover !important;
}

body.hpm-layout--creative-card .hpm-creative-post-meta .hpm-meta-dot {
    color: #cbd5e1 !important;
    font-size: 14px !important;
    user-select: none !important;
}

/* 2. Featured Image Banner (Below Title, ZERO COLOR, ZERO GRADIENT — PURE NATURAL IMAGE ONLY) */
body.hpm-layout--creative-card .hpm-creative-hero-media-wrap {
    width: 100% !important;
    max-width: var(--hpm-l3-card-width, 1140px) !important;
    margin: 0 auto 28px auto !important;
    padding: 0 max(20px, 3vw) !important;
    box-sizing: border-box !important;
    position: relative;
    z-index: 1;
}

body.hpm-layout--creative-card .hpm-creative-featured-media,
body.hpm-layout--creative-card .hpm-creative-card-media {
    width: 100% !important;
    border-radius: var(--hpm-l3-card-radius, 16px) !important;
    overflow: hidden !important;
    box-shadow: 0 12px 35px -8px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.04) !important;
    background: #e2e8f0;
    line-height: 0;
}

body.hpm-layout--creative-card .hpm-creative-featured-img,
body.hpm-layout--creative-card .hpm-creative-card-img,
body.hpm-layout--creative-card .hpm-creative-top-img {
    width: 100% !important;
    height: auto !important;
    max-height: var(--hpm-l3-img-height, 520px) !important;
    display: block !important;
    object-fit: cover !important;
    border-radius: var(--hpm-l3-card-radius, 16px) !important;
}

/* Backwards compatibility / legacy container override: kill purple background & overlay */
body.hpm-layout--creative-card .hpm-creative-hero-section,
body.hpm-layout--creative-card .hpm-single-hero--creative {
    background: transparent !important;
    min-height: auto !important;
    padding: 0 !important;
}
body.hpm-layout--creative-card .hpm-creative-hero-overlay,
body.hpm-layout--creative-card .hpm-single-hero--creative .hpm-hero-overlay {
    display: none !important;
    opacity: 0 !important;
}

/* 3. White Article Card with Slightly Enlarged Border ("content ka border ko thora sa large kro both he thora say") */
body.hpm-layout--creative-card .hpm-creative-card-wrapper,
body.hpm-layout--creative-card .hpm-creative-card-container {
    width: 100% !important;
    max-width: var(--hpm-l3-card-width, 1140px) !important;
    margin: 0 auto !important;
    padding: 0 max(20px, 3vw) !important;
    box-sizing: border-box !important;
    position: relative;
    z-index: 5;
}

body.hpm-layout--creative-card .hpm-creative-card-wrapper.hpm-card--has-media,
body.hpm-layout--creative-card .hpm-creative-card-wrapper.hpm-card--overlap {
    margin-top: 0 !important;
}

body.hpm-layout--creative-card .hpm-creative-card-wrapper.hpm-card--no-media,
body.hpm-layout--creative-card .hpm-creative-card-wrapper.hpm-card--standalone {
    margin-top: 12px !important;
}

body.hpm-layout--creative-card .hpm-creative-main-card,
body.hpm-layout--creative-card .hpm-creative-floating-card {
    background: #ffffff !important;
    border-radius: 18px !important;
    /* Content border slightly enlarged as explicitly commanded: 2px solid #e2e8f0 (bohat hi thoda sa) */
    border: 2px solid #e2e8f0 !important;
    box-shadow: 0 12px 32px -6px rgba(15, 23, 42, 0.06), 0 2px 8px -2px rgba(15, 23, 42, 0.03) !important;
    padding: 44px 48px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    text-align: left;
}

/* Article Body Grid with Left-Side Table of Contents */
body.hpm-layout--creative-card .hpm-creative-body-grid {
    width: 100% !important;
    box-sizing: border-box !important;
}

body.hpm-layout--creative-card .hpm-creative-body-grid.hpm-has-toc.hpm-toc-pos--left {
    display: grid !important;
    grid-template-columns: var(--hpm-l3-toc-width, 280px) minmax(0, 1fr) !important;
    gap: var(--hpm-l3-col-gap, 44px) !important;
    align-items: start !important;
}

body.hpm-layout--creative-card .hpm-creative-body-grid.hpm-has-toc.hpm-toc-pos--right {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) var(--hpm-l3-toc-width, 280px) !important;
    gap: var(--hpm-l3-col-gap, 44px) !important;
    align-items: start !important;
}

body.hpm-layout--creative-card .hpm-creative-body-grid.hpm-no-toc,
body.hpm-layout--creative-card .hpm-creative-body-grid.hpm-toc-pos--top,
body.hpm-layout--creative-card .hpm-creative-body-grid.hpm-toc-pos--hide {
    display: block !important;
}

/* Dedicated Left-Side Table of Contents inside Card */
body.hpm-layout--creative-card .hpm-creative-toc-sidebar {
    width: 100% !important;
    max-width: 280px !important;
    min-width: 250px !important;
    box-sizing: border-box !important;
}

body.hpm-layout--creative-card .hpm-creative-content-main {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body.hpm-layout--creative-card .hpm-creative-toc-sticky-box {
    background: var(--hpm-l3-toc-bg, #f8fafc) !important;
    border: 1px solid var(--hpm-l3-toc-border, #e2e8f0) !important;
    border-radius: 14px !important;
    padding: 20px 20px !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.04) !important;
}

body.hpm-layout--creative-card .hpm-creative-toc-sticky-box:not(.hpm-toc-static) {
    position: sticky !important;
    top: 32px !important;
    max-height: calc(100vh - 64px) !important;
    overflow-y: auto !important;
}

body.hpm-layout--creative-card .hpm-creative-toc-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.hpm-layout--creative-card .hpm-creative-toc-icon {
    font-size: 16px !important;
}

body.hpm-layout--creative-card .hpm-creative-toc-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--hpm-l3-toc-title-color, #0f172a) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin: 0 !important;
    flex: 1 !important;
}

body.hpm-layout--creative-card .hpm-creative-toc-badge {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background: #e2e8f0 !important;
    padding: 2px 8px !important;
    border-radius: 9999px !important;
}

body.hpm-layout--creative-card .hpm-creative-toc-body ol,
body.hpm-layout--creative-card .hpm-creative-toc-body ul,
body.hpm-layout--creative-card .hpm-creative-toc-body .hpm-toc-list,
body.hpm-layout--creative-card .hpm-creative-toc-body .hpm-toc-sublist {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.hpm-layout--creative-card .hpm-creative-toc-body li,
body.hpm-layout--creative-card .hpm-creative-toc-body .hpm-toc-item {
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

body.hpm-layout--creative-card .hpm-creative-toc-body .hpm-toc-sublist {
    margin-left: 14px !important;
    padding-left: 8px !important;
    border-left: 1.5px solid #e2e8f0 !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
}

body.hpm-layout--creative-card .hpm-creative-toc-body .hpm-toc-link,
body.hpm-layout--creative-card .hpm-creative-toc-body a {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: var(--hpm-l3-toc-font-size, 14px) !important;
    color: var(--hpm-l3-toc-link-color, #475569) !important;
    text-decoration: none !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
    line-height: 1.45 !important;
}

body.hpm-layout--creative-card .hpm-creative-toc-body .hpm-toc-link:hover,
body.hpm-layout--creative-card .hpm-creative-toc-body a:hover {
    color: var(--hpm-l3-toc-active-color, #2563eb) !important;
    background: rgba(37, 99, 235, 0.06) !important;
}

body.hpm-layout--creative-card .hpm-creative-toc-body .hpm-toc-link.is-active,
body.hpm-layout--creative-card .hpm-creative-toc-body .hpm-toc-link.hpm-toc-active,
body.hpm-layout--creative-card .hpm-creative-toc-body a.is-active,
body.hpm-layout--creative-card .hpm-creative-toc-body a.hpm-toc-active {
    color: var(--hpm-l3-toc-active-color, #2563eb) !important;
    background: rgba(37, 99, 235, 0.10) !important;
    font-weight: 650 !important;
    border-left: 3px solid #2563eb !important;
}

body.hpm-layout--creative-card .hpm-creative-sidebar-share {
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px solid var(--hpm-l3-toc-border, #e2e8f0) !important;
}

body.hpm-layout--creative-card .hpm-creative-sidebar-share .hpm-share-label {
    display: block !important;
    font-size: 11.5px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    margin-bottom: 10px !important;
    letter-spacing: 0.05em !important;
}

/* Main Content Column */
body.hpm-layout--creative-card .hpm-creative-content-main {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Article Body Typography (Professional Magazine Standards) */
body.hpm-layout--creative-card .hpm-creative-entry-content {
    font-family: var(--hpm-l3-body-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif) !important;
    font-size: var(--hpm-l3-body-size, 17.5px) !important;
    line-height: var(--hpm-reading-line-height, 1.82) !important;
    color: var(--hpm-l3-body-color, #334155) !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content p {
    margin: 0 0 24px 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content strong,
body.hpm-layout--creative-card .hpm-creative-entry-content b,
body.hpm-single-post-active .hpm-post-body strong,
body.hpm-single-post-active .hpm-post-body b {
    font-weight: 700 !important;
    color: #0f172a !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content h2 {
    font-size: var(--hpm-l3-h2-size, 26px) !important;
    font-weight: 750 !important;
    color: var(--hpm-l3-h2-color, #0f172a) !important;
    line-height: 1.3 !important;
    letter-spacing: -0.02em !important;
    margin: 44px 0 16px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content h3 {
    font-size: var(--hpm-l3-h3-size, 21px) !important;
    font-weight: 700 !important;
    color: var(--hpm-l3-h3-color, #1e293b) !important;
    line-height: 1.35 !important;
    margin: 32px 0 14px 0 !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content h4 {
    font-size: 18px !important;
    font-weight: 650 !important;
    color: #334155 !important;
    line-height: 1.4 !important;
    margin: 24px 0 10px 0 !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content blockquote {
    background: #f8fafc !important;
    border-left: 4px solid var(--hpm-l3-accent, #2563eb) !important;
    padding: 22px 28px !important;
    border-radius: 0 12px 12px 0 !important;
    font-style: italic !important;
    color: #1e293b !important;
    font-size: 18.5px !important;
    line-height: 1.72 !important;
    margin: 32px 0 !important;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04) !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content blockquote p:last-child {
    margin-bottom: 0 !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content ul,
body.hpm-layout--creative-card .hpm-creative-entry-content ol {
    margin: 0 0 24px 0 !important;
    padding-left: 28px !important;
    line-height: 1.8 !important;
    color: #334155 !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content li {
    margin-bottom: 8px !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content a {
    color: var(--hpm-l3-accent, #2563eb) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    transition: color 0.15s ease !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content a:hover {
    color: #1d4ed8 !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content pre {
    background: #0f172a !important;
    color: #f8fafc !important;
    padding: 20px 24px !important;
    border-radius: 12px !important;
    overflow-x: auto !important;
    margin: 28px 0 !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content code:not(pre code) {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    padding: 3px 7px !important;
    border-radius: 6px !important;
    font-size: 0.9em !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content .hpm-table-responsive,
body.hpm-layout--creative-card .hpm-creative-entry-content .wp-block-table {
    width: 100% !important;
    overflow-x: auto !important;
    margin: 28px 0 !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content th {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    padding: 12px 16px !important;
    text-align: left !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content td {
    padding: 12px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155 !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content tr:last-child td {
    border-bottom: none !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content tr:hover td {
    background: #f8fafc !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    margin: 28px 0 !important;
    box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.08) !important;
}

body.hpm-layout--creative-card .hpm-creative-entry-content hr {
    border: none !important;
    border-top: 1px solid #e2e8f0 !important;
    margin: 40px 0 !important;
}

body.hpm-layout--creative-card .hpm-creative-article-footer {
    margin-top: 48px !important;
    padding-top: 32px !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* Responsive Rules for Style 3 */
@media (max-width: 900px) {
    body.hpm-layout--creative-card .hpm-creative-body-grid.hpm-has-toc.hpm-toc-pos--left,
body.hpm-layout--creative-card .hpm-creative-body-grid.hpm-has-toc.hpm-toc-pos--right {
        grid-template-columns: 1fr !important;
    }
    body.hpm-layout--creative-card .hpm-creative-toc-sidebar {
        display: none !important;
    }
    body.hpm-single-post-active .hpm-toc-mobile-accordion {
        display: block !important;
        margin-bottom: 24px !important;
    }
    body.hpm-layout--creative-card .hpm-creative-card-wrapper,
body.hpm-layout--creative-card .hpm-creative-card-container {
        padding: 0 16px !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    body.hpm-layout--creative-card .hpm-creative-card-wrapper.hpm-card--overlap,
body.hpm-layout--creative-card .hpm-creative-card-wrapper.hpm-card--has-media,
body.hpm-layout--creative-card .hpm-creative-floating-card {
        margin-top: 0 !important;
    }
    /* Mobile Editorial: Borderless, flat, full-bleed natural reading layout */
    body.hpm-layout--creative-card .hpm-creative-main-card,
body.hpm-layout--creative-card .hpm-creative-floating-card,
body.hpm-layout--creative-card .hpm-creative-card,
body.hpm-layout--creative-card .hpm-creative-intro-card,
body.hpm-single-post-active .single-post .entry-content,
body.hpm-single-post-active .entry-content {
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    body.hpm-single-post-active .hpm-single-article,
body.hpm-single-post-active .hpm-single-article p,
body.hpm-single-post-active .hpm-post-body,
body.hpm-single-post-active .hpm-post-body p,
body.hpm-layout--creative-card .hpm-creative-entry-content,
body.hpm-layout--creative-card .hpm-creative-entry-content p,
body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content p,
body.hpm-layout--split-magazine .hpm-l2-entry-content p,
body.hpm-single-post-active .entry-content p,
body.hpm-single-post-active p.wp-block-paragraph,
body.hpm-single-post-active .hpm-post-body li,
body.hpm-layout--creative-card .hpm-creative-entry-content li,
body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content li,
body.hpm-layout--split-magazine .hpm-l2-entry-content li {
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
        font-weight: 400 !important;
        font-style: normal !important;
        color: #334155 !important;
        -webkit-font-smoothing: antialiased !important;
    }
    body.hpm-layout--creative-card .hpm-creative-entry-content strong,
body.hpm-layout--creative-card .hpm-creative-entry-content b,
body.hpm-single-post-active .hpm-post-body strong,
body.hpm-single-post-active .hpm-post-body b,
body.hpm-single-post-active .entry-content strong,
body.hpm-single-post-active .entry-content b {
        font-weight: 700 !important;
        color: #0f172a !important;
    }
}

@media (max-width: 600px) {
    body.hpm-layout--creative-card .hpm-single--creative {
        padding: 16px 0 50px 0 !important;
    }
    body.hpm-layout--creative-card .hpm-creative-featured-img {
        max-height: 260px !important;
        border-radius: 10px !important;
    }
    body.hpm-layout--creative-card .hpm-creative-card-wrapper,
body.hpm-layout--creative-card .hpm-creative-card-container {
        padding: 0 14px !important;
    }
    body.hpm-layout--creative-card .hpm-creative-card-wrapper.hpm-card--overlap,
body.hpm-layout--creative-card .hpm-creative-card-wrapper.hpm-card--has-media,
body.hpm-layout--creative-card .hpm-creative-floating-card {
        margin-top: 0 !important;
    }
    body.hpm-layout--creative-card .hpm-creative-main-card,
body.hpm-layout--creative-card .hpm-creative-floating-card,
body.hpm-layout--creative-card .hpm-creative-card,
body.hpm-layout--creative-card .hpm-creative-intro-card,
body.hpm-single-post-active .single-post .entry-content,
body.hpm-single-post-active .entry-content {
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: transparent !important;
    }
    body.hpm-layout--creative-card .hpm-creative-post-title,
body.hpm-layout--creative-card .hpm-creative-card-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }
    body.hpm-layout--creative-card .hpm-creative-post-meta,
body.hpm-layout--creative-card .hpm-creative-card-meta-bar {
        font-size: 13px !important;
        gap: 6px !important;
    }
    body.hpm-single-post-active .hpm-single-article,
body.hpm-single-post-active .hpm-single-article p,
body.hpm-single-post-active .hpm-post-body,
body.hpm-single-post-active .hpm-post-body p,
body.hpm-layout--creative-card .hpm-creative-entry-content,
body.hpm-layout--creative-card .hpm-creative-entry-content p,
body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content p,
body.hpm-layout--split-magazine .hpm-l2-entry-content p,
body.hpm-single-post-active .entry-content p,
body.hpm-single-post-active p.wp-block-paragraph,
body.hpm-single-post-active .hpm-post-body li,
body.hpm-layout--creative-card .hpm-creative-entry-content li,
body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content li,
body.hpm-layout--split-magazine .hpm-l2-entry-content li {
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
        font-weight: 400 !important;
        font-style: normal !important;
        color: #334155 !important;
        -webkit-font-smoothing: antialiased !important;
    }
    body.hpm-layout--creative-card .hpm-creative-entry-content strong,
body.hpm-layout--creative-card .hpm-creative-entry-content b,
body.hpm-single-post-active .hpm-post-body strong,
body.hpm-single-post-active .hpm-post-body b,
body.hpm-single-post-active .entry-content strong,
body.hpm-single-post-active .entry-content b {
        font-weight: 700 !important;
        color: #0f172a !important;
    }
}

/* ═══════════════════════════════════════════════
   11. RESPONSIVENESS (TABLET & MOBILE)
═══════════════════════════════════════════════ */
@media (max-width: 1120px) {
    body.hpm-single-post-active .hpm-single-content-container,
body.hpm-layout--split-magazine .hpm-split-content-container,
body.hpm-layout--creative-card .hpm-creative-article-container,
body.hpm-layout--creative-card .hpm-creative-content-container {
        width: 100%;
        max-width: 100%;
        padding-left: 24px;
        padding-right: 24px;
    }
    body.hpm-layout--fullwidth-editorial .hpm-single-hero--fullwidth .hpm-hero-title {
        font-size: 38px;
    }
    body.hpm-layout--split-magazine .hpm-single-hero--split .hpm-hero-title {
        font-size: 34px;
    }
    body.hpm-layout--creative-card .hpm-single-hero--creative .hpm-hero-title,
body.hpm-layout--creative-card .hpm-creative-card-title {
        font-size: 36px;
    }
    body.hpm-single-post-active .hpm-single-grid {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 28px;
    }
    body.hpm-layout--split-magazine .hpm-split-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    body.hpm-layout--split-magazine .hpm-split-layout-grid {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 28px;
    }
    body.hpm-layout--split-magazine .hpm-split-share-col {
        display: none; /* Move to bottom share bar */
    }
    body.hpm-layout--creative-card .hpm-creative-article-grid,
body.hpm-layout--creative-card .hpm-creative-grid {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 28px;
    }
    body.hpm-layout--creative-card .hpm-creative-floating-card,
body.hpm-layout--creative-card .hpm-creative-card,
body.hpm-layout--creative-card .hpm-creative-intro-card {
        padding: 36px 36px 36px 36px;
        margin-top: -60px;
    }
}

/* Tablet & Mobile Breakpoint: Collapse sidebars into clean single-column with top accordion to prevent squeezing */
@media (max-width: 920px) {
    body.hpm-single-post-active .hpm-single-content-container,
body.hpm-layout--split-magazine .hpm-split-content-container,
body.hpm-layout--creative-card .hpm-creative-article-container,
body.hpm-layout--creative-card .hpm-creative-content-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding-left: 20px;
        padding-right: 20px;
    }

    body.hpm-single-post-active .hpm-single-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    body.hpm-single-post-active .hpm-toc-sidebar,
body.hpm-layout--fullwidth-editorial .hpm-l1-sidebar {
        display: none !important;
    }

    body.hpm-layout--fullwidth-editorial .hpm-l1-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    body.hpm-layout--fullwidth-editorial .hpm-l1-article-grid.hpm-has-sidebar-toc {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    body.hpm-layout--split-magazine .hpm-l2-hero-overlap-wrap {
        margin-top: -50px !important;
    }

    body.hpm-layout--split-magazine .hpm-split-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    body.hpm-layout--split-magazine .hpm-split-toc-col {
        display: none !important;
    }
    body.hpm-layout--split-magazine .hpm-split-share-col {
        display: none !important;
    }

    body.hpm-layout--creative-card .hpm-creative-article-grid,
body.hpm-layout--creative-card .hpm-creative-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    body.hpm-layout--creative-card .hpm-creative-toc-sidebar,
body.hpm-layout--creative-card .hpm-creative-toc-col {
        display: none !important;
    }

    body.hpm-single-post-active .hpm-toc-mobile-accordion {
        display: block !important;
        margin-bottom: 28px;
    }

    body.hpm-layout--creative-card .hpm-creative-floating-card,
body.hpm-layout--creative-card .hpm-creative-card,
body.hpm-layout--creative-card .hpm-creative-intro-card {
        margin-top: -50px;
        padding: 30px 22px 36px 22px;
        border-radius: 18px;
    }

    body.hpm-layout--creative-card .hpm-creative-card-media,
body.hpm-layout--creative-card .hpm-creative-featured-media,
body.hpm-layout--creative-card .hpm-creative-card-thumb {
        margin: 20px 0 24px 0;
        border-radius: 14px;
    }
}

@media (max-width: 768px) {
    body.hpm-single-post-active,
body.hpm-single-post-active .hpm-single-article {
        overflow-x: clip;
    }

    /* Full-width editorial mobile */
    body.hpm-layout--fullwidth-editorial .hpm-l1-hero-header {
        padding: 24px 0 20px 0 !important;
    }
    body.hpm-layout--fullwidth-editorial .hpm-l1-hero-title {
        font-size: 26px !important;
    }
    body.hpm-layout--fullwidth-editorial .hpm-l1-hero-subtitle {
        font-size: 16px !important;
    }
    body.hpm-layout--fullwidth-editorial .hpm-l1-content-container {
        padding: 28px var(--hpm-mobile-padding, 20px) 60px var(--hpm-mobile-padding, 20px) !important;
    }
    body.hpm-layout--fullwidth-editorial .hpm-single-hero--fullwidth {
        padding: 44px var(--hpm-mobile-padding, 20px);
        min-height: auto;
    }
    body.hpm-layout--fullwidth-editorial .hpm-single-hero--fullwidth .hpm-hero-title {
        font-size: 28px;
    }
    body.hpm-single-post-active .hpm-single-content-container {
        padding: 32px var(--hpm-mobile-padding, 20px) 60px var(--hpm-mobile-padding, 20px) !important;
    }

    /* Split / Layered editorial mobile */
    body.hpm-layout--split-magazine .hpm-l2-dark-banner {
        padding: 32px 18px 72px 18px !important;
    }
    body.hpm-layout--split-magazine .hpm-l2-banner-title {
        font-size: 24px !important;
    }
    body.hpm-layout--split-magazine .hpm-l2-avatar-img {
        width: 52px !important;
        height: 52px !important;
    }
    body.hpm-layout--split-magazine .hpm-l2-avatar-overlap {
        bottom: -26px !important;
    }
    body.hpm-layout--split-magazine .hpm-l2-meta-center {
        margin-top: 36px !important;
        margin-bottom: 24px !important;
    }
    body.hpm-layout--split-magazine .hpm-l2-content-container {
        padding: 0 16px 60px 16px !important;
    }

    /* Split hero mobile */
    body.hpm-layout--split-magazine .hpm-single-hero--split {
        padding: 24px var(--hpm-mobile-padding, 20px) 36px var(--hpm-mobile-padding, 20px);
    }
    body.hpm-layout--split-magazine .hpm-single-hero--split .hpm-hero-title {
        font-size: 27px;
    }
    body.hpm-layout--split-magazine .hpm-split-content-container {
        padding: 32px var(--hpm-mobile-padding, 20px) 60px var(--hpm-mobile-padding, 20px) !important;
    }

    /* Creative gradient mobile */
    body.hpm-layout--creative-card .hpm-creative-hero-section,
body.hpm-layout--creative-card .hpm-single-hero--creative {
        padding: 44px var(--hpm-mobile-padding, 20px) 80px var(--hpm-mobile-padding, 20px);
        min-height: auto;
    }
    body.hpm-layout--creative-card .hpm-single-hero--creative .hpm-hero-title {
        font-size: 28px;
    }
    body.hpm-layout--creative-card .hpm-creative-card-container,
body.hpm-layout--creative-card .hpm-creative-card-wrapper {
        padding: 0 16px !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    body.hpm-layout--creative-card .hpm-creative-floating-card,
body.hpm-layout--creative-card .hpm-creative-main-card,
body.hpm-layout--creative-card .hpm-creative-card,
body.hpm-layout--creative-card .hpm-creative-intro-card,
body.hpm-single-post-active .single-post .entry-content,
body.hpm-single-post-active .entry-content {
        margin-top: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    body.hpm-layout--creative-card .hpm-creative-card-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    body.hpm-layout--creative-card .hpm-creative-card-meta-bar,
body.hpm-layout--creative-card .hpm-creative-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    body.hpm-layout--creative-card .hpm-creative-article-section {
        padding: 24px 0 50px 0;
    }
    body.hpm-layout--creative-card .hpm-creative-article-container,
body.hpm-layout--creative-card .hpm-creative-content-container {
        padding: 0 16px !important;
    }

    /* Reading typography on mobile: 100% clean normal 400 weight with system UI font stack */
    body.hpm-single-post-active .hpm-single-article,
body.hpm-single-post-active .hpm-single-article p,
body.hpm-single-post-active .hpm-post-body,
body.hpm-single-post-active .hpm-post-body p,
body.hpm-layout--creative-card .hpm-creative-entry-content,
body.hpm-layout--creative-card .hpm-creative-entry-content p,
body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content,
body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content p,
body.hpm-layout--split-magazine .hpm-l2-entry-content,
body.hpm-layout--split-magazine .hpm-l2-entry-content p,
body.hpm-single-post-active .entry-content p,
body.hpm-single-post-active p.wp-block-paragraph,
body.hpm-single-post-active .hpm-post-body li,
body.hpm-layout--creative-card .hpm-creative-entry-content li,
body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content li,
body.hpm-layout--split-magazine .hpm-l2-entry-content li {
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
        font-size: 16.5px !important;
        line-height: 1.8 !important;
        font-weight: 400 !important;
        font-style: normal !important;
        color: #334155 !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
    }

    body.hpm-layout--creative-card .hpm-creative-entry-content strong,
body.hpm-layout--creative-card .hpm-creative-entry-content b,
body.hpm-single-post-active .hpm-post-body strong,
body.hpm-single-post-active .hpm-post-body b,
body.hpm-single-post-active .entry-content strong,
body.hpm-single-post-active .entry-content b {
        font-weight: 700 !important;
        color: #0f172a !important;
    }

    /* Meta bar mobile wrap */
    body.hpm-layout--fullwidth-editorial .hpm-single-hero--fullwidth .hpm-hero-meta-bar,
body.hpm-layout--split-magazine .hpm-single-hero--split .hpm-hero-meta-bar,
body.hpm-layout--creative-card .hpm-single-hero--creative .hpm-hero-meta-bar {
        gap: 12px;
    }

    body.hpm-single-post-active .hpm-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   v4.8.5 — ISOLATED PER-LAYOUT BREAKPOINTS
   Desktop > 1024px | Tablet 768–1024px | Mobile < 768px
   Every rule lives under its own body.hpm-layout--* namespace.
═══════════════════════════════════════════════════════════════ */

/* ── Layout 1: Full-Width Editorial ── */
@media (min-width: 1025px) {
    body.hpm-layout--fullwidth-editorial .hpm-l1-hero-title { font-size: 46px !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    body.hpm-layout--fullwidth-editorial .hpm-l1-hero-title { font-size: 38px !important; }
    body.hpm-layout--fullwidth-editorial .hpm-l1-hero-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
}
@media (max-width: 767px) {
    body.hpm-layout--fullwidth-editorial .hpm-l1-hero-title { font-size: 24px !important; }
}

/* ── Layout 2: Split Magazine ── */
@media (min-width: 1025px) {
    body.hpm-layout--split-magazine .hpm-l2-banner-title { font-size: clamp(34px, 3.6vw, 48px) !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    body.hpm-layout--split-magazine .hpm-l2-banner-title { font-size: 36px !important; }
}
@media (max-width: 767px) {
    body.hpm-layout--split-magazine .hpm-l2-banner-title { font-size: 26px !important; }
}

/* ── Layout 3: Creative Floating Card ── */
@media (min-width: 1025px) {
    body.hpm-layout--creative-card .hpm-creative-floating-card { margin-top: -80px; border-radius: 18px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    body.hpm-layout--creative-card .hpm-creative-floating-card { margin-top: -40px; border-radius: 18px; }
}

/* ── Mobile enforcement (<= 900px): borderless, flat, 16px gutters — per layout ── */
@media (max-width: 900px) {
    body.hpm-layout--fullwidth-editorial .hpm-l1-image-card,
    body.hpm-layout--fullwidth-editorial .hpm-l1-toc-box,
    body.hpm-layout--fullwidth-editorial .hpm-l1-author-card,
    body.hpm-layout--fullwidth-editorial .hpm-l1-main-col,
    body.hpm-layout--fullwidth-editorial .hpm-l1-entry-content,
    body.hpm-layout--split-magazine .hpm-l2-image-card,
    body.hpm-layout--split-magazine .hpm-l2-centered-col,
    body.hpm-layout--split-magazine .hpm-l2-entry-content {
        border: none !important;
        box-shadow: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    body.hpm-layout--fullwidth-editorial .hpm-l1-content-container,
    body.hpm-layout--fullwidth-editorial .hpm-l1-hero-container,
    body.hpm-layout--split-magazine .hpm-l2-content-container,
    body.hpm-layout--split-magazine .hpm-split-content-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    body.hpm-layout--fullwidth-editorial .hpm-l1-sidebar,
    body.hpm-layout--fullwidth-editorial .hpm-l1-sidebar-sticky {
        position: static !important;
    }
}

/* ── Typography isolation: body copy weight 400, only <strong>/<b> bold ── */
body.hpm-single-post-active .hpm-post-body p,
body.hpm-single-post-active .hpm-l1-entry-content p,
body.hpm-single-post-active .hpm-l2-entry-content p,
body.hpm-single-post-active .hpm-creative-entry-content p {
    font-weight: 400 !important;
    color: #334155 !important;
}
body.hpm-single-post-active .hpm-post-body strong,
body.hpm-single-post-active .hpm-post-body b,
body.hpm-single-post-active .hpm-l1-entry-content strong,
body.hpm-single-post-active .hpm-l1-entry-content b,
body.hpm-single-post-active .hpm-l2-entry-content strong,
body.hpm-single-post-active .hpm-l2-entry-content b,
body.hpm-single-post-active .hpm-creative-entry-content strong,
body.hpm-single-post-active .hpm-creative-entry-content b {
    font-weight: 700 !important;
}

/* ═══════════════════════════════════════════════════════════════
   v4.8.6 — WIDE CONTENT + TABLE OF CONTENTS ON THE RIGHT (all 3 layouts)
   Desktop > 1024px : article | 300px TOC (sticky, beside the content)
   Tablet 768–1024px: article | 240–260px TOC
   Mobile < 768px   : single column, TOC becomes the "On this page" accordion
   Every rule is namespaced under its own body.hpm-layout--* class.
═══════════════════════════════════════════════════════════════ */

/* sticky needs overflow-x: clip (overflow-x: hidden on html/body silently breaks position: sticky) */
html.hpm-single-post-active,
body.hpm-single-post-active {
    overflow-x: clip !important;
}

/* Let the article use the full width in BuddyBoss / Astra / GeneratePress wrappers */
body.hpm-single-post-active .site-content-grid,
body.hpm-single-post-active .bb-grid,
body.hpm-single-post-active .site-inner,
body.hpm-single-post-active .content-wrap,
body.hpm-single-post-active .site-content-wrap,
body.hpm-single-post-active .inside-article,
body.hpm-single-post-active .ast-container .ast-article-single,
body.hpm-single-post-active #primary .site-main > article,
body.hpm-single-post-active .hpm-single-main-wrapper,
body.hpm-single-post-active .hpm-single-content-area,
body.hpm-single-post-active .hpm-single-site-main {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* Shared TOC link look (used by Layout 2's new sidebar) */
body.hpm-layout--split-magazine .hpm-l2-toc-body ol,
body.hpm-layout--split-magazine .hpm-l2-toc-body ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.hpm-layout--split-magazine .hpm-l2-toc-body .hpm-toc-sublist {
    margin: 4px 0 4px 14px !important;
    padding-left: 8px !important;
    border-left: 1.5px solid #e2e8f0 !important;
}
body.hpm-layout--split-magazine .hpm-l2-toc-body a {
    display: block !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #475569 !important;
    text-decoration: none !important;
}
body.hpm-layout--split-magazine .hpm-l2-toc-body a:hover,
body.hpm-layout--split-magazine .hpm-l2-toc-body a.is-active {
    background: #eff6ff !important;
    color: #2563eb !important;
}
body.hpm-layout--split-magazine .hpm-l2-toc-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.04);
}
body.hpm-layout--split-magazine .hpm-l2-toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
body.hpm-layout--split-magazine .hpm-l2-toc-title {
    margin: 0 !important;
    font-size: 13px !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #0f172a !important;
}

/* ───────── DESKTOP + TABLET (>= 768px): two columns, TOC on the right ───────── */
@media (min-width: 768px) {

    /* Layout 3 — Creative Card: wide card, TOC outside the card */
    body.hpm-layout--creative-card .hpm-single-article .hpm-creative-card-wrapper,
    body.hpm-layout--creative-card .hpm-single-article .hpm-creative-hero-media-wrap {
        max-width: 1400px !important;
        padding-left: max(20px, 3vw) !important;
        padding-right: max(20px, 3vw) !important;
    }
    body.hpm-layout--creative-card .hpm-single-article .hpm-creative-body-grid.hpm-has-toc.hpm-toc-pos--right {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 300px !important;
        gap: 32px !important;
        align-items: start !important;
    }
    body.hpm-layout--creative-card .hpm-single-article .hpm-creative-body-grid.hpm-has-toc.hpm-toc-pos--left {
        display: grid !important;
        grid-template-columns: 300px minmax(0, 1fr) !important;
        gap: 32px !important;
        align-items: start !important;
    }
    body.hpm-layout--creative-card .hpm-single-article .hpm-creative-body-grid.hpm-no-toc,
    body.hpm-layout--creative-card .hpm-single-article .hpm-creative-body-grid.hpm-toc-pos--top {
        display: block !important;
    }
    body.hpm-layout--creative-card .hpm-single-article .hpm-creative-main-card {
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        border: 2px solid #e2e8f0 !important;
        border-radius: 18px !important;
        box-shadow: 0 12px 32px -6px rgba(15, 23, 42, 0.06) !important;
        padding: clamp(24px, 3.2vw, 48px) !important;
        margin: 0 !important;
    }
    body.hpm-layout--creative-card .hpm-single-article .hpm-creative-content-main { max-width: none !important; }
    body.hpm-layout--creative-card .hpm-single-article .hpm-creative-toc-sidebar {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        align-self: stretch !important;
    }
    body.hpm-layout--creative-card .hpm-single-article .hpm-toc-mobile-accordion:not(.hpm-toc-accordion--force-desktop) {
        display: none !important;
    }

    /* Layout 1 — Full-Width Editorial */
    body.hpm-layout--fullwidth-editorial .hpm-single-article .hpm-l1-content-container {
        max-width: 1400px !important;
    }
    body.hpm-layout--fullwidth-editorial .hpm-single-article .hpm-l1-article-grid.hpm-has-sidebar-toc.hpm-toc-pos--right {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 300px !important;
        gap: 40px !important;
        align-items: start !important;
    }
    body.hpm-layout--fullwidth-editorial .hpm-single-article .hpm-l1-article-grid.hpm-has-sidebar-toc.hpm-toc-pos--left {
        display: grid !important;
        grid-template-columns: 300px minmax(0, 1fr) !important;
        gap: 40px !important;
        align-items: start !important;
    }
    body.hpm-layout--fullwidth-editorial .hpm-single-article .hpm-l1-article-grid.hpm-toc-pos--right .hpm-l1-main-col { grid-column: 1 !important; grid-row: 1 !important; }
    body.hpm-layout--fullwidth-editorial .hpm-single-article .hpm-l1-article-grid.hpm-toc-pos--right .hpm-l1-sidebar  { grid-column: 2 !important; grid-row: 1 !important; }
    body.hpm-layout--fullwidth-editorial .hpm-single-article .hpm-l1-sidebar {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        align-self: stretch !important;
    }
    body.hpm-layout--fullwidth-editorial .hpm-single-article .hpm-l1-sidebar-sticky:not(.hpm-toc-static) {
        position: sticky !important;
        top: 32px !important;
    }
    body.hpm-layout--fullwidth-editorial .hpm-single-article .hpm-l1-article-grid.hpm-no-toc,
    body.hpm-layout--fullwidth-editorial .hpm-single-article .hpm-l1-article-grid.hpm-toc-pos--top {
        display: block !important;
        max-width: none !important;
    }
    body.hpm-layout--fullwidth-editorial .hpm-single-article .hpm-toc-mobile-accordion:not(.hpm-toc-accordion--force-desktop) {
        display: none !important;
    }

    /* Layout 2 — Split Magazine */
    body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-content-container {
        max-width: 1400px !important;
        margin: 0 auto !important;
        padding-left: max(24px, 4vw) !important;
        padding-right: max(24px, 4vw) !important;
    }
    body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-article-grid.hpm-has-sidebar-toc.hpm-toc-pos--right {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 300px !important;
        gap: 40px !important;
        align-items: start !important;
    }
    body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-article-grid.hpm-has-sidebar-toc.hpm-toc-pos--left {
        display: grid !important;
        grid-template-columns: 300px minmax(0, 1fr) !important;
        gap: 40px !important;
        align-items: start !important;
    }
    body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-article-grid.hpm-toc-pos--left .hpm-l2-centered-col { grid-column: 2 !important; grid-row: 1 !important; }
    body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-article-grid.hpm-toc-pos--left .hpm-l2-toc-sidebar  { grid-column: 1 !important; grid-row: 1 !important; }
    body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-article-grid.hpm-has-sidebar-toc .hpm-l2-centered-col {
        max-width: none !important;
        margin: 0 !important;
        min-width: 0 !important;
    }
    body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-toc-sidebar {
        display: block !important;
        align-self: stretch !important;
        min-width: 0 !important;
    }
    body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-toc-box:not(.hpm-toc-static) {
        position: sticky !important;
        top: 32px !important;
        max-height: calc(100vh - 64px) !important;
        overflow-y: auto !important;
    }
    body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-article-grid.hpm-has-sidebar-toc .hpm-toc-mobile-accordion {
        display: none !important;
    }
}

/* Tablet: slightly narrower TOC column */
@media (min-width: 768px) and (max-width: 1024px) {
    body.hpm-layout--creative-card .hpm-single-article .hpm-creative-body-grid.hpm-has-toc.hpm-toc-pos--right { grid-template-columns: minmax(0, 1fr) 240px !important; gap: 24px !important; }
    body.hpm-layout--creative-card .hpm-single-article .hpm-creative-body-grid.hpm-has-toc.hpm-toc-pos--left  { grid-template-columns: 240px minmax(0, 1fr) !important; gap: 24px !important; }
    body.hpm-layout--fullwidth-editorial .hpm-single-article .hpm-l1-article-grid.hpm-has-sidebar-toc.hpm-toc-pos--right { grid-template-columns: minmax(0, 1fr) 250px !important; gap: 28px !important; }
    body.hpm-layout--fullwidth-editorial .hpm-single-article .hpm-l1-article-grid.hpm-has-sidebar-toc.hpm-toc-pos--left  { grid-template-columns: 250px minmax(0, 1fr) !important; gap: 28px !important; }
    body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-article-grid.hpm-has-sidebar-toc.hpm-toc-pos--right { grid-template-columns: minmax(0, 1fr) 250px !important; gap: 28px !important; }
    body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-article-grid.hpm-has-sidebar-toc.hpm-toc-pos--left  { grid-template-columns: 250px minmax(0, 1fr) !important; gap: 28px !important; }
}

/* ───────── MOBILE (< 768px): one column, TOC = accordion ───────── */
@media (max-width: 767px) {
    body.hpm-layout--creative-card .hpm-single-article .hpm-creative-body-grid,
    body.hpm-layout--fullwidth-editorial .hpm-single-article .hpm-l1-article-grid,
    body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-article-grid {
        display: block !important;
    }
    body.hpm-layout--creative-card .hpm-single-article .hpm-creative-toc-sidebar,
    body.hpm-layout--fullwidth-editorial .hpm-single-article .hpm-l1-sidebar,
    body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-toc-sidebar {
        display: none !important;
    }
    body.hpm-layout--creative-card .hpm-single-article .hpm-toc-mobile-accordion,
    body.hpm-layout--fullwidth-editorial .hpm-single-article .hpm-toc-mobile-accordion,
    body.hpm-layout--split-magazine .hpm-single-article .hpm-toc-mobile-accordion {
        display: block !important;
        margin-bottom: 24px !important;
    }
}


/* ═══════════════════════════════════════════════════════════════
   v4.8.7 — ALIGNMENT FIXES (breadcrumb / title / footer) + STICKY TOC
   One shared left gutter so breadcrumb, title and meta line up and
   never touch the screen edge on desktop, tablet or mobile.
═══════════════════════════════════════════════════════════════ */
body.hpm-single-post-active {
    --hpm-gutter: clamp(20px, 5vw, 64px);
    --hpm-title-nudge: clamp(4px, 0.8vw, 12px);
    --hpm-toc-top: 96px;
}

/* Layout 1 + 2 + 3: hero inner containers always keep the gutter */
body.hpm-layout--fullwidth-editorial .hpm-single-article .hpm-l1-hero-container,
body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-dark-banner,
body.hpm-layout--creative-card .hpm-single-article .hpm-creative-top-header {
    padding-left: var(--hpm-gutter) !important;
    padding-right: var(--hpm-gutter) !important;
    box-sizing: border-box !important;
}

/* Breadcrumb (Home > Blog > …) sits inside the gutter, never flush left */
body.hpm-single-post-active .hpm-single-article .hpm-single-breadcrumb,
body.hpm-single-post-active .hpm-single-article .hpm-breadcrumb-ol {
    padding-left: var(--hpm-title-nudge) !important;
    box-sizing: border-box;
    max-width: 100%;
}
body.hpm-single-post-active .hpm-single-article .hpm-breadcrumb-ol {
    padding-right: 0 !important;
    row-gap: 4px;
}

/* Title: first letter moved a little to the right */
body.hpm-layout--fullwidth-editorial .hpm-single-article .hpm-l1-hero-title,
body.hpm-layout--fullwidth-editorial .hpm-single-article .hpm-l1-hero-left h1,
body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-banner-title,
body.hpm-layout--creative-card .hpm-single-article .hpm-creative-post-title {
    padding-left: var(--hpm-title-nudge) !important;
    box-sizing: border-box;
}
body.hpm-single-post-active .hpm-single-article .hpm-l1-cat-wrap,
body.hpm-single-post-active .hpm-single-article .hpm-creative-category-wrap,
body.hpm-single-post-active .hpm-single-article .hpm-creative-post-meta {
    padding-left: var(--hpm-title-nudge);
}

/* Layout 2 (Split Hero): breadcrumb + title are BLACK on a light banner */
body.hpm-layout--split-magazine .hpm-l2-dark-banner {
    background: var(--hpm-sp-split-bg-light, #f1f5f9) !important;
    color: #000000 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
body.hpm-layout--split-magazine .hpm-l2-banner-title,
body.hpm-layout--split-magazine .hpm-l2-dark-banner .hpm-bc-link,
body.hpm-layout--split-magazine .hpm-l2-dark-banner .hpm-bc-sep,
body.hpm-layout--split-magazine .hpm-l2-dark-banner .hpm-bc-step--current,
body.hpm-layout--split-magazine .hpm-l2-dark-banner .hpm-bc-step--current span {
    color: #000000 !important;
}
body.hpm-layout--split-magazine .hpm-l2-dark-banner .hpm-bc-link:hover {
    color: #2563eb !important;
}

/* Theme footer: keep its text inside the screen (copyright was cut on the left) */
body.hpm-single-post-active footer,
body.hpm-single-post-active .site-footer,
body.hpm-single-post-active #colophon {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: clip;
}
body.hpm-single-post-active footer .ast-container,
body.hpm-single-post-active footer .container,
body.hpm-single-post-active footer .grid-container,
body.hpm-single-post-active footer .site-container,
body.hpm-single-post-active footer .inside-site-info,
body.hpm-single-post-active footer .site-info,
body.hpm-single-post-active footer .copyright,
body.hpm-single-post-active footer .wp-block-group,
body.hpm-single-post-active #colophon > div,
body.hpm-single-post-active .site-footer > div {
    box-sizing: border-box !important;
    max-width: 1280px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--hpm-gutter) !important;
    padding-right: var(--hpm-gutter) !important;
}
body.hpm-single-post-active footer .site-info,
body.hpm-single-post-active footer .copyright {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ── Sticky TOC: stays in view while scrolling, highlights current section ── */
@media (min-width: 768px) {
    body.hpm-layout--fullwidth-editorial .hpm-l1-sidebar-sticky:not(.hpm-toc-static),
    body.hpm-layout--creative-card .hpm-creative-toc-sticky-box:not(.hpm-toc-static),
    body.hpm-layout--split-magazine .hpm-l2-toc-box:not(.hpm-toc-static) {
        position: sticky !important;
        top: var(--hpm-toc-top) !important;
        max-height: calc(100vh - var(--hpm-toc-top) - 24px) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        align-self: start;
    }
}
/* sticky only works if no ancestor clips with overflow:hidden */
body.hpm-single-post-active .hpm-single-article,
body.hpm-single-post-active .hpm-single-article .hpm-l1-article-grid,
body.hpm-single-post-active .hpm-single-article .hpm-l2-article-grid,
body.hpm-single-post-active .hpm-single-article .hpm-creative-body-grid,
body.hpm-single-post-active .hpm-single-article .hpm-creative-card-wrapper,
body.hpm-single-post-active .hpm-single-article .hpm-l1-sidebar,
body.hpm-single-post-active .hpm-single-article .hpm-l2-toc-sidebar,
body.hpm-single-post-active .hpm-single-article .hpm-creative-toc-sidebar {
    overflow: visible;
}
body.hpm-single-post-active .hpm-single-article { overflow-x: clip; }

/* Active TOC item: clear, with smooth feedback */
body.hpm-single-post-active .hpm-toc-link { transition: color .15s ease, background-color .15s ease, border-color .15s ease; border-left: 3px solid transparent; }
body.hpm-single-post-active .hpm-toc-link.is-active {
    border-left-color: var(--hpm-sp-toc-active-color, #2563eb) !important;
    color: var(--hpm-sp-toc-active-color, #2563eb) !important;
    background: rgba(37, 99, 235, 0.08) !important;
    font-weight: 700 !important;
}

/* ── Mobile: tighter gutter, TOC accordion, no sideways overflow ── */
@media (max-width: 767px) {
    body.hpm-single-post-active { --hpm-gutter: 18px; --hpm-title-nudge: 4px; }
    body.hpm-layout--split-magazine .hpm-l2-dark-banner { padding-top: 28px !important; padding-bottom: 88px !important; }
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
}


/* ═══════════════════════════════════════════════════════════════
   v4.8.8 — HERO TEXT ALIGNED WITH THE ARTICLE COLUMN + MORE RIGHT SHIFT
   Hero containers now use the same max-width / padding as the content
   below them, so Home/Blog, category, title and author/date line start
   where the article starts (not at the far left of a wide screen).
═══════════════════════════════════════════════════════════════ */
body.hpm-single-post-active { --hpm-title-nudge: clamp(10px, 1.6vw, 28px); }

@media (min-width: 768px) {
    /* Layout 1 */
    body.hpm-layout--fullwidth-editorial .hpm-single-article .hpm-l1-hero-container {
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: max(24px, 4vw) !important;
        padding-right: max(24px, 4vw) !important;
    }
    /* Layout 2 */
    body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-banner-inner {
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-dark-banner {
        padding-left: max(24px, 4vw) !important;
        padding-right: max(24px, 4vw) !important;
    }
    /* Layout 3 */
    body.hpm-layout--creative-card .hpm-single-article .hpm-creative-top-header {
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: max(20px, 3vw) !important;
        padding-right: max(20px, 3vw) !important;
    }
}

/* Everything in the hero header gets the same extra right shift */
body.hpm-single-post-active .hpm-single-article .hpm-l1-hero-left > *,
body.hpm-single-post-active .hpm-single-article .hpm-creative-header-inner > *,
body.hpm-single-post-active .hpm-single-article .hpm-l2-banner-inner > * {
    padding-left: var(--hpm-title-nudge) !important;
    box-sizing: border-box;
}
/* avoid double shift (earlier rules added the same nudge to children) */
body.hpm-single-post-active .hpm-single-article .hpm-l1-hero-left > * > .hpm-breadcrumb-ol,
body.hpm-single-post-active .hpm-single-article .hpm-creative-header-inner > * > .hpm-breadcrumb-ol,
body.hpm-single-post-active .hpm-single-article .hpm-l2-banner-inner > * > .hpm-breadcrumb-ol,
body.hpm-single-post-active .hpm-single-article .hpm-l1-hero-left > * > .hpm-single-breadcrumb,
body.hpm-single-post-active .hpm-single-article .hpm-creative-header-inner > * > .hpm-single-breadcrumb,
body.hpm-single-post-active .hpm-single-article .hpm-l2-banner-inner > * > .hpm-single-breadcrumb {
    padding-left: 0 !important;
}
body.hpm-single-post-active .hpm-single-article .hpm-l1-hero-title,
body.hpm-single-post-active .hpm-single-article .hpm-creative-post-title,
body.hpm-single-post-active .hpm-single-article .hpm-l2-banner-title {
    padding-left: var(--hpm-title-nudge) !important;
}
/* the wrappers above already carry the shift: don't stack it on nested meta/category */
body.hpm-single-post-active .hpm-single-article .hpm-l1-cat-wrap,
body.hpm-single-post-active .hpm-single-article .hpm-creative-category-wrap,
body.hpm-single-post-active .hpm-single-article .hpm-creative-post-meta,
body.hpm-single-post-active .hpm-single-article .hpm-l1-hero-meta-bar {
    padding-left: var(--hpm-title-nudge) !important;
}

/* Theme wrappers must not clip: a clipped ancestor silently disables position: sticky */
body.hpm-single-post-active #page,
body.hpm-single-post-active #content,
body.hpm-single-post-active .site-content,
body.hpm-single-post-active #primary,
body.hpm-single-post-active #main,
body.hpm-single-post-active .content-area,
body.hpm-single-post-active .site-main,
body.hpm-single-post-active .wp-site-blocks,
body.hpm-single-post-active .hpm-single-content-area,
body.hpm-single-post-active .hpm-single-site-main,
body.hpm-single-post-active .hpm-single-main-wrapper {
    overflow: visible !important;
    overflow-x: clip !important;
}


/* ═══════════════════════════════════════════════════════════════
   v4.9.0 — requested tweaks only
═══════════════════════════════════════════════════════════════ */
/* Layout 1: author / date / read-time now lives in the sidebar author card */
body.hpm-layout--fullwidth-editorial .hpm-l1-hero-meta-bar { display: none !important; }
body.hpm-layout--fullwidth-editorial .hpm-l1-author-card-meta {
    display: flex; flex-wrap: wrap; gap: 2px 8px;
    margin-top: 4px; font-size: 12px; line-height: 1.4; color: #64748b;
}
body.hpm-layout--fullwidth-editorial .hpm-l1-author-card-meta span + span::before { content: "•"; margin-right: 8px; opacity: .6; }

/* Layout 2: title further right, right-hand column (TOC) pulled a bit left */
body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-banner-inner > * { padding-left: clamp(24px, 4vw, 64px) !important; }
body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-banner-title { padding-left: clamp(24px, 4vw, 64px) !important; }
@media (min-width: 768px) {
    body.hpm-layout--split-magazine .hpm-single-article .hpm-l2-content-container {
        padding-right: max(40px, 6vw) !important;
    }
}

/* Layout 3: the lone category link under the breadcrumb is hidden */
body.hpm-layout--creative-card .hpm-creative-category-wrap { display: none !important; }

/* TOC: unmistakable highlight for the heading currently being read */
body.hpm-single-post-active .hpm-single-article a.hpm-toc-link.is-active,
body.hpm-single-post-active .hpm-single-article a.hpm-toc-link.is-active .hpm-toc-text {
    color: var(--hpm-sp-toc-active-color, #2563eb) !important;
    font-weight: 700 !important;
}
body.hpm-single-post-active .hpm-single-article a.hpm-toc-link.is-active {
    background: rgba(37, 99, 235, .10) !important;
    border-left: 3px solid var(--hpm-sp-toc-active-color, #2563eb) !important;
}


/* v4.9.1 */
body.hpm-layout--fullwidth-editorial .hpm-l1-cat-wrap { display: none !important; }
body.hpm-single-post-active .hpm-single-article a.hpm-toc-link[data-hpm-active="1"] {
    color: var(--hpm-sp-toc-active-color, #2563eb) !important;
    font-weight: 700 !important;
    background: rgba(37, 99, 235, .10) !important;
    border-left: 3px solid var(--hpm-sp-toc-active-color, #2563eb) !important;
}

/* ═══════════════════════════════════════════════════════════════
   v4.9.6 — LEFT SIDE CUT-OFF FIX (BuddyBoss BuddyPanel / fixed left sidebars)
   The theme's fixed left panel was covering the first ~68px of the article
   because the plugin resets theme wrapper offsets. an inline script in the template
   measures the panel BEFORE first paint and sets --hpm-panel-w; the template wrapper uses it as padding-left
   (no layout jump, no flash).
   On phones (panel hidden / off-canvas) the value stays 0px = no change.
═══════════════════════════════════════════════════════════════ */
body.hpm-layout--fullwidth-editorial .hpm-single-hero--fullwidth,
body.hpm-layout--split-magazine .hpm-single-hero--split,
body.hpm-layout--split-magazine .hpm-split-breadcrumb-bar {
    width: calc(100vw - var(--hpm-panel-w, 0px)) !important;
    max-width: calc(100vw - var(--hpm-panel-w, 0px)) !important;
    margin-left: calc((var(--hpm-panel-w, 0px) - 100vw) / 2) !important;
    margin-right: calc((var(--hpm-panel-w, 0px) - 100vw) / 2) !important;
}
/* Post images never overflow or keep a fixed tall box */
body.hpm-single-post-active .hpm-post-body img { max-width: 100% !important; height: auto !important; }
body.hpm-single-post-active .hpm-single-article { min-width: 280px; }

/* v4.9.8 — more theme wrappers get the no-clip rule at first paint (so JS never has to change them after load) */
body.hpm-single-post-active .site,
body.hpm-single-post-active .site-wrapper,
body.hpm-single-post-active .site-inner,
body.hpm-single-post-active .bb-grid,
body.hpm-single-post-active .site-content-grid,
body.hpm-single-post-active #inner-wrap {
    overflow: visible !important;
    overflow-x: clip !important;
}

/* v4.10.0 — category pill in Layout 1 is now a link to the filtered Blog page */
body.hpm-layout--fullwidth-editorial a.hpm-l1-cat-pill { text-decoration: none !important; cursor: pointer; }
body.hpm-layout--fullwidth-editorial a.hpm-l1-cat-pill:hover { opacity: .9; }

/* v4.11.0 Related posts + other categories */
.hpm-rel-section{content-visibility:auto;contain-intrinsic-size:auto 900px;background:#f7f7f9;padding:56px 0 64px;margin:0;clear:both}
.hpm-rel-wrap{max-width:1200px;margin:0 auto;padding:0 24px;box-sizing:border-box}
.hpm-rel-block+.hpm-rel-block{margin-top:56px}
.hpm-rel-head{display:flex;align-items:center;gap:14px;margin:0 0 24px}
.hpm-rel-head:after{content:"";flex:1;height:1px;background:#e3e3e8}
.hpm-rel-heading{margin:0!important;font-size:26px!important;line-height:1.2!important;font-weight:800!important;color:#111!important;letter-spacing:-.01em;position:relative;padding-left:14px}
.hpm-rel-heading:before{content:"";position:absolute;left:0;top:.12em;bottom:.12em;width:4px;border-radius:3px;background:linear-gradient(180deg,#6366f1,#ec4899)}
.hpm-rel-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.hpm-rel-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.06);display:flex;flex-direction:column;transition:transform .2s ease,box-shadow .2s ease;margin:0!important}
.hpm-rel-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(0,0,0,.12)}
.hpm-rel-thumb{display:block;position:relative;aspect-ratio:16/10;background:#e9e9ee;overflow:hidden}
.hpm-rel-thumb img{width:100%!important;height:100%!important;object-fit:cover;display:block;margin:0!important;transition:transform .35s ease}
.hpm-rel-card:hover .hpm-rel-thumb img{transform:scale(1.05)}
.hpm-rel-noimg{position:absolute;inset:0;background:linear-gradient(135deg,#c7d2fe,#fbcfe8)}
.hpm-rel-badge{position:absolute;left:12px;top:12px;background:rgba(17,17,17,.82);color:#fff;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:5px 10px;border-radius:999px;max-width:calc(100% - 24px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hpm-rel-body{padding:16px 18px 18px}
.hpm-rel-title{margin:0 0 8px!important;font-size:17px!important;line-height:1.35!important;font-weight:700!important}
.hpm-rel-title a{color:#111!important;text-decoration:none!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hpm-rel-title a:hover{color:#4f46e5!important}
.hpm-rel-meta{font-size:13px;color:#777}
.hpm-rel-block--alt .hpm-rel-heading:before{background:linear-gradient(180deg,#f59e0b,#ef4444)}
@media (max-width:1024px){.hpm-rel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.hpm-rel-heading{font-size:23px!important}}
@media (max-width:600px){.hpm-rel-section{padding:36px 0 44px}.hpm-rel-wrap{padding:0 16px}.hpm-rel-grid{grid-template-columns:1fr;gap:16px}.hpm-rel-card{flex-direction:row;border-radius:12px}.hpm-rel-thumb{aspect-ratio:auto;width:38%;flex:0 0 38%;min-height:110px}.hpm-rel-badge{display:none}.hpm-rel-body{padding:12px 14px;display:flex;flex-direction:column;justify-content:center}.hpm-rel-title{font-size:15px!important}.hpm-rel-block+.hpm-rel-block{margin-top:36px}.hpm-rel-heading{font-size:20px!important}}
@media (prefers-reduced-motion:reduce){.hpm-rel-card,.hpm-rel-thumb img{transition:none}}
