/* Download page layout only. Tokens and pieces come from /static/styles.6926f7c3a9.css (read-only here).
   Matches Figma H2pQ7piGNpZc5a5kvTRYhB, page Download (wide 1440 and narrow 375, light and dark). */

.dl-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.dl-main {
  container: dl / inline-size;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding: var(--gutter);
}

.dl-wrap { flex: 1 0 auto; display: flex; flex-direction: column; gap: 24px; }

.dl-card,
.dl-verify {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.dl-card { gap: 20px; padding: 20px; }
.dl-card > .lead { max-width: var(--text-max); }
.dl-verify { gap: 16px; padding: 20px; }
.dl-verify h2 { font-size: 1.25rem; line-height: 26px; }
.dl-verify > p { max-width: 75ch; }

.dl-card .mono,
.dl-verify .mono { font-family: var(--mono); }

.dl-label { color: var(--fg3); font-size: 0.8125rem; font-weight: 600; line-height: 18px; }

.dl-links { display: flex; flex-direction: column; gap: 4px; }
.dl-links li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; font-size: 0.875rem; line-height: 20px; }
.dl-links a { padding: 6px 0; color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.dl-links a:hover { color: var(--accent-hover); }

/* ---------- builds table ---------- */

.dl-table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  text-align: left;
}

.dl-table tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px 16px;
  padding: 12px 16px;
}

.dl-table thead tr { background: var(--surface2); padding-block: 10px; }
.dl-table thead th { color: var(--fg2); font-size: 0.8125rem; font-weight: 600; line-height: 18px; }
.dl-table tbody tr { border-top: 1px solid var(--line); }
.dl-table th,
.dl-table td { padding: 0; min-width: 0; }

.dl-build { font-size: 0.9375rem; font-weight: 600; line-height: 22px; }
.dl-file a { color: var(--accent); font-size: 0.8125rem; line-height: 20px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.dl-file a:hover { color: var(--accent-hover); }
.dl-size { color: var(--fg2); font-size: 0.9375rem; line-height: 22px; }

.dl-sha { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.dl-sha-label { color: var(--fg3); font-size: 0.75rem; font-weight: 600; line-height: 18px; }
.dl-sha code { color: var(--fg2); font-size: 0.75rem; line-height: 18px; overflow-wrap: anywhere; }

/* The header row only helps when the cells sit in columns. */
.dl-table thead { display: none; }

/* Wide: message card fills, verify card beside it; both grow to the footer.
   Table cells line up in Build | File | Size columns with the checksum below. */
@container dl (min-width: 912px) {
  .dl-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: stretch; }
  .dl-card { padding: 48px; }
  .dl-verify { padding: 32px; }
}

@container dl (min-width: 640px) {
  .dl-table thead { display: table-header-group; }
  .dl-table tr { grid-template-columns: 12.5rem minmax(0, 1fr) 5rem; }
  .dl-sha { grid-column: 1 / -1; flex-direction: row; gap: 8px; }
}

.dl-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px var(--gutter) 16px;
  border-top: 1px solid var(--line);
}
