/* ==========================================================================
   Antoni 3.4 - main.css  (desain mockup baru: kartu tanpa border, menu slider, warna per kategori)
   Daftar isi: 1 Token  2 Dasar  3 Layout  4 Header & navigasi  5 Tombol & form
   6 Kartu & grid  7 Artikel  8 Widget & sidebar  9 Iklan  10 Footer  11 Komentar
   12 Utilitas  13 Responsif  14 Tipografi  15 Layout mockup 3.4 (menimpa bagian sebelumnya)
   Ikon: semua dari sprite SVG (inc/icons.php).
   ========================================================================== */

/* 1. Token ---------------------------------------------------------------- */
:root {
	--c-bg: #f4f5f9;
	--c-surface: #ffffff;
	--c-surface-2: #eceef5;
	--c-text: #14161d;
	--c-muted: #5f6577;
	--c-border: #e4e6ee;
	--c-ink: #14161d;
	--c-primary: #5b3fd0;
	--c-primary-contrast: #ffffff;
	--c-mark: #e4defa;
	--c-mark-text: #2d1c7a;
	--c-accent: #1f9d62;
	--c-danger: #c1280d;
	--c-shop: #14161d;
	--c-shop-contrast: #ffffff;
	--c-cta: #ffb020;
	--c-cta-text: #1a1405;
	--c-af: #8a4b05;
	--c-af-bg: #fff0cf;
	--c-ad: #e9ebf3;
	--c-star: #b45309;
	--c-band: #14161d;
	--c-band-text: #f2f3f7;
	--c-band-muted: #b6bbcc;
	--c-band-line: #2a2e3b;
	--shadow: 0 1px 2px rgb(20 22 40 / 5%), 0 10px 28px rgb(20 22 40 / 7%);
	--shadow-hard: 0 12px 32px rgb(20 22 40 / 18%);
	--radius: 20px;
	--radius-sm: 12px;
	--header-h: 116px;
	--container: 1240px;
	--content: 780px;
	--font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--font-display: "Bricolage Grotesque", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--c-bg: #0c0e13;
	--c-surface: #161922;
	--c-surface-2: #1d212c;
	--c-text: #f2f3f7;
	--c-muted: #9aa0b3;
	--c-border: #262a36;
	--c-ink: #f2f3f7;
	--c-primary: #a78bfa;
	--c-primary-contrast: #150b36;
	--c-mark: #2a2150;
	--c-mark-text: #e4defa;
	--c-accent: #4ade80;
	--c-danger: #f87171;
	--c-shop: #f2f3f7;
	--c-shop-contrast: #0c0e13;
	--c-cta: #ffb020;
	--c-cta-text: #1a1405;
	--c-af: #fcd34d;
	--c-af-bg: #2c2312;
	--c-ad: #1d212c;
	--c-star: #fbbf24;
	--c-band: #161922;
	--c-band-text: #f2f3f7;
	--c-band-muted: #9aa0b3;
	--c-band-line: #262a36;
	--shadow: 0 1px 2px rgb(0 0 0 / 45%), 0 10px 28px rgb(0 0 0 / 40%);
	--shadow-hard: 0 12px 32px rgb(0 0 0 / 55%);
	color-scheme: dark;
}

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

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

body {
	margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65;
	color: var(--c-text); background: var(--c-bg); overflow-wrap: break-word;
}
body.nav-open { overflow: hidden; }

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

a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--c-primary) 55%, transparent); outline-offset: 2px; border-radius: 4px; }

.icon { display: inline-block; width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: .5rem; left: .5rem; z-index: 1000; width: auto; height: auto; margin: 0; clip: auto;
	padding: .75rem 1rem; background: var(--c-surface); color: var(--c-text); border-radius: var(--radius-sm); box-shadow: var(--shadow-hard);
}

/* 3. Layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1rem; }
.container--narrow { max-width: var(--content); }
.site-main { padding-block: 1.5rem 3rem; min-height: 50vh; }
.site-main > .layout { margin-top: 1.5rem; }

.layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
.layout__main { min-width: 0; }

/* 4. Header & navigasi ---------------------------------------------------- */

.site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }

.site-branding { display: flex; flex-direction: column; justify-content: center; }
.site-title { margin: 0; font-size: 1.625rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.site-title a { color: var(--c-primary); text-decoration: none; }
.custom-logo { max-height: 40px; width: auto; }

.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
	border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: transparent; color: var(--c-text); cursor: pointer;
}
.icon-btn:hover { background: var(--c-surface-2); }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: inline-block; }

.lang-switch { display: inline-flex; gap: 4px; }
.lang-switch__item {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; padding: 0 .7rem;
	border: 1px solid var(--c-border); border-radius: 8px; font-size: .8125rem; font-weight: 700; text-decoration: none; color: var(--c-text);
}
.lang-switch__item:hover { background: var(--c-surface-2); }
.lang-switch__item.is-active { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-primary-contrast); }

.read-progress { position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; z-index: 90; height: 3px; pointer-events: none; }
.read-progress__bar { display: block; height: 100%; background: var(--c-primary); transform: scaleX(0); transform-origin: 0 50%; }

/* 5. Tombol & form -------------------------------------------------------- */
.button,
.comment-form .submit {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px;
	padding: .65rem 1.15rem; border: 1px solid transparent; border-radius: var(--radius-sm);
	background: var(--c-primary); color: var(--c-primary-contrast); font-weight: 700; text-decoration: none; cursor: pointer;
}
.button:hover, .comment-form .submit:hover { filter: brightness(1.08); text-decoration: none; }
.button--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-border); }
.button--cta { background: var(--c-cta); color: var(--c-cta-text); width: 100%; padding: .9rem 1.2rem; font-size: 1.0625rem; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="number"], select, textarea {
	width: 100%; min-height: 44px; padding: .65rem .85rem; background: var(--c-bg); color: var(--c-text);
	border: 1px solid var(--c-border); border-radius: var(--radius-sm);
}
input::placeholder, textarea::placeholder { color: var(--c-muted); opacity: 1; }

