/* ============================================================
   READING LESSON 12 — MIXED PRACTICE  (rl12- prefix)
   ============================================================ */

.rl12-wrap { width: 100%; }

.rl12-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  position: relative;
}
.rl12-left  { min-width: 0; }
.rl12-right { min-width: 0; }
.rl12-no-hl .rl12-ctx { background: none !important; box-shadow: none !important; }

/* ── Passage header ─────────────────────────────────────────── */
.rl12-passage-header {
  font-size: .78rem; font-weight: 700; color: var(--gold);
  letter-spacing: .07em; text-transform: uppercase;
  background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.2);
  border-radius: 8px; padding: 10px 16px; margin-bottom: 20px;
}

/* ── Section block ──────────────────────────────────────────── */
.rl12-sec {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px 18px 14px;
  margin-bottom: 18px;
}
.rl12-sec-title {
  font-size: .75rem; font-weight: 700; color: var(--gold);
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: 6px;
}
.rl12-sec-inst {
  font-size: .88rem; color: rgba(255,255,255,0.7); line-height: 1.55; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── Question numbers / text ────────────────────────────────── */
.rl12-qnum {
  min-width: 26px; height: 26px; border-radius: 50%;
  background: rgba(251,191,36,0.15); color: var(--gold);
  font-weight: 800; font-size: .8rem;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rl12-qtext { flex: 1; font-size: .9rem; color: rgba(255,255,255,0.82); line-height: 1.5; }
.rl12-icon-ok  { color: #5ee87a; font-weight: 800; font-size: .95rem; flex-shrink: 0; }
.rl12-icon-err { color: #f87171; font-weight: 800; font-size: .95rem; flex-shrink: 0; }

/* ── Row states ─────────────────────────────────────────────── */
.rl12-row-ok  { border-color: rgba(72,199,90,0.4) !important; background: rgba(72,199,90,0.04) !important; }
.rl12-row-err { border-color: rgba(245,101,101,0.4) !important; background: rgba(245,101,101,0.04) !important; }
.rl12-correct-note { font-size: .82rem; color: rgba(255,255,255,0.5); margin-top: 6px; display: block; }
.rl12-correct-note strong { color: #5ee87a; }

/* ── TRUE/FALSE/NOT GIVEN ───────────────────────────────────── */
.rl12-tfng-list { display: flex; flex-direction: column; gap: 10px; }
.rl12-tfng-row {
  background: rgba(255,255,255,0.03); border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 12px 14px;
}
.rl12-tfng-top { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.rl12-btn-row  { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.rl12-tfbtn {
  padding: 4px 12px; border-radius: 6px; font-size: .8rem; font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6); cursor: pointer; transition: all .15s;
}
.rl12-tfbtn:hover:not([disabled]) { background: rgba(255,255,255,0.12); color: var(--text); }
.rl12-tfbtn-sel { background: rgba(251,191,36,0.15); border-color: rgba(251,191,36,0.4); color: var(--gold); }
.rl12-tfbtn-ok  { background: rgba(72,199,90,0.2); border-color: rgba(72,199,90,0.5); color: #5ee87a; }
.rl12-tfbtn-err { background: rgba(245,101,101,0.2); border-color: rgba(245,101,101,0.5); color: #f87171; }
.rl12-tfbtn[disabled] { cursor: default; }

/* ── Sentence Completion / Short-answer ─────────────────────── */
.rl12-comp-list { display: flex; flex-direction: column; gap: 12px; }
.rl12-comp-row {
  background: rgba(255,255,255,0.03); border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 12px 14px;
}
.rl12-comp-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.rl12-comp-body { font-size: .9rem; color: rgba(255,255,255,0.8); line-height: 1.8; }

.rl12-inline-input {
  display: inline-block; width: 130px;
  background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 6px; color: rgba(255,255,255,0.9); font-size: .88rem;
  padding: 3px 8px; outline: none; font-family: inherit;
  transition: border-color .15s;
  vertical-align: baseline;
}
.rl12-inline-input:focus { border-color: rgba(251,191,36,0.5); }
.rl12-inline-input:disabled { opacity: .75; cursor: default; }

.rl12-block-input {
  width: 100%; background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.14); border-radius: 8px;
  color: rgba(255,255,255,0.9); font-size: .9rem; padding: 7px 12px;
  outline: none; font-family: inherit; transition: border-color .15s;
}
.rl12-block-input:focus { border-color: rgba(251,191,36,0.5); }
.rl12-block-input:disabled { opacity: .75; cursor: default; }
.rl12-block-input::placeholder { color: rgba(255,255,255,0.3); }

/* ── Heading bank ───────────────────────────────────────────── */
.rl12-hb {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 14px;
}
.rl12-hb-title { font-size: .72rem; font-weight: 700; color: var(--gold); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 8px; }
.rl12-hb-item  { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: .86rem; color: rgba(255,255,255,0.75); }
.rl12-hb-item:last-child { border-bottom: none; }
.rl12-hb-key   { min-width: 22px; font-weight: 700; color: var(--gold); font-size: .82rem; }

/* ── Select ─────────────────────────────────────────────────── */
.rl12-select {
  width: 100%; background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.14); border-radius: 8px;
  color: rgba(255,255,255,0.85); font-size: .86rem; padding: 7px 10px;
  cursor: pointer; outline: none; appearance: auto; transition: border-color .15s;
}
.rl12-select:focus { border-color: rgba(251,191,36,0.5); }
.rl12-select:disabled { cursor: default; opacity: .7; }
.rl12-select option { background: #1a1a2e; }

/* ── Multiple choice ────────────────────────────────────────── */
.rl12-mc-list { display: flex; flex-direction: column; gap: 14px; }
.rl12-mc-row {
  background: rgba(255,255,255,0.03); border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 12px 14px;
}
.rl12-mc-q    { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.rl12-mc-opts { display: flex; flex-direction: column; gap: 6px; }
.rl12-mc-opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  font-size: .87rem; color: rgba(255,255,255,0.78);
  cursor: pointer; transition: all .15s; line-height: 1.5;
}
.rl12-mc-opt:hover:not([disabled]) { background: rgba(255,255,255,0.07); }
.rl12-mc-opt.sel { background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.35); color: var(--text); }
.rl12-mc-opt.ok  { background: rgba(72,199,90,0.12); border-color: rgba(72,199,90,0.4); color: #5ee87a; }
.rl12-mc-opt.err { background: rgba(245,101,101,0.12); border-color: rgba(245,101,101,0.4); color: #f87171; }
.rl12-mc-opt.show-correct { background: rgba(72,199,90,0.07); border-color: rgba(72,199,90,0.3); }
.rl12-mc-key { min-width: 22px; font-weight: 800; color: var(--gold); font-size: .85rem; flex-shrink: 0; }

/* ── Summary completion ─────────────────────────────────────── */
.rl12-summary-box {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 16px 18px;
  font-size: .91rem; color: rgba(255,255,255,0.8); line-height: 2.2;
}
.rl12-sum-input {
  display: inline-block; width: 120px;
  background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 6px; color: rgba(255,255,255,0.9); font-size: .87rem;
  padding: 2px 8px; outline: none; font-family: inherit;
  transition: border-color .15s; vertical-align: baseline;
}
.rl12-sum-input:focus   { border-color: rgba(251,191,36,0.5); }
.rl12-sum-input:disabled { opacity: .75; cursor: default; }
.rl12-sum-input.rl12-sum-ok  { border-color: rgba(72,199,90,0.5); background: rgba(72,199,90,0.08); }
.rl12-sum-input.rl12-sum-err { border-color: rgba(245,101,101,0.5); background: rgba(245,101,101,0.08); }
.rl12-sum-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(251,191,36,0.15); color: var(--gold);
  font-size: .75rem; font-weight: 800; vertical-align: middle; margin: 0 2px;
}
.rl12-sum-why {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; border-radius: 50%;
  background: rgba(251,191,36,0.2); border: 1px solid rgba(251,191,36,0.5);
  color: var(--gold); font-size: .75rem; font-weight: 800;
  cursor: pointer; vertical-align: middle; margin: 0 2px;
  transition: background .15s;
}
.rl12-sum-why:hover { background: rgba(251,191,36,0.35); }

/* ── Why? button ────────────────────────────────────────────── */
.rl12-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 8px;
  font-size: .78rem; font-weight: 700; cursor: pointer;
  transition: background .15s; white-space: nowrap; flex-shrink: 0;
}
.rl12-why-btn:hover { background: rgba(251,191,36,0.25); }

/* ── Check / Retry ──────────────────────────────────────────── */
.rl12-check-btn {
  margin-top: 8px; width: 100%; padding: 13px;
  background: var(--gold); color: #111; border: none;
  border-radius: 10px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: opacity .15s;
}
.rl12-check-btn:hover { opacity: .88; }
.rl12-retry-btn {
  margin-top: 8px; width: 100%; padding: 11px;
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.15); border-radius: 10px;
  font-size: .95rem; font-weight: 600; cursor: pointer; transition: background .15s;
}
.rl12-retry-btn:hover { background: rgba(255,255,255,0.1); }

/* ── Score banner ───────────────────────────────────────────── */
.rl12-score-banner {
  display: flex; align-items: center; gap: 10px;
  background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.25);
  border-radius: 12px; padding: 14px 20px; margin-bottom: 20px;
}
.rl12-score-big   { font-size: 2.2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.rl12-score-denom { font-size: 1.2rem; color: rgba(255,255,255,0.4); }
.rl12-score-label { font-size: .9rem; color: rgba(255,255,255,0.7); line-height: 1.5; }

/* ── Passage right column ───────────────────────────────────── */
.rl12-ptitle {
  font-size: .75rem; font-weight: 700; color: rgba(255,255,255,0.35);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px;
}
.rl12-pcard {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 22px 24px;
  font-size: .96rem; line-height: 1.85; color: rgba(255,255,255,0.8);
}
.rl12-para { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.rl12-para:last-child { margin-bottom: 0; }
.rl12-para-label {
  min-width: 28px; height: 28px; border-radius: 50%;
  background: rgba(251,191,36,0.15); color: var(--gold);
  font-weight: 800; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.rl12-para-body { flex: 1; }

/* ── Context highlights ─────────────────────────────────────── */
.rl12-ctx {
  background: rgba(251,191,36,0.12); border-radius: 4px; padding: 1px 3px;
  transition: background .3s, box-shadow .3s;
}
.rl12-ctx.active {
  background: rgba(251,191,36,0.28); box-shadow: 0 0 0 2px rgba(251,191,36,0.5);
  animation: rl12Pulse 1s ease 0.1s 2;
}
@keyframes rl12Pulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(251,191,36,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(251,191,36,0.15); }
}

/* ── Explanation box ────────────────────────────────────────── */
.rl12-exp-box {
  margin-top: 14px; padding: 14px 18px;
  background: rgba(251,191,36,0.07); border: 1px solid rgba(251,191,36,0.3);
  border-radius: 10px; font-size: .88rem; color: rgba(255,255,255,0.82); line-height: 1.65;
}

/* ── Arrow SVG ──────────────────────────────────────────────── */
.rl12-svg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible; z-index: 10;
}

/* ── Results page ───────────────────────────────────────────── */
.rl12-results-page { width: 100%; padding: 10px 0 40px; }
.rl12-info-badge {
  display: inline-block; background: rgba(251,191,36,0.12); color: var(--gold);
  border: 1px solid rgba(251,191,36,0.3); border-radius: 20px;
  padding: 4px 14px; font-size: .8rem; font-weight: 700; letter-spacing: .05em; margin-bottom: 14px;
}
.rl12-info-h2 { font-size: 1.9rem; font-weight: 800; color: var(--text); margin: 0 0 24px; }
.rl12-info-section-title {
  font-size: .78rem; font-weight: 700; color: var(--gold);
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: 16px;
}

.rl12-overall-card {
  background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.25);
  border-radius: 16px; padding: 28px 32px; margin-bottom: 28px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.rl12-ov-score  { font-size: 3rem; font-weight: 800; color: var(--gold); line-height: 1; }
.rl12-ov-denom  { font-size: 1.5rem; color: rgba(255,255,255,0.4); }
.rl12-ov-pct    { font-size: 2rem; font-weight: 700; color: rgba(255,255,255,0.6); }
.rl12-ov-label  { font-size: .9rem; color: rgba(255,255,255,0.5); }
.rl12-ov-band   { font-size: 1rem; color: rgba(255,255,255,0.8); margin-left: auto; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 10px 20px; }

.rl12-res-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 32px; }
.rl12-res-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 18px;
}
.rl12-res-num   { font-size: .72rem; font-weight: 700; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.rl12-res-title { font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: 10px; line-height: 1.3; }
.rl12-res-score { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.rl12-res-pct   { font-size: .85rem; color: rgba(255,255,255,0.45); font-weight: 400; }
.rl12-res-bar-wrap { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.rl12-res-bar   { height: 100%; background: var(--gold); border-radius: 3px; transition: width .4s; }
.rl12-res-notdone { font-size: .82rem; color: rgba(255,255,255,0.3); font-style: italic; }

.rl12-breakdown { margin-top: 8px; }
.rl12-breakdown-grid { display: flex; flex-direction: column; gap: 10px; }
.rl12-bd-row { display: flex; align-items: center; gap: 12px; }
.rl12-bd-label { font-size: .86rem; color: rgba(255,255,255,0.7); min-width: 200px; flex-shrink: 0; }
.rl12-bd-score { font-size: .88rem; font-weight: 700; min-width: 40px; text-align: right; flex-shrink: 0; }
.rl12-bd-bar-wrap { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.rl12-bd-bar { height: 100%; border-radius: 3px; transition: width .4s; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .rl12-layout    { grid-template-columns: 1fr; }
  .rl12-res-grid  { grid-template-columns: 1fr; }
  .rl12-bd-label  { min-width: 150px; }
}
