/* Sainath Gold: shared website chrome and content. The rate-board CSS is separate. */
:root {
  --sg-bg:#260002; --sg-panel:#4a0003; --sg-panel-top:#760309; --sg-gold:#ffe49a;
  --sg-muted:#f0dccc; --sg-text:#fff9ef; --sg-line:#9b662d;
  --sg-gold-field:linear-gradient(112deg,#d9952d 0%,#ffda83 42%,#ffd078 69%,#d39330 100%);
  --bd-navy:#390003; --bd-ivory:#260002; --bd-gold:#ffe49a; --bd-line:#9b662d; --bd-ink:#fff9ef;
}
body.bullion-site, body.sainath-rates {
  --text:#fff9ef; --muted:#f0dccc; --maroon:#ffe49a; --gold:#ffe49a; --gold-muted:#f0dccc;
  --ivory:#260002; --ivory-deep:#390003; --white:#4a0003; --bg:#260002; --page-bg:#260002;
  --panel:#4a0003; --panel-bg:#4a0003; --panel-solid:#390003; --bg-soft:#390003;
  --accent:#ffe49a; --accent-strong:#ffc45e; --border:#9b662d; --gold-border:#9b662d;
  --up:#b3f2cb; --down:#ffc1b7; --green:#b3f2cb; --danger:#ffc1b7; --placeholder:#ceb7ab;
  --on-brand:#fff9ef; --on-brand-soft:#f0dccc; --focus:#ffe49a;
  --brand-field:linear-gradient(115deg,#760309,#4a0003); --brand-field-strong:linear-gradient(115deg,#910c14,#4a0003);
  --gold-field:var(--sg-gold-field); --font-ui:Arial,Helvetica,sans-serif;
  color:var(--sg-text); background:radial-gradient(ellipse at 50% 0%,#7a0b11 0,transparent 46%),radial-gradient(ellipse at 50% 100%,#580306 0,transparent 58%),var(--sg-bg);
  font-family:Arial,Helvetica,sans-serif; margin:0; min-width:280px;
}
* { box-sizing:border-box; }
[hidden], .hidden { display:none!important; }
a { text-underline-offset:3px; }
button, input, select, textarea { font:inherit; }
:focus-visible { outline:2px solid var(--sg-gold); outline-offset:4px; }
.aurora-field, .ma-scroll-texture, .scroll-progress { display:none!important; }
.app-topbar, .app-topbar.is-scrolled { background:#390003!important; color:var(--sg-text); border-bottom:1px solid var(--sg-line); }
.app-topbar .ticker { color:var(--sg-muted); border-top-color:#9b662d66; }
.app-topbar .ticker-track, .app-topbar .ticker-chip .sym { color:var(--sg-muted); }
.app-topbar .ticker-chip .px, .rate-refresh { color:var(--sg-gold); }
.app-topbar .board-wordmark .site-logo, .app-sidebar .board-wordmark .site-logo, .app-footer .mark-row .board-wordmark .site-logo {
  position:static; display:block; width:210px!important; height:auto!important; max-width:100%!important;
  margin:0; filter:none!important; transform:none; object-fit:contain; mix-blend-mode:normal;
  mask-image:none;
}
.app-sidebar .board-wordmark .site-logo { width:235px!important; }
.app-footer .mark-row .board-wordmark .site-logo { width:235px!important; }
.board-wordmark { min-width:0; }
.app-topbar .ma-menu-link, .app-topbar .ma-menu-trigger, .app-sidebar .ma-menu-link, .app-sidebar .ma-menu-trigger, .ma-submenu .ma-menu-link { color:var(--sg-text); }
.ma-menu-link:hover, .ma-menu-trigger:hover, .ma-menu-trigger[aria-expanded=true], .ma-menu-link[aria-current=page], .ma-menu-trigger.is-current { background:#760309!important; color:var(--sg-gold)!important; }
.ma-submenu { background:#390003!important; border-color:var(--sg-line); }
.app-sidebar { background:#390003!important; border-color:var(--sg-line); }
.app-sidebar .booking-desk a, .app-sidebar .booking-desk strong { color:var(--sg-gold); }
.app-topbar .ma-menu .nav-svg, .app-sidebar .ma-menu .nav-svg { filter:brightness(0) invert(1)!important; animation:none!important; }
.app-sidebar .ma-submenu { background:#4a0003!important; }
.topbar-toggle span, .topbar-toggle span::before, .topbar-toggle span::after { background:var(--sg-gold)!important; }
.topbar-toggle[aria-expanded=true] span { background:transparent!important; }
.app-topbar .topbar-actions .pill-btn.accent, .app-topbar .topbar-actions .ma-menu-link.auth-login, .app-topbar .topbar-actions .ma-menu-link.auth-logout {
  background:var(--sg-gold-field); color:#190e02; border-color:#d39330;
}
.app-topbar .topbar-actions .pill-btn.accent:hover, .app-topbar .topbar-actions .ma-menu-link.auth-login:hover { background:#ffe49a; color:#190e02; }
.app-topbar .topbar-actions .button-svg, .app-topbar .topbar-actions .nav-svg { filter:brightness(0)!important; }
.header-notifications { display:none; }
.app-footer { margin-top:28px; background:linear-gradient(115deg,#590006,#300002)!important; border-color:var(--sg-line); color:var(--sg-text); }
.app-footer .footer-grid { max-width:1100px; grid-template-columns:1.7fr 1fr repeat(3,1fr); gap:24px; }
.app-footer .footer-brand-col p, .app-footer .footer-brand-col address, .app-footer .footer-acc .acc-body a, .app-footer .booking-desk a, .app-footer .footer-bottom { color:var(--sg-muted); }
.app-footer .footer-booking-col h2, .app-footer .footer-acc summary, .app-footer .footer-gst { color:var(--sg-gold)!important; }
.app-footer .footer-brand-col address { overflow-wrap:anywhere; }
.app-footer .footer-bottom { border-color:#9b662d66; }
.app-footer .foot-menu-svg { filter:brightness(0) invert(1); animation:none!important; }
.app-footer a:hover { color:var(--sg-gold)!important; }
.app-bottom-nav { display:none; }
.bullion-site .app-content, .bullion-site .home-page { max-width:1018px; width:100%; margin-inline:auto; }
.bullion-site .page-head { border:0; background:var(--sg-gold-field); color:#190e02; border-radius:12px; }
.bullion-site .page-head h1, .bullion-site .page-head p { color:#190e02; }
.bullion-site .eyebrow { display:none; }
.bullion-site .glass, .bullion-site .message-card, .bullion-site .bank-card, .bullion-site .commodity-shell, .bullion-site .trend-card, .bullion-site .trend-stats > div {
  background:linear-gradient(115deg,#650208,#400003); color:var(--sg-text); border-color:#9b662d88; box-shadow:none; backdrop-filter:none; border-radius:12px;
}
.bullion-site .panel-title, .bullion-site .copy h2, .bullion-site .home-section h2 { color:var(--sg-gold); }
.bullion-site .copy p, .bullion-site .copy li, .bullion-site .contact-row, .bullion-site .contact-row a, .bullion-site .home-section p, .bullion-site .empty-state, .bullion-site .calculation-help, .bullion-site .content-toolbar-label { color:var(--sg-muted); }
.bullion-site .copy p, .bullion-site .copy li { font-size:15px; }
.bullion-site .contact-row p, .bullion-site .home-facts dd, .bullion-site .home-visit address { color:var(--sg-text); }
.bullion-site .field span { color:var(--sg-muted); font-size:14px; }
.bullion-site .field input, .bullion-site .field select, .bullion-site .field textarea { background:#300002; color:var(--sg-text); border:1px solid #a97a43; font-size:15px; }
.bullion-site .field input::placeholder, .bullion-site .field textarea::placeholder { color:#ceb7ab; }
.bullion-site .field input:focus, .bullion-site .field select:focus, .bullion-site .field textarea:focus { border-color:var(--sg-gold); box-shadow:0 0 0 2px #ffe49a26; }
.bullion-site select option { color:var(--sg-text); background:#390003; }
.bullion-site .btn, .bullion-site .pill-btn { font-size:14px; }
.bullion-site .btn.primary, .bullion-site .btn.buy, .bullion-site .table-buy, .bullion-site .segmented button.active {
  background:var(--sg-gold-field); color:#190e02; border-color:#d39330; text-shadow:none;
}
.bullion-site .btn.sell { background:#830e19; color:var(--sg-text); border:1px solid #b46261; }
.bullion-site .btn:disabled { opacity:.5; cursor:not-allowed; }
.bullion-site .btn.primary:hover { background:#ffe49a; color:#190e02; }
.bullion-site .segmented { background:#300002; border-color:#9b662d66; }
.bullion-site .segmented button { color:var(--sg-muted); }
.bullion-site .readout { background:#300002; border-color:#9b662d66; }
.bullion-site .readout .val, .bullion-site .trend-price, .bullion-site .order-rate-pill { color:var(--sg-gold); }
.bullion-site .readout .lbl, .bullion-site .home-facts dt { color:var(--sg-muted); }
.bullion-site .data-table th, .bullion-site .rate-table thead th, .bullion-site .commodity-table thead th, .bullion-site .trades-table thead th { background:#6c080d; color:var(--sg-gold); }
.bullion-site .data-table td, .bullion-site .commodity-table td, .bullion-site .trades-table td { background:#450004; color:var(--sg-text); border-color:#9b662d55; }
.bullion-site .contact-svg, .bullion-site .bank-svg, .bullion-site .notice-svg { filter:brightness(0) invert(1)!important; }
.bullion-site .home-slider { background:linear-gradient(115deg,#760309,#390003); border-color:var(--sg-line); border-radius:12px; }
.bullion-site .home-slide h1, .bullion-site .home-slide h2 { color:var(--sg-gold); font-family:Arial,Helvetica,sans-serif; }
.bullion-site .home-slide-copy > p:not(.home-script) { color:var(--sg-text); }
.bullion-site .home-script, .bullion-site .home-slide .home-text-link, .bullion-site .home-text-link { color:var(--sg-gold); }
.bullion-site .home-section-nav { background:#390003; border-color:var(--sg-line); }
.bullion-site .home-section-nav a { color:var(--sg-muted); }
.bullion-site .home-section-nav a[aria-current=true] { color:var(--sg-gold); box-shadow:0 2px var(--sg-gold); }
.bullion-site .home-bullion, .bullion-site .home-visit { background:#470004; border-radius:12px; }
.bullion-site .home-service-links a { border-color:#9b662d66; color:var(--sg-text); }
.bullion-site .home-slider-controls button { color:var(--sg-gold); border-color:#9b662d; background:#390003; }
.bullion-site .home-slide-hint, .bullion-site #homeSlideCount { color:var(--sg-muted); }
.bullion-site .contact-map { border-color:var(--sg-line); }
.bullion-site .home-section [data-home-reveal], .bullion-site [data-home-reveal] { opacity:1; transform:none; }
.sainath-rates .app-main { min-height:100vh; }
.sainath-rates .rates-board { flex:1 0 auto; }
@media(max-width:1100px) and (min-width:901px) {
  .app-topbar, .app-topbar.is-scrolled { column-gap:10px; padding-inline:16px!important; }
  .app-topbar .board-wordmark .site-logo { width:180px!important; }
  .app-topbar .ma-menu-link, .app-topbar .ma-menu-trigger { padding-inline:7px; font-size:12px; }
}
@media(max-width:900px) {
  .app-topbar .board-wordmark .site-logo { width:210px!important; }
  .app-topbar .topbar-actions .pill-btn.accent { font-size:11px; }
  .app-footer .footer-grid { grid-template-columns:1fr 1fr; }
  .app-footer .footer-brand-col { grid-column:1/-1; }
  .app-bottom-nav { position:fixed; z-index:65; bottom:0; left:0; right:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:0; padding:9px 4px max(9px,env(safe-area-inset-bottom)); background:linear-gradient(115deg,#760309,#390003); border-top:1px solid var(--sg-line); }
  .app-bottom-nav a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-height:44px; color:var(--sg-muted); text-align:center; text-decoration:none; font:400 10px/1.3 Arial,Helvetica,sans-serif; }
  .app-bottom-nav a img { display:block; width:22px; height:22px; filter:brightness(0) saturate(100%) invert(87%) sepia(34%) saturate(578%) hue-rotate(335deg); }
  .app-bottom-nav a.is-active { color:var(--sg-gold); font-weight:700; }
  .app-footer { padding-bottom:82px; }
}
@media(max-width:480px) {
  .app-topbar, .app-topbar.is-scrolled { padding-inline:10px!important; }
  .app-topbar .board-wordmark .site-logo { width:185px!important; }
  .app-topbar .topbar-actions .pill-btn.accent { padding:7px 6px; font-size:10px; }
  .app-footer .footer-grid { grid-template-columns:1fr; }
  .bullion-site .app-content { padding-inline:12px; }
  .bullion-site .panel-pad { padding:18px 14px; }
  .bullion-site .home-section h2 { font-size:28px; }
}
@media(max-width:340px) {
  .app-topbar, .app-topbar.is-scrolled { grid-template-columns:32px minmax(0,1fr) auto; column-gap:4px; }
  .app-topbar .board-wordmark .site-logo { width:145px!important; }
  .app-topbar .topbar-toggle { width:30px; }
  .app-topbar .topbar-actions .pill-btn.accent { font-size:9px; padding-inline:4px; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }

.bullion-site .contact-row, .bullion-site .contact-row p, .bullion-site .contact-row a { font-size:15px; line-height:1.65; }
.bullion-site .panel-title { font-size:18px; }
