/*
Theme Name: Catatan Sydney
Theme URI: https://catatansydneytoday.com
Author: Catatan Sydney Today
Author URI: https://catatansydneytoday.com
Description: Tema ringan untuk Catatan Sydney Today – Jurnal Angka dan Riwayat Pasaran Sydney. Tabel data SDY 4D & 6D otomatis, paito warna, result hari ini, SEO (robots, canonical, schema JSON-LD) dan halaman About & Policy dibuat otomatis saat tema diaktifkan.
Version: 1.2.0
Requires at least: 6.0
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-sydney
Tags: two-columns, right-sidebar, custom-logo, custom-menu, threaded-comments
*/

:root {
	--cst-bg: #13234b;
	--cst-bg-2: #0d1838;
	--cst-blue: #1f46b5;
	--cst-blue-dark: #15318a;
	--cst-blue-deep: #0f235f;
	--cst-blue-soft: #e9effd;
	--cst-brown: #9a6330;
	--cst-brown-dark: #6e4420;
	--cst-tan: #f0d9b3;
	--cst-cream: #fbf7ee;
	--cst-white: #ffffff;
	--cst-text: #1f2430;
	--cst-muted: #5d6475;
	--cst-border: #d6cdb9;
	--cst-line: #c9d4ee;
	--cst-radius: 4px;
	--cst-head: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	--cst-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--cst-bg);
	background-image: linear-gradient(180deg, var(--cst-bg-2) 0, var(--cst-bg) 420px);
	color: var(--cst-text);
	font: 15px/1.7 var(--cst-body);
}
img { max-width: 100%; height: auto; }
a { color: var(--cst-blue); }
a:hover { color: var(--cst-brown); }
h1, h2, h3, h4 { font-family: var(--cst-head); line-height: 1.25; color: #10172b; margin: 1.2em 0 .5em; }
h1 { font-size: 26px; margin-top: 0; }
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; 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; left: 8px; top: 8px; z-index: 999; background: #fff; padding: 8px 12px; }

/* ---------- Layout ---------- */
.site { max-width: 1040px; margin: 0 auto; background: #eef0f5; box-shadow: 0 0 40px rgba(0,0,0,.35); }
.wrap { padding: 0 14px; }

.topbar { background: var(--cst-brown-dark); color: var(--cst-tan); font-size: 12.5px; }
.topbar-in { display: flex; justify-content: space-between; gap: 10px; padding-top: 5px; padding-bottom: 5px; }
.topbar-tag { opacity: .9; text-align: right; }

.site-header { background: var(--cst-white); border-bottom: 1px solid var(--cst-border); }
.site-logo { display: flex; justify-content: center; padding: 14px 0 12px; margin: 0; }
.site-logo img { display: block; width: auto; max-height: 128px; }

/* ---------- Navigation ---------- */
.main-nav { background: var(--cst-blue); border-top: 3px solid var(--cst-brown); border-bottom: 1px solid var(--cst-blue-deep); }
.main-nav .wrap { padding: 0 10px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav .menu { display: flex; flex-wrap: wrap; gap: 0; }
.main-nav .menu > li > a {
	display: block; padding: 9px 14px; color: #fff; text-decoration: none;
	font: 700 14px/1.2 var(--cst-head); letter-spacing: .2px;
	background: var(--cst-blue-dark); border-right: 1px solid var(--cst-blue-deep); border-left: 1px solid rgba(255,255,255,.12);
}
.main-nav .menu > li > a:hover,
.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current_page_item > a { background: var(--cst-brown); color: #fff; }
.main-nav .sub-menu { display: none; }
.nav-toggle {
	display: none; width: 100%; padding: 10px 6px; background: transparent; color: #fff; border: 0;
	font: 700 15px var(--cst-head); text-align: left; cursor: pointer;
}

.site-body { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 12px; padding-top: 12px; padding-bottom: 12px; }

/* ---------- Content box ---------- */
.box {
	background: var(--cst-white); border: 1px solid #b9c0d3; border-radius: var(--cst-radius);
	padding: 14px 16px 18px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(15,35,95,.08);
}
.entry-title { font-size: 24px; margin-bottom: 10px; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-meta { font-size: 12.5px; color: var(--cst-muted); margin: -4px 0 12px; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { text-align: left; }
.entry-content figure { margin: 0 0 14px; }
.entry-content figure.cst-banner { background: var(--cst-cream); border: 1px solid var(--cst-border); padding: 10px; text-align: center; }
.entry-content figure.cst-banner img { max-height: 150px; width: auto; }
.entry-content figcaption, .wp-element-caption { font-size: 12px; color: var(--cst-muted); margin-top: 4px; text-align: left; }
.entry-content ul, .entry-content ol { padding-left: 22px; margin: 0 0 1em; }
.entry-content blockquote { margin: 0 0 1em; padding: 8px 14px; border-left: 4px solid var(--cst-brown); background: var(--cst-cream); }

.breadcrumb { font-size: 12.5px; color: var(--cst-muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--cst-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--cst-blue); }
.breadcrumb span.sep { margin: 0 5px; }

/* ---------- Tables ---------- */
.cst-table-title { text-align: center !important; font-size: 21px; margin: 18px 0 10px; }
.cst-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 14px; }
.cst-table { width: 100%; border-collapse: collapse; font-size: 13.5px; text-align: center; background: #fff; }
.cst-table th {
	background: var(--cst-blue); color: #fff; font: 700 13px/1.2 var(--cst-head); text-transform: uppercase;
	padding: 8px 4px; border: 1px solid var(--cst-blue-dark);
}
.cst-table.cst-weekly { table-layout: fixed; min-width: 420px; }
.cst-table td { padding: 5px 4px; border: 1px solid var(--cst-line); font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.cst-table tbody tr:nth-child(even) td { background: #f6f8fd; }
.cst-table td.is-empty { color: #a3aabb; }
.cst-table td.is-out { background: #eceef3 !important; }
.cst-table td.is-today { background: var(--cst-tan) !important; font-weight: 700; }
.cst-table td.is-latest { background: var(--cst-brown) !important; color: #fff; font-weight: 700; }
.cst-table.cst-list td:first-child, .cst-table.cst-list td:nth-child(2) { text-align: left; padding-left: 10px; }
.cst-table .num { font-weight: 700; color: var(--cst-blue-dark); }
.cst-note { font-size: 12.5px; color: var(--cst-muted); margin: -6px 0 14px; }
.cst-empty { background: var(--cst-cream); border: 1px dashed var(--cst-border); padding: 14px; text-align: center; color: var(--cst-muted); border-radius: var(--cst-radius); margin-bottom: 14px; }

.cst-years { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 12px; padding: 0; list-style: none; }
.cst-years a, .cst-years span {
	display: inline-block; padding: 3px 11px; border-radius: 999px; font: 700 13px var(--cst-head);
	border: 1px solid var(--cst-blue); color: var(--cst-blue); text-decoration: none; background: #fff;
}
.cst-years span.is-active, .cst-years a:hover { background: var(--cst-blue); color: #fff; }

/* ---------- Result hari ini ---------- */
.cst-today {
	background: linear-gradient(135deg, var(--cst-blue-deep), var(--cst-blue));
	color: #fff; border-radius: 6px; padding: 16px; margin: 0 0 16px; text-align: center;
	border-bottom: 4px solid var(--cst-brown);
}
.cst-today-label { font: 700 15px var(--cst-head); text-transform: uppercase; letter-spacing: .6px; color: var(--cst-tan); }
.cst-today-date { font-size: 13.5px; opacity: .92; margin: 2px 0 10px; }
.cst-balls { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.cst-ball {
	width: 50px; height: 50px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 35% 30%, #fffdf7, var(--cst-tan));
	color: var(--cst-brown-dark); font: 700 26px/1 var(--cst-head); box-shadow: inset 0 -3px 0 rgba(110,68,32,.25), 0 2px 4px rgba(0,0,0,.25);
}
.cst-ball.is-pending { color: #a68a64; }
.cst-today-next { font-size: 13px; background: rgba(255,255,255,.1); border-radius: 4px; padding: 6px 8px; display: inline-block; }
.cst-countdown { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--cst-tan); }

/* ---------- Paito ---------- */
.cst-paito-tools { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin: 0 0 10px; }
.cst-paito-tools button {
	min-width: 34px; padding: 5px 8px; border: 1px solid var(--cst-blue); background: #fff; color: var(--cst-blue);
	font: 700 14px var(--cst-head); border-radius: 4px; cursor: pointer;
}
.cst-paito-tools button[aria-pressed="true"] { color: #fff; }
.cst-paito td { padding: 4px 2px; min-width: 22px; font-weight: 700; }
.cst-paito th.sub { background: var(--cst-blue-dark); font-size: 11px; padding: 4px 2px; }
.cst-paito td.day-start { border-left: 2px solid var(--cst-blue-dark); }
.cst-paito-tools [data-digit="0"][aria-pressed="true"], .cst-paito.hl-0 td[data-d="0"] { background: #e53935 !important; color: #fff; }
.cst-paito-tools [data-digit="1"][aria-pressed="true"], .cst-paito.hl-1 td[data-d="1"] { background: #fb8c00 !important; color: #fff; }
.cst-paito-tools [data-digit="2"][aria-pressed="true"], .cst-paito.hl-2 td[data-d="2"] { background: #fdd835 !important; color: #222; }
.cst-paito-tools [data-digit="3"][aria-pressed="true"], .cst-paito.hl-3 td[data-d="3"] { background: #43a047 !important; color: #fff; }
.cst-paito-tools [data-digit="4"][aria-pressed="true"], .cst-paito.hl-4 td[data-d="4"] { background: #00acc1 !important; color: #fff; }
.cst-paito-tools [data-digit="5"][aria-pressed="true"], .cst-paito.hl-5 td[data-d="5"] { background: #1e88e5 !important; color: #fff; }
.cst-paito-tools [data-digit="6"][aria-pressed="true"], .cst-paito.hl-6 td[data-d="6"] { background: #5e35b1 !important; color: #fff; }
.cst-paito-tools [data-digit="7"][aria-pressed="true"], .cst-paito.hl-7 td[data-d="7"] { background: #d81b60 !important; color: #fff; }
.cst-paito-tools [data-digit="8"][aria-pressed="true"], .cst-paito.hl-8 td[data-d="8"] { background: #6d4c41 !important; color: #fff; }
.cst-paito-tools [data-digit="9"][aria-pressed="true"], .cst-paito.hl-9 td[data-d="9"] { background: #546e7a !important; color: #fff; }

/* ---------- Sidebar ---------- */
.widget { background: #fff; border: 1px solid #8c96b3; margin-bottom: 12px; border-radius: var(--cst-radius); overflow: hidden; }
.widget-title {
	margin: 0; padding: 7px 10px; background: var(--cst-blue); color: #fff; font: 700 15px var(--cst-head);
	border-bottom: 3px solid var(--cst-brown);
}
.widget-body, .widget > ul, .widget > div:not(.widget-title), .widget > form, .widget > p { padding: 8px 10px; }
.widget ul { list-style: none; margin: 0; padding: 4px 10px; }
.widget li { border-bottom: 1px solid #e3e6ee; padding: 5px 0; font-size: 13px; }
.widget li:last-child { border-bottom: 0; }
.widget li a { text-decoration: none; }
.widget .cst-table { font-size: 12.5px; }
.widget .cst-table td { padding: 4px; }

/* ---------- Social ---------- */
.cst-social { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.cst-social li { border: 0 !important; padding: 0 !important; }
.cst-social a {
	display: inline-block; padding: 4px 10px; border-radius: 999px; font: 700 12.5px var(--cst-head);
	background: var(--cst-blue-soft); color: var(--cst-blue-dark); text-decoration: none; border: 1px solid var(--cst-line);
}
.cst-social a:hover { background: var(--cst-brown); color: #fff; border-color: var(--cst-brown); }

/* ---------- Posts ---------- */
.post-list { display: grid; gap: 10px; }
.post-card { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #e4e7ef; }
.post-card:last-child { border-bottom: 0; }
.post-card.no-thumb { grid-template-columns: 1fr; }
.post-card img { border-radius: 4px; display: block; }
.post-card h2, .post-card h3 { font-size: 17px; margin: 0 0 4px; }
.post-card h2 a, .post-card h3 a { color: #10172b; text-decoration: none; }
.post-card p { margin: 0; font-size: 13.5px; color: var(--cst-muted); }
.pagination { margin-top: 12px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 5px; }
.pagination .page-numbers { padding: 4px 10px; border: 1px solid var(--cst-line); text-decoration: none; background: #fff; }
.pagination .page-numbers.current { background: var(--cst-blue); color: #fff; border-color: var(--cst-blue); }

/* ---------- Comments ---------- */
.comments-area h2 { font-size: 19px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 14px; }
.comment-list .children { list-style: none; padding-left: 18px; }
.comment-body { border: 1px solid #e3e6ee; border-radius: 4px; padding: 10px; margin-bottom: 8px; background: #fafbfe; }
.comment-meta { font-size: 12.5px; color: var(--cst-muted); }
.comment-awaiting-moderation { color: var(--cst-brown); font-size: 12.5px; }
.cst-mod-note { background: var(--cst-cream); border-left: 4px solid var(--cst-brown); padding: 8px 12px; font-size: 13px; margin: 0 0 12px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea, .search-field {
	width: 100%; padding: 8px; border: 1px solid #b9c0d3; border-radius: 4px; font: inherit;
}
.comment-form .submit, .search-submit, .button-cst {
	background: var(--cst-blue); color: #fff; border: 0; padding: 9px 18px; border-radius: 4px;
	font: 700 14px var(--cst-head); cursor: pointer;
}
.comment-form .submit:hover, .search-submit:hover { background: var(--cst-brown); }
.search-form { display: flex; gap: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cst-blue-deep); color: #c8d2ee; font-size: 13px; border-top: 4px solid var(--cst-brown); }
.site-footer .wrap { padding-top: 16px; padding-bottom: 16px; }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; margin: 0 0 12px; }
.footer-menu a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-menu a:hover { color: var(--cst-tan); }
.site-footer .cst-social { margin-bottom: 12px; }
.site-footer .cst-social a { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.footer-note { margin: 0 0 6px; opacity: .85; }
.copyright { margin: 0; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.site-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	body { font-size: 14.5px; }
	.topbar-tag { display: none; }
	.site-logo img { max-height: 92px; }
	.nav-toggle { display: block; }
	.main-nav .menu { display: none; flex-direction: column; padding-bottom: 8px; }
	.main-nav.is-open .menu { display: flex; }
	.main-nav .menu > li > a { border: 0; border-top: 1px solid var(--cst-blue-deep); }
	.box { padding: 12px; }
	.entry-title { font-size: 21px; }
	.cst-table { font-size: 12.5px; }
	.cst-table th { font-size: 11.5px; padding: 6px 2px; }
	.cst-table td { padding: 5px 2px; }
	.cst-ball { width: 42px; height: 42px; font-size: 22px; }
	.post-card { grid-template-columns: 84px 1fr; }
}
