/* Focused QA fixes; retain the existing palette, typography and layouts. */
img{max-width:100%;height:auto}
.nav,.hero>*,.province-card,.footer-col{min-width:0}
.header-cta{white-space:normal;text-align:center;justify-content:center}
.jackpot-card .figure{font-size:clamp(1.5rem,5.5vw,2.4rem)}
.province-card{display:flex;flex-direction:column}
.province-card .btn{margin-top:auto;justify-content:center;white-space:normal;text-align:center}
.lottery-table{table-layout:fixed}
.lottery-table caption{font-weight:800;text-align:left;padding:12px 0;color:var(--ink)}
.lottery-table th:first-child{width:30%}
.lottery-table th[scope=row]{font-size:.85rem;text-transform:none;letter-spacing:0}
.lottery-table td{font-variant-numeric:tabular-nums;font-size:1.15rem!important;font-weight:800;color:var(--ink)}
.winning-number{display:inline-block;white-space:nowrap;margin:3px 6px}
.lottery-table .giaidb{color:var(--red);font-size:1.5rem!important}
#box_kqxs_minhngoc{min-height:460px;overflow-wrap:anywhere}
.tab-btn[aria-pressed=true]{background:var(--orange-deep);color:#fff}
button,input,select,summary{min-height:44px}
.content-page section p{line-height:1.65}
.content-page .section-head{margin-bottom:16px}
.date-jump input{max-width:100%;min-width:0}
.date-jump label{min-width:0;max-width:100%}
section[id],h2[id]{scroll-margin-top:150px}
@media(max-width:900px){
  .nav{flex-wrap:wrap;gap:12px}
  nav.links{display:flex!important;order:3;width:100%;gap:6px 16px;font-size:.82rem}
  nav.links a{display:inline-flex;align-items:center;min-height:36px}
  .header-cta{font-size:.78rem;padding:8px 10px!important;max-width:55%}
  .brand img{max-width:120px;height:auto!important}
}
@media(max-width:520px){
  .wrap{padding-left:16px;padding-right:16px}
  .page-hero h1{font-size:1.8rem}
  .info-table th,.info-table td{padding:10px 8px;overflow-wrap:anywhere}
  .lottery-table th:first-child{width:29%}
  .lottery-table td{font-size:1.05rem!important}
  .winning-number{margin:3px 4px}
  .date-jump{align-items:stretch}
  .date-jump .btn{white-space:normal;justify-content:center}
  .result-meta{flex-direction:column;align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
