/* css/styles.css */
/* 2026-10-31 4:15 PM MDT */
/* RULE: No function, feature, button, or file may be removed, changed, or edited by any AI tool unless Eric named that specific thing in his request. Anything not named stays exactly as it is. */
/* Last change: the steps card of the owner's 615 exercises (its steps as plain lines, its count) and no text selected by a double-click on an exercise (builder SPOKE615, Eric 31 Oct). */
/*
WHAT THIS FILE IS
How things look: the colours, fonts and borders of the chat box, in the look of the ChessClerk chat (plan.txt
section 5: "like the chat box in Eric's other products"). Georgia everywhere. The text in the posts and the typing
box takes the size chosen in the Aa menu (--font, set by ui/fontmenu.js). Where things go is in css/layout.css.
*/

/* page */
:root {
    --ink: #fff0d6;
    --text: #f2dfc2;
    --gold: #c9a227;
    --gold-bright: #e0b840;
    --line: #3d2010;
    --muted: #8a6a4a;
}
body { background: #f7f4ee url("../art/marble-white.jpg") center / cover fixed; color: var(--ink); font-family: Georgia, serif; }
button { font-family: inherit; }
button:disabled { opacity: 0.4; cursor: default; }

/* the chat box */
.box { background: #111111; border: 3px solid #5a3e2b; border-radius: 6px; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55); color: var(--text); }
.box-bar { background: #1e1208; border-bottom: 1px solid var(--line); }
.box-title { color: var(--gold); font-size: 15px; letter-spacing: 0.5px; }
.box-handle { background: linear-gradient(135deg, transparent 55%, #5a3e2b 55%, #5a3e2b 65%, transparent 65%, transparent 75%, #5a3e2b 75%, #5a3e2b 85%, transparent 85%); }

/* the move list */
.moves-panel { background: #1a0f06; border: 3px solid #5a3e2b; border-radius: 6px; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55); }
.moves-head { background: #1e1208; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.moves-count.back { color: #062a2a; background: #2ec4c0; border-color: #6ff0ea; font-weight: bold; }
.moves-next { white-space: nowrap; background: transparent; color: var(--gold-bright); border: none; padding: 4px 0; font-size: 18px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.moves-next:hover { color: var(--ink); }
.moves-count { color: var(--muted); font-size: 13px; border-radius: 9px; }
.moves-cat-name { color: var(--gold-bright); font-size: 26px; font-weight: normal; letter-spacing: 0.8px; text-transform: uppercase; }
.moves-cat-name.starts { cursor: pointer; }
.moves-cat-name.starts:hover, .moves-cat-name.starts:focus-visible { text-decoration: underline; text-underline-offset: 5px; outline: none; }
.moves-strand-name { color: var(--ink); font-size: 30px; font-weight: normal; letter-spacing: 0.8px; text-transform: uppercase; margin: 34px 0 0; }
.moves-list > :first-child { margin-top: 14px; }
.moves-move { background: transparent; color: var(--gold); border: none; font-size: 16px; line-height: 1.35; }
.moves-move:hover { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.moves-move.now { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.moves-practice { background: #7a3a18; color: var(--ink); border: 1px solid #a05030; border-radius: 4px; font-size: 15px; }
.moves-practice:hover:not(:disabled) { background: #8a4520; }
.moves-toggle { background: transparent; color: var(--gold); border: 1px solid #5a3020; border-radius: 3px; font-size: 14px; }

/* the Aa font menu */
.aa { background: transparent; color: var(--muted); font-size: 14px; border: 1px solid #5a3020; border-radius: 3px; }
.aa:hover { color: var(--text); }
.aa-menu { background: #2a1a0e; border: 2px solid var(--gold); border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6); }
.aa-item { background: transparent; color: var(--text); border: none; font-size: 15px; }
.aa-item:hover { background: #46280f; }
.aa-item.on { color: var(--gold-bright); }

/* posts */
.posts { font-size: var(--font, 18px); line-height: 1.55; }
.post { white-space: pre-wrap; overflow-wrap: anywhere; }
.post-ai { background: #1e1208; border: 1px solid var(--line); border-radius: 2px 10px 10px 10px; }
.post-you { background: var(--line); border: 1px solid #5a3020; border-radius: 10px 10px 2px 10px; color: #f0d8b0; }
.post-note { color: var(--muted); font-style: italic; padding-top: 2px; padding-bottom: 2px; }
.post-card { background: #1a0f06; border: 1px solid #5a3e2b; border-left: 3px solid var(--gold); border-radius: 4px; white-space: normal; }
.card-head { color: var(--muted); font-size: 0.75em; font-style: italic; }
.card-ask { color: var(--text); font-size: 0.85em; margin-top: 4px; }
.card-name { color: var(--gold-bright); font-size: 1.1em; letter-spacing: 0.4px; }
.card-num { color: var(--muted); font-size: 0.7em; }
.card-label { color: var(--gold); }
.card-prompt { color: var(--ink); margin-top: 4px; }
.card-shape .card-text { color: var(--ink); }
.signin-name { color: var(--gold); font-size: 30px; letter-spacing: 1px; }
.signin-tag { color: var(--text); font-size: 16px; font-style: italic; text-align: center; margin-top: -10px; }
.nav-btn { background: transparent; color: var(--gold); border: 1px solid #5a3e2b; border-radius: 4px; font-size: 14px; }
.nav-btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.nav-back.on { color: #062a2a; background: #2ec4c0; border-color: #6ff0ea; }
.past-entry { border-left: 2px solid #5a3e2b; padding-left: 8px; font-size: 0.9em; }
.past-date { color: var(--muted); font-size: 0.8em; }
.post-you.reading::after { content: " …"; color: var(--muted); }
.post-you.fits::after { content: " ✓"; color: var(--gold-bright); }
.signin-btn { background: var(--gold); color: #1a1206; border: 1px solid var(--gold); border-radius: 4px; font-size: 17px; font-weight: bold; }
.signin-btn:hover { background: var(--gold-bright); }

/* typing */
.input-row { background: #1e1208; border-top: 1px solid var(--line); }
.input { background: #1a1008; color: #ffe9c0; border: 1px solid var(--line); border-radius: 6px; font-family: Georgia, serif; font-size: var(--font, 18px); line-height: 1.4; }
.input::placeholder { color: var(--gold); }
.input:focus { outline: none; border-color: #5a3020; }
.mic { background: transparent; border: 1px solid #5a3020; border-radius: 4px; font-size: 16px; }
.mic.on { border-color: var(--gold-bright); box-shadow: 0 0 0 2px rgba(224, 184, 64, 0.35); }
.send { background: #7a3a18; color: var(--text); border: 1px solid #a05030; border-radius: 4px; font-size: 15px; }
.send:hover:not(:disabled) { background: #8a4520; }
.proposal-text { background: #0f0904; color: var(--text); border: 1px solid #5a3e2b; border-radius: 3px; padding: 6px 8px; font-size: 0.8em; white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto; }
.proposal-old { color: var(--muted); }
.proposal-decline { background: transparent; color: var(--gold); border: 1px solid var(--gold); border-radius: 4px; font-size: 15px; }
.moves-extra { background: transparent; color: var(--gold); border: 1px solid #5a3e2b; border-radius: 4px; font-size: 15px; }
.moves-extra:hover { border-color: var(--gold); color: var(--gold-bright); }
.see-also { color: var(--muted); font-size: 14px; font-style: italic; border-top: 1px solid #5a3e2b; }
.see-also-head { color: var(--gold); font-style: normal; }
.feedback-text { background: #1a1008; color: #ffe9c0; border: 1px solid var(--line); border-radius: 6px; font-family: Georgia, serif; font-size: 0.9em; }
.feedback-text::placeholder { color: var(--muted); }
.feedback-send { background: #7a3a18; color: var(--text); border: 1px solid #a05030; border-radius: 4px; font-size: 15px; }
.feedback-cancel { background: transparent; color: var(--gold); border: 1px solid #5a3e2b; border-radius: 4px; font-size: 15px; }
.feedback-said, .feedback-done { color: var(--muted); font-style: italic; font-size: 0.85em; }
.feedback-done { color: var(--gold-bright); margin-top: 4px; }
.code-toggle { background: transparent; color: var(--gold); border: 1px solid #5a3020; border-radius: 3px; font-size: 14px; }
.code-box { background: #0d0905; border: 3px solid #5a3e2b; border-radius: 6px; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6); color: var(--text); }
.code-bar { background: #1e1208; border-bottom: 1px solid var(--line); }
.code-title { color: var(--gold); font-size: 15px; letter-spacing: 0.5px; }
.code-hide { background: transparent; color: var(--muted); border: 1px solid #5a3020; border-radius: 3px; }
.code-btn, .code-tab-name, .code-tab-close { background: transparent; color: var(--gold); border: 1px solid #5a3e2b; border-radius: 4px; font-size: 13px; }
.code-btn:disabled { opacity: 0.45; cursor: default; }
.code-btn.on, .code-tab.on .code-tab-name { background: #46280f; border-color: var(--gold); color: var(--gold-bright); }
.code-cmd { color: var(--text); background: #2a1a0e; }
.code-tab-close { border-left: none; border-radius: 0 4px 4px 0; padding: 3px 7px; }
.code-tab-name { border-radius: 4px 0 0 4px; }
.code-news { color: var(--muted); font-style: italic; font-size: 13px; }
.code-news a { color: var(--gold-bright); }

/* the owner's 615 exercises (ui/spoke615.js): the steps card, and no text selected when an exercise is double-clicked */
.spoke-ex { user-select: none; }
.spoke-step { margin: 8px 0 0; color: var(--ink); line-height: 1.4; }
.spoke-count { margin-top: 10px; color: var(--muted); font-size: 0.85em; }
