/* Cụm bài viết / cẩm nang news/ (Sóng 4, plan docs/124-data/plan-tailwind-daisyui-2026-12-02.md mục 8.2 C, 05/12/2026):
   trang bài (view, kể cả khối Đọc tiếp _nextup, hàng chọn tháng EASY _easyMonthPick, thanh tuần thai _fetalWeekBar),
   /thai-giao (index người đăng nhập, index_guest khách, nội dung _landing_content) và các thẻ bài in ở trang khác
   (_item2/_item4: chuyên mục; _item3: tìm kiếm, hỏi đáp, cộng đồng; _item8: thai giáo theo tháng / quý, bài mới (_latest);
   _item9: thai giáo tiếng Anh; _item10/11/12: thai giáo theo tháng / quý, truyện; _fetalShortcut: nhạc, audiobook, game…).
   Thay các khối style nhúng + lưới / utility / nút / alert Bootstrap trong view. Chỉ token DS (css/mb-ds.css :root),
   luật mới tiền tố nw-*; giữ tên lớp cũ mà JS / trang khác đọc (news-*, easy-pick*, fw-*, an-*, outline-list, section-title).
   Nạp không qua CDN qua partial news/_newsStyles: importCSS('news-pages', filemtime, false), một lần mỗi lượt
   (cờ $GLOBALS['mbNewsPagesCss']). Đổi tên: .fw-chip → .fw-week, .an-card → .an-item, .card-modern → .nw-tg-box,
   .section-header → .nw-tg-head, .tag-modern → .nw-cat-link, .feed-card (trang bài) → .nw-panel. Thân bài (HTML từ DB)
   vẫn dùng được lớp Bootstrap vì bootstrap.min.css còn nạp toàn site. */

/* ================================================================ khung trang (thay .container + .row + .col-*) */

/* Một cột giữa: rộng bằng cột Bootstrap cũ (col-sm-12 / col-md-10 / col-lg-8 / col-xl-6 hoặc 7 trong .container 540 / 720 / 960 / 1140) */
.nw-tg,
.nw-tgg,
.nw-article,
.nw-hero__wrap {
	box-sizing: border-box;
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	padding-right: var(--space-lg);
	padding-left: var(--space-lg);
}

@media (min-width: 576px) {
	.nw-tg,
	.nw-tgg,
	.nw-article,
	.nw-hero__wrap {
		max-width: calc(var(--page-w-read) * 0.75);
	}
}

@media (min-width: 768px) {
	.nw-tg,
	.nw-tgg,
	.nw-article {
		max-width: calc(var(--page-w-read) * 10 / 12);
	}

	.nw-hero__wrap {
		max-width: var(--page-w-read);
	}
}

@media (min-width: 992px) {
	.nw-tg,
	.nw-tgg,
	.nw-article {
		max-width: calc(var(--page-w-tool) * 8 / 12);
	}

	.nw-hero__wrap {
		max-width: var(--page-w-tool);
	}
}

@media (min-width: 1200px) {
	.nw-tg,
	.nw-tgg {
		max-width: calc(var(--page-w-grid) / 2);
	}

	.nw-article {
		max-width: calc(var(--page-w-grid) * 7 / 12);
	}

	.nw-hero__wrap {
		max-width: var(--page-w-grid);
	}
}

/* .container img của main.css (ảnh trong bài, ảnh landing): giữ nguyên khi đã bỏ .container */
.nw-tg img,
.nw-tgg img,
.nw-hero__wrap img,
.nw-article img {
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	display: block;
}

.nw-center {
	text-align: center;
}

/* ================================================================ /thai-giao người đăng nhập (index) */

/* mt-0 mt-sm-3 mt-md-4 mb-5 */
.nw-tg {
	margin-top: 0;
	margin-bottom: var(--space-3xl);
}

@media (min-width: 576px) {
	.nw-tg {
		margin-top: var(--space-lg);
	}
}

@media (min-width: 768px) {
	.nw-tg {
		margin-top: var(--space-xl);
	}
}

/* Tiêu đề màu mực (xanh ngọc cũ chỉ 2,16–2,41:1, docs/124 Đợt 5 c2) */
:where(.nw-tg) h1 {
	font-size: var(--text-3xl);
	color: var(--app-ink);
	margin-bottom: var(--space-xl);
}

:where(.nw-tg) h2 {
	font-size: var(--text-xl);
	color: var(--app-ink);
	margin-top: var(--space-xl);
	margin-bottom: var(--space-lg);
}

:where(.nw-tg) h3 {
	font-size: var(--text-lg);
	color: var(--app-ink);
	margin-top: var(--space-lg);
	margin-bottom: var(--space-md);
}

:where(.nw-tg) .lead {
	font-size: var(--text-lg);
	line-height: 1.6;
	color: var(--app-ink-sub);
}

:where(.nw-tg) .alert a:not(.btn) {
	color: var(--app-blue-ink);
	font-weight: var(--fw-semi);
}

/* Khối trắng bo 16 (trước .card-modern; thaigiao/currentFetalDaily3 in trong trang vẫn dùng .card-modern) */
.nw-tg-box,
:where(.nw-tg) .card-modern {
	background: var(--app-surface);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	padding: var(--space-xl);
	margin-bottom: var(--space-lg);
	transition: transform var(--motion-ui) var(--motion-ease), box-shadow var(--motion-ui) var(--motion-ease);
	border: none;
}

