/* ==========================================================================
   Trung tâm Đăng kiểm xe cơ giới 37-07D (HAAN H&M) – giao diện
   Bảng màu xanh dương – trắng – vàng: tin cậy, rõ ràng, nhấn hành động.
   Chữ hẹp kiểu biển báo; vàng dành cho hành động và các mốc quy trình.
   Tên biến giữ như cũ (asphalt = nền đậm, signal = màu nhấn) để không phải sửa các khối bên dưới.
   ========================================================================== */

/* ---------- Token ---------- */
/* Khai báo trên body để ghi đè biến màu toàn cục của Astra (Astra khai báo trên :root). */
body {
	--hhm-brand: #123f85;
	--hhm-brand-deep: #0d3068;
	--hhm-brand-deeper: #09244f;
	--hhm-asphalt: var(--hhm-brand);
	--hhm-asphalt-2: var(--hhm-brand-deep);
	--hhm-signal: #f4c542;
	--hhm-signal-hover: #e6b52e;
	--hhm-signal-ink: #09244f;
	/* Vàng sáng chỉ dùng làm chữ nhấn trên nền xanh đậm. */
	--hhm-highlight: #f4c542;
	--hhm-paper: #ffffff;
	--hhm-concrete: #f2f6fc;
	--hhm-line: #d6e1ef;
	--hhm-ink: #14213d;
	--hhm-muted: #51607a;
	--hhm-on-dark: #eaf0fa;
	--hhm-on-dark-muted: #b9c8e6;
	--hhm-link: var(--hhm-brand);
	--hhm-pass: #2e7d4f;
	--hhm-pending: #8a5a00;
	--hhm-fail: #ba0000;
	--hhm-zalo: #0068ff;
	--hhm-zalo-hover: #0052cc;

	--hhm-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--hhm-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
	--hhm-wrap: 1180px;
	--hhm-gutter: clamp(16px, 4vw, 32px);
	--hhm-space: clamp(48px, 7vw, 88px);
	--hhm-radius: 4px;

	--ast-global-color-0: var(--hhm-link);
	--ast-global-color-1: var(--hhm-brand-deeper);
	--ast-global-color-2: var(--hhm-ink);
	--ast-global-color-3: #34405a;
	/* Màu 4 là nền trang của Astra: để trắng, các khối tự tô nền bê tông khi cần. */
	--ast-global-color-4: var(--hhm-paper);
	--ast-global-color-5: var(--hhm-paper);
	--ast-global-color-6: var(--hhm-line);
	--ast-global-color-7: var(--hhm-asphalt-2);
	--ast-global-color-8: var(--hhm-asphalt);

	background: var(--hhm-paper);
	color: var(--hhm-ink);
}

body,
button,
input,
select,
textarea,
.ast-button,
.ast-custom-button {
	font-family: var(--hhm-body);
	font-size: 1.0625rem;
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title {
	font-family: var(--hhm-display);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0;
	color: var(--hhm-ink);
}

a {
	color: var(--hhm-link);
}

:focus-visible {
	outline: 3px solid var(--hhm-brand);
	outline-offset: 2px;
}

.hhm-hero :focus-visible,
.hhm-lane :focus-visible,
.hhm-page-head :focus-visible,
.hhm-footer :focus-visible,
.hhm-topbar :focus-visible {
	outline-color: #fff;
}

/* ---------- Khung chung ---------- */
/* .ast-container của Astra là flex: khối gốc của template phải tự giãn hết chiều ngang. */
.hhm-page {
	width: 100%;
	flex: 1 1 100%;
	min-width: 0;
}

.hhm-wrap {
	max-width: var(--hhm-wrap);
	margin-inline: auto;
	padding-inline: var(--hhm-gutter);
}

.hhm-section {
	padding-block: var(--hhm-space);
}

.hhm-section--concrete {
	background: var(--hhm-concrete);
}

.hhm-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 28px;
}

.hhm-section-title {
	margin: 0;
	font-size: clamp(1.75rem, 3.2vw, 2.25rem);
}

.hhm-prose {
	max-width: 72ch;
}

.hhm-muted {
	color: var(--hhm-muted);
}

