/* Column widths: festival table */
.article-festival-table th:nth-child(1),
.article-festival-table td:nth-child(1) {
    width: 21%;
}

.article-festival-table th:nth-child(2),
.article-festival-table td:nth-child(2) {
    width: 11%;
}

.article-festival-table th:nth-child(3),
.article-festival-table td:nth-child(3) {
    width: 40%;
}

.article-festival-table th:nth-child(4),
.article-festival-table td:nth-child(4) {
    width: 28%;
}


/* ==================================================
   ARTICLE 5 TABLES — MOBILE CARD LAYOUT
   ================================================== */

@media (max-width: 767px) {

    .article-time-table,
    .article-festival-table {
        overflow: visible !important;
        margin: 1.5rem 0;
    }

    .article-time-table table,
    .article-festival-table table,
    .article-time-table tbody,
    .article-festival-table tbody,
    .article-time-table tr,
    .article-festival-table tr,
    .article-time-table td,
    .article-festival-table td {
        display: block;
        width: 100% !important;
    }

    /* Hide desktop header row */
    .article-time-table thead,
    .article-festival-table thead {
        display: none;
    }

    /* Each table row becomes a card */
    .article-time-table tbody tr,
    .article-festival-table tbody tr {
        margin: 0 0 18px;
        padding: 5px 18px;
        background: #151515 !important;
        border: 1px solid rgba(200, 155, 60, 0.72);
        border-radius: 8px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
    }

    .article-time-table td,
    .article-festival-table td {
        position: static;
        min-height: 0;
        padding: 13px 0 15px;
        border: 0;
        border-bottom: 1px solid rgba(200, 155, 60, 0.28);
        font-size: 16px;
        line-height: 1.5;
        text-align: left;
    }

    .article-time-table td:last-child,
    .article-festival-table td:last-child {
        border-bottom: 0;
    }

    /* Mobile labels */
    .article-time-table td::before,
    .article-festival-table td::before {
        display: block;
        margin-bottom: 5px;
        color: #C89B3C;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.25;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    /* Hours and watches table labels */
    .article-time-table td:nth-child(1)::before {
        content: "Period";
    }

    .article-time-table td:nth-child(2)::before {
        content: "Biblical Expression";
    }

    .article-time-table td:nth-child(3)::before {
        content: "Approximate Modern Time";
    }

    .article-time-table td:nth-child(4)::before {
        content: "Key Biblical References";
    }

    /* Festival table labels */
    .article-festival-table td:nth-child(1)::before {
        content: "Appointed Time";
    }

    .article-festival-table td:nth-child(2)::before {
        content: "Season";
    }

    .article-festival-table td:nth-child(3)::before {
        content: "Core Remembrance";
    }

    .article-festival-table td:nth-child(4)::before {
        content: "New Testament Connection";
    }
}
/* ============================================================
   The Bible Unmasked — Contact & Article Tables appearance fix
   Add BELOW all other rules in Additional CSS.
   Does not alter form layout or responsive table layout.
   ============================================================ */

/* WPForms: restore label and field text contrast on dark contact page. */
body div.wpforms-container-full form.wpforms-form,
body div.wpforms-container-full form.wpforms-form .wpforms-field-label,
body div.wpforms-container-full form.wpforms-form .wpforms-field-sublabel,
body div.wpforms-container-full form.wpforms-form .wpforms-field-description,
body div.wpforms-container-full form.wpforms-form .wpforms-field label {
    color: #ffffff !important;
}

body div.wpforms-container-full form.wpforms-form input[type="text"],
body div.wpforms-container-full form.wpforms-form input[type="email"],
body div.wpforms-container-full form.wpforms-form input[type="tel"],
body div.wpforms-container-full form.wpforms-form input[type="number"],
body div.wpforms-container-full form.wpforms-form input[type="url"],
body div.wpforms-container-full form.wpforms-form textarea,
body div.wpforms-container-full form.wpforms-form select {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #555555 !important;
}

/* Gold button with visible dark text; white button on hover. */
body div.wpforms-container-full form.wpforms-form button[type="submit"] {
    background-color: #C89B3C !important;
    color: #101010 !important;
    border: none !important;
}
body div.wpforms-container-full form.wpforms-form button[type="submit"]:hover,
body div.wpforms-container-full form.wpforms-form button[type="submit"]:focus-visible {
    background-color: #ffffff !important;
    color: #101010 !important;
}

/* Article tables: restore navy-and-gold headers. */
body .article-time-table table thead th,
body .article-festival-table table thead th,
body .reading-guide-table table thead th,
body .article-time-table table thead td,
body .article-festival-table table thead td,
body .reading-guide-table table thead td {
    background-color: #1F2A44 !important;
    color: #C89B3C !important;
}

/* Article tables: alternate dark row shades, including cell backgrounds. */
body .article-time-table table tbody tr:nth-child(odd) > td,
body .article-festival-table table tbody tr:nth-child(odd) > td,
body .reading-guide-table table tbody tr:nth-child(odd) > td {
    background-color: #101010 !important;
}
body .article-time-table table tbody tr:nth-child(even) > td,
body .article-festival-table table tbody tr:nth-child(even) > td,
body .reading-guide-table table tbody tr:nth-child(even) > td {
    background-color: #202020 !important;
}

/* Mobile tables are cards: let card backgrounds show through cells. */
@media (max-width: 767px) {
    body .article-time-table table tbody tr:nth-child(odd),
    body .article-festival-table table tbody tr:nth-child(odd),
    body .reading-guide-table table tbody tr:nth-child(odd) {
        background-color: #101010 !important;
    }
    body .article-time-table table tbody tr:nth-child(even),
    body .article-festival-table table tbody tr:nth-child(even),
    body .reading-guide-table table tbody tr:nth-child(even) {
        background-color: #202020 !important;
    }
    body .article-time-table table tbody tr > td,
    body .article-festival-table table tbody tr > td,
    body .reading-guide-table table tbody tr > td {
        background-color: transparent !important;
    }
}

/* =========================================
   ARTICLES PAGE — GOLD TITLES AND DATES
   ========================================= */

/* Article titles */
body.blog .entry-title,
body.blog .entry-title a,
body.archive .entry-title,
body.archive .entry-title a {
    color: #C89B3C !important;
}

/* Publication dates */
body.blog .posted-on,
body.blog .posted-on a,
body.blog .posted-on time,
body.archive .posted-on,
body.archive .posted-on a,
body.archive .posted-on time {
    color: #C89B3C !important;
}