/* Exact table topology from the user's Tahmina reference. Shared chrome stays unchanged. */
#liveBoard .spot-section { margin:0 0 14px; }
#liveBoard .commodity-section { margin:0; }
#liveBoard .rates-table.table { width:100%;min-width:0!important;table-layout:fixed;border-collapse:separate!important;border-spacing:0 10px!important; }
#liveBoard .spot-table col:first-child { width:42%!important; }
#liveBoard .spot-table col:nth-child(n+2) { width:29%!important; }
#liveBoard .commodity-table .product-col { width:52%!important; }
#liveBoard .commodity-table .unit-col { width:18%!important; }
#liveBoard .commodity-table .price-col { width:30%!important; }
#liveBoard .heading-content { display:flex;align-items:center;gap:12px; }
#liveBoard .heading-content.center { justify-content:center; }
#liveBoard .heading-icon { font-size:25px;flex-shrink:0; }
#liveBoard .icon-box::before { content:'\f1b2'; }
#liveBoard .icon-bid::before { content:'\f0e3'; }
#liveBoard .icon-scales::before { content:'\f24e'; }
#liveBoard .icon-tag::before { content:'\f02b'; }
body #liveBoard .rates-table.table thead th { height:58px!important;font-size:19px!important;padding:12px 18px!important; }
body #liveBoard .rates-table.table tbody tr>:is(th,td) { padding:10px 18px!important; }
body #liveBoard .rates-table.table .price-link { font-size:28px!important;min-height:48px;padding:8px 5px!important; }
body #liveBoard .spot-table.table tbody tr>:is(th,td) {
  height:126px!important;background:transparent!important;
  border-top:1px solid #b9dfff!important;border-bottom:1px solid #d6b960!important;
}
body #liveBoard .spot-table.table tbody tr { background:var(--tahmina-blue)!important; }
#liveBoard .spot-table tbody th { position:relative; }
#liveBoard .spot-table tbody th::after { content:'';position:absolute;right:0;top:23%;bottom:23%;width:1px;background:#ffe16c; }
body #liveBoard .spot-table .product-name { color:#ffe578!important;font-size:24px!important;line-height:1.2; }
body #liveBoard .spot-table tr:has(.bullion-image.silver) .product-name { color:#f7f9ff!important; }
#liveBoard .bullion-image { display:inline-block;flex:0 0 76px;width:76px;height:76px;background:url('../liverates-assets/bullion.png') 0 0/200% 200% no-repeat; }
#liveBoard .bullion-image.silver { background-position:100% 0; }
#liveBoard .bullion-image.bars { background-position:0 100%; }
#liveBoard .bullion-image.ingot { background-position:100% 100%; }
#liveBoard .bullion-image.currency { background:url('../liverates-assets/rupee-coin.png') center/contain no-repeat; }
body #liveBoard .spot-table .price-link,
body #liveBoard .spot-table .price-link:is(.bid,.ask),
body #liveBoard .spot-table .price-link[aria-disabled=true] {
  background:transparent!important;border-radius:0;box-shadow:none!important;color:#fff!important;
}
body #liveBoard .spot-table .price-link:hover { text-decoration:underline;text-underline-offset:4px; }
body #liveBoard .spot-table .rate-range { display:flex;align-items:center;justify-content:center;gap:7px;margin-top:7px;color:#e0e8fc;font-size:14px;white-space:nowrap; }
body #liveBoard .spot-table .rate-range b { color:#c1d1ed;font-size:11px;font-weight:400; }
body #liveBoard .spot-table .range-value { color:#fff!important; }
#liveBoard .triangle { width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent; }
#liveBoard .low .triangle { border-top:10px solid #ff514a; }
#liveBoard .high .triangle { border-bottom:10px solid #20e75a; }
#liveBoard .commodity-table .bullion-image { width:56px;height:56px;flex-basis:56px; }
body #liveBoard .commodity-table.table tbody tr>:is(th,td) { height:80px!important; }
body #liveBoard .commodity-table .product-name { font-size:21px!important;line-height:1.2; }
#liveBoard .unit { color:#171b28;text-align:center;font-size:21px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums; }
body #liveBoard .commodity-table .price-link { border-radius:28px;font-size:27px!important; }
body #liveBoard .rates-table .price-link[aria-disabled=true] { color:#fff!important;opacity:.65;cursor:not-allowed; }
#liveBoard.has-stale-rates .price-link { opacity:.65; }
#liveBoard[data-rates-view=coins] .commodity-table .product-col { width:70%!important; }
#liveBoard[data-rates-view=coins] .commodity-table .price-col { width:30%!important; }
@media(max-width:767px) {
  body #liveBoard .rates-table.table thead th { height:50px!important;padding:10px 12px!important;font-size:16px!important; }
  body #liveBoard .rates-table.table tbody tr>:is(th,td) { padding:10px 12px!important; }
  body #liveBoard .spot-table.table tbody tr>:is(th,td) { height:106px!important; }
  body #liveBoard .spot-table .product-name { font-size:21px!important; }
  #liveBoard .bullion-image { width:64px;height:64px;flex-basis:64px; }
  body #liveBoard .rates-table.table .price-link { font-size:25px!important; }
  body #liveBoard .commodity-table .product-name { font-size:18px!important; }
  #liveBoard .unit { font-size:18px; }
}
@media(max-width:540px) {
  #liveBoard .spot-table col:first-child { width:40%!important; }
  #liveBoard .spot-table col:nth-child(n+2) { width:30%!important; }
  #liveBoard .commodity-table .product-col { width:50%!important; }
  #liveBoard .commodity-table .unit-col { width:18%!important; }
  #liveBoard .commodity-table .price-col { width:32%!important; }
  body #liveBoard .rates-table.table thead th { height:44px!important;padding:9px 7px!important;font-size:12px!important; }
  #liveBoard .heading-content { gap:5px; }
  #liveBoard .heading-icon { font-size:19px; }
  body #liveBoard .rates-table.table tbody tr>:is(th,td) { padding:9px 6px!important; }
  body #liveBoard .spot-table.table tbody tr>:is(th,td) { height:90px!important; }
  #liveBoard .product { gap:5px; }
  #liveBoard .bullion-image { width:44px;height:44px;flex-basis:44px; }
  body #liveBoard .spot-table .product-name { font-size:clamp(12px,3.65vw,19px)!important; }
  body #liveBoard .rates-table.table .price-link { font-size:clamp(14px,4.5vw,24px)!important;min-height:40px;padding:8px 3px!important; }
  body #liveBoard .spot-table .rate-range { gap:3px;font-size:11px;flex-wrap:wrap; }
  body #liveBoard .spot-table .rate-range b { font-size:8px; }
  #liveBoard .triangle { border-left-width:4px;border-right-width:4px; }
  #liveBoard .low .triangle { border-top-width:7px; }
  #liveBoard .high .triangle { border-bottom-width:7px; }
  #liveBoard .commodity-table .bullion-image { width:35px;height:35px;flex-basis:35px; }
  body #liveBoard .commodity-table .product-name { font-size:clamp(11px,3.3vw,16px)!important; }
  #liveBoard .unit { font-size:clamp(11px,3.3vw,16px); }
  body #liveBoard .commodity-table.table tbody tr>:is(th,td) { height:68px!important; }
}
@media(max-width:350px) {
  body #liveBoard .commodity-table.table .price-link { font-size:12px!important; }
  body #liveBoard .commodity-table.table tbody td.unit { padding-inline:2px!important; }
}

