/* Download page. Tokens and .btn come from theme.css. One idea: the person sees the file for THEIR device, then a plain list;
   everything technical (hashes, certificate, signature files) is folded inside "Conferir o arquivo". */
.dl-main { max-width: 760px; margin: 0 auto; padding: 56px 20px 72px; }
.dl-title { font-family: var(--font-display); font-size: clamp(28px, 5vw, 40px); margin: 0 0 10px; text-align: center; }
.dl-sub { color: var(--ink-soft); text-align: center; margin: 0 auto 32px; max-width: 520px; line-height: 1.6; }
.dl-h2 { font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-dim); margin: 40px 0 12px; }

/* For this device */
.dl-hero { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 24px; text-align: center; }
.dl-hero[hidden], .dl-unsupported[hidden] { display: none; }
.dl-hero-label { margin: 0 0 14px; color: var(--ink-soft); font-size: 14px; }
.dl-hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.dl-hero-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dl-hero-item .btn { min-width: 220px; justify-content: center; padding: 14px 24px; font-size: 16px; }
.dl-hero-item small { color: var(--ink-dim); font-size: 12px; }
.dl-hero-item { max-width: 280px; }
.dl-hero-cap { margin: 2px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.4; }
.dl-hero-pick { margin: 0; color: var(--ink-dim); font-size: 12px; line-height: 1.5; }
.dl-tag { display: inline-block; background: var(--accent-soft); color: var(--accent-2); border: 1px solid var(--accent); border-radius: 999px; padding: 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.dl-unsupported { text-align: center; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0; }

/* Two groups (Caixa, Carteira): the product icon sits in the title, each row carries its system icon */
.dl-group + .dl-group { margin-top: 8px; }
.dl-group-title { display: flex; align-items: center; gap: 12px; font-size: 18px; color: var(--ink); }
.dl-group-title .dl-ico { width: 32px; height: 32px; }
.dl-group-desc { margin: -4px 0 14px 44px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

/* The list: one row per system, all the same shape */
.dl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dl-row {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.dl-row[data-state="available"] { border-color: var(--line-strong); }
.dl-info h3 { font-size: 17px; margin: 0 0 2px; }
.dl-info p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.dl-info .dl-meta { color: var(--ink-dim); font-size: 12px; margin-top: 4px; }
.dl-info .dl-meta:empty { display: none; }
.dl-btn { white-space: nowrap; min-width: 120px; justify-content: center; }
.dl-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.dl-note[hidden] { display: none; }
.dl-note { grid-column: 1 / -1; margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; border-left: 3px solid var(--accent); padding-left: 10px; }
.dl-note code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

/* The F-Droid badge sits under the row's button, for Android only (same gate as the notes). The artwork is the
   official F-Droid one, self-hosted: the CSP says img-src 'self' data:, so a hot-linked badge would not load. */
.dl-badge { grid-column: 3; justify-self: end; margin-top: 12px; }
.dl-badge[hidden] { display: none; }
.dl-badge img { display: block; width: 134px; height: auto; }

/* Technical details, folded */
.dl-details { grid-column: 1 / -1; font-size: 13px; color: var(--ink-soft); }
.dl-details[hidden] { display: none; }
.dl-details summary, .dl-verify summary { cursor: pointer; color: var(--accent-2); font-size: 13px; padding: 4px 0; }
.dl-details dl { margin: 8px 0 0; }
.dl-details dt { color: var(--ink-dim); margin-top: 8px; }
.dl-details dd { margin: 2px 0 0; color: var(--ink); }
.dl-details dd[hidden], .dl-details dt[hidden] { display: none; }
.dl-details code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; word-break: break-all; }
.dl-copy { margin-left: 6px; background: none; border: 1px solid var(--line-strong); color: var(--ink-soft); border-radius: 6px; padding: 1px 8px; font-size: 12px; cursor: pointer; }
.dl-copy:hover { color: var(--ink); border-color: var(--accent); }
.dl-files { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.dl-files a { color: var(--accent-2); overflow-wrap: anywhere; }

.dl-verify { margin-top: 28px; color: var(--ink-soft); line-height: 1.6; font-size: 14px; }
.dl-verify code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.dl-help { text-align: center; color: var(--ink-soft); margin-top: 32px; }
.dl-help a { color: var(--accent-2); }

@media (max-width: 560px) {
  .dl-row { grid-template-columns: 44px 1fr; }
  .dl-btn { grid-column: 1 / -1; }
  .dl-btn { width: 100%; }
  .dl-badge { grid-column: 1 / -1; justify-self: center; margin-top: 14px; }
  .dl-badge img { width: 200px; }
  .dl-hero-item, .dl-hero-item .btn { width: 100%; }
}

/* System icons: a mask over the theme colour, so they follow the accent and both colour schemes */
.dl-ico { width: 44px; height: 44px; background: var(--accent-2); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; display: inline-block; flex: none; }
.dl-ico[data-ico="android"] { -webkit-mask-image: url(/pages/baixar/icons/android.svg); mask-image: url(/pages/baixar/icons/android.svg); }
.dl-ico[data-ico="windows"] { -webkit-mask-image: url(/pages/baixar/icons/windows.svg); mask-image: url(/pages/baixar/icons/windows.svg); }
.dl-ico[data-ico="linux"] { -webkit-mask-image: url(/pages/baixar/icons/linux.svg); mask-image: url(/pages/baixar/icons/linux.svg); }
.dl-ico[data-ico="wallet"] { -webkit-mask-image: url(/pages/baixar/icons/wallet.svg); mask-image: url(/pages/baixar/icons/wallet.svg); }
.dl-ico[data-ico="caixa"] { -webkit-mask-image: url(/pages/baixar/icons/caixa.svg); mask-image: url(/pages/baixar/icons/caixa.svg); }
.dl-hero-label { display: flex; align-items: center; justify-content: center; gap: 10px; }
.dl-hero-label .dl-ico { width: 28px; height: 28px; }
.dl-note a { color: var(--accent-2); }
