/* Supplied Tahmina theme: royal navy, metallic gold and purple quotes.
   Shared navigation/footer structure and all trading contracts are preserved. */
:root {
  --canvas:#031338; --bg:#031338; --ivory:#031338; --charcoal:#031338;
  --surface:#071f51; --panel:#071f51; --white:#071f51;
  --bg-soft:#09295f; --ivory-deep:#09295f; --panel-solid:#09295f;
  --text:#f7f9ff; --muted:#c1d1ed; --gold:#ffdc61; --champagne:#ffdc61;
  --accent:#ffdc61; --border:#315389; --line:#315389; --focus:#ffe789;
  --chrome-gold:#ffdc61; --chrome-ink:#031338; --chrome-line:#ffdc6140;
  --menu-gold:#d4aa31;
  --tahmina-gold:linear-gradient(112deg,#fff3ae 0%,#ffe477 20%,#ffc51b 48%,#ffe889 76%,#ffbf13 100%);
  --tahmina-blue:radial-gradient(ellipse at 0 0,#075bd1 0%,transparent 56%),linear-gradient(115deg,#082e75,#061c4b 60%,#03112f);
  --tahmina-purple:linear-gradient(180deg,#aa00ed 0%,#7300c0 40%,#390078 100%);
}
html,body,body.isg-live-page { background:#031338!important; }
.app-main,.isg-live-page .app-main {
  background:radial-gradient(ellipse at 0 0,#0b3c85 0%,transparent 50%),radial-gradient(ellipse at 100% 65%,#142d6a 0%,transparent 45%),#031338!important;
}
.app-topbar,.app-topbar.is-scrolled {
  background:#031338 url('../assets/brand/tahmina-header.png') center/100% 100% no-repeat!important;
  border-color:#ffdc61;
}
.topbar-wordmark .board-wordmark img,.app-footer .board-wordmark img {
  border:0; padding:0; background:transparent; object-fit:contain;
}
.topbar-wordmark { animation:none;opacity:1; }
.topbar-wordmark .board-wordmark img,.topbar-wordmark:hover .board-wordmark img { opacity:1; }
.app-topbar .topbar-nav-slot { background:var(--chrome-ink); }
.tahmina-brand-type strong { color:#ffdc61!important; }
.tahmina-brand-type small { color:#f7f9ff!important; }
.app-topbar .topbar-actions .pill-btn.accent,.app-footer .tahmina-footer-primary {
  background:var(--tahmina-gold)!important; color:#131b2a!important;
}
.app-topbar .ma-submenu,.app-sidebar,.app-sidebar .ma-submenu {
  background:#061b46!important; border-color:#8c762e!important;
}
.app-topbar .topbar-nav-slot .ma-menu>li>:is(.ma-menu-link,.ma-menu-trigger),
.app-topbar .ma-submenu .ma-menu-link,
.app-sidebar :is(.ma-menu-link,.ma-menu-trigger),
.tahmina-bottom-nav a { color:var(--menu-gold)!important; }
.app-topbar .topbar-nav-slot .ma-menu .nav-svg.tahmina-fa,
.app-sidebar .ma-menu .nav-svg.tahmina-fa { color:inherit; }
.app-topbar .topbar-nav-slot .ma-menu>li>:is([aria-current],.is-current),
.app-topbar .topbar-nav-slot .ma-menu>li>:is(:hover,:focus-visible,[aria-expanded=true]),
.app-topbar .ma-submenu .ma-menu-link:is(:hover,:focus-visible,[aria-current=page]),
.app-sidebar :is(.ma-menu-link,.ma-menu-trigger):is(:hover,:focus-visible,[aria-current=page],.is-current,[aria-expanded=true]),
.tahmina-bottom-nav a:is(:hover,:focus-visible,[aria-current=page]) { color:#ffdc61!important; }
.topbar-toggle { background:#09295f; }
.app-footer { background:#031338 url('../assets/brand/tahmina-footer.png') center top/100% auto no-repeat!important; border-top-color:#d7b43e!important; }
.app-footer .footer-bottom { background:#020e2b!important; }
.tahmina-footer-copy h2 span,.app-footer .footer-heading { color:#ffdc61!important; }
.tahmina-bottom-nav { background:linear-gradient(120deg,#073a8c,#031338 65%); border-top-color:#ffdc61; }
.tahmina-bottom-nav [aria-current] { color:#ffe36e; }
.tahmina-bottom-nav [aria-current]::before { background:#ffdc61; }
.page-head,.bank-head,.tabs,.tab-bar { background:#09295f!important; }
.glass,.bank-card,.message-card,.kyc-form fieldset,.kyc-review,.demo-banner,.note-box,.verify-note,.trend-panel { background:#071f51!important; }
.data-table th,.tds-table th,.choice-tds-table th,.trend-levels th { background:#0a306b!important; }
.data-table td,.tds-table td,.choice-tds-table td,.trend-levels td { background:#071f51!important; }
/* Account tables share one alignment for each heading and its values. */
.data-table:is(.trades-table,.orders-table) :is(th,td) { vertical-align:middle; }
.data-table.trades-table :is(th,td):first-child,
.data-table.orders-table :is(th,td):first-child { text-align:left; }
.data-table.trades-table :is(th,td):nth-child(2) { text-align:center; }
.data-table.trades-table :is(th,td):nth-child(n+3),
.data-table.orders-table :is(th,td):is(:nth-child(3),:nth-child(4),:last-child) { text-align:right;font-variant-numeric:tabular-nums; }
.data-table.orders-table :is(th,td):is(:nth-child(2),:nth-child(5),:nth-child(6),:nth-child(7),:nth-child(8)) { text-align:center; }
.data-table.orders-table { min-width:1280px; }
.data-table.orders-table th:nth-child(3) { width:120px; }
.data-table.orders-table th:nth-child(4) { width:140px; }
.data-table.orders-table th:nth-child(7) { width:150px; }
.data-table.orders-table th:nth-child(8) { width:110px; }
.field input,.field select,.field textarea,input:not([type=checkbox]):not([type=radio]),select,textarea { background:#031338!important; }
.home-slider { background:var(--tahmina-blue)!important; border-color:#c7a741; }
.home-section-nav { background:#061b46!important; }
.market-marquee,.market-message-header,.market-message-footer { background:#09295f!important; }
.market-message-dialog { background:#061b46!important; }
.market-message-content img,.message-body img { display:block;max-width:100%;height:auto;margin:12px auto; }
.message-notice-title { margin:0 0 12px;color:var(--gold);font-size:18px; }
/* The website masthead has the same dimensions on every route. */
@media(min-width:901px) {
  .isg-live-page .app-topbar,.isg-live-page .app-topbar.is-scrolled { grid-template-rows:88px 48px;min-height:136px; }
  .isg-live-page .topbar-wordmark .board-wordmark img { width:60px!important;height:67px!important; }
  .isg-live-page .topbar-wordmark .tahmina-brand-type { gap:8px; }
  .isg-live-page .topbar-wordmark .tahmina-brand-type strong { font-size:29px; }
  .isg-live-page .app-topbar .topbar-nav-slot .ma-menu>li>:is(.ma-menu-link,.ma-menu-trigger) { min-height:47px; }
}
@media(min-width:901px) and (max-width:1180px) {
  body .topbar-wordmark { grid-area:1/1/2/2!important; }
}

/* Extend the shared header artwork to both viewport edges while keeping its
   navigation and actions within a readable desktop content width. */
body .app-topbar,body .app-topbar.is-scrolled {
  width:100%;max-width:none;margin-inline:0;
}
@media(min-width:901px) {
  body .app-topbar,body .app-topbar.is-scrolled {
    --header-gutter:max(24px,calc((100vw - 1280px)/2 + 24px))!important;
    padding-inline:var(--header-gutter)!important;
  }
  .app-topbar .topbar-nav-slot .ma-menu { justify-content:center;gap:0; }
  .app-topbar .topbar-nav-slot .ma-menu>li>:is(.ma-menu-link,.ma-menu-trigger) { padding-inline:8px!important; }
}
/* A working market board in the supplied reference's visual language. */
.tahmina-market-tabs { background:#04163b; border-color:#4166a0; }
.tahmina-market-tabs :is(a,button) { min-height:48px!important;height:48px!important;color:#c1d1ed; }
.tahmina-market-tabs [aria-pressed=true] { color:#ffdc61; }
.isg-live-page .rates-page.container { margin:22px auto 32px!important; }
.isg-live-page .isg-live-board .market-grid.row { gap:12px!important;margin-bottom:18px!important; }
.isg-live-page .isg-live-board .market-card,
.isg-live-page .isg-live-board .market-card.silver-card,
.isg-live-page .isg-live-board .market-card.currency-card {
  background:var(--tahmina-blue)!important;border:1px solid #e9ca68!important;border-radius:16px!important;
  box-shadow:inset 0 1px 0 #c5eaff80,0 5px 14px #0003!important;
}
.isg-live-page .isg-live-board .market-name { color:#ffe578!important; }
.isg-live-page .isg-live-board .silver-card .market-name { color:#f7f9ff!important; }
.isg-live-page .isg-live-board .market-value {
  width:100%;padding:7px 4px!important;border-radius:10px;
  background:linear-gradient(180deg,#078126,#006c16 58%,#005a11);
  box-shadow:inset 0 1px 0 #caffb0,0 3px 7px #0004;
}
.isg-live-page .isg-live-board .currency-card .market-value { background:var(--tahmina-purple); }
.market-range { border-color:#8aaadc40; color:#eef3ff; }
.market-range b { color:#c1d1ed; }
.isg-live-page .isg-live-board .market-image:not([src$="rupee-coin.png"]) { width:68px!important;height:52px!important; }
.isg-live-page .isg-live-board .rates-table-wrap.table-responsive {
  background:transparent!important;border:0!important;border-radius:0!important;overflow:visible!important;
}
.isg-live-board .rates-table-wrap::before { display:none; }
.isg-live-page .isg-live-board .rates-table.table {
  border-collapse:separate!important;border-spacing:0 9px!important;background:transparent!important;
}
.isg-live-page .isg-live-board .rates-table.table thead th {
  position:relative;height:50px!important;padding:10px 16px!important;
  background:var(--tahmina-gold)!important;color:#111b2a!important;
  border-top:1px solid #fff4b9!important;border-bottom:2px solid #c28c18!important;font-weight:700;
}
.isg-live-page .isg-live-board .rates-table.table thead th:first-child { border-radius:16px 0 0 16px!important; }
.isg-live-page .isg-live-board .rates-table.table thead th:last-child { border-radius:0 16px 16px 0!important; }
.isg-live-board .rates-table thead th+th::before { content:"";position:absolute;left:0;top:24%;bottom:24%;width:1px;background:#8c6b20; }
.isg-live-page .isg-live-board .rates-table.table tbody tr>:is(th,td) {
  height:76px!important;padding:10px 16px!important;background:linear-gradient(180deg,#fff,#fcf6e7)!important;
  border-top:1px solid #ffebad!important;border-bottom:1px solid #d9ae42!important;color:#201550;
}
.isg-live-page .isg-live-board .rates-table.table tbody tr>th:first-child,
.isg-live-page .isg-live-board .rates-table.table tbody tr>td:first-child {
  border-left:1px solid #e5c477!important;border-radius:16px 0 0 16px!important;
}
.isg-live-page .isg-live-board .rates-table.table tbody tr>td:last-child { border-right:1px solid #e5c477!important;border-radius:0 16px 16px 0!important; }
.isg-live-page .isg-live-board .product { gap:12px; }
.isg-live-page .isg-live-board .product-name { color:#26135b!important;font-weight:700!important; }
.isg-live-page .isg-live-board .product-name:hover { color:#6800a1!important;text-decoration:underline; }
.isg-live-page .isg-live-board .metal-mark {
  width:46px;flex-basis:46px;height:42px;border:0;border-radius:0;
  background:url('../liverates-assets/gold-bars.png') center/contain no-repeat;
}
.isg-live-page .isg-live-board .metal-mark.silver { background-image:url('../liverates-assets/silver-bars.png'); }
.isg-live-page .isg-live-board .price::before { display:none; }
.isg-live-page .isg-live-board .rates-table .price-link {
  min-height:36px;height:auto;padding:6px 4px!important;
  background:var(--tahmina-purple);border-radius:20px;font-size:23px!important;
  box-shadow:inset 0 1px 0 #f8beff,0 2px 4px #39006130;
}
.isg-live-page .isg-live-board .rates-table .price-link:hover { background:linear-gradient(180deg,#b52fff,#510095); }
.isg-live-page .isg-live-board .rates-table .price-link[aria-disabled=true] { background:#665981;color:#fff!important;box-shadow:none; }
.isg-live-page .isg-live-board .rate-range { margin-top:4px;color:#3b3151; }
.isg-live-page .isg-live-board .rate-range b { color:#514564; }
.isg-live-page .isg-live-board .rate-range .range-value { color:#3b3151!important; }
.isg-live-page .isg-live-board .live-empty { color:#3d3159!important; }
.isg-live-page .tahmina-brand-type strong { -webkit-text-fill-color:initial;background-image:none; }
@media(max-width:767px) {
  .isg-live-page .rates-page.container { width:calc(100% - 24px)!important;margin:14px auto 24px!important; }
  .isg-live-page .isg-live-board .market-grid.row { gap:8px!important;margin-bottom:10px!important; }
  .isg-live-page .isg-live-board .market-card { padding:10px 7px!important; }
  .isg-live-page .isg-live-board .market-value { font-size:clamp(13px,4.1vw,25px)!important;padding:6px 2px!important; }
  .isg-live-page .isg-live-board .market-image:not([src$="rupee-coin.png"]) { width:48px!important;height:38px!important; }
  .isg-live-page .isg-live-board .rates-table.table thead th { height:46px!important;padding:10px 8px!important;font-size:13px!important; }
  .isg-live-page .isg-live-board .rates-table.table tbody tr>:is(th,td) { padding:10px 6px!important; }
  .isg-live-page .isg-live-board .product { gap:6px; }
  .isg-live-page .isg-live-board .product-name { font-size:12px!important; }
  .isg-live-page .isg-live-board .metal-mark { width:32px;flex-basis:32px;height:32px; }
  .isg-live-page .isg-live-board .rates-table .price-link { font-size:clamp(12px,3.5vw,20px)!important;padding:7px 2px!important;min-height:34px; }
  .isg-live-page .isg-live-board .rate-range { font-size:9px; }
}
@media(forced-colors:active) {
  .isg-live-page .isg-live-board .rates-table .price-link { border:1px solid ButtonText; }
  .isg-live-page .isg-live-board .product-name { color:LinkText!important; }
}

/* Reference-matched brand materials: dimensional gold/silver monogram and
   metallic lettering, as supplied in theme.jpeg rather than a flat T icon. */
body .topbar-wordmark .board-wordmark img { width:80px!important;height:64px!important; }
body .app-footer .board-wordmark img { width:82px!important;height:66px!important; }
body .sidebar-brand .sidebar-logo { width:78px!important;height:64px!important; }
body .tahmina-brand-type strong,body.isg-live-page .tahmina-brand-type strong {
  color:#ffdc61!important;
  background-image:linear-gradient(180deg,#fffbd2 0%,#fff0a0 20%,#ffdf42 44%,#bd7f10 56%,#f5c72b 72%,#fff1a2 100%);
}
@supports ((background-clip:text) or (-webkit-background-clip:text)) {
  body .tahmina-brand-type strong,body.isg-live-page .tahmina-brand-type strong {
    background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;
  }
}
@media(max-width:900px) {
  body .topbar-wordmark .board-wordmark img { width:62px!important;height:56px!important; }
}
@media(max-width:359px) {
  body .topbar-wordmark .board-wordmark img { width:48px!important;height:44px!important; }
}
@media(forced-colors:active) {
  body .tahmina-brand-type strong,body.isg-live-page .tahmina-brand-type strong {
    background-image:none;color:CanvasText!important;-webkit-text-fill-color:CanvasText;
  }
}

/* The reference stacks the emblem over its wordmark in the clear central
   field; keep that lockup away from the bullion at the left edge. */
:root { --chrome-height:194px; }
body .topbar-wordmark { justify-self:center;grid-area:1/1/2/-1!important; }
body .topbar-wordmark .board-wordmark { flex-direction:column;gap:0!important; }
body .topbar-wordmark .board-wordmark img,body.isg-live-page .topbar-wordmark .board-wordmark img { width:120px!important;height:78px!important; }
body .topbar-wordmark .tahmina-brand-type { align-items:center;gap:3px; }
body .topbar-wordmark .tahmina-brand-type strong { font-size:34px!important;letter-spacing:.035em;line-height:1.05; }
body .topbar-wordmark .tahmina-brand-type small { font-size:10px!important;letter-spacing:.18em; }
body .app-topbar .topbar-actions .ma-menu-link { background:#031338c9!important; }
body .app-topbar .isg-notifications,body .app-topbar .tahmina-header-contact { background:#031338c9;border-color:#ffdc6155; }
body .home-section-nav { top:var(--chrome-height)!important; }
@media(min-width:901px) {
  body .app-topbar,body .app-topbar.is-scrolled,body.isg-live-page .app-topbar,body.isg-live-page .app-topbar.is-scrolled {
    grid-template-rows:144px 48px;min-height:194px;
  }
}
@media(max-width:900px) {
  :root { --chrome-height:146px; }
  body .app-topbar,body .app-topbar.is-scrolled { min-height:146px;padding-left:60px; }
  body .topbar-wordmark { flex:1 1 auto; }
  body .topbar-wordmark .board-wordmark img,body.isg-live-page .topbar-wordmark .board-wordmark img { width:96px!important;height:72px!important; }
  body .topbar-wordmark .tahmina-brand-type strong { font-size:24px!important; }
  body .topbar-wordmark .tahmina-brand-type small { font-size:8px!important;letter-spacing:.13em; }
}
@media(max-width:359px) {
  :root { --chrome-height:134px; }
  body .app-topbar,body .app-topbar.is-scrolled { min-height:134px;padding-left:34px; }
  body .topbar-wordmark .board-wordmark img,body.isg-live-page .topbar-wordmark .board-wordmark img { width:82px!important;height:64px!important; }
  body .topbar-wordmark .tahmina-brand-type strong { font-size:20px!important; }
  body .topbar-wordmark .tahmina-brand-type small { font-size:7px!important; }
}
@media(min-width:901px) and (max-width:1180px) {
  body .topbar-wordmark { grid-area:1/1/2/2!important; }
}

/* A compact desktop masthead leaves the working rate board in the first
   viewport. Keep the same logo, full-width artwork and shared navigation. */
@media(min-width:901px) {
  :root { --chrome-height:131px; }
  body .app-topbar,body .app-topbar.is-scrolled,
  body.isg-live-page .app-topbar,body.isg-live-page .app-topbar.is-scrolled {
    grid-template-rows:88px 40px;min-height:131px;
  }
  body .topbar-wordmark { padding-block:4px; }
  body .topbar-wordmark .board-wordmark img,
  body.isg-live-page .topbar-wordmark .board-wordmark img { width:76px!important;height:42px!important; }
  body .topbar-wordmark .tahmina-brand-type,
  body.isg-live-page .topbar-wordmark .tahmina-brand-type { gap:2px; }
  body .topbar-wordmark .tahmina-brand-type strong { font-size:26px!important; }
  body .topbar-wordmark .tahmina-brand-type small { font-size:7px!important; }
  body .app-topbar .topbar-nav-slot .ma-menu>li>.ma-menu-link,
  body .app-topbar .topbar-nav-slot .ma-menu>li>.ma-menu-trigger { min-height:39px!important; }
}

/* Browser toolbars can leave a desktop viewport much shorter than the screen.
   Keep the shared identity and navigation clear while reserving space for rates. */
@media(min-width:901px) and (max-height:700px) {
  :root { --chrome-height:103px; }
  body .app-topbar,body .app-topbar.is-scrolled,
  body.isg-live-page .app-topbar,body.isg-live-page .app-topbar.is-scrolled {
    grid-template-rows:64px 36px;min-height:103px;
  }
  body .topbar-wordmark { padding-block:2px; }
  body .topbar-wordmark .board-wordmark img,
  body.isg-live-page .topbar-wordmark .board-wordmark img { width:64px!important;height:28px!important; }
  body .topbar-wordmark .tahmina-brand-type strong { font-size:20px!important; }
  body .topbar-wordmark .tahmina-brand-type small { font-size:6px!important;line-height:1.1; }
  body .app-topbar .topbar-nav-slot .ma-menu>li>.ma-menu-link,
  body .app-topbar .topbar-nav-slot .ma-menu>li>.ma-menu-trigger { min-height:35px!important; }
}
