/* Record chart pages: blocks of php/lm_chart.php (class prefix lmc-) and the chart index page chart.php.
   Loaded only by pages that use these blocks (a site without 'chart.sections' never gets this file).
   Colours, radius and font come from css/brand-theme.css tokens; every new token has a fallback here. */

/* ---- page frame + the small shared pieces these pages need even when css/lm-blocks.css is not there yet ---- */
.lmc-hub{padding-top:6px}
.lm-chpage .lm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.lm-chpage .lm-bleed{margin:0 -16px}
@media (min-width:561px){.lm-chpage .lm-bleed{margin:0}}
.lm-chpage .lm-blk{padding-top:22px;padding-bottom:4px}

/* ---- breadcrumb (every link is a 40 px tap target) ---- */
.lmc-crumbs{gap:0 2px;font-size:12.5px;line-height:1.2}
/* on phones .lm-wrap has no top padding (lucky-mitra.css), so the first line sits right under the sticky header: keep a small gap */
.lmc-crumbs:first-child{margin-top:-2px}
.lmc-crumbs a,.lmc-crumbs b{display:inline-flex;align-items:center;min-height:40px}
.lmc-crumbs a{justify-content:center;min-width:40px;padding:0 2px}
.lmc-crumbs span{padding:0 5px;color:var(--mute)}

/* ---- H1 + lead + one button row ---- */
.lmc-head:first-child{margin-top:12px}
.lmc-head h1,.lmc-hub h1{margin:0 0 6px;font-size:22px;line-height:1.25;font-weight:800;letter-spacing:-.01em}
.lmc-head .lm-lead,.lmc-hub .lm-lead{max-width:none;font-size:13.5px;line-height:1.4}
.lmc-head__btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.lmc-head__btns .lm-btn{min-height:40px;padding:0 14px;font-size:13px}
@media (min-width:761px){.lmc-head h1,.lmc-hub h1{font-size:30px}.lmc-head .lm-lead,.lmc-hub .lm-lead{font-size:15px}}

/* ---- today: line (56 px) ---- */
.lmc-line{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:8px;min-height:56px;margin-top:12px;padding:4px 12px;
  border-radius:var(--rad,16px);border:1px solid var(--line2);background:var(--cell-bg,var(--panel2))}
