/*
Theme Name: Lottery Sydney Today
Theme URI: https://datakeluaransydneytoday.com
Author: Lottery Sydney Today
Author URI: https://datakeluaransydneytoday.com
Description: Tema portal hasil undian Sydney: paito warna, data keluaran, live draw, statistik angka, update hasil otomatis, SEO (canonical, meta robots, robots.txt) dan schema markup siap pakai.
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: lst
Tags: two-columns, right-sidebar, custom-menu, custom-logo, threaded-comments
*/

:root {
	--lst-accent: #ffb000;
	--lst-accent-soft: #ffd35a;
	--lst-accent-ink: #8a5300;
	--lst-ink: #1c1c1c;
	--lst-text: #2b2b2b;
	--lst-muted: #6b6b6b;
	--lst-dark: #161616;
	--lst-dark-2: #232323;
	--lst-line: #e3e3e3;
	--lst-soft: #f6f5f1;
	--lst-white: #ffffff;
	--lst-radius: 6px;
	--lst-font: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: #0f0f0f;
	color: var(--lst-text);
	font-family: var(--lst-font);
	font-size: 16px;
	line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--lst-accent-ink); text-decoration: none; }
a:hover, a:focus { color: #000; text-decoration: underline; }
h1, h2, h3, h4 { color: var(--lst-ink); line-height: 1.3; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--lst-accent); color: #000; padding: 8px 14px; border-radius: 4px;
}

/* ---------- Layout ---------- */
.site { max-width: 1000px; margin: 0 auto; background: var(--lst-white); min-height: 100vh; }
.topbar {
	background: var(--lst-dark); color: #d9d9d9; font-size: 13px;
	border-bottom: 3px solid var(--lst-accent);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; min-height: 40px; }
.topbar__date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .lst-social { gap: 6px; }
.topbar .lst-social a { width: 26px; height: 26px; }

.site-header { background: var(--lst-soft); border-bottom: 1px solid var(--lst-line); }
.site-branding { text-align: center; padding: 20px 16px; }
.site-branding a { display: inline-block; }
.site-branding img { display: block; max-height: 150px; width: auto; margin: 0 auto; }
.site-branding .site-title-text { font-size: 2rem; font-weight: 800; color: var(--lst-ink); }

.main-nav { background: var(--lst-dark-2); position: relative; }
.main-nav__toggle {
	display: none; width: 100%; background: transparent; color: #fff; border: 0;
	padding: 12px 16px; font: inherit; font-weight: 700; text-align: left; cursor: pointer;
}
.main-nav__toggle span { display: inline-block; width: 18px; height: 2px; background: var(--lst-accent); position: relative; margin-right: 10px; vertical-align: middle; }
.main-nav__toggle span::before, .main-nav__toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--lst-accent); }
.main-nav__toggle span::before { top: -6px; }
.main-nav__toggle span::after { top: 6px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav a {
	display: block; color: #f2f2f2; padding: 13px 16px; font-weight: 600; font-size: 15px;
	border-right: 1px solid rgba(255,255,255,.08);
}
.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(--lst-accent); color: #000; text-decoration: none;
}
.main-nav ul ul { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--lst-dark-2); z-index: 50; flex-direction: column; }
.main-nav li:hover > ul, .main-nav li:focus-within > ul { display: flex; }

.site-content { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; padding: 16px; }
.content-area { min-width: 0; }
.widget-area { min-width: 0; }

.lst-breadcrumb { font-size: 13px; color: var(--lst-muted); margin: 0 0 10px; }
.lst-breadcrumb a { color: var(--lst-muted); }
.lst-breadcrumb span[aria-current] { color: var(--lst-ink); }

