/*
Theme Name: Catatan SDY
Theme URI: https://catatantogelsydneytoday.com
Author: Catatan Togel Sydney Today
Author URI: https://catatantogelsydneytoday.com
Description: Tema arsip result Sydney (SDY) untuk Catatan Togel Sydney Today. Layout boxed dengan header logo, menu bar, konten + sidebar, tabel data Senin–Minggu otomatis, data 6D, paito warna, statistik, SEO (meta robots, canonical, schema JSON-LD, robots.txt) dan auto-setup halaman saat aktivasi.
Version: 1.1.0
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: catatan-sdy
Tags: two-columns, right-sidebar, custom-logo, custom-menu, threaded-comments
*/

:root {
	--c-bg: #1d0a10;
	--c-maroon: #7a1426;
	--c-maroon-dark: #540c1a;
	--c-maroon-2: #94203a;
	--c-gold: #c9a14a;
	--c-gold-dark: #a47d2c;
	--c-gold-light: #f6e3b0;
	--c-cream: #fdf8ee;
	--c-cream-2: #f8efdc;
	--c-text: #2b2325;
	--c-muted: #6f6265;
	--c-border: #e4d4c6;
	--c-white: #ffffff;
	--radius: 4px;
	--font-head: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	--font-body: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--c-bg) linear-gradient(180deg, #2a0d15 0, var(--c-bg) 420px) no-repeat;
	color: var(--c-text);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.7;
}

a { color: var(--c-maroon); text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--c-gold-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--c-maroon-dark); line-height: 1.3; margin: 1.2em 0 .5em; }
h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 1000;
	background: var(--c-gold); color: var(--c-maroon-dark); padding: 8px 14px; top: 8px; left: 8px;
}

/* ---------- Boxed wrapper ---------- */
.site {
	max-width: 1100px;
	margin: 0 auto;
	background: var(--c-white);
	box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 10px 40px rgba(0,0,0,.45);
}

/* ---------- Top bar ---------- */
.topbar {
	background: var(--c-maroon-dark);
	color: var(--c-gold-light);
	font-size: 13px;
	border-bottom: 2px solid var(--c-gold);
}
.topbar__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 6px 16px; min-height: 34px; flex-wrap: wrap;
}
.topbar__date { font-family: var(--font-head); letter-spacing: .3px; }
.topbar .social-chips a { padding: 2px 8px; font-size: 11px; }

/* ---------- Header ---------- */
.site-header { background: var(--c-white); text-align: center; padding: 18px 16px 14px; }
.site-branding { margin: 0; }
.site-branding a { display: inline-block; text-decoration: none; }
.site-branding img, .custom-logo { width: 480px; max-width: 100%; height: auto; display: block; margin: 0 auto; }
.site-title-text { font-family: var(--font-head); font-size: 34px; font-weight: 700; color: var(--c-maroon); }