@media (hover: hover) {
	.nw-tg-box:hover,
	:where(.nw-tg) .card-modern:hover {
		transform: translateY(-2px);
		box-shadow: var(--shadow-pop);
	}
}

/* Tiêu đề mục: chữ hoa giữa, icon màu nhóm thai giáo (trước .section-header) */
.nw-tg-head,
:where(.nw-tg) .section-header {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: var(--space-lg);
	color: var(--app-ink);
	font-weight: var(--fw-bold);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: var(--text-base);
}

.nw-tg-head i,
:where(.nw-tg) .section-header i {
	margin-right: var(--space-sm);
	font-size: var(--text-xl);
	color: var(--app-grp-prenatal);
}

:where(.nw-tg) .content-text p {
	margin-bottom: var(--space-lg);
	line-height: 1.6;
	color: var(--app-ink);
}

:where(.nw-tg) .content-text ul,
:where(.nw-tg) .content-text ol {
	padding-left: var(--space-xl);
	margin-bottom: var(--space-lg);
}

:where(.nw-tg) .content-text li {
	margin-bottom: var(--space-sm);
	line-height: 1.5;
}

:where(.nw-tg) .medium-insert-buttons {
	display: none;
}

:where(.nw-tg) .ellipsis3 p {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	margin-bottom: 0;
}

:where(.nw-tg) .list-group-item {
	padding-left: 0;
}

:where(.nw-tg) .swiper-slide {
	width: 45% !important;
}

/* Tiêu đề căn giữa: balance được phép (docs/06) */
.nw-tg .nw-tg-h2 {
	margin-bottom: var(--space-lg);
	text-align: center;
	color: var(--app-ink);
	text-wrap: balance;
}

.nw-tg-note {
	margin-bottom: var(--space-lg);
	text-align: center;
}

.nw-tg-em {
	font-weight: var(--fw-bold);
	color: var(--app-green-ink);
}

.nw-tg-cats {
	text-align: center;
}

/* Link chuyên mục dạng viên thuốc (trước .tag-modern) */
.nw-cat-link {
	background-color: var(--app-blue-soft);
	color: var(--app-ink);
	border: 1px solid var(--app-blue-soft);
	padding: var(--space-sm) var(--space-lg);
	border-radius: var(--radius-full);
	display: inline-flex;
	align-items: center;
	min-height: var(--control-md);
	margin-right: var(--space-sm);
	margin-bottom: var(--space-sm);
	font-size: var(--text-sm);
	font-weight: var(--fw-semi);
	text-decoration: none;
	transition: border-color var(--motion-ui) var(--motion-ease);
}

@media (hover: hover) {
	.nw-cat-link:hover {
		background-color: var(--app-blue-soft);
		border-color: var(--app-blue);
		color: var(--app-ink);
		text-decoration: none;
	}
}

@media (max-width: 992px) {
	:where(.nw-tg) h1 {
		font-size: var(--text-2xl);
	}

	.nw-tg-box,
	:where(.nw-tg) .card-modern {
		padding: var(--space-lg);
	}
}

/* ================================================================ /thai-giao khách (index_guest) */

/* Trang khách nền trắng cả trang (trước body { background } trong khối style của view) */
body:has(.nw-tgg) {
	background-color: var(--app-surface);
}

.nw-tgg {
	margin-bottom: var(--space-xl);
}

:where(.nw-tgg) h2 {
	font-size: var(--text-2xl);
}

:where(.nw-tgg) h3 {
	font-size: var(--text-xl);
}

:where(.nw-tgg) .swiper-slide {
	max-width: 55% !important;
}

/* Ảnh nền đầu trang cao 95vh, phủ lớp tối 60% (trước style inline) */
.nw-hero {
	position: relative;
	height: 95vh;
	margin-bottom: var(--space-xl);
	background-image: url(https://cdn3-mamibabi.cdn.vccloud.vn/files/202308/32eaa9e180a15414ace6196512976837.jpg);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.nw-hero__scrim {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--app-scrim);
	opacity: 0.6;
}

.nw-hero__inner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	padding: var(--space-xs);
	overflow: hidden;
	color: var(--app-on-color);
	text-shadow: 2px 1px 2px var(--app-overlay);
	transform: translate(-50%, -50%);
}

/* row justify-content-center mb-5 > col-12 col-md-8 col-lg-6 */
.nw-hero__col {
	box-sizing: border-box;
	margin: 0 auto var(--space-3xl);
}

@media (min-width: 768px) {
	.nw-hero__col {
		max-width: calc(var(--page-w-read) * 8 / 12);
	}
}

@media (min-width: 992px) {
	.nw-hero__col {
		max-width: calc(var(--page-w-tool) / 2);
	}
}

@media (min-width: 1200px) {
	.nw-hero__col {
		max-width: calc(var(--page-w-grid) / 2);
	}
}

/* Tiêu đề căn giữa: balance được phép (docs/06) */
.nw-hero__title {
	margin-bottom: var(--space-3xl);
	text-align: center;
	font-size: var(--text-3xl);
	text-wrap: balance;
}

