/* bch2.org downloads page, v1 (/assets/editorial/downloads.v1.css)
   Loaded after bch2.v1.css on downloads/index.html only. Design-system tokens only; no new
   colours, fonts, radii, shadows or spacing values. Shared patterns (long lede, last-cell
   padding, footer note links, prose measure) live in bch2.v1.css. */

/* Page heading ------------------------------------------------------------------------------ */
/* The release line is the eyebrow. The version link keeps its lower-case "v". */
.release-tag a { color: inherit; text-transform: none; }
.release-tag a:hover { color: var(--ink); }

/* Full node table: one <tbody> per platform, the platform <th> spans its two file rows ------ */
.dl-table { border-top: var(--rule-strong); }
.dl-table th[scope="rowgroup"] {
  width: 44%;
  padding-right: var(--space-m);
  font-weight: 400;
}
.dl-table__os {
  display: block;
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: var(--tracking-title);
}
.dl-table__note {
  display: block;
  margin-top: var(--space-3xs);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.dl-table__file { padding-right: var(--space-s); }
.dl-link {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}
.dl-link:hover { color: var(--green); }
.dl-link.primary { font-weight: 500; }
.dl-table .dl-table__size { color: var(--muted); font-size: var(--text-sm); }

/* Where numbered rows show three columns, the file column starts on the row-description line. */
@media (min-width: 48rem) and (max-width: 56.24rem), (min-width: 80rem) {
  .dl-table th[scope="rowgroup"] { width: var(--row-label); }
}

/* Phones: each platform stacks (name and note, then one line per file with its size). */
@media (max-width: 47.99rem) {
  .dl-table,
  .dl-table tbody,
  .dl-table th,
  .dl-table td { display: block; width: auto; }
  .dl-table tbody { padding-block: var(--space-s) var(--space-2xs); border-bottom: var(--rule); }
  .dl-table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    column-gap: var(--space-s);
  }
  .dl-table th[scope="rowgroup"] { flex: 1 0 100%; width: auto; padding: 0 0 var(--space-2xs); border: 0; }
  .dl-table td { padding: var(--space-xs) 0; border: 0; }
  .dl-table tr + tr { border-top: var(--rule); }
  .dl-table tr:first-child .dl-table__file { flex: 1 1 0; min-width: 0; }
  .dl-table tr + tr .dl-table__file { flex: 1 1 0; min-width: 0; }
  .dl-table .dl-table__size { flex: none; }
}

/* Wallet directory ---------------------------------------------------------------------------- */
.dl-wallets .directory__text p + p { margin-top: var(--space-2xs); }
.dl-wallets__action { color: var(--ink); font-weight: 500; }
.directory__link:hover .dl-wallets__action { color: var(--green); }
.dl-wallets__version {
  margin-left: var(--space-2xs);
  color: var(--muted);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
/* A second link inside a directory row, on the description line under the row's main link. */
.dl-wallets__more {
  display: block;
  width: fit-content;
  margin: calc(-1 * var(--space-xs)) 0 var(--space-xs) calc(var(--row-num) + var(--row-gap));
  padding-block: var(--space-3xs);
  font-size: 0.9375rem;
}
@media (min-width: 48rem) and (max-width: 56.24rem), (min-width: 80rem) {
  .dl-wallets__more { margin-left: var(--row-label); }
}

/* Verify: paragraph (.prose), then the checksum commands ------------------------------------- */
.dl-verify { display: grid; gap: var(--space-l); min-width: 0; }
/* One command per line. Long lines wrap inside the box (at spaces and hyphens first) with a
   hanging indent, so a wrapped command never reads as a new one and nothing scrolls. */
.dl-verify__code { overflow-x: visible; white-space: pre-wrap; }
.dl-verify__code code { display: block; overflow-wrap: anywhere; }
.dl-verify__code code > span {
  display: block;
  padding-left: var(--space-s);
  text-indent: calc(-1 * var(--space-s));
}
.dl-verify__code code > span + span { margin-top: var(--space-3xs); }
