/* ---------- Forum (live Q&A) ----------
   fo-*: organiser list and guests' phone page; fs-*: the big screen.
   Builds on the shared .vote-page, .stage and .control-panel styles in app.css. */

/* Question cards (organiser and guests) */
.fo-list { display: flex; flex-direction: column; }
.fo-item { display: flex; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--border); align-items: flex-start; }
.fo-item:first-child { border-top: 0; }
.fo-item.pinned { background: var(--accent-softer); box-shadow: inset 3px 0 0 var(--accent); }
.fo-votes { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 36px; padding-top: 2px; color: var(--muted); }
.fo-votes b { color: var(--text); font-size: 16px; font-variant-numeric: tabular-nums; }
.fo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--muted); }
.fo-meta b { color: var(--text); font-weight: 600; }
.fo-meta .badge { font-size: 11.5px; padding: 2px 8px; gap: 4px; }
.fo-body { font-size: 15.5px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; white-space: pre-wrap; }
.fo-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fo-actions .btn.icon { margin-left: auto; }
/* Report abuse: the post quoted in the dialog, and our note when a report was declined. */
.fo-quote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; max-height: 160px; overflow: auto; }
.fo-report-note { margin: 0; font-size: 13px; color: var(--text-2); }

/* Guests' page — mobile first, works from 360 px wide */
.fo-page { padding-bottom: 40px; }
.fo-wrap { max-width: 640px; margin: -44px auto 0; padding: 0 12px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.fo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 8px 8px 8px 14px; box-shadow: var(--shadow); }
.fo-toolbar .segmented button { padding: 6px 12px; }
.fo-feed { display: flex; flex-direction: column; gap: 10px; }
.fo-card { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow); }
.fo-card.pinned { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.fo-card.waiting { border-style: dashed; background: var(--surface-2); }
.fo-card.waiting .fo-body { color: var(--text-2); }
.fo-up {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: 52px; min-height: 52px; padding: 6px 8px; border-radius: var(--radius); cursor: pointer;
  border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text-2); font: inherit;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.fo-up b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fo-up:hover { border-color: var(--accent); color: var(--accent-text); }
.fo-up:active { transform: scale(.95); }
.fo-up[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.fo-up:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.fo-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }

.fo-compose { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 12px; }
.fo-compose-inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.fo-fields { display: flex; flex-direction: column; gap: 8px; }
/* Anonymous posting: the privacy notice above the post box (only while anonymous is chosen). */
.fo-privacy { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); color: var(--text-2); }
.fo-privacy[hidden] { display: none; }
.fo-privacy svg { flex-shrink: 0; margin-top: 1px; color: var(--accent-text); }
.fo-privacy p { margin: 0; font-size: 12px; line-height: 1.45; }
.fo-privacy b { color: var(--text); }
.fo-privacy a { color: var(--accent-text); white-space: nowrap; }
.fo-fields .input { padding-top: 8px; padding-bottom: 8px; }
.fo-text { position: relative; }
.fo-text .textarea { min-height: 64px; padding-right: 48px; width: 100%; }
.fo-left { position: absolute; right: 10px; bottom: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; }
.fo-left.warn { color: var(--danger); font-weight: 700; }
.fo-send { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fo-send .btn { flex-shrink: 0; }
.fo-note { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.fo-compose .q-error:empty { display: none; }
@media (min-width: 560px) {
  .fo-fields { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: start; }
  .fo-wrap { padding: 0 18px; }
}

/* ---------- Big screen ---------- */
.fs-main { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 8px clamp(20px, 5vw, 96px); overflow: hidden; }
.fs-pinned { width: min(1300px, 100%); display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 28px); animation: fsIn .6s cubic-bezier(.2, 1, .3, 1); }
.fs-pin-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fs-pin-who { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(20px, 2.2vw, 36px); font-weight: 700; color: var(--gold); }
.fs-pin-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: clamp(14px, 1.2vw, 18px); font-weight: 700; background: color-mix(in srgb, #4fd1a1 18%, transparent); color: #4fd1a1; }
.fs-pin-text {
  margin: 0; font-weight: 700; line-height: 1.18; letter-spacing: -0.02em; color: var(--s-ink);
  overflow-wrap: anywhere; text-wrap: balance; position: relative; padding-left: clamp(18px, 2vw, 36px);
  border-left: clamp(5px, .5vw, 8px) solid var(--accent);
}
.fs-pin-text.short { font-size: clamp(34px, 5.4vw, 96px); }
.fs-pin-text.mid { font-size: clamp(28px, 4vw, 70px); }
.fs-pin-text.long { font-size: clamp(22px, 2.9vw, 52px); line-height: 1.25; }
.fs-pin-votes { display: inline-flex; align-items: center; gap: 10px; color: var(--s-dim); font-size: clamp(18px, 1.8vw, 28px); }
.fs-pin-votes b { color: var(--s-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
@keyframes fsIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

.fs-list { list-style: none; margin: 0; padding: 0; width: min(1300px, 100%); display: flex; flex-direction: column; gap: clamp(8px, 1.4vh, 16px); }
.fs-list li { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); padding: clamp(12px, 1.8vh, 22px) clamp(16px, 1.8vw, 30px); border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid var(--s-line); animation: fsIn .5s ease both; }
.fs-list li.top { background: color-mix(in srgb, var(--accent) 18%, rgba(255, 255, 255, .04)); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.fs-votes { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; min-width: clamp(48px, 4.4vw, 76px); color: var(--s-dim); }
.fs-votes b { color: var(--s-ink); font-size: clamp(22px, 2.2vw, 38px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.fs-q { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fs-q p { font-size: clamp(18px, 1.9vw, 34px); font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fs-q span { font-size: clamp(13px, 1.1vw, 18px); color: var(--s-dim); }
.fs-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; color: var(--s-dim); font-size: clamp(20px, 2vw, 32px); }
.fs-empty-ico { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--gold); }
.fs-rail { align-items: center; }
.fs-hint { color: var(--s-ink); font-size: clamp(15px, 1.4vw, 22px); font-weight: 600; }
.fs-closed { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: 14px; font-weight: 600; }
.fs-closed.hidden { display: none; }
@media (max-width: 700px) {
  .fs-rail .rail-block { display: none; }
  .fs-rail { justify-content: center; }
  .fs-rail .stage-join { border-left: 0; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fs-pinned, .fs-list li { animation: none; }
}