.search-form { display: flex; gap: .5rem; }
.search-form__input { flex: 1; min-width: 0; }
.search-form__submit {
	display: inline-flex; align-items: center; gap: .4rem; padding: 0 1.1rem; min-height: 44px;
	border: 0; border-radius: var(--radius-sm); background: var(--c-primary); color: var(--c-primary-contrast); font-weight: 700; cursor: pointer;
}

/* 6. Kartu & grid --------------------------------------------------------- */
.post-grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); margin-bottom: 1.5rem; }
.post-grid--list { grid-template-columns: minmax(0, 1fr); }
.post-grid--list .card { flex-direction: row; }
.post-grid--list .card__media { flex: 0 0 38%; aspect-ratio: auto; }

.card {
	display: flex; flex-direction: column; min-width: 0; padding: .85rem;
	background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow);
	transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c-primary) 45%, var(--c-border)); }
.card__media { display: block; aspect-ratio: 16 / 9; background: var(--c-mark); overflow: hidden; border-radius: var(--radius-sm); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { display: block; width: 100%; height: 100%; background: var(--c-mark); }
.card__body { display: flex; flex-direction: column; gap: .4rem; padding: .85rem .15rem .15rem; flex: 1; }
.card__title { margin: 0; font-size: 1.1875rem; }
.card__title a { color: var(--c-text); text-decoration: none; }
.card__title a:hover { color: var(--c-primary); }
.card__excerpt { margin: 0; color: var(--c-muted); font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .post-meta { margin-top: auto; padding-top: .25rem; }

.badge {
	align-self: flex-start; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	color: var(--c-primary); font-size: .75rem; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: .05em;
}
.badge:hover { text-decoration: underline; }
.badge--danger { padding: .1rem .55rem; border-radius: 999px; background: var(--c-af-bg); color: var(--c-af); }

.af { display: inline-block; align-self: flex-start; padding: .1rem .55rem; border-radius: 6px; background: var(--c-af-bg); color: var(--c-af); font-size: .6875rem; font-weight: 800; }

.post-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: 0; list-style: none; color: var(--c-muted); font-size: .8125rem; }
.post-meta li { display: inline-flex; align-items: center; gap: .3rem; }

.category-grid__list .card { flex-direction: row; align-items: flex-start; gap: .9rem; padding: .75rem; box-shadow: none; }
.category-grid__list .card__media { flex: 0 0 104px; width: 104px; aspect-ratio: 1; align-self: flex-start; }
.category-grid__list .card__media img { width: 100%; height: 100%; object-fit: cover; }
.category-grid__list .card__body { padding: 0; gap: .35rem; min-width: 0; flex: 1; }
.category-grid__list .card__title { font-size: 1rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.category-grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); margin-bottom: 1.5rem; }
.category-grid__lead { min-width: 0; }
.category-grid__lead .card { height: 100%; }
.category-grid__list { display: grid; gap: 1rem; grid-auto-rows: 1fr; align-content: start; min-width: 0; }
.category-block { margin-bottom: 2.25rem; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.section-head__title { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.5rem; }
.section-head__title .icon { width: 1.1em; height: 1.1em; color: var(--c-primary); }
.section-head__link { display: inline-flex; align-items: center; gap: .25rem; font-size: .875rem; font-weight: 700; text-decoration: none; }
.section-head__link:hover { text-decoration: underline; }

.archive-header { margin-bottom: 1.5rem; padding: 1.25rem 1.5rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.archive-header__label { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .35rem; color: var(--c-primary); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.archive-header__title { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .35rem; font-size: clamp(1.625rem, 4vw, 2.25rem); }
.archive-header__query { color: var(--c-primary); }
.archive-header__desc { color: var(--c-muted); max-width: 62ch; }
.archive-header__desc > :last-child { margin-bottom: 0; }
.archive-header__count { display: inline-flex; align-items: center; gap: .35rem; margin: .5rem 0 0; color: var(--c-muted); font-size: .875rem; }
.archive-header .search-form { max-width: 560px; margin-top: 1rem; }
.archive-header .chip-row { margin-top: 1rem; }

.author-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.author-hero__avatar img { border-radius: 50%; border: 3px solid var(--c-mark); }
.author-hero__body { min-width: 0; }

.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 .75rem;
	border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-surface); color: var(--c-text); font-weight: 600; text-decoration: none;
}
.pagination a.page-numbers:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination .page-numbers.current { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-primary-contrast); }

.no-results, .not-found { text-align: center; padding-block: 2rem; }
.not-found__code { margin: 0; font-family: var(--font-display); font-size: clamp(5rem, 22vw, 9rem); font-weight: 800; color: var(--c-primary); line-height: 1; }
.not-found .search-form { max-width: 480px; margin: 1.5rem auto; }
.not-found .button { margin-bottom: 2rem; }
.not-found__grid { text-align: left; margin-top: 1rem; }

/* 7. Artikel -------------------------------------------------------------- */
.entry { min-width: 0; }
.entry__header { margin-bottom: 1.25rem; }
.entry__title { font-size: clamp(1.75rem, 4.2vw, 2.5rem); margin-top: .5rem; letter-spacing: -.02em; }
.entry__byline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; color: var(--c-muted); font-size: .875rem; }
.entry__author { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; color: var(--c-text); }
.entry__thumb { margin: 0 0 1.5rem; border-radius: var(--radius); overflow: hidden; }
.entry__thumb img { width: 100%; }

.entry__footer { display: grid; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--c-border); }
.page-links { display: flex; gap: .5rem; margin-top: 1rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tag-list a { display: inline-block; padding: .25rem .8rem; border: 1px solid var(--c-border); border-radius: 999px; color: var(--c-muted); font-size: .8125rem; text-decoration: none; }
.tag-list a:hover { color: var(--c-primary); border-color: var(--c-primary); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.share__label { display: inline-flex; align-items: center; gap: .35rem; margin-right: .25rem; color: var(--c-muted); font-weight: 600; }
.share__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--c-border); border-radius: 50%; background: var(--c-surface); color: var(--c-text); cursor: pointer; }
.share__btn:hover, .share__btn.is-done { color: var(--c-primary); border-color: var(--c-primary); }

