/* ══════════════════════════════════════════════════════════════════════════
   Review-screen styles — the paper-card half of a DDE node review.

   ONE definition, two pages. These rules were inline in
   templates/student_review_walkthrough.html until the Live Sandbox grew a per-question
   review of its own (2026-09-21), and static/student.html is a STATIC file: it cannot
   {% include %} a Jinja partial, so the only way for the demo to look like the real
   Review page was to give both a real stylesheet to link. Copying these rules into the
   static page instead would have let the demo drift away from the product it is
   demonstrating, one edit at a time.

   WHAT LIVES HERE: everything that renders a question and one of its nodes — the fixed
   context header, the phase tag, the your-answer/correct-answer pair, the explanation
   box, the Signal/Noise insight, the give-up note, the call to action, and the Level 1
   page-bar labels.

   WHAT DELIBERATELY DOES NOT: the standalone Review page's own chrome — its dark body,
   stage strip, mistake rail, cleared strip, Mark-reviewed row, stat/trend grids and
   end-of-queue screens. None of it exists in the sandbox (an anonymous one-sitting
   visitor has no queue and nothing to mark reviewed), and its `body` rule would repaint
   the student dashboard, which is the same document the sandbox review renders into.
   Those stay in the template that needs them.

   Every var() here — --navy, --gold, --green, --paper-card, --line, --ink, --mono … —
   is defined by the TV-box component on .wn-viewer, so everything below must be
   rendered INSIDE a .wn-viewer element on both pages.
   ══════════════════════════════════════════════════════════════════════════ */

/* ════════ FIXED HEADER (inside the box, above the body) ════════
   Q code and the Context Problem, shown on EVERY node screen including one landed
   on directly at Declaration or Execution -- a student who jumps straight to
   Execution still needs the problem it is an execution of. */
