/* 03/11/2026: giao diện bài giảng chữ (Ngữ văn tenant 89) — chỉ áp dụng trong khung .nv-lesson của khối "text" */
#player .document-title:has(+ .page-rich-content .nv-hero) { display:none; }
#player .text-stage #hop:has(.nv-lesson) { background:#fbf8f3; }
.nv-lesson { --nv:#b4232c; --nv-2:#c2410c; --nv-soft:#fdf1ef; --nv-ink:#2b2522; --nv-sub:#7c6f66; --nv-line:#eadfd3; --nv-paper:#fffdf8;
  color:var(--nv-ink); font-size:17px; line-height:1.8; }
.nv-lesson > :first-child { margin-top:0; }

/* Băng tiêu đề */
.nv-lesson .nv-hero { position:relative; overflow:hidden; margin:0 0 26px; padding:22px 26px 20px; border-radius:20px;
  background:linear-gradient(120deg,#b4232c 0%,#d9480f 55%,#f59f00 120%); color:#fff; box-shadow:0 12px 30px -14px rgba(180,35,44,.55); }
.nv-lesson .nv-hero::after { content:""; position:absolute; right:-40px; top:-60px; width:220px; height:220px; border-radius:50%; background:rgba(255,255,255,.12); }
.nv-lesson .nv-hero::before { content:""; position:absolute; right:70px; bottom:-70px; width:150px; height:150px; border-radius:50%; background:rgba(255,255,255,.08); }
.nv-lesson .nv-kicker { position:relative; z-index:1; font-size:12.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; opacity:.9; }
.nv-lesson .nv-title { position:relative; z-index:1; margin-top:4px; font-size:clamp(22px,3vw,30px); font-weight:800; line-height:1.3; }

/* Đề mục */
.nv-lesson h3, .nv-lesson h4 { display:flex; align-items:center; gap:12px; margin:30px 0 14px !important; font-size:1.18em !important; font-weight:800; color:var(--nv); line-height:1.35; }
.nv-lesson h3::after, .nv-lesson h4::after { content:""; flex:1; height:2px; border-radius:2px; background:linear-gradient(90deg,var(--nv-line),transparent); }
.nv-lesson .nv-no { display:inline-grid; place-items:center; min-width:34px; height:34px; padding:0 8px; border-radius:11px; background:var(--nv); color:#fff; font-size:15px; font-weight:800; box-shadow:0 6px 14px -8px rgba(180,35,44,.8); }

/* Danh sách */
.nv-lesson ul { list-style:none !important; padding-left:0 !important; margin:6px 0 14px; }
.nv-lesson ul > li { position:relative; padding-left:24px; margin:7px 0 !important; }
.nv-lesson ul > li::before { content:""; position:absolute; left:4px; top:.72em; width:8px; height:8px; border-radius:2px; transform:rotate(45deg); background:var(--nv-2); }
.nv-lesson ul ul > li::before { width:6px; height:6px; border-radius:50%; transform:none; background:#d6b9a3; top:.78em; }
.nv-lesson ol { padding-left:22px; }
.nv-lesson ol > li { margin:7px 0; padding-left:4px; }
.nv-lesson ol > li::marker { color:var(--nv); font-weight:800; }
.nv-lesson b, .nv-lesson strong { color:#7a1c22; }
.nv-lesson .nv-arrow { color:var(--nv-2); font-weight:800; }

/* Khung thơ / ngữ liệu */
.nv-lesson blockquote, .nv-lesson .nv-poem { position:relative; margin:18px auto 22px !important; max-width:620px; padding:26px 30px 20px !important;
  background:var(--nv-paper) !important; border:1px solid var(--nv-line) !important; border-left:1px solid var(--nv-line) !important; border-radius:18px !important;
  box-shadow:0 10px 26px -18px rgba(90,60,30,.45); text-align:center; font-family:"Lora","Noto Serif",Georgia,"Times New Roman",serif; font-size:1.08em; line-height:1.95; color:#3b2f28; }
.nv-lesson blockquote::before { content:"“"; position:absolute; left:16px; top:-6px; font-size:64px; line-height:1; color:#e8c9a8; font-family:Georgia,serif; }
.nv-lesson blockquote p { margin:0 0 6px !important; }
.nv-lesson blockquote i { display:block; margin-top:8px; font-size:.86em; color:var(--nv-sub); }

/* Kết luận ⇒ */
.nv-lesson .nv-key { margin:12px 0 !important; padding:12px 16px 12px 46px; position:relative; border-radius:14px; background:#fff4e6; border:1px solid #ffd8a8; color:#5c3a12; font-weight:600; }
.nv-lesson .nv-key::before { content:"➜"; position:absolute; left:16px; top:11px; color:#e8590c; font-weight:900; }

/* Thẻ */
.nv-lesson .nv-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; margin:14px 0 20px; }
.nv-lesson .nv-card { --c:#b4232c; position:relative; padding:16px 18px 14px; border-radius:16px; background:#fff; border:1px solid var(--nv-line); border-top:5px solid var(--c); box-shadow:0 8px 20px -16px rgba(60,40,20,.45); }
.nv-lesson .nv-card:nth-child(4n+2) { --c:#0b7285; }
.nv-lesson .nv-card:nth-child(4n+3) { --c:#2b8a3e; }
.nv-lesson .nv-card:nth-child(4n+4) { --c:#5f3dc4; }
.nv-lesson .nv-card-t { display:flex; align-items:center; gap:8px; margin-bottom:6px; font-weight:800; color:var(--c); font-size:1.02em; }
.nv-lesson .nv-card p { margin:0 0 6px !important; }
.nv-lesson .nv-card ul { margin:2px 0 0; }

/* Ghi nhớ / ví dụ */
.nv-lesson .nv-note { margin:16px 0 20px; padding:16px 18px; border-radius:16px; background:linear-gradient(180deg,#f1fbf6,#e7f7ee); border:1px solid #b2f2bb; }
.nv-lesson .nv-note-t { display:inline-block; margin-bottom:6px; padding:2px 12px; border-radius:999px; background:#2b8a3e; color:#fff; font-size:13px; font-weight:800; letter-spacing:.03em; }
.nv-lesson .nv-ex { margin:12px 0 16px; padding:14px 18px; border-radius:14px; background:#f3f0ff; border:1px dashed #b197fc; }
.nv-lesson .nv-ex-t { font-weight:800; color:#5f3dc4; margin-bottom:4px; }
.nv-lesson .nv-tag { display:inline-block; margin:2px 3px; padding:1px 10px; border-radius:999px; background:var(--nv-soft); color:var(--nv); font-size:.9em; font-weight:700; border:1px solid #f5c2c0; }

/* Bảng */
.nv-lesson table { width:100%; margin:14px 0 20px; border-collapse:separate !important; border-spacing:0; border:1px solid var(--nv-line); border-radius:14px; overflow:hidden; background:#fff; }
.nv-lesson th { background:var(--nv); color:#fff; text-align:left; font-weight:700; }
.nv-lesson th, .nv-lesson td { border:0 !important; border-bottom:1px solid var(--nv-line) !important; padding:10px 14px !important; vertical-align:top; }
.nv-lesson tr:last-child td { border-bottom:0 !important; }
.nv-lesson tbody tr:nth-child(even) td { background:#fdf8f3; }

/* Hồ sơ tác giả */
.nv-lesson .nv-profile { display:flex; gap:20px; align-items:flex-start; margin:14px 0 20px; padding:18px; border-radius:18px; background:#fff; border:1px solid var(--nv-line); box-shadow:0 10px 24px -18px rgba(60,40,20,.5); }
.nv-lesson .nv-profile img { flex:0 0 140px; width:140px !important; height:170px !important; object-fit:cover; border-radius:14px; }
.nv-lesson .nv-profile > div { flex:1; min-width:0; }
.nv-lesson .nv-profile-n { font-size:1.25em; font-weight:800; color:var(--nv); margin-bottom:4px; }

/* Ảnh */
.nv-lesson .nv-gal { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; margin:18px 0 22px; }
.nv-lesson .nv-fig { margin:0; padding:8px 8px 6px; border-radius:16px; background:#fff; border:1px solid var(--nv-line); box-shadow:0 10px 22px -18px rgba(60,40,20,.55); }
.nv-lesson .nv-fig img { display:block; width:100%; border-radius:11px; }
.nv-lesson .nv-cap { padding:7px 4px 2px; text-align:center; font-size:14px; font-weight:600; color:var(--nv-sub); }
.nv-lesson .nv-gal.nv-wide { grid-template-columns:1fr; max-width:780px; margin-left:auto; margin-right:auto; }
.nv-lesson .nv-cap:empty { display:none; }

@media (max-width:640px) {
  .nv-lesson { font-size:16px; }
  .nv-lesson .nv-hero { padding:18px 18px 16px; border-radius:16px; }
  .nv-lesson blockquote { padding:20px 10px 14px !important; font-size:.94em; line-height:1.8; }
  .nv-lesson blockquote::before { font-size:44px; left:10px; }
  .nv-lesson .nv-profile { flex-direction:column; }
  .nv-lesson .nv-profile img { width:120px !important; height:140px !important; }
}
