/*
 * STANDARD TEXT PAGE — STYLESHEET
 * =================================
 * Full design system for DivineRevelations / GoJes.us page templates.
 * All component classes use CSS variables and work across all 14 themes.
 *
 * TABLE OF CONTENTS
 * ─────────────────────────────────────────────────────────────────────
 *  §1   Design System        — CSS custom properties (:root variables)
 *  §2   Theme Definitions    — 14 themes (7 dark, 7 light)
 *  §3   Base / Reset         — html, body, *, box-sizing, scrollbar
 *  §4   Accessibility        — skip-link, focus-visible, screen-reader
 *  §5   Layout               — page-container, header, banner
 *  §6   Typography           — headings, paragraphs, links, code
 *  §7   Control Bar          — toolbar, control buttons, dropdown
 *  §8   Main Content         — .content-body, h2 underline rule
 *
 * ── COMPONENT LIBRARY ────────────────────────────────────────────────
 *  §9   Borders              — .border-*, gradient borders, glow borders
 *  §10  Glows                — .glow-text-*, .glow-box-*, .neon-*
 *  §11  Cards                — .card, .card-glass, .card-row, sections
 *  §12  Callouts / Alerts    — .callout-*, .note-*, scripture, prayer
 *  §13  Badges & Tags        — .badge-*, .tag-*
 *  §14  Buttons (Content)    — .btn-*, sizes, ghost, outline, pill
 *  §15  Dividers             — .divider-*, ornamental, fading, labelled
 *  §16  Lists                — .list-check, .list-arrow, .list-star, etc.
 *  §17  Blockquotes          — default + .quote-scripture, .quote-centered
 *  §18  Pull Quotes          — .pull-quote, .pull-quote-accent
 *  §19  Images & Figures     — floats, .img-*, figure captions, frames
 *  §20  Tables               — .table-striped, .table-bordered, .table-compact
 *  §21  Forms & Inputs       — inputs, textarea, select, label, fieldset
 *  §22  Code & Pre           — syntax-ready code blocks
 *  §23  Details / Accordion  — details, summary
 *  §24  Scripture Box        — .scripture-box, .verse-number
 *  §25  Timeline             — .timeline, .timeline-item
 *  §26  Layout Helpers       — .two-col, .three-col, .side-by-side, spacers
 *  §27  Text Utilities       — .text-*, .drop-cap, .highlight, gradients
 *  §28  Notices / Banners    — .notice-*, full-width strips
 *  §29  Video & Audio        — .video-wrapper, .audio-wrapper
 *  §30  Footnotes            — .footnote, .footnote-ref
 *  §31  Page Components      — scroll-progress, back-to-top, toast
 *  §32  Lightbox             — overlay, image, caption, close button
 *  §33  Flash Overlay        — splash screen + animation
 *  §34  Bible References     — .bible-ref, .bible-link
 *  §35  Responsive           — mobile / tablet breakpoints
 *  §36  Print                — @media print
 * ─────────────────────────────────────────────────────────────────────
 */


/* ═══════════════════════════════════════════════════════════════════
   §1  DESIGN SYSTEM — CSS Custom Properties
   ═══════════════════════════════════════════════════════════════════ */
:root {
    /* --- Typography --- */
    --font-base:         18px;
    --font-scale:        1;
    --font-title:        'Gabriela', serif;
    --font-body:         'Lato', sans-serif;
    --font-mono:         'Courier New', Courier, monospace;

    /* --- Layout --- */
    --max-width:         900px;

    /* --- Shape --- */
    --border-radius:     12px;
    --border-radius-sm:  6px;
    --border-radius-xs:  3px;
    --border-radius-pill: 9999px;

    /* --- Motion --- */
    --transition-speed:  0.3s;
    --transition-fast:   0.15s;

    /* --- Spacing Scale --- */
    --space-xs:   0.25rem;
    --space-sm:   0.5rem;
    --space-md:   1rem;
    --space-lg:   2rem;
    --space-xl:   3rem;

    /* --- Shadows (color comes from theme --shadow) --- */
    --shadow-xs:  0 1px 3px var(--shadow, rgba(0,0,0,0.3));
    --shadow-sm:  0 2px 6px var(--shadow, rgba(0,0,0,0.3));
    --shadow-md:  0 4px 15px var(--shadow, rgba(0,0,0,0.3));
    --shadow-lg:  0 8px 30px var(--shadow, rgba(0,0,0,0.4));
    --shadow-xl:  0 16px 50px var(--shadow, rgba(0,0,0,0.5));

    /* --- Glow Intensities (color comes from theme) --- */
    --glow-sm:    0 0 8px var(--primary);
    --glow-md:    0 0 16px var(--primary), 0 0 32px var(--primary);
    --glow-lg:    0 0 24px var(--primary), 0 0 50px var(--primary), 0 0 80px var(--primary);
    --glow-accent-sm: 0 0 8px var(--accent);
    --glow-accent-md: 0 0 16px var(--accent), 0 0 32px var(--accent);

    /* --- Control Bar --- */
    --control-bar-gap: 12px;

    /* --- Semantic Colors (warnings, errors, success states)
           These are intentionally NOT themed — they carry universal meaning.
           Override here if your brand requires different values. --- */
    --color-success:     #22c55e;
    --color-success-bg:  rgba(34,  197, 94,  0.12);
    --color-warning:     #f59e0b;
    --color-warning-bg:  rgba(245, 158, 11,  0.10);
    --color-danger:      #ef4444;
    --color-danger-bg:   rgba(239, 68,  68,  0.10);
}


/* ═══════════════════════════════════════════════════════════════════
   §2  THEME DEFINITIONS — 14 Themes (7 Dark, 7 Light)
       Each defines: --bg-color  --text-color  --primary
                     --secondary --accent      --link-color  --shadow
   ═══════════════════════════════════════════════════════════════════ */

/* ─── DARK THEMES ─────────────────────────────────────────────── */

/* 1. Auburn Night */
body.theme-dark-auburn {
    --bg-color:   #2a0a0a;
    --text-color: #fce4ec;
    --primary:    #ff5252;
    --secondary:  #4a0d0d;
    --accent:     #ff8a80;
    --link-color: #ffb3b3;
    --shadow:     rgba(0, 0, 0, 0.6);
}

/* 2. Art Deco — Classic Gold Luxury */
body.theme-dark-art-deco {
    --bg-color:   #121212;
    --text-color: #e0e0e0;
    --primary:    #d4af37;
    --secondary:  #1e1e1e;
    --accent:     #f7e7ce;
    --link-color: #fdd835;
    --shadow:     rgba(0, 0, 0, 0.8);
}

/* 3. Midnight Sky Blue — DEFAULT */
body.theme-dark-midnight {
    --bg-color:   #0d1b2a;
    --text-color: #e0f1f8;
    --primary:    #38bdf8;
    --secondary:  #1b263b;
    --accent:     #7dd3fc;
    --link-color: #7dd3fc;
    --shadow:     rgba(0, 0, 0, 0.5);
}

/* 4. Acid High Energy */
body.theme-dark-acid {
    --bg-color:   #050505;
    --text-color: #eaffea;
    --primary:    #39ff14;
    --secondary:  #1a1a1a;
    --accent:     #baffba;
    --link-color: #76ff03;
    --shadow:     rgba(0, 255, 0, 0.2);
}

/* 5. Vaporwave Sunset */
body.theme-dark-vaporwave {
    --bg-color:   #1a0b2e;
    --text-color: #ffdef9;
    --primary:    #ff00ff;
    --secondary:  #3b1e56;
    --accent:     #00ffff;
    --link-color: #ea80fc;
    --shadow:     rgba(128, 0, 255, 0.4);
}

/* 6. Boreal Night */
body.theme-dark-boreal {
    --bg-color:   #002b36;
    --text-color: #e0f2f1;
    --primary:    #26a69a;
    --secondary:  #004d40;
    --accent:     #80cbc4;
    --link-color: #4db6ac;
    --shadow:     rgba(0, 0, 0, 0.5);
}

/* 7. Neon Void */
body.theme-dark-neon {
    --bg-color:   #000000;
    --text-color: #ccfffa;
    --primary:    #00e5ff;
    --secondary:  #111111;
    --accent:     #e040fb;
    --link-color: #18ffff;
    --shadow:     rgba(0, 255, 255, 0.3);
}


/* ─── LIGHT THEMES ────────────────────────────────────────────── */

/* 8. Creme and Gold */
body.theme-light-creme {
    --bg-color:   #fdfbf7;
    --text-color: #3e3b32;
    --primary:    #c5a059;
    --secondary:  #f2efe6;
    --accent:     #e0d5b7;
    --link-color: #8a6a2e;
    --shadow:     rgba(0, 0, 0, 0.08);
}

/* 9. Ink and Paper */
body.theme-light-ink {
    --bg-color:   #ffffff;
    --text-color: #212121;
    --primary:    #000000;
    --secondary:  #f0f0f0;
    --accent:     #616161;
    --link-color: #d32f2f;   /* sharp red — like manuscript editing marks */
    --shadow:     rgba(0, 0, 0, 0.1);
}

/* 10. Forest Ethereal */
body.theme-light-forest {
    --bg-color:   #f1f8e9;
    --text-color: #1b5e20;
    --primary:    #388e3c;
    --secondary:  #dcedc8;
    --accent:     #8bc34a;
    --link-color: #2e7d32;
    --shadow:     rgba(0, 0, 0, 0.08);
}

