/* New home blocks (php/lm_blocks.php) + pieces shared with the chart blocks.
   Loaded after lucky-mitra.css and before css/brand-theme.css: a site changes colours, radius and font
   stack through the tokens below - never sizes, heights or grids (the fixed heights keep the page
   still when a result arrives). Phone first (360 px, checked at 320 and 375). */

/* ---------- tokens (defaults; each site sets its own in brand-theme.css, dark and light) ---------- */
:root{--rad:16px;--hd-bg:var(--acc-ink);--hd-fg:#fff;--nm-bg:rgba(var(--acc-rgb),.10);--nm-fg:var(--txt);--nm-ink:var(--link);
  --cell-bg:var(--panel2);--today-bg:rgba(var(--acc-rgb),.14);--num:var(--txt);--wait:#f87171;
  --st-ok-bg:rgba(52,211,153,.16);--st-ok-fg:var(--ok);--st-wait-bg:rgba(251,191,36,.16);--st-wait-fg:var(--warn);--st-up-bg:rgba(var(--up-rgb),.14);--st-up-fg:var(--up);
  --now-bg:#14161f;--now-fg:#fff;--now-sub:#cbd5e1;--now-num:#fff;--now-badge-bg:#e2e8f0;--now-badge-fg:#14161f;
  --b6-bg:var(--panel2);--b6-line:var(--line);--tile-bg:var(--panel);--tile-line:var(--line2);--tile-num:var(--txt)}
