:root {
  --brand-burgundy: #8f080b;
  --brand-burgundy-deep: #5e0507;
  --brand-gold-deep: #a66f05;
  --brand-gold-ink: #9d6605;
  --brand-gold: #c79428;
  --brand-gold-light: #f0d987;
  --brand-red: #ef1028;
  --brand-red-dark: #d7081e;
  --brand-green: #087d1a;
  --brand-green-dark: #006b12;
  --ink: #0b0908;
  --muted: #665b4c;
  --paper: #ffffff;
  --page: #f4f1eb;
  --line: #b07c19;
  --soft-gold: #fbf3d8;
  --shadow: 0 14px 34px rgba(61, 35, 10, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand-burgundy);
  text-decoration: none;
}

a:hover {
  color: var(--brand-gold-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand-gold-light);
  outline-offset: 3px;
}

.utility-bar {
  padding: 7px 0;
  color: #fff7dd;
  background: var(--brand-burgundy-deep);
  font-size: .84rem;
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.utility-item i {
  display: inline-block;
  color: var(--brand-gold-light);
  transition: transform .2s cubic-bezier(.16, 1, .3, 1);
}

.utility-bar a {
  color: #fff7dd;
}

.utility-bar a:hover {
  color: var(--brand-gold-light);
}

.utility-bar a:hover i {
  transform: translateY(-1px) scale(1.14);
}

.utility-group {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.utility-bar .utility-separator {
  margin: 0 10px;
  color: rgba(255, 255, 255, .42);
}

.site-navbar {
  position: relative;
  padding: 8px 0;
  border-bottom: 4px solid var(--brand-gold);
  background: var(--paper);
  box-shadow: 0 7px 22px rgba(71, 38, 7, .08);
}

.nav-rule {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  overflow: hidden;
  pointer-events: none;
}

.nav-rule::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  content: "";
  background: linear-gradient(90deg, transparent, var(--brand-gold-light) 50%, transparent);
  animation: rule-strike 1.15s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes rule-strike {
  from {
    transform: translateX(-115%);
  }

  to {
    transform: translateX(365%);
  }
}

.site-navbar .navbar-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  margin-right: 20px;
  color: var(--brand-burgundy);
}

.nav-logo {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  display: block;
  color: var(--brand-burgundy);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.05;
}

.brand-copy span {
  display: block;
  margin-top: 4px;
  color: var(--brand-gold-deep);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.site-navbar .navbar-toggler {
  border: 2px solid var(--brand-gold);
  border-radius: 8px;
}

.site-navbar .nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: .5rem .5rem !important;
  border: 1.5px solid transparent;
  border-radius: 10px;
  color: #2b2015 !important;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.nav-icon {
  display: grid;
  width: 34px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: var(--brand-gold-ink);
  font-size: .92rem;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .22s cubic-bezier(.16, 1, .3, 1);
}

.nav-icon i {
  display: block;
}

.nav-label {
  line-height: 1.1;
}

.site-navbar .nav-link::after {
  position: absolute;
  right: .5rem;
  bottom: .2rem;
  left: .5rem;
  height: 2px;
  border-radius: 2px;
  content: "";
  background: var(--brand-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus-visible,
.site-navbar .nav-link.active {
  border-color: rgba(199, 148, 40, .55);
  color: var(--brand-burgundy) !important;
  background: var(--soft-gold);
}

.site-navbar .nav-link:hover .nav-icon,
.site-navbar .nav-link:focus-visible .nav-icon {
  color: var(--brand-burgundy);
  background: var(--brand-gold-light);
  box-shadow: 0 4px 10px rgba(61, 35, 10, .18);
  transform: translateY(-2px) scale(1.14) rotate(-6deg);
}

.site-navbar .nav-link:hover::after,
.site-navbar .nav-link:focus-visible::after,
.site-navbar .nav-link.active::after {
  transform: scaleX(1);
}

.site-navbar .nav-link.active .nav-icon {
  color: #fff;
  background: var(--brand-burgundy);
  box-shadow: 0 4px 10px rgba(94, 5, 7, .24);
}

.page-banner {
  color: var(--ink);
  background: linear-gradient(100deg, var(--brand-gold-deep) 0%, var(--brand-gold-light) 48%, var(--brand-gold-deep) 100%);
  border-bottom: 2px solid var(--brand-gold-deep);
}

.page-banner .container {
  padding-top: 28px;
  padding-bottom: 26px;
  text-align: center;
}

.page-banner h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.65rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.08;
}

.page-banner .crumb {
  margin-top: 8px;
  color: #3e2b10;
  font-size: .86rem;
  font-weight: 700;
}

.page-banner .crumb a {
  color: var(--brand-burgundy-deep);
}

.home-hero {
  overflow: hidden;
  background: var(--paper);
}

.home-hero-grid {
  display: grid;
  min-height: 530px;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: stretch;
}

.home-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(30px, 5vw, 78px);
}

.home-copy h1 {
  max-width: 680px;
  margin: 0;
  color: var(--brand-burgundy);
  font-size: clamp(2.45rem, 5.6vw, 5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: .98;
}

.home-copy p {
  max-width: 64ch;
  margin: 24px 0 0;
  color: #4f4234;
  font-size: 1.06rem;
  line-height: 1.75;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.theme-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 2px solid var(--brand-burgundy);
  border-radius: 10px;
  color: #fff;
  background: var(--brand-burgundy);
  box-shadow: 0 8px 18px rgba(94, 5, 7, .2);
  font-size: .82rem;
  font-weight: 800;
  transition: color .2s, background .2s, transform .2s cubic-bezier(.2, .8, .2, 1);
}

.theme-button:hover {
  color: var(--brand-burgundy);
  background: var(--brand-gold-light);
  transform: translateY(-2px);
}

.theme-button.secondary {
  color: var(--brand-burgundy);
  background: transparent;
  box-shadow: none;
}

.theme-button.secondary:hover {
  color: #fff;
  background: var(--brand-burgundy);
}

.hero-brand-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 470px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--soft-gold), #fff 55%, #ead39a);
  border-left: 1px solid rgba(176, 124, 25, .38);
}

