/* ============================================================
   READING LESSON 10 — MATCHING FEATURES  (rl10- prefix)
   ============================================================ */

.rl10-wrap { width: 100%; }

.rl10-content-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  position: relative;
}

.rl10-left-col  { min-width: 0; }
.rl10-right-col { min-width: 0; }
.rl10-no-hl .rl10-ctx { background: none !important; box-shadow: none !important; }

/* ── Instruction header ──────────────────────────────────────── */
.rl10-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;
}
.rl10-inst-label {
  font-size: .78rem; font-weight: 700; color: var(--gold);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px;
}
.rl10-inst-tips { font-size: .92rem; color: rgba(255,255,255,0.75); line-height: 1.5; }

/* ── Feature list box ────────────────────────────────────────── */
.rl10-feat-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.rl10-feat-title {
  font-size: .75rem; font-weight: 700; color: var(--gold);
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: 10px;
}
.rl10-feat-item {
  display: flex; gap: 10px; align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: .9rem; color: rgba(255,255,255,0.78);
}
.rl10-feat-item:last-child { border-bottom: none; }
.rl10-feat-key {
  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;
}
.rl10-feat-label { font-size: .9rem; color: rgba(255,255,255,0.82); }

/* ── Statement rows ─────────────────────────────────────────── */
.rl10-rows-box { display: flex; flex-direction: column; gap: 10px; }

.rl10-stat-row {
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s;
}
.rl10-row-correct { border-color: rgba(72,199,90,0.45); background: rgba(72,199,90,0.05); }
.rl10-row-wrong   { border-color: rgba(245,101,101,0.45); background: rgba(245,101,101,0.05); }

.rl10-row-top {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.rl10-row-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;
}
.rl10-row-text {
  flex: 1; font-size: .91rem; color: rgba(255,255,255,0.82); line-height: 1.5; min-width: 0;
}
.rl10-row-icon { font-size: 1rem; font-weight: 800; flex-shrink: 0; }
.rl10-icon-ok  { color: #5ee87a; }
.rl10-icon-err { color: #f87171; }

/* ── Select dropdown ────────────────────────────────────────── */
.rl10-select {
  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: .85rem;
  padding: 6px 10px;
  cursor: pointer;
  outline: none;
  appearance: auto;
  transition: border-color .15s, background .15s;
  flex-shrink: 0;
  min-width: 160px;
  max-width: 220px;
}
.rl10-select:focus { border-color: rgba(251,191,36,0.5); background: rgba(255,255,255,0.09); }
.rl10-select:disabled { cursor: default; opacity: .7; }
.rl10-select option { background: #1a1a2e; color: rgba(255,255,255,0.88); }

/* ── Correct note ───────────────────────────────────────────── */
.rl10-row-note {
  margin-top: 8px; font-size: .83rem; color: rgba(255,255,255,0.55); padding-left: 4px;
}
.rl10-correct-note strong { color: #5ee87a; }

/* ── Why? button ────────────────────────────────────────────── */
.rl10-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;
}
.rl10-why-btn:hover { background: rgba(251,191,36,0.25); }

/* ── Check / Retry ──────────────────────────────────────────── */
.rl10-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;
}
.rl10-check-btn:hover { opacity: .88; }

.rl10-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;
}
.rl10-retry-btn:hover { background: rgba(255,255,255,0.1); }

/* ── Score banner ───────────────────────────────────────────── */
.rl10-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;
}
.rl10-score-big   { font-size: 2.4rem; font-weight: 800; color: var(--gold); line-height: 1; }
.rl10-score-denom { font-size: 1.3rem; color: rgba(255,255,255,0.45); }
.rl10-score-label { font-size: .92rem; color: rgba(255,255,255,0.7); line-height: 1.5; }

/* ── Passage ────────────────────────────────────────────────── */
.rl10-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;
}
.rl10-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 ───────────────────────────── */
.rl10-para {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px;
}
.rl10-para:last-child { margin-bottom: 0; }
.rl10-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;
}
.rl10-para-body { flex: 1; }

