/* ============================
   Baptist 1689 Confession of Faith
   ============================ */

/* Force old HTML tags to inherit from the body */
font {
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
}

center {
    text-align: left !important;
}

body {
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2A2A2A;
    background-color: #FFFFFF;
    margin: 0 auto;
    max-width: 800px;
    padding: 2em 1.5em;
}

/* ============================
   HEADINGS
   ============================ */

h1 {
    color: #1A1A1A;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-top: 0;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1A1A1A;
}

h2 {
    color: #333333;
    font-size: 20px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid #D0D0D0;
}

h3 {
    color: #4A4A4A;
    font-size: 17px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

h4, h5, h6 {
    color: #6A6A6A;
    font-weight: 500;
}

/* ============================
   LINKS
   ============================ */

a {
    color: #8B6914;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================
   BLOCKQUOTES (Bible verses / proof texts)
   Gold left border, italic, no background
   ============================ */

blockquote {
    background: none;
    border-left: 4px solid #D4C5A9;
    margin: 16px 0;
    padding: 8px 0 8px 16px;
    color: #3A3A3A;
    font-style: italic;
    font-weight: 400;
}

blockquote p {
    margin: 0;
}

/* ============================
   PARAGRAPHS AND LISTS
   ============================ */

p {
    margin: 0 0 1em 0;
}

ul, ol {
    margin: 0 0 1em 0;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.4em;
}

/* ============================
   WESTMINSTER-SPECIFIC
   ============================ */

/* Proof-text paragraphs and indented sections */
p.indent {
    margin-left: 1.5em;
    font-size: 0.95em;
    color: #4A4A4A;
}

/* Horizontal rule between intro and Chapter I */
hr {
    border: none;
    border-top: 1px solid #D0D0D0;
    margin: 2em 0;
}

/* Kept harmless if the markup reappears */
.greyout {
    color: #888;
}

.scriptureproof {
    color: #666;
    font-size: 0.95em;
}

/* ============================
   HEADER / FOOTER (optional)
   ============================ */

.site-header,
.site-footer {
    font-size: 14px;
    color: #6A6A6A;
    border-top: 1px solid #D0D0D0;
    margin-top: 2em;
    padding-top: 1em;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 600px) {
    body {
        font-size: 15px;
        padding: 1.5em 1em;
    }

    h1 {
        font-size: 21px;
    }

    h2 {
        font-size: 17px;
    }

    p.indent {
        margin-left: 0.75em;
    }
}

/* ============================
   CANON OF SCRIPTURE
   Two-column table: OT (left) | NT (right)
   ============================ */

table.canon {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0 1.2em 0;
    font-size: 15px;
    line-height: 1.5;
}

table.canon th {
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    padding: 0.4em 0.8em 0.5em 0.8em;
    border-bottom: 2px solid #D0D0D0;
}

table.canon td {
    vertical-align: top;
    padding: 0.15em 0.8em;
    border-bottom: 1px solid #F0EADC;
}

table.canon tr:last-child td {
    border-bottom: none;
}

/* Slightly narrower columns so the books sit next to each other */
table.canon th:nth-child(1),
table.canon td:nth-child(1) {
    width: 48%;
}

table.canon th:nth-child(2),
table.canon td:nth-child(2) {
    width: 52%;
}

/* Responsive: stack the two columns on narrow screens */
@media (max-width: 600px) {
    table.canon,
    table.canon tbody,
    table.canon tr,
    table.canon th,
    table.canon td {
        display: block;
        width: 100%;
    }
    table.canon td {
        padding-left: 1.5em;
    }
}
