/**
 * File role: what the downloads page (/ro/download/, D-406) needs on top of the stylesheet of /ro/aiao/ (aiao.css,
 * linked): its own hero picture, the download card (head, facts, systems, steps, button, SHA-256) and the help band.
 * The colours are aiao.css's tokens (--ai-*), scoped under body.aiao-pg.dl-pg.
 *
 * @file_version 2.0.0
 */

/* The hero: the site's hero picture behind the words (aiao.css puts the AIAO designer there). */
body.aiao-pg.dl-pg .ai-hero {
  background:
    linear-gradient(100deg, rgba(0,17,32,.97) 0%, rgba(0,17,32,.92) 38%, rgba(4,32,60,.74) 66%, rgba(4,32,60,.55) 100%),
    url('/ro/img/bk-image-hero.webp') right center / cover no-repeat,
    var(--ai-abyss);
}

/* A category's title: its icon in the accent colour. */
body.aiao-pg.dl-pg .dl-h2-icon { color: var(--ai-ember); margin-right: 12px; font-size: .9em; }

/* The cards: two per row; a category with one item keeps it at a readable width. */
body.aiao-pg.dl-pg .dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
body.aiao-pg.dl-pg .dl-grid--one { grid-template-columns: minmax(0, 760px); }

body.aiao-pg.dl-pg .dl-card {
  display: flex;
  flex-direction: column;
  background: var(--ai-paper);
  border: 1px solid var(--ai-line);
  border-radius: 16px;
  padding: 26px 26px 22px;
  box-shadow: 0 18px 40px -34px rgba(7,23,58,.55);
  transition: border-color .2s ease, box-shadow .2s ease;
}
body.aiao-pg.dl-pg .dl-card:hover { border-color: #b9c6e3; box-shadow: 0 22px 46px -30px rgba(7,23,58,.6); }
body.aiao-pg.dl-pg .dl-card__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
body.aiao-pg.dl-pg .dl-card__head .ai-cap__icon { flex: 0 0 auto; margin: 0; width: 46px; height: 46px; font-size: 1.35rem; }
body.aiao-pg.dl-pg .dl-card h3 {
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2px 0 4px;
  color: var(--ai-ink);
}
body.aiao-pg.dl-pg .dl-facts { margin: 0; font-size: .86rem; font-weight: 600; color: var(--ai-ember); }
body.aiao-pg.dl-pg .dl-text { margin: 0 0 14px; font-size: .97rem; line-height: 1.65; color: var(--ai-muted); }

/* The systems: one chip each — available, through the browser, in preparation. */
body.aiao-pg.dl-pg .dl-systems { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
body.aiao-pg.dl-pg .dl-sys {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: .8rem;
  border: 1px solid var(--ai-line);
  color: var(--ai-muted);
  background: var(--ai-paper2);
}
body.aiao-pg.dl-pg .dl-sys strong { color: var(--ai-ink); font-weight: 600; }
body.aiao-pg.dl-pg .dl-sys::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9aa6c4; }
body.aiao-pg.dl-pg .dl-sys--ok::before { background: #1f9d6b; }
body.aiao-pg.dl-pg .dl-sys--web::before { background: #2d6fd6; }
body.aiao-pg.dl-pg .dl-sys--soon { border-style: dashed; }

/* The install steps: numbered, quiet. */
body.aiao-pg.dl-pg .dl-steps { margin: 0 0 6px; padding-left: 20px; font-size: .9rem; line-height: 1.6; color: var(--ai-muted); }
body.aiao-pg.dl-pg .dl-steps li { margin-bottom: 4px; }
body.aiao-pg.dl-pg .dl-steps li::marker { color: var(--ai-ember); font-weight: 700; }

/* The button at the bottom of the card, whatever the length of the text; the SHA-256 under it. */
body.aiao-pg.dl-pg .dl-actions { margin-top: auto; padding-top: 18px; }
body.aiao-pg.dl-pg .dl-hash { margin: 10px 0 0; font-size: .74rem; color: var(--ai-muted); word-break: break-all; }
body.aiao-pg.dl-pg .dl-hash code { font-size: .74rem; color: var(--ai-ink); background: var(--ai-paper2); padding: 1px 5px; border-radius: 4px; }

/* The help band: its ghost buttons stay light on the dark blue. */
body.aiao-pg.dl-pg .dl-help .ai-btn--ghost { color: #fff; border-color: rgba(255,255,255,.42); }
body.aiao-pg.dl-pg .dl-help .ai-btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

@media (max-width: 900px) {
  body.aiao-pg.dl-pg .dl-grid { grid-template-columns: minmax(0, 1fr); }
}