/* Desktop operating view: the complete normal catalogue fits beneath the
   masthead, with the footer in the next scroll. Never clip or scroll a table. */
@media(min-width:901px) {
  body.isg-live-page #liveBoard.rates-page.container {
    width:calc(100% - 48px)!important;max-width:970px!important;
    min-height:calc(100svh - var(--chrome-height));
    margin:0 auto!important;padding:10px 0!important;flex:0 0 auto;
  }
  body.isg-live-page .market-marquee:not([hidden]) + #liveBoard.rates-page.container {
    min-height:calc(100svh - var(--chrome-height) - 32px);
  }
  body.isg-live-page .market-marquee { min-height:32px; }
  body.isg-live-page .market-marquee-label { padding:4px 16px;font-size:12px; }
  body.isg-live-page .market-marquee-viewport { padding-block:4px; }
  body.isg-live-page .market-marquee-pause { min-height:32px;padding-block:4px; }
  body.isg-live-page .app-footer { margin-top:0!important; }
  #liveBoard .spot-section { margin-bottom:6px; }
  #liveBoard .rates-table.table { border-spacing:0 4px!important; }
  body #liveBoard .rates-table.table thead th { height:38px!important;padding:5px 12px!important;font-size:20px!important; }
  #liveBoard .heading-content { gap:8px; }
  #liveBoard .heading-icon { font-size:20px; }
  body #liveBoard .rates-table.table tbody tr>:is(th,td) { padding:4px 12px!important; }
  body #liveBoard .spot-table.table tbody tr>:is(th,td) { height:clamp(72px,9vh,96px)!important; }
  body #liveBoard .spot-table .product-name { font-size:30px!important; }
  #liveBoard .product { gap:10px; }
  #liveBoard .bullion-image { width:54px;height:54px;flex-basis:54px; }
  body #liveBoard .rates-table.table .price-link { min-height:36px;height:auto;padding:4px 8px!important;font-size:40px!important;line-height:1.1; }
  body #liveBoard .spot-table .rate-range { margin-top:4px;gap:5px;font-size:16px;line-height:1.2; }
  body #liveBoard .spot-table .rate-range b { font-size:13px; }
  #liveBoard .triangle { border-left-width:4px;border-right-width:4px; }
  #liveBoard .low .triangle { border-top-width:7px; }
  #liveBoard .high .triangle { border-bottom-width:7px; }
  body #liveBoard .commodity-table.table tbody tr>:is(th,td) { height:var(--commodity-row-height,44px)!important; }
  #liveBoard .commodity-table .bullion-image { width:38px;height:38px;flex-basis:38px; }
  body #liveBoard .commodity-table .product-name { font-size:26px!important;line-height:1.25; }
  #liveBoard .unit { font-size:24px; }
  body #liveBoard .commodity-table.table .price-link { width:100%;max-width:240px;margin-inline:auto!important;border-radius:20px;font-size:32px!important; }
  body #liveBoard .rates-table.table thead th:first-child,
  body #liveBoard .rates-table.table tbody tr>:first-child { border-top-left-radius:10px!important;border-bottom-left-radius:10px!important; }
  body #liveBoard .rates-table.table thead th:last-child,
  body #liveBoard .rates-table.table tbody tr>:last-child { border-top-right-radius:10px!important;border-bottom-right-radius:10px!important; }
  body #liveBoard .data-note { margin:5px 0 0!important;font-size:10px;line-height:1.4; }
  body #liveBoard .data-note .sample-label { font-size:inherit;line-height:inherit; }
  body #liveBoard .feed-message { margin:4px 0 0;font-size:11px; }
}

