/* ============================
   Westminster 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)
   ============================ */

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;
}

/* ============================
   FOOTNOTE / PROOF-TEXT MARKERS
   (<sup>a</sup>, <sup>b</sup> in the section text)
   ============================ */

sup {
    font-size: 0.7em;
    line-height: 0;
    vertical-align: super;
    color: #6B5A2E;
    font-weight: 600;
    margin: 0 0.05em;
}

/* ============================
   TWO-COLUMN CONFESSION TABLE
   Left column  = section text
   Right column = proof-texts
   ============================ */

table.confession {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 2em 0;
    font-size: 15px;
    line-height: 1.65;
}

table.confession td {
    vertical-align: top;
    padding: 0.55em 0.8em;
    border-bottom: 1px solid #E8E2D4;
}

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

/* Left column: the confession text */
table.confession td.text {
    width: 65%;
    color: #2A2A2A;
    text-align: justify;
}

/* Right column: the proof-texts */
table.confession td.proofs {
    width: 35%;
    font-size: 0.82em;
    color: #5A5A5A;
    font-style: italic;
    line-height: 1.5;
}

/* Links inside the proofs column keep the italic look */
table.confession td.proofs a {
    color: #8B6914;
    text-decoration: none;
}

table.confession td.proofs a:hover {
    text-decoration: underline;
}

/* ============================
   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;
    }
}

/* ============================
   RESPONSIVE — stack the
   confession table on narrow screens
   ============================ */

@media (max-width: 700px) {
    table.confession,
    table.confession tbody,
    table.confession tr,
    table.confession td {
        display: block;
        width: 100%;
    }

    table.confession td.proofs {
        border-top: 1px dashed #E3DCCB;
        padding-left: 1.5em;
    }
}