/* ---------- Navigation ---------- */
.main-nav {
	background: linear-gradient(180deg, var(--c-maroon-2) 0, var(--c-maroon) 55%, var(--c-maroon-dark) 100%);
	border-top: 2px solid var(--c-gold);
	border-bottom: 2px solid var(--c-gold);
	position: relative;
}
.main-nav__toggle {
	display: none; width: 100%; background: transparent; border: 0; color: #fff;
	font-family: var(--font-head); font-size: 16px; font-weight: 700; padding: 11px 16px; text-align: left; cursor: pointer;
}
.main-nav__toggle span { display: inline-block; width: 18px; border-top: 2px solid var(--c-gold-light); position: relative; top: -4px; margin-right: 8px; }
.main-nav__toggle span::before, .main-nav__toggle span::after { content: ""; position: absolute; left: 0; width: 18px; border-top: 2px solid var(--c-gold-light); }
.main-nav__toggle span::before { top: 4px; }
.main-nav__toggle span::after { top: 10px; }
.main-nav ul { list-style: none; margin: 0; padding: 0 8px; display: flex; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav a {
	display: block; padding: 11px 15px; color: #fff; text-decoration: none;
	font-family: var(--font-head); font-weight: 700; font-size: 15px;
	border-right: 1px solid rgba(201,161,74,.35);
}
.main-nav li:first-child > a { border-left: 1px solid rgba(201,161,74,.35); }
.main-nav a:hover, .main-nav a:focus,
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-ancestor > a {
	background: var(--c-gold); color: var(--c-maroon-dark);
}
.main-nav .sub-menu {
	display: none; position: absolute; left: 0; top: 100%; z-index: 50; min-width: 210px;
	background: var(--c-maroon-dark); padding: 0; flex-direction: column; border: 1px solid var(--c-gold);
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { border: 0; border-bottom: 1px solid rgba(201,161,74,.25); font-size: 14px; }

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

/* ---------- Layout ---------- */
.site-content {
	display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px;
	padding: 16px; background: var(--c-cream);
}
.content-area {
	background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius);
	padding: 18px 20px; min-width: 0;
}
.entry-title { margin-top: 0; padding-bottom: 8px; border-bottom: 2px solid var(--c-gold); }
.entry-meta { font-size: 13px; color: var(--c-muted); margin: -2px 0 12px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .3em; }
.entry-content h2 { border-left: 4px solid var(--c-gold); padding-left: 10px; }
.entry-content blockquote { margin: 1em 0; padding: 10px 16px; background: var(--c-cream); border-left: 4px solid var(--c-maroon); }
.updated-note { font-size: 13px; color: var(--c-muted); margin-top: 18px; padding-top: 10px; border-top: 1px dashed var(--c-border); }

/* ---------- Sidebar / widgets ---------- */
.widget-area { min-width: 0; }
.widget {
	background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius);
	margin-bottom: 16px; overflow: hidden;
}
.widget-title {
	margin: 0; padding: 9px 12px; background: var(--c-maroon); color: #fff;
	font-family: var(--font-head); font-size: 16px; border-bottom: 2px solid var(--c-gold);
}
.widget-body, .widget > ul, .widget > div:not(.widget-title), .widget > form, .widget > p { padding: 10px 12px; margin: 0; }
.widget ul { list-style: none; margin: 0; padding: 4px 12px; }
.widget li { border-bottom: 1px solid var(--c-border); padding: 7px 0; font-size: 14px; line-height: 1.4; }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--c-maroon); text-decoration: none; }
.widget li a:hover { color: var(--c-gold-dark); text-decoration: underline; }
.widget .search-form { display: flex; gap: 6px; }

/* ---------- Forms & buttons ---------- */
input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="number"], textarea, select {
	width: 100%; padding: 8px 10px; border: 1px solid var(--c-border); border-radius: var(--radius);
	font: inherit; background: #fff; color: var(--c-text);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--c-gold); outline-offset: 0; border-color: var(--c-gold); }
.btn, button[type="submit"], input[type="submit"], .search-submit {
	display: inline-block; background: var(--c-maroon); color: #fff; border: 1px solid var(--c-maroon-dark);
	border-radius: var(--radius); padding: 8px 16px; font-family: var(--font-head); font-weight: 700; font-size: 15px;
	cursor: pointer; text-decoration: none; width: auto;
}
.btn:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--c-gold); color: var(--c-maroon-dark); }