/* 11. Denim Wash */
body.theme-light-denim {
    --bg-color:   #ecf3f9;
    --text-color: #102a43;
    --primary:    #336699;
    --secondary:  #dbeafe;
    --accent:     #9fb3c8;
    --link-color: #205c90;
    --shadow:     rgba(0, 0, 0, 0.1);
}

/* 12. Peach Fuzz */
body.theme-light-peach {
    --bg-color:   #fff5f0;
    --text-color: #4e342e;
    --primary:    #ff8a65;
    --secondary:  #ffccbc;
    --accent:     #ffab91;
    --link-color: #d84315;
    --shadow:     rgba(0, 0, 0, 0.08);
}

/* 13. Sahara Sand */
body.theme-light-sahara {
    --bg-color:   #fff8e1;
    --text-color: #5d4037;
    --primary:    #d4a017;
    --secondary:  #ffecb3;
    --accent:     #ffd54f;
    --link-color: #bf8d0a;
    --shadow:     rgba(0, 0, 0, 0.1);
}

/* 14. Lavender Mist */
body.theme-light-lavender {
    --bg-color:   #faf5ff;
    --text-color: #4a148c;
    --primary:    #9c27b0;
    --secondary:  #f3e5f5;
    --accent:     #e1bee7;
    --link-color: #7b1fa2;
    --shadow:     rgba(0, 0, 0, 0.08);
}


/* ═══════════════════════════════════════════════════════════════════
   §3  BASE / RESET
   ═══════════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size:       calc(var(--font-base) * var(--font-scale));
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color:            var(--text-color);
    font-family:      var(--font-body);
    margin:           0;
    padding:          0;
    transition:       background-color var(--transition-speed),
                      color var(--transition-speed);
    line-height:      1.7;
    display:          flex;
    flex-direction:   column;
    align-items:      center;
    /* Themed scrollbar (Firefox) */
    scrollbar-width:  thin;
    scrollbar-color:  var(--primary) var(--secondary);
}

/* Themed scrollbar (Chrome / Edge / Safari) */
body::-webkit-scrollbar              { width: 8px; }
body::-webkit-scrollbar-track        { background: var(--secondary); }
body::-webkit-scrollbar-thumb        { background: var(--primary); border-radius: 4px; }
body::-webkit-scrollbar-thumb:hover  { background: var(--accent); }

/* Safe image defaults — prevents overflow on all screen sizes */
img {
    max-width:     100%;
    height:        auto;
    display:       block;
    border-radius: var(--border-radius-sm);
}


/* ═══════════════════════════════════════════════════════════════════
   §4  ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════ */

/* Skip-to-content — invisible until keyboard-focused */
.skip-link {
    position:         absolute;
    top:              -200px;
    left:             1rem;
    background-color: var(--primary);
    color:            var(--bg-color);
    padding:          0.6rem 1.4rem;
    border-radius:    var(--border-radius);
    font-weight:      bold;
    font-family:      var(--font-body);
    z-index:          99999;
    transition:       top var(--transition-fast);
    text-decoration:  none;
    white-space:      nowrap;
}
.skip-link:focus {
    top:            0.5rem;
    outline:        3px solid var(--accent);
    outline-offset: 2px;
}

/* Universal focus ring for keyboard navigation */
:focus-visible {
    outline:        2px solid var(--primary);
    outline-offset: 3px;
    border-radius:  var(--border-radius-xs);
}
/* Suppress outline for mouse users in browsers that support :focus-visible */
:focus:not(:focus-visible) {
    outline: none;
}

/* Screen-reader-only text — visually hidden but accessible */
.sr-only {
    position:   absolute;
    width:      1px;
    height:     1px;
    padding:    0;
    margin:     -1px;
    overflow:   hidden;
    clip:       rect(0, 0, 0, 0);
    white-space: nowrap;
    border:     0;
}


/* ═══════════════════════════════════════════════════════════════════
   §5  LAYOUT — Page Container, Header, Banner
   ═══════════════════════════════════════════════════════════════════ */
.page-container {
    width:          100%;
    display:        flex;
    flex-direction: column;
    align-items:    center;
    position:       relative;
    min-height:     100vh;
}

.page-header {
    width:      100%;
    max-width:  1600px;
    margin:     1rem auto;
    padding:    0 1rem;
    text-align: center;
}

.banner-image {
    width:         100%;
    height:        auto;
    aspect-ratio:  1600 / 400;
    border-radius: var(--border-radius);
    object-fit:    cover;
    display:       block;
    box-shadow:    var(--shadow-md);
    transition:    transform var(--transition-fast);
}
.banner-image:hover            { transform: scale(1.005); }

.banner-nav-trigger            { cursor: pointer; }
.banner-nav-trigger:focus-visible {
    outline:        3px solid var(--primary);
    outline-offset: 4px;
    border-radius:  var(--border-radius);
}

.text-title {
    text-align: center;
    font-size:  3rem;
    margin:     2rem 0;
    cursor:     pointer;
    color:      var(--primary);
}

#page-description {
    max-width:     var(--max-width);
    text-align:    center;
    padding:       0 2rem;
    margin-bottom: 2rem;
    color:         var(--text-color);
    opacity:       0.9;
    font-style:    italic;
    font-size:     1.1rem;
}


/* ═══════════════════════════════════════════════════════════════════
   §6  TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family:   var(--font-title);
    color:         var(--primary);
    text-shadow:   1px 1px 3px var(--shadow);
    margin-top:    1.5em;
    margin-bottom: 0.5em;
    line-height:   1.3;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; font-weight: bold; }
h6 { font-size: 1.1rem;  font-weight: bold; font-style: italic; }

p, li {
    font-size:     1rem;
    text-align:    justify;
    hyphens:       auto;
    margin-bottom: 1em;
}

a {
    color:           var(--link-color);
    text-decoration: none;
    font-weight:     500;
    transition:      opacity var(--transition-fast), color var(--transition-fast);
}
a:hover { text-decoration: underline; opacity: 0.85; }

/* External link arrow indicator (inside main content only) */
main a[target="_blank"]::after,
.content-body a[target="_blank"]::after {
    content:        " ↗";
    font-size:      0.75em;
    opacity:        0.7;
    display:        inline-block;
    vertical-align: text-top;
}


/* ═══════════════════════════════════════════════════════════════════
   §7  CONTROL BAR
   ═══════════════════════════════════════════════════════════════════ */
.control-bar {
    display:         flex;
    flex-wrap:       wrap;
    justify-content: center;
    gap:             var(--control-bar-gap);
    margin-bottom:   2rem;
    padding:         0 1rem;
    max-width:       var(--max-width);
    width:           100%;
}

.control-btn {
    background-color: var(--secondary);
    color:            var(--text-color);
    border:           1px solid var(--primary);
    border-radius:    var(--border-radius);
    padding:          10px 20px;
    font-size:        1.1rem;
    font-family:      var(--font-body);
    font-weight:      bold;
    cursor:           pointer;
    transition:       background-color var(--transition-fast),
                      color var(--transition-fast),
                      transform var(--transition-fast),
                      box-shadow var(--transition-fast);
    box-shadow:       var(--shadow-sm);
    display:          flex;
    align-items:      center;
    justify-content:  center;
    min-width:        50px;
    user-select:      none;
}
.control-btn:hover {
    background-color: var(--primary);
    color:            var(--bg-color);
    text-shadow:      none;
    transform:        translateY(-2px);
    box-shadow:       var(--shadow-md);
}
.control-btn:active { transform: translateY(1px); box-shadow: var(--shadow-xs); }

/* Dropdown */
.dropdown { position: relative; display: inline-block; }

.dropdown-content {
    display:          none;
    position:         absolute;
    background-color: var(--secondary);
    min-width:        220px;
    box-shadow:       var(--shadow-lg);
    z-index:          200;
    border-radius:    var(--border-radius);
    overflow:         hidden;
    right:            0;
    border:           1px solid var(--primary);
    animation:        dropdownOpen 0.15s ease-out;
}
.dropdown-content.open { display: block; }

