/* This file is kept intentionally blank inside the jekyll-github-theme
 * It gets imported at the end of custom.css
 * Its purpose is for users of the theme to be able to add css rules from a blank file
 *   these get simply added to the ones already active in the layout.
 */

/* Commentary callout theme tokens — set on .book so they cascade to all descendants */
.book {
    --commentary-border:    #8b6914;
    --commentary-bg:        #fdf8ee;
    --commentary-summary:   #6b4f10;
    --commentary-separator: #e8d9b0;
    --commentary-text:      #3a2e0e;
}

/* Sepia (color-theme-1) */
.book.color-theme-1 {
    --commentary-border:    #8b5e1a;
    --commentary-bg:        #ede3c4;
    --commentary-summary:   #6b3c10;
    --commentary-separator: #c9b87a;
    --commentary-text:      #704214;
}

/* Night (color-theme-2) */
.book.color-theme-2 {
    --commentary-border:    #a08040;
    --commentary-bg:        #242738;
    --commentary-summary:   #c9a84c;
    --commentary-separator: #373b50;
    --commentary-text:      #bdcadb;
}

/* Commentary callouts (Alan D. Strange, Ordained Servant) */
details.commentary {
    margin: 0.75em 0 1.5em 0;
    border-left: 3px solid var(--commentary-border);
    background-color: var(--commentary-bg);
    border-radius: 0 4px 4px 0;
    overflow: hidden;
}

details.commentary summary {
    padding: 0.5em 1em;
    cursor: pointer;
    font-style: italic;
    color: var(--commentary-summary);
    font-size: 0.88em;
    user-select: none;
    list-style: none;
}

details.commentary summary::before {
    content: '▶ ';
    font-style: normal;
    font-size: 0.75em;
}

details.commentary[open] summary::before {
    content: '▼ ';
}

details.commentary[open] summary {
    border-bottom: 1px solid var(--commentary-separator);
}

details.commentary .commentary-body {
    padding: 0.75em 1.25em 1em 1.25em;
    font-size: 0.9em;
    line-height: 1.65;
    color: var(--commentary-text);
}

details.commentary .commentary-body p {
    margin: 0 0 0.75em 0;
}

details.commentary .commentary-body p:last-child {
    margin-bottom: 0;
}

/* Scripture proof theme tokens */
.book {
    --proofs-border:    #2a6496;
    --proofs-bg:        #f0f5fb;
    --proofs-summary:   #1a4a72;
    --proofs-separator: #b8d0e8;
    --proofs-text:      #1a2a3a;
}

.book.color-theme-1 {
    --proofs-border:    #5a7a3a;
    --proofs-bg:        #eaf0e4;
    --proofs-summary:   #3a5a1a;
    --proofs-separator: #b8ccaa;
    --proofs-text:      #2a3a1a;
}

.book.color-theme-2 {
    --proofs-border:    #4a90c4;
    --proofs-bg:        #1e2a38;
    --proofs-summary:   #7ab8e0;
    --proofs-separator: #2e3e50;
    --proofs-text:      #bdcadb;
}

/* Scripture proof callouts */
details.scripture-proofs {
    margin: 0.4em 0 1em 0;
    border-left: 3px solid var(--proofs-border);
    background-color: var(--proofs-bg);
    border-radius: 0 4px 4px 0;
    overflow: hidden;
}

details.scripture-proofs summary {
    padding: 0.35em 1em;
    cursor: pointer;
    font-style: italic;
    color: var(--proofs-summary);
    font-size: 0.82em;
    user-select: none;
    list-style: none;
}

details.scripture-proofs summary::before {
    content: '▶ ';
    font-style: normal;
    font-size: 0.75em;
}

details.scripture-proofs[open] summary::before {
    content: '▼ ';
}

details.scripture-proofs[open] summary {
    border-bottom: 1px solid var(--proofs-separator);
}

details.scripture-proofs .proofs-body {
    padding: 0.6em 1.25em 0.75em 1.25em;
    font-size: 0.85em;
    line-height: 1.6;
    color: var(--proofs-text);
}

details.scripture-proofs .proofs-body p {
    margin: 0 0 0.4em 0;
}

details.scripture-proofs .proofs-body p:last-child {
    margin-bottom: 0;
}

/* Section number anchor links (WCF: links down to scripture proof callout) */
a.section-num {
    font-size: 0.75em;
    vertical-align: super;
    text-decoration: none;
    color: var(--proofs-summary);
    opacity: 0.7;
    margin-right: 0.25em;
}

a.section-num:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Back-link inside scripture proof summary (↑ returns to section) */
a.proof-backlink {
    font-size: 0.85em;
    text-decoration: none;
    color: var(--proofs-summary);
    opacity: 0.6;
    margin-left: 0.4em;
    font-style: normal;
}

a.proof-backlink:hover {
    opacity: 1;
}

/* Lettered proof markers in section/answer text */
sup.proof-marker {
    font-size: 0.7em;
    font-weight: bold;
    color: var(--proofs-summary);
    opacity: 0.7;
    margin-left: 0.05em;
    user-select: none;
}

sup.proof-marker:hover {
    opacity: 1;
}

/* Letter labels inside proof callouts */
.proofs-body p strong {
    color: var(--proofs-summary);
    margin-right: 0.3em;
}

/* ── Version Toggle (Constitutional vs 2025 MESV) ── */

/* Constitutional text (.v-const) is visible by default, modern (.v-modern) hidden */
.v-modern { display: none; }

/* When modern version is active, swap visibility */
.show-modern .v-const { display: none; }
.show-modern .v-modern { display: inline; }

/* Highlight-changes mode: background on changed modern words */
.show-modern.highlight-changes .v-modern {
    background-color: rgba(46, 160, 67, 0.18);
    border-radius: 2px;
    padding: 0 1px;
    outline: 1px solid rgba(46, 160, 67, 0.3);
    outline-offset: 0;
}

/* Sepia theme highlight */
.book.color-theme-1 .show-modern.highlight-changes .v-modern {
    background-color: rgba(90, 130, 50, 0.22);
    outline-color: rgba(90, 130, 50, 0.35);
}

/* Night theme highlight */
.book.color-theme-2 .show-modern.highlight-changes .v-modern {
    background-color: rgba(80, 200, 120, 0.2);
    outline-color: rgba(80, 200, 120, 0.35);
}

/* Version indicator banner below page title */
#mesv-version-indicator {
    display: none;
    font-size: 0.8em;
    font-style: italic;
    color: var(--proofs-summary);
    padding: 0.25em 0 0.75em 0;
    border-bottom: 1px solid var(--proofs-separator);
    margin-bottom: 1em;
}
.show-modern #mesv-version-indicator {
    display: block;
}

/* Copy link toast notification */
#copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 0.5em 1.25em;
    border-radius: 4px;
    font-size: 0.9em;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 9999;
}

#copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
