/*
Theme Name: Catatan Rudy
Theme URI: https://rudyhartadi.web.id
Author: Rudy Hartadi
Description: Tema ringan meniru layout Twenty Fifteen (skema kuning) — sidebar kiri fixed, optimasi PageSpeed, siap AdSense.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: catatan-rudy
*/

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	background-color: #f4ca16;
	color: #111;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: #111; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Sidebar kiri: kuning penuh ===== */
.sidebar { background-color: #ffdf00; }
.site-header { margin: 0; padding: 15px 30px; }
.site-title { margin: 0; font-size: 1.75rem; line-height: 1.2; }
.site-title a { font-weight: 700; letter-spacing: -0.02em; }
.site-description { margin: 0.25rem 0 0; font-size: 0.85rem; opacity: 0.75; }

.secondary-toggle {
	display: none;
	margin-top: 0.5rem;
	padding: 6px 12px;
	font-size: 0.85rem;
	border: 1px solid #111;
	background: transparent;
	cursor: pointer;
}

.widget { padding: 10px 30px; margin: 10px 0; }
.widget-title { margin: 0 0 5px; font-size: 1rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li {
	margin: 0.25rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}
.widget a:hover { text-decoration: underline; }

/* ===== Konten ===== */
.site-content { padding: 0; }
.content-area { padding: 0; }

.hentry,
.comments-area,
.pagination,
.no-results {
	background: #fff;
	box-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
	padding-top: 0;
	margin: 0 30px 30px;
}
.entry-header, .entry-footer { padding: 10px 30px; }
.entry-title { margin: 0 0 0; font-size: 1.6rem; line-height: 1.25; }
.entry-title a:hover { text-decoration: none; color: #333; }
.entry-meta { font-size: 0.8rem; color: #555; margin-top: 2px; }
.entry-content { padding: 5px 30px 15px; overflow-wrap: break-word; }
.entry-summary { padding: 5px 30px 15px; }
.post-thumbnail { margin: 0; }
.post-thumbnail img { display: block; width: 100%; }

/* Tipografi konten (meniru custom CSS aktif) */
.entry-content h2 { margin: 2rem 0 1rem; font-size: 1.45rem; }
.entry-content h3 { margin: 1rem 0 0.5rem; font-size: 1.2rem; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 1rem 0; }
.entry-content p { text-align: justify; }
.entry-content table { margin-bottom: 0; border-collapse: collapse; }
.entry-content thead th, .entry-content tbody td { border: 1px solid black; padding: 6px 10px; }
.entry-content pre { margin-bottom: 1rem; overflow-x: auto; padding: 12px; background: #f6f6f6; }
.entry-content blockquote { margin-left: 0; padding-left: 1rem; border-left: 4px solid #f4ca16; color: #444; }
.entry-content img.aligncenter { display: block; margin: 1rem auto; }

.entry-footer {
	font-size: 0.8rem;
	color: #555;
	padding: 10px 30px;
	background-color: #f2f2f2;
	border-top: 1px solid #eee;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
}
.entry-footer .meta-comments { color: #555; }
.entry-footer .icon {
	vertical-align: -2px;
	margin-right: 4px;
}
.entry-content .more-link {
	text-decoration: underline;
	font-weight: 500;
}

/* Navigasi post & pagination */
.post-navigation, .posts-navigation { overflow: hidden; }
.nav-previous { float: left; width: 50%; padding: 10px 30px; background: #fff; box-shadow: 0 0 1px rgba(0, 0, 0, 0.15); }
.nav-next { float: right; text-align: right; width: 50%; padding: 10px 30px; background: #fff; box-shadow: 0 0 1px rgba(0, 0, 0, 0.15); }
.pagination { text-align: center; padding: 15px 30px; }
.pagination .page-numbers { display: inline-block; padding: 4px 10px; }
.pagination .current { font-weight: 700; text-decoration: underline; }

/* Komentar */
.comment-list { list-style: none; margin: 0; padding: 0 30px; }
.comment-list .comment { border-bottom: 1px solid #eee; padding: 10px 0; }
.comment-meta { font-size: 0.8rem; color: #555; }
.comments-area { padding-bottom: 15px; }
.comment-respond {
	padding: 20px 30px;
	background: #fff;
	box-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
	margin: 0;
}
.comment-respond .comment-form-title {
	margin: 0 0 15px;
	font-size: 1.6rem;
	line-height: 1.25;
}
.comment-form .form-allowed-tags,
.form-allowed-tags,
.akismet_comment_form_privacy_notice {
	font-size: 0.8rem;
	color: #555;
	padding: 0 30px;
}
.comments-area input[type="text"], .comments-area input[type="email"], .comments-area input[type="url"],
.comments-area textarea {
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	font: inherit;
}
.comment-form p {
	margin: 0 0 15px;
}
.comment-form label {
	display: block;
	margin: 0 0 5px;
	font-weight: 600;
	font-size: 0.9rem;
}
.comment-form input[type="url"] {
	max-width: 300px;
}
.comment-form input[type="checkbox"] {
	margin-right: 8px;
}
.comment-respond .form-submit {
	margin: 5px 0 0;
}
.comment-form-cookies-consent {
	margin-bottom: 10px;
}
.comment-respond .form-submit input[type="submit"] {
	width: auto;
}
.comments-area input[type="submit"] {
	padding: 8px 18px;
	background: #111;
	color: #fff;
	border: 0;
	cursor: pointer;
	font: inherit;
}

/* ===== AdSense (anti-CLS) ===== */
.ad-slot { text-align: center; margin: 10px 0; min-height: 250px; }
@media screen and (min-width: 59.6875em) {
	.ad-slot { min-height: 0; }
}
.ad-inline { margin: 1.5rem 0; }

/* ===== Mobile (<955px): sidebar jadi header atas ===== */
@media screen and (max-width: 59.6874em) {
	.secondary-toggle { display: inline-block; }
	.secondary { display: none; }
	body.toggled .secondary { display: block; }
	.hentry, .comments-area, .pagination, .no-results { margin: 0 10px 15px; }
	.entry-header, .entry-footer { padding: 10px 15px; }
	.entry-content, .entry-summary { padding: 5px 15px 15px; }
	.site-header { padding: 15px; }
	.widget { padding: 10px 15px; }
	.comment-list, .comments-area form { padding-left: 15px; padding-right: 15px; }
	.comment-respond { padding: 15px; margin: 0 10px 15px; }
	.form-allowed-tags,
	.akismet_comment_form_privacy_notice { margin: 15px 15px 0; }
	.nav-previous, .nav-next { padding: 10px 15px; background: #fff; box-shadow: 0 0 1px rgba(0, 0, 0, 0.15); }
}

/* ===== Desktop: seluruh layout center, space kosong kiri-kanan ===== */
@media screen and (min-width: 59.6875em) {
	body {
		/* ponytail: hard-stop di tepi kanan sidebar (600 - 29.4118%*1200 = 247px kiri dari center); kalau max-width #page berubah, hitung ulang */
		background: linear-gradient(to right, #ffdf00 calc(50% - 247px), #f4ca16 calc(50% - 247px));
		background-attachment: fixed;
	}
	#page {
		display: flex;
		align-items: stretch;
		max-width: 1200px;
		margin: 0 auto;
	}
	.sidebar {
		width: 29.4118%;
		min-height: 100vh;
		flex-shrink: 0;
	}
	.site-content {
		width: 70.5882%;
		min-width: 0;
		background-color: #f4ca16;
	}
	.content-area {
		max-width: 800px;
		margin: 0 auto;
		padding-top: 30px;
	}
	.site-footer { display: none; }
}

/* Clearfix tidak lagi dipakai (flex) */

/* Aksesibilitas */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}
.skip-link:focus {
	background: #fff;
	clip-path: none;
	color: #111;
	display: block;
	padding: 15px 23px;
	position: absolute;
	top: 5px;
	left: 5px;
	z-index: 100000;
}
