/* Styling for the mock partner site. Intentionally its own thing — a generic
   Q&A look, no ReelDocs design tokens — so the demo shows the writing happening
   somewhere that isn't ours. Nothing here is shared with the app. */

:root {
  --f-bg: #f6f7f8;
  --f-surface: #ffffff;
  --f-ink: #1b1f24;
  --f-muted: #61686f;
  --f-faint: #8b939b;
  --f-line: #dfe2e5;
  --f-accent: #1f6feb;
  --f-warm: #fff4d6;
  --f-warm-line: #e8d9a8;
  --f-tag-bg: #eaf3ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--f-bg);
  color: var(--f-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.1rem; }

.demo-banner {
  padding: 0.6rem 1.1rem;
  background: var(--f-warm);
  border-bottom: 1px solid var(--f-warm-line);
  font-size: 0.84rem;
  color: #6b5518;
  text-align: center;
}
.demo-banner a { color: #6b5518; margin-left: 0.3rem; }

header.site {
  background: var(--f-surface);
  border-bottom: 1px solid var(--f-line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.site-row { display: flex; align-items: center; gap: 1.4rem; height: 3.1rem; }
.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--f-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo-mark { color: var(--f-accent); font-size: 1.15rem; }
.site-nav { display: flex; gap: 1rem; margin-right: auto; }
.site-nav a { color: var(--f-muted); text-decoration: none; font-size: 0.9rem; }
.site-nav a:hover { color: var(--f-accent); }
.me { font-size: 0.85rem; color: var(--f-muted); }

.question, .answer, .composer {
  margin: 1.2rem 0;
  padding: 1.1rem 1.3rem;
  background: var(--f-surface);
  border: 1px solid var(--f-line);
  border-radius: 6px;
}
.question h1 { margin: 0 0 0.35rem; font-size: 1.4rem; line-height: 1.3; }
.meta { margin: 0 0 0.9rem; font-size: 0.82rem; color: var(--f-faint); }
.tag {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  margin-left: 0.2rem;
  font-size: 0.75rem;
  color: #2b5f9e;
  background: var(--f-tag-bg);
  border-radius: 3px;
}
.body p { margin: 0 0 0.7rem; }
.body p:last-child { margin-bottom: 0; }
.byline { margin: 0.9rem 0 0; font-size: 0.84rem; color: var(--f-muted); }

.answers-head { margin: 1.8rem 0 0; font-size: 1.05rem; font-weight: 600; }

/* The only ReelDocs-shaped thing on the page: the link a reader follows to
   watch the writing. Kept small and unobtrusive — evidence offered, not a
   badge demanded. */
.reel-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.78rem;
  color: #1a5f3f;
  background: #e9f6ef;
  border: 1px solid #bfe0cd;
  border-radius: 999px;
  text-decoration: none;
}
.reel-chip:hover { background: #d9efe3; }

.composer h2 { margin: 0 0 0.7rem; font-size: 1.05rem; }
#editorHost { background: var(--f-surface); }
.ql-toolbar.ql-snow { border-color: var(--f-line) !important; border-radius: 5px 5px 0 0; }
.ql-container.ql-snow { border-color: var(--f-line) !important; border-radius: 0 0 5px 5px; }
.ql-editor { min-height: 8rem; font-size: 15px; line-height: 1.6; }
.ql-editor.ql-blank::before { color: var(--f-faint); font-style: normal; }

.composer-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}
.attach {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.87rem;
  color: var(--f-muted);
  cursor: pointer;
}
.attach input { accent-color: var(--f-accent); margin: 0; }

.post-btn {
  margin-left: auto;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--f-accent);
  border: 1px solid var(--f-accent);
  border-radius: 5px;
  cursor: pointer;
}
.post-btn:hover:not(:disabled) { background: #1a5fd0; }
.post-btn:disabled { opacity: 0.45; cursor: default; }

.recorder-state { margin: 0.7rem 0 0; font-size: 0.8rem; color: var(--f-faint); }
.recorder-state.live { color: #1a5f3f; }
.composer-error {
  margin: 0.7rem 0 0;
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  color: #8c2b2b;
  background: #fdeeee;
  border: 1px solid #e6bcbc;
  border-radius: 4px;
}

/* A reply this page just posted, so it's obvious which one is yours. */
.answer.mine { border-color: #bfd8f7; box-shadow: 0 0 0 2px #eaf3ff; }