.hero-brand-stage::after {
  position: absolute;
  right: -100px;
  bottom: -100px;
  z-index: 1;
  width: 280px;
  height: 280px;
  border: 42px solid rgba(143, 8, 11, .07);
  border-radius: 50%;
  content: "";
}

.bullion-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bullion-defs {
  position: absolute;
  width: 0;
  height: 0;
}

.bullion-layer {
  position: absolute;
  inset: 0;
  transform: translate3d(0, calc(var(--bullion-p, 0) * var(--depth, 0px)), 0) scale(calc(1 + var(--bullion-p, 0) * .03));
}

.bullion-layer-far {
  --depth: 30px;
  opacity: .5;
}

.bullion-layer-mid {
  --depth: 74px;
  opacity: .7;
}

.bullion-layer-near {
  --depth: 132px;
  opacity: .88;
}

.bullion {
  position: absolute;
  display: block;
  height: auto;
  filter: drop-shadow(0 7px 12px rgba(94, 5, 7, .26));
  transform: rotate(var(--tilt, 0deg));
}

.bullion-coin {
  width: clamp(46px, 6.4vw, 74px);
}

.bullion-ingot {
  width: clamp(84px, 12vw, 140px);
}

.bullion-layer-far .bullion-coin {
  width: clamp(40px, 5.4vw, 64px);
}

.bullion-layer-far .bullion-coin:nth-of-type(2) {
  width: clamp(34px, 4.6vw, 54px);
}

.bullion-layer-mid .bullion-ingot {
  --tilt: 9deg;
  width: clamp(78px, 10.6vw, 126px);
}

.bullion-layer-mid .bullion-coin {
  width: clamp(52px, 7.2vw, 84px);
}

.bullion-layer-near .bullion-ingot {
  --tilt: -11deg;
  width: clamp(116px, 15.4vw, 180px);
}

.bullion-layer-near .bullion-coin {
  width: clamp(70px, 9.2vw, 110px);
}

.bullion-field.is-live .bullion {
  animation: bullion-rock 7.5s ease-in-out infinite;
}

.bullion-field.is-live .bullion-layer-mid .bullion:nth-of-type(2),
.bullion-field.is-live .bullion-layer-near .bullion:nth-of-type(2) {
  animation-duration: 9.5s;
  animation-delay: -2.4s;
}

.bullion-field.is-live .bullion-layer {
  will-change: transform;
}

