/* The download page (app/templates/download.html): the site's tokens, cards and buttons. */
.dl-page { max-width: 1040px; margin: 0 auto; padding: 24px 16px 48px; }
.dl-head h1 { font-size: 1.75rem; margin: 8px 0 12px; }
.dl-intro { max-width: 720px; color: var(--ink-secondary); line-height: 1.55; }
.dl-top { margin: 18px 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dl-top .btn { display: inline-block; width: auto; flex: 0 0 auto; padding: 10px 20px; text-decoration: none; }
.dl-muted { color: var(--ink-secondary); }
.dl-small { font-size: var(--font-size-small); }
.dl-soon { margin: 16px 0; }
.dl-page h2 { font-size: 1.15rem; margin: 28px 0 12px; }
/* Cards wrap like a grid, but none gets narrower than its download table: a card that cannot fit
   beside the others moves to its own row instead of letting the table spill out of it. */
.dl-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.dl-card { padding: 18px 18px 16px; flex: 1 1 280px; min-width: min-content; box-sizing: border-box; }
.dl-grid-mobile .dl-card { flex-basis: 360px; }
.dl-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.dl-card p { margin: 0 0 12px; line-height: 1.5; }
.dl-card .btn { display: inline-block; width: auto; padding: 9px 16px; text-decoration: none; margin-bottom: 10px; }
.dl-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-small); }
.dl-table th { text-align: left; font-weight: 600; color: var(--ink-secondary); padding: 4px 6px; border-bottom: 1px solid var(--border); }
.dl-table td { padding: 6px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.dl-table tr:last-child td { border-bottom: none; }
.dl-table .dl-kind { color: var(--ink); font-weight: 600; }
.dl-table .dl-none { color: var(--ink-tertiary); }
.dl-table a { color: var(--accent-text); text-decoration: none; font-family: var(--font-mono); }
.dl-table a:hover { text-decoration: underline; }
.dl-version { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: var(--font-size-small); color: var(--ink-secondary); }
.dl-version select { font: inherit; padding: 4px 8px; border-radius: var(--radius-input); border: 1px solid var(--input-border); background: var(--input-bg); color: var(--ink); }
.dl-note { background: var(--warning-bg); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 12px 16px; margin: 0 0 14px; }
.dl-note p { margin: 0 0 6px; }
.dl-list { padding-left: 20px; line-height: 1.6; max-width: 760px; }
.dl-list li { margin-bottom: 6px; }
/* Phones: a table with several processors is wider than the screen, so each kind of file becomes
   a row of its own with the downloads under it, each named by its processor. */
@media (max-width: 600px) {
  .dl-head h1 { font-size: 1.4rem; }
  .dl-card { flex-basis: 100%; min-width: 0; }
  .dl-table, .dl-table tbody, .dl-table tr { display: block; }
  .dl-table .dl-arches { display: none; }
  .dl-table tr { padding: 8px 0; border-bottom: 1px solid var(--border); }
  .dl-table tr:last-child { border-bottom: none; }
  .dl-table td { display: inline-block; padding: 3px 14px 3px 0; border-bottom: none; }
  .dl-table td.dl-kind { display: block; padding: 0 0 2px; }
  .dl-table td.dl-none { display: none; }
  .dl-table td[data-arch]::before { content: attr(data-arch); display: block; color: var(--ink-secondary); font-size: 0.85em; }
}
/* main is a fixed-height flex column with overflow hidden (styles.css): let the page scroll in it */
main:has(> .dl-page) { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.dl-page { flex: none; width: 100%; box-sizing: border-box; }