/* ── Context highlights ─────────────────────────────────────── */
.rl10-ctx {
  background: rgba(251,191,36,0.12); border-radius: 4px; padding: 1px 3px;
  transition: background .3s, box-shadow .3s;
}
.rl10-ctx.active {
  background: rgba(251,191,36,0.28); box-shadow: 0 0 0 2px rgba(251,191,36,0.5);
  animation: rl10Pulse 1s ease 0.1s 2;
}
@keyframes rl10Pulse {
  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 ────────────────────────────────────────── */
.rl10-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 ──────────────────────────────────────────────── */
.rl10-arrow-svg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible; z-index: 10;
}

/* ── Info / Intro & Final pages ─────────────────────────────── */
.rl10-info-page { width: 100%; padding: 10px 0 40px; }

.rl10-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;
}
.rl10-info-h2   { font-size: 1.9rem; font-weight: 800; color: var(--text); margin: 0 0 14px; }
.rl10-info-lead { font-size: 1.05rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 28px; }
.rl10-info-section { margin-bottom: 28px; }
.rl10-info-section-title {
  font-size: .8rem; font-weight: 700; color: var(--gold);
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: 14px;
}
.rl10-info-ol { padding-left: 22px; color: rgba(255,255,255,0.8); font-size: .97rem; line-height: 1.8; }
.rl10-info-ol li { margin-bottom: 8px; }
.rl10-info-ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rl10-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);
}
.rl10-info-note {
  margin-top: 12px; font-size: .86rem; color: rgba(255,255,255,0.5);
  font-style: italic; padding: 8px 14px;
  background: rgba(255,255,255,0.03); border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Example box ────────────────────────────────────────────── */
.rl10-example-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 20px;
}
.rl10-ex-title { font-size: .75rem; font-weight: 700; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.rl10-ex-feat { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: .88rem; color: rgba(255,255,255,0.75); }
.rl10-ex-feat:last-child { border-bottom: none; }
.rl10-ex-key {
  min-width: 24px; height: 24px; border-radius: 50%;
  background: rgba(251,191,36,0.15); color: var(--gold);
  font-weight: 800; font-size: .8rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rl10-ex-q { display: flex; gap: 8px; font-size: .88rem; color: rgba(255,255,255,0.75); padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.05); line-height: 1.5; }
.rl10-ex-q:last-child { border-bottom: none; }
.rl10-ex-qnum { font-weight: 700; color: var(--gold); min-width: 20px; flex-shrink: 0; }
.rl10-ex-blank { display: inline-block; width: 36px; height: 1px; background: rgba(255,255,255,0.3); vertical-align: middle; }

/* ── Feature types grid ─────────────────────────────────────── */
.rl10-feat-types-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rl10-feat-type-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 16px 14px; text-align: center;
}
.rl10-ft-icon  { font-size: 1.5rem; margin-bottom: 8px; }
.rl10-ft-title { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.rl10-ft-body  { font-size: .8rem; color: rgba(255,255,255,0.55); line-height: 1.55; }

/* ── Task preview grid ──────────────────────────────────────── */
.rl10-task-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rl10-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;
}
.rl10-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;
}
.rl10-tp-label { font-size: .88rem; color: rgba(255,255,255,0.78); display: block; line-height: 1.3; font-weight: 600; }
.rl10-tp-sub   { font-size: .76rem; color: rgba(255,255,255,0.38); }

/* ── Final tips grid ────────────────────────────────────────── */
.rl10-tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rl10-tip-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 20px 18px;
}
.rl10-tip-icon  { font-size: 1.5rem; margin-bottom: 10px; }
.rl10-tip-title { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.rl10-tip-body  { font-size: .88rem; color: rgba(255,255,255,0.68); line-height: 1.65; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .rl10-content-wrap       { grid-template-columns: 1fr; }
  .rl10-example-box        { grid-template-columns: 1fr; }
  .rl10-feat-types-grid    { grid-template-columns: repeat(2, 1fr); }
  .rl10-task-preview-grid  { grid-template-columns: repeat(2, 1fr); }
  .rl10-tips-grid          { grid-template-columns: 1fr; }
}
