/* ===============================================================
   Relay Me — download page styles
   Loaded after site.css, which holds the shared tokens, nav,
   buttons and footer.
   =============================================================== */

.dl-hero { padding: 64px 0 48px; }

.dl-section { padding: 0 0 72px; }

.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 880px) { .dl-grid { grid-template-columns: 1fr; } }

.dl-card {
  padding: 26px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.dl-card.dl-wide { margin-bottom: 24px; }

.dl-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.dl-card-head h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
/* .badge carries a hero-sized bottom margin in site.css; inside a card head
   it is an inline label, so that margin has to go. */
.dl-card-head .badge { margin-bottom: 0; }

.dl-card > p {
  color: #aab3c2;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.code-block {
  position: relative;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
/* The scroll container is the <pre>, not the block: an absolutely positioned
   copy button inside an overflow:auto ancestor scrolls out of view with the
   command it copies. The right padding keeps long first lines from sliding
   underneath the button. */
.code-block pre {
  margin: 0;
  overflow-x: auto;
  padding-right: 92px;
}
.code-block .code-copy {
  position: absolute;
  top: 10px;
  right: 10px;
}
.code-block code {
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.7;
  color: #c8d0dd;
  white-space: pre;
}

.dl-note {
  font-size: 0.84rem;
  color: #6b7585;
  line-height: 1.6;
  margin-bottom: 0;
}
.dl-note a { color: #8eb1ff; }
.dl-note a:hover { text-decoration: underline; }

/* ── binary matrix ── */
/* A 4-col CSS grid styled to read like a table: [row label][mac][linux][win].
   The first column is a fixed-width gutter for the architecture label so the
   binary cards line up across rows even when filenames wrap differently.
   Lives inside a .dl-card so each cell can be a flat row, not a nested tile. */
.dl-matrix {
  display: grid;
  grid-template-columns: 88px repeat(3, 1fr);
  gap: 10px 14px;
  margin-bottom: 14px;
}
@media (max-width: 760px) {
  .dl-matrix {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .dl-matrix-head,
  .dl-matrix-row-label { display: none; }
}

.dl-matrix-row { display: contents; }
.dl-matrix-head .dl-matrix-col {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8eb1ff;
  padding: 0 0 4px;
}

.dl-matrix-corner, .dl-matrix-row-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dl-matrix-row-label {
  align-items: flex-start;
  text-align: left;
  padding: 6px 4px 0;
  gap: 4px;
}
.dl-matrix-row-primary {
  font-size: 0.95rem;
  font-weight: 600;
  color: #c8d0dd;
  letter-spacing: -0.005em;
}
.dl-matrix-row-alt {
  font-size: 0.74rem;
  color: #6b7585;
  font-family: var(--mono);
}

/* Each binary lives inside a cell. The cell has its own soft box so the
   matrix reads as a grid of tiles rather than one continuous surface, even
   though it sits inside the .dl-card chrome above. */
.dl-binary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
  transition: background 160ms ease, border-color 160ms ease, transform 180ms ease;
  height: 100%;
}
.dl-binary:hover,
.dl-binary:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(140, 180, 255, 0.28);
  transform: translateY(-1px);
}
.dl-binary-file {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #c4d6ff;
  word-break: break-all;
  line-height: 1.5;
  min-height: 2.6em;
}
.dl-binary-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dl-binary-size {
  font-size: 0.76rem;
  color: #6b7585;
}
.dl-binary-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-1);
  transition: color 160ms ease, transform 160ms ease;
}
.dl-binary-go::after {
  content: "";
  width: 10px;
  height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12h14M13 6l6 6-6 6' stroke='black' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12h14M13 6l6 6-6 6' stroke='black' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.dl-binary:hover .dl-binary-go,
.dl-binary:focus-visible .dl-binary-go {
  color: #b8cdff;
  transform: translateX(2px);
}

.dl-binaries-note { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.05); }

/* ── trust strip ── */
.dl-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .dl-trust { grid-template-columns: 1fr; } }

.dl-trust-item {
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}
.dl-trust-item:hover {
  transform: translateY(-3px);
  border-color: rgba(140, 180, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
}
.dl-trust-item h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.dl-trust-item p {
  font-size: 0.88rem;
  color: #aab3c2;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .dl-hero { padding: 40px 0 32px; }
  .dl-section { padding: 0 0 48px; }
  .dl-card { padding: 20px; }
  .code-block code { font-size: 0.78rem; }
}
