/* Beat 16 #markets, "Crypto and markets" (spec r3 7.7): the same run in four
   currencies (step 1), where crypto play is going (step 2), then five cities;
   at each city the HUD clock shows its live time, the sky follows its hour
   and a huge local clock sits on the right. */
.sh-beat--markets { --b-step-h: 32svh; }
.sh-beat--markets .b-frame { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 40px; }
.sh-beat--markets .b-head { grid-column: 1 / -1; max-width: 900px; }
.sh-beat--markets .b-steps { grid-column: 1 / -1; grid-row: 2; align-items: center; }
.sh-beat--markets .b-foot { grid-column: 1; }
.b-cities { grid-column: 2; grid-row: 2; align-self: center; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 18px; text-align: right; pointer-events: none; }
.b-cities > * { pointer-events: auto; }
html:not(.b-live) .b-cities { display: none; }
.b-cities__tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.b-cities__tabs button { min-height: 36px; padding: 0 14px; border: 1px solid var(--sh-line-2); border-radius: 999px; background: rgb(9 11 15 / 60%); color: var(--sh-fg-2); font: 500 13px/1 var(--sh-font-sans); cursor: pointer; transition: color .3s ease, border-color .3s ease, background .3s ease; }
.b-cities__tabs button:hover { color: var(--sh-fg); border-color: var(--sh-fg-3); }
.b-cities__tabs button[aria-pressed="true"] { color: var(--sh-ink-0); background: var(--sh-gold-hi); border-color: var(--sh-gold-hi); }
.b-clock { margin: 0; }
.b-clock__time { display: block; font: 400 clamp(88px, 12vw, 210px)/.85 var(--sh-font-num); letter-spacing: -.04em; color: var(--sh-fg); font-variant-numeric: tabular-nums lining-nums; text-shadow: 0 0 80px rgb(229 198 92 / 18%); }
.b-clock__time:not(.is-live) { font: 600 12px/1 var(--sh-font-mono); letter-spacing: .24em; color: var(--sh-fg-3); }

/* Step 1: one run, four currencies. */
.b-fxstep { max-width: min(70vw, 980px); padding: clamp(20px, 2.2vw, 32px); border: 1px solid var(--b-panel-line); border-radius: 20px; background: rgb(9 11 15 / 70%); }
html[data-tier="full"] .b-fxstep { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); background: rgb(9 11 15 / 55%); }
.b-fxstep h3, .sh-beat--markets .b-deckcards h3 { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; letter-spacing: -.03em; }
.b-fxwrap { margin-top: 16px; overflow-x: auto; }
.sh-fx { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sh-fx th, .sh-fx td { padding: 12px 12px; border-top: 1px solid var(--sh-line); text-align: right; white-space: nowrap; }
.sh-fx thead th { border-top: 0; color: var(--sh-gold-hi); font: 600 11px/1 var(--sh-font-mono); letter-spacing: .2em; }
.sh-fx thead td { border-top: 0; }
.sh-fx tbody th { text-align: left; padding-left: 0; font-weight: 500; font-size: 15px; color: var(--sh-fg); }
.sh-fx td { color: var(--sh-fg-2); font: 500 13.5px/1.2 var(--sh-font-mono); }
.sh-fx tr.is-gold td { color: var(--sh-gold-hi); }
.b-fxstep .b-caption { max-width: 56em; }

/* Step 2 keeps the page's card row, left aligned. */
.sh-beat--markets .b-deckcards { align-items: flex-start; text-align: left; }
.sh-beat--markets .b-deckcards .b-cards { width: min(84vw, 1240px); }

/* Steps 3 to 7: a city each. */
.b-city { max-width: 560px; }
.b-city__name { display: flex; align-items: center; gap: 12px; color: var(--sh-gold-hi); font: 600 12px/1 var(--sh-font-mono); letter-spacing: .24em; text-transform: uppercase; }
.b-city__name::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.b-city .b-num { margin-top: 18px; font-size: var(--b-xl); }
.b-city__status { display: inline-block; margin-top: 16px; padding: 6px 10px; border: 1px solid currentColor; border-radius: 6px; font: 600 10.5px/1 var(--sh-font-mono); letter-spacing: .2em; }
.b-city__status.is-red { color: #ff7c8a; background: rgb(226 59 77 / 10%); }
.sh-beat--markets .b-closing { font-size: 16px; color: var(--sh-fg-2); }

@media (max-width: 1100px) {
  .sh-beat--markets .b-deckcards .b-cards { width: 100%; }
  .b-clock__time { font-size: 96px; }
}
@media (max-width: 767px) {
  .sh-beat--markets { --b-step-h: 56svh; }
  .sh-beat--markets .b-frame { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; }
  .b-cities { grid-column: 1; grid-row: 2; justify-self: stretch; align-items: stretch; text-align: left; gap: 10px; margin-top: 10px; }
  .b-cities__tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 calc(var(--sh-gutter) * -1); padding: 0 var(--sh-gutter); scrollbar-width: none; }
  .b-cities__tabs button { flex: 0 0 auto; min-height: 44px; }
  .b-clock__time { font-size: 64px; }
  .sh-beat--markets .b-steps { grid-row: 3; align-self: end; }
  html.b-live .sh-beat--markets:not([data-b-step="1"]):not([data-b-step="2"]) .sh-beat__kicker + h2 { font-size: 22px; }
  .b-fxstep { max-width: none; padding: 16px; }
  .b-fxwrap { margin: 12px -16px 0; padding: 0 16px; scroll-snap-type: x mandatory; }
  .sh-fx th, .sh-fx td { scroll-snap-align: end; padding: 10px 14px; }
  .sh-fx tbody th { position: sticky; left: 0; background: rgb(9 11 15 / 92%); }
  .sh-beat--markets .b-deckcards .b-cards { width: auto; }
  .b-city .b-num { font-size: 64px; margin-top: 10px; }
}
@media (max-height: 559px) and (orientation: landscape) {
  .b-fxstep { max-width: none; }
}
