/* Qatar Gold Live — menus, triggers, spark, chart */

.qgl-root [data-tgp-bind="hero-spark-path"] {
  stroke: #B8960F !important;
  stroke-width: 2 !important;
  stroke-linejoin: round !important;
  stroke-linecap: round !important;
  filter: none !important;
}

.qgl-root [data-tgp-bind="hero-spark-dot"] {
  fill: #B8960F !important;
}

.qgl-root [data-tgp-bind="hero-spark-area"] {
  fill: url(#tgp-hero-spark-fill) !important;
  stroke: none !important;
  filter: none !important;
  opacity: 1;
}

.qgl-root #tgp-hero-spark-fill stop:nth-child(1) {
  stop-color: #C9A227 !important;
  stop-opacity: 0.16 !important;
}

.qgl-root #tgp-hero-spark-fill stop:nth-child(2) {
  stop-color: #C9A227 !important;
  stop-opacity: 0.05 !important;
}

.qgl-root #tgp-hero-spark-fill stop:nth-child(3) {
  stop-color: #C9A227 !important;
  stop-opacity: 0 !important;
}

.qgl-root .tgp-hero-spark-change {
  display: none !important;
}

.qgl-root .tgp-currency-select-btn,
.qgl-root .tgp-hero-currency-trigger,
.qgl-root .tgp-table-currency-button,
.qgl-root .tgp-graph-currency-trigger,
.qgl-root .tgp-market-fx-btn,
.qgl-root [data-tgp-cn="currency-btn"] {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  width: max-content !important;
  max-width: none !important;
  white-space: nowrap !important;
  gap: 0.35rem;
}

.qgl-root .tgp-table-currency-button [data-tgp-table-currency-label],
.qgl-root [data-tgp-table-currency-label],
.qgl-root [data-tgp-hero-currency-label],
.qgl-root [data-tgp-market-fx-label],
.qgl-root [data-tgp-graph-currency-label] {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0.35rem;
  width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
}

.qgl-root .tgp-currency-select-btn span,
.qgl-root .tgp-table-currency-button span,
.qgl-root .tgp-graph-currency-trigger span,
.qgl-root .tgp-market-fx-btn span,
.qgl-root .tgp-hero-currency-trigger span {
  white-space: nowrap !important;
  flex: 0 1 auto;
}

.qgl-root .tgp-currency-flag,
.qgl-root .tgp-currency-select-btn img,
.qgl-root .tgp-table-currency-button img,
.qgl-root .tgp-hero-currency-trigger img,
.qgl-root .tgp-market-fx-btn img,
.qgl-root .tgp-graph-currency-trigger img,
.qgl-root [data-tgp-table-currency-label] img {
  flex: 0 0 auto !important;
  display: inline-block !important;
}

.tgp-currency-dropdown-menu--portal {
  position: fixed !important;
  z-index: 2147483647 !important;
  width: 13rem !important;
  min-width: 13rem !important;
  max-width: min(13rem, calc(100vw - 1rem)) !important;
  box-sizing: border-box !important;
}

.qgl-root [data-tgp-currency-mount],
.qgl-root .tgp-hero-currency-mount,
.qgl-root .tgp-graph-currency-select,
.qgl-root .tgp-table-currency-picker,
.qgl-root .tgp-market-fx {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto !important;
  width: max-content !important;
  overflow: visible !important;
}

.qgl-root .tgp-hero-price-box,
.qgl-root .tgp-hero-panel,
.qgl-root .tgp-table-controls,
.qgl-root .tgp-graph-module,
.qgl-root .tgp-market-controls,
.qgl-root .tgp-market-summary {
  overflow: visible !important;
}

.qgl-root {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Naskh Arabic", sans-serif !important;
}

.qgl-root .tgp-gold-ticker,
.qgl-root .tgp-ticker-viewport {
  height: 2.5rem !important;
  min-height: 2.5rem !important;
  max-height: 2.5rem !important;
  overflow: hidden !important;
}

.qgl-root .tgp-live-price {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  min-height: 2.15rem;
  white-space: nowrap;
}

.qgl-root .tgp-pdf-btn {
  min-height: 3.15rem;
}