.toc { margin: 0 0 1.5rem; padding: 0; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.toc__title { display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem; font-weight: 700; cursor: pointer; list-style: none; }
.toc__title::-webkit-details-marker { display: none; }
.toc__chevron { margin-left: auto; transition: transform .2s; }
.toc[open] .toc__chevron { transform: rotate(180deg); }
.toc__list { margin: 0; padding: 0 1rem 1rem 2.25rem; max-height: 50vh; overflow-y: auto; }
.toc__item { margin: .25rem 0; font-size: .9375rem; }
.toc__item--h3 { margin-left: 1rem; font-size: .875rem; }
.toc a { color: var(--c-text); text-decoration: none; }
.toc a:hover { color: var(--c-primary); }

.author-box { display: flex; gap: 1rem; align-items: center; margin-top: 1.5rem; padding: 1rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.author-box img { border-radius: 50%; }
.author-box__name { margin: 0; font-weight: 700; }
.author-box__bio { margin: 0; color: var(--c-muted); font-size: .9375rem; }

.related { margin-top: 2rem; }

.post-navigation .nav-links { display: grid; gap: 1rem; margin-top: 2rem; }
.post-navigation a { display: block; height: 100%; padding: 1rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); color: var(--c-text); text-decoration: none; }
.post-navigation a:hover { border-color: var(--c-primary); }
.post-nav__label { display: block; color: var(--c-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.post-nav__title { display: block; font-weight: 700; }
.post-navigation .nav-next { text-align: right; }

.disclosure { display: flex; gap: .6rem; margin: 1rem 0 0; padding: .7rem .9rem; background: var(--c-af-bg); color: var(--c-af); border-radius: var(--radius-sm); font-size: .8125rem; line-height: 1.5; }
.disclosure .icon { margin-top: .1rem; }

/* 8. Widget & sidebar ----------------------------------------------------- */
.sidebar { min-width: 0; }
.sidebar > .widget { margin-bottom: 1.5rem; }
.widget { padding: 1.25rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.widget__title { margin: 0 0 .85rem; font-size: 1.125rem; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: .35rem 0; }
.widget a { color: var(--c-text); text-decoration: none; }
.widget a:hover { color: var(--c-primary); }

.popular-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .85rem; }
.popular-list__item { display: flex; gap: .75rem; }
.popular-list__thumb { flex: 0 0 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; }
.popular-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-list__title { display: block; font-weight: 600; line-height: 1.35; }
.popular-list__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .5rem; color: var(--c-muted); font-size: .75rem; }

.about-widget { text-align: center; }
.about-widget__avatar { margin: 0 auto .75rem; border-radius: 50%; object-fit: cover; }
.about-widget__name { font-weight: 700; margin-bottom: .25rem; }
.social-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.social-links__item { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--c-border); border-radius: 50%; }
.social-links__item:hover { background: var(--c-primary); color: var(--c-primary-contrast); border-color: var(--c-primary); }
.newsletter { display: grid; gap: .5rem; }

/* 9. Slot iklan + placeholder -------------------------------------------
   Nama class sengaja netral (gx-*): tidak memuat kata "ad", "banner", "sponsor" dsb.
   agar tidak disembunyikan oleh filter kosmetik pemblokir iklan.
   - .gx-fill  = placeholder, tampil secara bawaan.
   - .is-live  = diberi main.js saat iklan benar-benar terisi & terlihat -> placeholder hilang.
   ------------------------------------------------------------------------ */
.gx-unit { display: block; clear: both; position: relative; width: 100%; max-width: 100%; margin: 1.5rem 0; overflow: hidden; contain: layout paint; text-align: center; --gx-h: 120px; }
.gx-unit + .gx-unit { display: none; }
.gx-unit--header { --gx-h: 90px; }
.gx-unit--sidebar_top, .gx-unit--sidebar_sticky { --gx-h: 250px; }
.gx-unit--anchor { --gx-h: 56px; }

.gx-fill { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: var(--gx-h); padding: 1rem 1.25rem; background: var(--c-ad); border-radius: 16px; color: var(--c-muted); font-size: .8125rem; line-height: 1.5; text-align: center; }
.gx-fill__t { color: var(--c-ink); font-size: .9375rem; font-weight: 800; }
.gx-fill__d { display: block; max-width: 46ch; }
.gx-fill__a { margin-top: .25rem; color: var(--c-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.gx-unit--anchor .gx-fill { flex-direction: row; flex-wrap: wrap; gap: .25rem .75rem; padding: .5rem 1rem; }
.gx-unit--anchor .gx-fill__d { display: none; }

/* Iklan sungguhan disembunyikan (tinggi 0, tidak memakan ruang) sampai benar-benar terisi.
   Tetap punya lebar penuh agar AdSense bisa menghitung ukuran unit. */
.gx-live { position: absolute; top: 0; left: 0; display: block; width: 100%; max-width: 100%; opacity: 0; pointer-events: none; }
.gx-tag { display: none; margin-bottom: .25rem; color: var(--c-muted); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; }
.gx-body { display: block; width: 100%; max-width: 100%; overflow: hidden; }
.gx-body .adsbygoogle { display: block; width: 100%; margin: 0; padding: 0; background: none; color: inherit; text-decoration: none; }
.gx-body .adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.gx-body img, .gx-body iframe, .gx-body video { max-width: 100%; }
.gx-item { display: block; max-width: 100%; overflow: hidden; }

.gx-unit.is-live .gx-fill { display: none; }
.gx-unit.is-live .gx-live { position: static; opacity: 1; pointer-events: auto; }
.gx-unit.is-live .gx-tag { display: block; }
/* Batas tinggi agar iklan besar tidak menabrak konten di sekitarnya. */
.gx-unit--header .gx-body, .gx-unit--infeed .gx-body, .gx-unit--after_intro .gx-body, .gx-unit--mid_content .gx-body, .gx-unit--end_content .gx-body { max-height: 320px; }
.gx-unit--sidebar_top .gx-body, .gx-unit--sidebar_sticky .gx-body { max-height: 620px; }

/* Baris pembungkus iklan header: pertahankan centering .container (jangan reset margin-inline). */
.gx-row { margin-block: 0; }
.gx-unit--header { margin-top: 0; }
.gx-unit--sidebar_top, .gx-unit--sidebar_sticky { margin: 0; }
.sidebar__sticky { min-width: 0; }

/* 10. Footer -------------------------------------------------------------- */
.site-footer { margin-top: 3rem; background: var(--c-surface); border-top: 1px solid var(--c-border); font-size: var(--fs-sm); color: var(--c-muted); }
.site-footer__main { display: grid; gap: 2rem 2.5rem; grid-template-columns: minmax(0, 1fr); padding-block: 2.5rem 2rem; }
.site-footer__brand { max-width: 38ch; }
.site-footer__name { margin: 0 0 .5rem; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.01em; color: var(--c-primary); }
.site-footer__about { margin: 0; line-height: 1.6; }
.site-footer__heading, .footer-widgets .widget__title { margin: 0 0 .85rem; font-family: var(--font); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text); }
.site-footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.site-footer a { color: var(--c-muted); text-decoration: none; }
.site-footer a:hover { color: var(--c-primary); text-decoration: underline; }
.footer-widgets { display: contents; }
.footer-widgets .widget { padding: 0; background: transparent; border: 0; border-radius: 0; margin: 0; }
.footer-widgets .widget li { padding: .25rem 0; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: 1.25rem 1.5rem; border-top: 1px solid var(--c-border); }
.site-footer__copy { margin: 0; }
.footer-nav__list { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-footer__top { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: 0 .85rem; border: 1px solid var(--c-border); border-radius: 999px; font-weight: 600; color: var(--c-text); }
.site-footer__top:hover { border-color: var(--c-primary); text-decoration: none; }
@media (min-width: 700px) {
	.site-footer__main { grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(160px, 1fr)); }
}

/* 11. Komentar ------------------------------------------------------------ */
.comments { margin-top: 2.5rem; }
.comments__title, .comment-reply-title { font-size: 1.25rem; }
.comment-list, .comment-list .children { margin: 0; padding: 0; list-style: none; }
.comment-list .children { margin-left: 1.25rem; padding-left: 1rem; border-left: 2px solid var(--c-border); }
.comment-body { position: relative; margin-bottom: 1rem; padding: 1rem 1rem 1rem 4.25rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.comment-body .avatar { position: absolute; top: 1rem; left: 1rem; border-radius: 50%; }
.comment-meta { margin-bottom: .5rem; font-size: .8125rem; color: var(--c-muted); }
.comment-author .fn { font-weight: 700; font-style: normal; }
.comment-form { display: grid; gap: 1rem; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: .25rem; font-weight: 600; font-size: .9375rem; }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: center; }
.comment-form-cookies-consent input { width: auto; min-height: 0; }

/* 12. Utilitas ------------------------------------------------------------ */
.card-box { padding: 1.25rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.table-wrap { overflow-x: auto; }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.chip-row__label { display: inline-flex; align-items: center; gap: .3rem; color: var(--c-muted); font-size: .875rem; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: .25rem .9rem; border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-surface); color: var(--c-text); font-size: .875rem; text-decoration: none; }
a.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chip.is-active { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-primary-contrast); }

body.page-embed { margin: 0; overflow: hidden; }
.embed-frame { position: fixed; top: var(--wp-admin--admin-bar--height, 0); right: 0; bottom: 0; left: 0; width: 100%; height: calc(100% - var(--wp-admin--admin-bar--height, 0px)); border: 0; }

.alignwide { max-width: 100%; }
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { color: var(--c-muted); font-size: .875rem; text-align: center; }

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

/* 13. Responsif ------------------------------------------------------------ */
@media (min-width: 640px) {
	.container { padding-inline: 1.5rem; }
	.post-grid--cols-2, .post-grid--cols-3, .post-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-navigation .nav-links { grid-template-columns: 1fr 1fr; }
	.category-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.5rem; }
	.author-hero { flex-direction: row; align-items: center; }
}
@media (min-width: 900px) {
	.post-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.post-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; align-items: stretch; }
	.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 1rem); }
	.post-grid--cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.layout--sidebar .post-grid--cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
	.layout--sidebar .post-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.layout--sidebar .post-grid--cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
	.post-grid--list .card { flex-direction: column; }
	.post-grid--list .card__media { flex: none; aspect-ratio: 16 / 9; }
	.category-grid__list .card__media { flex-basis: 96px; width: 96px; }
	.search-form__submit span { display: none; }
	.site-title { font-size: 1.25rem; }
}

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

