/*
Theme Name: Lapland Trip Planner Child
Template: kadence
Description: Child theme for Lapland Trip Planner
Version: 1.0
*/

/* ============================================
   CONTENT ELEMENT STYLES
   Pipeline-generated articles use these classes.
   Palette: amber (#d4a847), blue-grey (#2c3e50),
   warm grey (#e8e6e3), snow white (#f7f8f9)
   ============================================ */

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

.insider-tip strong {
    color: #2c3e50;
}

/* --- Navigation Link Boxes --- */
.nav-links {
    background: #f7f8f9;
    border: 1px solid #e8e6e3;
    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: #2c3e50;
    font-weight: 500;
}

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

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

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

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

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

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

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

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

.faq-item p {
    color: #555;
}

/* --- Widget Placeholders --- */
.widget-placeholder {
    background: #f7f8f9;
    border: 1px dashed #d4a847;
    border-radius: 8px;
    padding: 32px 24px;
    margin: 28px 0;
    text-align: center;
}

.widget-placeholder-icon {
    font-size: 1.6em;
    margin-bottom: 6px;
    opacity: 0.7;
}

.widget-placeholder-title {
    font-size: 1em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.widget-placeholder-subtitle {
    font-size: 0.8em;
    color: #999;
}

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

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

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

.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: #f7f8f9;
        border: 1px solid #e8e6e3;
        border-radius: 6px;
        margin-bottom: 12px;
        padding: 4px 0;
    }

    .table-wrap.table-stacked tbody td {
        padding: 8px 14px;
        border-bottom: 1px solid #e8e6e3;
        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: #2c3e50;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

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

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

}
