/* crypto-degen-guide.css — complete rebuild 2026-02-26 */

/* ── Breadcrumb ────────────────────────────────────────────────────── */
.page-crumb {
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-crumb a { color: var(--text-faint); text-decoration: none; }
.page-crumb a:hover { color: var(--text-dim); }
.page-crumb span:last-child { color: var(--text-dim); }
.crumb-sep { opacity: 0.4; }

/* ── Hero canvas ───────────────────────────────────────────────────── */
.cdg-hero {
  position: relative;
  width: 100%;
  height: min(66vh, 560px);
  overflow: hidden;
  background: #02000a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cdg-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, transparent 25%, rgba(2,0,10,0.6) 100%),
    linear-gradient(to bottom, transparent 50%, rgba(2,0,10,0.92) 100%);
  pointer-events: none;
  z-index: 1;
}
/* Canvas is a direct child of .cdg-hero — matches paper1.html pattern */
.cdg-hero canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.cdg-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem 2rem 2.5rem;
  max-width: 700px;
}
.cdg-score-num {
  font-family: var(--font-mono);
  font-size: clamp(4.5rem, 18vw, 11rem);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 60px rgba(255,34,0,0.4), 0 0 120px rgba(255,34,0,0.15);
}
.cdg-score-denom {
  color: rgba(255,68,68,0.45);
  font-size: 0.48em;
}
.cdg-score-label {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.cdg-title {
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  margin: 0.4rem 0 0.85rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.85);
}
.cdg-lead {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 1.4rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.9);
}
.cdg-legend {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.cdg-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
  flex-shrink: 0;
}
.cdg-dot-orange { background: #ff7700; box-shadow: 0 0 7px #ff7700; }
.cdg-dot-blue   { background: #2277aa; box-shadow: 0 0 5px #2277aa; }

/* ── Main content ──────────────────────────────────────────────────── */
.cdg-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}
.guide-section {
  margin: 3rem 0;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.guide-section:last-of-type { border-bottom: none; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  color: var(--text-faint);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.guide-section h2 { font-size: clamp(1.35rem, 3vw, 1.95rem); margin-bottom: 1rem; }
.guide-prose { color: var(--text-dim); line-height: 1.7; margin: 1rem 0; }
.guide-prose strong { color: var(--text); }

/* ── Stat cards (shared) ───────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1.1;
}
.stat-num.amber { color: var(--orange); }
.stat-num.green { color: var(--green); }
.stat-label { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.2rem; }
.stat-note { font-size: 0.71rem; color: var(--text-faint); margin-top: 0.35rem; font-family: var(--font-mono); }

/* ── Score breakdown ───────────────────────────────────────────────── */
.cdg-score-breakdown {
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}
.cdg-dim-row {
  display: grid;
  grid-template-columns: 170px 64px 44px 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cdg-dim-label { font-family: var(--font-mono); font-size: 0.73rem; color: var(--text-dim); }
.cdg-cells { display: flex; gap: 3px; }
.cdg-cell {
  width: 18px; height: 18px;
  border-radius: 3px;
  border: 1px solid rgba(255,170,51,0.2);
  background: rgba(255,255,255,0.04);
}
.cdg-cell-on {
  background: rgba(255,170,51,0.35);
  border-color: rgba(255,170,51,0.7);
}
.cdg-cell-red.cdg-cell-on {
  background: rgba(255,44,0,0.35);
  border-color: rgba(255,44,0,0.7);
}
.cdg-cell-off {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.cdg-dim-score {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--orange);
  font-weight: 700;
}
.cdg-dim-note { font-size: 0.73rem; color: var(--text-faint); line-height: 1.4; }
.cdg-dim-total {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255,22,0,0.05);
  border-top: 1px solid rgba(255,22,0,0.2);
}
.cdg-total-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex: 1;
}
.cdg-total-score {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--red);
}
.cdg-total-band {
  background: rgba(255,22,0,0.12);
  color: var(--red);
  border: 1px solid rgba(255,22,0,0.3);
  border-radius: 4px;
  padding: 0.15rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ── Drift cascade ─────────────────────────────────────────────────── */
.cascade-steps { counter-reset: cascade; list-style: none; padding: 0; margin: 1.5rem 0; }
.cascade-steps li {
  counter-increment: cascade;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.cascade-steps li::before {
  content: "D" counter(cascade);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  background: rgba(255,34,0,0.1);
  border: 1px solid rgba(255,34,0,0.25);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
  margin-top: 0.12rem;
  flex-shrink: 0;
}
.cascade-content strong { display: block; color: var(--text); margin-bottom: 0.25rem; font-size: 0.93rem; }
.cascade-content { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }
.degen-quote {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--orange);
  background: rgba(255,170,51,0.05);
  border-left: 3px solid var(--orange);
  padding: 0.65rem 1.1rem;
  border-radius: 0 6px 6px 0;
  margin: 0.7rem 0 0;
  font-style: italic;
}

/* ── Population split ──────────────────────────────────────────────── */
.pop-split { display: flex; gap: 1rem; margin: 1.5rem 0; }
.pop-block {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}
.cdg-pop-coord { border-color: rgba(255,119,0,0.25); }
.cdg-pop-diff  { border-color: rgba(34,119,170,0.25); }
.pop-pct { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 700; line-height: 1; margin-bottom: 0.2rem; }
.pop-pct.red { color: var(--red); }
.pop-label { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.pop-pe { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); line-height: 1.5; }

/* ── Callouts ──────────────────────────────────────────────────────── */
.callout {
  background: rgba(250,250,245,0.03);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}
.callout p { margin: 0; color: var(--text-dim); font-size: 0.88rem; line-height: 1.6; }
.callout strong { color: var(--text); }
.callout-warn { border-left-color: var(--orange); }

/* ── Revenue table ─────────────────────────────────────────────────── */
.revenue-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.86rem; }
.revenue-table th {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 2px solid var(--border);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.revenue-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-dim);
  vertical-align: top;
  line-height: 1.5;
}
.revenue-table td:first-child { color: var(--text); font-weight: 600; }

