/*
Theme Name: Hasil Sydney Today
Theme URI: https://hasilsydneytoday.com
Author: Hasil Sydney Today
Author URI: https://hasilsydneytoday.com
Description: Tema rangkuman angka Sydney hari ini — tabel result otomatis (robot + API), data keluaran, paito warna, statistik, live draw, SEO (canonical, robots, schema JSON-LD) dan setup halaman otomatis.
Version: 1.0.1
Requires at least: 6.2
Tested up to: 7.1
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: hasilsydney
Tags: two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ---------- Token warna ---------- */
:root {
	--bg: #f2e9dd;
	--panel: #ffffff;
	--ink: #2b1d12;
	--muted: #7a6656;
	--line: #e7d8c5;
	--row: #fbf6f0;
	--espresso: #24150b;
	--espresso-2: #331e10;
	--brown: #4a2a16;
	--bronze: #a35a26;
	--bronze-2: #c47a3f;
	--copper: #e3a56c;
	--copper-l: #f3d2ad;
	--cream: #fbf3e8;
	--ok: #2f7d4f;
	--warn: #b7791f;
	--radius: 8px;
	--shadow: 0 1px 2px rgba(43, 29, 18, .06), 0 4px 14px rgba(43, 29, 18, .05);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-head: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 15px/1.65 var(--font);
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
a { color: var(--bronze); text-decoration: none; }
a:hover, a:focus { color: var(--brown); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--espresso); margin: 0 0 .6em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.14em; flex: none; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--panel); color: var(--ink); border-radius: 4px;
}

