/* Truyện gốc của site (/truyen-goc/…): trang đọc truyện. Mọi lớp có tiền tố c- và nằm trong .ntd để không đụng style.css.
   Trang truyện in đen trắng trên nền mực; máng trắng giữa các khung; màu duy nhất là đỏ của sợi dây. */
.ntd { --c-ink: #101012; --c-sheet: #f7f6f2; --c-line: #101012; --c-cord: #c4262b; --c-wash: #8d8d93;
  --c-display: "Dela Gothic One", "Arial Black", Impact, sans-serif; --c-balloon: "Mali", "Comic Sans MS", "Chalkboard SE", cursive;
  background: var(--c-ink); color: var(--c-sheet); padding-block: 2rem 3.5rem;
  padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
.ntd-col { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 2.5rem; }
.ntd-head { display: flex; flex-direction: column; gap: .6rem; }
.ntd-eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-wash); margin: 0; }
.ntd-eyebrow a { color: inherit; }
.ntd h1 { font-family: var(--c-display); font-weight: 400; font-size: clamp(2.2rem, 8vw, 4.2rem); line-height: 1.05; margin: 0; text-wrap: balance; color: var(--c-sheet); }
.ntd h1 span { color: var(--c-cord); }
.ntd-lede { color: var(--c-wash); max-width: 60ch; line-height: 1.6; margin: 0; }
.ntd-meta { color: var(--c-wash); font-size: .9rem; line-height: 1.6; margin: 0; }
.ntd-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(141, 141, 147, .3); }
.ntd-list li { border-bottom: 1px solid rgba(141, 141, 147, .3); }
.ntd-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .95rem .2rem; color: var(--c-sheet); text-decoration: none; font-weight: 600; }
.ntd-list a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.ntd-list span { color: var(--c-wash); font-weight: 400; white-space: nowrap; }
.ntd-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 2px solid var(--c-sheet); }
.ntd-btn { align-self: flex-start; display: inline-block; padding: .8rem 1.3rem; background: var(--c-cord); color: #fff; font-weight: 700; text-decoration: none; border-radius: 4px; }
.ntd-btn:hover { background: #a81f24; }
.ntd-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ntd-nav a { color: var(--c-sheet); }
.ntd-foot { color: var(--c-wash); font-size: .85rem; line-height: 1.6; border-top: 1px solid rgba(141, 141, 147, .3); padding-top: 1.2rem; max-width: 65ch; }
.ntd-foot p { margin: 0 0 .5rem; }

.ntd .c-page-no { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-wash); margin: 0 0 .5rem; }
.ntd .c-page { background: var(--c-sheet); padding: clamp(8px, 1.8vw, 16px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(6px, 1.4vw, 12px); }
.ntd .c-panel { position: relative; overflow: hidden; container-type: inline-size; min-width: 0; background: var(--c-ink); border: 2px solid var(--c-line); }
.ntd .c-panel.c-w { grid-column: span 2; }
.ntd .c-panel.c-tall { grid-row: span 2; }
/* phóng nhẹ để cắt viền khung và lề giấy mà ảnh gốc có sẵn */
.ntd .c-panel img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.ntd .c-r21 { aspect-ratio: 2 / 1; }
.ntd .c-r31 { aspect-ratio: 3 / 1; }
.ntd .c-r169 { aspect-ratio: 16 / 9; }
.ntd .c-sq { aspect-ratio: 1 / 1; }
.ntd .c-black { aspect-ratio: 6 / 1; display: grid; place-items: center; }
.ntd .c-black.c-intro { aspect-ratio: 3 / 1; }
.ntd .c-black.c-sqb { aspect-ratio: 1 / 1; }
.ntd .c-black p { margin: 0; font-family: var(--c-balloon); font-style: italic; color: var(--c-wash); font-size: clamp(12px, 2.6cqw, 20px); letter-spacing: .1em; }
.ntd .c-black.c-sqb p { font-size: clamp(14px, 6cqw, 24px); }
.ntd .c-black.c-intro p { font-style: normal; font-family: var(--body); font-weight: 600; color: var(--c-sheet); letter-spacing: .04em; line-height: 1.9; text-align: center; }
.ntd .c-cap, .ntd .c-say, .ntd .c-think, .ntd .c-sfx { position: absolute; margin: 0; font-size: clamp(11px, 2.5cqw, 19px); line-height: 1.35; }
.ntd .c-cap, .ntd .c-say { background: var(--c-sheet); color: var(--c-line); border: 2px solid var(--c-line); }
.ntd .c-cap { padding: .45em .75em; max-width: 46%; font-weight: 600; }
.ntd .c-say { padding: .7em 1.1em; max-width: 48%; border-radius: 50% / 46%; font-family: var(--c-balloon); font-weight: 700; text-align: center; }
.ntd .c-think { background: rgba(16, 16, 18, .86); color: var(--c-sheet); padding: .5em .8em; max-width: 50%; border-left: 3px solid var(--c-cord); font-family: var(--c-balloon); font-weight: 500; font-style: italic; }
.ntd .c-sq .c-cap, .ntd .c-sq .c-say, .ntd .c-sq .c-think, .ntd .c-tall .c-cap { font-size: clamp(11px, 4.4cqw, 19px); max-width: 80%; }
.ntd .c-sfx { font-family: var(--c-display); color: var(--c-sheet); font-size: clamp(22px, 9cqw, 72px); line-height: 1; letter-spacing: .04em; -webkit-text-stroke: 2px var(--c-line); paint-order: stroke fill; transform: rotate(-8deg); }
.ntd .c-sq .c-sfx, .ntd .c-tall .c-sfx { font-size: clamp(22px, 16cqw, 72px); }
.ntd .c-end { background: var(--c-cord); color: var(--c-sheet); border-color: var(--c-sheet); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 560px) {
  .ntd .c-page { grid-template-columns: 1fr; }
  .ntd .c-panel.c-w { grid-column: auto; }
  .ntd .c-panel.c-tall { grid-row: auto; aspect-ratio: 2 / 3; }
  .ntd .c-r31 { aspect-ratio: 2 / 1; }
  .ntd .c-black { aspect-ratio: 4 / 1; }
  .ntd .c-black.c-intro { aspect-ratio: 2 / 1; }
  .ntd .c-black.c-sqb { aspect-ratio: 2 / 1; }
}
