/**
 * CrossWord — assets/css/corpus.css
 * @version 2.4.0
 * Corpus-level controls that sit on the dark header area, and the administrator's colour-scheme editor.
 * Colours come from the design tokens, so each corpus's scheme (api/text/themes.php) applies automatically.
 */

/* "Include deuterocanonical books" sits on the navy selector panel: it had inherited black text. */
.deutero-toggle { color: var(--text-on-navy, #EDE3CF); cursor: pointer; }
.deutero-toggle input { accent-color: var(--gold, #C9A84C); width: 18px; height: 18px; vertical-align: middle; margin-right: 6px; }
.deutero-toggle:focus-within { outline: 2px solid var(--gold, #C9A84C); outline-offset: 2px; border-radius: 4px; }

/* ── Colour-scheme editor (administrator) ─────────────────────────────── */
.theme-panel { max-width: 640px; max-height: 90vh; overflow-y: auto; }
.theme-help { font-size: 0.85rem; color: var(--text-secondary, #4A3F2F); }
.theme-corpus { border: 1px solid var(--border, #D4C4A0); border-radius: 8px; margin: 0 0 14px; padding: 8px 12px 12px; }
.theme-corpus legend { font-family: var(--font-display, serif); padding: 0 6px; }
.theme-state { font-size: 0.75rem; color: var(--text-muted, #7A6E5F); font-family: var(--font-body, serif); }
.theme-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 14px; margin: 8px 0; }
.theme-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.85rem; }
.theme-field input[type=color] { width: 44px; height: 32px; padding: 0; border: 1px solid var(--border, #D4C4A0); border-radius: 4px; background: none; cursor: pointer; }
.theme-msg { font-size: 0.8rem; min-height: 1.2em; margin: 4px 0; color: #2E7D4F; }
.theme-msg.theme-bad { color: #8B2020; }
.theme-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-actions .corpus-signin-btn { background: #1b3a6b; color: #fff; padding: 6px 14px; }
.theme-preview { display: flex; align-items: center; gap: 10px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border, #D4C4A0); font-size: 0.85rem; }
.theme-preview .tp-head { flex: 1; padding: 8px 10px; background: var(--p-navy, #1B3A6B); color: var(--p-text, #EDE3CF); font-family: var(--font-display, serif); letter-spacing: 0.06em; }
.theme-preview .tp-btn { padding: 4px 12px; background: var(--p-gold, #C9A84C); color: #1A1612; border-radius: 6px; font-weight: 600; }
.theme-preview .tp-page { padding: 8px 10px; background: var(--p-page, #F7F0E3); color: #1A1612; align-self: stretch; display: flex; align-items: center; }
