/* Historical Writings: a reading-first library presentation independent of theme styling. */
body.jag-historical-writing .entry-author,
body.jag-historical-writing .catagory-type,
body.jag-historical-writing .entry-meta,
body.jag-historical-writing aside,
body.jag-historical-writing #secondary,
body.jag-historical-writing .widget-area {
    display: none !important;
}
body.jag-historical-writing .site-content,
body.jag-historical-writing .content-area,
body.jag-historical-writing #primary,
body.jag-historical-writing .primary,
body.jag-historical-writing .hentry,
body.jag-historical-writing .entry-content {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
}
body.jag-historical-writing .jag-document-shell {
    box-sizing: border-box;
    max-width: 980px;
    margin: 0 auto;
    padding: 1.25rem 2rem 3rem;
}
body.jag-historical-writing .jag-document-header {
    max-width: 820px;
    margin: 0 auto 2.25rem;
    padding: 0 0 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,.16);
}
body.jag-historical-writing .jag-document-author {
    margin-bottom: .65rem;
    font-size: 1.35rem;
    font-weight: 600;
}
body.jag-historical-writing .jag-document-meta,
body.jag-historical-writing .jag-document-scripture {
    margin-top: .4rem;
    font-size: .98rem;
    line-height: 1.6;
}
body.jag-historical-writing .jag-document-text {
    max-width: 800px;
    width: 100% !important;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.75;
}
body.jag-historical-writing .jag-document-text > p,
body.jag-historical-writing .jag-document-text > blockquote,
body.jag-historical-writing .jag-document-text > h1,
body.jag-historical-writing .jag-document-text > h2,
body.jag-historical-writing .jag-document-text > h3,
body.jag-historical-writing .jag-document-text > h4,
body.jag-historical-writing .jag-document-text > ul,
body.jag-historical-writing .jag-document-text > ol,
body.jag-historical-writing .jag-document-text > figure,
body.jag-historical-writing .jag-document-text > .wp-block-group {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.jag-historical-writing .jag-document-text p {
    margin-top: 0;
    margin-bottom: 1.25em;
}
body.jag-historical-writing .jag-document-text blockquote {
    margin: 0 0 2rem;
}
body.jag-historical-writing .jag-document-text h2 {
    margin-top: 2.4em;
    margin-bottom: .8em;
    line-height: 1.3;
}
@media (max-width: 760px) {
    body.jag-historical-writing .jag-document-shell { padding: 1rem 1.1rem 2rem; }
    body.jag-historical-writing .jag-document-text { font-size: 1rem; line-height: 1.7; }
}

/* v0.2.2: override Masonic's narrow body-content rules inside Historical Writings. */
body.jag-historical-writing .jag-document-shell .jag-document-text {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    columns: auto !important;
    column-count: 1 !important;
}
body.jag-historical-writing .jag-document-shell .jag-document-text > *,
body.jag-historical-writing .jag-document-shell .jag-document-text p,
body.jag-historical-writing .jag-document-shell .jag-document-text blockquote,
body.jag-historical-writing .jag-document-shell .jag-document-text h1,
body.jag-historical-writing .jag-document-shell .jag-document-text h2,
body.jag-historical-writing .jag-document-shell .jag-document-text h3,
body.jag-historical-writing .jag-document-shell .jag-document-text h4,
body.jag-historical-writing .jag-document-shell .jag-document-text ul,
body.jag-historical-writing .jag-document-shell .jag-document-text ol {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    max-width: 800px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    clear: both !important;
}


/* v0.2.3: Masonic lays entry content out in columns on wide screens.
   Disable that column context for Historical Writings so the reading article
   can use the full centered 800px measure. */
body.jag-historical-writing .entry-content,
body.jag-historical-writing .jag-document-shell {
    display: block !important;
    columns: auto !important;
    column-count: 1 !important;
    column-width: auto !important;
}
body.jag-historical-writing .jag-document-shell .jag-document-text {
    width: min(100%, 800px) !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* v0.2.4: Masonic uses class="primary" (not id="primary") on this template.
   Expand the actual theme primary column for Historical Writings. */
body.jag-historical-writing #container.wrapper,
body.jag-historical-writing #container .primary,
body.jag-historical-writing .site-content .primary {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* v0.2.5: Masonic also constrains the individual post article.
   Historical Writings need that wrapper expanded before the inner reading
   column can reach its intended 800px measure. */
body.jag-historical-writing #container .primary > article.blog-post,
body.jag-historical-writing #container .primary > article.hentry,
body.jag-historical-writing article.jag_writing,
body.jag-historical-writing article.type-jag_writing {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.jag-historical-writing article.jag_writing > .entry-content,
body.jag-historical-writing article.type-jag_writing > .entry-content {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
}


/* v0.2.6: reading-page proportions.
   Keep the historical document card comfortably narrower than the viewport
   and use a 720px centered reading measure for long-form text. */
body.jag-historical-writing #container .primary > article.blog-post,
body.jag-historical-writing #container .primary > article.hentry,
body.jag-historical-writing article.jag_writing,
body.jag-historical-writing article.type-jag_writing {
    width: calc(100% - 2rem) !important;
    max-width: 1080px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.jag-historical-writing .jag-document-shell {
    width: 100% !important;
    max-width: 1080px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.jag-historical-writing .jag-document-header {
    max-width: 720px !important;
}
body.jag-historical-writing .jag-document-shell .jag-document-text,
body.jag-historical-writing .jag-document-shell .jag-document-text > *,
body.jag-historical-writing .jag-document-shell .jag-document-text p,
body.jag-historical-writing .jag-document-shell .jag-document-text blockquote,
body.jag-historical-writing .jag-document-shell .jag-document-text h1,
body.jag-historical-writing .jag-document-shell .jag-document-text h2,
body.jag-historical-writing .jag-document-shell .jag-document-text h3,
body.jag-historical-writing .jag-document-shell .jag-document-text h4,
body.jag-historical-writing .jag-document-shell .jag-document-text ul,
body.jag-historical-writing .jag-document-shell .jag-document-text ol {
    width: 100% !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
@media (max-width: 760px) {
    body.jag-historical-writing #container .primary > article.blog-post,
    body.jag-historical-writing #container .primary > article.hentry,
    body.jag-historical-writing article.jag_writing,
    body.jag-historical-writing article.type-jag_writing {
        width: calc(100% - 1rem) !important;
    }
}
