/* ResearchFables: the question card, choices, and "What research shows". Colors come from
   FablesCore's shared variables, so light and dark themes both work. */
.rf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; }
.rf-badge { font-size: 1.1rem; }
.rf-draft { padding: 1px 8px; border: 1px dashed var(--muted); border-radius: 999px; font-size: 0.8rem; }

.rf-card { margin: 0 0 10px; padding: 12px 14px; border-left: 4px solid var(--accent); border-radius: 6px; background: var(--surface, var(--paper)); }
.rf-lead { margin: 0 0 4px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.rf-prompt { margin: 0; line-height: 1.5; }
.rf-assumption-check .rf-prompt { font-style: italic; }
.rf-ask { margin: 0 0 4px; font-weight: 700; }

.rf-choices { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.rf-choice {
  display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink);
  font: inherit; line-height: 1.45; text-align: left; cursor: pointer;
}
.rf-choice:hover:not(:disabled) { border-color: var(--accent); }
.rf-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rf-choice:disabled { cursor: default; }
.rf-choice.tried { color: var(--muted); }
.rf-choice.tried > span:last-child { text-decoration: line-through; }
.rf-choice.is-answer { border: 2px solid var(--good); background: var(--good-soft); color: var(--ink); }
.rf-letter { flex: none; min-width: 1.2em; font-weight: 700; color: var(--muted); }

.rf-shows { margin: 10px 0; text-align: left; }
.rf-shows h3 { margin: 0 0 6px; font-size: 1rem; }
.rf-shows p { margin: 0 0 8px; line-height: 1.5; }
.rf-note { font-size: 0.9rem; }
.rf-sources { margin: 0; padding-left: 18px; font-size: 0.85rem; line-height: 1.45; }
.rf-sources a { color: inherit; font-weight: 700; }
.rf-checked { color: var(--muted); }

/* Reading Papers: a table or figure the passage describes, with the same numbers in words. */
.rf-table { margin: 10px 0 0; }
.rf-table-scroll { overflow-x: auto; }
.rf-table table { border-collapse: collapse; font-size: 0.92rem; }
.rf-table caption { caption-side: top; text-align: left; font-weight: 700; padding: 0 0 4px; white-space: nowrap; }
.rf-table th, .rf-table td { padding: 4px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.rf-table thead th { color: var(--muted); font-weight: 600; }
.rf-table tbody th, .rf-table thead th:first-child { text-align: left; }
.rf-table tbody th { font-weight: 600; }
.rf-table-words { margin: 6px 0 0; color: var(--muted); font-size: 0.85rem; line-height: 1.45; }
.rf-table-words span { font-weight: 700; }