.nw-hero__point {
	margin-bottom: var(--space-xs);
}

.nw-hero__tick {
	display: inline-block;
	margin-right: var(--space-sm);
}

.nw-tgg-sec {
	margin-bottom: var(--space-xl);
}

.nw-tgg .nw-tgg-h2 {
	margin-bottom: var(--space-xl);
	text-align: center;
	font-weight: var(--fw-bold);
}

.nw-tgg .nw-tgg-h2--tight {
	margin-bottom: var(--space-xs);
}

.nw-tgg-swiper {
	margin-bottom: var(--space-lg);
}

.nw-tgg-slide {
	width: 150px;
}

.nw-tgg-slide--more {
	height: auto;
}

/* Ô "Nghe thêm" cuối dải album */
.nw-tgg-more {
	display: flex;
	height: 100%;
	border: 1px solid var(--app-line);
	border-radius: var(--radius-sm);
}

.nw-tgg-more__in {
	align-self: center;
	width: 100%;
	text-align: center;
	color: var(--app-ink-sub);
}

.nw-tgg-hr {
	margin-top: var(--space-xl);
	margin-bottom: var(--space-xl);
}

.nw-tgg-cat {
	margin-right: var(--space-xs);
	margin-bottom: var(--space-sm);
}

/* ================================================================ nội dung landing thai giáo (_landing_content, in ở 2 trang trên) */

.nw-lc-h {
	margin-bottom: var(--space-lg);
	font-weight: var(--fw-bold);
	color: var(--app-ink);
}

.nw-lc-block {
	margin-bottom: var(--space-lg);
}

.nw-lc-cta {
	margin-bottom: var(--space-xl);
	text-align: center;
}

.nw-lc-sub,
.content-text .nw-lc-sub {
	margin-bottom: var(--space-sm);
	font-weight: var(--fw-bold);
	color: var(--app-ink);
}

.nw-lc-ink {
	color: var(--app-ink);
}

/* Video YouTube 16:9 (thay embed-responsive) */
.nw-lc-video {
	position: relative;
	padding-top: 56.25%;
	margin-bottom: var(--space-xl);
	overflow: hidden;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-card);
}

.nw-lc-video__frame {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.nw-lc-img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: var(--space-lg) auto;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-card);
}

/* Bảng gợi ý hoạt động theo quý (thay table-responsive + table table-bordered table-sm table-striped) */
.nw-lc-table {
	display: block;
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: var(--space-xl);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-card);
}

.nw-lc-table table {
	width: 100%;
	margin-bottom: 0;
	border-collapse: collapse;
	color: var(--app-ink);
}

.nw-lc-table td {
	padding: var(--space-xs);
	vertical-align: top;
	border: 1px solid var(--app-line);
}

.nw-lc-table tbody tr:nth-of-type(odd) {
	background-color: var(--app-gray-soft);
}

.nw-lc-thead td {
	border-bottom-width: 2px;
}

.nw-lc-thead {
	background-color: var(--app-gray-soft);
}

.nw-lc-table .nw-lc-th {
	padding-top: var(--space-lg);
	padding-bottom: var(--space-lg);
	text-align: center;
	font-weight: var(--fw-bold);
	font-size: var(--text-lg);
	color: var(--app-ink);
}

.nw-lc-strong {
	font-weight: var(--fw-bold);
}

.nw-lc-center {
	text-align: center;
	font-weight: var(--fw-bold);
}

.nw-lc-table .nw-lc-mid {
	vertical-align: middle;
}

/* ================================================================ trang bài viết (view) */

.nw-article {
	margin-top: var(--space-lg);
	margin-bottom: var(--space-3xl);
}

/* JS bật / tắt bằng thuộc tính hidden (kết quả đánh giá, nguồn số đo) thay .d-none */
.nw-article [hidden] {
	display: none !important;
}

/* Chặn bôi đen / giữ ảnh để chép bài (trừ admin): cả trang như khối style cũ đặt trên body; trình duyệt chưa có :has thì
   vẫn chặn trong khung bài */
body:has(.nw-article--nocopy),
.nw-article--nocopy {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

/* Breadcrumb: không cắt chữ, ô Trang chủ vùng bấm 44 */
.news-article .mb-crumb__item,
.news-article .mb-crumb__link,
.news-article .mb-crumb__text {
	max-width: none;
}

.news-article a.mb-crumb__link[aria-label="Trang chủ"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--control-md);
	padding-left: 0;
	padding-right: 0;
}

.news-article .mb-crumb__item:first-child + .mb-crumb__item::before {
	margin-left: calc(var(--space-sm) - (var(--control-md) - var(--icon-md)) / 2);
}

/* Tiêu đề trong thân bài (HTML từ DB) */
:where(.nw-article) h1,
:where(.nw-article) h2,
:where(.nw-article) h3,
:where(.nw-article) h4,
:where(.nw-article) h5,
:where(.nw-article) h6,
:where(.nw-article) .h1,
:where(.nw-article) .h2,
:where(.nw-article) .h3,
:where(.nw-article) .h4,
:where(.nw-article) .h5,
:where(.nw-article) .h6 {
	margin-bottom: var(--space-lg);
	line-height: 1.3;
	font-weight: var(--fw-bold);
}