@keyframes bullion-rock {
  0%,
  100% {
    transform: rotate(var(--tilt, 0deg)) translateY(0);
  }

  50% {
    transform: rotate(var(--tilt, 0deg)) translateY(-6px);
  }
}

.hero-logo-frame {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(420px, 88%);
  height: 350px;
  place-items: center;
  overflow: hidden;
}

.hero-logo-frame img {
  width: 420px;
  max-width: 100%;
  height: auto;
  transform: translateY(-52px);
}

.market-strip {
  overflow: hidden;
  border-top: 2px solid var(--brand-gold);
  border-bottom: 2px solid var(--brand-gold);
  color: #fff8e4;
  background: var(--brand-burgundy-deep);
}

.market-strip-inner {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 36px;
  padding: 0 22px;
}

.market-strip strong {
  flex: 0 0 auto;
  color: var(--brand-gold-light);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.market-strip p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.4;
}

.home-content,
.content-section {
  padding: 48px 15px;
}

.home-content-inner,
.content-panel {
  width: min(970px, 100%);
  margin: 0 auto;
}

.home-content-inner {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 42px;
  align-items: start;
}

.home-content h2,
.content-panel h2 {
  margin: 0 0 14px;
  color: var(--brand-burgundy);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.12;
}

.home-content p,
.content-panel p,
.content-panel li {
  color: #493e31;
  font-size: 1rem;
  line-height: 1.75;
}

.home-links {
  margin: 0;
  padding: 0;
  border-top: 3px solid var(--brand-gold);
  list-style: none;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.home-links li + li {
  border-top: 1px solid #ecdfc4;
}

.home-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  color: #2e241a;
  font-weight: 800;
}

.home-links a:hover {
  color: var(--brand-burgundy);
  background: var(--soft-gold);
}

.content-panel {
  padding: clamp(24px, 4vw, 46px);
  border-top: 5px solid var(--brand-gold);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.content-panel h3 {
  margin: 30px 0 10px;
  color: var(--brand-burgundy);
  font-size: 1.18rem;
  font-weight: 800;
}

.content-panel ol,
.content-panel ul {
  padding-left: 1.35rem;
}

.info-list {
  margin: 4px 0 0;
  padding: 0 !important;
  list-style: none;
}

.info-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid #eadfc9;
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list strong {
  color: var(--brand-burgundy-deep);
}

.document-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 0 18px;
  border: 2px solid var(--brand-gold-deep);
  border-radius: 9px;
  color: #2b1c07;
  background: var(--brand-gold-light);
  font-weight: 800;
}

.document-link:hover {
  color: #fff;
  background: var(--brand-burgundy);
  border-color: var(--brand-burgundy);
}

.message-list {
  display: grid;
  gap: 14px;
}

.message-item {
  padding: 20px 22px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
}

.message-item p {
  margin: 0;
}

.message-date {
  margin-top: 8px;
  color: var(--brand-burgundy);
  font-size: .82rem;
  font-weight: 800;
  text-align: right;
}

.loading-copy,
.empty-copy,
.error-copy {
  padding: 12px;
  border-radius: 10px;
  background: var(--soft-gold);
  color: #49340f !important;
}

.calendar-frame {
  width: 100%;
  min-height: 650px;
  border: 2px solid var(--line);
  background: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 38px;
}

.contact-actions {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  background: var(--soft-gold);
}

.contact-actions .theme-button {
  width: 100%;
}

/* Ticker bar. Ported from the rakeshgold.com marquee: a duplicated track that
   scrolls left continuously and pauses on hover. The copy count and duration are
   set from script.js so the scroll speed stays constant at any message length. */
.ticker {
  display: flex;
  align-items: stretch;
  width: min(970px, 100%);
  margin: 18px auto 0;
  overflow: hidden;
  border: 1px solid var(--brand-gold);
  border-radius: 8px;
  background: var(--soft-gold);
  box-shadow: 0 6px 18px rgba(61, 35, 10, .1);
}

.ticker[hidden] {
  display: none;
}