[data-theme="light"]{--nm-ink:var(--acc-ink);--wait:#b91c1c;--st-ok-fg:#166534;--st-wait-fg:#92400e;--st-up-fg:#475569;--st-up-bg:rgba(71,85,105,.12)}

/* ---------- shared pieces ---------- */
.lm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.lm-sub{margin:4px 0 0;min-height:18px;font-size:12.5px;line-height:18px;color:var(--mute);font-variant-numeric:tabular-nums}
.lm-blk{padding-top:22px;padding-bottom:4px}                       /* spacing of every new below-the-fold section (not .lm-sec) */
.lm-blk>h2{margin:0;font-size:19px;line-height:1.3;font-weight:800;letter-spacing:-.01em}
.lm-bleed{margin:0 -16px}
@media (min-width:561px){.lm-bleed{margin:0}}
.lm-faql{margin:14px 0 0}
.lm-faql>div{padding:10px 0;border-bottom:1px solid var(--line)}.lm-faql dt{font-weight:800}.lm-faql dd{margin:4px 0 0;color:var(--mute)}
.lm-ind{font-size:13px;color:var(--mute)}
/* status chip: always a word, the colour is extra (board6, timetable, tiles, chart blocks) */
.lm-st{display:inline-block;padding:2px 8px;border-radius:999px;font:800 10.5px/16px var(--f);letter-spacing:.04em;white-space:nowrap;background:var(--st-up-bg);color:var(--st-up-fg)}
.is-declared .lm-st{background:var(--st-ok-bg);color:var(--st-ok-fg)}
.is-waiting .lm-st{background:var(--st-wait-bg);color:var(--st-wait-fg)}
.is-upcoming .lm-st{background:var(--st-up-bg);color:var(--st-up-fg)}
/* the dash of a pending number: muted, never as large as a number */
.lm-b6 .lm-dash,.lm-tl .lm-dash,.lm-ttt .lm-dash,.lm-mk .lm-dash{color:var(--mute);-webkit-text-fill-color:var(--mute);letter-spacing:.06em}
.lm-b6__aaj .lm-dash,.lm-tile__v .lm-dash{display:inline-block;vertical-align:top}   /* a smaller dash never makes its line taller than the number's */

/* ---------- existing components: only for configs with 'ui' => 2 (old configs keep their look) ---------- */
html[data-ui="2"]{scroll-padding-top:67px;scroll-padding-bottom:57px}
@media (min-width:561px){html[data-ui="2"]{scroll-padding-top:73px}}
@media (min-width:761px){html[data-ui="2"]{scroll-padding-bottom:0}}
@media (max-width:760px){html[data-ui="2"] .lm-nav{padding:4px 6px calc(4px + env(safe-area-inset-bottom))}
  html[data-ui="2"] .lm-nav a{min-width:48px;min-height:40px;display:flex;align-items:center;justify-content:center;padding:0 6px}}
@media (max-width:560px){html[data-ui="2"] .lm-ico{width:40px;height:40px}html[data-ui="2"] .lm-top [data-theme-toggle]{display:none}}
@media (min-width:561px){html[data-ui="2"] .lm-foot__theme{display:none}}
@media (max-width:339px){html[data-ui="2"] .lm-top__in{gap:8px}html[data-ui="2"] .lm-logo{min-width:0;flex:0 1 auto}html[data-ui="2"] .lm-logo__txt{min-width:0}
  html[data-ui="2"] .lm-logo__txt b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
html[data-ui="2"] .lm-ico b{font-family:system-ui,sans-serif}      /* the two Devanagari glyphs of the language button never pull a web font */
html[data-ui="2"] .lm-sh,html[data-ui="2"] .lm-years a{min-height:40px}
html[data-ui="2"] .lm-logo{min-height:40px}                        /* the logo link is a tap target too (it was 36 px high) */
html[data-ui="2"] .lm-charts a{display:inline-flex;align-items:center;min-height:40px}   /* chart links of the about block (35 px before) */

@media (max-width:560px){html[data-ui="2"] .lm-wrap.lm-sec{padding-top:22px}}   /* on phones .lm-wrap takes the top padding of .lm-sec away: about / FAQ would touch the block above */

/* ---------- head: compact H1 line (clock | date | bar | plain) ---------- */
.lm-head{padding-top:10px;padding-bottom:6px;text-align:center}
.lm-head--bar{text-align:left}
.lm-head__clock,.lm-head__date,.lm-head__next{margin:0;min-height:20px;font:700 13px/20px var(--f);font-variant-numeric:tabular-nums}
.lm-head__clock,.lm-head__date{color:var(--nm-ink)}             /* may take a second line on a 320 px phone when the date is long; the text never changes its length while the page is open (tabular digits) */
.lm-head__clock .lm-dot{margin-right:6px;vertical-align:1px}
.lm-head__next{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--mute)}
.lm-head__next b{color:var(--txt)}
.lm-head__h1{margin:4px 0 6px;font-size:20px;line-height:1.25;font-weight:800;letter-spacing:-.01em}
.lm-head__sub{margin:0;min-height:18px;font-size:13px;line-height:18px;color:var(--mute)}
.lm-head__next #lm-next-count{display:inline-block;min-width:8ch;text-align:left}   /* tabular digits keep the width; the min-width only steadies the end of the line */
.lm-head__row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.lm-head__row .lm-head__h1{min-width:0}
.lm-head__chip{flex:none;padding:2px 10px;border-radius:999px;background:var(--nm-bg);color:var(--nm-ink);font:700 12.5px/20px var(--f);font-variant-numeric:tabular-nums;white-space:nowrap}
@media (max-width:339px){.lm-head--bar .lm-head__h1{font-size:18px}.lm-head__chip{padding:2px 8px;font-size:12px}}   /* H1 + clock chip stay on one line at 320 px */
@media (min-width:761px){.lm-head{padding-top:22px;padding-bottom:12px}.lm-head__h1{font-size:30px}}

/* ---------- now: last declared market + next market (two cards) ---------- */
.lm-now{padding-top:0;padding-bottom:4px}
.lm-now__cards{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.lm-now__card{min-width:0;background:var(--now-bg);color:var(--now-fg);border-radius:var(--rad);padding:10px 12px 12px;text-align:center}
.lm-now__name{height:32px;margin:0;font-size:26px;line-height:32px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lm-now__meta{height:16px;margin:0;font-size:12px;line-height:16px;font-weight:600;color:var(--now-sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
/* the same 60 px box for the number, the wait word and the result time: nothing moves when the result lands */
.lm-now__num{height:60px;line-height:60px;font-size:56px;font-weight:800;color:var(--now-num);font-variant-numeric:tabular-nums;display:flex;align-items:center;justify-content:center}
.lm-now__wait{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 16px;border-radius:999px;font-size:15px;line-height:1;font-weight:800;letter-spacing:.08em;color:var(--now-badge-fg);background:var(--now-badge-bg)}
.lm-now__wait i{width:9px;height:9px;border-radius:50%;background:#dc2626;animation:lmPulse 1.6s infinite}
.lm-now__btn{display:inline-block;max-width:100%;height:40px;padding:0 16px;margin-top:4px;border-radius:10px;background:rgba(255,255,255,.14);color:var(--now-fg);font-size:13px;line-height:40px;font-weight:700;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:top}
@media (min-width:761px){.lm-now__cards{grid-template-columns:repeat(2,minmax(0,1fr))}.lm-now__name{height:40px;font-size:32px;line-height:40px}}

/* ---------- rt: yesterday / today table ---------- */
.lm-today{padding-top:10px}
.lm-rt__h{margin:0 0 8px;font-size:16px;line-height:1.3;font-weight:800}
.lm-rt{width:100%;table-layout:fixed;border-collapse:collapse;border:2px solid var(--hd-bg);font-variant-numeric:tabular-nums}
.lm-rt col.m{width:44%}
.lm-rt th,.lm-rt td{border:1px solid var(--line2);text-align:center;vertical-align:middle;padding:0}
.lm-rt thead th{padding:7px 4px;background:var(--hd-bg);color:var(--hd-fg);font-size:12.5px;line-height:1.2;font-weight:800}
.lm-rt thead small{display:block;font-size:10.5px;font-weight:600}
.lm-rt tbody th{height:64px;background:var(--nm-bg)}
.lm-rt__m{display:flex;flex-direction:column;justify-content:center;min-height:62px;padding:2px 4px;color:var(--nm-fg);font-size:14px;line-height:1.25;font-weight:800;text-decoration:none}   /* whole cell = tap target */
.lm-rt__m small{display:block;font-size:11px;font-weight:600;color:var(--mute)}
.lm-rt__m span{font-size:11px;font-weight:700;color:var(--nm-ink);text-decoration:underline}
.lm-rt td{height:64px;font-size:22px;font-weight:800;background:var(--cell-bg);color:var(--num)}
.lm-rt td.is-wait{font-size:12px;letter-spacing:.06em;color:var(--wait)}
.lm-rt td.is-due{font-size:12px;color:var(--mute)}
.lm-rt td.is-empty{color:var(--mute);font-weight:500}
.lm-rt__next{min-height:36px}                                      /* two lines kept free: the line below gets longer while a result is awaited */
.lm-rt__next b{color:var(--txt)}

/* ---------- date x markets tables: month, sheet30, days7 (no sideways scroll, no scroll box) ---------- */
.lm-month{padding-top:14px}
.lm-month__h{margin:0 0 8px;padding:10px 8px;border-radius:12px;background:var(--hd-bg);color:var(--hd-fg);font-size:15px;line-height:1.3;font-weight:800;text-align:center}
.lm-mt,.lm-s30t,.lm-d7t{width:100%;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums;background:var(--cell-bg);color:var(--num)}
.lm-s30 .lm-bleed,.lm-d7 .lm-bleed{margin-top:10px}
.lm-mt col.d{width:12.5%}
.lm-s30t col.d{width:16.5%}
.lm-d7t col.d{width:21%}
.lm-mt th,.lm-mt td,.lm-s30t th,.lm-s30t td,.lm-d7t th,.lm-d7t td{border:1px solid var(--line2);text-align:center;padding:8px 1px;font-size:15px;line-height:20px;font-weight:700;overflow:hidden}
.lm-s30t td{padding:9.5px 1px}
.lm-d7t td{padding:13.5px 1px}
/* head: sticky under the sticky site header (59 px on phones, 65 px from 561 px); works because no ancestor has overflow.
   A market name may break only at a space or at its soft hyphen, never elsewhere inside the word. */
.lm-mt thead th,.lm-s30t thead th,.lm-d7t thead th{position:sticky;top:59px;z-index:2;height:40px;padding:0;background:var(--hd-bg);color:var(--hd-fg);
  font-size:10.5px;line-height:13px;font-weight:800;letter-spacing:-.01em;-webkit-hyphens:manual;hyphens:manual;overflow-wrap:normal;word-break:normal}
html[lang^="en"] .lm-mt thead th,html[lang^="en"] .lm-s30t thead th,html[lang^="en"] .lm-d7t thead th{font-size:9.5px;font-weight:700;letter-spacing:-.02em}
/* below 340 px a Hindi name without a break point ("गाज़ियाबाद", 44.7 px at 10.5 px) is wider than a 43 px sheet30 column */
@media (max-width:339px){html[lang^="hi"] .lm-mt thead th,html[lang^="hi"] .lm-s30t thead th,html[lang^="hi"] .lm-d7t thead th{font-size:10px}}
.lm-mt thead th a,.lm-s30t thead th a,.lm-d7t thead th a{display:flex;align-items:center;justify-content:center;min-height:40px;line-height:13px;color:inherit;text-decoration:none}
.lm-mt tbody th,.lm-s30t tbody th,.lm-d7t tbody th{background:var(--nm-bg);color:var(--nm-ink);font-weight:800}
.lm-mt tbody th small,.lm-s30t tbody th small,.lm-d7t tbody th small{display:block;font-weight:700;color:var(--nm-fg)}
.lm-mt tr.is-tail th{padding:3px 1px}
.lm-mt tr.is-tail th time{display:block;line-height:18px}
.lm-mt tbody th small{font-size:9px;line-height:11px}
.lm-s30t tbody th{padding:6px 1px;font-size:12.5px;line-height:16px}
.lm-s30t tbody th small{font-size:9.5px;line-height:11px}
.lm-d7t tbody th{padding:8px 1px;font-size:13px;line-height:18px}
.lm-d7t tbody th b{display:block;font-weight:800}
.lm-d7t tbody th small{font-size:10.5px;line-height:13px}
.lm-mt tr.is-today>*,.lm-s30t tr.is-today>*,.lm-d7t tr.is-today>*{background:var(--today-bg)}
.lm-mt td.is-empty,.lm-s30t td.is-empty,.lm-d7t td.is-empty{color:var(--mute);font-weight:500}
.lm-mt tr.lm-mt__sep th{padding:4px;background:var(--hd-bg);color:var(--hd-fg);font-size:11.5px;line-height:16px;font-weight:800}
.lm-month__more{margin:8px 0 0;text-align:center}
.lm-month__more a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;font-size:13.5px;font-weight:700;color:var(--nm-ink)}
@media (min-width:561px){
  .lm-mt thead th,.lm-s30t thead th,.lm-d7t thead th,html[lang^="en"] .lm-mt thead th,html[lang^="en"] .lm-s30t thead th,html[lang^="en"] .lm-d7t thead th{top:65px;font-size:12px}
  .lm-mt td,.lm-s30t td,.lm-d7t td{font-size:16px}
}
@media print{.lm-mt thead th,.lm-s30t thead th,.lm-d7t thead th{position:static}}

/* ---------- board6: vertical status board ---------- */
.lm-b6{padding-top:0;padding-bottom:4px}
.lm-b6__h{margin:0 0 6px;font-size:16px;line-height:1.3;font-weight:800;text-align:center}
.lm-b6__dates{margin:0 0 6px;min-height:14px;font:700 12px/14px var(--f);font-variant-numeric:tabular-nums;text-align:center;color:var(--mute)}
.lm-b6__list{list-style:none;margin:0;padding:0;border:2px solid var(--hd-bg);border-radius:var(--rad);overflow:hidden;background:var(--b6-bg)}
.lm-b6__row{display:grid;grid-template-columns:minmax(0,1fr) 92px 62px 40px;align-items:center;gap:6px;height:66px;padding:0 10px;border-bottom:1px solid var(--b6-line)}
.lm-b6__row:last-child{border-bottom:0}
.lm-b6__row.is-latest{background:var(--today-bg);box-shadow:inset 4px 0 0 var(--hd-bg)}   /* the newest number: found at a glance */
.lm-b6__m{display:flex;flex-direction:column;justify-content:center;align-self:stretch;min-width:0;text-decoration:none;color:var(--txt)}   /* whole name cell = tap target */
.lm-b6__m b{font-size:15px;line-height:17px;font-weight:800}
.lm-b6__m small{font-size:11.5px;line-height:14px;font-weight:600;color:var(--mute);font-variant-numeric:tabular-nums}
.lm-b6__st{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0}
.lm-b6__cd{display:block;min-height:16px;font:700 11px/16px var(--f);font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--mute)}
.lm-b6__aaj,.lm-b6__kal{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0}
.lm-b6__aaj small,.lm-b6__kal small{font-size:9.5px;line-height:12px;font-weight:800;letter-spacing:.06em;color:var(--mute)}
.lm-b6__aaj b{font-size:38px;line-height:40px;font-weight:800;color:var(--num);font-variant-numeric:tabular-nums}
.lm-b6__aaj .lm-dash{font-size:24px}
.lm-b6__kal b{font-size:16px;line-height:40px;font-weight:700;font-variant-numeric:tabular-nums}
.lm-b6__foot{margin:6px 0 0;min-height:20px;font-size:12.5px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;color:var(--mute);font-variant-numeric:tabular-nums}
.lm-b6__foot .lm-dot{margin-right:6px;vertical-align:1px}
.lm-b6__foot b{color:var(--txt)}
@media (max-width:339px){.lm-b6__row{grid-template-columns:minmax(0,1fr) 84px 50px 32px;gap:4px;padding:0 6px}.lm-b6__m b{font-size:13px;line-height:15px}.lm-b6__m small{font-size:10.5px}.lm-b6__aaj b{font-size:32px}.lm-b6__cd{font-size:10.5px}}
@media (min-width:561px){.lm-b6__row{grid-template-columns:minmax(0,1fr) 120px 90px 60px;padding:0 16px}}
@media (min-width:761px){.lm-b6__list{max-width:760px;margin-left:auto;margin-right:auto}}

/* ---------- feed: latest declared results with the saved time ---------- */
.lm-fd__list{list-style:none;margin:10px 0 0;padding:0;border-top:1px solid var(--line)}
.lm-fd__list li{display:grid;grid-template-columns:64px 52px minmax(0,1fr) 44px;align-items:center;min-height:44px;border-bottom:1px solid var(--line);font-size:13.5px;font-variant-numeric:tabular-nums}
.lm-fd__list time{font-size:12px;font-weight:700;white-space:nowrap}
.lm-fd__d{font-size:12px;color:var(--mute);white-space:nowrap}
.lm-fd__list a{display:flex;align-items:center;min-width:0;min-height:40px;font-weight:700;color:var(--txt);text-decoration:none}
.lm-fd__list b{font-size:20px;font-weight:800;text-align:right;color:var(--num)}

/* ---------- timetable: time, market, today, yesterday ---------- */
.lm-tt{padding-top:0;padding-bottom:4px}
.lm-tt__h{margin:0 0 6px;font-size:16px;line-height:1.3;font-weight:800}
.lm-tt__dates{margin:0 0 6px;min-height:20px;font:600 12.5px/20px var(--f);font-variant-numeric:tabular-nums;color:var(--mute)}
.lm-ttt{table-layout:fixed;width:100%;border-collapse:collapse;border:2px solid var(--hd-bg);font-variant-numeric:tabular-nums;background:var(--cell-bg)}
.lm-ttt col.t{width:22%}.lm-ttt col.m{width:38%}.lm-ttt col.v{width:20%}.lm-ttt col.y{width:20%}
.lm-ttt th,.lm-ttt td{border:1px solid var(--line2);padding:0 2px;text-align:center;vertical-align:middle}
.lm-ttt thead th{height:36px;padding:0 1px;background:var(--hd-bg);color:var(--hd-fg);font-size:11.5px;line-height:1.2;font-weight:800}
.lm-ttt tbody th,.lm-ttt tbody td{height:56px}
.lm-ttt__t{background:var(--nm-bg);color:var(--nm-fg);font-size:13px;font-weight:700;white-space:nowrap}
.lm-ttt tbody th{position:relative;padding:0 8px;text-align:left}
.lm-ttt tbody th a{display:block;font-size:15px;line-height:16px;font-weight:800;color:var(--txt);text-decoration:none}   /* a long name takes two lines: 32 + 2 + chip 20 still fits the 56 px row */
.lm-ttt tbody th a::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}   /* the whole name cell is the tap target */
.lm-ttt tbody th .lm-st{margin-top:2px;vertical-align:top}
.lm-ttt__v{font-size:24px;font-weight:800;color:var(--num)}
.lm-ttt__v .lm-dash{font-size:18px}
.lm-ttt__y{font-size:16px;font-weight:700;color:var(--num)}
.lm-ttt__y .lm-dash{font-size:14px}
.lm-ttt td.is-empty{color:var(--mute);font-weight:500}
@media (max-width:339px){.lm-ttt thead th{font-size:10px}.lm-ttt__t{font-size:11.5px}.lm-ttt tbody th{padding:0 6px}.lm-ttt tbody th a{font-size:14px}}

/* ---------- markets: one block per market ---------- */
.lm-mk__list{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:12px}
@media (min-width:761px){.lm-mk__list{grid-template-columns:repeat(2,minmax(0,1fr))}}
.lm-mk__item{min-width:0;padding:8px 12px 6px;border:1px solid var(--line2);border-radius:var(--rad);background:var(--panel)}
.lm-mk__item h3{margin:0;font-size:15.5px;line-height:1.3;font-weight:800}
.lm-mk__item h3 a{display:flex;align-items:center;min-height:40px;color:var(--txt);text-decoration:none}
.lm-mk__dl{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr);gap:6px;margin:4px 0 8px}
.lm-mk--3 .lm-mk__dl{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr)}
.lm-mk__dl>div{display:flex;flex-direction:column;justify-content:flex-end;min-width:0}
.lm-mk__dl dt{font-size:11px;line-height:14px;color:var(--mute);overflow-wrap:anywhere}
.lm-mk__dl dd{margin:0;height:24px;font-size:18px;line-height:24px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.lm-mk__dl>div:first-child dd{font-size:13px}
.lm-mk__dl dd.is-empty{color:var(--mute);font-weight:500}
.lm-mk__note{margin:0;font-size:13.5px;line-height:1.5;color:var(--mute)}
.lm-mk__more{display:inline-flex;align-items:center;min-width:40px;min-height:40px;font-size:13.5px;font-weight:700;color:var(--nm-ink)}
@media (max-width:339px){.lm-mk__dl{grid-template-columns:minmax(0,1.9fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr);gap:5px}.lm-mk--3 .lm-mk__dl{grid-template-columns:minmax(0,1.9fr) minmax(0,1fr) minmax(0,1fr)}.lm-mk__dl>div:first-child dd{font-size:12.5px}.lm-mk__dl dt{font-size:10px}}

/* ---------- week: Monday..Sunday, rows = markets ---------- */
.lm-wk>.lm-bleed{margin-top:10px}
.lm-wk__wh{margin:14px 0 6px;font-size:13px;line-height:1.3;font-weight:800}
.lm-wk__wh+.lm-bleed{margin-top:0}
.lm-wkt{table-layout:fixed;width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;background:var(--cell-bg);color:var(--num)}
.lm-wkt th,.lm-wkt td{border:1px solid var(--line2);padding:0 1px;text-align:center;vertical-align:middle}
.lm-wkt thead th{height:40px;background:var(--hd-bg);color:var(--hd-fg);font-size:10.5px;line-height:13px;font-weight:800}
.lm-wkt thead th:first-child{width:80px;font-size:11.5px}
.lm-wkt thead abbr{display:block;text-decoration:none}
.lm-wkt thead small{display:block;font-size:12px;line-height:14px;font-weight:700}
.lm-wkt thead th.is-today{box-shadow:inset 0 -3px 0 var(--hd-fg)}
.lm-wkt tbody th{padding:0 2px 0 6px;background:var(--nm-bg);text-align:left;font-size:12px;line-height:14px;font-weight:800;-webkit-hyphens:manual;hyphens:manual;overflow-wrap:normal;word-break:normal}
.lm-wkt tbody th a{display:flex;align-items:center;min-height:43px;color:var(--nm-fg);text-decoration:none}
.lm-wkt td{height:44px;font-size:15px;font-weight:700}
.lm-wkt td.is-today{background:var(--today-bg)}
.lm-wkt td.is-empty{color:var(--mute);font-weight:500}

/* ---------- tiles: 2 x 3 grid ---------- */
.lm-tl{padding-top:0;padding-bottom:4px}
.lm-tl__h{margin:0 0 6px;font-size:16px;line-height:1.3;font-weight:800;text-align:center}
.lm-tl__dates{margin:0 0 6px;min-height:14px;font:700 12px/14px var(--f);font-variant-numeric:tabular-nums;text-align:center;color:var(--mute)}
.lm-tl__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.lm-tile{position:relative;min-width:0;height:124px;padding:10px 8px;border-radius:var(--rad);background:var(--tile-bg);border:1px solid var(--tile-line);text-align:center}
.lm-tile__n{height:18px;margin:0;font-size:14px;line-height:18px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lm-tile__n a{color:var(--txt);text-decoration:none}
.lm-tile__n small{font-size:11.5px;font-weight:600;color:var(--mute);font-variant-numeric:tabular-nums;vertical-align:top}
.lm-tile__n a::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--rad)}   /* the whole tile is the tap target */
.lm-tile__t{display:flex;align-items:center;justify-content:center;gap:5px;height:18px;margin:0;font-size:12px;line-height:18px;font-weight:600;color:var(--mute);white-space:nowrap;font-variant-numeric:tabular-nums}
.lm-tile__t .lm-st{padding:1px 7px}
.lm-tile__v{height:48px;margin:0;font-size:44px;line-height:48px;font-weight:800;color:var(--tile-num);font-variant-numeric:tabular-nums}
.lm-tile__v .lm-dash{font-size:28px}
.lm-tile__y{height:18px;margin:0;font-size:12.5px;line-height:18px;color:var(--mute)}
.lm-tile__y b{font-weight:800;color:var(--txt);font-variant-numeric:tabular-nums}
.lm-tl .lm-sub{text-align:center}
@media (min-width:761px){.lm-tl__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ---------- mdates: the month as a date-wise list ---------- */
.lm-md__list{list-style:none;margin:10px 0 0;padding:0;border-top:1px solid var(--line)}
.lm-md__list li{padding:8px 0;border-bottom:1px solid var(--line);font-size:13.5px;line-height:22px;color:var(--mute)}
.lm-md__list time{display:block;line-height:20px;color:var(--txt)}
.lm-md__list time small{color:var(--mute);font-size:12px}
.lm-md__list li>b{display:inline-block;min-width:2ch;margin-right:10px;font-weight:800;color:var(--txt);font-variant-numeric:tabular-nums}   /* an empty value of today keeps its 2ch */
.lm-md__list li>b.is-empty{font-weight:500;color:var(--mute)}
.lm-md__list li.is-today{margin:0 -8px;padding:8px;border-radius:10px;background:var(--today-bg)}
.lm-md__list li.lm-md__sep{padding:10px 0 6px;font-weight:800;color:var(--txt)}

/* ---------- years: every year chart of every market ---------- */
.lm-yr__list{margin-top:8px}
.lm-yr__row h3{margin:0;font-size:14.5px;line-height:1.3;font-weight:800}
.lm-yr__row h3 a{display:inline-flex;align-items:center;min-width:40px;min-height:40px;color:var(--txt);text-decoration:none}
.lm-yr__row ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:2px 0 14px;padding:0}
.lm-yr__row li a{display:grid;place-items:center;min-width:44px;min-height:40px;border:1px solid var(--line2);border-radius:8px;background:var(--panel);font:700 13px var(--f);font-variant-numeric:tabular-nums;color:var(--txt);text-decoration:none}
.lm-yr__hub{margin:2px 0 0}
.lm-yr__hub .lm-btn{min-height:44px;white-space:normal}

/* ---------- text:<key>: text written by the site ---------- */
.lm-tx p,.lm-tx li,.lm-tx dd{font-size:14.5px;line-height:1.6;color:var(--mute)}
.lm-tx p{margin:8px 0 0}
.lm-tx a{color:var(--nm-ink)}
.lm-tx strong,.lm-tx b{color:var(--txt)}
.lm-tx__dl{margin:8px 0 0}
.lm-tx__dl>div{padding:8px 0;border-bottom:1px solid var(--line)}
.lm-tx__dl dt{font-size:14.5px;font-weight:800;color:var(--txt)}
.lm-tx__dl dd{margin:2px 0 0}
.lm-tx__ol{margin:8px 0 0;padding-left:22px}
.lm-tx__ol li{margin:0 0 6px}

/* ---------- search: date / market lookup ---------- */
.lm-sb{padding-top:22px;padding-bottom:4px}
.lm-sb .lm-search--hero{margin-top:0;max-width:none;padding-left:12px}
.lm-sb .lm-search input{min-height:44px;font-size:16px}           /* under 16 px iPhone Safari zooms into a focused field */
.lm-sb .lm-search button{min-height:44px}
.lm-sb .lm-search__out{max-width:none}
.lm-sb .lm-search__out a{align-items:center;min-height:40px}

/* ---------- notify: compact alert box ---------- */
.lm-nt{padding-top:22px;padding-bottom:4px}
.lm-nt__box{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px 12px;align-items:center;padding:14px;border:1px solid var(--line2);border-radius:var(--rad);background:var(--panel)}
.lm-nt__ico{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;color:var(--on-acc);background:var(--btn)}
.lm-nt__ico svg{width:20px;height:20px}
.lm-nt__box h2{margin:0;font-size:16px;line-height:1.3;font-weight:800}
.lm-nt__box p{margin:2px 0 0;font-size:13px;line-height:1.45;color:var(--mute)}
.lm-nt__box .lm-btn{grid-column:1/-1;justify-content:center;min-height:44px}
@media (min-width:561px){.lm-nt__box{grid-template-columns:40px minmax(0,1fr) auto}.lm-nt__box .lm-btn{grid-column:auto}}

/* ---------- row that a result notification points at (class set by js/notifications.js) ---------- */
/* only rows of the new blocks: the legacy card keeps the look it has today */
li.lm-b6__row.satta-result-row-highlight,article.lm-tile.satta-result-row-highlight,.lm-rt tr.satta-result-row-highlight>th,.lm-ttt tr.satta-result-row-highlight>th{background:#ffe9a8!important;color:#241100!important}
li.lm-b6__row.satta-result-row-highlight *,article.lm-tile.satta-result-row-highlight *,.lm-rt tr.satta-result-row-highlight>th *,.lm-ttt tr.satta-result-row-highlight>th *{color:#241100!important;-webkit-text-fill-color:#241100}

/* ---------- motion ---------- */
@media (prefers-reduced-motion:reduce){.lm-now__wait i,.lm-head .lm-dot,.lm-b6 .lm-dot{animation:none}}

/* ---------- wider screens ---------- */
@media (min-width:761px){.lm-blk>h2{font-size:22px}.lm-rt,.lm-ttt{max-width:760px;margin-left:auto;margin-right:auto}.lm-rt__h,.lm-tt__h{text-align:center}.lm-tt__dates,.lm-rt__next{text-align:center}}
