@font-face { font-family: Archivo; font-weight: 600; font-display: swap; src: url("/assets/fonts/archivo-600.woff2") format("woff2"); }
@font-face { font-family: Archivo; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-700.woff2") format("woff2"); }
@font-face { font-family: Archivo; font-weight: 800; font-display: swap; src: url("/assets/fonts/archivo-800.woff2") format("woff2"); }

:root {
  --bg: #07090d;
  --panel: #10141c;
  --ink: #eef2f6;
  --muted: #8b96a3;
  --line: rgba(238,242,246,.1);
  --gold: #e4c27a;
  --silver: #c5d0d8;
  --accent: #b8a0f0;
  --teal: #b8a0f0;
  --plat: #9db0c4;
  --pall: #d4a574;
  --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Archivo, "Segoe UI", sans-serif;
  font-weight: 600;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 80; background: #fff; color: #000; padding: .4rem; }
.wrap { width: min(1160px, calc(100% - 1.5rem)); margin-inline: auto; }

.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: .04em; }
.brand b { color: var(--gold); }
.nav-toggle {
  display: none; min-height: 44px; padding: 0 .9rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-weight: 800;
}
.nav { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.nav > a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; }
.nav > a[aria-current="page"] { color: var(--gold); }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 44px; padding: 0 1rem; border-radius: 11px; border: 1px solid transparent;
  background: var(--accent); color: #120816 !important; font-weight: 800; text-decoration: none; cursor: pointer; font-family: inherit;
}
.btn-ghost { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.btn-gold { background: var(--gold); color: #1a1408 !important; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: .4rem 0 .8rem; }
  .top-row { flex-wrap: wrap; }
  .nav.is-open { display: flex; }
  .nav .btn { width: 100%; }
}

.hero {
  position: relative; min-height: min(78vh, 640px);
  display: grid; align-items: end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: #05070a url("/assets/img/hero.webp") center/cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,9,13,.92) 0%, rgba(7,9,13,.55) 48%, rgba(7,9,13,.2) 100%),
              linear-gradient(180deg, rgba(7,9,13,.2) 0%, rgba(7,9,13,.92) 100%);
}
@media (max-width: 720px) {
  .hero { min-height: 70vh; }
  .hero-bg { background-image: url("/assets/img/hero-mobile.webp"); background-position: center 30%; }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(7,9,13,.35) 0%, rgba(7,9,13,.88) 55%, #07090d 100%);
  }
}
.hero-inner { position: relative; z-index: 1; padding: 4.5rem 0 2.2rem; }
.hero-ctas { position: relative; z-index: 3; }
.kicker { margin: 0 0 .4rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
h1 { margin: 0 0 .55rem; font-size: clamp(2.15rem, 6vw, 4.1rem); letter-spacing: -.035em; line-height: 1.02; max-width: 14ch; }
.inner-hero h1 { max-width: 22ch; font-size: clamp(1.85rem, 4.6vw, 3.1rem); }
.lede { margin: 0; max-width: 36rem; color: var(--muted); line-height: 1.5; font-size: 1.05rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.15rem; }

.ticker {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem;
  margin: 0 auto 1.6rem; position: relative; z-index: 2;
}
@media (max-width: 900px) { .ticker { grid-template-columns: 1fr 1fr; } }
.tick {
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid var(--line); border-radius: 16px; padding: .85rem .9rem .7rem;
  backdrop-filter: blur(12px);
}
.tick b { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tick .px { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: .15rem 0 .2rem; }
.tick[data-metal="gold"] .px { color: var(--gold); }
.tick[data-metal="silver"] .px { color: var(--silver); }
.tick[data-metal="platinum"] .px { color: var(--plat); }
.tick[data-metal="palladium"] .px { color: var(--pall); }
.spark { display: block; width: 100%; height: 36px; }

.calc {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 1.15rem 1.2rem 1.25rem; margin: 0 0 1.8rem;
}
.calc-grid { display: grid; grid-template-columns: 1.4fr .55fr .75fr auto; gap: .65rem; align-items: start; }
@media (max-width: 800px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.field-hint {
  margin: .38rem 0 0;
  font-size: .8rem;
  color: var(--muted);
  min-height: 2.5em;
  line-height: 1.3;
}
.btn-slot { display: flex; flex-direction: column; }
.btn-slot .btn { margin-top: 1.35rem; } /* line up with inputs under labels */
.find { position: relative; }
.find-list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
  max-height: 280px; overflow: auto; margin: .25rem 0 0;
  background: #0b0e14; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.find-list button {
  display: block; width: 100%; text-align: left; padding: .55rem .75rem;
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
  color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
}
.find-list button:hover, .find-list button.is-on { background: rgba(184,160,240,.14); color: var(--accent); }
.find-list small { display: block; color: var(--muted); font-weight: 600; }
label { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .28rem; font-weight: 800; }
input, select, textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 .75rem; font: inherit; background: #0b0e14; color: var(--ink);
}
.calc-out { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 1.2rem; }
.calc-out strong { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--teal); font-variant-numeric: tabular-nums; }
.presets { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 0; }
.chip {
  min-height: 36px; padding: 0 .7rem; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font: inherit; font-weight: 800; font-size: .78rem; cursor: pointer;
}
.chip:hover, .chip.is-on { border-color: var(--teal); color: var(--teal); }

.charts { margin: 0 0 2rem; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; }
.ranges { display: flex; gap: .3rem; }
.ranges button { min-height: 36px; padding: 0 .65rem; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-weight: 800; cursor: pointer; }
.ranges button.is-on { color: var(--ink); border-color: var(--gold); }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 800px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: .85rem .9rem; }
.chart-card h3 { margin: 0 0 .35rem; font-size: .95rem; }
.chart-card .spark { width: 100%; height: 88px; }
.chart-card[hidden] { display: none !important; }