@keyframes dropdownOpen {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dropdown-content a {
    color:           var(--text-color);
    padding:         12px 16px;
    text-decoration: none;
    display:         block;
    font-size:       1rem;
    text-align:      left;
    font-weight:     400;
    transition:      background-color var(--transition-fast), color var(--transition-fast);
}
.dropdown-content a:hover,
.dropdown-content a:focus-visible {
    background-color: var(--primary);
    color:            var(--bg-color);
    text-decoration:  none;
    outline:          none;
}

.dropdown-content hr {
    border:     0;
    border-top: 1px solid var(--primary);
    margin:     0;
    opacity:    0.3;
}


/* ═══════════════════════════════════════════════════════════════════
   §8  MAIN CONTENT AREA
   ═══════════════════════════════════════════════════════════════════ */
main,
.content-body {
    max-width:        var(--max-width);
    width:            100%;
    background-color: var(--secondary);
    padding:          2.5rem;
    border-radius:    var(--border-radius);
    box-shadow:       var(--shadow-md);
    margin:           0 1rem 3rem 1rem;
}

main h2,
.content-body h2 {
    border-bottom:  2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom:  1.5rem;
    text-align:     center;
}

hr {
    border:     0;
    border-top: 2px solid var(--primary);
    margin:     2em 0;
    opacity:    0.5;
}


/* ╔═══════════════════════════════════════════════════════════════╗
   ║                     COMPONENT LIBRARY                        ║
   ╚═══════════════════════════════════════════════════════════════╝ */


/* ═══════════════════════════════════════════════════════════════════
   §9  BORDERS
   ═══════════════════════════════════════════════════════════════════
   Usage: add a class to any block element.
   Example: <div class="border-primary border-radius">...</div>
   ─────────────────────────────────────────────────────────────── */

/* Border styles */
.border             { border: 1px solid var(--primary); }
.border-thick       { border: 3px solid var(--primary); }
.border-accent      { border: 1px solid var(--accent); }
.border-accent-thick{ border: 3px solid var(--accent); }
.border-muted       { border: 1px solid var(--text-color); opacity: 0.2; }
.border-dashed      { border: 2px dashed var(--primary); }
.border-dotted      { border: 2px dotted var(--primary); }
.border-double      { border: 4px double var(--primary); }

/* Side-only borders */
.border-left        { border-left:   4px solid var(--primary); padding-left: 1rem; }
.border-right       { border-right:  4px solid var(--primary); padding-right: 1rem; }
.border-top         { border-top:    3px solid var(--primary); padding-top: 0.5rem; }
.border-bottom      { border-bottom: 3px solid var(--primary); padding-bottom: 0.5rem; }
.border-left-accent { border-left:   4px solid var(--accent);  padding-left: 1rem; }

/* Rounded corners */
.rounded            { border-radius: var(--border-radius); }
.rounded-sm         { border-radius: var(--border-radius-sm); }
.rounded-full       { border-radius: var(--border-radius-pill); }

/* Glow border — uses box-shadow to simulate a colored glowing outline */
.border-glow {
    border:     2px solid var(--primary);
    box-shadow: 0 0 0 3px var(--bg-color),
                0 0 12px 4px var(--primary),
                inset 0 0 8px rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
}
.border-glow-accent {
    border:     2px solid var(--accent);
    box-shadow: 0 0 0 3px var(--bg-color),
                0 0 12px 4px var(--accent);
    border-radius: var(--border-radius);
}

/* Gradient border — wraps content in a gradient shell using background-clip.
   The outer div is the gradient; the inner div is the content background.
   Usage:
     <div class="border-gradient">
       <div>Your content here</div>
     </div>
   The <div> inside gets the background color; the 3px shell shows the gradient. */
.border-gradient {
    position:      relative;
    padding:       3px;   /* thickness of the gradient border */
    border-radius: var(--border-radius);
    background:    linear-gradient(135deg, var(--primary), var(--accent));
}
.border-gradient > * {
    background:    var(--secondary);
    border-radius: calc(var(--border-radius) - 3px);
    padding:       1rem;
}

/* Ornamental double-line border (top + bottom accent lines) */
.border-ornament {
    border-top:    3px double var(--primary);
    border-bottom: 3px double var(--primary);
    padding:       1rem 0;
    margin:        1.5rem 0;
}


/* ═══════════════════════════════════════════════════════════════════
   §10  GLOWS
   ═══════════════════════════════════════════════════════════════════
   Text glows use text-shadow. Box glows use box-shadow.
   ─────────────────────────────────────────────────────────────── */

/* Text Glows */
.glow-text-sm     { text-shadow: var(--glow-sm); }
.glow-text        { text-shadow: var(--glow-md); }
.glow-text-lg     { text-shadow: var(--glow-lg); }
.glow-text-accent { text-shadow: var(--glow-accent-md); }

/* Neon text — combines color with strong glow */
.neon {
    color:       var(--primary);
    text-shadow: 0 0 7px  var(--primary),
                 0 0 10px var(--primary),
                 0 0 21px var(--primary),
                 0 0 42px var(--primary),
                 0 0 82px var(--primary);
}
.neon-accent {
    color:       var(--accent);
    text-shadow: 0 0 7px  var(--accent),
                 0 0 10px var(--accent),
                 0 0 21px var(--accent),
                 0 0 42px var(--accent);
}

/* Box Glows */
.glow-box-sm {
    box-shadow: 0 0 8px var(--primary);
}
.glow-box {
    box-shadow: 0 0 15px var(--primary), 0 0 30px var(--primary);
}
.glow-box-lg {
    box-shadow: 0 0 25px var(--primary), 0 0 60px var(--primary), 0 0 100px var(--primary);
}
.glow-box-accent {
    box-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent);
}

/* Pulsing glow animation */
.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 8px var(--primary); }
    50%       { box-shadow: 0 0 24px var(--primary), 0 0 48px var(--primary); }
}

.glow-pulse-text {
    animation: glowPulseText 2s ease-in-out infinite;
}
@keyframes glowPulseText {
    0%, 100% { text-shadow: 0 0 6px var(--primary); }
    50%       { text-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary); }
}


/* ═══════════════════════════════════════════════════════════════════
   §11  CARDS
   ═══════════════════════════════════════════════════════════════════
   Usage: <div class="card"> or <div class="card card-glass">
   ─────────────────────────────────────────────────────────────── */

/* Base card */
.card {
    background-color: var(--secondary);
    border-radius:    var(--border-radius);
    box-shadow:       var(--shadow-md);
    overflow:         hidden;
    margin:           1rem 0;
    transition:       box-shadow var(--transition-fast),
                      transform var(--transition-fast);
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform:  translateY(-3px);
}

/* Card sections */
.card-header {
    background-color: var(--primary);
    color:            var(--bg-color);
    padding:          0.75rem 1.25rem;
    font-family:      var(--font-title);
    font-size:        1.1rem;
    font-weight:      bold;
}
.card-body {
    padding: 1.25rem;
}
.card-footer {
    padding:          0.75rem 1.25rem;
    border-top:       1px solid var(--primary);
    opacity:          0.8;
    font-size:        0.9rem;
}

/* Card variants */
.card-bordered {
    border: 1px solid var(--primary);
}
.card-elevated {
    box-shadow: var(--shadow-xl);
}
.card-flat {
    box-shadow: none;
    border:     1px solid rgba(127,127,127,0.2);
}
.card-primary {
    background-color: var(--primary);
    color:            var(--bg-color);
}
.card-primary .card-header { background: rgba(0,0,0,0.2); color: inherit; }

/* Glassmorphism card */
.card-glass {
    background:     rgba(127, 127, 127, 0.08);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border:         1px solid rgba(255, 255, 255, 0.15);
    box-shadow:     var(--shadow-md);
}

/* Horizontal card layout: image on left, text on right */
.card-row {
    display:   flex;
    flex-wrap: wrap;
    gap:       0;
}
.card-row > img {
    width:       40%;
    min-width:   180px;
    object-fit:  cover;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}
.card-row > .card-body {
    flex:     1;
    min-width: 0;
}

/* Small info card — ideal for stats, key facts, or KPI metrics.
   Usage:
     <div class="card card-stat">
       <span class="stat-number">42</span>
       <span class="stat-label">Verses Found</span>
     </div> */
