/**
 * css/41-page-service.css — OWNERSHIP: B4. Khung bài/trang đơn + typography thân bài + trang liên hệ.
 *
 * [phục vụ]  body.dp-view-article (8 dịch vụ + 9 tỉnh + 7 bài), .dp-view-page (/bang-gia, /gioi-thieu-cong-ty, /ban-hang-xai),
 *            .dp-view-keyword (54 trang từ khóa), .dp-view-listing (khung của 4 trang danh mục — nội dung do B5/B6),
 *            .dp-view-contact (/lien-he). Các class do inc/templates.php gắn vào <body>.
 * [nguồn]    docs/reference/duongphat/measure/{service-mua-phe-lieu-dong,bang-gia,gioi-thieu,lien-he}.json (1440/850/849/390),
 *            CSS gốc docs/reference/duongphat/css-raw/{default,style}.css.
 * [lý do vượt panel]  panel không chỉnh được bề rộng cột `calc(100% - 320px)` + 280, ẩn sidebar ở 992 (ngoại lệ đã duyệt),
 *            typography nội dung CKEditor (h2 30/h3 24, p margin 0, bảng border=1...).
 * Selector chỉ nhắm class tự đặt (dp-*) + class Flatsome NẰM TRONG body.dp-view-* (luật C5). Mọi @media bọc đúng khổ.
 * Ở khổ ≤992 cột bài 100% + sidebar ẩn (gốc `@media (max-width:992px)`).
 * VÙNG sidebar (nội dung widget, sticky) do B6 — tệp này chỉ cấp bề rộng cột.
 */

/* ════════════════════════════════════════════════════════════════════════
 * 1. KHUNG 2 CỘT  .wrap_background_aside (mt 20, mb 30) > .margin-auto (1270, pad 10) > flex-between
 *    Cột bài = calc(100% - 320px) (= 930 @≥1270), sidebar 280, khe 40 do space-between.
 *    Hai cấu trúc của parent: bài  = #content.blog-wrapper > .row > .large-9.col + .post-sidebar.large-3.col
 *                              trang = .page-wrapper.page-right-sidebar > .row > #content.large-9.col + .large-3.col
 * ════════════════════════════════════════════════════════════════════════ */
.dp-view-article #content.blog-wrapper,
.dp-view-page .page-wrapper.page-right-sidebar,
.dp-view-keyword .page-wrapper.page-right-sidebar,
.dp-view-listing .page-wrapper.page-right-sidebar,
.dp-view-contact #content.page-wrapper {
	padding-top: var(--dp-subpage-top);
	padding-bottom: var(--dp-subpage-bottom);
}

.dp-view-article #content.blog-wrapper > .row,
.dp-view-page .page-right-sidebar > .row,
.dp-view-keyword .page-right-sidebar > .row,
.dp-view-listing .page-right-sidebar > .row,
.dp-view-contact #content.page-wrapper > .row {
	max-width: var(--dp-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--dp-gutter-x);
	padding-right: var(--dp-gutter-x);
	justify-content: space-between;
}

/* Cột: bỏ padding/đường kẻ của Flatsome (.row-large > .col 0 30px 30px; .col-divided border-right). */
.dp-view-article #content.blog-wrapper > .row > .col,
.dp-view-page .page-right-sidebar > .row > .col,
.dp-view-keyword .page-right-sidebar > .row > .col,
.dp-view-listing .page-right-sidebar > .row > .col,
.dp-view-contact #content.page-wrapper > .row > .col {
	padding: 0;
	border: 0;
}

@media (min-width: 993px) {
	.dp-view-article #content.blog-wrapper > .row > .large-9,
	.dp-view-page .page-right-sidebar > .row > .large-9,
	.dp-view-keyword .page-right-sidebar > .row > .large-9,
	.dp-view-listing .page-right-sidebar > .row > .large-9 {
		flex: 0 0 auto;
		width: calc(100% - 320px);
		max-width: none;
	}

	.dp-view-article #content.blog-wrapper > .row > .large-3,
	.dp-view-page .page-right-sidebar > .row > .large-3,
	.dp-view-keyword .page-right-sidebar > .row > .large-3,
	.dp-view-listing .page-right-sidebar > .row > .large-3 {
		flex: 0 0 auto;
		width: var(--dp-col-side);
		max-width: var(--dp-col-side);
	}
}