.ticker-label {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  color: var(--brand-gold-light);
  background: var(--brand-burgundy);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-viewport {
  flex: 1 1 auto;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll var(--ticker-duration, 18s) linear infinite;
  will-change: transform;
}

.ticker-viewport:hover .ticker-track,
.ticker-track:focus-within {
  animation-play-state: paused;
}

.ticker-item {
  flex: 0 0 auto;
  padding: 10px 40px 10px 0;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
}

/* The shift is exactly one copy width, so the loop is seamless because every
   copy is identical. */
@keyframes ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-100% / var(--ticker-copies, 2)), 0, 0); }
}

/* Market popup. Sanitised message HTML lands in #marketPopupBody. */
.market-popup {
  border: 1px solid var(--brand-gold);
  border-radius: 10px;
  overflow: hidden;
}

.market-popup .modal-header {
  gap: 10px;
  color: var(--brand-gold-light);
  background: var(--brand-burgundy);
  border-bottom: 0;
}

.market-popup .modal-title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  font-weight: 700;
}

/* Bootstrap's .btn-close paints a hardcoded fill='%23000' SVG data-URI, so its
   near-black glyph stays invisible on the burgundy header no matter what color
   we set. Draw the cross in CSS instead so the contrast is actually ours. */
.market-popup .btn-close {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  background: none;
  opacity: 1;
  filter: none;
  box-shadow: none;
}

.market-popup .btn-close::before,
.market-popup .btn-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.15rem;
  height: 2px;
  background: var(--brand-gold-light);
  border-radius: 1px;
}

.market-popup .btn-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.market-popup .btn-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.market-popup .btn-close:hover::before,
.market-popup .btn-close:hover::after,
.market-popup .btn-close:focus-visible::before,
.market-popup .btn-close:focus-visible::after {
  background: #fff;
}

.market-popup .btn-close:focus-visible {
  outline: 2px solid var(--brand-gold-light);
  outline-offset: 2px;
  box-shadow: none;
}

.market-popup .modal-body {
  max-height: 62vh;
  overflow-y: auto;
  text-align: center;
  background: var(--paper);
}

.market-popup .modal-body :is(img, iframe) {
  max-width: 100%;
  height: auto;
}

.market-popup .modal-body iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.market-popup .modal-footer {
  background: var(--soft-gold);
  border-top: 1px solid var(--brand-gold);
}

.rates-section {
  padding: 16px 15px 26px;
}

.rates-shell {
  width: min(970px, 100%);
  margin: 0 auto;
}

/* Live-rate bullion lattice. The board remains the fixed reading plane while
   the stamped coin and ingot geometry travels beneath it with scroll. */
.live-rates-page .rates-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 6% 12%, rgba(240, 217, 135, .34), transparent 29rem),
    radial-gradient(circle at 94% 66%, rgba(143, 8, 11, .09), transparent 32rem),
    var(--page);
}

.live-rates-page .rates-shell {
  position: relative;
  z-index: 1;
}