/* ---------- Topbar ---------- */
.topbar { background: var(--espresso); color: var(--copper-l); font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.tb-date { display: inline-flex; align-items: center; gap: 6px; }
.tb-wib { opacity: .7; }
.topbar .social a { color: var(--copper-l); }
.topbar .social a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
	background:
		radial-gradient(ellipse 50% 140% at 12% 0%, rgba(227, 165, 108, .22), transparent 60%),
		linear-gradient(180deg, var(--espresso-2), var(--espresso));
}
.header-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	padding-top: 14px; padding-bottom: 14px;
}
.brand .custom-logo-link { display: block; line-height: 0; }
.brand img { width: 168px; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.header-side { flex: 1; display: flex; justify-content: flex-end; min-width: 0; }
.header-tagline { max-width: 470px; text-align: right; color: var(--copper-l); }
.header-tagline strong { display: block; font: 700 22px/1.2 var(--font-head); color: var(--cream); letter-spacing: .3px; }
.header-tagline span { font-size: 13.5px; opacity: .85; }
.header-banner img { display: block; max-height: 90px; width: auto; }

/* ---------- Navigasi ---------- */
.main-nav {
	background: linear-gradient(180deg, var(--bronze-2), var(--bronze));
	border-top: 1px solid rgba(255, 255, 255, .15);
	border-bottom: 3px solid var(--brown);
	position: relative; z-index: 50;
}
.nav-inner { display: flex; align-items: center; gap: 8px; min-height: 46px; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; flex: 1; }
.main-nav .menu > li { position: relative; }
.main-nav .menu a {
	display: block; padding: 12px 10px; color: #fff; font: 600 14px/1.2 var(--font-head);
	text-transform: uppercase; letter-spacing: .3px; text-decoration: none; white-space: nowrap;
}
.main-nav .menu > li > a:hover,
.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current-menu-ancestor > a { background: rgba(36, 21, 11, .28); }
.main-nav .menu-item-has-children > a::after { content: "▾"; margin-left: 5px; font-size: 11px; opacity: .85; }
.main-nav .sub-menu {
	list-style: none; margin: 0; padding: 6px 0; position: absolute; left: 0; top: 100%; min-width: 220px;
	background: var(--espresso); border-radius: 0 0 6px 6px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; z-index: 60;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { text-transform: none; font-weight: 600; color: var(--copper-l); padding: 9px 16px; }
.main-nav .sub-menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-toggle {
	display: none; align-items: center; gap: 8px; background: rgba(36, 21, 11, .3); color: #fff; border: 0;
	padding: 8px 12px; border-radius: 6px; cursor: pointer; font-weight: 700;
}
.nav-toggle .ico { width: 20px; height: 20px; }
.nav-search { display: flex; align-items: center; background: rgba(255, 255, 255, .95); border-radius: 999px; overflow: hidden; height: 32px; }
.nav-search input { border: 0; background: transparent; padding: 0 12px; width: 120px; height: 32px; outline: 0; font-size: 14px; }
.nav-search button { border: 0; background: transparent; padding: 0 10px; height: 32px; color: var(--bronze); cursor: pointer; }

/* ---------- Ticker ---------- */
.ticker { background: var(--cream); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ticker-inner { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.ticker-label {
	flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--brown); color: var(--copper-l);
	font: 700 12px/1 var(--font-head); text-transform: uppercase; padding: 6px 10px; border-radius: 4px;
}
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; gap: 14px; white-space: nowrap; padding-left: 100%; animation: hst-ticker 32s linear infinite; }
.ticker-move i { font-style: normal; color: var(--copper); }
.ticker-move em { font-style: normal; font-weight: 700; color: var(--bronze); letter-spacing: 2px; }
.ticker:hover .ticker-move { animation-play-state: paused; }
@keyframes hst-ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.ticker-move { animation: none; padding-left: 0; }
}

/* ---------- Tata letak ---------- */
.site-body {
	display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start;
	padding-top: 20px; padding-bottom: 28px;
}
.panel {
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px;
}
.page-title { font-size: 28px; margin-bottom: 10px; }
.hero .page-title { font-size: 27px; }
.intro { color: #4a3a2d; max-width: 760px; margin: 0 auto 16px; }
.intro p { margin-bottom: .8em; }
.section-title {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 20px;
	padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--line);
}
.section-title .ico { color: var(--bronze); }
.section-title small { font: 400 13px var(--font); color: var(--muted); margin-left: auto; }
.sub-title { font-size: 17px; margin-top: 20px; }
.entry-meta { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.more-link { margin: 14px 0 0; text-align: center; }
.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 8px; background: var(--brown); color: #fff !important;
	padding: 9px 18px; border-radius: 6px; font-weight: 600; text-decoration: none !important; border: 0; cursor: pointer;
}
.btn:hover { background: var(--bronze); }
.notice-box { background: var(--cream); border: 1px dashed var(--copper); padding: 12px 14px; border-radius: 6px; color: var(--brown); }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; color: var(--copper); }

