@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Libre+Baskerville&family=Montserrat:wght@400;600&family=Playfair+Display:wght@400;600&family=Roboto:wght@400;500;700&display=swap');
:root{--parchment:#F7F0DF;--ivory:#FFFDF7;--gold:#D4B777;--antique:#A67C32;--brown:#493A2B}*{box-sizing:border-box}body{margin:0;background:var(--parchment);color:var(--brown);font:16px Georgia,serif}header,article{background:var(--ivory);border:1px solid var(--gold);padding:1.5rem;margin:1rem 0}h1,h2,h3{color:var(--antique)}a{color:var(--antique)}.logo{display:block;width:100%;max-width:1500px;height:300px;object-fit:cover;object-position:center;border:1px solid var(--gold)}.article-image{display:block;width:100%;max-height:520px;object-fit:cover;border:1px solid var(--gold);margin:1rem 0}.login-card{max-width:460px;background:var(--ivory);border-color:var(--gold)}.editor{min-height:360px;background:#fff;border:1px solid #ced4da;border-radius:.375rem;padding:1rem}.editor:focus{outline:2px solid var(--gold)}

/* Article administration and responsive content — November 2026 */
:root{--page-body:#b2a37d}
body{background:var(--page-body)}
main.container{max-width:1160px}
article,.editor,.article-content{min-width:0;max-width:100%;overflow-wrap:anywhere}
article img,.editor img,.article-content img{display:inline-block;max-width:100%!important;height:auto!important;object-fit:contain;vertical-align:middle}
article iframe,.editor iframe{max-width:100%}
article table,.editor table{max-width:100%;display:block;overflow-x:auto}
.article-image{max-width:100%;height:auto}
.admin-article-shell{background:var(--parchment);border:1px solid var(--gold);border-radius:14px;padding:clamp(16px,3vw,32px);box-shadow:0 8px 26px #493a2b20}
.admin-article-shell .form-label{display:block;width:100%;font-weight:600;margin-bottom:12px}
.admin-article-shell .form-control,.admin-article-shell .form-select{width:100%;max-width:100%;font-weight:400}
.admin-article-shell .input-group{display:flex;width:100%;flex-wrap:wrap}
.admin-article-shell .input-group .form-control{min-width:180px;flex:1 1 230px;width:1%}
.admin-article-shell .input-group .btn{flex:0 0 auto}
.article-toolbar{display:flex;flex-wrap:wrap;gap:8px;padding:12px;background:#eee3c9;border:1px solid #d4b777;border-radius:9px 9px 0 0}
.article-toolbar .form-select{width:auto;max-width:200px}
.article-toolbar .form-control-color{width:44px;min-width:44px;padding:4px}
.admin-article-shell .editor{min-height:420px;max-width:100%;width:100%;overflow-x:auto;background:#fffdf7;border:1px solid #d4b777;border-top:0;border-radius:0 0 9px 9px;padding:clamp(14px,2vw,24px);line-height:1.65}
.admin-article-shell .editor img{max-width:100%!important;height:auto!important}
.admin-article-shell .editor:focus{outline:2px solid var(--antique);outline-offset:-2px}
.admin-article-shell .btn-warning{background:#a67c32;border-color:#a67c32;color:white}
@media(max-width:575px){.admin-article-shell .input-group .btn{width:100%}.article-toolbar .form-select{max-width:145px}.admin-article-shell .editor{min-height:320px}}

/* November 2026: precise font sizes and featured image layouts */
.study-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,32%);gap:1.5rem;align-items:center}
.study-card-copy{min-width:0}.study-card-image{display:block;width:100%;max-width:100%;height:180px;object-fit:cover;border:1px solid var(--gold);border-radius:8px;justify-self:end}
.article-toolbar .toolbar-label{align-self:center;margin:0;font-size:.85rem;font-weight:600}
.editor img{cursor:pointer}.editor img.selected-editor-image{outline:3px solid #a67c32;outline-offset:2px}
.editor font[style*="font-size"],.editor span[style*="font-size"],article span[style*="font-size"]{line-height:1.5}
@media(max-width:640px){.study-card{grid-template-columns:1fr}.study-card-image{width:100%;height:auto;max-height:260px;object-fit:contain}}

/* v3: compact, left-aligned thumbnails and contained article media */
.study-card{display:flex;align-items:flex-start;gap:22px;min-width:0}
.study-card-image{flex:0 0 180px;width:180px;max-width:180px;height:140px;object-fit:cover;object-position:center;border-radius:6px;align-self:flex-start}
.study-card-copy{flex:1 1 auto;min-width:0}
.study-card-copy h3{margin-top:0}
.article-image{display:block!important;width:auto!important;max-width:min(100%,360px)!important;max-height:260px!important;height:auto!important;object-fit:contain!important;object-position:left center;margin:1rem 0 1.25rem}
.article-content{overflow-x:hidden}
.article-content img{max-width:100%!important;height:auto!important;object-fit:contain!important}
.article-content video,.article-content iframe{max-width:100%;height:auto}
@media(max-width:600px){.study-card{gap:12px}.study-card-image{flex-basis:110px;width:110px;max-width:110px;height:90px}.study-card-copy h3{font-size:1.1rem}.article-image{max-width:100%!important}}

/* v4: render saved editor typography consistently on public articles. */
.article-content {font-family:Georgia,serif;font-size:16px;line-height:1.65;}
/* Keep inline font-family and font-size declarations untouched. */

/* Secrets of the Bible - compact article images */
body .article-content img,
body article .article-image,
body .article-image {
    display: block !important;
    width: auto !important;
    max-width: 360px !important;
    max-height: 260px !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin: 12px 0 18px !important;
}

/* Secrets of the Bible - article reading frame */

.study-article-frame {
    width: calc(100% - 32px);
    max-width: 950px;
    margin: 30px auto 50px;
    padding: 35px 40px;
    box-sizing: border-box;

    background: #fffdf7;
    border: 1px solid #d6c39c;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(50, 38, 15, 0.12);
    color: #382d22;
}

.study-article-frame .article-image {
    display: block;
    max-width: 360px;
    max-height: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 0 25px;
    border-radius: 6px;
}

.study-article-frame p {
    margin: 0 0 18px;
    line-height: 1.65;
}

.study-article-frame img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .study-article-frame {
        padding: 20px;
        margin: 15px auto 30px;
    }
}


/* Back to Home button */
.bible-back-button {
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 24px;
    background: #fffdf7;
    color: #986c20;
    border: 1px solid #b8862b;
    border-radius: 7px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.bible-back-button:hover {
    background: #b8862b;
    color: #ffffff;
}

@media (max-width: 600px) {
    .study-card-image {
        width: 100px !important;
        max-width: 100px !important;
        height: 80px !important;
        object-fit: cover !important;
        flex: 0 0 100px;
    }

    .study-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .study-card-copy {
        flex: 1;
        min-width: 0;
    }
}
/* BIBLE-CSS-TEST-1107 */

/* Secrets of the Bible - navigation buttons */
.bible-back-button,
.bible-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    margin: 0 8px 20px 0;
    background: #fffdf7;
    color: #986c20 !important;
    border: 1px solid #a67c32;
    border-radius: 7px;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    transition: background .2s, color .2s;
}

.bible-back-button:hover,
.bible-nav-button:hover {
    background: #a67c32;
    color: #ffffff !important;
}

@media (max-width: 600px) {
    .bible-back-button,
    .bible-nav-button {
        padding: 9px 14px;
        font-size: 14px;
    }
}

