/* Live Rates: metallic lettering and single ingots from the theme1.jpeg reference. */
/* A single tapered blade of light crosses the viewport on page entry. */
.isg-live-page .tahmina-load-flash {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: hidden;
  contain: strict;
  pointer-events: none;
  user-select: none;
}
.tahmina-load-blade {
  position: absolute;
  left: -75vw;
  top: 48%;
  width: 90vw;
  height: 3px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #dfc17b 36%, #fff3b4 72%, #fff 86%, transparent);
  transform-origin: 85% 50%;
  animation: tahmina-sword-flash 740ms cubic-bezier(.4, 0, .2, 1) 80ms 1 both;
}
.tahmina-load-blade::before {
  content: "";
  position: absolute;
  inset: -26px 0;
  background: linear-gradient(180deg, transparent, #dfc17b24 48%, #fff3b440 50%, #dfc17b24 52%, transparent);
  clip-path: polygon(0 50%, 74% 0, 100% 50%, 74% 100%);
}
.tahmina-load-blade::after {
  content: "";
  position: absolute;
  left: 85%;
  top: -10px;
  width: 23px;
  height: 23px;
  background: #fff3b4;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}
@keyframes tahmina-sword-flash {
  0% { opacity: 0; transform: translate3d(0, 18vh, 0) rotate(-28deg); }
  18% { opacity: .55; }
  42% { opacity: .85; }
  76% { opacity: .35; }
  100% { opacity: 0; transform: translate3d(200vw, -22vh, 0) rotate(-28deg); }
}
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .isg-live-page .tahmina-load-flash { display: none; }
  .tahmina-load-blade { animation: none; }
}

.isg-live-page .app-main { isolation: isolate; }
.isg-live-page #liveBoard,
.isg-live-page .tahmina-market-tabs,
.isg-live-page .market-marquee,
.isg-live-page .app-footer { position: relative; z-index: 1; }

.isg-live-page .tahmina-brand-type strong {
  color: #f5d36b;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .isg-live-page .tahmina-brand-type strong {
    background-image: linear-gradient(180deg, #fff3b4 0%, #ffe78b 22%, #f6ce57 45%, #bd7917 57%, #f2c94f 73%, #ffe595 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.isg-live-page .isg-live-board .market-image:not([src$="rupee-coin.png"]) {
  width: 64px !important;
  height: 96px !important;
  object-fit: contain;
}

@media (max-width: 767px) {
  .isg-live-page .isg-live-board .market-image:not([src$="rupee-coin.png"]) {
    width: 43px !important;
    height: 58px !important;
    margin-bottom: 5px !important;
  }
}

@media (forced-colors: active) {
  .isg-live-page .tahmina-brand-type strong {
    background-image: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
}

/* Five reference/costing cards, with solid white live figures. */
.isg-live-page .isg-live-board .market-grid.row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.isg-live-page .isg-live-board .market-value,
.isg-live-page .isg-live-board .range-value,
.isg-live-page .isg-live-board .rates-table .price-link:not([aria-disabled="true"]) {
  color: #fff !important;
  text-shadow: none;
}
.isg-live-page .isg-live-board .rates-table .price-link { font-weight: 700; }

@media (max-width: 900px) {
  .isg-live-page .isg-live-board .market-grid.row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .isg-live-page .isg-live-board .market-grid > .col-4 { grid-column: span 2; }
  .isg-live-page .isg-live-board .market-grid > .col-4:nth-child(n+4) { grid-column: span 3; }
}
@media (min-width: 768px) and (max-width: 900px) {
  .isg-live-page .isg-live-board .market-value { font-size: 24px !important; }
}
@media (max-width: 767px) {
  .isg-live-page .isg-live-board .market-value { font-size: clamp(14px, 4.5vw, 25px) !important; }
}

/* Compact desktop trading board: keep the catalogue high in the viewport. */
@media (min-width: 901px) {
  .isg-live-page .app-topbar,
  .isg-live-page .app-topbar.is-scrolled {
    grid-template-rows: 64px 40px;
    min-height: 104px;
  }
  .isg-live-page .topbar-wordmark .board-wordmark img {
    width: 46px !important;
    height: 52px !important;
  }
  .isg-live-page .topbar-wordmark .tahmina-brand-type { gap: 6px; }
  .isg-live-page .topbar-wordmark .tahmina-brand-type strong { font-size: 26px; }
  .isg-live-page .app-topbar .topbar-nav-slot .ma-menu > li > .ma-menu-link,
  .isg-live-page .app-topbar .topbar-nav-slot .ma-menu > li > .ma-menu-trigger {
    min-height: 39px;
  }
  .isg-live-page .market-marquee { min-height: 32px; }
  .isg-live-page .market-marquee-label { padding: 4px 16px; font-size: 12px; }
  .isg-live-page .market-marquee-viewport { padding-block: 4px; }
  .isg-live-page .market-marquee-item { font-size: 13px; line-height: 1.4; }
  .isg-live-page .market-marquee-pause { min-height: 32px; padding-block: 4px; font-size: 12px; }
  .isg-live-page .tahmina-market-tabs a,
  .isg-live-page .tahmina-market-tabs button {
    min-height: 40px;
    height: 40px;
    padding-block: 6px;
    font-size: 15px;
    line-height: 1.4;
  }
  .isg-live-page .rates-page.container { margin: 12px auto 16px !important; }
  .isg-live-page .isg-live-board .market-grid.row { margin-bottom: 12px !important; }
  .isg-live-page .isg-live-board .market-card {
    min-height: 176px !important;
    padding: 10px 12px !important;
    flex-direction: column;
    flex-wrap: nowrap;
    text-align: center;
  }
  .isg-live-page .isg-live-board .market-content { width: 100%; flex: 1 0 auto; }
  .isg-live-page .isg-live-board .market-name { min-height: 32px; margin-bottom: 4px !important; font-size: 13px !important; text-align: center; }
  .isg-live-page .isg-live-board .market-value { font-size: clamp(20px, 2.3vw, 24px) !important; }
  .isg-live-page .isg-live-board .market-card .market-image {
    width: 40px !important;
    height: 48px !important;
    margin: 0 0 6px !important;
  }
  .isg-live-page .isg-live-board .market-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 6px;
    padding-top: 6px;
    font-size: 10px;
    line-height: 1.4;
    gap: 2px;
    text-align: center;
  }
  .isg-live-page .isg-live-board .rates-table.table thead th {
    height: 40px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
  }
  .isg-live-page .isg-live-board .rates-table.table tbody th,
  .isg-live-page .isg-live-board .rates-table.table tbody td {
    height: 56px !important;
    padding: 4px 16px !important;
  }
  .isg-live-page .isg-live-board .rates-table .price-link {
    height: 32px;
    min-height: 32px;
  }
  .isg-live-page .isg-live-board .metal-mark { width: 10px; flex-basis: 10px; height: 28px; }
  .isg-live-page .isg-live-board .data-note { margin: 8px 0 0; font-size: 11px; line-height: 1.5; }
  .isg-live-page .isg-motion-toggle { min-height: 28px; margin: 0 0 0 8px; padding: 4px 8px; }
  .isg-live-page [data-market-status]:empty { display: none; }
}