:where(.nw-article) h1 {
	font-size: var(--text-3xl);
}

:where(.nw-article) h2 {
	font-size: var(--text-2xl);
}

:where(.nw-article) h3 {
	font-size: var(--text-xl);
}

:where(.nw-article) h4 {
	font-size: var(--text-lg);
}

:where(.nw-article) .lead {
	font-size: var(--text-xl);
}

:where(.nw-article) .box-title {
	display: block;
	text-transform: uppercase;
	font-size: var(--text-2xl);
	font-weight: var(--fw-bold);
	padding-left: var(--space-md);
	border-left: 3px solid var(--app-blue);
	margin-bottom: var(--space-lg);
}

:where(.nw-article) figcaption {
	text-align: center;
	font-size: var(--text-sm);
	margin-top: var(--space-sm);
	color: var(--app-ink-sub);
}

@media (max-width: 992px) {
	:where(.nw-article) h1 {
		font-size: var(--text-2xl);
	}

	:where(.nw-article) h2,
	:where(.nw-article) h3 {
		font-size: var(--text-xl);
	}

	:where(.nw-article) .lead {
		font-size: var(--text-lg);
	}
}

:where(.nw-article) .medium-insert-buttons {
	display: none;
}

:where(.nw-article) iframe {
	max-width: 100%;
}

:where(.nw-article) .swiper-button-prev:after,
:where(.nw-article) .swiper-button-next:after {
	font-size: var(--text-3xl) !important;
}

/* Trích dẫn trong thân bài */
:where(.nw-article) blockquote {
	position: relative;
	background: var(--app-bg);
	border-left: 4px solid var(--app-blue);
	margin: var(--space-xl) 0;
	padding: var(--space-lg) var(--space-xl);
	font-style: italic;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	box-shadow: var(--shadow-card);
}

:where(.nw-article) blockquote::before {
	content: '"';
	position: absolute;
	left: var(--space-sm);
	top: -4px;
	font-size: var(--text-3xl);
	color: var(--app-blue);
	opacity: 0.3;
}

:where(.nw-article) blockquote p {
	margin: 0;
	font-size: var(--text-lg);
	line-height: 1.6;
	color: var(--app-ink);
}

:where(.nw-article) blockquote cite {
	display: block;
	margin-top: var(--space-sm);
	font-size: var(--text-sm);
	color: var(--app-ink-sub);
	font-style: normal;
}

:where(.nw-article) blockquote cite::before {
	content: '— ';
}

@media (max-width: 768px) {
	:where(.nw-article) blockquote {
		margin: var(--space-lg) 0;
		padding: var(--space-md) var(--space-lg);
	}

	:where(.nw-article) blockquote::before {
		font-size: var(--text-2xl);
	}

	:where(.nw-article) blockquote p {
		font-size: var(--text-md);
	}
}

/* Mục lục + bài liên quan: mỗi link một hàng cao 44 (vùng bấm) */
#toc_container .toc2 {
	margin-left: 0;
}

#toc_container .toc3 {
	margin-left: var(--space-xl);
}

#toc_container .toc4 {
	margin-left: var(--space-3xl);
}

:where(.nw-article) .toc-link b,
:where(.nw-article) .toc-link strong {
	font-weight: var(--fw-regular) !important;
}

:where(.nw-article) .outline-list ul {
	padding-left: 0;
	list-style: none;
}

:where(.nw-article) .outline-list ul li {
	position: relative;
	margin-bottom: 0;
	line-height: 1.5;
	padding-left: var(--space-lg);
}

:where(.nw-article) .outline-list ul li::before {
	content: "\2022";
	position: absolute;
	left: 0;
	top: 4px;
	color: var(--app-red);
	font-size: var(--text-xl);
}

:where(.nw-article) .outline-list ul li a {
	display: block;
	min-height: var(--control-md);
	padding: var(--space-sm) 0;
	color: var(--app-ink);
	text-decoration: none;
	transition: color var(--motion-ui) var(--motion-ease);
}

@media (hover: hover) and (pointer: fine) {
	:where(.nw-article) .outline-list ul li a:hover {
		color: var(--app-red-ink);
	}
}

:where(.nw-article) .outline-list ul li li:empty {
	display: none;
}

.nw-article .nw-flush {
	margin-bottom: 0;
}

/* Khối trắng (trước bg-white p-3 mb-3 feed-card): mobile vuông + kẻ dưới, từ 768 bo 12 + bóng */
.nw-panel {
	background: var(--app-surface);
	padding: var(--space-lg);
	margin-bottom: var(--space-lg);
	border-radius: 0;
	border-bottom: 1px solid var(--app-line);
}

@media (min-width: 768px) {
	.nw-panel {
		border-radius: var(--radius-md);
		box-shadow: var(--shadow-card);
		border: none;
	}

	.nw-panel--main {
		padding: var(--space-xl);
	}
}

/* Thẻ câu hỏi feed/_item4 (CÂU HỎI CÙNG QUAN TÂM) (.feed-item.feed-card) đọc luật của trang bài: giữ như khối style cũ */
:where(.nw-article .feed-item).panel-mobile-fullwidth {
	border-radius: 0;
	border-bottom: 1px solid var(--app-line);
}

