/*
Theme Name:   ReHub Child (migendeals)
Template:     rehub-theme
Description:  Child theme của ReHub cho migendeals.com. Chỉ chứa phần chỉnh theo spec trạm 05; theme mẹ giữ nguyên để cập nhật được.
Version:      2.7.6
Text Domain:  rehub-child
*/

/* R1: header desktop gọn hơn. Logo ảnh đang hiện cao 152 px (ảnh gốc 1758 × 592) làm header cao 222 px.
   Giới hạn logo 72 px (2.4.1, owner 2026-11-04 "Tăng lên 72 px"; trước 56 px), đệm trên / dưới 10 px. Phần logo chỉ hiện trên desktop (ReHub ẩn ở tablet / mobile). */
@media (min-width: 1025px) {
	#main_header .logo-section {
		padding-top: 10px;
		padding-bottom: 10px;
	}
	#main_header .logo img {
		max-height: 72px;
		width: auto;
	}
	/* Reserve the logo height before the image arrives (no header jump); width follows the width/height ratio. */
	#main_header .logo a.logo_image img {
		height: 72px;
	}
}

/* VS-05: H1 bài viết ≥ 36 px trên desktop (đang 34 px, line-height 34 px). */
@media (min-width: 1025px) {
	.title_single_area h1 {
		font-size: 36px;
		line-height: 1.2;
	}
}

/* H-03: breadcrumb đổi sang nav + ol (inc/rhchild-semantic.php); giữ hiển thị 1 dòng, ngăn bằng » như cũ.
   ol có class nên quy tắc ".post ol:not([class]) li" của ReHub (lề 15 px) không áp vào. */
.rhchild-breadcrumb-list {
	display: inline;
	list-style: none;
	margin: 0;
	padding: 0;
}
.rhchild-breadcrumb-list li {
	display: inline;
	list-style: none;
	margin: 0;
	padding: 0;
}
.rhchild-breadcrumb-list li + li::before {
	content: "\00bb";
	margin: 0 0.35em;
}

/* H-02 (owner Q2: giữ khối Related, đổi thẻ): tiêu đề khối từ div thành h2 → giữ line-height và màu như div cũ (kế thừa). */
.related_articles h2.related_title {
	line-height: inherit;
	color: inherit;
}

/* Previous / Next: tiêu đề từ h4 thành div → giữ đúng giao diện h4 cũ (18 px, đậm, line-height 24 px, màu #111). */
.postNavigation .headline .rhchild-prevnext-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
	margin: 0;
}
.postNavigation .headline .rhchild-prevnext-title a {
	color: #111;
}

/* 2.5.0 (trạm 05 E2, owner 2026-11-04 "Duyệt E1–E4"): trang lưu trữ / tìm kiếm / tác giả có H1 (trước là div.font140).
   Giữ đúng giao diện div cũ (đo 2026-11-04: 21 px, line-height normal, lề 0, màu kế thừa; chỉ chuyên mục đậm vì có class fontbold). */
.wpsm-cat-title h1.rhchild-archive-h1 {
	margin: 0;
	line-height: normal;
	color: inherit;
}
.wpsm-cat-title h1.rhchild-archive-h1:not(.fontbold) {
	font-weight: inherit;
}

/* 2.5.0: trang 404 có H1 "404" (trước là h2) → giữ đúng giao diện ".errorpage h2" của ReHub (đo 2026-11-04). */
.errorpage h1.rhchild-404-h1 {
	font-size: 160px;
	font-weight: 700;
	line-height: 148px;
	margin: 10px 0 14px 0;
	text-align: center;
}

