/*
Theme Name: Kanalharga
Theme URI: https://kanalharga.com
Description: Tema anak Astra untuk Kanalharga.com — desain khusus situs informasi harga.
Author: Kanalharga
Template: astra
Version: 1.0.0
Text Domain: kanalharga
*/

:root {
	--kh-ink: #0b1220;
	--kh-text: #26303f;
	--kh-muted: #64748b;
	--kh-line: #e5e7eb;
	--kh-soft: #f8fafc;
	--kh-accent: #ea580c;
	--kh-accent-dark: #c2410c;
	--kh-accent-soft: #fff7ed;
	--kh-radius: 14px;
	--kh-shadow: 0 16px 40px -24px rgba(15, 23, 42, 0.45);
}

html,
body {
	overflow-x: hidden;
}

body {
	background: #fff;
	color: var(--kh-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
	color: var(--kh-ink);
	letter-spacing: -0.015em;
}

a {
	color: var(--kh-accent-dark);
}

a:hover,
a:focus {
	color: var(--kh-accent);
}

.site-content {
	padding: 0;
}

.ast-container {
	max-width: 1180px;
}

.ast-separate-container {
	background: #fff;
}

/* ---------------------------------------------------------------- header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 99;
	background: #fff;
	border-bottom: 1px solid var(--kh-line);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-bar .site-header {
	top: 32px;
}

.site-header .main-header-bar,
.site-header .ast-primary-header-bar {
	background: transparent;
	border: 0;
}

.site-header .ast-primary-header-bar {
	padding: 6px 0;
}

.site-header .site-branding {
	padding: 10px 0;
}

.site-header .site-branding img {
	max-height: 42px;
	width: auto;
}

.site-header .menu-toggle,
.site-header .main-header-menu-toggle,
.site-header .main-header-menu-toggle .ast-menu-toggle,
.site-header .ast-menu-toggle,
.site-header .ast-menu-toggle svg {
	color: var(--kh-ink) !important;
	fill: currentColor;
}

.main-header-menu .menu-link {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--kh-ink);
	padding: 10px 14px;
}

.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current-menu-ancestor > .menu-link {
	color: var(--kh-accent);
}

/* search inside primary menu */
.kh-nav-search form {
	display: flex;
	align-items: center;
	gap: 4px;
	background: var(--kh-soft);
	border: 1px solid var(--kh-line);
	border-radius: 999px;
	padding: 3px 3px 3px 12px;
	margin-left: 6px;
}

.kh-nav-search input[type="search"] {
	border: 0;
	background: transparent;
	padding: 7px 4px;
	font-size: 13.5px;
	width: 132px;
	min-width: 0;
	outline: none;
	box-shadow: none;
}

.kh-nav-search button {
	border: 0;
	background: var(--kh-accent-dark);
	color: #fff;
	border-radius: 999px;
	padding: 7px 13px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
}

.kh-nav-search button:hover {
	background: #9a3412;
}

/* ---------------------------------------------------------------- buttons */

.kh-home .ast-button,
.kh-home button,
.kh-home input[type="submit"] {
	font-family: inherit;
}

/* ---------------------------------------------------------------- homepage */

.kh-home {
	margin: 0;
}

.kh-wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 20px;
}

.kh-hero {
	background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
	border-bottom: 1px solid var(--kh-line);
	padding: 62px 0 54px;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow: hidden;
}

.kh-hero .kh-wrap {
	max-width: 1120px;
}

.kh-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--kh-accent-dark);
	background: #fff;
	border: 1px solid #fed7aa;
	border-radius: 999px;
	padding: 5px 12px;
}

.kh-kicker::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--kh-accent);
}

.kh-hero h1 {
	font-size: clamp(30px, 4.4vw, 46px);
	line-height: 1.12;
	margin: 18px 0 14px;
	max-width: 820px;
}

.kh-hero h1 em {
	font-style: normal;
	color: var(--kh-accent);
}

.kh-lead {
	max-width: 660px;
	font-size: 17px;
	color: var(--kh-muted);
	margin: 0 0 4px;
}

.kh-search {
	display: flex;
	gap: 8px;
	max-width: 640px;
	margin: 26px 0 14px;
	background: #fff;
	border: 1px solid var(--kh-line);
	border-radius: 16px;
	padding: 6px;
	box-shadow: var(--kh-shadow);
}

.kh-search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 11px 14px;
	font-size: 16px;
	outline: none;
	box-shadow: none;
}

.kh-search button {
	border: 0;
	background: var(--kh-accent-dark);
	color: #fff;
	padding: 11px 22px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.kh-search button:hover {
	background: #9a3412;
}

.kh-quick {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--kh-muted);
}