.rvw-fixedhead {
    background: #10243c; padding: 18px 32px 20px; border-bottom: 3px solid var(--gold);
}
.rvw-fixedhead-top {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 14px; flex-wrap: wrap; margin-bottom: 10px;
}
.rvw-qcode {
    font-family: var(--mono); font-size: 13px; font-weight: 700;
    letter-spacing: .08em; color: var(--gold);
}
.rvw-qmeta { font-family: var(--mono); font-size: 11px; color: #90a9c2; letter-spacing: .06em; }
.rvw-context-label {
    font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
    text-transform: uppercase; color: #7f97af; margin-bottom: 6px;
}
.rvw-context { color: #e7eef6; font-size: 15px; line-height: 1.6; margin: 0; }
.rvw-context-img {
    display: block; max-width: 100%; margin: 12px 0 0; border-radius: 6px; background: #fff;
}
.rvw-given {
    margin: 12px 0 0; padding: 10px 14px; border-radius: 6px;
    background: rgba(255,255,255,.05); border-left: 3px solid #3d5878;
}
.rvw-given li { color: #c7d4e2; font-size: 13px; margin-bottom: 3px; }
.rvw-given ul { margin: 0; padding-left: 18px; }
.rvw-given .unknown { color: #f5c451; font-size: 13px; margin-top: 6px; }

/* ════════ NODE BODY ════════ */
.rvw-phase-tag {
    display: inline-block; font-family: var(--mono); font-size: 11px;
    letter-spacing: .16em; text-transform: uppercase; color: #fff;
    padding: 5px 12px; border-radius: 4px; margin-bottom: 14px;
}
.rvw-phase-Discovery { background: #2b6cc4; }
.rvw-phase-Declaration { background: #e67e22; }
.rvw-phase-Execution { background: #388e3c; }
.rvw-node-question {
    font-family: var(--serif); font-size: 19px; line-height: 1.5;
    color: var(--navy); margin: 0 0 18px;
}
.rvw-node-img { display: block; max-width: 100%; margin: 0 0 18px; border-radius: 6px; }

.rvw-answers {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px;
}
@media (max-width: 680px) { .rvw-answers { grid-template-columns: 1fr; } }
.rvw-answer {
    background: var(--paper-card); border: 1px solid var(--line);
    border-radius: 8px; padding: 12px 16px;
}
.rvw-answer .eyebrow {
    font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ink-soft); margin-bottom: 5px;
}
.rvw-answer .value { font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.rvw-answer.wrong { border-color: #d9a49d; background: #fdf4f3; }
.rvw-answer.wrong .value { color: #a13527; font-weight: 600; }
.rvw-answer.right { border-color: #a6ceb5; background: #f2f8f4; }
.rvw-answer.right .value { color: #1e5c38; font-weight: 600; }
.rvw-answer .mark { float: right; font-size: 16px; }
.rvw-timing {
    font-family: var(--mono); font-size: 11px; color: var(--ink-soft);
    margin: -10px 0 18px; letter-spacing: .04em;
}

/* The wide explanation box the spec calls for -- full width of the body, one per
   node, holding the stored teaching working and (where it exists) the
   Signal/Noise reading of the answer the student actually chose. */
.rvw-explain {
    background: var(--paper-card); border: 1px solid var(--line);
    border-radius: 10px; padding: 0; overflow: hidden; margin-bottom: 18px;
}
.rvw-explain-head {
    background: #f1eee7; border-bottom: 1px solid var(--line); padding: 11px 20px;
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--navy-soft);
}
.rvw-explain-body { padding: 18px 20px; }
.rvw-explain-body p { margin: 0 0 10px; font-size: 14.5px; color: var(--ink); line-height: 1.65; }
.rvw-explain-body p:last-child { margin-bottom: 0; }
.rvw-kv { margin-bottom: 12px; }
.rvw-kv .k {
    font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 3px;
}
.rvw-kv .v { font-size: 14.5px; color: var(--ink); line-height: 1.6; }
.rvw-steps { margin: 0; padding-left: 22px; }
.rvw-steps li { font-size: 14.5px; color: var(--ink); margin-bottom: 6px; line-height: 1.6; }
.rvw-equation {
    margin-top: 12px; padding: 10px 14px; background: #f3f6f2;
    border-left: 3px solid var(--green); border-radius: 0 4px 4px 0;
    font-size: 15px; color: #2b4a37;
}
.rvw-missing {
    background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 6px;
    padding: 12px 16px; font-size: 13.5px; color: #6b4e1e;
}

/* Signal/Noise insight -- inside the explanation box, tinted by grade so the
   three read differently at a glance. Only ever rendered when the node was wrong
   AND the chosen option carries a classification; see review_walkthrough.py. */
.rvw-insight { border-radius: 8px; padding: 14px 18px; margin-top: 16px; border: 1px solid; }
.rvw-insight .grade {
    display: inline-block; font-family: var(--mono); font-size: 10px;
    letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px;
    border-radius: 999px; margin-bottom: 8px; color: #fff;
}
.rvw-insight .headline { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.rvw-insight .body { font-size: 14px; line-height: 1.6; margin: 0; }
.rvw-insight .rationale {
    margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed rgba(0,0,0,.16);
    font-size: 14px; line-height: 1.6;
}
.rvw-insight .rationale b {
    display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
    text-transform: uppercase; margin-bottom: 4px; opacity: .8;
}
.rvw-insight.high { background: #fdf3e6; border-color: #e0b073; color: #6b4715; }
.rvw-insight.high .grade { background: #c8801f; }
.rvw-insight.moderate { background: #eef2f8; border-color: #a8bdd8; color: #26405e; }
.rvw-insight.moderate .grade { background: #3d6597; }
.rvw-insight.low { background: #fbeceb; border-color: #d9a49d; color: #75281c; }
.rvw-insight.low .grade { background: #b0392b; }

.rvw-gaveup {
    background: var(--amber-bg); border: 1px solid var(--amber-line);
    border-radius: 6px; padding: 12px 16px; font-size: 13.5px; color: #6b4e1e;
    margin-bottom: 18px;
}

.rvw-cta {
    font-family: var(--sans); font-size: 15px; font-weight: 700; cursor: pointer;
    padding: 12px 24px; border-radius: 8px; border: 1px solid var(--navy);
    background: var(--navy); color: #fff; margin-top: 6px;
}
.rvw-cta:hover { background: var(--navy-soft); }
.rvw-cta.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.rvw-cta.ghost:hover { background: var(--paper-card); border-color: var(--navy); }
.rvw-note { font-size: 13.5px; color: var(--ink-soft); line-height: 1.65; }

/* ════════ LEVEL 1 -- WITHIN THIS QUESTION ════════
   The paper pagebar the TV-box component already puts at the bottom of every one
   of these viewers, kept in exactly that place so it reads as "turn the page of
   what I am looking at". Buttons are named after the phase they go to, and the
   word "mistake" never appears here. */
.rvw-pagebar-label {
    width: 100%; font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--ink-soft); margin-bottom: -4px;
}
.rvw-steplabel {
    font-family: var(--mono); font-size: 12px; color: var(--ink-soft); letter-spacing: .06em;
    text-align: center;
}
.rvw-steplabel b { color: var(--navy); }
