/*
Theme Name: Update Data Sydney
Theme URI: https://updatedatasydneytoday.com
Author: Update Data Sydney Today
Author URI: https://updatedatasydneytoday.com
Description: Theme khusus Update Data Sydney Today – rekaman hasil pengeluaran Sydney otomatis, live draw, data lengkap, paito warna, schema markup, canonical, dan robots.txt siap SEO.
Version: 1.0.1
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: updatedatasydney
Tags: two-columns, right-sidebar, custom-logo, custom-menu, threaded-comments
*/

:root {
	--udst-bg: #0a2219;
	--udst-bg-2: #0f2e23;
	--udst-deep: #0d3b2e;
	--udst-primary: #138a5a;
	--udst-primary-2: #1fb37a;
	--udst-mint: #7ee8b8;
	--udst-mint-soft: #eaf8f1;
	--udst-surface: #ffffff;
	--udst-text: #1c2a24;
	--udst-muted: #5a6b63;
	--udst-border: #cfe2d8;
	--udst-live: #e5484d;
	--udst-gold: #f3c34f;
	--udst-radius: 10px;
	--udst-font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--udst-font-head: "Roboto Condensed", "Arial Narrow", "Roboto", system-ui, sans-serif;
	--udst-font-mono: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
}

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

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

body {
	margin: 0;
	background: var(--udst-bg);
	background-image:
		radial-gradient(1200px 500px at 50% -200px, rgba(31, 179, 122, .25), transparent 70%),
		linear-gradient(180deg, var(--udst-bg-2), var(--udst-bg));
	background-attachment: fixed;
	color: var(--udst-text);
	font-family: var(--udst-font);
	font-size: 15px;
	line-height: 1.7;
}

img { max-width: 100%; height: auto; }

a { color: var(--udst-primary); }
a:hover, a:focus { color: var(--udst-deep); }

.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;
}
.screen-reader-text:focus {
	background: #fff; clip: auto !important; clip-path: none; color: var(--udst-deep);
	display: block; font-weight: 700; height: auto; left: 8px; padding: 12px 18px;
	top: 8px; width: auto; z-index: 100000;
}

.udst-wrap {
	max-width: 1060px;
	margin: 0 auto;
	background: #f3f7f5;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 20px 60px rgba(0, 0, 0, .45);
	min-height: 100vh;
}

/* ---------- Header ---------- */
.udst-header {
	background: #fff;
	border-bottom: 4px solid var(--udst-primary);
}
.udst-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px;
}
.udst-brand { display: inline-flex; align-items: center; text-decoration: none; }
.udst-brand img { display: block; width: 300px; max-width: 100%; height: auto; }
.udst-brand__text { font-family: var(--udst-font-head); font-size: 28px; font-weight: 700; color: var(--udst-deep); }

.udst-header__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	font-size: 13px;
	color: var(--udst-muted);
	text-align: right;
}
.udst-chip {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--udst-mint-soft);
	border: 1px solid var(--udst-border);
	color: var(--udst-deep);
	border-radius: 999px;
	padding: 3px 12px;
	font-weight: 600;
	font-size: 13px;
	white-space: nowrap;
}
.udst-dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--udst-primary-2);
	box-shadow: 0 0 0 0 rgba(31, 179, 122, .6);
	animation: udst-pulse 1.8s infinite;
}
.udst-dot.is-live { background: var(--udst-live); box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); }
@keyframes udst-pulse {
	0% { box-shadow: 0 0 0 0 rgba(31, 179, 122, .55); }
	70% { box-shadow: 0 0 0 8px rgba(31, 179, 122, 0); }
	100% { box-shadow: 0 0 0 0 rgba(31, 179, 122, 0); }
}

