/* This page keeps the theme.html app shell and adds the supplied navy/gold world. */
.live-rates-page {
  --bg: #f8f9fc;
  --card1: #ffffff;
  --card2: #f6f7fa;
  --border: #c8b27d;
  --gold: #e5c774;
  --txt: #111a27;
  --txt2: #46505a;
  --green: #154a15;
  --red: #b22126;
  --gold-plate: linear-gradient(110deg, #b89c5f, #e6d9ac 42%, #b39455);
  background: #f8f9fc;
  min-height: 100vh;
}
.live-rates-page [hidden] { display: none !important; }
.live-rates-page .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.live-rates-page :is(a, button):focus-visible { outline: 3px solid #997321; outline-offset: 3px; }
.live-rates-page #appHeader {
  position: relative; width: 100%; height: 110px; min-height: 0; max-width: none; margin: 0;
  padding: 18px 20px 32px; background: #071b30 url('../img/rates-background.png') center top / 100% 135% no-repeat;
  border-bottom: 5px solid #d4ba74; border-radius: 0 0 50% 50% / 0 0 16% 16%;
  backdrop-filter: none;
  isolation: isolate;
}
.live-rates-page #appHeader .brand {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%);
  justify-content: center; width: max-content; mix-blend-mode: screen;
}
.live-rates-page #appHeader .brand-logo {
  display: block; width: 121px; height: auto; object-fit: contain;
}
.live-rates-page #appHeader .hdr-btn { position: absolute; top: 16px; color: #f0d793; }
.live-rates-page #appHeader #menuBtn { left: 16px; }
.live-rates-page #appMain {
  max-width: 900px; margin: -16px auto 0; padding: 24px 14px calc(180px + env(safe-area-inset-bottom));
  background: #f8f9fc; animation: none;
}
.rate-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(100%, 360px); margin-inline: auto; }
.rate-tab {
  min-height: 48px; border: 0; border-bottom: 3px solid transparent; background: transparent;
  color: #101722; font-size: 17px; font-weight: 750; padding: 8px 4px 12px;
}
.rate-tab[aria-selected="true"] { color: #846724; border-color: #b29450; }
.rate-tab:hover { background: #f0eadb; }
.rate-connection { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #45515e; font-size: 11px; }
.rate-connection .hdr-btn { width: 44px; height: 44px; color: #866323; }
.rate-connection .ico { width: 17px; height: 17px; }
.connection-dot { width: 6px; height: 6px; border-radius: 50%; background: #8a6826; flex: none; }
.rate-connection[data-state="live"] .connection-dot { background: #216521; }
.rate-connection[data-state="error"] { color: #a12427; }
.rate-connection[data-state="error"] .connection-dot { background: #a12427; }
.benchmark-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 8px; }
.quote-box { min-width: 0; border: 1px solid #c8b27d; border-radius: 10px; overflow: hidden; background: #fafbfd; }
.quote-title { margin: 0; padding: 9px 4px; background: var(--gold-plate); color: #10151b; text-align: center; font-size: 14px; font-weight: 750; min-height: 38px; display: flex; justify-content: center; align-items: center; }
.quote-value { display: block; margin: 18px 8px 16px; padding: 5px 2px; text-align: center; color: #111a27; background: transparent; border-radius: 4px; font-size: clamp(16px, 4.4vw, 26px); font-weight: 700; line-height: 1.3; }
.quote-range { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 3px 6px; padding: 0 7px 10px; font-size: 11px; line-height: 1.5; }
.range-high { color: #244c29; }
.range-low { color: #b22126; }
.futures-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.future-box .quote-title { font-size: 15px; }
.future-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 8px 0; }
.future-label { display: block; text-align: center; font-size: 12px; font-weight: 700; }
.future-prices .quote-value { margin: 5px 0 10px; font-size: clamp(14px, 3.8vw, 23px); }
.future-box .quote-range { padding-inline: 10px; }
.product-section { --product-name-width: 56%; --product-column-padding: 10px; --product-heading-padding: 6px; }
.product-heading { display: grid; grid-template-columns: var(--product-name-width) minmax(0, 1fr); align-items: center; min-height: 36px; background: var(--gold-plate); border-radius: 9px; padding: 0; color: #10151b; }
.product-heading h2 { margin: 0; padding: var(--product-heading-padding) calc(var(--product-column-padding) + 1px); font-size: 15px; font-weight: 750; }
.product-heading > span { padding: var(--product-heading-padding) var(--product-column-padding); text-align: center; font-size: 15px; font-weight: 750; }
.products-table { width: 100%; table-layout: fixed; border-spacing: 0 5px; }
.live-rates-page #products, .live-rates-page #coinProducts { display: table-row-group; }
.products-table .product-name-column { width: var(--product-name-width); }
.products-table .product-sell-column { width: calc(100% - var(--product-name-width)); }
.products-table th { text-align: left; }
.products-table :is(th, td) { border-block: 1px solid #c8b27d; background: #fafbfd; padding: 6px var(--product-column-padding); vertical-align: middle; }
.products-table th { border-left: 1px solid #c8b27d; border-radius: 9px 0 0 9px; }
.products-table td { border-right: 1px solid #c8b27d; border-radius: 0 9px 9px 0; }
.product-link { display: block; width: 100%; min-height: 44px; padding: 6px 0; border: 0; background: transparent; color: #111a27; font-size: 15px; font-weight: 700; text-align: left; overflow-wrap: anywhere; line-height: 1.4; }
.products-table tr:hover :is(th, td) { background: #f2eddf; }
.products-table tr[data-code] { cursor: pointer; }
.products-table tr[data-code]:focus-within :is(th, td) { background: #f2eddf; }
.sell-price { display: block; padding: 3px 2px; background: transparent; border-radius: 4px; color: #111a27; font-size: 20px; line-height: 1.3; font-weight: 700; text-align: center; }
.product-range { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 5px; padding-top: 4px; font-size: 10px; line-height: 1.4; }
.live-rates-page .rate-empty { width: 100%; padding: 22px 12px; border: 1px solid #c8b27d; border-radius: 9px; text-align: center; color: #45515e; font-size: 13px; font-weight: 400; }
.live-rates-page .mkt-card { display: block; background: #071b30 url('../img/rates-background.png') center / cover; border: 2px solid #c2a156; border-radius: 10px; padding: 12px; margin-top: 5px; animation: none; color: #fff; }
.live-rates-page .mkt-head { gap: 6px; }
.live-rates-page .mkt-title { font-size: 15px; letter-spacing: 0; }
.live-rates-page .mkt-sub { font-size: 9px; color: #e8eaf0; }
#marketChev .ico { width: 14px; height: 14px; }
.live-rates-page .mkt-usd-lbl { font-size: 11px; color: #e8eaf0; }
.live-rates-page .mkt-usd-val { font-size: 23px; }
.live-rates-page .mkt-usd-chg { font-size: 11px; }
.live-rates-page .mkt-spark { width: 43%; height: 54px; }
.live-rates-page .mkt-foot { border-color: #58626e; padding-top: 7px; }
.live-rates-page .mkt-col + .mkt-col { border-color: #58626e; }
.live-rates-page .mkt-col .l { color: #e8eaf0; font-size: 10px; letter-spacing: 0; }
.live-rates-page .mkt-col .v { font-size: 16px; }
.live-rates-page :is(.pos, .txt-up) { color: #65e36b; }
.live-rates-page :is(.neg, .txt-down) { color: #ff6d6d; }
.price-up { background: #23681a; color: #fff; }
.price-down { background: #a32126; color: #fff; }
.live-rates-page .qa-row { gap: 7px; margin-top: 12px; }
.live-rates-page .qa { background: #efe6cf; border-color: #c8b27d; color: #624c1d; padding: 9px 4px; animation: none; }
.live-rates-page .qa .ico { width: 22px; height: 22px; }
.live-rates-page .news-strip { border-color: #d1c4a5; animation: none; }
.live-rates-page .news-badge { color: #6d531d; background: #eee2c4; }
.live-rates-page .news-text { font-size: 12px; }
.live-rates-page #tickerBar { height: 28px; bottom: calc(70px + env(safe-area-inset-bottom)) !important; background: var(--gold-plate); font-size: 12px; }
.live-rates-page #appFooter { min-height: 70px; background: #071b30; border-top: 1px solid #c8b27d; backdrop-filter: none; padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); }
.live-rates-page .tab { justify-content: center; color: #ebd184; font-size: 10px; min-height: 48px; letter-spacing: 0; }
.live-rates-page .tab + .tab { border-left: 1px solid #615744; }
.live-rates-page .tab.active { color: #fff0b5; }
.live-rates-page #appFab { bottom: calc(98px + env(safe-area-inset-bottom)); height: 56px; background: #071b30 url('../img/rates-background.png') center 72% / cover; border-top: 1px solid #c8b27d; }
.live-rates-page .fab { width: 44px; height: 44px; bottom: calc(104px + env(safe-area-inset-bottom)); animation: none; box-shadow: none; color: white; background: var(--gold-plate); }
.live-rates-page .fab.call { left: 20px; right: auto; }
.live-rates-page .fab.wa { right: 20px; left: auto; }
.live-rates-page .nav-panel { background: #071b30; color: #f0e4c2; }
.live-rates-page .nav-head { flex-shrink: 0; }
.live-rates-page .nav-logo { width: 48px; height: 36px; object-fit: contain; mix-blend-mode: screen; flex-shrink: 0; }
.live-rates-page .nav-scroll { min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #8d7951 #071b30; }
.live-rates-page .nav-role { color: #d8c696; }
.live-rates-page .sidebar-version {
  flex-shrink: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #615744; color: #d8c696; font-size: 12px; text-align: center;
}
.live-rates-page .nav-panel .mi { background: #10263a; border-color: #43505b; color: #eee5cf; }
.live-rates-page .nav-panel .mi:hover { background: #1d3549; }
.live-rates-page .nav-panel .mi[aria-current="page"] { background: #e2c879; color: #152335; font-weight: 700; }
.live-rates-page .nav-panel .mi[aria-current="page"] .ico { color: #5d491e; }
.live-rates-page .fix-msg { color: #111a27; bottom: calc(166px + env(safe-area-inset-bottom)); }
.live-rates-page .fix-msg:not(.open) { display: none; }
.live-rates-page :is(.anim-swing, .stagger > *) { animation: none; }
@media (max-width: 359px) {
  .live-rates-page #appMain { padding-inline: 8px; }
  .quote-title { font-size: 12px; }
  .quote-value { margin-inline: 5px; }
  .quote-range { font-size: 10px; padding-inline: 5px; }
  .product-link { font-size: 13px; }
  .product-section { --product-column-padding: 7px; }
  .sell-price { font-size: 17px; }
  .live-rates-page .mkt-sub { max-width: 78px; text-align: right; }
}
@media (min-width: 600px) {
  .live-rates-page #appMain { padding-inline: 24px; }
  .rate-tab { font-size: 22px; }
  .benchmark-grid { gap: 14px; margin-bottom: 12px; }
  .quote-title { font-size: 20px; min-height: 48px; }
  .quote-value { font-size: 32px; margin-block: 24px; }
  .quote-range { font-size: 14px; padding-inline: 12px; }
  .futures-grid { gap: 14px; margin-bottom: 12px; }
  .future-box .quote-title { font-size: 21px; }
  .future-label { font-size: 16px; }
  .future-prices { gap: 14px; padding: 12px 16px 0; }
  .future-prices .quote-value { font-size: 28px; }
  .product-section { --product-column-padding: 16px; }
  .product-heading { min-height: 48px; }
  .product-heading h2, .product-heading > span { font-size: 20px; }
  .products-table :is(th, td) { padding: 10px var(--product-column-padding); }
  .product-link { font-size: 20px; }
  .sell-price { font-size: 27px; }
  .product-range { font-size: 13px; }
  .live-rates-page .mkt-card { padding: 18px; }
  .live-rates-page .mkt-title { font-size: 22px; }
  .live-rates-page .mkt-sub { font-size: 13px; }
  .live-rates-page .mkt-usd-val { font-size: 34px; }
  .live-rates-page .mkt-usd-lbl, .live-rates-page .mkt-usd-chg { font-size: 15px; }
  .live-rates-page .mkt-spark { height: 80px; }
  .live-rates-page .mkt-col .v { font-size: 23px; }
  .live-rates-page .mkt-col .l { font-size: 13px; }
}
@media (min-width: 1000px) {
  .live-rates-page #appHeader { width: 100%; margin-left: 0; padding-block: 8px; border-bottom-width: 3px; }
  .live-rates-page #appHeader .hdr-btn { top: 12px; }
  .live-rates-page #sideNav { top: 0; bottom: 0; left: 0; width: var(--sidebar-w); }
  .live-rates-page #sideNav .nav-panel { height: 100%; }
  .live-rates-page .nav-scroll .mi { min-height: 44px; }
  .live-rates-page #appMain { position: relative; max-width: 1040px; margin-top: 0; padding: 8px 20px 88px; }
  .live-rates-page .rate-tabs { width: min(320px, calc(100% - 440px)); gap: 12px; margin-inline: auto; margin-bottom: 6px; }
  .live-rates-page .rate-tab { min-height: 40px; padding: 6px 8px; font-size: 15px; border-bottom-width: 2px; }
  .live-rates-page .rate-connection { position: absolute; top: 8px; right: 20px; max-width: 210px; min-height: 40px; font-size: 11px; }
  .live-rates-page .rate-connection #lastUpd { min-width: 0; text-align: right; line-height: 1.35; }
  .live-rates-page .rate-connection .hdr-btn { width: 32px; height: 32px; flex-shrink: 0; }
  .live-rates-page .benchmark-grid, .live-rates-page .futures-grid { gap: 10px; margin-bottom: 6px; }
  .live-rates-page .quote-title { min-height: 30px; padding: 5px 8px; font-size: 14px; }
  .live-rates-page .quote-value { margin: 7px 12px; padding: 3px 4px; font-size: 22px; }
  .live-rates-page .quote-range { padding: 0 12px 6px; font-size: 11px; }
  .live-rates-page .future-box .quote-title { font-size: 14px; }
  .live-rates-page .future-prices { padding: 6px 12px 0; gap: 12px; }
  .live-rates-page .future-label { font-size: 11px; }
  .live-rates-page .future-prices .quote-value { margin: 3px 0 5px; padding: 2px 4px; font-size: 20px; }
  .live-rates-page .product-section { --product-column-padding: 12px; --product-heading-padding: 5px; }
  .live-rates-page .product-heading { min-height: 30px; padding: 0; border-radius: 6px; }
  .live-rates-page .product-heading h2, .live-rates-page .product-heading > span { font-size: 14px; }
  .live-rates-page .products-table { border-spacing: 0 3px; }
  .live-rates-page .products-table :is(th, td) { padding: 3px var(--product-column-padding); }
  .live-rates-page .product-link { min-height: 44px; padding: 4px 0; font-size: 15px; }
  .live-rates-page .sell-price { padding: 2px 4px; font-size: 20px; }
  .live-rates-page .product-range { padding-top: 2px; font-size: 11px; }
  .live-rates-page .mkt-card { margin-top: 5px; padding: 10px 12px; }
  .live-rates-page .mkt-title { font-size: 16px; }
  .live-rates-page .mkt-sub, .live-rates-page .mkt-usd-lbl, .live-rates-page .mkt-usd-chg { font-size: 11px; }
  .live-rates-page .mkt-body { margin-block: 5px; }
  .live-rates-page .mkt-usd-val { font-size: 25px; }
  .live-rates-page .mkt-spark { height: 44px; }
  .live-rates-page .mkt-foot { padding-top: 5px; }
  .live-rates-page .mkt-col .v { font-size: 17px; }
  .live-rates-page .mkt-col .l { font-size: 10px; }
  .live-rates-page .qa-row { margin-top: 8px; }
  .live-rates-page .qa { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 6px; }
  .live-rates-page .qa span { margin-top: 0; }
  .live-rates-page .news-strip { margin-top: 8px; padding-block: 7px; }
  .live-rates-page #tickerBar { bottom: 0 !important; }
  .live-rates-page #appFab { height: 48px; bottom: 28px; }
  .live-rates-page .fab { width: 38px; height: 38px; bottom: 33px; }
  .live-rates-page .fab.call { left: calc(var(--sidebar-w) + 24px); }
  .live-rates-page .fab.wa { right: 24px; }
  .live-rates-page #sideNav .nav-panel { background: #071b30; }
}
@media (min-width: 1000px) and (max-height: 760px) {
  .live-rates-page .quote-value { margin-block: 3px; }
  .live-rates-page .quote-title { min-height: 24px; padding-block: 2px; }
  .live-rates-page .future-prices { padding-top: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-rates-page *, .live-rates-page *::before, .live-rates-page *::after { animation: none !important; transition: none !important; }
}
