/* Landing pages. Loaded after app.css, which supplies the palette, the header,
   the footer and the .coin circle — this file is only the reading layout.

   These pages are prose, not an app: one column, measured line length, and
   type large enough that nobody pinch-zooms on a phone to read the answer they
   came for. */

/* `main` is a centring grid for the swap card. On a prose page that turns every
   child into a centred grid item, which is why the breadcrumb sat in the middle
   of the column instead of at its left edge. */
/* Centred. The header and footer span the page as chrome should, but the
   content sits in the middle of it — consistent with the swap card, and the
   arrangement that reads naturally. */
main.page {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s5) var(--s4) var(--s8);
}

.crumbs {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

.page h1 {
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin: 0 0 16px;
}
.page h2 {
  font-size: 19px;
  letter-spacing: -.01em;
  margin: 38px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.page p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.65; }
.page strong { color: var(--ink); font-weight: 600; }
.page a { color: var(--gold); }
/* …but not the button. `.page a` beats `.cta` on specificity, so the CTA was
   rendering gold-on-gold: a blank gold bar with invisible text. */
.page a.cta-inline { color: var(--gold-ink); }

.lede { font-size: 17px; line-height: 1.6; color: var(--ink); }

.cta-row { margin: 22px 0 8px; }
.cta-inline {
  display: inline-block; width: auto; min-height: 0;
  margin: 0; padding: 14px 22px;
  text-decoration: none; color: var(--gold-ink);
}

.steps-list { margin: 0; padding-left: 20px; color: var(--ink-2); line-height: 1.65; }
.steps-list li { margin-bottom: 10px; }

/* Wide content scrolls inside its own box — the page body must never scroll
   sideways on a phone. */
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
/* Gold, because a deposit sent without the memo cannot be traced back to
   anyone — it is the one thing on this page that can lose money. */
.needs-memo {
  display: block; font-style: normal; font-size: 11.5px;
  color: var(--gold); letter-spacing: .01em;
}
/* 340px, not 460px: 460 forced a horizontal scroll on every phone, and the
   column that fell off the edge was invisible with no hint it existed. Three
   columns fit a 390px screen comfortably now that the constant "You send to"
   column is gone. The wrapper keeps its overflow-x for genuinely narrow
   devices, where scrolling the table beats squeezing it. */
.page table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 340px; }
@media (max-width: 420px) {
  .page table { font-size: 13px; }
  .page table th, .page table td { padding-left: 0; padding-right: 8px; }
}
.page th, .page td {
  text-align: left; padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.page th { color: var(--ink-3); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.page td { color: var(--ink-2); }
.page tbody tr:first-child td { color: var(--ink); }

.faq { margin: 0; }
.faq dt { font-weight: 600; margin: 20px 0 6px; color: var(--ink); }
.faq dd { margin: 0; color: var(--ink-2); line-height: 1.65; }

.pair-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pair-links a {
  background: var(--pane); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px; font-size: 13px; color: var(--ink-2); text-decoration: none;
}
.pair-links a:hover { color: var(--gold); border-color: var(--line-2); }

/* Two columns on a phone, comfortable ones everywhere else.
   At the old 215px minimum a 390px screen fitted exactly ONE column, which
   made 79 coins an 11,000px scroll. But 150px applied at every width just
   packs a desktop with four narrow columns in which half the names wrap, so
   the narrow minimum is scoped to small screens and the original applies from
   560px up. */
.coin-grid {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
@media (min-width: 560px) {
  .coin-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
}
/* The <li> stretches to the row height but the <a> inside it did not, so a
   card whose name wrapped to two lines stood taller than its neighbour and the
   row looked ragged. */
.coin-grid li { display: flex; }
.coin-grid a {
  flex: 1;
  display: flex; align-items: center; gap: 10px; min-height: 56px;
  padding: 8px 12px; border-radius: 12px;
  background: var(--pane); border: 1px solid transparent;
  color: var(--ink); text-decoration: none;
}
.coin-grid a:hover { border-color: var(--line-2); }
.coin-grid .al-text { display: grid; line-height: 1.3; min-width: 0; }
.coin-grid .al-sym { font-weight: 600; font-size: 14px; }
/* A long ticker must not push its row wider than the column. `break-word`, not
   `anywhere`: the latter breaks at any character it likes, which turned
   BLACKDRAGON into "BLACKDRAGO / N". This only splits a word that cannot fit
   on a line of its own, so the wrap lands between words wherever it can. */
.coin-grid .al-sym, .coin-grid .al-chain { overflow-wrap: break-word; }
.coin-grid .al-chain { color: var(--ink-3); font-size: 12px; }


