/* baixar.css — área de download (só para quem está logado). Mobile-first. */

.bx-page {
  padding: clamp(28px, 6vw, 72px) 16px clamp(48px, 8vw, 96px);
  color: #2d223c;
  background: #f8f4ef;
  font-family: var(--font-sans, 'DM Sans', system-ui, sans-serif);
}
.bx-page:focus { outline: none; }
.bx-wrap { max-width: 640px; margin: 0 auto; }

.bx-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; color: #d32436; }
.bx-titulo { margin: 0 0 10px; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(30px, 6vw, 42px); line-height: 1.1; text-align: center; }
.bx-lead { max-width: 40ch; min-height: 1.5em; margin: 0 auto 28px; font-size: 16px; line-height: 1.55; text-align: center; color: #5f586b; }

.bx-card {
  margin-bottom: 18px;
  padding: clamp(20px, 4vw, 30px);
  background: #fcfbfa;
  border: 1px solid rgba(45, 34, 60, 0.08);
  border-radius: 24px;
  box-shadow: 0 14px 40px -26px rgba(45, 34, 60, 0.3);
}
.bx-card h2 { margin: 0 0 14px; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(21px, 4vw, 26px); line-height: 1.2; }
.bx-card p { margin: 0 0 10px; line-height: 1.6; color: #4a4258; }
.bx-card p:last-child { margin-bottom: 0; }

.bx-estado, .bx-aviso-box { margin: 0 0 20px; padding: 14px 16px; font-size: 15px; line-height: 1.5; text-align: center; color: #5f586b; border-radius: 16px; }
.bx-estado--erro, .bx-aviso-box { color: #8a1c28; background: #fdf0f1; border: 1px solid #f3c7cc; }
.bx-estado[hidden], #bxConteudo[hidden], #bxDisponivel[hidden], #bxIndisponivel[hidden], [id$="Item"][hidden], #bxNotasCard[hidden] { display: none; }
.bx-estado--erro p { margin: 0 0 12px; }

.bx-versao { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.bx-versao__tag { padding: 3px 12px; font-size: 13px; font-weight: 700; color: #3b2f7a; background: #f1edf9; border-radius: 999px; overflow-wrap: anywhere; }
.bx-versao__data { font-size: 14px; color: #5f586b; }

.bx-arquivos { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 12px; }
.bx-arquivo { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #fff; border: 1px solid #e6dfd6; border-radius: 18px; }
.bx-arquivo__nome { font-weight: 700; overflow-wrap: anywhere; }
.bx-arquivo__meta { margin-top: 2px; font-size: 14px; color: #5f586b; }
.bx-arquivo__sha { display: block; margin-top: 8px; font-size: 12px; line-height: 1.4; color: #5f586b; overflow-wrap: anywhere; }
.bx-arquivo__sha code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; user-select: all; }

.bx-btn, .bx-arquivo__baixar {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  border-radius: 999px;
}
.bx-arquivo__baixar { width: 100%; color: #fff; background: #dc3545; border: 0; }
.bx-arquivo__baixar:hover { background: #c62839; }
.bx-btn--sec { color: #2d223c; background: transparent; border: 1.5px solid rgba(45, 34, 60, 0.3); }
.bx-btn--sec:hover { color: #d32436; border-color: #dc3545; }

.bx-nota { font-size: 13.5px; }
.bx-notas { white-space: pre-wrap; overflow-wrap: anywhere; }
.bx-passos { margin: 0; padding-left: 22px; list-style: decimal outside; line-height: 1.7; color: #4a4258; }
.bx-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.bx-links a, .bx-conta a { display: inline-flex; align-items: center; min-height: 44px; color: #4d3c99; text-decoration: underline; text-underline-offset: 3px; }

.bx-conta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 6px; }
.bx-erro-sair { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; text-align: center; color: #b4202f; }

.bx-page a:focus-visible, .bx-btn:focus-visible, .bx-arquivo__baixar:focus-visible { outline: 2px solid #7460c6; outline-offset: 2px; }

@media (min-width: 560px) {
  .bx-arquivo { flex-direction: row; align-items: center; justify-content: space-between; }
  .bx-arquivo__info { flex: 1 1 auto; min-width: 0; }
  .bx-arquivo__baixar { width: auto; flex: 0 0 auto; }
}