/* 14. Tipografi & konten --------------------------------------------------
   Skala: xs .75 / sm .875 / base 1 / md 1.0625 / lg 1.25 / xl 1.5 / 2xl / 3xl.
   Berlaku untuk isi artikel, halaman, komentar, widget teks, dan deskripsi arsip.
   ------------------------------------------------------------------------ */
:root {
	--fs-xs: .75rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.0625rem; --fs-lg: 1.25rem; --fs-xl: 1.5rem;
	--fs-2xl: clamp(1.5rem, 3vw, 1.875rem); --fs-3xl: clamp(1.75rem, 4.2vw, 2.5rem);
	--prose-gap: 1.15em;
}
body { font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; letter-spacing: -.01em; }
p, li, dd, blockquote { text-wrap: pretty; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: 1.3125rem; }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; }
small, .small { font-size: var(--fs-sm); }
strong, b, th { font-weight: 700; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
mark { padding: .05em .25em; background: var(--c-mark); color: var(--c-mark-text); border-radius: 3px; }
del { color: var(--c-muted); }
ins:not(.adsbygoogle) { text-decoration: none; background: var(--c-mark); color: var(--c-mark-text); padding: 0 .2em; }
sub, sup { font-size: .75em; line-height: 0; }
hr { height: 1px; margin: 2rem 0; border: 0; background: var(--c-border); }
kbd, samp { padding: .1em .45em; border: 1px solid var(--c-border); border-bottom-width: 2px; border-radius: 5px; background: var(--c-surface); font-family: var(--font-mono); font-size: .875em; }
code { padding: .1em .4em; border-radius: 5px; background: var(--c-surface-2); font-family: var(--font-mono); font-size: .875em; }
pre { overflow-x: auto; margin: 0 0 var(--prose-gap); padding: 1rem 1.15rem; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-surface-2); font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 1.6; tab-size: 4; }
pre code { padding: 0; background: transparent; font-size: inherit; }
figure { margin: 0 0 var(--prose-gap); }
figcaption, .wp-caption-text { margin-top: .5rem; color: var(--c-muted); font-size: var(--fs-sm); text-align: center; }
dl { margin: 0 0 var(--prose-gap); }
dt { font-weight: 700; }
dd { margin: 0 0 .75em 1rem; color: var(--c-muted); }
details { margin: 0 0 var(--prose-gap); border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-surface); }
summary { padding: .75rem 1rem; font-weight: 700; cursor: pointer; }
details[open] > summary { border-bottom: 1px solid var(--c-border); }
details > :not(summary) { margin-inline: 1rem; }
details > :last-child { margin-bottom: 1rem; }
details > summary + * { margin-top: .85rem; }