.qgl-root .tgp-hero-spark-card,
.qgl-root [data-tgp-hero-spark] {
  min-height: 7.35rem;
}

.qgl-root .tgp-hero-spark-plot {
  height: 70px;
  min-height: 70px;
}

@media (max-width: 639px) {
  .qgl-root .tgp-hero-price-box {
    min-height: 0;
    padding-bottom: 0.85rem;
  }
  .qgl-root.tgp-variant-home .tgp-hero-panel {
    min-height: 140rem;
  }
  .qgl-root .tgp-hero-controls-row {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .qgl-root .tgp-hero-main > p.tgp-hero-updated {
    white-space: nowrap;
    overflow: hidden;
    font-size: clamp(10.5px, 2.7vw, 15px);
  }
}

.qgl-root .tgp-currency-dropdown-menu:not(.tgp-currency-dropdown-menu--portal),
.qgl-root .tgp-table-currency-menu:not(.tgp-currency-dropdown-menu--portal),
.qgl-root .tgp-graph-currency-menu:not(.tgp-currency-dropdown-menu--portal),
.qgl-root .tgp-market-fx-menu:not(.tgp-currency-dropdown-menu--portal) {
  width: 13rem !important;
  min-width: 13rem !important;
  max-width: min(13rem, calc(100vw - 1rem)) !important;
  z-index: 80 !important;
}

.qgl-root .tgp-hero-spark-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.05rem;
  padding-inline: 0.1rem 4.35rem;
  font-size: 10px;
  font-weight: 600;
  color: #8a8276;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  gap: 0.35rem;
}

.qgl-root .tgp-hero-spark-labels span {
  flex: 0 1 auto;
  white-space: nowrap;
  min-width: 0;
}

.qgl-root .tgp-hist-canvas {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.qgl-root .tgp-market-fx-menu,
.qgl-root .tgp-graph-currency-menu {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  inset-inline-start: 0 !important;
  inset-inline-end: auto !important;
}

.qgl-root [data-tgp-bind="hero-spark-dot"] {
  transform-box: fill-box;
  transform-origin: center;
}

.qgl-root .tgp-market-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.qgl-root .tgp-market-title {
  width: 100%;
  white-space: nowrap;
}

.qgl-root .tgp-market-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.qgl-root .tgp-hero-spark-card,
.qgl-root [data-tgp-hero-spark] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 0.7rem;
  padding: 0.35rem 0.5rem 0.35rem;
  border: 1px solid rgba(180, 150, 90, 0.22);
  border-radius: 0.7rem;
  background: #faf8f3;
  box-sizing: border-box;
}

.qgl-root .tgp-hero-spark-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 0.12rem;
}

.qgl-root .tgp-hero-spark-caption {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #6b6256;
  margin: 0;
  line-height: 1.2;
  text-align: left;
  direction: rtl;
}

.qgl-root .tgp-hero-spark-plot {
  position: relative;
  width: 100%;
  direction: ltr;
  padding-right: 4.35rem;
  box-sizing: border-box;
  touch-action: none;
  cursor: crosshair;
}

.qgl-root .tgp-hero-spark-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.qgl-root .tgp-hero-spark-hover[hidden] {
  display: none !important;
}

.qgl-root .tgp-hero-spark-hair {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  margin-left: -0.5px;
  background: rgba(184, 150, 15, 0.42);
}

.qgl-root .tgp-hero-spark-hover-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #B8960F;
  border: 1.5px solid #fff;
  box-shadow: none;
}

.qgl-root .tgp-hero-spark-tip {
  position: absolute;
  min-width: 4.5rem;
  padding: 0.28rem 0.42rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(180, 150, 90, 0.32);
  background: #fffdf8;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.08);
  direction: ltr;
}

.qgl-root .tgp-hero-spark-tip-time {
  font-size: 10px;
  font-weight: 700;
  color: #6b6256;
  line-height: 1.2;
}