.lmc-line__t{font:700 11px/1.25 var(--f);color:var(--mute);font-variant-numeric:tabular-nums}
.lmc-line__t time{display:block;font-size:13.5px;color:var(--txt);white-space:nowrap}
.lmc-line__v{display:flex;flex-direction:column;align-items:center;min-width:0}
.lmc-line__v small{font:700 10.5px/14px var(--f);letter-spacing:.04em;color:var(--mute)}
.lmc-line__v b{font:800 22px/26px var(--f);font-variant-numeric:tabular-nums;color:var(--num,var(--txt));white-space:nowrap}
/* wait word / result time while the number is not out (the row class decides, so it also ends with an older script file) */
.lmc-line:not(.is-declared) .lmc-line__v b.is-wait{font-size:12px;letter-spacing:.06em;color:var(--wait,#f87171)}
.lmc-line:not(.is-declared) .lmc-line__v b.is-due{font-size:12px;color:var(--mute)}
.lmc-line .lm-st{display:inline-block;padding:2px 8px;border-radius:999px;font:800 10.5px/16px var(--f);letter-spacing:.04em;white-space:nowrap}
.lmc-line.is-declared .lm-st{background:var(--st-ok-bg,rgba(52,211,153,.16));color:var(--st-ok-fg,var(--ok))}
.lmc-line.is-waiting .lm-st{background:var(--st-wait-bg,rgba(251,191,36,.16));color:var(--st-wait-fg,var(--warn))}
.lmc-line.is-upcoming .lm-st{background:var(--st-up-bg,rgba(var(--up-rgb),.14));color:var(--st-up-fg,var(--up))}
@media (max-width:339px){.lmc-line{gap:4px;padding:4px 8px}.lmc-line .lm-st{padding:2px 6px;font-size:10px;letter-spacing:0}}

/* ---- today: box (two cells of 96 px, number 44 px) ---- */
.lmc-box{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.lmc-box>div{display:flex;flex-direction:column;align-items:center;justify-content:center;height:96px;border-radius:var(--rad,16px);border:1px solid var(--tile-line,var(--line2));background:var(--tile-bg,var(--panel))}
.lmc-box small{font:700 11.5px/16px var(--f);letter-spacing:.04em;color:var(--mute)}
.lmc-box b{font:800 44px/52px var(--f);font-variant-numeric:tabular-nums;color:var(--tile-num,var(--txt))}

/* ---- today: card and the other older pieces when they stand in a block list ---- */
.lmc-head~.lm-chlive,.lmc-head~.lm-chstats,.lmc-head~.lm-chshare,.lmc-head~.lm-years{margin-top:14px}
.lmc-head~.lm-chlive .lm-card__foot a{min-height:40px}
.lmc-head~.lm-answer{margin-top:12px}
.lmc-head~.lm-years a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:40px}
.lmc-head~.lm-chshare .lm-sh{min-height:40px}

/* ---- sections ---- */
.lmc-sec,.lmc-others,.lmc-sum{padding-top:20px}
.lmc-sec>h2,.lmc-others>h2,.lmc-sum>h2,.lmc-about>h2,.lmc-faq>h2{margin:0 0 8px;font-size:17px;line-height:1.3;font-weight:800;letter-spacing:0}
.lmc-sec h3,.lmc-facts h3{margin:16px 0 8px;font-size:14.5px;line-height:1.3;font-weight:800}
.lmc-note{display:block;margin-top:8px;color:var(--mute)}

/* ---- tables: year grid, weeks, this week, chart index ---- */
.lmc-yg,.lmc-wk,.lmc-tw,.lmc-hubt{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
.lmc-yg th,.lmc-yg td,.lmc-wk th,.lmc-wk td,.lmc-tw th,.lmc-tw td,.lmc-hubt th,.lmc-hubt td{padding:0;text-align:center;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.lmc-yg td,.lmc-wk td,.lmc-tw td,.lmc-hubt td{background:var(--cell-bg,var(--panel2));color:var(--num,var(--txt))}
.lmc-yg thead th,.lmc-wk thead th,.lmc-tw thead th,.lmc-hubt thead th{background:var(--hd-bg,var(--acc-ink));color:var(--hd-fg,#fff);font:700 10px/1.1 var(--f)}
.lmc-yg thead th,.lmc-wk thead th,.lmc-hubt thead th{position:sticky;top:59px;z-index:2}
@media (min-width:561px){.lmc-yg thead th,.lmc-wk thead th,.lmc-hubt thead th{top:65px}}
.lmc-yg tbody th,.lmc-wk tbody th,.lmc-hubt tbody th{background:var(--nm-bg,rgba(var(--acc-rgb),.10));color:var(--nm-fg,var(--txt))}
.lmc-yg td.is-empty,.lmc-wk td.is-empty,.lmc-tw td.is-empty,.lmc-list td.is-empty{color:var(--mute);font-weight:500}
.lmc-yg td.is-today,.lmc-wk td.is-today,.lmc-tw td.is-today{background:var(--today-bg,rgba(var(--acc-rgb),.14));box-shadow:inset 0 0 0 2px var(--hd-bg,var(--acc-ink))}
.lmc-yg td.is-na{background:transparent;border-right-color:transparent}
.lmc-prev{padding-top:6px}

.lmc-yg col.d{width:30px}
.lmc-yg th,.lmc-yg td{height:30px}
.lmc-yg td{font:700 12px/1 var(--f)}
.lmc-yg tbody th{font:700 11px/1 var(--f)}
@media (min-width:761px){.lmc-yg th,.lmc-yg td{height:32px}.lmc-yg td{font-size:14px}.lmc-yg thead th{font-size:11.5px}.lmc-wk td{font-size:14.5px}.lmc-wk tbody th{font-size:12px}.lmc-wk col.w{width:110px}}
html[lang^="hi"] .lmc-yg thead th{font-size:9px;letter-spacing:-.02em}

.lmc-wk col.w{width:78px}
.lmc-wk th,.lmc-wk td{height:34px}
.lmc-wk td{font:700 13.5px/1 var(--f)}
.lmc-wk tbody th{font:600 10.5px/1 var(--f);white-space:nowrap}
.lmc-wk td.is-out{color:var(--mute);font-weight:500}

.lmc-tw thead th{height:28px;font-size:11px}
.lmc-tw td{height:48px;font:800 20px/24px var(--f)}
.lmc-tw td::before{content:attr(data-d);display:block;font:600 10px/12px var(--f);color:var(--mute)}

/* ---- date-wise lists: last 30 / last 7 days, month lists ---- */
.lmc-list{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.lmc-list th,.lmc-list td{height:40px;padding:0 10px;border-bottom:1px solid var(--line);text-align:left;font-size:14px;font-weight:600}
.lmc-list thead th{height:32px;font-size:11.5px;letter-spacing:.04em;color:var(--mute)}
.lmc-list tbody th{font-weight:700;white-space:nowrap}
.lmc-list tbody td:nth-child(2){color:var(--mute)}
.lmc-list thead th:last-child,.lmc-list tbody td:last-child{text-align:right}
.lmc-list tbody td:last-child{font-size:17px;font-weight:800;color:var(--num,var(--txt))}
.lmc-list tr.is-today>*{background:var(--today-bg,rgba(var(--acc-rgb),.14))}
.lmc-list--7 tbody th,.lmc-list--7 tbody td{height:52px}
.lmc-list--7 tbody td:last-child{font-size:24px}
.lmc-mfold{border-bottom:1px solid var(--line)}
.lmc-mfold>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-size:14px;font-weight:700;color:var(--nm-ink,var(--link))}
.lmc-sec .lmc-mh{margin-top:4px}

/* ---- facts ---- */
.lmc-facts{padding-top:16px;font-size:14.5px;color:var(--mute)}
.lmc-facts p{margin:0 0 8px}
.lmc-facts b,.lmc-facts strong{color:var(--txt)}
.lmc-facts a,.lmc-sum a{color:var(--nm-ink,var(--link))}
.lmc-facts h3{color:var(--txt)}
.lmc-mc{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;list-style:none;margin:0;padding:0}
.lmc-mc li{display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0;padding:6px 8px;border-radius:10px;border:1px solid var(--line);background:var(--cell-bg,var(--panel2));font-size:12.5px}
.lmc-mc b{font-size:14px;font-variant-numeric:tabular-nums}

/* ---- year chooser as a form ---- */
.lmc-years{display:flex;align-items:flex-end;gap:8px;margin-top:18px}
.lmc-years label{display:flex;flex-direction:column;gap:4px;font-size:12.5px;font-weight:700;color:var(--mute)}
.lmc-years select,.lmc-years button{min-height:44px;font-size:16px}
.lmc-years select{min-width:128px;padding:0 10px;border-radius:12px;border:1px solid var(--line2);background:var(--panel2);color:var(--txt);font-family:inherit}
.lmc-years .lm-btn{padding:0 18px}

/* ---- other markets ---- */
.lmc-others ul{list-style:none;margin:0;padding:0}
.lmc-others li{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line)}
.lmc-others li a{flex:1;min-width:0;display:flex;align-items:center;min-height:44px;font-size:14px;font-weight:600;text-decoration:none;color:var(--nm-ink,var(--link))}
.lmc-others b{font-size:17px;font-weight:800;font-variant-numeric:tabular-nums}
.lmc-more{margin:10px 0 0}
.lmc-more a{display:inline-flex;align-items:center;min-height:40px;font-size:14px;font-weight:700;color:var(--nm-ink,var(--link))}

/* ---- about, questions ---- */
.lmc-about p{font-size:14.5px}
.lmc-faq .lm-faq{max-width:none;margin:10px 0 0}
.lmc-faq .lm-faql{margin:0}
.lmc-faq .lm-faql>div{padding:10px 0;border-bottom:1px solid var(--line)}
.lmc-faq .lm-faql dt{font-weight:800}
.lmc-faq .lm-faql dd{margin:4px 0 0;color:var(--mute)}

/* ---- chart index (chart.php): 7 columns, year x market ---- */
.lmc-hub .lm-lead{margin-bottom:12px}
.lmc-hubt col.y{width:40px}
.lmc-hubt thead th{hyphens:manual;overflow-wrap:normal;word-break:normal;font-size:9.5px;letter-spacing:-.02em}
.lmc-hubt thead th a{display:flex;align-items:center;justify-content:center;min-height:40px;line-height:13px;color:inherit;text-decoration:none}
.lmc-hubt tbody th{height:44px;font:700 12px/1 var(--f)}
.lmc-hubt td a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 2px;font:700 11.5px/14px var(--f);text-decoration:none;color:var(--nm-ink,var(--link))}
.lmc-hubt td.is-empty{color:var(--mute)}
.lmc-sum ul{margin:0;padding-left:18px;font-size:14.5px;color:var(--mute)}
.lmc-sum li{margin:0 0 6px}

/* ---- wide screens: one readable column ---- */
/* Hub: 0,3,0 so it beats '.lmc-hub h1', '.lm-chpage .lm-bleed' and '.lmc-hub .lm-lead' above (one left edge). */
@media (min-width:900px){
  .lmc-crumbs,.lmc-head,.lmc-head~*,.lm-wrap.lm-chpage.lmc-hub>*{max-width:880px;margin-left:auto;margin-right:auto}
}
@media print{
  .lmc-crumbs,.lmc-head__btns,.lmc-years,.lmc-others,.lmc-more{display:none!important}
  .lmc-yg thead th,.lmc-wk thead th,.lmc-hubt thead th{position:static}
  .lmc-yg th,.lmc-yg td,.lmc-wk th,.lmc-wk td,.lmc-list th,.lmc-list td{color:#000!important;background:#fff!important}
}