.card-stat {
    text-align:  center;
    padding:     1.5rem 1rem;
    border-top:  4px solid var(--primary);
}
.card-stat .stat-number {
    display:     block;
    font-size:   2.5rem;
    font-family: var(--font-title);
    color:       var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.card-stat .stat-label {
    font-size:   0.9rem;
    opacity:     0.75;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ═══════════════════════════════════════════════════════════════════
   §12  CALLOUTS / ALERTS
   ═══════════════════════════════════════════════════════════════════
   Usage: <div class="callout callout-info"> <strong>Title</strong> Text </div>
   ─────────────────────────────────────────────────────────────── */

/* Base callout */
.callout {
    padding:          1rem 1.25rem 1rem 1.5rem;
    margin:           1.5rem 0;
    border-radius:    0 var(--border-radius) var(--border-radius) 0;
    border-left:      5px solid var(--primary);
    background-color: rgba(127, 127, 127, 0.08);
    position:         relative;
}
.callout strong:first-child,
.callout > p:first-child > strong:first-child {
    display:       block;
    margin-bottom: 0.35rem;
    font-size:     1.05rem;
}

/* Info (primary color) */
.callout-info {
    border-color:     var(--primary);
    background-color: rgba(127, 127, 127, 0.06);
}
.callout-info::before {
    content: "ℹ️";
    position: absolute;
    left: -0.1em;
    top: 0.9rem;
    font-size: 0.9rem;
    transform: translateX(-50%);
    background: var(--secondary);
    border-radius: 50%;
}

/* Tip (accent color) */
.callout-tip {
    border-color:     var(--accent);
    background-color: rgba(127, 127, 127, 0.06);
}

/* Warning */
.callout-warning {
    border-color:     var(--color-warning);
    background-color: var(--color-warning-bg);
    color:            var(--text-color);
}

/* Caution / Danger */
.callout-caution {
    border-color:     var(--color-danger);
    background-color: var(--color-danger-bg);
}

/* Success */
.callout-success {
    border-color:     var(--color-success);
    background-color: var(--color-success-bg);
}

/* Note (muted) */
.callout-note {
    border-color:     rgba(127, 127, 127, 0.5);
    background-color: rgba(127, 127, 127, 0.05);
    font-style:       italic;
}

/* Scripture — special Bible verse callout */
.callout-scripture {
    border-left:      6px solid var(--primary);
    background:       linear-gradient(135deg,
                        rgba(127, 127, 127, 0.12),
                        rgba(127, 127, 127, 0.04));
    border-radius:    0 var(--border-radius) var(--border-radius) 0;
    font-style:       italic;
    font-family:      var(--font-title);
    font-size:        1.05rem;
    padding:          1.25rem 1.5rem;
    margin:           1.5rem 0;
}
.callout-scripture cite,
.callout-scripture footer {
    display:     block;
    text-align:  right;
    font-size:   0.9rem;
    font-style:  normal;
    font-weight: bold;
    color:       var(--primary);
    margin-top:  0.5rem;
}

/* Prayer callout — dashed border box with a centered ✝ above the text.
   Usage: <div class="callout-prayer">Heavenly Father, we thank you...</div>
   Result: Centered italic text in a dashed primary-color border with ✝ icon on top. */
.callout-prayer {
    border:           2px dashed var(--primary);
    border-radius:    var(--border-radius);
    background-color: rgba(127, 127, 127, 0.05);
    font-style:       italic;
    text-align:       center;
    padding:          1.5rem 2rem;
    margin:           1.5rem 0;
}
.callout-prayer::before {
    content:     "✝";
    display:     block;
    font-size:   1.5rem;
    color:       var(--primary);
    margin-bottom: 0.5rem;
    font-style:  normal;
}

/* Important — highlighted box */
.callout-important {
    border-left:   5px solid var(--primary);
    border-top:    1px solid var(--primary);
    border-right:  1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
    border-radius: var(--border-radius);
    background:    rgba(127, 127, 127, 0.08);
    padding:       1.25rem 1.5rem;
    margin:        1.5rem 0;
}


/* ═══════════════════════════════════════════════════════════════════
   §13  BADGES & TAGS
   ═══════════════════════════════════════════════════════════════════
   Usage: <span class="badge badge-primary">New</span>
   ─────────────────────────────────────────────────────────────── */

/* Base badge */
.badge {
    display:          inline-block;
    padding:          0.2em 0.6em;
    font-size:        0.75rem;
    font-weight:      bold;
    font-family:      var(--font-body);
    line-height:      1;
    text-align:       center;
    white-space:      nowrap;
    vertical-align:   middle;
    border-radius:    var(--border-radius-sm);
    letter-spacing:   0.03em;
    text-transform:   uppercase;
}
.badge-primary  { background-color: var(--primary); color: var(--bg-color); }
.badge-accent   { background-color: var(--accent);  color: var(--bg-color); }
.badge-muted    { background-color: rgba(127,127,127,0.2); color: var(--text-color); }
.badge-outline  { background: none; border: 1px solid var(--primary); color: var(--primary); }
.badge-success  { background-color: var(--color-success); color: #fff; }
.badge-warning  { background-color: var(--color-warning); color: #fff; }
.badge-danger   { background-color: var(--color-danger);  color: #fff; }
.badge-glow     { background-color: var(--primary); color: var(--bg-color); box-shadow: var(--glow-sm); }

/* Pill-shaped tag */
.tag {
    display:          inline-block;
    padding:          0.3em 0.85em;
    font-size:        0.85rem;
    font-weight:      500;
    border-radius:    var(--border-radius-pill);
    border:           1px solid var(--primary);
    color:            var(--primary);
    background:       transparent;
    transition:       background var(--transition-fast), color var(--transition-fast);
    cursor:           default;
    margin:           0.15em;
}
.tag:hover           { background: var(--primary); color: var(--bg-color); }
.tag-filled          { background: var(--primary); color: var(--bg-color); border-color: var(--primary); }
.tag-accent          { border-color: var(--accent); color: var(--accent); }
.tag-accent:hover    { background: var(--accent);  color: var(--bg-color); }


/* ═══════════════════════════════════════════════════════════════════
   §14  CONTENT BUTTONS
   ═══════════════════════════════════════════════════════════════════
   For buttons inside page content (not the control bar).
   Usage: <a class="btn btn-primary" href="#">Click Me</a>
          <button class="btn btn-outline">Click</button>
   ─────────────────────────────────────────────────────────────── */

.btn {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    gap:             0.4em;
    padding:         0.6em 1.4em;
    font-family:     var(--font-body);
    font-size:       1rem;
    font-weight:     bold;
    line-height:     1.2;
    text-decoration: none;
    border-radius:   var(--border-radius);
    border:          2px solid transparent;
    cursor:          pointer;
    transition:      background-color var(--transition-fast),
                     color var(--transition-fast),
                     border-color var(--transition-fast),
                     transform var(--transition-fast),
                     box-shadow var(--transition-fast);
    white-space:     nowrap;
    user-select:     none;
}
.btn:hover       { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn:active      { transform: translateY(0); }

/* Filled buttons */
.btn-primary {
    background-color: var(--primary);
    color:            var(--bg-color);
    border-color:     var(--primary);
}
.btn-primary:hover { opacity: 0.88; color: var(--bg-color); }

.btn-accent {
    background-color: var(--accent);
    color:            var(--bg-color);
    border-color:     var(--accent);
}
.btn-accent:hover { opacity: 0.88; color: var(--bg-color); }

/* Outline buttons */
.btn-outline {
    background:   transparent;
    color:        var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background:   var(--primary);
    color:        var(--bg-color);
}

.btn-outline-accent {
    background:   transparent;
    color:        var(--accent);
    border-color: var(--accent);
}
.btn-outline-accent:hover {
    background: var(--accent);
    color:      var(--bg-color);
}

/* Ghost (text-only, no border fill) */
.btn-ghost {
    background:   transparent;
    color:        var(--link-color);
    border-color: transparent;
    padding-left: 0.5em;
    padding-right: 0.5em;
}
.btn-ghost:hover { color: var(--primary); background: rgba(127,127,127,0.1); }

/* Pill shape */
.btn-pill { border-radius: var(--border-radius-pill); }

/* Sizes */
.btn-sm { padding: 0.35em 0.9em;  font-size: 0.85rem; }
.btn-lg { padding: 0.85em 2em;    font-size: 1.15rem; }
.btn-xl { padding: 1.1em 2.6em;   font-size: 1.3rem; }
.btn-block { display: flex; width: 100%; }

/* Icon-only button */
.btn-icon {
    width:         44px;
    height:        44px;
    padding:       0;
    border-radius: 50%;
}

/* Glow button */
.btn-glow {
    background-color: var(--primary);
    color:            var(--bg-color);
    border-color:     var(--primary);
    box-shadow:       var(--glow-sm);
}
.btn-glow:hover { box-shadow: var(--glow-md); }

/* Generic content button (non-control-btn) */
button:not(.control-btn):not(.btn) {
    background-color: var(--primary);
    color:            var(--bg-color);
    border:           none;
    padding:          10px 20px;
    border-radius:    var(--border-radius);
    cursor:           pointer;
    font-weight:      bold;
    font-family:      var(--font-body);
    font-size:        1rem;
    transition:       opacity var(--transition-fast);
}
button:not(.control-btn):not(.btn):hover { opacity: 0.85; }


/* ═══════════════════════════════════════════════════════════════════
   §15  DIVIDERS / SEPARATORS
   ═══════════════════════════════════════════════════════════════════
   Usage: <hr class="divider-ornament"> or <div class="divider-text">Section</div>
   ─────────────────────────────────────────────────────────────── */

/* Default hr is already styled in §8; variants below */

/* Thicker accent line */
.divider-thick {
    border: 0;
    border-top: 4px solid var(--primary);
    margin: 2em 0;
    opacity: 0.7;
}

/* Double rule */
.divider-double {
    border: 0;
    border-top: 4px double var(--primary);
    margin: 2em 0;
}

/* Dashed */
.divider-dashed {
    border: 0;
    border-top: 2px dashed var(--primary);
    margin: 2em 0;
    opacity: 0.5;
}

/* Fading (gradient that disappears at edges) */
.divider-fade {
    border: 0;
    height: 2px;
    margin: 2em 0;
    background: linear-gradient(
        to right,
        transparent,
        var(--primary) 25%,
        var(--primary) 75%,
        transparent
    );
}

/* Ornamental — divider with a centered symbol */
.divider-ornament {
    display:         flex;
    align-items:     center;
    gap:             1rem;
    margin:          2em 0;
    color:           var(--primary);
    font-size:       1.2rem;
    opacity:         0.8;
}
.divider-ornament::before,
.divider-ornament::after {
    content:    "";
    flex:       1;
    height:     1px;
    background: var(--primary);
    opacity:    0.5;
}

/* Divider with text label in the middle */
.divider-text {
    display:         flex;
    align-items:     center;
    gap:             0.75rem;
    margin:          2em 0;
    color:           var(--primary);
    font-family:     var(--font-title);
    font-size:       0.9rem;
    text-transform:  uppercase;
    letter-spacing:  0.1em;
    opacity:         0.8;
}
.divider-text::before,
.divider-text::after {
    content:    "";
    flex:       1;
    height:     1px;
    background: var(--primary);
    opacity:    0.5;
}

/* Cross divider (for spiritual content) */
.divider-cross {
    text-align:  center;
    margin:      2em 0;
    color:       var(--primary);
    font-size:   1.5rem;
    opacity:     0.7;
}
.divider-cross::before { content: "✦ ✝ ✦"; letter-spacing: 0.5em; }


/* ═══════════════════════════════════════════════════════════════════
   §16  LISTS
   ═══════════════════════════════════════════════════════════════════
   Usage: <ul class="list-check"> <li>Item</li> </ul>
   ─────────────────────────────────────────────────────────────── */

/* Base list reset */
ul, ol {
    margin:       1em 0;
    padding-left: 2em;
}
li { margin-bottom: 0.5em; }

/* No bullets */
.list-none  { list-style: none; padding-left: 0; }

/* Inline horizontal list */
.list-inline { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.list-inline li { margin: 0; }

/* Custom bullet lists (use data-icon or CSS generated content) */
.list-check  { list-style: none; padding-left: 1.75em; }
.list-check  li { position: relative; }
.list-check  li::before { content: "✓"; position: absolute; left: -1.75em; color: var(--primary); font-weight: bold; }

.list-arrow  { list-style: none; padding-left: 1.75em; }
.list-arrow  li { position: relative; }
.list-arrow  li::before { content: "→"; position: absolute; left: -1.75em; color: var(--primary); }

.list-star   { list-style: none; padding-left: 1.75em; }
.list-star   li { position: relative; }
.list-star   li::before { content: "★"; position: absolute; left: -1.75em; color: var(--primary); }

.list-cross  { list-style: none; padding-left: 1.75em; }
.list-cross  li { position: relative; }
.list-cross  li::before { content: "✗"; position: absolute; left: -1.75em; color: #ef4444; }

.list-diamond { list-style: none; padding-left: 1.75em; }
.list-diamond li { position: relative; }
.list-diamond li::before { content: "◆"; position: absolute; left: -1.75em; color: var(--primary); font-size: 0.7em; top: 0.3em; }

/* Spaced list */
.list-spaced li { margin-bottom: 1em; }

/* Bordered list (each item is a row) */
.list-bordered { list-style: none; padding-left: 0; }
.list-bordered li {
    padding:       0.65rem 1rem;
    border-bottom: 1px solid var(--primary);
    opacity:       1;
    transition:    background var(--transition-fast);
}
.list-bordered li:first-child { border-top: 1px solid var(--primary); }
.list-bordered li:hover        { background: rgba(127,127,127,0.06); }

/* Definition list */
dl.styled dt {
    font-weight: bold;
    color:       var(--primary);
    font-family: var(--font-title);
    margin-top:  1em;
}
dl.styled dd {
    margin-left: 1.5em;
    margin-top:  0.2em;
    font-style:  italic;
    opacity:     0.9;
}


/* ═══════════════════════════════════════════════════════════════════
   §17  BLOCKQUOTES
   ═══════════════════════════════════════════════════════════════════ */

/* Default blockquote */
blockquote {
    border-left:      5px solid var(--primary);
    padding:          1rem 2rem;
    margin:           1.5rem 0;
    background-color: rgba(127, 127, 127, 0.08);
    border-radius:    0 var(--border-radius) var(--border-radius) 0;
    font-style:       italic;
    color:            var(--text-color);
}
blockquote footer {
    text-align:  right;
    font-weight: bold;
    color:       var(--primary);
    margin-top:  0.5rem;
    font-style:  normal;
}

/* Centered blockquote */
.quote-centered {
    border-left:   none;
    text-align:    center;
    border-top:    2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    border-radius: 0;
    padding:       1rem;
    font-size:     1.1rem;
}
.quote-centered footer { text-align: center; }

/* Large opening quote mark */
.quote-large {
    position:    relative;
    padding-top: 1.5rem;
}
.quote-large::before {
    content:      "\201C";
    position:     absolute;
    top:          -0.5rem;
    left:         -0.25rem;
    font-family:  var(--font-title);
    font-size:    5rem;
    color:        var(--primary);
    opacity:      0.4;
    line-height:  1;
    pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════════════
   §18  PULL QUOTES
   ═══════════════════════════════════════════════════════════════════ */

.pull-quote {
    font-size:        1.5rem;
    font-family:      var(--font-title);
    text-align:       center;
    color:            var(--primary);
    margin:           2rem 0;
    padding:          1.25rem 2rem;
    border-top:       3px solid var(--primary);
    border-bottom:    3px solid var(--primary);
    line-height:      1.4;
    background-color: rgba(127, 127, 127, 0.05);
}

.pull-quote-accent {
    color:        var(--accent);
    border-color: var(--accent);
    font-size:    1.75rem;
}

.pull-quote-glow {
    text-shadow:  var(--glow-sm);
    border-color: var(--primary);
}


/* ═══════════════════════════════════════════════════════════════════
   §19  IMAGES & FIGURES
   ═══════════════════════════════════════════════════════════════════
   Usage: <figure class="img-caption"> <img src="..."> <figcaption>...</figcaption> </figure>
   ─────────────────────────────────────────────────────────────── */

/* Float left / right with text wrap */
.img-left {
    float:        left;
    margin:       0 1.5rem 1rem 0;
    max-width:    40%;
    border-radius: var(--border-radius);
}
.img-right {
    float:        right;
    margin:       0 0 1rem 1.5rem;
    max-width:    40%;
    border-radius: var(--border-radius);
}
.clearfix::after { content: ""; display: table; clear: both; }

/* Centered image */
.img-center {
    display:    block;
    margin:     1.5rem auto;
    max-width:  100%;
}

/* Full-width image */
.img-full {
    width:         100%;
    max-width:     100%;
    border-radius: var(--border-radius);
    margin:        1rem 0;
}

/* Circular crop */
.img-circle {
    border-radius: 50%;
    aspect-ratio:  1 / 1;
    object-fit:    cover;
}

/* Bordered image */
.img-bordered {
    border: 3px solid var(--primary);
}

/* Glowing image */
.img-glow {
    box-shadow: var(--glow-sm);
}
.img-glow-lg {
    box-shadow: 0 0 30px var(--primary), 0 0 60px var(--primary);
}

/* Framed image — ornamental white border effect */
.img-frame {
    border:        8px solid var(--secondary);
    outline:       2px solid var(--primary);
    box-shadow:    var(--shadow-lg);
    border-radius: var(--border-radius-sm);
}

/* Thumbnail — small, square */
.img-thumb {
    width:        80px;
    height:       80px;
    object-fit:   cover;
    border-radius: var(--border-radius-sm);
    display:      inline-block;
}

/* Figure with caption */
figure {
    margin:        1.5rem 0;
    text-align:    center;
}
figure img {
    display:       block;
    margin:        0 auto;
    border-radius: var(--border-radius);
}
figcaption, .caption {
    margin-top:  0.5rem;
    font-size:   0.875rem;
    font-style:  italic;
    opacity:     0.75;
    color:       var(--text-color);
    text-align:  center;
}

/* Image gallery grid */
.img-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap:                   0.75rem;
    margin:                1.5rem 0;
}
.img-grid img {
    width:        100%;
    aspect-ratio: 1 / 1;
    object-fit:   cover;
    cursor:       zoom-in;
    transition:   transform var(--transition-fast), box-shadow var(--transition-fast);
}
.img-grid img:hover {
    transform:  scale(1.04);
    box-shadow: var(--shadow-md);
    z-index:    1;
    position:   relative;
}


/* ═══════════════════════════════════════════════════════════════════
   §20  TABLES
   ═══════════════════════════════════════════════════════════════════ */

table {
    width:           100%;
    border-collapse: collapse;
    margin:          1.5em 0;
}
th, td {
    padding:       12px 16px;
    text-align:    left;
    border-bottom: 1px solid var(--primary);
}
th {
    color:       var(--primary);
    font-family: var(--font-title);
    font-size:   1.05rem;
}
tr:hover { background-color: rgba(127, 127, 127, 0.05); }

/* Striped rows */
.table-striped tr:nth-child(even) {
    background-color: rgba(127, 127, 127, 0.06);
}

/* Full border grid */
.table-bordered th,
.table-bordered td {
    border: 1px solid var(--primary);
}

/* Compact / tight */
.table-compact th,
.table-compact td {
    padding: 6px 10px;
    font-size: 0.9rem;
}

/* Highlighted header row */
.table-header-dark thead tr {
    background-color: var(--primary);
}
.table-header-dark th {
    color: var(--bg-color);
}

/* Responsive table wrapper (scroll on small screens) */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5em 0;
}
.table-responsive table { margin: 0; }


/* ═══════════════════════════════════════════════════════════════════
   §21  FORMS & INPUTS
   ═══════════════════════════════════════════════════════════════════ */

/* Base input styles */
input,
textarea,
select {
    background-color: var(--bg-color);
    color:            var(--text-color);
    border:           1px solid var(--primary);
    padding:          0.5rem 0.75rem;
    border-radius:    var(--border-radius-sm);
    margin:           4px 0;
    font-family:      var(--font-body);
    font-size:        1rem;
    width:            100%;
    max-width:        100%;
    transition:       border-color var(--transition-fast),
                      box-shadow var(--transition-fast);
}
input:focus,
textarea:focus,
select:focus {
    outline:      none;
    border-color: var(--accent);
    box-shadow:   0 0 0 3px rgba(127, 127, 127, 0.15);
}
input:disabled,
textarea:disabled,
select:disabled {
    opacity: 0.5;
    cursor:  not-allowed;
}

textarea {
    resize:     vertical;
    min-height: 100px;
}

label {
    display:       block;
    font-weight:   bold;
    margin-bottom: 0.25rem;
    color:         var(--text-color);
}

/* Form group container */
.form-group {
    margin-bottom: 1.25rem;
}

/* Hint / helper text below input */
.form-hint {
    display:    block;
    font-size:  0.85rem;
    opacity:    0.7;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Error state */
.input-error {
    border-color: var(--color-danger) !important;
}
.input-error-msg {
    color:      var(--color-danger);
    font-size:  0.85rem;
    margin-top: 0.25rem;
    display:    block;
}

/* Fieldset / legend */
fieldset {
    border:        1px solid var(--primary);
    border-radius: var(--border-radius);
    padding:       1rem 1.25rem;
    margin:        1rem 0;
}
legend {
    padding:     0 0.5rem;
    font-weight: bold;
    color:       var(--primary);
    font-family: var(--font-title);
}

/* Checkbox / radio base fix */
input[type="checkbox"],
input[type="radio"] {
    width:     auto;
    max-width: none;
    margin:    0 0.4em 0 0;
    cursor:    pointer;
    accent-color: var(--primary);
}


/* ═══════════════════════════════════════════════════════════════════
   §22  CODE & PRE
   ═══════════════════════════════════════════════════════════════════ */

code {
    font-family:      var(--font-mono);
    background-color: rgba(0, 0, 0, 0.18);
    color:            var(--accent);
    padding:          0.1em 0.4em;
    border-radius:    var(--border-radius-xs);
    font-size:        0.9em;
    word-break:       break-word;
}

pre {
    font-family:      var(--font-mono);
    background-color: rgba(0, 0, 0, 0.25);
    color:            var(--text-color);
    padding:          1.25rem 1.5rem;
    border-radius:    var(--border-radius);
    overflow-x:       auto;
    white-space:      pre-wrap;
    word-break:       break-word;
    border-left:      4px solid var(--primary);
    font-size:        0.9rem;
    line-height:      1.6;
    margin:           1em 0;
}
pre code {
    background: none;
    color:      inherit;
    padding:    0;
    font-size:  inherit;
}


/* ═══════════════════════════════════════════════════════════════════
   §23  DETAILS / ACCORDION
   ═══════════════════════════════════════════════════════════════════ */

details {
    margin:           1em 0;
    padding:          0.75rem 1rem;
    background-color: rgba(127, 127, 127, 0.05);
    border-radius:    var(--border-radius);
    border:           1px solid var(--primary);
    transition:       background var(--transition-fast);
}
details[open] {
    background-color: rgba(127, 127, 127, 0.1);
}

summary {
    cursor:      pointer;
    font-weight: bold;
    color:       var(--primary);
    font-family: var(--font-title);
    padding:     0.25rem 0;
    user-select: none;
    list-style:  none; /* Remove default triangle in some browsers */
}
summary::-webkit-details-marker { display: none; }
summary::before {
    content:       "▶ ";
    font-size:     0.8em;
    transition:    transform var(--transition-fast);
    display:       inline-block;
}
details[open] summary::before { transform: rotate(90deg); }

details > *:not(summary) {
    margin-top: 0.75rem;
}

/* Styled accordion variant */
.accordion details {
    border-radius: 0;
    border-bottom: none;
    border-left:   none;
    border-right:  none;
    border-top:    1px solid var(--primary);
    margin:        0;
    padding:       0;
}
.accordion details:last-child   { border-bottom: 1px solid var(--primary); }
.accordion summary              { padding: 0.85rem 0; }
.accordion details > *:not(summary) { padding: 0 0 1rem 0; }


/* ═══════════════════════════════════════════════════════════════════
   §24  SCRIPTURE BOX
   ═══════════════════════════════════════════════════════════════════
   A dedicated, elegant box for displaying Bible verses.
   Usage: <div class="scripture-box"> <p>...</p> <cite>John 3:16</cite> </div>
   ─────────────────────────────────────────────────────────────── */

.scripture-box {
    position:      relative;
    background:    linear-gradient(135deg,
                     rgba(127, 127, 127, 0.1),
                     rgba(127, 127, 127, 0.03));
    border:        1px solid var(--primary);
    border-radius: var(--border-radius);
    padding:       1.75rem 2rem 1.25rem 2rem;
    margin:        2rem 0;
    text-align:    center;
    font-family:   var(--font-title);
    font-style:    italic;
    font-size:     1.1rem;
    line-height:   1.7;
}
.scripture-box::before {
    content:       "\201C";
    position:      absolute;
    top:           -0.6rem;
    left:          1rem;
    font-size:     4rem;
    font-family:   var(--font-title);
    color:         var(--primary);
    opacity:       0.4;
    line-height:   1;
}
.scripture-box cite {
    display:       block;
    text-align:    right;
    font-style:    normal;
    font-weight:   bold;
    font-size:     0.9rem;
    color:         var(--primary);
    margin-top:    0.75rem;
    font-family:   var(--font-body);
}
/* Verse numbers inside scripture text */
.verse-number {
    font-size:    0.65em;
    font-weight:  bold;
    vertical-align: super;
    color:        var(--primary);
    font-style:   normal;
    margin-right: 0.15em;
    opacity:      0.8;
}


/* ═══════════════════════════════════════════════════════════════════
   §25  TIMELINE
   ═══════════════════════════════════════════════════════════════════
   Usage:
   <div class="timeline">
     <div class="timeline-item">
       <div class="timeline-marker"></div>
       <div class="timeline-content">
         <h4 class="timeline-date">33 AD</h4>
         <p>Event description</p>
       </div>
     </div>
   </div>
   ─────────────────────────────────────────────────────────────── */

.timeline {
    position:     relative;
    padding-left: 2.5rem;
    margin:       1.5rem 0;
}
/* The vertical line */
.timeline::before {
    content:    "";
    position:   absolute;
    left:       0.65rem;
    top:        0;
    bottom:     0;
    width:      2px;
    background: var(--primary);
    opacity:    0.4;
}

.timeline-item {
    position:      relative;
    margin-bottom: 2rem;
}

/* The dot on the line */
.timeline-marker {
    position:         absolute;
    left:             -2.05rem;
    top:              0.3rem;
    width:            14px;
    height:           14px;
    border-radius:    50%;
    background-color: var(--primary);
    border:           3px solid var(--secondary);
    box-shadow:       0 0 0 2px var(--primary);
    z-index:          1;
}

.timeline-content {
    background-color: rgba(127, 127, 127, 0.06);
    border-radius:    var(--border-radius);
    padding:          1rem 1.25rem;
    border-left:      3px solid var(--primary);
}

.timeline-date {
    font-size:   0.85rem;
    font-weight: bold;
    color:       var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin:      0 0 0.4rem 0;
    font-family: var(--font-body);
}


/* ═══════════════════════════════════════════════════════════════════
   §26  LAYOUT HELPERS
   ═══════════════════════════════════════════════════════════════════ */

/* Multi-column grid layouts */
.two-col {
    display:               grid;
    grid-template-columns: repeat(2, 1fr);
    gap:                   1.5rem;
    margin:                1rem 0;
}
.three-col {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
    gap:                   1.25rem;
    margin:                1rem 0;
}
.four-col {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
    gap:                   1rem;
    margin:                1rem 0;
}

/* Auto-fill responsive grid */
.grid-auto {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap:                   1.25rem;
    margin:                1rem 0;
}

/* Sidebar layout.
   .layout-sidebar       — main content (wide) on LEFT, sidebar (280px) on RIGHT.
   .layout-sidebar-left  — sidebar (280px) on LEFT, main content on RIGHT.
   Usage:
     <div class="layout-sidebar">
       <div>Main wide content</div>
       <aside>Sidebar (280px)</aside>
     </div> */
.layout-sidebar {
    display:               grid;
    grid-template-columns: 1fr 280px;
    gap:                   2rem;
    margin:                1rem 0;
    align-items:           start;
}
.layout-sidebar-left {
    grid-template-columns: 280px 1fr;
}

/* Flexbox side-by-side pair */
.side-by-side {
    display:   flex;
    flex-wrap: wrap;
    gap:       1.5rem;
    margin:    1rem 0;
    align-items: flex-start;
}
.side-by-side > * { flex: 1; min-width: 200px; }

/* Centered narrow column */
.centered-content {
    max-width:   680px;
    margin-left: auto;
    margin-right: auto;
}

/* Vertical spacers */
.spacer-xs  { display: block; height: var(--space-xs); }
.spacer-sm  { display: block; height: var(--space-sm); }
.spacer-md  { display: block; height: var(--space-md); }
.spacer-lg  { display: block; height: var(--space-lg); }
.spacer-xl  { display: block; height: var(--space-xl); }

/* Padding utility classes */
.pad-sm     { padding: var(--space-sm); }
.pad-md     { padding: var(--space-md); }
.pad-lg     { padding: var(--space-lg); }


/* ═══════════════════════════════════════════════════════════════════
   §27  TEXT UTILITIES
   ═══════════════════════════════════════════════════════════════════ */

/* Alignment */
.text-left    { text-align: left !important; }
.text-center  { text-align: center !important; }
.text-right   { text-align: right !important; }
.text-justify { text-align: justify !important; }

/* Size */
.text-xs    { font-size: 0.75rem; }
.text-sm    { font-size: 0.875rem; }
.text-md    { font-size: 1rem; }
.text-lg    { font-size: 1.2rem; }
.text-xl    { font-size: 1.5rem; }
.text-2xl   { font-size: 2rem; }
.text-3xl   { font-size: 2.5rem; }

/* Weight & Style */
.bold       { font-weight: bold; }
.italic     { font-style: italic; }
.underline  { text-decoration: underline; }
.uppercase  { text-transform: uppercase; }
.lowercase  { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.no-wrap    { white-space: nowrap; }

/* Color utilities */
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-color); opacity: 0.6; }
.text-body    { color: var(--text-color); }

/* Font family */
.font-title { font-family: var(--font-title); }
.font-body  { font-family: var(--font-body); }
.font-mono  { font-family: var(--font-mono); }

/* Decorative underlines */
.underline-fancy {
    text-decoration:       underline;
    text-decoration-color: var(--primary);
    text-decoration-style: wavy;
    text-underline-offset: 4px;
}
.underline-dotted {
    text-decoration:       underline;
    text-decoration-color: var(--primary);
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

/* Text highlight background — like a highlighter marker over text.
   Uses color-mix() (CSS Color Level 5). Supported in Chrome 111+, Firefox 113+, Safari 16.2+.
   Falls back to no background in older browsers (text still readable).
   Usage: <span class="highlight">Important phrase</span> */
.highlight {
    background-color: color-mix(in srgb, var(--primary) 25%, transparent);
    color:            var(--text-color);
    padding:          0.1em 0.3em;
    border-radius:    var(--border-radius-xs);
}
.highlight-accent {
    background-color: color-mix(in srgb, var(--accent) 25%, transparent);
}

/* Drop cap — large first letter on a paragraph */
.drop-cap::first-letter {
    float:       left;
    font-family: var(--font-title);
    font-size:   4rem;
    line-height: 0.75;
    padding:     0.1em 0.1em 0 0;
    color:       var(--primary);
    text-shadow: var(--glow-sm);
}

/* Gradient text — primary → accent color gradient applied to text.
   IMPORTANT: Requires a solid (non-transparent) background behind the element
   to render correctly. Transparent or gradient-background parents will cause glitches.
   The @media print rule in §36 resets this back to normal text for printing.
   Browser support: Chrome, Edge, Safari (full); Firefox 113+ (full).
   Usage: <h2 class="text-gradient">My Heading</h2> */
.text-gradient {
    background:              linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip:         text;
}

/* Letter spacing variants */
.tracking-wide   { letter-spacing: 0.05em; }
.tracking-wider  { letter-spacing: 0.12em; }
.tracking-widest { letter-spacing: 0.25em; }


/* ═══════════════════════════════════════════════════════════════════
   §28  NOTICES / BANNER STRIPS
   ═══════════════════════════════════════════════════════════════════
   Full-width colored strips, good for page-level announcements.
   Usage: <div class="notice notice-warning">⚠️ Site under construction</div>
   ─────────────────────────────────────────────────────────────── */

.notice {
    width:       100%;
    padding:     0.75rem 1.5rem;
    font-weight: 500;
    font-size:   0.95rem;
    text-align:  center;
    margin:      0.5rem 0;
}
.notice-info    { background-color: rgba(127,127,127,0.15); border: 1px solid var(--primary);          color: var(--text-color); }
.notice-success { background-color: var(--color-success-bg); border: 1px solid var(--color-success); color: var(--text-color); }
.notice-warning { background-color: var(--color-warning-bg); border: 1px solid var(--color-warning); color: var(--text-color); }
.notice-danger  { background-color: var(--color-danger-bg);  border: 1px solid var(--color-danger);  color: var(--text-color); }
.notice-primary { background-color: var(--primary); color: var(--bg-color); }


/* ═══════════════════════════════════════════════════════════════════
   §29  VIDEO & AUDIO WRAPPERS
   ═══════════════════════════════════════════════════════════════════ */

/* Responsive 16:9 video embed */
.video-wrapper {
    position:       relative;
    width:          100%;
    aspect-ratio:   16 / 9;
    overflow:       hidden;
    border-radius:  var(--border-radius);
    box-shadow:     var(--shadow-md);
    margin:         1.5rem 0;
    background:     #000;
}
.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    inset:    0;
    width:    100%;
    height:   100%;
    border:   0;
}

/* Styled audio player wrapper */
.audio-wrapper {
    background-color: var(--secondary);
    border:           1px solid var(--primary);
    border-radius:    var(--border-radius);
    padding:          1rem 1.25rem;
    margin:           1rem 0;
    display:          flex;
    flex-direction:   column;
    gap:              0.5rem;
}
.audio-wrapper audio {
    width:  100%;
    accent-color: var(--primary);
}
.audio-wrapper .audio-label {
    font-size:   0.9rem;
    font-weight: bold;
    color:       var(--primary);
}


/* ═══════════════════════════════════════════════════════════════════
   §30  FOOTNOTES
   ═══════════════════════════════════════════════════════════════════ */

.footnote-ref {
    font-size:     0.7em;
    font-weight:   bold;
    vertical-align: super;
    color:         var(--primary);
    text-decoration: none;
    cursor:        pointer;
}
.footnote-ref::before { content: "["; }
.footnote-ref::after  { content: "]"; }

.footnotes {
    border-top:  1px solid var(--primary);
    margin-top:  2rem;
    padding-top: 1rem;
    opacity:     0.8;
    font-size:   0.85rem;
}
.footnotes ol { padding-left: 1.5em; }
.footnotes li { margin-bottom: 0.35em; }

.footnote-back {
    font-size:   0.75em;
    margin-left: 0.3em;
    color:       var(--primary);
    text-decoration: none;
}


/* ═══════════════════════════════════════════════════════════════════
   §31  PAGE COMPONENTS — Scroll Progress, Back-to-Top, Toast
   ═══════════════════════════════════════════════════════════════════ */

/* Scroll progress bar (width updated by JS) */
#scroll-progress {
    position:         fixed;
    top:              0;
    left:             0;
    width:            0%;
    height:           3px;
    background-color: var(--primary);
    z-index:          99998;
    transition:       width 0.1s linear;
    pointer-events:   none;
    border-radius:    0 2px 2px 0;
    box-shadow:       var(--glow-sm);
}

/* Back to top button */
#btn-back-to-top {
    position:         fixed;
    bottom:           2rem;
    right:            2rem;
    width:            48px;
    height:           48px;
    border-radius:    50%;
    background-color: var(--primary);
    color:            var(--bg-color);
    border:           none;
    font-size:        1.4rem;
    font-family:      var(--font-body);
    font-weight:      bold;
    cursor:           pointer;
    z-index:          500;
    display:          flex;
    align-items:      center;
    justify-content:  center;
    box-shadow:       var(--shadow-md);
    opacity:          0;
    visibility:       hidden;
    transform:        translateY(20px);
    transition:       opacity var(--transition-speed),
                      visibility var(--transition-speed),
                      transform var(--transition-speed),
                      background-color var(--transition-fast);
}
#btn-back-to-top.visible {
    opacity:    1;
    visibility: visible;
    transform:  translateY(0);
}
#btn-back-to-top:hover { background-color: var(--accent); }

/* Theme name toast notification */
#theme-toast {
    position:         fixed;
    top:              30px;
    left:             50%;
    transform:        translateX(-50%) translateY(-20px);
    background-color: var(--secondary);
    color:            var(--text-color);
    padding:          10px 24px;
    border-radius:    var(--border-radius-pill);
    box-shadow:       var(--shadow-lg);
    border:           1px solid var(--primary);
    font-weight:      bold;
    font-family:      var(--font-body);
    z-index:          10000;
    opacity:          0;
    visibility:       hidden;
    transition:       opacity var(--transition-speed) ease,
                      transform var(--transition-speed) ease,
                      visibility var(--transition-speed);
    pointer-events:   none;
    text-align:       center;
    min-width:        200px;
}
#theme-toast.show {
    opacity:    1;
    visibility: visible;
    transform:  translateX(-50%) translateY(0);
}


/* ═══════════════════════════════════════════════════════════════════
   §32  LIGHTBOX
   ═══════════════════════════════════════════════════════════════════ */

#lightbox-overlay {
    position:         fixed;
    inset:            0;
    background-color: rgba(0, 0, 0, 0.93);
    z-index:          20000;
    display:          flex;
    flex-direction:   column;
    align-items:      center;
    justify-content:  center;
    opacity:          0;
    visibility:       hidden;
    transition:       opacity var(--transition-speed),
                      visibility var(--transition-speed);
    padding:          1rem;
    cursor:           zoom-out;
}
#lightbox-overlay.open {
    opacity:    1;
    visibility: visible;
}