/* Prose */
.entry__content, .comment-content, .textwidget, .archive-header__desc, .prose { font-size: var(--fs-md); line-height: 1.8; overflow-wrap: break-word; }
.entry__content > :last-child, .comment-content > :last-child, .textwidget > :last-child { margin-bottom: 0; }
.entry__content > * { max-width: 100%; }
.entry__content p, .comment-content p { margin: 0 0 var(--prose-gap); }
.entry__content a, .comment-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry__content a:hover, .comment-content a:hover { text-decoration-thickness: 2px; }
.entry__content h2, .entry__content h3, .entry__content h4, .entry__content h5, .entry__content h6 { margin: 2em 0 .6em; line-height: 1.25; scroll-margin-top: calc(var(--header-h) + 1rem); }
.entry__content h2 { padding-bottom: .35em; border-bottom: 1px solid var(--c-border); }
.entry__content > h2:first-child, .entry__content > h3:first-child { margin-top: 0; }
.entry__content h3 { font-size: 1.3125rem; }
.entry__content img, .comment-content img { height: auto; border-radius: var(--radius-sm); }

/* Daftar */
.entry__content ul, .entry__content ol, .comment-content ul, .comment-content ol, .textwidget ul, .textwidget ol { margin: 0 0 var(--prose-gap); padding-left: 1.6rem; }
.entry__content ul { list-style: disc; }
.entry__content ol { list-style: decimal; }
.entry__content li { margin: 0 0 .45em; padding-left: .2rem; }
.entry__content li::marker { color: var(--c-primary); font-weight: 700; }
.entry__content li > ul, .entry__content li > ol { margin: .45em 0 0; }
.entry__content ul ul { list-style: circle; }
.entry__content ul ul ul { list-style: square; }
.entry__content ol ol { list-style: lower-alpha; }
.entry__content ol ol ol { list-style: lower-roman; }
.entry__content li:last-child { margin-bottom: 0; }

/* Tabel (thead, tbody, tfoot, caption) */
.table-wrap { margin: 0 0 var(--prose-gap); overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-surface); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 0; }
.table-wrap > table { margin: 0; }
table { width: 100%; border-collapse: collapse; border-spacing: 0; margin: 0 0 var(--prose-gap); font-size: var(--fs-sm); line-height: 1.5; font-variant-numeric: tabular-nums; }
caption { padding: .65rem 1rem; caption-side: bottom; color: var(--c-muted); font-size: var(--fs-sm); text-align: left; }
th, td { padding: .7rem 1rem; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
thead th { border-bottom: 2px solid var(--c-border); background: var(--c-surface-2); color: var(--c-text); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
tbody th { background: transparent; font-weight: 700; }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--c-surface-2) 55%, transparent); }
tbody tr:hover { background: var(--c-mark); color: var(--c-mark-text); }
tbody tr:last-child > * { border-bottom: 0; }
tfoot th, tfoot td { border-top: 2px solid var(--c-border); border-bottom: 0; background: var(--c-surface-2); font-weight: 700; }
td[align="right"], th[align="right"], .has-text-align-right { text-align: right; }
td[align="center"], th[align="center"], .has-text-align-center { text-align: center; }
.wp-block-table { margin: 0 0 var(--prose-gap); overflow-x: auto; }
.wp-block-table table { border: 0; }
.wp-block-table figcaption { text-align: left; }

/* Kutipan */
blockquote { margin: 1.75em 0; padding: .75em 1.25em; border-left: 4px solid var(--c-primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--c-surface-2); color: var(--c-text); font-size: 1.0625em; }
blockquote > :last-child { margin-bottom: 0; }
blockquote cite, cite { color: var(--c-muted); font-size: var(--fs-sm); font-style: normal; }
blockquote cite::before { content: "\2014\00a0"; }
q { quotes: "\201C" "\201D" "\2018" "\2019"; }
.wp-block-pullquote { margin: 2em 0; padding: 1.5rem; border-block: 3px solid var(--c-primary); text-align: center; }
.wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; background: transparent; font-size: var(--fs-lg); }

/* Blok Gutenberg & media */
.wp-block-image, .wp-block-gallery, .wp-block-embed, .wp-block-video, .wp-block-audio, .wp-block-code, .wp-block-separator, .wp-block-columns, .wp-block-buttons, .wp-block-group, .wp-block-media-text { margin: 0 0 var(--prose-gap); }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.wp-block-column { flex: 1 1 240px; min-width: 0; }
.wp-block-gallery { display: flex; flex-wrap: wrap; gap: .75rem; padding: 0; list-style: none; }
.wp-block-gallery .wp-block-image { flex: 1 1 160px; margin: 0; }
.wp-block-separator { height: 1px; border: 0; background: var(--c-border); }
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1.15rem; border-radius: var(--radius-sm); background: var(--c-primary); color: var(--c-primary-contrast); font-weight: 700; text-decoration: none; }
.wp-block-button__link:hover { filter: brightness(1.08); text-decoration: none; }
.wp-block-embed__wrapper { position: relative; }
.wp-block-embed.is-type-video .wp-block-embed__wrapper, .entry__content .video-wrap { aspect-ratio: 16 / 9; }
.wp-block-embed.is-type-video iframe { width: 100%; height: 100%; }
.entry__content iframe { max-width: 100%; border-radius: var(--radius-sm); }

