/*
Theme Name: Cek Weton
Theme URI: https://cekweton.com
Author: Cek Weton
Author URI: https://cekweton.com
Description: Theme WordPress untuk website primbon Jawa. Sudah berisi alat cek weton, weton jodoh, kalender Jawa, dan hari baik. Desain modern, ringan, bersih, dan ramah mobile dengan warna utama biru serta font Poppins dan Inter.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
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: cekweton
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout, two-columns, accessibility-ready
*/

/* ========== Token ========== */
:root {
	--cw-primary: #2563eb;
	--cw-primary-dark: #1d4ed8;
	--cw-primary-light: #dbeafe;
	--cw-primary-soft: #f3f7ff;
	--cw-ink: #0f172a;
	--cw-text: #334155;
	--cw-muted: #64748b;
	--cw-line: #e3e9f5;
	--cw-bg: #ffffff;
	--cw-great: #15803d;
	--cw-great-bg: #e8f7ee;
	--cw-good: #1d4ed8;
	--cw-good-bg: #e6efff;
	--cw-fair: #b45309;
	--cw-fair-bg: #fef3e2;
	--cw-bad: #b91c1c;
	--cw-bad-bg: #fdecec;
	--cw-radius: 16px;
	--cw-radius-sm: 10px;
	--cw-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px rgba(37, 99, 235, .08);
	--cw-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--cw-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--cw-header-h: 68px;
}