#lightbox-overlay img {
    max-width:     min(90vw, 1400px);
    max-height:    82vh;
    object-fit:    contain;
    border-radius: var(--border-radius);
    box-shadow:    0 0 80px rgba(255, 255, 255, 0.12);
    cursor:        default;
}

#lightbox-caption {
    color:      rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    font-size:  0.9rem;
    margin-top: 1rem;
    text-align: center;
    max-width:  80vw;
    font-style: italic;
}

#lightbox-close {
    position:   fixed;
    top:        0.75rem;
    right:      1.25rem;
    background: none;
    border:     none;
    color:      rgba(255, 255, 255, 0.75);
    font-size:  2.75rem;
    line-height: 1;
    cursor:     pointer;
    padding:    0.25rem 0.5rem;
    z-index:    20001;
    transition: color var(--transition-fast), transform var(--transition-fast);
    font-family: var(--font-body);
    font-weight: 300;
}
#lightbox-close:hover { color: white; transform: scale(1.15); }

/* Image counter — shows "2 / 5" when multiple images exist */
#lightbox-counter {
    position:    fixed;
    top:         1rem;
    left:        50%;
    transform:   translateX(-50%);
    color:       rgba(255, 255, 255, 0.65);
    font-family: var(--font-body);
    font-size:   0.85rem;
    z-index:     20001;
    pointer-events: none;
    white-space: nowrap;
}