/* Form di dalam konten, komentar, dan widget */
label { font-weight: 600; }
select { appearance: none; padding-right: 2.25rem; background: var(--c-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2355625f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .75rem center / 1rem no-repeat; }
textarea { min-height: 8rem; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 1.1rem; height: 1.1rem; min-height: 0; accent-color: var(--c-primary); }
fieldset { margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--c-border); border-radius: var(--radius-sm); }
legend { padding: 0 .5rem; font-weight: 700; }

/* Kartu & meta: rapikan */
.card__body > .badge { margin-bottom: .1rem; }
.card__title { line-height: 1.3; }
.post-meta { font-size: var(--fs-xs); gap: .2rem .9rem; }
.post-meta .icon { width: 1.05em; height: 1.05em; }
.post-grid > .card { height: 100%; }

/* Hasil pencarian Google CSE */
.search-cse { padding: 1rem 1.25rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.search-cse .gsc-control-cse, .search-cse .gsc-control-cse * { font-family: var(--font) !important; }
.search-cse .gsc-control-cse { padding: 0 !important; border: 0 !important; background: transparent !important; }
.search-cse .gsc-results-wrapper-nooverlay, .search-cse .gsc-results-wrapper-visible { padding: 0 !important; }
.search-cse .gsc-tabsArea { margin-bottom: .75rem; border-bottom: 1px solid var(--c-border) !important; }
.search-cse .gsc-tabHeader { padding: .5rem 1rem !important; border: 0 !important; background: transparent !important; color: var(--c-muted) !important; font-weight: 600; }
.search-cse .gsc-tabHeader.gsc-tabhActive { border-bottom: 2px solid var(--c-primary) !important; color: var(--c-primary) !important; }
.search-cse .gsc-result-info { padding: 0 !important; color: var(--c-muted) !important; font-size: var(--fs-sm) !important; }
.search-cse .gsc-webResult.gsc-result, .search-cse .gsc-imageResult { padding: 1rem 0 !important; border: 0 !important; border-bottom: 1px solid var(--c-border) !important; background: transparent !important; }
.search-cse .gs-title, .search-cse .gs-title * { color: var(--c-primary) !important; font-size: var(--fs-md) !important; font-weight: 700 !important; text-decoration: none !important; }
.search-cse a.gs-title:hover { text-decoration: underline !important; }
.search-cse .gs-snippet, .search-cse .gs-bidi-start-align { color: var(--c-text) !important; font-size: var(--fs-sm) !important; line-height: 1.6 !important; }
.search-cse .gsc-url-top, .search-cse .gs-visibleUrl { color: var(--c-muted) !important; font-size: var(--fs-xs) !important; }
.search-cse .gs-image-box, .search-cse .gsc-thumbnail-inside img { border-radius: 8px; }
.search-cse .gsc-cursor-box { margin: 1.25rem 0 0 !important; text-align: center; }
.search-cse .gsc-cursor-page { display: inline-flex !important; align-items: center; justify-content: center; min-width: 40px; height: 40px; margin: 0 .2rem !important; padding: 0 .6rem !important; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-surface); color: var(--c-text) !important; font-size: var(--fs-sm) !important; }
.search-cse .gsc-cursor-current-page { border-color: var(--c-primary); background: var(--c-primary); color: var(--c-primary-contrast) !important; }
.search-cse .gcsc-find-more-on-google { color: var(--c-primary) !important; }

/* 404 */
.not-found__title { margin-top: .75rem; font-size: var(--fs-3xl); }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 0 0 2.5rem; }
.not-found .button { margin-bottom: 0; }
.no-results__title { font-size: var(--fs-2xl); }
.no-results__action { margin-top: 1rem; }

/* Tombol kecil */
.button--sm { min-height: 40px; padding: .45rem .9rem; font-size: var(--fs-sm); }

/* 15. Antoni 3.4 - layout mockup baru ------------------------------------------
   Logo ubin huruf, header 2 baris (logo + cari + bahasa + tema, lalu menu slider),
   kartu tanpa border dengan gambar penuh, hero 1 besar + "Sedang dibaca",
   ubin kategori berwarna, header arsip berwarna, sidebar bernomor.
   Warna kategori datang dari variabel --c (lihat antoni_category_color()).
   ------------------------------------------------------------------------ */
body { transition: background .25s, color .25s; }
.site-main { padding-top: 1rem; }

