/*
Theme Name:        Tempat Hunian
Theme URI:         https://tempathunian.com
Author:            Tempat Hunian
Author URI:        https://tempathunian.com
Description:       Tema portal media Home & Living untuk Tempat Hunian. Editorial minimalis, ringan, responsif, ramah SEO, dan siap AdSense tanpa mengganggu pembaca. Indeks rubrik beranda disajikan sebagai denah rumah.
Version:           1.0.4
Requires at least: 6.2
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:       tempathunian
Tags:              blog, news, one-column, custom-logo, custom-menu, featured-images, footer-widgets, threaded-comments, translation-ready
*/

/* ==========================================================================
   DAFTAR ISI
   1.  Token desain
   2.  Reset & dasar
   3.  Utilitas & aksesibilitas
   4.  Tombol, tautan & form
   5.  Header lengket, navigasi & pencarian
   6.  Beranda: pembuka & sorotan
   7.  Beranda: denah rubrik
   8.  Beranda: section & blok rubrik
   9.  Kartu artikel
   10. Slot iklan
   11. Arsip, pencarian & 404
   12. Artikel tunggal & halaman
   13. Komentar
   14. Footer
   15. Kelas inti WordPress
   16. Responsif

   Prinsip:
   - Putih sebagai dasar. Krem hanya dipakai sebagai "tanah" (denah,
     catatan pengungkapan, kutipan). Hijau tua untuk dinding, tautan & tombol.
   - Hierarki radius: kontrol 10px, gambar 14px, bidang besar 22px.
   - Tanpa bayangan dekoratif dan tanpa animasi masuk. Gerak hanya muncul
     sebagai respons tindakan pembaca (hover, buka menu).
   ========================================================================== */

/* 1. Token desain
   ========================================================================== */
:root {
	--th-green: #1b4332;      /* Hijau tua: warna utama, dinding denah */
	--th-green-deep: #133226; /* Hover tombol */
	--th-sage: #52796f;       /* Hijau lembut: garis sekunder, pintu denah */
	--th-white: #ffffff;
	--th-cream: #f5f1e8;      /* Krem: tanah, latar catatan */
	--th-cream-line: #e4dccb;
	--th-text: #222222;       /* Charcoal */
	--th-muted: #5c6660;      /* Teks sekunder, kontras >= 5:1 di putih & krem */
	--th-line: #e8e6e1;

	--th-font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--th-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--th-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	/* Skala tipe (rasio ~1,25) */
	--th-step--1: 0.8125rem;  /* 13px  meta */
	--th-step-0: 1.0625rem;   /* 17px  isi */
	--th-step-1: 1.25rem;     /* 20px  judul kartu */
	--th-step-2: 1.625rem;    /* 26px  judul section */
	--th-step-3: clamp(1.75rem, 1.6vw + 1.2rem, 2.375rem);   /* judul utama sorotan */
	--th-step-4: clamp(2.125rem, 2.6vw + 1.25rem, 3.25rem);  /* H1 */

	--th-radius-ctl: 10px;
	--th-radius-img: 14px;
	--th-radius-lg: 22px;
	--th-radius-pill: 999px;

	--th-wall: 3px;

	--th-container: 1200px;
	--th-reading: 700px;
	--th-gutter: clamp(1.25rem, 4vw, 2.5rem);
	--th-space: clamp(3.5rem, 7vw, 6rem);
	--th-header-h: 72px;
	--th-ease: 180ms ease;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--th-header-h) + 1rem);
}

body {
	margin: 0;
	background: var(--th-white);
	color: var(--th-text);
	font-family: var(--th-font-body);
	font-size: var(--th-step-0);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: var(--th-text);
	font-family: var(--th-font-heading);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

h1 { font-size: var(--th-step-4); line-height: 1.12; letter-spacing: -0.025em; }
h2 { font-size: var(--th-step-2); }
h3 { font-size: var(--th-step-1); }
h4 { font-size: 1.0625rem; }

p {
	margin: 0 0 1.2em;
}

a {
	color: var(--th-green);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--th-sage);
}

ul,
ol {
	padding-left: 1.25em;
}

hr {
	margin: 3rem 0;
	border: 0;
	border-top: 1px solid var(--th-line);
}

::selection {
	background: var(--th-cream-line);
	color: var(--th-green);
}

