/*
Theme Name: Update SDY Today
Theme URI: https://updatesdytoday.com
Author: Update SDY Today
Author URI: https://updatesdytoday.com
Description: Tema khusus Update SDY Today – data & result Sydney (SDY) otomatis, tabel rekap mingguan, paito warna, live draw, schema markup, canonical, dan robots.txt siap SEO.
Version: 1.1.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: updatesdy
Tags: two-columns, right-sidebar, custom-logo, custom-menu, threaded-comments
*/

:root {
	--usdy-yellow: #ffc400;
	--usdy-yellow-2: #ffd84a;
	--usdy-gold: #e0a100;
	--usdy-ink: #111111;
	--usdy-ink-2: #1d1d1d;
	--usdy-text: #2b2b2b;
	--usdy-muted: #6a6a6a;
	--usdy-line: #d9d9d9;
	--usdy-soft: #f7f7f7;
	--usdy-bg: #ececec;
	--usdy-card: #ffffff;
	--usdy-link: #0d4f8b;
	--usdy-radius: 4px;
	--usdy-head: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	--usdy-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

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

body {
	margin: 0;
	background: var(--usdy-bg);
	color: var(--usdy-text);
	font-family: var(--usdy-body);
	font-size: 16px;
	line-height: 1.7;
}

img { max-width: 100%; height: auto; }
a { color: var(--usdy-link); }
a:hover { color: #08345c; }

h1, h2, h3, h4 {
	font-family: var(--usdy-head);
	color: #1e1e1e;
	line-height: 1.25;
	margin: 1.4em 0 .6em;
}
h1 { font-size: 28px; font-weight: 600; }
h2 { font-size: 24px; font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }

.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 !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000;
	background: var(--usdy-yellow); color: #000; padding: 10px 16px; left: 8px; top: 8px;
}

.usdy-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* ---------- Top bar ---------- */
.usdy-topbar { background: var(--usdy-ink); color: #d6d6d6; font-size: 13px; }
.usdy-topbar .usdy-container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.usdy-topbar strong { color: var(--usdy-yellow); font-weight: 600; }
.usdy-topbar-social { display: flex; gap: 12px; }
.usdy-topbar-social a { color: #d6d6d6; text-decoration: none; }
.usdy-topbar-social a:hover { color: var(--usdy-yellow); }

/* ---------- Header ---------- */
.usdy-header { background: #fff; border-bottom: 1px solid #e6e6e6; }
.usdy-header .usdy-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.usdy-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.usdy-brand img, .usdy-brand .custom-logo { height: 72px; width: auto; display: block; }
.usdy-site-title { font-family: var(--usdy-head); font-size: 26px; font-weight: 700; color: var(--usdy-ink); margin: 0; }
.usdy-tagline { margin: 0; font-size: 13px; color: var(--usdy-muted); }

.usdy-header-result {
	display: flex; align-items: center; gap: 12px;
	background: var(--usdy-ink); color: #fff; border-radius: 6px;
	padding: 8px 14px; text-decoration: none; border-bottom: 3px solid var(--usdy-yellow);
}
.usdy-header-result:hover { color: #fff; background: #000; }
.usdy-header-result small { display: block; font-size: 11px; color: #bdbdbd; text-transform: uppercase; letter-spacing: .06em; line-height: 1.3; }
.usdy-header-result b { display: block; font-family: var(--usdy-head); font-size: 15px; line-height: 1.3; }
.usdy-header-result .usdy-hr-num { font-family: var(--usdy-head); font-size: 34px; font-weight: 700; color: var(--usdy-yellow); letter-spacing: .08em; line-height: 1; }

/* ---------- Navigation ---------- */
.usdy-nav { background: linear-gradient(180deg, var(--usdy-yellow-2) 0%, var(--usdy-yellow) 55%, #f2b300 100%); border-bottom: 3px solid var(--usdy-ink); position: relative; z-index: 20; }
.usdy-nav .usdy-container { display: flex; align-items: center; }
.usdy-nav ul { list-style: none; margin: 0; padding: 0; }
.usdy-menu { display: flex; flex-wrap: wrap; }
.usdy-menu > li { position: relative; }
.usdy-menu a {
	display: block; padding: 12px 15px; color: var(--usdy-ink); text-decoration: none;
	font-family: var(--usdy-head); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .02em;
}
.usdy-menu a:hover, .usdy-menu a:focus,
.usdy-menu .current-menu-item > a, .usdy-menu .current_page_item > a {
	background: var(--usdy-ink); color: var(--usdy-yellow);
}
.usdy-menu .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--usdy-ink); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.usdy-menu li:hover > .sub-menu, .usdy-menu li:focus-within > .sub-menu { display: block; }
.usdy-menu .sub-menu a { color: #fff; text-transform: none; font-weight: 400; }
.usdy-menu .sub-menu a:hover { color: var(--usdy-yellow); }
.usdy-nav-toggle {
	display: none; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer;
	padding: 12px 0; font-family: var(--usdy-head); font-weight: 700; font-size: 16px; text-transform: uppercase; color: var(--usdy-ink);
}
.usdy-nav-toggle span.bars { display: inline-block; width: 20px; height: 2px; background: var(--usdy-ink); position: relative; }
.usdy-nav-toggle span.bars::before, .usdy-nav-toggle span.bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--usdy-ink); }
.usdy-nav-toggle span.bars::before { top: -6px; }
.usdy-nav-toggle span.bars::after { top: 6px; }

/* ---------- Layout ---------- */
.usdy-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; margin-top: 20px; margin-bottom: 28px; }
.usdy-card { background: var(--usdy-card); border: 1px solid #d3d3d3; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.usdy-content { padding: 20px 24px 26px; }
.usdy-content > *:first-child { margin-top: 0; }

.usdy-breadcrumb { font-size: 13px; color: var(--usdy-muted); margin-bottom: 8px; }
.usdy-breadcrumb a { color: var(--usdy-muted); text-decoration: none; }
.usdy-breadcrumb a:hover { color: var(--usdy-link); text-decoration: underline; }
.usdy-breadcrumb .sep { margin: 0 6px; color: #b0b0b0; }

.entry-title { margin: 0 0 14px; font-size: 28px; font-weight: 500; color: #222; }
.entry-meta { font-size: 13px; color: var(--usdy-muted); margin: -6px 0 14px; }
.entry-content p { margin: 0 0 1.05em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content figure { margin: 0 0 1.2em; }
.entry-content figcaption, .wp-caption-text { font-size: 13px; color: #555; padding: 6px 4px 0; }
.entry-content blockquote { margin: 0 0 1.2em; padding: 12px 16px; background: var(--usdy-soft); border-left: 4px solid var(--usdy-yellow); }
.entry-content hr { border: 0; border-top: 1px solid var(--usdy-line); margin: 1.6em 0; }
.usdy-note { background: #fff8d9; border: 1px solid #f1d77a; border-radius: var(--usdy-radius); padding: 12px 14px; font-size: 15px; }
.usdy-note-dark { background: var(--usdy-ink); color: #eee; border: 0; border-left: 4px solid var(--usdy-yellow); }
.usdy-note-dark a { color: var(--usdy-yellow); }

.usdy-banner { margin: 0 0 1.2em; }
.usdy-banner img { display: block; width: 100%; border: 1px solid #cfcfcf; }

/* ---------- SDY tables ---------- */
.usdy-table-wrap { margin: 0 0 1.6em; }
.usdy-table-title { text-align: center; margin: 1.2em 0 .5em; font-size: 26px; font-weight: 700; }
.usdy-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.usdy-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.usdy-table th {
	background: linear-gradient(180deg, var(--usdy-yellow-2), var(--usdy-yellow));
	color: var(--usdy-ink); font-family: var(--usdy-head); font-weight: 700; text-transform: uppercase;
	padding: 8px 6px; border: 1px solid #d9a900; text-align: center; letter-spacing: .03em;
}
.usdy-table td { border: 1px solid #dcdcdc; padding: 6px; height: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.usdy-table tbody tr:nth-child(even) td { background: #fafafa; }
.usdy-table tbody tr:hover td { background: #fff7d1; }
.usdy-table td.is-empty { color: #b8b8b8; }
.usdy-table td.is-out { background: #f1f1f1 !important; }
.usdy-table td.is-latest { background: var(--usdy-ink) !important; color: var(--usdy-yellow); font-weight: 700; }
.usdy-table td.is-today:not(.is-latest) { outline: 2px solid var(--usdy-yellow); outline-offset: -2px; }
.usdy-table .usdy-col-date { white-space: nowrap; text-align: left; }
.usdy-years-nav { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 1em; }
.usdy-years-nav a {
	display: inline-block; padding: 4px 12px; border: 1px solid var(--usdy-ink); border-radius: 20px;
	text-decoration: none; color: var(--usdy-ink); font-family: var(--usdy-head); font-weight: 700; font-size: 14px;
}
.usdy-years-nav a:hover { background: var(--usdy-ink); color: var(--usdy-yellow); }
.usdy-empty { text-align: center; padding: 18px; background: var(--usdy-soft); border: 1px dashed #cfcfcf; color: var(--usdy-muted); }

/* ---------- Result today ---------- */
.usdy-today { border: 2px solid var(--usdy-ink); border-radius: 6px; overflow: hidden; margin: 0 0 1.6em; background: #fff; }
.usdy-today-head { background: var(--usdy-ink); color: var(--usdy-yellow); font-family: var(--usdy-head); font-weight: 700; font-size: 18px; text-transform: uppercase; padding: 9px 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.usdy-today-head span { color: #dcdcdc; font-weight: 400; text-transform: none; font-size: 14px; align-self: center; }
.usdy-today-body { padding: 18px 14px; text-align: center; }
.usdy-balls { display: flex; justify-content: center; gap: 10px; margin: 4px 0 10px; }
.usdy-ball {
	width: 62px; height: 62px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 35% 30%, #fff3b0 0%, var(--usdy-yellow) 45%, #d99a00 100%);
	color: var(--usdy-ink); font-family: var(--usdy-head); font-weight: 700; font-size: 34px;
	box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 2px 4px rgba(0,0,0,.25); border: 2px solid var(--usdy-ink);
}
.usdy-ball.is-wait { background: #2a2a2a; color: var(--usdy-yellow); animation: usdy-pulse 1.4s ease-in-out infinite; }
.usdy-ball.is-reveal { animation: usdy-flip .6s ease-out both; }
@keyframes usdy-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes usdy-flip { from { transform: rotateX(90deg); } to { transform: rotateX(0); } }
.usdy-today-date { font-weight: 600; color: #222; }
.usdy-today-meta { font-size: 14px; color: var(--usdy-muted); margin-top: 4px; }
.usdy-countdown { font-family: var(--usdy-head); font-weight: 700; color: var(--usdy-ink); background: #fff3c4; padding: 1px 8px; border-radius: 3px; letter-spacing: .04em; }

/* ---------- Latest list ---------- */
.usdy-latest .usdy-num { font-family: var(--usdy-head); font-weight: 700; font-size: 18px; letter-spacing: .08em; }
.usdy-latest tr:first-child .usdy-num { color: #b07a00; }

/* ---------- Paito ---------- */
.usdy-paito-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; font-size: 14px; }
.usdy-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #999; cursor: pointer; padding: 0; }
.usdy-swatch.is-active { box-shadow: 0 0 0 2px var(--usdy-ink); }
.usdy-paito-tools button.usdy-btn-reset { border: 1px solid var(--usdy-ink); background: #fff; padding: 4px 12px; border-radius: 3px; cursor: pointer; font-weight: 600; }
.usdy-paito td, .usdy-paito th { padding: 4px 2px; font-size: 14px; min-width: 22px; height: auto; }
.usdy-paito th.sub { background: #222; color: #ddd; font-size: 11px; border-color: #333; }
.usdy-paito td.d { cursor: pointer; user-select: none; }
.usdy-paito td.day-start { border-left: 2px solid #777; }
.usdy-paito td.c1 { background: #ff5a5a !important; color: #fff; }
.usdy-paito td.c2 { background: #2f9e44 !important; color: #fff; }
.usdy-paito td.c3 { background: #1c7ed6 !important; color: #fff; }
.usdy-paito td.c4 { background: #ffc400 !important; color: #111; }
.usdy-paito td.c5 { background: #9c36b5 !important; color: #fff; }
.usdy-paito td.c6 { background: #111 !important; color: #ffc400; }

/* ---------- Live draw ---------- */
.usdy-live { text-align: center; }
.usdy-live .usdy-today-body { padding: 26px 14px; }
.usdy-live .usdy-ball { width: 78px; height: 78px; font-size: 44px; }
.usdy-live-status { display: inline-block; margin-top: 8px; font-size: 14px; padding: 3px 10px; border-radius: 20px; background: #eee; }
.usdy-live-status.is-live { background: #e03131; color: #fff; }
.usdy-live-status.is-done { background: #2f9e44; color: #fff; }

/* ---------- Auto box & notice ---------- */
.usdy-autobox-bottom { margin-top: 1.8em; padding-top: .4em; border-top: 3px solid var(--usdy-ink); }
.usdy-autobox-bottom .usdy-table-title { margin-top: .6em; }
.usdy-autobox-more { text-align: center; margin: -.6em 0 0; }
.usdy-autobox-more a { display: inline-block; background: var(--usdy-ink); color: var(--usdy-yellow); padding: 8px 18px; border-radius: 3px; text-decoration: none; font-family: var(--usdy-head); font-weight: 700; text-transform: uppercase; }
.usdy-autobox-more a:hover { background: #000; color: #fff; }
.usdy-today-head b { font-weight: 700; }
.usdy-newresult {
	position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 999;
	background: var(--usdy-ink); color: #fff; border: 2px solid var(--usdy-yellow); border-radius: 6px;
	padding: 10px 16px; box-shadow: 0 6px 20px rgba(0,0,0,.35); font-size: 15px; max-width: calc(100% - 32px);
}
.usdy-newresult b { color: var(--usdy-yellow); letter-spacing: .08em; }
.usdy-newresult a { color: var(--usdy-yellow); margin-left: 8px; font-weight: 700; }

/* ---------- Social ---------- */
.usdy-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.usdy-social a {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px;
	color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; background: var(--net, #333);
}
.usdy-social a:hover { filter: brightness(1.12); color: #fff; }
.usdy-social a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.85); }

/* ---------- Sidebar ---------- */
.usdy-sidebar .widget { background: #fff; border: 1px solid #d3d3d3; margin-bottom: 18px; }
.usdy-sidebar .widget-title, .usdy-sidebar .widgettitle, .usdy-sidebar .wp-block-heading {
	margin: 0; background: var(--usdy-ink); color: var(--usdy-yellow); font-family: var(--usdy-head);
	font-size: 19px; font-weight: 700; padding: 8px 14px; border-bottom: 3px solid var(--usdy-yellow);
}
.usdy-sidebar .widget-body { padding: 10px 14px 14px; }
.usdy-sidebar .widget ul { list-style: none; margin: 0; padding: 0 14px 6px; }
.usdy-sidebar .widget .widget-body ul { padding: 0; }
.usdy-sidebar .widget li { border-bottom: 1px solid #ececec; padding: 9px 0; font-size: 15px; }
.usdy-sidebar .widget li:last-child { border-bottom: 0; }
.usdy-sidebar .widget li a { text-decoration: none; }
.usdy-sidebar .widget li a:hover { text-decoration: underline; }
.usdy-side-result { text-align: center; }
.usdy-side-result .usdy-ball { width: 50px; height: 50px; font-size: 28px; }
.usdy-side-list li { display: flex; justify-content: space-between; gap: 8px; }
.usdy-side-list b { font-family: var(--usdy-head); letter-spacing: .08em; font-size: 17px; }
.usdy-search { display: flex; }
.usdy-search input[type=search] { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #bbb; border-right: 0; font-size: 15px; }
.usdy-search button { border: 0; background: var(--usdy-ink); color: var(--usdy-yellow); padding: 0 14px; font-weight: 700; cursor: pointer; }

/* ---------- Posts list ---------- */
.usdy-post-item { padding: 14px 0; border-bottom: 1px solid #eee; }
.usdy-post-item h2 { margin: 0 0 4px; font-size: 21px; }
.usdy-post-item h2 a { color: #1e1e1e; text-decoration: none; }
.usdy-post-item h2 a:hover { color: var(--usdy-link); }
.usdy-pagination { margin-top: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.usdy-pagination .page-numbers { padding: 6px 12px; border: 1px solid #ccc; text-decoration: none; color: #222; }
.usdy-pagination .current { background: var(--usdy-ink); color: var(--usdy-yellow); border-color: var(--usdy-ink); }

/* ---------- Comments ---------- */
.usdy-comments { margin-top: 26px; border-top: 3px solid var(--usdy-ink); padding-top: 10px; }
.usdy-comments ol { list-style: none; padding: 0; }
.usdy-comments ol.children { padding-left: 22px; }
.usdy-comments .comment-body { border: 1px solid #e3e3e3; padding: 12px 14px; margin-bottom: 12px; background: var(--usdy-soft); }
.usdy-comments .comment-meta { font-size: 13px; color: var(--usdy-muted); }
.usdy-comments .comment-awaiting-moderation { color: #a35f00; font-size: 13px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
	width: 100%; padding: 8px 10px; border: 1px solid #bbb; font: inherit;
}
.comment-form .submit, .usdy-btn {
	background: var(--usdy-ink); color: var(--usdy-yellow); border: 0; padding: 10px 18px; font-weight: 700; cursor: pointer; text-transform: uppercase; font-family: var(--usdy-head);
}

/* ---------- Footer ---------- */
.usdy-footer { background: var(--usdy-ink); color: #bdbdbd; font-size: 14px; border-top: 4px solid var(--usdy-yellow); }
.usdy-footer a { color: #e6e6e6; text-decoration: none; }
.usdy-footer a:hover { color: var(--usdy-yellow); }
.usdy-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 28px; padding-top: 30px; padding-bottom: 24px; }
.usdy-footer h3 { color: #fff; font-size: 17px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .04em; }
.usdy-footer-logo { display: inline-block; background: #fff; padding: 8px 12px; border-radius: 6px; margin-bottom: 12px; }
.usdy-footer-logo img { height: 52px; width: auto; display: block; }
.usdy-footer ul { list-style: none; margin: 0; padding: 0; }
.usdy-footer li { padding: 4px 0; }
.usdy-footer-bottom { border-top: 1px solid #2c2c2c; padding: 14px 0; font-size: 13px; }
.usdy-footer-bottom .usdy-container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.usdy-age { display: inline-block; border: 1px solid var(--usdy-yellow); color: var(--usdy-yellow); border-radius: 3px; padding: 0 6px; font-weight: 700; margin-right: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.usdy-main { grid-template-columns: minmax(0, 1fr); }
	.usdy-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	.usdy-topbar .usdy-topbar-social, .usdy-hide-sm { display: none; }
	.usdy-header .usdy-container { flex-wrap: wrap; }
	.usdy-brand img, .usdy-brand .custom-logo { height: 54px; }
	.usdy-header-result { width: 100%; justify-content: space-between; }
	.usdy-nav-toggle { display: inline-flex; }
	.usdy-menu { display: none; width: 100%; flex-direction: column; }
	.usdy-nav.is-open .usdy-menu { display: flex; }
	.usdy-nav .usdy-container { flex-wrap: wrap; }
	.usdy-menu a { border-top: 1px solid rgba(0,0,0,.12); }
	.usdy-menu .sub-menu { position: static; display: block; box-shadow: none; }
	.usdy-content { padding: 16px; }
	.entry-title { font-size: 24px; }
	.usdy-table { font-size: 14px; }
	.usdy-table td, .usdy-table th { padding: 6px 3px; }
	.usdy-ball { width: 52px; height: 52px; font-size: 28px; }
	.usdy-live .usdy-ball { width: 62px; height: 62px; font-size: 34px; }
	.usdy-footer-grid { grid-template-columns: 1fr; }
}