.bullion-mesh {
  --bullion-p: 0;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bullion-mesh-plane {
  position: absolute;
  inset: -180px -96px;
  display: block;
  opacity: .58;
  background-image:
    linear-gradient(30deg, transparent 48.8%, rgba(166, 111, 5, .18) 49.3%, rgba(166, 111, 5, .18) 50.7%, transparent 51.2%),
    linear-gradient(150deg, transparent 48.8%, rgba(166, 111, 5, .18) 49.3%, rgba(166, 111, 5, .18) 50.7%, transparent 51.2%),
    radial-gradient(circle, rgba(143, 8, 11, .3) 0 1.6px, transparent 2.2px);
  background-position: 0 0, 0 0, 0 0;
  background-size: 112px 64px, 112px 64px, 56px 64px;
  transform: translate3d(calc(var(--bullion-p) * -64px), calc(var(--bullion-p) * -260px), 0) scale(1.08);
  transform-origin: center top;
}

.bullion-mesh-mark {
  position: absolute;
  display: block;
  opacity: .2;
}

.bullion-mesh-coin {
  width: clamp(150px, 18vw, 260px);
  aspect-ratio: 1;
  border: 2px solid var(--brand-gold-deep);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 8px rgba(240, 217, 135, .5),
    inset 0 0 0 10px rgba(166, 111, 5, .62),
    inset 0 0 0 28px rgba(199, 148, 40, .1);
}

.bullion-mesh-coin::before,
.bullion-mesh-coin::after,
.bullion-mesh-ingot::before {
  position: absolute;
  content: "";
}

.bullion-mesh-coin::before {
  inset: 24%;
  border: 1px solid rgba(143, 8, 11, .72);
  border-radius: 50%;
}

.bullion-mesh-coin::after {
  top: 39%;
  left: 39%;
  width: 22%;
  aspect-ratio: 1;
  border: 2px solid rgba(143, 8, 11, .72);
  transform: rotate(45deg);
}

.bullion-mesh-coin-one {
  top: 7%;
  left: -4vw;
  transform: translate3d(calc(var(--bullion-p) * 80px), calc(var(--bullion-p) * -360px), 0) rotate(calc(-12deg + (var(--bullion-p) * 92deg)));
}

.bullion-mesh-coin-two {
  right: -5vw;
  bottom: 12%;
  width: clamp(180px, 22vw, 320px);
  border-color: rgba(143, 8, 11, .78);
  transform: translate3d(calc(var(--bullion-p) * -96px), calc(var(--bullion-p) * 280px), 0) rotate(calc(9deg - (var(--bullion-p) * 72deg)));
}

.bullion-mesh-ingot {
  width: clamp(170px, 22vw, 320px);
  height: clamp(92px, 12vw, 176px);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  background: linear-gradient(145deg, rgba(240, 217, 135, .58), rgba(166, 111, 5, .42) 52%, rgba(107, 71, 5, .58));
}

.bullion-mesh-ingot::before {
  inset: 12% 10% 20%;
  border: 2px solid rgba(255, 250, 231, .68);
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
}

.bullion-mesh-ingot-one {
  top: 39%;
  right: 2vw;
  transform: translate3d(calc(var(--bullion-p) * -110px), calc(var(--bullion-p) * -310px), 0) rotate(calc(8deg - (var(--bullion-p) * 24deg)));
}

.bullion-mesh-ingot-two {
  bottom: 31%;
  left: 1vw;
  width: clamp(130px, 17vw, 240px);
  height: clamp(72px, 9vw, 132px);
  transform: translate3d(calc(var(--bullion-p) * 96px), calc(var(--bullion-p) * -220px), 0) rotate(calc(-7deg + (var(--bullion-p) * 32deg)));
}

.bullion-mesh.is-live :is(.bullion-mesh-plane, .bullion-mesh-mark) {
  will-change: transform;
}

.live-rates-page .rates-table tbody td {
  background: rgba(255, 255, 255, .95);
}

@media (max-width: 767px) {
  .bullion-mesh-plane {
    right: -140px;
    left: -140px;
    opacity: .46;
    background-size: 84px 48px, 84px 48px, 42px 48px;
  }

  .bullion-mesh-mark {
    opacity: .14;
  }

  .bullion-mesh-coin-one {
    left: -92px;
  }

  .bullion-mesh-coin-two {
    right: -120px;
  }

  .bullion-mesh-ingot-two {
    display: none;
  }
}

/* Row rhythm is deliberately tight: the board is scanned, not read, so the
   vertical budget goes to the numerals rather than to padding. */
.rates-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0 5px;
  table-layout: fixed;
}

.rates-table + .rates-table {
  margin-top: 0;
}

.rates-table th,
.rates-table td {
  min-width: 0;
  overflow: hidden;
  vertical-align: middle;
}

.rates-table thead th {
  padding: 9px 20px;
  border: 0;
  color: var(--ink);
  background: linear-gradient(100deg, var(--brand-gold-deep) 0%, var(--brand-gold-light) 49%, var(--brand-gold-deep) 100%);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.rates-table thead th:first-child {
  border-radius: 10px 0 0 10px;
  text-align: left;
}

.rates-table thead th:last-child {
  border-radius: 0 10px 10px 0;
}

.product-table col:first-child {
  width: 58%;
}

.product-table col:last-child {
  width: 42%;
}

.rates-table tbody td {
  height: 48px;
  padding: 3px 14px;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--paper);
}

.rates-table tbody td:first-child {
  border-left: 2px solid var(--line);
  border-radius: 8px 0 0 8px;
}

.rates-table tbody td:last-child {
  border-right: 2px solid var(--line);
  border-radius: 0 8px 8px 0;
}

.product-name {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.08;
}