/* ---------- Nút và link ---------- */
.hhm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hhm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 22px;
	border: 2px solid transparent;
	border-radius: var(--hhm-radius);
	font-family: var(--hhm-display);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.hhm-btn--signal {
	background: var(--hhm-signal);
	color: var(--hhm-signal-ink);
}

.hhm-btn--signal:hover,
.hhm-btn--signal:focus-visible {
	background: var(--hhm-signal-hover);
	color: var(--hhm-signal-ink);
}

.hhm-btn--ghost {
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
}

.hhm-btn--ghost:hover,
.hhm-btn--ghost:focus-visible {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

/* Nút Zalo giữ màu thương hiệu Zalo để khách nhận ra ngay. */
.hhm-btn--zalo {
	background: var(--hhm-zalo);
	color: #fff;
}

.hhm-btn--zalo:hover,
.hhm-btn--zalo:focus-visible {
	background: var(--hhm-zalo-hover);
	color: #fff;
}

.hhm-btn--outline {
	border-color: var(--hhm-ink);
	color: var(--hhm-ink);
}

.hhm-btn--outline:hover {
	background: var(--hhm-ink);
	color: #fff;
}

.hhm-link {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.hhm-link--light {
	color: var(--hhm-on-dark);
}

.hhm-link--light:hover {
	color: var(--hhm-highlight);
}

/* ---------- Thanh trên cùng ---------- */
.hhm-topbar {
	background: var(--hhm-asphalt);
	color: var(--hhm-on-dark-muted);
	font-size: 0.9375rem;
}

.hhm-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 24px;
	min-height: 40px;
	padding-block: 6px;
}

.hhm-topbar a {
	color: var(--hhm-on-dark);
	text-decoration: none;
}

.hhm-topbar__hotline {
	margin-left: auto;
}

.hhm-topbar__hotline strong {
	color: #fff;
	font-weight: 700;
}

/* Header trắng, viền xanh và vạch vàng kết nối với bảng màu của trang. */
.site-header .main-header-bar,
.ast-primary-header-bar {
	border-bottom: 4px solid var(--hhm-brand);
	box-shadow: 0 2px 0 var(--hhm-signal);
}

.site-title a,
.site-title a:hover {
	color: var(--hhm-brand);
	font-size: 1.6rem;
}

/* Logo HAAN H&M đứng cạnh tên trung tâm. */
.site-branding .custom-logo-link img,
.ast-site-identity .custom-logo-link img {
	width: auto;
	max-height: 56px;
}

.ast-site-identity .site-title {
	line-height: 1.05;
}

/* Tên trung tâm dài: cho xuống dòng thay vì đẩy nút menu ra ngoài màn hình. */
.site-branding,
.ast-site-identity,
.ast-site-title-wrap {
	min-width: 0;
}

.ast-site-title-wrap .site-title {
	white-space: normal;
}

@media (max-width: 921px) {
	.ast-mobile-header-wrap .site-branding,
	.ast-mobile-header-wrap .ast-site-identity {
		display: flex;
		align-items: center;
		gap: 10px;
	}

	.ast-mobile-header-wrap .ast-builder-layout-element.site-header-focus-item {
		flex: 1 1 auto;
		min-width: 0;
	}
}

@media (max-width: 544px) {
	.site-branding .custom-logo-link img,
	.ast-site-identity .custom-logo-link img {
		max-height: 36px;
	}

	.site-title a,
	.site-title a:hover {
		font-size: 1rem;
	}
}

.main-header-menu .menu-link:hover {
	text-decoration: underline;
	text-decoration-color: var(--hhm-signal);
	text-decoration-thickness: 3px;
	text-underline-offset: 8px;
}

.main-header-menu .menu-link:not(:hover) {
	text-decoration: none;
}

.main-header-menu .menu-link {
	font-weight: 600;
	color: var(--hhm-ink);
}

/* ---------- Trang chủ: hero ---------- */
.hhm-hero {
	background: linear-gradient(115deg, var(--hhm-brand-deep), var(--hhm-brand));
	color: var(--hhm-on-dark);
	padding-block: clamp(56px, 9vw, 112px) clamp(40px, 6vw, 72px);
}

.hhm-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: end;
}