/* ---------- Boxes ---------- */
.lst-box, .entry, .widget {
	background: var(--lst-white); border: 1px solid var(--lst-line); border-radius: var(--lst-radius);
	padding: 16px; margin-bottom: 18px;
}
.entry-title { margin-bottom: .5em; }
.entry-meta { font-size: 13px; color: var(--lst-muted); margin-bottom: 12px; }
.entry-content { text-align: left; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { text-align: center; margin-top: 1.2em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1em; }
.entry-content table:not(.lst-paito):not(.lst-table) td,
.entry-content table:not(.lst-paito):not(.lst-table) th { border: 1px solid var(--lst-line); padding: 6px 8px; }
.entry-thumb { margin: 0 0 14px; }
.entry-thumb img { border-radius: var(--lst-radius); }

.widget-title {
	font-size: 17px; color: var(--lst-ink); margin: 0 0 12px; padding-bottom: 8px;
	border-bottom: 3px solid var(--lst-accent);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { border-bottom: 1px dashed var(--lst-line); padding: 7px 0; font-size: 15px; }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--lst-text); }
.widget li a:hover { color: var(--lst-accent-ink); }

/* ---------- Post list ---------- */
.post-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; }
.post-card--nothumb { grid-template-columns: minmax(0, 1fr); }
.post-card__thumb img { border-radius: var(--lst-radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.post-card__title { font-size: 1.15rem; margin-bottom: 4px; }
.post-card__title a { color: var(--lst-ink); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 18px; }
.pagination .page-numbers {
	display: inline-block; padding: 6px 12px; border: 1px solid var(--lst-line); border-radius: 4px; color: var(--lst-ink);
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--lst-accent); border-color: var(--lst-accent); color: #000; text-decoration: none; }

/* ---------- Buttons & forms ---------- */
.lst-btn, button.lst-btn, input[type="submit"], .comment-form .submit {
	display: inline-block; background: var(--lst-dark-2); color: #fff; border: 0; border-radius: 4px;
	padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer;
}
.lst-btn:hover, input[type="submit"]:hover, .comment-form .submit:hover { background: var(--lst-accent); color: #000; text-decoration: none; }
.lst-btn--accent { background: var(--lst-accent); color: #000; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select {
	width: 100%; padding: 9px 11px; border: 1px solid #cfcfcf; border-radius: 4px; font: inherit; background: #fff; color: var(--lst-text);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--lst-accent); outline-offset: 1px; }
.search-form { display: flex; gap: 6px; }
.search-form label { flex: 1; }

/* ---------- Social ---------- */
.lst-social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.lst-social li { border: 0 !important; padding: 0 !important; }
.lst-social a {
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
	border-radius: 50%; background: var(--lst-dark-2); color: #fff;
}
.lst-social a:hover { background: var(--lst-accent); color: #000; }
.lst-social svg { width: 16px; height: 16px; fill: currentColor; }
.lst-social--labels a { width: auto; border-radius: 4px; padding: 0 12px; gap: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }

/* ---------- Latest result ---------- */
.lst-latest {
	background: linear-gradient(135deg, #1b1b1b 0%, #2a2a2a 100%); color: #f3f3f3;
	border-radius: 10px; padding: 20px 16px; text-align: center; margin: 0 0 18px;
	border: 1px solid #000; box-shadow: inset 0 -4px 0 var(--lst-accent);
}
.lst-latest__label { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--lst-accent-soft); margin: 0 0 2px; font-weight: 700; }
.lst-latest__date { font-size: 15px; margin: 0 0 12px; color: #e8e8e8; }
.lst-balls { display: flex; justify-content: center; gap: 10px; margin: 0 0 14px; }
.lst-ball {
	width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	font-size: 28px; font-weight: 800; color: #111;
	background: radial-gradient(circle at 32% 28%, #fff3c4 0%, var(--lst-accent-soft) 30%, var(--lst-accent) 70%, #c98a00 100%);
	box-shadow: 0 3px 0 rgba(0,0,0,.35);
}
.lst-ball--empty { background: #3a3a3a; color: #888; }
.lst-latest__next { font-size: 14px; color: #d0d0d0; margin: 0; }
.lst-countdown { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--lst-accent); }
.lst-latest__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lst-chip { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 99px; background: rgba(255,176,0,.14); color: var(--lst-accent-soft); border: 1px solid rgba(255,176,0,.35); }

/* ---------- Paito ---------- */
.lst-paito-wrap { margin: 0 0 18px; }
.lst-palette {
	display: flex; border: 3px solid #d7d7d7; border-radius: 4px; overflow: hidden; margin-bottom: 6px;
}
.lst-palette button {
	flex: 1; height: 32px; border: 0; cursor: pointer; padding: 0; font: inherit; font-size: 12px; font-weight: 800;
	position: relative;
}
.lst-palette button[aria-pressed="true"]::after {
	content: ""; position: absolute; inset: 3px; border: 2px solid #000; border-radius: 2px;
}
.lst-palette .lst-clr { background: #2a2a2a; color: #fff; flex: 1.1; }
.lst-paito-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 8px; color: var(--lst-muted); }
.lst-paito-tools label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.lst-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #cfcfcf; border-radius: 4px; }
.lst-paito { min-width: 600px; font-size: 13px; font-variant-numeric: tabular-nums; }
.lst-paito th {
	background: var(--lst-dark-2); color: #fff; font-size: 12px; padding: 6px 2px; text-transform: uppercase; letter-spacing: .03em;
	border: 1px solid #000;
}
.lst-paito th.lst-j { background: #3b3b3b; color: var(--lst-accent-soft); width: 18px; }
.lst-paito td {
	border: 1px solid #d5d5d5; text-align: center; padding: 3px 0; font-weight: 800; color: #222; cursor: pointer;
	user-select: none; min-width: 16px;
}
.lst-paito td.lst-j { color: #b0b0b0; font-weight: 600; background: #fafafa; cursor: default; }
.lst-paito td.lst-gap { cursor: default; }
.lst-paito tr:nth-child(even) td:not(.lst-j):not([data-c]) { background: #f3f3f3; }
.lst-paito td.lst-day-end { border-right: 2px solid #9a9a9a; }
.lst-paito td[data-c] { color: #000; }
.lst-paito-note { font-size: 12px; color: var(--lst-muted); margin-top: 6px; }

/* ---------- Tables ---------- */
.lst-table { font-size: 15px; margin-bottom: 16px; }
.lst-table th { background: var(--lst-dark-2); color: #fff; padding: 9px 8px; text-align: center; font-size: 14px; }
.lst-table td { border-bottom: 1px solid var(--lst-line); padding: 8px; text-align: center; }
.lst-table tbody tr:nth-child(even) td { background: #fafafa; }
.lst-table tbody tr:hover td { background: #fff6dd; }
.lst-num { font-weight: 800; letter-spacing: .18em; font-size: 17px; color: #111; font-variant-numeric: tabular-nums; }
.lst-years { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; justify-content: center; }
.lst-years a {
	padding: 5px 12px; border: 1px solid var(--lst-line); border-radius: 99px; font-size: 14px; color: var(--lst-ink);
}
.lst-years a.is-active, .lst-years a:hover { background: var(--lst-accent); border-color: var(--lst-accent); color: #000; text-decoration: none; }
.lst-empty { background: #fff8e6; border: 1px dashed var(--lst-accent); padding: 14px; border-radius: 6px; text-align: center; color: #5c4300; }

/* ---------- Live draw ---------- */
.lst-live { background: #121212; color: #eee; border-radius: 10px; overflow: hidden; margin-bottom: 18px; border: 1px solid #000; }
.lst-live__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--lst-accent); color: #000; padding: 10px 14px; font-weight: 800; }
.lst-live__dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #d40000; margin-right: 8px; animation: lst-blink 1.2s infinite; vertical-align: middle; }
@keyframes lst-blink { 50% { opacity: .2; } }
.lst-live__body { padding: 18px 14px; text-align: center; }
.lst-live__status { margin: 10px 0 0; font-size: 15px; }
.lst-live table { margin-top: 14px; }
.lst-live td, .lst-live th { border: 1px solid #333; padding: 8px; color: #eee; }
.lst-live th { background: #1f1f1f; color: var(--lst-accent-soft); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .lst-live__dot { animation: none; } }

/* ---------- Stats ---------- */
.lst-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.lst-stat { background: var(--lst-soft); border: 1px solid var(--lst-line); border-radius: 6px; padding: 12px; text-align: center; }
.lst-stat b { display: block; font-size: 22px; color: var(--lst-ink); }
.lst-stat span { font-size: 13px; color: var(--lst-muted); }
.lst-stat--date b { font-size: 16px; line-height: 1.6; }
.lst-heat td { font-variant-numeric: tabular-nums; font-size: 14px; }
.lst-bar { display: flex; height: 22px; border-radius: 4px; overflow: hidden; font-size: 12px; font-weight: 700; margin: 4px 0 12px; }
.lst-bar span { display: flex; align-items: center; justify-content: center; color: #000; min-width: 0; }
.lst-bar span:first-child { background: var(--lst-accent); }
.lst-bar span:last-child { background: #3a3a3a; color: #fff; }
.lst-range { display: flex; gap: 6px; justify-content: center; margin: 0 0 12px; flex-wrap: wrap; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 10px; }
.comment-list { list-style: none; margin: 0 0 16px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 20px; }
.comment-body { border-bottom: 1px solid var(--lst-line); padding: 12px 0; }
.comment-meta { font-size: 13px; color: var(--lst-muted); }
.comment-meta .avatar { float: left; margin-right: 10px; border-radius: 50%; }
.comment-awaiting-moderation { display: block; background: #fff8e6; border-left: 3px solid var(--lst-accent); padding: 6px 10px; font-size: 13px; margin: 6px 0; }
.comment-form p { margin-bottom: 12px; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.lst-moderation-note { font-size: 13px; background: var(--lst-soft); border-left: 3px solid var(--lst-accent); padding: 8px 10px; }

/* ---------- Contact form ---------- */
.lst-form p { margin-bottom: 12px; }
.lst-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.lst-form .lst-hp { position: absolute; left: -9999px; }
.lst-notice { padding: 10px 12px; border-radius: 4px; margin-bottom: 12px; }
.lst-notice--ok { background: #e9f7ec; border: 1px solid #9bd3a6; }
.lst-notice--err { background: #fdecec; border: 1px solid #f0a5a5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--lst-dark); color: #cfcfcf; font-size: 14px; border-top: 4px solid var(--lst-accent); }
.site-footer a { color: #f0f0f0; }
.site-footer a:hover { color: var(--lst-accent); }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; padding: 24px 16px 10px; }
.footer-cols h3 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { padding: 4px 0; }
.footer-logo img { max-height: 60px; width: auto; background: #fff; border-radius: 6px; padding: 6px 10px; }
.footer-disclaimer { margin: 0 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #a9a9a9; }
.footer-bottom { background: #0b0b0b; padding: 12px 16px; text-align: center; font-size: 13px; color: #9a9a9a; }
.lst-18 { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--lst-accent); color: var(--lst-accent); font-weight: 800; font-size: 12px; margin-right: 8px; vertical-align: middle; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.site-content { grid-template-columns: minmax(0, 1fr); }
	.footer-cols { grid-template-columns: 1fr 1fr; }
	.footer-cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
	.main-nav__toggle { display: block; }
	.main-nav ul { display: none; flex-direction: column; }
	.main-nav.is-open > div > ul, .main-nav.is-open > ul { display: flex; }
	.main-nav a { border-right: 0; border-top: 1px solid rgba(255,255,255,.08); }
	.main-nav ul ul { position: static; display: flex; padding-left: 14px; }
	.site-content { padding: 12px; gap: 12px; }
	.site-branding { padding: 14px 16px; }
	.site-branding img { max-height: 110px; }
	h1 { font-size: 1.45rem; }
	.lst-ball { width: 48px; height: 48px; font-size: 24px; }
	.post-card { grid-template-columns: 100px minmax(0, 1fr); }
	.footer-cols { grid-template-columns: 1fr; }
	.topbar__inner { padding: 6px 12px; }
}
@media (max-width: 420px) {
	.topbar .lst-social { display: none; }
}
