
/* Article Reader Page 1 - AI Bible Commentary
   Pasted article reader with NET Bible Scripture-reference tooltips and context popup.
*/
.article-reader-body { background: linear-gradient(180deg, #fcf7ee 0%, #f6efde 100%); }
.article-reader-wrap { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 26px 0 64px; }
.article-reader-hero { background: linear-gradient(135deg, #fffdf8, #f2dfbf); border: 1px solid var(--line, #e1cfaa); border-radius: 28px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow, 0 10px 24px rgba(56,32,14,.08)); margin: 24px 0; }
.article-reader-hero h1 { margin-bottom: .45rem; }
.article-reader-lead { max-width: 920px; color: var(--muted, #6f6456); font-size: 1.12rem; }
.article-reader-grid { display: grid; grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr); gap: 18px; align-items: start; }
.article-reader-panel { background: var(--panel, #fffaf0); border: 1px solid var(--line, #e1cfaa); border-radius: 22px; box-shadow: var(--shadow, 0 10px 24px rgba(56,32,14,.08)); padding: 20px; }
.article-reader-panel h2, .article-reader-panel h3 { margin-top: 0; }
.article-reader-field { display: grid; gap: 7px; margin-bottom: 14px; }
.article-reader-field label { font-weight: 700; color: var(--text, #2f2418); }
.article-reader-field input, .article-reader-field textarea { width: 100%; border: 1px solid #d8b47c; border-radius: 14px; background: #fffdf8; color: var(--text, #2f2418); font: inherit; padding: 12px 14px; }
.article-reader-field textarea { min-height: 430px; resize: vertical; line-height: 1.55; }
.article-reader-options { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 12px 0 14px; }
.article-reader-options label { display: inline-flex; gap: 7px; align-items: center; font-size: .96rem; color: var(--muted, #6f6456); }
.article-reader-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.article-reader-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #b97938; border-radius: 999px; padding: 10px 14px; background: #8a4b17; color: #fff; font: 700 1rem Georgia, "Times New Roman", serif; cursor: pointer; text-decoration: none; }
.article-reader-button:hover, .article-reader-button:focus { background: #713b13; color: #fff; text-decoration: none; }
.article-reader-button.secondary { background: #fff; color: #713b13; border-color: #d8b47c; }
.article-reader-button.secondary:hover, .article-reader-button.secondary:focus { background: #fff3cd; color: #713b13; }
.article-reader-status { margin-top: 12px; border: 1px solid #ead3ad; background: #fffdf8; border-radius: 14px; padding: 10px 12px; color: var(--muted, #6f6456); font-size: .96rem; }
.article-reader-output-shell { min-height: 540px; }
.article-reader-output { background: linear-gradient(180deg, #fffdf8, #faf3e6); border: 1px solid var(--content-border, #e4d6b2); border-radius: 18px; padding: clamp(18px, 3vw, 28px); color: var(--content-text, #2f2418); }
.article-reader-output.is-empty { color: var(--muted, #6f6456); font-style: italic; }
.article-reader-output h2 { font-size: clamp(1.65rem, 2.2vw, 2.35rem); border-bottom: 1px solid #ead3ad; padding-bottom: .45rem; margin-bottom: 1rem; }
.article-reader-output p { margin: 0 0 1.05rem; }
.article-scripture-ref { display: inline; border-bottom: 2px dotted rgba(138, 75, 23, .45); color: #713b13; font-weight: 700; text-decoration: none; cursor: pointer; }
.article-scripture-ref:hover, .article-scripture-ref:focus { color: #5f2d0c; background: #fff3cd; text-decoration: none; outline: none; }
.article-reader-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0 0 14px; }
.article-reader-summary div { background: #fffdf8; border: 1px solid #ead3ad; border-radius: 14px; padding: 10px 12px; }
.article-reader-summary strong { display: block; color: #713b13; font-size: 1.18rem; }
.article-scripture-tooltip { position: absolute; z-index: 10000; max-width: min(580px, calc(100vw - 28px)); background: #fffaf2; border: 1px solid #b97938; border-radius: 16px; box-shadow: 0 14px 36px rgba(42,26,16,.22); padding: 13px 14px; color: #2a1a10; font-family: Georgia, "Times New Roman", serif; line-height: 1.5; }
.article-scripture-tooltip h4 { margin: 0 0 8px; color: #713b13; font-size: 1.02rem; }
.article-scripture-tooltip p { margin: .42rem 0; }
.article-scripture-tooltip .article-tooltip-target { background: #fff3cd; border-radius: 8px; padding: 5px 7px; }
.article-scripture-tooltip small { display: block; color: #6b4a2d; margin-top: 9px; }
.article-scripture-tooltip .article-tooltip-warning { color: #8a3b17; }
.article-hidden { display: none !important; }
.article-reader-note { border-left: 5px solid #8a4b17; }
.article-reader-note ul { margin-bottom: 0; }
.article-reader-kbd { font-family: Consolas, monospace; background: #fff; border: 1px solid #ead3ad; border-radius: 6px; padding: .05rem .32rem; }
@media (max-width: 960px) { .article-reader-grid { grid-template-columns: 1fr; } .article-reader-field textarea { min-height: 320px; } }
@media print { .site-header, .article-reader-hero, .article-reader-input-panel, .footer, .back-to-top { display: none !important; } .article-reader-wrap { width: 100%; padding: 0; } .article-reader-grid { display: block; } .article-reader-panel { border: 0; box-shadow: none; padding: 0; } .article-reader-output { border: 0; padding: 0; } .article-scripture-ref { color: inherit; border-bottom: 0; font-weight: inherit; } }