:focus-visible {
	outline: 2px solid var(--th-green);
	outline-offset: 3px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* 3. Utilitas & aksesibilitas
   ========================================================================== */
.container {
	width: 100%;
	max-width: calc(var(--th-container) + (var(--th-gutter) * 2));
	margin-inline: auto;
	padding-inline: var(--th-gutter);
}

.container--reading {
	max-width: calc(var(--th-reading) + (var(--th-gutter) * 2));
}

.site-main {
	overflow-x: clip;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
	word-wrap: normal !important;
}

.skip-link:focus {
	position: fixed !important;
	top: 1rem;
	left: 1rem;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 0.75rem 1.25rem;
	margin: 0;
	clip: auto !important;
	clip-path: none;
	border-radius: var(--th-radius-ctl);
	background: var(--th-green);
	color: var(--th-white);
	font-weight: 600;
	text-decoration: none;
}

.icon {
	flex-shrink: 0;
}

/* Petunjuk yang hanya terlihat oleh admin yang sedang login */
.th-admin-hint {
	margin: 1rem 0;
	padding: 0.875rem 1.125rem;
	border: 1px dashed var(--th-sage);
	border-radius: var(--th-radius-ctl);
	background: var(--th-white);
	color: var(--th-muted);
	font-size: 0.875rem;
}

/* 4. Tombol, tautan & form
   ========================================================================== */
.btn,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.75rem 1.375rem;
	border: 1.5px solid var(--th-green);
	border-radius: var(--th-radius-ctl);
	background: var(--th-green);
	color: var(--th-white);
	font-family: var(--th-font-heading);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--th-ease), color var(--th-ease);
}

.btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
	border-color: var(--th-green-deep);
	background: var(--th-green-deep);
	color: var(--th-white);
}

.btn--outline {
	background: transparent;
	color: var(--th-green);
}

.btn--outline:hover {
	background: var(--th-green);
	color: var(--th-white);
}

/* Tautan teks dengan garis bawah yang menebal saat hover */
.more-link {
	color: var(--th-green);
	font-family: var(--th-font-heading);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--th-sage);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
	transition: text-decoration-thickness var(--th-ease);
}

.more-link:hover {
	color: var(--th-green);
	text-decoration-thickness: 2px;
}

/* Subtopik di header arsip */
.subtopics {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.subtopics a {
	display: inline-block;
	padding: 0.4375rem 0.9375rem;
	border: 1px solid var(--th-cream-line);
	border-radius: var(--th-radius-pill);
	background: var(--th-white);
	color: var(--th-text);
	font-size: 0.875rem;
	text-decoration: none;
	transition: border-color var(--th-ease), color var(--th-ease);
}

.subtopics a:hover {
	border-color: var(--th-green);
	color: var(--th-green);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
	width: 100%;
	min-height: 48px;
	padding: 0.6875rem 1rem;
	border: 1px solid #cfcbc2;
	border-radius: var(--th-radius-ctl);
	background: var(--th-white);
	color: var(--th-text);
	font: inherit;
	font-size: 1rem;
	transition: border-color var(--th-ease), box-shadow var(--th-ease);
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--th-green);
	box-shadow: 0 0 0 3px rgba(82, 121, 111, 0.22);
}

label {
	display: inline-block;
	margin-bottom: 0.375rem;
	font-size: 0.9375rem;
	font-weight: 500;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	width: 100%;
	max-width: 620px;
}

.search-form .search-field {
	flex: 1;
	min-width: 0;
}

.search-form .search-submit {
	flex-shrink: 0;
}

/* 5. Header lengket, navigasi & pencarian
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--th-line);
	background: var(--th-white);
}

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

.header-inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-height: var(--th-header-h);
}

.site-branding {
	margin-right: auto;
}

.site-title {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	color: var(--th-green);
	font-family: var(--th-font-heading);
	font-size: 1.1875rem;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1;
	text-decoration: none;
}

.site-title:hover {
	color: var(--th-green);
}

/* Logo sementara: denah rumah mini. Diganti otomatis bila Logo Kustom diunggah. */
.site-mark {
	display: block;
	width: 32px;
	height: 32px;
	color: var(--th-green);
}

.custom-logo-link {
	display: inline-block;
}

.custom-logo {
	width: auto;
	max-height: 40px;
}