/* ---------- Navigation ---------- */
.udst-nav {
	background: linear-gradient(180deg, var(--udst-primary), #0f6f49);
	border-bottom: 1px solid #0b5a3b;
	position: relative;
}
.udst-nav__toggle {
	display: none;
	background: transparent; border: 0; color: #fff;
	font: 600 15px var(--udst-font-head);
	padding: 12px 20px; cursor: pointer; width: 100%; text-align: left;
}
.udst-nav__toggle span { display: inline-block; width: 18px; height: 2px; background: #fff; position: relative; vertical-align: middle; margin-right: 10px; }
.udst-nav__toggle span::before, .udst-nav__toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff; }
.udst-nav__toggle span::before { top: -6px; }
.udst-nav__toggle span::after { top: 6px; }
.udst-menu { list-style: none; margin: 0; padding: 0 12px; display: flex; flex-wrap: wrap; }
.udst-menu li { position: relative; }
.udst-menu a {
	display: block;
	color: #fff;
	text-decoration: none;
	font-family: var(--udst-font-head);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .2px;
	padding: 11px 14px;
}
.udst-menu a:hover, .udst-menu a:focus,
.udst-menu .current-menu-item > a, .udst-menu .current_page_item > a {
	background: rgba(0, 0, 0, .18);
	color: var(--udst-mint);
}
.udst-menu .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 200px; background: var(--udst-deep); list-style: none; margin: 0; padding: 6px 0; z-index: 30; }
.udst-menu li:hover > .sub-menu, .udst-menu li:focus-within > .sub-menu { display: block; }

.udst-banner { padding: 12px 20px 0; }
.udst-banner img { display: block; margin: 0 auto; }
.udst-banner .widget { margin: 0 0 10px; }

/* ---------- Layout ---------- */
.udst-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 18px;
	padding: 18px 20px 28px;
}
.udst-content { min-width: 0; }

.udst-box {
	background: var(--udst-surface);
	border: 1px solid #b9cfc4;
	border-radius: 4px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
	padding: 18px 20px 22px;
	margin-bottom: 18px;
}

.udst-breadcrumb { font-size: 13px; color: var(--udst-muted); margin: 0 0 8px; }
.udst-breadcrumb a { color: var(--udst-primary); text-decoration: none; }
.udst-breadcrumb span[aria-hidden] { margin: 0 6px; color: #9db3a8; }

.udst-title {
	font-family: var(--udst-font-head);
	font-weight: 600;
	font-size: 26px;
	line-height: 1.25;
	color: var(--udst-deep);
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--udst-border);
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 {
	font-family: var(--udst-font-head);
	color: var(--udst-deep);
	line-height: 1.3;
	margin: 1.6em 0 .6em;
}
.entry-content h2 { font-size: 22px; text-align: center; }
.entry-content h3 { font-size: 18px; }
.entry-content p { margin: 0 0 1em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--udst-primary-2); background: var(--udst-mint-soft); }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content figure { margin: 1em 0; }
.entry-content .wp-block-image figcaption, .wp-caption-text { font-size: 13px; color: var(--udst-muted); }

.udst-meta { font-size: 13px; color: var(--udst-muted); margin: -6px 0 14px; }

.udst-note {
	font-size: 13px;
	color: var(--udst-muted);
	background: var(--udst-mint-soft);
	border: 1px dashed var(--udst-border);
	border-radius: 8px;
	padding: 10px 14px;
	margin: 14px 0;
}

