/* CopperStocks. Copper and its patina: polished copper for the one thing that
   matters most (the price), oxidised verdigris for the ground it sits on.
   Copper marks Prices & Markets, verdigris Mines & Projects, ink Producers. */

:root {
  --page: #edf2f0;
  --card: #ffffff;
  --ink: #10211f;
  --ink-2: #34514c;
  --muted: #5f756f;
  --rule: #d3dfdb;
  --copper: #b85d2c;
  --copper-hi: #e9965c;
  --copper-lo: #7a3412;
  --copper-text: #9a4a1f;
  --copper-tint: #f7e6da;
  --verdigris: #2f8a76;
  --verdigris-tint: #d9eee8;
  --patina: #0d2422;
  --patina-2: #153a35;
  --band-ink: #e6f0ed;
  --band-muted: #8fb1a9;
  --down: #c8432f;
  --shadow: 0 1px 2px rgb(13 36 34 / .06), 0 8px 24px -12px rgb(13 36 34 / .18);
  --head: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ui: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --brand: "Archivo", "Arial Narrow", Arial, sans-serif;
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0a1615; --card: #11201e; --ink: #e6efec; --ink-2: #b7cac4; --muted: #84a29b; --rule: #213d38;
    --copper: #e9965c; --copper-hi: #f2b07e; --copper-lo: #b85d2c; --copper-text: #f0a56f; --copper-tint: #2a1b12;
    --verdigris: #5cc3aa; --verdigris-tint: #123430; --shadow: 0 1px 2px rgb(0 0 0 / .4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0a1615; --card: #11201e; --ink: #e6efec; --ink-2: #b7cac4; --muted: #84a29b; --rule: #213d38;
  --copper: #e9965c; --copper-hi: #f2b07e; --copper-lo: #b85d2c; --copper-text: #f0a56f; --copper-tint: #2a1b12;
  --verdigris: #5cc3aa; --verdigris-tint: #123430; --shadow: 0 1px 2px rgb(0 0 0 / .4); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15.5px/1.55 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }
.wrap { max-width: 1260px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 700px) { .wrap { padding-left: 24px; padding-right: 24px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* --- TradingView embeds ---------------------------------------------------- */
.tv { position: relative; min-width: 0; }
.tv > script { display: none; }
.tv-wait { margin: 0; padding: 14px 0; font-size: 13px; color: var(--band-muted); }
.tv.is-live .tv-wait { display: none; }
.tv-credit { margin: 4px 0 0; font-size: 11px; text-align: right; opacity: .7; }
.tv-credit a:hover { text-decoration: underline; }
.tradingview-widget-container, .tradingview-widget-container__widget { width: 100%; }

/* --- ticker tape --------------------------------------------------------- */
.tape { background: var(--patina); color: var(--band-muted); min-height: 46px; border-bottom: 1px solid rgb(233 150 92 / .25); }
.tape .tv-wait { padding: 13px 24px; }
.tape .tv-credit { display: none; } /* the tape carries TradingView's own credit link */
.tape .tradingview-widget-container { height: 46px; }

/* --- masthead ------------------------------------------------------------ */
.masthead { background: var(--card); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.mast-in { display: flex; align-items: center; gap: 12px 28px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.lm-t { fill: #fff; font: 800 18.5px var(--brand); }
.lm-n { fill: #fff; font: 700 7px var(--brand); opacity: .85; }
.logo-word { font: 850 28px/1 var(--brand); font-stretch: 72%; letter-spacing: -.005em; text-transform: uppercase; color: var(--ink); }
.logo-word b { color: var(--copper); font-weight: 850; }
.logo-word i { font-style: normal; font-weight: 600; font-size: .5em; font-stretch: 100%; color: var(--muted); text-transform: lowercase; margin-left: 2px; }
.nav { display: flex; gap: 2px; margin-left: auto; font: 600 14.5px var(--ui); overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 999px; white-space: nowrap; color: var(--ink-2); }
.nav a:hover { color: var(--ink); background: var(--page); }
.nav a[aria-current="page"] { color: var(--copper-text); background: var(--copper-tint); }
.theme-btn { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; }
.theme-btn:hover { color: var(--copper); border-color: var(--copper); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

/* --- the desk: copper plate + chart -------------------------------------- */
.desk { position: relative; background:
    radial-gradient(900px 420px at 18% -10%, rgb(233 150 92 / .22), transparent 60%),
    radial-gradient(700px 380px at 95% 120%, rgb(63 158 138 / .28), transparent 65%),
    var(--patina);
  color: var(--band-ink); overflow: hidden; }
.desk::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 90%); }
.desk-in { position: relative; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; padding-block: 32px 36px; align-items: stretch; }

.plate { display: flex; flex-direction: column; gap: 14px; }
.plate-face { position: relative; overflow: hidden; border-radius: 14px; padding: 18px 16px 16px; color: #fff;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / .05) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, #f2b07e 0%, #c96a35 28%, #8f4019 62%, #b85d2c 82%, #e9965c 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), inset 0 -2px 0 rgb(0 0 0 / .18), 0 24px 48px -20px rgb(0 0 0 / .6); }
.plate-face::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .38) 50%, transparent 65%);
  transform: translateX(-120%); animation: sheen 1.6s .4s cubic-bezier(.3,.6,.3,1) 1 forwards; }
@keyframes sheen { to { transform: translateX(120%); } }
.plate-top { display: flex; align-items: center; gap: 14px; }
.el { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 8px; border: 1.5px solid rgb(255 255 255 / .55);
  font: 800 26px/1 var(--brand); position: relative; text-shadow: 0 1px 0 rgb(0 0 0 / .2); }
.el small { position: absolute; top: 4px; right: 5px; font-size: 9.5px; font-weight: 700; }
.plate-name { font: 750 22px/1.05 var(--brand); font-stretch: 80%; }
.plate-name small { font: 500 12.5px var(--ui); opacity: .85; }
.plate .tv { min-height: 190px; }
/* The live quote sits in a dark inset, like a screen set into the copper plate:
   TradingView draws its numbers in white or price colours, which need a dark ground. */
.plate-screen { margin-top: 16px; padding: 8px 10px 4px; border-radius: 10px; background: #0a1d1b;
  box-shadow: inset 0 2px 8px rgb(0 0 0 / .55), 0 1px 0 rgb(255 255 255 / .35); }
.plate-screen .tv-credit { color: var(--band-muted); }
.plate .tv-wait { color: var(--band-muted); }

.plate-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--band-muted); }

.desk-chart { min-height: 470px; border-radius: 14px; background: #0a1d1b; border: 1px solid rgb(255 255 255 / .07); padding: 8px; display: flex; flex-direction: column; }
.desk-chart .tradingview-widget-container { flex: 1; height: 450px; }
.desk-chart .tradingview-widget-container__widget { height: 100%; }
.desk-chart .tv-wait { padding: 16px; }
.desk-chart .tv-credit { color: var(--band-muted); padding: 0 6px 2px; }
.desk-compact .desk-in { padding-top: 24px; }

/* --- photo frames and logo chips ----------------------------------------- */
.ph { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--copper-lo), var(--copper)); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a:hover .ph img { transform: scale(1.03); }
.ph.tile { display: grid; place-items: center; background: var(--copper-tint); }
.lt { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: #fff; color: var(--ink);
  font: 800 11px var(--brand); font-stretch: 85%; letter-spacing: .02em; box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.lt img { position: static; width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.lt.mono { background: linear-gradient(140deg, var(--copper-hi), var(--copper-lo)); color: #fff; box-shadow: none; }
.lt-lg { width: 72px; height: 72px; font-size: 16px; border-radius: 12px; }
.lt-lg img { padding: 9px; }

/* --- top story + just in -------------------------------------------------- */
.note { margin-top: 28px; padding: 20px 24px; background: var(--card); border-radius: var(--r); border-left: 4px solid var(--copper); box-shadow: var(--shadow); }
.note time { margin-left: 10px; font-size: 13px; color: var(--muted); }
.note h2 { margin: 6px 0 8px; font: 600 25px/1.2 var(--head); }
.note p { margin: 0 0 8px; max-width: 68ch; color: var(--ink-2); }

.top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 36px; padding-block: 36px 12px; }
.kicker { display: inline-block; font: 700 13px var(--ui); color: var(--copper-text); }
.lead { position: relative; min-width: 0; }
.lead > a { display: block; position: relative; border-radius: var(--r); overflow: hidden; }
.lead-img { aspect-ratio: 16 / 9; }
.lead-over { position: absolute; inset: auto 0 0 0; padding: 120px 30px 26px; color: #fff;
  background: linear-gradient(to top, rgb(9 26 24 / .95) 0%, rgb(9 26 24 / .7) 45%, transparent 100%); }
.lead-over .kicker { color: #fff; background: var(--copper); padding: 3px 9px; border-radius: 999px; font-size: 12.5px; }
.lead h1 { margin: 12px 0 8px; font: 600 clamp(27px, 3.2vw, 42px)/1.08 var(--head); text-wrap: balance; letter-spacing: -.012em; }
.lead-over p { margin: 0; max-width: 60ch; font-size: 16px; color: rgb(255 255 255 / .88); }
.lead-meta { padding-top: 10px; }
.lead-text { align-self: start; display: flex; gap: 22px; align-items: flex-start; padding: 28px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.lead-text > a.lead-chip { display: block; flex: none; }
.lead-text h1 a:hover { color: var(--copper-text); }
.lead-text .dek { max-width: 60ch; font-size: 16.5px; }

.featured { min-width: 0; }
.featured h2, .box h2, .wire-head h2 { margin: 0; font: 800 26px/1.1 var(--brand); font-stretch: 75%; letter-spacing: -.005em; }
.featured h2 { padding-bottom: 6px; }
.row { display: flex; gap: 14px; align-items: flex-start; padding-block: 14px; border-bottom: 1px solid var(--rule); min-width: 0; }
.row h3 { margin: 0; font: 600 17.5px/1.25 var(--head); text-wrap: pretty; }
.row h3 a:hover { color: var(--copper-text); }
.row .lt { width: 40px; height: 40px; }

/* new-since-last-visit marker */
.is-new h3::before, .lead.is-new h1::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--copper); vertical-align: .18em; box-shadow: 0 0 0 4px var(--copper-tint); }

/* --- meta row ------------------------------------------------------------ */
.meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.via { opacity: .85; }
.tk { font: 700 11.5px var(--brand); font-stretch: 88%; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--copper-text); background: var(--copper-tint); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.dek { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }

/* --- layout -------------------------------------------------------------- */
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-block: 28px 56px; }
.main { min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.rail { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* --- the wire ------------------------------------------------------------ */
.wire { min-width: 0; }
.wire-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-bottom: 14px; }
.wire-head .count { font-size: 13.5px; color: var(--muted); }
.find { position: relative; flex: 1 1 260px; max-width: 360px; }
.find svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.find input { width: 100%; font: 15px var(--ui); padding: 10px 14px 10px 38px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--ink); }
.find input:focus { border-color: var(--copper); outline: none; box-shadow: 0 0 0 3px var(--copper-tint); }

.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin-bottom: 8px; background: var(--card); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font: 600 14px var(--ui); color: var(--ink-2); white-space: nowrap; }
.tabs a span { font: 700 11.5px var(--brand); padding: 1px 7px; border-radius: 999px; background: var(--page); color: var(--muted); }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-selected="true"] { background: var(--ink); color: var(--card); }
.tabs a[aria-selected="true"] span { background: rgb(255 255 255 / .16); color: inherit; }
.tabs a[data-filter="markets"][aria-selected="true"] { background: var(--copper); color: #fff; }
.tabs a[data-filter="projects"][aria-selected="true"] { background: var(--verdigris); color: #fff; }

.wire-new { margin: 8px 0 0; padding: 10px 14px; border-radius: 8px; background: var(--copper-tint); color: var(--copper-text); font-weight: 600; font-size: 14px; }
.wire-list { display: flex; flex-direction: column; }
.w { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.th { display: block; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; }
.th .ph { width: 100%; height: 100%; }
.th-chip { display: grid; place-items: center; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }
.th-chip .lt { width: 52px; height: 52px; box-shadow: none; }
.w h3 { margin: 0; font: 600 19px/1.25 var(--head); text-wrap: pretty; }
.w h3 a:hover { color: var(--copper-text); }
.w .dek { font-size: 14.5px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; }
.w-meta .meta { margin-top: 0; }
.tag { font: 700 12px var(--ui); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.tag-markets { background: var(--copper-tint); color: var(--copper-text); }
.tag-projects { background: var(--verdigris-tint); color: var(--verdigris); }
.tag-producers { box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); }
.tag:hover { filter: brightness(.95); text-decoration: underline; }
.wire-empty { padding: 28px 0; color: var(--ink-2); }
.wire-empty button, .more { font: 600 14px var(--ui); color: var(--copper-text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.more { display: block; width: 100%; margin-top: 20px; padding: 13px; border-radius: 999px; text-decoration: none; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }
.more:hover { box-shadow: inset 0 0 0 1px var(--copper); }

/* --- rail boxes ---------------------------------------------------------- */
.box { background: var(--card); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.box h2 { font-size: 22px; margin-bottom: 12px; }
.box > p { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; }
.watch { padding-bottom: 12px; }
.watch-tv { min-height: 560px; }
.watch .tv-wait { color: var(--muted); }
.watch .tv-credit { color: var(--muted); }
.cos { list-style: none; margin: 0; padding: 0; }
.cos li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block: 10px; border-top: 1px solid var(--rule); font-weight: 600; font-size: 14.5px; }
.cos li:first-child { border-top: 0; padding-top: 0; }
.cos a:hover { color: var(--copper-text); }

.conv { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; }
.conv label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); min-width: 0; }
.conv input { width: 100%; font: 700 20px var(--brand); font-stretch: 90%; font-variant-numeric: tabular-nums; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--page); color: var(--ink); }
.conv input:focus { border-color: var(--copper); outline: none; box-shadow: 0 0 0 3px var(--copper-tint); }
.conv-eq { padding-bottom: 12px; font: 700 18px var(--brand); color: var(--muted); }

.element { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 18px; align-items: start;
  background: linear-gradient(160deg, var(--verdigris-tint), var(--card) 60%); }
.el-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 10px; color: #fff;
  font: 800 34px/1 var(--brand); background: linear-gradient(140deg, #f2b07e, #b85d2c 55%, #7a3412); box-shadow: inset 0 1px 0 rgb(255 255 255 / .4); }
.el-tile small { position: absolute; top: 6px; left: 8px; font-size: 11px; }
.el-tile span { font: 600 10.5px var(--ui); margin-top: 4px; opacity: .9; }
.element dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; font-size: 13.5px; }
.element dt { color: var(--muted); }
.element dd { margin: 0; font-weight: 600; }
.el-where { grid-column: 1 / -1; margin: 14px 0 0; font-size: 13.5px; color: var(--ink-2); }

.signup { display: flex; gap: 8px; }
.signup input { flex: 1; min-width: 0; font: 15px var(--ui); padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--page); color: var(--ink); }
.signup button { font: 700 14px var(--ui); background: var(--copper); color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; cursor: pointer; }
.signup button:hover { background: var(--copper-lo); }
.signup-msg { margin: 0 !important; font-weight: 600; color: var(--ink) !important; }

/* --- section and company pages ------------------------------------------- */
.sec-hero { background: var(--patina); color: var(--band-ink); padding-block: 34px 30px; position: relative; overflow: hidden; }
.sec-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--copper-hi), var(--copper-lo)); }
.sec-hero.sec-projects::after { background: linear-gradient(90deg, #5cc3aa, #1f6a5a); }
.sec-hero.sec-producers::after { background: linear-gradient(90deg, #8fb1a9, #34514c); }
.sec-hero h1 { margin: 6px 0 6px; font: 850 clamp(36px, 5vw, 60px)/1 var(--brand); font-stretch: 72%; letter-spacing: -.01em; }
.crumb { margin: 0; font-size: 13px; color: var(--band-muted); }
.crumb a:hover { color: var(--band-ink); text-decoration: underline; }
.sec-standfirst { margin: 0; max-width: 62ch; color: var(--band-muted); font-size: 16px; }
.sec-markets + .desk { padding-top: 0; }

/* Company pages still use these. */
.sec { display: flex; flex-direction: column; gap: 18px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 4px; }
.sec-head h2 { margin: 0; font: 800 26px/1.1 var(--brand); font-stretch: 75%; }
.sec-head span { font-size: 13px; color: var(--muted); }
.latest { list-style: none; margin: 0; padding: 0; }
.latest li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding-block: 12px; border-top: 1px solid var(--rule); font: 600 16px/1.3 var(--head); }
.latest li:first-child { border-top: 0; }
.latest time { font: 600 12px/1.7 var(--ui); color: var(--muted); }
.latest a:hover { color: var(--copper-text); }
.sp-tag { font: 700 11px var(--ui); color: var(--copper-text); border: 1px solid currentColor; padding: 1px 7px; border-radius: 999px; }
.disclose { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

/* --- footer -------------------------------------------------------------- */
.foot { background: var(--patina); color: var(--band-muted); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; padding-block: 40px 32px; }
.foot .logo-word { font-size: 24px; color: var(--band-ink); }
.foot .logo-word b { color: #e9965c; }
.foot .logo-word i { color: var(--band-muted); }
.foot-brand p { margin: 10px 0 0; font-size: 14px; max-width: 56ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; font-size: 14.5px; color: var(--band-ink); align-items: flex-start; }
.foot nav a:hover { color: #e9965c; }
.legal { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .1); font-size: 12.5px; }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .desk-in { grid-template-columns: 300px minmax(0, 1fr); }
  .columns { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
}
@media (max-width: 900px) {
  .mast-in { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; margin-left: -12px; }
  .theme-btn { margin-left: auto; }
  .desk-in { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 22px 26px; }
  .desk-chart { min-height: 360px; }
  .desk-chart .tradingview-widget-container { height: 340px; }
  .top { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; }
  .columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .masthead { position: static; }
  .logo-word { font-size: 24px; }
  .logo-mark { width: 34px; height: 34px; }
  .lead-img { aspect-ratio: 4 / 5; }
  .lead-over { padding: 80px 18px 18px; }
  .lead-over p { font-size: 14.5px; }
  .lead-text { padding: 20px; gap: 14px; }
  .lt-lg { width: 52px; height: 52px; }
  .w { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .th { width: 56px; height: 56px; }
  .th-chip .lt { width: 40px; height: 40px; }
  .w h3 { font-size: 17px; }
  .find { max-width: none; flex-basis: 100%; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .plate-face::after { animation: none; }
  .ph img { transition: none; }
}
.tk-band { background: rgb(233 150 92 / .18); color: #f2b07e; font-size: 13px; padding: 3px 10px; }
.sec-hero .disclose { color: var(--band-muted); }
/* An iframe whose color-scheme differs from its parent's is painted opaque.
   TradingView's documents are light-scheme, so match them to keep the
   embeds transparent in dark mode. */
.tv iframe { color-scheme: light; }

/* --- article pages ------------------------------------------------------- */
.story-cols { padding-top: 28px; }
.story { min-width: 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 44px); }
.story-crumb { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); }
.story-crumb a:hover { color: var(--copper-text); text-decoration: underline; }
.story-head, .story-quotes, .story-body, .story-source, .story-fig { max-width: 720px; }
.story-head { padding-bottom: 20px; }
.story-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; }
.story-kind { font: 700 13px var(--ui); color: var(--verdigris); }
.story h1 { margin: 0 0 14px; font-family: var(--head); font-weight: 600; letter-spacing: -.012em; line-height: 1.12; text-wrap: balance; }
.story h1.h-short { font-size: clamp(30px, 3.6vw, 44px); }
.story h1.h-mid { font-size: clamp(27px, 3vw, 36px); }
.story h1.h-long { font-size: clamp(24px, 2.5vw, 30px); line-height: 1.18; }
.story-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 14px; color: var(--muted); }
.story-meta span::before { content: "via "; }
.story-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; padding: 14px 0 18px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.story-quotes .tv { min-height: 72px; border-radius: 8px; background: var(--page); padding: 4px 6px 0; }
.story-quotes .tv-wait { padding: 8px 6px; color: var(--muted); font-size: 12.5px; }
.story-quotes .tv-credit { display: none; } /* each quote carries TradingView's mark; the panel in the rail carries the credit line */
.story-stock .tv { min-height: 380px; }
.story-stock .tv-wait, .story-stock .tv-credit { color: var(--muted); }
.stock-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.story-fig { margin: 24px 0 0; border-radius: 10px; overflow: hidden; }
.story-fig img { display: block; width: 100%; height: auto; }
.story-body { padding-top: 24px; font: 400 18px/1.65 var(--head); color: var(--ink); overflow-wrap: anywhere; }
.story-body p { margin: 0 0 1.05em; }
.story-body h2, .story-body h3, .story-body h4 { margin: 1.6em 0 .5em; font: 800 22px/1.2 var(--brand); font-stretch: 80%; }
.story-body ul, .story-body ol { padding-left: 1.3em; margin: 0 0 1.05em; }
.story-body li { margin-bottom: .35em; }
.story-body a { color: var(--copper-text); text-decoration: underline; text-underline-offset: 2px; }
.story-body img { max-width: 100%; height: auto; border-radius: 6px; }
.story-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 1.2em; font: 14px/1.45 var(--ui); }
.story-body th, .story-body td { border: 1px solid var(--rule); padding: 6px 10px; text-align: left; vertical-align: top; }
.story-body th { background: var(--page); font-weight: 700; }
.story-body blockquote { margin: 0 0 1.05em; padding-left: 16px; border-left: 3px solid var(--copper); color: var(--ink-2); }
.story-source { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.story-source p { margin: 0 0 6px; }
.story-source a { color: var(--copper-text); text-decoration: underline; }
.story-price .tv-wait, .story-price .tv-credit { color: var(--muted); }
.related { list-style: none; margin: 0; padding: 0; }
.related li { padding-block: 11px; border-top: 1px solid var(--rule); font: 600 15.5px/1.3 var(--head); }
.related li:first-child { border-top: 0; padding-top: 0; }
.related a:hover { color: var(--copper-text); }
.related time { display: block; margin-top: 4px; font: 500 12.5px var(--ui); color: var(--muted); }
.related-more { margin: 12px 0 0; font-size: 14px; font-weight: 600; }
.related-more a { color: var(--copper-text); }
@media (max-width: 600px) {
  .story-body { font-size: 17px; }
}

/* --- home: lead + two secondary stories, so the column matches "Just in" -- */
.top-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.seconds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.top { align-items: start; }
.second { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.second .lt { width: 40px; height: 40px; }
.second h3 { margin: 0; font: 600 18px/1.25 var(--head); text-wrap: pretty; }
.second h3 a:hover { color: var(--copper-text); }
@media (max-width: 600px) { .seconds { grid-template-columns: minmax(0, 1fr); } }

/* rail follows the reader down a long wire */
@media (min-width: 901px) { .columns > .rail { align-self: start; position: sticky; top: 84px; } }

/* --- copper basics strip --------------------------------------------------- */
.basics { padding-bottom: 56px; }
.basics > h2 { margin: 0 0 14px; font: 800 26px/1.1 var(--brand); font-stretch: 75%; }
.basics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.basic { background: var(--card); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.basic h2 { margin: 0 0 12px; font: 800 22px/1.1 var(--brand); font-stretch: 75%; }
.basic > p { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; }
.venues { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; font-size: 14px; }
.venues dt { font: 800 15px var(--brand); font-stretch: 85%; color: var(--copper-text); }
.venues dd { margin: 0; color: var(--ink-2); }
@media (max-width: 1000px) { .basics-grid { grid-template-columns: minmax(0, 1fr); } }

/* --- smaller quotes under the copper card --------------------------------- */
.plate-more { display: grid; gap: 8px; }
.plate-more .tv { min-height: 68px; border-radius: 10px; background: rgb(0 0 0 / .22); border: 1px solid rgb(255 255 255 / .06); padding: 2px 6px 0; }
.plate-more .tv-credit { display: none; }
.plate-more .tv-wait { padding: 8px; color: var(--band-muted); font-size: 12.5px; }

/* --- ranked tables: copper ETFs and copper stocks -------------------------- */
.sec-rank::after { background: linear-gradient(90deg, var(--copper-hi), var(--copper-lo)); }
.rank-page { padding-block: 24px 56px; }
.rank-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; margin: 0 0 12px; }
.rank-bar p { margin: 0; }
.rank-live { display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px/1.3 var(--ui); color: var(--ink); }
.rank-live .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--verdigris); box-shadow: 0 0 0 0 rgb(47 138 118 / .5); animation: rank-pulse 2s infinite; }
.rank-live[data-off] .dot { background: var(--muted); animation: none; }
@keyframes rank-pulse { 0% { box-shadow: 0 0 0 0 rgb(47 138 118 / .45); } 70% { box-shadow: 0 0 0 7px rgb(47 138 118 / 0); } 100% { box-shadow: 0 0 0 0 rgb(47 138 118 / 0); } }
@media (prefers-reduced-motion: reduce) { .rank-live .dot { animation: none; } }
.rank-src { font-size: 12.5px; color: var(--muted); }

.rank-wrap { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
table.rank { width: 100%; border-collapse: collapse; font-size: 15px; }
table.rank th, table.rank td { padding: 14px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--rule); }
table.rank tbody tr:last-child > * { border-bottom: 0; }
table.rank thead th { background: var(--patina); color: var(--band-ink); font: 700 11.5px/1.2 var(--ui); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; padding-block: 13px; }
table.rank .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.rank tbody tr { transition: background-color .15s; }
table.rank tbody tr:hover > * { background: color-mix(in srgb, var(--copper-tint) 60%, transparent); }

table.rank .sym { white-space: nowrap; width: 1%; }
table.rank .rk { display: inline-block; width: 26px; vertical-align: top; padding-top: 2px; color: var(--copper-text); font: 700 12px/1 var(--ui); }
table.rank .sym-in { display: inline-block; vertical-align: top; }
table.rank .sym b { display: block; font: 800 16px/1.15 var(--brand); font-stretch: 85%; letter-spacing: .01em; color: var(--ink); }
table.rank .sym small { display: block; margin-top: 3px; font: 600 10.5px/1 var(--ui); letter-spacing: .06em; color: var(--muted); }
table.rank .nm-m { display: none; }
table.rank .nm { font-weight: 600; line-height: 1.3; }
table.rank .nm small { display: block; margin-top: 3px; font-weight: 400; font-size: 12.5px; color: var(--muted); }

table.rank .px { font-weight: 700; font-size: 15.5px; }
table.rank .px small { margin-left: 5px; font: 600 10.5px/1 var(--ui); letter-spacing: .05em; color: var(--muted); }
table.rank .sz { color: var(--ink-2); font-weight: 600; }
table.rank .na { color: var(--muted); font-weight: 400; }

/* Daily and YTD moves as tinted chips: arrow, sign and colour together. */
.chg { display: inline-flex; align-items: center; gap: 5px; min-width: 86px; justify-content: flex-end; padding: 5px 9px; border-radius: 999px; font: 700 13.5px/1 var(--ui); font-variant-numeric: tabular-nums; }
.chg i { font-style: normal; font-size: 9px; }
.chg.up { color: #1d6b59; background: #dcf1ea; }
.chg.down { color: #a8311f; background: #fbe3de; }
.chg.flat { color: var(--muted); background: var(--page); }
.chg.na { background: none; min-width: 0; }
:root[data-theme="dark"] .chg.up { color: #7fdcc3; background: #10372f; }
:root[data-theme="dark"] .chg.down { color: #ff9a85; background: #3a1812; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chg.up { color: #7fdcc3; background: #10372f; }
  :root:not([data-theme="light"]) .chg.down { color: #ff9a85; background: #3a1812; }
}
/* A brief copper flash when a live update changes a price. */
table.rank td.flash { animation: rank-flash 1.2s ease-out; }
@keyframes rank-flash { from { background: var(--copper-tint); } to { background: transparent; } }

table.rank .short { display: none; }
.rank-notes { max-width: 78ch; margin-top: 22px; color: var(--ink-2); font-size: 14px; }
.rank-notes p { margin: 0 0 10px; }

/* Phones: the name moves under the ticker so five numeric-friendly columns fit. */
@media (max-width: 700px) {
  table.rank { font-size: 13.5px; }
  table.rank th, table.rank td { padding: 11px 6px; }
  table.rank th:first-child, table.rank td:first-child { padding-left: 12px; }
  table.rank th:last-child, table.rank td:last-child { padding-right: 12px; }
  table.rank thead th { font-size: 10.5px; letter-spacing: .04em; }
  table.rank .c-nm, table.rank .rk { display: none; }
  table.rank .sym { width: auto; white-space: normal; }
  table.rank .sym b { font-size: 14.5px; display: inline; }
  table.rank .sym small { display: inline; margin: 0 0 0 5px; font-size: 9.5px; }
  table.rank .nm-m { display: block; margin-top: 3px; max-width: 128px; font: 500 11.5px/1.25 var(--ui); color: var(--muted); }
  table.rank .px { font-size: 13.5px; }
  table.rank .px small { display: block; margin: 2px 0 0; font-size: 9.5px; }
  table.rank .long { display: none; }
  table.rank .short { display: inline; }
  .chg { min-width: 0; padding: 4px 6px; font-size: 12px; gap: 3px; }
  .chg i { display: none; }
}
