/* Site v2 (D35; docs/v2/CONTRATOS-V2.md §13): the styles of v2 coins (the curve's facts, the "via" line, donations)
   and of the integration guide on /oficial. One file of its own (DESIGN §8.2 budget: ≤ 600 lines,
   test/v3-cleanup.test.mjs). Linked by the pages that need it (an "if v2" block in their head) only once
   config.contracts.launchFactoryV2 is set, so today's pages are unchanged. Built on the base stylesheet (site.css): its
   tokens, .card, .field, .input-row, .alert, .checkbox, .kv, .pill. Dark only; no new colour. */

/* ---------------------------------------------------------------- v2 cards on the coin page */
.v2-card { margin-top: var(--s4); }
.v2-card > h2 { margin-bottom: var(--s3); }
.v2-facts {
  display: grid;
  gap: var(--s2);
  margin: var(--s3) 0;
  padding: 0;
  list-style: none;
}
.v2-facts > li {
  position: relative;
  padding-left: var(--s5);
  color: var(--text);
  line-height: 1.5;
}
.v2-facts > li::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.v2-card .note { color: var(--muted); }

/* the "via GMGN router" line under a v2 trade's wallet */
.via { display: inline-block; margin-left: var(--s1); color: var(--muted); font-size: 13px; }
.trade-list .via, .trade-table .via { white-space: nowrap; }

/* ---------------------------------------------------------------- donations (D30, §8.15b) */
#v2-donate-body > p { margin-bottom: var(--s3); }
#v2-donate-body .field { margin: var(--s4) 0 var(--s3); }
.donate-out { margin-top: var(--s2); }
.donate-out p { margin: var(--s2) 0 0; }
#v2-donate-body .checkbox { margin: var(--s3) 0; }
#v2-donate-body .btn { margin-top: var(--s2); }

/* ---------------------------------------------------------------- /oficial: the integration guide */
.integrate dl { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: var(--s2) var(--s4); margin: var(--s3) 0; }
.integrate dt { color: var(--muted); }
.integrate dd { margin: 0; overflow-wrap: anywhere; }
.integrate code { font-family: var(--mono); font-size: 13px; }
.integrate pre {
  overflow-x: auto;
  margin: var(--s3) 0;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card-2);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}
.integrate .pool-ids { margin: var(--s2) 0; padding-left: var(--s5); }
.integrate .pool-ids li { margin-bottom: var(--s1); overflow-wrap: anywhere; }

@media (max-width: 599px) {
  .integrate dl { grid-template-columns: 1fr; gap: var(--s1); }
  .integrate dd { margin-bottom: var(--s2); }
}

@media (prefers-reduced-motion: reduce) {
  .v2-card { transition: none; }
}