/* ---------- Result board ---------- */
.udst-board {
	max-width: 520px;
	margin: 20px auto 24px;
	background: linear-gradient(160deg, #13744c 0%, #0d3b2e 100%);
	border-radius: 6px;
	padding: 8px;
	color: #fff;
	box-shadow: 0 10px 28px rgba(13, 59, 46, .35), inset 0 0 0 1px rgba(126, 232, 184, .25);
	font-family: var(--udst-font-mono);
}
.udst-board__head {
	background: #fff;
	color: var(--udst-primary);
	text-align: center;
	border-radius: 10px;
	padding: 8px 10px;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: .5px;
}
.udst-board__date {
	text-align: center;
	font-size: 19px;
	font-weight: 700;
	padding: 10px 6px 8px;
	color: #f1fff8;
}
.udst-board__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-top: 6px;
}
.udst-board__cell {
	background: rgba(0, 0, 0, .22);
	border-radius: 8px;
	padding: 9px 10px;
	text-align: center;
	font-size: 19px;
	font-weight: 700;
}
.udst-board__cell sup { font-size: 12px; }
.udst-board__num {
	color: var(--udst-mint);
	letter-spacing: 4px;
	font-size: 22px;
	font-variant-numeric: tabular-nums;
}
.udst-board__num .d { display: inline-block; min-width: .7em; }
.udst-board__num.is-rolling .d { animation: udst-roll .12s steps(1) infinite; color: #b9f3d8; }
@keyframes udst-roll { 50% { opacity: .55; transform: translateY(-1px); } }
.udst-board__status {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	margin-top: 8px;
	padding: 8px;
	font-family: var(--udst-font);
	font-size: 13px;
	background: rgba(0, 0, 0, .25);
	border-radius: 8px;
	color: #d8f6e8;
	flex-wrap: wrap;
	text-align: center;
}
.udst-board__status strong { color: #fff; }
.udst-board__live {
	display: none;
	background: var(--udst-live);
	color: #fff;
	font-weight: 700;
	letter-spacing: 1px;
	border-radius: 4px;
	padding: 1px 8px;
	font-size: 12px;
}
.udst-board.is-live .udst-board__live { display: inline-block; }

/* ---------- Tables ---------- */
.udst-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0 18px; border-radius: 6px; border: 1px solid var(--udst-border); }
.udst-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.udst-table caption { caption-side: top; text-align: left; font-weight: 700; color: var(--udst-deep); padding: 8px 10px; }
.udst-table th {
	background: linear-gradient(180deg, var(--udst-primary), #0f6f49);
	color: #fff;
	font-family: var(--udst-font-head);
	font-weight: 600;
	padding: 9px 10px;
	text-align: center;
	white-space: nowrap;
}
.udst-table td { padding: 8px 10px; border-top: 1px solid #e3eee8; text-align: center; white-space: nowrap; }
.udst-table tbody tr:nth-child(even) td { background: #f6fbf8; }
.udst-table tbody tr:hover td { background: #e7f6ee; }
.udst-table .num { font-family: var(--udst-font-mono); font-weight: 700; letter-spacing: 2px; color: var(--udst-deep); }
.udst-table .num.first { color: var(--udst-primary); font-size: 15px; }
.udst-table .is-new td { background: #fff9e3 !important; }

.udst-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; justify-content: center; }
.udst-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	background: #fff;
	border: 1px solid var(--udst-border);
	color: var(--udst-deep);
	border-radius: 6px;
	padding: 6px 12px;
	font: 600 13px var(--udst-font);
	cursor: pointer;
	text-decoration: none;
	line-height: 1.4;
}
.udst-btn:hover, .udst-btn:focus { border-color: var(--udst-primary); color: var(--udst-primary); }
.udst-btn.is-active, .udst-btn--primary { background: var(--udst-primary); border-color: var(--udst-primary); color: #fff; }
.udst-btn--primary:hover, .udst-btn--primary:focus { background: var(--udst-deep); color: #fff; }
.udst-center { text-align: center; }

/* ---------- Paito ---------- */
.udst-paito-tools {
	background: var(--udst-mint-soft);
	border: 1px solid var(--udst-border);
	border-radius: 8px;
	padding: 10px 12px;
	margin: 12px 0;
	display: grid;
	gap: 8px;
}
.udst-paito-tools__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.udst-paito-tools label { font-weight: 600; font-size: 13px; color: var(--udst-deep); margin-right: 4px; }
.udst-paito-tools select { padding: 5px 8px; border-radius: 6px; border: 1px solid var(--udst-border); font: inherit; font-size: 13px; }
.udst-swatch { width: 26px; height: 26px; border-radius: 6px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--udst-border); cursor: pointer; padding: 0; }
.udst-swatch.is-active { box-shadow: 0 0 0 2px var(--udst-deep); }
.udst-digit-btn { width: 30px; height: 30px; padding: 0; }
.udst-paito { font-size: 13px; }
.udst-paito td { padding: 4px 3px; }
.udst-paito .pd {
	display: inline-block;
	width: 1.25em;
	font-family: var(--udst-font-mono);
	font-weight: 700;
	cursor: pointer;
	border-radius: 3px;
	color: var(--udst-deep);
	user-select: none;
}
.udst-paito .pd:hover { outline: 1px solid var(--udst-primary-2); }
.udst-paito .empty { color: #b6c7bf; }
.udst-paito .wk { color: var(--udst-muted); font-size: 12px; }

/* ---------- Stats ---------- */
.udst-stats td.hot { background: #ffe9a8 !important; font-weight: 700; }

/* ---------- Sidebar ---------- */
.udst-sidebar { min-width: 0; }
.udst-widget {
	background: #fff;
	border: 1px solid #b9cfc4;
	border-radius: 4px;
	margin-bottom: 16px;
	overflow: hidden;
}
.udst-widget__title, .udst-widget .widget-title, .udst-widget .wp-block-heading {
	margin: 0;
	background: linear-gradient(180deg, var(--udst-primary-2), var(--udst-primary));
	color: #fff;
	font-family: var(--udst-font-head);
	font-weight: 600;
	font-size: 17px;
	padding: 8px 12px;
	text-shadow: 0 1px 0 rgba(0, 0, 0, .2);
}
.udst-widget__body { padding: 8px 12px 12px; font-size: 14px; }
.udst-widget > *:not(.udst-widget__title):not(.widget-title):not(.wp-block-heading):not(.udst-widget__body) { padding-left: 12px; padding-right: 12px; }
.udst-widget ul { list-style: none; margin: 0; padding: 0; }
.udst-widget li { border-bottom: 1px solid #e3eee8; }
.udst-widget li:last-child { border-bottom: 0; }
.udst-widget li a { display: block; padding: 7px 4px; text-decoration: none; color: #1d5b8a; }
.udst-widget li a:hover { color: var(--udst-primary); background: #f3faf6; }
.udst-mini { width: 100%; border-collapse: collapse; font-size: 13px; }
.udst-mini td { padding: 6px 4px; border-bottom: 1px solid #e3eee8; }
.udst-mini tr:last-child td { border-bottom: 0; }
.udst-mini .num { font-family: var(--udst-font-mono); font-weight: 700; color: var(--udst-primary); letter-spacing: 2px; text-align: right; }
.udst-countdown { font-family: var(--udst-font-mono); font-size: 22px; font-weight: 700; color: var(--udst-deep); text-align: center; letter-spacing: 1px; }

/* ---------- Social ---------- */
.udst-social { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.udst-social li { border: 0 !important; }
.udst-social a {
	display: inline-flex !important; align-items: center; gap: 6px;
	padding: 5px 11px !important;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	color: #fff !important;
	background: var(--udst-deep);
}
.udst-social a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; }
.udst-social a:hover, .udst-social a:focus { filter: brightness(1.15); background-color: var(--udst-deep); }
.udst-social .s-discord a { background: #4f5bd5; }
.udst-social .s-telegram a { background: #2490c9; }
.udst-social .s-facebook a { background: #2d63c8; }
.udst-social .s-instagram a { background: #c13584; }
.udst-social .s-x a { background: #111; }
.udst-social .s-youtube a { background: #d62b2b; }
.udst-social .s-tiktok a { background: #222; }
.udst-social .s-pinterest a { background: #b7081b; }

/* ---------- Comments ---------- */
.udst-comments h2, .udst-comments h3, .comment-reply-title { font-family: var(--udst-font-head); color: var(--udst-deep); font-size: 20px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 20px; }
.comment-list .children { list-style: none; padding-left: 22px; }
.comment-body { border: 1px solid var(--udst-border); border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; background: #fbfefc; }
.comment-meta { font-size: 13px; color: var(--udst-muted); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.comment-awaiting-moderation { display: block; color: #9a6b00; font-size: 13px; }
.comment-form label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 9px 11px; border: 1px solid var(--udst-border); border-radius: 6px; font: inherit;
}
.comment-form p { margin: 0 0 12px; }
.comment-form .submit, .udst-search button {
	background: var(--udst-primary); color: #fff; border: 0; border-radius: 6px; padding: 9px 18px; font-weight: 700; cursor: pointer;
}
.comment-form .submit:hover { background: var(--udst-deep); }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* ---------- Posts list ---------- */
.udst-post { padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px solid var(--udst-border); }
.udst-post:last-child { border-bottom: 0; }
.udst-post h2 { font-family: var(--udst-font-head); font-size: 20px; margin: 0 0 4px; }
.udst-post h2 a { text-decoration: none; color: var(--udst-deep); }
.udst-pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.udst-pagination .page-numbers { padding: 5px 11px; border: 1px solid var(--udst-border); border-radius: 6px; text-decoration: none; background: #fff; }
.udst-pagination .current { background: var(--udst-primary); color: #fff; border-color: var(--udst-primary); }

.udst-search { display: flex; gap: 6px; }
.udst-search input { flex: 1; padding: 8px 10px; border: 1px solid var(--udst-border); border-radius: 6px; font: inherit; min-width: 0; }

/* ---------- Footer ---------- */
.udst-footer { background: var(--udst-deep); color: #cfe9dd; font-size: 14px; }
.udst-footer a { color: #e9fff5; text-decoration: none; }
.udst-footer a:hover { color: var(--udst-mint); }
.udst-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; padding: 26px 20px 10px; }
.udst-footer h2 { font-family: var(--udst-font-head); font-size: 17px; color: #fff; margin: 0 0 10px; }
.udst-footer ul { list-style: none; margin: 0; padding: 0; }
.udst-footer li { margin-bottom: 6px; }
.udst-footer__logo { display: inline-block; background: #fff; border-radius: 8px; padding: 6px 10px; margin-bottom: 10px; }
.udst-footer__logo img { width: 190px; display: block; }
.udst-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 14px 20px 18px; font-size: 12.5px; color: #a9cdbd; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.udst-18 { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--udst-gold); color: var(--udst-gold); font-weight: 800; font-size: 11px; margin-right: 8px; vertical-align: middle; }

.alignleft { float: left; margin: 0 16px 10px 0; }
.alignright { float: right; margin: 0 0 10px 16px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.udst-main { grid-template-columns: minmax(0, 1fr); }
	.udst-footer__grid { grid-template-columns: 1fr 1fr; }
	.udst-footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
	body { font-size: 15px; }
	.udst-header__inner { flex-direction: column; align-items: center; padding: 12px 16px; }
	.udst-header__meta { align-items: center; text-align: center; }
	.udst-brand img { width: 250px; }
	.udst-nav__toggle { display: block; }
	.udst-menu { display: none; flex-direction: column; padding: 0 0 8px; }
	.udst-nav.is-open .udst-menu { display: flex; }
	.udst-menu a { padding: 10px 20px; border-top: 1px solid rgba(255, 255, 255, .08); }
	.udst-menu .sub-menu { position: static; display: block; padding-left: 14px; background: transparent; }
	.udst-main { padding: 14px 12px 22px; gap: 14px; }
	.udst-banner { padding: 10px 12px 0; }
	.udst-box { padding: 14px 14px 18px; }
	.udst-title { font-size: 22px; }
	.udst-board__head { font-size: 20px; }
	.udst-board__date { font-size: 16px; }
	.udst-board__cell { font-size: 16px; padding: 8px 6px; }
	.udst-board__num { font-size: 19px; letter-spacing: 3px; }
	.udst-footer__grid { grid-template-columns: 1fr; padding: 22px 16px 6px; }
	.udst-footer__bottom { padding: 12px 16px 16px; }
	.udst-table { font-size: 13px; }
	.udst-table td, .udst-table th { padding: 7px 5px; }
	.udst-table .num { letter-spacing: 1px; }
	.udst-paito td { padding: 4px 1px; }
}

@media (prefers-reduced-motion: reduce) {
	.udst-dot, .udst-board__num.is-rolling .d { animation: none; }
}