/* ── EU Act timeline ───────────────────────────────────────────────── */
.cdg-timeline {
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}
.cdg-tl-row {
  display: grid;
  grid-template-columns: 90px 1fr 96px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cdg-tl-row:last-child { border-bottom: none; }
.cdg-tl-done { background: rgba(255,255,255,0.01); }
.cdg-tl-next { background: rgba(255,34,0,0.04); }
.cdg-tl-date { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--text); }
.cdg-tl-desc { font-size: 0.83rem; color: var(--text-dim); line-height: 1.4; }
.cdg-tl-status { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; text-align: right; }
.cdg-tl-live   { color: var(--green); }
.cdg-tl-soon   { color: var(--red); }
.cdg-tl-future { color: var(--orange); }

/* ── Token self-score ──────────────────────────────────────────────── */
.cdg-self-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.cdg-badge { padding: 0.22rem 0.7rem; border-radius: 4px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; }
.cdg-badge-elevated {
  background: rgba(255,170,51,0.1);
  color: var(--orange);
  border: 1px solid rgba(255,170,51,0.3);
}
.cdg-token-list { list-style: none; padding: 0; margin: 1rem 0; }
.cdg-token-list li {
  display: flex;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.5;
}
.cdg-token-list li::before {
  content: '→';
  color: var(--orange);
  font-family: var(--font-mono);
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.cdg-token-list li strong { color: var(--text); }

/* ── Pitch card ────────────────────────────────────────────────────── */
.cdg-pitch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin: 1.5rem 0;
}
.cdg-pitch-card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.7; margin: 0 0 1rem; }
.cdg-pitch-card p:last-child { margin: 0; }
.cdg-pitch-card strong { color: var(--text); }

/* ── Tool grid ─────────────────────────────────────────────────────── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
  display: block;
}
.tool-card:hover { border-color: var(--text-faint); }
.tool-card h4 { font-size: 0.88rem; margin-bottom: 0.3rem; }
.tool-card p { font-size: 0.76rem; color: var(--text-dim); margin: 0; line-height: 1.4; }

/* ── Footer nav ────────────────────────────────────────────────────── */
.cdg-footer-nav {
  text-align: center;
  margin: 3rem 0 1rem;
  color: var(--text-faint);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}
.cdg-footer-nav a { color: var(--text-faint); text-decoration: none; }
.cdg-footer-nav a:hover { color: var(--text-dim); }
.cdg-footer-nav p { margin-bottom: 0.5rem; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .cdg-hero { height: min(58vh, 460px); }
  .cdg-dim-row { grid-template-columns: 1fr 64px 44px; }
  .cdg-dim-note { display: none; }
  .cdg-tl-row { grid-template-columns: 80px 1fr 80px; }
  .pop-split { flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .cdg-hero { height: 52vh; }
  .cdg-score-num { font-size: 4.5rem; }
  .stat-grid { grid-template-columns: 1fr; }
  .cdg-dim-row { grid-template-columns: 1fr 64px; }
  .cdg-dim-score { display: none; }
  .cdg-tl-row { grid-template-columns: 72px 1fr; }
  .cdg-tl-status { display: none; }
}