.qgl-root .tgp-hero-spark-tip-price {
  margin-top: 0.08rem;
  font-size: 12px;
  font-weight: 800;
  color: #111;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.qgl-root .tgp-hero-spark-svg,
.qgl-root .tgp-hero-spark-plot svg,
.qgl-root [data-tgp-hero-spark] svg {
  display: block;
  width: 100%;
  height: 70px;
}

.qgl-root .tgp-hero-spark-yaxis {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4.25rem;
  pointer-events: none;
  direction: ltr;
}

.qgl-root .tgp-hero-spark-yaxis span {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  font-size: 9px;
  font-weight: 700;
  color: #7a7266;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.qgl-root .tgp-pdf-btn,
.qgl-root .tgp-pdf-btn:hover,
.qgl-root .tgp-pdf-btn:focus,
.qgl-root .tgp-pdf-btn:active {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: #fffdf6 !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-tap-highlight-color: transparent;
}

.qgl-root .tgp-pdf-btn::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.qgl-root .tgp-hero-spark-grid {
  stroke: rgba(17, 17, 17, 0.055);
}

.qgl-root .tgp-hero-spark-axis {
  stroke: rgba(17, 17, 17, 0.1);
}

.qgl-root .tgp-hero-heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
}

.qgl-root .tgp-hero-heading > p {
  margin: 0;
}

.qgl-root .tgp-hero-main h1 {
  min-height: 0;
}

@media (max-width: 639px) {
  .qgl-root .tgp-hero-lead-home {
    font-size: clamp(10px, 2.85vw, 13px);
    line-height: 1.25;
    white-space: nowrap;
  }
  .qgl-root .tgp-hero-spark-labels {
    font-size: 9px;
    gap: 0.2rem;
    padding-inline: 0.05rem 3.4rem;
  }
  .qgl-root .tgp-hero-spark-labels .tgp-spark-t-mid-2 {
    display: none;
  }
}

@keyframes tgp-ticker-from-start {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.qgl-root .tgp-ticker-viewport {
  direction: ltr !important;
}

.qgl-root .gold-ticker-track,
.qgl-root .tgp-ticker-marquee {
  direction: ltr !important;
  animation-name: tgp-ticker-from-start !important;
  animation-duration: 140s !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
  animation-fill-mode: both !important;
}

.qgl-root h2.tgp-market-title,
.qgl-root .tgp-hero-horizon-heading > h2 {
  margin: 0;
}

.qgl-root .tgp-faq,
.qgl-root .tgp-faq h2,
.qgl-root .tgp-faq summary,
.qgl-root .tgp-faq [data-tgp-faq-q],
.qgl-root .tgp-faq [data-tgp-faq-a],
.qgl-root .tgp-faq p,
.qgl-root .tgp-faq a,
.qgl-root .tgp-faq-live {
  color: #111 !important;
}

.qgl-root .tgp-faq summary .text-gold {
  color: #c9a227 !important;
}

.qgl-root .tgp-faq a {
  text-decoration: underline;
  text-decoration-color: #c9a227;
  text-underline-offset: 0.12em;
}

.qgl-root .tgp-faq-live {
  font-weight: 700;
  white-space: nowrap;
}

.qgl-root .tgp-faq summary::-webkit-details-marker {
  display: none;
}

.qgl-root[data-tgp-app="home"] .tgp-stage > .tgp-layout > * + * {
  margin-top: 1.75rem;
}
@media (min-width: 640px) {
  .qgl-root[data-tgp-app="home"] .tgp-stage > .tgp-layout > * + * {
    margin-top: 2.75rem;
  }
}
@media (min-width: 1024px) {
  .qgl-root[data-tgp-app="home"] .tgp-stage > .tgp-layout > * + * {
    margin-top: 3.5rem;
  }
}
.qgl-root.tgp-section-widget {
  margin-bottom: 1.75rem;
}
@media (min-width: 640px) {
  .qgl-root.tgp-section-widget {
    margin-bottom: 2.75rem;
  }
}
@media (min-width: 1024px) {
  .qgl-root.tgp-section-widget {
    margin-bottom: 3.5rem;
  }
}
.qgl-root[data-tgp-app="home"] #tgp-precious-metals {
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .qgl-root[data-tgp-app="home"] #tgp-precious-metals {
    margin-top: 2rem;
  }
}
.qgl-root a.tgp-home-text-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #000;
  text-underline-offset: 2px;
}
.qgl-root a.tgp-home-text-link:hover {
  color: inherit;
  text-decoration-color: #000;
}
.qgl-root .tgp-metal-chg {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
