/*
Theme Name:   Hello Elementor Child
Theme URI:    https://intercalculator.com
Description:  Hello Elementor Child Theme for InterCalculator Construction Homepage
Author:       InterCalculator
Author URI:   https://intercalculator.com
Template:     hello-elementor
Version:      2.0.0
Text Domain:  hello-elementor-child
*/

/* ── UNIVERSAL CONTENT STYLING SYSTEM (TABLES, STEPS, FORMULAS, BULLETS) ── */
/* ==========================================================================
       1. AUTOMATIC DATA TABLES (IMAGE 1 STYLE)
       ========================================================================== */
    .ic-table-scroll-wrap,
    .table-scroll-wrap,
    .wp-block-table {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 1.5rem 0 !important;
        border: 1px solid #E2E8F0 !important;
        border-radius: 8px !important;
        background: #FFFFFF !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
    }
    .ic-table-scroll-wrap::-webkit-scrollbar,
    .table-scroll-wrap::-webkit-scrollbar {
        height: 6px !important;
    }
    .ic-table-scroll-wrap::-webkit-scrollbar-track,
    .table-scroll-wrap::-webkit-scrollbar-track {
        background: #F1F5F9 !important;
    }
    .ic-table-scroll-wrap::-webkit-scrollbar-thumb,
    .table-scroll-wrap::-webkit-scrollbar-thumb {
        background: #CBD5E1 !important;
        border-radius: 4px !important;
    }

    /* Core Table Reset */
    .ic-wp-content table:not(.ic-step-table),
    .icsp-content table:not(.ic-step-table),
    .icap-content table:not(.ic-step-table),
    .entry-content table:not(.ic-step-table),
    .post-content table:not(.ic-step-table),
    .wp-block-table table:not(.ic-step-table),
    table.ic-auto-table {
        width: 100% !important;
        min-width: 480px !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        font-size: 13.5px !important;
        margin: 0 !important;
        background: #FFFFFF !important;
        border: none !important;
    }

    /* Table Headers: Deep Navy/Slate (#0F172A) with Crisp White Text */
    .ic-wp-content table:not(.ic-step-table) thead th,
    .ic-wp-content table:not(.ic-step-table) thead td,
    .ic-wp-content table:not(.ic-step-table) th,
    .icsp-content table:not(.ic-step-table) thead th,
    .icsp-content table:not(.ic-step-table) thead td,
    .icsp-content table:not(.ic-step-table) th,
    .icap-content table:not(.ic-step-table) thead th,
    .icap-content table:not(.ic-step-table) thead td,
    .icap-content table:not(.ic-step-table) th,
    .entry-content table:not(.ic-step-table) thead th,
    .entry-content table:not(.ic-step-table) th,
    table.ic-auto-table thead th,
    table.ic-auto-table th {
        background: #0F172A !important;
        background-color: #0F172A !important;
        color: #FFFFFF !important;
        font-family: 'Inter', 'Barlow Condensed', sans-serif !important;
        font-weight: 700 !important;
        font-size: 13.5px !important;
        letter-spacing: 0.3px !important;
        text-align: left !important;
        padding: 13px 18px !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        white-space: nowrap !important;
        line-height: 1.4 !important;
    }

    /* Top Rounded Corners on Table Header */
    .ic-wp-content table:not(.ic-step-table) thead tr:first-child th:first-child,
    .icsp-content table:not(.ic-step-table) thead tr:first-child th:first-child,
    .icap-content table:not(.ic-step-table) thead tr:first-child th:first-child,
    .entry-content table:not(.ic-step-table) thead tr:first-child th:first-child,
    table.ic-auto-table thead tr:first-child th:first-child {
        border-top-left-radius: 7px !important;
    }
    .ic-wp-content table:not(.ic-step-table) thead tr:first-child th:last-child,
    .icsp-content table:not(.ic-step-table) thead tr:first-child th:last-child,
    .icap-content table:not(.ic-step-table) thead tr:first-child th:last-child,
    .entry-content table:not(.ic-step-table) thead tr:first-child th:last-child,
    table.ic-auto-table thead tr:first-child th:last-child {
        border-top-right-radius: 7px !important;
    }

    /* Alternating Row Backgrounds */
    .ic-wp-content table:not(.ic-step-table) tbody tr:nth-child(odd) td,
    .icsp-content table:not(.ic-step-table) tbody tr:nth-child(odd) td,
    .icap-content table:not(.ic-step-table) tbody tr:nth-child(odd) td,
    .entry-content table:not(.ic-step-table) tbody tr:nth-child(odd) td,
    table.ic-auto-table tbody tr:nth-child(odd) td {
        background-color: #FFFFFF !important;
    }
    .ic-wp-content table:not(.ic-step-table) tbody tr:nth-child(even) td,
    .icsp-content table:not(.ic-step-table) tbody tr:nth-child(even) td,
    .icap-content table:not(.ic-step-table) tbody tr:nth-child(even) td,
    .entry-content table:not(.ic-step-table) tbody tr:nth-child(even) td,
    table.ic-auto-table tbody tr:nth-child(even) td {
        background-color: #F8FAFC !important;
    }

    /* Row Hover Highlight */
    .ic-wp-content table:not(.ic-step-table) tbody tr:hover td,
    .icsp-content table:not(.ic-step-table) tbody tr:hover td,
    .icap-content table:not(.ic-step-table) tbody tr:hover td,
    .entry-content table:not(.ic-step-table) tbody tr:hover td,
    table.ic-auto-table tbody tr:hover td {
        background-color: #F0F6FC !important;
        transition: background-color 0.15s ease !important;
    }

    /* Body Cells */
    .ic-wp-content table:not(.ic-step-table) tbody td,
    .icsp-content table:not(.ic-step-table) tbody td,
    .icap-content table:not(.ic-step-table) tbody td,
    .entry-content table:not(.ic-step-table) tbody td,
    table.ic-auto-table tbody td {
        padding: 12px 18px !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid #E2E8F0 !important;
        color: #1E293B !important;
        font-size: 13.5px !important;
        line-height: 1.55 !important;
        vertical-align: middle !important;
    }
    .ic-wp-content table:not(.ic-step-table) tbody tr:last-child td,
    .icsp-content table:not(.ic-step-table) tbody tr:last-child td,
    .icap-content table:not(.ic-step-table) tbody tr:last-child td,
    .entry-content table:not(.ic-step-table) tbody tr:last-child td,
    table.ic-auto-table tbody tr:last-child td {
        border-bottom: none !important;
    }

    /* Bottom Rounded Corners on Last Row */
    .ic-wp-content table:not(.ic-step-table) tbody tr:last-child td:first-child,
    .icsp-content table:not(.ic-step-table) tbody tr:last-child td:first-child,
    .icap-content table:not(.ic-step-table) tbody tr:last-child td:first-child,
    table.ic-auto-table tbody tr:last-child td:first-child {
        border-bottom-left-radius: 7px !important;
    }
    .ic-wp-content table:not(.ic-step-table) tbody tr:last-child td:last-child,
    .icsp-content table:not(.ic-step-table) tbody tr:last-child td:last-child,
    .icap-content table:not(.ic-step-table) tbody tr:last-child td:last-child,
    table.ic-auto-table tbody tr:last-child td:last-child {
        border-bottom-right-radius: 7px !important;
    }


    /* ==========================================================================
       2. AUTOMATIC NUMBERED POINTS / STEPS (IMAGE 2 STYLE)
       ========================================================================== */
    /* Ordered List Container */
    .ic-wp-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style),
    .icsp-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style),
    .icap-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style),
    .entry-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style),
    .post-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style),
    ol.ic-auto-steps {
        list-style: none !important;
        counter-reset: ic-auto-step !important;
        padding: 0 !important;
        margin: 1.5rem 0 !important;
        border: 1px solid #E2E8F0 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background: #FFFFFF !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03) !important;
    }

    /* Each Step Item */
    .ic-wp-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li,
    .icsp-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li,
    .icap-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li,
    .entry-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li,
    .post-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li,
    ol.ic-auto-steps > li {
        counter-increment: ic-auto-step !important;
        display: flex !important;
        align-items: flex-start !important;
        padding: 18px 22px !important;
        margin: 0 !important;
        border-bottom: 1px solid #E2E8F0 !important;
        color: #334155 !important;
        font-size: 14px !important;
        line-height: 1.65 !important;
        min-width: 0 !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    /* Alternating Row Colors for Steps (Image 2) */
    .ic-wp-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li:nth-child(odd),
    .icsp-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li:nth-child(odd),
    .icap-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li:nth-child(odd),
    ol.ic-auto-steps > li:nth-child(odd) {
        background-color: #F8FAFC !important;
    }
    .ic-wp-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li:nth-child(even),
    .icsp-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li:nth-child(even),
    .icap-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li:nth-child(even),
    ol.ic-auto-steps > li:nth-child(even) {
        background-color: #EDF4FC !important;
    }
    .ic-wp-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li:last-child,
    .icsp-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li:last-child,
    .icap-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li:last-child,
    ol.ic-auto-steps > li:last-child {
        border-bottom: none !important;
    }

    /* Step Number Badge: Solid Vibrant Orange Circle with White Bold Number */
    .ic-wp-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li::before,
    .icsp-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li::before,
    .icap-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li::before,
    .entry-content ol:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li::before,
    ol.ic-auto-steps > li::before {
        content: counter(ic-auto-step) !important;
        min-width: 32px !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        background: #F97316 !important;
        color: #FFFFFF !important;
        font-family: 'Inter', 'Barlow Condensed', sans-serif !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-right: 18px !important;
        margin-top: 2px !important;
        flex-shrink: 0 !important;
        box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35) !important;
    }

    /* Step Content Body Wrapper */
    .ic-step-body {
        flex: 1 !important;
        min-width: 0 !important;
    }

    /* Step Heading inside Item */
    .ic-wp-content ol:not(.toc-list):not(#icap-toc-list) > li strong:first-child,
    .ic-wp-content ol:not(.toc-list):not(#icap-toc-list) > li b:first-child,
    .icsp-content ol:not(.toc-list):not(#icap-toc-list) > li strong:first-child,
    .icsp-content ol:not(.toc-list):not(#icap-toc-list) > li b:first-child,
    .icap-content ol:not(.toc-list):not(#icap-toc-list) > li strong:first-child,
    .icap-content ol:not(.toc-list):not(#icap-toc-list) > li b:first-child,
    ol.ic-auto-steps > li strong:first-child,
    .ic-step-title {
        display: block !important;
        font-weight: 700 !important;
        color: #0F172A !important;
        font-size: 15px !important;
        margin-bottom: 6px !important;
        line-height: 1.4 !important;
    }

    /* Step Tables Styling (Ensures existing tables with Step Badges match Image 2) */
    table.ic-step-table,
    .ic-step-table {
        width: 100% !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        border: 1px solid #E2E8F0 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        margin: 1.5rem 0 !important;
        background: #FFFFFF !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03) !important;
    }
    table.ic-step-table tbody tr:nth-child(odd) td {
        background-color: #F8FAFC !important;
    }
    table.ic-step-table tbody tr:nth-child(even) td {
        background-color: #EDF4FC !important;
    }
    table.ic-step-table tbody tr td {
        padding: 18px 22px !important;
        border-bottom: 1px solid #E2E8F0 !important;
        vertical-align: top !important;
    }
    table.ic-step-table tbody tr:last-child td {
        border-bottom: none !important;
    }
    table.ic-step-table td:first-child {
        width: 52px !important;
        padding-right: 0 !important;
    }
    table.ic-step-table td:first-child span {
        min-width: 32px !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        background: #F97316 !important;
        color: #FFFFFF !important;
        font-weight: 800 !important;
        font-size: 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35) !important;
    }
    table.ic-step-table td strong {
        font-size: 15px !important;
        color: #0F172A !important;
        margin-bottom: 6px !important;
        display: block !important;
    }


    /* ==========================================================================
       3. AUTOMATIC FORMULAS (IMAGE 3 STYLE)
       ========================================================================== */
    .ic-wp-content blockquote,
    .icsp-content blockquote,
    .icap-content blockquote,
    .entry-content blockquote,
    .post-content blockquote,
    .ic-formula-box,
    blockquote.ic-formula-box {
        border-left: 4px solid #F97316 !important;
        background: #F0F6FA !important;
        background-color: #F0F6FA !important;
        border-radius: 0 8px 8px 0 !important;
        padding: 14px 20px !important;
        margin: 1.5rem 0 !important;
        border-top: none !important;
        border-right: none !important;
        border-bottom: none !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02) !important;
        font-style: normal !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .ic-wp-content blockquote p,
    .icsp-content blockquote p,
    .icap-content blockquote p,
    .entry-content blockquote p,
    .ic-formula-box p {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.6 !important;
    }
    .ic-wp-content blockquote p + p,
    .icsp-content blockquote p + p,
    .icap-content blockquote p + p {
        margin-top: 8px !important;
    }

    /* Formula Pill: Warm Peach / Cream with Italic Terracotta Text */
    .ic-wp-content blockquote code,
    .icsp-content blockquote code,
    .icap-content blockquote code,
    .entry-content blockquote code,
    .ic-formula-box code,
    .ic-formula-pill {
        background: #FEF3E2 !important;
        background-color: #FEF3E2 !important;
        color: #C2410C !important;
        font-family: Consolas, 'SF Mono', 'Fira Code', 'Courier New', monospace !important;
        font-style: italic !important;
        font-size: 14.5px !important;
        font-weight: 500 !important;
        padding: 7px 16px !important;
        border-radius: 6px !important;
        border: 1px solid rgba(249, 115, 22, 0.22) !important;
        display: inline-block !important;
        letter-spacing: 0.3px !important;
        box-shadow: 0 1px 2px rgba(249, 115, 22, 0.06) !important;
        line-height: 1.5 !important;
        margin: 2px 0 !important;
    }


    /* ==========================================================================
       4. AUTOMATIC BULLET LISTS (IMAGE 4 STYLE)
       ========================================================================== */
    .ic-wp-content ul:not(.toc-list):not(#icap-toc-list):not(.ic-feat-checks):not(.ic-no-style),
    .icsp-content ul:not(.toc-list):not(#icap-toc-list):not(.ic-feat-checks):not(.ic-no-style),
    .icap-content ul:not(.toc-list):not(#icap-toc-list):not(.ic-feat-checks):not(.ic-no-style),
    .entry-content ul:not(.toc-list):not(#icap-toc-list):not(.ic-feat-checks):not(.ic-no-style),
    .post-content ul:not(.toc-list):not(#icap-toc-list):not(.ic-no-style),
    ul.ic-auto-bullets {
        list-style: none !important;
        padding-left: 0 !important;
        margin: 1rem 0 1.35rem !important;
    }

    .ic-wp-content ul:not(.toc-list):not(#icap-toc-list):not(.ic-feat-checks):not(.ic-no-style) > li,
    .icsp-content ul:not(.toc-list):not(#icap-toc-list):not(.ic-feat-checks):not(.ic-no-style) > li,
    .icap-content ul:not(.toc-list):not(#icap-toc-list):not(.ic-feat-checks):not(.ic-no-style) > li,
    .entry-content ul:not(.toc-list):not(#icap-toc-list):not(.ic-feat-checks):not(.ic-no-style) > li,
    .post-content ul:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li,
    ul.ic-auto-bullets > li {
        position: relative !important;
        display: block !important;
        padding-left: 24px !important;
        margin-bottom: 10px !important;
        color: #334155 !important;
        font-size: 14.5px !important;
        line-height: 1.65 !important;
        list-style: none !important;
        min-width: 0 !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    /* Orange Solid Circular Dot Bullet */
    .ic-wp-content ul:not(.toc-list):not(#icap-toc-list):not(.ic-feat-checks):not(.ic-no-style) > li::before,
    .icsp-content ul:not(.toc-list):not(#icap-toc-list):not(.ic-feat-checks):not(.ic-no-style) > li::before,
    .icap-content ul:not(.toc-list):not(#icap-toc-list):not(.ic-feat-checks):not(.ic-no-style) > li::before,
    .entry-content ul:not(.toc-list):not(#icap-toc-list):not(.ic-feat-checks):not(.ic-no-style) > li::before,
    .post-content ul:not(.toc-list):not(#icap-toc-list):not(.ic-no-style) > li::before,
    ul.ic-auto-bullets > li::before {
        content: '' !important;
        position: absolute !important;
        left: 4px !important;
        top: 9px !important;
        width: 7px !important;
        height: 7px !important;
        border-radius: 50% !important;
        background-color: #F97316 !important;
        display: block !important;
        box-shadow: 0 1px 3px rgba(249, 115, 22, 0.4) !important;
    }

    /* Sub-list nested styling */
    .ic-wp-content ul ul,
    .icsp-content ul ul,
    .icap-content ul ul {
        margin: 0.4rem 0 0.4rem 1.2rem !important;
        padding-left: 0 !important;
    }
    .ic-wp-content ul ul > li::before,
    .icsp-content ul ul > li::before,
    .icap-content ul ul > li::before {
        background-color: #94A3B8 !important;
        width: 5px !important;
        height: 5px !important;
        top: 10px !important;
        box-shadow: none !important;
    }

    /* Strong / Bold highlights inside bullets */
    .ic-wp-content ul > li strong,
    .ic-wp-content ul > li b,
    .icsp-content ul > li strong,
    .icsp-content ul > li b,
    .icap-content ul > li strong,
    .icap-content ul > li b {
        font-weight: 700 !important;
        color: #0F172A !important;
    }

    /* Mobile adjustments */
    @media (max-width: 640px) {
        .ic-wp-content ol:not(.toc-list) > li,
        .icsp-content ol:not(.toc-list) > li,
        .icap-content ol:not(.toc-list) > li {
            padding: 14px 16px !important;
        }
        .ic-wp-content ol:not(.toc-list) > li::before,
        .icsp-content ol:not(.toc-list) > li::before,
        .icap-content ol:not(.toc-list) > li::before {
            min-width: 28px !important;
            width: 28px !important;
            height: 28px !important;
            font-size: 13px !important;
            margin-right: 12px !important;
        }
        .ic-wp-content blockquote,
        .icsp-content blockquote,
        .icap-content blockquote {
            padding: 12px 14px !important;
        }
        .ic-wp-content blockquote code,
        .icsp-content blockquote code,
        .icap-content blockquote code {
            font-size: 13px !important;
            padding: 6px 10px !important;
            white-space: normal !important;
            word-break: break-word !important;
        }
    }