.main-navigation ul {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	padding: 0.5rem 0.6875rem;
	color: var(--th-text);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
}

.main-navigation a:hover {
	color: var(--th-green);
}

/* Penanda menu aktif: garis hijau setebal dinding denah */
.main-navigation > ul > li > a {
	position: relative;
}

.main-navigation > ul > .current-menu-item > a::after,
.main-navigation > ul > .current-menu-ancestor > a::after,
.main-navigation > ul > .current-category-ancestor > a::after,
.main-navigation > ul > .current-post-ancestor > a::after {
	content: "";
	position: absolute;
	right: 0.6875rem;
	bottom: -0.875rem;
	left: 0.6875rem;
	height: var(--th-wall);
	border-radius: 2px;
	background: var(--th-green);
}

.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
	color: var(--th-green);
}

.main-navigation .sub-menu {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	z-index: 10;
	flex-direction: column;
	min-width: 240px;
	padding: 0.5rem;
	border: 1px solid var(--th-line);
	border-radius: var(--th-radius-img);
	background: var(--th-white);
	box-shadow: 0 16px 32px -24px rgba(27, 67, 50, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--th-ease), visibility var(--th-ease);
}

.main-navigation .sub-menu::before {
	content: "";
	position: absolute;
	inset: -0.6rem 0 auto;
	height: 0.6rem;
}

.main-navigation .sub-menu a {
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
}

.main-navigation .sub-menu a:hover {
	background: var(--th-cream);
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--th-radius-ctl);
	background: transparent;
	color: var(--th-text);
	cursor: pointer;
	transition: background-color var(--th-ease), color var(--th-ease);
}

.icon-button:hover,
.icon-button[aria-expanded="true"] {
	background: var(--th-cream);
	color: var(--th-green);
}

.search-toggle .icon-close,
.search-toggle[aria-expanded="true"] .icon-search {
	display: none;
}

.search-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
}

.menu-toggle__bar {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform var(--th-ease), opacity var(--th-ease);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(4) {
	transform: translateY(-7px) rotate(-45deg);
}

.header-search {
	padding-block: 1rem 1.25rem;
	border-top: 1px solid var(--th-line);
	background: var(--th-white);
}

.header-search[hidden] {
	display: none;
}

.header-search .search-form {
	max-width: none;
}

/* 6. Beranda: pembuka & sorotan
   ========================================================================== */
.home-intro {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	align-items: end;
	gap: 1.5rem 3rem;
	padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
}

.home-intro__title {
	max-width: 15ch;
	margin: 0;
	color: var(--th-green);
}

.home-intro__text {
	max-width: 36ch;
	margin: 0;
	color: var(--th-muted);
}

.lead {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	gap: clamp(2rem, 4vw, 3.5rem);
	padding-bottom: var(--th-space);
}

.lead-story .card__media {
	margin-bottom: 1.5rem;
	border-radius: var(--th-radius-lg);
	aspect-ratio: 3 / 2;
}

.lead-story .card__title {
	max-width: 24ch;
	font-size: var(--th-step-3);
	line-height: 1.18;
	letter-spacing: -0.02em;
}

.lead-story .card__excerpt {
	max-width: 60ch;
	font-size: var(--th-step-0);
}

.lead-aside__title {
	margin-bottom: 1.25rem;
	padding-bottom: 0.875rem;
	border-bottom: var(--th-wall) solid var(--th-green);
	font-size: 1.0625rem;
}

.lead-aside ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lead-aside li + li {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--th-line);
}

/* 7. Beranda: denah rubrik
   Rumah = grid dengan celah 3px di atas latar hijau, sehingga celah tampil
   sebagai dinding. Eksterior berada di luar dinding, di atas "tanah" krem.
   ========================================================================== */
.lot {
	padding-block: var(--th-space);
	background: var(--th-cream);
}

.lot .section-head {
	border-bottom-color: var(--th-cream-line);
}

.plan {
	display: grid;
	gap: 1.25rem;
}

.plan__house {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
	grid-template-areas:
		"interior rumah properti"
		"interior tips lifestyle"
		"produk produk produk";
	gap: var(--th-wall);
	padding: var(--th-wall);
	border-radius: var(--th-radius-lg);
	background: var(--th-green);
}