/* Prev / Next navigation arrows */
#lightbox-prev,
#lightbox-next {
    position:         fixed;
    top:              50%;
    transform:        translateY(-50%);
    background:       rgba(0, 0, 0, 0.45);
    border:           1px solid rgba(255, 255, 255, 0.25);
    color:            rgba(255, 255, 255, 0.85);
    font-size:        1.75rem;
    width:            52px;
    height:           52px;
    border-radius:    50%;
    cursor:           pointer;
    z-index:          20001;
    display:          flex;
    align-items:      center;
    justify-content:  center;
    transition:       background var(--transition-fast),
                      color var(--transition-fast),
                      transform var(--transition-fast);
    user-select:      none;
    padding:          0;
    line-height:      1;
}
#lightbox-prev { left:  1rem; }
#lightbox-next { right: 1rem; }
#lightbox-prev:hover:not(:disabled),
#lightbox-next:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    color:      white;
    transform:  translateY(-50%) scale(1.1);
}
#lightbox-prev:disabled,
#lightbox-next:disabled {
    opacity:        0.25;
    cursor:         not-allowed;
    pointer-events: none;
}

/* Images inside content that have a lightbox wrapper */
.lightbox-trigger { display: block; cursor: zoom-in; }
.lightbox-trigger img {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.lightbox-trigger img:hover {
    transform:  scale(1.02);
    box-shadow: var(--shadow-lg);
}


/* ═══════════════════════════════════════════════════════════════════
   §33  FLASH OVERLAY — Title Splash Screen
   ═══════════════════════════════════════════════════════════════════ */

#flash-overlay {
    position:         fixed;
    inset:            0;
    background-color: #000;
    display:          flex;
    justify-content:  center;
    align-items:      center;
    z-index:          30000;
    opacity:          0;
    visibility:       hidden;
    cursor:           pointer;
    animation:        flashFade var(--flash-duration, 2.5s) ease-in-out forwards;
}
#flash-overlay img {
    max-width:     90%;
    max-height:    90%;
    border-radius: var(--border-radius);
    box-shadow:    0 0 60px rgba(255, 255, 255, 0.2);
    object-fit:    contain;
}

