/* Gene Therapy lesson. All rules scoped under .gt-* */
.gt-sc { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gt-note { font-size: 12.5px; color: var(--faint); text-align: center; line-height: 1.35; max-width: 320px; }
.gt-glab { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.gt-hero img { width: 250px; max-width: 100%; max-height: 36vh; object-fit: contain; display: block; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(123,92,253,.35)); }

/* gene copies */
.gt-g { display: inline-block; width: 12px; height: 40px; border-radius: 6px; flex: none; }
.gt-g.ok { background: var(--mint); }
.gt-g.bad { background: repeating-linear-gradient(180deg, #D85555 0 8px, transparent 8px 12px); border: 1.5px solid #D85555; }
.gt-g.add { display: none; background: var(--gold); box-shadow: 0 0 10px rgba(252,192,80,.7); }
.gt-people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.gt-p { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); transition: border-color .3s; }
.gt-p b { font-size: 14px; color: var(--text); }
.gt-pc { display: flex; gap: 8px; height: 44px; align-items: center; }
.gt-p span { font-size: 13px; font-weight: 700; color: var(--mint); }
.gt-p.pt span { color: #FF8A8A; }
.gt-p.pt.fixed { border-color: var(--gold); }
.gt-p.pt.fixed .gt-g.add { display: inline-block; animation: gtIn .4s ease-out both; }
.gt-p.pt.fixed span { color: var(--gold); }
@keyframes gtIn { from { opacity: 0; transform: scale(.4); } }
.gt-keys { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; color: var(--dim); }
.gt-keys span { display: inline-flex; align-items: center; gap: 6px; }
.gt-keys .gt-g { width: 8px; height: 16px; border-radius: 3px; }
.gt-keys .gt-g.bad { background: rgba(216,85,85,.4); }

/* dose */
.gt-tis { display: grid; gap: 6px; justify-content: center; }
.gt-tis.eye { grid-template-columns: repeat(8, 26px); }
.gt-tis.liver { grid-template-columns: repeat(12, 18px); gap: 5px; }
.gt-tis i { aspect-ratio: 1; border-radius: 50%; background: rgba(169,155,255,.14); border: 1.5px solid var(--violet-bright); transition: background .2s, border-color .2s; }
.gt-tis i.on { background: var(--gold); border-color: var(--gold); }
.gt-got { font-size: 14px; color: var(--dim); font-weight: 600; }
.gt-got b { font-family: var(--mono); color: var(--gold); font-size: 16px; }
.gt-imm { width: 100%; }

/* cards */
.gt-card { width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line-strong); }
.gt-card b { font-size: 17px; color: var(--text); }
.gt-card span { font-size: 14px; color: var(--dim); line-height: 1.35; }
.gt-two { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; }
.gt-two div { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--violet-bright); animation: gtIn2 .3s ease-out both; }
.gt-two div + div { animation-delay: .15s; }
.gt-two div.warn { border-color: var(--red); }
.gt-two b { font-size: 16px; color: var(--text); }
.gt-two span { font-size: 14px; color: var(--dim); line-height: 1.35; }
@keyframes gtIn2 { from { opacity: 0; transform: translateY(6px); } }

/* dividing cells */
.gt-div { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.gt-row { display: flex; flex-wrap: wrap; gap: 6px; min-height: 36px; }
.gt-row i { width: 34px; height: 34px; border-radius: 50%; background: rgba(169,155,255,.14); border: 1.5px solid var(--violet-bright); display: grid; place-items: center; }
.gt-row i.new { animation: gtIn .35s ease-out both; }
.gt-row i.has b { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--gold); }
.gt-loop { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--gold); }

/* the chromosome */
.gt-dna { display: flex; align-items: center; width: 100%; height: 44px; border-radius: 10px; overflow: hidden; background: var(--surface); border: 1.5px solid var(--line-strong); }
.gt-dna span { height: 100%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.gt-gap { flex: 1; }
.gt-gn { flex: 2.4; background: rgba(169,155,255,.2); color: var(--violet-bright); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.gt-gn.grow { flex: 4.2; }
.gt-gn.grow.hot { background: rgba(216,85,85,.35); color: #fff; }
.gt-ins { flex: 2.4; background: var(--gold); color: var(--bg); animation: gtIn .4s ease-out both; }

/* family */
.gt-fam { display: flex; align-items: center; gap: 8px; width: 100%; }
.gt-fam > i { font-style: normal; color: var(--faint); font-weight: 800; font-size: 20px; }
.gt-fp { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 10px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--mint); text-align: center; min-height: 110px; justify-content: center; }
.gt-fp.q { border-color: var(--line-strong); }
.gt-fp b { font-size: 15px; color: var(--text); }
.gt-fp span { font-size: 13.5px; color: var(--dim); line-height: 1.3; }

@media (max-height: 700px) {
  .gt-hero img { width: 190px; }
  .gt-tis.eye { grid-template-columns: repeat(8, 22px); }
  .gt-tis.liver { grid-template-columns: repeat(12, 15px); gap: 4px; }
}