@media (max-width: 992px) {
	.dp-view-article #content.blog-wrapper > .row > .large-9,
	.dp-view-page .page-right-sidebar > .row > .large-9,
	.dp-view-keyword .page-right-sidebar > .row > .large-9,
	.dp-view-listing .page-right-sidebar > .row > .large-9 {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
	}

	.dp-view-article #content.blog-wrapper > .row > .large-3,
	.dp-view-page .page-right-sidebar > .row > .large-3,
	.dp-view-keyword .page-right-sidebar > .row > .large-3,
	.dp-view-listing .page-right-sidebar > .row > .large-3 {
		display: none;
	}
}

/* Trang "từ khóa": gốc có cột sidebar 280 nhưng .sidebar-blog RỖNG (kiểm 54/54 HTML gốc) — giữ cột (bề rộng 930),
   ẩn nội dung widget nhưng giữ khung #secondary (gốc có `.sidebar-blog.aside--sticky` rỗng: QA đo sticky.presence). Không phụ thuộc khổ (≤992 cả cột đã ẩn ở trên). */
.dp-view-keyword .page-right-sidebar > .row > .large-3 #secondary > * {
	display: none;
}

/* ════════════════════════════════════════════════════════════════════════
 * 2. H1 BÀI / TRANG  .article-main .title-head: RobotoBold 20/22 hoa #000, pb 3, mb 0
 *    Bài: <h1 class="entry-title"> (partial của parent) · Trang: <h1 class="entry-title mb uppercase">.
 *    Phần chuyên mục (h6) đã tắt bằng theme mod blog_single_header_category=0; vạch is-divider ẩn tại đây (gốc không có).
 * ════════════════════════════════════════════════════════════════════════ */
.dp-view-article .entry-header-text {
	padding: 0;
	text-align: left;
}

.dp-view-article .entry-header-text .entry-divider,
.dp-view-article .entry-header-text .is-divider {
	display: none;
}

.dp-view-article .entry-title,
.dp-view-page .entry-title {
	margin: 0;
	padding: 0 0 3px;
	color: var(--dp-text-strong);
	font-family: var(--dp-font-roboto-bold);
	font-size: var(--dp-fs-article-h1);
	font-weight: var(--dp-fw-roboto-bold);
	letter-spacing: normal; /* Flatsome h1 có letter-spacing 1px; gốc normal (H1 /bang-gia @375 gãy 2 dòng nếu để 1px) */
	line-height: var(--dp-lh-article-h1);
	text-align: left;
	text-transform: uppercase;
}

/* !important có lý do: Flatsome ghi `.mb{margin-bottom:30px!important}` và template page in H1 với class `mb uppercase`;
   chỉ có !important mới đè được. Trang nội dung: mb 0 (gốc); từ khóa/danh sách: mb 25 (30-components §4). */
.dp-view-page .entry-title.mb {
	margin-bottom: 0 !important;
}

.dp-view-keyword .entry-title.mb,
.dp-view-listing .entry-title.mb {
	margin-bottom: 25px !important;
}

/* Trang "từ khóa"/danh sách: H1 kiểu tiêu đề trang (30-components §4) — chỉ bỏ mb mặc định của class `mb`. */
.dp-view-keyword .entry-header,
.dp-view-listing .entry-header {
	margin: 0;
}

