/*
Theme Name: Togel Sydney 6D Today
Theme URI: https://togelsydney6dtoday.com
Author: Togel Sydney 6D Today
Author URI: https://togelsydney6dtoday.com
Description: Tema ringan untuk situs data & hasil angka 6D Sydney: live draw otomatis, data SDY, paito warna, jadwal, SEO (meta, canonical, robots.txt), schema JSON-LD, dan moderasi komentar bawaan.
Version: 1.0.2
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: ts6d
Tags: one-column, custom-logo, custom-menu, featured-images, threaded-comments
*/

:root {
	--bg: #ece8f5;
	--card: #ffffff;
	--ink: #1d1830;
	--muted: #5f5876;
	--line: #e3ddf0;
	--soft: #f6f2ff;
	--brand: #7c3aed;
	--brand-600: #7034e0;
	--brand-700: #6d28d9;
	--brand-800: #5b21b6;
	--brand-900: #4c1d95;
	--brand-950: #2e1065;
	--dark: #120a24;
	--accent: #f5c542;
	--ok: #16a34a;
	--radius: 12px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 16px/1.75 var(--font);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-700); }
a:hover { color: var(--brand-900); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 999; left: 8px; top: 8px;
	background: #fff; padding: 8px 14px; border-radius: 6px;
}

