/*
Theme Name: Pipa HDPE
Theme URI: https://www.pipa-hdpe.id/
Author: PIPA-HDPE.ID
Description: Tema WordPress ringan, minimalis, dan SEO-ready untuk distributor pipa HDPE. Semua teks, warna, font, ukuran, tata letak, dan permalink bisa diatur dari Tampilan > Sesuaikan dan Tampilan > Permalink & URL.
Version: 2.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pipahdpe
*/

/* ==========================================================================
   1. Token (nilai bawaan; ditimpa otomatis oleh pengaturan Customizer)
   ========================================================================== */
:root {
	--ink: #13222f;
	--ink-2: #3e4a54;
	--muted: #5a646d;
	--line: #d9dfe4;
	--line-2: #e8ecef;
	--paper: #ffffff;
	--wash: #f3f6f9;
	--primary: #1456c8;
	--primary-dark: #10449d;
	--primary-wash: #e7effb;
	--on-primary: #ffffff;
	--wa: #0f7a3e;
	--wa-dark: #0c6232;
	--on-wa: #ffffff;
	--header-bg: #ffffff;
	--header-fg: #13222f;
	--cta-bg: #13222f;
	--cta-fg: #ffffff;
	--cta-soft: #c4ced6;
	--footer-bg: #13222f;
	--footer-fg: #ffffff;
	--footer-soft: #b3bfc9;

	--radius: 8px;
	--radius-lg: 14px;
	--radius-xl: 22px;
	--wrap: 1180px;
	--prose: 720px;
	--gutter: clamp(1rem, 4vw, 2rem);

	--font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--font-head: var(--font-body);
	--fw-head: 700;
	--fs-base: 100%;
	--fs-hero: clamp(30px, calc(30px + 18 * (100vw - 360px) / 840), 48px);
	--fs-h1: clamp(25px, calc(25px + 15 * (100vw - 360px) / 840), 40px);
	--fs-h2: clamp(23px, calc(23px + 9 * (100vw - 360px) / 840), 32px);
	--fs-h3: clamp(18px, calc(18px + 2 * (100vw - 360px) / 840), 20px);

	--shadow: 0 1px 2px rgba(19, 34, 47, 0.06), 0 10px 28px rgba(19, 34, 47, 0.09);
	--shadow-sm: 0 1px 2px rgba(19, 34, 47, 0.08), 0 4px 14px rgba(19, 34, 47, 0.07);
}

/* ==========================================================================
   2. Dasar
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	font-size: var(--fs-base);
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.68;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; }
svg { height: auto; }
figure { margin: 0; }

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--font-head);
	font-weight: var(--fw-head);
	line-height: 1.2;
	letter-spacing: -0.018em;
	text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.0625rem; }
p { margin: 0; }

a { color: var(--primary); text-underline-offset: 0.18em; }
a:hover { color: var(--primary-dark); }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.cta__box :focus-visible, .site-footer :focus-visible { outline-color: currentColor; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed !important;
	top: 0.5rem; left: 0.5rem;
	width: auto; height: auto; margin: 0;
	padding: 0.75rem 1rem;
	clip: auto; clip-path: none;
	background: var(--ink); color: var(--paper);
	z-index: 200; border-radius: var(--radius);
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ==========================================================================
   3. Tombol
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 50px;
	padding: 0.7rem 1.4rem;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(19, 34, 47, 0.16);
	transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:hover { box-shadow: var(--shadow-sm); }
.btn--sm { min-height: 42px; padding: 0.4rem 1rem; font-size: 0.9375rem; }
.btn--wa { background: var(--wa); color: var(--on-wa); }
.btn--wa:hover { background: var(--wa-dark); color: var(--on-wa); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-dark); color: var(--on-primary); }
.btn--line { background: var(--paper); border-color: var(--ink); color: var(--ink); box-shadow: none; }
.btn--line:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.cta__box .btn--line { background: transparent; border-color: var(--cta-fg); color: var(--cta-fg); }
.cta__box .btn--line:hover { background: var(--cta-fg); color: var(--cta-bg); }

/* ==========================================================================
   4. Top bar, header & navigasi
   ========================================================================== */