/* /lien-he: gốc ẩn H1 (display:none). Giữ H1 cho trình đọc/SEO nhưng ẩn khỏi mắt. */
.dp-view-contact .entry-header {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Khoảng cách trong bài: bỏ padding trên/dưới của .entry-content (Flatsome 21px) */
.dp-view-article .entry-content.single-page {
	padding: 0;
}

/* ════════════════════════════════════════════════════════════════════════
 * 3. THÂN BÀI  .content-blog#blog-detail → .dp-content (inc/templates.php)
 *    RobotoRegular 14/22 #141414, mt 10, mb 20 (đo gốc). p margin 0 (khoảng cách do CKEditor/&nbsp;); h2 30px / h3 24px
 *    weight 400 line-height 22 (kế thừa — đo h2 cao 27, h3 cao 25; chữ thật nằm trong span 16px inline của CKEditor);
 *    blockquote 17.5px padding 10×20 mb 20 viền trái 5px #eee (Bootstrap 3.2 gốc); danh sách KHÔNG dấu đầu dòng, margin 0
 *    (gốc `ul,ol{list-style:none;margin:0;padding:0}`) — giữ nguyên theo gốc.
 * ════════════════════════════════════════════════════════════════════════ */
.dp-content {
	margin: 10px 0 20px;
	color: var(--dp-text-article);
	font-family: var(--dp-font-roboto-regular);
	font-size: var(--dp-fs-article);
	line-height: var(--dp-lh-article);
	overflow-wrap: break-word;
}

.dp-content p {
	margin: 0;
}

.dp-content h1,
.dp-content h2,
.dp-content h3,
.dp-content h4,
.dp-content h5,
.dp-content h6 {
	margin: 0;
	color: var(--dp-text-article);
	font-family: inherit;
	font-weight: 400;
	letter-spacing: normal;
	line-height: inherit;
	text-transform: none;
	scroll-margin-top: 60px;
}

.dp-content h2 {
	font-size: 30px;
}

/* Ba H1 thừa của CKEditor được hạ thành H2 khi render: giữ cỡ H1 gốc để không thay đổi bố cục. */
.dp-content h2.dp-legacy-h1 {
	font-size: 23.8px;
}

.dp-content h3 {
	font-size: 24px;
}

.dp-content h4 {
	font-size: 18px;
}

.dp-content ul,
.dp-content ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Flatsome: `.entry-content ul li{margin-left:1.3em}` (0,1,2) — cùng độ đặc hiệu, tệp này nạp sau nên thắng. */
.dp-content ul li,
.dp-content ol li {
	margin: 0;
	padding: 0;
}

.dp-content a {
	color: inherit;
}

.dp-content a:hover,
.dp-content a:focus-visible {
	color: var(--dp-link-hover);
}

/* !important có lý do: CKEditor ghi width/height cố định ở thuộc tính style="" (không sửa được vì post_content là nguyên văn);
   gốc cũng dùng `.content-blog img{max-width:100%!important;height:auto!important}`. */
.dp-content img {
	max-width: 100% !important;
	height: auto !important;
}

/* CKEditor: <figure style="display:inline-block"> — baseline chừa khoảng descender (+18,2px mỗi figure ở bài hàng tồn). */
.dp-content figure {
	margin: 0;
	vertical-align: top;
}

.dp-content blockquote {
	margin: 0 0 20px;
	padding: 10px 20px;
	border-left: 5px solid var(--dp-border);
	color: inherit;
	font-size: 17.5px;
	font-style: normal;
	line-height: var(--dp-lh-article);
}

.dp-content blockquote p {
	margin: 0;
}

/* Bảng trong bài: <table border="1" style="width:100%"> — viền 1px màu chữ, ô không padding (đo gốc: ô cao 23 = 22 + 1). */
.dp-content table {
	width: auto; /* gốc: <table border=1> không width => rộng theo nội dung (Flatsome ép 100%); bảng có style="width:100%" vẫn 100% */
	max-width: 100%;
	margin: 0;
	border-collapse: collapse;
	border-spacing: 0;
	color: inherit;
	font-size: inherit;
}

.dp-content td,
.dp-content th {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	text-transform: none;
	vertical-align: middle;
}

.dp-content table[border]:not([border="0"]),
.dp-content table[border]:not([border="0"]) td,
.dp-content table[border]:not([border="0"]) th {
	border: 1px solid currentcolor;
}

/* ════════════════════════════════════════════════════════════════════════
 * 4. /LIEN-HE  .tpl-full: 2 cột 48/48 space-between; ≤850 xếp dọc (cột phải mt 15). H2 = .dp-title-main (30-components §4).
 *    Nội dung cột trái = post_content NGUYÊN VĂN (dữ liệu mẫu của site gốc — xem SERVICE.md mục Bất thường).
 * ════════════════════════════════════════════════════════════════════════ */
.dp-contact {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.dp-contact__info,
.dp-contact__form {
	width: 48%;
}

@media (max-width: 850px) {
	.dp-contact__info,
	.dp-contact__form {
		width: 100%;
	}

	.dp-contact__form {
		margin-top: 15px;
	}
}
