/* Pass 143: dynamic market-page quality and all-market resilience. */
.market-detail-page,.chart-page{scroll-padding-top:8px;scroll-padding-bottom:78px}
.market-detail-page .market-hero h1,.chart-page .chart-reference-intro h1,.chart-page .chart-reference-intro h2,.chart-page .section-cap,.chart-page .table-title{overflow-wrap:anywhere;text-wrap:balance}
.market-detail-page .market-hero h1{font-size:clamp(22px,6.8vw,34px)}
.chart-page .chart-reference-intro h1{font-size:clamp(19px,5.4vw,31px)!important}
.chart-page .chart-reference-intro h2{font-size:clamp(14px,3.8vw,21px)!important}
.chart-page .reference-current-result strong,.chart-page .reference-repeat-result strong,.market-detail-page .hero-result{font-variant-numeric:tabular-nums lining-nums}
.chart-page .reference-directory>div>a.is-current-market{background:linear-gradient(90deg,#fff7bd,#e4ef9a)!important;color:#063b23!important;box-shadow:inset 4px 0 0 #b79400;font-weight:950}
.chart-page .reference-directory>div>a.is-current-market::after{content:"✓";font-size:17px;color:#6d5700}
.result-status.is-pending,.market-status.is-pending{border-color:#9b6a00!important;background:#fff3c5!important;color:#6a4700!important}
.result-is-pending .reference-current-result strong,.result-is-pending .reference-repeat-result strong,.result-is-pending .hero-result{filter:saturate(.7);opacity:.85}
.market-detail-page .recent-table tr.is-pending-row td{color:#53645a;background:#edf5ef!important}
.market-detail-page .recent-table tr.is-pending-row td:first-child{color:#174c31}
.market-detail-page .recent-table td{font-variant-numeric:tabular-nums lining-nums}
.chart-page .chart-scroll-note{position:relative}
.chart-page .chart-scroll-note::before{content:"";display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:#0b7d47;vertical-align:1px;box-shadow:0 0 0 2px #fff,0 0 0 3px #0b7d47}
.chart-page .reference-panel-table td,.chart-page .reference-jodi-table td{font-variant-numeric:tabular-nums lining-nums}
.chart-page .table-scroll{scrollbar-width:thin;scrollbar-color:#08713f #dff2e5}
.chart-page .table-scroll::-webkit-scrollbar{height:8px}
.chart-page .table-scroll::-webkit-scrollbar-track{background:#dff2e5}
.chart-page .table-scroll::-webkit-scrollbar-thumb{background:#08713f;border:2px solid #dff2e5;border-radius:99px}
.chart-page button:focus-visible,.chart-page a:focus-visible,.market-detail-page button:focus-visible,.market-detail-page a:focus-visible{outline:3px solid #ffdd4d;outline-offset:2px}
@media(max-width:360px){
  .market-detail-page .market-hero h1{font-size:21px}
  .chart-page .chart-reference-intro h1{font-size:18px!important}
  .chart-page .chart-reference-intro h2{font-size:13px!important}
  .chart-page .chart-actions{gap:4px}
  .chart-page .chart-actions a,.chart-page .chart-actions button{min-width:82px!important;padding-inline:6px!important;font-size:10px!important}
}