.rate-time {
  display: block;
  margin-top: 4px;
  color: #463b2f;
  font-size: .86rem;
  font-weight: 500;
  line-height: 1.15;
}

.sell-cell,
.future-number-cell {
  text-align: center;
}

.price,
.future-value {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

/* Product Sell values keep the movement-pill geometry at rest, so a live
   change never shifts the row when its red or green state appears. */
.price {
  padding: 4px 8px;
  border-radius: 7px;
}

/* Silver marker: a gold rule, not a filled resting pill. */
.price-alert {
  padding: 4px 8px;
  /* border-bottom: 2px solid var(--brand-gold); */
}

.future-table col:nth-child(1) {
  width: 40%;
}

.future-table col:nth-child(2),
.future-table col:nth-child(3) {
  width: 19%;
}

.future-table col:nth-child(4) {
  width: 22%;
}

.future-table tbody td {
  height: 50px;
}

.future-table tbody td:first-child {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Bid and Ask share identical pill geometry so the row stays aligned whether or
   not a movement flash is active. Neither carries a resting fill. */
.bid-value,
.ask-value {
  padding: 4px;
  border-radius: 7px;
}

/* Movement flash. Declared after .bid-value and .price-alert so a change always
   overrides the resting treatment (the gold silver rule and the plain pill
   geometry) and never leaves coloured text on a coloured fill. */
.rate-up {
  color: #fff;
  background: var(--brand-green);
  box-shadow: 0 5px 12px rgba(0, 107, 18, .28);
  animation: rate-pulse .5s ease-out;
}

.rate-down {
  color: #fff;
  background: var(--brand-red-dark);
  box-shadow: 0 5px 12px rgba(215, 8, 30, .28);
  animation: rate-pulse .5s ease-out;
}

@keyframes rate-pulse {
  0% { transform: scale(1); }
  38% { transform: scale(1.09); }
  100% { transform: scale(1); }
}

.range-values {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 9px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: .95;
  justify-content: center;
}

.range-value {
  justify-self: start;
  border-radius: 6px;
  padding: 0 5px;
  transition: background-color .18s ease, color .18s ease;
}

.range-values::before {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 2px;
  content: "";
  background: var(--brand-gold);
}

.rates-footnote {
  margin: 7px 3px 0;
  color: #665744;
  font-size: .78rem;
  line-height: 1.45;
  text-align: center;
}

.site-footer {
  padding-top: 20px;
  padding-bottom: 8px;
  color: #f0e5cf;
  background: var(--brand-burgundy-deep);
  border-top: 3px solid var(--brand-gold);
}

.footer-sections {
  margin-bottom: 8px;
}

.footer-section {
  padding: 0 8px;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 217, 135, .35), transparent);
  margin: 8px 0 6px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 5px;
  background: #fff;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: .85rem;
}

.footer-brand span {
  color: var(--brand-gold-light);
  font-size: .56rem;
  letter-spacing: .05em;
}

.footer-tagline {
  margin: 0 0 8px;
  font-size: .72rem;
  line-height: 1.5;
  color: #e8dcc8;
}

.site-footer h2 {
  margin: 0 0 8px;
  color: var(--brand-gold-light);
  font-size: .78rem;
  font-weight: 800;
}

.site-footer p,
.site-footer li {
  font-size: .72rem;
  line-height: 1.5;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 4px;
}

.site-footer a {
  color: #f8edd7;
}

.site-footer a:hover {
  color: var(--brand-gold-light);
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  margin: 0 -4px;
  border-radius: 5px;
  transition: color .2s ease, background-color .2s ease;
}

.footer-link-icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 5px;
  color: var(--brand-gold-light);
  background: rgba(240, 217, 135, .13);
  font-size: .62rem;
  transition: color .2s ease, background-color .2s ease, transform .22s cubic-bezier(.16, 1, .3, 1);
}

.footer-link-icon i {
  display: block;
}

.footer-link-label {
  flex: 1 1 auto;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
}

.footer-link-arrow {
  flex: 0 0 auto;
  color: var(--brand-gold-light);
  font-size: .55rem;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity .2s ease, transform .22s cubic-bezier(.16, 1, .3, 1);
}

.site-footer .footer-link:hover,
.site-footer .footer-link:focus-visible {
  color: var(--brand-gold-light);
  background: rgba(240, 217, 135, .1);
}

