/* ============================================
   READING LESSON 1 — Summary Completion
   ============================================ */

.rl1-wrap { width: 100%; }

/* ── Instruction header ── */
.rl1-inst-header { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 14px 20px; margin-bottom: 18px; }
.rl1-inst-label  { font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--gold); margin-bottom: 4px; }
.rl1-inst-tips   { font-size: .9rem; color: rgba(255,255,255,0.45); font-style: italic; }

/* ── Score banner ── */
.rl1-score-banner { display: flex; align-items: center; gap: 16px; background: rgba(251,191,36,0.08); border: 1.5px solid rgba(251,191,36,0.3); border-radius: 12px; padding: 16px 22px; margin-bottom: 20px; flex-wrap: wrap; }
.rl1-score-big   { font-size: 2.6rem; font-weight: 900; color: var(--gold); line-height: 1; }
.rl1-score-denom { font-size: 1.4rem; color: rgba(255,255,255,0.4); }
.rl1-score-label { font-size: 1.05rem; color: rgba(255,255,255,0.8); flex: 1; }

/* ── Two-column layout ── */
.rl1-content-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;   /* required for sticky to work */
  position: relative;
}
@media (max-width: 900px) { .rl1-content-wrap { grid-template-columns: 1fr; } }

.rl1-left-col { min-width: 0; }
.rl1-left-col::-webkit-scrollbar { width: 4px; }
.rl1-left-col::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* ── Right passage column ── */
.rl1-right-col {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 0; min-width: 0; overflow: hidden; position: relative;
}

/* ── Summary exam box ── */
.rl1-exam-box { background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 22px 26px; font-family: 'Georgia', serif; line-height: 2.2; color: rgba(255,255,255,0.88); margin-bottom: 20px; font-size: 1.08rem; }
.rl1-exam-title { font-size: 1.1rem; font-weight: 700; text-align: center; margin-bottom: 16px; font-family: 'Inter', sans-serif; color: var(--gold); border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 10px; }
.rl1-exam-box p { margin: 0 0 10px; }

