/* Learn, coin guide and comparison pages (src/pages/content.js): tables, and the two rows
   beside the article (the breadcrumb trail above it, related links below it).
   Tokens only: public/ui/tokens.css. */

/* A table sits in a region that scrolls sideways, so the page never does at 390px. */
.c-table-scroll {
  max-width: 100%;
  margin-top: var(--space-16);
  overflow-x: auto;
  border: var(--border-hairline) solid var(--c-line);
  border-radius: var(--radius-m);
}

.c-table-scroll:focus-visible {
  outline: var(--focus-width) solid var(--c-focus);
  outline-offset: var(--focus-offset);
}

.c-table-scroll > table.c-table {
  width: 100%;
  overflow-wrap: normal;
  border-collapse: collapse;
  font-size: var(--text-s);
}

.c-table th,
.c-table td {
  min-width: 6rem;
  padding: var(--space-8) var(--space-12);
  border-bottom: var(--border-hairline) solid var(--c-line);
  text-align: left;
  vertical-align: top;
}

/* Cells that hold sentences keep a readable line; the region scrolls instead. The width
   leaves the edge of the next column in view at 390px, so a reader sees there is more. */
.c-table--long tbody td {
  min-width: 12.5rem;
}

.c-table thead th {
  background: var(--c-surface);
  font-weight: var(--weight-semibold);
}

.c-table tbody th {
  font-weight: var(--weight-medium);
}

.c-table tbody tr:last-child th,
.c-table tbody tr:last-child td {
  border-bottom: 0;
}

/* The trail above the article: the article keeps its own space below it. */
.lp-crumbs-row {
  padding-top: var(--space-24);
}

.lp-crumbs-row + .lp-prose {
  padding-top: var(--space-12);
}

/* Related links and the way back to the hub, under the article. */
.lp-prose:has(+ .lp-after) {
  padding-bottom: 0;
}

.lp-after {
  padding-bottom: var(--space-48);
}