.room {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 200px;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	background: var(--th-white);
	transition: background-color var(--th-ease);
}

.room:hover,
.room:focus-within {
	background: #fbfaf6;
}

/* Sudut dalam mengikuti sudut luar rumah */
.room--interior { grid-area: interior; border-top-left-radius: calc(var(--th-radius-lg) - var(--th-wall)); }
.room--rumah { grid-area: rumah; }
.room--properti { grid-area: properti; border-top-right-radius: calc(var(--th-radius-lg) - var(--th-wall)); }
.room--tips { grid-area: tips; }
.room--lifestyle { grid-area: lifestyle; }
.room--produk {
	grid-area: produk;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 2rem;
	min-height: 0;
	border-radius: 0 0 calc(var(--th-radius-lg) - var(--th-wall)) calc(var(--th-radius-lg) - var(--th-wall));
}

/* Pintu: celah di dinding bawah + simbol ayunan daun pintu */
.room--door::after {
	content: "";
	position: absolute;
	bottom: calc(var(--th-wall) * -1);
	left: clamp(1.25rem, 2.5vw, 1.75rem);
	z-index: 1;
	width: 42px;
	height: var(--th-wall);
	background: inherit;
}

.room--door::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: clamp(1.25rem, 2.5vw, 1.75rem);
	width: 42px;
	height: 42px;
	border-top: 1px solid var(--th-sage);
	border-right: 1px solid var(--th-sage);
	border-left: 2px solid var(--th-green);
	border-top-right-radius: 100%;
	opacity: 0.55;
	pointer-events: none;
}

.room__name {
	margin: 0 0 0.375rem;
	font-size: var(--th-step-1);
}

.room--interior .room__name {
	font-size: var(--th-step-2);
}

.room__name a {
	color: var(--th-text);
	text-decoration: none;
}

/* Seluruh ruangan dapat diklik, tetap satu tautan bagi pembaca layar */
.room__name a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
}

.room__name a:hover {
	color: var(--th-green);
}

.room__desc {
	max-width: 34ch;
	margin: 0 0 1rem;
	color: var(--th-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.room__topics {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.875rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--th-muted);
	font-size: 0.875rem;
}

.room__topics a {
	color: var(--th-green);
	text-decoration: none;
}

.room__topics a:hover {
	text-decoration: underline;
}

.room__count {
	margin: auto 0 0;
	padding-top: 1rem;
	color: var(--th-green);
	font-size: var(--th-step--1);
	font-weight: 500;
}

/* Beri ruang agar teks tidak menimpa simbol pintu */
.room--door .room__count {
	padding-left: 3.75rem;
}

.room--interior .room__desc {
	font-size: 1rem;
}

.room--interior .room__topics {
	flex-direction: column;
	gap: 0.375rem;
	font-size: 0.9375rem;
}

.room--produk .room__desc {
	margin: 0;
}

.room--produk .room__count {
	margin-left: auto;
	padding: 0;
}

/* Eksterior: area luar rumah, batas lahan ditandai garis putus-putus */
.plan__yard {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.75rem 2rem;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	border: 1.5px dashed var(--th-sage);
	border-radius: var(--th-radius-lg);
	transition: background-color var(--th-ease);
}

.plan__yard:hover,
.plan__yard:focus-within {
	background: rgba(255, 255, 255, 0.5);
}

.plan__yard .room__desc {
	margin-bottom: 0.75rem;
}

.plan__yard .room__count {
	padding: 0.75rem 0 0;
}

/* Pohon di halaman: lingkaran tipis seperti simbol vegetasi pada gambar kerja */
.yard-trees {
	display: flex;
	gap: 0.625rem;
}

.yard-trees span {
	display: block;
	width: 38px;
	height: 38px;
	border: 1px solid var(--th-sage);
	border-radius: 50%;
	background: radial-gradient(circle, var(--th-sage) 0 2px, transparent 2.5px);
	opacity: 0.6;
}

.yard-trees span:nth-child(2) {
	width: 28px;
	height: 28px;
	align-self: flex-end;
}

/* 8. Beranda: section & blok rubrik
   ========================================================================== */
.section {
	padding-block: var(--th-space);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--th-line);
}

.section-head__title {
	margin: 0;
}

.section-head__desc {
	order: 3;
	width: 100%;
	margin: 0;
	color: var(--th-muted);
	font-size: 1rem;
}