@media (min-width: 768px) {
	:where(.nw-article .feed-item).panel-mobile-fullwidth {
		border-radius: var(--radius-md);
		box-shadow: var(--shadow-card);
		border: none;
	}
}

.nw-gap {
	margin-bottom: var(--space-lg);
}

.nw-more {
	margin-top: var(--space-lg);
}

.nw-red {
	color: var(--app-red-ink);
}

.nw-green {
	color: var(--app-green-ink);
}

/* Tiêu đề khối dưới bài: chữ hoa, gạch đỏ trái */
:where(.nw-article) .section-title {
	display: flex;
	align-items: center;
	color: var(--app-ink);
	font-size: var(--text-lg);
	font-weight: var(--fw-bold);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: var(--space-xl);
	margin-bottom: var(--space-lg);
	padding-left: var(--space-md);
	border-left: 4px solid var(--app-red);
}

/* Tiêu đề bài, mô tả ngắn, thân bài */
.nw-article h1.news-title {
	margin-bottom: var(--space-lg);
	text-align: center;
	font-size: var(--text-2xl);
	font-weight: var(--fw-bold);
	color: var(--app-red);
	line-height: 1.4;
}

.news-lead {
	margin-bottom: var(--space-lg);
	font-size: var(--text-lg);
	color: var(--app-ink-sub);
	font-weight: var(--fw-medium);
}

.news-body {
	margin-bottom: var(--space-lg);
	font-size: var(--text-lg);
	line-height: 1.7;
	color: var(--app-ink);
}

/* Truyện tranh (33), thơ (32): thân bài căn giữa */
.news-body--center {
	text-align: center;
}

/* Ảnh bìa (LCP) */
.nw-cover {
	margin-bottom: var(--space-lg);
	text-align: center;
}

.nw-article .nw-cover__img {
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-sm);
}

/* Khung dẫn sang công cụ theo bài: nền nhạt theo nhóm màu, chữ mực (.link-nostyle ép color: inherit) */
.news-tool {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	min-height: var(--control-md);
	padding: var(--space-lg);
	margin-bottom: var(--space-xl);
	border-radius: var(--radius-md);
}

.news-tool__icon {
	font-size: var(--icon-lg);
}

.news-tool__text {
	flex: 1;
	min-width: 0;
	font-weight: var(--fw-bold);
}

.news-tool--pink {
	background: var(--app-grp-prenatal-soft);
}

.news-tool--red {
	background: var(--app-red-soft);
}

.news-tool--green {
	background: var(--app-grp-baby-soft);
}

.news-tool--indigo {
	background: var(--app-sec-sleep-to);
}

.news-tool--teal {
	background: var(--app-sec-tracker-to);
}

.news-tool--purple {
	background: var(--app-purple-soft);
}

/* Mục lục */
.news-toc {
	padding: var(--space-lg);
	margin-bottom: var(--space-xl);
	background-color: var(--app-gray-soft);
	border-left: 4px solid var(--app-red);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
}

.news-toc__title {
	margin-bottom: var(--space-lg);
	font-size: var(--text-lg);
	font-weight: var(--fw-bold);
	text-transform: uppercase;
	color: var(--app-ink);
}

.news-toc__ic {
	margin-right: var(--space-sm);
	color: var(--app-red-ink);
}

/* Nút nổi về mục lục: 80px chừa thanh điều hướng đáy. Khung có cả top: 45% (.fixed-menu-button-container) lẫn bottom nên
   height cố định để không giãn cao chặn chạm vào thẻ bài ở mép phải (tap_blocked prod 04/12). */
.news-toc-fab {
	position: fixed;
	height: max-content;
	bottom: calc(80px + env(safe-area-inset-bottom, 0px));
	right: calc(var(--space-lg) + env(safe-area-inset-right, 0px));
	z-index: 999;
	transform: translateX(150%);
	transition: all 0.4s var(--motion-ease);
	opacity: 0;
	visibility: hidden;
}

.nw-article .news-toc-fab__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--control-lg);
	height: var(--control-lg);
	border-radius: 50%;
	background: var(--app-red);
	color: var(--app-on-color);
	box-shadow: var(--shadow-pop);
	text-decoration: none;
}

/* Nút Lưu + Chia sẻ: hai ô bằng nhau, nút rộng hết ô (thay row mx-n1 > col-6 px-1, btn-block) */
.nw-share {
	margin-bottom: var(--space-lg);
	text-align: center;
}

.nw-share__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-sm);
}

.nw-share .nw-wide {
	display: block;
	width: 100%;
}

/* Nguồn bài */
.news-source {
	padding: var(--space-sm);
	margin-bottom: var(--space-lg);
	background-color: var(--app-bg);
	border: 1px solid var(--app-line);
	border-radius: var(--radius-md);
	color: var(--app-ink);
}

.news-source__row {
	display: flex;
	align-items: center;
}

.news-source__ic {
	margin-right: var(--space-sm);
	color: var(--app-ink-sub);
}

.news-source__label {
	display: block;
	color: var(--app-ink-sub);
}

.nw-article .news-source__link {
	color: var(--app-ink);
	font-weight: var(--fw-bold);
}