/* ---------- Social chips ---------- */
.social-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.social-chips a {
	display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
	color: #fff; text-decoration: none; background: var(--c-maroon); border: 1px solid rgba(255,255,255,.2);
}
.social-chips a:hover { filter: brightness(1.12); color: #fff; }
.social-chips .s-discord a { background: #5865f2; }
.social-chips .s-telegram a { background: #229ed9; }
.social-chips .s-facebook a { background: #1877f2; }
.social-chips .s-x a { background: #111; }
.social-chips .s-instagram a { background: #c13584; }
.social-chips .s-tiktok a { background: #222; }
.social-chips .s-youtube a { background: #e62117; }
.social-chips .s-pinterest a { background: #bd081c; }
.widget .social-chips { padding: 12px; }
.widget .social-chips li { border: 0; padding: 0; }
.widget .social-chips a, .widget .social-chips a:hover { color: #fff; text-decoration: none; }
.data-source { font-size: 12px; color: var(--c-muted); margin: 4px 0 0; }

/* ---------- Result card ---------- */
.sdy-result {
	border: 2px solid var(--c-gold); border-radius: 8px; overflow: hidden; margin: 0 0 22px;
	background: linear-gradient(180deg, var(--c-cream) 0, #fff 100%);
}
.sdy-result__head {
	background: var(--c-maroon); color: #fff; padding: 9px 14px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
	font-family: var(--font-head); font-size: 16px; border-bottom: 2px solid var(--c-gold);
}
.sdy-result__head strong { color: var(--c-gold-light); }
.sdy-result__body { padding: 16px 14px 14px; text-align: center; }
.sdy-balls { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.sdy-ball {
	width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--font-head); font-size: 30px; font-weight: 700; color: #fff;
	background: radial-gradient(circle at 35% 30%, var(--c-maroon-2), var(--c-maroon-dark));
	border: 3px solid var(--c-gold); box-shadow: 0 3px 8px rgba(84,12,26,.35);
}
.sdy-ball.is-dim { opacity: .55; }
.sdy-result__label { font-size: 13px; color: var(--c-muted); margin: 0 0 12px; }
.sdy-breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.sdy-breakdown li { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 6px 4px; line-height: 1.3; }
.sdy-breakdown span { display: block; font-size: 11px; text-transform: uppercase; color: var(--c-muted); letter-spacing: .4px; }
.sdy-breakdown b { font-family: var(--font-head); font-size: 18px; color: var(--c-maroon-dark); }
.sdy-result__wait { margin: 10px 0 0; font-size: 14px; background: var(--c-gold-light); border-radius: var(--radius); padding: 6px 10px; }
.sdy-empty { padding: 14px; background: var(--c-cream); border: 1px dashed var(--c-gold); border-radius: var(--radius); text-align: center; color: var(--c-muted); }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 20px; }
.sdy-table {
	width: 100%; border-collapse: collapse; font-size: 14px; text-align: center;
	font-variant-numeric: tabular-nums; background: #fff;
}
.sdy-table caption { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--c-maroon-dark); padding: 4px 0 10px; }
.sdy-table th {
	background: var(--c-maroon); color: #fff; font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
	padding: 8px 4px; border: 1px solid var(--c-maroon-dark); font-size: 14px;
}
.sdy-table td { border: 1px solid var(--c-border); padding: 6px 4px; letter-spacing: .5px; }
.sdy-table tbody tr:nth-child(even) td { background: var(--c-cream); }
.sdy-table tbody tr:hover td { background: var(--c-gold-light); }
.sdy-table td.is-out { color: #c7b9ad; background: #faf6f0 !important; }
.sdy-table td.is-latest { background: var(--c-gold) !important; color: var(--c-maroon-dark); font-weight: 700; }
.sdy-table td.is-libur { color: var(--c-muted); font-size: 12px; }
.sdy-table.recent td:nth-child(3) { font-weight: 700; color: var(--c-maroon-dark); font-family: var(--font-head); font-size: 16px; letter-spacing: 1px; }

/* ---------- Paito ---------- */
.paito-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
.paito-tools form { display: flex; gap: 6px; align-items: center; margin-right: 8px; }
.paito-tools select { width: auto; padding: 5px 8px; }
.paito-btn {
	width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(0,0,0,.15); cursor: pointer;
	font-family: var(--font-head); font-weight: 700; font-size: 16px; color: #fff; padding: 0;
}
.paito-btn[aria-pressed="true"] { outline: 3px solid var(--c-maroon-dark); outline-offset: 1px; }
.paito-reset { background: #fff; color: var(--c-maroon); border: 1px solid var(--c-maroon); border-radius: var(--radius); padding: 6px 10px; cursor: pointer; font-weight: 700; }
.paito-table { font-size: 13px; }
.paito-table th { font-size: 12px; padding: 6px 2px; }
.paito-table td { padding: 4px 2px; min-width: 18px; cursor: pointer; }
.paito-table td.pd-sep { border-right: 2px solid var(--c-maroon); }
.paito-table td.pd-date { cursor: default; font-size: 11px; color: var(--c-muted); white-space: nowrap; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.stat-box { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 10px 12px; background: #fff; }
.stat-box h3 { margin: 0 0 8px; font-size: 16px; }
.stat-bar { display: flex; align-items: center; gap: 6px; }
.stat-bar i { display: block; height: 8px; background: var(--c-gold); border-radius: 4px; min-width: 2px; }
.stat-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.stat-tags li { background: var(--c-cream); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 3px 8px; font-size: 13px; }
.stat-tags b { font-family: var(--font-head); font-size: 16px; color: var(--c-maroon-dark); margin-right: 4px; }
.sdy-note { font-size: 13px; color: var(--c-muted); background: var(--c-cream); border-left: 3px solid var(--c-gold); padding: 8px 12px; margin: 10px 0 20px; }

/* ---------- Menu cards ---------- */
.menu-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.menu-cards a {
	display: block; height: 100%; text-decoration: none; padding: 12px; border-radius: var(--radius);
	border: 1px solid var(--c-border); border-top: 3px solid var(--c-maroon); background: #fff; color: var(--c-text);
}
.menu-cards a:hover { border-top-color: var(--c-gold); background: var(--c-cream); }
.menu-cards strong { display: block; font-family: var(--font-head); font-size: 17px; color: var(--c-maroon-dark); }
.menu-cards span { font-size: 13px; color: var(--c-muted); line-height: 1.4; display: block; }
.year-links { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; }
.year-links a { display: inline-block; padding: 6px 12px; background: var(--c-maroon); color: #fff; text-decoration: none; border-radius: var(--radius); font-family: var(--font-head); font-weight: 700; }
.year-links a:hover { background: var(--c-gold); color: var(--c-maroon-dark); }

/* ---------- Posts list ---------- */
.post-card { padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1px solid var(--c-border); }
.post-card h2 { margin: 0 0 4px; font-size: 20px; border: 0; padding: 0; }
.post-card h2 a { text-decoration: none; }
.pagination, .nav-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.page-numbers { padding: 4px 10px; border: 1px solid var(--c-border); border-radius: var(--radius); text-decoration: none; }
.page-numbers.current { background: var(--c-maroon); color: #fff; border-color: var(--c-maroon); }

/* ---------- Comments ---------- */
.comments-area { margin-top: 26px; padding-top: 10px; border-top: 2px solid var(--c-gold); }
.comment-list { list-style: none; padding: 0; margin: 0 0 20px; }
.comment-list .children { list-style: none; padding-left: 20px; }
.comment-body { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.comment-meta { font-size: 13px; color: var(--c-muted); }
.comment-awaiting-moderation { display: block; color: var(--c-gold-dark); font-style: italic; }
.moderation-note { font-size: 13px; background: var(--c-gold-light); padding: 6px 10px; border-radius: var(--radius); }
.comment-form label { display: block; font-weight: 700; font-size: 14px; }
.comment-form p { margin-bottom: 10px; }
.csdy-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* ---------- Contact form ---------- */
.csdy-contact p { margin-bottom: 12px; }
.csdy-contact label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.csdy-alert { padding: 10px 12px; border-radius: var(--radius); margin-bottom: 14px; }
.csdy-alert.ok { background: #e7f5e9; border: 1px solid #9fd3a7; }
.csdy-alert.err { background: #fbe9ea; border: 1px solid #e8a5ab; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-maroon-dark); color: #f3e3c4; border-top: 3px solid var(--c-gold); font-size: 14px; }
.site-footer a { color: var(--c-gold-light); }
.footer-inner { padding: 18px 16px; display: grid; gap: 12px; text-align: center; justify-items: center; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.footer-menu a { text-decoration: none; font-family: var(--font-head); font-weight: 700; }
.footer-menu a:hover { color: #fff; text-decoration: underline; }
.footer-disclaimer { font-size: 12px; color: #d9c3a0; max-width: 760px; margin: 0; }
.footer-copy { background: #3b0812; text-align: center; font-size: 12px; padding: 8px 16px; color: #cdb48b; }
.badge-18 { display: inline-block; border: 2px solid var(--c-gold); color: var(--c-gold-light); border-radius: 50%; width: 34px; height: 34px; line-height: 30px; font-weight: 700; font-family: var(--font-head); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.site-content { grid-template-columns: 1fr; padding: 12px; }
	.stat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	body { font-size: 15px; }
	.main-nav__toggle { display: block; }
	.main-nav ul { display: none; flex-direction: column; padding: 0; }
	.main-nav.is-open > ul { display: flex; }
	.main-nav a, .main-nav li:first-child > a { border: 0; border-top: 1px solid rgba(201,161,74,.3); }
	.main-nav .sub-menu { display: flex; position: static; border: 0; }
	.main-nav .sub-menu a { padding-left: 30px; }
	.content-area { padding: 14px 12px; }
	.sdy-ball { width: 44px; height: 44px; font-size: 24px; }
	.sdy-breakdown { grid-template-columns: repeat(2, 1fr); }
	.topbar__inner { justify-content: center; }
	.topbar .social-chips { display: none; }
	h1 { font-size: 23px; }
}
@media (max-width: 420px) {
	.sdy-table { font-size: 12px; }
	.sdy-table th { font-size: 11px; padding: 6px 2px; }
	.sdy-table td { padding: 5px 2px; letter-spacing: 0; }
}