.section-foot {
	margin-top: 2.75rem;
}

/* Blok per rubrik: judul di kiri, artikel di kanan */
.rubric {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	padding-block: clamp(2.5rem, 5vw, 3.5rem);
	border-top: 1px solid var(--th-line);
}

.rubric:first-child {
	padding-top: 0;
	border-top: 0;
}

.rubric__head {
	align-self: start;
}

.rubric__title {
	margin-bottom: 0.5rem;
	padding-top: 0.875rem;
	border-top: var(--th-wall) solid var(--th-green);
}

.rubric__title a {
	color: var(--th-text);
	text-decoration: none;
}

.rubric__title a:hover {
	color: var(--th-green);
}

.rubric__desc {
	margin-bottom: 1rem;
	color: var(--th-muted);
	font-size: 0.9375rem;
}

.rubric__posts {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.rubric__list {
	display: grid;
	align-content: start;
	gap: 1.25rem;
}

.rubric__list > * + * {
	padding-top: 1.25rem;
	border-top: 1px solid var(--th-line);
}

/* 9. Kartu artikel
   ========================================================================== */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.25rem);
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.card__media {
	display: block;
	margin-bottom: 1.125rem;
	overflow: hidden;
	border-radius: var(--th-radius-img);
	background: var(--th-cream);
	aspect-ratio: 4 / 3;
}

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

/* Gambar pengganti bila artikel belum punya gambar unggulan */
.card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--th-cream-line);
}

.card__placeholder svg {
	width: 38%;
	max-width: 120px;
	height: auto;
}

.card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.card__cat {
	position: relative;
	z-index: 2;
	align-self: flex-start;
	margin-bottom: 0.375rem;
	color: var(--th-green);
	font-size: var(--th-step--1);
	font-weight: 600;
	text-decoration: none;
}

.card__cat:hover {
	color: var(--th-sage);
	text-decoration: underline;
}

.card__title {
	margin: 0 0 0.5rem;
	font-size: var(--th-step-1);
	line-height: 1.3;
}

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

.card__title a:hover {
	color: var(--th-green);
	text-decoration: underline;
	text-decoration-color: var(--th-sage);
	text-decoration-thickness: 1px;
}

.card__excerpt {
	margin: 0 0 0.75rem;
	color: var(--th-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.card__meta {
	margin: 0;
	color: var(--th-muted);
	font-size: var(--th-step--1);
}

/* Kartu ringkas: gambar persegi kecil di kiri */
.card--compact {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	align-items: start;
	gap: 1rem;
}

.card--compact .card__media {
	margin: 0;
	border-radius: var(--th-radius-ctl);
	aspect-ratio: 1 / 1;
}

.card--compact .card__title {
	margin-bottom: 0.25rem;
	font-size: 1rem;
	line-height: 1.4;
}

/* Kartu teks saja (daftar sorotan) */
.card--text .card__title {
	font-size: 1.0625rem;
}

/* 10. Slot iklan
   Tinggi minimum dicadangkan untuk menekan Cumulative Layout Shift (CLS).
   ========================================================================== */
.ad-slot {
	margin-block: 2.5rem;
}

.ad-slot__label {
	display: block;
	margin-bottom: 0.375rem;
	color: var(--th-muted);
	font-size: 0.75rem;
	text-align: center;
}

.ad-slot__inner {
	display: grid;
	place-items: center;
	min-height: 280px;
	overflow: hidden;
}

.ad-slot--home {
	margin-block: 0 var(--th-space);
}

.ad-slot--home .ad-slot__inner {
	min-height: 120px;
}

.ad-slot .widget {
	width: 100%;
}

/* 11. Arsip, pencarian & 404
   ========================================================================== */
.archive-header {
	padding-block: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 2.75rem);
	margin-bottom: clamp(2rem, 4vw, 3rem);
	border-bottom: var(--th-wall) solid var(--th-green);
}

.archive-header__title {
	max-width: 20ch;
	margin-bottom: 0.75rem;
	color: var(--th-green);
}

.archive-header__desc {
	max-width: 62ch;
	color: var(--th-muted);
}

.archive-header__desc p:last-child {
	margin-bottom: 0;
}

.archive-header .subtopics,
.archive-header .search-form {
	margin-top: 1.5rem;
}

.archive-body {
	padding-bottom: var(--th-space);
}

.no-results {
	max-width: 62ch;
}

.no-results h2 {
	font-size: var(--th-step-1);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-top: 3.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--th-line);
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.75rem;
	border-radius: var(--th-radius-ctl);
	color: var(--th-text);
	font-weight: 500;
	text-decoration: none;
}

