/* public/css/whitepaper.css — whitepaper page only */

body.wp-body {
  background: var(--bg);
}

/* ============================================================ */
/*  LAYOUT                                                       */
/* ============================================================ */

.wp-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  align-items: start;
}

/* ============================================================ */
/*  SIDEBAR                                                      */
/* ============================================================ */

.wp-sidebar {
  position: sticky;
  top: 80px;
  padding-right: 24px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.wp-sidebar-inner {
  padding: 4px 0;
}

.wp-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
  padding-left: 10px;
}

.wp-toc {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 24px;
}

.wp-toc a {
  display: block;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.15s;
  line-height: 1.4;
}
.wp-toc a:hover {
  background: var(--bg-2);
  color: var(--text);
  opacity: 1;
  border-left-color: var(--green);
}

.wp-sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 10px;
  border-top: 1px solid var(--border);
}

.wp-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--text-muted);
  width: fit-content;
}
.wp-badge.accent {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
}

/* ============================================================ */
/*  MAIN CONTENT                                                 */
/* ============================================================ */

.wp-main {
  min-width: 0;   /* allow shrink */
  max-width: 720px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

/* ---- Header ---- */
.wp-header {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.wp-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.wp-header h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.wp-header h1 .accent {
  color: var(--green);
}

.wp-tagline {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.wp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 12px;
  color: var(--text-dim);
}
.wp-meta strong {
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 4px;
}

/* ---- Sections ---- */
.wp-section {
  padding-bottom: 48px;
  scroll-margin-top: 90px;
}

.wp-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.wp-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 800;
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  border-radius: 8px;
  flex-shrink: 0;
}

.wp-section h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.wp-section h3:first-child { margin-top: 0; }

.wp-section h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.wp-section p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.wp-section ul,
.wp-section ol {
  margin: 0 0 16px 0;
  padding-left: 22px;
}

.wp-section li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 6px;
}

.wp-section li strong,
.wp-section p strong {
  color: var(--text);
  font-weight: 600;
}

.wp-section a {
  color: var(--green);
  font-weight: 500;
}
.wp-section a:hover {
  text-decoration: underline;
}

/* ---- Highlight (short callout text) ---- */
.wp-highlight {
  padding: 14px 18px;
  background: rgba(74, 222, 128, 0.06);
  border-left: 3px solid var(--green);
  border-radius: 6px;
  font-size: 14px !important;
  color: var(--text) !important;
}

/* ---- Warning banner ---- */
.wp-warning {
  padding: 14px 18px;
  background: rgba(251, 191, 36, 0.08);
  border-left: 3px solid var(--yellow);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.wp-warning strong {
  color: var(--yellow);
  font-weight: 700;
}

/* ---- Phase cards (Abstract) ---- */
.wp-phase-card {
  padding: 20px 22px;
  border-radius: 12px;
  margin: 12px 0;
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.wp-phase-card.current {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.03);
}
.wp-phase-card.planned {
  border-color: rgba(138, 148, 166, 0.2);
}

.wp-phase-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.wp-phase-card.current .wp-phase-tag { color: var(--green); }

.wp-phase-card h3 {
  margin: 0 0 8px 0 !important;
  font-size: 16px;
}

.wp-phase-card p {
  margin: 0 !important;
  font-size: 14px;
}

/* ---- Outcome cards ---- */
.wp-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0 20px;
}

.wp-outcome {
  padding: 14px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  text-align: center;
}
.wp-outcome.win  { border-left: 3px solid var(--green); }
.wp-outcome.lose { border-left: 3px solid var(--red); }
.wp-outcome.draw { border-left: 3px solid var(--text-dim); }