/* Compact the same two tables for shorter desktop browser windows. */
@media(min-width:901px) and (max-height:800px) {
  body.isg-live-page #liveBoard.rates-page.container { padding-block:6px!important; }
  #liveBoard .spot-section { margin-bottom:4px; }
  #liveBoard .rates-table.table { border-spacing:0 3px!important; }
  body #liveBoard .rates-table.table thead th { height:28px!important;padding:4px 10px!important;font-size:18px!important; }
  body #liveBoard .rates-table.table tbody tr>:is(th,td) { padding:2px 10px!important; }
  body #liveBoard .spot-table.table tbody tr>:is(th,td) { height:48px!important; }
  #liveBoard .bullion-image { width:34px;height:34px;flex-basis:34px; }
  body #liveBoard .spot-table .product-name { font-size:26px!important; }
  body #liveBoard .rates-table.table .price-link { min-height:26px;padding:1px 4px!important;font-size:32px!important;line-height:1.05; }
  body #liveBoard .spot-table .rate-range { margin-top:2px;font-size:12px;line-height:1.1; }
  body #liveBoard .spot-table .rate-range b { font-size:10px; }
  body #liveBoard .commodity-table.table tbody tr>:is(th,td) { height:var(--commodity-row-height,32px)!important; }
  #liveBoard .commodity-table .bullion-image { width:24px;height:24px;flex-basis:24px; }
  body #liveBoard .commodity-table .product-name { font-size:22px!important; }
  #liveBoard .unit { font-size:20px; }
  body #liveBoard .commodity-table.table .price-link { max-width:220px;min-height:24px;font-size:28px!important; }
  body #liveBoard .data-note { margin-top:4px!important;line-height:1.25; }
}
@media(min-width:901px) and (max-height:640px) {
  body #liveBoard .rates-table.table thead th { font-size:16px!important;padding-block:2px!important; }
  body #liveBoard .spot-table .product-name { font-size:24px!important; }
  body #liveBoard .rates-table.table .price-link { font-size:28px!important; }
  body #liveBoard .commodity-table .product-name { font-size:20px!important; }
  #liveBoard .unit { font-size:18px; }
  body #liveBoard .commodity-table.table .price-link { font-size:24px!important; }
  body #liveBoard .spot-table .rate-range { font-size:11px; }
}

/* Prices have no pill until their latest comparison shows an actual change. */
body #liveBoard .rates-table.table .price-link {
  background:transparent!important;border-radius:0!important;box-shadow:none!important;
}
body #liveBoard .commodity-table.table .price-link { color:#26135b!important; }
body #liveBoard .rates-table.table .price-link[data-direction] {
  border-radius:28px!important;box-shadow:inset 0 1px 0 #ffffff80,0 2px 4px #0004!important;color:#fff!important;
}
body #liveBoard .commodity-table .price-link:hover { text-decoration:underline;text-underline-offset:4px; }
body #liveBoard .rates-table.table .price-link[data-direction=up] { background:linear-gradient(180deg,#19b94b,#00752d)!important; }
body #liveBoard .rates-table.table .price-link[data-direction=down] { background:linear-gradient(180deg,#fa443d,#b50013)!important; }
body #liveBoard .rates-table.table .price-link[aria-disabled=true] { background:transparent!important;box-shadow:none!important; }
@media(forced-colors:active) {
  body #liveBoard .rates-table .price-link { border:1px solid ButtonText!important;color:LinkText!important;box-shadow:none!important; }
}
