/* ============================================================
   READING LESSON 11 — SHORT-ANSWER QUESTIONS  (rl11- prefix)
   ============================================================ */

.rl11-wrap { width: 100%; }

.rl11-content-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  position: relative;
}

.rl11-left-col  { min-width: 0; }
.rl11-right-col { min-width: 0; }
.rl11-no-hl .rl11-ctx { background: none !important; box-shadow: none !important; }

/* ── Instruction header ──────────────────────────────────────── */
.rl11-inst-header {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.rl11-inst-label {
  font-size: .78rem; font-weight: 700; color: var(--gold);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px;
}
.rl11-inst-tips { font-size: .92rem; color: rgba(255,255,255,0.75); line-height: 1.5; }

/* ── Question rows ──────────────────────────────────────────── */
.rl11-rows-box { display: flex; flex-direction: column; gap: 14px; }

.rl11-q-row {
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color .2s;
}
.rl11-row-correct { border-color: rgba(72,199,90,0.45); background: rgba(72,199,90,0.05); }
.rl11-row-wrong   { border-color: rgba(245,101,101,0.45); background: rgba(245,101,101,0.05); }

.rl11-q-top {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px;
}
.rl11-q-num {
  min-width: 26px; height: 26px; border-radius: 50%;
  background: rgba(251,191,36,0.15); color: var(--gold);
  font-weight: 800; font-size: .82rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.rl11-q-text {
  flex: 1; font-size: .93rem; color: rgba(255,255,255,0.85); line-height: 1.55;
}
.rl11-row-icon { font-size: 1rem; font-weight: 800; flex-shrink: 0; margin-top: 2px; }
.rl11-icon-ok  { color: #5ee87a; }
.rl11-icon-err { color: #f87171; }

/* ── Input row ──────────────────────────────────────────────── */
.rl11-q-input-row {
  display: flex; align-items: center; gap: 10px;
}

.rl11-input {
  flex: 1;
  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: .93rem;
  padding: 8px 12px;
  outline: none;
  transition: border-color .15s, background .15s;
  font-family: inherit;
}
.rl11-input:focus { border-color: rgba(251,191,36,0.5); background: rgba(255,255,255,0.09); }
.rl11-input:disabled { cursor: default; opacity: .75; }
.rl11-input::placeholder { color: rgba(255,255,255,0.3); }

/* ── Correct answer note ────────────────────────────────────── */
.rl11-row-note {
  margin-top: 8px; font-size: .84rem; color: rgba(255,255,255,0.55);
}
.rl11-correct-ans { color: #5ee87a; }

/* ── Why? button ────────────────────────────────────────────── */
.rl11-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: 3px 10px;
  font-size: .8rem; font-weight: 700; cursor: pointer;
  transition: background .15s; white-space: nowrap; flex-shrink: 0;
}
.rl11-why-btn:hover { background: rgba(251,191,36,0.25); }

/* ── Check / Retry ──────────────────────────────────────────── */
.rl11-check-btn {
  margin-top: 20px; 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;
}
.rl11-check-btn:hover { opacity: .88; }

.rl11-retry-btn {
  margin-top: 20px; 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;
}
.rl11-retry-btn:hover { background: rgba(255,255,255,0.1); }

/* ── Score banner ───────────────────────────────────────────── */
.rl11-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: 16px 22px; margin-bottom: 20px;
}
.rl11-score-big   { font-size: 2.4rem; font-weight: 800; color: var(--gold); line-height: 1; }
.rl11-score-denom { font-size: 1.3rem; color: rgba(255,255,255,0.45); }
.rl11-score-label { font-size: .92rem; color: rgba(255,255,255,0.7); line-height: 1.5; }

/* ── Passage ────────────────────────────────────────────────── */
.rl11-passage-title-bar {
  font-size: .75rem; font-weight: 700; color: rgba(255,255,255,0.35);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px;
}
.rl11-passage-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 22px 24px;
  font-size: .97rem; line-height: 1.85; color: rgba(255,255,255,0.8);
}

/* ── Paragraph blocks in passage ───────────────────────────── */
.rl11-para {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px;
}
.rl11-para:last-child { margin-bottom: 0; }
.rl11-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;
}
.rl11-para-body { flex: 1; }

/* ── Context highlights ─────────────────────────────────────── */
.rl11-ctx {
  background: rgba(251,191,36,0.12); border-radius: 4px; padding: 1px 3px;
  transition: background .3s, box-shadow .3s;
}
.rl11-ctx.active {
  background: rgba(251,191,36,0.28); box-shadow: 0 0 0 2px rgba(251,191,36,0.5);
  animation: rl11Pulse 1s ease 0.1s 2;
}
@keyframes rl11Pulse {
  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 ────────────────────────────────────────── */
.rl11-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: .9rem; color: rgba(255,255,255,0.82); line-height: 1.65;
}

/* ── Arrow SVG ──────────────────────────────────────────────── */
.rl11-arrow-svg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible; z-index: 10;
}