.wp-outcome-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.wp-outcome-result {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.wp-outcome.win  .wp-outcome-result { color: var(--green); }
.wp-outcome.lose .wp-outcome-result { color: var(--red); }
.wp-outcome.draw .wp-outcome-result { color: var(--text-muted); }

/* ---- Callout ---- */
.wp-callout {
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wp-callout-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.wp-callout-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wp-callout-dot.win  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.wp-callout-dot.lose { background: var(--red); }

/* ---- Markets ---- */
.wp-markets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 20px;
}

.wp-market {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.wp-market-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.wp-market-icon.sol { background: rgba(153, 69, 255, 0.12); color: #9945ff; }
.wp-market-icon.eth { background: rgba(98, 126, 234, 0.12); color: #627eea; }
.wp-market-icon.bnb { background: rgba(243, 186, 47, 0.12);  color: #f3ba2f; }

.wp-market-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.wp-market-sub {
  font-size: 11px;
  color: var(--text-dim);
}

/* ---- Timeline ---- */
.wp-timeline {
  position: relative;
  padding-left: 24px;
  margin-top: 8px;
}
.wp-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.wp-timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.wp-timeline-item:last-child { padding-bottom: 0; }

.wp-timeline-dot {
  position: absolute;
  left: -25px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 2px solid var(--border-2);
}
.wp-timeline-item.active .wp-timeline-dot {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
}

.wp-timeline-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.wp-timeline-phase {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.wp-timeline-period {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.wp-timeline-status {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
}
.wp-timeline-status.live {
  background: rgba(74, 222, 128, 0.15);
  color: var(--green);
}
.wp-timeline-status.planned {
  background: var(--bg-3);
  color: var(--text-dim);
}

.wp-timeline-content h3 {
  margin: 0 0 8px 0 !important;
  font-size: 18px;
}

.wp-timeline-content p {
  margin-bottom: 10px;
  font-size: 14px;
}

/* ---- Check list ---- */
.wp-check {
  list-style: none !important;
  padding-left: 0 !important;
}
.wp-check li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
}
.wp-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
}
.wp-check.pending li::before {
  content: '○';
  color: var(--text-dim);
}

.wp-purpose {
  margin-top: 12px !important;
  padding: 12px 14px;
  background: var(--bg-2);
  border-radius: 8px;
  font-size: 13px !important;
}

/* ---- Reasons grid ---- */
.wp-reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 24px;
}

.wp-reason {
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.wp-reason-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(74, 222, 128, 0.12);
  color: var(--green);
  border-radius: 6px;
  margin-bottom: 10px;
}

.wp-reason h4 {
  font-size: 13px;
  margin-bottom: 6px;
}
.wp-reason p {
  font-size: 12px !important;
  margin: 0 !important;
  line-height: 1.6;
}

/* ---- Table ---- */
.wp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.wp-table th,
.wp-table td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.wp-table thead th {
  background: var(--bg-3);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.wp-table tbody tr:last-child td { border-bottom: none; }

.wp-table td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 40%;
}
.wp-table td:not(:first-child) {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ---- Code block ---- */
.wp-code {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  overflow-x: auto;
  margin: 12px 0 20px;
}

/* ---- Links grid ---- */
.wp-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.wp-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s, transform 0.15s;
}
.wp-link:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  opacity: 1;
  text-decoration: none;
}
.wp-link.muted {
  cursor: not-allowed;
}
.wp-link.muted:hover {
  border-color: var(--border);
  transform: none;
}

.wp-link-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.wp-link-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  font-family: var(--font-mono);
  word-break: break-all;
}
.wp-link.muted .wp-link-value {
  color: var(--text-dim);
  font-style: italic;
}

/* ---- Footer note ---- */
.wp-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.wp-footer p {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}

/* ============================================================ */
/*  RESPONSIVE                                                   */
/* ============================================================ */

@media (max-width: 900px) {
  .wp-layout {
    grid-template-columns: 1fr;
    padding: 80px 20px 40px;
    gap: 24px;
  }
  .wp-sidebar {
    position: static;
    max-height: none;
    padding-right: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
  }
  .wp-toc {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .wp-toc a {
    padding: 5px 10px;
    font-size: 12px;
    background: var(--bg-2);
    border-left: none;
    border: 1px solid var(--border);
  }
  .wp-main {
    padding-left: 0;
    border-left: none;
  }
  .wp-header h1 {
    font-size: 32px;
  }
  .wp-section h2 {
    font-size: 22px;
  }
  .wp-outcomes,
  .wp-markets,
  .wp-reasons {
    grid-template-columns: 1fr;
  }
  .wp-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .wp-header h1 { font-size: 26px; }
  .wp-tagline { font-size: 15px; }
  .wp-section h2 { font-size: 20px; }
  .wp-section h3 { font-size: 15px; }
  .wp-section p, .wp-section li { font-size: 14px; }
  .wp-num { width: 26px; height: 26px; font-size: 12px; }
}