/* Markets strip (homepage, under the menu) and /markets/ page */
.mkt-strip { background: var(--paper); border-bottom: 1px solid var(--rule); }
.mkt-strip .wrap { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.mkt-strip .lbl { flex: none; font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.mkt-strip .lbl a:hover { color: var(--teal); }
.mkt-strip .tape { flex: 1; min-width: 0; min-height: 46px; }
.mkt-strip .more { flex: none; font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); white-space: nowrap; }
.mkt-strip .tradingview-widget-copyright { display: none; } /* credit is shown in the strip's own "by TradingView" link */
.mkt-strip .credit { flex: none; font: 400 10px/1 var(--sans); color: var(--muted); }
.mkt-strip .credit a { text-decoration: underline; }

.mkt-page { padding-top: 40px; padding-bottom: 60px; }
.mkt-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.mkt-box { background: #fff; border: 1px solid var(--rule); padding: 14px; }
.mkt-box.overview { height: 620px; }
.mkt-box.quotes { height: 620px; }
.mkt-box .tradingview-widget-container { height: 100%; }
.mkt-box .tradingview-widget-container__widget { height: calc(100% - 22px); }
.tradingview-widget-copyright { font: 400 11px/22px var(--sans); color: var(--muted); }
.tradingview-widget-copyright a { text-decoration: underline; }
.mkt-notes { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; font: 400 15px/1.55 var(--serif); color: var(--body); }
.mkt-notes h2, .mkt-notes h3 { font: 600 11px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin: 0 0 8px; }
.mkt-notes ul { margin: 0; padding-left: 18px; }
.mkt-notes a { text-decoration: underline; }
.mkt-disc { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--rule); font: 400 13px/1.5 var(--sans); color: var(--muted); }
@media (max-width: 960px) {
  .mkt-grid, .mkt-notes { grid-template-columns: 1fr; }
  .mkt-box.overview { height: 560px; }
}
@media (max-width: 760px) {
  .mkt-strip .wrap { gap: 10px; }
  .mkt-strip .more { display: none; }
  .mkt-page { padding-top: 28px; padding-bottom: 44px; }
}

/* Gold price today: running line under the masthead, homepage card, markets table (assets/gold.js) */
.gold-run { display: flex; align-items: center; gap: 14px; max-width: 1000px; margin: 18px auto 0; padding: 9px 0; border-top: 1px solid rgba(210,182,126,.35); border-bottom: 1px solid rgba(210,182,126,.35); font: 500 13px/1.2 var(--sans); color: var(--ivory); text-align: left; }
.gold-run .gt-label { flex: none; font: 700 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); background: var(--brass-hi); padding: 6px 9px; }
.gold-run .gt-viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.gold-run .gt-track { display: inline-flex; white-space: nowrap; animation: gt-scroll 60s linear infinite; }
.gold-run:hover .gt-track { animation-play-state: paused; }
.gold-run .gt-item { display: inline-flex; align-items: center; gap: 6px; padding-right: 34px; }
.gold-run .gt-item b { font-weight: 600; }
.gold-run .gt-item em { font-style: normal; font-weight: 600; color: var(--brass-hi); }
.gold-flag { display: inline-block; width: 20px; height: 15px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); vertical-align: -2px; margin-right: 6px; }
@keyframes gt-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .gold-run .gt-viewport { overflow-x: auto; } .gold-run .gt-track { animation: none; } }