@supports (color: color-mix(in srgb, red, blue)) {
	:root {
		--cw-primary-dark: color-mix(in srgb, var(--cw-primary) 82%, #000);
		--cw-primary-light: color-mix(in srgb, var(--cw-primary) 12%, #fff);
		--cw-primary-soft: color-mix(in srgb, var(--cw-primary) 5%, #fff);
	}
}

/* ========== Dasar ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--cw-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--cw-text);
	background: var(--cw-bg);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--cw-primary); text-decoration: none; }
a:hover { color: var(--cw-primary-dark); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--cw-primary) 45%, #fff); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4, h5 { font-family: var(--cw-head); color: var(--cw-ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }

.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; word-wrap: normal;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; background: #fff; color: var(--cw-primary);
	padding: 12px 18px; z-index: 1000; left: 8px; top: 8px; border-radius: 8px; box-shadow: var(--cw-shadow);
}

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.section { padding: 64px 0; }
.section-soft { background: var(--cw-primary-soft); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--cw-muted); margin: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: none; }
.section-head-row h2 { margin: 0; }

/* ========== Header ========== */
.site-header {
	position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--cw-line); box-shadow: 0 4px 20px rgba(15, 23, 42, .04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--cw-header-h); gap: 16px; }
.site-title {
	display: inline-flex; align-items: center; gap: 10px; font-family: var(--cw-head); font-weight: 700;
	font-size: 1.2rem; color: var(--cw-ink); letter-spacing: -.01em;
}
.site-title:hover { color: var(--cw-ink); }
.brand-mark {
	width: 28px; height: 28px; border-radius: 9px; flex: none;
	background:
		radial-gradient(circle at 50% 50%, #fff 0 3px, transparent 3.5px),
		radial-gradient(circle at 50% 0, transparent 0 7px, rgba(255,255,255,.55) 7.5px 9px, transparent 9.5px),
		radial-gradient(circle at 50% 100%, transparent 0 7px, rgba(255,255,255,.55) 7.5px 9px, transparent 9.5px),
		var(--cw-primary);
}
.custom-logo { max-height: 44px; width: auto; }

.main-navigation .menu, .footer-links .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-navigation a {
	display: block; padding: 8px 14px; border-radius: 999px; color: var(--cw-text); font-weight: 500; font-size: .95rem;
}
.main-navigation a:hover, .main-navigation .current-menu-item > a, .main-navigation .current_page_item > a {
	background: var(--cw-primary-light); color: var(--cw-primary-dark);
}
.main-navigation .sub-menu { display: none; }

.menu-toggle {
	display: none; width: 44px; height: 44px; border: 1px solid var(--cw-line); background: #fff; border-radius: 12px; cursor: pointer; padding: 0; position: relative;
}
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
	content: ''; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--cw-ink); border-radius: 2px; transition: transform .2s, opacity .2s;
}
.menu-toggle .bars { top: 21px; }
.menu-toggle .bars::before { left: 0; right: 0; top: -6px; }
.menu-toggle .bars::after { left: 0; right: 0; top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ========== Tombol & form ========== */
.cw-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
	font-family: var(--cw-head); font-weight: 600; font-size: .95rem; color: #fff; background: var(--cw-primary);
	border: 1.5px solid var(--cw-primary); border-radius: 12px; cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s;
	text-align: center; line-height: 1.2;
}
.cw-btn:hover { background: var(--cw-primary-dark); border-color: var(--cw-primary-dark); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .25); }
.cw-btn:active { transform: translateY(1px); }
.cw-btn-ghost { background: #fff; color: var(--cw-primary-dark); border-color: var(--cw-primary-light); }
.cw-btn-ghost:hover { background: var(--cw-primary-soft); color: var(--cw-primary-dark); border-color: var(--cw-primary); box-shadow: none; }
.cw-link { font-weight: 600; font-family: var(--cw-head); font-size: .92rem; }

.cw-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cw-field label, .cw-fieldset legend { font-size: .85rem; font-weight: 600; color: var(--cw-ink); }
input[type="date"], input[type="text"], input[type="search"], input[type="email"], input[type="url"], select, textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; font-family: var(--cw-body); font-size: 1rem; color: var(--cw-ink);
	background: #fff; border: 1.5px solid var(--cw-line); border-radius: 12px; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cw-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cw-primary) 16%, transparent); }
textarea { min-height: 120px; }

.cw-card { background: #fff; border: 1px solid var(--cw-line); border-radius: 20px; padding: 24px; box-shadow: var(--cw-shadow); }
.cw-form { display: flex; flex-direction: column; gap: 14px; }
.cw-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cw-form-grid .cw-btn { grid-column: 1 / -1; }
.cw-form-couple { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cw-form-couple .cw-btn { grid-column: 1 / -1; }
.cw-fieldset { border: 1px solid var(--cw-line); border-radius: 14px; padding: 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; background: var(--cw-primary-soft); min-width: 0; }
.cw-fieldset legend { padding: 0 8px; font-family: var(--cw-head); font-size: .95rem; }
.is-compact .cw-form { flex-direction: row; align-items: flex-end; }
.is-compact .cw-field { flex: 1; }
.is-compact.cw-card { padding: 0; border: 0; box-shadow: none; }

/* ========== Hasil ========== */
.cw-result:not(:empty) { margin-top: 24px; padding-top: 24px; border-top: 1px dashed var(--cw-line); display: flex; flex-direction: column; gap: 16px; }
.is-compact .cw-result:not(:empty) { margin-top: 18px; padding-top: 18px; }
.cw-result-head { text-align: left; }
.cw-result-sub { margin: 0 0 4px; font-size: .88rem; color: var(--cw-muted); }
.cw-result-title { font-size: clamp(1.8rem, 5vw, 2.5rem); margin: 0 0 14px; color: var(--cw-primary-dark); letter-spacing: -.01em; }
.cw-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cw-stat { background: var(--cw-primary-soft); border: 1px solid var(--cw-primary-light); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.cw-stat-label { font-size: .78rem; color: var(--cw-muted); line-height: 1.3; }
.cw-stat-value { font-family: var(--cw-head); font-size: 1.5rem; color: var(--cw-ink); line-height: 1.2; }
.cw-stat:last-child { background: var(--cw-primary); border-color: var(--cw-primary); }
.cw-stat:last-child .cw-stat-label { color: rgba(255, 255, 255, .8); }
.cw-stat:last-child .cw-stat-value { color: #fff; }

.cw-panel { background: #fff; border: 1px solid var(--cw-line); border-radius: 14px; padding: 18px 20px; }
.cw-panel h4 { margin-bottom: .4em; }
.cw-panel p:last-child { margin-bottom: 0; }
.cw-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cw-note { font-size: .85rem; color: var(--cw-muted); margin: 0; }
.cw-alert { background: var(--cw-fair-bg); color: var(--cw-fair); border-radius: 12px; padding: 12px 16px; font-weight: 500; }

.cw-dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.cw-dl div { min-width: 0; }
.cw-dl dt { font-size: .8rem; color: var(--cw-muted); }
.cw-dl dd { margin: 0; font-weight: 600; color: var(--cw-ink); overflow-wrap: anywhere; }

.cw-list { list-style: none; margin: 0; padding: 0; }
.cw-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--cw-line); }
.cw-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cw-list span { color: var(--cw-primary-dark); font-weight: 600; text-align: right; }

.cw-badge, .cw-chip {
	display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; font-family: var(--cw-body); white-space: nowrap;
}
.cw-chip { background: var(--cw-primary-light); color: var(--cw-primary-dark); }
.cw-badge.is-great { background: var(--cw-great-bg); color: var(--cw-great); }
.cw-badge.is-good { background: var(--cw-good-bg); color: var(--cw-good); }
.cw-badge.is-fair { background: var(--cw-fair-bg); color: var(--cw-fair); }
.cw-badge.is-bad { background: var(--cw-bad-bg); color: var(--cw-bad); }

/* Jodoh */
.cw-couple { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.cw-person { background: var(--cw-primary-soft); border: 1px solid var(--cw-primary-light); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.cw-person strong { font-family: var(--cw-head); font-size: 1.25rem; color: var(--cw-ink); }
.cw-person span { font-size: .85rem; color: var(--cw-muted); overflow-wrap: anywhere; }
.cw-person .cw-person-label { color: var(--cw-primary-dark); font-weight: 600; }
.cw-person .cw-chip { color: var(--cw-primary-dark); margin-top: 4px; }
.cw-couple-plus { font-family: var(--cw-head); font-size: 1.6rem; color: var(--cw-primary); }
.cw-verdict { display: flex; gap: 20px; align-items: center; padding: 20px; border-radius: 16px; border: 1px solid var(--cw-line); }
.cw-verdict .cw-result-title { margin-bottom: 8px; }
.cw-verdict p:last-child { margin: 0; }
.cw-verdict.is-great { background: var(--cw-great-bg); border-color: #bfe6cd; }
.cw-verdict.is-good { background: var(--cw-good-bg); border-color: #c5d8ff; }
.cw-verdict.is-fair { background: var(--cw-fair-bg); border-color: #f6dcb3; }
.cw-verdict.is-bad { background: var(--cw-bad-bg); border-color: #f4c3c3; }
.cw-verdict.is-great .cw-result-title { color: var(--cw-great); }
.cw-verdict.is-good .cw-result-title { color: var(--cw-good); }
.cw-verdict.is-fair .cw-result-title { color: var(--cw-fair); }
.cw-verdict.is-bad .cw-result-title { color: var(--cw-bad); }
.cw-ring {
	--c: var(--cw-primary);
	flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
	background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .8) 0);
}
.is-great .cw-ring { --c: var(--cw-great); }
.is-good .cw-ring { --c: var(--cw-good); }
.is-fair .cw-ring { --c: #d97706; }
.is-bad .cw-ring { --c: var(--cw-bad); }
.cw-ring span { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--cw-head); font-weight: 700; color: var(--cw-ink); }

/* Kalender */
.cw-cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.cw-cal-nav { display: flex; gap: 8px; order: 1; }
.cw-cal-heading { order: 2; flex: 1; min-width: 160px; }
.cw-cal-title { margin: 0; font-size: 1.35rem; }
.cw-cal-jawa { font-size: .85rem; color: var(--cw-muted); }
.cw-cal-pick { display: flex; gap: 8px; order: 3; align-items: center; }
.cw-cal-pick select { min-height: 42px; width: auto; padding-top: 6px; padding-bottom: 6px; }
.cw-cal-pick .cw-btn { min-height: 42px; padding: 0 16px; }
.cw-icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--cw-line); background: #fff; font-size: 1.5rem; line-height: 1; color: var(--cw-ink); cursor: pointer; }
.cw-icon-btn:hover { border-color: var(--cw-primary); color: var(--cw-primary); }
.cw-cal-week, .cw-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cw-cal-week span { text-align: center; font-size: .8rem; font-weight: 600; color: var(--cw-muted); padding: 6px 0; }
.cw-cal-week .is-sunday, .cw-cell.is-sunday .cw-cell-g { color: #dc2626; }
.cw-cell {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
	aspect-ratio: 1 / 1.05; min-height: 52px; padding: 4px 2px; font-family: var(--cw-body); background: #fff;
	border: 1px solid var(--cw-line); border-radius: 12px; cursor: pointer; color: var(--cw-ink); transition: background .12s, border-color .12s;
}
.cw-cell.is-empty { background: transparent; border: 0; cursor: default; }
button.cw-cell:hover { background: var(--cw-primary-soft); border-color: var(--cw-primary); }
.cw-cell-g { font-family: var(--cw-head); font-weight: 600; font-size: 1.05rem; line-height: 1.1; }
.cw-cell-p { font-size: .68rem; color: var(--cw-primary-dark); font-weight: 500; line-height: 1.2; }
.cw-cell-j { display: none; font-size: .64rem; color: var(--cw-muted); line-height: 1.2; }
.cw-cell.is-today { border-color: var(--cw-primary); background: var(--cw-primary-light); }
.cw-cell.is-selected { background: var(--cw-primary); border-color: var(--cw-primary); }
.cw-cell.is-selected .cw-cell-g, .cw-cell.is-selected .cw-cell-p, .cw-cell.is-selected .cw-cell-j { color: #fff; }
.cw-cell.has-event::after, .cw-cell.is-keramat::before { content: ''; position: absolute; top: 6px; width: 6px; height: 6px; border-radius: 50%; }
.cw-cell.has-event::after { right: 6px; background: #f59e0b; }
.cw-cell.is-keramat::before { left: 6px; background: #7c3aed; }
.cw-cal-detail { margin-top: 16px; background: var(--cw-primary-soft); border-color: var(--cw-primary-light); }
.cw-detail-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; }
.cw-detail-head h3 { margin: 0; color: var(--cw-primary-dark); font-size: 1.4rem; }
.cw-detail-head span { color: var(--cw-muted); font-size: .9rem; }
.cw-detail-ev { margin: 12px 0 0; font-weight: 600; color: #b45309; }
.cw-detail-k { margin: 8px 0 0; font-size: .88rem; color: #6d28d9; }
.cw-cal-events { margin-top: 16px; }
.cw-cal-events h4 { margin-bottom: 6px; }
.cw-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 16px 0 0; font-size: .82rem; color: var(--cw-muted); }
.cw-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot-today { background: var(--cw-primary); }
.dot-event { background: #f59e0b; }
.dot-keramat { background: #7c3aed; }

/* Hari baik */
.cw-top h4 { margin-bottom: 8px; }
.cw-day-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cw-day { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--cw-line); border-left-width: 4px; border-radius: 12px; background: #fff; }
.cw-day.is-great { border-left-color: var(--cw-great); }
.cw-day.is-good { border-left-color: var(--cw-good); }
.cw-day.is-fair { border-left-color: #f59e0b; }
.cw-day.is-bad { border-left-color: var(--cw-bad); }
.cw-day-date { flex: none; width: 48px; text-align: center; display: flex; flex-direction: column; line-height: 1.1; }
.cw-day-date strong { font-family: var(--cw-head); font-size: 1.4rem; color: var(--cw-ink); }
.cw-day-date span { font-size: .75rem; color: var(--cw-muted); }
.cw-day-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cw-day-main strong { color: var(--cw-ink); }
.cw-day-main span { font-size: .85rem; color: var(--cw-muted); }
.cw-day-main em { font-size: .8rem; font-style: normal; color: var(--cw-fair); margin-top: 2px; }
.cw-filter { display: inline-flex; background: var(--cw-primary-soft); border-radius: 999px; padding: 4px; gap: 4px; align-self: flex-start; }
.cw-filter button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-family: var(--cw-body); font-weight: 600; font-size: .85rem; color: var(--cw-muted); cursor: pointer; }
.cw-filter button.is-active { background: #fff; color: var(--cw-primary-dark); box-shadow: 0 1px 4px rgba(15, 23, 42, .1); }

.cw-tool-plain.cw-card { padding: 24px; }
.cw-tool-plain .cw-result:not(:empty) { margin: 0; padding: 0; border: 0; }
.cw-alert-info { background: var(--cw-primary-light); color: var(--cw-primary-dark); }
.cw-detail-w { margin: 12px 0 0; }


/* Tab hasil cek weton */
.cw-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: 4px -4px 0; background: var(--cw-primary-soft); border-radius: 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cw-tabs::-webkit-scrollbar { display: none; }
.cw-tab { flex: none; border: 0; background: transparent; padding: 10px 16px; border-radius: 10px; font-family: var(--cw-body); font-weight: 600; font-size: .9rem; color: var(--cw-muted); cursor: pointer; white-space: nowrap; }
.cw-tab:hover { color: var(--cw-primary-dark); }
.cw-tab.is-active { background: #fff; color: var(--cw-primary-dark); box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }
.cw-tabpanel { display: flex; flex-direction: column; gap: 16px; }
.cw-tabpanel[hidden] { display: none; }
.cw-lead { background: var(--cw-primary-soft); border-color: var(--cw-primary-light); }
.cw-lead h4 { font-size: 1.15rem; color: var(--cw-primary-dark); }

.cw-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cw-bullets li { position: relative; padding-left: 24px; }
.cw-bullets li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--cw-primary); }
.cw-bullets.is-do li::before { background: var(--cw-great); }
.cw-bullets.is-dont li::before { background: var(--cw-bad); }
.cw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cw-chips .cw-chip { padding: 6px 14px; font-size: .85rem; }
.cw-chip.is-soft { background: var(--cw-primary-soft); border: 1px solid var(--cw-primary-light); }
.cw-chip.is-great { background: var(--cw-great-bg); color: var(--cw-great); }
.cw-chip.is-good { background: var(--cw-good-bg); color: var(--cw-good); }
.cw-chip.is-fair { background: var(--cw-fair-bg); color: var(--cw-fair); }
.cw-chip.is-bad { background: var(--cw-bad-bg); color: var(--cw-bad); }
.cw-group + .cw-group { margin-top: 14px; }
.cw-group h5 { margin: 0 0 8px; font-family: var(--cw-body); font-size: .85rem; font-weight: 600; color: var(--cw-muted); }
.cw-panel .cw-chips + .cw-note, .cw-panel p + .cw-chips, .cw-panel .cw-note { margin-top: 12px; }

/* Hari ini */
.cw-today { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; background: #fff; border: 1px solid var(--cw-primary-light); border-radius: 14px; padding: 12px 16px; margin-bottom: 24px; }
.cw-today:empty { display: none; }
.cw-today-label { font-size: .82rem; color: var(--cw-muted); }
.cw-today-weton { font-family: var(--cw-head); font-size: 1.15rem; color: var(--cw-primary-dark); }
.cw-today-date, .cw-today-jawa { font-size: .9rem; color: var(--cw-text); }
.cw-today .cw-link { margin-left: 4px; }

/* ========== Beranda ========== */
.hero {
	position: relative; overflow: hidden; padding: 56px 0 72px;
	background:
		radial-gradient(900px 400px at 85% -10%, var(--cw-primary-light), transparent 70%),
		linear-gradient(180deg, var(--cw-primary-soft), #fff);
}
.hero::before {
	content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72' fill='none' stroke='%232563eb' stroke-opacity='.12' stroke-width='1.2'%3E%3Cellipse cx='36' cy='18' rx='9' ry='18'/%3E%3Cellipse cx='36' cy='54' rx='9' ry='18'/%3E%3Cellipse cx='18' cy='36' rx='18' ry='9'/%3E%3Cellipse cx='54' cy='36' rx='18' ry='9'/%3E%3C/svg%3E");
	-webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 100%); mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-lead { font-size: 1.12rem; color: var(--cw-text); max-width: 540px; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card { background: #fff; border: 1px solid var(--cw-line); border-radius: 22px; padding: 26px; box-shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 60px rgba(37, 99, 235, .14); }
.hero-card h2 { font-size: 1.2rem; margin-bottom: 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature-card { display: block; background: #fff; border: 1px solid var(--cw-line); border-radius: var(--cw-radius); padding: 24px; color: var(--cw-text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.feature-card:hover { border-color: var(--cw-primary); box-shadow: var(--cw-shadow); color: var(--cw-text); transform: translateY(-2px); }
.feature-card h3 { margin-bottom: 6px; }
.feature-card p { margin: 0; font-size: .92rem; color: var(--cw-muted); }
.feature-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--cw-primary-light); color: var(--cw-primary-dark); margin-bottom: 16px; }

.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.neptu-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.neptu-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--cw-line); border-radius: 14px; overflow: hidden; font-size: .92rem; }
.neptu-table caption { caption-side: top; text-align: left; font-family: var(--cw-head); font-weight: 600; color: var(--cw-ink); padding: 0 0 8px; }
.neptu-table th, .neptu-table td { padding: 9px 12px; border-bottom: 1px solid var(--cw-line); text-align: left; }
.neptu-table th { font-weight: 500; color: var(--cw-text); }
.neptu-table td { font-weight: 700; color: var(--cw-primary-dark); font-family: var(--cw-head); }
.neptu-table tr:last-child th, .neptu-table tr:last-child td { border-bottom: 0; }

.faq details { background: #fff; border: 1px solid var(--cw-line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-family: var(--cw-head); font-weight: 600; color: var(--cw-ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--cw-primary); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--cw-muted); }

/* ========== Halaman & artikel ========== */
.page-hero { background: linear-gradient(180deg, var(--cw-primary-soft), #fff); padding: 44px 0 20px; border-bottom: 1px solid var(--cw-line); }
.page-hero h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.page-hero p { color: var(--cw-muted); max-width: 620px; margin: 0; }
.page-hero-tool { border-bottom: 0; background: linear-gradient(180deg, var(--cw-primary-soft), #fff); padding-bottom: 8px; }
.page-hero .search-form { max-width: 480px; margin-top: 16px; }
.tool-wrap { max-width: 860px; padding-top: 24px; }
.entry-tool .entry-content > * + * { margin-top: 20px; }
.entry-tool .entry-content h2 { margin-top: 40px; }

.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
.entry-content { font-size: 1.05rem; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content img { border-radius: 12px; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--cw-primary); color: var(--cw-ink); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--cw-line); text-align: left; }
.entry-content th { background: var(--cw-primary-soft); }
.entry-thumb { margin: 0 0 24px; }
.entry-thumb img { width: 100%; border-radius: var(--cw-radius); }
.entry-meta { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; color: var(--cw-muted); margin-bottom: 8px; }
.entry-meta a { font-weight: 600; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--cw-line); border-radius: var(--cw-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.post-card:hover { box-shadow: var(--cw-shadow); border-color: var(--cw-primary-light); }
.post-card-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { padding: 20px; }
.post-card-title { font-size: 1.1rem; margin: 4px 0 8px; }
.post-card-title a { color: var(--cw-ink); }
.post-card-title a:hover { color: var(--cw-primary); }
.post-card p { margin: 0; font-size: .92rem; color: var(--cw-muted); }
.empty { text-align: center; color: var(--cw-muted); padding: 40px 0; }

.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.page-numbers { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--cw-line); border-radius: 12px; color: var(--cw-text); font-weight: 600; }
.page-numbers.current, a.page-numbers:hover { background: var(--cw-primary); border-color: var(--cw-primary); color: #fff; }
.post-navigation .nav-links { justify-content: space-between; margin-top: 32px; }

.sidebar .widget { background: #fff; border: 1px solid var(--cw-line); border-radius: var(--cw-radius); padding: 20px; margin-bottom: 20px; }
.widget-title { font-size: 1rem; margin-bottom: 12px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; }

.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; }

.not-found { text-align: center; max-width: 560px; }
.nf-code { font-family: var(--cw-head); font-weight: 700; font-size: 5rem; line-height: 1; color: var(--cw-primary); margin-bottom: 8px; }
.not-found .search-form { margin: 24px 0; }

.comments-area { margin-top: 48px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--cw-line); }
.comment-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
.comment-form p { margin-bottom: 14px; }
.comment-form .submit { display: inline-flex; min-height: 48px; padding: 0 22px; background: var(--cw-primary); color: #fff; border: 0; border-radius: 12px; font-family: var(--cw-head); font-weight: 600; cursor: pointer; }

/* ========== Footer ========== */
.site-footer { background: var(--cw-ink); color: #cbd5e1; margin-top: 40px; padding-top: 56px; }
.site-footer .site-title { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.footer-title { font-size: 1rem; color: #fff; margin-bottom: 12px; }
.footer-about p, .footer-note p { font-size: .92rem; margin: 12px 0 0; }
.footer-note p { margin: 0; }
.footer-links .menu { flex-direction: column; gap: 6px; }
.footer-links a { color: #cbd5e1; font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; padding-bottom: 24px; font-size: .85rem; color: #94a3b8; }

/* ========== Navigasi bawah (mobile) ========== */
.bottom-nav { display: none; }

/* ========== Responsif ========== */
@media (max-width: 1024px) {
	.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.layout-sidebar { grid-template-columns: 1fr; }
	.hero-grid, .learn-grid { gap: 32px; }
}

@media (max-width: 860px) {
	.menu-toggle { display: block; }
	.main-navigation {
		position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--cw-line);
		box-shadow: 0 16px 30px rgba(15, 23, 42, .08); padding: 12px 20px 20px; display: none;
	}
	.main-navigation.is-open { display: block; }
	.main-navigation .menu { flex-direction: column; }
	.main-navigation a { padding: 12px 14px; border-radius: 12px; }
	.hero-grid, .learn-grid { grid-template-columns: 1fr; }
	.hero { padding: 36px 0 48px; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.section { padding: 48px 0; }
}

@media (max-width: 640px) {
	body { padding-bottom: 72px; font-size: 15.5px; }
	.container { padding: 0 16px; }
	.cw-card { padding: 18px; border-radius: 18px; }
	.hero-card { padding: 20px; }
	.feature-grid, .post-grid { grid-template-columns: 1fr; }
	.feature-card { display: grid; grid-template-columns: 46px 1fr; gap: 0 14px; padding: 18px; }
	.feature-icon { grid-row: span 2; margin: 0; }
	.cw-form-couple, .cw-form-grid, .cw-grid-2, .cw-dl { grid-template-columns: 1fr; }
	.cw-tab { padding: 9px 13px; font-size: .85rem; }
	.is-compact .cw-form { flex-direction: column; align-items: stretch; }
	.cw-stats { gap: 8px; }
	.cw-stat { padding: 10px; }
	.cw-stat-value { font-size: 1.25rem; }
	.cw-couple { grid-template-columns: 1fr; }
	.cw-couple-plus { text-align: center; line-height: 1; }
	.cw-verdict { flex-direction: column; text-align: center; align-items: center; }
	.cw-cal-bar { gap: 10px; }
	.cw-cal-nav { order: 2; }
	.cw-cal-heading { order: 1; flex-basis: 100%; }
	.cw-cal-pick { order: 3; flex: 1; justify-content: flex-end; }
	.cw-cal-grid, .cw-cal-week { gap: 3px; }
	.cw-cell { min-height: 46px; border-radius: 9px; }
	.cw-cell-g { font-size: .95rem; }
	.cw-cell-p { font-size: .6rem; }
	.cw-day { gap: 10px; padding: 10px; }
	.cw-day .cw-badge { font-size: .72rem; padding: 3px 9px; }
	.section-head-row { align-items: flex-start; flex-direction: column; gap: 6px; }

	.bottom-nav {
		display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
		border-top: 1px solid var(--cw-line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
	}
	.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; color: var(--cw-muted); font-size: .7rem; font-weight: 600; border-radius: 12px; }
	.bottom-nav a[aria-current="page"] { color: var(--cw-primary-dark); background: var(--cw-primary-light); }
	.bottom-nav .cw-icon { width: 22px; height: 22px; }
}

@media (min-width: 520px) {
	.cw-cell-j { display: block; }
}
@media (max-width: 640px) and (min-width: 520px) {
	.cw-cell-j { font-size: .58rem; }
}

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

@media print {
	.site-header, .site-footer, .bottom-nav, .cw-form, .hero-actions { display: none !important; }
}
