/* LNT Portal — giao diện trang đọc: sáng, sạch, đọc tốt trên điện thoại. */
:root {
  --ink: #14181f; --ink-2: #3d4657; --muted: #6b7488; --line: #e6e9f0; --bg: #f6f7fb; --surface: #fff;
  --primary: #1f6feb; --primary-dark: #1657bd; --ok: #128a4b; --warn: #b2650a; --radius: 14px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 30px; font-weight: 750; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: #cfd6e4; text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }

/* Header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.head-in { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text small { color: var(--muted); font-size: 12px; }
.site-nav { display: flex; gap: 4px; flex: 1; overflow: auto; }
.site-nav a { padding: 7px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.site-nav a:hover { background: #f0f3f9; text-decoration: none; }
.site-search { display: flex; gap: 4px; }
.site-search input { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 14px; width: 190px; background: var(--bg); }
.site-search button { border: 0; background: none; cursor: pointer; font-size: 16px; }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; font-size: 18px; padding: 4px 10px; cursor: pointer; }

/* Bố cục */
main.wrap { padding-top: 22px; padding-bottom: 40px; }
/* align-items: stretch để cột phải cao bằng bài viết — nhờ vậy menu gim đi theo suốt trang. */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: stretch; }
.col-side { display: grid; align-content: start; gap: 16px; min-width: 0; }
.side-sticky { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 94px); overflow: hidden; }
.side-ads { flex: 0 1 auto; min-height: 0; max-height: 42%; display: grid; gap: 12px; overflow: auto; overscroll-behavior: contain; position: relative; z-index: 1; }
.side-sticky:not(:has(.side-toc)) .side-ads { max-height: none; overflow: visible; flex: 0 0 auto; }
.side-ads .ad-slot, .side-ads .ad-body, .side-ads iframe, .side-ads ins { max-width: 100% !important; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card-img { display: block; aspect-ratio: 16/9; background: #eef1f7; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .noimg { width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px; font-weight: 800; color: #c3cbdb; }
.card-img.img-failed { background: linear-gradient(135deg, #eef2fa, #e3e9f6); }
figure.img-failed { display: none; }
.card-body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.card-body h3 a { color: var(--ink); }
.card-body p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.chip { align-self: start; background: #eaf1ff; color: var(--primary-dark); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 700; }
.hero { margin-bottom: 26px; }
.hero .card-big { flex-direction: row; }
.hero .card-big .card-img { flex: 1 1 55%; aspect-ratio: auto; min-height: 280px; }
.hero .card-big .card-body { flex: 1 1 45%; align-content: center; padding: 26px; }
.hero .card-big h3 { font-size: 26px; }
.grid-ad { grid-column: 1 / -1; }
.page-head { margin-bottom: 18px; display: grid; gap: 6px; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }
.empty.big h1 { font-size: 54px; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin: 26px 0; color: var(--muted); }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.top-list { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 10px; }
.top-list a { color: var(--ink); font-weight: 600; }
.top-list small { display: block; color: var(--muted); font-size: 12.5px; }

/* Bài viết */
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px 30px; box-shadow: var(--shadow); }
.crumbs { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.post h1 { margin-bottom: 10px; }
.post-parent { color: var(--ink-2); margin: 0 0 8px; }
.post-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.post-cover { margin: 0 0 18px; }
.post-cover img { width: 100%; border-radius: 12px; }
.post-intro { color: var(--ink-2); font-style: italic; border-left: 3px solid var(--primary); padding-left: 14px; margin-bottom: 18px; }
.post-body { font-size: 18px; }
.post-body h2 { margin: 26px 0 10px; }
.post-body h3 { margin: 22px 0 8px; font-size: 19px; }
.post-body img { border-radius: 10px; }
.post-body blockquote { margin: 18px 0; padding: 4px 18px; border-left: 3px solid var(--line); color: var(--ink-2); }

/* Nút “Xem thêm” + quảng cáo hiện khi bấm */
.reveal-zone { position: relative; }
.reveal-fade { height: 110px; margin-top: -110px; position: relative; z-index: 1; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 85%); pointer-events: none; }
/* Quảng cáo trong phần mồi phải nổi lên trên lớp mờ (không bị làm nhạt → vẫn tính là hiển thị hợp lệ) */
#postBody .ad-slot { position: relative; z-index: 2; background: var(--card, #fff); }
.reveal-box { text-align: center; padding: 6px 0 26px; display: grid; gap: 10px; justify-items: center; }
.reveal-note { margin: 0; color: var(--muted); font-size: 14.5px; }
.reveal-btn { font: inherit; font-weight: 800; font-size: 17px; color: #fff; background: var(--primary); border: 0; border-radius: 12px;
  padding: 14px 34px; cursor: pointer; box-shadow: 0 6px 18px rgba(31,111,235,.28); display: inline-flex; gap: 10px; align-items: center; }
.reveal-btn:hover { background: var(--primary-dark); }
.reveal-btn span { transition: transform .2s; }
.reveal-btn:hover span { transform: translateY(2px); }
.reveal-btn.loading { opacity: .7; cursor: progress; }
.reveal-ad:not(:empty) { margin: 8px 0 18px; }

/* Khối quảng cáo */
.ad-slot { margin: 22px 0; text-align: center; background: #fbfcfe; border: 1px dashed var(--line); border-radius: 12px; padding: 10px; overflow: hidden; }
.ad-slot.ad-click { cursor: pointer; }
.ad-slot.ad-click:hover { border-color: var(--primary); }
.ad-slot .ad-label { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #9aa3b5; margin-bottom: 6px; }
.ad-slot .ad-body { min-height: 50px; }
.ad-slot.ad-article_top .ad-body,
.ad-slot.ad-before_more .ad-body,
.ad-slot.ad-article_bottom .ad-body { min-height: 90px; }
.ad-slot.ad-body_top .ad-body { min-height: 70px; }
.ad-slot.ad-sidebar { margin: 0; }
.ad-slot.ad-sidebar .ad-body { min-height: 250px; }
.sticky-ad { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: 6px 10px; max-height: 28vh; overflow: hidden; }
body.has-sticky-ad { padding-bottom: 96px; }
.sticky-ad .ad-slot { margin: 0; border: 0; padding: 0; background: none; }
.sticky-x { position: absolute; top: -14px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
body.content-opened .sticky-ad { box-shadow: 0 -4px 14px rgba(16,24,40,.08); }
@media (min-width: 861px) { .ad-only-mobile { display: none; } }
@media (max-width: 860px) { .ad-only-desktop { display: none; } }

/* Điều hướng chương */
.post-after { margin-top: 26px; }

/* Danh sách chương dùng chung cho menu bên phải và menu dưới bài */
.chap-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.chap-items a { display: flex; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: 9px;
  color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.chap-items a:hover { background: #eff3fb; text-decoration: none; }
.chap-n { flex: none; min-width: 22px; text-align: right; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.chap-t { min-width: 0; }
.chap-items.plain a { padding-left: 12px; }
.chap-items li.cur > a { background: #e9f1fe; color: var(--primary-dark); font-weight: 750; }
.chap-items li.cur .chap-n { color: var(--primary); }

/* Menu chương gim bên phải (máy tính) */
.side-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; min-height: 160px; flex: 1 1 auto; max-height: 58%; overflow: hidden; position: relative; z-index: 2; }
.side-toc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.side-toc-head span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--ink-2); }
.side-toc-head b { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.side-toc-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 8px 8px 10px; }

/* Menu chương đặt ngay dưới nội dung mỗi chương (điện thoại) */
.chap-jump { margin: 20px 0 0; }
.chap-list { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fbfcfe; }
.chap-list summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
.chap-list summary::-webkit-details-marker { display: none; }
.chap-list summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
.chap-list[open] summary::before { transform: rotate(90deg); }
.chap-list-body { margin-top: 8px; max-height: 340px; overflow: auto; }
.chap-list .chap-items { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.chap-nav { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin: 14px 0 0; }
.chap-nav .btn { justify-content: center; max-width: 100%; }
.chap-nav .chap-prev, .chap-nav .chap-done { flex: 1 1 200px; }
.chap-nav .chap-next { flex: 1 1 260px; font-size: 16px; padding: 12px 18px; }
.chap-gap { flex: 1 1 200px; }
.related { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 22px; }
.related h2 { margin-bottom: 14px; }

/* Chân trang */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding: 26px 0 40px; margin-top: 30px; }
.foot-in { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; }
.foot-links { display: flex; gap: 16px; }
.copy { color: var(--muted); font-size: 13.5px; margin-top: 18px; }

@media (max-width: 980px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .side-sticky { position: static; max-height: none; }
  .side-ads, .ad-sidebar, .ad-only-desktop { display: none !important; }
  .side-toc { display: none; }
  .hero .card-big { flex-direction: column; }
  .hero .card-big .card-img { min-height: 200px; aspect-ratio: 16/9; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  h1 { font-size: 25px; }
  .post { padding: 18px 16px 24px; border-radius: 12px; }
  .post-body { font-size: 17px; }
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; top: 62px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 8px; }
  .site-nav.open { display: flex; }
  .site-search input { width: 130px; }
  .sticky-ad { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  body.has-sticky-ad { padding-bottom: 110px; }
}

/* Quảng cáo hiện sẵn trước khi bấm “Xem thêm” */
#postBody > .ad-slot:last-child { margin-bottom: 0; }
.ad-article_after_first{margin:18px 0}
.ad-before_more{margin:0 0 14px}
.reveal-zone .ad-slot{margin-left:auto;margin-right:auto}

/* Video YouTube nhúng trong bài — bấm mới nạp trình phát */
.video-embed{margin:20px 0;position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#0f172a}
.video-embed img,.video-embed iframe{width:100%;height:100%;display:block;border:0;object-fit:cover}
.video-play{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:none;cursor:pointer}
.video-btn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:68px;height:48px;border-radius:12px;
  background:rgba(15,23,42,.78);transition:background .15s}
.video-btn::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-40%,-50%);border-style:solid;
  border-width:10px 0 10px 17px;border-color:transparent transparent transparent #fff}
.video-play:hover .video-btn{background:#e11d48}
.video-embed noscript a{position:absolute;left:12px;bottom:12px;color:#fff;font-size:13px}

/* Trang chương: giữ khoảng cách đều giữa các khối dù chương 2 trở đi không có ảnh bìa và lời dẫn */
.post-intro { color: var(--ink-2); }
.post > .ad-slot:first-of-type { margin-top: 16px; }
@media (max-width: 720px) {
  .chap-nav { flex-direction: column; }
  .chap-nav .btn { flex: none; width: 100%; }
  .chap-gap { display: none; }
  .chap-list .chap-items { grid-template-columns: 1fr; }
}

/* Trang tĩnh (About, Contact, Privacy Policy…) + biểu mẫu liên hệ */
.static-page .page-body h2 { margin: 28px 0 10px; font-size: 20px; }
.static-page .page-body ul, .static-page .page-body ol { padding-left: 22px; }
.static-page .page-body li { margin-bottom: 6px; }
.static-page .page-body .muted { color: var(--muted); font-size: 14.5px; }
.contact-form { display: grid; gap: 12px; margin: 16px 0 4px; background: #fbfcfe; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.contact-form label { display: grid; gap: 5px; font-weight: 600; font-size: 14.5px; }
.contact-form input, .contact-form textarea { font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.contact-form .cf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.contact-form .cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button { justify-self: start; }

/* Khoá nội dung + thanh Unlock */
body:not(.content-opened) .post-after {
  filter: blur(18px);
  pointer-events: none;
  user-select: none;
  max-height: 260px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 35%, transparent 95%);
  mask-image: linear-gradient(#000 35%, transparent 95%);
}
body:not(.content-opened) .sticky-ad { display: none; }
.reveal-zone.is-locked { position: relative; margin-top: -8px; }
.lock-bar {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 100%;
  background: #1a1a1a; color: #fff; border-radius: 16px;
  padding: 14px 14px 14px 16px;
  margin: 8px 0 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.lock-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(180deg, #ffb020, #f08a00);
  display: grid; place-items: center; font-size: 20px;
}
.lock-copy { flex: 1 1 auto; min-width: 0; }
.lock-copy b { display: block; font-size: 15.5px; line-height: 1.25; }
.lock-copy p { margin: 3px 0 0; color: #c8c8c8; font-size: 13px; line-height: 1.35; }
.lock-bar .reveal-btn {
  flex: none; margin: 0; box-shadow: none; border-radius: 12px;
  background: linear-gradient(180deg, #ffb020, #f08a00); color: #1a1200;
  padding: 12px 18px; font-size: 15px; font-weight: 800; min-width: 96px; justify-content: center;
}
.lock-bar .reveal-btn:hover { background: #ffc24a; }
.lock-bar .reveal-btn.loading { opacity: .75; }
@media (max-width: 560px) {
  .lock-bar { flex-wrap: wrap; padding: 12px; margin: 6px 0 16px; }
  .lock-copy { flex: 1 1 calc(100% - 60px); }
  .lock-bar .reveal-btn { width: 100%; }
  .lock-copy b { font-size: 14.5px; }
}

/* Popup quảng cáo full màn hình */
.ad-modal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8,10,16,.72); display: grid; place-items: center; padding: 18px;
}
.ad-modal[hidden] { display: none !important; }
body.ad-modal-open { overflow: hidden; }
.ad-modal-card {
  width: min(720px, 100%); max-height: min(88vh, 900px);
  background: #fff; border-radius: 16px; padding: 18px 16px 16px;
  position: relative; overflow: auto; display: grid; gap: 12px;
}
.ad-modal-x {
  position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0;
  border-radius: 50%; background: #eef1f6; font-size: 22px; cursor: pointer; color: #334;
}
.ad-modal-kicker { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8b93a7; }
.ad-modal-body { min-height: 250px; min-width: 0; display: grid; justify-items: center; align-content: start; gap: 12px; }
.ad-modal-body.shown { min-height: 280px; }
.ad-modal-body ins, .ad-modal-body iframe, .ad-modal-body .adsbygoogle { max-width: 100%; }
.ad-modal-go { justify-self: stretch; text-align: center; justify-content: center; }
.ad-modal-go[disabled], .ad-modal-x[disabled] { opacity: .55; cursor: not-allowed; }
.ad-wait, .ad-wait-num, .ad-wait-lbl { display: none !important; }

/* Nút chương gim + sheet */
.chap-fab {
  position: fixed; right: 12px; top: 46%; z-index: 55;
  transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  background: #2f6bff; color: #fff; border: 0; border-radius: 999px;
  padding: 10px 14px; font: inherit; font-weight: 800; font-size: 14px;
  box-shadow: 0 8px 22px rgba(31,80,220,.35); cursor: pointer;
}
.chap-fab-ico { font-size: 15px; line-height: 1; }
body.chap-open { overflow: hidden; }
.chap-overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(15,18,28,.45);
}
.chap-overlay[hidden], .chap-sheet[hidden] { display: none !important; }
.chap-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 81;
  background: #fff; border-radius: 22px 22px 0 0;
  height: 60vh; height: 60dvh; max-height: 60vh; max-height: 60dvh; display: flex; flex-direction: column;
  box-shadow: 0 -16px 48px rgba(16,24,40,.2);
  padding-bottom: env(safe-area-inset-bottom, 8px);
}
.chap-sheet-handle { width: 36px; height: 4px; border-radius: 4px; background: #d8deea; margin: 8px auto 0; }
.chap-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px 10px; border-bottom: 1px solid #eef1f6; }
.chap-sheet-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chap-sheet-book { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #eef3ff; display: grid; place-items: center; font-size: 18px; }
.chap-sheet-title b { display: block; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chap-sheet-title small { color: var(--muted); font-size: 12.5px; }
.chap-sheet-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f2f4f8; font-size: 22px; cursor: pointer; color: #445; line-height: 1; }
.chap-sheet-body { overflow: auto; padding: 4px 8px 16px; -webkit-overflow-scrolling: touch; }
.chap-sheet .chap-items { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.chap-sheet .chap-items li { border-bottom: 1px solid #f1f3f8; }
.chap-sheet .chap-items a {
  display: flex; align-items: center; gap: 12px; padding: 14px 10px;
  color: var(--ink); text-decoration: none; font-weight: 650; font-size: 15px;
}
.chap-sheet .chap-items .chap-t { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.chap-sheet .chap-items .chap-n,
.chap-sheet .chap-items.plain li::before {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: #eef3ff; color: #2f6bff; display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
}
.chap-sheet .chap-items.plain { counter-reset: chap; }
.chap-sheet .chap-items.plain li { counter-increment: chap; }
.chap-sheet .chap-items.plain li::before { content: counter(chap, decimal-leading-zero); }
.chap-sheet .chap-items li.cur a { background: #eaf0ff; border-radius: 12px; color: #1d4ed8; }
.chap-sheet .chap-items li.cur .chap-n,
.chap-sheet .chap-items.plain li.cur::before { background: #2f6bff; color: #fff; }
@media (min-width: 981px) {
  .chap-fab { display: none; }
  .chap-sheet { left: auto; right: 18px; bottom: 18px; width: 380px; border-radius: 16px; height: 60vh; max-height: 60vh; }
}
.note { border-radius: 12px; padding: 12px 16px; margin: 16px 0; border: 1px solid var(--line); }
.note.ok { background: #eefbf3; border-color: #bfe8d0; }
.note.bad { background: #fdf0f0; border-color: #f3c9c9; }
.note p { margin: 4px 0 0; }
