/*
Theme Name: Heat and Birch Child
Template: kadence
Description: Child theme for heatandbirch.com — content element styles for pipeline-generated articles.
Version: 1.1
*/

/* ============================================
   CONTENT ELEMENT STYLES
   Pipeline-generated articles use these classes.
   Palette (matches frontpage-b prototype):
     smoke #1c1815, cedar #a86a3a, cedar-dark #8a5329,
     amber #d99240, paper #faf6ef, birch-cream #f4ede3,
     line #d9cfc1, muted #6b625a
   ============================================ */

/* --- Insider Tip Callout --- */
.insider-tip {
    background: #f4ede3;
    border-left: 3px solid #a86a3a;
    padding: 14px 18px;
    margin: 24px 0;
    border-radius: 0 4px 4px 0;
}

.insider-tip strong {
    color: #1c1815;
}

/* --- Navigation Link Boxes --- */
.nav-links {
    background: #faf6ef;
    border: 1px solid #d9cfc1;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 28px 0;
}

.nav-links ul {
    list-style: disc;
    margin: 0;
    padding-left: 20px;
}

.nav-links li {
    margin-bottom: 5px;
    line-height: 1.5;
}

.nav-links li:last-child {
    margin-bottom: 0;
}

.nav-links a {
    text-decoration: none;
    color: #1c1815;
    font-weight: 500;
}

.nav-links a:hover {
    color: #a86a3a;
    text-decoration: underline;
}

/* Drip-post placeholder: pipeline emits <span class="nav-link-disabled">
   for nav_links targeting slugs that aren't published yet. Render faded so
   readers see "coming soon" rather than a dead link. */
.nav-link-disabled {
    color: #a89f94;
    font-style: italic;
    cursor: default;
}

/* --- Decision CTA Box --- */
.decision-cta {
    background: #faf6ef;
    border: 2px solid #a86a3a;
    border-radius: 6px;
    padding: 18px 24px;
    margin: 32px 0 16px;
    text-align: center;
}

.decision-cta strong {
    color: #1c1815;
    display: block;
    margin-bottom: 4px;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.decision-cta a {
    color: #1c1815;
    font-weight: 600;
    font-size: 1.05em;
    text-decoration: none;
}

.decision-cta a:hover {
    color: #a86a3a;
}

/* --- FAQ Section --- */
.schema-faq {
    margin: 36px 0 24px;
    border-top: 1px solid #d9cfc1;
    padding-top: 24px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h3 {
    font-size: 1.1em;
    margin-bottom: 6px;
    color: #1c1815;
}

.faq-item p {
    color: #6b625a;
}

/* --- Table Styling --- */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.entry-content thead th {
    background: #f4ede3;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #d9cfc1;
    font-size: 0.95em;
    color: #1c1815;
}

.entry-content tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #d9cfc1;
}

.entry-content tbody tr:last-child td {
    border-bottom: none;
}

/* --- Responsive Table Wrapper --- */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

.table-wrap table {
    margin: 0;
}

/* Responsive tables */
@media (max-width: 600px) {
    .table-wrap table {
        font-size: 0.9em;
    }
    .table-wrap thead th,
    .table-wrap tbody td {
        padding: 8px 10px;
    }

    /* Comparison tables (3+ columns): stacked card layout */
    .table-wrap.table-stacked thead {
        display: none;
    }

    .table-wrap.table-stacked tbody,
    .table-wrap.table-stacked tbody tr,
    .table-wrap.table-stacked tbody td {
        display: block;
        width: 100%;
    }

    .table-wrap.table-stacked tbody tr {
        background: #faf6ef;
        border: 1px solid #d9cfc1;
        border-radius: 6px;
        margin-bottom: 12px;
        padding: 4px 0;
    }

    .table-wrap.table-stacked tbody td {
        padding: 8px 14px;
        border-bottom: 1px solid #d9cfc1;
        text-align: left;
        position: relative;
        padding-left: 40%;
    }

    .table-wrap.table-stacked tbody td:last-child {
        border-bottom: none;
    }

    .table-wrap.table-stacked tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 14px;
        width: 35%;
        font-weight: 600;
        font-size: 0.85em;
        color: #1c1815;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* First cell = card header */
    .table-wrap.table-stacked tbody td:first-child {
        background: #1c1815;
        color: #faf6ef;
        font-weight: 600;
        padding-left: 14px;
        border-radius: 6px 6px 0 0;
    }

    .table-wrap.table-stacked tbody td:first-child::before {
        display: none;
    }
}