/* ── Inline blank ── */
.rl1-blank { display: inline-block; border: none; border-bottom: 2px solid rgba(255,255,255,0.35); background: transparent; width: 130px; font-size: 1.06rem; font-family: 'Georgia', serif; color: rgba(255,255,255,0.9); padding: 1px 4px; outline: none; vertical-align: baseline; margin: 0 3px; transition: border-color .15s; }
.rl1-blank:focus    { border-bottom-color: #60a5fa; }
.rl1-blank:disabled { cursor: not-allowed; opacity: 1; }
.rl1-blank-ok  { border-bottom-color: #4ade80 !important; color: #4ade80; font-weight: 700; }
.rl1-blank-err { border-bottom-color: #f87171 !important; color: #f87171; }
.rl1-q-num     { font-size: .82rem; font-weight: 700; color: var(--gold); vertical-align: super; margin-right: 1px; font-family: 'Inter', sans-serif; }
.rl1-correct-ans { color: #4ade80; font-weight: 700; font-size: .92rem; margin-left: 4px; font-family: 'Inter', sans-serif; }

/* ── Why button ── */
.rl1-why-btn { background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.4); color: var(--gold); border-radius: 6px; padding: 2px 9px; font-size: .8rem; font-weight: 700; cursor: pointer; transition: background .15s; vertical-align: middle; margin-left: 4px; }
.rl1-why-btn:hover { background: rgba(251,191,36,0.25); }

/* ── Check button ── */
.rl1-check-btn { display: block; width: 100%; padding: 14px; margin-bottom: 8px; background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; border: none; border-radius: 10px; font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: opacity .15s; }
.rl1-check-btn:hover { opacity: .88; }

/* ── Exp box ── */
.rl1-exp-box { background: rgba(251,191,36,0.07); border: 1px solid rgba(251,191,36,0.3); border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; font-size: .95rem; color: rgba(255,255,255,0.85); line-height: 1.7; font-family: 'Inter', sans-serif; }

/* ── Arrow ── */
.rl1-arrow-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; overflow: visible; }

/* ── Passage panel ── */
.rl1-passage-title-bar { font-size: 1rem; font-weight: 700; color: var(--gold); padding: 14px 22px 12px; background: rgba(14,14,28,0.97); border-bottom: 1px solid rgba(255,255,255,0.07); position: sticky; top: 0; z-index: 2; }
.rl1-passage-card { font-size: 1.1rem; line-height: 2.15; color: rgba(255,255,255,0.88); padding: 20px 26px 32px; font-family: 'Georgia', serif; letter-spacing: 0.01em; }
.rl1-passage-card p { margin: 0 0 16px; }
.rl1-passage-title { font-size: 1.2rem; font-weight: 700; color: rgba(255,255,255,0.97); font-family: 'Inter', sans-serif; margin-bottom: 20px; line-height: 1.4; }

/* ── Context highlights ── */
.rl1-ctx { background: rgba(251,191,36,0.12); border-radius: 4px; padding: 1px 3px; border-bottom: 2px solid rgba(251,191,36,0.35); transition: background .3s; }
.rl1-ctx.active { background: rgba(245,200,66,0.3); border-bottom-color: #f5c842; animation: rl1-pulse 1.4s ease-in-out; }
@keyframes rl1-pulse { 0%,100%{background:rgba(245,200,66,0.22);} 50%{background:rgba(245,200,66,0.5);} }
.rl1-ans { color: var(--gold); font-weight: 700; }
.rl1-no-hl .rl1-ctx { background: none; border-bottom: none; padding: 0; border-radius: 0; }
.rl1-no-hl .rl1-ans { color: inherit; font-weight: inherit; }

/* ══════════════════════════════════════════════
   INFO PAGES (Intro + Final Tips) — full width
   ══════════════════════════════════════════════ */
.rl1-info-page { width: 100%; padding: 8px 0 48px; }
.rl1-info-badge { display: inline-block; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--gold); background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3); border-radius: 20px; padding: 4px 14px; margin-bottom: 14px; }
.rl1-info-h2 { font-size: 2rem; font-weight: 900; color: #fff; margin: 0 0 16px; }
.rl1-info-lead { font-size: 1.18rem; color: rgba(255,255,255,0.82); line-height: 1.85; margin-bottom: 32px; width: 100%; }

.rl1-info-section { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.09); border-radius: 12px; padding: 22px 28px; margin-bottom: 16px; }
.rl1-info-section-title { font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--gold); margin-bottom: 14px; }
.rl1-info-section p { font-size: 1.05rem; color: rgba(255,255,255,0.82); line-height: 1.85; margin: 0 0 10px; }
.rl1-info-section p:last-child { margin-bottom: 0; }

.rl1-info-ol { margin: 0; padding-left: 22px; color: rgba(255,255,255,0.82); font-size: 1.05rem; line-height: 1.95; }
.rl1-info-ol li { margin-bottom: 8px; }
.rl1-info-ul { margin: 0; padding-left: 0; color: rgba(255,255,255,0.82); font-size: 1.05rem; line-height: 1.95; list-style: none; }
.rl1-info-ul li { margin-bottom: 8px; padding-left: 4px; }

/* Task preview grid on intro page */
.rl1-task-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 6px; }
@media (max-width: 700px) { .rl1-task-preview-grid { grid-template-columns: repeat(2, 1fr); } }
.rl1-task-preview { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; border-radius: 12px; background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.25); }
.rl1-tp-num { width: 36px; height: 36px; border-radius: 50%; background: #7c3aed; color: #fff; font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.rl1-tp-label { font-size: .88rem; color: rgba(255,255,255,0.7); text-align: center; line-height: 1.4; }

/* ── Retry button ── */
.rl1-retry-btn { display: block; width: 100%; padding: 13px; margin-top: 10px; background: transparent; color: rgba(255,255,255,0.6); border: 1.5px solid rgba(255,255,255,0.18); border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s; }
.rl1-retry-btn:hover { border-color: rgba(255,255,255,0.45); color: #fff; }

/* ── Final Tips grid ── */
.rl1-tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 4px; }
@media (max-width: 900px) { .rl1-tips-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rl1-tips-grid { grid-template-columns: 1fr; } }

.rl1-tip-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 12px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.rl1-tip-icon { font-size: 1.6rem; line-height: 1; }
.rl1-tip-title { font-size: 1rem; font-weight: 700; color: var(--gold); line-height: 1.35; }
.rl1-tip-body { font-size: .95rem; color: rgba(255,255,255,0.75); line-height: 1.75; }