.topbar {
	padding: 0.5rem var(--gutter);
	background: var(--primary);
	color: var(--on-primary);
	font-size: 0.9rem;
	text-align: center;
}
.topbar a { color: inherit; font-weight: 600; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--header-bg);
	color: var(--header-fg);
	border-top: 4px solid var(--primary);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.2s;
}
.header-static .site-header { position: relative; }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.admin-bar .site-header { top: 32px; }
.admin-bar.header-static .site-header { top: auto; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header__bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 68px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	margin-right: auto;
	color: var(--header-fg);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.1875rem;
	letter-spacing: -0.015em;
	text-decoration: none;
}
.brand:hover { color: var(--header-fg); }
.brand .mark { width: 36px; height: 36px; flex: none; }
.custom-logo { width: auto; max-height: var(--logo-h, 40px); }

.mark .m-o { fill: var(--ink); }
.mark .m-i { fill: var(--primary-wash); }
.mark .m-s { fill: none; stroke: var(--primary); }

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: transparent;
	color: var(--header-fg);
	cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

.header__cta { display: none; }
@media (min-width: 560px) { .header__cta { display: inline-flex; } }

/* Mobile: panel menu */
.nav {
	display: none;
	position: absolute;
	left: 0; right: 0; top: 100%;
	max-height: calc(100vh - 76px);
	max-height: calc(100dvh - 76px);
	overflow-y: auto;
	padding: 0.25rem var(--gutter) 1.5rem;
	background: var(--header-bg);
	border-bottom: 1px solid var(--line);
	box-shadow: var(--shadow);
}
.nav.is-open { display: block; }

.nav__list, .nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.nav .menu-item { border-bottom: 1px solid var(--line-2); }
.nav .menu-item > a {
	display: block;
	padding: 0.9rem 0;
	color: var(--header-fg);
	font-weight: 600;
	text-decoration: none;
}
.nav .menu-item > a:hover { color: var(--primary); }
.nav .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
.nav .menu-item-has-children > a { flex: 1; }
.nav .sub-menu { display: none; width: 100%; padding: 0 0 0.5rem 1rem; }
.nav .sub-menu .menu-item { border-bottom: 0; }
.nav .sub-menu .menu-item > a { padding: 0.55rem 0; font-weight: 500; opacity: 0.85; }
.nav .is-open > .sub-menu { display: block; }

.nav .current-menu-item > a,
.nav .current-menu-ancestor > a,
.nav .current_page_item > a,
.nav .current_page_ancestor > a { color: var(--primary); }

.sub-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--header-fg);
	cursor: pointer;
}
.sub-toggle .icon { width: 20px; height: 20px; transition: transform 0.15s; }
.is-open > .sub-toggle .icon { transform: rotate(180deg); }

.nav__extra { display: grid; gap: 0.75rem; padding-top: 1.25rem; }

/* Desktop */
@media (min-width: 960px) {
	.nav-toggle { display: none; }
	.nav {
		display: block;
		position: static;
		max-height: none;
		overflow: visible;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
	}
	.nav__extra { display: none; }
	.nav__list { display: flex; gap: 0.1rem; }
	.nav .menu-item { position: relative; border: 0; }
	.nav .menu-item > a {
		padding: 0.6rem 0.85rem;
		font-size: 0.9375rem;
		border-radius: var(--radius);
	}
	.nav .menu-item > a:hover { background: var(--wash); }
	.nav .menu-item-has-children { flex-wrap: nowrap; }
	.nav .menu-item-has-children > a { flex: none; padding-right: 0.2rem; }
	.sub-toggle { width: 28px; height: 40px; margin-left: -0.15rem; }
	.nav .sub-menu {
		position: absolute;
		top: calc(100% + 4px); left: 0;
		z-index: 60;
		min-width: 16rem;
		width: auto;
		padding: 0.4rem;
		background: var(--header-bg);
		border: 1px solid var(--line);
		border-radius: var(--radius-lg);
		box-shadow: var(--shadow);
	}
	.nav .sub-menu .menu-item > a { padding: 0.6rem 0.8rem; font-size: 0.9375rem; opacity: 1; }
	.nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
}
@media (min-width: 960px) and (hover: hover) {
	.nav .menu-item-has-children:hover > .sub-menu { display: block; }
}

