/*
Theme Name: Update Sidney Today
Theme URI: https://updatesidneytoday.com
Author: Update Sidney Today
Author URI: https://updatesidneytoday.com
Description: Tema khusus Update Sidney Today – Pusat Informasi Angka dan Jadwal Harian. Tabel data keluaran HK, SGP, SDY, pembaruan otomatis, jadwal harian, SEO (canonical, robots, schema JSON-LD), dan halaman otomatis.
Version: 1.0.0
Requires at least: 6.2
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: ust
*/

:root {
	--ust-olive-950: #1d2509;
	--ust-olive-900: #2a350f;
	--ust-olive-800: #3b4a15;
	--ust-olive-700: #4f6220;
	--ust-olive-600: #687e2b;
	--ust-olive-500: #869b3a;
	--ust-olive-200: #d9e4b2;
	--ust-olive-100: #eef3dc;
	--ust-head: #9fdd86;
	--ust-gold: #c9a24a;
	--ust-gold-200: #ead6a0;
	--ust-cream: #fbf6e6;
	--ust-bg: #f4f5ee;
	--ust-card: #ffffff;
	--ust-text: #1f2610;
	--ust-muted: #5d6650;
	--ust-border: #e2e6d5;
	--ust-row: #ececec;
	--ust-red: #b3261e;
	--ust-radius: 14px;
	--ust-shadow: 0 10px 30px -18px rgba(29, 37, 9, .45);
	--ust-max: 1180px;
	--ust-font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--ust-serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--ust-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ust-text);
	background: var(--ust-bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--ust-olive-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ust-olive-900); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ust-olive-900); margin: 1.4em 0 .6em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.05em; }
.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: 999; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 14px; border-radius: 8px; }
.ust-container { width: 100%; max-width: var(--ust-max); margin: 0 auto; padding: 0 16px; }

/* ---------- Top bar ---------- */
.ust-topbar { background: var(--ust-olive-950); color: var(--ust-gold-200); font-size: 13px; }
.ust-topbar .ust-container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; flex-wrap: wrap; }
.ust-topbar a { color: var(--ust-cream); text-decoration: none; opacity: .85; }
.ust-topbar a:hover { opacity: 1; color: #fff; }
.ust-clock { font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.ust-topbar-social { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.ust-header { background: linear-gradient(180deg, var(--ust-olive-800), var(--ust-olive-900)); color: var(--ust-cream); position: sticky; top: 0; z-index: 50; box-shadow: 0 4px 18px -10px rgba(0,0,0,.6); }
.ust-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.ust-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.ust-brand img { width: 60px; height: 60px; flex: 0 0 auto; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.ust-brand-text { display: flex; flex-direction: column; min-width: 0; }
.ust-brand-name { font-family: var(--ust-serif); font-weight: 700; font-size: 1.3rem; color: var(--ust-cream); letter-spacing: .3px; line-height: 1.15; }
.ust-brand-tag { font-size: .78rem; color: var(--ust-gold-200); line-height: 1.3; }
.ust-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.ust-nav a { display: block; padding: 10px 12px; color: var(--ust-cream); text-decoration: none; font-weight: 600; font-size: .9rem; border-radius: 8px; white-space: nowrap; }
.ust-nav a:hover, .ust-nav .current-menu-item > a, .ust-nav .current_page_item > a { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 -2px 0 var(--ust-gold); }
.ust-nav-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,.35); color: var(--ust-cream); border-radius: 10px; padding: 8px 12px; font-weight: 700; cursor: pointer; }

@media (max-width: 1020px) {
	.ust-nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
	.ust-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ust-olive-900); border-top: 1px solid rgba(255,255,255,.08); display: none; }
	.ust-nav.is-open { display: block; }
	.ust-nav ul { flex-direction: column; padding: 8px 16px 14px; }
	.ust-nav a { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; }
	.ust-brand img { width: 50px; height: 50px; }
	.ust-brand-name { font-size: 1.1rem; }
}

/* ---------- Hero ---------- */
.ust-hero { background:
	radial-gradient(1200px 400px at 90% -10%, rgba(201,162,74,.22), transparent 60%),
	linear-gradient(180deg, var(--ust-olive-700), var(--ust-olive-800)); color: var(--ust-cream); padding: 34px 0 38px; }