.kh-quick a {
	background: #fff;
	border: 1px solid var(--kh-line);
	border-radius: 999px;
	padding: 4px 11px;
	font-size: 12.5px;
	color: var(--kh-text);
	text-decoration: none;
}

.kh-quick a:hover {
	border-color: var(--kh-accent);
	color: var(--kh-accent-dark);
}

.kh-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin-top: 24px;
	font-size: 13.5px;
	color: var(--kh-muted);
}

.kh-stats strong {
	color: var(--kh-ink);
}

.kh-section {
	padding: 48px 0;
}

.kh-section + .kh-section {
	padding-top: 0;
}

.kh-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.kh-section-head h2 {
	font-size: 25px;
	line-height: 1.2;
	margin: 0;
}

.kh-section-head p {
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--kh-muted);
}

.kh-section-head a {
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.kh-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.kh-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--kh-soft);
	border: 1px solid var(--kh-line);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 500;
	color: var(--kh-ink);
	text-decoration: none;
}

.kh-chip span {
	font-size: 12px;
	color: var(--kh-muted);
}

.kh-chip:hover {
	background: var(--kh-accent-soft);
	border-color: #fed7aa;
	color: var(--kh-accent-dark);
}

.kh-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.kh-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--kh-line);
	border-radius: var(--kh-radius);
	overflow: hidden;
	height: 100%;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.kh-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--kh-shadow);
	border-color: #d1d5db;
}

.kh-card-thumb {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
	overflow: hidden;
}

.kh-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.kh-card:hover .kh-card-thumb img {
	transform: scale(1.04);
}

.kh-initial {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 42px;
	font-weight: 700;
	color: #cbd5e1;
	text-transform: uppercase;
}

.kh-card-body {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 15px 17px 17px;
	flex: 1;
}

.kh-card-tag {
	align-self: flex-start;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--kh-accent-dark);
	background: var(--kh-accent-soft);
	border-radius: 999px;
	padding: 3px 9px;
	text-decoration: none;
}

.kh-card-body h3 {
	font-size: 16.5px;
	line-height: 1.4;
	margin: 1px 0 0;
}

.kh-card-body h3 a {
	color: var(--kh-ink);
	text-decoration: none;
}

.kh-card-body h3 a:hover {
	color: var(--kh-accent-dark);
}

.kh-card-body p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--kh-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.kh-card-meta {
	margin-top: auto;
	padding-top: 4px;
	font-size: 12px;
	color: #64748b;
}

.kh-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 30px;
}

.kh-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--kh-line);
	border-radius: 10px;
	background: #fff;
	color: var(--kh-ink);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
}

.kh-pagination .page-numbers:hover {
	border-color: var(--kh-accent);
	color: var(--kh-accent-dark);
}

.kh-pagination .page-numbers.current {
	background: var(--kh-accent);
	border-color: var(--kh-accent);
	color: #fff;
}

.kh-trust {
	background: var(--kh-soft);
	border-top: 1px solid var(--kh-line);
	padding: 38px 0;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.kh-trust-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.kh-trust-item h3 {
	font-size: 15px;
	margin: 0 0 4px;
}

.kh-trust-item p {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--kh-muted);
	margin: 0;
}

/* ---------------------------------------------------------------- single post */

.single-post .site-content {
	padding: 0;
}

.single-post .ast-container {
	max-width: 1180px;
}

.single-post #primary {
	max-width: 800px;
	margin: 0 auto;
	width: 100%;
	float: none;
}

.single-post .ast-article-single {
	background: transparent;
	box-shadow: none;
	padding: 0;
}

.single-post #primary {
	padding: 28px 0 64px;
}

.single-post .entry-header {
	margin: 0 0 18px;
}

.single-post .entry-title {
	font-size: clamp(27px, 3.6vw, 40px);
	line-height: 1.2;
	margin: 0 0 8px;
}

.single-post .entry-meta {
	font-size: 13px;
	color: var(--kh-muted);
}

.single-post .entry-meta a {
	color: var(--kh-muted);
	text-decoration: none;
}

.single-post .entry-meta a:hover {
	color: var(--kh-accent-dark);
}

.kh-breadcrumb {
	margin: 0 0 14px;
	font-size: 12.5px;
	color: var(--kh-muted);
	line-height: 1.6;
}

.kh-breadcrumb a {
	color: var(--kh-muted);
	text-decoration: none;
}

.kh-breadcrumb a:hover {
	color: var(--kh-accent-dark);
}

.kh-breadcrumb .sep {
	margin: 0 6px;
	color: #cbd5e1;
}

.entry-content {
	font-size: 17px;
	line-height: 1.8;
	color: var(--kh-text);
}

.entry-content p {
	margin: 0 0 1.1em;
}

.entry-content h2 {
	font-size: 25px;
	line-height: 1.3;
	margin: 2em 0 0.6em;
	padding-left: 12px;
	border-left: 4px solid var(--kh-accent);
}