a.page-numbers:hover {
	background: var(--th-cream);
	color: var(--th-green);
}

.page-numbers.current {
	background: var(--th-green);
	color: var(--th-white);
}

.page-numbers.next,
.page-numbers.prev {
	padding-inline: 1rem;
}

.breadcrumbs {
	margin-bottom: 1.5rem;
	color: var(--th-muted);
	font-size: var(--th-step--1);
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 0.5rem;
	color: #b9b3a5;
}

.breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--th-green);
	text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
	display: inline-block;
	max-width: 40ch;
	overflow: hidden;
	color: var(--th-text);
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

/* 12. Artikel tunggal & halaman
   ========================================================================== */
.single-wrap {
	padding-block: clamp(2rem, 4vw, 3rem) var(--th-space);
}

.entry-header {
	margin-bottom: 2rem;
}

.entry-cat {
	display: inline-block;
	margin-bottom: 0.875rem;
	color: var(--th-green);
	font-family: var(--th-font-heading);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
}

.entry-cat:hover {
	text-decoration: underline;
}

.entry-title {
	margin-bottom: 1rem;
	font-size: clamp(2rem, 2.4vw + 1.2rem, 3rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.025em;
}

.entry-lead {
	margin-bottom: 1.75rem;
	color: var(--th-muted);
	font-size: 1.1875rem;
	line-height: 1.6;
}

.entry-byline {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: center;
	gap: 0.875rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--th-line);
	font-size: 0.875rem;
	line-height: 1.5;
}

.entry-byline .avatar {
	border-radius: 50%;
}

.entry-byline p {
	margin: 0;
}

.entry-byline__author {
	font-weight: 600;
}

.entry-byline__author a {
	color: var(--th-text);
	text-decoration: none;
}

.entry-byline__author a:hover {
	text-decoration: underline;
}

.entry-byline__dates {
	color: var(--th-muted);
}

.entry-thumbnail {
	margin: 0 0 2.5rem;
}

.entry-thumbnail img {
	width: 100%;
	border-radius: var(--th-radius-img);
}

.entry-thumbnail figcaption {
	margin-top: 0.625rem;
	color: var(--th-muted);
	font-size: var(--th-step--1);
}

.disclosure {
	margin-bottom: 2rem;
	padding: 1rem 1.25rem;
	border-radius: var(--th-radius-ctl);
	background: var(--th-cream);
	color: var(--th-text);
	font-size: 0.875rem;
	line-height: 1.6;
}

.disclosure p {
	margin: 0;
}

.disclosure + .disclosure {
	margin-top: -1.25rem;
}