.site-footer .footer-link:hover .footer-link-icon,
.site-footer .footer-link:focus-visible .footer-link-icon {
  color: var(--brand-burgundy-deep);
  background: var(--brand-gold-light);
  transform: translateX(1px) scale(1.08) rotate(-5deg);
}

.site-footer .footer-link:hover .footer-link-label,
.site-footer .footer-link:focus-visible .footer-link-label {
  transform: translateX(2px);
}

.site-footer .footer-link:hover .footer-link-arrow,
.site-footer .footer-link:focus-visible .footer-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 4px;
  margin: 0 -4px;
  border-radius: 5px;
  transition: background-color .2s ease;
}

.site-footer .footer-contact li + li {
  margin-top: 1px;
}

.footer-contact li:hover {
  background: rgba(240, 217, 135, .1);
}

.footer-contact-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-gold-light);
  background: rgba(240, 217, 135, .13);
  font-size: .62rem;
  transition: color .2s ease, background-color .2s ease, transform .22s cubic-bezier(.16, 1, .3, 1);
}

.footer-contact-icon i {
  display: block;
}

.footer-contact li:hover .footer-contact-icon {
  color: var(--brand-burgundy-deep);
  background: var(--brand-gold-light);
  transform: scale(1.1);
}

.social-links {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.social-links a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--brand-burgundy-deep);
  background: var(--brand-gold-light);
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s cubic-bezier(.16, 1, .3, 1);
}

.social-links a i {
  display: block;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
}

.social-links a:hover {
  color: #fff;
  background: var(--brand-gold-deep);
  box-shadow: 0 5px 12px rgba(61, 5, 7, .3);
  transform: translateY(-2px);
}

.social-links a:hover i {
  transform: rotate(8deg) scale(1.08);
}

.footer-bottom {
  margin-top: 4px;
  padding: 8px 0 4px;
  border-top: 1px solid rgba(240, 217, 135, .22);
  color: #dccdb1;
  font-size: .68rem;
  text-align: center;
}

#backToTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-burgundy);
  box-shadow: 0 8px 18px rgba(61, 5, 7, .28);
  z-index: 999;
}

#backToTop:hover {
  color: var(--ink);
  background: var(--brand-gold-light);
}

@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse {
    margin-top: 10px;
    padding: 10px 0 4px;
    border-top: 1px solid #eadfc9;
  }

  .site-navbar .navbar-nav {
    gap: 2px;
  }

  .site-navbar .nav-link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    padding: .7rem .65rem !important;
    border-radius: 8px;
    font-size: .95rem;
  }

  .site-navbar .nav-link::after {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 0;
    width: 3px;
    height: 58%;
    border-radius: 3px;
    transform: translateY(-50%) scaleY(0);
  }

  .site-navbar .nav-link:hover::after,
  .site-navbar .nav-link:focus-visible::after,
  .site-navbar .nav-link.active::after {
    transform: translateY(-50%) scaleY(1);
  }

  .nav-icon {
    width: 30px;
    height: 30px;
  }

  .site-navbar .nav-link:hover .nav-icon,
  .site-navbar .nav-link:focus-visible .nav-icon {
    transform: scale(1.1);
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-brand-stage {
    min-height: 390px;
    border-top: 1px solid rgba(176, 124, 25, .38);
    border-left: 0;
  }
}

