/* Homework review for teens and adults (2026-11-03). See review-v2.js.
   Everything sits under .hwr-v2, so the kids review and the tutor pages never change.
   Mockup: https://claude.ai/artifact/3kF7aEVSFgCN9vrHJXuszE */

.hwr-v2 { max-width: 820px; margin: 0 auto; }

/* ── Top card ── */
.hwr-v2 .hw-rev-summary-card {
    background: #fff; border: 1px solid #E7E3DC; border-radius: 20px;
    padding: 24px 28px; box-shadow: 0 2px 10px rgba(42,33,24,.05); margin-bottom: 16px;
}
.hwr-v2 .hw-rev-summary-name { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: #1F1D1A; line-height: 1.2; }
.hwr-v2 .hw-rev-summary-dates { font-size: 14px; color: #6B665E; margin-top: 4px; }
.hwr-v2 .hw-rev-score { font-size: 32px; font-weight: 800; color: #1F1D1A; white-space: nowrap; }
.hwr-v2 .hw-rev-score span { font-size: 13px; font-weight: 600; color: #6B665E; }
.hwr-v2 .hw-rev-progress-bar { display: none; }   /* the part boxes below show it better */

.rv-parts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.rv-pbox { border: 1px solid var(--p-edge); background: var(--p-bg); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.rv-pbox-name { font-size: 12px; font-weight: 700; color: var(--p-ink); }
.rv-pbox-score { font-size: 20px; font-weight: 800; color: #1F1D1A; }
.rv-pbox-track { height: 6px; border-radius: 99px; background: var(--p-soft); overflow: hidden; }
.rv-pbox-fill { display: block; height: 6px; border-radius: 99px; background: var(--p-solid); }

/* The three parts, the same colours as the homework screen */
.rv-pbox--words,     .rv-part--words,     .rv-sec--words     { --p-ink: #C26A00; --p-tint: #FFF1DC; --p-bg: #FFFBF4; --p-edge: #F0E2CC; --p-solid: #F5A623; --p-soft: #F7D9A8; }
.rv-pbox--listening, .rv-part--listening, .rv-sec--listening { --p-ink: #2F5FA8; --p-tint: #E7F0FC; --p-bg: #F7FAFE; --p-edge: #DCE7F7; --p-solid: #3B7DD8; --p-soft: #BBD0EE; }
.rv-pbox--turn,      .rv-part--turn,      .rv-sec--turn      { --p-ink: #1F7A48; --p-tint: #E6F4EC; --p-bg: #F6FBF8; --p-edge: #D6EEDF; --p-solid: #2E9E5E; --p-soft: #B9DEC8; }

/* Eli's summary */
.hwr-v2 .hw-rev-ai-card { background: #FFF3E2; border: 0; border-radius: 16px; padding: 16px 20px; margin-bottom: 16px; }
.hwr-v2 .hw-rev-ai-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8A6A3A; }
.hwr-v2 .hw-rev-ai-headline { font-size: 18px; font-weight: 800; color: #7A4A00; margin: 4px 0; }
.hwr-v2 .hw-rev-ai-text { font-size: 15px; color: #4A463F; line-height: 1.55; margin: 0; }

/* ── All answers / Only my mistakes ── */
.rv-tools { display: flex; margin: 6px 0 18px; }
.rv-switch { display: inline-flex; background: #fff; border: 1px solid #E7E3DC; border-radius: 999px; padding: 4px; }
.rv-sw { font-family: inherit; font-size: 14px; font-weight: 700; border: 0; border-radius: 999px; padding: 8px 16px; background: transparent; color: #5C564C; cursor: pointer; }
.rv-sw.is-on { background: #1F1D1A; color: #fff; }
.rv-sw:focus-visible { outline: 3px solid #F5A623; outline-offset: 2px; }

/* ── Part headers ── */
.rv-part { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; }
.rv-part-num { width: 28px; height: 28px; border-radius: 8px; background: var(--p-tint); color: var(--p-ink); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.rv-part-name { font-size: 18px; font-weight: 800; color: #1F1D1A; }
.rv-part-score { font-size: 14px; font-weight: 700; color: var(--p-ink); }

/* ── One card per task type ── */
.hwr-v2 .rv-sec { margin-bottom: 14px; }
.hwr-v2 .rv-sec .hw-rev-section-title {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6B665E;
    background: #fff; border: 2px solid var(--p-soft); border-bottom: 1px solid #F3EDE4;
    border-radius: 16px 16px 0 0; padding: 13px 20px; margin: 0;
}
.hwr-v2 .rv-sec .hw-rev-card {
    border: 2px solid var(--p-soft); border-top: 0; border-radius: 0 0 16px 16px;
    box-shadow: 0 3px 0 var(--p-soft); background: #fff;
}
.rv-pill { font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.rv-pill.is-good { background: #E6F4EC; color: #1F7A48; }
.rv-pill.is-mid  { background: #FFF1DC; color: #8A5A10; }
.rv-pill.is-low  { background: #FDECEC; color: #A32A2A; }

/* ── Each answer: a tick or cross, the answer, the right one when wrong ── */
.hwr-v2 .rv-row { gap: 14px; padding: 14px 20px; align-items: flex-start; }
.rv-ic { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.rv-correct  .rv-ic { background: #E6F4EC; color: #1F7A48; }
.rv-half     .rv-ic { background: #FFF1DC; color: #C26A00; }
.rv-wrong    .rv-ic { background: #FDECEC; color: #A32A2A; }
.rv-unmarked .rv-ic { background: #F2EEE8; color: #8A847A; }
.hwr-v2 .rv-wrong { background: #FFF8F6; }
.hwr-v2 .rv-half  { background: #FFFBF4; }
/* The pill on each row says the same as the tick, so it goes */
.hwr-v2 .rv-row .hw-rev-badge { display: none; }
.hwr-v2 .rv-row .hw-rev-q-content { font-size: 16px; line-height: 1.6; color: #1F1D1A; }
.hwr-v2 .hw-rev-answer { font-size: 15px; color: #4A463F; }
.hwr-v2 .hw-rev-answer strong { font-weight: 700; color: #1F1D1A; }
.hwr-v2 .rv-wrong .hw-rev-answer:first-of-type strong { color: #A32A2A; }
.hwr-v2 .hw-rev-correction { font-size: 15px; color: #4A463F; margin-top: 4px; }
.hwr-v2 .hw-rev-correction strong { color: #1F7A48; font-weight: 700; }
.hwr-v2 .hw-rev-context { font-size: 14px; color: #6B665E; }

/* ── Only my mistakes: right answers, and tasks or parts with none wrong, step aside ── */
.rv-only-mistakes .rv-correct,
.rv-only-mistakes .rv-unmarked,
.rv-only-mistakes .rv-sec.rv-allright,
.rv-only-mistakes .rv-part.rv-allright { display: none !important; }

/* ── Phones ── */
@media (max-width: 600px) {
    .hwr-v2 .hw-rev-summary-card { padding: 20px 18px; }
    .hwr-v2 .hw-rev-summary-name { font-size: 20px; }
    .hwr-v2 .hw-rev-score { font-size: 24px; }
    .rv-parts-grid { grid-template-columns: 1fr; }
    .hwr-v2 .rv-row { padding: 12px 14px; }
    .hwr-v2 .rv-sec .hw-rev-section-title { padding: 12px 14px; }
    .rv-sw { padding: 8px 12px; font-size: 13px; }
}