.gold-card { background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--brass); padding: 16px 16px 14px; }
.gold-card h2 { font: 400 22px/1.15 var(--display); margin: 6px 0 12px; }
.gold-card h2 a:hover { color: var(--teal); }
.gold-tbl { width: 100%; border-collapse: collapse; font: 400 13px/1.3 var(--sans); color: var(--text); font-variant-numeric: tabular-nums; }
.gold-tbl th, .gold-tbl td { padding: 8px 4px; border-bottom: 1px solid var(--rule); text-align: right; }
.gold-tbl thead th { font: 600 10px/1.25 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); vertical-align: bottom; }
.gold-tbl th[scope=row], .gold-tbl thead th:first-child { text-align: left; font-weight: 600; white-space: nowrap; }
.gold-tbl td { font-weight: 600; white-space: nowrap; }
.gold-tbl tbody tr:last-child th, .gold-tbl tbody tr:last-child td { border-bottom: 0; }
.gold-tbl.compact th, .gold-tbl.compact td { padding: 6px 3px; font-size: 12.5px; }
.gold-tbl.compact .gold-flag { width: 18px; height: 13.5px; margin-right: 5px; }
.gold-tbl.big { font-size: 16px; }
.gold-tbl.big th, .gold-tbl.big td { padding: 13px 10px; }
.gold-tbl.big thead th { font-size: 11px; }
.gold-tbl .cur { font: 500 11px/1 var(--sans); color: var(--muted); letter-spacing: .06em; margin-left: 4px; }
.gold-meta { font: 400 11.5px/1.45 var(--sans); color: var(--muted); margin: 10px 0 0; }
.gold-meta a { text-decoration: underline; }
.gold-msg { font: italic 400 14px/1.5 var(--serif); color: var(--muted); margin: 6px 0; }
.gold-sec { background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--brass); padding: 22px 24px; margin: 0 0 34px; }
.gold-sec h2 { font: 400 clamp(24px, 2.6vw, 32px)/1.1 var(--display); margin: 6px 0 14px; }
.gold-sec .gold-tbl-wrap { overflow-x: auto; }
@media (max-width: 760px) {
  .gold-run { margin: 14px 16px 0; font-size: 12px; gap: 10px; }
  .gold-run .gt-label { font-size: 9.5px; padding: 5px 7px; }
  .gold-sec { padding: 16px 14px; }
  .gold-tbl.big { font-size: 13px; }
  .gold-tbl.big .gold-flag { width: 18px; height: 13.5px; margin-right: 5px; }
  .gold-tbl.big th, .gold-tbl.big td { padding: 9px 3px; }
  .gold-tbl.big th:nth-child(3), .gold-tbl.big td:nth-child(3), .gold-tbl.big .cur { display: none; }
}

/* Side banners either side of the homepage leaderboard (slots sideleft / sideright, wide screens only) */
.lead-row { max-width: 1440px; }
.lead-row .side-ad { display: none; }
@media (min-width: 1280px) {
  .lead-row { display: grid; grid-template-columns: minmax(0, 1fr) 970px minmax(0, 1fr); gap: 14px; align-items: stretch; margin-top: 34px; }
  .lead-row .slot.leader { margin: 0; width: 970px; }
  .lead-row .side-ad { display: flex; flex-direction: column; width: 100%; max-width: 160px; margin: 0; }
  .lead-row .side-ad[data-slot="sideleft"] { justify-self: end; }
  .lead-row .side-ad[data-slot="sideright"] { justify-self: start; }
  .lead-row .side-ad .house { flex: 1; padding: 12px 8px; gap: 10px; }
  .lead-row .side-ad .house b { font-size: 9px; line-height: 1.5; letter-spacing: .14em; }
  .lead-row .side-ad .house em { font-size: 9px; letter-spacing: .12em; }
  .lead-row .side-ad a.creative img, .lead-row .side-ad a.creative video { aspect-ratio: 160 / 250; object-fit: cover; }
}
.gold-side .gs-h { flex: none; font: 700 9.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass-hi); margin-bottom: 8px; }
.gold-side .gs-view { flex: 1; min-height: 0; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); }
.gold-side .gs-track { display: flex; flex-direction: column; animation: gs-scroll 36s linear infinite; }
.gold-side:hover .gs-track { animation-play-state: paused; }
.gold-side .gs-item { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; border-bottom: 1px solid rgba(239,233,220,.12); }
.gold-side .gs-c { display: flex; align-items: center; font: 600 12px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gold-side .gs-c .gold-flag { width: 16px; height: 12px; margin-right: 6px; }
.gold-side .gs-v { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 6px; font: 600 11.5px/1.25 var(--sans); color: var(--brass-hi); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gold-side .gs-v i { font-style: normal; font-weight: 500; font-size: 10px; color: var(--ivory-dim); }
@keyframes gs-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .gold-side .gs-view { overflow-y: auto; } .gold-side .gs-track { animation: none; } }

/* Ad slot "frontside": bottom of the front-page right column, level with the front-page banner */
.front .side .slot.side-box { margin-top: auto; width: 100%; }
.front .side .slot.side-box .house { aspect-ratio: 300 / 250; }
.front .side .slot.side-box a.creative img, .front .side .slot.side-box a.creative video { aspect-ratio: 300 / 250; object-fit: cover; }