.entry-content h3 {
	font-size: 20px;
	line-height: 1.35;
	margin: 1.6em 0 0.5em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 22px;
	margin-bottom: 1.2em;
}

.entry-content a {
	color: var(--kh-accent-dark);
	text-decoration: underline;
	text-decoration-color: #fdba74;
	text-underline-offset: 3px;
}

.entry-content a:hover {
	text-decoration-color: var(--kh-accent);
}

.entry-content table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	margin: 1.4em 0;
	font-size: 14.5px;
	line-height: 1.55;
	border: 1px solid var(--kh-line);
	border-radius: 10px;
	overflow: hidden;
}

.entry-content table td,
.entry-content table th {
	padding: 10px 12px;
	border-bottom: 1px solid var(--kh-line);
	vertical-align: top;
	text-align: left;
}

.entry-content table thead td,
.entry-content table thead th {
	background: var(--kh-ink);
	color: #fff;
	font-weight: 600;
	border-bottom: 0;
}

.entry-content table tbody tr:nth-child(even) {
	background: var(--kh-soft);
}

.entry-content table tr:last-child td {
	border-bottom: 0;
}

.entry-content table td:last-child {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.kh-updated {
	background: var(--kh-accent-soft) !important;
	border: 1px solid #fed7aa;
	border-left: 4px solid var(--kh-accent);
	border-radius: 0 12px 12px 0;
	padding: 14px 16px;
	font-size: 14.5px;
	line-height: 1.65;
	color: #7c2d12;
}

.kh-updated em {
	font-style: normal;
}

/* "Baca Juga" as cards */
.entry-content .kh-related-title + ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0 0 1.4em;
}

.entry-content .kh-related-title + ul li {
	margin: 0;
}

.entry-content .kh-related-title + ul a {
	display: block;
	height: 100%;
	background: var(--kh-soft);
	border: 1px solid var(--kh-line);
	border-radius: 10px;
	padding: 11px 13px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--kh-ink);
	text-decoration: none;
}

.entry-content .kh-related-title + ul a:hover {
	border-color: #fdba74;
	background: var(--kh-accent-soft);
	color: var(--kh-accent-dark);
}

/* ---------------------------------------------------------------- archives */

.archive .site-content,
.blog .site-content,
.search .site-content {
	padding: 0;
}

.archive .ast-container,
.blog .ast-container,
.search .ast-container {
	max-width: 1180px;
}

.archive .ast-archive-description,
.search .ast-archive-description {
	padding: 30px 0 16px;
	border-bottom: 1px solid var(--kh-line);
	margin-bottom: 28px;
}

.archive .ast-archive-title,
.search .ast-archive-title {
	font-size: 32px;
	margin: 0;
}

.archive .ast-article-post,
.blog .ast-article-post,
.search .ast-article-post {
	background: #fff;
	border: 1px solid var(--kh-line);
	border-radius: var(--kh-radius);
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.archive .ast-article-post:hover,
.blog .ast-article-post:hover,
.search .ast-article-post:hover {
	transform: translateY(-2px);
	box-shadow: var(--kh-shadow);
}

.archive .ast-article-post .entry-title,
.blog .ast-article-post .entry-title,
.search .ast-article-post .entry-title {
	font-size: 17px;
	line-height: 1.4;
}

.archive .ast-article-post .entry-meta,
.blog .ast-article-post .entry-meta,
.search .ast-article-post .entry-meta {
	font-size: 12.5px;
	color: var(--kh-muted);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
	background: var(--kh-ink);
	color: #cbd5e1;
}

.site-footer .site-below-footer-wrap,
.site-footer .site-primary-footer-wrap {
	background: transparent;
	border: 0;
}

.site-footer a {
	color: #e2e8f0;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.site-footer a:hover {
	color: #fdba74;
}

.site-footer .ast-footer-copyright {
	color: #94a3b8;
	font-size: 13px;
	padding: 18px 0;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1200px) {
	.kh-nav-search {
		display: none;
	}
}

@media (max-width: 1024px) {
	.kh-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.kh-trust-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}

	.kh-hero {
		padding: 40px 0 38px;
	}

	.kh-lead {
		font-size: 16px;
	}

	.kh-section {
		padding: 36px 0;
	}

	.kh-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.kh-section-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}

	.entry-content {
		font-size: 16.5px;
	}

	.entry-content table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.entry-content .kh-related-title + ul {
		grid-template-columns: 1fr;
	}

	.kh-nav-search {
		display: none;
	}
}

@media (max-width: 544px) {
	.kh-search {
		flex-direction: column;
		border-radius: 14px;
	}

	.kh-search button {
		width: 100%;
	}

	.kh-card-body h3 {
		font-size: 16px;
	}
}