.hhm-hero__title {
	margin: 0 0 20px;
	color: #fff;
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	line-height: 1;
	max-width: 14ch;
}

.hhm-hero__lead {
	max-width: 46ch;
	margin: 0 0 32px;
	color: var(--hhm-on-dark);
	font-size: 1.1875rem;
}

.hhm-hero__card {
	padding: 24px;
	background: var(--hhm-brand-deeper);
	border-left: 4px solid var(--hhm-signal);
}

.hhm-hero__card-title {
	margin: 0 0 6px;
	color: var(--hhm-on-dark-muted);
	font-family: var(--hhm-body);
	font-size: 0.9375rem;
	font-weight: 500;
}

.hhm-hero__card-title:not(:first-child) {
	margin-top: 20px;
}

.hhm-hours {
	margin: 0;
	padding: 0;
	list-style: none;
	color: #fff;
	font-weight: 500;
}

.hhm-hero__address {
	margin: 0 0 8px;
	color: #fff;
}

.hhm-hero__card .hhm-link {
	color: var(--hhm-highlight);
}

/* ---------- Trang chủ: làn kiểm định (điểm nhấn) ---------- */
.hhm-lane {
	--lane-height: 72px;
	background: var(--hhm-asphalt-2);
	color: var(--hhm-on-dark);
	padding-block: var(--hhm-space);
}

.hhm-lane__title {
	color: #fff;
	margin-bottom: 36px;
}

.hhm-lane__road {
	position: relative;
	display: grid;
	/* Số cột theo số bước (biến --lane-steps đặt trong front-page.php). */
	grid-template-columns: repeat(var(--lane-steps, 5), minmax(0, 1fr));
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Mặt đường: hai mép trắng, vạch giữa trắng đứt quãng. */
.hhm-lane__road::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: var(--lane-height);
	border-block: 2px solid rgba(255, 255, 255, 0.45);
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 36px, transparent 36px 64px)
		0 50% / 100% 4px no-repeat,
		var(--hhm-asphalt);
	animation: hhm-drive 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes hhm-drive {
	from {
		background-position: -640px 50%, 0 0;
	}
	to {
		background-position: 0 50%, 0 0;
	}
}

.hhm-lane__stop {
	position: relative;
	padding-top: calc(var(--lane-height) + 24px);
}

/* Số trạm như số làn sơn trên mặt đường. */
.hhm-lane__bay {
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 56px;
	height: var(--lane-height);
	background: var(--hhm-signal);
	color: var(--hhm-signal-ink);
	font-family: var(--hhm-display);
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1;
}

.hhm-lane__name {
	margin: 0 0 8px;
	color: #fff;
	font-size: 1.375rem;
}

.hhm-lane__text {
	margin: 0;
	color: var(--hhm-on-dark-muted);
	font-size: 1rem;
}

/* ---------- Trang chủ: nội dung soạn trong quản trị ---------- */
.hhm-info .hhm-prose h2 {
	font-size: clamp(1.75rem, 3.2vw, 2.25rem);
	margin: 0 0 16px;
}

.hhm-info .hhm-prose h2:not(:first-child) {
	margin-top: 48px;
}

.hhm-prose ul {
	margin: 0 0 24px 1.2em;
}

.hhm-prose li {
	margin-bottom: 6px;
}

.hhm-prose details {
	border-top: 1px solid var(--hhm-line);
	padding-block: 4px;
}

.hhm-prose details:last-of-type {
	border-bottom: 1px solid var(--hhm-line);
}