.watch { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; margin: 0 0 1.6rem; }
.watch-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr auto; gap: .5rem; align-items: end; }
@media (max-width: 800px) { .watch-grid { grid-template-columns: 1fr 1fr; } }
.msg { margin: .6rem 0 0; font-weight: 700; color: var(--teal); min-height: 1.1rem; }

.search { margin: 0 0 .8rem; }
.search input { max-width: 32rem; }
.favs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.favs a { color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .7rem; font-size: .8rem; font-weight: 800; }

.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .75rem .8rem; border-bottom: 1px solid var(--line); }
td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
td a { color: var(--ink); font-weight: 800; text-decoration: none; }
td a:hover { color: var(--gold); }
.num { font-variant-numeric: tabular-nums; font-weight: 800; }
.melt { color: var(--teal); }
.thumb { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: #fff; }
button.zoom {
  padding: 0; border: 0; background: transparent; cursor: zoom-in;
  border-radius: 10px; display: inline-flex;
}
button.zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cards { display: none; }
@media (max-width: 700px) {
  .table-wrap { display: none; }
  .cards { display: grid; gap: .65rem; }
  .card {
    display: grid; grid-template-columns: 56px 1fr auto; gap: .7rem; align-items: center;
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: .7rem .8rem; text-decoration: none; color: inherit;
  }
  .card img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 10px; }
  .card strong { display: block; }
  .card small { color: var(--muted); }
}

h2 { font-size: 1.35rem; margin: 0 0 .45rem; }
.prose { max-width: 42rem; padding-bottom: 2rem; }
.prose p { color: var(--muted); line-height: 1.55; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; margin: .45rem 0; }
.faq summary { cursor: pointer; font-weight: 800; }
.inner-hero { padding: 1.6rem 0 1rem; position: relative; min-height: 0; }

.type-hero { display: grid; grid-template-columns: minmax(220px, 420px) 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 800px) { .type-hero { grid-template-columns: 1fr; } }
.type-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.type-photos .zoom:only-child { max-width: 240px; }
.type-photos .zoom { display: flex; flex-direction: column; gap: .28rem; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.type-photos img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 12px; }
.type-photos span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
@media (max-width: 700px) { .type-photos { grid-template-columns: 1fr 1fr; } .type-photos img { max-width: none; } }
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .82rem; margin: 0 0 .7rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 700; }
.crumbs a:hover { color: var(--gold); }
.type-ticker { grid-template-columns: 1.6fr 1fr 1fr 1fr; margin-top: 0; }
@media (max-width: 900px) { .type-ticker { grid-template-columns: 1fr 1fr; } }
.tick-focus { grid-row: span 1; }
.tick-focus .px { font-size: clamp(1.5rem, 3vw, 2rem); }
.tick-focus .px small { font-size: .72rem; color: var(--muted); font-weight: 700; }
.tick-note { margin: .35rem 0 0; font-size: .78rem; color: var(--muted); line-height: 1.35; }
a.tick-link { text-decoration: none; color: inherit; }
a.tick-link:hover { border-color: var(--accent); }
.type-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
@media (max-width: 700px) { .type-calc-grid { grid-template-columns: 1fr; } }
.type-explain { max-width: 46rem; padding-bottom: 1.2rem; }
.type-explain strong { color: var(--ink); }
.related { margin: 0 0 1.8rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; }
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  display: grid; grid-template-columns: 56px 1fr auto; gap: .7rem; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: .65rem .75rem;
  text-decoration: none; color: inherit;
}
.related-card img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; }
.related-card strong { display: block; font-size: .92rem; }
.related-card small { color: var(--muted); }
.type-back { margin: 1.2rem 0; }
.type-faq { margin: 0 0 1.5rem; }
.lede strong { color: var(--ink); }
@media print {
  .top, .foot, .watch, .page-share, .nav-toggle, .zoom-layer { display: none !important; }
  body { background: #fff; color: #111; }
  .stat, .calc, .table-wrap, .tick { border: 1px solid #ccc; background: #fff; }
  a { color: #111; }
}

.zoom-layer {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(4,6,10,.88); display: grid; place-items: center;
  padding: 1.2rem; cursor: zoom-out;
}
.zoom-layer[hidden] { display: none !important; }
.zoom-layer img {
  max-width: min(92vw, 720px); max-height: 88vh;
  object-fit: contain; background: #fff; border-radius: 12px;
  cursor: default;
}
.zoom-close {
  position: absolute; top: .8rem; right: .8rem;
  min-height: 44px; padding: 0 1rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  font: inherit; font-weight: 800; cursor: pointer;
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; margin: 0 0 1rem; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; }
.stat b { display: block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat span { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.tools { display: grid; gap: .8rem; margin: 1.2rem 0 2rem; }
.share-row, .cdxl-share-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.share-btn {
  min-height: 40px; padding: 0 .75rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font: inherit; font-weight: 800; font-size: .8rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.share-btn:hover { border-color: var(--gold); }

.foot { border-top: 1px solid var(--line); margin-top: 1.5rem; padding: 1.6rem 0 1.3rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr .7fr .9fr; gap: 1.2rem; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }
.muted { color: var(--muted); }
.foot-h { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.foot-grid a { display: block; color: var(--ink); text-decoration: none; font-weight: 700; margin: .18rem 0; }
.legal { font-size: .76rem; color: var(--muted); margin-top: 1rem; }
.hidden { display: none !important; }
.page-share { margin: 1.2rem 0 0; }
