/* =====================================================================
   content-style.css - shared content formatting for all sites
   (H2/H3 headings, bullet lists, tables) - 2026-11-23
   Only touches the description / category content area of each site:
     WCB : .desc-content, .cat-products > .content
     TCB UK : #description-pane, .category-content
     TCB CA : .tcb-product-dynamic-content, .tcb-category-richtext
     TSP : #nav-home.tab-content-custom, .cat-content
     TCB COM (WordPress) : text-editor widget on product / category pages
   Only plain elements (no class) are styled, so site widgets stay as they are.
   ===================================================================== */

/* Brand colour per site */
:is(.desc-content, .cat-products > .content) { --cc: #ff6600; --cc-soft: #fff6ef; }
:is(#description-pane, .category-content) { --cc: #088178; --cc-soft: #eef7f6; }
body:is(.single-product, .tax-product_cat) .elementor-widget-text-editor { --cc: #088178; --cc-soft: #eef7f6; }
:is(.tcb-product-dynamic-content, .tcb-category-richtext) { --cc: #cd7758; --cc-soft: #fbf2ee; }
:is(#nav-home.tab-content-custom, .cat-content) { --cc: #66462f; --cc-soft: #f7f2ee; }

/* ---------- Headings: H2 clearly bigger than H3 ---------- */
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) h2:not([class]) {
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #1a1a1a !important;
    margin: 34px 0 14px !important;
    padding: 0 0 10px !important;
    position: relative;
    text-transform: none;
    letter-spacing: 0;
}
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) h2:not([class])::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: var(--cc, #333);
}
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) h3:not([class]) {
    font-size: 19px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #2b2b2b !important;
    margin: 22px 0 8px !important;
    padding: 0 !important;
    text-transform: none;
    letter-spacing: 0;
}
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) h4:not([class]) {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    color: #333 !important;
    margin: 18px 0 6px !important;
}
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) :is(h2, h3, h4):not([class]) :is(strong, b) { font-weight: inherit; }
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) > :is(h2, h3):first-child { margin-top: 0 !important; }

/* ---------- Bullet lists ---------- */
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) ul:not([class]) {
    list-style: none !important;
    padding: 18px 22px !important;
    margin: 6px 0 22px !important;
    background: var(--cc-soft, #f7f7f7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--cc, #333);
    border-radius: 10px;
}
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) ul:not([class]) > li {
    list-style: none !important;
    position: relative;
    padding-left: 32px !important;
    margin: 0 0 10px !important;
    line-height: 1.7;
}
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) ul:not([class]) > li:last-child { margin-bottom: 0 !important; }
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) ul:not([class]) > li::before {
    content: "" !important;
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cc, #333);
}
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) ul:not([class]) > li::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 7px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) ul:not([class]) ul:not([class]) {
    background: none;
    border: 0;
    padding: 8px 0 0 !important;
    margin: 0 !important;
}

/* ---------- Tables ---------- */
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) table:not([class]) {
    width: 100% !important;
    max-width: 900px;
    height: auto !important;
    margin: 10px 0 26px !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid #e6e6e6 !important;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    font-size: 14px;
}
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) table:not([class]) :is(td, th) {
    width: auto !important;
    height: auto !important;
    padding: 13px 18px !important;
    border: 0 !important;
    border-bottom: 1px solid #eeeeee !important;
    vertical-align: top;
    color: #444;
    line-height: 1.6;
    text-align: left;
    background: transparent;
}
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) table:not([class]) tr:last-child > :is(td, th) { border-bottom: 0 !important; }
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) table:not([class]) tr:nth-child(even) > td { background: #fafafa; }
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) table:not([class]) tr:hover > td { background: var(--cc-soft, #f5f5f5); }
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) table:not([class]) td:first-child { font-weight: 600; color: #1a1a1a; width: 32% !important; }
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) table:not([class]) thead :is(td, th),
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) table:not([class]) th,
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) table:not([class]) > tbody:first-child > tr:first-child:has(strong, b) > td {
    background: var(--cc, #333) !important;
    color: #fff !important;
    font-weight: 600;
}
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) table:not([class]) :is(td, th) p {
    margin: 0 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}
:is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) table:not([class]) :is(td, th) :is(strong, b) { color: inherit; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    :is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) h2:not([class]) { font-size: 22px !important; margin-top: 26px !important; }
    :is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) h3:not([class]) { font-size: 17px !important; }
    :is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) ul:not([class]) { padding: 14px 14px !important; }
    :is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) table:not([class]) {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 13px;
    }
    :is(.desc-content, .cat-products > .content, #description-pane, .category-content, .tcb-product-dynamic-content, .tcb-category-richtext, #nav-home.tab-content-custom, .cat-content, body.single-product .elementor-widget-text-editor, body.tax-product_cat .elementor-widget-text-editor) table:not([class]) :is(td, th) { padding: 10px 12px !important; min-width: 140px; }
}