.ust-hero h1 { color: #fff; margin: 0 0 6px; font-family: var(--ust-serif); }
.ust-hero-lead { color: var(--ust-gold-200); margin: 0 0 22px; max-width: 760px; }
.ust-cards { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .ust-cards { grid-template-columns: 1fr 1fr; } .ust-card--featured { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ust-cards { grid-template-columns: 1fr; } }

.ust-card { background: var(--ust-card); color: var(--ust-text); border-radius: var(--ust-radius); padding: 18px 18px 16px; box-shadow: var(--ust-shadow); position: relative; overflow: hidden; border: 1px solid var(--ust-border); }
.ust-card--featured { background: linear-gradient(160deg, #fffdf5, var(--ust-cream)); border: 1px solid var(--ust-gold-200); }
.ust-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ust-card-market { font-weight: 800; letter-spacing: .6px; text-transform: uppercase; font-size: .85rem; color: var(--ust-olive-700); }
.ust-card-date { font-size: .85rem; color: var(--ust-muted); }
.ust-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--ust-olive-100); color: var(--ust-olive-700); }
.ust-badge--live { background: #fde8e6; color: var(--ust-red); }
.ust-badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: ust-pulse 1.2s infinite; }
@keyframes ust-pulse { 50% { opacity: .25; } }
.ust-balls { display: flex; gap: 8px; margin: 12px 0 10px; }
.ust-ball { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.55rem; color: #fff; background: radial-gradient(circle at 32% 28%, var(--ust-olive-500), var(--ust-olive-800) 70%); box-shadow: inset 0 -4px 8px rgba(0,0,0,.25), 0 4px 10px -4px rgba(0,0,0,.45); font-variant-numeric: tabular-nums; }
.ust-card--featured .ust-ball { width: 64px; height: 64px; font-size: 2rem; background: radial-gradient(circle at 32% 28%, #f3dfa6, var(--ust-gold) 55%, #8e6e25); color: var(--ust-olive-950); }
.ust-ball--empty { background: #e9ece0; color: #9aa28a; box-shadow: none; }
.ust-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .82rem; color: var(--ust-muted); flex-wrap: wrap; }
.ust-countdown { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ust-olive-800); }
.ust-card a.ust-more { font-weight: 700; text-decoration: none; }

/* ---------- Sections ---------- */
.ust-main { padding: 28px 0 40px; }
.ust-section { background: var(--ust-card); border: 1px solid var(--ust-border); border-radius: var(--ust-radius); padding: 22px; margin-bottom: 22px; box-shadow: var(--ust-shadow); }
.ust-section > h2:first-child, .ust-section-head h2 { margin-top: 0; }
.ust-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ust-section-head h2 { margin: 0; }
.ust-section-head a { font-weight: 700; text-decoration: none; font-size: .92rem; }
@media (max-width: 600px) { .ust-section { padding: 16px 12px; } }

/* ---------- Tabs + table (reference style) ---------- */
.ust-data { margin: 0 0 8px; }
.ust-tabs { display: grid; grid-template-columns: repeat(var(--ust-tab-count, 4), 1fr); gap: 2px; margin-bottom: 0; }
.ust-tab { appearance: none; border: 1px solid #b9b9b9; border-bottom: 0; background: #d4d4d4; color: #333; padding: 10px 6px; font-weight: 700; font-size: .82rem; letter-spacing: .4px; text-transform: uppercase; cursor: pointer; border-radius: 6px 6px 0 0; }
.ust-tab:hover { background: #c6c6c6; color: #222; }
a.ust-tab { display: block; text-align: center; text-decoration: none; }
.ust-tab[aria-selected="true"] { background: #4a4a4a; color: #ff5b4f; border-color: #4a4a4a; }
.ust-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 4px solid #4a4a4a; }
.ust-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
.ust-table thead th { background: var(--ust-head); color: #1b2a10; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: 11px 8px; text-align: center; font-size: .86rem; white-space: nowrap; }
.ust-table tbody td { text-align: center; padding: 10px 8px; border-bottom: 1px solid var(--ust-row); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ust-table tbody tr:hover td { background: #f7faef; }
.ust-table tbody tr.is-latest td { background: #fbf6e2; font-weight: 700; }
.ust-table td.ust-num { font-weight: 600; letter-spacing: 1px; }
.ust-table td.ust-empty { color: #9aa28a; }
.ust-table tr.is-hidden { display: none; }
.ust-data[data-show="hk"] .col-sgp, .ust-data[data-show="hk"] .col-sdy,
.ust-data[data-show="sgp"] .col-hk, .ust-data[data-show="sgp"] .col-sdy,
.ust-data[data-show="sdy"] .col-hk, .ust-data[data-show="sdy"] .col-sgp { display: none; }
.ust-load-more { display: block; margin: 14px auto 0; background: var(--ust-olive-700); color: #fff; border: 0; padding: 10px 22px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.ust-load-more:hover { background: var(--ust-olive-800); }
.ust-note { font-size: .82rem; color: var(--ust-muted); margin-top: 10px; }
@media (max-width: 600px) {
	.ust-tab { font-size: .7rem; padding: 9px 2px; }
	.ust-table { font-size: .86rem; }
	.ust-table thead th, .ust-table tbody td { padding: 9px 4px; }
}

/* ---------- Jadwal ---------- */
.ust-jadwal { width: 100%; border-collapse: collapse; }
.ust-jadwal th, .ust-jadwal td { padding: 11px 10px; border-bottom: 1px solid var(--ust-row); text-align: left; vertical-align: middle; }
.ust-jadwal thead th { background: var(--ust-olive-800); color: var(--ust-cream); font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; }
.ust-jadwal thead th:first-child { border-radius: 8px 0 0 0; }
.ust-jadwal thead th:last-child { border-radius: 0 8px 0 0; }
.ust-jadwal td strong { color: var(--ust-olive-900); }
.ust-status { font-weight: 700; font-size: .85rem; white-space: nowrap; }
.ust-status--done { color: var(--ust-olive-600); }
.ust-status--wait { color: #9a6b00; }
.ust-status--off { color: #8a8f80; }
@media (max-width: 600px) { .ust-jadwal th, .ust-jadwal td { padding: 9px 6px; font-size: .86rem; } .ust-status { white-space: normal; } }

/* ---------- Content ---------- */
.ust-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.ust-layout--full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .ust-layout { grid-template-columns: minmax(0, 1fr); } }
.ust-article { background: var(--ust-card); border: 1px solid var(--ust-border); border-radius: var(--ust-radius); padding: 26px; box-shadow: var(--ust-shadow); }
@media (max-width: 600px) { .ust-article { padding: 18px 14px; } }
.ust-article > :first-child { margin-top: 0; }
.ust-entry-title { margin-top: 0; font-family: var(--ust-serif); }
.ust-entry-meta { color: var(--ust-muted); font-size: .88rem; margin: -6px 0 18px; }
.ust-entry-content ul, .ust-entry-content ol { padding-left: 1.3em; }
.ust-entry-content li { margin-bottom: .35em; }
.ust-entry-content table:not(.ust-table):not(.ust-jadwal) { width: 100%; border-collapse: collapse; margin: 1em 0; }
.ust-entry-content table:not(.ust-table):not(.ust-jadwal) td, .ust-entry-content table:not(.ust-table):not(.ust-jadwal) th { border: 1px solid var(--ust-border); padding: 8px 10px; }
.ust-entry-content blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--ust-gold); background: var(--ust-cream); border-radius: 0 10px 10px 0; }
.ust-callout { background: var(--ust-olive-100); border: 1px solid var(--ust-olive-200); border-radius: 12px; padding: 14px 16px; margin: 1.2em 0; font-size: .95rem; }
.ust-callout--warn { background: #fff7e6; border-color: #f0dca8; }
.ust-breadcrumb { font-size: .85rem; color: var(--ust-muted); margin: 0 0 14px; }
.ust-breadcrumb a { text-decoration: none; }
.ust-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.ust-breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #a2a98f; }

/* Sidebar */
.ust-sidebar .ust-widget { background: var(--ust-card); border: 1px solid var(--ust-border); border-radius: var(--ust-radius); padding: 18px; margin-bottom: 18px; box-shadow: var(--ust-shadow); }
.ust-sidebar .ust-widget h2, .ust-sidebar .ust-widget h3, .ust-sidebar .widget-title { font-size: 1rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--ust-olive-800); }
.ust-sidebar ul { list-style: none; padding: 0; margin: 0; }
.ust-sidebar li { padding: 7px 0; border-bottom: 1px dashed var(--ust-border); }
.ust-mini-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ust-mini-table th, .ust-mini-table td { padding: 7px 4px; border-bottom: 1px solid var(--ust-row); text-align: center; font-variant-numeric: tabular-nums; }
.ust-mini-table th { background: var(--ust-head); font-size: .75rem; text-transform: uppercase; }

/* Post list */
.ust-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ust-post-card { background: var(--ust-card); border: 1px solid var(--ust-border); border-radius: var(--ust-radius); overflow: hidden; box-shadow: var(--ust-shadow); display: flex; flex-direction: column; }
.ust-post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.ust-post-card-body { padding: 16px; }
.ust-post-card h2, .ust-post-card h3 { font-size: 1.05rem; margin: 0 0 8px; }
.ust-post-card h2 a, .ust-post-card h3 a { text-decoration: none; color: var(--ust-olive-900); }
.ust-post-card .ust-entry-meta { margin: 0 0 8px; font-size: .8rem; }
.ust-pagination { margin: 24px 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ust-pagination .page-numbers { padding: 8px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--ust-border); text-decoration: none; }
.ust-pagination .current { background: var(--ust-olive-700); color: #fff; border-color: var(--ust-olive-700); }

/* Social pills */
.ust-social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.ust-social a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .85rem; background: rgba(255,255,255,.08); color: var(--ust-cream); border: 1px solid rgba(255,255,255,.18); }
.ust-social a:hover { background: var(--ust-gold); color: var(--ust-olive-950); border-color: var(--ust-gold); }
.ust-social .ust-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ust-gold); }
.ust-sidebar .ust-social a, .ust-entry-content .ust-social a { background: var(--ust-olive-100); color: var(--ust-olive-800); border-color: var(--ust-olive-200); }
.ust-sidebar .ust-social a:hover, .ust-entry-content .ust-social a:hover { background: var(--ust-olive-700); color: #fff; }

/* Comments */
.ust-comments { margin-top: 26px; }
.ust-comments ol { list-style: none; padding: 0; }
.ust-comments .comment-body { border: 1px solid var(--ust-border); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: #fff; }
.ust-comments .children { list-style: none; padding-left: 22px; }
.ust-comments input[type=text], .ust-comments input[type=email], .ust-comments input[type=url], .ust-comments textarea { width: 100%; padding: 10px 12px; border: 1px solid #cfd5bf; border-radius: 10px; font: inherit; }
.ust-comments .submit, .ust-btn { background: var(--ust-olive-700); color: #fff; border: 0; padding: 11px 22px; border-radius: 999px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
.ust-comments .submit:hover, .ust-btn:hover { background: var(--ust-olive-900); color: #fff; }

/* Search form */
.ust-search { display: flex; gap: 8px; }
.ust-search input[type=search] { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid #cfd5bf; font: inherit; min-width: 0; }

/* ---------- Footer ---------- */
.ust-footer { background: var(--ust-olive-950); color: #cfd3bf; padding: 40px 0 0; margin-top: 10px; font-size: .92rem; }
.ust-footer a { color: var(--ust-cream); text-decoration: none; }
.ust-footer a:hover { color: var(--ust-gold); }
.ust-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .ust-footer-grid { grid-template-columns: 1fr; } }
.ust-footer h2 { color: var(--ust-gold-200); font-size: .95rem; text-transform: uppercase; letter-spacing: .8px; margin: 0 0 12px; }
.ust-footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.ust-footer-brand img { width: 64px; height: 64px; }
.ust-footer-brand strong { font-family: var(--ust-serif); font-size: 1.15rem; color: var(--ust-cream); }
.ust-footer ul.menu, .ust-footer-links { list-style: none; padding: 0; margin: 0; }
.ust-footer ul.menu li, .ust-footer-links li { padding: 4px 0; }
.ust-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 30px; padding: 16px 0 22px; font-size: .82rem; color: #9ea38f; }
.ust-footer-bottom .ust-container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ust-age { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 24px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--ust-gold); color: var(--ust-gold); font-weight: 800; font-size: .78rem; margin-right: 6px; }

/* 404 */
.ust-404 { text-align: center; padding: 50px 20px; }
.ust-404 .ust-big { font-size: 5rem; font-weight: 900; color: var(--ust-olive-600); line-height: 1; font-family: var(--ust-serif); }

/* WP core alignment */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .85rem; color: var(--ust-muted); }
.sticky, .bypostauthor, .gallery-caption { }