/* Hướng dẫn đọc truyện / thơ thai giáo */
.news-howto {
	padding: var(--space-sm);
	margin-bottom: var(--space-lg);
	background-color: var(--app-blue-soft);
	border-radius: var(--radius-md);
	color: var(--app-ink);
}

.news-more-link {
	display: block;
	width: 100%;
	min-height: var(--control-md);
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	color: var(--app-ink);
	font-weight: var(--fw-bold);
	text-align: center;
	cursor: pointer;
}

/* Đánh giá: cả nhãn (ô tròn + số) là vùng bấm 44; 5 nhãn × 44 vừa một hàng ở 280 */
.news-rate__q {
	margin-bottom: var(--space-xs);
	font-weight: var(--fw-bold);
}

.news-rate {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: var(--space-xs);
	font-weight: var(--fw-bold);
}

.news-rate label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-xs);
	min-width: var(--control-md);
	min-height: var(--control-md);
	margin: 0;
	font-size: var(--text-md);
	cursor: pointer;
}

.news-rate input {
	accent-color: var(--app-red);
}

/* Khoá phần VIP (đang tắt: $hideVip luôn false) */
.news-body--locked {
	position: relative;
	max-height: 400px;
	overflow-y: hidden;
}

.news-body--locked .vip-content-cover {
	position: absolute;
	bottom: -2px;
	width: 100%;
	height: 450px;
	background: linear-gradient(to bottom, transparent 0%, var(--app-surface) 100%);
}

.news-body--locked .vip-content-cover-box {
	position: relative;
	height: 100%;
}

.news-body--locked .vip-content-cover-warning {
	position: absolute;
	bottom: 0;
	width: 100%;
	padding: var(--space-sm);
	margin-bottom: 0;
	text-align: center;
	background-color: var(--app-orange-soft);
	border-radius: var(--radius-md);
	color: var(--app-ink);
}

.nw-vip-note {
	color: var(--app-ink);
}

.nw-vip-hint {
	margin-top: var(--space-lg);
}

.nw-vip-cta {
	margin-top: var(--space-lg);
	margin-bottom: var(--space-sm);
}

/* ================================================================ Đọc tiếp (_nextup): 4 bài, 1 cột / 2 cột từ 768 */

#article-nextup {
	text-align: left;
	margin-top: var(--space-lg);
}

/* Không viền thẻ, các mục ngăn nhau bằng đường kẻ ngang (owner góp ý 26/11/2026) */
#article-nextup .an-grid {
	display: grid;
	grid-template-columns: 1fr;
	margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
	#article-nextup .an-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--space-xl);
	}
}

#article-nextup .an-item {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	text-align: left;
	padding: var(--space-md) 0;
	border-bottom: 1px solid var(--app-line);
	color: var(--app-ink);
	text-decoration: none;
}

/* Server in 8 thẻ, CSS hiện 4 (script bỏ bài đã xem rồi giữ 4) */
#article-nextup .an-item:nth-child(n+5) {
	display: none;
}

/* Không kẻ dưới hàng cuối: 1 cột là mục cuối; 2 cột là hàng cuối (1 hoặc 2 mục) */
#article-nextup .an-item:last-child,
#article-nextup .an-item:nth-child(4) {
	border-bottom: 0;
}

@media (min-width: 768px) {
	#article-nextup .an-item:nth-child(odd):nth-last-child(-n+2),
	#article-nextup .an-item:nth-child(odd):nth-last-child(-n+2) ~ .an-item,
	#article-nextup .an-item:nth-child(3) {
		border-bottom: 0;
	}
}

#article-nextup .an-item img {
	width: 64px;
	height: 64px;
	min-width: 64px;
	max-width: 64px;
	object-fit: cover;
	padding: 0;
	border: 0;
	box-shadow: none;
	border-radius: var(--radius-md);
	flex-shrink: 0;
	margin-right: var(--space-md);
	background: var(--app-gray-soft);
}

#article-nextup .an-title {
	font-weight: var(--fw-bold);
	font-size: var(--text-md);
	line-height: 1.4;
	text-wrap: wrap;
	text-align: left;
	flex: 1 1 auto;
	min-width: 0;
}

/* ================================================================ Hàng chọn tháng tuổi bài EASY (_easyMonthPick) */

.easy-pick {
	background: var(--app-blue-soft);
	border-radius: var(--radius-card);
	padding: var(--space-lg);
	margin-bottom: var(--space-xl);
}

.easy-pick__title {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	font-weight: var(--fw-bold);
	color: var(--app-blue-ink);
	margin-bottom: var(--space-md);
}

.easy-pick__row {
	display: flex;
	gap: var(--space-sm);
	overflow-x: auto;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 2px;
}

.easy-pick__row::-webkit-scrollbar {
	display: none;
}

/* #easyPick tăng độ ưu tiên để thắng màu / gạch chân link chung */
#easyPick .easy-pick__chip {
	flex: 0 0 auto;
	scroll-snap-align: center;
	min-width: 56px;
	min-height: var(--control-md);
	padding: var(--space-xs) var(--space-md);
	border-radius: var(--radius-md);
	background: var(--app-surface);
	border: 1px solid var(--app-line-strong);
	color: var(--app-blue-ink);
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1.1;
	white-space: nowrap;
}