.entry-content {
	font-size: 1.125rem;
	line-height: 1.75;
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content h2 {
	margin-top: 2.25em;
	font-size: clamp(1.5rem, 0.8vw + 1.2rem, 1.75rem);
}

.entry-content h3 {
	margin-top: 1.75em;
	font-size: 1.3125rem;
}

.entry-content h4 {
	margin-top: 1.5em;
}

.entry-content li {
	margin-bottom: 0.4em;
}

.entry-content img {
	border-radius: var(--th-radius-img);
}

.entry-content blockquote {
	margin: 2rem 0;
	padding: 0 0 0 1.5rem;
	border-left: var(--th-wall) solid var(--th-green);
	font-family: var(--th-font-heading);
	font-size: 1.25rem;
	line-height: 1.5;
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content blockquote cite {
	display: block;
	margin-top: 0.75rem;
	color: var(--th-muted);
	font-family: var(--th-font-body);
	font-size: 0.875rem;
	font-style: normal;
}

.entry-content code {
	padding: 0.15em 0.4em;
	border-radius: 6px;
	background: var(--th-cream);
	font-family: var(--th-font-mono);
	font-size: 0.875em;
}

.entry-content pre {
	overflow-x: auto;
	padding: 1.25rem 1.5rem;
	border-radius: var(--th-radius-ctl);
	background: #1f2a25;
	color: #eef2ef;
	font-size: 0.9rem;
	line-height: 1.6;
}

.entry-content pre code {
	padding: 0;
	background: none;
	color: inherit;
}

.entry-content .wp-block-table {
	overflow-x: auto;
}

.entry-content table {
	width: 100%;
	margin-bottom: 1.5rem;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.entry-content th,
.entry-content td {
	padding: 0.75rem 0.875rem;
	border-bottom: 1px solid var(--th-line);
	text-align: left;
	vertical-align: top;
}

.entry-content thead th {
	border-bottom: 2px solid var(--th-green);
	font-family: var(--th-font-heading);
	font-size: 0.875rem;
	font-weight: 600;
}

.page-links {
	margin-top: 2rem;
	font-weight: 600;
}

.entry-footer {
	margin-top: 3rem;
}

.entry-tags {
	margin: 0;
	font-size: 0.875rem;
}

.entry-tags__label {
	margin-right: 0.375rem;
	color: var(--th-muted);
}

.entry-tags a {
	color: var(--th-green);
}

.author-box {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 1.25rem;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: var(--th-wall) solid var(--th-green);
}

.author-box .avatar {
	border-radius: 50%;
}

.author-box__name {
	margin: 0 0 0.375rem;
	font-size: 1.125rem;
}

.author-box__name a {
	color: var(--th-text);
	text-decoration: none;
}

.author-box__name a:hover {
	color: var(--th-green);
}

.author-box__bio {
	margin: 0 0 0.75rem;
	color: var(--th-muted);
	font-size: 0.9375rem;
}

.related {
	padding-top: var(--th-space);
}

.page-entry .entry-header {
	padding-bottom: 1.75rem;
	border-bottom: var(--th-wall) solid var(--th-green);
}

/* 13. Komentar
   ========================================================================== */
.comments-area {
	margin-top: 3.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--th-line);
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin-left: clamp(1rem, 4vw, 2.5rem);
	padding-left: 1rem;
	border-left: 1px solid var(--th-line);
}

.comment-body {
	padding-block: 1.25rem;
	border-bottom: 1px solid var(--th-line);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 600;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	margin: 0.25rem 0 0.75rem;
	font-size: var(--th-step--1);
}

.comment-metadata a {
	color: var(--th-muted);
	text-decoration: none;
}

.comment-content {
	font-size: 1rem;
}

.reply a {
	font-size: 0.875rem;
	font-weight: 600;
}

.comment-respond {
	margin-top: 2rem;
}

.comment-form p {
	margin-bottom: 1rem;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.875rem;
}

.bypostauthor > .comment-body .fn::after {
	content: " (penulis)";
	color: var(--th-green);
	font-weight: 500;
}

/* 14. Footer
   ========================================================================== */
.site-footer {
	background: var(--th-green);
	color: #dbe5df;
	font-size: 0.9375rem;
}

.footer-main {
	padding-block: clamp(3.5rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem);
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 2.5rem 3rem;
}

.footer-title {
	margin-bottom: 1rem;
	color: var(--th-cream);
	font-size: 1rem;
	font-weight: 500;
}

.site-footer ul {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer a {
	color: #dbe5df;
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--th-white);
	text-decoration: underline;
}

.site-footer .site-title,
.site-footer .site-title:hover {
	margin-bottom: 1.25rem;
	color: var(--th-white);
	text-decoration: none;
}

.site-footer .site-mark {
	color: var(--th-cream);
}

.footer-tagline {
	margin: 0 0 0.5rem;
	color: var(--th-cream);
	font-family: var(--th-font-heading);
}

.footer-about {
	max-width: 38ch;
	margin: 0;
	color: #b7c9c0;
}

.footer-contact {
	display: grid;
	gap: 1rem;
	font-style: normal;
}

.footer-contact p {
	margin: 0;
}

.footer-contact span {
	display: block;
	color: #b7c9c0;
	font-size: var(--th-step--1);
}

.site-footer .widget + .widget {
	margin-top: 2rem;
}

.site-footer .th-admin-hint {
	border-color: #b7c9c0;
	background: transparent;
	color: #b7c9c0;
}

.footer-bottom {
	border-top: 1px solid rgba(245, 241, 232, 0.14);
}

.footer-bottom__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding-block: 1.5rem;
	color: #b7c9c0;
	font-size: 0.875rem;
}

.footer-bottom p {
	margin: 0;
}

.footer-bottom ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

/* 15. Kelas inti WordPress
   ========================================================================== */
.alignleft {
	float: left;
	margin: 0.375rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.375rem 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.wp-element-caption,
.entry-content figcaption {
	margin-top: 0.5rem;
	color: var(--th-muted);
	font-size: var(--th-step--1);
	line-height: 1.5;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1rem;
}

/* 16. Responsif
   ========================================================================== */
@media (min-width: 1100px) {
	.entry-content .alignwide {
		width: calc(100% + 240px);
		max-width: calc(100vw - (var(--th-gutter) * 2));
		margin-left: -120px;
	}
}

@media (max-width: 1140px) {
	.main-navigation a {
		padding-inline: 0.5rem;
		font-size: 0.875rem;
	}

	.main-navigation > ul > li > a::after {
		right: 0.5rem;
		left: 0.5rem;
	}
}

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

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

	.lead-aside ol {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem 2rem;
	}

	.lead-aside li + li {
		margin: 0;
		padding: 0;
		border: 0;
	}

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

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

@media (max-width: 960px) {
	.menu-toggle {
		display: inline-flex;
	}

	.main-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		max-height: calc(100vh - var(--th-header-h));
		overflow-y: auto;
		padding: 0.5rem var(--th-gutter) 1.25rem;
		border-bottom: 1px solid var(--th-line);
		background: var(--th-white);
	}

	.main-navigation.is-open {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
	}

	.main-navigation a {
		padding: 0.75rem 0;
		border-bottom: 1px solid var(--th-line);
		font-size: 1rem;
	}

	.main-navigation > ul > li > a::after {
		display: none;
	}

	.main-navigation .current-menu-item > a {
		font-weight: 600;
	}

	.main-navigation .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0 1rem;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
	}

	.main-navigation .sub-menu::before {
		display: none;
	}

	.main-navigation .sub-menu a {
		padding: 0.625rem 0;
		border-radius: 0;
		color: var(--th-muted);
		font-size: 0.9375rem;
	}

	.main-navigation .sub-menu a:hover {
		background: none;
	}

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

	.plan__house {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-areas:
			"interior interior"
			"rumah properti"
			"tips lifestyle"
			"produk produk";
	}

	.room--interior {
		border-top-right-radius: calc(var(--th-radius-lg) - var(--th-wall));
	}

	.room--properti {
		border-top-right-radius: 0;
	}

	.room--interior .room__topics {
		flex-direction: row;
		gap: 0.25rem 0.875rem;
	}
}

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

