/* Shared presentation contracts for the two independent layouts. */
html { scroll-padding-top:24px; }
body[data-frontend-theme] { margin:0; font-family:"PingFang SC","Microsoft YaHei",sans-serif; font-size:15px; line-height:1.55; font-weight:400; }
body[data-frontend-theme] * { box-sizing:border-box; }
body[data-frontend-theme] [hidden] { display:none!important; }
body[data-frontend-theme] .visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
body[data-frontend-theme] img { max-width:100%; }
body[data-frontend-theme] button,body[data-frontend-theme] input { font:inherit; }
body[data-frontend-theme] button,body[data-frontend-theme] summary { cursor:pointer; }
body[data-frontend-theme] button:focus-visible,body[data-frontend-theme] a:focus-visible,body[data-frontend-theme] summary:focus-visible,body[data-frontend-theme] input:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
body[data-frontend-theme] .site-shell { width:1280px; max-width:100%; border:0; margin:0 auto; background:transparent; box-shadow:none; }
body[data-frontend-theme] .sticky-masthead { position:relative; top:auto; border:0; box-shadow:none; background:transparent; }
body[data-frontend-theme] .site-header { display:flex; height:auto; min-height:90px; padding:20px 0; border:0; background:none; box-shadow:none; gap:24px; }
body[data-frontend-theme] .site-header::before,body[data-frontend-theme] .site-header::after { content:none; }
body[data-frontend-theme] .brand { display:flex; width:auto; height:auto; min-width:0; }
body[data-frontend-theme] .portal-text-mark { font-style:normal; letter-spacing:-1px; transform:none; font-weight:800; -webkit-text-stroke:0; text-shadow:none; line-height:1.2; overflow-wrap:anywhere; }
body[data-frontend-theme] .portal-logo img { max-height:64px; width:auto; }
body[data-frontend-theme] .brand-motto { display:flex; min-width:0; border:0; padding:0; gap:4px; }
body[data-frontend-theme] .brand-motto strong { font-size:13px; letter-spacing:2px; color:inherit; }
body[data-frontend-theme] .brand-motto small { font-size:11px; }
body[data-frontend-theme] .brand-seal { width:auto; height:auto; min-height:32px; padding:5px 10px; flex-shrink:0; border:1px solid currentColor; border-radius:0; background:none; color:inherit; transform:none; box-shadow:none; font:700 13px/1.2 "Songti SC",serif; }
body[data-frontend-theme] .brand-seal b+b { color:inherit; }
body[data-frontend-theme] .brand-seal small { display:none; }
body[data-frontend-theme] .lottery-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); height:auto; padding:0; background:none; border:0; }
body[data-frontend-theme] .lottery-tab { min-width:0; box-shadow:none; gap:12px; }
body[data-frontend-theme] .lottery-tab::before { content:none; }
body[data-frontend-theme] .lottery-tab strong { font-size:19px; line-height:1.3; }
body[data-frontend-theme] .lottery-emblem { width:32px; height:32px; object-fit:contain; }
body[data-frontend-theme] .compact-results { height:auto; border:0; margin:0; }
body[data-frontend-theme] .compact-result-panel { display:grid; height:auto; grid-template-columns:90px minmax(0,1fr); min-width:0; }
body[data-frontend-theme] .compact-issue { border:0; font-size:11px; }
body[data-frontend-theme] .compact-issue small { background:none; color:inherit; }
body[data-frontend-theme] .compact-number-list { padding:0; background:none; gap:0; grid-template-columns:repeat(6,1fr) 22px 1fr; }
body[data-frontend-theme] .compact-number { min-height:34px; }
body[data-frontend-theme] .compact-number b { font-size:15px; }
body[data-frontend-theme] .compact-number small { font-size:10px; }
body[data-frontend-theme] .refresh-cell { border:0; font-size:9px; padding:0; }
body[data-frontend-theme] .theme-main { min-width:0; }
body[data-frontend-theme] .overview-grid,body[data-frontend-theme] .results-workspace,body[data-frontend-theme] .bulletin-workspace { min-width:0; }
body[data-frontend-theme] .workspace-caption { font-size:11px; font-weight:600; letter-spacing:2px; }
body[data-frontend-theme] .portal-date-bar { display:flex; flex-wrap:wrap; gap:8px 20px; align-items:center; height:auto; min-height:40px; padding:8px 0; border:0; box-shadow:none; background:none; font-size:12px; }
body[data-frontend-theme] .portal-date-bar strong,body[data-frontend-theme] .portal-date-bar span { font-size:12px; }
body[data-frontend-theme] .shared-latest-draws { margin:0; }
body[data-frontend-theme] .shared-latest-draws > .section-heading { display:flex; align-items:center; justify-content:space-between; height:auto; padding:14px 0 24px; border:0; background:none; box-shadow:none; }
body[data-frontend-theme] .shared-latest-draws h1 { margin:5px 0 0; font-size:46px; line-height:1.2; }
body[data-frontend-theme] .results-jump { font-size:12px; white-space:nowrap; }
body[data-frontend-theme] .shared-latest-draws-list { display:grid; gap:16px; }
body[data-frontend-theme] .shared-latest-draws .lottery-panel { display:block; margin:0; overflow:hidden; }
body[data-frontend-theme] .draw-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; height:auto; min-height:46px; padding:12px 16px; border:0; }
body[data-frontend-theme] .draw-heading strong { font-size:16px; }
body[data-frontend-theme] .draw-heading span { font-size:inherit; }
body[data-frontend-theme] .draw-refresh-button { border:1px solid currentColor; background:none; padding:5px 8px; font-size:10px; border-radius:4px; color:inherit; white-space:nowrap; }
body[data-frontend-theme] .draw-body { display:flex; flex-direction:column; min-height:0; }
body[data-frontend-theme] .draw-date { display:flex; flex-direction:row; justify-content:space-between; align-items:center; gap:8px; width:100%; border:0; padding:8px 16px; background:none; }
body[data-frontend-theme] .draw-date b,body[data-frontend-theme] .draw-date span { font-size:11px; }
body[data-frontend-theme] .draw-date br { display:none; }
body[data-frontend-theme] .number-row { display:grid; width:100%; grid-template-columns:repeat(6,minmax(0,1fr)) 14px minmax(0,1fr); gap:6px; padding:14px 16px; background:none; }
body[data-frontend-theme] .number-row--pending { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:100px; }
body[data-frontend-theme] .number-item { width:100%; height:54px; border:0; box-shadow:none; text-shadow:none; }
body[data-frontend-theme] .number-item b { font:700 28px/1.15 "SFMono-Regular",Consolas,monospace; }
body[data-frontend-theme] .number-item small { font-size:11px; }
body[data-frontend-theme] .number-plus { font-size:18px; background:none; }
body[data-frontend-theme] .draw-footer { display:flex; flex-wrap:wrap; gap:4px; min-height:0; padding:12px 16px; font-size:10px; }
body[data-frontend-theme] .countdown { flex-basis:100%; margin:8px 0 0; font-size:11px; }
body[data-frontend-theme] .countdown b { padding:3px 5px; font:600 12px/1.4 monospace; }
body[data-frontend-theme] .bulletin-workspace { padding:20px; }
body[data-frontend-theme] .bulletin-workspace > .workspace-caption { margin-bottom:16px; }
body[data-frontend-theme] .bulletin-workspace img { width:100%; height:auto; display:block; }
body[data-frontend-theme] .bulletin-workspace :is(p,span,strong,b,a,div) { font-size:14px!important; }
body[data-frontend-theme] .bulletin-workspace .page-builder-runtime-module { margin:12px 0; overflow:hidden; }
body[data-frontend-theme] .bulletin-workspace .page-builder-runtime-module * { max-width:100%; }
body[data-frontend-theme] .homepage-hero { margin:0; }
body[data-frontend-theme] .materials-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; padding:30px 0 20px; }
body[data-frontend-theme] .materials-heading h2 { margin:4px 0 0; font-size:32px; line-height:1.3; }
body[data-frontend-theme] .materials-heading a { font-size:12px; white-space:nowrap; }
body[data-frontend-theme] .material-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:16px 0; }
body[data-frontend-theme] .material-search { display:flex; align-items:center; gap:10px; font-size:12px; }
body[data-frontend-theme] .material-search input { width:200px; min-height:40px; padding:8px 12px; border:1px solid var(--border); background:var(--paper); color:var(--ink); border-radius:4px; font-size:13px; }
body[data-frontend-theme] .material-filters { display:flex; gap:4px; }
body[data-frontend-theme] .material-filters button,body[data-frontend-theme] .expand-materials { min-height:36px; padding:6px 12px; border:1px solid var(--border); background:transparent; color:var(--ink); font-size:12px; }
body[data-frontend-theme] .material-filters button[aria-pressed="true"] { background:var(--ink); color:var(--paper); border-color:var(--ink); }
body[data-frontend-theme] .material-count { margin-left:auto; font-size:11px; }
body[data-frontend-theme] .material-empty { padding:28px; text-align:center; }
body[data-frontend-theme] .material-collection { display:grid; align-items:start; gap:18px; }
body[data-frontend-theme] .material-entry { min-width:0; }
body[data-frontend-theme] .material-content { min-width:0; overflow:auto; color:#222; background:#fff; }
body[data-frontend-theme] .material-content > [data-page-module-id] { margin:0; padding:0; border:0; border-radius:0; background:#fff; box-shadow:none; }
body[data-frontend-theme] .material-content table { width:100%; max-width:100%; border-collapse:collapse; }
body[data-frontend-theme] .material-content :is(td,th) { padding:10px 8px; border-color:var(--border); }
body[data-frontend-theme] .material-content .section-heading { min-height:48px; height:auto; padding:12px 16px; border:0; background:var(--tint); box-shadow:none; border-radius:0; }
body[data-frontend-theme] .material-content .section-heading h2 { font-size:18px; line-height:1.4; text-shadow:none; color:var(--ink); }
body[data-frontend-theme] .material-content .page-builder-visual-table__content thead th { font-size:19px; background:var(--tint); color:var(--ink); }
body[data-frontend-theme] .material-content .quick-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; padding:12px; background:#fff; }
body[data-frontend-theme] .material-content .quick-nav a { display:flex; align-items:center; justify-content:center; padding:5px; min-height:40px; border:1px solid var(--border); color:var(--ink); background:#fff; }
body[data-frontend-theme] .material-content .quick-nav img { width:100%; height:auto; }
body[data-frontend-theme] .page-builder-image-ad img { display:block; width:100%; height:auto; }
body[data-frontend-theme] .page-builder-green-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; }
body[data-frontend-theme] .page-builder-green-links a { padding:12px; text-align:center; border:1px solid var(--border); font-size:13px; }
body[data-frontend-theme] .site-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:32px 0 0; padding:24px 0; border:0; background:none; box-shadow:none; color:inherit; font-size:13px; }
body[data-frontend-theme] .site-footer small { font-size:11px; }
body[data-frontend-theme] .back-to-top { border:0; background:var(--ink); color:var(--paper); border-radius:50%; width:44px; height:44px; }
body[data-frontend-theme] .history-shell { width:1100px; max-width:100%; margin:24px auto; border:1px solid var(--border); background:var(--paper); }
body[data-frontend-theme] .history-topbar { min-height:72px; background:var(--ink); color:var(--paper); }
body[data-frontend-theme] .history-topbar a { color:var(--paper); }
body[data-frontend-theme] .history-controls { background:var(--paper); border-color:var(--border); padding:18px; }
body[data-frontend-theme] .history-lottery-switch a.is-active,body[data-frontend-theme] .history-filter-button.is-active,body[data-frontend-theme] .history-filter-reset { background:var(--ink); color:var(--paper); border-color:var(--ink); }
body[data-frontend-theme] .history-year-switch { background:var(--tint); }
body[data-frontend-theme] .history-footer { background:var(--paper); }
body[data-frontend-theme] .history-footer a { color:var(--ink); }
body[data-frontend-theme] .article-main { max-width:860px; margin:0 auto; padding:24px; background:#fff; color:#222; }
body[data-frontend-theme] .article-detail { border:0; padding:20px 0; }
@media(max-width:800px) {
 body[data-frontend-theme] .site-shell { width:100%; padding:0 14px; }
 body[data-frontend-theme] .site-header { min-height:76px; padding:18px 0; gap:12px; flex-wrap:wrap; }
 body[data-frontend-theme] .portal-text-mark { font-size:26px; }
 body[data-frontend-theme] .brand-motto strong { font-size:10px; letter-spacing:1px; }
 body[data-frontend-theme] .brand-seal { display:none; }
 body[data-frontend-theme] .lottery-tab { gap:6px; }
 body[data-frontend-theme] .lottery-tab strong { font-size:14px; }
 body[data-frontend-theme] .lottery-emblem { width:25px; height:25px; }
 body[data-frontend-theme] .compact-result-panel { grid-template-columns:62px minmax(0,1fr); }
 body[data-frontend-theme] .compact-number-list { grid-template-columns:repeat(6,1fr) 14px 1fr; }
 body[data-frontend-theme] .compact-number b { font-size:13px; }
 body[data-frontend-theme] .compact-number small { font-size:9px; }
 body[data-frontend-theme] .shared-latest-draws h1 { font-size:34px; }
 body[data-frontend-theme] .shared-latest-draws > .section-heading { padding-bottom:18px; }
 body[data-frontend-theme] .materials-heading h2 { font-size:28px; }
 body[data-frontend-theme] .material-toolbar { gap:10px; }
 body[data-frontend-theme] .material-search { width:100%; }
 body[data-frontend-theme] .material-search input { flex:1; min-width:0; }
 body[data-frontend-theme] .material-filters button { padding:6px 9px; }
 body[data-frontend-theme] .material-count { margin-left:0; }
 body[data-frontend-theme] .material-content .quick-nav { gap:4px; padding:6px; }
 body[data-frontend-theme] .history-shell { margin:0; border:0; }
 body[data-frontend-theme] .history-controls { padding:8px; }
 body[data-frontend-theme] .article-main { padding:14px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
body[data-frontend-theme] .draw-heading strong { color:inherit; }
body[data-frontend-theme] .number-item::after,body[data-frontend-theme] .compact-number::after { content:none; }
body[data-frontend-theme] .number-item { box-shadow:none; }
body[data-frontend-theme] { min-width:0; }