@keyframes flashFade {
    0%   { opacity: 0; visibility: visible; }
    10%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}


/* ═══════════════════════════════════════════════════════════════════
   §34  BIBLE REFERENCES
   ═══════════════════════════════════════════════════════════════════
   Styled for output from Universal_Bible_Popup.py processor.
   Works with /Javascript/Bible_popup.js.
   ─────────────────────────────────────────────────────────────── */

/* Primary class added by Python processor */
a.bible-ref {
    color:            var(--link-color);
    border-bottom:    2px dotted var(--primary);
    font-weight:      bold;
    text-decoration:  none;
    padding-bottom:   1px;
    cursor:           pointer;
    transition:       border-color var(--transition-fast),
                      color var(--transition-fast);
}
a.bible-ref:hover {
    border-bottom-color: var(--accent);
    color:               var(--accent);
    text-decoration:     none;
}

/* Legacy class (Universal_Bible_Linker.py output) */
.bible-link {
    font-weight:   bold;
    border-bottom: 1px dotted var(--link-color);
    color:         var(--link-color);
}


/* ═══════════════════════════════════════════════════════════════════
   §35  RESPONSIVE — Mobile & Tablet
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .layout-sidebar,
    .layout-sidebar-left {
        grid-template-columns: 1fr;
    }
    .four-col { grid-template-columns: repeat(2, 1fr); }
    .three-col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --font-base:       16px;
        --control-bar-gap: 8px;
    }

    .page-header {
        padding: 0 0.25rem;
        margin:  0.5rem auto;
    }

    main,
    .content-body {
        padding:       1.25rem 1rem;
        margin:        0 auto 2rem auto;
        border-radius: 0;   /* Full-width on mobile looks cleaner */
        width:         100%;
        max-width:     100%;
    }

    .page-container { padding: 0; }

    .control-bar {
        position: relative;
        padding:  0 0.5rem;
    }

    .dropdown          { position: static; }
    .dropdown-content  {
        left:      8px;
        right:     8px;
        width:     auto;
        min-width: unset;
    }

    .control-btn {
        padding:   8px 12px;
        flex-grow: 1;
        font-size: 1rem;
        min-width: unset;
    }

    blockquote    { padding: 0.5rem 1rem; margin: 1rem 0; }

    .two-col,
    .three-col,
    .four-col     { grid-template-columns: 1fr; }

    .img-left,
    .img-right    { float: none; max-width: 100%; margin: 1rem 0; }

    .card-row     { flex-direction: column; }
    .card-row > img { width: 100%; border-radius: var(--border-radius) var(--border-radius) 0 0; }

    .text-title   { font-size: 2rem; }

    #btn-back-to-top { bottom: 1rem; right: 1rem; width: 40px; height: 40px; font-size: 1.2rem; }

    .pull-quote   { font-size: 1.2rem; padding: 0.75rem 1rem; }

    .scripture-box { padding: 1.25rem 1.25rem 1rem 1.25rem; font-size: 1rem; }
}

