/* ============================================================
   TechTide — Nội dung bài viết (single post / page / 6 CPT)
   Nạp khi is_singular(post,page,case_study,growth_study,ranking,market_insight,news).
   Scope .hentry = <article post_class()> trong index.php.
   ============================================================ */

/* ----- LINKS: ghi đè rule a{ color:#c8410f } (cam) của theme ----- */
.hentry a{
	color:#4f46e5;
	text-decoration:underline;
	text-decoration-thickness:1px;
	text-underline-offset:2px;
	text-decoration-color:rgba(79,70,229,.4);
	transition:color .15s ease, text-decoration-color .15s ease;
}
.hentry a:hover{
	color:#4338ca;
	text-decoration-color:#4338ca;
}
/* Hộp Recommended Reading tự giữ style riêng (specificity cao hơn) nên không bị ảnh hưởng. */

/* ----- TABLES: đồng bộ theme + ghi đè style mặc định WordPress block table ----- */
/* WP block table mặc định gây: đường ĐEN DÀY 3px dưới header + viền cell màu đen.
   Dùng selector .hentry table ... (specificity cao hơn .wp-block-table ...) để thắng. */
.hentry .wp-block-table{ margin:0; border:0; }
.hentry figure.wp-block-table > .tt-table-wrap{ margin:24px 0; }

.tt-table-wrap{
	width:100%;
	margin:24px 0;
	overflow-x:auto;
	-webkit-overflow-scrolling:touch;
	border:1px solid #e5e7eb;
	border-radius:12px;
}
.hentry table{
	width:100%;
	min-width:720px;           /* table rộng hơn màn mobile -> tt-table-wrap cuộn ngang + cột đủ rộng (hết rớt từ) */
	border:0;
	border-collapse:collapse;
	margin:0;
	background:#fff;
	font-family:"DM Sans", system-ui, -apple-system, sans-serif;
	font-size:1rem;
	line-height:1.55;
	color:#1a1a2e;
}
/* tắt đường đen dày dưới header/chân của WP block table */
.hentry table thead,
.hentry table tfoot{ border:0; }
/* viền các ô: ghi đè màu đen mặc định của WP -> xám nhạt */
.hentry table th,
.hentry table td{
	padding:12px 16px;
	text-align:left;
	vertical-align:top;
	border:0;
	border-bottom:1px solid #eceff3;
	border-right:1px solid #f2f4f7;
	overflow-wrap:normal;       /* KHÔNG gãy giữa từ (Source không bị rớt chữ e) */
	word-break:normal;
	hyphens:none;
}
.hentry table th:last-child,
.hentry table td:last-child{ border-right:0; }
/* HEADER: nền tím nhạt + chữ bold tím đậm */
.hentry table thead th{
	background:#eef0fd;
	font-weight:700;
	color:#4338ca;
	border-bottom:1px solid #dcd9f7;
}
.hentry table tbody tr:last-child td{ border-bottom:0; }
.hentry table tbody tr:nth-child(even){ background:#fafafe; }
.hentry table tbody tr:hover{ background:#f5f5fc; }
.hentry table a{ color:#4f46e5; }

@media (max-width:640px){
	.hentry table th,
	.hentry table td{ padding:10px 13px; }
}