/* 24 Gold — homepage built from the Figma "24 Gold Homepage Design" frame (1920 wide).
   Every design pixel is expressed as calc(N * var(--u)), so the layout scales down
   proportionally from 1920 and stacks below 1024px. */

:root {
  --u: min(1px, calc(100vw / 1920));
  --tick-h: max(34px, calc(42 * var(--u)));
  --gold: #edbd22;
  --gold-2: #ecbd21;
  --gold-light: #fee183;
  --gold-dark: #b17e0b;
  --navy: #162230;
  --ink: #202532;
  --ink-2: #28333f;
  --text: #3c3c3c;
  --blue: #324c6e;
  --blue-2: #486790;
  --cream: #fefaee;
  --page: #fbfbfb;
  --line: #c4c4c4;
  --red: #e53935;
  --sans: "DM Sans", system-ui, sans-serif;
  --manrope: "Manrope", system-ui, sans-serif;
  --inter: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; font-optical-sizing: none; font-variation-settings: "opsz" 14; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 16px; top: 16px; }

.wrap { width: calc(1440 * var(--u)); margin-inline: auto; }

/* Photo framed the way Figma masks it: the image box is larger than the frame and offset (percentages of the frame). */
.crop { position: relative; display: block; overflow: hidden; }
.crop > img { position: absolute; left: var(--x); top: var(--y); width: var(--w); max-width: none; height: var(--h); object-fit: cover; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: calc(10 * var(--u)); border-radius: 999px; font-weight: 600; white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22, 34, 48, .18); }
.btn img { width: max(10px, calc(12 * var(--u))); height: auto; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--gold); }
.btn-white { background: #fff; color: var(--navy); }
.btn-soft { background: rgba(254, 225, 131, .8); color: var(--navy); }
.btn-md { height: max(44px, calc(58 * var(--u))); padding-inline: max(20px, calc(32 * var(--u))); font-size: max(15px, calc(19 * var(--u))); font-weight: 500; letter-spacing: -.03em; }
.btn-gold.btn-md, .btn-soft.btn-md { color: #000; }
.btn-sm { height: max(34px, calc(40 * var(--u))); padding-inline: max(14px, calc(20 * var(--u))); font-size: max(12px, calc(14 * var(--u))); font-weight: 800; letter-spacing: -.02em; }
.btn-navy { color: var(--gold-2); }

.circ { padding: 0; border: 0; background: none; border-radius: 50%; transition: transform .2s ease, opacity .2s; }
.circ img { width: max(36px, calc(44 * var(--u))); height: auto; }
.circ-lg img { width: max(44px, calc(64 * var(--u))); }
.circ:hover { transform: scale(1.06); }
.circ-prev img { transform: rotate(180deg); }

/* ---------- Ticker ---------- */
/* The price bar stays at the top with the nav under it (client, Nov 2026) */
.ticker { position: sticky; top: 0; z-index: 51; background: var(--gold); color: var(--navy); }
.ticker-row { min-height: var(--tick-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ticker-list { display: flex; gap: calc(28 * var(--u)); font-size: max(13px, calc(19 * var(--u))); font-weight: 600; }
.ticker-list li { display: flex; gap: calc(15 * var(--u)); white-space: nowrap; }
.ticker-list b { font-weight: 600; }
.down { color: #f00; }
.ticker-meta { display: flex; align-items: center; gap: calc(18 * var(--u)); }
.cad-pill { display: inline-flex; align-items: center; height: calc(26 * var(--u)); background: var(--gold-dark); color: var(--navy); border-radius: 999px; padding-inline: calc(16 * var(--u)); font-size: max(10px, calc(12 * var(--u))); font-weight: 700; letter-spacing: -.03em; text-transform: uppercase; white-space: nowrap; }
.live { display: flex; align-items: center; gap: calc(6 * var(--u)); font-family: var(--manrope); font-weight: 600; font-size: max(12px, calc(14 * var(--u))); color: #000; white-space: nowrap; }
.live b { font-family: var(--sans); font-weight: 800; font-size: max(13px, calc(16 * var(--u))); }
.live img { width: calc(12 * var(--u)); min-width: 9px; }
.live-dot { flex: none; width: 9px; height: 9px; margin-right: 4px; border-radius: 50%; background: #11b84a; box-shadow: 0 0 0 4px rgba(17, 184, 74, .18); }
/* Market open / closed beside every price table (js/live.js sets it from the trading hours) */
.mkt-status { display: inline-flex; align-items: center; gap: 12px; padding-inline: 4px 10px; color: var(--navy); font-size: max(17px, calc(22 * var(--u))); font-weight: 600; white-space: nowrap; }
.mkt-status i { flex: none; width: 13px; height: 13px; border-radius: 50%; background: #11b84a; box-shadow: 0 0 0 4px rgba(17, 184, 74, .18); }
.mkt-status.is-closed i, .live.is-closed .live-dot { background: #e02424; box-shadow: 0 0 0 4px rgba(224, 36, 36, .2); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: var(--tick-h); z-index: 50; background: var(--navy); transition: box-shadow .25s; }
.nav.is-stuck { box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.nav-row { height: max(72px, calc(100 * var(--u))); display: flex; align-items: center; gap: calc(19 * var(--u)); }
.nav-logo img { width: max(70px, calc(107 * var(--u))); height: auto; }
/* A logo uploaded in Site Settings → Logo: fitted into the design logo's space, whatever its shape */
.nav-logo img.cms-logo { width: auto; max-width: max(170px, calc(300 * var(--u))); height: max(64px, calc(92 * var(--u))); object-fit: contain; object-position: left center; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: calc(30 * var(--u)); }
.nav-links a { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); height: max(34px, calc(40 * var(--u))); border-radius: 999px; color: #fff; font-size: max(13px, calc(18 * var(--u))); font-weight: 500; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--gold); }
/* Figma sets the caret items in Manrope and the rest in DM Sans. */
.nav-links a.has-caret { font-family: var(--manrope); gap: calc(7 * var(--u)); }
.nav-links a.is-active { padding-inline: calc(28 * var(--u)); background: var(--gold); color: var(--navy); font-family: var(--manrope); font-weight: 800; letter-spacing: -.04em; }
.nav-links a.is-active img { filter: brightness(0); }
.nav-links img { width: calc(12 * var(--u)); min-width: 8px; transform: rotate(180deg); }
.market { display: inline-flex; align-items: center; gap: calc(10 * var(--u)); height: max(36px, calc(46 * var(--u))); padding-inline: calc(22 * var(--u)); border: 1px solid #00a835; border-radius: 999px; background: #06ff55; color: #fff; font-family: var(--inter); font-weight: 800; font-size: max(13px, calc(16 * var(--u))); letter-spacing: -.02em; white-space: nowrap; }
.market img { width: calc(13 * var(--u)); min-width: 9px; }
.menu-btn { display: none; }
.mobile-nav[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: calc(840 * var(--u)); color: #fff; overflow: hidden; }
/* Photo box copied from each Figma frame (no overlay in the design); pages override the four values. */
.hero { --hx: 0; --hy: -32; --hw: 2199; --hh: 872; }
.hero-bg { position: absolute; right: calc(var(--hx) * var(--u)); top: calc(var(--hy) * var(--u)); width: calc(var(--hw) * var(--u)); min-width: 100%; max-width: none; height: calc(var(--hh) * var(--u)); object-fit: cover; }
.hero-inner { position: relative; z-index: 2; height: 100%; padding-top: calc(146 * var(--u)); }
.hero h1 { max-width: calc(900 * var(--u)); font-size: calc(100 * var(--u)); font-weight: 700; line-height: 1.08; letter-spacing: calc(-2 * var(--u)); background: linear-gradient(180deg, #ffdb74, #d2a43f); -webkit-background-clip: text; background-clip: text; }
.hero h1 span { display: block; }
/* One gradient runs down the whole heading, as in Figma; the first line is painted white over it. */
.hero h1 .w { color: #fff; -webkit-text-fill-color: #fff; }
.hero h1 .g { max-width: calc(760 * var(--u)); color: transparent; -webkit-text-fill-color: transparent; }
.hero-sub { max-width: calc(668 * var(--u)); margin-top: calc(16 * var(--u)); font-size: max(16px, calc(28 * var(--u))); font-weight: 500; line-height: 1.21; letter-spacing: -.025em; }
.btn-hero { margin-top: calc(31 * var(--u)); height: max(44px, calc(52 * var(--u))); padding-inline: calc(27 * var(--u)); font-size: max(15px, calc(18 * var(--u))); font-weight: 800; letter-spacing: -.03em; color: #0b1118; gap: calc(14 * var(--u)); }
.hero-arrows { position: absolute; right: 0; top: calc(677 * var(--u)); display: flex; gap: calc(6 * var(--u)); }
/* Home hero slider (CMS "More slides"): the slides stack in one grid cell and crossfade; slide 1 keeps the H1, the
   others' headings (.hero-h) look the same. The arrows sit over all of them. */
.hero-slider { display: grid; }
.hero-slider > .hero-slide, .hero-slider > .hero-nav { grid-area: 1 / 1; }
.hero-slide { position: relative; min-height: 100%; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.hero-nav { position: relative; z-index: 3; pointer-events: none; }
.hero-nav .hero-arrows { pointer-events: auto; }
.hero .hero-h { max-width: calc(900 * var(--u)); font-size: calc(100 * var(--u)); font-weight: 700; line-height: 1.08; letter-spacing: calc(-2 * var(--u)); background: linear-gradient(180deg, #ffdb74, #d2a43f); -webkit-background-clip: text; background-clip: text; }
.hero .hero-h span { display: block; }
.hero .hero-h .w { color: #fff; -webkit-text-fill-color: #fff; }
.hero .hero-h .g { max-width: calc(760 * var(--u)); color: transparent; -webkit-text-fill-color: transparent; }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slide.is-active { transition: none; } }

/* ---------- Service cards + price board ---------- */
.quick { position: relative; z-index: 3; display: grid; grid-template-columns: calc(455 * var(--u)) 1fr; gap: calc(21 * var(--u)); margin-top: calc(-103 * var(--u)); }
.qcards { display: grid; gap: calc(20 * var(--u)); }
.qcard { position: relative; isolation: isolate; height: calc(184 * var(--u)); padding: calc(30 * var(--u)) calc(28 * var(--u)) calc(24 * var(--u)); border-radius: 15px; overflow: hidden; color: #fff; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; }
/* Image boxes copied from the Figma masks: each photo is larger than its card and offset. */
.qcard > img { position: absolute; z-index: -2; left: calc(var(--ix) * var(--u)); top: calc(var(--iy) * var(--u)); width: calc(var(--iw) * var(--u)); max-width: none; height: calc(var(--ih) * var(--u)); object-fit: cover; transition: transform .5s ease; }
.qcard:hover > img { transform: scale(1.05); }
.qcard::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.qcard-refine { background: var(--navy); --ix: -5; --iy: -11; --iw: 468; --ih: 289; }
.qcard-buy { background: var(--gold); color: var(--navy); --ix: 8.3; --iy: -60.6; --iw: 543.6; --ih: 335.9; }
.qcard-sell { background: var(--ink); --ix: 33.2; --iy: -64.1; --iw: 598.4; --ih: 336.8; }
.qcard-refine::before { opacity: .91; background: linear-gradient(-90deg, rgba(28, 56, 88, .5) 42.637%, rgb(49, 86, 129) 74.066%); }
.qcard-buy::before { opacity: .97; background: linear-gradient(-90deg, rgba(236, 189, 33, .6) 0%, rgb(227, 180, 27) 61.345%); }
.qcard-sell::before { opacity: .97; background: linear-gradient(-90deg, rgba(22, 34, 48, .7) 0%, rgb(22, 34, 48) 61.345%); }
.qcard h2 { font-size: max(20px, calc(30 * var(--u))); font-weight: 700; line-height: 1.03; letter-spacing: -.05em; }
.chips { display: flex; gap: calc(8.6 * var(--u)); }
.chips li { display: flex; align-items: center; height: max(24px, calc(30 * var(--u))); padding-inline: calc(15 * var(--u)); border-radius: 6px; background: rgba(118, 180, 253, .28); font-size: max(12px, calc(15 * var(--u))); font-weight: 600; white-space: nowrap; }
.qcard-buy .chips li { background: rgba(254, 225, 131, .38); }
.qcard .btn-sm { height: max(30px, calc(36 * var(--u))); padding-inline: calc(19 * var(--u)); gap: calc(6 * var(--u)); }
.qcard .btn-sm img { width: max(7px, calc(8 * var(--u))); }

.board { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(121.2deg, #f2f2f2 1.88%, #dbdbdb 98.98%); padding: calc(37 * var(--u)) calc(31 * var(--u)) calc(34 * var(--u)) calc(42 * var(--u)); }
.board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.board-head h2 { color: var(--navy); font-size: max(22px, calc(32 * var(--u))); font-weight: 800; line-height: calc(29 * var(--u)); letter-spacing: -.04em; }
.board-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px calc(18 * var(--u)); }
.board-head .board-meta .mkt-status { font-family: var(--sans); font-weight: 600; letter-spacing: 0; font-size: max(17px, calc(22 * var(--u))); }
.board-head span { font-family: var(--manrope); font-weight: 800; font-size: max(12px, calc(16 * var(--u))); letter-spacing: .01em; color: var(--navy); }
.board-grid { display: grid; grid-template-columns: 1fr calc(263 * var(--u)) calc(263 * var(--u)) calc(206 * var(--u)); column-gap: calc(17 * var(--u)); margin-top: calc(19 * var(--u)); }
.col-usd, .col-cad { border-radius: 15px; overflow: hidden; }
.col-chg { border-radius: 10px; overflow: hidden; }
.col { display: grid; grid-template-rows: calc(41 * var(--u)) calc(50 * var(--u)) repeat(4, calc(62 * var(--u))); padding-bottom: calc(3 * var(--u)); }
.col-metal { padding-bottom: 0; }
.col-title { display: flex; align-items: center; grid-row: span 2; color: var(--gold); font-weight: 800; font-size: max(20px, calc(34 * var(--u))); letter-spacing: .01em; }
.col-metal .cell { display: flex; align-items: center; font-size: max(14px, calc(22 * var(--u))); font-weight: 500; color: var(--ink-2); }
.col-metal .cell { width: calc(81 * var(--u)); white-space: nowrap; border-top: 1px solid var(--blue); }
.col-head { display: flex; align-items: center; justify-content: center; gap: calc(7 * var(--u)); background: var(--navy); color: #fff; font-weight: 900; font-size: max(13px, calc(18 * var(--u))); letter-spacing: .01em; }
.col-usd .col-head img { width: calc(34 * var(--u)); min-width: 20px; height: auto; }
.col-cad .col-head img { width: calc(30 * var(--u)); min-width: 18px; height: auto; }
.col-chg .col-head { background: var(--blue); font-family: var(--manrope); font-weight: 800; }
.pair { display: grid; grid-template-columns: 1fr 1fr; font-size: max(12px, calc(18 * var(--u))); font-weight: 600; letter-spacing: -.02em; }
.pair span { display: flex; align-items: center; justify-content: flex-end; gap: calc(6 * var(--u)); padding-right: calc(29 * var(--u)); }
.pair-head { font-weight: 800; letter-spacing: -.01em; }
.col-usd .pair { background: var(--blue); color: #fff; }
.col-usd .pair span:last-child { background: var(--blue-2); }
.col-cad .pair { background: var(--gold); color: var(--navy); }
.col-cad .pair span:last-child { background: var(--gold-light); }
.col-usd .pair:not(.pair-head) span:first-child { border-top: 1px solid #24374f; }
.col-usd .pair:not(.pair-head) span:last-child { border-top: 1px solid #2f4560; }
.col-cad .pair:not(.pair-head) span { border-top: 1px solid #816f29; }
.col-chg .pair { background: var(--ink); color: #f00; font-family: var(--manrope); }
.col-chg .pair:not(.pair-head) span { border-top: 1px solid #2e5080; }
.col-chg .pair span:first-child { padding-right: calc(25 * var(--u)); }
.col-chg .pair span:last-child { padding-right: calc(22 * var(--u)); gap: calc(8 * var(--u)); }
.col-chg .pair-head span:first-child { padding-right: calc(36 * var(--u)); }
.col-chg .pair-head span:last-child { padding-right: calc(35 * var(--u)); }
.col-chg img { transform: rotate(180deg); width: calc(13.5 * var(--u)); min-width: 9px; }
/* The % cell holds the arrow and a nested value: only the cell itself takes the row rule and padding (the nested
   value drew stray lines). The ± and % headers and values are centred in two fixed halves (user, Nov 2026). */
.col-chg .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.col-chg .pair > span:is(:first-child, :last-child) { justify-content: center; gap: calc(5 * var(--u)); padding: 0 calc(4 * var(--u)); }
.col-chg .pair span span { border: 0 !important; padding: 0 !important; }
.board-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: auto; margin-left: calc(-10 * var(--u)); padding-top: calc(25 * var(--u)); padding-left: calc(10 * var(--u)); border-top: 1px solid #c1c0c0; }
.board-foot p { display: flex; gap: calc(7 * var(--u)); align-items: flex-start; font-size: max(12px, calc(16 * var(--u))); font-weight: 500; letter-spacing: -.02em; color: var(--navy); line-height: 1.3; }
.board-foot p img { width: calc(12 * var(--u)); min-width: 9px; margin-top: .25em; }
.board-foot a { display: inline-flex; align-items: center; gap: calc(7 * var(--u)); font-weight: 600; color: var(--navy); font-size: max(13px, calc(16 * var(--u))); letter-spacing: -.03em; white-space: nowrap; }
.board-foot a img { width: calc(10.6 * var(--u)); min-width: 8px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr calc(637 * var(--u)); gap: calc(50 * var(--u)); align-items: start; padding-block: calc(140 * var(--u)) calc(150 * var(--u)); }
.kicker { color: var(--gold); font-weight: 900; font-size: max(20px, calc(44 * var(--u))); }
.about h2 { margin-top: calc(14 * var(--u)); color: var(--ink); font-size: max(28px, calc(64 * var(--u))); font-weight: 700; line-height: 1.09; letter-spacing: -.002em; font-optical-sizing: auto; font-variation-settings: normal; /* this heading renders at default optical size in the Figma file */ }
.about-copy > p:not(.kicker) { margin-top: calc(38 * var(--u)); font-size: max(16px, calc(30 * var(--u))); font-weight: 300; line-height: 1.27; letter-spacing: .01em; }
.about-copy .btn { margin-top: calc(40 * var(--u)); }
.about-copy > p:not(.kicker) { max-width: calc(734 * var(--u)); }
.tile-gold span { max-width: calc(275 * var(--u)); }
.tile-navy span { max-width: calc(181 * var(--u)); }
.about-media { display: grid; grid-template-columns: calc(345 * var(--u)) 1fr; gap: calc(25 * var(--u)); }
.about-img { grid-column: 1 / -1; width: 100%; height: calc(530 * var(--u)); object-fit: cover; object-position: 56% 44%; border-radius: 24px; }
.tile { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: calc(134 * var(--u)); padding: calc(20 * var(--u)) calc(30 * var(--u)); border-radius: 24px; }
.tile b { font-size: max(24px, calc(44 * var(--u))); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.tile span { font-size: max(13px, calc(18 * var(--u))); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; }
.tile-gold { background: var(--gold); }
.tile-gold b { color: #fff; }
.tile-gold span { color: #000; }
.tile-navy { background: var(--navy); color: var(--gold); }
.tile-navy span { color: var(--gold); }

/* ---------- Cream band ---------- */
.cream { position: relative; isolation: isolate; padding-bottom: calc(347 * var(--u)); }
.cream::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: calc(505 * var(--u)); bottom: 0; background: var(--cream); }

.refining { display: grid; grid-template-columns: calc(662 * var(--u)) 1fr; height: calc(1000 * var(--u)); border-radius: 24px; overflow: hidden; }
.refining > img { width: 100%; height: 100%; object-fit: cover; object-position: 81.6% 0; }
.refining-copy { display: flex; flex-direction: column; justify-content: center; padding: calc(80 * var(--u)) calc(70 * var(--u)) calc(80 * var(--u)) calc(69 * var(--u)); background: var(--navy); color: #fff; }
.refining h2 { color: var(--gold); font-size: max(30px, calc(74 * var(--u))); font-weight: 700; line-height: .946; letter-spacing: -.02em; max-width: calc(560 * var(--u)); }
.refining h2 + p { margin-top: calc(45 * var(--u)); }
.refining p { margin-top: calc(38 * var(--u)); font-size: max(15px, calc(30 * var(--u))); font-weight: 300; line-height: 1.27; color: #fff; }
.refining .btn { margin-top: calc(45 * var(--u)); align-self: flex-start; }

.feats { padding-top: calc(98 * var(--u)); }
.feat-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc(456.7 * var(--u)); gap: calc(34.3 * var(--u)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.feat-row::-webkit-scrollbar { display: none; }
.feat { scroll-snap-align: start; }
.feat-img { aspect-ratio: 456.7 / 462; border-radius: 24px; }
.feat h3 { margin-top: calc(47 * var(--u)); color: var(--navy); font-size: max(22px, calc(46 * var(--u))); font-weight: 700; line-height: .957; letter-spacing: -.03em; }
.feat p { max-width: calc(420 * var(--u)); margin-top: calc(39 * var(--u)); font-size: max(15px, calc(30 * var(--u))); font-weight: 300; line-height: 1.2; letter-spacing: .01em; }
.row-arrows { display: flex; justify-content: center; gap: calc(12 * var(--u)); margin-top: calc(50 * var(--u)); }

/* ---------- Invest ---------- */
.invest { margin-top: calc(-230 * var(--u)); position: relative; z-index: 2; }
.invest-card { position: relative; isolation: isolate; height: calc(450 * var(--u)); padding: calc(104 * var(--u)) calc(99 * var(--u)) 0; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; background: var(--navy); }
/* Figma frames the photo 1859 x 1239 at (-24, -418) inside the 1440 x 450 card. */
.invest-card > img { position: absolute; left: -1.67%; top: -92.9%; z-index: -2; width: 129.1%; max-width: none; height: 275.3%; object-fit: cover; filter: brightness(.9) contrast(1.25); }
.invest-card::before, .invest-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, #162230 19.772%, rgba(22, 34, 48, .1) 58.75%); }
.invest-card::after { opacity: .5; }
.invest-card::before, .invest-card::after { mix-blend-mode: multiply; }
.invest h2 { max-width: calc(667 * var(--u)); margin-left: calc(2 * var(--u)); color: #fff; font-size: max(24px, calc(50 * var(--u))); font-weight: 900; line-height: 1.08; letter-spacing: -.02em; }
.invest-btns { display: flex; gap: calc(8 * var(--u)); margin-top: calc(27 * var(--u)); }
.btn-inv { gap: calc(9 * var(--u)); height: max(44px, calc(54 * var(--u))); padding-inline: calc(23 * var(--u)); border-radius: 24px; font-family: var(--inter); font-size: max(14px, calc(16 * var(--u))); font-weight: 400; letter-spacing: -.03em; color: #000; }
.btn-inv img { width: auto; height: max(13px, calc(15 * var(--u))); }

/* ---------- Dealer ---------- */
.dealer { padding-top: calc(140 * var(--u)); }
.center-head { text-align: center; max-width: calc(1131 * var(--u)); margin-inline: auto; }
.center-head h2 { color: var(--navy); font-size: max(28px, calc(74 * var(--u))); font-weight: 700; line-height: .946; letter-spacing: -.04em; }
.center-head p { margin-top: calc(30 * var(--u)); font-size: max(16px, calc(30 * var(--u))); font-weight: 300; line-height: 1.167; }
.dealer-body { display: grid; grid-template-columns: calc(735 * var(--u)) calc(5 * var(--u)) 1fr; gap: calc(40 * var(--u)); margin-top: calc(99 * var(--u)); }
.dealer-img { width: 100%; height: calc(864 * var(--u)); object-fit: cover; object-position: 6% 58%; border-radius: 24px; }
.dealer-rule { background: linear-gradient(var(--gold) 0 30%, #d9d9d9 30% 100%); border-radius: 4px; }
.dealer-copy { padding-top: calc(21 * var(--u)); }
.dealer-copy h3 { color: var(--ink); font-size: max(24px, calc(40 * var(--u))); font-weight: 700; }
.dealer-copy > p { margin-top: calc(20 * var(--u)); font-size: max(15px, calc(22 * var(--u))); font-weight: 300; line-height: 1.4; }
.dealer-copy .btn { margin-top: calc(32 * var(--u)); }
.svc-list { margin-top: calc(40 * var(--u)); padding-top: calc(28 * var(--u)); border-top: 1px solid #d9d9d9; max-width: calc(621 * var(--u)); }
.svc-list a { display: flex; align-items: center; justify-content: space-between; min-height: max(36px, calc(46 * var(--u))); color: var(--navy); font-size: max(15px, calc(30 * var(--u))); font-weight: 400; letter-spacing: -.03em; transition: color .2s, padding-left .2s; }
.svc-list a::after { content: "→"; color: var(--gold); opacity: 0; transition: opacity .2s; }
.svc-list a:hover { color: var(--gold-dark); padding-left: 6px; }
.svc-list a:hover::after { opacity: 1; }

/* Auto-advancing service list: js steps the active item on a timer and moves the
   gold segment of the rule to match (--p = 0..1). A click stops the cycle. */
.dealer-track .dealer-rule { position: relative; overflow: hidden; background: #d9d9d9; }
.dealer-rule span { position: absolute; left: 0; right: 0; top: 0; height: 30%; border-radius: 4px; background: var(--gold); transform: translateY(calc(var(--p, 0) * (100% / .3 - 100%))); transition: transform .6s ease; }
.dealer-panels { display: grid; min-height: calc(290 * var(--u)); }
.dealer-panel { grid-area: 1 / 1; }
.dealer-panel:not([hidden]) { animation: panelIn .35s ease both; }
.dealer-panel h3 { color: var(--navy); font-size: max(24px, calc(40 * var(--u))); font-weight: 700; line-height: 1.625; }
.dealer-panel p { margin-top: calc(5 * var(--u)); font-size: max(15px, calc(22 * var(--u))); font-weight: 300; line-height: 1.41; }
.dealer-panel p + p { margin-top: calc(31 * var(--u)); }
.dealer-panel .btn { margin-top: calc(30 * var(--u)); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.svc-tabs { margin-top: calc(38 * var(--u)); padding-top: calc(35 * var(--u)); }
.svc-tabs button { display: flex; align-items: center; width: 100%; min-height: max(36px, calc(46 * var(--u))); padding: 0; border: 0; background: none; color: var(--navy); font-family: inherit; font-size: max(15px, calc(30 * var(--u))); font-weight: 400; letter-spacing: -.03em; text-align: left; transition: color .25s, font-weight .25s; }
.svc-tabs button::before { content: ""; flex: none; width: 0; height: 2px; margin-right: 0; background: var(--gold); transition: width .3s ease, margin-right .3s ease; }
.svc-tabs button:hover { color: var(--gold-dark); }
.svc-tabs button[aria-selected="true"] { color: var(--navy); font-weight: 700; }
.svc-tabs button[aria-selected="true"]::before { width: calc(28 * var(--u)); min-width: 16px; margin-right: calc(14 * var(--u)); }
@media (prefers-reduced-motion: reduce) {
  .dealer-panel:not([hidden]) { animation: none; }
  .dealer-rule span, .svc-tabs button, .svc-tabs button::before { transition: none; }
}

/* ---------- Products ---------- */
.products { padding-top: calc(140 * var(--u)); }
.prod-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.prod-head h2 { color: var(--navy); font-size: max(28px, calc(64 * var(--u))); font-weight: 700; line-height: 1.016; letter-spacing: -.02em; }
.prod-head .btn { gap: calc(25 * var(--u)); padding-inline: calc(27 * var(--u)); }
.prod-head p { margin-top: calc(12 * var(--u)); font-size: max(16px, calc(30 * var(--u))); font-weight: 500; letter-spacing: -.01em; }
.prod-wrap { position: relative; margin-top: calc(64 * var(--u)); }
.prod-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 62 * var(--u)) / 3); gap: calc(31 * var(--u)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 4px 12px; }
.prod-row::-webkit-scrollbar { display: none; }
.circ-side { position: absolute; top: 47%; z-index: 2; translate: 0 -50%; }
.circ-side.circ-prev { left: calc(-32 * var(--u)); }
.circ-side:not(.circ-prev) { right: calc(-32 * var(--u)); }
.circ-side img { width: max(40px, calc(64 * var(--u))); }
.pcard { scroll-snap-align: start; display: flex; flex-direction: column; height: calc(707 * var(--u)); padding: 0 calc(83 * var(--u)) calc(45 * var(--u)); background: #fff; border: .7px solid #d9ad64; border-radius: 20px; transition: box-shadow .25s, transform .25s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22, 34, 48, .12); }
.pcard-img { flex: none; display: grid; place-items: center; height: calc(433 * var(--u)); padding-top: calc(28 * var(--u)); border-bottom: 1px solid #d9ad64; margin-bottom: calc(28 * var(--u)); }
.pcard-img img { max-height: calc(310 * var(--u)); width: auto; }
.pcard-img img.round { max-height: calc(298 * var(--u)); border-radius: 50%; }
/* Figma capitalises every word in the card ("1 Oz", "Pure", "Call For Price"). */
.pcard { text-transform: capitalize; }
.pcard h3 { min-height: calc(48 * var(--u)); color: var(--navy); font-size: max(17px, calc(24 * var(--u))); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.pcard-pure, .pcard-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: calc(18 * var(--u)); font-size: max(13px, calc(16 * var(--u))); font-weight: 300; letter-spacing: .013em; color: #000; white-space: nowrap; }
.pcard-price { margin-top: calc(28 * var(--u)); padding-top: calc(21 * var(--u)); border-top: 1px solid #d9ad64; color: var(--navy); font-size: max(14px, calc(18 * var(--u))); font-weight: 600; letter-spacing: -.02em; }
.purity { display: inline-grid; place-items: center; width: calc(108 * var(--u)); min-width: 76px; height: max(32px, calc(40 * var(--u))); border: .5px solid #000; border-radius: 999px; background: var(--gold); color: #000; font-weight: 400; letter-spacing: 0; }
.purity-pt { background: #d9d9d9; }
.price { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: calc(197 * var(--u)); height: max(36px, calc(44 * var(--u))); padding-inline: 16px; border-radius: 999px; background: var(--navy); color: #ffc300; font-size: max(15px, calc(20 * var(--u))); font-weight: 900; letter-spacing: 0; }
.price-call { letter-spacing: -.03em; }
.price-call img { width: calc(14 * var(--u)); min-width: 11px; }
.pcard-price:has(.price-call) { justify-content: flex-start; }
/* The whole product card opens the product (client, 2026-11-28): the title link covers the card; "Call for price"
   stays its own link on top */
.pcard { position: relative; }
.pcard:has(h3 a) { cursor: pointer; }
.pcard h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pcard .price-call { position: relative; z-index: 2; }
.pcard:hover h3 a { color: var(--gold-dark); }
.pcard h3 a:focus-visible { outline: none; }
.pcard:has(h3 a:focus-visible) { outline: 2px solid var(--gold-dark); outline-offset: 3px; }

/* ---------- Bullion dealer ---------- */
.bdealer { position: relative; isolation: isolate; height: calc(1000 * var(--u)); margin-top: calc(138 * var(--u)); }
.bdealer-photo { position: absolute; right: 0; top: 0; width: calc(888 * var(--u)); height: calc(882 * var(--u)); border-radius: 24px; }
.bdealer-card { position: absolute; left: 0; top: calc(117 * var(--u)); width: calc(791 * var(--u)); min-height: calc(648 * var(--u)); padding: calc(97 * var(--u)) calc(88 * var(--u)) calc(98 * var(--u)); border-radius: 24px; color: #fff; }
/* Figma multiplies the navy panel over the photo where they overlap; the text stays on top unblended. */
.bdealer-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--navy); opacity: .98; mix-blend-mode: multiply; }
.bdealer h2 { color: var(--gold); font-size: max(32px, calc(74 * var(--u))); font-weight: 600; line-height: 1.108; letter-spacing: -.02em; }
.bdealer p { margin-top: calc(8 * var(--u)); font-size: max(16px, calc(32 * var(--u))); line-height: 1.219; letter-spacing: -.04em; color: #fff; }
.bdealer p + p { margin-top: calc(39 * var(--u)); }
.bdealer-card > * { position: relative; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: calc(560 * var(--u)) 1fr; gap: calc(55 * var(--u)); padding-block: calc(22 * var(--u)) calc(141 * var(--u)); }
.faq h2 { color: var(--gold); font-size: max(30px, calc(64 * var(--u))); font-weight: 700; line-height: .94; letter-spacing: -.04em; }
.faq header p { margin-top: calc(20 * var(--u)); color: var(--navy); font-size: max(16px, calc(24 * var(--u))); font-weight: 600; }
.faq-list { border-top: 1px solid #d0d0d0; }
.faq-list details { border-bottom: 1px solid #d0d0d0; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: calc(74 * var(--u)); padding-block: calc(18 * var(--u)); color: var(--navy); font-size: max(16px, calc(24 * var(--u))); font-weight: 400; letter-spacing: -.01em; list-style: none; cursor: pointer; }
.faq-list summary { line-height: 1.08; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { flex: none; color: var(--navy); font-size: max(24px, calc(34 * var(--u))); font-weight: 400; line-height: 1; transition: transform .25s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--gold-dark); }
.faq-list details p { padding: 0 calc(60 * var(--u)) calc(24 * var(--u)) 0; font-size: max(15px, calc(20 * var(--u))); line-height: 1.6; }

/* ---------- Contact ---------- */
.contact { position: relative; z-index: 2; }
.contact-card { display: grid; grid-template-columns: calc(777 * var(--u)) 1fr; min-height: calc(768 * var(--u)); border-radius: 24px; overflow: hidden; }
.contact-info { padding: calc(82 * var(--u)) calc(80 * var(--u)) calc(59 * var(--u)) calc(83 * var(--u)); background: var(--gold); color: var(--navy); }
.contact h2 { font-size: max(28px, calc(68 * var(--u))); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.contact-dl { display: grid; grid-template-columns: calc(388 * var(--u)) 1fr; gap: calc(29 * var(--u)) 0; margin-top: calc(47 * var(--u)); padding-block: calc(47 * var(--u)) calc(48 * var(--u)); border-block: 1px solid rgba(22, 34, 48, .35); }
.contact-dl dt { display: flex; align-items: center; gap: calc(10 * var(--u)); font-weight: 900; font-size: max(15px, calc(22 * var(--u))); letter-spacing: -.02em; }
.contact-dl dt img { width: calc(16 * var(--u)); min-width: 12px; height: auto; }
.contact-dl dd { margin-top: calc(11 * var(--u)); font-weight: 600; font-size: max(14px, calc(20 * var(--u))); line-height: 1.1; letter-spacing: -.02em; }
.contact-dl > div:nth-child(3) dd { line-height: 1.7; margin-top: calc(4 * var(--u)); }
/* Figma capitalises the labels and values here, except the email address. */
.contact-dl { text-transform: capitalize; }
.contact-dl > div:nth-child(4) dd { text-transform: none; }
.contact-dl > div:first-child dd { max-width: calc(270 * var(--u)); }
.contact-dl a:hover { text-decoration: underline; }
.contact-btns { display: flex; gap: calc(13 * var(--u)); margin-top: calc(40 * var(--u)); }
.contact-btns .btn { gap: calc(8 * var(--u)); padding-inline: calc(31 * var(--u)); }
.contact-btns img { width: max(14px, calc(16 * var(--u))); }
.contact-map { position: relative; }
.contact-map > img { width: 100%; height: 100%; object-fit: cover; object-position: 51% 47%; }
.map-card { position: absolute; left: calc(20 * var(--u)); top: calc(24.6 * var(--u)); width: max(240px, calc(300 * var(--u))); padding: calc(18 * var(--u)) calc(28 * var(--u)) calc(20 * var(--u)); display: flex; flex-direction: column; align-items: flex-start; background: #fff; border: .7px solid #9e9e9e; border-radius: 20px; font-family: var(--manrope); font-weight: 500; font-size: max(13px, calc(16 * var(--u))); line-height: 1.25; letter-spacing: -.01em; color: #9e9e9e; }
.map-card b { font-size: max(16px, calc(20 * var(--u))); font-weight: 600; line-height: 1.65; color: var(--navy); }
.map-card > span:not(.rating) { margin-top: calc(3 * var(--u)); }
.rating { display: flex; align-items: center; gap: 4px; margin-top: calc(9 * var(--u)); }
.rating a { color: #1a73e8; }
.dir { display: inline-flex; align-items: center; gap: 8px; margin-top: calc(13 * var(--u)); height: max(36px, calc(41 * var(--u))); padding: 0 calc(6 * var(--u)) 0 calc(14 * var(--u)); border-radius: 999px; background: #1a73e8; color: #fff; font-weight: 600; font-size: max(12px, calc(13 * var(--u))); letter-spacing: -.02em; }
.dir img { width: max(24px, calc(29 * var(--u))); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #fff; margin-top: calc(-270 * var(--u)); padding-top: calc(336 * var(--u)); }
.foot-grid { display: grid; grid-template-columns: calc(272 * var(--u)) calc(269 * var(--u)) calc(306 * var(--u)) 1fr auto; padding-bottom: calc(75 * var(--u)); }
.foot-grid h2 { color: var(--gold); font-size: max(20px, calc(34 * var(--u))); font-weight: 900; line-height: 1.3; letter-spacing: -.03em; }
.foot-grid ul { margin-top: calc(26 * var(--u)); display: grid; }
.foot-grid a { color: #fff; font-size: max(14px, calc(20 * var(--u))); font-weight: 500; line-height: 1.65; transition: color .2s; }
.foot-grid a:hover { color: var(--gold); }
.foot-logo { justify-self: end; align-self: start; width: calc(305 * var(--u)); min-width: 160px; }
.foot-logo.cms-logo { width: auto; max-width: max(160px, calc(305 * var(--u))); height: max(120px, calc(228 * var(--u))); object-fit: contain; object-position: right top; }
.foot-bar { background: var(--cream); color: var(--navy); }
.foot-bar-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; min-height: calc(99 * var(--u)); padding-block: calc(26 * var(--u)) 16px; font-size: max(12px, calc(15 * var(--u))); line-height: 1.33; }
/* Figma sets the legal line in lowercase */
.foot-bar-row > p:first-child { padding-top: calc(3 * var(--u)); text-transform: lowercase; letter-spacing: -.04em; }
.foot-right { text-align: right; line-height: 1.53; letter-spacing: -.03em; }
.copy { color: var(--gold); }
.foot-right a { text-decoration: underline; margin-left: 10px; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1024px) {
  :root { --u: calc(100vw / 1100); }
  .wrap { width: auto; margin-inline: 16px; }
  .ticker-list { gap: 14px; font-size: 12px; }
  .ticker-list li:nth-child(n+3) { display: none; }
  .cad-pill, .live span { display: none; }
  /* The desktop menu hides on phones; the phone menu (also a <nav>) must not */
  .nav nav:not(.mobile-nav), .market { display: none; }
  .nav-row { height: 72px; }
  .menu-btn { display: grid; gap: 5px; margin-left: auto; padding: 12px; border: 0; background: none; }
  .menu-btn span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; }
  .mobile-nav { display: grid; padding: 8px 16px 18px; border-top: 1px solid rgba(255, 255, 255, .1); max-height: calc(100dvh - var(--tick-h) - 72px); overflow-y: auto; overscroll-behavior: contain; }
  .mobile-nav a { padding: 12px 0; color: #fff; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .08); }

  .hero { height: auto; margin-top: 0; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11, 17, 24, .7), rgba(11, 17, 24, .45)); }
  .hero-bg { top: 0; width: 100%; height: 100%; }
  .hero-inner { padding: 64px 0 110px; }
  .hero h1 { font-size: clamp(40px, 9vw, 64px); }
  .hero h1 .g { max-width: none; }
  .hero .hero-h { font-size: clamp(40px, 9vw, 64px); }
  .hero .hero-h .g { max-width: none; }
  .hero-arrows { display: none; }

  .quick { grid-template-columns: 1fr; margin-top: -60px; gap: 20px; }
  .qcard { height: auto; min-height: 170px; gap: 14px; }
  .qcard > img { inset: 0; width: 100%; height: 100%; }
  .chips { flex-wrap: wrap; }
  .col-metal .cell { width: auto; }
  .pair span { padding-right: 12px; }
  .col-chg .pair span:last-child, .col-chg .pair-head span:last-child { padding-right: 12px; }
  .board { padding: 20px 16px; }
  .board-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .board-head h2 { line-height: 1.05; }
  .tile span, .feat p, .about-copy > p:not(.kicker), .contact-dl > div:first-child dd { max-width: none; }
  /* Smaller screens: every column of the desktop board, USD and CAD (client, Nov 2026). Where it doesn't fit (phones),
     the table swipes sideways and the metal names stay in view on the left */
  .quick > *, .board { min-width: 0; }
  .board-grid { min-width: 0; grid-template-columns: 84px 172px 172px 92px; column-gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 6px; }
  .col { grid-template-rows: 44px 30px repeat(4, 48px); }
  .col-metal { position: sticky; left: 0; z-index: 2; background: #ebebeb; box-shadow: 6px 0 8px -6px rgba(22, 34, 48, .25); }
  .col-title { font-size: 20px; }
  .col-metal .cell { font-size: 14px; }
  .pair { font-size: 13px; }
  .col-chg .pair span:first-child { display: none; }
  .col-chg .pair { grid-template-columns: 1fr; }
  .board-foot { flex-direction: column; align-items: flex-start; }

  .about { grid-template-columns: 1fr; gap: 40px; padding-block: 72px; }
  .about-img { height: auto; aspect-ratio: 1; }
  .about-media { grid-template-columns: 1fr 1fr; gap: 12px; }

  .cream::before { top: 360px; }
  .refining { grid-template-columns: 1fr; height: auto; border-radius: 20px; }
  .refining > img { height: 300px; }
  .refining-copy { padding: 36px 22px; }
  .feats { padding-top: 56px; }
  .feat-row { grid-auto-columns: 78%; gap: 16px; }
  .row-arrows { margin-top: 28px; }

  .invest { margin-top: -60px; }
  .invest-card { height: auto; padding: 40px 22px; }
  .invest-card > img { inset: 0; width: 100%; height: 100%; }
  .invest-card::before { background: linear-gradient(180deg, rgba(22, 34, 48, .9), rgba(22, 34, 48, .55)); }
  .invest-card::after { display: none; }
  .cream { padding-bottom: 120px; }
  .invest-btns { flex-wrap: wrap; }
  .invest h2 br { display: none; }

  .dealer { padding-top: 80px; }
  .dealer-body { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .dealer-img { height: auto; aspect-ratio: 4 / 3; }
  .dealer-rule { display: none; }
  .dealer-panels { min-height: 0; }
  .svc-list { max-width: none; }

  .products { padding-top: 80px; }
  .prod-head { flex-direction: column; align-items: flex-start; }
  .prod-row { grid-auto-columns: 82%; gap: 16px; }
  .pcard { height: auto; padding: 20px; }
  .pcard-img { height: auto; padding-block: 20px; }
  .pcard-img img { max-height: 260px; }
  .circ-side { display: none; }

  .bdealer { height: auto; margin-top: 80px; }
  .bdealer-photo { position: relative; width: 100%; height: 320px; }
  .bdealer-card { position: relative; width: auto; min-height: 0; top: 0; margin: -60px 12px 0; padding: 32px 22px; }

  .faq { grid-template-columns: 1fr; gap: 24px; padding-block: 80px; }
  .faq-list details p { padding-right: 0; }

  .contact-card { grid-template-columns: 1fr; }
  .contact-info { padding: 40px 22px; }
  .contact-dl { grid-template-columns: 1fr; }
  .contact-btns { flex-wrap: wrap; }
  .contact-map { height: 380px; }
  .map-card { left: 16px; top: 16px; }

  .footer { margin-top: -140px; padding-top: 196px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; padding-bottom: 48px; }
  .foot-logo { grid-column: 1 / -1; justify-self: start; }
  .foot-logo.cms-logo { object-position: left top; }
  .foot-bar-row { flex-direction: column; align-items: flex-start; }
  .foot-right { text-align: left; }
}

/* Live prices (js/live.js): a rising change turns green; the design only showed falling (red) values */
.ticker-list [data-dir].is-up { color: #0b6b2a; }
.col-chg .pair.is-up { color: #06ff55; }
.col-chg .pair.is-up img { transform: none; }

/* "MARKET CLOSED" is longer than "LIVE": on a narrow phone the bar keeps Gold and the market status, not Silver */
@media (max-width: 480px) {
  .ticker:has(.live.is-closed) .ticker-list li:nth-child(2) { display: none; }
}

/* Staff signed in to the CMS: a navy strip above the price bar with their name and Edit / Settings / Log out
   (js/main.js). Visitors never get it. */
.staff-strip { background: var(--navy); color: #fff; }
.staff-row { display: flex; justify-content: flex-end; align-items: center; min-height: 40px; }
.staff-bar { display: flex; align-items: center; gap: 10px; }
.staff-name { display: inline-flex; align-items: center; gap: 7px; margin-right: 6px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.staff-name span { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.staff-name img { width: 20px; height: 20px; filter: invert(1); }
.staff-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--gold); cursor: pointer; transition: transform .15s; }
.staff-btn:hover { transform: scale(1.08); }
.staff-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.staff-btn img { width: 15px; height: 15px; }
.staff-out { background: rgba(255, 255, 255, .14); }
.staff-out img { filter: invert(1); }
@media (max-width: 480px) { .staff-name span { max-width: 150px; } }
