/* SEO chart pages (/chart/<slug>), rendered by backend/app/seo.py. Header/footer come from marketing.css. */
.cp { padding: var(--s5) 0 var(--s8); } /* body.mk already reserves the fixed header height */
.cp-404 { max-width: 560px; margin: 0 auto; padding: var(--s8) 20px; text-align: center; }
.cp-404 .cp-cta { justify-content: center; }
.cp-crumbs { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: var(--fs-sm); color: var(--soft); margin-bottom: var(--s4); }
.cp-crumbs { align-items: center; }
.cp-crumbs a { display: inline-flex; align-items: center; min-height: 24px; color: var(--muted); text-decoration: none; } /* 24 px target */
.cp-crumbs a:hover { color: var(--text); }
.cp-h1 { font: 600 clamp(28px, 4vw, 46px)/1.12 var(--display); letter-spacing: -0.02em; margin: 0 0 var(--s4); text-wrap: balance; }
.cp-lead { color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.65; max-width: 760px; margin: 0 0 var(--s6); }
/* Price is the subject: the first stat is set large; the rest is one quiet data row with hairline dividers,
   not five identical boxed cards. */
.cp-stats { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3) 0; margin-bottom: var(--s6); padding-bottom: var(--s5); border-bottom: 1px solid var(--border); }
.cp-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 0 var(--s5); border-left: 1px solid var(--border); }
.cp-stat:first-child { padding-left: 0; border-left: 0; margin-right: var(--s3); }
.cp-stat:nth-child(2) { border-left: 0; padding-left: 0; }
.cp-stat span { font-size: var(--fs-xs); color: var(--muted); }
.cp-stat b { font: 600 var(--fs-md)/1.25 var(--mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cp-stat:first-child b { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.01em; }
.cp-stat b.up { color: var(--green); }
.cp-stat b.down { color: var(--red); }
@media (max-width: 600px) { .cp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); } .cp-stat, .cp-stat:nth-child(2) { padding: 0; border-left: 0; } .cp-stat:first-child { grid-column: 1 / -1; margin: 0; } }
.cp-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s7); }
.cp-card { border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s5); margin-bottom: var(--s5); }
.cp-card h2 { font-size: var(--fs-lg); font-weight: 500; margin: 0 0 var(--s3); }
.cp-card p { color: var(--muted); line-height: 1.65; margin: 0; max-width: 760px; }
/* 90-day chart: plot (SVG + cursor) | price scale on the right; date row below. Fixed heights, so the cursor never shifts layout. */
.cp-chart { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s3); --cp-h: clamp(140px, 22vw, 220px); color: var(--green); }
.cp-chart.down { color: var(--red); }
.cp-plot { position: relative; height: var(--cp-h); touch-action: pan-y; cursor: crosshair; border-radius: var(--r-sm); outline-offset: 2px; }
.cp-spark { display: block; width: 100%; height: 100%; }
.cp-spark .line { stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.cp-spark .area { fill: currentColor; opacity: .12; }
.cp-spark .grid line { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cp-y, .cp-x { position: relative; font: 500 var(--fs-2xs)/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.cp-y { height: var(--cp-h); min-width: 6.4em; text-align: right; }
.cp-y span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
.cp-x { grid-column: 1; height: 18px; margin-top: var(--s2); }
.cp-x span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.cp-x span.first { transform: none; }
.cp-x span.last { transform: translateX(-100%); }
.cp-vl, .cp-dot, .cp-tip { position: absolute; pointer-events: none; opacity: 0; }
.cp-vl { top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--border-strong); }
.cp-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: currentColor; border: 2px solid var(--bg); box-sizing: border-box; }
.cp-tip { top: 4px; padding: 3px 8px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--panel2); color: var(--text); font: 600 var(--fs-xs)/1.3 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-plot.on .cp-vl, .cp-plot.on .cp-dot, .cp-plot.on .cp-tip { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .cp-vl, .cp-dot, .cp-tip { transition: opacity .12s; } }
@media (max-width: 600px) { .cp-chart { column-gap: var(--s2); } .cp-card { padding: var(--s4); } }
.cp-card .cp-note, .cp-note { color: var(--soft); font-size: var(--fs-xs); line-height: 1.6; margin: var(--s3) 0 0; }
.cp-rel { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.cp-rel a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s4); border: 1px solid var(--border); border-radius: var(--r-md); color: var(--text); text-decoration: none; font-size: var(--fs-sm); }
.cp-rel a:hover { border-color: var(--accent); }
.mk-top .mk-nav a { text-decoration: none; }
/* 1-year range + futures: two cards side by side on desktop; label / value rows inside. */
.cp-cols { display: grid; gap: 0 var(--s5); }
@media (min-width: 860px) { .cp-cols { grid-template-columns: 1fr 1fr; align-items: start; } }
.cp-cols:empty { display: none; }
.cp-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s5); margin: 0; }
.cp-kv div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cp-kv dt { font-size: var(--fs-xs); color: var(--muted); }
.cp-kv dd { margin: 0; font: 600 var(--fs-md)/1.25 var(--mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: var(--text); }
.cp-kv dd.up, .cp-rel span.up { color: var(--green); }
.cp-kv dd.down, .cp-rel span.down { color: var(--red); }
.cp-rel a { gap: var(--s2); }
.cp-rel span { font: 500 var(--fs-xs)/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.cp-faq .faq { border-top: 0; }
.cp-faq .faq summary { font-size: var(--fs-md); padding: var(--s4) 0; }
.cp-faq .faq details:last-child { border-bottom: 0; }
.cp-faq .faq details p { margin: 0 0 var(--s4); }