/* ==========================================================================
   5. Breadcrumb
   ========================================================================== */
.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.5rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	color: var(--muted);
}
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
.crumbs a { color: var(--ink-2); }
.crumbs-wrap { padding-top: 1.25rem; }

/* ==========================================================================
   6. Beranda
   ========================================================================== */
.hero {
	padding: clamp(2.25rem, 6vw, 4.5rem) 0 clamp(3.25rem, 8vw, 5.5rem);
	background: linear-gradient(180deg, var(--primary-wash) 0%, var(--paper) 100%);
}
.hero__grid { display: grid; gap: 2.25rem; align-items: center; }
@media (min-width: 900px) {
	.hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
	.hero--reverse .hero__grid > :first-child { order: 2; }
}
.hero h1 { font-size: var(--fs-hero); letter-spacing: -0.03em; line-height: 1.12; }
.hero__lead {
	max-width: 34rem;
	margin-top: 1.2rem;
	font-size: 1.1875rem;
	color: var(--ink-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero--center .hero__grid { grid-template-columns: 1fr; text-align: center; }
.hero--center .hero__lead { margin-inline: auto; }
.hero--center .hero__actions { justify-content: center; }
.hero--center .hero__art { width: 100%; max-width: 640px; margin-inline: auto; }

.sheet {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	background-color: var(--paper);
	background-image:
		linear-gradient(var(--line-2) 1px, transparent 1px),
		linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
	background-size: 24px 24px;
	box-shadow: var(--shadow);
	color: var(--ink);
}
.sheet svg { display: block; width: 100%; padding: 1rem 1rem 0.25rem; }
.sheet__title {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	padding: 0.7rem 1.1rem;
	border-top: 1px solid var(--line);
	background: var(--paper);
	font-size: 0.8125rem;
	color: var(--ink-2);
}
.sheet__title strong { color: var(--ink); }
.hero__img { display: block; width: 100%; height: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow); }

.dim-line { stroke: var(--ink); stroke-width: 1.25; fill: none; }
.dim-center { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 14 4 2 4; fill: none; }
.dim-text { fill: var(--ink); font-family: var(--font-body); font-size: 17px; font-weight: 600; }
.dim-arrow { fill: var(--ink); }
.pipe-o { fill: var(--ink); }
.pipe-i { fill: var(--primary-wash); }
.pipe-s { fill: none; stroke: var(--primary); }

.facts { position: relative; z-index: 2; padding: clamp(1.5rem, 4vw, 2.5rem) 0 0; }
.hero + .facts { margin-top: -2.75rem; padding-top: 0; }
.facts__list {
	display: grid;
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--line);
	box-shadow: var(--shadow);
}
.facts__list li { padding: 1.2rem 1.4rem; background: var(--paper); }
.facts__value { display: block; font-family: var(--font-head); font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; }
.facts__label { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

.section { padding: clamp(2.75rem, 6.5vw, 5rem) 0; }
.section--wash { background: var(--wash); }
.section__head { max-width: 42rem; margin-bottom: 2rem; }
.section__head p { margin-top: 0.7rem; color: var(--ink-2); }
.sec-title::before {
	content: "";
	display: block;
	width: 44px; height: 4px;
	margin-bottom: 0.85rem;
	border-radius: 2px;
	background: var(--primary);
}

.products { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.product {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--paper);
	transition: border-color 0.15s, box-shadow 0.15s;
}
.product:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.product__tile {
	display: grid;
	place-items: center;
	width: 60px; height: 60px;
	border-radius: var(--radius-lg);
	background: var(--primary-wash);
	color: var(--primary);
}
.product__icon { width: 34px; height: 34px; }
.product p { color: var(--ink-2); }
.product__link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem; font-weight: 700; text-decoration: none; }
.product__link::before { content: ""; position: absolute; inset: 0; }
.product__link::after {
	content: "";
	width: 0.5rem; height: 0.5rem;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}
.product:hover .product__link { text-decoration: underline; }

