/* ==========================================================================
   Live Data Sydney – main.css
   ========================================================================== */
:root {
	--red: #e3062c;
	--red-2: #ff2d55;
	--red-dark: #a3001c;
	--red-soft: #fff0f2;
	--ink: #1b2026;
	--ink-2: #262d35;
	--ink-3: #343c46;
	--slate: #4b5560;
	--muted: #6b7480;
	--bg: #eef0f3;
	--card: #ffffff;
	--line: #e1e4e8;
	--zebra: #f7f8fa;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 20px rgba(16, 24, 40, .06);
	--font: "Ubuntu", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--mono: "Ubuntu Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.4em 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
h2 { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red-2); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; padding: 8px 14px; background: #fff; color: var(--ink); border-radius: 8px; }
.ico { display: inline-block; vertical-align: -0.18em; flex: none; }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: #c9ced6; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.tb-time { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.tb-time .sep { opacity: .5; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #c9ced6; background: rgba(255, 255, 255, .06); transition: background .2s, color .2s, transform .2s; }
.social a:hover { color: #fff; background: var(--red); transform: translateY(-1px); }

/* ---------- Header ---------- */
.site-header { background: #fff; position: relative; z-index: 20; }
.brand { display: flex; justify-content: center; align-items: center; padding: 18px 16px 16px; }
.logo, .custom-logo-link { display: block; line-height: 0; }
.logo img, .custom-logo { width: auto; max-width: min(520px, 88vw); height: auto; max-height: 100px; }

.main-nav { background: var(--ink-2); border-bottom: 3px solid var(--red); }
.nav-inner { display: flex; align-items: center; }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 0; color: #fff; font: 600 14px/1 var(--font); letter-spacing: .08em; padding: 14px 0; cursor: pointer; }
.main-nav .menu { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.main-nav .menu > li { position: relative; }
.main-nav .menu a {
	display: block; padding: 14px 14px; color: #e8eaee; text-decoration: none;
	font-size: 13.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
	transition: background .2s, color .2s;
}
.main-nav .menu a:hover,
.main-nav .menu .current-menu-item > a,
.main-nav .menu .current_page_item > a { background: var(--red); color: #fff; }
.main-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 200px; background: var(--ink-2); list-style: none; margin: 0; padding: 6px 0; box-shadow: var(--shadow); }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }

/* Ticker */
.ticker { background: linear-gradient(90deg, var(--red-dark), var(--red)); color: #fff; font-size: 14px; }
.ticker-inner { display: flex; align-items: center; gap: 14px; min-height: 40px; overflow: hidden; }
.ticker-label { flex: none; font-weight: 700; letter-spacing: .06em; font-size: 12.5px; display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .18); padding: 4px 10px; border-radius: 999px; }
.ticker-track { overflow-x: auto; scrollbar-width: none; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track::-webkit-scrollbar { display: none; }
.ticker-items { display: flex; gap: 34px; padding: 0 18px; white-space: nowrap; width: max-content; }
.t-item { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 600; letter-spacing: .04em; }
.t-item b { font: 700 17px/1 var(--mono); letter-spacing: .14em; }
.t-item small { opacity: .8; font-weight: 400; }

.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: pulse 1.6s infinite; flex: none; }
.hero .live-dot, .live-head .live-dot { background: var(--red-2); box-shadow: 0 0 0 0 rgba(255, 45, 85, .7); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 45, 85, .65); } 70% { box-shadow: 0 0 0 9px rgba(255, 45, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); } }

/* ---------- Main ---------- */
.site-main { padding: 22px 0 48px; min-height: 50vh; }
.page-intro { text-align: center; margin: 6px 0 18px; }
.page-intro h1 { margin: 0 0 4px; letter-spacing: .01em; }
.page-intro p { margin: 0; color: var(--muted); }

.content-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 34px); margin: 0 0 22px; }
.entry-header { border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.entry-title { margin: 0 0 14px; }
.entry-meta { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.25em; }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--red); background: var(--zebra); border-radius: 0 8px 8px 0; }
.entry-thumb { margin: 0 0 18px; }
.entry-thumb img { border-radius: 10px; display: block; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: var(--slate); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }

.btn, .contact-form button, .search-form button {
	display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; border: 0;
	padding: 11px 20px; border-radius: 10px; font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer;
	transition: background .2s, transform .2s;
}
.btn:hover, .contact-form button:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 260px; gap: 18px;
	background: radial-gradient(1200px 300px at 30% 0%, #333b45 0%, transparent 60%), linear-gradient(135deg, #1b2026, #262d35);
	color: #fff; border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); margin: 0 0 22px; box-shadow: var(--shadow);
	border: 1px solid #3a424c;
}
.hero-line { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 120px; transform: translateY(-50%); pointer-events: none; opacity: .22; }
.hero-line path { fill: none; stroke: var(--red-2); stroke-width: 3; filter: drop-shadow(0 0 6px var(--red-2)); }
.hero-inner { position: relative; text-align: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: #ffd1d9; }
.hero-date { color: #fff; margin: 0 0 14px; font-size: clamp(1.05rem, .95rem + .6vw, 1.35rem); font-weight: 600; }
.hero-number { display: flex; justify-content: center; margin: 0 0 14px; }
.balls { display: inline-flex; gap: clamp(8px, 1.6vw, 14px); }
.ball {
	display: grid; place-items: center; width: clamp(52px, 11vw, 78px); height: clamp(52px, 11vw, 78px); border-radius: 50%;
	font: 700 clamp(26px, 6vw, 42px)/1 var(--mono); color: #fff;
	background: radial-gradient(circle at 32% 28%, #ff7a90 0%, var(--red) 42%, var(--red-dark) 100%);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .08), 0 0 22px rgba(255, 45, 85, .55), inset 0 -6px 12px rgba(0, 0, 0, .25);
	text-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}
.ball.is-wait { background: radial-gradient(circle at 32% 28%, #5a6470, #343c46 60%, #262d35); box-shadow: 0 0 0 3px rgba(255, 255, 255, .06); color: #aeb5bf; animation: wait 1.4s ease-in-out infinite; }
.ball.is-wait:nth-child(2) { animation-delay: .15s; } .ball.is-wait:nth-child(3) { animation-delay: .3s; } .ball.is-wait:nth-child(4) { animation-delay: .45s; }
@keyframes wait { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.balls.flash .ball { animation: pop .6s ease; }
@keyframes pop { 0% { transform: scale(.6); opacity: .3; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.balls-md .ball { width: 44px; height: 44px; font-size: 24px; }
.hero-status { margin: 0 0 12px; color: #c9ced6; font-size: 14px; display: flex; justify-content: center; gap: 6px; align-items: center; }
.countdown { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 8px 18px; }
.cd-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #aeb5bf; }
.cd-time { font: 700 22px/1.1 var(--mono); letter-spacing: .1em; color: #fff; font-variant-numeric: tabular-nums; }
.countdown.inline { background: none; border: 0; padding: 0; }
.countdown.inline .cd-time { color: var(--ink); font-size: 15px; }
.countdown.is-live .cd-time { color: var(--red-2); }
.countdown.inline.is-live .cd-time { color: var(--red); }

.hero-minis { position: relative; display: grid; gap: 10px; align-content: center; }
.mini { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 14px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name num" "date num"; align-items: center; }
.mini-name { grid-area: name; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #aeb5bf; }
.mini-date { grid-area: date; font-size: 12px; color: #8a929d; }
.mini-num { grid-area: num; font: 700 26px/1 var(--mono); letter-spacing: .12em; color: #fff; }
.mini-sdy { border-color: rgba(255, 45, 85, .45); background: rgba(227, 6, 44, .14); }
.mini-sdy .mini-num { color: #ffd1d9; }

/* ---------- Tabs & tables ---------- */
.ldst-data { margin: 0 0 22px; }
.data-title { margin: 0 0 10px; }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; background: var(--ink-2); padding: 4px; border-radius: 12px 12px 0 0; overflow-x: auto; }
.tab { background: transparent; color: #c9ced6; border: 0; padding: 11px 12px; border-radius: 9px; font: 600 13.5px/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.tab:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.tab.is-active { background: var(--red); color: #fff; box-shadow: 0 2px 10px rgba(227, 6, 44, .35); }
.tabs + .tab-panel .table-wrap { border-radius: 0 0 12px 12px; }
.tab-panel[hidden] { display: none; }

.table-wrap { overflow-x: auto; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.ldst-table, .paito { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ldst-table thead th {
	background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .08em;
	padding: 13px 10px; text-align: center; border-bottom: 3px solid var(--red); white-space: nowrap;
}
.ldst-table td { padding: 11px 10px; text-align: center; border-bottom: 1px solid var(--line); font-size: 15px; }
.ldst-table tbody tr:nth-child(even) { background: var(--zebra); }
.ldst-table tbody tr:hover { background: #fff6f7; }
.ldst-table td.col-hk, .ldst-table td.col-sgp, .ldst-table td.col-sdy { font: 600 16.5px/1 var(--mono); letter-spacing: .12em; }
.ldst-table td.col-sdy { color: var(--red); font-weight: 700; }
.ldst-table th.col-sdy { background: var(--red-dark); }
.ldst-table tr.is-today { background: var(--red-soft) !important; box-shadow: inset 4px 0 0 var(--red); }
.ldst-table tr.is-today td:first-child::after { content: "HARI INI"; display: inline-block; margin-left: 8px; font: 700 10px/1 var(--font); letter-spacing: .08em; background: var(--red); color: #fff; padding: 3px 6px; border-radius: 5px; vertical-align: 2px; }
.ldst-table td.updated { animation: cellflash 2.4s ease; }
@keyframes cellflash { 0%, 30% { background: #ffe066; } 100% { background: transparent; } }
.ldst-table.schedule td { font-size: 14.5px; }
.data-more { text-align: center; margin: 16px 0 0; }
.year-filter { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 600; }
.year-filter select { padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); font: inherit; background: #fff; }

/* ---------- Live panel ---------- */
.live-panel { background: linear-gradient(135deg, #1b2026, #262d35); border-radius: var(--radius); color: #fff; overflow: hidden; margin: 0 0 24px; box-shadow: var(--shadow); border: 1px solid #3a424c; }
.live-head { background: var(--red); padding: 10px 16px; font-weight: 700; letter-spacing: .08em; font-size: 14px; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.live-head .live-dot { background: #fff; }
.live-body { padding: 26px 16px 22px; text-align: center; }
.live-date { color: #c9ced6; margin: 0 0 14px; font-weight: 600; }
.live-status { color: #ffd1d9; margin: 0 0 14px; }
.countdown.big .cd-time { font-size: 30px; }
.live-note { font-size: 13px; color: #8a929d; margin: 14px 0 0; }

/* ---------- Paito ---------- */
.paito-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; font-weight: 600; font-size: 14px; }
.paito-tools button { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font: 700 15px var(--mono); cursor: pointer; }
.paito-tools .pt-reset { width: auto; padding: 0 12px; font-family: var(--font); font-size: 13px; }
.paito-tools button[aria-pressed="true"] { color: #fff; border-color: transparent; }
.paito th { background: var(--ink); color: #fff; font-size: 12.5px; letter-spacing: .06em; padding: 10px 6px; border-bottom: 3px solid var(--red); }
.paito td { text-align: center; padding: 7px 4px; border: 1px solid var(--line); white-space: nowrap; }
.paito td.empty { color: #b8bec6; }
.paito .d { font: 700 15px/1 var(--mono); font-style: normal; display: inline-block; width: 19px; padding: 4px 0; border-radius: 4px; }
.paito-note { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.hl-c0 { --c: #e3062c; } .hl-c1 { --c: #f97316; } .hl-c2 { --c: #eab308; } .hl-c3 { --c: #16a34a; } .hl-c4 { --c: #0d9488; }
.hl-c5 { --c: #0284c7; } .hl-c6 { --c: #4f46e5; } .hl-c7 { --c: #9333ea; } .hl-c8 { --c: #db2777; } .hl-c9 { --c: #57534e; }
.paito-tools button[aria-pressed="true"] { background: var(--c); }
.paito .d.on { background: var(--c); color: #fff; }

/* ---------- FAQ ---------- */
.faq-wrap h2 { margin-top: 0; }
.faq details { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 700; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 16px 14px; margin: 0; color: var(--slate); }

/* ---------- Social list / contact ---------- */
.social-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.social-list a { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.social-list a .ico { grid-row: span 2; color: var(--red); }
.social-list a span { font-weight: 700; }
.social-list a span, .social-list a small { min-width: 0; }
.social-list a small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.social-list a:hover { border-color: var(--red); box-shadow: 0 4px 14px rgba(227, 6, 44, .12); }

.contact-form { max-width: 640px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.contact-form input, .contact-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea, .search-form input {
	width: 100%; padding: 11px 13px; border: 1px solid #cfd4da; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus, .comment-form textarea:focus, .comment-form input:focus, .search-form input:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(227, 6, 44, .15); }
.contact-form .hp { position: absolute; left: -9999px; }
.notice { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; font-weight: 600; }
.notice-ok { background: #e8f7ee; color: #146c34; border: 1px solid #b7e4c7; }
.notice-err { background: var(--red-soft); color: var(--red-dark); border: 1px solid #f7c2cb; }

.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form button { padding: 0 16px; }

/* ---------- Posts ---------- */
.archive-header p { color: var(--muted); margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.post-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.pc-thumb img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.pc-body { padding: 16px 18px 18px; }
.pc-title { font-size: 1.1rem; margin: 0 0 8px; }
.pc-title a { color: var(--ink); text-decoration: none; }
.pc-title a:hover { color: var(--red); }
.pc-body .entry-meta { margin-bottom: 6px; font-size: 13px; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.post-nav a { text-decoration: none; font-weight: 600; }
.nav-links { display: flex; gap: 6px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.nav-links .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-weight: 600; }
.nav-links .current { background: var(--red); color: #fff; }
.empty { text-align: center; }

.comments .comment-list { list-style: none; padding: 0; }
.comments .comment-body { border-bottom: 1px solid var(--line); padding: 14px 0; }
.comments .children { list-style: none; padding-left: 22px; }
.comment-meta img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.moderation-note { background: var(--zebra); border-left: 4px solid var(--red); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 14px; }
.comment-awaiting-moderation { color: var(--red-dark); font-style: italic; }

.notfound { text-align: center; }
.nf-code { font: 800 84px/1 var(--mono); color: var(--red); margin: 0; text-shadow: 0 0 22px rgba(255, 45, 85, .35); }
.notfound .search-form { margin: 0 auto 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b5bcc6; font-size: 14.5px; border-top: 3px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 38px; padding-bottom: 28px; }
.f-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; margin-bottom: 12px; }
.f-logo img { border-radius: 50%; }
.f-title { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 12px; }
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col li { margin: 0 0 8px; }
.site-footer a { color: #d7dbe1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.social-footer a { width: 36px; height: 36px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.fb-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 18px; }
.fb-inner p { margin: 0; }
.badge-18 { display: inline-block; background: var(--red); color: #fff; font-weight: 800; border-radius: 6px; padding: 1px 6px; margin-right: 6px; font-size: 12px; }

/* ---------- WP core ---------- */
.alignwide { margin-left: auto; margin-right: auto; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.wp-block-shortcode { margin: 0 0 1.4em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.hero { grid-template-columns: 1fr; }
	.hero-minis { grid-template-columns: repeat(3, 1fr); }
	.mini { grid-template-columns: 1fr; grid-template-areas: "name" "num" "date"; text-align: center; gap: 4px; padding: 10px 6px; }
	.mini-num { font-size: 20px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.f-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.nav-inner { flex-wrap: wrap; justify-content: center; }
	.main-nav .menu { display: none; width: 100%; flex-direction: column; padding-bottom: 8px; }
	.main-nav.is-open .menu { display: flex; }
	.main-nav .menu a { padding: 12px 6px; border-top: 1px solid rgba(255, 255, 255, .06); text-align: center; }
	.main-nav .sub-menu { position: static; display: block; box-shadow: none; padding: 0; }
}
@media (max-width: 600px) {
	body { font-size: 15.5px; }
	.topbar-inner { justify-content: center; }
	.social-top { display: none; }
	.brand { padding: 14px 16px 12px; }
	.logo img, .custom-logo { max-height: 70px; }
	.ticker-label { font-size: 11px; padding: 3px 8px; }
	.ldst-table thead th { font-size: 11.5px; padding: 11px 4px; letter-spacing: .04em; }
	.ldst-table td { padding: 10px 4px; font-size: 13.5px; }
	.ldst-table td.col-hk, .ldst-table td.col-sgp, .ldst-table td.col-sdy { font-size: 15px; letter-spacing: .06em; }
	.ldst-table tr.is-today td:first-child::after { display: block; width: max-content; margin: 4px auto 0; }
	.tabs { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
	.tab { font-size: 12px; padding: 10px 8px; letter-spacing: .03em; }
	.hero-minis { gap: 6px; }
	.mini-name { font-size: 10.5px; letter-spacing: .06em; }
	.footer-grid { grid-template-columns: 1fr; gap: 20px; }
	.paito .d { width: 16px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.topbar, .main-nav, .ticker, .site-footer, .tabs, .paito-tools { display: none !important; }
	body { background: #fff; }
}