/* ---------- Layout shell (mengikuti referensi) ---------- */
.site {
	max-width: 980px;
	margin: 0 auto;
	background: var(--card);
	box-shadow: 0 0 0 1px rgba(46, 16, 101, .06), 0 10px 40px rgba(46, 16, 101, .10);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.topbar {
	background: var(--brand-800);
	color: #ddd6fe;
	font-size: 13px;
	min-height: 36px;
	padding: 4px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.topbar-date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.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: 8px;
	color: inherit; text-decoration: none;
}
.social svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.topbar .social a { width: 26px; height: 26px; border-radius: 50%; color: #ede9fe; }
.topbar .social a:hover { background: rgba(255,255,255,.14); color: #fff; }

.banner {
	position: relative;
	background:
		repeating-linear-gradient(135deg, rgba(124,58,237,.055) 0 8px, transparent 8px 28px),
		linear-gradient(180deg, #fbf9ff 0%, #ece3ff 100%);
	padding: 26px 16px 24px;
	text-align: center;
	border-bottom: 1px solid var(--line);
}
.banner-logo { display: inline-block; line-height: 0; }
.banner-logo img { width: 560px; max-width: 100%; height: auto; }
.site-title-h { margin: 0; line-height: 0; }

.mainnav { background: var(--brand-700); position: sticky; top: 0; z-index: 50; }
.mainnav ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap;
}
.mainnav li { margin: 0; }
.mainnav a {
	display: block;
	padding: 10px 14px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	border-right: 1px solid rgba(255,255,255,.18);
	white-space: nowrap;
}
.mainnav a:hover,
.mainnav .current-menu-item > a,
.mainnav .current_page_item > a { background: var(--brand-950); color: #fff; }

.content { flex: 1; padding: 22px 20px 36px; }

/* ---------- Typography / entry ---------- */
.entry-title, .page-title {
	font-size: 26px; font-weight: 600; line-height: 1.3; margin: 0 0 12px; color: var(--ink);
}
.entry h2, .entry .wp-block-heading:is(h2) { font-size: 22px; font-weight: 600; line-height: 1.35; margin: 30px 0 10px; }
.entry h3 { font-size: 18px; margin: 22px 0 8px; }
.entry p { margin: 0 0 14px; }
.entry ul, .entry ol { padding-left: 22px; margin: 0 0 16px; }
.entry li { margin-bottom: 4px; }
.entry a { font-weight: 600; }
.has-text-align-center { text-align: center; }
.entry blockquote { margin: 18px 0; padding: 12px 18px; background: var(--soft); border-left: 4px solid var(--brand); border-radius: 0 8px 8px 0; }
.entry table { border-collapse: collapse; width: 100%; }
.entry figure { margin: 0 0 18px; }
.alignwide, .alignfull { margin-left: 0; margin-right: 0; }

.note {
	font-size: 14px; color: var(--muted);
	background: var(--soft); border: 1px solid var(--line);
	border-radius: 10px; padding: 12px 14px; margin: 22px 0 0;
}

.breadcrumbs { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; color: #a39bbb; }
.breadcrumbs a { color: var(--brand-700); text-decoration: none; }

.entry-meta { font-size: 13px; color: var(--muted); margin: -4px 0 16px; }
.post-thumb img { border-radius: 10px; display: block; margin: 0 0 18px; }

/* ---------- Live draw card ---------- */
.ld {
	max-width: 500px;
	margin: 18px auto 26px;
	padding: 6px;
	border-radius: 8px;
	background: linear-gradient(180deg, var(--brand) 0%, var(--brand-900) 100%);
	color: #fff;
	box-shadow: 0 12px 30px rgba(76, 29, 149, .25);
}
.ld-head {
	background: #fff; color: var(--brand-900);
	border-radius: var(--radius);
	padding: 14px 16px;
	display: flex; align-items: center; justify-content: center; gap: 14px;
}
.ld-head img { width: 58px; height: 58px; border-radius: 14px; }
.ld-brand { text-align: left; line-height: 1.05; }
.ld-brand small { display: block; font-size: 11px; letter-spacing: .28em; font-weight: 800; color: var(--brand-800); }
.ld-brand strong { display: block; font-size: 40px; font-weight: 900; letter-spacing: -.02em; color: var(--brand-900); }
.ld-sep { width: 2px; align-self: stretch; background: var(--line); }
.ld-date { font-size: 13px; color: var(--muted); text-align: left; line-height: 1.35; }
.ld-date b { display: block; color: var(--ink); font-size: 15px; }
.ld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.ld-label, .ld-val {
	border-radius: var(--radius);
	min-height: 48px;
	display: flex; align-items: center; justify-content: center;
}
.ld-label { background: var(--brand-800); font-weight: 800; font-size: 19px; }
.ld-label sup { font-size: 11px; margin-left: 1px; }
.ld-val { background: var(--brand-950); gap: 4px; padding: 6px; }
.dg {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 34px;
	background: #fff; color: var(--brand-900);
	border-radius: 6px;
	font: 800 21px/1 var(--font);
	font-variant-numeric: tabular-nums;
	box-shadow: inset 0 -3px 0 rgba(76,29,149,.18);
}
.dg.is-empty { background: rgba(255,255,255,.14); color: transparent; box-shadow: none; }
.ld.is-live .dg.is-empty { animation: ts-pulse 1.1s ease-in-out infinite; }
.ld.is-live .dg.is-empty:nth-child(2n) { animation-delay: .25s; }
.dg.flip { animation: ts-flip .5s ease; }
@keyframes ts-pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes ts-flip { 0% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.ld-status {
	margin-top: 6px; border-radius: var(--radius);
	background: rgba(0,0,0,.22);
	text-align: center; font-size: 14px; padding: 9px 10px; line-height: 1.45;
}
.ld-status b { color: var(--accent); font-variant-numeric: tabular-nums; }
.ld-badge {
	display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em;
	padding: 2px 8px; border-radius: 99px; background: #ef4444; color: #fff; margin-right: 6px;
	vertical-align: 1px;
}
.ld.is-done .ld-badge { background: var(--ok); }
.ld.is-wait .ld-badge { background: #64748b; }

/* ---------- Latest mini ---------- */
.latest-mini {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
	background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 12px 14px; margin: 0 0 18px;
}
.latest-mini .dg { background: var(--brand-800); color: #fff; box-shadow: none; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 10px 0 18px; border-radius: 10px; border: 1px solid var(--line); }
.ts-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.ts-table th {
	background: var(--brand-700); color: #fff; font-weight: 700;
	padding: 10px 12px; text-align: center; white-space: nowrap;
}
.ts-table td { padding: 9px 12px; border-top: 1px solid var(--line); text-align: center; }
.ts-table tbody tr:nth-child(even) td { background: #faf8ff; }
.ts-table tbody tr:hover td { background: #f1ebff; }
.ts-table .num { font-weight: 800; letter-spacing: .14em; font-variant-numeric: tabular-nums; color: var(--brand-900); }
.ts-table .num-4d { color: var(--brand-700); }
.ts-empty {
	text-align: center; color: var(--muted); background: var(--soft);
	border: 1px dashed #cfc4ea; border-radius: 10px; padding: 18px; margin: 10px 0 18px;
}

/* ---------- Paito ---------- */
.paito-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; color: var(--muted); }
.btn {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--brand-700); color: #fff !important; border: 0;
	padding: 8px 14px; border-radius: 8px; font: 700 14px/1.2 var(--font);
	text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--brand-900); }
.btn-ghost { background: transparent; color: var(--brand-700) !important; box-shadow: inset 0 0 0 2px var(--brand-700); }
.btn-ghost:hover { background: var(--soft); }
.paito { min-width: 640px; }
.paito td { padding: 6px 4px; }
.paito .pd {
	display: inline-block; width: 20px; line-height: 24px; border-radius: 4px;
	font-weight: 800; cursor: pointer; user-select: none; font-variant-numeric: tabular-nums;
}
.paito .pd:hover { outline: 2px solid var(--brand); }
.paito .wk { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pc-1 { background: #fde047; } .pc-2 { background: #86efac; } .pc-3 { background: #93c5fd; }
.pc-4 { background: #f9a8d4; } .pc-5 { background: #fdba74; } .pc-6 { background: #c4b5fd; }

/* ---------- Posts list ---------- */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 12px 0 18px; }
.post-card {
	border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
	display: flex; flex-direction: column;
}
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.post-card-body { padding: 12px 14px 14px; }
.post-card h3 { font-size: 17px; line-height: 1.4; margin: 0 0 6px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--brand-700); }
.post-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.post-card time { font-size: 12px; color: var(--muted); }

.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.page-numbers {
	display: inline-block; min-width: 38px; text-align: center; padding: 6px 10px; border-radius: 8px;
	border: 1px solid var(--line); text-decoration: none; font-weight: 700;
}
.page-numbers.current { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }

/* ---------- Social block in content ---------- */
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; list-style: none; padding: 0 !important; margin: 12px 0 18px; }
.social-grid a {
	display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px;
	background: var(--soft); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600;
}
.social-grid a:hover { border-color: var(--brand); color: var(--brand-800); }
.social-grid svg { width: 20px; height: 20px; fill: var(--brand-700); }

/* ---------- Comments ---------- */
.comments-area { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 18px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 20px; }
.comment-list .children { list-style: none; padding-left: 22px; }
.comment-body { background: var(--soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.comment-meta { font-size: 13px; color: var(--muted); }
.comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.comment-awaiting-moderation { display: block; color: #b45309; font-size: 13px; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea,
.search-form input[type=search] {
	width: 100%; padding: 10px 12px; border: 1px solid #cfc6e6; border-radius: 8px; font: inherit; background: #fff;
}
.comment-form .submit, .search-form button {
	background: var(--brand-700); color: #fff; border: 0; padding: 10px 18px; border-radius: 8px; font: 700 15px var(--font); cursor: pointer;
}
.moderation-note { font-size: 13px; color: var(--muted); background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 8px 12px; }
.search-form { display: flex; gap: 8px; margin: 12px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #c9c2dc; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; padding: 28px 20px 18px; }
.site-footer h2 { color: #fff; font-size: 15px; margin: 0 0 10px; letter-spacing: .02em; }
.site-footer a { color: #e4dcff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; font-weight: 800; }
.footer-brand img { width: 44px; height: 44px; border-radius: 11px; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin: 0 0 6px; }
.site-footer .social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.site-footer .social svg { fill: #a78bfa; }
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,.08);
	padding: 14px 20px 18px; font-size: 12.5px; color: #9d94b8; line-height: 1.6;
}
.age-badge {
	display: inline-block; border: 2px solid #ef4444; color: #fecaca; border-radius: 50%;
	width: 30px; height: 30px; line-height: 26px; text-align: center; font-weight: 800; font-size: 11px; margin-right: 8px;
	vertical-align: middle;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
	.content { padding: 18px 16px 30px; }
	.entry-title, .page-title { font-size: 22px; }
	.mainnav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.mainnav ul::-webkit-scrollbar { display: none; }
	.footer-grid { grid-template-columns: 1fr; gap: 18px; }
	.topbar .social { display: none; }
	.banner { padding: 18px 16px; }
}
@media (max-width: 420px) {
	.dg { width: 22px; height: 30px; font-size: 17px; }
	.ld-label { font-size: 16px; }
	.ld-brand strong { font-size: 32px; }
	.ld-head { gap: 10px; padding: 12px; }
	.ld-head img { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}

/* ---------- v1.0.2: data lengkap ---------- */
.table-wrap.is-scroll { max-height: 560px; overflow: auto; }
.table-wrap.is-scroll thead th { position: sticky; top: 0; z-index: 1; }
.year-title { font-size: 18px; margin: 22px 0 6px; color: var(--brand-900); }
.data-year { min-width: 520px; }
.data-year td { padding: 7px 6px; }
.data-year td.num { letter-spacing: .08em; }
.data-year td.nil { color: #b9b2cc; }
.ld-label span { white-space: nowrap; }