.lookup { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .lookup { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.lookup h2, .pair h2 { margin-bottom: 1.25rem; }

.rowlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.rowlist a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 56px;
	padding: 0.8rem 1.1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
	text-decoration: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.rowlist a::after {
	content: "";
	flex: none;
	width: 0.5rem; height: 0.5rem;
	border-top: 2px solid var(--primary);
	border-right: 2px solid var(--primary);
	transform: rotate(45deg);
}
.rowlist a:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.rowlist__title { display: block; font-weight: 600; }
.rowlist__note { display: block; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }

.pair { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .pair { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.defs { margin: 0; display: grid; gap: 1.1rem; }
.defs dt { position: relative; padding-left: 1.6rem; font-weight: 700; }
.defs dt::before {
	content: "";
	position: absolute; left: 0; top: 0.42em;
	width: 0.95rem; height: 0.95rem;
	border-radius: 50%;
	background: var(--primary-wash);
	box-shadow: inset 0 0 0 4px var(--primary);
}
.defs dd { margin: 0.15rem 0 0; padding-left: 1.6rem; color: var(--ink-2); }

.cards {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--paper);
	transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 16 / 10; background: var(--wash); overflow: hidden; }
.card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card__media--ph { display: grid; place-items: center; background: var(--primary-wash); }
.card__media--ph .mark { width: 60px; height: 60px; opacity: 0.6; }
.card__body { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.15rem 1.3rem 1.4rem; }
.card--text { border-top: 4px solid var(--primary); }
.card__title { font-size: 1.1875rem; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title a { color: var(--primary); }
.card__text { color: var(--ink-2); font-size: 0.9688rem; line-height: 1.55; }
.card__meta { color: var(--muted); font-size: 0.875rem; }

.more { margin-top: 1.75rem; font-weight: 700; }

.faq { max-width: 50rem; display: grid; gap: 0.6rem; }
.faq details {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	transition: border-color 0.15s;
}
.faq details[open] { border-color: var(--primary); }
.faq summary, .toc summary { cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker, .toc summary::-webkit-details-marker { display: none; }
.faq summary { position: relative; padding: 1.05rem 3rem 1.05rem 1.2rem; font-weight: 600; }
.faq summary::after {
	content: "+";
	position: absolute; right: 1.1rem; top: 50%;
	transform: translateY(-50%);
	font-size: 1.6rem; line-height: 1; color: var(--primary);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq__a { padding: 0 1.2rem 1.2rem; color: var(--ink-2); max-width: 44rem; }

.cta { padding: clamp(1rem, 3vw, 2rem) 0 clamp(2.75rem, 6vw, 4.5rem); }
.cta__box {
	position: relative;
	display: grid;
	gap: 1.75rem;
	overflow: hidden;
	padding: clamp(1.75rem, 5vw, 3.5rem);
	border-radius: var(--radius-xl);
	background: var(--cta-bg);
	color: var(--cta-fg);
}
.cta__box::after {
	content: "";
	position: absolute;
	right: -90px; bottom: -120px;
	width: 340px; height: 340px;
	border: 52px solid currentColor;
	border-radius: 50%;
	opacity: 0.07;
	pointer-events: none;
}
.cta__box > * { position: relative; z-index: 1; }
@media (min-width: 800px) { .cta__box { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 3rem; } }
.cta h2 { color: inherit; }
.cta p { margin-top: 0.7rem; color: var(--cta-soft); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta__actions p { margin-top: 0; }
.cta__loc { display: flex; align-items: flex-start; gap: 0.5rem; flex-basis: 100%; color: var(--cta-soft); font-size: 0.9375rem; }
.cta__loc a { color: var(--cta-fg); }

/* ==========================================================================
   7. Halaman, artikel, arsip
   ========================================================================== */
.page-head {
	position: relative;
	overflow: hidden;
	padding: clamp(1.75rem, 4.5vw, 3rem) 0 clamp(1.5rem, 3.5vw, 2.25rem);
	background: linear-gradient(180deg, var(--primary-wash) 0%, var(--paper) 140%);
	border-bottom: 1px solid var(--line);
}
.page-head::after {
	content: "";
	position: absolute;
	right: -70px; top: -80px;
	width: 280px; height: 280px;
	border: 40px solid var(--ink);
	border-radius: 50%;
	opacity: 0.045;
	pointer-events: none;
}
.page-head > .wrap { position: relative; z-index: 1; }
.page-head h1 { max-width: 30ch; }
.page-head__lead { max-width: 44rem; margin-top: 0.9rem; font-size: 1.1875rem; color: var(--ink-2); }
.page-head__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	margin-top: 1rem;
	font-size: 0.9375rem;
	color: var(--muted);
}
.page-head__meta a { color: var(--ink-2); }

.content { padding: clamp(2rem, 4.5vw, 3.25rem) 0 clamp(2.75rem, 6vw, 4.5rem); }

.entry-thumb { margin-bottom: 2rem; max-width: var(--prose); }
.entry-thumb img { display: block; width: 100%; border-radius: var(--radius-lg); }

.prose > * { max-width: var(--prose); }
.prose > * + * { margin-top: 1.15em; }
.prose > :is(.table-wrap, figure, .alignwide, .alignfull, iframe, .wp-block-embed, .wp-block-columns, .wp-block-group, .wp-block-gallery, .wp-block-media-text, .wp-block-cover, .wp-block-table, .table-hint) { max-width: none; }
.prose h2 { margin-top: 2.3em; scroll-margin-top: 6rem; }
.prose h3 { margin-top: 1.9em; scroll-margin-top: 6rem; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.35em; }
.prose img { border-radius: var(--radius); }
.prose figcaption, .wp-caption-text { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.prose blockquote {
	margin-left: 0; margin-right: 0;
	padding: 0.6rem 0 0.6rem 1.2rem;
	border-left: 4px solid var(--primary);
	color: var(--ink-2);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2rem; }
.prose code { padding: 0.1em 0.35em; border-radius: 4px; background: var(--wash); font-size: 0.9em; }
.prose pre { overflow-x: auto; padding: 1rem; border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.prose pre code { padding: 0; background: none; }

/* Tabel (harga & spesifikasi) */
.table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-block: 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}
.table-hint { margin: 1.25rem 0 -0.9rem; font-size: 0.875rem; color: var(--muted); }
.entry-content table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.45;
	font-variant-numeric: tabular-nums;
}
.entry-content th, .entry-content td {
	min-width: 5.5rem;
	padding: 0.7rem 0.9rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
	background: var(--paper);
}
.entry-content th { background: var(--wash); font-weight: 700; }
.entry-content thead th { background: var(--ink); color: var(--paper); border-bottom-color: var(--ink); }
.entry-content tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--wash) 55%, var(--paper)); }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content tbody tr:hover td { background: var(--primary-wash); }
@media (max-width: 720px) {
	.table-wrap th:first-child, .table-wrap td:first-child {
		position: sticky; left: 0; z-index: 1;
		box-shadow: 1px 0 0 var(--line);
	}
	.table-wrap thead th:first-child { background: var(--ink); }
}

/* Daftar isi */
.toc {
	max-width: var(--prose);
	margin: 0 0 2rem;
	border: 1px solid var(--line);
	border-left: 4px solid var(--primary);
	border-radius: var(--radius-lg);
	background: var(--wash);
}
.toc summary { padding: 0.9rem 1.1rem; font-weight: 700; }
.toc ol { margin: 0; padding: 0 1.1rem 1.1rem 2.5rem; }
.toc li + li { margin-top: 0.3rem; }
.toc li.is-sub { margin-left: 1rem; list-style: circle; }
.toc a { color: var(--ink); text-decoration-color: var(--line); }
.toc a:hover { color: var(--primary); }

.subpages, .related { margin-top: 3.25rem; }
.subpages h2, .related h2 { margin-bottom: 1.25rem; font-size: 1.5rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.chips a {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0.3rem 1rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font-size: 0.9375rem;
	text-decoration: none;
	transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.chips a:hover { border-color: var(--primary); background: var(--primary-wash); color: var(--primary-dark); }

.ask {
	display: grid;
	gap: 1rem;
	max-width: var(--prose);
	margin-top: 3.25rem;
	padding: 1.6rem;
	border: 1px solid var(--line);
	border-left: 4px solid var(--primary);
	border-radius: var(--radius-lg);
	background: var(--primary-wash);
}
.ask h2 { font-size: 1.4375rem; }
.ask p { color: var(--ink-2); }
.ask__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Arsip */
.listing-head {
	position: relative;
	overflow: hidden;
	padding: clamp(1.75rem, 4.5vw, 3rem) 0 clamp(1.5rem, 3.5vw, 2.25rem);
	background: linear-gradient(180deg, var(--primary-wash) 0%, var(--paper) 140%);
	border-bottom: 1px solid var(--line);
}
.listing-head::after {
	content: "";
	position: absolute;
	right: -70px; top: -80px;
	width: 280px; height: 280px;
	border: 40px solid var(--ink);
	border-radius: 50%;
	opacity: 0.045;
	pointer-events: none;
}
.listing-head > .wrap { position: relative; z-index: 1; }
.listing-head p { max-width: 44rem; margin-top: 0.9rem; color: var(--ink-2); font-size: 1.1875rem; }

.nav-links, .navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2.5rem; }
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px; min-height: 46px;
	padding: 0 0.85rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	text-decoration: none;
}
a.page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.empty { max-width: 40rem; display: grid; gap: 1rem; }
.empty h1, .empty h2 { font-size: var(--fs-h1); }

/* Form cari */
.search { display: flex; gap: 0.5rem; }
.search__input {
	flex: 1;
	min-width: 0;
	min-height: 50px;
	padding: 0.5rem 0.95rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
	font: inherit;
}
.search__input:focus { border-color: var(--primary); }

/* Komentar */
.comments { max-width: var(--prose); margin-top: 3rem; }
.comments__title { font-size: 1.375rem; margin-bottom: 1rem; }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .children { list-style: none; padding-left: 1.25rem; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-form label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius); font: inherit;
}
.comment-form .submit { background: var(--primary); color: var(--on-primary); border: 0; border-radius: var(--radius); min-height: 48px; padding: 0.7rem 1.25rem; font: inherit; font-weight: 700; cursor: pointer; }

/* Kelas inti WordPress */
.alignleft { float: left; margin: 0.25rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.25rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { display: block; }

/* ==========================================================================
   8. Footer & bar mobile
   ========================================================================== */
.site-footer {
	background: var(--footer-bg);
	color: var(--footer-soft);
	font-size: 0.9375rem;
	border-top: 4px solid var(--primary);
}
.site-footer a { color: var(--footer-fg); text-decoration-color: color-mix(in srgb, var(--footer-fg) 40%, transparent); }
.site-footer a:hover { color: var(--footer-fg); text-decoration-color: var(--footer-fg); }
.footer__grid { display: grid; gap: 2.25rem; padding-block: 3rem; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.footer__brand { display: inline-flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem; color: var(--footer-fg); font-family: var(--font-head); font-weight: 700; font-size: 1.1875rem; text-decoration: none; }
.footer__brand .mark { width: 36px; height: 36px; }
.footer__brand .m-o { fill: var(--footer-fg); }
.footer__brand .m-i { fill: var(--footer-bg); }
.footer__title { margin-bottom: 0.85rem; color: var(--footer-fg); font-size: 1.0625rem; letter-spacing: 0; }
.footer__list { display: grid; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.footer__list a { display: inline-block; padding: 0.3rem 0; }
.footer__contact { display: grid; gap: 0.55rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.footer__contact li { display: flex; align-items: flex-start; gap: 0.6rem; }
.footer__contact .icon { margin-top: 0.2rem; }
.footer__bottom { border-top: 1px solid color-mix(in srgb, var(--footer-fg) 16%, transparent); padding-block: 1.1rem; font-size: 0.875rem; }

.mbar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 70;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom, 0px));
	background: var(--paper);
	border-top: 1px solid var(--line);
	box-shadow: 0 -6px 20px rgba(19, 34, 47, 0.08);
}
.mbar .btn { min-height: 46px; }
.mbar .btn--line { border-width: 2px; }
body.has-mbar { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) {
	.mbar { display: none; }
	body.has-mbar { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
