/*
 * BabyLife 2.5.4 — legacy article presentation bridge.
 * Loaded ONLY on single blog posts when Codevz Plus is inactive.
 * Presentation only. It does not add/remove/change indexable text or headings.
 */

.blsc-codevz-free.single-post .blsc-blog-single,
.blsc-codevz-free.single-post .entry-content,
.blsc-codevz-free.single-post .entry-content * {
    box-sizing: border-box;
}

/* Keep every old builder wrapper inside the article column. */
.blsc-codevz-free.single-post .entry-content [class*="cz_"],
.blsc-codevz-free.single-post .entry-content [class*="vc_"],
.blsc-codevz-free.single-post .entry-content [class*="wpb_"],
.blsc-codevz-free.single-post .entry-content [class*="xtra"],
.blsc-codevz-free.single-post .entry-content .elementor,
.blsc-codevz-free.single-post .entry-content .elementor-section,
.blsc-codevz-free.single-post .entry-content .elementor-container,
.blsc-codevz-free.single-post .entry-content .elementor-widget-wrap {
    max-width: 100%;
}

/* Old Xtra/WPBakery rows and columns: preserve source order, remove dead floats. */
.blsc-codevz-free.single-post .entry-content .vc_row,
.blsc-codevz-free.single-post .entry-content .wpb_row,
.blsc-codevz-free.single-post .entry-content .cz_row,
.blsc-codevz-free.single-post .entry-content .cz_content_box,
.blsc-codevz-free.single-post .entry-content .cz_content_box_inner,
.blsc-codevz-free.single-post .entry-content .cz_title,
.blsc-codevz-free.single-post .entry-content .cz_title_content,
.blsc-codevz-free.single-post .entry-content .cz_wpe_content {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
}

.blsc-codevz-free.single-post .entry-content [class*="vc_col-"],
.blsc-codevz-free.single-post .entry-content [class*="cz_col_"],
.blsc-codevz-free.single-post .entry-content .wpb_column {
    min-width: 0;
    max-width: 100%;
}

/* Article typography remains controlled by the theme, not by removed Xtra fonts. */
.blsc-codevz-free.single-post .entry-content .cz_wpe_content,
.blsc-codevz-free.single-post .entry-content .wpb_text_column,
.blsc-codevz-free.single-post .entry-content .wpb_wrapper {
    font: inherit;
    line-height: inherit;
    color: inherit;
}

/* Old article images and embeds must never stretch the viewport. */
.blsc-codevz-free.single-post .entry-content img,
.blsc-codevz-free.single-post .entry-content picture,
.blsc-codevz-free.single-post .entry-content video,
.blsc-codevz-free.single-post .entry-content iframe,
.blsc-codevz-free.single-post .entry-content embed,
.blsc-codevz-free.single-post .entry-content object,
.blsc-codevz-free.single-post .entry-content svg {
    max-width: 100% !important;
}

.blsc-codevz-free.single-post .entry-content img {
    height: auto !important;
}

/* Tables are important on the store-list article: readable desktop + safe horizontal scroll on mobile. */
.blsc-codevz-free.single-post .entry-content table,
.blsc-codevz-free.single-post .entry-content .wp-block-table table {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(24, 59, 86, .12);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.blsc-codevz-free.single-post .entry-content table th,
.blsc-codevz-free.single-post .entry-content table td {
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid rgba(24, 59, 86, .10);
    border-inline-start: 1px solid rgba(24, 59, 86, .08);
    vertical-align: top;
    text-align: right;
    line-height: 1.9;
    white-space: normal;
}

.blsc-codevz-free.single-post .entry-content table th:first-child,
.blsc-codevz-free.single-post .entry-content table td:first-child {
    border-inline-start: 0;
}

.blsc-codevz-free.single-post .entry-content table tr:last-child td {
    border-bottom: 0;
}

.blsc-codevz-free.single-post .entry-content table th {
    background: #fff5fa;
    color: #183B56;
    font-weight: 700;
}

/* Xtra post/grid cards which can remain inside old articles. */
.blsc-codevz-free.single-post .entry-content .cz_grid,
.blsc-codevz-free.single-post .entry-content .cz_grid_items,
.blsc-codevz-free.single-post .entry-content .cz_posts_container {
    width: 100% !important;
    max-width: 100% !important;
}

.blsc-codevz-free.single-post .entry-content .cz_grid_item {
    max-width: 100%;
}

.blsc-codevz-free.single-post .entry-content .cz_grid_link,
.blsc-codevz-free.single-post .entry-content .cz_grid_title {
    text-decoration: none;
}

/* Old title widgets: neutralize absolute decorative layers but preserve visible title copy. */
.blsc-codevz-free.single-post .entry-content .cz_title_content {
    position: relative;
    z-index: 1;
}

.blsc-codevz-free.single-post .entry-content .cz_title_shape,
.blsc-codevz-free.single-post .entry-content .cz_shape_1,
.blsc-codevz-free.single-post .entry-content .cz_shape_2 {
    pointer-events: none;
}

/* Keep accidental legacy fixed/negative-position article children in normal flow where possible. */
.blsc-codevz-free.single-post .entry-content .cz_grid_item,
.blsc-codevz-free.single-post .entry-content .cz_content_box,
.blsc-codevz-free.single-post .entry-content .wpb_column {
    inset: auto;
}

/* Restored raw-content wrapper from 2.5.3. */
.blsc-codevz-free.single-post .entry-content .blsc-legacy-post-restored {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

@media (min-width: 769px) {
    /* On desktop, old builder columns may still be useful; prevent only overflow. */
    .blsc-codevz-free.single-post .entry-content [class*="vc_col-"],
    .blsc-codevz-free.single-post .entry-content [class*="cz_col_"] {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .blsc-codevz-free.single-post .blsc-blog-single {
        width: 100%;
        max-width: 100%;
    }

    .blsc-codevz-free.single-post .entry-content .vc_row,
    .blsc-codevz-free.single-post .entry-content .wpb_row,
    .blsc-codevz-free.single-post .entry-content .cz_row {
        margin-inline: 0 !important;
        padding-inline: 0 !important;
    }

    .blsc-codevz-free.single-post .entry-content [class*="vc_col-"],
    .blsc-codevz-free.single-post .entry-content [class*="cz_col_"],
    .blsc-codevz-free.single-post .entry-content .wpb_column {
        width: 100% !important;
        float: none !important;
        margin-inline: 0 !important;
    }

    /* Put wide comparison/list tables inside an intentional scroll area. */
    .blsc-codevz-free.single-post .entry-content table {
        display: table;
        min-width: 680px;
    }

    .blsc-codevz-free.single-post .entry-content .wp-block-table,
    .blsc-codevz-free.single-post .entry-content > table,
    .blsc-codevz-free.single-post .entry-content .blsc-legacy-post-restored > table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    /* If the table is directly in content, main.css already makes it a scrollable block.
       Reset cells for compact mobile reading without changing table data. */
    .blsc-codevz-free.single-post .entry-content table th,
    .blsc-codevz-free.single-post .entry-content table td {
        min-width: 145px;
        padding: 10px;
        font-size: 13px;
        line-height: 1.8;
    }

    .blsc-codevz-free.single-post .entry-content h2 {
        clear: both;
    }
}