#easyPick .easy-pick__chip small {
	font-size: var(--text-2xs);
	color: var(--app-ink-sub);
}

#easyPick .easy-pick__chip strong {
	font-size: var(--text-md);
}

/* Ô đang chọn nền xanh đậm: chữ trắng 5,2:1 */
#easyPick .easy-pick__chip.is-active {
	background: var(--app-blue-ink);
	border-color: var(--app-blue-ink);
	color: var(--app-on-color);
}

#easyPick .easy-pick__chip.is-active small {
	color: var(--app-on-color);
}

/* ================================================================ Thanh tuần thai chuỗi 40 bài (_fetalWeekBar) */

/* Tông hồng nhóm thai giáo (--app-grp-prenatal / --app-sec-prenatal-*): chữ hồng đậm 5,4:1 trên nền khung, 5,9:1 trên trắng */
.fw-bar {
	background: var(--app-sec-prenatal-to);
	border-radius: var(--radius-card);
	padding: var(--space-lg);
	margin-bottom: var(--space-xl);
}

.fw-bar [hidden] {
	display: none !important;
}

.fw-row {
	display: flex;
	gap: var(--space-sm);
	overflow-x: auto;
	scrollbar-width: none;
	padding-bottom: 2px;
	margin-bottom: var(--space-lg);
}

.fw-row::-webkit-scrollbar {
	display: none;
}

/* #fwBar tăng độ ưu tiên để thắng màu / gạch chân link chung (ô tuần: trước là .fw-chip) */
#fwBar .fw-week {
	flex: 0 0 auto;
	min-width: var(--control-md);
	min-height: var(--control-md);
	border-radius: var(--radius-md);
	background: var(--app-surface);
	border: 1px solid var(--app-sec-prenatal-from);
	color: var(--app-grp-prenatal);
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1.05;
	font-weight: var(--fw-bold);
}

#fwBar .fw-week small {
	font-size: var(--text-2xs);
	font-weight: var(--fw-regular);
	color: var(--app-grp-prenatal);
}

#fwBar .fw-week.is-active {
	background: var(--app-grp-prenatal);
	border-color: var(--app-grp-prenatal);
	color: var(--app-on-color);
}

#fwBar .fw-week.is-active small {
	color: var(--app-on-color);
}

#fwBar .fw-week.is-mine:not(.is-active) {
	border: 2px solid var(--app-grp-prenatal);
}

.fw-main {
	display: flex;
	gap: var(--space-lg);
	align-items: center;
}

.fw-img {
	flex: 0 0 88px;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--app-surface);
}

.fw-body {
	flex: 1;
	min-width: 0;
}

.fw-title {
	font-weight: var(--fw-bold);
	color: var(--app-grp-prenatal);
	font-size: var(--text-lg);
	margin-bottom: var(--space-sm);
}

/* ⓘ nguồn số đo: nút chỉ có icon 14px, vùng bấm nới ra 44 bằng ::after */
.fw-info {
	position: relative;
	font-size: var(--text-sm);
	color: var(--app-grp-prenatal);
	opacity: 0.7;
	cursor: pointer;
	vertical-align: middle;
}

.fw-info::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--control-md);
	height: var(--control-md);
	transform: translate(-50%, -50%);
}

.fw-metrics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-sm) var(--space-lg);
	margin: 0;
	font-size: var(--text-sm);
}

.fw-metrics dt {
	font-weight: var(--fw-regular);
	color: var(--app-ink-sub);
	font-size: var(--text-xs);
}

.fw-metrics dd {
	margin: 0;
	font-weight: var(--fw-bold);
	color: var(--app-ink);
	white-space: nowrap;
}

.fw-src {
	margin-top: var(--space-sm);
}

.fw-month {
	margin-top: var(--space-sm);
	font-size: var(--text-sm);
	color: var(--app-ink-sub);
}

.fw-month a {
	color: var(--app-grp-prenatal);
	font-weight: var(--fw-bold);
}

#fwBar .fw-tool {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	margin-top: var(--space-lg);
	background: var(--app-surface);
	border-radius: var(--radius-md);
	padding: var(--space-md);
	min-height: var(--control-md);
	color: var(--app-grp-prenatal);
	font-weight: var(--fw-bold);
	text-decoration: none;
}

.fw-tool span {
	flex: 1;
	min-width: 0;
}