.hhm-prose summary {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-block: 14px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.hhm-prose summary::-webkit-details-marker {
	display: none;
}

.hhm-prose summary::after {
	content: "+";
	flex: none;
	font-family: var(--hhm-display);
	font-size: 1.5rem;
	line-height: 1;
	color: var(--hhm-muted);
}

.hhm-prose details[open] summary::after {
	content: "\2212";
}

.hhm-prose details > :not(summary) {
	margin: 0 0 16px;
	color: #34405a;
}

/* ---------- Bảng văn bản ---------- */
.hhm-docs {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	background: var(--hhm-paper);
	font-size: 1rem;
}

.hhm-docs th,
.hhm-docs td {
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid var(--hhm-line);
	text-align: left;
	vertical-align: top;
}

.hhm-docs thead th {
	background: var(--hhm-brand);
	color: #fff;
	font-family: var(--hhm-body);
	font-size: 0.9375rem;
	font-weight: 600;
}

.hhm-docs tbody tr:hover {
	background: #f5f8fd;
}

.hhm-docs__number,
.hhm-docs__date {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.hhm-docs__number {
	font-weight: 600;
}

.hhm-docs__title a {
	color: var(--hhm-ink);
	font-weight: 600;
	text-decoration: none;
}

.hhm-docs__title a:hover {
	color: var(--hhm-link);
	text-decoration: underline;
}

.hhm-docs__file {
	display: block;
	margin-top: 2px;
	color: var(--hhm-muted);
	font-size: 0.875rem;
}

.hhm-status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
	background: #e6f2eb;
	color: var(--hhm-pass);
}

.hhm-status--chua_hieu_luc {
	background: #fbf0d9;
	color: var(--hhm-pending);
}

.hhm-status--het_hieu_luc {
	background: #f9e3e1;
	color: var(--hhm-fail);
}

/* ---------- Tiêu đề trang con ---------- */
.hhm-page-head {
	background: var(--hhm-asphalt);
	color: var(--hhm-on-dark);
	padding-block: clamp(40px, 6vw, 72px);
	border-bottom: 4px solid var(--hhm-signal);
}

.hhm-page-head__title {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.hhm-page-head__lead {
	max-width: 62ch;
	margin: 0;
	color: var(--hhm-on-dark);
}

/* ---------- Bộ lọc văn bản ---------- */
.hhm-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px;
	margin-top: 32px;
}

.hhm-filter__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 180px;
}

.hhm-filter__field--grow {
	flex: 1 1 280px;
}

.hhm-filter label {
	color: var(--hhm-on-dark-muted);
	font-size: 0.9375rem;
}

.hhm-filter input,
.hhm-filter select {
	min-height: 48px;
	padding: 10px 14px;
	border: 2px solid transparent;
	border-radius: var(--hhm-radius);
	background: #fff;
	color: var(--hhm-ink);
}

.hhm-filter input:focus,
.hhm-filter select:focus {
	border-color: var(--hhm-signal);
	outline: none;
}

.hhm-filter__actions {
	display: flex;
	align-items: center;
	gap: 20px;
}

.hhm-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.hhm-tabs__item {
	padding: 8px 16px;
	border: 1px solid var(--hhm-line);
	border-radius: var(--hhm-radius);
	color: var(--hhm-ink);
	font-weight: 600;
	text-decoration: none;
}

.hhm-tabs__item:hover {
	border-color: var(--hhm-brand);
	color: var(--hhm-brand);
}

.hhm-tabs__item[aria-current="page"] {
	background: var(--hhm-brand);
	border-color: var(--hhm-brand);
	color: #fff;
}

.hhm-result-count {
	margin: 0 0 12px;
	color: var(--hhm-muted);
}

.hhm-empty {
	padding: 40px 0;
	max-width: 56ch;
}

.hhm-empty h2 {
	font-size: 1.75rem;
	margin: 0 0 8px;
}

/* Phân trang của WordPress */
.hhm-section .navigation.pagination {
	margin-top: 32px;
}

.hhm-section .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.hhm-section .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--hhm-line);
	border-radius: var(--hhm-radius);
	color: var(--hhm-ink);
	text-decoration: none;
}

.hhm-section .page-numbers.current {
	background: var(--hhm-brand);
	border-color: var(--hhm-brand);
	color: #fff;
}

/* ---------- Chi tiết văn bản ---------- */
.hhm-back {
	display: inline-block;
	margin-bottom: 16px;
}

.hhm-doc__title {
	max-width: 28ch;
	margin-bottom: 20px;
}