/* ---------- Pencarian pasaran ---------- */
.market-search {
	display: flex; align-items: center; border: 1px solid #cdb79f; border-radius: 4px; background: #fff;
	margin: 6px 0 12px; height: 40px; overflow: hidden;
}
.market-search .ms-icon { padding: 0 12px; color: var(--bronze); display: flex; height: 100%; align-items: center; border-right: 1px solid var(--line); }
.market-search input { flex: 1; border: 0; height: 100%; padding: 0 12px; outline: 0; text-align: center; min-width: 0; }
.market-search .ms-clear { border: 0; border-left: 1px solid var(--line); background: #fff; height: 100%; padding: 0 12px; color: var(--bronze); cursor: pointer; }

/* ---------- Tabel result ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 4px; }
.result-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.result-table caption { caption-side: top; text-align: left; font-weight: 600; color: var(--muted); padding: 0 0 8px; }
.result-table th {
	background: linear-gradient(180deg, var(--bronze-2), var(--bronze)); color: #fff; font: 700 14.5px/1.2 var(--font-head);
	padding: 12px 10px; text-align: center; border: 1px solid #b86d35;
}
.result-table td { padding: 10px; border: 1px solid var(--line); text-align: center; vertical-align: middle; }
.result-table tbody tr:nth-child(odd) td { background: var(--row); }
.result-table tbody tr:nth-child(even) td { background: #f4ece2; }
.result-table .col-market { width: 42%; text-align: left; }
.result-table .col-date strong { display: block; font-size: 15px; white-space: nowrap; }
.result-table .col-date small { color: var(--muted); font-size: 12px; }
.result-table .col-date .time { color: var(--bronze-2); font-weight: 600; }
.result-table .empty { color: var(--muted); padding: 22px 12px; }
.result-table .banner-row td { background: var(--espresso) !important; padding: 6px; }
.banner-row img, .banner-widget img { display: block; margin: 0 auto; }
.history-table td:first-child { font-weight: 600; }

/* dropdown pasaran */
.dd { position: relative; }
.dd-btn {
	display: flex; align-items: center; gap: 8px; width: 100%; border: 0; border-radius: 4px; cursor: pointer;
	background: linear-gradient(180deg, var(--brown), #3a200f); color: #fff; padding: 9px 12px; text-align: left;
	font: 600 15px/1.2 var(--font); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.dd-btn span { flex: 1; }
.dd-btn:hover, .dd-btn[aria-expanded="true"] { background: linear-gradient(180deg, var(--bronze), var(--brown)); }
.dd-caret { transition: transform .15s; }
.dd-btn[aria-expanded="true"] .dd-caret { transform: rotate(180deg); }
.dd-menu {
	display: none; list-style: none; margin: 4px 0 0; padding: 4px 0; position: absolute; left: 0; right: 0; z-index: 20;
	background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 20px rgba(43, 29, 18, .15);
}
.dd.is-open .dd-menu { display: block; }
.dd-menu a { display: block; padding: 8px 12px; color: var(--ink); font-size: 14px; }
.dd-menu a:hover { background: var(--cream); color: var(--bronze); text-decoration: none; }

/* ---------- Bola angka ---------- */
.balls { display: inline-flex; gap: 4px; align-items: center; justify-content: center; }
.ball {
	--s: 30px;
	width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center;
	font: 700 calc(var(--s) * .52)/1 var(--font-head); color: #fff;
	background: radial-gradient(circle at 35% 30%, #f6c08c 0, #d38548 28%, #a35a26 62%, #6e3612 100%);
	box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .25), 0 1px 2px rgba(0, 0, 0, .25);
	text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
}
.ball-alt { background: radial-gradient(circle at 35% 30%, #8a6249 0, #4a2a16 45%, #1d1007 100%); }
.ball-wait { background: radial-gradient(circle at 35% 30%, #fff, #e8dccd 70%, #cdb79f 100%); color: var(--muted); text-shadow: none; }
.balls.lg .ball { --s: 54px; }
.balls.sm .ball, .ball-sm { --s: 26px; }
.balls.xs .ball { --s: 22px; }
.balls.xs { gap: 3px; }

/* ---------- Kartu result terbaru ---------- */
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.latest-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; margin-bottom: 16px; }
.live-grid .latest-card { margin-bottom: 0; }
.lc-head {
	display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px;
	background: linear-gradient(180deg, var(--espresso-2), var(--espresso)); color: var(--cream);
}
.lc-market { display: inline-flex; align-items: center; gap: 6px; font: 700 16px var(--font-head); }
.lc-market .ico { color: var(--copper); }
.badge { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .3px; }
.badge-done { background: #dff1e6; color: var(--ok); }
.badge-wait { background: #fdf0d9; color: var(--warn); }
.badge-process { background: #fde4d2; color: var(--bronze); animation: hst-pulse 1.4s ease-in-out infinite; }
@keyframes hst-pulse { 50% { opacity: .55; } }
.lc-body { padding: 16px 14px 10px; text-align: center; background: radial-gradient(ellipse at 50% 0%, var(--cream), #fff 70%); }
.lc-date { color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.lc-prizes { display: flex; justify-content: center; gap: 16px; font-size: 13.5px; margin: 10px 0 0; color: var(--muted); }
.lc-prizes strong { color: var(--ink); letter-spacing: 2px; }
.lc-foot {
	display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 9px 14px; font-size: 13px;
	border-top: 1px dashed var(--line); color: var(--muted);
}
.countdown { font: 700 14px var(--font-head); color: var(--bronze); letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.live-hint { font-size: 13px; color: var(--muted); margin: 12px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.live-hint .ico { margin-top: 3px; }

/* ---------- Tahun (data) ---------- */
.year-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.year-tabs a { padding: 6px 14px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); color: var(--brown); font-weight: 600; font-size: 14px; }
.year-tabs a.is-active, .year-tabs a:hover { background: var(--brown); color: #fff; border-color: var(--brown); text-decoration: none; }

/* ---------- Paito ---------- */
.paito-tools { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; padding: 10px 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 6px; }
.pt-group { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.pt-label { font-size: 13px; font-weight: 700; color: var(--brown); margin-right: 4px; }
.pt-digit, .pt-pos, .pt-reset {
	min-width: 32px; height: 32px; padding: 0 9px; border: 1px solid #cdb79f; background: #fff; border-radius: 4px;
	cursor: pointer; font-weight: 700; font-size: 14px;
}
.pt-pos.is-active { background: var(--brown); border-color: var(--brown); color: #fff; }
.pt-reset { margin-left: auto; color: var(--bronze); }
.paito-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.paito-table th { background: var(--espresso); color: var(--copper-l); font: 700 13px var(--font-head); padding: 8px 4px; border: 1px solid #3c2616; }
.paito-table td { border: 1px solid var(--line); text-align: center; padding: 4px 2px 2px; background: #fff; }
.paito-table tr:nth-child(even) td { background: var(--row); }
.paito-table .pn { display: inline-flex; font: 700 16px/1 var(--font-head); letter-spacing: 1px; }
.paito-table .pn span { display: inline-block; min-width: 14px; padding: 3px 1px; border-radius: 3px; }
.paito-table .pn-empty { color: #cdb79f; }
.paito-table small { display: block; font-size: 10px; color: #a8927d; line-height: 1.2; }
.paito-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.pn span.m0 { background: #e53935; color: #fff; } .pt-digit.m0 { background: #e53935; color: #fff; border-color: #e53935; }
.pn span.m1 { background: #1e88e5; color: #fff; } .pt-digit.m1 { background: #1e88e5; color: #fff; border-color: #1e88e5; }
.pn span.m2 { background: #43a047; color: #fff; } .pt-digit.m2 { background: #43a047; color: #fff; border-color: #43a047; }
.pn span.m3 { background: #fdd835; color: #222; } .pt-digit.m3 { background: #fdd835; color: #222; border-color: #fdd835; }
.pn span.m4 { background: #8e24aa; color: #fff; } .pt-digit.m4 { background: #8e24aa; color: #fff; border-color: #8e24aa; }
.pn span.m5 { background: #fb8c00; color: #fff; } .pt-digit.m5 { background: #fb8c00; color: #fff; border-color: #fb8c00; }
.pn span.m6 { background: #00897b; color: #fff; } .pt-digit.m6 { background: #00897b; color: #fff; border-color: #00897b; }
.pn span.m7 { background: #d81b60; color: #fff; } .pt-digit.m7 { background: #d81b60; color: #fff; border-color: #d81b60; }
.pn span.m8 { background: #6d4c41; color: #fff; } .pt-digit.m8 { background: #6d4c41; color: #fff; border-color: #6d4c41; }
.pn span.m9 { background: #3949ab; color: #fff; } .pt-digit.m9 { background: #3949ab; color: #fff; border-color: #3949ab; }

/* ---------- Statistik ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 8px; }
.stat-card { border: 1px solid var(--line); border-radius: 8px; padding: 14px; text-align: center; background: linear-gradient(180deg, #fff, var(--cream)); }
.stat-card h3 { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.stat-balls { margin: 0 0 6px; }
.stat-digits { font: 700 26px/1.2 var(--font-head); color: var(--brown); letter-spacing: 2px; margin: 0 0 6px; }
.stat-note { font-size: 12.5px; color: var(--muted); margin: 0; }
.pos-table th[scope="row"] { background: var(--espresso); border-color: #3c2616; width: 22%; }
.pos-table small { color: var(--muted); margin-left: 4px; }
.heat-table { width: 100%; border-collapse: collapse; min-width: 480px; text-align: center; font-weight: 600; }
.heat-table th { background: var(--espresso); color: var(--copper-l); padding: 7px 4px; font: 700 13px var(--font-head); border: 1px solid #3c2616; }
.heat-table td { border: 1px solid #fff; padding: 8px 4px; }
.heat-0 { background: #fbf6f0; } .heat-1 { background: #f6e3cd; } .heat-2 { background: #efcca6; }
.heat-3 { background: #e3a56c; } .heat-4 { background: #c47a3f; color: #fff; } .heat-5 { background: #8b4519; color: #fff; }
.disclaimer-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); background: var(--cream); padding: 10px 12px; border-radius: 6px; margin-top: 14px; }
.disclaimer-note .ico { margin-top: 3px; color: var(--bronze); }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; background: #fff; }
.faq summary { cursor: pointer; padding: 11px 14px; font-weight: 700; color: var(--brown); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--bronze); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 14px 12px; margin: 0; color: #4a3a2d; }

/* ---------- Konten artikel ---------- */
.entry-header { margin-bottom: 14px; }
.entry-content { overflow-wrap: break-word; }
.entry-content > * + * { margin-top: 0; }
.entry-content h2 { font-size: 21px; margin-top: 1.4em; }
.entry-content h3 { font-size: 18px; margin-top: 1.2em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1em; }
.entry-content li { margin-bottom: .35em; }
.entry-content table:not(.result-table):not(.paito-table):not(.heat-table) { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.entry-content table:not(.result-table):not(.paito-table):not(.heat-table) td,
.entry-content table:not(.result-table):not(.paito-table):not(.heat-table) th { border: 1px solid var(--line); padding: 8px; }
.entry-content blockquote { margin: 0 0 1em; padding: 10px 16px; border-left: 4px solid var(--copper); background: var(--cream); }
.entry-thumb { margin: 0 0 16px; }
.entry-thumb img { border-radius: 6px; }
.entry-tags a { display: inline-block; background: var(--cream); padding: 3px 10px; border-radius: 999px; margin: 0 4px 4px 0; font-size: 13px; }
.post-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption, .wp-block-image figcaption, .gallery-caption { font-size: 13px; color: var(--muted); }
.sticky, .bypostauthor { position: relative; }

/* ---------- Kartu artikel ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.card-thumb { display: block; aspect-ratio: 16 / 9; background: var(--espresso); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-ph { display: grid; place-items: center; height: 100%; color: var(--copper); font-size: 34px; }
.card-body { padding: 12px 14px; }
.card-title { font-size: 17px; margin-bottom: 4px; }
.card-title a { color: var(--espresso); }
.card-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.card-excerpt { font-size: 14px; margin: 0; color: #4a3a2d; }
.pagination, .nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.page-numbers { padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.page-numbers.current { background: var(--brown); color: #fff; border-color: var(--brown); }

/* ---------- Form pencarian ---------- */
.search-form { display: flex; max-width: 460px; margin: 12px auto; border: 1px solid #cdb79f; border-radius: 6px; overflow: hidden; background: #fff; }
.search-form input { flex: 1; border: 0; padding: 10px 12px; outline: 0; min-width: 0; }
.search-form button { border: 0; background: var(--brown); color: #fff; padding: 0 16px; cursor: pointer; }

/* ---------- Sidebar ---------- */
.site-sidebar { display: flex; flex-direction: column; gap: 16px; }
.contact-btn {
	display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 12px; border-radius: 6px;
	background: linear-gradient(180deg, var(--bronze-2), var(--bronze)); color: #fff; font-weight: 600; font-size: 14.5px;
	box-shadow: var(--shadow); word-break: break-all;
}
.contact-btn:hover { color: #fff; text-decoration: none; filter: brightness(1.06); }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.box-title {
	display: flex; align-items: center; gap: 8px; margin: 0; padding: 11px 14px; font-size: 16px;
	background: linear-gradient(180deg, var(--espresso-2), var(--espresso)); color: var(--cream);
}
.box-title .ico { color: var(--copper); }
.box-list { list-style: none; margin: 0; padding: 0; }
.box-list li + li { border-top: 1px solid var(--line); }
.box-list a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; color: #4a3a2d; font-size: 14.5px; flex-wrap: wrap; }
.box-list a .ico { color: #b39a83; }
.box-list a:hover { background: var(--cream); color: var(--bronze); text-decoration: none; }
.box-list a:hover .ico { color: var(--bronze); }
.li-meta { width: 100%; padding-left: 22px; font-size: 12px; color: var(--muted); }
.mini-results { list-style: none; margin: 0; padding: 6px 14px; }
.mini-results li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 0; font-size: 13px; color: var(--muted); }
.mini-results li + li { border-top: 1px dashed var(--line); }
.box-pad { padding: 12px 14px; }
.widget:not(.box-list) > *:not(.box-title) { padding-left: 14px; padding-right: 14px; }
.widget ul { margin: 0; padding: 8px 14px 8px 30px; }
.site-sidebar .widget { padding-bottom: 10px; }
.site-sidebar .widget .wp-block-heading, .site-sidebar .widget .wp-block-search__label {
	display: block; margin: 0 0 8px; padding: 11px 14px; font: 700 16px var(--font-head);
	background: linear-gradient(180deg, var(--espresso-2), var(--espresso)); color: var(--cream);
}
.site-sidebar .widget .wp-block-search__inside-wrapper { display: flex; gap: 6px; padding: 0 14px; }
.site-sidebar .widget .wp-block-search__input { flex: 1; border: 1px solid #cdb79f; border-radius: 6px; padding: 7px 10px; min-width: 0; }
.site-sidebar .widget .wp-block-search__button { border: 0; background: var(--brown); color: #fff; border-radius: 6px; padding: 0 12px; cursor: pointer; }

/* ---------- Sosial ---------- */
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.social a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.social-icons a { width: 28px; height: 28px; border-radius: 50%; }
.social-icons .ico { width: 15px; height: 15px; }
.social-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.social-buttons a { width: 100%; padding: 7px 10px; border-radius: 6px; color: #fff; font-size: 13px; font-weight: 600; justify-content: flex-start; }
.social-buttons a:hover { color: #fff; text-decoration: none; filter: brightness(1.1); }
.social-buttons .ico { width: 15px; height: 15px; }
.social-buttons .s-discord { background: #5865f2; }
.social-buttons .s-telegram { background: #229ed9; }
.social-buttons .s-facebook { background: #1877f2; }
.social-buttons .s-x { background: #111; }
.social-buttons .s-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.social-buttons .s-youtube { background: #e62117; }
.social-buttons .s-tiktok { background: #161616; }
.entry-content .social-buttons { max-width: 460px; margin-bottom: 1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: #d9c3aa; font-size: 14px; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-top: 30px; padding-bottom: 24px; }
.f-logo img { width: 150px; margin-bottom: 10px; }
.f-title { font-size: 16px; color: var(--copper-l); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .4px; }
.f-col .f-title + * + .f-title, .f-col ul + .f-title { margin-top: 18px; }
.f-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.f-links a { color: #d9c3aa; }
.f-links a:hover { color: #fff; }
.site-footer .social a { background: rgba(255, 255, 255, .08); color: var(--copper-l); }
.site-footer .social a:hover { background: var(--bronze); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.fb-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; flex-wrap: wrap; }
.age-badge { border: 2px solid var(--copper); color: var(--copper-l); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; font-weight: 700; font-size: 12px; }

/* ---------- Banner sticky ---------- */
.sticky-banner {
	position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 90; width: min(728px, 100%);
	background: var(--espresso); box-shadow: 0 -4px 20px rgba(0, 0, 0, .3);
}
.sticky-banner.is-hidden { display: none; }
.sticky-close {
	position: absolute; right: 8px; top: -30px; background: #f4c430; color: #222; border: 0; border-radius: 4px 4px 0 0;
	padding: 5px 12px; font-weight: 700; font-size: 13px; cursor: pointer;
}
.sticky-inner img { display: block; width: 100%; height: auto; }
body.has-sticky-banner { padding-bottom: 96px; }

/* ---------- Komentar ---------- */
.comment-list { list-style: none; padding: 0; margin: 0 0 16px; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { border: 1px solid var(--line); border-radius: 6px; padding: 12px; margin-bottom: 10px; background: var(--row); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.comment-metadata { font-size: 12px; }
.comment-awaiting-moderation { display: block; color: var(--warn); font-size: 13px; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 9px 12px; border: 1px solid #cdb79f; border-radius: 6px; background: #fff;
}
.comment-form .submit { background: var(--brown); color: #fff; border: 0; padding: 10px 20px; border-radius: 6px; font-weight: 700; cursor: pointer; }
.comment-form .submit:hover { background: var(--bronze); }
.comment-notes { font-size: 13px; color: var(--muted); }

/* ---------- Responsif ---------- */
@media (max-width: 980px) {
	.site-body { grid-template-columns: minmax(0, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.f-about { grid-column: 1 / -1; }
}
@media (max-width: 782px) {
	.nav-toggle { display: inline-flex; }
	.nav-inner { flex-wrap: wrap; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
	.main-nav .menu { display: none; order: 3; flex-basis: 100%; flex-direction: column; padding: 4px 0 8px; }
	.main-nav.is-open .menu { display: flex; }
	.main-nav .menu a { padding: 10px 6px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(36, 21, 11, .35); border-radius: 0; padding: 0 0 0 14px; }
	.nav-search input { width: 120px; }
}
@media (max-width: 640px) {
	body { font-size: 14.5px; }
	.topbar .social { display: none; }
	.header-inner { flex-direction: column; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
	.brand img { width: 140px; }
	.header-side { justify-content: center; width: 100%; }
	.header-tagline { text-align: center; }
	.header-tagline strong { font-size: 18px; }
	.header-tagline span { display: none; }
	.panel { padding: 14px 12px; }
	.page-title, .hero .page-title { font-size: 22px; }
	.section-title { font-size: 18px; display: block; }
	.section-title .ico { margin-right: 4px; }
	.section-title small { display: block; margin: 4px 0 0; }
	.result-table .col-date strong { font-size: 13.5px; }
	.result-table { font-size: 13.5px; }
	.result-table th, .result-table td { padding: 8px 5px; }
	.result-table .col-market { width: 38%; }
	.dd-btn { padding: 8px; font-size: 13.5px; gap: 5px; }
	.dd-btn > .ico:first-child { display: none; }
	.ball { --s: 25px; }
	.balls { gap: 3px; }
	.balls.lg .ball { --s: 46px; }
	.footer-grid { grid-template-columns: 1fr; gap: 18px; }
	.social-buttons { grid-template-columns: 1fr 1fr; }
	.pt-reset { margin-left: 0; }
	body.has-sticky-banner { padding-bottom: 70px; }
}