@media (min-width: 992px) {
	.fw-metrics {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ================================================================ Kho nội dung thai giáo (_fetalShortcut): lưới 4 ô icon đốm */

/* Thay row mx-n1 + col-3 px-0 px-sm-1 text-center mb-3 */
.nw-blobs {
	display: flex;
	flex-wrap: wrap;
	margin-right: calc(-1 * var(--space-xs));
	margin-left: calc(-1 * var(--space-xs));
}

.nw-blobs__cell {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	flex: 0 0 25%;
	max-width: 25%;
	padding: 0;
	margin-bottom: var(--space-lg);
	text-align: center;
}

@media (min-width: 576px) {
	.nw-blobs__cell {
		padding-right: var(--space-xs);
		padding-left: var(--space-xs);
	}
}

.nw-blobs__link {
	display: block;
}

.nw-blobs__ic {
	margin-bottom: var(--space-sm);
}

/* Hai nhãn dài kề nhau (ô không đệm) không dính chữ: chừa 4px mỗi bên */
.kh-blobs .kh-tile-label {
	padding: 0 var(--space-xs);
}

/* main.css giới hạn .kh-tile-label 2 dòng (ô khoá học); ô ở đây giữ 3 dòng như lớp ellipsis3 để nhãn dài không bị cắt */
.nw-blobs .kh-tile-label.ellipsis3 {
	-webkit-line-clamp: 3;
}

/* Nhãn ô đậm 600 (kiểu đốm) rộng hơn: máy gập đóng 280 cho 4 dòng để "Truyện Audio thai giáo" không bị cắt */
@media (max-width: 359.98px) {
	.nw-blobs .kh-tile-label.ellipsis3 {
		-webkit-line-clamp: 4;
	}
}

.nw-blobs-hr {
	margin-top: 0;
}

.nw-blobs-head {
	margin-bottom: var(--space-lg);
	text-align: center;
	font-weight: var(--fw-bold);
	text-transform: capitalize;
}

/* ================================================================ thẻ bài in ở nhiều trang */

/* Chữ đậm / chữ phụ trong thẻ (thay font-weight-bold / text-muted) */
.nw-bold {
	font-weight: var(--fw-bold);
}

.nw-muted {
	color: var(--app-ink-sub);
}

/* _item2 (newscategory/view từ bài thứ 3): ảnh vuông 110 trái, tiêu đề giữa dọc */
.nw-i2 {
	display: flex;
	align-items: flex-start;
	margin-bottom: var(--space-xl);
}

.nw-i2__img {
	width: 110px;
	height: 110px;
	overflow: hidden;
	border-radius: var(--radius-sm);
	margin-right: var(--space-lg);
}

.nw-i2__body {
	flex: 1;
	align-self: center;
}

/* _item3 (tìm kiếm, bài cùng chuyên mục, hỏi đáp, cộng đồng): tiêu đề trái, ảnh 65 phải */
.nw-i3 {
	color: inherit;
	text-decoration: none;
}

.nw-i3__row {
	display: flex;
	align-items: center;
	margin-bottom: var(--space-sm);
}

.nw-i3__body {
	flex: 1;
}

.nw-i3__title {
	font-weight: var(--fw-bold);
	line-height: 1.4;
	color: var(--app-ink);
}

.nw-i3__img {
	width: 65px;
	height: 65px;
	overflow: hidden;
	flex-shrink: 0;
	margin-left: var(--space-lg);
	border: 1px solid var(--app-line);
	border-radius: var(--radius-md);
}

/* _item4 / _item8 kiểu 1: điện thoại ảnh trên, chữ dưới; từ 576 chữ trái, ảnh phải (thay row / col-* / order-*) */
.nw-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: var(--space-2xl);
}

.nw-split__media {
	order: -1;
}

.nw-split__img {
	height: 200px;
	overflow: hidden;
	margin-bottom: var(--space-lg);
	border: 1px solid var(--app-line);
	border-radius: var(--radius-sm);
}

.nw-split__img--framed {
	padding: 1px;
}

.nw-split__desc {
	display: none;
	margin-top: var(--space-sm);
}

@media (min-width: 576px) {
	.nw-split {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}

	.nw-split__media {
		order: 1;
	}

	.nw-split__desc {
		display: block;
	}
}

@media (min-width: 992px) {
	.nw-split {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.nw-split--i8 {
		grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	}
}

@media (min-width: 1200px) {
	.nw-split--i8 {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}
}

/* _item8: chữ giữa dọc theo ảnh (thay h-100 d-flex align-self-center) */
.nw-split--i8 .nw-split__text {
	align-self: center;
}

/* _item8 kiểu 0 (bài thứ 2 trở đi): tiêu đề trái, ảnh 100 phải */
.nw-i8 {
	display: flex;
	align-items: flex-start;
}

.nw-i8__body {
	flex: 1;
	align-self: center;
}

.nw-i8__img {
	width: 100px;
	height: 100px;
	margin-left: var(--space-xs);
	border: 1px solid var(--app-line);
	border-radius: var(--radius-sm);
}

/* _item9 / _item10: ô 1/3 trong hàng .row của trang gọi (thai giáo tiếng Anh, truyện theo tháng) */
.nw-tile {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	flex: 0 0 33.333333%;
	max-width: 33.333333%;
	padding-right: var(--space-sm);
	padding-left: var(--space-sm);
	margin-bottom: var(--space-lg);
}

.nw-tile__img {
	margin-bottom: var(--space-sm);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-card);
}

.nw-tile__title {
	text-transform: capitalize;
}

/* _item11 / _item12: ảnh 65 trái, tiêu đề giữa dọc */
.nw-i11 {
	display: flex;
	align-items: flex-start;
	margin-bottom: var(--space-lg);
}

.nw-i11__img {
	width: 65px;
	height: 65px;
	overflow: hidden;
	margin-right: var(--space-lg);
	border: 1px solid var(--app-line);
	border-radius: var(--radius-sm);
}

.nw-i11__body {
	flex: 1;
	align-self: center;
}