/* ── Info / Intro & Final pages ─────────────────────────────── */
.rl11-info-page { width: 100%; padding: 10px 0 40px; }

.rl11-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;
}
.rl11-info-h2   { font-size: 1.9rem; font-weight: 800; color: var(--text); margin: 0 0 14px; }
.rl11-info-lead { font-size: 1.05rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 28px; }
.rl11-info-section { margin-bottom: 28px; }
.rl11-info-section-title {
  font-size: .8rem; font-weight: 700; color: var(--gold);
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: 14px;
}
.rl11-info-ol { padding-left: 22px; color: rgba(255,255,255,0.8); font-size: .97rem; line-height: 1.8; }
.rl11-info-ol li { margin-bottom: 8px; }
.rl11-info-ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rl11-info-ul li {
  font-size: .95rem; color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.03); border-radius: 8px;
  padding: 8px 14px; border: 1px solid rgba(255,255,255,0.06);
}

/* ── Example box ────────────────────────────────────────────── */
.rl11-example-box {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 20px;
}
.rl11-ex-instruction {
  font-size: .9rem; color: rgba(255,255,255,0.7); margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.07);
  line-height: 1.55;
}
.rl11-ex-questions { display: flex; flex-direction: column; gap: 8px; }
.rl11-ex-q { display: flex; gap: 10px; font-size: .9rem; color: rgba(255,255,255,0.78); line-height: 1.5; }
.rl11-ex-num { font-weight: 700; color: var(--gold); min-width: 20px; flex-shrink: 0; }

/* ── Golden rule box ────────────────────────────────────────── */
.rl11-rule-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(251,191,36,0.07); border: 1px solid rgba(251,191,36,0.25);
  border-radius: 12px; padding: 18px 20px;
}
.rl11-rule-icon { font-size: 1.6rem; flex-shrink: 0; }
.rl11-rule-title { font-size: .95rem; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.rl11-rule-box p { font-size: .92rem; color: rgba(255,255,255,0.72); line-height: 1.65; margin: 0; }

/* ── Task preview grid ──────────────────────────────────────── */
.rl11-task-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rl11-task-preview {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 14px; display: flex; align-items: center; gap: 10px;
}
.rl11-tp-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(251,191,36,0.15); color: var(--gold);
  font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rl11-tp-label { font-size: .88rem; color: rgba(255,255,255,0.78); display: block; line-height: 1.3; font-weight: 600; }
.rl11-tp-sub   { font-size: .76rem; color: rgba(255,255,255,0.38); }

/* ── Final tips grid ────────────────────────────────────────── */
.rl11-tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rl11-tip-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 20px 18px;
}
.rl11-tip-icon  { font-size: 1.5rem; margin-bottom: 10px; }
.rl11-tip-title { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.rl11-tip-body  { font-size: .88rem; color: rgba(255,255,255,0.68); line-height: 1.65; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .rl11-content-wrap      { grid-template-columns: 1fr; }
  .rl11-task-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .rl11-tips-grid         { grid-template-columns: 1fr; }
}