@media (max-width: 480px) {
    :root { --font-base: 15px; }
    .img-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}


/* ═══════════════════════════════════════════════════════════════════
   §36  PRINT
   ═══════════════════════════════════════════════════════════════════ */

@media print {
    /* Hide all interactive chrome */
    #scroll-progress,
    #flash-overlay,
    #theme-toast,
    #btn-back-to-top,
    .skip-link,
    .control-bar,
    #lightbox-overlay,
    .banner-nav-trigger { display: none !important; }

    /* Remove shadows and effects */
    .banner-image       { box-shadow: none; border-radius: 0; }

    main,
    .content-body       {
        max-width:     100%;
        margin:        0;
        padding:       0;
        box-shadow:    none;
        border-radius: 0;
        background:    transparent;
    }

    /* Remove external link arrows — useless on paper */
    main a[target="_blank"]::after,
    .content-body a[target="_blank"]::after { content: ""; }

    /* Print links as text */
    a { color: inherit; text-decoration: underline; }

    /* Prevent orphaned headings and broken blockquotes */
    h2, h3, h4         { page-break-after: avoid; }
    blockquote,
    .scripture-box,
    .callout-scripture,
    .timeline-item      { page-break-inside: avoid; }

    /* Force white background */
    body {
        background: #fff;
        color:      #000;
    }

    /* Glows and gradients are invisible on paper */
    .glow-text, .glow-text-lg, .glow-text-sm,
    .glow-box,  .glow-box-lg,  .glow-box-sm  { text-shadow: none; box-shadow: none; }

    .text-gradient {
        -webkit-text-fill-color: currentColor;
        background:              none;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   §37  LIGHT-THEME GLOW OVERRIDES
   ═══════════════════════════════════════════════════════════════════
   Heavy neon glows look muddy and harsh on white/light backgrounds.
   On all 7 light themes, glow effects are automatically toned down
   to subtle shadows that still convey emphasis without the visual mess.

   This block uses the attribute selector body[class*="theme-light"]
   to match any light theme class without listing all 7 individually.

   Editors: if you explicitly want a glowing element on a light page,
   add class="glow-force" alongside your glow class to bypass this.
   ─────────────────────────────────────────────────────────────── */

/* .neon and .neon-accent — replace multi-layer extreme glow with plain color */
body[class*="theme-light"] .neon:not(.glow-force),
body[class*="theme-light"] .neon-accent:not(.glow-force) {
    text-shadow: 1px 1px 3px var(--shadow);
    /* color is preserved from .neon / .neon-accent original rule */
}

/* Text glows — replace with a gentle shadow */
body[class*="theme-light"] .glow-text-sm:not(.glow-force),
body[class*="theme-light"] .glow-text:not(.glow-force),
body[class*="theme-light"] .glow-text-lg:not(.glow-force),
body[class*="theme-light"] .glow-text-accent:not(.glow-force) {
    text-shadow: 0 1px 4px var(--shadow);
}

/* Box glows — replace with a standard theme shadow */
body[class*="theme-light"] .glow-box-sm:not(.glow-force),
body[class*="theme-light"] .glow-box:not(.glow-force),
body[class*="theme-light"] .glow-box-lg:not(.glow-force),
body[class*="theme-light"] .glow-box-accent:not(.glow-force) {
    box-shadow: var(--shadow-md);
}

/* Pulsing glow animations — stop the animation entirely on light themes */
body[class*="theme-light"] .glow-pulse:not(.glow-force) {
    animation:  none;
    box-shadow: var(--shadow-sm);
}
body[class*="theme-light"] .glow-pulse-text:not(.glow-force) {
    animation:  none;
    text-shadow: 0 1px 3px var(--shadow);
}

/* Glowing borders — revert to normal shadow */
body[class*="theme-light"] .border-glow:not(.glow-force),
body[class*="theme-light"] .border-glow-accent:not(.glow-force) {
    box-shadow: var(--shadow-sm);
}