.hhm-doc__grid {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

.hhm-doc__meta dl {
	margin: 0 0 24px;
}

.hhm-doc__meta dl > div {
	padding-block: 12px;
	border-bottom: 1px solid var(--hhm-line);
}

.hhm-doc__meta dt {
	color: var(--hhm-muted);
	font-size: 0.9375rem;
}

.hhm-doc__meta dd {
	margin: 2px 0 0;
	font-weight: 600;
}

.hhm-doc__download {
	width: 100%;
}

.hhm-doc__summary {
	font-size: 1.1875rem;
	max-width: 62ch;
}

.hhm-doc__pdf {
	display: block;
	width: 100%;
	height: 80vh;
	min-height: 520px;
	margin-top: 24px;
	border: 1px solid var(--hhm-line);
}

/* ---------- Thẻ tin ---------- */
.hhm-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 32px 28px;
}

.hhm-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--hhm-concrete);
	border-radius: var(--hhm-radius);
}

.hhm-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Ảnh dự phòng: vạch làn đường trên nền xanh. */
.hhm-card__placeholder {
	position: absolute;
	inset: 0;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 28px, transparent 28px 48px)
		0 50% / 100% 4px no-repeat,
		var(--hhm-asphalt-2);
}

.hhm-card__count {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 2px 10px;
	border-radius: var(--hhm-radius);
	background: var(--hhm-brand-deep);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
}

.hhm-card__body {
	padding-top: 14px;
}

.hhm-card__date {
	color: var(--hhm-muted);
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
}

.hhm-card__title {
	margin: 4px 0 8px;
	font-size: 1.375rem;
	line-height: 1.2;
}

.hhm-card__title a {
	color: var(--hhm-ink);
	text-decoration: none;
}

.hhm-card__title a:hover {
	color: var(--hhm-link);
	text-decoration: underline;
}

.hhm-card__excerpt {
	margin: 0;
	color: #34405a;
	font-size: 1rem;
}

/* ---------- Kêu gọi đặt lịch ---------- */
.hhm-cta {
	background: var(--hhm-signal);
	color: var(--hhm-signal-ink);
	padding-block: clamp(40px, 6vw, 64px);
}

.hhm-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.hhm-cta__title {
	margin: 0 0 6px;
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	color: var(--hhm-signal-ink);
}

.hhm-cta p {
	margin: 0;
	max-width: 52ch;
}

.hhm-cta .hhm-btn--signal {
	background: var(--hhm-brand);
	color: #fff;
}

.hhm-cta .hhm-btn--signal:hover {
	background: var(--hhm-brand-deeper);
	color: #fff;
}

.hhm-cta .hhm-btn--ghost {
	border-color: var(--hhm-brand-deeper);
	color: var(--hhm-brand-deeper);
}

.hhm-cta .hhm-btn--ghost:hover {
	border-color: var(--hhm-brand-deeper);
	background: var(--hhm-brand-deeper);
	color: #fff;
}