@media (max-width: 767px) {
  .nav-logo {
    width: 56px;
    height: 56px;
  }

  .brand-copy strong {
    font-size: 1.05rem;
  }

  .brand-copy span {
    font-size: .62rem;
  }

  .home-copy {
    padding: 48px 22px;
  }

  .home-copy h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .hero-brand-stage {
    min-height: 320px;
  }

  .hero-logo-frame {
    width: min(310px, 92%);
    height: 270px;
  }

  .hero-logo-frame img {
    width: 310px;
    transform: translateY(-38px);
  }

  .market-strip-inner {
    display: block;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .market-strip p {
    margin-top: 4px;
  }

  .home-content-inner,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .info-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .rates-table {
    border-spacing: 0 4px;
  }

  .rates-table thead th {
    padding: 8px 6px;
    font-size: clamp(.82rem, 4vw, 20px);
  }

  .product-table col:first-child {
    width: 58%;
  }

  .product-table col:last-child {
    width: 42%;
  }

  .rates-table tbody td {
    height: 44px;
    padding: 2px 7px;
  }

  .product-name {
    font-size: clamp(.98rem, 4.7vw, 20px);
    overflow-wrap: anywhere;
  }

  .rate-time {
    font-size: clamp(.7rem, 3vw, .82rem);
  }

  .price,
  .future-value {
    font-size: clamp(1rem, 5vw, 20px);
    white-space: nowrap;
  }

  .future-table col:nth-child(1) {
    width: 35%;
  }

  .future-table col:nth-child(2) {
    width: 22%;
  }

  .future-table col:nth-child(3) {
    width: 21%;
  }

  .future-table col:nth-child(4) {
    width: 22%;
  }

  .future-table tbody td {
    padding-right: 4px;
    padding-left: 4px;
  }

  .future-table tbody td:first-child {
    padding-left: 7px;
    font-size: clamp(.7rem, 3.1vw, .9rem);
    white-space: nowrap;
  }

  .future-table .future-value {
    font-size: clamp(.78rem, 3.7vw, 1rem);
  }

  .future-table .bid-value {
    padding-right: 1px;
    padding-left: 1px;
  }

  .range-values {
    gap: 4px;
    padding-left: 6px;
    font-size: clamp(.56rem, 2.45vw, .72rem);
  }
}

@media (max-width: 420px) {
  .site-navbar .navbar-brand {
    gap: 8px;
    margin-right: 4px;
  }

  .nav-logo {
    width: 48px;
    height: 48px;
  }

  .brand-copy strong {
    font-size: .94rem;
  }

  .brand-copy span {
    letter-spacing: .05em;
  }

  .rates-section {
    padding-right: 10px;
    padding-left: 10px;
  }

  .price {
    padding-right: 3px;
    padding-left: 3px;
  }
}

/* The live board leads directly with market data, so its header uses the
   navbar's former vertical padding to give the supplied logo more presence. */
.live-rates-page .site-navbar,
.live-rates-page .site-navbar .navbar-brand {
  padding-block: 0;
}

.live-rates-page .nav-logo {
  width: 88px;
  height: 88px;
}

@media (max-width: 767px) {
  .live-rates-page .nav-logo {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 420px) {
  .live-rates-page .nav-logo {
    width: 64px;
    height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bullion-layer {
    transform: none;
  }

  .bullion-field .bullion {
    animation: none;
  }

  .ticker-track {
    animation: none;
    width: auto;
  }

  .ticker-viewport {
    overflow-x: auto;
  }

  .ticker-item:not(:first-child) {
    display: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding-top: 16px;
    padding-bottom: 6px;
  }

  .footer-sections {
    margin-bottom: 6px;
  }

  .footer-section {
    padding: 0 6px;
  }

  .footer-divider {
    margin: 6px 0 4px;
  }

  .footer-brand {
    gap: 6px;
    margin-bottom: 4px;
  }

  .footer-brand img {
    width: 42px;
    height: 42px;
    border-radius: 4px;
  }

  .footer-brand strong {
    font-size: .78rem;
  }

  .footer-brand span {
    font-size: .52rem;
  }

  .footer-tagline {
    font-size: .66rem;
    margin-bottom: 6px;
  }

  .site-footer h2 {
    font-size: .72rem;
    margin-bottom: 6px;
  }

  .site-footer p,
  .site-footer li {
    font-size: .66rem;
    line-height: 1.45;
  }

  .social-links {
    gap: 5px;
    margin-top: 6px;
  }

  .social-links a {
    width: 28px;
    height: 28px;
  }

  .footer-bottom {
    margin-top: 3px;
    padding: 6px 0 3px;
    font-size: .6rem;
  }

  .footer-link-icon {
    width: 18px;
    height: 18px;
    font-size: .56rem;
  }

  .footer-contact-icon {
    width: 20px;
    height: 20px;
    font-size: .56rem;
  }
}

@media (max-width: 420px) {
  .site-footer .col-lg-4,
  .site-footer .col-lg-3,
  .site-footer .col-lg-5 {
    padding-left: 6px;
    padding-right: 6px;
  }

  .footer-section {
    padding: 0 4px;
  }
}