/* Header */
.site-header { background: color-mix(in srgb, var(--c-bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-header__top { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; padding-block: .75rem .5rem; }
.site-branding { flex-direction: row; }
.site-title { line-height: 1; }
.site-title a { display: inline-flex; color: var(--c-text); text-decoration: none; }
.brand-tiles { display: inline-flex; gap: 4px; }
.brand-tiles i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #fff; font: 800 15px/1 var(--font-display); font-style: normal; }
.header-search { order: 1; flex: 1 1 280px; max-width: 520px; margin-left: auto; }
.header-search .search-form { align-items: center; gap: 0; padding: 0 .5rem 0 .35rem; background: var(--c-surface); border-radius: 999px; box-shadow: var(--shadow); }
.header-search .search-form:focus-within { box-shadow: 0 0 0 2px var(--c-cta); }
.header-search .search-form__input { min-height: 44px; padding: 0 .5rem; border: 0; background: transparent; outline: 0; }
.header-search .search-form__submit { order: -1; min-height: 40px; padding: 0 .6rem; background: transparent; color: var(--c-muted); }
.header-search .search-form__submit span { display: none; }
.header-tools { order: 2; display: flex; align-items: center; gap: .5rem; }
.icon-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--c-surface); box-shadow: var(--shadow); }
.lang-switch { gap: 0; padding: 3px; background: var(--c-surface); border-radius: 999px; box-shadow: var(--shadow); }
.lang-switch__item { min-width: 0; min-height: 34px; padding: 0 .8rem; border: 0; border-radius: 999px; color: var(--c-muted); font-size: .75rem; }
.lang-switch__item:hover { background: transparent; color: var(--c-text); }
.lang-switch__item.is-active { background: var(--c-ink); color: var(--c-bg); }
.site-header__nav { padding-bottom: .65rem; }
.primary-nav { position: relative; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
.primary-nav::-webkit-scrollbar { display: none; }
.primary-nav.is-dragging { cursor: grabbing; user-select: none; }
.primary-nav.is-dragging a { pointer-events: none; }
.primary-nav__list { display: flex; gap: .375rem; width: max-content; min-width: 100%; margin: 0; padding: 0 0 2px; list-style: none; }
.primary-nav .menu-item { flex: none; }
.primary-nav a { display: flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border: 0; border-radius: 999px; color: var(--c-text); font-size: .875rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.primary-nav a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--nc, var(--c-primary)); }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current-cat > a { background: var(--c-surface); box-shadow: var(--shadow); color: var(--c-text); }
.primary-nav .sub-menu { display: none; }
.primary-nav .menu-item:nth-child(6n+1) { --nc: #2f6fed; }
.primary-nav .menu-item:nth-child(6n+2) { --nc: #e0502d; }
.primary-nav .menu-item:nth-child(6n+3) { --nc: #7c4dd8; }
.primary-nav .menu-item:nth-child(6n+4) { --nc: #1f9d62; }
.primary-nav .menu-item:nth-child(6n+5) { --nc: #d6457a; }
.primary-nav .menu-item:nth-child(6n+6) { --nc: #f08a00; }

/* Judul bagian, lencana, tombol */
.section-head { margin: 2.75rem 0 1rem; }
.section-head__title { font-size: 1.625rem; font-weight: 800; }
.section-head__link { color: var(--c-text); text-decoration: underline; text-decoration-color: var(--c-cta); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.badge { position: relative; z-index: 3; padding: .2rem .7rem; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--c-primary)) 16%, transparent); color: color-mix(in srgb, var(--c, var(--c-primary)) 82%, var(--c-text)); font-size: .75rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.badge:hover { text-decoration: none; filter: brightness(1.1); }

/* Kartu: gambar penuh tanpa border, seluruh kartu bisa diklik */
.post-grid { gap: 1.25rem; }
.card { position: relative; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.card:hover { transform: translateY(-3px); border-color: transparent; }
.card__media { aspect-ratio: 16 / 10; border-radius: 0; }
.card__media img { transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__placeholder { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--c, var(--c-primary)), color-mix(in srgb, var(--c, var(--c-primary)) 55%, #000)); }
.card__placeholder::before { content: ""; position: absolute; right: -8%; top: -20%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / 17%); }
.card__placeholder::after { content: ""; position: absolute; left: -6%; bottom: -22%; width: 42%; aspect-ratio: 1; border-radius: 30%; background: rgb(0 0 0 / 12%); transform: rotate(-12deg); }
.card__body { gap: .55rem; padding: 1rem 1.15rem 1.15rem; }
.card__title { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.post-meta { gap: .25rem .9rem; }

/* Hero */
.hero { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
.hero__lead { display: flex; min-width: 0; }
.hero__lead .card { flex: 1; }
.hero__side { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.hero__side-title { margin: 0; font-size: 1.125rem; }
.hero__list { display: flex; flex-direction: column; flex: 1; gap: .75rem; }
.hero__list .card { flex: 1 0 auto; }
.card--lead { justify-content: flex-end; min-height: 380px; color: #fff; box-shadow: var(--shadow-hard); }
.card--lead .card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.card--lead .card__media img { height: 100%; }
.card--lead .card__body { position: relative; z-index: 1; flex: 0 0 auto; gap: .6rem; padding: 90px 20px 22px; background: linear-gradient(to top, rgb(0 0 0 / 82%), rgb(0 0 0 / 45%) 55%, transparent); }
.card--lead .card__title { font-size: clamp(1.625rem, 3.6vw, 2.625rem); font-weight: 800; line-height: 1.12; }
.card--lead .card__title a, .card--lead .card__excerpt, .card--lead .post-meta { color: #fff; }
.card--lead .card__excerpt { opacity: .88; max-width: 62ch; }
.card--lead .badge { background: var(--c); color: #fff; }
.card--row { flex-direction: row; align-items: stretch; }
.card--row .card__media { position: relative; flex: 0 0 34%; width: 34%; min-height: 104px; aspect-ratio: auto; }
.card--row .card__media img { height: 100%; }
.card--row .card__body { justify-content: center; padding: .9rem 1rem; }
.card--row .card__title { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 1rem; }
.card__num { position: absolute; z-index: 2; left: 10px; top: 10px; width: 26px; height: 26px; border-radius: 8px; background: rgb(0 0 0 / 40%); color: #fff; font: 700 .8125rem/26px var(--font); text-align: center; }

/* Ubin kategori */
.cat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.cat-tile { display: flex; flex-direction: column; gap: .1rem; min-height: 112px; padding: 1.1rem; border-radius: var(--radius); background: color-mix(in srgb, var(--c) 14%, var(--c-surface)); color: var(--c-text); text-decoration: none; transition: transform .2s; }
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile b { font: 700 1.0625rem/1.3 var(--font-display); }
.cat-tile span { color: var(--c-muted); font-size: .8125rem; }
.cat-tile .icon { align-self: flex-start; width: 28px; height: 28px; margin-top: auto; padding: 6px; border-radius: 50%; background: var(--c); color: #fff; }

/* Header arsip / pencarian: blok warna penuh */
.archive-header { position: relative; overflow: hidden; padding: 1.5rem 1.25rem; border: 0; border-radius: 24px; background: linear-gradient(135deg, var(--c, var(--c-primary)), color-mix(in srgb, var(--c, var(--c-primary)) 55%, #000)); color: #fff; }
.archive-header::before { content: ""; position: absolute; right: -6%; top: -45%; width: 42%; aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / 16%); }
.archive-header > *, .archive-header .author-hero { position: relative; }
.archive-header__title { color: #fff; font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.05; }
.archive-header__query { color: #fff; text-decoration: underline; }
.archive-header__label, .archive-header__desc, .archive-header__count { color: rgb(255 255 255 / 90%); }
.archive-header__label { letter-spacing: 0; text-transform: none; font-size: .8125rem; }
.archive-header .chip { border: 0; background: rgb(255 255 255 / 18%); color: #fff; }
.archive-header a.chip:hover { background: #fff; color: #14161d; }
.archive-header .search-form__input { background: #fff; color: #14161d; }
.author-hero__avatar img { border-color: rgb(255 255 255 / 55%); }
.archive-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .25rem; margin: 0 0 .75rem; color: var(--c-muted); font-size: .8125rem; }
.archive-crumb a { color: inherit; font-weight: 600; text-decoration: none; }
.archive-crumb a:hover { text-decoration: underline; }
.archive-crumb .icon { width: 1em; height: 1em; opacity: .6; }
.archive-header .archive-crumb, .archive-header .archive-crumb a { color: rgb(255 255 255 / 88%); }

/* Paginasi */
.pagination .page-numbers { border: 0; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.pagination .page-numbers.current { background: var(--c-ink); color: var(--c-bg); }

/* Sidebar & widget */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar > .widget, .sidebar > .gx-unit { margin: 0; }
.widget { padding: 1.25rem; border: 0; border-radius: 22px; box-shadow: var(--shadow); }
.widget__title { font-size: 1.1875rem; font-weight: 800; }
.sidebar__sticky { position: static; flex: 1; min-height: 0; }
.popular-list { counter-reset: pop; gap: 0; }
.popular-list__item { counter-increment: pop; gap: .8rem; padding: .8rem 0; border-top: 1px solid var(--c-border); }
.popular-list__item:first-child { padding-top: 0; border-top: 0; }
.popular-list__item::before { content: counter(pop); min-width: 1.1rem; font: 800 1.25rem/1.2 var(--font-display); color: #e0502d; }
.popular-list__item:nth-child(5n+2)::before { color: #2f6fed; }
.popular-list__item:nth-child(5n+3)::before { color: #d6457a; }
.popular-list__item:nth-child(5n+4)::before { color: #1f9d62; }
.popular-list__item:nth-child(5n)::before { color: #7c4dd8; }
.popular-list__thumb { display: none; }
.popular-list__title { font-size: .9375rem; }

/* Iklan: jarak vertikal seragam, tidak menempel ke elemen lain */
.gx-unit { margin: 1.75rem 0; }
.gx-unit--header { margin: 1rem 0 0; }
.sidebar > .gx-unit, .sidebar__sticky > .gx-unit, .gx-dock .gx-unit { margin: 0; }
.entry__content > .gx-unit { margin: 2rem 0; }
.post-grid + .gx-unit, .gx-unit + .post-grid { margin-top: 0; }
.layout__main > .gx-unit { margin-block: 1.5rem; }
.gx-dock { display: none; }
.gx-dock__x { position: absolute; top: -14px; right: 12px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--c-ink); color: var(--c-bg); cursor: pointer; }
.gx-dock__x .icon { width: 1em; height: 1em; }

/* Artikel tunggal */
.entry__header { margin-bottom: 1.5rem; }
.entry__title { margin: .75rem 0; font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; line-height: 1.1; }
.entry__author img { border-radius: 50%; }
.entry__thumb { aspect-ratio: 16 / 10; margin-bottom: 2rem; border-radius: 18px; background: var(--c-surface-2); }
.entry__thumb img { width: 100%; height: 100%; object-fit: cover; }
.entry__content h2 { padding-bottom: 0; border-bottom: 0; }
.toc, .author-box, .post-navigation a { border: 0; border-radius: 18px; box-shadow: var(--shadow); }
.share__btn { border: 0; box-shadow: var(--shadow); }
.tag-list a { border: 0; background: var(--c-surface); box-shadow: var(--shadow); }

/* Footer */
.site-footer { margin-top: 3.5rem; }
.site-footer__name { color: inherit; }
.site-footer__name .brand-tiles i { width: 28px; height: 28px; font-size: 14px; }
.site-footer__heading, .footer-widgets .widget__title { font-size: .875rem; letter-spacing: 0; text-transform: none; }
.site-footer__top { border: 0; box-shadow: var(--shadow); background: var(--c-bg); }

/* Responsif mockup */
@media (min-width: 640px) {
	.cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.card--lead { min-height: 460px; }
	.card--lead .card__body { padding: 110px 28px 28px; }
	.archive-header { padding: 2rem; }
	.entry__thumb { aspect-ratio: 21 / 9; border-radius: 24px; }
}
@media (min-width: 960px) {
	.hero { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
	.card--lead { min-height: 500px; }
	.cat-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.sidebar__sticky > .gx-unit { position: sticky; top: calc(var(--header-h) + 1rem); }
}
@media (min-width: 1100px) {
	.layout--sidebar.layout--single { grid-template-columns: minmax(0, 780px) minmax(0, 1fr); }
}
@media (max-width: 700px) {
	:root { --header-h: 150px; }
	.site-header__top { padding-block: .6rem .4rem; }
	.header-tools { order: 1; margin-left: auto; }
	.header-search { order: 2; flex: 1 1 100%; max-width: none; margin-left: 0; }
	.brand-tiles i { width: 26px; height: 26px; font-size: 13px; }
	.card--row .card__media { flex-basis: 36%; width: 36%; }
	.section-head__title { font-size: 1.375rem; }
	body:has(.gx-dock) { padding-bottom: 84px; }
	.gx-dock { position: fixed; right: 0; bottom: 0; left: 0; z-index: 55; display: block; padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--c-bg); border-top: 1px solid var(--c-border); }
	.gx-dock .gx-unit { margin: 0; max-height: 64px; }
	.gx-dock .gx-body { max-height: 64px; }
	/* Halaman produk punya bilah beli sendiri di dasar layar: jangan ditumpuk dengan dock iklan. */
	body.single-shopee_product .gx-dock { display: none; }
	body.single-shopee_product:has(.gx-dock) { padding-bottom: 88px; }
}
