/* The partner page's own look. Deliberately unlike Revision Village's, so it is clear which parts are RV's. */
:root {
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #f6f7f9;
  --card: #ffffff;
  --accent: #0f766e;
  --accent-soft: #e6f4f2;
  --right: #15803d;
  --right-soft: #e8f6ec;
  --wrong: #b42318;
  --wrong-soft: #fdecea;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--accent); }
code, pre { font-family: ui-monospace, Menlo, Consolas, monospace; }

.top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 24px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.pill { font-size: 12px; font-weight: 600; color: #92400e; background: #fef3c7; border-radius: 999px; padding: 3px 10px; }

.shell { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; max-width: 1240px; margin: 0 auto; padding: 24px; align-items: start; }
@media (max-width: 900px) { .shell { grid-template-columns: minmax(0, 1fr); padding: 16px; } }

h1 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 16px; margin: 0 0 10px; }
.lead { color: var(--muted); margin: 0 0 20px; max-width: 60ch; }
.hint { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 10px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 0 0 16px; }
.card.question { padding: 22px 26px 12px; overflow-x: auto; }
.source { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }

.questions { list-style: none; margin: 0; padding: 0; }
.questions li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.questions li:first-child { border-top: 0; }
.questions a { flex: 1; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.questions a:hover .topic { text-decoration: underline; }
.topic { font-weight: 600; color: var(--accent); }
.meta { font-size: 13px; color: var(--muted); }
.badge { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.badge.yes { color: var(--right); background: var(--right-soft); }
.badge.no { color: var(--muted); background: #eef0f3; }

.answer { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 0 0 16px; }
.prompt { font-weight: 600; margin: 0 0 10px; }
.options { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.option { min-width: 64px; padding: 12px 0; font: inherit; font-weight: 700; font-size: 18px; color: var(--ink); background: var(--card); border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.option:hover { border-color: var(--accent); }
.option[aria-checked='true'] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.option.right { border-color: var(--right); background: var(--right-soft); color: var(--right); }
.option.wrong { border-color: var(--wrong); background: var(--wrong-soft); color: var(--wrong); }
.option:focus-visible, .check:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #99d5cf; outline-offset: 2px; }
.check { font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 10px; padding: 10px 18px; cursor: pointer; }
.check:disabled { background: #9ca3af; cursor: not-allowed; }
.result { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.result.right { color: var(--right); background: var(--right-soft); }
.result.wrong { color: var(--wrong); background: var(--wrong-soft); }
.result.problem { color: #92400e; background: #fef3c7; }
.notice { background: #eef0f3; border-radius: 10px; padding: 12px 16px; color: #374151; margin: 0 0 16px; }

.scores { width: 100%; border-collapse: collapse; font-size: 14px; }
.scores th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.scores td { padding: 8px; border-bottom: 1px solid var(--line); }
.scores td.right { color: var(--right); font-weight: 600; }
.scores td.wrong { color: var(--wrong); font-weight: 600; }
.scores td.empty { color: var(--muted); }
.scores code { font-size: 12px; }

aside { background: #111827; color: #e5e7eb; border-radius: 12px; padding: 18px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
aside h2 { color: #fff; }
aside .hint { color: #9ca3af; }
.call { border: 1px solid #374151; border-radius: 8px; margin: 0 0 8px; background: #1f2937; }
.call.new { border-color: #2dd4bf; }
.call summary { display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; font-size: 13px; }
.call summary code { flex: 1; min-width: 0; overflow-wrap: anywhere; color: #e5e7eb; }
.verb { font-weight: 700; color: #5eead4; }
.status { font-weight: 700; border-radius: 6px; padding: 1px 6px; font-size: 12px; }
.status.s2 { background: #064e3b; color: #a7f3d0; }
.status.s4, .status.s5 { background: #7f1d1d; color: #fecaca; }
.ms { color: #9ca3af; font-size: 12px; white-space: nowrap; }
.label { margin: 0; padding: 6px 10px 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; }
.call pre { margin: 0; padding: 6px 10px 10px; font-size: 11.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; color: #d1d5db; }