@media (max-width: 640px) {
	:root {
		--th-header-h: 64px;
	}

	body {
		font-size: 1rem;
	}

	.post-grid,
	.rubric__posts,
	.footer-grid,
	.lead-aside ol {
		grid-template-columns: minmax(0, 1fr);
	}

	.lead-aside li + li {
		padding-top: 1.25rem;
		border-top: 1px solid var(--th-line);
	}

	/* Di layar kecil, kartu setelah yang pertama tampil ringkas agar daftar tidak terlalu panjang */
	.post-grid .card:not(:first-child) {
		display: grid;
		grid-template-columns: 92px minmax(0, 1fr);
		gap: 1rem;
	}

	.post-grid .card:not(:first-child) .card__media {
		margin: 0;
		border-radius: var(--th-radius-ctl);
		aspect-ratio: 1 / 1;
	}

	.post-grid .card:not(:first-child) .card__excerpt {
		display: none;
	}

	.post-grid .card:not(:first-child) .card__title {
		font-size: 1rem;
	}

	.plan__house {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"interior"
			"rumah"
			"properti"
			"tips"
			"lifestyle"
			"produk";
	}

	.room {
		min-height: 0;
	}

	.room__desc {
		margin-bottom: 0.75rem;
	}

	.room--produk {
		flex-direction: column;
		align-items: stretch;
	}

	.room--produk .room__count {
		margin-left: 0;
		padding-top: 1rem;
	}

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

	.yard-trees {
		display: none;
	}

	.entry-content {
		font-size: 1.0625rem;
	}

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

	.footer-bottom__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.alignleft,
	.alignright {
		float: none;
		margin-inline: 0;
	}
}

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