/* Block style (repo content viết chữ trong khối Gutenberg; S17 v3) */
.is-style-mg-short-answer{background:#F5F3FF;border:1px solid #DDD6FE;border-radius:12px;padding:14px 16px;margin:0 0 16px}
.is-style-mg-pros-cons>.wp-block-column{border:1px solid #E5E7EB;border-radius:12px;padding:12px 14px}
ol.is-style-mg-steps{padding-left:22px}
ol.is-style-mg-steps>li{margin:0 0 14px}
/* Sơ đồ SVG 2 bản trong bài (repo content, chen_media.py): .sv-d máy tính, .sv-m điện thoại ≤ 640 px. CSS này trước nằm ở <head> file HTML của repo content nên không lên WordPress (2.7.5, owner chọn (b) 2026-11-17). */
.sv-m{display:none}
@media (max-width:640px){.sv-d{display:none}.sv-m{display:block}}
figure.svgfig svg{display:block;width:100%;height:auto}
.wp-block-table figcaption,.wp-block-table table caption{font-size:13px;color:#4B5563;text-align:left}
/* Tab dính "Table of Content" của Easy TOC: ẩn ở màn ≤ 1024 px bằng CÀI ĐẶT plugin (Sticky TOC → Device Target = Desktop Only,
   owner duyệt 2026-11-07), không bằng CSS theme. */

/* Accessibility: text contrast >= 4.5:1 (WCAG AA), same hues. */
/* Breadcrumb */
nav.breadcrumb.rh_opacity_7 {
	opacity: 1;
}
.rhchild-breadcrumb-list a,
.rhchild-breadcrumb-list .current {
	color: #6B7280;
}
.rhchild-breadcrumb-list a {
	text-decoration: underline !important;
	text-underline-offset: 2px;
}
/* Post date */
.post-meta-big .date_time_post,
.post-meta-big .date_time_post time {
	color: #6B7280;
}
/* Homepage sections */
body .mgd-wrap {
	--gray400: #6B7280;
	--green: #15803D;
	--amber: #B45309;
}
/* Archive grid: date and brand label */
.offer_grid .date_for_grid .date_ago,
.rh_custom_notice {
	color: #6B7280;
}
body .offer_grid.mobile_grid .rh_notice_wrap,
.rh_custom_notice {
	opacity: 1;
}
/* Product price table */
.cegg-tt-wrap .cegg-tt-row .cegg-tt-oldprice {
	color: #6B7280;
}
.cegg-tt-wrap .cegg-tt-name .cegg-tt-fire {
	background: #C53030;
}
/* Touch targets >= 24px */
.author_detail_box strong.mb10 a,
.author_detail_box a.author-social {
	display: inline-block;
	min-width: 24px;
	min-height: 24px;
	line-height: 24px;
}
.f_text_span a,
#ez-toc-container .ez-toc-list a.ez-toc-link,
.offer_grid .cat_link_meta a.cat {
	display: inline-block;
	min-height: 24px;
	line-height: 24px;
}
/* Links inside text are underlined, not color-only (parent theme forces none !important on all links) */
.rh-post-wrapper article p > a:not([class]),
.rh-post-wrapper article :not(.rhchild-breadcrumb-list) > li > a:not([class]),
body .mgd-wrap p > a:not([class]) {
	text-decoration: underline !important;
	text-underline-offset: 2px;
}
/* Content Egg template "cegg-ctt" (deal pages): old price and HOT badge. Template styles sit in <body>, so selectors need one extra class. */
.cegg-ctt-wrap .cegg-ctt-row .cegg-ctt-oldprice {
	color: #4B5563;
}
.cegg-ctt-wrap .cegg-ctt-name .cegg-ctt-hot {
	background: #C53030;
}
/* Content Egg sidebar widget ("Price Drops"): old price at full opacity (ReHub .rh_opacity_5 halves it, contrast < 4.5:1). */
.cegg_widget_products .product-price-old.rh_opacity_5 {
	opacity: 1;
}
/* In-post brand buttons whose inline colors are below 4.5:1: darker shade of the same hue (inline style needs !important). */
.rh-post-wrapper article a[style*="background:#00B2D9" i],
.rh-post-wrapper article a[style*="background: #00B2D9" i] {
	background: #007E99 !important;
}
.rh-post-wrapper article a[style*="background:#00A45A" i],
.rh-post-wrapper article a[style*="background: #00A45A" i] {
	background: #008549 !important;
}