/* ---------- Liên hệ ---------- */
.hhm-contact {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

.hhm-contact__list {
	margin: 0 0 24px;
}

.hhm-contact__list > div {
	padding-block: 14px;
	border-bottom: 1px solid var(--hhm-line);
}

.hhm-contact__list dt {
	color: var(--hhm-muted);
	font-size: 0.9375rem;
}

.hhm-contact__list dd {
	margin: 2px 0 0;
	font-size: 1.125rem;
	font-weight: 600;
}

.hhm-contact__map {
	width: 100%;
	aspect-ratio: 4 / 3;
	border: 0;
	border-radius: var(--hhm-radius);
}

/* ---------- Chân trang ---------- */
.hhm-footer {
	background: var(--hhm-brand-deep);
	color: var(--hhm-on-dark-muted);
	padding-block: 56px 40px;
	font-size: 1rem;
}

.hhm-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.hhm-footer__name {
	margin: 0 0 8px;
	color: #fff;
	font-family: var(--hhm-display);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.15;
}

.hhm-footer p {
	margin: 0 0 4px;
}

.hhm-footer strong {
	color: var(--hhm-on-dark);
}

.hhm-footer__heading {
	margin: 0 0 12px;
	color: var(--hhm-highlight);
	font-family: var(--hhm-body);
	font-size: 1rem;
	font-weight: 600;
}

.hhm-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hhm-footer__list li {
	margin-bottom: 6px;
}

.hhm-footer a {
	color: var(--hhm-on-dark);
	text-decoration: none;
}

.hhm-footer a:hover {
	color: var(--hhm-highlight);
	text-decoration: underline;
}

/* Thanh bản quyền của Astra nằm ngay dưới khối chân trang. */
.site-footer .site-below-footer-wrap,
.site-footer .ast-builder-grid-row-container {
	background: var(--hhm-brand-deeper);
	color: var(--hhm-on-dark-muted);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .site-below-footer-wrap a {
	color: var(--hhm-on-dark);
}

.site-footer .site-below-footer-wrap .ast-footer-copyright,
.site-footer .site-below-footer-wrap .ast-footer-copyright p {
	color: var(--hhm-on-dark-muted);
}

/* ---------- Nút gọi nhanh trên điện thoại ---------- */
.hhm-callbar {
	display: none;
}

/* ---------- Bài viết (tin tức) dùng bố cục Astra ---------- */
.single-post .entry-title {
	font-size: clamp(2rem, 4.5vw, 3rem);
}

.single-post .entry-content {
	max-width: 72ch;
}

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 960px) {
	.hhm-hero__grid,
	.hhm-doc__grid,
	.hhm-contact {
		grid-template-columns: minmax(0, 1fr);
	}

	.hhm-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Làn đường chuyển sang dọc: mặt đường chạy bên trái, các trạm xếp xuống. */
	.hhm-lane__road {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding-left: calc(var(--lane-height) + 20px);
	}

	.hhm-lane__road::before {
		inset: 0 auto 0 0;
		width: var(--lane-height);
		height: auto;
		border-block: 0;
		border-inline: 2px solid rgba(255, 255, 255, 0.45);
		background:
			repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0 36px, transparent 36px 64px)
			50% 0 / 4px 100% no-repeat,
			var(--hhm-asphalt);
		animation: none;
	}

	.hhm-lane__stop {
		padding: 0 0 32px;
		min-height: 88px;
	}

	.hhm-lane__bay {
		left: calc(-1 * (var(--lane-height) + 20px));
		width: var(--lane-height);
		height: 56px;
	}
}

@media (max-width: 782px) {
	.hhm-topbar__hours,
	.hhm-topbar__email {
		display: none;
	}

	.hhm-topbar__hotline {
		margin-left: 0;
	}

	/* Bảng văn bản thành danh sách thẻ, nhãn cột lấy từ data-label. */
	.hhm-docs thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.hhm-docs,
	.hhm-docs tbody,
	.hhm-docs tr,
	.hhm-docs td {
		display: block;
	}

	/* flex để đưa ô trích yếu lên đầu thẻ (order: -1). */
	.hhm-docs tr {
		display: flex;
		flex-direction: column;
		padding: 14px 0;
		border-bottom: 1px solid var(--hhm-line);
	}

	.hhm-docs td {
		display: grid;
		grid-template-columns: 8.5em minmax(0, 1fr);
		gap: 12px;
		padding: 4px 0;
		border: 0;
		white-space: normal;
	}

	.hhm-docs td::before {
		content: attr(data-label);
		color: var(--hhm-muted);
		font-size: 0.875rem;
		font-weight: 500;
	}

	.hhm-docs td > .hhm-status {
		justify-self: start;
	}

	.hhm-docs td.hhm-docs__title {
		grid-template-columns: minmax(0, 1fr);
		order: -1;
	}

	.hhm-docs td.hhm-docs__title::before {
		display: none;
	}

	.hhm-docs tbody tr:hover {
		background: none;
	}

	.hhm-filter__field {
		flex: 1 1 100%;
	}

	.hhm-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Chừa chỗ cho thanh gọi nhanh cố định. */
	body {
		padding-bottom: 64px;
	}

	.hhm-callbar {
		position: fixed;
		inset: auto 0 0;
		z-index: 99;
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15);
	}

	.hhm-callbar a {
		display: grid;
		place-items: center;
		min-height: 56px;
		font-family: var(--hhm-display);
		font-size: 1.2rem;
		font-weight: 700;
		text-decoration: none;
	}

	.hhm-callbar__call {
		background: var(--hhm-signal);
		color: var(--hhm-signal-ink);
	}

	.hhm-callbar__zalo {
		background: var(--hhm-zalo);
		color: #fff;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hhm-lane__road::before {
		animation: none;
	}

	.hhm-btn {
		transition: none;
	}
}
